@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251222.0 → 0.0.0-nightly-next-20251223.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 _0x3c7a47=_0x1f7d;(function(_0xc75369,_0x1c5ad4){const _0x4f738e=_0x1f7d,_0x469931=_0xc75369();while(!![]){try{const _0x23c834=-parseInt(_0x4f738e(0x215))/0x1*(-parseInt(_0x4f738e(0x1e5))/0x2)+parseInt(_0x4f738e(0x1fd))/0x3*(parseInt(_0x4f738e(0x1cc))/0x4)+-parseInt(_0x4f738e(0x1c7))/0x5+-parseInt(_0x4f738e(0x1f6))/0x6*(parseInt(_0x4f738e(0x207))/0x7)+-parseInt(_0x4f738e(0x211))/0x8*(-parseInt(_0x4f738e(0x1ed))/0x9)+parseInt(_0x4f738e(0x1e1))/0xa+-parseInt(_0x4f738e(0x1d8))/0xb*(parseInt(_0x4f738e(0x214))/0xc);if(_0x23c834===_0x1c5ad4)break;else _0x469931['push'](_0x469931['shift']());}catch(_0x356e5d){_0x469931['push'](_0x469931['shift']());}}}(_0x2332,0x1e708));import{Plugin as _0x3a158b}from'ckeditor5/src/core.js';import{Dialog as _0x21b0b4}from'ckeditor5/src/ui.js';import{createElement as _0x1401c7,global as _0x1ea4af,uid as _0x3603b1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4debd7}from'./uploadcarecommand.js';function _0x1f7d(_0x1e6a33,_0x4c11f4){const _0x233216=_0x2332();return _0x1f7d=function(_0x1f7d76,_0x254295){_0x1f7d76=_0x1f7d76-0x1c0;let _0x4d2bfd=_0x233216[_0x1f7d76];return _0x4d2bfd;},_0x1f7d(_0x1e6a33,_0x4c11f4);}import{UploadcareUploadAdapter as _0x21087d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4ae3b9}from'./utils/editingutils.js';function _0x2332(){const _0x22946e=['_initSchema','selection','pluginName','execute','398300ypEpNo','appendChild','closeMax','uploadcare.uploader','225218DbToTo','removeAttribute','view','href','uploadcareImageId','map','uploadcare','schema','699066EsADqo','attributeToAttribute','\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','imageBlock','insertImage','ctxElement','listenTo','querySelector','_initConfig','6UkOJiq','destroy','uploader-','UploadcareEditing','uploadcare.pubkey','requires','iconHrefResolver','1842uWaJjx','imageInline','body','#uc-icon-arrow-down','extend','upcast','get','elementToAttribute','init','fromCharCode','389249UkbAjs','_initCtx','locale','ucContextId','conversion','replaceImageSource','_initImageProcessingIndicator','commands','uploadcareImageReplace','afterInit','16PWAHgi','_configElement','editor','636IDPVzP','1SlClbA','editing','render','add','input[uploadcare-file-input]','config','isRegistered','getSelectedElement','downcast','836390kzMVCi','cleanupImage','isPremiumPlugin','true','document','1132QcfDKh','join','remove','_initConversion','getAttribute','once','configElement','uc-upload-ctx-provider','contentLanguage','model','_ctxElement','data-uc-image-id','27808silFAH','uc-config','for','PictureEditing','isOfficialPlugin'];_0x2332=function(){return _0x22946e;};return _0x2332();}export class UploadcareEditing extends _0x3a158b{[_0x3c7a47(0x212)]=null;[_0x3c7a47(0x1d6)]=null;static get[_0x3c7a47(0x1df)](){const _0x19888f=_0x3c7a47;return _0x19888f(0x1f9);}static get[_0x3c7a47(0x1fb)](){const _0xa56afd=_0x3c7a47;return[_0xa56afd(0x1db),_0x21087d,_0x21b0b4];}static get[_0x3c7a47(0x1dc)](){return!0x0;}static get[_0x3c7a47(0x1c9)](){return!0x0;}[_0x3c7a47(0x20a)];get[_0x3c7a47(0x1d2)](){const _0x364665=_0x3c7a47;return this[_0x364665(0x212)];}get[_0x3c7a47(0x1f2)](){const _0x522c06=_0x3c7a47;return this[_0x522c06(0x1d6)];}constructor(_0x2f1e94){const _0x3b8fa2=_0x3c7a47;super(_0x2f1e94),this[_0x3b8fa2(0x20a)]=_0x3603b1();}[_0x3c7a47(0x205)](){const _0x10f23a=_0x3c7a47,_0x5d8373=this[_0x10f23a(0x213)];_0x5d8373[_0x10f23a(0x20e)][_0x10f23a(0x1c1)](_0x10f23a(0x1eb),new _0x4debd7(_0x5d8373));}[_0x3c7a47(0x210)](){const _0x7b9ec6=_0x3c7a47;this[_0x7b9ec6(0x1dd)](),this[_0x7b9ec6(0x1cf)](),this[_0x7b9ec6(0x1f5)](),this[_0x7b9ec6(0x208)](),this[_0x7b9ec6(0x20d)](),this[_0x7b9ec6(0x1f3)](this[_0x7b9ec6(0x213)],_0x7b9ec6(0x1f7),()=>{const _0x573ca4=_0x7b9ec6;this[_0x573ca4(0x212)]&&(this[_0x573ca4(0x212)][_0x573ca4(0x1ce)](),this[_0x573ca4(0x212)]=null),this[_0x573ca4(0x1d6)]&&(this[_0x573ca4(0x1d6)][_0x573ca4(0x1ce)](),this[_0x573ca4(0x1d6)]=null);const _0x5fa236=_0x1ea4af[_0x573ca4(0x1cb)][_0x573ca4(0x1f4)](_0x573ca4(0x1c2));_0x5fa236&&_0x5fa236[_0x573ca4(0x1ce)]();}),async function(_0x10c98b){const _0x40b759=_0xbae936([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2eb189=0x535f8c3a,_0x13b1af=0x5358f09a^_0x2eb189,_0x5ba34c=window[_0xbae936([0x44,0x61,0x74,0x65])][_0xbae936([0x6e,0x6f,0x77])](),_0x3b354b=_0x10c98b[_0xbae936([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a9928=new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349284=>{_0x3b354b[_0xbae936([0x6f,0x6e,0x63,0x65])](_0xbae936([0x72,0x65,0x61,0x64,0x79]),_0x349284);}),_0x5d1ab5={[_0xbae936([0x6b,0x74,0x79])]:_0xbae936([0x45,0x43]),[_0xbae936([0x75,0x73,0x65])]:_0xbae936([0x73,0x69,0x67]),[_0xbae936([0x63,0x72,0x76])]:_0xbae936([0x50,0x2d,0x32,0x35,0x36]),[_0xbae936([0x78])]:_0xbae936([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]),[_0xbae936([0x79])]:_0xbae936([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]),[_0xbae936([0x61,0x6c,0x67])]:_0xbae936([0x45,0x53,0x32,0x35,0x36])},_0x5325d0=_0x3b354b[_0xbae936([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xbae936([0x67,0x65,0x74])](_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x302cbd(){let _0x312f0f,_0x4c5e2b=null,_0x251b8d=null;try{if(_0x5325d0==_0xbae936([0x47,0x50,0x4c]))return _0xbae936([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x312f0f=_0x34a464(),!_0x312f0f)return _0xbae936([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x312f0f[_0xbae936([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x251b8d=_0xfb2e04(_0x312f0f[_0xbae936([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x312f0f[_0xbae936([0x6a,0x74,0x69])])),await _0x4d5270()?_0x3dafc2()?_0x187475()?_0xbae936([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19d085()?(_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbae936([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c5e2b=_0x12393b(_0xbae936([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbae936([0x74,0x72,0x69,0x61,0x6c])&&(_0x4c5e2b=_0x12393b(_0xbae936([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x276d1c()):_0xbae936([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xbae936([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xbae936([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xbae936([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x187475(){const _0x124986=[_0xbae936([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xbae936([0x74,0x72,0x69,0x61,0x6c])][_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ba34c/0x3e8:0xe10*_0x13b1af;return _0x312f0f[_0xbae936([0x65,0x78,0x70])]<_0x124986;}function _0x3dafc2(){const _0x378d5f=_0x312f0f[_0xbae936([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x378d5f&&(!!_0x378d5f[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbae936([0x2a]))||!!_0x378d5f[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbae936([0x55,0x50,0x4c,0x43])));}function _0x19d085(){const _0x393b40=_0x1f7d,_0x1378b3=_0x312f0f[_0xbae936([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1378b3||0x0==_0x1378b3[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16bf2b}=new URL(window[_0xbae936([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x393b40(0x1e8)]);if(_0x1378b3[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16bf2b))return!0x0;const _0x2d4528=_0x16bf2b[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e]));return _0x1378b3[_0xbae936([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2050f6=>_0x2050f6[_0xbae936([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbae936([0x2a])))[_0xbae936([0x6d,0x61,0x70])](_0xd3bbf8=>_0xd3bbf8[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e])))[_0xbae936([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x456507=>_0x456507[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2d4528[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbae936([0x6d,0x61,0x70])](_0x3cd8c5=>Array(_0x2d4528[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3cd8c5[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xbae936([0x66,0x69,0x6c,0x6c])](_0x3cd8c5[0x0]===_0xbae936([0x2a])?_0xbae936([0x2a]):'')[_0xbae936([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3cd8c5))[_0xbae936([0x73,0x6f,0x6d,0x65])](_0xadb6a2=>_0x2d4528[_0xbae936([0x65,0x76,0x65,0x72,0x79])]((_0xe9de32,_0x301e3d)=>_0xadb6a2[_0x301e3d]===_0xe9de32||_0xadb6a2[_0x301e3d]===_0xbae936([0x2a])));}function _0x276d1c(){return _0x4c5e2b&&_0x251b8d?new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52d3f3,_0x2ebaee)=>{_0x4c5e2b[_0xbae936([0x74,0x68,0x65,0x6e])](_0x52d3f3,_0x2ebaee),_0x251b8d[_0xbae936([0x74,0x68,0x65,0x6e])](_0x4e8dd8=>{_0x4e8dd8!=_0xbae936([0x56,0x61,0x6c,0x69,0x64])&&_0x52d3f3(_0x4e8dd8);},_0x2ebaee);}):_0x4c5e2b||_0x251b8d||_0xbae936([0x56,0x61,0x6c,0x69,0x64]);}}function _0xfb2e04(_0x26a73a,_0x1c7b61){return new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc5cc27=>{if(_0x297cbf())return _0xc5cc27(_0xbae936([0x56,0x61,0x6c,0x69,0x64]));_0x5ccdfe(),_0x3b354b[_0xbae936([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xbae936([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a2993=!0x1;const _0x51590c=_0x3603b1();function _0x1270eb(_0x1d9cc6){return!!_0x1d9cc6&&(typeof _0x1d9cc6===_0xbae936([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d9cc6===_0xbae936([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d9cc6[_0xbae936([0x74,0x68,0x65,0x6e])]===_0xbae936([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d9cc6[_0xbae936([0x63,0x61,0x74,0x63,0x68])]===_0xbae936([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12d3f7(_0x42ffb0){_0xf5847(_0x42ffb0)[_0xbae936([0x74,0x68,0x65,0x6e])](_0x2c0906=>{if(!_0x2c0906||_0x2c0906[_0xbae936([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xbae936([0x6f,0x6b]))return _0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38b02f(_0x19ddfa(_0x51590c+_0x1c7b61))!=_0x2c0906[_0xbae936([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xbae936([0x56,0x61,0x6c,0x69,0x64]);})[_0xbae936([0x74,0x68,0x65,0x6e])](_0x3ed853=>(_0x46e820(),_0x3ed853),()=>{const _0x52be57=_0x2174cb();return null==_0x52be57?(_0x46e820(),_0xbae936([0x56,0x61,0x6c,0x69,0x64])):_0xbae936(_0x5ba34c-_0x52be57>(0x7753083a^_0x2eb189)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xbae936([0x74,0x68,0x65,0x6e])](_0xc5cc27)[_0xbae936([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc5cc27(_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5dee5c=0x536962ba^_0x2eb189;function _0x46e820(){const _0x52ecb1=_0xbae936([0x6c,0x6c,0x63,0x74,0x2d])+_0x38b02f(_0x19ddfa(_0x26a73a)),_0x5461b1=_0x2d5a79(_0x38b02f(window[_0xbae936([0x4d,0x61,0x74,0x68])][_0xbae936([0x63,0x65,0x69,0x6c])](_0x5ba34c/_0x5dee5c)));window[_0xbae936([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbae936([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52ecb1,_0x5461b1);}function _0x2174cb(){const _0x30afcd=_0xbae936([0x6c,0x6c,0x63,0x74,0x2d])+_0x38b02f(_0x19ddfa(_0x26a73a)),_0x442607=window[_0xbae936([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbae936([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30afcd);return _0x442607?window[_0xbae936([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d5a79(_0x442607),0x10)*_0x5dee5c:null;}function _0xf5847(_0x3addad){return new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x115c18,_0xc5b37f)=>{_0x3addad[_0xbae936([0x74,0x68,0x65,0x6e])](_0x115c18,_0xc5b37f),window[_0xbae936([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc5b37f,0x535e58fa^_0x2eb189);});}}_0x3b354b[_0xbae936([0x6f,0x6e])](_0xbae936([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xef881e,_0x47417c)=>{if(_0x47417c[0x0]!=_0x26a73a)return _0xc5cc27(_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47417c[0x1]={..._0x47417c[0x1],[_0xbae936([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51590c};},{[_0xbae936([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbae936([0x68,0x69,0x67,0x68])}),_0x3b354b[_0xbae936([0x6f,0x6e])](_0xbae936([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c07d1=>{_0x1270eb(_0x5c07d1[_0xbae936([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a2993=!0x0,_0x12d3f7(_0x5c07d1[_0xbae936([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xbae936([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbae936([0x6c,0x6f,0x77])}),_0x2a9928[_0xbae936([0x74,0x68,0x65,0x6e])](()=>{_0x4a2993||_0xc5cc27(_0xbae936([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x297cbf(){return _0x3b354b[_0xbae936([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbae936([0x76,0x69,0x65,0x77])][_0xbae936([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xbae936([0x61,0x75,0x74,0x6f]);}function _0x5ccdfe(){_0x3b354b[_0xbae936([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbae936([0x76,0x69,0x65,0x77])][_0xbae936([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbae936([0x61,0x75,0x74,0x6f]);}}function _0x12393b(_0x210b61){const _0x2c0c56=[new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5af363=>setTimeout(_0x5af363,0x5356b2f6^_0x2eb189)),_0x2a9928[_0xbae936([0x74,0x68,0x65,0x6e])](()=>new window[(_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2527f0=>{let _0x2bcb11=0x0;_0x3b354b[_0xbae936([0x6d,0x6f,0x64,0x65,0x6c])][_0xbae936([0x6f,0x6e])](_0xbae936([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4edf51,_0x4cb7e4)=>{_0x4cb7e4[0x0][_0xbae936([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2bcb11++,_0x2bcb11==(0x535f89d2^_0x2eb189)&&(_0x2527f0(),_0x4edf51[_0xbae936([0x6f,0x66,0x66])]());});}))];return window[_0xbae936([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbae936([0x72,0x61,0x63,0x65])](_0x2c0c56)[_0xbae936([0x74,0x68,0x65,0x6e])](()=>_0x210b61);}async function _0x4be7a8(){await _0x2a9928,_0x3b354b[_0xbae936([0x6d,0x6f,0x64,0x65,0x6c])][_0xbae936([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54b03b,_0x3b354b[_0xbae936([0x6d,0x6f,0x64,0x65,0x6c])][_0xbae936([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54b03b,_0x3b354b[_0xbae936([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xbae936([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b3507(_0x15f049){const _0x16b6c8=_0x34b6b1();_0x3b354b[_0x16b6c8]=_0xbae936([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15f049,_0x15f049!=_0xbae936([0x56,0x61,0x6c,0x69,0x64])&&_0x4be7a8();}function _0x34b6b1(){const _0x2f6a60=window[_0xbae936([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xbae936([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xbae936([0x6e,0x6f,0x77])]())[_0xbae936([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xbae936([0x2e]),'');let _0x4b68dc=_0xbae936([0x68]);for(let _0x29cf61=0x0;_0x29cf61<_0x2f6a60[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29cf61+=0x2){let _0x24526a=window[_0xbae936([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6a60[_0xbae936([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29cf61,_0x29cf61+0x2));_0x24526a>=_0x40b759[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24526a-=_0x40b759[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b68dc+=_0x40b759[_0x24526a];}return _0x4b68dc;}function _0x34a464(){const _0x208f35=_0x5325d0[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e]));if(0x3!=_0x208f35[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d59e2(_0x208f35[0x1]);function _0x3d59e2(_0x3d4197){const _0x507d64=_0x1d2af6(_0x3d4197);return _0x507d64&&_0x19f1df()?_0x507d64:null;function _0x19f1df(){const _0x1a78af=_0x507d64[_0xbae936([0x6a,0x74,0x69])],_0x4429bf=window[_0xbae936([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a78af[_0xbae936([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a78af[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10124f={..._0x507d64,[_0xbae936([0x6a,0x74,0x69])]:_0x1a78af[_0xbae936([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a78af[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10124f[_0xbae936([0x76,0x63])],_0x19ddfa(_0x10124f)==_0x4429bf;}}}async function _0x4d5270(){let _0x3f6077=!0x0;try{const _0x1a5d87=_0x5325d0[_0xbae936([0x73,0x70,0x6c,0x69,0x74])](_0xbae936([0x2e])),[_0x15fd0a,_0xd4af4b,_0x2ae952]=_0x1a5d87;return _0x3f7489(_0x15fd0a),await _0x30b3bc(_0x15fd0a,_0xd4af4b,_0x2ae952),_0x3f6077;}catch{return!0x1;}function _0x3f7489(_0x200b8c){const _0x338e12=_0x1d2af6(_0x200b8c);_0x338e12&&_0x338e12[_0xbae936([0x61,0x6c,0x67])]==_0xbae936([0x45,0x53,0x32,0x35,0x36])||(_0x3f6077=!0x1);}async function _0x30b3bc(_0x12bb50,_0x225ec9,_0x59c0e2){const _0x4e2681=window[_0xbae936([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xbae936([0x66,0x72,0x6f,0x6d])](_0x13e996(_0x59c0e2),_0x1a24f2=>_0x1a24f2[_0xbae936([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x200db3=new window[(_0xbae936([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xbae936([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x12bb50+_0xbae936([0x2e])+_0x225ec9),_0x311aaf=window[_0xbae936([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xbae936([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x311aaf)return;const _0x509646=await _0x311aaf[_0xbae936([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xbae936([0x6a,0x77,0x6b]),_0x5d1ab5,{[_0xbae936([0x6e,0x61,0x6d,0x65])]:_0xbae936([0x45,0x43,0x44,0x53,0x41]),[_0xbae936([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xbae936([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xbae936([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x311aaf[_0xbae936([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xbae936([0x6e,0x61,0x6d,0x65])]:_0xbae936([0x45,0x43,0x44,0x53,0x41]),[_0xbae936([0x68,0x61,0x73,0x68])]:{[_0xbae936([0x6e,0x61,0x6d,0x65])]:_0xbae936([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x509646,_0x4e2681,_0x200db3)||(_0x3f6077=!0x1);}}function _0x1d2af6(_0x16f234){return _0x16f234[_0xbae936([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xbae936([0x65,0x79]))?JSON[_0xbae936([0x70,0x61,0x72,0x73,0x65])](_0x13e996(_0x16f234)):null;}function _0x13e996(_0xae13c4){return window[_0xbae936([0x61,0x74,0x6f,0x62])](_0xae13c4[_0xbae936([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xbae936([0x2b]))[_0xbae936([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xbae936([0x2f])));}function _0x19ddfa(_0x805831){let _0x1c40ab=0x1505;function _0x3252e8(_0x403a5c){for(let _0x481d26=0x0;_0x481d26<_0x403a5c[_0xbae936([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x481d26++){const _0x27a529=_0x403a5c[_0xbae936([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x481d26);_0x1c40ab=(_0x1c40ab<<0x5)+_0x1c40ab+_0x27a529,_0x1c40ab&=_0x1c40ab;}}function _0x7e24c2(_0x16d608){Array[_0xbae936([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16d608)?_0x16d608[_0xbae936([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7e24c2):_0x16d608&&typeof _0x16d608==_0xbae936([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xbae936([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16d608)[_0xbae936([0x73,0x6f,0x72,0x74])]()[_0xbae936([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ec297,_0x18913e])=>{_0x3252e8(_0x2ec297),_0x7e24c2(_0x18913e);}):_0x3252e8(window[_0xbae936([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16d608));}return _0x7e24c2(_0x805831),_0x1c40ab>>>0x0;}function _0x38b02f(_0x27fe8b){return _0x27fe8b[_0xbae936([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xbae936([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xbae936([0x30]));}function _0x2d5a79(_0x42499b){return _0x42499b[_0xbae936([0x73,0x70,0x6c,0x69,0x74])]('')[_0xbae936([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xbae936([0x6a,0x6f,0x69,0x6e])]('');}function _0x54b03b(){}function _0xbae936(_0x266ae0){const _0x30ad81=_0x1f7d;return _0x266ae0[_0x30ad81(0x1ea)](_0x2aed03=>String[_0x30ad81(0x206)](_0x2aed03))[_0x30ad81(0x1cd)]('');}_0x1b3507(await _0x302cbd());}(this);}[_0x3c7a47(0x1dd)](){const _0x3d1c95=_0x3c7a47,_0xf1447e=this[_0x3d1c95(0x213)][_0x3d1c95(0x1d5)][_0x3d1c95(0x1ec)];_0xf1447e[_0x3d1c95(0x1c4)](_0x3d1c95(0x1f0))&&_0xf1447e[_0x3d1c95(0x201)](_0x3d1c95(0x1f0),{'allowAttributes':[_0x3d1c95(0x1e9)]}),_0xf1447e[_0x3d1c95(0x1c4)](_0x3d1c95(0x1fe))&&_0xf1447e[_0x3d1c95(0x201)](_0x3d1c95(0x1fe),{'allowAttributes':[_0x3d1c95(0x1e9)]});}[_0x3c7a47(0x1cf)](){const _0xee9c8b=_0x3c7a47,_0xe9b8e=this[_0xee9c8b(0x213)];_0xe9b8e[_0xee9c8b(0x20b)][_0xee9c8b(0x1da)](_0xee9c8b(0x1c6))[_0xee9c8b(0x1ee)]({'model':_0xee9c8b(0x1e9),'view':_0xee9c8b(0x1d7)}),_0xe9b8e[_0xee9c8b(0x20b)][_0xee9c8b(0x1da)](_0xee9c8b(0x202))[_0xee9c8b(0x204)]({'model':{'key':_0xee9c8b(0x1e9),'value':_0x27b17b=>_0x27b17b[_0xee9c8b(0x1d0)](_0xee9c8b(0x1d7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57fcf5=_0xe9b8e[_0xee9c8b(0x20e)][_0xee9c8b(0x203)](_0xee9c8b(0x20c));_0x57fcf5&&this[_0xee9c8b(0x1f3)](_0x57fcf5,_0xee9c8b(0x1c8),(_0x55cef7,[_0x2cf027,_0x699847])=>{const _0x15989e=_0xee9c8b;_0x2cf027[_0x15989e(0x1e6)](_0x15989e(0x1e9),_0x699847);});}[_0x3c7a47(0x1f5)](){const _0x1b6f45=_0x3c7a47,_0x3ac4da=this[_0x1b6f45(0x213)][_0x1b6f45(0x1c3)][_0x1b6f45(0x203)](_0x1b6f45(0x1e4))||{},_0x3b01c8=this[_0x1b6f45(0x213)][_0x1b6f45(0x1c3)][_0x1b6f45(0x203)](_0x1b6f45(0x1fa))||'';this[_0x1b6f45(0x212)]=_0x1401c7(_0x1ea4af[_0x1b6f45(0x1cb)],_0x1b6f45(0x1d9),{..._0x3ac4da,'pubkey':_0x3b01c8,'ctx-name':_0x1b6f45(0x1f8)+this[_0x1b6f45(0x20a)],'sourceList':'','imgOnly':_0x1b6f45(0x1ca),'removeCopyright':_0x1b6f45(0x1ca),'localeName':this[_0x1b6f45(0x213)][_0x1b6f45(0x209)][_0x1b6f45(0x1d4)],'externalSourcesEmbedCss':_0x1b6f45(0x1ef)}),this[_0x1b6f45(0x212)][_0x1b6f45(0x1fc)]=_0x1d2e9a=>{const _0x155bb4=_0x1b6f45;if(_0x155bb4(0x1e3)==_0x1d2e9a)return _0x155bb4(0x200);},_0x1ea4af[_0x1b6f45(0x1cb)][_0x1b6f45(0x1ff)][_0x1b6f45(0x1e2)](this[_0x1b6f45(0x212)]);}[_0x3c7a47(0x208)](){const _0x4e9390=_0x3c7a47;this[_0x4e9390(0x1d6)]=_0x1401c7(_0x1ea4af[_0x4e9390(0x1cb)],_0x4e9390(0x1d3),{'ctx-name':_0x4e9390(0x1f8)+this[_0x4e9390(0x20a)]}),_0x1ea4af[_0x4e9390(0x1cb)][_0x4e9390(0x1ff)][_0x4e9390(0x1e2)](this[_0x4e9390(0x1d6)]);}[_0x3c7a47(0x20d)](){const _0x205ccb=_0x3c7a47,_0x36ed0c=this[_0x205ccb(0x213)][_0x205ccb(0x20e)][_0x205ccb(0x203)](_0x205ccb(0x1f1));_0x36ed0c&&this[_0x205ccb(0x1f3)](_0x36ed0c,_0x205ccb(0x1e0),()=>{const _0x28e03e=_0x205ccb,_0x1905c9=this[_0x28e03e(0x213)][_0x28e03e(0x1d5)][_0x28e03e(0x1cb)][_0x28e03e(0x1de)][_0x28e03e(0x1c5)]();_0x1905c9&&_0x1905c9[_0x28e03e(0x1d0)](_0x28e03e(0x1e9))&&this[_0x28e03e(0x213)][_0x28e03e(0x216)][_0x28e03e(0x1e7)][_0x28e03e(0x1d1)](_0x28e03e(0x1c0),()=>{const _0x206e77=_0x28e03e;_0x4ae3b9(this[_0x206e77(0x213)],_0x1905c9);});});const _0x28a696=this[_0x205ccb(0x213)][_0x205ccb(0x20e)][_0x205ccb(0x203)](_0x205ccb(0x20f));_0x28a696&&this[_0x205ccb(0x1f3)](_0x28a696,_0x205ccb(0x1e0),()=>{const _0x22d137=_0x205ccb,_0x32b251=this[_0x22d137(0x213)][_0x22d137(0x1d5)][_0x22d137(0x1cb)][_0x22d137(0x1de)][_0x22d137(0x1c5)]();_0x32b251&&_0x32b251[_0x22d137(0x1d0)](_0x22d137(0x1e9))&&this[_0x22d137(0x213)][_0x22d137(0x216)][_0x22d137(0x1e7)][_0x22d137(0x1d1)](_0x22d137(0x1c0),()=>{const _0x47485e=_0x22d137;_0x4ae3b9(this[_0x47485e(0x213)],_0x32b251);});});}}
|
|
23
|
+
const _0x1bb90f=_0x94ce;(function(_0x45c59b,_0x317aa3){const _0x2f35a3=_0x94ce,_0x56f3cb=_0x45c59b();while(!![]){try{const _0x2b742d=-parseInt(_0x2f35a3(0x1a0))/0x1+-parseInt(_0x2f35a3(0x1b8))/0x2+-parseInt(_0x2f35a3(0x1bc))/0x3*(-parseInt(_0x2f35a3(0x1b9))/0x4)+-parseInt(_0x2f35a3(0x1c2))/0x5*(-parseInt(_0x2f35a3(0x192))/0x6)+parseInt(_0x2f35a3(0x1cf))/0x7*(-parseInt(_0x2f35a3(0x18a))/0x8)+parseInt(_0x2f35a3(0x1af))/0x9+parseInt(_0x2f35a3(0x1a8))/0xa;if(_0x2b742d===_0x317aa3)break;else _0x56f3cb['push'](_0x56f3cb['shift']());}catch(_0x22d8bf){_0x56f3cb['push'](_0x56f3cb['shift']());}}}(_0x3fa0,0xa22b7));import{Plugin as _0x56c8b0}from'ckeditor5/src/core.js';function _0x3fa0(){const _0x4a4070=['true','isPremiumPlugin','\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','data-uc-image-id','uploadcareImageReplace','685557OevUKx','upcast','uploadcare','_initImageProcessingIndicator','listenTo','configElement','get','isOfficialPlugin','map','1040700oyoEuX','12pNpHID','_configElement','view','353334WVHCHW','add','_initConfig','uc-config','schema','afterInit','255zHMoJM','contentLanguage','locale','attributeToAttribute','imageInline','input[uploadcare-file-input]','ucContextId','render','body','insertImage','join','uc-upload-ctx-provider','selection','15743KoxmqA','downcast','elementToAttribute','querySelector','remove','_initSchema','model','replaceImageSource','#uc-icon-arrow-down','commands','init','removeAttribute','config','imageBlock','extend','PictureEditing','1608hKueYI','isRegistered','UploadcareEditing','requires','execute','editor','_initCtx','uploadcare.pubkey','148098NcYdvf','uploadcareImageId','getSelectedElement','href','appendChild','document','pluginName','getAttribute','for','uploader-','fromCharCode','destroy','_ctxElement','once','1272876UNaVsq','cleanupImage','conversion','iconHrefResolver','closeMax','editing','_initConversion','ctxElement','12211820EFyULg'];_0x3fa0=function(){return _0x4a4070;};return _0x3fa0();}import{Dialog as _0x4c786f}from'ckeditor5/src/ui.js';import{createElement as _0x4f36d3,global as _0x28a20a,uid as _0x3d7141}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1200ac}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1d1e9b}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x447bb1}from'./utils/editingutils.js';function _0x94ce(_0x2a58a9,_0xd5898){const _0x3fa069=_0x3fa0();return _0x94ce=function(_0x94ce0a,_0xa69cf6){_0x94ce0a=_0x94ce0a-0x17e;let _0x449a16=_0x3fa069[_0x94ce0a];return _0x449a16;},_0x94ce(_0x2a58a9,_0xd5898);}export class UploadcareEditing extends _0x56c8b0{[_0x1bb90f(0x1ba)]=null;[_0x1bb90f(0x19e)]=null;static get[_0x1bb90f(0x198)](){const _0x242ab8=_0x1bb90f;return _0x242ab8(0x18c);}static get[_0x1bb90f(0x18d)](){const _0x218de6=_0x1bb90f;return[_0x218de6(0x189),_0x1d1e9b,_0x4c786f];}static get[_0x1bb90f(0x1b6)](){return!0x0;}static get[_0x1bb90f(0x1aa)](){return!0x0;}[_0x1bb90f(0x1c8)];get[_0x1bb90f(0x1b4)](){const _0x11e90e=_0x1bb90f;return this[_0x11e90e(0x1ba)];}get[_0x1bb90f(0x1a7)](){const _0x49a009=_0x1bb90f;return this[_0x49a009(0x19e)];}constructor(_0x314381){const _0x5c791a=_0x1bb90f;super(_0x314381),this[_0x5c791a(0x1c8)]=_0x3d7141();}[_0x1bb90f(0x184)](){const _0x41c63f=_0x1bb90f,_0x8c2723=this[_0x41c63f(0x18f)];_0x8c2723[_0x41c63f(0x183)][_0x41c63f(0x1bd)](_0x41c63f(0x1b1),new _0x1200ac(_0x8c2723));}[_0x1bb90f(0x1c1)](){const _0x42aeab=_0x1bb90f;this[_0x42aeab(0x17f)](),this[_0x42aeab(0x1a6)](),this[_0x42aeab(0x1be)](),this[_0x42aeab(0x190)](),this[_0x42aeab(0x1b2)](),this[_0x42aeab(0x1b3)](this[_0x42aeab(0x18f)],_0x42aeab(0x19d),()=>{const _0x5105c4=_0x42aeab;this[_0x5105c4(0x1ba)]&&(this[_0x5105c4(0x1ba)][_0x5105c4(0x17e)](),this[_0x5105c4(0x1ba)]=null),this[_0x5105c4(0x19e)]&&(this[_0x5105c4(0x19e)][_0x5105c4(0x17e)](),this[_0x5105c4(0x19e)]=null);const _0x4d8bc8=_0x28a20a[_0x5105c4(0x197)][_0x5105c4(0x1d2)](_0x5105c4(0x1c7));_0x4d8bc8&&_0x4d8bc8[_0x5105c4(0x17e)]();}),async function(_0x206a45){const _0x1f7888=_0x1596d2([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x293e9a=0x535f8c3a,_0x37a6dc=0x5358f082^_0x293e9a,_0x9fa9c4=window[_0x1596d2([0x44,0x61,0x74,0x65])][_0x1596d2([0x6e,0x6f,0x77])](),_0x2d187b=_0x206a45[_0x1596d2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57df79=new window[(_0x1596d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cf24a=>{_0x2d187b[_0x1596d2([0x6f,0x6e,0x63,0x65])](_0x1596d2([0x72,0x65,0x61,0x64,0x79]),_0x5cf24a);}),_0x4975e3={[_0x1596d2([0x6b,0x74,0x79])]:_0x1596d2([0x45,0x43]),[_0x1596d2([0x75,0x73,0x65])]:_0x1596d2([0x73,0x69,0x67]),[_0x1596d2([0x63,0x72,0x76])]:_0x1596d2([0x50,0x2d,0x32,0x35,0x36]),[_0x1596d2([0x78])]:_0x1596d2([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]),[_0x1596d2([0x79])]:_0x1596d2([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]),[_0x1596d2([0x61,0x6c,0x67])]:_0x1596d2([0x45,0x53,0x32,0x35,0x36])},_0x10c210=_0x2d187b[_0x1596d2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1596d2([0x67,0x65,0x74])](_0x1596d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41c65d(){let _0x5522df,_0x4f050f=null,_0x1f9337=null;try{if(_0x10c210==_0x1596d2([0x47,0x50,0x4c]))return _0x1596d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5522df=_0x101bcf(),!_0x5522df)return _0x1596d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5522df[_0x1596d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f9337=_0x50e4c9(_0x5522df[_0x1596d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5522df[_0x1596d2([0x6a,0x74,0x69])])),await _0x3eb8d0()?_0x3dda72()?_0x3b96a8()?_0x1596d2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23fb1a()?(_0x5522df[_0x1596d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1596d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f050f=_0x58b91c(_0x1596d2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5522df[_0x1596d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1596d2([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f050f=_0x58b91c(_0x1596d2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x198e74()):_0x1596d2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1596d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1596d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1596d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b96a8(){const _0x4095fe=[_0x1596d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1596d2([0x74,0x72,0x69,0x61,0x6c])][_0x1596d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5522df[_0x1596d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9fa9c4/0x3e8:0xe10*_0x37a6dc;return _0x5522df[_0x1596d2([0x65,0x78,0x70])]<_0x4095fe;}function _0x3dda72(){const _0x181d3f=_0x5522df[_0x1596d2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x181d3f&&(!!_0x181d3f[_0x1596d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1596d2([0x2a]))||!!_0x181d3f[_0x1596d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1596d2([0x55,0x50,0x4c,0x43])));}function _0x23fb1a(){const _0x30903e=_0x94ce,_0x9fc03a=_0x5522df[_0x1596d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9fc03a||0x0==_0x9fc03a[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x280c96}=new URL(window[_0x1596d2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x30903e(0x195)]);if(_0x9fc03a[_0x1596d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280c96))return!0x0;const _0x6c455d=_0x280c96[_0x1596d2([0x73,0x70,0x6c,0x69,0x74])](_0x1596d2([0x2e]));return _0x9fc03a[_0x1596d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x194203=>_0x194203[_0x1596d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1596d2([0x2a])))[_0x1596d2([0x6d,0x61,0x70])](_0x18a83a=>_0x18a83a[_0x1596d2([0x73,0x70,0x6c,0x69,0x74])](_0x1596d2([0x2e])))[_0x1596d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56c5bc=>_0x56c5bc[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6c455d[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1596d2([0x6d,0x61,0x70])](_0x58973e=>Array(_0x6c455d[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58973e[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1596d2([0x66,0x69,0x6c,0x6c])](_0x58973e[0x0]===_0x1596d2([0x2a])?_0x1596d2([0x2a]):'')[_0x1596d2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58973e))[_0x1596d2([0x73,0x6f,0x6d,0x65])](_0x31a58a=>_0x6c455d[_0x1596d2([0x65,0x76,0x65,0x72,0x79])]((_0x4a2940,_0x334916)=>_0x31a58a[_0x334916]===_0x4a2940||_0x31a58a[_0x334916]===_0x1596d2([0x2a])));}function _0x198e74(){return _0x4f050f&&_0x1f9337?new window[(_0x1596d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbec109,_0x193461)=>{_0x4f050f[_0x1596d2([0x74,0x68,0x65,0x6e])](_0xbec109,_0x193461),_0x1f9337[_0x1596d2([0x74,0x68,0x65,0x6e])](_0x5aa099=>{_0x5aa099!=_0x1596d2([0x56,0x61,0x6c,0x69,0x64])&&_0xbec109(_0x5aa099);},_0x193461);}):_0x4f050f||_0x1f9337||_0x1596d2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50e4c9(_0x4680c7,_0x123b33){return new window[(_0x1596d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b4da3=>{if(_0x354650())return _0x1b4da3(_0x1596d2([0x56,0x61,0x6c,0x69,0x64]));_0x5ee844(),_0x2d187b[_0x1596d2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1596d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c02b3=!0x1;const _0x37d4d2=_0x3d7141();function _0x3f3dc5(_0xa59ea0){return!!_0xa59ea0&&(typeof _0xa59ea0===_0x1596d2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa59ea0===_0x1596d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa59ea0[_0x1596d2([0x74,0x68,0x65,0x6e])]===_0x1596d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa59ea0[_0x1596d2([0x63,0x61,0x74,0x63,0x68])]===_0x1596d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x405df7(_0xa6415d){_0x5336fd(_0xa6415d)[_0x1596d2([0x74,0x68,0x65,0x6e])](_0xcb54f5=>{if(!_0xcb54f5||_0xcb54f5[_0x1596d2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1596d2([0x6f,0x6b]))return _0x1596d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xfdef85(_0x35497(_0x37d4d2+_0x123b33))!=_0xcb54f5[_0x1596d2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1596d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1596d2([0x56,0x61,0x6c,0x69,0x64]);})[_0x1596d2([0x74,0x68,0x65,0x6e])](_0xabe9cc=>(_0xa3366a(),_0xabe9cc),()=>{const _0x557df2=_0xa2a925();return null==_0x557df2?(_0xa3366a(),_0x1596d2([0x56,0x61,0x6c,0x69,0x64])):_0x1596d2(_0x9fa9c4-_0x557df2>(0x7753083a^_0x293e9a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1596d2([0x74,0x68,0x65,0x6e])](_0x1b4da3)[_0x1596d2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b4da3(_0x1596d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x922953=0x536962ba^_0x293e9a;function _0xa3366a(){const _0x3be0af=_0x1596d2([0x6c,0x6c,0x63,0x74,0x2d])+_0xfdef85(_0x35497(_0x4680c7)),_0x592bb2=_0x4111ca(_0xfdef85(window[_0x1596d2([0x4d,0x61,0x74,0x68])][_0x1596d2([0x63,0x65,0x69,0x6c])](_0x9fa9c4/_0x922953)));window[_0x1596d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1596d2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3be0af,_0x592bb2);}function _0xa2a925(){const _0x47595f=_0x1596d2([0x6c,0x6c,0x63,0x74,0x2d])+_0xfdef85(_0x35497(_0x4680c7)),_0x290cef=window[_0x1596d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1596d2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47595f);return _0x290cef?window[_0x1596d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4111ca(_0x290cef),0x10)*_0x922953:null;}function _0x5336fd(_0x5f33ed){return new window[(_0x1596d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c0ef3,_0x46c9ee)=>{_0x5f33ed[_0x1596d2([0x74,0x68,0x65,0x6e])](_0x5c0ef3,_0x46c9ee),window[_0x1596d2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46c9ee,0x535e58fa^_0x293e9a);});}}_0x2d187b[_0x1596d2([0x6f,0x6e])](_0x1596d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c3bf4,_0x1e1e8f)=>{if(_0x1e1e8f[0x0]!=_0x4680c7)return _0x1b4da3(_0x1596d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1e1e8f[0x1]={..._0x1e1e8f[0x1],[_0x1596d2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37d4d2};},{[_0x1596d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1596d2([0x68,0x69,0x67,0x68])}),_0x2d187b[_0x1596d2([0x6f,0x6e])](_0x1596d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47b430=>{_0x3f3dc5(_0x47b430[_0x1596d2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c02b3=!0x0,_0x405df7(_0x47b430[_0x1596d2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1596d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1596d2([0x6c,0x6f,0x77])}),_0x57df79[_0x1596d2([0x74,0x68,0x65,0x6e])](()=>{_0x1c02b3||_0x1b4da3(_0x1596d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x354650(){return _0x2d187b[_0x1596d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1596d2([0x76,0x69,0x65,0x77])][_0x1596d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1596d2([0x61,0x75,0x74,0x6f]);}function _0x5ee844(){_0x2d187b[_0x1596d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1596d2([0x76,0x69,0x65,0x77])][_0x1596d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1596d2([0x61,0x75,0x74,0x6f]);}}function _0x58b91c(_0x3944ae){const _0x4adb05=[new window[(_0x1596d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9e923d=>setTimeout(_0x9e923d,0x5356b2f6^_0x293e9a)),_0x57df79[_0x1596d2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1596d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40211f=>{let _0x5eee55=0x0;_0x2d187b[_0x1596d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1596d2([0x6f,0x6e])](_0x1596d2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x513d05,_0x260bc2)=>{_0x260bc2[0x0][_0x1596d2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5eee55++,_0x5eee55==(0x535f89d2^_0x293e9a)&&(_0x40211f(),_0x513d05[_0x1596d2([0x6f,0x66,0x66])]());});}))];return window[_0x1596d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1596d2([0x72,0x61,0x63,0x65])](_0x4adb05)[_0x1596d2([0x74,0x68,0x65,0x6e])](()=>_0x3944ae);}async function _0x1ebdb2(){await _0x57df79,_0x2d187b[_0x1596d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1596d2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd233c3,_0x2d187b[_0x1596d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1596d2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd233c3,_0x2d187b[_0x1596d2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1596d2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d6fa7(_0x2f2267){const _0xe9a36b=_0x128749();_0x2d187b[_0xe9a36b]=_0x1596d2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f2267,_0x2f2267!=_0x1596d2([0x56,0x61,0x6c,0x69,0x64])&&_0x1ebdb2();}function _0x128749(){const _0x59f810=window[_0x1596d2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1596d2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1596d2([0x6e,0x6f,0x77])]())[_0x1596d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1596d2([0x2e]),'');let _0x5cfb29=_0x1596d2([0x68]);for(let _0x17fd4f=0x0;_0x17fd4f<_0x59f810[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17fd4f+=0x2){let _0x4a6f8b=window[_0x1596d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59f810[_0x1596d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17fd4f,_0x17fd4f+0x2));_0x4a6f8b>=_0x1f7888[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a6f8b-=_0x1f7888[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5cfb29+=_0x1f7888[_0x4a6f8b];}return _0x5cfb29;}function _0x101bcf(){const _0xc87a0a=_0x10c210[_0x1596d2([0x73,0x70,0x6c,0x69,0x74])](_0x1596d2([0x2e]));if(0x3!=_0xc87a0a[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc60a81(_0xc87a0a[0x1]);function _0xc60a81(_0xf51e2c){const _0x1880b3=_0x36891d(_0xf51e2c);return _0x1880b3&&_0x413b3f()?_0x1880b3:null;function _0x413b3f(){const _0x1ef134=_0x1880b3[_0x1596d2([0x6a,0x74,0x69])],_0x4896a9=window[_0x1596d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ef134[_0x1596d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ef134[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d5163={..._0x1880b3,[_0x1596d2([0x6a,0x74,0x69])]:_0x1ef134[_0x1596d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ef134[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d5163[_0x1596d2([0x76,0x63])],_0x35497(_0x2d5163)==_0x4896a9;}}}async function _0x3eb8d0(){let _0x32ddf9=!0x0;try{const _0x4f91f6=_0x10c210[_0x1596d2([0x73,0x70,0x6c,0x69,0x74])](_0x1596d2([0x2e])),[_0x3412ed,_0x302cef,_0xdf3847]=_0x4f91f6;return _0x58db41(_0x3412ed),await _0x4e6c76(_0x3412ed,_0x302cef,_0xdf3847),_0x32ddf9;}catch{return!0x1;}function _0x58db41(_0x3bbf3c){const _0x5c7a57=_0x36891d(_0x3bbf3c);_0x5c7a57&&_0x5c7a57[_0x1596d2([0x61,0x6c,0x67])]==_0x1596d2([0x45,0x53,0x32,0x35,0x36])||(_0x32ddf9=!0x1);}async function _0x4e6c76(_0x288760,_0x1d2fed,_0x3bba45){const _0x289786=window[_0x1596d2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1596d2([0x66,0x72,0x6f,0x6d])](_0x38672d(_0x3bba45),_0x54ee7=>_0x54ee7[_0x1596d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32630d=new window[(_0x1596d2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1596d2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x288760+_0x1596d2([0x2e])+_0x1d2fed),_0x1ade67=window[_0x1596d2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1596d2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ade67)return;const _0x4e9f94=await _0x1ade67[_0x1596d2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1596d2([0x6a,0x77,0x6b]),_0x4975e3,{[_0x1596d2([0x6e,0x61,0x6d,0x65])]:_0x1596d2([0x45,0x43,0x44,0x53,0x41]),[_0x1596d2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1596d2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1596d2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ade67[_0x1596d2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1596d2([0x6e,0x61,0x6d,0x65])]:_0x1596d2([0x45,0x43,0x44,0x53,0x41]),[_0x1596d2([0x68,0x61,0x73,0x68])]:{[_0x1596d2([0x6e,0x61,0x6d,0x65])]:_0x1596d2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e9f94,_0x289786,_0x32630d)||(_0x32ddf9=!0x1);}}function _0x36891d(_0x128f6d){return _0x128f6d[_0x1596d2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1596d2([0x65,0x79]))?JSON[_0x1596d2([0x70,0x61,0x72,0x73,0x65])](_0x38672d(_0x128f6d)):null;}function _0x38672d(_0x3d36c2){return window[_0x1596d2([0x61,0x74,0x6f,0x62])](_0x3d36c2[_0x1596d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1596d2([0x2b]))[_0x1596d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1596d2([0x2f])));}function _0x35497(_0x443f1c){let _0x2bb4ea=0x1505;function _0x8b55e(_0xe972d0){for(let _0x2d7659=0x0;_0x2d7659<_0xe972d0[_0x1596d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d7659++){const _0x213d8=_0xe972d0[_0x1596d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d7659);_0x2bb4ea=(_0x2bb4ea<<0x5)+_0x2bb4ea+_0x213d8,_0x2bb4ea&=_0x2bb4ea;}}function _0x50d5a7(_0x2120f0){Array[_0x1596d2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2120f0)?_0x2120f0[_0x1596d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50d5a7):_0x2120f0&&typeof _0x2120f0==_0x1596d2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1596d2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2120f0)[_0x1596d2([0x73,0x6f,0x72,0x74])]()[_0x1596d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x48d882,_0x3cee81])=>{_0x8b55e(_0x48d882),_0x50d5a7(_0x3cee81);}):_0x8b55e(window[_0x1596d2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2120f0));}return _0x50d5a7(_0x443f1c),_0x2bb4ea>>>0x0;}function _0xfdef85(_0x24f46c){return _0x24f46c[_0x1596d2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1596d2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1596d2([0x30]));}function _0x4111ca(_0x3a637){return _0x3a637[_0x1596d2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1596d2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1596d2([0x6a,0x6f,0x69,0x6e])]('');}function _0xd233c3(){}function _0x1596d2(_0x511970){const _0x5385e9=_0x94ce;return _0x511970[_0x5385e9(0x1b7)](_0x2bc3e8=>String[_0x5385e9(0x19c)](_0x2bc3e8))[_0x5385e9(0x1cc)]('');}_0x2d6fa7(await _0x41c65d());}(this);}[_0x1bb90f(0x17f)](){const _0x4e24ba=_0x1bb90f,_0x5bc963=this[_0x4e24ba(0x18f)][_0x4e24ba(0x180)][_0x4e24ba(0x1c0)];_0x5bc963[_0x4e24ba(0x18b)](_0x4e24ba(0x187))&&_0x5bc963[_0x4e24ba(0x188)](_0x4e24ba(0x187),{'allowAttributes':[_0x4e24ba(0x193)]}),_0x5bc963[_0x4e24ba(0x18b)](_0x4e24ba(0x1c6))&&_0x5bc963[_0x4e24ba(0x188)](_0x4e24ba(0x1c6),{'allowAttributes':[_0x4e24ba(0x193)]});}[_0x1bb90f(0x1a6)](){const _0x603974=_0x1bb90f,_0x40b5de=this[_0x603974(0x18f)];_0x40b5de[_0x603974(0x1a2)][_0x603974(0x19a)](_0x603974(0x1d0))[_0x603974(0x1c5)]({'model':_0x603974(0x193),'view':_0x603974(0x1ad)}),_0x40b5de[_0x603974(0x1a2)][_0x603974(0x19a)](_0x603974(0x1b0))[_0x603974(0x1d1)]({'model':{'key':_0x603974(0x193),'value':_0x4cb68a=>_0x4cb68a[_0x603974(0x199)](_0x603974(0x1ad))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2152ed=_0x40b5de[_0x603974(0x183)][_0x603974(0x1b5)](_0x603974(0x181));_0x2152ed&&this[_0x603974(0x1b3)](_0x2152ed,_0x603974(0x1a1),(_0x8d5fe6,[_0x3cd6d3,_0x301a5c])=>{const _0x4a752f=_0x603974;_0x3cd6d3[_0x4a752f(0x185)](_0x4a752f(0x193),_0x301a5c);});}[_0x1bb90f(0x1be)](){const _0x5d81e7=_0x1bb90f,_0x4f1706=this[_0x5d81e7(0x18f)][_0x5d81e7(0x186)][_0x5d81e7(0x1b5)](_0x5d81e7(0x1ac))||{},_0x1b9b3a=this[_0x5d81e7(0x18f)][_0x5d81e7(0x186)][_0x5d81e7(0x1b5)](_0x5d81e7(0x191))||'';this[_0x5d81e7(0x1ba)]=_0x4f36d3(_0x28a20a[_0x5d81e7(0x197)],_0x5d81e7(0x1bf),{..._0x4f1706,'pubkey':_0x1b9b3a,'ctx-name':_0x5d81e7(0x19b)+this[_0x5d81e7(0x1c8)],'sourceList':'','imgOnly':_0x5d81e7(0x1a9),'removeCopyright':_0x5d81e7(0x1a9),'localeName':this[_0x5d81e7(0x18f)][_0x5d81e7(0x1c4)][_0x5d81e7(0x1c3)],'externalSourcesEmbedCss':_0x5d81e7(0x1ab)}),this[_0x5d81e7(0x1ba)][_0x5d81e7(0x1a3)]=_0x352d8f=>{const _0x3a05e9=_0x5d81e7;if(_0x3a05e9(0x1a4)==_0x352d8f)return _0x3a05e9(0x182);},_0x28a20a[_0x5d81e7(0x197)][_0x5d81e7(0x1ca)][_0x5d81e7(0x196)](this[_0x5d81e7(0x1ba)]);}[_0x1bb90f(0x190)](){const _0x311401=_0x1bb90f;this[_0x311401(0x19e)]=_0x4f36d3(_0x28a20a[_0x311401(0x197)],_0x311401(0x1cd),{'ctx-name':_0x311401(0x19b)+this[_0x311401(0x1c8)]}),_0x28a20a[_0x311401(0x197)][_0x311401(0x1ca)][_0x311401(0x196)](this[_0x311401(0x19e)]);}[_0x1bb90f(0x1b2)](){const _0x5b4490=_0x1bb90f,_0x22211d=this[_0x5b4490(0x18f)][_0x5b4490(0x183)][_0x5b4490(0x1b5)](_0x5b4490(0x1cb));_0x22211d&&this[_0x5b4490(0x1b3)](_0x22211d,_0x5b4490(0x18e),()=>{const _0x480233=_0x5b4490,_0x395019=this[_0x480233(0x18f)][_0x480233(0x180)][_0x480233(0x197)][_0x480233(0x1ce)][_0x480233(0x194)]();_0x395019&&_0x395019[_0x480233(0x199)](_0x480233(0x193))&&this[_0x480233(0x18f)][_0x480233(0x1a5)][_0x480233(0x1bb)][_0x480233(0x19f)](_0x480233(0x1c9),()=>{const _0x4e9b2c=_0x480233;_0x447bb1(this[_0x4e9b2c(0x18f)],_0x395019);});});const _0x1cfb57=this[_0x5b4490(0x18f)][_0x5b4490(0x183)][_0x5b4490(0x1b5)](_0x5b4490(0x1ae));_0x1cfb57&&this[_0x5b4490(0x1b3)](_0x1cfb57,_0x5b4490(0x18e),()=>{const _0x4b846c=_0x5b4490,_0x3a601b=this[_0x4b846c(0x18f)][_0x4b846c(0x180)][_0x4b846c(0x197)][_0x4b846c(0x1ce)][_0x4b846c(0x194)]();_0x3a601b&&_0x3a601b[_0x4b846c(0x199)](_0x4b846c(0x193))&&this[_0x4b846c(0x18f)][_0x4b846c(0x1a5)][_0x4b846c(0x1bb)][_0x4b846c(0x19f)](_0x4b846c(0x1c9),()=>{const _0x6dcc5f=_0x4b846c;_0x447bb1(this[_0x6dcc5f(0x18f)],_0x3a601b);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1cde56,ObservableMixin as _0x51893d}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2794b1}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x46d481}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xc3fb89}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x194f7f}from'../../utils/uploadutils.js';import{getImageUrls as _0x40490d,getImageDimension as _0x4f0d6c}from'../../utils/editingutils.js';import{isAncestor as _0x33363a}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x51893d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x347503,_0x21dae8,_0x20c57f){super(),this['_editor']=_0x347503,this['_dialog']=_0x21dae8,this['_imageElement']=_0x20c57f,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 _0x31ea41=this['_imageElement'],_0xacf8c0=_0x31ea41['getAttribute']('uploadcareImageId'),_0xec290a=_0x31ea41['getAttribute']('src');if(_0xacf8c0)await this['_loadImageInfo'](_0xacf8c0,_0xec290a);else{if(this['_imageCache']['has'](_0xec290a)){const _0x33cd21=this['_imageCache']['get'](_0xec290a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33cd21['url'],this['imageDimension']=_0x33cd21['dimension'],this['imageId']=_0x33cd21['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5e7837}=this['_editor'],t=_0x5e7837['t'],_0x4d8a6=new _0xc3fb89(_0x5e7837,this['imageStatus'],this['_attributes']);_0x4d8a6['bind']('status')['to'](this,'imageStatus'),_0x4d8a6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4d8a6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4d8a6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4d8a6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x46d481,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4d8a6,'position':_0x2794b1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4d8a6['focus']();},'onHide':()=>{_0x4d8a6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x159af2=>!_0x33363a(_0x159af2,_0x4d8a6['element'])}});}['_loadImageInfo'](_0x2ce706,_0x4a65d5){return _0x194f7f['getInfo'](_0x2ce706,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x43744d=>{const {width:_0x2f7133,height:_0xb94904}=_0x43744d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a65d5,this['imageDimension']={'width':_0x2f7133,'height':_0xb94904},this['imageId']=_0x2ce706;})['catch'](_0x19a9d4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19a9d4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x505f20,_0x28e7e8){return this['_getImageAsFile'](_0x505f20)['then'](_0x31a2ae=>_0x194f7f['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':_0x28e7e8['signal'],'file':_0x31a2ae,'onProgress':_0x171771=>{_0x171771&&_0x171771['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x171771['value']));}}))['then'](_0x453809=>{const {width:_0x575da5,height:_0x42ccdd}=_0x453809['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x453809['cdnUrl'],this['imageDimension']={'width':_0x575da5,'height':_0x42ccdd},this['imageId']=_0x453809['uuid'],this['imageUploadProgress']=null;const _0x57e2ee=_0x505f20['getAttribute']('src');this['_imageCache']['set'](_0x57e2ee,{'id':_0x453809['uuid'],'url':_0x453809['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3c5ec8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3c5ec8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x27196c,_0x25f6cb){_0x27196c['on']('apply',(_0x3159cd,_0x40d780)=>{this['_replaceImage'](_0x25f6cb,_0x40d780['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x27196c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x27196c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4d67ee,_0x3ea7e9,_0x4e7a2e){const _0x50e473=this['_editor'],{width:_0x12a317,height:_0x56387e}=_0x4f0d6c(_0x3ea7e9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x435921,imageSources:_0x19c87b}=_0x40490d(_0x3ea7e9,_0x12a317);_0x50e473['model']['change'](_0x1be050=>{if('$graveyard'===_0x4d67ee['root']['rootName']){_0x50e473['execute']('insertImage',{'imageType':_0x4d67ee['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4d67ee['getAttributes']()),'uploadcareImageId':_0x4e7a2e,'src':_0x435921,'sources':_0x19c87b,'width':_0x12a317,'height':_0x56387e}});const _0x52d65d=_0x4d67ee['getChildren']();_0x4d67ee=_0x50e473['model']['document']['selection']['getSelectedElement']();for(const _0x574aaa of _0x52d65d)_0x1be050['append'](_0x1be050['cloneElement'](_0x574aaa),_0x4d67ee);}else _0x1be050['setSelection'](_0x4d67ee,'on'),_0x50e473['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4d67ee['getAttributes']()),'uploadcareImageId':_0x4e7a2e,'src':_0x435921,'sources':_0x19c87b,'width':_0x12a317,'height':_0x56387e},_0x4d67ee);_0x1be050['setSelection'](_0x4d67ee,'on');});}async['_getImageAsFile'](_0x4f3f2e){const _0x1632b8=_0x1cde56['window'],_0x50a711=_0x1cde56['document']['location']['href'],_0x32b6e9=new _0x1632b8['URL'](_0x4f3f2e['getAttribute']('src'),_0x50a711);if('data:'===_0x32b6e9['protocol']){const _0x2f58ed=_0x32b6e9['href']['split'](','),_0x1c0f1e=_0x2f58ed[0x0]['match'](/:(.*?);/)[0x1],_0x2b2841=_0x1c0f1e['split']('/')[0x1],_0xdcba80=_0x1632b8['atob'](_0x2f58ed[_0x2f58ed['length']-0x1]);let _0x4599b0=_0xdcba80['length'];const _0x31ec47=new _0x1632b8['Uint8Array'](_0x4599b0);for(;_0x4599b0--;)_0x31ec47[_0x4599b0]=_0xdcba80['charCodeAt'](_0x4599b0);return new _0x1632b8['File']([_0x31ec47],'image.'+_0x2b2841,{'type':_0x1c0f1e});}const _0x4cf317=_0x32b6e9['href']['split']('/'),_0x28a5f1=_0x4cf317[_0x4cf317['length']-0x1],_0x3af03e=_0x28a5f1['split']('.')[0x1];return _0x1632b8['fetch'](_0x32b6e9['href'])['then'](_0x34fcce=>_0x34fcce['clone']()['blob']())['then'](_0x4ed12a=>new _0x1632b8['File']([_0x4ed12a],_0x28a5f1,{'type':'image/'+_0x3af03e}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x37dcea,_0x420ded){const _0x1dc181=_0x5dce,_0x455b1b=_0x37dcea();while(!![]){try{const _0x21aa3d=-parseInt(_0x1dc181(0xb3))/0x1*(-parseInt(_0x1dc181(0xbc))/0x2)+parseInt(_0x1dc181(0xbe))/0x3*(parseInt(_0x1dc181(0xb1))/0x4)+parseInt(_0x1dc181(0xbf))/0x5+-parseInt(_0x1dc181(0xb7))/0x6+-parseInt(_0x1dc181(0xb6))/0x7+parseInt(_0x1dc181(0xaf))/0x8+-parseInt(_0x1dc181(0xbb))/0x9;if(_0x21aa3d===_0x420ded)break;else _0x455b1b['push'](_0x455b1b['shift']());}catch(_0x4a339b){_0x455b1b['push'](_0x455b1b['shift']());}}}(_0x1909,0xab6e2));function _0x5dce(_0x55d687,_0x38096e){const _0x1909dc=_0x1909();return _0x5dce=function(_0x5dceee,_0x4b0031){_0x5dceee=_0x5dceee-0xaf;let _0x5595db=_0x1909dc[_0x5dceee];return _0x5595db;},_0x5dce(_0x55d687,_0x38096e);}function _0x1909(){const _0x2cf81e=['uc-light','setTemplate','8635361wwNAJm','1608930LklmhO','ck-uploadcare-theme','uc-cloud-image-editor','image-edit','8376120nNDgtD','8cxqAKG','bindTemplate','3570ScvMIv','5246360lplERw','3806576ACAdqO','imageSrc','1156xnzebo','set','316408EcXnXc'];_0x1909=function(){return _0x2cf81e;};return _0x1909();}import{View as _0x129360}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x129360{constructor(_0x409a3a,_0x199ed6){const _0x56eecf=_0x5dce;super(_0x409a3a);const _0xf8d651=this[_0x56eecf(0xbd)];this[_0x56eecf(0xb2)](_0x56eecf(0xb0),''),this[_0x56eecf(0xb5)]({'tag':_0x56eecf(0xb9),'attributes':{..._0x199ed6,'class':[_0x56eecf(0xb4),_0x56eecf(0xb8)],'ctx-name':_0x56eecf(0xba),'cdn-url':_0xf8d651['to'](_0x56eecf(0xb0))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x5e7d41}from'ckeditor5/src/icons.js';import{ButtonView as _0x16eafc,IconView as _0x2fb939,View as _0x1f88a3}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1f88a3{constructor(_0x1d90d3){super(_0x1d90d3);const t=_0x1d90d3['t'];this['set']('errorType',null);const _0x20ff1c=new _0x16eafc(_0x1d90d3);_0x20ff1c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x20ff1c['withText']=!0x0,_0x20ff1c['class']='ck-button-action',_0x20ff1c['on']('execute',()=>{this['fire']('retry');}),_0x20ff1c['bind']('isVisible')['to'](this,'errorType',_0x32b63e=>'NotFound'!==_0x32b63e);const _0x395d00=new _0x2fb939();_0x395d00['content']=_0x5e7d41,_0x395d00['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x581835=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':[_0x395d00,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x581835['to']('errorType',_0x360cdc=>t('NotFound'!==_0x360cdc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x20ff1c]},{'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 _0x45fff5,View as _0x17fa49}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x17fa49{constructor(_0x2c5971){super(_0x2c5971);const t=_0x2c5971['t'],_0x1a27e4=this['bindTemplate'],_0x638b89=new _0x45fff5();_0x638b89['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':[_0x638b89,{'text':_0x1a27e4['to']('imageUploadProgress',_0x43b8d1=>t('Loading\x20image...')+'\x20('+(_0x43b8d1||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
|
+
function _0x569f(_0x588e2e,_0x1f94ad){const _0x4eac49=_0x4eac();return _0x569f=function(_0x569f20,_0x200c1d){_0x569f20=_0x569f20-0x128;let _0x10ddab=_0x4eac49[_0x569f20];return _0x10ddab;},_0x569f(_0x588e2e,_0x1f94ad);}const _0x3135fb=_0x569f;(function(_0x45f051,_0x5127d6){const _0x2969bb=_0x569f,_0x46f144=_0x45f051();while(!![]){try{const _0x219b7b=parseInt(_0x2969bb(0x14c))/0x1*(parseInt(_0x2969bb(0x12f))/0x2)+-parseInt(_0x2969bb(0x12b))/0x3*(parseInt(_0x2969bb(0x14f))/0x4)+-parseInt(_0x2969bb(0x154))/0x5+parseInt(_0x2969bb(0x14e))/0x6+-parseInt(_0x2969bb(0x143))/0x7+parseInt(_0x2969bb(0x159))/0x8+-parseInt(_0x2969bb(0x13f))/0x9*(-parseInt(_0x2969bb(0x130))/0xa);if(_0x219b7b===_0x5127d6)break;else _0x46f144['push'](_0x46f144['shift']());}catch(_0x427143){_0x46f144['push'](_0x46f144['shift']());}}}(_0x4eac,0x4ab5d));import{View as _0xa8b439}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x41c0c6}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1c3f43}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x17b54a}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1b873f}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x4eac(){const _0x36b84d=['element','6ePOqbM','setTemplate','disconnect','render','894858eJVdYJ','1686410lyDgvv','uploading','div','uc-cloud-image-editor','once','cdnUrl','fire','error','filter','add','length','cancel','querySelector','_loadingView','focus','36GYBXXB','clear','set','addedNodes','392504jisGUj','_addUploadcareImageEditorListeners','addEventListener','change:status','_editingView','_waitForImageEditorComponent','_errorView','ck-uploadcare-form','ck-reset_all-excluded','1owjNXB','_addErrorViewListeners','928716uzMwFp','935024upfSwf','_setView','_focusableView','observe','nodeName','2688590nmeQpr','toLowerCase','createCollection','detail','addMany','724288kTbuLy','getFocusableElement','retry','_items','apply','status','target','ready'];_0x4eac=function(){return _0x36b84d;};return _0x4eac();}export class UploadcareImageEditFormView extends _0x1b873f{[_0x3135fb(0x15c)];[_0x3135fb(0x13d)];[_0x3135fb(0x149)];[_0x3135fb(0x147)];[_0x3135fb(0x151)];constructor(_0x181e50,_0x284dba,_0x1c5de2){const _0x1b96fe=_0x3135fb;super(_0x181e50),this[_0x1b96fe(0x15c)]=this[_0x1b96fe(0x156)](),this[_0x1b96fe(0x13d)]=new _0x41c0c6(_0x181e50),this[_0x1b96fe(0x149)]=new _0x1c3f43(_0x181e50),this[_0x1b96fe(0x147)]=new _0x17b54a(_0x181e50,_0x1c5de2),this[_0x1b96fe(0x151)]=new _0xa8b439(_0x181e50),this[_0x1b96fe(0x151)][_0x1b96fe(0x12c)](this[_0x1b96fe(0x15a)]()),this[_0x1b96fe(0x141)](_0x1b96fe(0x15e),_0x284dba),this[_0x1b96fe(0x12c)]({'tag':_0x1b96fe(0x132),'attributes':{'class':['ck',_0x1b96fe(0x14b),_0x1b96fe(0x14a)],'tabindex':'-1'},'children':this[_0x1b96fe(0x15c)]}),this[_0x1b96fe(0x150)](),this[_0x1b96fe(0x134)](_0x1b96fe(0x12e),()=>{const _0x1b97e3=_0x1b96fe;this[_0x1b97e3(0x148)](this[_0x1b97e3(0x12a)],_0x498f1b=>{const _0xd2be0b=_0x1b97e3;this[_0xd2be0b(0x144)](_0x498f1b);});}),this['on'](_0x1b96fe(0x146),()=>{const _0x5a7036=_0x1b96fe;this[_0x5a7036(0x150)]();}),this[_0x1b96fe(0x14d)]();}[_0x3135fb(0x13e)](){const _0x1b5f89=_0x3135fb;this[_0x1b5f89(0x12a)][_0x1b5f89(0x13e)]();}[_0x3135fb(0x150)](){const _0xe57fc1=_0x3135fb;switch(this[_0xe57fc1(0x15c)][_0xe57fc1(0x140)](),this[_0xe57fc1(0x15e)]){case _0xe57fc1(0x131):this[_0xe57fc1(0x15c)][_0xe57fc1(0x139)](this[_0xe57fc1(0x13d)]);break;case _0xe57fc1(0x137):this[_0xe57fc1(0x15c)][_0xe57fc1(0x139)](this[_0xe57fc1(0x149)]);break;case _0xe57fc1(0x129):this[_0xe57fc1(0x15c)][_0xe57fc1(0x158)]([this[_0xe57fc1(0x147)],this[_0xe57fc1(0x151)]]);}}[_0x3135fb(0x148)](_0x5e2c4b,_0x5d18a0){const _0x46565e=_0x3135fb,_0x3f6fa2=_0x46565e(0x133),_0x1058fa=_0x5e2c4b[_0x46565e(0x13c)](_0x3f6fa2);if(_0x1058fa)return _0x5d18a0(_0x1058fa);const _0x4906e0=new MutationObserver(_0x4ae6bc=>{const _0xad5cdd=_0x46565e,_0x2a62ab=_0x4ae6bc[_0xad5cdd(0x138)](_0x3d39f6=>_0x3d39f6[_0xad5cdd(0x128)]===_0x5e2c4b&&_0x3d39f6[_0xad5cdd(0x142)][_0xad5cdd(0x13a)]>0x0&&_0x3d39f6[_0xad5cdd(0x142)][0x0][_0xad5cdd(0x153)][_0xad5cdd(0x155)]()===_0x3f6fa2);_0x2a62ab[_0xad5cdd(0x13a)]&&(_0x4906e0[_0xad5cdd(0x12d)](),_0x5d18a0(_0x2a62ab[0x0][_0xad5cdd(0x142)][0x0]));});_0x4906e0[_0x46565e(0x152)](_0x5e2c4b,{'childList':!0x0,'subtree':!0x0});}[_0x3135fb(0x144)](_0x50452f){const _0x42d745=_0x3135fb;_0x50452f[_0x42d745(0x145)](_0x42d745(0x15d),_0x2b0be1=>{const _0x524ffc=_0x42d745;this[_0x524ffc(0x136)](_0x524ffc(0x15d),{'imageSrc':_0x2b0be1[_0x524ffc(0x157)][_0x524ffc(0x135)]});}),_0x50452f[_0x42d745(0x145)](_0x42d745(0x13b),()=>{const _0x315d8f=_0x42d745;this[_0x315d8f(0x136)](_0x315d8f(0x13b));});}[_0x3135fb(0x14d)](){const _0xc9367c=_0x3135fb;this[_0xc9367c(0x149)]['on'](_0xc9367c(0x15b),()=>{const _0x4a010d=_0xc9367c;this[_0x4a010d(0x136)](_0x4a010d(0x15b));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x293c(_0x5381e9,_0x8cab08){const _0x3679ba=_0x3679();return _0x293c=function(_0x293cfb,_0x25559e){_0x293cfb=_0x293cfb-0x83;let _0x204348=_0x3679ba[_0x293cfb];return _0x204348;},_0x293c(_0x5381e9,_0x8cab08);}const _0x4c6e72=_0x293c;(function(_0xe4f3b7,_0x278b15){const _0x4dbd6=_0x293c,_0x59567=_0xe4f3b7();while(!![]){try{const _0x34b644=parseInt(_0x4dbd6(0x83))/0x1*(-parseInt(_0x4dbd6(0x9c))/0x2)+-parseInt(_0x4dbd6(0x9d))/0x3+parseInt(_0x4dbd6(0x8f))/0x4+parseInt(_0x4dbd6(0xa2))/0x5*(parseInt(_0x4dbd6(0x9f))/0x6)+-parseInt(_0x4dbd6(0x8e))/0x7*(parseInt(_0x4dbd6(0x8a))/0x8)+parseInt(_0x4dbd6(0x84))/0x9+-parseInt(_0x4dbd6(0x88))/0xa;if(_0x34b644===_0x278b15)break;else _0x59567['push'](_0x59567['shift']());}catch(_0x3d354d){_0x59567['push'](_0x59567['shift']());}}}(_0x3679,0x985b7));import{Command as _0x37bcad}from'ckeditor5/src/core.js';function _0x3679(){const _0x33522f=['isActive','unbind','model','_isEditable','execute','plugins','imageEditController','bind','2ClBTYR','2005227yCJSTF','config','37458DiwPIl','imageInline','requires','430gMngZl','48686oHRsMa','9962343dWKHVF','refresh','getSelectedElement','document','3788180JPoEEh','editor','728rDfvZJ','uploadcare.allowExternalImagesEditing','selection','get','64309Cxhwjw','3648640twVyez','element','isEnabled','set','imageBlock'];_0x3679=function(){return _0x33522f;};return _0x3679();}import{Dialog as _0x1e4049}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x55cff5}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x401356}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x37bcad{[_0x4c6e72(0x9a)];static get[_0x4c6e72(0xa1)](){return[_0x1e4049];}[_0x4c6e72(0x97)];constructor(_0x4fc768){const _0x3c2a0a=_0x4c6e72;super(_0x4fc768),this[_0x3c2a0a(0x9a)]=void 0x0,this[_0x3c2a0a(0x97)]=_0x401356(_0x4fc768[_0x3c2a0a(0x9e)][_0x3c2a0a(0x8d)](_0x3c2a0a(0x8b))||[]),this[_0x3c2a0a(0x92)]({'isActive':!0x1});}[_0x4c6e72(0x85)](){const _0x54b986=_0x4c6e72,_0x26ab2c=this[_0x54b986(0x89)][_0x54b986(0x96)][_0x54b986(0x87)][_0x54b986(0x8c)][_0x54b986(0x86)]();this[_0x54b986(0x91)]=this[_0x54b986(0x97)](_0x26ab2c);}[_0x4c6e72(0x98)](){const _0x48d099=_0x4c6e72;this[_0x48d099(0x9a)]&&(this[_0x48d099(0x95)](_0x48d099(0x94)),this[_0x48d099(0x9a)]=void 0x0);const _0x1a0cc4=this[_0x48d099(0x89)][_0x48d099(0x96)][_0x48d099(0x87)][_0x48d099(0x8c)][_0x48d099(0x86)]();_0x1a0cc4&&(_0x1a0cc4['is'](_0x48d099(0x90),_0x48d099(0x93))||_0x1a0cc4['is'](_0x48d099(0x90),_0x48d099(0xa0)))&&(this[_0x48d099(0x9a)]=new _0x55cff5(this[_0x48d099(0x89)],this[_0x48d099(0x89)][_0x48d099(0x99)][_0x48d099(0x8d)](_0x1e4049),_0x1a0cc4),this[_0x48d099(0x9b)](_0x48d099(0x94))['to'](this[_0x48d099(0x9a)],_0x48d099(0x94)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4959de=_0x1d45;(function(_0x43a645,_0x532237){const _0x50a303=_0x1d45,_0x16067a=_0x43a645();while(!![]){try{const _0x5aac18=-parseInt(_0x50a303(0x11c))/0x1+-parseInt(_0x50a303(0x121))/0x2*(parseInt(_0x50a303(0x125))/0x3)+parseInt(_0x50a303(0x116))/0x4+-parseInt(_0x50a303(0x11f))/0x5*(parseInt(_0x50a303(0x11a))/0x6)+parseInt(_0x50a303(0x124))/0x7*(-parseInt(_0x50a303(0x114))/0x8)+parseInt(_0x50a303(0x11d))/0x9+-parseInt(_0x50a303(0x127))/0xa*(-parseInt(_0x50a303(0x117))/0xb);if(_0x5aac18===_0x532237)break;else _0x16067a['push'](_0x16067a['shift']());}catch(_0x34d69d){_0x16067a['push'](_0x16067a['shift']());}}}(_0x127b,0x8d340));import{Plugin as _0x3c6e1f}from'ckeditor5/src/core.js';import{Notification as _0x17eb45}from'ckeditor5/src/ui.js';function _0x127b(){const _0xd5eb0b=['pluginName','2415048qWnvwY','ImageEditing','1596164IGAXjo','4136JoniNo','isPremiumPlugin','commands','7854gTkewH','uploadcareImageEdit','709080MIhEOl','7267608FbXWBn','UploadcareImageEditEditing','2615qGIpoQ','init','6rznfkf','add','isOfficialPlugin','7eSgFPw','852849cFzyKm','requires','51070kxeFeS','ImageUtils','uploadcareImageReplace'];_0x127b=function(){return _0xd5eb0b;};return _0x127b();}function _0x1d45(_0x5f17ec,_0x247f4e){const _0x127b64=_0x127b();return _0x1d45=function(_0x1d45d2,_0x481461){_0x1d45d2=_0x1d45d2-0x113;let _0x3311fa=_0x127b64[_0x1d45d2];return _0x3311fa;},_0x1d45(_0x5f17ec,_0x247f4e);}import{UploadcareImageEditCommand as _0x5a981d}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x40a5b9}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2b8def}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3c6e1f{static get[_0x4959de(0x113)](){const _0x4b97be=_0x4959de;return _0x4b97be(0x11e);}static get[_0x4959de(0x126)](){const _0x4b98e5=_0x4959de;return[_0x2b8def,_0x17eb45,_0x4b98e5(0x128),_0x4b98e5(0x115)];}static get[_0x4959de(0x123)](){return!0x0;}static get[_0x4959de(0x118)](){return!0x0;}[_0x4959de(0x120)](){const _0x27ac92=_0x4959de,{editor:_0x508823}=this;_0x508823[_0x27ac92(0x119)][_0x27ac92(0x122)](_0x27ac92(0x11b),new _0x5a981d(_0x508823)),_0x508823[_0x27ac92(0x119)][_0x27ac92(0x122)](_0x27ac92(0x129),new _0x40a5b9(_0x508823));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xffd8aa}from'ckeditor5/src/core.js';import{ButtonView as _0xd84876}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x21ab7b}from'ckeditor5/src/icons.js';import{createElement as _0x1df8e9}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 _0xffd8aa{['_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 _0x55e2cf=this['editor'];_0x55e2cf['ui']['componentFactory']['add']('uploadcareImageEdit',_0x492230=>{const _0x5e0b71=_0x55e2cf['commands']['get']('uploadcareImageEdit'),_0x51ed45=new _0xd84876(_0x492230),t=_0x492230['t'];return _0x51ed45['set']({'icon':_0x21ab7b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x51ed45['bind']('isEnabled')['to'](_0x5e0b71),_0x51ed45['bind']('isOn')['to'](_0x5e0b71,'isActive'),this['listenTo'](_0x51ed45,'execute',()=>{_0x55e2cf['execute']('uploadcareImageEdit'),_0x55e2cf['editing']['view']['focus']();}),_0x51ed45;}),this['_initConfig']();}['_initConfig'](){const _0x1bc371=_0x1df8e9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1bc371),this['listenTo'](this['editor'],'destroy',()=>{_0x1bc371['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x322e(_0x212f2a,_0x2fb937){const _0x5dd7a5=_0x5dd7();return _0x322e=function(_0x322ed3,_0x1c550b){_0x322ed3=_0x322ed3-0x180;let _0x44c656=_0x5dd7a5[_0x322ed3];return _0x44c656;},_0x322e(_0x212f2a,_0x2fb937);}const _0x438612=_0x322e;(function(_0x1778f2,_0x62646a){const _0x11857d=_0x322e,_0x23e4c3=_0x1778f2();while(!![]){try{const _0x1082c9=-parseInt(_0x11857d(0x186))/0x1+parseInt(_0x11857d(0x192))/0x2+parseInt(_0x11857d(0x182))/0x3*(-parseInt(_0x11857d(0x181))/0x4)+-parseInt(_0x11857d(0x198))/0x5*(-parseInt(_0x11857d(0x193))/0x6)+parseInt(_0x11857d(0x195))/0x7+parseInt(_0x11857d(0x191))/0x8+-parseInt(_0x11857d(0x189))/0x9;if(_0x1082c9===_0x62646a)break;else _0x23e4c3['push'](_0x23e4c3['shift']());}catch(_0x488dc3){_0x23e4c3['push'](_0x23e4c3['shift']());}}}(_0x5dd7,0x1a20e));function _0x5dd7(){const _0x52b19a=['execute','imageInline','1755756FujEyU','sizes','document','change','getSelectedElement','isEnabled','model','editor','1361496lFYNzk','261096UEmXHV','582150rcWjCe','selection','1120651PpXTgc','setAttributes','removeAttribute','10qPXxAn','refresh','832208yqczQc','3tRYhIe','imageBlock','srcset','element','144720cvVeDy'];_0x5dd7=function(){return _0x52b19a;};return _0x5dd7();}import{Command as _0x3ea675}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x3ea675{[_0x438612(0x180)](){const _0x37b73c=_0x438612,_0x5aa4cf=this[_0x37b73c(0x190)][_0x37b73c(0x18f)][_0x37b73c(0x18b)][_0x37b73c(0x194)][_0x37b73c(0x18d)]();this[_0x37b73c(0x18e)]=Boolean(_0x5aa4cf&&(_0x5aa4cf['is'](_0x37b73c(0x185),_0x37b73c(0x183))||_0x5aa4cf['is'](_0x37b73c(0x185),_0x37b73c(0x188))));}[_0x438612(0x187)](_0x2f93c5){const _0x4a1f8b=_0x438612,_0x456f9c=this[_0x4a1f8b(0x190)][_0x4a1f8b(0x18f)][_0x4a1f8b(0x18b)][_0x4a1f8b(0x194)][_0x4a1f8b(0x18d)]();this[_0x4a1f8b(0x190)][_0x4a1f8b(0x18f)][_0x4a1f8b(0x18c)](_0x969498=>{const _0x2f0cd2=_0x4a1f8b;_0x969498[_0x2f0cd2(0x196)](_0x2f93c5,_0x456f9c),_0x969498[_0x2f0cd2(0x197)](_0x2f0cd2(0x184),_0x456f9c),_0x969498[_0x2f0cd2(0x197)](_0x2f0cd2(0x18a),_0x456f9c);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5019e3=_0x47fc;(function(_0x1dd10a,_0x266444){var _0x2bf932=_0x47fc,_0x527e0a=_0x1dd10a();while(!![]){try{var _0x430a41=parseInt(_0x2bf932(0xfb))/0x1+parseInt(_0x2bf932(0xf1))/0x2*(parseInt(_0x2bf932(0xf6))/0x3)+-parseInt(_0x2bf932(0xf9))/0x4+parseInt(_0x2bf932(0xf3))/0x5+-parseInt(_0x2bf932(0xf8))/0x6*(-parseInt(_0x2bf932(0xfe))/0x7)+parseInt(_0x2bf932(0xf7))/0x8*(-parseInt(_0x2bf932(0xfd))/0x9)+parseInt(_0x2bf932(0xfc))/0xa*(-parseInt(_0x2bf932(0xef))/0xb);if(_0x430a41===_0x266444)break;else _0x527e0a['push'](_0x527e0a['shift']());}catch(_0x4c3384){_0x527e0a['push'](_0x527e0a['shift']());}}}(_0x44fd,0x3fb93));function _0x44fd(){var _0x2099a=['129953BkZIJR','4780VAcZhV','9JaSvwJ','14EUyhHz','4268erqejm','isOfficialPlugin','35274uKErmX','pluginName','1645320YUTSqM','UploadcareImageEdit','requires','69jUDxkQ','2124208CbNSRZ','557952AwqCrR','1354604IYofVg','isPremiumPlugin'];_0x44fd=function(){return _0x2099a;};return _0x44fd();}import{Plugin as _0x316ae7}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x237d1b}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x47fc(_0x47eb36,_0x2733aa){var _0x44fde1=_0x44fd();return _0x47fc=function(_0x47fc33,_0x3e8b2a){_0x47fc33=_0x47fc33-0xef;var _0x1ea4c6=_0x44fde1[_0x47fc33];return _0x1ea4c6;},_0x47fc(_0x47eb36,_0x2733aa);}import{UploadcareImageEditUI as _0x37c211}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x316ae7{static get[_0x5019e3(0xf2)](){var _0x3df324=_0x5019e3;return _0x3df324(0xf4);}static get[_0x5019e3(0xf5)](){return[_0x237d1b,_0x37c211];}static get[_0x5019e3(0xf0)](){return!0x0;}static get[_0x5019e3(0xfa)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x157c0d=_0x2338;(function(_0xbbad2,_0x376909){const _0x43bca0=_0x2338,_0x2ff7f7=_0xbbad2();while(!![]){try{const _0x18021c=-parseInt(_0x43bca0(0xb8))/0x1+parseInt(_0x43bca0(0xce))/0x2*(-parseInt(_0x43bca0(0xd7))/0x3)+parseInt(_0x43bca0(0xe6))/0x4*(parseInt(_0x43bca0(0xc8))/0x5)+-parseInt(_0x43bca0(0xd9))/0x6*(parseInt(_0x43bca0(0xc5))/0x7)+parseInt(_0x43bca0(0xca))/0x8+parseInt(_0x43bca0(0xcb))/0x9+parseInt(_0x43bca0(0xbe))/0xa*(parseInt(_0x43bca0(0xad))/0xb);if(_0x18021c===_0x376909)break;else _0x2ff7f7['push'](_0x2ff7f7['shift']());}catch(_0x537873){_0x2ff7f7['push'](_0x2ff7f7['shift']());}}}(_0x2a27,0xc8edd));import{Plugin as _0x5e8944}from'ckeditor5/src/core.js';import{IconDropbox as _0x59ea6f,IconFacebook as _0x5677b0,IconGoogleDrive as _0x39897f,IconGooglePhotos as _0x1e9718,IconUploadcareImageUpload as _0x10b8bb,IconUploadcareLink as _0x5082b6,IconOneDrive as _0x219325}from'ckeditor5/src/icons.js';import{ButtonView as _0xc7de43,MenuBarMenuListItemButtonView as _0x382512}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x140aa8}from'./uploadcareconfig.js';import{getTranslation as _0x587aa4}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x2a27(){const _0x4eb6f6=['ImageInsertUI','entries','Dropbox','locale','text','UploadcareUI','withText','uploadcareLicenseKeyExpired','_getIntegrationKey','destroy','56713jpPwjw','domainLimit','uploadcareLicenseKeyInvalid','_createToolbarButton','icon','pluginName','190vIRTAz','isPremiumPlugin','shortText','_createDropdownButtons','init','forEach','_createButton','21cWLPJf','invalid','plugins','3140KJCzTO','Insert','2875352UrSAGt','5967540RsChFz','Local','_licenseKeyCheckInterval','2586934McyAFX','get','uploadcare','licenseKey','isOfficialPlugin','url','commands','uploadcareLicenseKeyTrialLimit','afterInit','3yGYdGi','has','2025918RbXqac','uploadcareLicenseKeyValid','_showLicenseError','OneDrive','registerIntegration','_normalizeConfigSourceList','Replace','uploadcareLicenseKeyNotAllowed','evaluationLimit','_createMenuBarButtons','reduce','uploadcareLicenseKeyEvaluationLimit','Facebook','1452pxEWPj','push','uploadcareLicenseKeyDomainLimit','map','URL','upload','Uploadcare','uploadcareLicenseKeyUsageLimit','execute','label','usageLimit','GDrive','GPhotos','featureNotAllowed','config','bind','expired','editor','isEnabled','isImageSelected','tooltip','uploadcare.uploader.sourceList','trialLimit','assetManager','type','1120669XAEOWy'];_0x2a27=function(){return _0x4eb6f6;};return _0x2a27();}import'../theme/uploadcare-theme.css';function _0x2338(_0x58946b,_0x69e371){const _0x2a279c=_0x2a27();return _0x2338=function(_0x233841,_0x5a944e){_0x233841=_0x233841-0x9c;let _0x5094d0=_0x2a279c[_0x233841];return _0x5094d0;},_0x2338(_0x58946b,_0x69e371);}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x5e8944{[_0x157c0d(0xd1)];[_0x157c0d(0xcd)];static get[_0x157c0d(0xbd)](){const _0x32ae63=_0x157c0d;return _0x32ae63(0xb3);}static get[_0x157c0d(0xd2)](){return!0x0;}static get[_0x157c0d(0xbf)](){return!0x0;}[_0x157c0d(0xc2)](){const _0x1e0801=_0x157c0d;this[_0x1e0801(0xd1)]=this[_0x1e0801(0xa5)][_0x1e0801(0xa2)][_0x1e0801(0xcf)](_0x1e0801(0xd1));const _0x3332e1=this[_0x1e0801(0xa5)];this[_0x1e0801(0xcd)]=setInterval(()=>{const _0x35c60d=_0x1e0801;let _0xf4f401;for(const _0x1b841a in _0x3332e1){const _0x16f0ff=_0x1b841a,_0x1e9940=_0x3332e1[_0x16f0ff];if(_0x35c60d(0xda)==_0x1e9940||_0x35c60d(0xba)==_0x1e9940||_0x35c60d(0xb5)==_0x1e9940||_0x35c60d(0xe8)==_0x1e9940||_0x35c60d(0xe0)==_0x1e9940||_0x35c60d(0xe4)==_0x1e9940||_0x35c60d(0xd5)==_0x1e9940||_0x35c60d(0xed)==_0x1e9940){delete _0x3332e1[_0x16f0ff],_0xf4f401=_0x1e9940,clearInterval(this[_0x35c60d(0xcd)]),this[_0x35c60d(0xcd)]=void 0x0;break;}}_0x35c60d(0xba)==_0xf4f401&&_0x3332e1[_0x35c60d(0xdb)](_0x35c60d(0xc6)),_0x35c60d(0xb5)==_0xf4f401&&_0x3332e1[_0x35c60d(0xdb)](_0x35c60d(0xa4)),_0x35c60d(0xe8)==_0xf4f401&&_0x3332e1[_0x35c60d(0xdb)](_0x35c60d(0xb9)),_0x35c60d(0xe0)==_0xf4f401&&_0x3332e1[_0x35c60d(0xdb)](_0x35c60d(0xa1),_0x35c60d(0xec)),_0x35c60d(0xe4)==_0xf4f401&&_0x3332e1[_0x35c60d(0xdb)](_0x35c60d(0xe1)),_0x35c60d(0xd5)==_0xf4f401&&_0x3332e1[_0x35c60d(0xdb)](_0x35c60d(0xaa)),_0x35c60d(0xed)==_0xf4f401&&_0x3332e1[_0x35c60d(0xdb)](_0x35c60d(0x9e));},0x3e8);}[_0x157c0d(0xd6)](){const _0x12ffae=_0x157c0d,{editor:_0x338f0f}=this,_0x1dc49a=_0x338f0f[_0x12ffae(0xd4)][_0x12ffae(0xcf)](_0x12ffae(0xd0));if(!_0x1dc49a)return;const _0xb074b5=this[_0x12ffae(0xde)](_0x338f0f[_0x12ffae(0xa2)][_0x12ffae(0xcf)](_0x12ffae(0xa9)))[_0x12ffae(0xe3)]((_0x18bdad,_0x2866bc)=>{const _0x464ea6=_0x12ffae,_0x3d0915=this[_0x464ea6(0xb6)](_0x2866bc[_0x464ea6(0xac)]);return _0x18bdad[_0x3d0915]||(_0x18bdad[_0x3d0915]=[]),_0x18bdad[_0x3d0915][_0x464ea6(0xe7)](_0x2866bc),_0x18bdad;},{});_0x338f0f[_0x12ffae(0xc7)][_0x12ffae(0xd8)](_0x12ffae(0xae))&&_0x338f0f[_0x12ffae(0xd4)][_0x12ffae(0xcf)](_0x12ffae(0xd0))&&Object[_0x12ffae(0xaf)](_0xb074b5)[_0x12ffae(0xc3)](([_0x1044cd,_0x5d2fcd])=>{const _0x1ae029=_0x12ffae;_0x338f0f[_0x1ae029(0xc7)][_0x1ae029(0xcf)](_0x1ae029(0xae))[_0x1ae029(0xdd)]({'name':_0x1044cd,'observable':()=>_0x1dc49a,'buttonViewCreator':()=>this[_0x1ae029(0xbb)](_0x5d2fcd),'formViewCreator':()=>this[_0x1ae029(0xc1)](_0x5d2fcd),'menuBarButtonViewCreator':()=>this[_0x1ae029(0xe2)](_0x5d2fcd),'override':_0x1ae029(0xab)!==_0x1044cd});});}[_0x157c0d(0xb7)](){const _0x31abec=_0x157c0d;super[_0x31abec(0xb7)](),this[_0x31abec(0xcd)]&&clearInterval(this[_0x31abec(0xcd)]);}[_0x157c0d(0xde)](_0x10cc00){const _0x12ed26=_0x157c0d,{locale:_0x4e0682}=this[_0x12ed26(0xa5)];return _0x10cc00[_0x12ed26(0xe9)](_0x4e0144=>{const _0x573294=_0x12ed26,_0x32193f=_0x587aa4(_0x4e0682,_0x4e0144,_0x573294(0xc9));switch(_0x4e0144){case _0x140aa8[_0x573294(0xcc)]:return{'icon':_0x10b8bb,'type':_0x140aa8[_0x573294(0xcc)],..._0x32193f};case _0x140aa8[_0x573294(0xea)]:return{'icon':_0x5082b6,'type':_0x140aa8[_0x573294(0xea)],..._0x32193f};case _0x140aa8[_0x573294(0xb0)]:return{'icon':_0x59ea6f,'type':_0x140aa8[_0x573294(0xb0)],..._0x32193f};case _0x140aa8[_0x573294(0xe5)]:return{'icon':_0x5677b0,'type':_0x140aa8[_0x573294(0xe5)],..._0x32193f};case _0x140aa8[_0x573294(0x9f)]:return{'icon':_0x39897f,'type':_0x140aa8[_0x573294(0x9f)],..._0x32193f};case _0x140aa8[_0x573294(0xa0)]:return{'icon':_0x1e9718,'type':_0x140aa8[_0x573294(0xa0)],..._0x32193f};case _0x140aa8[_0x573294(0xdc)]:return{'icon':_0x219325,'type':_0x140aa8[_0x573294(0xdc)],..._0x32193f};}});}[_0x157c0d(0xb6)](_0x3a9b2e){const _0x256871=_0x157c0d;switch(_0x3a9b2e){case _0x140aa8[_0x256871(0xcc)]:return _0x256871(0xeb);case _0x140aa8[_0x256871(0xea)]:return _0x256871(0xd3);default:return _0x256871(0xab);}}[_0x157c0d(0xc4)](_0x303482,_0x37432b){const _0x1fed64=_0x157c0d,_0x576782=this[_0x1fed64(0xa5)],_0x373e14=new _0x303482(_0x576782[_0x1fed64(0xb1)]),_0xf01a3f=_0x576782[_0x1fed64(0xd4)][_0x1fed64(0xcf)](_0x1fed64(0xd0));return _0x373e14[_0x1fed64(0xa3)](_0x1fed64(0xa6))['to'](_0xf01a3f),_0x373e14['on'](_0x1fed64(0x9c),()=>{const _0x4fba1e=_0x1fed64;_0xf01a3f[_0x4fba1e(0x9c)](_0x37432b);}),_0x373e14;}[_0x157c0d(0xbb)](_0x54e67f){const _0xd6988f=_0x157c0d,{locale:_0x28dda4}=this[_0xd6988f(0xa5)],_0x690f14=this[_0xd6988f(0xa5)][_0xd6988f(0xc7)][_0xd6988f(0xcf)](_0xd6988f(0xae)),_0x1ea0e0=_0x54e67f[0x0],_0x109d6f=this[_0xd6988f(0xc4)](_0xc7de43,_0x1ea0e0[_0xd6988f(0xac)]);return _0x109d6f[_0xd6988f(0xbc)]=_0x1ea0e0[_0xd6988f(0xbc)],_0x109d6f[_0xd6988f(0xa3)](_0xd6988f(0x9d))['to'](_0x690f14,_0xd6988f(0xa7),_0x3864e8=>_0x587aa4(_0x28dda4,_0x1ea0e0[_0xd6988f(0xac)],_0x3864e8?_0xd6988f(0xdf):_0xd6988f(0xc9))[_0xd6988f(0xb2)]),_0x109d6f[_0xd6988f(0xa8)]=!0x0,_0x109d6f;}[_0x157c0d(0xc1)](_0x1b5b15){const _0x3ea4a0=_0x157c0d,{locale:_0x394cdd}=this[_0x3ea4a0(0xa5)],_0x4fb3bd=this[_0x3ea4a0(0xa5)][_0x3ea4a0(0xc7)][_0x3ea4a0(0xcf)](_0x3ea4a0(0xae));return _0x1b5b15[_0x3ea4a0(0xe9)](_0x50fe49=>{const _0x56d96d=_0x3ea4a0,_0x3efac8=this[_0x56d96d(0xc4)](_0xc7de43,_0x50fe49[_0x56d96d(0xac)]);return _0x3efac8[_0x56d96d(0xb4)]=!0x0,_0x3efac8[_0x56d96d(0xbc)]=_0x50fe49[_0x56d96d(0xbc)],_0x3efac8[_0x56d96d(0xa3)](_0x56d96d(0x9d))['to'](_0x4fb3bd,_0x56d96d(0xa7),_0x5b47f5=>_0x587aa4(_0x394cdd,_0x50fe49[_0x56d96d(0xac)],_0x5b47f5?_0x56d96d(0xdf):_0x56d96d(0xc9))[_0x56d96d(0xb2)]),_0x3efac8;});}[_0x157c0d(0xe2)](_0x208458){const _0x35de39=_0x157c0d;return _0x208458[_0x35de39(0xe9)](_0x1eade0=>{const _0x11c737=_0x35de39,_0x1ca633=this[_0x11c737(0xc4)](_0x382512,_0x1eade0[_0x11c737(0xac)]);return _0x1ca633[_0x11c737(0xbc)]=_0x1eade0[_0x11c737(0xbc)],_0x1ca633[_0x11c737(0x9d)]=_0x1eade0[_0x11c737(0xc0)],_0x1ca633;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5ea506}from'ckeditor5/src/core.js';import{FileRepository as _0xb0a758}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x3f9921}from'./uploadcareediting.js';import{UploadUtils as _0xa05380}from'./utils/uploadutils.js';import{getImageUrls as _0x5b291e}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x5ea506{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xb0a758,_0x3f9921];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2842f6=this['editor'];if(!!!_0x2842f6['config']['get']('uploadcare'))return;_0x2842f6['plugins']['get'](_0xb0a758)['createUploadAdapter']=_0x15282a=>new k(_0x15282a,_0x2842f6),_0x2842f6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x10f347,{imageElement:_0xef617a,data:_0x5f2b0b})=>{_0x2842f6['model']['change'](_0x5e69b6=>{_0x5e69b6['setAttribute']('uploadcareImageId',_0x5f2b0b['uploadcareImageId'],_0xef617a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x35e784,_0x1c11df){this['loader']=_0x35e784,this['editor']=_0x1c11df,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x8ea048=await this['loader']['file'];return _0xa05380['upload']({'file':_0x8ea048,'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':_0x3c34a9=>{_0x3c34a9&&_0x3c34a9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3c34a9['value']);}})['then'](async _0x2702d6=>{const {imageFallbackUrl:_0x572ad5,imageSources:_0x1dde07}=_0x5b291e(_0x2702d6['cdnUrl'],_0x2702d6['imageInfo']['width']);return{'uploadcareImageId':_0x2702d6['uuid'],'default':_0x572ad5,'sources':_0x1dde07};})['catch'](()=>{const _0x4a27d4=t('Cannot\x20upload\x20file:')+('\x20'+_0x8ea048['name']+'.');return Promise['reject'](_0x4a27d4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x4c54e2}from'../uploadcareconfig.js';export function getTranslation(_0x50ef43,_0x58446,_0x51075d){const t=_0x50ef43['t'],_0xa6b746=_0x50ef43['t'];switch(_0x58446){case _0x4c54e2['Local']:return{'text':_0xa6b746('Insert'===_0x51075d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xa6b746('From\x20computer')};case _0x4c54e2['URL']:return{'text':'Insert'===_0x51075d?_0xa6b746('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xa6b746('Via\x20URL')};case _0x4c54e2['Dropbox']:return{'text':t('Insert'===_0x51075d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x4c54e2['Facebook']:return{'text':t('Insert'===_0x51075d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x4c54e2['GDrive']:return{'text':t('Insert'===_0x51075d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x4c54e2['GPhotos']:return{'text':t('Insert'===_0x51075d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x4c54e2['OneDrive']:return{'text':t('Insert'===_0x51075d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x58446;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5ea0df=_0x219d;(function(_0x56a347,_0x10ea1a){var _0x535492=_0x219d,_0x59ccdc=_0x56a347();while(!![]){try{var _0x4891f8=parseInt(_0x535492(0x133))/0x1+parseInt(_0x535492(0x131))/0x2+parseInt(_0x535492(0x12c))/0x3*(-parseInt(_0x535492(0x12b))/0x4)+parseInt(_0x535492(0x13a))/0x5+parseInt(_0x535492(0x134))/0x6+parseInt(_0x535492(0x12e))/0x7*(parseInt(_0x535492(0x137))/0x8)+-parseInt(_0x535492(0x13b))/0x9*(parseInt(_0x535492(0x138))/0xa);if(_0x4891f8===_0x10ea1a)break;else _0x59ccdc['push'](_0x59ccdc['shift']());}catch(_0x9cc3ea){_0x59ccdc['push'](_0x59ccdc['shift']());}}}(_0x247c,0x841b9));import{FocusTracker as _0x1f7ed9}from'ckeditor5/src/utils.js';import{View as _0x1e6d75,FocusCycler as _0x556a2c}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x219d(_0x27d1dc,_0x464f9d){var _0x247c26=_0x247c();return _0x219d=function(_0x219d08,_0x302732){_0x219d08=_0x219d08-0x129;var _0x3d419c=_0x247c26[_0x219d08];return _0x3d419c;},_0x219d(_0x27d1dc,_0x464f9d);}export class DialogFocusManagerView extends _0x1e6d75{[_0x5ea0df(0x129)];[_0x5ea0df(0x136)];constructor(_0x2b60ed){var _0x44b788=_0x5ea0df;super(_0x2b60ed),this[_0x44b788(0x129)]=new _0x1f7ed9(),this[_0x44b788(0x136)]=new _0x556a2c({'focusables':this[_0x44b788(0x12f)](),'focusTracker':this[_0x44b788(0x129)]});}[_0x5ea0df(0x12d)](){var _0x263f37=_0x5ea0df;return{'tag':_0x263f37(0x12a),'attributes':{'aria-hidden':_0x263f37(0x139),'tabindex':'0'},'on':{'focus':this[_0x263f37(0x135)]['to'](()=>{var _0x2e805c=_0x263f37;this[_0x2e805c(0x136)][_0x2e805c(0x130)](_0x2e805c(0x132));})}};}}function _0x247c(){var _0x3cd1ba=['fire','146140BTJObi','forwardCycle','342161noZAND','3448452QzgHYl','bindTemplate','focusCycler','96592YNHtED','10ooSLrz','true','2658635qDAoaw','4304331hYrbjE','focusTracker','div','16mwbKfM','412968ImeRPb','getFocusableElement','28ViKiMd','createCollection'];_0x247c=function(){return _0x3cd1ba;};return _0x247c();}
|