@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251017.0 → 0.0.0-nightly-20251019.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 _0x4bfaa6=_0xfe22;(function(_0x4f5700,_0x539cc9){const _0x411340=_0xfe22,_0x5cbd13=_0x4f5700();while(!![]){try{const _0x31559f=-parseInt(_0x411340(0x11c))/0x1*(parseInt(_0x411340(0x137))/0x2)+-parseInt(_0x411340(0x10e))/0x3*(parseInt(_0x411340(0x131))/0x4)+parseInt(_0x411340(0x14b))/0x5+parseInt(_0x411340(0x134))/0x6*(-parseInt(_0x411340(0x152))/0x7)+-parseInt(_0x411340(0x138))/0x8*(parseInt(_0x411340(0x14a))/0x9)+-parseInt(_0x411340(0x151))/0xa*(-parseInt(_0x411340(0x154))/0xb)+-parseInt(_0x411340(0x156))/0xc*(-parseInt(_0x411340(0x118))/0xd);if(_0x31559f===_0x539cc9)break;else _0x5cbd13['push'](_0x5cbd13['shift']());}catch(_0x5bbe7f){_0x5cbd13['push'](_0x5cbd13['shift']());}}}(_0x2174,0xceb19));function _0xfe22(_0x1710de,_0x424c24){const _0x21740a=_0x2174();return _0xfe22=function(_0xfe2202,_0x1fc1c3){_0xfe2202=_0xfe2202-0x10d;let _0x1ab42c=_0x21740a[_0xfe2202];return _0x1ab42c;},_0xfe22(_0x1710de,_0x424c24);}import{Plugin as _0x59c0b5}from'ckeditor5/src/core.js';import{Dialog as _0x27add7}from'ckeditor5/src/ui.js';import{createElement as _0x396df9,global as _0x3bcb79,uid as _0x5915e2}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2603e9}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x31d30d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x41fe45}from'./utils/editingutils.js';function _0x2174(){const _0x3f0644=['_initCtx','_ctxElement','true','remove','requires','getAttribute','data-uc-image-id','_configElement','extend','editing','editor','closeMax','isPremiumPlugin','868671qNfMuY','1687855AOeMQV','pluginName','document','contentLanguage','conversion','schema','30dRkCdk','760865DHjLMq','view','2076954pntPls','uc-upload-ctx-provider','240BsCild','imageBlock','for','destroy','getSelectedElement','iconHrefResolver','PictureEditing','once','ctxElement','attributeToAttribute','elementToAttribute','configElement','uploader-','uploadcare.uploader','downcast','_initSchema','324AjSDHe','_initConfig','execute','querySelector','uploadcare','join','render','upcast','insertImage','\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','1657604YGWvdj','model','appendChild','selection','1187oEOZBa','get','imageInline','ucContextId','locale','map','#uc-icon-arrow-down','listenTo','uploadcareImageReplace','config','input[uploadcare-file-input]','fromCharCode','isRegistered','_initImageProcessingIndicator','replaceImageSource','add','_initConversion','UploadcareEditing','uc-config','isOfficialPlugin','href','28312iOPhBD','afterInit','uploadcareImageId','6WGIxSj','body','removeAttribute','1784jeDKXL','56BDTJga','commands','uploadcare.pubkey','cleanupImage','init'];_0x2174=function(){return _0x3f0644;};return _0x2174();}export class UploadcareEditing extends _0x59c0b5{[_0x4bfaa6(0x144)]=null;[_0x4bfaa6(0x13e)]=null;static get[_0x4bfaa6(0x14c)](){const _0x3fa17d=_0x4bfaa6;return _0x3fa17d(0x12d);}static get[_0x4bfaa6(0x141)](){const _0x33b4da=_0x4bfaa6;return[_0x33b4da(0x15c),_0x31d30d,_0x27add7];}static get[_0x4bfaa6(0x12f)](){return!0x0;}static get[_0x4bfaa6(0x149)](){return!0x0;}[_0x4bfaa6(0x11f)];get[_0x4bfaa6(0x161)](){const _0x52d30b=_0x4bfaa6;return this[_0x52d30b(0x144)];}get[_0x4bfaa6(0x15e)](){const _0x47e0a9=_0x4bfaa6;return this[_0x47e0a9(0x13e)];}constructor(_0x546e21){const _0x1a6507=_0x4bfaa6;super(_0x546e21),this[_0x1a6507(0x11f)]=_0x5915e2();}[_0x4bfaa6(0x13c)](){const _0x53ce7b=_0x4bfaa6,_0x37e655=this[_0x53ce7b(0x147)];_0x37e655[_0x53ce7b(0x139)][_0x53ce7b(0x12b)](_0x53ce7b(0x112),new _0x2603e9(_0x37e655));}[_0x4bfaa6(0x132)](){const _0x1f541d=_0x4bfaa6;this[_0x1f541d(0x10d)](),this[_0x1f541d(0x12c)](),this[_0x1f541d(0x10f)](),this[_0x1f541d(0x13d)](),this[_0x1f541d(0x129)](),this[_0x1f541d(0x123)](this[_0x1f541d(0x147)],_0x1f541d(0x159),()=>{const _0x1e277c=_0x1f541d;this[_0x1e277c(0x144)]&&(this[_0x1e277c(0x144)][_0x1e277c(0x140)](),this[_0x1e277c(0x144)]=null),this[_0x1e277c(0x13e)]&&(this[_0x1e277c(0x13e)][_0x1e277c(0x140)](),this[_0x1e277c(0x13e)]=null);const _0x480ab5=_0x3bcb79[_0x1e277c(0x14d)][_0x1e277c(0x111)](_0x1e277c(0x126));_0x480ab5&&_0x480ab5[_0x1e277c(0x140)]();}),async function(_0x4ec5cf){const _0x24bab0=_0x1a701a([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]),_0x4cfdf9=0x535f8c3a,_0x12ea2f=0x5358fa4a^_0x4cfdf9,_0xc8c2f8=window[_0x1a701a([0x44,0x61,0x74,0x65])][_0x1a701a([0x6e,0x6f,0x77])](),_0x3ec3fa=_0x4ec5cf[_0x1a701a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cde24=new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x169adc=>{_0x3ec3fa[_0x1a701a([0x6f,0x6e,0x63,0x65])](_0x1a701a([0x72,0x65,0x61,0x64,0x79]),_0x169adc);}),_0x3ccd18={[_0x1a701a([0x6b,0x74,0x79])]:_0x1a701a([0x45,0x43]),[_0x1a701a([0x75,0x73,0x65])]:_0x1a701a([0x73,0x69,0x67]),[_0x1a701a([0x63,0x72,0x76])]:_0x1a701a([0x50,0x2d,0x32,0x35,0x36]),[_0x1a701a([0x78])]:_0x1a701a([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]),[_0x1a701a([0x79])]:_0x1a701a([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]),[_0x1a701a([0x61,0x6c,0x67])]:_0x1a701a([0x45,0x53,0x32,0x35,0x36])},_0x58cd49=_0x3ec3fa[_0x1a701a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a701a([0x67,0x65,0x74])](_0x1a701a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x19e1bb(){let _0x2f780e,_0x2caf1c=null,_0x1866b1=null;try{if(_0x58cd49==_0x1a701a([0x47,0x50,0x4c]))return _0x1a701a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f780e=_0x11bbff(),!_0x2f780e)return _0x1a701a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f780e[_0x1a701a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1866b1=_0x389877(_0x2f780e[_0x1a701a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f780e[_0x1a701a([0x6a,0x74,0x69])])),await _0x11b986()?_0x134ec9()?_0x43363f()?_0x1a701a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a39b5()?(_0x2f780e[_0x1a701a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a701a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2caf1c=_0x71a388(_0x1a701a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f780e[_0x1a701a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a701a([0x74,0x72,0x69,0x61,0x6c])&&(_0x2caf1c=_0x71a388(_0x1a701a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4087e9()):_0x1a701a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a701a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a701a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a701a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43363f(){const _0x90d9d2=[_0x1a701a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a701a([0x74,0x72,0x69,0x61,0x6c])][_0x1a701a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f780e[_0x1a701a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc8c2f8/0x3e8:0xe10*_0x12ea2f;return _0x2f780e[_0x1a701a([0x65,0x78,0x70])]<_0x90d9d2;}function _0x134ec9(){const _0x235cc8=_0x2f780e[_0x1a701a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x235cc8&&(!!_0x235cc8[_0x1a701a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a701a([0x2a]))||!!_0x235cc8[_0x1a701a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a701a([0x55,0x50,0x4c,0x43])));}function _0x4a39b5(){const _0x1817d0=_0xfe22,_0x39ee2f=_0x2f780e[_0x1a701a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39ee2f||0x0==_0x39ee2f[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f4b44}=new URL(window[_0x1a701a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1817d0(0x130)]);if(_0x39ee2f[_0x1a701a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f4b44))return!0x0;const _0x40c82e=_0x5f4b44[_0x1a701a([0x73,0x70,0x6c,0x69,0x74])](_0x1a701a([0x2e]));return _0x39ee2f[_0x1a701a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e9a4b=>_0x5e9a4b[_0x1a701a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a701a([0x2a])))[_0x1a701a([0x6d,0x61,0x70])](_0x43ce12=>_0x43ce12[_0x1a701a([0x73,0x70,0x6c,0x69,0x74])](_0x1a701a([0x2e])))[_0x1a701a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b5bcd=>_0x1b5bcd[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40c82e[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a701a([0x6d,0x61,0x70])](_0x5d06e2=>Array(_0x40c82e[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d06e2[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a701a([0x66,0x69,0x6c,0x6c])](_0x5d06e2[0x0]===_0x1a701a([0x2a])?_0x1a701a([0x2a]):'')[_0x1a701a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d06e2))[_0x1a701a([0x73,0x6f,0x6d,0x65])](_0x17f616=>_0x40c82e[_0x1a701a([0x65,0x76,0x65,0x72,0x79])]((_0x110ec8,_0x34296d)=>_0x17f616[_0x34296d]===_0x110ec8||_0x17f616[_0x34296d]===_0x1a701a([0x2a])));}function _0x4087e9(){return _0x2caf1c&&_0x1866b1?new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x309f6d,_0x4e2c7f)=>{_0x2caf1c[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x309f6d,_0x4e2c7f),_0x1866b1[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x1f15fe=>{_0x1f15fe!=_0x1a701a([0x56,0x61,0x6c,0x69,0x64])&&_0x309f6d(_0x1f15fe);},_0x4e2c7f);}):_0x2caf1c||_0x1866b1||_0x1a701a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x389877(_0x538e1b,_0x48b826){return new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x208413=>{if(_0x28fdb3())return _0x208413(_0x1a701a([0x56,0x61,0x6c,0x69,0x64]));_0x4112ff(),_0x3ec3fa[_0x1a701a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a701a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f63bd=!0x1;const _0x40ae40=_0x5915e2();function _0x35b8e4(_0x249fe4){return!!_0x249fe4&&(typeof _0x249fe4===_0x1a701a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x249fe4===_0x1a701a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x249fe4[_0x1a701a([0x74,0x68,0x65,0x6e])]===_0x1a701a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x249fe4[_0x1a701a([0x63,0x61,0x74,0x63,0x68])]===_0x1a701a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x241776(_0x246d49){_0x4eac03(_0x246d49)[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x169fb8=>{if(!_0x169fb8||_0x169fb8[_0x1a701a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a701a([0x6f,0x6b]))return _0x1a701a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x529b6f(_0x12bbd1(_0x40ae40+_0x48b826))!=_0x169fb8[_0x1a701a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a701a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a701a([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x285cb6=>(_0x873567(),_0x285cb6),()=>{const _0x506b9b=_0x514510();return null==_0x506b9b?(_0x873567(),_0x1a701a([0x56,0x61,0x6c,0x69,0x64])):_0x1a701a(_0xc8c2f8-_0x506b9b>(0x7753083a^_0x4cfdf9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x208413)[_0x1a701a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x208413(_0x1a701a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15ffa8=0x536962ba^_0x4cfdf9;function _0x873567(){const _0x48938c=_0x1a701a([0x6c,0x6c,0x63,0x74,0x2d])+_0x529b6f(_0x12bbd1(_0x538e1b)),_0x43d322=_0x526405(_0x529b6f(window[_0x1a701a([0x4d,0x61,0x74,0x68])][_0x1a701a([0x63,0x65,0x69,0x6c])](_0xc8c2f8/_0x15ffa8)));window[_0x1a701a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a701a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48938c,_0x43d322);}function _0x514510(){const _0x526907=_0x1a701a([0x6c,0x6c,0x63,0x74,0x2d])+_0x529b6f(_0x12bbd1(_0x538e1b)),_0x1c4730=window[_0x1a701a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a701a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x526907);return _0x1c4730?window[_0x1a701a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x526405(_0x1c4730),0x10)*_0x15ffa8:null;}function _0x4eac03(_0x2c28ea){return new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x338e3d,_0x3ef1ff)=>{_0x2c28ea[_0x1a701a([0x74,0x68,0x65,0x6e])](_0x338e3d,_0x3ef1ff),window[_0x1a701a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ef1ff,0x535e58fa^_0x4cfdf9);});}}_0x3ec3fa[_0x1a701a([0x6f,0x6e])](_0x1a701a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34ad10,_0x2deb69)=>{if(_0x2deb69[0x0]!=_0x538e1b)return _0x208413(_0x1a701a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2deb69[0x1]={..._0x2deb69[0x1],[_0x1a701a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40ae40};},{[_0x1a701a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a701a([0x68,0x69,0x67,0x68])}),_0x3ec3fa[_0x1a701a([0x6f,0x6e])](_0x1a701a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc7c1ca=>{_0x35b8e4(_0xc7c1ca[_0x1a701a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f63bd=!0x0,_0x241776(_0xc7c1ca[_0x1a701a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a701a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a701a([0x6c,0x6f,0x77])}),_0x2cde24[_0x1a701a([0x74,0x68,0x65,0x6e])](()=>{_0x1f63bd||_0x208413(_0x1a701a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x28fdb3(){return _0x3ec3fa[_0x1a701a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a701a([0x76,0x69,0x65,0x77])][_0x1a701a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a701a([0x61,0x75,0x74,0x6f]);}function _0x4112ff(){_0x3ec3fa[_0x1a701a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a701a([0x76,0x69,0x65,0x77])][_0x1a701a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a701a([0x61,0x75,0x74,0x6f]);}}function _0x71a388(_0xa9fe73){const _0x5b6f02=[new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bb4f9=>setTimeout(_0x2bb4f9,0x5356b2f6^_0x4cfdf9)),_0x2cde24[_0x1a701a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4394=>{let _0x110bbd=0x0;_0x3ec3fa[_0x1a701a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a701a([0x6f,0x6e])](_0x1a701a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b8f5f,_0x5629de)=>{_0x5629de[0x0][_0x1a701a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x110bbd++,_0x110bbd==(0x535f8dc2^_0x4cfdf9)&&(_0x5f4394(),_0x2b8f5f[_0x1a701a([0x6f,0x66,0x66])]());});}))];return window[_0x1a701a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a701a([0x72,0x61,0x63,0x65])](_0x5b6f02)[_0x1a701a([0x74,0x68,0x65,0x6e])](()=>_0xa9fe73);}async function _0x5b9f06(){await _0x2cde24,_0x3ec3fa[_0x1a701a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a701a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22a9c1,_0x3ec3fa[_0x1a701a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a701a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22a9c1,_0x3ec3fa[_0x1a701a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a701a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x244302(_0x48c0ef){const _0x5b2760=_0x1eaf18();_0x3ec3fa[_0x5b2760]=_0x1a701a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x48c0ef,_0x48c0ef!=_0x1a701a([0x56,0x61,0x6c,0x69,0x64])&&_0x5b9f06();}function _0x1eaf18(){const _0x485126=window[_0x1a701a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a701a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a701a([0x6e,0x6f,0x77])]())[_0x1a701a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a701a([0x2e]),'');let _0x328620=_0x1a701a([0x68]);for(let _0x4750a4=0x0;_0x4750a4<_0x485126[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4750a4+=0x2){let _0x482bdc=window[_0x1a701a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x485126[_0x1a701a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4750a4,_0x4750a4+0x2));_0x482bdc>=_0x24bab0[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x482bdc-=_0x24bab0[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x328620+=_0x24bab0[_0x482bdc];}return _0x328620;}function _0x11bbff(){const _0x51aa72=_0x58cd49[_0x1a701a([0x73,0x70,0x6c,0x69,0x74])](_0x1a701a([0x2e]));if(0x3!=_0x51aa72[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b1bdd(_0x51aa72[0x1]);function _0x1b1bdd(_0x16a2f5){const _0x479e1f=_0xa3f84a(_0x16a2f5);return _0x479e1f&&_0x285605()?_0x479e1f:null;function _0x285605(){const _0x56a940=_0x479e1f[_0x1a701a([0x6a,0x74,0x69])],_0x31c2dd=window[_0x1a701a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56a940[_0x1a701a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56a940[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x12e485={..._0x479e1f,[_0x1a701a([0x6a,0x74,0x69])]:_0x56a940[_0x1a701a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x56a940[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x12e485[_0x1a701a([0x76,0x63])],_0x12bbd1(_0x12e485)==_0x31c2dd;}}}async function _0x11b986(){let _0x3d192d=!0x0;try{const _0x36f583=_0x58cd49[_0x1a701a([0x73,0x70,0x6c,0x69,0x74])](_0x1a701a([0x2e])),[_0x14385d,_0x40ac54,_0x5beb7d]=_0x36f583;return _0x8ed5ea(_0x14385d),await _0x5cb050(_0x14385d,_0x40ac54,_0x5beb7d),_0x3d192d;}catch{return!0x1;}function _0x8ed5ea(_0x3f10f6){const _0x52cc20=_0xa3f84a(_0x3f10f6);_0x52cc20&&_0x52cc20[_0x1a701a([0x61,0x6c,0x67])]==_0x1a701a([0x45,0x53,0x32,0x35,0x36])||(_0x3d192d=!0x1);}async function _0x5cb050(_0x40e456,_0x48770f,_0x564835){const _0x51d0af=window[_0x1a701a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a701a([0x66,0x72,0x6f,0x6d])](_0x2dffd4(_0x564835),_0x1a9d3d=>_0x1a9d3d[_0x1a701a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x76e21d=new window[(_0x1a701a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a701a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40e456+_0x1a701a([0x2e])+_0x48770f),_0x1be41e=window[_0x1a701a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a701a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1be41e)return;const _0x44f85e=await _0x1be41e[_0x1a701a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a701a([0x6a,0x77,0x6b]),_0x3ccd18,{[_0x1a701a([0x6e,0x61,0x6d,0x65])]:_0x1a701a([0x45,0x43,0x44,0x53,0x41]),[_0x1a701a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a701a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a701a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1be41e[_0x1a701a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a701a([0x6e,0x61,0x6d,0x65])]:_0x1a701a([0x45,0x43,0x44,0x53,0x41]),[_0x1a701a([0x68,0x61,0x73,0x68])]:{[_0x1a701a([0x6e,0x61,0x6d,0x65])]:_0x1a701a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44f85e,_0x51d0af,_0x76e21d)||(_0x3d192d=!0x1);}}function _0xa3f84a(_0x2e8e1b){return _0x2e8e1b[_0x1a701a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a701a([0x65,0x79]))?JSON[_0x1a701a([0x70,0x61,0x72,0x73,0x65])](_0x2dffd4(_0x2e8e1b)):null;}function _0x2dffd4(_0xd169bc){return window[_0x1a701a([0x61,0x74,0x6f,0x62])](_0xd169bc[_0x1a701a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a701a([0x2b]))[_0x1a701a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a701a([0x2f])));}function _0x12bbd1(_0x38e328){let _0x45847b=0x1505;function _0xd0ee82(_0x4731fb){for(let _0xdee5f3=0x0;_0xdee5f3<_0x4731fb[_0x1a701a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdee5f3++){const _0x2f7b4f=_0x4731fb[_0x1a701a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdee5f3);_0x45847b=(_0x45847b<<0x5)+_0x45847b+_0x2f7b4f,_0x45847b&=_0x45847b;}}function _0x4b0efe(_0x1ecceb){Array[_0x1a701a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ecceb)?_0x1ecceb[_0x1a701a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b0efe):_0x1ecceb&&typeof _0x1ecceb==_0x1a701a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a701a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ecceb)[_0x1a701a([0x73,0x6f,0x72,0x74])]()[_0x1a701a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39db40,_0x1d36c8])=>{_0xd0ee82(_0x39db40),_0x4b0efe(_0x1d36c8);}):_0xd0ee82(window[_0x1a701a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ecceb));}return _0x4b0efe(_0x38e328),_0x45847b>>>0x0;}function _0x529b6f(_0x17d73f){return _0x17d73f[_0x1a701a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a701a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a701a([0x30]));}function _0x526405(_0x5b7f34){return _0x5b7f34[_0x1a701a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a701a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a701a([0x6a,0x6f,0x69,0x6e])]('');}function _0x22a9c1(){}function _0x1a701a(_0x3bea3e){const _0x5e599a=_0xfe22;return _0x3bea3e[_0x5e599a(0x121)](_0x57f365=>String[_0x5e599a(0x127)](_0x57f365))[_0x5e599a(0x113)]('');}_0x244302(await _0x19e1bb());}(this);}[_0x4bfaa6(0x10d)](){const _0x4d72bf=_0x4bfaa6,_0x24b1e5=this[_0x4d72bf(0x147)][_0x4d72bf(0x119)][_0x4d72bf(0x150)];_0x24b1e5[_0x4d72bf(0x128)](_0x4d72bf(0x157))&&_0x24b1e5[_0x4d72bf(0x145)](_0x4d72bf(0x157),{'allowAttributes':[_0x4d72bf(0x133)]}),_0x24b1e5[_0x4d72bf(0x128)](_0x4d72bf(0x11e))&&_0x24b1e5[_0x4d72bf(0x145)](_0x4d72bf(0x11e),{'allowAttributes':[_0x4d72bf(0x133)]});}[_0x4bfaa6(0x12c)](){const _0x2b1645=_0x4bfaa6,_0x20c55f=this[_0x2b1645(0x147)];_0x20c55f[_0x2b1645(0x14f)][_0x2b1645(0x158)](_0x2b1645(0x164))[_0x2b1645(0x15f)]({'model':_0x2b1645(0x133),'view':_0x2b1645(0x143)}),_0x20c55f[_0x2b1645(0x14f)][_0x2b1645(0x158)](_0x2b1645(0x115))[_0x2b1645(0x160)]({'model':{'key':_0x2b1645(0x133),'value':_0x3dd25b=>_0x3dd25b[_0x2b1645(0x142)](_0x2b1645(0x143))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xe901ed=_0x20c55f[_0x2b1645(0x139)][_0x2b1645(0x11d)](_0x2b1645(0x12a));_0xe901ed&&this[_0x2b1645(0x123)](_0xe901ed,_0x2b1645(0x13b),(_0x2becf4,[_0x32c6fc,_0x3c3bf1])=>{const _0x1e0e94=_0x2b1645;_0x32c6fc[_0x1e0e94(0x136)](_0x1e0e94(0x133),_0x3c3bf1);});}[_0x4bfaa6(0x10f)](){const _0x47ca83=_0x4bfaa6,_0x452089=this[_0x47ca83(0x147)][_0x47ca83(0x125)][_0x47ca83(0x11d)](_0x47ca83(0x163))||{},_0x326a99=this[_0x47ca83(0x147)][_0x47ca83(0x125)][_0x47ca83(0x11d)](_0x47ca83(0x13a))||'';this[_0x47ca83(0x144)]=_0x396df9(_0x3bcb79[_0x47ca83(0x14d)],_0x47ca83(0x12e),{..._0x452089,'pubkey':_0x326a99,'ctx-name':_0x47ca83(0x162)+this[_0x47ca83(0x11f)],'sourceList':'','imgOnly':_0x47ca83(0x13f),'removeCopyright':_0x47ca83(0x13f),'localeName':this[_0x47ca83(0x147)][_0x47ca83(0x120)][_0x47ca83(0x14e)],'externalSourcesEmbedCss':_0x47ca83(0x117)}),this[_0x47ca83(0x144)][_0x47ca83(0x15b)]=_0x2221c7=>{const _0x1b2439=_0x47ca83;if(_0x1b2439(0x148)==_0x2221c7)return _0x1b2439(0x122);},_0x3bcb79[_0x47ca83(0x14d)][_0x47ca83(0x135)][_0x47ca83(0x11a)](this[_0x47ca83(0x144)]);}[_0x4bfaa6(0x13d)](){const _0x715f11=_0x4bfaa6;this[_0x715f11(0x13e)]=_0x396df9(_0x3bcb79[_0x715f11(0x14d)],_0x715f11(0x155),{'ctx-name':_0x715f11(0x162)+this[_0x715f11(0x11f)]}),_0x3bcb79[_0x715f11(0x14d)][_0x715f11(0x135)][_0x715f11(0x11a)](this[_0x715f11(0x13e)]);}[_0x4bfaa6(0x129)](){const _0x4a886d=_0x4bfaa6,_0x524b1b=this[_0x4a886d(0x147)][_0x4a886d(0x139)][_0x4a886d(0x11d)](_0x4a886d(0x116));_0x524b1b&&this[_0x4a886d(0x123)](_0x524b1b,_0x4a886d(0x110),()=>{const _0x3dc43f=_0x4a886d,_0x34775d=this[_0x3dc43f(0x147)][_0x3dc43f(0x119)][_0x3dc43f(0x14d)][_0x3dc43f(0x11b)][_0x3dc43f(0x15a)]();_0x34775d&&_0x34775d[_0x3dc43f(0x142)](_0x3dc43f(0x133))&&this[_0x3dc43f(0x147)][_0x3dc43f(0x146)][_0x3dc43f(0x153)][_0x3dc43f(0x15d)](_0x3dc43f(0x114),()=>{const _0x463ca4=_0x3dc43f;_0x41fe45(this[_0x463ca4(0x147)],_0x34775d);});});const _0x9dda7d=this[_0x4a886d(0x147)][_0x4a886d(0x139)][_0x4a886d(0x11d)](_0x4a886d(0x124));_0x9dda7d&&this[_0x4a886d(0x123)](_0x9dda7d,_0x4a886d(0x110),()=>{const _0xa7a9f5=_0x4a886d,_0x19078b=this[_0xa7a9f5(0x147)][_0xa7a9f5(0x119)][_0xa7a9f5(0x14d)][_0xa7a9f5(0x11b)][_0xa7a9f5(0x15a)]();_0x19078b&&_0x19078b[_0xa7a9f5(0x142)](_0xa7a9f5(0x133))&&this[_0xa7a9f5(0x147)][_0xa7a9f5(0x146)][_0xa7a9f5(0x153)][_0xa7a9f5(0x15d)](_0xa7a9f5(0x114),()=>{const _0x3a435c=_0xa7a9f5;_0x41fe45(this[_0x3a435c(0x147)],_0x19078b);});});}}
|
|
23
|
+
const _0x51d5ea=_0x140b;(function(_0x51e198,_0x12a02b){const _0x8e78d9=_0x140b,_0x489371=_0x51e198();while(!![]){try{const _0x29987f=-parseInt(_0x8e78d9(0x1ce))/0x1+parseInt(_0x8e78d9(0x1ba))/0x2*(parseInt(_0x8e78d9(0x1bf))/0x3)+parseInt(_0x8e78d9(0x1ea))/0x4*(-parseInt(_0x8e78d9(0x1ed))/0x5)+parseInt(_0x8e78d9(0x1e4))/0x6+parseInt(_0x8e78d9(0x1d3))/0x7*(parseInt(_0x8e78d9(0x1a8))/0x8)+-parseInt(_0x8e78d9(0x1d6))/0x9+parseInt(_0x8e78d9(0x1ae))/0xa;if(_0x29987f===_0x12a02b)break;else _0x489371['push'](_0x489371['shift']());}catch(_0x2235f2){_0x489371['push'](_0x489371['shift']());}}}(_0x81aa,0xda011));import{Plugin as _0x34f78c}from'ckeditor5/src/core.js';import{Dialog as _0x5dbce7}from'ckeditor5/src/ui.js';import{createElement as _0x5a7e69,global as _0xffd82e,uid as _0x19e281}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x59b60e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x163725}from'./uploadcareuploadadapter.js';function _0x140b(_0x560db3,_0x22bb7c){const _0x81aa93=_0x81aa();return _0x140b=function(_0x140baa,_0x2e0178){_0x140baa=_0x140baa-0x199;let _0x154893=_0x81aa93[_0x140baa];return _0x154893;},_0x140b(_0x560db3,_0x22bb7c);}import{showImageProcessingIndicator as _0x2e4ccf}from'./utils/editingutils.js';function _0x81aa(){const _0x4d8dec=['listenTo','imageBlock','isOfficialPlugin','1425516mSKUlc','PictureEditing','for','uploadcare.pubkey','uploadcare.uploader','upcast','87876Qzxamp','input[uploadcare-file-input]','iconHrefResolver','75XfUSCe','removeAttribute','contentLanguage','downcast','cleanupImage','document','pluginName','_initConversion','execute','ucContextId','replaceImageSource','closeMax','_initSchema','uc-config','getAttribute','fromCharCode','910736mTwqyu','_ctxElement','configElement','config','isPremiumPlugin','isRegistered','2407850QqcXJS','selection','destroy','ctxElement','join','_initConfig','afterInit','extend','editor','UploadcareEditing','uploadcareImageId','elementToAttribute','2CNfTOV','\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','add','_configElement','schema','3075672mpWHvX','querySelector','editing','view','conversion','get','true','href','_initCtx','init','data-uc-image-id','requires','uploadcare','locale','model','397453DQNckJ','appendChild','uploadcareImageReplace','render','commands','28jXGrsJ','getSelectedElement','once','3051270ubUWJM','insertImage','_initImageProcessingIndicator','attributeToAttribute','body','remove','imageInline','map','#uc-icon-arrow-down','uc-upload-ctx-provider','uploader-'];_0x81aa=function(){return _0x4d8dec;};return _0x81aa();}export class UploadcareEditing extends _0x34f78c{[_0x51d5ea(0x1bd)]=null;[_0x51d5ea(0x1a9)]=null;static get[_0x51d5ea(0x19e)](){const _0x521943=_0x51d5ea;return _0x521943(0x1b7);}static get[_0x51d5ea(0x1ca)](){const _0x1eceda=_0x51d5ea;return[_0x1eceda(0x1e5),_0x163725,_0x5dbce7];}static get[_0x51d5ea(0x1e3)](){return!0x0;}static get[_0x51d5ea(0x1ac)](){return!0x0;}[_0x51d5ea(0x1a1)];get[_0x51d5ea(0x1aa)](){const _0x17a7f3=_0x51d5ea;return this[_0x17a7f3(0x1bd)];}get[_0x51d5ea(0x1b1)](){const _0x1e849e=_0x51d5ea;return this[_0x1e849e(0x1a9)];}constructor(_0x5c64a1){const _0x36b9ec=_0x51d5ea;super(_0x5c64a1),this[_0x36b9ec(0x1a1)]=_0x19e281();}[_0x51d5ea(0x1c8)](){const _0x55c109=_0x51d5ea,_0x3bf3aa=this[_0x55c109(0x1b6)];_0x3bf3aa[_0x55c109(0x1d2)][_0x55c109(0x1bc)](_0x55c109(0x1cb),new _0x59b60e(_0x3bf3aa));}[_0x51d5ea(0x1b4)](){const _0x297d75=_0x51d5ea;this[_0x297d75(0x1a4)](),this[_0x297d75(0x19f)](),this[_0x297d75(0x1b3)](),this[_0x297d75(0x1c7)](),this[_0x297d75(0x1d8)](),this[_0x297d75(0x1e1)](this[_0x297d75(0x1b6)],_0x297d75(0x1b0),()=>{const _0x36411d=_0x297d75;this[_0x36411d(0x1bd)]&&(this[_0x36411d(0x1bd)][_0x36411d(0x1db)](),this[_0x36411d(0x1bd)]=null),this[_0x36411d(0x1a9)]&&(this[_0x36411d(0x1a9)][_0x36411d(0x1db)](),this[_0x36411d(0x1a9)]=null);const _0x25cb64=_0xffd82e[_0x36411d(0x19d)][_0x36411d(0x1c0)](_0x36411d(0x1eb));_0x25cb64&&_0x25cb64[_0x36411d(0x1db)]();}),async function(_0x19acf0){const _0x52028d=_0x1f1d16([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]),_0x1468b3=0x535f8c3a,_0x4ee127=0x5358fa9a^_0x1468b3,_0x5945a5=window[_0x1f1d16([0x44,0x61,0x74,0x65])][_0x1f1d16([0x6e,0x6f,0x77])](),_0x3c092f=_0x19acf0[_0x1f1d16([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3147f4=new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4165f8=>{_0x3c092f[_0x1f1d16([0x6f,0x6e,0x63,0x65])](_0x1f1d16([0x72,0x65,0x61,0x64,0x79]),_0x4165f8);}),_0xb9eec4={[_0x1f1d16([0x6b,0x74,0x79])]:_0x1f1d16([0x45,0x43]),[_0x1f1d16([0x75,0x73,0x65])]:_0x1f1d16([0x73,0x69,0x67]),[_0x1f1d16([0x63,0x72,0x76])]:_0x1f1d16([0x50,0x2d,0x32,0x35,0x36]),[_0x1f1d16([0x78])]:_0x1f1d16([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]),[_0x1f1d16([0x79])]:_0x1f1d16([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]),[_0x1f1d16([0x61,0x6c,0x67])]:_0x1f1d16([0x45,0x53,0x32,0x35,0x36])},_0x327506=_0x3c092f[_0x1f1d16([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f1d16([0x67,0x65,0x74])](_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2299b9(){let _0x5e44fc,_0x3b539e=null,_0x53996b=null;try{if(_0x327506==_0x1f1d16([0x47,0x50,0x4c]))return _0x1f1d16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e44fc=_0x446bdc(),!_0x5e44fc)return _0x1f1d16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e44fc[_0x1f1d16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x53996b=_0x36a25e(_0x5e44fc[_0x1f1d16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e44fc[_0x1f1d16([0x6a,0x74,0x69])])),await _0x44261a()?_0x46584d()?_0x23b755()?_0x1f1d16([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x124684()?(_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1d16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b539e=_0x12af67(_0x1f1d16([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1d16([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b539e=_0x12af67(_0x1f1d16([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1aff04()):_0x1f1d16([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1d16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f1d16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f1d16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23b755(){const _0x442ff9=[_0x1f1d16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f1d16([0x74,0x72,0x69,0x61,0x6c])][_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5945a5/0x3e8:0xe10*_0x4ee127;return _0x5e44fc[_0x1f1d16([0x65,0x78,0x70])]<_0x442ff9;}function _0x46584d(){const _0x460758=_0x5e44fc[_0x1f1d16([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x460758&&(!!_0x460758[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d16([0x2a]))||!!_0x460758[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d16([0x55,0x50,0x4c,0x43])));}function _0x124684(){const _0x3188df=_0x140b,_0x546b1f=_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x546b1f||0x0==_0x546b1f[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9568e4}=new URL(window[_0x1f1d16([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3188df(0x1c6)]);if(_0x546b1f[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9568e4))return!0x0;const _0x4aabf9=_0x9568e4[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e]));return _0x546b1f[_0x1f1d16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x391cd3=>_0x391cd3[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d16([0x2a])))[_0x1f1d16([0x6d,0x61,0x70])](_0x59094e=>_0x59094e[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e])))[_0x1f1d16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x309f90=>_0x309f90[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4aabf9[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1d16([0x6d,0x61,0x70])](_0x12890d=>Array(_0x4aabf9[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x12890d[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1d16([0x66,0x69,0x6c,0x6c])](_0x12890d[0x0]===_0x1f1d16([0x2a])?_0x1f1d16([0x2a]):'')[_0x1f1d16([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x12890d))[_0x1f1d16([0x73,0x6f,0x6d,0x65])](_0x56bf60=>_0x4aabf9[_0x1f1d16([0x65,0x76,0x65,0x72,0x79])]((_0x156ad7,_0xe7e303)=>_0x56bf60[_0xe7e303]===_0x156ad7||_0x56bf60[_0xe7e303]===_0x1f1d16([0x2a])));}function _0x1aff04(){return _0x3b539e&&_0x53996b?new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e55b0,_0x498089)=>{_0x3b539e[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x4e55b0,_0x498089),_0x53996b[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x236d7a=>{_0x236d7a!=_0x1f1d16([0x56,0x61,0x6c,0x69,0x64])&&_0x4e55b0(_0x236d7a);},_0x498089);}):_0x3b539e||_0x53996b||_0x1f1d16([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36a25e(_0x260fcf,_0x37511a){return new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d5394=>{if(_0x972b34())return _0x2d5394(_0x1f1d16([0x56,0x61,0x6c,0x69,0x64]));_0x366afe(),_0x3c092f[_0x1f1d16([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f1d16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50c43e=!0x1;const _0x452b14=_0x19e281();function _0x2e2387(_0x2b3e82){return!!_0x2b3e82&&(typeof _0x2b3e82===_0x1f1d16([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b3e82===_0x1f1d16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b3e82[_0x1f1d16([0x74,0x68,0x65,0x6e])]===_0x1f1d16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b3e82[_0x1f1d16([0x63,0x61,0x74,0x63,0x68])]===_0x1f1d16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17a5ba(_0x2aebc9){_0x368ede(_0x2aebc9)[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x3accb1=>{if(!_0x3accb1||_0x3accb1[_0x1f1d16([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f1d16([0x6f,0x6b]))return _0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x130b67(_0xc3083d(_0x452b14+_0x37511a))!=_0x3accb1[_0x1f1d16([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1d16([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x558322=>(_0x44d20c(),_0x558322),()=>{const _0x59d7d4=_0x1db60d();return null==_0x59d7d4?(_0x44d20c(),_0x1f1d16([0x56,0x61,0x6c,0x69,0x64])):_0x1f1d16(_0x5945a5-_0x59d7d4>(0x7753083a^_0x1468b3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x2d5394)[_0x1f1d16([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d5394(_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa3baa1=0x536962ba^_0x1468b3;function _0x44d20c(){const _0x44be7e=_0x1f1d16([0x6c,0x6c,0x63,0x74,0x2d])+_0x130b67(_0xc3083d(_0x260fcf)),_0x392f4d=_0x30c1c0(_0x130b67(window[_0x1f1d16([0x4d,0x61,0x74,0x68])][_0x1f1d16([0x63,0x65,0x69,0x6c])](_0x5945a5/_0xa3baa1)));window[_0x1f1d16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1d16([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44be7e,_0x392f4d);}function _0x1db60d(){const _0x2f506e=_0x1f1d16([0x6c,0x6c,0x63,0x74,0x2d])+_0x130b67(_0xc3083d(_0x260fcf)),_0x5aef01=window[_0x1f1d16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1d16([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f506e);return _0x5aef01?window[_0x1f1d16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30c1c0(_0x5aef01),0x10)*_0xa3baa1:null;}function _0x368ede(_0x3f6601){return new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb79513,_0x507484)=>{_0x3f6601[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0xb79513,_0x507484),window[_0x1f1d16([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x507484,0x535e58fa^_0x1468b3);});}}_0x3c092f[_0x1f1d16([0x6f,0x6e])](_0x1f1d16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c1105,_0x3f42aa)=>{if(_0x3f42aa[0x0]!=_0x260fcf)return _0x2d5394(_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f42aa[0x1]={..._0x3f42aa[0x1],[_0x1f1d16([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x452b14};},{[_0x1f1d16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1d16([0x68,0x69,0x67,0x68])}),_0x3c092f[_0x1f1d16([0x6f,0x6e])](_0x1f1d16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b02c5=>{_0x2e2387(_0x4b02c5[_0x1f1d16([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50c43e=!0x0,_0x17a5ba(_0x4b02c5[_0x1f1d16([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f1d16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1d16([0x6c,0x6f,0x77])}),_0x3147f4[_0x1f1d16([0x74,0x68,0x65,0x6e])](()=>{_0x50c43e||_0x2d5394(_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x972b34(){return _0x3c092f[_0x1f1d16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1d16([0x76,0x69,0x65,0x77])][_0x1f1d16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f1d16([0x61,0x75,0x74,0x6f]);}function _0x366afe(){_0x3c092f[_0x1f1d16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1d16([0x76,0x69,0x65,0x77])][_0x1f1d16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1d16([0x61,0x75,0x74,0x6f]);}}function _0x12af67(_0x13edd5){const _0x5417fa=[new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2076fa=>setTimeout(_0x2076fa,0x5356b2f6^_0x1468b3)),_0x3147f4[_0x1f1d16([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bb99e=>{let _0x55fc29=0x0;_0x3c092f[_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d16([0x6f,0x6e])](_0x1f1d16([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x506454,_0x3198e7)=>{_0x3198e7[0x0][_0x1f1d16([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55fc29++,_0x55fc29==(0x535f8dc2^_0x1468b3)&&(_0x2bb99e(),_0x506454[_0x1f1d16([0x6f,0x66,0x66])]());});}))];return window[_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1d16([0x72,0x61,0x63,0x65])](_0x5417fa)[_0x1f1d16([0x74,0x68,0x65,0x6e])](()=>_0x13edd5);}async function _0x3b93f1(){await _0x3147f4,_0x3c092f[_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d16([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x150d52,_0x3c092f[_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d16([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x150d52,_0x3c092f[_0x1f1d16([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x323b8a(_0x52e5e1){const _0x531bb6=_0x25b58c();_0x3c092f[_0x531bb6]=_0x1f1d16([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52e5e1,_0x52e5e1!=_0x1f1d16([0x56,0x61,0x6c,0x69,0x64])&&_0x3b93f1();}function _0x25b58c(){const _0x2077ce=window[_0x1f1d16([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f1d16([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f1d16([0x6e,0x6f,0x77])]())[_0x1f1d16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f1d16([0x2e]),'');let _0x2a8266=_0x1f1d16([0x68]);for(let _0x11973c=0x0;_0x11973c<_0x2077ce[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11973c+=0x2){let _0x17fd67=window[_0x1f1d16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2077ce[_0x1f1d16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11973c,_0x11973c+0x2));_0x17fd67>=_0x52028d[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17fd67-=_0x52028d[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a8266+=_0x52028d[_0x17fd67];}return _0x2a8266;}function _0x446bdc(){const _0x139e06=_0x327506[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e]));if(0x3!=_0x139e06[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ef542(_0x139e06[0x1]);function _0x2ef542(_0x3685fa){const _0x54befa=_0x20e18b(_0x3685fa);return _0x54befa&&_0x49f5b4()?_0x54befa:null;function _0x49f5b4(){const _0x315f65=_0x54befa[_0x1f1d16([0x6a,0x74,0x69])],_0x32356f=window[_0x1f1d16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x315f65[_0x1f1d16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x315f65[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d289a={..._0x54befa,[_0x1f1d16([0x6a,0x74,0x69])]:_0x315f65[_0x1f1d16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x315f65[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d289a[_0x1f1d16([0x76,0x63])],_0xc3083d(_0x4d289a)==_0x32356f;}}}async function _0x44261a(){let _0x1f84a6=!0x0;try{const _0x8297cb=_0x327506[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e])),[_0x1144b,_0x1060ae,_0x2ac01d]=_0x8297cb;return _0x480d79(_0x1144b),await _0x59d255(_0x1144b,_0x1060ae,_0x2ac01d),_0x1f84a6;}catch{return!0x1;}function _0x480d79(_0x4a724d){const _0x1fb667=_0x20e18b(_0x4a724d);_0x1fb667&&_0x1fb667[_0x1f1d16([0x61,0x6c,0x67])]==_0x1f1d16([0x45,0x53,0x32,0x35,0x36])||(_0x1f84a6=!0x1);}async function _0x59d255(_0x5a6f8f,_0x3a241a,_0x561a44){const _0x28ad74=window[_0x1f1d16([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f1d16([0x66,0x72,0x6f,0x6d])](_0x280ffb(_0x561a44),_0x33bbae=>_0x33bbae[_0x1f1d16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1525a3=new window[(_0x1f1d16([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f1d16([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a6f8f+_0x1f1d16([0x2e])+_0x3a241a),_0x212e08=window[_0x1f1d16([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f1d16([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x212e08)return;const _0xa81b01=await _0x212e08[_0x1f1d16([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f1d16([0x6a,0x77,0x6b]),_0xb9eec4,{[_0x1f1d16([0x6e,0x61,0x6d,0x65])]:_0x1f1d16([0x45,0x43,0x44,0x53,0x41]),[_0x1f1d16([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f1d16([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f1d16([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x212e08[_0x1f1d16([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f1d16([0x6e,0x61,0x6d,0x65])]:_0x1f1d16([0x45,0x43,0x44,0x53,0x41]),[_0x1f1d16([0x68,0x61,0x73,0x68])]:{[_0x1f1d16([0x6e,0x61,0x6d,0x65])]:_0x1f1d16([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa81b01,_0x28ad74,_0x1525a3)||(_0x1f84a6=!0x1);}}function _0x20e18b(_0x56b694){return _0x56b694[_0x1f1d16([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f1d16([0x65,0x79]))?JSON[_0x1f1d16([0x70,0x61,0x72,0x73,0x65])](_0x280ffb(_0x56b694)):null;}function _0x280ffb(_0x3b1d9b){return window[_0x1f1d16([0x61,0x74,0x6f,0x62])](_0x3b1d9b[_0x1f1d16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f1d16([0x2b]))[_0x1f1d16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f1d16([0x2f])));}function _0xc3083d(_0xae2f2c){let _0x293537=0x1505;function _0x5e898c(_0x228696){for(let _0x14071d=0x0;_0x14071d<_0x228696[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14071d++){const _0x4eabfe=_0x228696[_0x1f1d16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14071d);_0x293537=(_0x293537<<0x5)+_0x293537+_0x4eabfe,_0x293537&=_0x293537;}}function _0x67b919(_0x18a88f){Array[_0x1f1d16([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x18a88f)?_0x18a88f[_0x1f1d16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x67b919):_0x18a88f&&typeof _0x18a88f==_0x1f1d16([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f1d16([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x18a88f)[_0x1f1d16([0x73,0x6f,0x72,0x74])]()[_0x1f1d16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4752ce,_0x11d973])=>{_0x5e898c(_0x4752ce),_0x67b919(_0x11d973);}):_0x5e898c(window[_0x1f1d16([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x18a88f));}return _0x67b919(_0xae2f2c),_0x293537>>>0x0;}function _0x130b67(_0x24af36){return _0x24af36[_0x1f1d16([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f1d16([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f1d16([0x30]));}function _0x30c1c0(_0x3594aa){return _0x3594aa[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f1d16([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f1d16([0x6a,0x6f,0x69,0x6e])]('');}function _0x150d52(){}function _0x1f1d16(_0x3f0c1f){const _0x32101a=_0x140b;return _0x3f0c1f[_0x32101a(0x1dd)](_0x49a4aa=>String[_0x32101a(0x1a7)](_0x49a4aa))[_0x32101a(0x1b2)]('');}_0x323b8a(await _0x2299b9());}(this);}[_0x51d5ea(0x1a4)](){const _0xe27fbd=_0x51d5ea,_0x55f5e1=this[_0xe27fbd(0x1b6)][_0xe27fbd(0x1cd)][_0xe27fbd(0x1be)];_0x55f5e1[_0xe27fbd(0x1ad)](_0xe27fbd(0x1e2))&&_0x55f5e1[_0xe27fbd(0x1b5)](_0xe27fbd(0x1e2),{'allowAttributes':[_0xe27fbd(0x1b8)]}),_0x55f5e1[_0xe27fbd(0x1ad)](_0xe27fbd(0x1dc))&&_0x55f5e1[_0xe27fbd(0x1b5)](_0xe27fbd(0x1dc),{'allowAttributes':[_0xe27fbd(0x1b8)]});}[_0x51d5ea(0x19f)](){const _0x273748=_0x51d5ea,_0x1d353d=this[_0x273748(0x1b6)];_0x1d353d[_0x273748(0x1c3)][_0x273748(0x1e6)](_0x273748(0x19b))[_0x273748(0x1d9)]({'model':_0x273748(0x1b8),'view':_0x273748(0x1c9)}),_0x1d353d[_0x273748(0x1c3)][_0x273748(0x1e6)](_0x273748(0x1e9))[_0x273748(0x1b9)]({'model':{'key':_0x273748(0x1b8),'value':_0x2cbeea=>_0x2cbeea[_0x273748(0x1a6)](_0x273748(0x1c9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1d6ae5=_0x1d353d[_0x273748(0x1d2)][_0x273748(0x1c4)](_0x273748(0x1a2));_0x1d6ae5&&this[_0x273748(0x1e1)](_0x1d6ae5,_0x273748(0x19c),(_0x5cf6f6,[_0x4e9142,_0x1f6d15])=>{const _0x4101bf=_0x273748;_0x4e9142[_0x4101bf(0x199)](_0x4101bf(0x1b8),_0x1f6d15);});}[_0x51d5ea(0x1b3)](){const _0x20755e=_0x51d5ea,_0x3619db=this[_0x20755e(0x1b6)][_0x20755e(0x1ab)][_0x20755e(0x1c4)](_0x20755e(0x1e8))||{},_0x1e4b86=this[_0x20755e(0x1b6)][_0x20755e(0x1ab)][_0x20755e(0x1c4)](_0x20755e(0x1e7))||'';this[_0x20755e(0x1bd)]=_0x5a7e69(_0xffd82e[_0x20755e(0x19d)],_0x20755e(0x1a5),{..._0x3619db,'pubkey':_0x1e4b86,'ctx-name':_0x20755e(0x1e0)+this[_0x20755e(0x1a1)],'sourceList':'','imgOnly':_0x20755e(0x1c5),'removeCopyright':_0x20755e(0x1c5),'localeName':this[_0x20755e(0x1b6)][_0x20755e(0x1cc)][_0x20755e(0x19a)],'externalSourcesEmbedCss':_0x20755e(0x1bb)}),this[_0x20755e(0x1bd)][_0x20755e(0x1ec)]=_0x3df5f1=>{const _0x3ac8b8=_0x20755e;if(_0x3ac8b8(0x1a3)==_0x3df5f1)return _0x3ac8b8(0x1de);},_0xffd82e[_0x20755e(0x19d)][_0x20755e(0x1da)][_0x20755e(0x1cf)](this[_0x20755e(0x1bd)]);}[_0x51d5ea(0x1c7)](){const _0x63e210=_0x51d5ea;this[_0x63e210(0x1a9)]=_0x5a7e69(_0xffd82e[_0x63e210(0x19d)],_0x63e210(0x1df),{'ctx-name':_0x63e210(0x1e0)+this[_0x63e210(0x1a1)]}),_0xffd82e[_0x63e210(0x19d)][_0x63e210(0x1da)][_0x63e210(0x1cf)](this[_0x63e210(0x1a9)]);}[_0x51d5ea(0x1d8)](){const _0x6a716e=_0x51d5ea,_0x4f86c2=this[_0x6a716e(0x1b6)][_0x6a716e(0x1d2)][_0x6a716e(0x1c4)](_0x6a716e(0x1d7));_0x4f86c2&&this[_0x6a716e(0x1e1)](_0x4f86c2,_0x6a716e(0x1a0),()=>{const _0x1c40c5=_0x6a716e,_0x1739cc=this[_0x1c40c5(0x1b6)][_0x1c40c5(0x1cd)][_0x1c40c5(0x19d)][_0x1c40c5(0x1af)][_0x1c40c5(0x1d4)]();_0x1739cc&&_0x1739cc[_0x1c40c5(0x1a6)](_0x1c40c5(0x1b8))&&this[_0x1c40c5(0x1b6)][_0x1c40c5(0x1c1)][_0x1c40c5(0x1c2)][_0x1c40c5(0x1d5)](_0x1c40c5(0x1d1),()=>{const _0x346cd8=_0x1c40c5;_0x2e4ccf(this[_0x346cd8(0x1b6)],_0x1739cc);});});const _0x1c0e9c=this[_0x6a716e(0x1b6)][_0x6a716e(0x1d2)][_0x6a716e(0x1c4)](_0x6a716e(0x1d0));_0x1c0e9c&&this[_0x6a716e(0x1e1)](_0x1c0e9c,_0x6a716e(0x1a0),()=>{const _0xf3a13c=_0x6a716e,_0xc7ab2b=this[_0xf3a13c(0x1b6)][_0xf3a13c(0x1cd)][_0xf3a13c(0x19d)][_0xf3a13c(0x1af)][_0xf3a13c(0x1d4)]();_0xc7ab2b&&_0xc7ab2b[_0xf3a13c(0x1a6)](_0xf3a13c(0x1b8))&&this[_0xf3a13c(0x1b6)][_0xf3a13c(0x1c1)][_0xf3a13c(0x1c2)][_0xf3a13c(0x1d5)](_0xf3a13c(0x1d1),()=>{const _0x53edd5=_0xf3a13c;_0x2e4ccf(this[_0x53edd5(0x1b6)],_0xc7ab2b);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x206eb4,ObservableMixin as _0x49b5a6}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2eabe5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4f4e1b}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xb750aa}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x353cbe}from'../../utils/uploadutils.js';import{getImageUrls as _0x42044e,getImageDimension as _0x47d1ad}from'../../utils/editingutils.js';import{isAncestor as _0x276e0d}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x49b5a6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x16f396,_0x123a01,_0x4a111a){super(),this['_editor']=_0x16f396,this['_dialog']=_0x123a01,this['_imageElement']=_0x4a111a,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 _0x40a720=this['_imageElement'],_0x39d260=_0x40a720['getAttribute']('uploadcareImageId'),_0x1b8f92=_0x40a720['getAttribute']('src');if(_0x39d260)await this['_loadImageInfo'](_0x39d260,_0x1b8f92);else{if(this['_imageCache']['has'](_0x1b8f92)){const _0x4a0c05=this['_imageCache']['get'](_0x1b8f92);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a0c05['url'],this['imageDimension']=_0x4a0c05['dimension'],this['imageId']=_0x4a0c05['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51e8a4}=this['_editor'],t=_0x51e8a4['t'],_0x48eccb=new _0xb750aa(_0x51e8a4,this['imageStatus'],this['_attributes']);_0x48eccb['bind']('status')['to'](this,'imageStatus'),_0x48eccb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x48eccb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x48eccb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x48eccb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4f4e1b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x48eccb,'position':_0x2eabe5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x48eccb['focus']();},'onHide':()=>{_0x48eccb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x42e835=>!_0x276e0d(_0x42e835,_0x48eccb['element'])}});}['_loadImageInfo'](_0x56af8d,_0x473390){return _0x353cbe['getInfo'](_0x56af8d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5e95e4=>{const {width:_0x49dd6d,height:_0x3f2910}=_0x5e95e4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x473390,this['imageDimension']={'width':_0x49dd6d,'height':_0x3f2910},this['imageId']=_0x56af8d;})['catch'](_0x420a35=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x420a35['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1de891,_0x5133ce){return this['_getImageAsFile'](_0x1de891)['then'](_0x478d73=>_0x353cbe['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':_0x5133ce['signal'],'file':_0x478d73,'onProgress':_0x5de966=>{_0x5de966&&_0x5de966['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5de966['value']));}}))['then'](_0x539e6d=>{const {width:_0x329e85,height:_0x7c5f33}=_0x539e6d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x539e6d['cdnUrl'],this['imageDimension']={'width':_0x329e85,'height':_0x7c5f33},this['imageId']=_0x539e6d['uuid'],this['imageUploadProgress']=null;const _0x59d33b=_0x1de891['getAttribute']('src');this['_imageCache']['set'](_0x59d33b,{'id':_0x539e6d['uuid'],'url':_0x539e6d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x59fbff=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x59fbff['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4b2846,_0x4e4eb0){_0x4b2846['on']('apply',(_0x4a8030,_0x5e5044)=>{this['_replaceImage'](_0x4e4eb0,_0x5e5044['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4b2846['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4b2846['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2b19a0,_0x5e5121,_0x216e0f){const _0x1368db=this['_editor'],{width:_0xd26c5d,height:_0x442012}=_0x47d1ad(_0x5e5121,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x27ca11,imageSources:_0x4dc576}=_0x42044e(_0x5e5121,_0xd26c5d);_0x1368db['model']['change'](_0xfcb466=>{if('$graveyard'===_0x2b19a0['root']['rootName']){_0x1368db['execute']('insertImage',{'imageType':_0x2b19a0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2b19a0['getAttributes']()),'uploadcareImageId':_0x216e0f,'src':_0x27ca11,'sources':_0x4dc576,'width':_0xd26c5d,'height':_0x442012}});const _0x183406=_0x2b19a0['getChildren']();_0x2b19a0=_0x1368db['model']['document']['selection']['getSelectedElement']();for(const _0x2868bd of _0x183406)_0xfcb466['append'](_0xfcb466['cloneElement'](_0x2868bd),_0x2b19a0);}else _0xfcb466['setSelection'](_0x2b19a0,'on'),_0x1368db['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2b19a0['getAttributes']()),'uploadcareImageId':_0x216e0f,'src':_0x27ca11,'sources':_0x4dc576,'width':_0xd26c5d,'height':_0x442012},_0x2b19a0);_0xfcb466['setSelection'](_0x2b19a0,'on');});}async['_getImageAsFile'](_0x14eaa8){const _0x219512=_0x206eb4['window'],_0x5a4705=_0x206eb4['document']['location']['href'],_0x21bedd=new _0x219512['URL'](_0x14eaa8['getAttribute']('src'),_0x5a4705);if('data:'===_0x21bedd['protocol']){const _0x27d3f1=_0x21bedd['href']['split'](','),_0x448c3d=_0x27d3f1[0x0]['match'](/:(.*?);/)[0x1],_0x1506de=_0x448c3d['split']('/')[0x1],_0x45f3a9=_0x219512['atob'](_0x27d3f1[_0x27d3f1['length']-0x1]);let _0x40f7bf=_0x45f3a9['length'];const _0x51f040=new _0x219512['Uint8Array'](_0x40f7bf);for(;_0x40f7bf--;)_0x51f040[_0x40f7bf]=_0x45f3a9['charCodeAt'](_0x40f7bf);return new _0x219512['File']([_0x51f040],'image.'+_0x1506de,{'type':_0x448c3d});}const _0x47a767=_0x21bedd['href']['split']('/'),_0x52d36e=_0x47a767[_0x47a767['length']-0x1],_0x1eaedb=_0x52d36e['split']('.')[0x1];return _0x219512['fetch'](_0x21bedd['href'])['then'](_0x139cba=>_0x139cba['clone']()['blob']())['then'](_0x148bf8=>new _0x219512['File']([_0x148bf8],_0x52d36e,{'type':'image/'+_0x1eaedb}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4764af,_0x926991){const _0x48de97=_0x23d2,_0x195016=_0x4764af();while(!![]){try{const _0x21b204=-parseInt(_0x48de97(0x1c6))/0x1+parseInt(_0x48de97(0x1d1))/0x2*(-parseInt(_0x48de97(0x1d3))/0x3)+parseInt(_0x48de97(0x1cf))/0x4+parseInt(_0x48de97(0x1cb))/0x5*(-parseInt(_0x48de97(0x1c8))/0x6)+parseInt(_0x48de97(0x1c5))/0x7+parseInt(_0x48de97(0x1ce))/0x8+-parseInt(_0x48de97(0x1c4))/0x9*(parseInt(_0x48de97(0x1d2))/0xa);if(_0x21b204===_0x926991)break;else _0x195016['push'](_0x195016['shift']());}catch(_0x2bafb7){_0x195016['push'](_0x195016['shift']());}}}(_0x52fb,0xdf58f));function _0x23d2(_0xdcb81c,_0x26e91c){const _0x52fbcb=_0x52fb();return _0x23d2=function(_0x23d229,_0x36c24c){_0x23d229=_0x23d229-0x1c2;let _0x44699a=_0x52fbcb[_0x23d229];return _0x44699a;},_0x23d2(_0xdcb81c,_0x26e91c);}import{View as _0xbad432}from'ckeditor5/src/ui.js';function _0x52fb(){const _0x38fb57=['imageSrc','ck-uploadcare-theme','20065ACOXBP','bindTemplate','set','12949768hdrIph','5105880ezBmqI','uc-light','76534iBsaxM','490uNGcKK','60aNyxsv','uc-cloud-image-editor','image-edit','20133UzgOaw','7568176LQHeng','1331806VsKUIB','setTemplate','1278OvOtxf'];_0x52fb=function(){return _0x38fb57;};return _0x52fb();}export class UploadcareImageEditFormEditingView extends _0xbad432{constructor(_0x35d0ea,_0x99dcfe){const _0xa78046=_0x23d2;super(_0x35d0ea);const _0x4868f1=this[_0xa78046(0x1cc)];this[_0xa78046(0x1cd)](_0xa78046(0x1c9),''),this[_0xa78046(0x1c7)]({'tag':_0xa78046(0x1c2),'attributes':{..._0x99dcfe,'class':[_0xa78046(0x1d0),_0xa78046(0x1ca)],'ctx-name':_0xa78046(0x1c3),'cdn-url':_0x4868f1['to'](_0xa78046(0x1c9))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0xb352da}from'ckeditor5/src/icons.js';import{ButtonView as _0x2c7d7c,IconView as _0x10b6e7,View as _0xc8d0c9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0xc8d0c9{constructor(_0x601443){super(_0x601443);const t=_0x601443['t'];this['set']('errorType',null);const _0x4b0897=new _0x2c7d7c(_0x601443);_0x4b0897['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4b0897['withText']=!0x0,_0x4b0897['class']='ck-button-action',_0x4b0897['on']('execute',()=>{this['fire']('retry');}),_0x4b0897['bind']('isVisible')['to'](this,'errorType',_0x13dced=>'NotFound'!==_0x13dced);const _0x28d5d6=new _0x10b6e7();_0x28d5d6['content']=_0xb352da,_0x28d5d6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe9a040=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':[_0x28d5d6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe9a040['to']('errorType',_0xc537ff=>t('NotFound'!==_0xc537ff?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4b0897]},{'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 _0x4eb61d,View as _0x4a8463}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4a8463{constructor(_0x5bd035){super(_0x5bd035);const t=_0x5bd035['t'],_0x1e8a77=this['bindTemplate'],_0x30a5a0=new _0x4eb61d();_0x30a5a0['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':[_0x30a5a0,{'text':_0x1e8a77['to']('imageUploadProgress',_0x11ccad=>t('Loading\x20image...')+'\x20('+(_0x11ccad||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fb375=_0x4917;(function(_0x37a136,_0x4a9642){const _0x2baba2=_0x4917,_0x5e930d=_0x37a136();while(!![]){try{const _0x2deda3=parseInt(_0x2baba2(0x1c9))/0x1+parseInt(_0x2baba2(0x1cb))/0x2+-parseInt(_0x2baba2(0x1e0))/0x3+-parseInt(_0x2baba2(0x1f4))/0x4*(-parseInt(_0x2baba2(0x1cf))/0x5)+-parseInt(_0x2baba2(0x1dd))/0x6+-parseInt(_0x2baba2(0x1f3))/0x7+parseInt(_0x2baba2(0x1e3))/0x8*(parseInt(_0x2baba2(0x1ee))/0x9);if(_0x2deda3===_0x4a9642)break;else _0x5e930d['push'](_0x5e930d['shift']());}catch(_0x73c122){_0x5e930d['push'](_0x5e930d['shift']());}}}(_0x4233,0x3b80e));import{View as _0x43cee7}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x422aeb}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x37b93c}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3c007c}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x539d90}from'../../utils/dialogfocusmanagerview.js';function _0x4917(_0x383992,_0x4f75e3){const _0x4233ef=_0x4233();return _0x4917=function(_0x4917c7,_0x177a31){_0x4917c7=_0x4917c7-0x1c4;let _0x256003=_0x4233ef[_0x4917c7];return _0x256003;},_0x4917(_0x383992,_0x4f75e3);}import'../../../theme/uploadcare-form.css';function _0x4233(){const _0x138503=['div','target','disconnect','retry','9RTmRyM','_waitForImageEditorComponent','addEventListener','length','setTemplate','748636ijRqHb','232YFMzAx','filter','apply','createCollection','render','cdnUrl','clear','add','set','nodeName','_setView','101460wCWxEX','once','753038kMhGEr','ready','getFocusableElement','cancel','9015TGLpkQ','ck-uploadcare-form','_focusableView','detail','observe','element','addMany','error','ck-reset_all-excluded','uploading','status','change:status','_addErrorViewListeners','_editingView','1703946pWYuFM','addedNodes','toLowerCase','2184aLpGJQ','querySelector','_loadingView','422720kmzCOe','_errorView','uc-cloud-image-editor','_addUploadcareImageEditorListeners','fire','_items','focus'];_0x4233=function(){return _0x138503;};return _0x4233();}export class UploadcareImageEditFormView extends _0x539d90{[_0x3fb375(0x1e8)];[_0x3fb375(0x1e2)];[_0x3fb375(0x1e4)];[_0x3fb375(0x1dc)];[_0x3fb375(0x1d1)];constructor(_0x212466,_0x4a500b,_0x2b608d){const _0x5c8863=_0x3fb375;super(_0x212466),this[_0x5c8863(0x1e8)]=this[_0x5c8863(0x1f7)](),this[_0x5c8863(0x1e2)]=new _0x422aeb(_0x212466),this[_0x5c8863(0x1e4)]=new _0x37b93c(_0x212466),this[_0x5c8863(0x1dc)]=new _0x3c007c(_0x212466,_0x2b608d),this[_0x5c8863(0x1d1)]=new _0x43cee7(_0x212466),this[_0x5c8863(0x1d1)][_0x5c8863(0x1f2)](this[_0x5c8863(0x1cd)]()),this[_0x5c8863(0x1c6)](_0x5c8863(0x1d9),_0x4a500b),this[_0x5c8863(0x1f2)]({'tag':_0x5c8863(0x1ea),'attributes':{'class':['ck',_0x5c8863(0x1d7),_0x5c8863(0x1d0)],'tabindex':'-1'},'children':this[_0x5c8863(0x1e8)]}),this[_0x5c8863(0x1c8)](),this[_0x5c8863(0x1ca)](_0x5c8863(0x1f8),()=>{const _0x264311=_0x5c8863;this[_0x264311(0x1ef)](this[_0x264311(0x1d4)],_0x3163df=>{const _0x15762f=_0x264311;this[_0x15762f(0x1e6)](_0x3163df);});}),this['on'](_0x5c8863(0x1da),()=>{const _0x40d917=_0x5c8863;this[_0x40d917(0x1c8)]();}),this[_0x5c8863(0x1db)]();}[_0x3fb375(0x1e9)](){const _0x60a98f=_0x3fb375;this[_0x60a98f(0x1d4)][_0x60a98f(0x1e9)]();}[_0x3fb375(0x1c8)](){const _0x14b89a=_0x3fb375;switch(this[_0x14b89a(0x1e8)][_0x14b89a(0x1c4)](),this[_0x14b89a(0x1d9)]){case _0x14b89a(0x1d8):this[_0x14b89a(0x1e8)][_0x14b89a(0x1c5)](this[_0x14b89a(0x1e2)]);break;case _0x14b89a(0x1d6):this[_0x14b89a(0x1e8)][_0x14b89a(0x1c5)](this[_0x14b89a(0x1e4)]);break;case _0x14b89a(0x1cc):this[_0x14b89a(0x1e8)][_0x14b89a(0x1d5)]([this[_0x14b89a(0x1dc)],this[_0x14b89a(0x1d1)]]);}}[_0x3fb375(0x1ef)](_0x558841,_0x2d4459){const _0x37e9fc=_0x3fb375,_0x236426=_0x37e9fc(0x1e5),_0x4ec556=_0x558841[_0x37e9fc(0x1e1)](_0x236426);if(_0x4ec556)return _0x2d4459(_0x4ec556);const _0x2306eb=new MutationObserver(_0x2faa6e=>{const _0x39fb06=_0x37e9fc,_0x562975=_0x2faa6e[_0x39fb06(0x1f5)](_0x58d0a9=>_0x58d0a9[_0x39fb06(0x1eb)]===_0x558841&&_0x58d0a9[_0x39fb06(0x1de)][_0x39fb06(0x1f1)]>0x0&&_0x58d0a9[_0x39fb06(0x1de)][0x0][_0x39fb06(0x1c7)][_0x39fb06(0x1df)]()===_0x236426);_0x562975[_0x39fb06(0x1f1)]&&(_0x2306eb[_0x39fb06(0x1ec)](),_0x2d4459(_0x562975[0x0][_0x39fb06(0x1de)][0x0]));});_0x2306eb[_0x37e9fc(0x1d3)](_0x558841,{'childList':!0x0,'subtree':!0x0});}[_0x3fb375(0x1e6)](_0x53e807){const _0x24a6bb=_0x3fb375;_0x53e807[_0x24a6bb(0x1f0)](_0x24a6bb(0x1f6),_0x5da922=>{const _0x45624b=_0x24a6bb;this[_0x45624b(0x1e7)](_0x45624b(0x1f6),{'imageSrc':_0x5da922[_0x45624b(0x1d2)][_0x45624b(0x1f9)]});}),_0x53e807[_0x24a6bb(0x1f0)](_0x24a6bb(0x1ce),()=>{const _0x558f05=_0x24a6bb;this[_0x558f05(0x1e7)](_0x558f05(0x1ce));});}[_0x3fb375(0x1db)](){const _0x1750df=_0x3fb375;this[_0x1750df(0x1e4)]['on'](_0x1750df(0x1ed),()=>{const _0x5c7f76=_0x1750df;this[_0x5c7f76(0x1e7)](_0x5c7f76(0x1ed));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6e9248=_0x2aaa;(function(_0x21989b,_0x279be3){const _0x3c5d93=_0x2aaa,_0x36ce26=_0x21989b();while(!![]){try{const _0x1a1da2=parseInt(_0x3c5d93(0x168))/0x1+-parseInt(_0x3c5d93(0x14d))/0x2*(-parseInt(_0x3c5d93(0x164))/0x3)+parseInt(_0x3c5d93(0x15c))/0x4+parseInt(_0x3c5d93(0x153))/0x5+-parseInt(_0x3c5d93(0x165))/0x6*(parseInt(_0x3c5d93(0x14a))/0x7)+parseInt(_0x3c5d93(0x149))/0x8*(-parseInt(_0x3c5d93(0x14b))/0x9)+parseInt(_0x3c5d93(0x15e))/0xa*(-parseInt(_0x3c5d93(0x169))/0xb);if(_0x1a1da2===_0x279be3)break;else _0x36ce26['push'](_0x36ce26['shift']());}catch(_0x2c4b0b){_0x36ce26['push'](_0x36ce26['shift']());}}}(_0x4112,0x344d6));import{Command as _0xb9f44f}from'ckeditor5/src/core.js';function _0x2aaa(_0xb06f1e,_0x4d0991){const _0x4112e6=_0x4112();return _0x2aaa=function(_0x2aaad3,_0x5dbb8f){_0x2aaad3=_0x2aaad3-0x149;let _0xc1022a=_0x4112e6[_0x2aaad3];return _0xc1022a;},_0x2aaa(_0xb06f1e,_0x4d0991);}import{Dialog as _0x4c6052}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x5484e9}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2f3853}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xb9f44f{[_0x6e9248(0x15a)];static get[_0x6e9248(0x14f)](){return[_0x4c6052];}[_0x6e9248(0x154)];constructor(_0xe1167b){const _0x429ec5=_0x6e9248;super(_0xe1167b),this[_0x429ec5(0x15a)]=void 0x0,this[_0x429ec5(0x154)]=_0x2f3853(_0xe1167b[_0x429ec5(0x14e)][_0x429ec5(0x167)](_0x429ec5(0x162))||[]),this[_0x429ec5(0x166)]({'isActive':!0x1});}[_0x6e9248(0x163)](){const _0x3f8bc7=_0x6e9248,_0x4e028a=this[_0x3f8bc7(0x158)][_0x3f8bc7(0x14c)][_0x3f8bc7(0x150)][_0x3f8bc7(0x151)][_0x3f8bc7(0x157)]();this[_0x3f8bc7(0x160)]=this[_0x3f8bc7(0x154)](_0x4e028a);}[_0x6e9248(0x152)](){const _0x4d5dd2=_0x6e9248;this[_0x4d5dd2(0x15a)]&&(this[_0x4d5dd2(0x15d)](_0x4d5dd2(0x161)),this[_0x4d5dd2(0x15a)]=void 0x0);const _0x39d9e1=this[_0x4d5dd2(0x158)][_0x4d5dd2(0x14c)][_0x4d5dd2(0x150)][_0x4d5dd2(0x151)][_0x4d5dd2(0x157)]();_0x39d9e1&&(_0x39d9e1['is'](_0x4d5dd2(0x156),_0x4d5dd2(0x15b))||_0x39d9e1['is'](_0x4d5dd2(0x156),_0x4d5dd2(0x15f)))&&(this[_0x4d5dd2(0x15a)]=new _0x5484e9(this[_0x4d5dd2(0x158)],this[_0x4d5dd2(0x158)][_0x4d5dd2(0x159)][_0x4d5dd2(0x167)](_0x4c6052),_0x39d9e1),this[_0x4d5dd2(0x155)](_0x4d5dd2(0x161))['to'](this[_0x4d5dd2(0x15a)],_0x4d5dd2(0x161)));}}function _0x4112(){const _0x381282=['refresh','3ZtgiJj','204iySGCX','set','get','222739SJruXn','286682pkHydi','1023728cSSaIV','60487sWoyXK','18qhCUHI','model','388742mWeomB','config','requires','document','selection','execute','2135870BonHuG','_isEditable','bind','element','getSelectedElement','editor','plugins','imageEditController','imageBlock','199928kdDvXi','unbind','50IimtHi','imageInline','isEnabled','isActive','uploadcare.allowExternalImagesEditing'];_0x4112=function(){return _0x381282;};return _0x4112();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52a8ab=_0x512a;function _0x512a(_0x3806cd,_0x187420){const _0x758e3=_0x758e();return _0x512a=function(_0x512ac5,_0x506c14){_0x512ac5=_0x512ac5-0x1de;let _0x421935=_0x758e3[_0x512ac5];return _0x421935;},_0x512a(_0x3806cd,_0x187420);}(function(_0x39bb50,_0x3d09f3){const _0x209bba=_0x512a,_0x140d9c=_0x39bb50();while(!![]){try{const _0x1f9253=parseInt(_0x209bba(0x1e4))/0x1+parseInt(_0x209bba(0x1e8))/0x2+parseInt(_0x209bba(0x1ea))/0x3+-parseInt(_0x209bba(0x1ec))/0x4+-parseInt(_0x209bba(0x1eb))/0x5*(parseInt(_0x209bba(0x1e5))/0x6)+-parseInt(_0x209bba(0x1e2))/0x7+parseInt(_0x209bba(0x1f0))/0x8;if(_0x1f9253===_0x3d09f3)break;else _0x140d9c['push'](_0x140d9c['shift']());}catch(_0x20cefb){_0x140d9c['push'](_0x140d9c['shift']());}}}(_0x758e,0x47dcb));import{Plugin as _0x10e513}from'ckeditor5/src/core.js';import{Notification as _0x3e024b}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4daa12}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5ce7fa}from'./uploadcareimagereplacecommand.js';function _0x758e(){const _0x279951=['2230520BdCEWz','commands','ImageUtils','requires','53960PuTjKd','isOfficialPlugin','UploadcareImageEditEditing','add','init','uploadcareImageReplace','1352603vgyAoh','uploadcareImageEdit','27329mcjrJM','43674PbjiAU','isPremiumPlugin','pluginName','1093124LAGySP','ImageEditing','1721265DsDgKq','75NHaeEc'];_0x758e=function(){return _0x279951;};return _0x758e();}import{UploadcareEditing as _0x5ef953}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x10e513{static get[_0x52a8ab(0x1e7)](){const _0x26486c=_0x52a8ab;return _0x26486c(0x1de);}static get[_0x52a8ab(0x1ef)](){const _0x1dcefd=_0x52a8ab;return[_0x5ef953,_0x3e024b,_0x1dcefd(0x1ee),_0x1dcefd(0x1e9)];}static get[_0x52a8ab(0x1f1)](){return!0x0;}static get[_0x52a8ab(0x1e6)](){return!0x0;}[_0x52a8ab(0x1e0)](){const _0x33e566=_0x52a8ab,{editor:_0x2e0c2e}=this;_0x2e0c2e[_0x33e566(0x1ed)][_0x33e566(0x1df)](_0x33e566(0x1e3),new _0x4daa12(_0x2e0c2e)),_0x2e0c2e[_0x33e566(0x1ed)][_0x33e566(0x1df)](_0x33e566(0x1e1),new _0x5ce7fa(_0x2e0c2e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x292eec}from'ckeditor5/src/core.js';import{ButtonView as _0x107d8b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x17ad7c}from'ckeditor5/src/icons.js';import{createElement as _0x179d3f}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 _0x292eec{['_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 _0x22a226=this['editor'];_0x22a226['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2edf5f=>{const _0x512c2e=_0x22a226['commands']['get']('uploadcareImageEdit'),_0x5a8d9d=new _0x107d8b(_0x2edf5f),t=_0x2edf5f['t'];return _0x5a8d9d['set']({'icon':_0x17ad7c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5a8d9d['bind']('isEnabled')['to'](_0x512c2e),_0x5a8d9d['bind']('isOn')['to'](_0x512c2e,'isActive'),this['listenTo'](_0x5a8d9d,'execute',()=>{_0x22a226['execute']('uploadcareImageEdit'),_0x22a226['editing']['view']['focus']();}),_0x5a8d9d;}),this['_initConfig']();}['_initConfig'](){const _0x111a69=_0x179d3f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x111a69),this['listenTo'](this['editor'],'destroy',()=>{_0x111a69['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf61c8a=_0x3b61;function _0x3b61(_0x11f06f,_0x3dfa8d){const _0x3c22a3=_0x3c22();return _0x3b61=function(_0x3b6113,_0x2e7616){_0x3b6113=_0x3b6113-0x162;let _0x50cc37=_0x3c22a3[_0x3b6113];return _0x50cc37;},_0x3b61(_0x11f06f,_0x3dfa8d);}(function(_0x57ca79,_0x17f728){const _0x446174=_0x3b61,_0x3dcf7b=_0x57ca79();while(!![]){try{const _0x25982d=-parseInt(_0x446174(0x17a))/0x1+-parseInt(_0x446174(0x169))/0x2+parseInt(_0x446174(0x168))/0x3+-parseInt(_0x446174(0x171))/0x4+-parseInt(_0x446174(0x164))/0x5*(parseInt(_0x446174(0x172))/0x6)+parseInt(_0x446174(0x16f))/0x7+parseInt(_0x446174(0x176))/0x8*(parseInt(_0x446174(0x16b))/0x9);if(_0x25982d===_0x17f728)break;else _0x3dcf7b['push'](_0x3dcf7b['shift']());}catch(_0x3f7023){_0x3dcf7b['push'](_0x3dcf7b['shift']());}}}(_0x3c22,0x8568d));import{Command as _0x86b9f0}from'ckeditor5/src/core.js';function _0x3c22(){const _0x45b0ea=['sizes','606556vkYbqG','editor','isEnabled','920085wVRIhi','setAttributes','change','imageBlock','3020751ojDVHe','705214ruByso','model','7578RYaUqN','document','refresh','removeAttribute','5575871WmdFmK','execute','489060XCqOcb','6ONCoSA','imageInline','selection','element','80uqRhws','getSelectedElement','srcset'];_0x3c22=function(){return _0x45b0ea;};return _0x3c22();}export class UploadcareImageReplaceCommand extends _0x86b9f0{[_0xf61c8a(0x16d)](){const _0x2b5688=_0xf61c8a,_0x25e138=this[_0x2b5688(0x162)][_0x2b5688(0x16a)][_0x2b5688(0x16c)][_0x2b5688(0x174)][_0x2b5688(0x177)]();this[_0x2b5688(0x163)]=Boolean(_0x25e138&&(_0x25e138['is'](_0x2b5688(0x175),_0x2b5688(0x167))||_0x25e138['is'](_0x2b5688(0x175),_0x2b5688(0x173))));}[_0xf61c8a(0x170)](_0xc8d259){const _0x2b62d1=_0xf61c8a,_0x30a34b=this[_0x2b62d1(0x162)][_0x2b62d1(0x16a)][_0x2b62d1(0x16c)][_0x2b62d1(0x174)][_0x2b62d1(0x177)]();this[_0x2b62d1(0x162)][_0x2b62d1(0x16a)][_0x2b62d1(0x166)](_0x32d676=>{const _0x465c49=_0x2b62d1;_0x32d676[_0x465c49(0x165)](_0xc8d259,_0x30a34b),_0x32d676[_0x465c49(0x16e)](_0x465c49(0x178),_0x30a34b),_0x32d676[_0x465c49(0x16e)](_0x465c49(0x179),_0x30a34b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x1069(_0x335b24,_0x26b5ef){var _0x3336ea=_0x3336();return _0x1069=function(_0x1069fe,_0x1c188f){_0x1069fe=_0x1069fe-0x152;var _0x30ef2d=_0x3336ea[_0x1069fe];return _0x30ef2d;},_0x1069(_0x335b24,_0x26b5ef);}var _0x1ac538=_0x1069;(function(_0x23b859,_0x988b3f){var _0xc489bd=_0x1069,_0x289b2d=_0x23b859();while(!![]){try{var _0x2db06d=-parseInt(_0xc489bd(0x15c))/0x1*(parseInt(_0xc489bd(0x15a))/0x2)+parseInt(_0xc489bd(0x15f))/0x3+parseInt(_0xc489bd(0x154))/0x4*(parseInt(_0xc489bd(0x157))/0x5)+-parseInt(_0xc489bd(0x152))/0x6+-parseInt(_0xc489bd(0x15d))/0x7*(parseInt(_0xc489bd(0x158))/0x8)+parseInt(_0xc489bd(0x160))/0x9+parseInt(_0xc489bd(0x159))/0xa;if(_0x2db06d===_0x988b3f)break;else _0x289b2d['push'](_0x289b2d['shift']());}catch(_0x40b764){_0x289b2d['push'](_0x289b2d['shift']());}}}(_0x3336,0x98913));function _0x3336(){var _0x1ebb29=['isPremiumPlugin','33rLuIIx','1211EQlvpb','pluginName','1104105oJirvE','5470695WBXHhF','2270520WdHnYd','isOfficialPlugin','581488KJZRKg','UploadcareImageEdit','requires','10lcXHdq','39640uNeMxQ','8976150RuvoYN','18406TPWTsj'];_0x3336=function(){return _0x1ebb29;};return _0x3336();}import{Plugin as _0x20bd64}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x15fe7c}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5a2120}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x20bd64{static get[_0x1ac538(0x15e)](){var _0x3f8937=_0x1ac538;return _0x3f8937(0x155);}static get[_0x1ac538(0x156)](){return[_0x15fe7c,_0x5a2120];}static get[_0x1ac538(0x153)](){return!0x0;}static get[_0x1ac538(0x15b)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc17bda=_0x1bc8;(function(_0x459342,_0x526720){const _0x3a897d=_0x1bc8,_0x5220f5=_0x459342();while(!![]){try{const _0x299288=parseInt(_0x3a897d(0x16c))/0x1+-parseInt(_0x3a897d(0x189))/0x2+parseInt(_0x3a897d(0x179))/0x3+-parseInt(_0x3a897d(0x175))/0x4+parseInt(_0x3a897d(0x17d))/0x5*(-parseInt(_0x3a897d(0x165))/0x6)+parseInt(_0x3a897d(0x163))/0x7*(parseInt(_0x3a897d(0x13c))/0x8)+-parseInt(_0x3a897d(0x180))/0x9*(parseInt(_0x3a897d(0x184))/0xa);if(_0x299288===_0x526720)break;else _0x5220f5['push'](_0x5220f5['shift']());}catch(_0x27de18){_0x5220f5['push'](_0x5220f5['shift']());}}}(_0x4950,0xcc741));import{Plugin as _0x4fc280}from'ckeditor5/src/core.js';function _0x1bc8(_0x1a1048,_0x4bb6fc){const _0x495068=_0x4950();return _0x1bc8=function(_0x1bc8ad,_0x200654){_0x1bc8ad=_0x1bc8ad-0x13b;let _0xba8223=_0x495068[_0x1bc8ad];return _0xba8223;},_0x1bc8(_0x1a1048,_0x4bb6fc);}import{IconDropbox as _0xdb5e7c,IconFacebook as _0x133563,IconGoogleDrive as _0x1091ab,IconGooglePhotos as _0x599597,IconUploadcareImageUpload as _0x3d875e,IconUploadcareLink as _0x716ff8,IconOneDrive as _0x3be201}from'ckeditor5/src/icons.js';import{ButtonView as _0x17e607,MenuBarMenuListItemButtonView as _0xf4da46}from'ckeditor5/src/ui.js';function _0x4950(){const _0x2be99a=['trialLimit','uploadcare','registerIntegration','_createButton','_normalizeConfigSourceList','init','Uploadcare','afterInit','plugins','ImageInsertUI','map','_createDropdownButtons','type','GDrive','Dropbox','licenseKey','forEach','_createToolbarButton','isPremiumPlugin','shortText','uploadcareLicenseKeyEvaluationLimit','reduce','uploadcareLicenseKeyUsageLimit','invalid','evaluationLimit','expired','upload','url','assetManager','text','Replace','featureNotAllowed','usageLimit','isEnabled','257663rCfTGD','URL','410226EOjqCj','GPhotos','Local','config','domainLimit','execute','OneDrive','462131zyTAFG','Facebook','label','uploadcare.uploader.sourceList','Insert','destroy','entries','uploadcareLicenseKeyExpired','_showLicenseError','6029264zhOgXM','commands','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyNotAllowed','4432767jTjnLk','pluginName','UploadcareUI','isImageSelected','5XdMerf','push','tooltip','1536579XXusTl','_licenseKeyCheckInterval','isOfficialPlugin','withText','10SbctUD','bind','editor','locale','uploadcareLicenseKeyInvalid','1877296qlkqQe','has','get','uploadcareLicenseKeyValid','344WEbMfQ','icon','_createMenuBarButtons','_getIntegrationKey','uploadcareLicenseKeyTrialLimit'];_0x4950=function(){return _0x2be99a;};return _0x4950();}import{UploadcareSource as _0x17f99b}from'./uploadcareconfig.js';import{getTranslation as _0x127a7c}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x4fc280{[_0xc17bda(0x150)];[_0xc17bda(0x181)];static get[_0xc17bda(0x17a)](){const _0x2d2ff4=_0xc17bda;return _0x2d2ff4(0x17b);}static get[_0xc17bda(0x182)](){return!0x0;}static get[_0xc17bda(0x153)](){return!0x0;}[_0xc17bda(0x146)](){const _0x232a3b=_0xc17bda;this[_0x232a3b(0x150)]=this[_0x232a3b(0x186)][_0x232a3b(0x168)][_0x232a3b(0x18b)](_0x232a3b(0x150));const _0x55a1d8=this[_0x232a3b(0x186)];this[_0x232a3b(0x181)]=setInterval(()=>{const _0x54e55f=_0x232a3b;let _0x5afa88;for(const _0x529bde in _0x55a1d8){const _0x1f73e0=_0x529bde,_0x447776=_0x55a1d8[_0x1f73e0];if(_0x54e55f(0x13b)==_0x447776||_0x54e55f(0x188)==_0x447776||_0x54e55f(0x173)==_0x447776||_0x54e55f(0x177)==_0x447776||_0x54e55f(0x178)==_0x447776||_0x54e55f(0x155)==_0x447776||_0x54e55f(0x140)==_0x447776||_0x54e55f(0x157)==_0x447776){delete _0x55a1d8[_0x1f73e0],_0x5afa88=_0x447776,clearInterval(this[_0x54e55f(0x181)]),this[_0x54e55f(0x181)]=void 0x0;break;}}_0x54e55f(0x188)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x158)),_0x54e55f(0x173)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x15a)),_0x54e55f(0x177)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x169)),_0x54e55f(0x178)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x160),_0x54e55f(0x147)),_0x54e55f(0x155)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x159)),_0x54e55f(0x140)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x141)),_0x54e55f(0x157)==_0x5afa88&&_0x55a1d8[_0x54e55f(0x174)](_0x54e55f(0x161));},0x3e8);}[_0xc17bda(0x148)](){const _0x5f46ed=_0xc17bda,{editor:_0x5f1d01}=this,_0x5b9c80=_0x5f1d01[_0x5f46ed(0x176)][_0x5f46ed(0x18b)](_0x5f46ed(0x142));if(!_0x5b9c80)return;const _0x53fabd=this[_0x5f46ed(0x145)](_0x5f1d01[_0x5f46ed(0x168)][_0x5f46ed(0x18b)](_0x5f46ed(0x16f)))[_0x5f46ed(0x156)]((_0x3e750b,_0x26f220)=>{const _0x468005=_0x5f46ed,_0x700541=this[_0x468005(0x13f)](_0x26f220[_0x468005(0x14d)]);return _0x3e750b[_0x700541]||(_0x3e750b[_0x700541]=[]),_0x3e750b[_0x700541][_0x468005(0x17e)](_0x26f220),_0x3e750b;},{});_0x5f1d01[_0x5f46ed(0x149)][_0x5f46ed(0x18a)](_0x5f46ed(0x14a))&&_0x5f1d01[_0x5f46ed(0x176)][_0x5f46ed(0x18b)](_0x5f46ed(0x142))&&Object[_0x5f46ed(0x172)](_0x53fabd)[_0x5f46ed(0x151)](([_0x48f97d,_0x53b4d7])=>{const _0x48c7ba=_0x5f46ed;_0x5f1d01[_0x48c7ba(0x149)][_0x48c7ba(0x18b)](_0x48c7ba(0x14a))[_0x48c7ba(0x143)]({'name':_0x48f97d,'observable':()=>_0x5b9c80,'buttonViewCreator':()=>this[_0x48c7ba(0x152)](_0x53b4d7),'formViewCreator':()=>this[_0x48c7ba(0x14c)](_0x53b4d7),'menuBarButtonViewCreator':()=>this[_0x48c7ba(0x13e)](_0x53b4d7),'override':_0x48c7ba(0x15d)!==_0x48f97d});});}[_0xc17bda(0x171)](){const _0x1b6fcc=_0xc17bda;super[_0x1b6fcc(0x171)](),this[_0x1b6fcc(0x181)]&&clearInterval(this[_0x1b6fcc(0x181)]);}[_0xc17bda(0x145)](_0x1189fb){const _0x494d97=_0xc17bda,{locale:_0x1ac8a7}=this[_0x494d97(0x186)];return _0x1189fb[_0x494d97(0x14b)](_0x2abf9f=>{const _0x188d25=_0x494d97,_0x12e1e5=_0x127a7c(_0x1ac8a7,_0x2abf9f,_0x188d25(0x170));switch(_0x2abf9f){case _0x17f99b[_0x188d25(0x167)]:return{'icon':_0x3d875e,'type':_0x17f99b[_0x188d25(0x167)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x164)]:return{'icon':_0x716ff8,'type':_0x17f99b[_0x188d25(0x164)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x14f)]:return{'icon':_0xdb5e7c,'type':_0x17f99b[_0x188d25(0x14f)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x16d)]:return{'icon':_0x133563,'type':_0x17f99b[_0x188d25(0x16d)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x14e)]:return{'icon':_0x1091ab,'type':_0x17f99b[_0x188d25(0x14e)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x166)]:return{'icon':_0x599597,'type':_0x17f99b[_0x188d25(0x166)],..._0x12e1e5};case _0x17f99b[_0x188d25(0x16b)]:return{'icon':_0x3be201,'type':_0x17f99b[_0x188d25(0x16b)],..._0x12e1e5};}});}[_0xc17bda(0x13f)](_0x8d13d4){const _0x5bb148=_0xc17bda;switch(_0x8d13d4){case _0x17f99b[_0x5bb148(0x167)]:return _0x5bb148(0x15b);case _0x17f99b[_0x5bb148(0x164)]:return _0x5bb148(0x15c);default:return _0x5bb148(0x15d);}}[_0xc17bda(0x144)](_0x4196b4,_0x3490df){const _0x12dd4a=_0xc17bda,_0x15ec64=this[_0x12dd4a(0x186)],_0xc884df=new _0x4196b4(_0x15ec64[_0x12dd4a(0x187)]),_0x3c21b5=_0x15ec64[_0x12dd4a(0x176)][_0x12dd4a(0x18b)](_0x12dd4a(0x142));return _0xc884df[_0x12dd4a(0x185)](_0x12dd4a(0x162))['to'](_0x3c21b5),_0xc884df['on'](_0x12dd4a(0x16a),()=>{const _0x289977=_0x12dd4a;_0x3c21b5[_0x289977(0x16a)](_0x3490df);}),_0xc884df;}[_0xc17bda(0x152)](_0x3d80dd){const _0x36135d=_0xc17bda,{locale:_0x51ad50}=this[_0x36135d(0x186)],_0x2f05f0=this[_0x36135d(0x186)][_0x36135d(0x149)][_0x36135d(0x18b)](_0x36135d(0x14a)),_0x3fbc1b=_0x3d80dd[0x0],_0x1572c9=this[_0x36135d(0x144)](_0x17e607,_0x3fbc1b[_0x36135d(0x14d)]);return _0x1572c9[_0x36135d(0x13d)]=_0x3fbc1b[_0x36135d(0x13d)],_0x1572c9[_0x36135d(0x185)](_0x36135d(0x16e))['to'](_0x2f05f0,_0x36135d(0x17c),_0x21797d=>_0x127a7c(_0x51ad50,_0x3fbc1b[_0x36135d(0x14d)],_0x21797d?_0x36135d(0x15f):_0x36135d(0x170))[_0x36135d(0x15e)]),_0x1572c9[_0x36135d(0x17f)]=!0x0,_0x1572c9;}[_0xc17bda(0x14c)](_0x1bb965){const _0x3411fa=_0xc17bda,{locale:_0x30bf66}=this[_0x3411fa(0x186)],_0x3f4605=this[_0x3411fa(0x186)][_0x3411fa(0x149)][_0x3411fa(0x18b)](_0x3411fa(0x14a));return _0x1bb965[_0x3411fa(0x14b)](_0x41797b=>{const _0x1f848c=_0x3411fa,_0x599a6d=this[_0x1f848c(0x144)](_0x17e607,_0x41797b[_0x1f848c(0x14d)]);return _0x599a6d[_0x1f848c(0x183)]=!0x0,_0x599a6d[_0x1f848c(0x13d)]=_0x41797b[_0x1f848c(0x13d)],_0x599a6d[_0x1f848c(0x185)](_0x1f848c(0x16e))['to'](_0x3f4605,_0x1f848c(0x17c),_0x4cae2b=>_0x127a7c(_0x30bf66,_0x41797b[_0x1f848c(0x14d)],_0x4cae2b?_0x1f848c(0x15f):_0x1f848c(0x170))[_0x1f848c(0x15e)]),_0x599a6d;});}[_0xc17bda(0x13e)](_0x1c3982){const _0x441ef7=_0xc17bda;return _0x1c3982[_0x441ef7(0x14b)](_0x58edb9=>{const _0x7e6ea=_0x441ef7,_0x49b746=this[_0x7e6ea(0x144)](_0xf4da46,_0x58edb9[_0x7e6ea(0x14d)]);return _0x49b746[_0x7e6ea(0x13d)]=_0x58edb9[_0x7e6ea(0x13d)],_0x49b746[_0x7e6ea(0x16e)]=_0x58edb9[_0x7e6ea(0x154)],_0x49b746;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3dfd18}from'ckeditor5/src/core.js';import{FileRepository as _0x50f249}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x348ab3}from'./uploadcareediting.js';import{UploadUtils as _0x5b679f}from'./utils/uploadutils.js';import{getImageUrls as _0x29e7cf}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3dfd18{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x50f249,_0x348ab3];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1571f5=this['editor'];if(!!!_0x1571f5['config']['get']('uploadcare'))return;_0x1571f5['plugins']['get'](_0x50f249)['createUploadAdapter']=_0x462130=>new k(_0x462130,_0x1571f5),_0x1571f5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x38e369,{imageElement:_0x558ce7,data:_0x1729c5})=>{_0x1571f5['model']['change'](_0x3a66a9=>{_0x3a66a9['setAttribute']('uploadcareImageId',_0x1729c5['uploadcareImageId'],_0x558ce7);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x53901f,_0x36dc10){this['loader']=_0x53901f,this['editor']=_0x36dc10,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21aa96=await this['loader']['file'];return _0x5b679f['upload']({'file':_0x21aa96,'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':_0x465499=>{_0x465499&&_0x465499['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x465499['value']);}})['then'](async _0x231d71=>{const {imageFallbackUrl:_0x33cb47,imageSources:_0x348871}=_0x29e7cf(_0x231d71['cdnUrl'],_0x231d71['imageInfo']['width']);return{'uploadcareImageId':_0x231d71['uuid'],'default':_0x33cb47,'sources':_0x348871};})['catch'](()=>{const _0x2bee22=t('Cannot\x20upload\x20file:')+('\x20'+_0x21aa96['name']+'.');return Promise['reject'](_0x2bee22);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x311941}from'../uploadcareconfig.js';export function getTranslation(_0x414d50,_0x12f103,_0x9af767){const t=_0x414d50['t'],_0x3eb6e8=_0x414d50['t'];switch(_0x12f103){case _0x311941['Local']:return{'text':_0x3eb6e8('Insert'===_0x9af767?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3eb6e8('From\x20computer')};case _0x311941['URL']:return{'text':'Insert'===_0x9af767?_0x3eb6e8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3eb6e8('Via\x20URL')};case _0x311941['Dropbox']:return{'text':t('Insert'===_0x9af767?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x311941['Facebook']:return{'text':t('Insert'===_0x9af767?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x311941['GDrive']:return{'text':t('Insert'===_0x9af767?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x311941['GPhotos']:return{'text':t('Insert'===_0x9af767?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x311941['OneDrive']:return{'text':t('Insert'===_0x9af767?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x12f103;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3eca47=_0x1b6c;(function(_0x3c514d,_0x26e07c){var _0x56a051=_0x1b6c,_0x4bd1da=_0x3c514d();while(!![]){try{var _0xd2d70d=parseInt(_0x56a051(0x8f))/0x1*(parseInt(_0x56a051(0x94))/0x2)+parseInt(_0x56a051(0x8e))/0x3+parseInt(_0x56a051(0x90))/0x4*(parseInt(_0x56a051(0x8a))/0x5)+-parseInt(_0x56a051(0x84))/0x6+parseInt(_0x56a051(0x92))/0x7*(-parseInt(_0x56a051(0x93))/0x8)+parseInt(_0x56a051(0x8b))/0x9*(parseInt(_0x56a051(0x87))/0xa)+parseInt(_0x56a051(0x97))/0xb*(-parseInt(_0x56a051(0x95))/0xc);if(_0xd2d70d===_0x26e07c)break;else _0x4bd1da['push'](_0x4bd1da['shift']());}catch(_0x299167){_0x4bd1da['push'](_0x4bd1da['shift']());}}}(_0x116b,0x1fc89));import{FocusTracker as _0x4c2f8b}from'ckeditor5/src/utils.js';function _0x1b6c(_0x565855,_0x169a47){var _0x116b23=_0x116b();return _0x1b6c=function(_0x1b6c52,_0x3c2619){_0x1b6c52=_0x1b6c52-0x83;var _0x3169f7=_0x116b23[_0x1b6c52];return _0x3169f7;},_0x1b6c(_0x565855,_0x169a47);}import{View as _0x188d5a,FocusCycler as _0x327e15}from'ckeditor5/src/ui.js';function _0x116b(){var _0x219841=['bindTemplate','10uPSdRO','focusCycler','div','52445LdeSUw','645111SuThjg','forwardCycle','true','606621NddpmW','2203tdozyV','12PHZtZl','fire','707BvOlhW','552FOHNAn','138btIfoO','104472CgHOaI','getFocusableElement','110UxShQJ','createCollection','1398876zNaavF','focusTracker'];_0x116b=function(){return _0x219841;};return _0x116b();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x188d5a{[_0x3eca47(0x85)];[_0x3eca47(0x88)];constructor(_0x584f82){var _0x3bd6df=_0x3eca47;super(_0x584f82),this[_0x3bd6df(0x85)]=new _0x4c2f8b(),this[_0x3bd6df(0x88)]=new _0x327e15({'focusables':this[_0x3bd6df(0x83)](),'focusTracker':this[_0x3bd6df(0x85)]});}[_0x3eca47(0x96)](){var _0x28464a=_0x3eca47;return{'tag':_0x28464a(0x89),'attributes':{'aria-hidden':_0x28464a(0x8d),'tabindex':'0'},'on':{'focus':this[_0x28464a(0x86)]['to'](()=>{var _0x432262=_0x28464a;this[_0x432262(0x88)][_0x432262(0x91)](_0x432262(0x8c));})}};}}
|