@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251125.1 → 0.0.0-nightly-20251126.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 _0xce51b7=_0x1288;(function(_0x19e688,_0x43396d){const _0x391318=_0x1288,_0xfd014a=_0x19e688();while(!![]){try{const _0x22f878=-parseInt(_0x391318(0x209))/0x1+parseInt(_0x391318(0x1e1))/0x2*(parseInt(_0x391318(0x20d))/0x3)+parseInt(_0x391318(0x1ee))/0x4+parseInt(_0x391318(0x213))/0x5+-parseInt(_0x391318(0x1df))/0x6*(parseInt(_0x391318(0x214))/0x7)+parseInt(_0x391318(0x1e2))/0x8+-parseInt(_0x391318(0x1fa))/0x9*(parseInt(_0x391318(0x1dc))/0xa);if(_0x22f878===_0x43396d)break;else _0xfd014a['push'](_0xfd014a['shift']());}catch(_0x6fea39){_0xfd014a['push'](_0xfd014a['shift']());}}}(_0x3b29,0x3db69));import{Plugin as _0x543723}from'ckeditor5/src/core.js';function _0x1288(_0xf6025,_0x19cb42){const _0x3b29fe=_0x3b29();return _0x1288=function(_0x12886a,_0x390eb4){_0x12886a=_0x12886a-0x1d5;let _0x32176e=_0x3b29fe[_0x12886a];return _0x32176e;},_0x1288(_0xf6025,_0x19cb42);}import{Dialog as _0x449682}from'ckeditor5/src/ui.js';import{createElement as _0x27a062,global as _0x11f6d5,uid as _0x539fb1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x50b94f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x578f87}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2879d7}from'./utils/editingutils.js';function _0x3b29(){const _0x259d1d=['isOfficialPlugin','view','isRegistered','UploadcareEditing','href','uc-upload-ctx-provider','#uc-icon-arrow-down','init','pluginName','locale','getAttribute','add','ucContextId','editing','uploadcareImageReplace','removeAttribute','downcast','querySelector','execute','appendChild','_initImageProcessingIndicator','\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','uc-config','true','fromCharCode','remove','235360xzARNA','for','insertImage','92676NuUMFk','selection','52LNWtjy','3711624yBvKkL','replaceImageSource','destroy','once','_initConversion','configElement','_configElement','isPremiumPlugin','map','editor','iconHrefResolver','listenTo','1331564VviYPv','extend','document','attributeToAttribute','input[uploadcare-file-input]','_initSchema','body','_initConfig','imageInline','uploader-','model','afterInit','153QdZZIz','uploadcare.uploader','render','elementToAttribute','_initCtx','closeMax','commands','conversion','PictureEditing','schema','config','uploadcare.pubkey','get','join','uploadcareImageId','247520UUGVWz','contentLanguage','cleanupImage','getSelectedElement','34053JOfBmO','uploadcare','imageBlock','data-uc-image-id','_ctxElement','upcast','46185voxNsd','91LUvant','requires','ctxElement'];_0x3b29=function(){return _0x259d1d;};return _0x3b29();}export class UploadcareEditing extends _0x543723{[_0xce51b7(0x1e8)]=null;[_0xce51b7(0x211)]=null;static get[_0xce51b7(0x21f)](){const _0x595dd=_0xce51b7;return _0x595dd(0x21a);}static get[_0xce51b7(0x215)](){const _0x10b945=_0xce51b7;return[_0x10b945(0x202),_0x578f87,_0x449682];}static get[_0xce51b7(0x217)](){return!0x0;}static get[_0xce51b7(0x1e9)](){return!0x0;}[_0xce51b7(0x223)];get[_0xce51b7(0x1e7)](){const _0xfbe76f=_0xce51b7;return this[_0xfbe76f(0x1e8)];}get[_0xce51b7(0x216)](){const _0x937516=_0xce51b7;return this[_0x937516(0x211)];}constructor(_0x23f270){const _0x488f99=_0xce51b7;super(_0x23f270),this[_0x488f99(0x223)]=_0x539fb1();}[_0xce51b7(0x21e)](){const _0x4c2875=_0xce51b7,_0x220160=this[_0x4c2875(0x1eb)];_0x220160[_0x4c2875(0x200)][_0x4c2875(0x222)](_0x4c2875(0x20e),new _0x50b94f(_0x220160));}[_0xce51b7(0x1f9)](){const _0x530923=_0xce51b7;this[_0x530923(0x1f3)](),this[_0x530923(0x1e6)](),this[_0x530923(0x1f5)](),this[_0x530923(0x1fe)](),this[_0x530923(0x1d6)](),this[_0x530923(0x1ed)](this[_0x530923(0x1eb)],_0x530923(0x1e4),()=>{const _0x1f7e07=_0x530923;this[_0x1f7e07(0x1e8)]&&(this[_0x1f7e07(0x1e8)][_0x1f7e07(0x1db)](),this[_0x1f7e07(0x1e8)]=null),this[_0x1f7e07(0x211)]&&(this[_0x1f7e07(0x211)][_0x1f7e07(0x1db)](),this[_0x1f7e07(0x211)]=null);const _0x2371d8=_0x11f6d5[_0x1f7e07(0x1f0)][_0x1f7e07(0x228)](_0x1f7e07(0x1f2));_0x2371d8&&_0x2371d8[_0x1f7e07(0x1db)]();}),async function(_0x2e5afc){const _0xff6506=_0x539fa5([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]),_0x3aa22d=0x535f8c3a,_0x4e230a=0x5358f622^_0x3aa22d,_0x2d3664=window[_0x539fa5([0x44,0x61,0x74,0x65])][_0x539fa5([0x6e,0x6f,0x77])](),_0xc4d86a=_0x2e5afc[_0x539fa5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcde841=new window[(_0x539fa5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x442f15=>{_0xc4d86a[_0x539fa5([0x6f,0x6e,0x63,0x65])](_0x539fa5([0x72,0x65,0x61,0x64,0x79]),_0x442f15);}),_0x235d4a={[_0x539fa5([0x6b,0x74,0x79])]:_0x539fa5([0x45,0x43]),[_0x539fa5([0x75,0x73,0x65])]:_0x539fa5([0x73,0x69,0x67]),[_0x539fa5([0x63,0x72,0x76])]:_0x539fa5([0x50,0x2d,0x32,0x35,0x36]),[_0x539fa5([0x78])]:_0x539fa5([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]),[_0x539fa5([0x79])]:_0x539fa5([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]),[_0x539fa5([0x61,0x6c,0x67])]:_0x539fa5([0x45,0x53,0x32,0x35,0x36])},_0x375e9f=_0xc4d86a[_0x539fa5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x539fa5([0x67,0x65,0x74])](_0x539fa5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x176c39(){let _0x20461b,_0x3df8fd=null,_0x176e03=null;try{if(_0x375e9f==_0x539fa5([0x47,0x50,0x4c]))return _0x539fa5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20461b=_0x385b63(),!_0x20461b)return _0x539fa5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20461b[_0x539fa5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x176e03=_0x253816(_0x20461b[_0x539fa5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20461b[_0x539fa5([0x6a,0x74,0x69])])),await _0x24f49d()?_0x76191f()?_0x4ce280()?_0x539fa5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x560ec8()?(_0x20461b[_0x539fa5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x539fa5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3df8fd=_0x12e516(_0x539fa5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20461b[_0x539fa5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x539fa5([0x74,0x72,0x69,0x61,0x6c])&&(_0x3df8fd=_0x12e516(_0x539fa5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xab55bb()):_0x539fa5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x539fa5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x539fa5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x539fa5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4ce280(){const _0x329a19=[_0x539fa5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x539fa5([0x74,0x72,0x69,0x61,0x6c])][_0x539fa5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20461b[_0x539fa5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d3664/0x3e8:0xe10*_0x4e230a;return _0x20461b[_0x539fa5([0x65,0x78,0x70])]<_0x329a19;}function _0x76191f(){const _0x4ad9a1=_0x20461b[_0x539fa5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4ad9a1&&(!!_0x4ad9a1[_0x539fa5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539fa5([0x2a]))||!!_0x4ad9a1[_0x539fa5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539fa5([0x55,0x50,0x4c,0x43])));}function _0x560ec8(){const _0x211bbb=_0x1288,_0x3aa627=_0x20461b[_0x539fa5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3aa627||0x0==_0x3aa627[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3308a1}=new URL(window[_0x539fa5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x211bbb(0x21b)]);if(_0x3aa627[_0x539fa5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3308a1))return!0x0;const _0x4addcd=_0x3308a1[_0x539fa5([0x73,0x70,0x6c,0x69,0x74])](_0x539fa5([0x2e]));return _0x3aa627[_0x539fa5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47cce2=>_0x47cce2[_0x539fa5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x539fa5([0x2a])))[_0x539fa5([0x6d,0x61,0x70])](_0x567125=>_0x567125[_0x539fa5([0x73,0x70,0x6c,0x69,0x74])](_0x539fa5([0x2e])))[_0x539fa5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x22765c=>_0x22765c[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4addcd[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x539fa5([0x6d,0x61,0x70])](_0x30235e=>Array(_0x4addcd[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30235e[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x539fa5([0x66,0x69,0x6c,0x6c])](_0x30235e[0x0]===_0x539fa5([0x2a])?_0x539fa5([0x2a]):'')[_0x539fa5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30235e))[_0x539fa5([0x73,0x6f,0x6d,0x65])](_0x434281=>_0x4addcd[_0x539fa5([0x65,0x76,0x65,0x72,0x79])]((_0x5216d7,_0x2de6f3)=>_0x434281[_0x2de6f3]===_0x5216d7||_0x434281[_0x2de6f3]===_0x539fa5([0x2a])));}function _0xab55bb(){return _0x3df8fd&&_0x176e03?new window[(_0x539fa5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f1b10,_0x5b5815)=>{_0x3df8fd[_0x539fa5([0x74,0x68,0x65,0x6e])](_0x5f1b10,_0x5b5815),_0x176e03[_0x539fa5([0x74,0x68,0x65,0x6e])](_0x2e2fe3=>{_0x2e2fe3!=_0x539fa5([0x56,0x61,0x6c,0x69,0x64])&&_0x5f1b10(_0x2e2fe3);},_0x5b5815);}):_0x3df8fd||_0x176e03||_0x539fa5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x253816(_0x870034,_0x1f22bd){return new window[(_0x539fa5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfd3f9=>{if(_0x40ccd6())return _0xfd3f9(_0x539fa5([0x56,0x61,0x6c,0x69,0x64]));_0x129611(),_0xc4d86a[_0x539fa5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x539fa5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x490c3f=!0x1;const _0x5a0d12=_0x539fb1();function _0x16e952(_0x566fc7){return!!_0x566fc7&&(typeof _0x566fc7===_0x539fa5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x566fc7===_0x539fa5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x566fc7[_0x539fa5([0x74,0x68,0x65,0x6e])]===_0x539fa5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x566fc7[_0x539fa5([0x63,0x61,0x74,0x63,0x68])]===_0x539fa5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c9594(_0x5cf547){_0x4772d1(_0x5cf547)[_0x539fa5([0x74,0x68,0x65,0x6e])](_0x10d647=>{if(!_0x10d647||_0x10d647[_0x539fa5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x539fa5([0x6f,0x6b]))return _0x539fa5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43b811(_0x1d4ed0(_0x5a0d12+_0x1f22bd))!=_0x10d647[_0x539fa5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x539fa5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x539fa5([0x56,0x61,0x6c,0x69,0x64]);})[_0x539fa5([0x74,0x68,0x65,0x6e])](_0x54c7e1=>(_0x1a2fb4(),_0x54c7e1),()=>{const _0x392956=_0x2b1dbc();return null==_0x392956?(_0x1a2fb4(),_0x539fa5([0x56,0x61,0x6c,0x69,0x64])):_0x539fa5(_0x2d3664-_0x392956>(0x7753083a^_0x3aa22d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x539fa5([0x74,0x68,0x65,0x6e])](_0xfd3f9)[_0x539fa5([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfd3f9(_0x539fa5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3be1bb=0x536962ba^_0x3aa22d;function _0x1a2fb4(){const _0x1d08ac=_0x539fa5([0x6c,0x6c,0x63,0x74,0x2d])+_0x43b811(_0x1d4ed0(_0x870034)),_0x438860=_0x2fce8c(_0x43b811(window[_0x539fa5([0x4d,0x61,0x74,0x68])][_0x539fa5([0x63,0x65,0x69,0x6c])](_0x2d3664/_0x3be1bb)));window[_0x539fa5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x539fa5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d08ac,_0x438860);}function _0x2b1dbc(){const _0x4a467a=_0x539fa5([0x6c,0x6c,0x63,0x74,0x2d])+_0x43b811(_0x1d4ed0(_0x870034)),_0x3b2920=window[_0x539fa5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x539fa5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a467a);return _0x3b2920?window[_0x539fa5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fce8c(_0x3b2920),0x10)*_0x3be1bb:null;}function _0x4772d1(_0x543f81){return new window[(_0x539fa5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x305449,_0x2470d3)=>{_0x543f81[_0x539fa5([0x74,0x68,0x65,0x6e])](_0x305449,_0x2470d3),window[_0x539fa5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2470d3,0x535e58fa^_0x3aa22d);});}}_0xc4d86a[_0x539fa5([0x6f,0x6e])](_0x539fa5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b56dd,_0x13dc25)=>{if(_0x13dc25[0x0]!=_0x870034)return _0xfd3f9(_0x539fa5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13dc25[0x1]={..._0x13dc25[0x1],[_0x539fa5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a0d12};},{[_0x539fa5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x539fa5([0x68,0x69,0x67,0x68])}),_0xc4d86a[_0x539fa5([0x6f,0x6e])](_0x539fa5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x143bbe=>{_0x16e952(_0x143bbe[_0x539fa5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x490c3f=!0x0,_0x1c9594(_0x143bbe[_0x539fa5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x539fa5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x539fa5([0x6c,0x6f,0x77])}),_0xcde841[_0x539fa5([0x74,0x68,0x65,0x6e])](()=>{_0x490c3f||_0xfd3f9(_0x539fa5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40ccd6(){return _0xc4d86a[_0x539fa5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x539fa5([0x76,0x69,0x65,0x77])][_0x539fa5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x539fa5([0x61,0x75,0x74,0x6f]);}function _0x129611(){_0xc4d86a[_0x539fa5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x539fa5([0x76,0x69,0x65,0x77])][_0x539fa5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x539fa5([0x61,0x75,0x74,0x6f]);}}function _0x12e516(_0x223c1c){const _0x4fe0fb=[new window[(_0x539fa5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf6926f=>setTimeout(_0xf6926f,0x5356b2f6^_0x3aa22d)),_0xcde841[_0x539fa5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x539fa5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x331278=>{let _0x5465cf=0x0;_0xc4d86a[_0x539fa5([0x6d,0x6f,0x64,0x65,0x6c])][_0x539fa5([0x6f,0x6e])](_0x539fa5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x314e59,_0xe9017f)=>{_0xe9017f[0x0][_0x539fa5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5465cf++,_0x5465cf==(0x535f8dc2^_0x3aa22d)&&(_0x331278(),_0x314e59[_0x539fa5([0x6f,0x66,0x66])]());});}))];return window[_0x539fa5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x539fa5([0x72,0x61,0x63,0x65])](_0x4fe0fb)[_0x539fa5([0x74,0x68,0x65,0x6e])](()=>_0x223c1c);}async function _0x1507b3(){await _0xcde841,_0xc4d86a[_0x539fa5([0x6d,0x6f,0x64,0x65,0x6c])][_0x539fa5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c5b63,_0xc4d86a[_0x539fa5([0x6d,0x6f,0x64,0x65,0x6c])][_0x539fa5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c5b63,_0xc4d86a[_0x539fa5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x539fa5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42cadb(_0x3a3117){const _0x4e6324=_0x13b3d5();_0xc4d86a[_0x4e6324]=_0x539fa5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a3117,_0x3a3117!=_0x539fa5([0x56,0x61,0x6c,0x69,0x64])&&_0x1507b3();}function _0x13b3d5(){const _0x44c786=window[_0x539fa5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x539fa5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x539fa5([0x6e,0x6f,0x77])]())[_0x539fa5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x539fa5([0x2e]),'');let _0x290fda=_0x539fa5([0x68]);for(let _0x1868cb=0x0;_0x1868cb<_0x44c786[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1868cb+=0x2){let _0x5a943e=window[_0x539fa5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44c786[_0x539fa5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1868cb,_0x1868cb+0x2));_0x5a943e>=_0xff6506[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a943e-=_0xff6506[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x290fda+=_0xff6506[_0x5a943e];}return _0x290fda;}function _0x385b63(){const _0x57938f=_0x375e9f[_0x539fa5([0x73,0x70,0x6c,0x69,0x74])](_0x539fa5([0x2e]));if(0x3!=_0x57938f[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42a0e3(_0x57938f[0x1]);function _0x42a0e3(_0x348afe){const _0x558c65=_0x2466b4(_0x348afe);return _0x558c65&&_0x5c6f7f()?_0x558c65:null;function _0x5c6f7f(){const _0x31c524=_0x558c65[_0x539fa5([0x6a,0x74,0x69])],_0x356dad=window[_0x539fa5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31c524[_0x539fa5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31c524[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x546483={..._0x558c65,[_0x539fa5([0x6a,0x74,0x69])]:_0x31c524[_0x539fa5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31c524[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x546483[_0x539fa5([0x76,0x63])],_0x1d4ed0(_0x546483)==_0x356dad;}}}async function _0x24f49d(){let _0x7a7497=!0x0;try{const _0x393e26=_0x375e9f[_0x539fa5([0x73,0x70,0x6c,0x69,0x74])](_0x539fa5([0x2e])),[_0x17575a,_0x1b1713,_0x4e6af5]=_0x393e26;return _0x6108d5(_0x17575a),await _0x435e63(_0x17575a,_0x1b1713,_0x4e6af5),_0x7a7497;}catch{return!0x1;}function _0x6108d5(_0x435410){const _0x33b44a=_0x2466b4(_0x435410);_0x33b44a&&_0x33b44a[_0x539fa5([0x61,0x6c,0x67])]==_0x539fa5([0x45,0x53,0x32,0x35,0x36])||(_0x7a7497=!0x1);}async function _0x435e63(_0x59b9fc,_0x326df0,_0x4f192b){const _0x1dc498=window[_0x539fa5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x539fa5([0x66,0x72,0x6f,0x6d])](_0x12bc54(_0x4f192b),_0x31ce53=>_0x31ce53[_0x539fa5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e7ebc=new window[(_0x539fa5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x539fa5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59b9fc+_0x539fa5([0x2e])+_0x326df0),_0x2f0b09=window[_0x539fa5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x539fa5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f0b09)return;const _0x5d85c9=await _0x2f0b09[_0x539fa5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x539fa5([0x6a,0x77,0x6b]),_0x235d4a,{[_0x539fa5([0x6e,0x61,0x6d,0x65])]:_0x539fa5([0x45,0x43,0x44,0x53,0x41]),[_0x539fa5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x539fa5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x539fa5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f0b09[_0x539fa5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x539fa5([0x6e,0x61,0x6d,0x65])]:_0x539fa5([0x45,0x43,0x44,0x53,0x41]),[_0x539fa5([0x68,0x61,0x73,0x68])]:{[_0x539fa5([0x6e,0x61,0x6d,0x65])]:_0x539fa5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d85c9,_0x1dc498,_0x5e7ebc)||(_0x7a7497=!0x1);}}function _0x2466b4(_0x514d8f){return _0x514d8f[_0x539fa5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x539fa5([0x65,0x79]))?JSON[_0x539fa5([0x70,0x61,0x72,0x73,0x65])](_0x12bc54(_0x514d8f)):null;}function _0x12bc54(_0x1edc71){return window[_0x539fa5([0x61,0x74,0x6f,0x62])](_0x1edc71[_0x539fa5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x539fa5([0x2b]))[_0x539fa5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x539fa5([0x2f])));}function _0x1d4ed0(_0x2f1bfc){let _0x2d8325=0x1505;function _0x20c380(_0x4f5e84){for(let _0x350ab4=0x0;_0x350ab4<_0x4f5e84[_0x539fa5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x350ab4++){const _0x25f0ac=_0x4f5e84[_0x539fa5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x350ab4);_0x2d8325=(_0x2d8325<<0x5)+_0x2d8325+_0x25f0ac,_0x2d8325&=_0x2d8325;}}function _0x45fa6e(_0x50d666){Array[_0x539fa5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x50d666)?_0x50d666[_0x539fa5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45fa6e):_0x50d666&&typeof _0x50d666==_0x539fa5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x539fa5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x50d666)[_0x539fa5([0x73,0x6f,0x72,0x74])]()[_0x539fa5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x50db47,_0x565eca])=>{_0x20c380(_0x50db47),_0x45fa6e(_0x565eca);}):_0x20c380(window[_0x539fa5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x50d666));}return _0x45fa6e(_0x2f1bfc),_0x2d8325>>>0x0;}function _0x43b811(_0x4734a7){return _0x4734a7[_0x539fa5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x539fa5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x539fa5([0x30]));}function _0x2fce8c(_0x14b46f){return _0x14b46f[_0x539fa5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x539fa5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x539fa5([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c5b63(){}function _0x539fa5(_0xfebba2){const _0x4c1733=_0x1288;return _0xfebba2[_0x4c1733(0x1ea)](_0x170211=>String[_0x4c1733(0x1da)](_0x170211))[_0x4c1733(0x207)]('');}_0x42cadb(await _0x176c39());}(this);}[_0xce51b7(0x1f3)](){const _0x3edd07=_0xce51b7,_0x288b20=this[_0x3edd07(0x1eb)][_0x3edd07(0x1f8)][_0x3edd07(0x203)];_0x288b20[_0x3edd07(0x219)](_0x3edd07(0x20f))&&_0x288b20[_0x3edd07(0x1ef)](_0x3edd07(0x20f),{'allowAttributes':[_0x3edd07(0x208)]}),_0x288b20[_0x3edd07(0x219)](_0x3edd07(0x1f6))&&_0x288b20[_0x3edd07(0x1ef)](_0x3edd07(0x1f6),{'allowAttributes':[_0x3edd07(0x208)]});}[_0xce51b7(0x1e6)](){const _0x235c1d=_0xce51b7,_0x148272=this[_0x235c1d(0x1eb)];_0x148272[_0x235c1d(0x201)][_0x235c1d(0x1dd)](_0x235c1d(0x227))[_0x235c1d(0x1f1)]({'model':_0x235c1d(0x208),'view':_0x235c1d(0x210)}),_0x148272[_0x235c1d(0x201)][_0x235c1d(0x1dd)](_0x235c1d(0x212))[_0x235c1d(0x1fd)]({'model':{'key':_0x235c1d(0x208),'value':_0x4ea2fd=>_0x4ea2fd[_0x235c1d(0x221)](_0x235c1d(0x210))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4bc6eb=_0x148272[_0x235c1d(0x200)][_0x235c1d(0x206)](_0x235c1d(0x1e3));_0x4bc6eb&&this[_0x235c1d(0x1ed)](_0x4bc6eb,_0x235c1d(0x20b),(_0x502bdb,[_0x168ec6,_0x1b92e2])=>{const _0x486697=_0x235c1d;_0x168ec6[_0x486697(0x226)](_0x486697(0x208),_0x1b92e2);});}[_0xce51b7(0x1f5)](){const _0x2f74ae=_0xce51b7,_0x203bc4=this[_0x2f74ae(0x1eb)][_0x2f74ae(0x204)][_0x2f74ae(0x206)](_0x2f74ae(0x1fb))||{},_0x5a5687=this[_0x2f74ae(0x1eb)][_0x2f74ae(0x204)][_0x2f74ae(0x206)](_0x2f74ae(0x205))||'';this[_0x2f74ae(0x1e8)]=_0x27a062(_0x11f6d5[_0x2f74ae(0x1f0)],_0x2f74ae(0x1d8),{..._0x203bc4,'pubkey':_0x5a5687,'ctx-name':_0x2f74ae(0x1f7)+this[_0x2f74ae(0x223)],'sourceList':'','imgOnly':_0x2f74ae(0x1d9),'removeCopyright':_0x2f74ae(0x1d9),'localeName':this[_0x2f74ae(0x1eb)][_0x2f74ae(0x220)][_0x2f74ae(0x20a)],'externalSourcesEmbedCss':_0x2f74ae(0x1d7)}),this[_0x2f74ae(0x1e8)][_0x2f74ae(0x1ec)]=_0xd8cbb0=>{const _0x34ad0e=_0x2f74ae;if(_0x34ad0e(0x1ff)==_0xd8cbb0)return _0x34ad0e(0x21d);},_0x11f6d5[_0x2f74ae(0x1f0)][_0x2f74ae(0x1f4)][_0x2f74ae(0x1d5)](this[_0x2f74ae(0x1e8)]);}[_0xce51b7(0x1fe)](){const _0x1bbb4a=_0xce51b7;this[_0x1bbb4a(0x211)]=_0x27a062(_0x11f6d5[_0x1bbb4a(0x1f0)],_0x1bbb4a(0x21c),{'ctx-name':_0x1bbb4a(0x1f7)+this[_0x1bbb4a(0x223)]}),_0x11f6d5[_0x1bbb4a(0x1f0)][_0x1bbb4a(0x1f4)][_0x1bbb4a(0x1d5)](this[_0x1bbb4a(0x211)]);}[_0xce51b7(0x1d6)](){const _0x461bd9=_0xce51b7,_0x2d2696=this[_0x461bd9(0x1eb)][_0x461bd9(0x200)][_0x461bd9(0x206)](_0x461bd9(0x1de));_0x2d2696&&this[_0x461bd9(0x1ed)](_0x2d2696,_0x461bd9(0x229),()=>{const _0x342921=_0x461bd9,_0x1daae3=this[_0x342921(0x1eb)][_0x342921(0x1f8)][_0x342921(0x1f0)][_0x342921(0x1e0)][_0x342921(0x20c)]();_0x1daae3&&_0x1daae3[_0x342921(0x221)](_0x342921(0x208))&&this[_0x342921(0x1eb)][_0x342921(0x224)][_0x342921(0x218)][_0x342921(0x1e5)](_0x342921(0x1fc),()=>{const _0x54d076=_0x342921;_0x2879d7(this[_0x54d076(0x1eb)],_0x1daae3);});});const _0x5c3bb3=this[_0x461bd9(0x1eb)][_0x461bd9(0x200)][_0x461bd9(0x206)](_0x461bd9(0x225));_0x5c3bb3&&this[_0x461bd9(0x1ed)](_0x5c3bb3,_0x461bd9(0x229),()=>{const _0x4b34c3=_0x461bd9,_0x4ae775=this[_0x4b34c3(0x1eb)][_0x4b34c3(0x1f8)][_0x4b34c3(0x1f0)][_0x4b34c3(0x1e0)][_0x4b34c3(0x20c)]();_0x4ae775&&_0x4ae775[_0x4b34c3(0x221)](_0x4b34c3(0x208))&&this[_0x4b34c3(0x1eb)][_0x4b34c3(0x224)][_0x4b34c3(0x218)][_0x4b34c3(0x1e5)](_0x4b34c3(0x1fc),()=>{const _0xe544e0=_0x4b34c3;_0x2879d7(this[_0xe544e0(0x1eb)],_0x4ae775);});});}}
|
|
23
|
+
const _0x704e24=_0x4040;(function(_0x2af535,_0xa6b0d3){const _0x5ab8a4=_0x4040,_0x24f116=_0x2af535();while(!![]){try{const _0x19db48=parseInt(_0x5ab8a4(0xec))/0x1+parseInt(_0x5ab8a4(0x126))/0x2*(parseInt(_0x5ab8a4(0x118))/0x3)+parseInt(_0x5ab8a4(0x12d))/0x4+-parseInt(_0x5ab8a4(0x120))/0x5*(parseInt(_0x5ab8a4(0x10b))/0x6)+parseInt(_0x5ab8a4(0x13d))/0x7+parseInt(_0x5ab8a4(0x136))/0x8+-parseInt(_0x5ab8a4(0x12c))/0x9*(parseInt(_0x5ab8a4(0xfc))/0xa);if(_0x19db48===_0xa6b0d3)break;else _0x24f116['push'](_0x24f116['shift']());}catch(_0x2c39f8){_0x24f116['push'](_0x24f116['shift']());}}}(_0x2cff,0x5a82d));import{Plugin as _0xe79a03}from'ckeditor5/src/core.js';import{Dialog as _0x3111bb}from'ckeditor5/src/ui.js';function _0x4040(_0x45d0d6,_0x542705){const _0x2cff72=_0x2cff();return _0x4040=function(_0x4040ed,_0x3488b9){_0x4040ed=_0x4040ed-0xea;let _0xb6e4bf=_0x2cff72[_0x4040ed];return _0xb6e4bf;},_0x4040(_0x45d0d6,_0x542705);}import{createElement as _0xccb8e2,global as _0xf78b76,uid as _0x40747c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3f70bd}from'./uploadcarecommand.js';function _0x2cff(){const _0x566db6=['uploadcareImageReplace','#uc-icon-arrow-down','conversion','get','appendChild','downcast','_initSchema','1060465FYAKoY','contentLanguage','configElement','getAttribute','isRegistered','_initConversion','1293668WRJdzC','destroy','once','elementToAttribute','uc-upload-ctx-provider','join','114183mTTLUP','435884djBhCz','iconHrefResolver','listenTo','editor','config','isOfficialPlugin','body','editing','_initImageProcessingIndicator','2254896yOdLog','uploadcare.uploader','PictureEditing','closeMax','upcast','uploadcare.pubkey','for','2414923yNJFID','UploadcareEditing','view','true','684549Fozjrq','data-uc-image-id','model','ucContextId','_initConfig','replaceImageSource','cleanupImage','map','insertImage','remove','getSelectedElement','init','render','imageInline','document','imageBlock','1170snPiZo','isPremiumPlugin','ctxElement','execute','uploadcareImageId','querySelector','uploader-','\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','locale','extend','input[uploadcare-file-input]','selection','removeAttribute','commands','pluginName','6eluFBW','fromCharCode','schema','uploadcare','_configElement','href','_initCtx','attributeToAttribute','requires','uc-config','add','_ctxElement','afterInit','3hIrowh'];_0x2cff=function(){return _0x566db6;};return _0x2cff();}import{UploadcareUploadAdapter as _0x2d39da}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x546879}from'./utils/editingutils.js';export class UploadcareEditing extends _0xe79a03{[_0x704e24(0x10f)]=null;[_0x704e24(0x116)]=null;static get[_0x704e24(0x10a)](){const _0x4184c7=_0x704e24;return _0x4184c7(0x13e);}static get[_0x704e24(0x113)](){const _0x5525e7=_0x704e24;return[_0x5525e7(0x138),_0x2d39da,_0x3111bb];}static get[_0x704e24(0x132)](){return!0x0;}static get[_0x704e24(0xfd)](){return!0x0;}[_0x704e24(0xef)];get[_0x704e24(0x122)](){const _0x3335eb=_0x704e24;return this[_0x3335eb(0x10f)];}get[_0x704e24(0xfe)](){const _0x2d9e66=_0x704e24;return this[_0x2d9e66(0x116)];}constructor(_0x484aab){const _0x1c9aaf=_0x704e24;super(_0x484aab),this[_0x1c9aaf(0xef)]=_0x40747c();}[_0x704e24(0xf7)](){const _0xc40a5e=_0x704e24,_0x4a286e=this[_0xc40a5e(0x130)];_0x4a286e[_0xc40a5e(0x109)][_0xc40a5e(0x115)](_0xc40a5e(0x10e),new _0x3f70bd(_0x4a286e));}[_0x704e24(0x117)](){const _0x555b03=_0x704e24;this[_0x555b03(0x11f)](),this[_0x555b03(0x125)](),this[_0x555b03(0xf0)](),this[_0x555b03(0x111)](),this[_0x555b03(0x135)](),this[_0x555b03(0x12f)](this[_0x555b03(0x130)],_0x555b03(0x127),()=>{const _0x529e20=_0x555b03;this[_0x529e20(0x10f)]&&(this[_0x529e20(0x10f)][_0x529e20(0xf5)](),this[_0x529e20(0x10f)]=null),this[_0x529e20(0x116)]&&(this[_0x529e20(0x116)][_0x529e20(0xf5)](),this[_0x529e20(0x116)]=null);const _0x4a5d7c=_0xf78b76[_0x529e20(0xfa)][_0x529e20(0x101)](_0x529e20(0x106));_0x4a5d7c&&_0x4a5d7c[_0x529e20(0xf5)]();}),async function(_0x2f1fde){const _0xcebe92=_0x4cff47([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]),_0x1c4480=0x535f8c3a,_0x2c751d=0x5358f60a^_0x1c4480,_0x2d3fb2=window[_0x4cff47([0x44,0x61,0x74,0x65])][_0x4cff47([0x6e,0x6f,0x77])](),_0x41a545=_0x2f1fde[_0x4cff47([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cc1fa=new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b05ec=>{_0x41a545[_0x4cff47([0x6f,0x6e,0x63,0x65])](_0x4cff47([0x72,0x65,0x61,0x64,0x79]),_0x3b05ec);}),_0x531d93={[_0x4cff47([0x6b,0x74,0x79])]:_0x4cff47([0x45,0x43]),[_0x4cff47([0x75,0x73,0x65])]:_0x4cff47([0x73,0x69,0x67]),[_0x4cff47([0x63,0x72,0x76])]:_0x4cff47([0x50,0x2d,0x32,0x35,0x36]),[_0x4cff47([0x78])]:_0x4cff47([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]),[_0x4cff47([0x79])]:_0x4cff47([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]),[_0x4cff47([0x61,0x6c,0x67])]:_0x4cff47([0x45,0x53,0x32,0x35,0x36])},_0x233c84=_0x41a545[_0x4cff47([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4cff47([0x67,0x65,0x74])](_0x4cff47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4762ed(){let _0x8ae983,_0xe5ed2e=null,_0x302e10=null;try{if(_0x233c84==_0x4cff47([0x47,0x50,0x4c]))return _0x4cff47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8ae983=_0x1aa774(),!_0x8ae983)return _0x4cff47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8ae983[_0x4cff47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x302e10=_0x19385d(_0x8ae983[_0x4cff47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8ae983[_0x4cff47([0x6a,0x74,0x69])])),await _0x28cedd()?_0x16f700()?_0xa29d58()?_0x4cff47([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52654e()?(_0x8ae983[_0x4cff47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4cff47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe5ed2e=_0x3579ef(_0x4cff47([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8ae983[_0x4cff47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4cff47([0x74,0x72,0x69,0x61,0x6c])&&(_0xe5ed2e=_0x3579ef(_0x4cff47([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xebc73a()):_0x4cff47([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4cff47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4cff47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4cff47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xa29d58(){const _0x2d4eac=[_0x4cff47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4cff47([0x74,0x72,0x69,0x61,0x6c])][_0x4cff47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8ae983[_0x4cff47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d3fb2/0x3e8:0xe10*_0x2c751d;return _0x8ae983[_0x4cff47([0x65,0x78,0x70])]<_0x2d4eac;}function _0x16f700(){const _0x359906=_0x8ae983[_0x4cff47([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x359906&&(!!_0x359906[_0x4cff47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cff47([0x2a]))||!!_0x359906[_0x4cff47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cff47([0x55,0x50,0x4c,0x43])));}function _0x52654e(){const _0x43a610=_0x4040,_0x5e4c81=_0x8ae983[_0x4cff47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e4c81||0x0==_0x5e4c81[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16f8d4}=new URL(window[_0x4cff47([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x43a610(0x110)]);if(_0x5e4c81[_0x4cff47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f8d4))return!0x0;const _0x248446=_0x16f8d4[_0x4cff47([0x73,0x70,0x6c,0x69,0x74])](_0x4cff47([0x2e]));return _0x5e4c81[_0x4cff47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9f116d=>_0x9f116d[_0x4cff47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cff47([0x2a])))[_0x4cff47([0x6d,0x61,0x70])](_0x2febca=>_0x2febca[_0x4cff47([0x73,0x70,0x6c,0x69,0x74])](_0x4cff47([0x2e])))[_0x4cff47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x112f5e=>_0x112f5e[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x248446[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4cff47([0x6d,0x61,0x70])](_0x54c8bb=>Array(_0x248446[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54c8bb[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4cff47([0x66,0x69,0x6c,0x6c])](_0x54c8bb[0x0]===_0x4cff47([0x2a])?_0x4cff47([0x2a]):'')[_0x4cff47([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54c8bb))[_0x4cff47([0x73,0x6f,0x6d,0x65])](_0x5ba3f6=>_0x248446[_0x4cff47([0x65,0x76,0x65,0x72,0x79])]((_0x51d62c,_0x2422f3)=>_0x5ba3f6[_0x2422f3]===_0x51d62c||_0x5ba3f6[_0x2422f3]===_0x4cff47([0x2a])));}function _0xebc73a(){return _0xe5ed2e&&_0x302e10?new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b7129,_0x3cddf3)=>{_0xe5ed2e[_0x4cff47([0x74,0x68,0x65,0x6e])](_0x5b7129,_0x3cddf3),_0x302e10[_0x4cff47([0x74,0x68,0x65,0x6e])](_0x2f99f1=>{_0x2f99f1!=_0x4cff47([0x56,0x61,0x6c,0x69,0x64])&&_0x5b7129(_0x2f99f1);},_0x3cddf3);}):_0xe5ed2e||_0x302e10||_0x4cff47([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19385d(_0x1e7f45,_0x39ec4c){return new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ab652=>{if(_0x25a344())return _0x4ab652(_0x4cff47([0x56,0x61,0x6c,0x69,0x64]));_0x28469b(),_0x41a545[_0x4cff47([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4cff47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2442d3=!0x1;const _0x2d807=_0x40747c();function _0x5eea05(_0x1bb823){return!!_0x1bb823&&(typeof _0x1bb823===_0x4cff47([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1bb823===_0x4cff47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1bb823[_0x4cff47([0x74,0x68,0x65,0x6e])]===_0x4cff47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1bb823[_0x4cff47([0x63,0x61,0x74,0x63,0x68])]===_0x4cff47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e3e22(_0x565b64){_0x1e474a(_0x565b64)[_0x4cff47([0x74,0x68,0x65,0x6e])](_0x470cfe=>{if(!_0x470cfe||_0x470cfe[_0x4cff47([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4cff47([0x6f,0x6b]))return _0x4cff47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c3bbd(_0x44e756(_0x2d807+_0x39ec4c))!=_0x470cfe[_0x4cff47([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4cff47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4cff47([0x56,0x61,0x6c,0x69,0x64]);})[_0x4cff47([0x74,0x68,0x65,0x6e])](_0x3fdc62=>(_0x3b6bc4(),_0x3fdc62),()=>{const _0x161287=_0x46acb4();return null==_0x161287?(_0x3b6bc4(),_0x4cff47([0x56,0x61,0x6c,0x69,0x64])):_0x4cff47(_0x2d3fb2-_0x161287>(0x7753083a^_0x1c4480)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4cff47([0x74,0x68,0x65,0x6e])](_0x4ab652)[_0x4cff47([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ab652(_0x4cff47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23e9c1=0x536962ba^_0x1c4480;function _0x3b6bc4(){const _0x43e449=_0x4cff47([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c3bbd(_0x44e756(_0x1e7f45)),_0x15ebd7=_0x52abfa(_0x4c3bbd(window[_0x4cff47([0x4d,0x61,0x74,0x68])][_0x4cff47([0x63,0x65,0x69,0x6c])](_0x2d3fb2/_0x23e9c1)));window[_0x4cff47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4cff47([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43e449,_0x15ebd7);}function _0x46acb4(){const _0x2e06fd=_0x4cff47([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c3bbd(_0x44e756(_0x1e7f45)),_0x4dd758=window[_0x4cff47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4cff47([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e06fd);return _0x4dd758?window[_0x4cff47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52abfa(_0x4dd758),0x10)*_0x23e9c1:null;}function _0x1e474a(_0x50ee17){return new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc614bb,_0x547198)=>{_0x50ee17[_0x4cff47([0x74,0x68,0x65,0x6e])](_0xc614bb,_0x547198),window[_0x4cff47([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x547198,0x535e58fa^_0x1c4480);});}}_0x41a545[_0x4cff47([0x6f,0x6e])](_0x4cff47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ddec3,_0x58a8ea)=>{if(_0x58a8ea[0x0]!=_0x1e7f45)return _0x4ab652(_0x4cff47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x58a8ea[0x1]={..._0x58a8ea[0x1],[_0x4cff47([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d807};},{[_0x4cff47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4cff47([0x68,0x69,0x67,0x68])}),_0x41a545[_0x4cff47([0x6f,0x6e])](_0x4cff47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x546c52=>{_0x5eea05(_0x546c52[_0x4cff47([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2442d3=!0x0,_0x2e3e22(_0x546c52[_0x4cff47([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4cff47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4cff47([0x6c,0x6f,0x77])}),_0x2cc1fa[_0x4cff47([0x74,0x68,0x65,0x6e])](()=>{_0x2442d3||_0x4ab652(_0x4cff47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25a344(){return _0x41a545[_0x4cff47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4cff47([0x76,0x69,0x65,0x77])][_0x4cff47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4cff47([0x61,0x75,0x74,0x6f]);}function _0x28469b(){_0x41a545[_0x4cff47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4cff47([0x76,0x69,0x65,0x77])][_0x4cff47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4cff47([0x61,0x75,0x74,0x6f]);}}function _0x3579ef(_0x254c8f){const _0x5acd35=[new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x489901=>setTimeout(_0x489901,0x5356b2f6^_0x1c4480)),_0x2cc1fa[_0x4cff47([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8fbec=>{let _0x2c4cd5=0x0;_0x41a545[_0x4cff47([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cff47([0x6f,0x6e])](_0x4cff47([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32c5ba,_0x39d94d)=>{_0x39d94d[0x0][_0x4cff47([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c4cd5++,_0x2c4cd5==(0x535f8dc2^_0x1c4480)&&(_0x8fbec(),_0x32c5ba[_0x4cff47([0x6f,0x66,0x66])]());});}))];return window[_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4cff47([0x72,0x61,0x63,0x65])](_0x5acd35)[_0x4cff47([0x74,0x68,0x65,0x6e])](()=>_0x254c8f);}async function _0x32e5fa(){await _0x2cc1fa,_0x41a545[_0x4cff47([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cff47([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa3ce7d,_0x41a545[_0x4cff47([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cff47([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa3ce7d,_0x41a545[_0x4cff47([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4cff47([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x275e6c(_0x147161){const _0x32a21a=_0x2c5c62();_0x41a545[_0x32a21a]=_0x4cff47([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x147161,_0x147161!=_0x4cff47([0x56,0x61,0x6c,0x69,0x64])&&_0x32e5fa();}function _0x2c5c62(){const _0x995569=window[_0x4cff47([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4cff47([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4cff47([0x6e,0x6f,0x77])]())[_0x4cff47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4cff47([0x2e]),'');let _0x26a822=_0x4cff47([0x68]);for(let _0x42fca9=0x0;_0x42fca9<_0x995569[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42fca9+=0x2){let _0x138991=window[_0x4cff47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x995569[_0x4cff47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42fca9,_0x42fca9+0x2));_0x138991>=_0xcebe92[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x138991-=_0xcebe92[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26a822+=_0xcebe92[_0x138991];}return _0x26a822;}function _0x1aa774(){const _0x4fc282=_0x233c84[_0x4cff47([0x73,0x70,0x6c,0x69,0x74])](_0x4cff47([0x2e]));if(0x3!=_0x4fc282[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c763a(_0x4fc282[0x1]);function _0x4c763a(_0x3bb03d){const _0xa27597=_0x2b5f6d(_0x3bb03d);return _0xa27597&&_0x264b2d()?_0xa27597:null;function _0x264b2d(){const _0x4f731e=_0xa27597[_0x4cff47([0x6a,0x74,0x69])],_0x1b0bdb=window[_0x4cff47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f731e[_0x4cff47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f731e[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x504597={..._0xa27597,[_0x4cff47([0x6a,0x74,0x69])]:_0x4f731e[_0x4cff47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f731e[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x504597[_0x4cff47([0x76,0x63])],_0x44e756(_0x504597)==_0x1b0bdb;}}}async function _0x28cedd(){let _0x18956f=!0x0;try{const _0x3da249=_0x233c84[_0x4cff47([0x73,0x70,0x6c,0x69,0x74])](_0x4cff47([0x2e])),[_0x115ead,_0x32e205,_0x15f1e3]=_0x3da249;return _0x545ec1(_0x115ead),await _0x55b40f(_0x115ead,_0x32e205,_0x15f1e3),_0x18956f;}catch{return!0x1;}function _0x545ec1(_0xe3a5a1){const _0x1927b3=_0x2b5f6d(_0xe3a5a1);_0x1927b3&&_0x1927b3[_0x4cff47([0x61,0x6c,0x67])]==_0x4cff47([0x45,0x53,0x32,0x35,0x36])||(_0x18956f=!0x1);}async function _0x55b40f(_0x41766d,_0x1876b2,_0x37b8d2){const _0x239c8d=window[_0x4cff47([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4cff47([0x66,0x72,0x6f,0x6d])](_0x55cd8a(_0x37b8d2),_0x4334d1=>_0x4334d1[_0x4cff47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x356284=new window[(_0x4cff47([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4cff47([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41766d+_0x4cff47([0x2e])+_0x1876b2),_0x38b015=window[_0x4cff47([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4cff47([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38b015)return;const _0x1b9bc8=await _0x38b015[_0x4cff47([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4cff47([0x6a,0x77,0x6b]),_0x531d93,{[_0x4cff47([0x6e,0x61,0x6d,0x65])]:_0x4cff47([0x45,0x43,0x44,0x53,0x41]),[_0x4cff47([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4cff47([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4cff47([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38b015[_0x4cff47([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4cff47([0x6e,0x61,0x6d,0x65])]:_0x4cff47([0x45,0x43,0x44,0x53,0x41]),[_0x4cff47([0x68,0x61,0x73,0x68])]:{[_0x4cff47([0x6e,0x61,0x6d,0x65])]:_0x4cff47([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b9bc8,_0x239c8d,_0x356284)||(_0x18956f=!0x1);}}function _0x2b5f6d(_0x1d6258){return _0x1d6258[_0x4cff47([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4cff47([0x65,0x79]))?JSON[_0x4cff47([0x70,0x61,0x72,0x73,0x65])](_0x55cd8a(_0x1d6258)):null;}function _0x55cd8a(_0xaae3c3){return window[_0x4cff47([0x61,0x74,0x6f,0x62])](_0xaae3c3[_0x4cff47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4cff47([0x2b]))[_0x4cff47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4cff47([0x2f])));}function _0x44e756(_0x35df23){let _0x31e5ed=0x1505;function _0x1ede93(_0x186c10){for(let _0x1dbbad=0x0;_0x1dbbad<_0x186c10[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dbbad++){const _0x18c6e8=_0x186c10[_0x4cff47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1dbbad);_0x31e5ed=(_0x31e5ed<<0x5)+_0x31e5ed+_0x18c6e8,_0x31e5ed&=_0x31e5ed;}}function _0x3887c5(_0x567bc3){Array[_0x4cff47([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x567bc3)?_0x567bc3[_0x4cff47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3887c5):_0x567bc3&&typeof _0x567bc3==_0x4cff47([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4cff47([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x567bc3)[_0x4cff47([0x73,0x6f,0x72,0x74])]()[_0x4cff47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x87675a,_0x963df8])=>{_0x1ede93(_0x87675a),_0x3887c5(_0x963df8);}):_0x1ede93(window[_0x4cff47([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x567bc3));}return _0x3887c5(_0x35df23),_0x31e5ed>>>0x0;}function _0x4c3bbd(_0x223fcb){return _0x223fcb[_0x4cff47([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4cff47([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4cff47([0x30]));}function _0x52abfa(_0x5819d1){return _0x5819d1[_0x4cff47([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4cff47([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4cff47([0x6a,0x6f,0x69,0x6e])]('');}function _0xa3ce7d(){}function _0x4cff47(_0x154d26){const _0x594d57=_0x4040;return _0x154d26[_0x594d57(0xf3)](_0x23f810=>String[_0x594d57(0x10c)](_0x23f810))[_0x594d57(0x12b)]('');}_0x275e6c(await _0x4762ed());}(this);}[_0x704e24(0x11f)](){const _0x6eb09f=_0x704e24,_0x378404=this[_0x6eb09f(0x130)][_0x6eb09f(0xee)][_0x6eb09f(0x10d)];_0x378404[_0x6eb09f(0x124)](_0x6eb09f(0xfb))&&_0x378404[_0x6eb09f(0x105)](_0x6eb09f(0xfb),{'allowAttributes':[_0x6eb09f(0x100)]}),_0x378404[_0x6eb09f(0x124)](_0x6eb09f(0xf9))&&_0x378404[_0x6eb09f(0x105)](_0x6eb09f(0xf9),{'allowAttributes':[_0x6eb09f(0x100)]});}[_0x704e24(0x125)](){const _0x533d33=_0x704e24,_0x362432=this[_0x533d33(0x130)];_0x362432[_0x533d33(0x11b)][_0x533d33(0x13c)](_0x533d33(0x11e))[_0x533d33(0x112)]({'model':_0x533d33(0x100),'view':_0x533d33(0xed)}),_0x362432[_0x533d33(0x11b)][_0x533d33(0x13c)](_0x533d33(0x13a))[_0x533d33(0x129)]({'model':{'key':_0x533d33(0x100),'value':_0x5f16cc=>_0x5f16cc[_0x533d33(0x123)](_0x533d33(0xed))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x492b67=_0x362432[_0x533d33(0x109)][_0x533d33(0x11c)](_0x533d33(0xf1));_0x492b67&&this[_0x533d33(0x12f)](_0x492b67,_0x533d33(0xf2),(_0x2f3c33,[_0x292d06,_0x740fdc])=>{const _0x30e619=_0x533d33;_0x292d06[_0x30e619(0x108)](_0x30e619(0x100),_0x740fdc);});}[_0x704e24(0xf0)](){const _0x3154a3=_0x704e24,_0x31cb29=this[_0x3154a3(0x130)][_0x3154a3(0x131)][_0x3154a3(0x11c)](_0x3154a3(0x137))||{},_0x5bcc9b=this[_0x3154a3(0x130)][_0x3154a3(0x131)][_0x3154a3(0x11c)](_0x3154a3(0x13b))||'';this[_0x3154a3(0x10f)]=_0xccb8e2(_0xf78b76[_0x3154a3(0xfa)],_0x3154a3(0x114),{..._0x31cb29,'pubkey':_0x5bcc9b,'ctx-name':_0x3154a3(0x102)+this[_0x3154a3(0xef)],'sourceList':'','imgOnly':_0x3154a3(0xeb),'removeCopyright':_0x3154a3(0xeb),'localeName':this[_0x3154a3(0x130)][_0x3154a3(0x104)][_0x3154a3(0x121)],'externalSourcesEmbedCss':_0x3154a3(0x103)}),this[_0x3154a3(0x10f)][_0x3154a3(0x12e)]=_0xc59a84=>{const _0x9f2689=_0x3154a3;if(_0x9f2689(0x139)==_0xc59a84)return _0x9f2689(0x11a);},_0xf78b76[_0x3154a3(0xfa)][_0x3154a3(0x133)][_0x3154a3(0x11d)](this[_0x3154a3(0x10f)]);}[_0x704e24(0x111)](){const _0x2d2bf9=_0x704e24;this[_0x2d2bf9(0x116)]=_0xccb8e2(_0xf78b76[_0x2d2bf9(0xfa)],_0x2d2bf9(0x12a),{'ctx-name':_0x2d2bf9(0x102)+this[_0x2d2bf9(0xef)]}),_0xf78b76[_0x2d2bf9(0xfa)][_0x2d2bf9(0x133)][_0x2d2bf9(0x11d)](this[_0x2d2bf9(0x116)]);}[_0x704e24(0x135)](){const _0x42e0ba=_0x704e24,_0x3c957d=this[_0x42e0ba(0x130)][_0x42e0ba(0x109)][_0x42e0ba(0x11c)](_0x42e0ba(0xf4));_0x3c957d&&this[_0x42e0ba(0x12f)](_0x3c957d,_0x42e0ba(0xff),()=>{const _0xcb2b65=_0x42e0ba,_0x52259d=this[_0xcb2b65(0x130)][_0xcb2b65(0xee)][_0xcb2b65(0xfa)][_0xcb2b65(0x107)][_0xcb2b65(0xf6)]();_0x52259d&&_0x52259d[_0xcb2b65(0x123)](_0xcb2b65(0x100))&&this[_0xcb2b65(0x130)][_0xcb2b65(0x134)][_0xcb2b65(0xea)][_0xcb2b65(0x128)](_0xcb2b65(0xf8),()=>{const _0xc2843d=_0xcb2b65;_0x546879(this[_0xc2843d(0x130)],_0x52259d);});});const _0x20db2c=this[_0x42e0ba(0x130)][_0x42e0ba(0x109)][_0x42e0ba(0x11c)](_0x42e0ba(0x119));_0x20db2c&&this[_0x42e0ba(0x12f)](_0x20db2c,_0x42e0ba(0xff),()=>{const _0x5d4754=_0x42e0ba,_0x5474e4=this[_0x5d4754(0x130)][_0x5d4754(0xee)][_0x5d4754(0xfa)][_0x5d4754(0x107)][_0x5d4754(0xf6)]();_0x5474e4&&_0x5474e4[_0x5d4754(0x123)](_0x5d4754(0x100))&&this[_0x5d4754(0x130)][_0x5d4754(0x134)][_0x5d4754(0xea)][_0x5d4754(0x128)](_0x5d4754(0xf8),()=>{const _0x87ff83=_0x5d4754;_0x546879(this[_0x87ff83(0x130)],_0x5474e4);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x32342e,ObservableMixin as _0x29be2c}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x11da6a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1e7c15}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3d037a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x350ce1}from'../../utils/uploadutils.js';import{getImageUrls as _0x12c91f,getImageDimension as _0x4da9fc}from'../../utils/editingutils.js';import{isAncestor as _0x569f98}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x29be2c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2e8b28,_0x5964c0,_0x1dec3b){super(),this['_editor']=_0x2e8b28,this['_dialog']=_0x5964c0,this['_imageElement']=_0x1dec3b,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 _0x5a8280=this['_imageElement'],_0x1168cb=_0x5a8280['getAttribute']('uploadcareImageId'),_0xf2c186=_0x5a8280['getAttribute']('src');if(_0x1168cb)await this['_loadImageInfo'](_0x1168cb,_0xf2c186);else{if(this['_imageCache']['has'](_0xf2c186)){const _0x16b71d=this['_imageCache']['get'](_0xf2c186);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16b71d['url'],this['imageDimension']=_0x16b71d['dimension'],this['imageId']=_0x16b71d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2f2848}=this['_editor'],t=_0x2f2848['t'],_0x251774=new _0x3d037a(_0x2f2848,this['imageStatus'],this['_attributes']);_0x251774['bind']('status')['to'](this,'imageStatus'),_0x251774['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x251774['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x251774['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x251774,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e7c15,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x251774,'position':_0x11da6a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x251774['focus']();},'onHide':()=>{_0x251774['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x30759c=>!_0x569f98(_0x30759c,_0x251774['element'])}});}['_loadImageInfo'](_0x2438fd,_0x4fa207){return _0x350ce1['getInfo'](_0x2438fd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x184fbd=>{const {width:_0x2a9293,height:_0x54138e}=_0x184fbd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4fa207,this['imageDimension']={'width':_0x2a9293,'height':_0x54138e},this['imageId']=_0x2438fd;})['catch'](_0x11c4f8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x11c4f8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x303abf,_0x479cf5){return this['_getImageAsFile'](_0x303abf)['then'](_0x47e9d2=>_0x350ce1['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':_0x479cf5['signal'],'file':_0x47e9d2,'onProgress':_0x5e48e4=>{_0x5e48e4&&_0x5e48e4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5e48e4['value']));}}))['then'](_0x4ff820=>{const {width:_0x30e71d,height:_0x1f90a9}=_0x4ff820['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ff820['cdnUrl'],this['imageDimension']={'width':_0x30e71d,'height':_0x1f90a9},this['imageId']=_0x4ff820['uuid'],this['imageUploadProgress']=null;const _0x159a43=_0x303abf['getAttribute']('src');this['_imageCache']['set'](_0x159a43,{'id':_0x4ff820['uuid'],'url':_0x4ff820['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x191c42=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x191c42['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x405f01,_0x276819){_0x405f01['on']('apply',(_0x1adbf3,_0x2c3347)=>{this['_replaceImage'](_0x276819,_0x2c3347['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x405f01['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x405f01['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x579f09,_0x1b7d8f,_0x19795f){const _0x1898c9=this['_editor'],{width:_0x15a6f4,height:_0x5ac38c}=_0x4da9fc(_0x1b7d8f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x94412c,imageSources:_0x272bc8}=_0x12c91f(_0x1b7d8f,_0x15a6f4);_0x1898c9['model']['change'](_0x1e4427=>{if('$graveyard'===_0x579f09['root']['rootName']){_0x1898c9['execute']('insertImage',{'imageType':_0x579f09['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x579f09['getAttributes']()),'uploadcareImageId':_0x19795f,'src':_0x94412c,'sources':_0x272bc8,'width':_0x15a6f4,'height':_0x5ac38c}});const _0x3839b6=_0x579f09['getChildren']();_0x579f09=_0x1898c9['model']['document']['selection']['getSelectedElement']();for(const _0x4d071e of _0x3839b6)_0x1e4427['append'](_0x1e4427['cloneElement'](_0x4d071e),_0x579f09);}else _0x1e4427['setSelection'](_0x579f09,'on'),_0x1898c9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x579f09['getAttributes']()),'uploadcareImageId':_0x19795f,'src':_0x94412c,'sources':_0x272bc8,'width':_0x15a6f4,'height':_0x5ac38c},_0x579f09);_0x1e4427['setSelection'](_0x579f09,'on');});}async['_getImageAsFile'](_0x17db75){const _0x4e77f8=_0x32342e['window'],_0x125784=_0x32342e['document']['location']['href'],_0x1d1050=new _0x4e77f8['URL'](_0x17db75['getAttribute']('src'),_0x125784);if('data:'===_0x1d1050['protocol']){const _0x127b78=_0x1d1050['href']['split'](','),_0x4fcdb9=_0x127b78[0x0]['match'](/:(.*?);/)[0x1],_0x532e81=_0x4fcdb9['split']('/')[0x1],_0x3964c2=_0x4e77f8['atob'](_0x127b78[_0x127b78['length']-0x1]);let _0x7d8af8=_0x3964c2['length'];const _0x4ddcf4=new _0x4e77f8['Uint8Array'](_0x7d8af8);for(;_0x7d8af8--;)_0x4ddcf4[_0x7d8af8]=_0x3964c2['charCodeAt'](_0x7d8af8);return new _0x4e77f8['File']([_0x4ddcf4],'image.'+_0x532e81,{'type':_0x4fcdb9});}const _0x4a18b8=_0x1d1050['href']['split']('/'),_0x2a5cce=_0x4a18b8[_0x4a18b8['length']-0x1],_0x491b3e=_0x2a5cce['split']('.')[0x1];return _0x4e77f8['fetch'](_0x1d1050['href'])['then'](_0x4bb483=>_0x4bb483['clone']()['blob']())['then'](_0x3281eb=>new _0x4e77f8['File']([_0x3281eb],_0x2a5cce,{'type':'image/'+_0x491b3e}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4c8d(_0x2de57a,_0x57c28f){const _0x563090=_0x5630();return _0x4c8d=function(_0x4c8d4e,_0x546d37){_0x4c8d4e=_0x4c8d4e-0xa4;let _0x2f031d=_0x563090[_0x4c8d4e];return _0x2f031d;},_0x4c8d(_0x2de57a,_0x57c28f);}(function(_0x136795,_0x30cce8){const _0x49ba03=_0x4c8d,_0x2330ad=_0x136795();while(!![]){try{const _0x6459c4=parseInt(_0x49ba03(0xb0))/0x1*(parseInt(_0x49ba03(0xb4))/0x2)+parseInt(_0x49ba03(0xa6))/0x3*(-parseInt(_0x49ba03(0xaa))/0x4)+parseInt(_0x49ba03(0xaf))/0x5+parseInt(_0x49ba03(0xac))/0x6+parseInt(_0x49ba03(0xb5))/0x7+parseInt(_0x49ba03(0xa5))/0x8*(-parseInt(_0x49ba03(0xb3))/0x9)+-parseInt(_0x49ba03(0xb2))/0xa;if(_0x6459c4===_0x30cce8)break;else _0x2330ad['push'](_0x2330ad['shift']());}catch(_0xfc5f4){_0x2330ad['push'](_0x2330ad['shift']());}}}(_0x5630,0xbc024));import{View as _0x45418f}from'ckeditor5/src/ui.js';function _0x5630(){const _0x338422=['6201PbSDzF','bindTemplate','ck-uploadcare-theme','uc-light','344qoawDI','uc-cloud-image-editor','8897862lqhvSe','setTemplate','image-edit','6137000nlzDTS','37gszNnB','set','15437190rgAoLb','4122aaAnFl','11238kmEgXt','3569265jacyvY','imageSrc','16360SUHsSh'];_0x5630=function(){return _0x338422;};return _0x5630();}export class UploadcareImageEditFormEditingView extends _0x45418f{constructor(_0x513626,_0x174f46){const _0x3b3883=_0x4c8d;super(_0x513626);const _0x2db864=this[_0x3b3883(0xa7)];this[_0x3b3883(0xb1)](_0x3b3883(0xa4),''),this[_0x3b3883(0xad)]({'tag':_0x3b3883(0xab),'attributes':{..._0x174f46,'class':[_0x3b3883(0xa9),_0x3b3883(0xa8)],'ctx-name':_0x3b3883(0xae),'cdn-url':_0x2db864['to'](_0x3b3883(0xa4))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2c43cb}from'ckeditor5/src/icons.js';import{ButtonView as _0x167ece,IconView as _0x2dd70b,View as _0x13a0ee}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x13a0ee{constructor(_0x1ea025){super(_0x1ea025);const t=_0x1ea025['t'];this['set']('errorType',null);const _0x304cc3=new _0x167ece(_0x1ea025);_0x304cc3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x304cc3['withText']=!0x0,_0x304cc3['class']='ck-button-action',_0x304cc3['on']('execute',()=>{this['fire']('retry');}),_0x304cc3['bind']('isVisible')['to'](this,'errorType',_0x422872=>'NotFound'!==_0x422872);const _0x4a7121=new _0x2dd70b();_0x4a7121['content']=_0x2c43cb,_0x4a7121['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x99b1ae=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':[_0x4a7121,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x99b1ae['to']('errorType',_0x50e9d2=>t('NotFound'!==_0x50e9d2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x304cc3]},{'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 _0x56dafe,View as _0x3662ba}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3662ba{constructor(_0x555d4d){super(_0x555d4d);const t=_0x555d4d['t'],_0x17540c=this['bindTemplate'],_0x2b4645=new _0x56dafe();_0x2b4645['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':[_0x2b4645,{'text':_0x17540c['to']('imageUploadProgress',_0x5904bc=>t('Loading\x20image...')+'\x20('+(_0x5904bc||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
|
-
function
|
|
23
|
+
const _0x1ace78=_0x647f;function _0x647f(_0x60b299,_0x212d62){const _0x23e74a=_0x23e7();return _0x647f=function(_0x647fe0,_0x175470){_0x647fe0=_0x647fe0-0x12b;let _0x16bf78=_0x23e74a[_0x647fe0];return _0x16bf78;},_0x647f(_0x60b299,_0x212d62);}(function(_0x161084,_0x15378e){const _0x165af1=_0x647f,_0x5634f6=_0x161084();while(!![]){try{const _0x3225c9=parseInt(_0x165af1(0x150))/0x1+-parseInt(_0x165af1(0x15b))/0x2*(parseInt(_0x165af1(0x13c))/0x3)+-parseInt(_0x165af1(0x134))/0x4*(parseInt(_0x165af1(0x155))/0x5)+parseInt(_0x165af1(0x14c))/0x6+parseInt(_0x165af1(0x142))/0x7+parseInt(_0x165af1(0x144))/0x8+parseInt(_0x165af1(0x14e))/0x9;if(_0x3225c9===_0x15378e)break;else _0x5634f6['push'](_0x5634f6['shift']());}catch(_0x1bdd95){_0x5634f6['push'](_0x5634f6['shift']());}}}(_0x23e7,0xc2791));import{View as _0x2da677}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5a34be}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2ba277}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x55ea41}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x393a22}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x23e7(){const _0x2c77d2=['toLowerCase','getFocusableElement','ready','_addUploadcareImageEditorListeners','addEventListener','347716fpKFGP','length','div','status','render','_waitForImageEditorComponent','disconnect','uc-cloud-image-editor','set','_focusableView','_loadingView','addedNodes','change:status','_errorView','fire','680vWjYMe','detail','once','cancel','_addErrorViewListeners','ck-reset_all-excluded','setTemplate','ck-uploadcare-form','15MfExXL','retry','error','_editingView','add','uploading','7396109LLfSGd','cdnUrl','6172952FAqSfx','querySelector','target','element','focus','createCollection','clear','_setView','2162316GIigWJ','addMany','2806542nzCfUt','_items','234211xFCYsY','observe','apply','filter','nodeName','31435FMxDnR'];_0x23e7=function(){return _0x2c77d2;};return _0x23e7();}export class UploadcareImageEditFormView extends _0x393a22{[_0x1ace78(0x14f)];[_0x1ace78(0x12f)];[_0x1ace78(0x132)];[_0x1ace78(0x13f)];[_0x1ace78(0x12e)];constructor(_0x2e64bd,_0x2c0f36,_0x4f6aea){const _0x4ad7b2=_0x1ace78;super(_0x2e64bd),this[_0x4ad7b2(0x14f)]=this[_0x4ad7b2(0x149)](),this[_0x4ad7b2(0x12f)]=new _0x5a34be(_0x2e64bd),this[_0x4ad7b2(0x132)]=new _0x2ba277(_0x2e64bd),this[_0x4ad7b2(0x13f)]=new _0x55ea41(_0x2e64bd,_0x4f6aea),this[_0x4ad7b2(0x12e)]=new _0x2da677(_0x2e64bd),this[_0x4ad7b2(0x12e)][_0x4ad7b2(0x13a)](this[_0x4ad7b2(0x157)]()),this[_0x4ad7b2(0x12d)](_0x4ad7b2(0x15e),_0x2c0f36),this[_0x4ad7b2(0x13a)]({'tag':_0x4ad7b2(0x15d),'attributes':{'class':['ck',_0x4ad7b2(0x139),_0x4ad7b2(0x13b)],'tabindex':'-1'},'children':this[_0x4ad7b2(0x14f)]}),this[_0x4ad7b2(0x14b)](),this[_0x4ad7b2(0x136)](_0x4ad7b2(0x15f),()=>{const _0x3b30bd=_0x4ad7b2;this[_0x3b30bd(0x160)](this[_0x3b30bd(0x147)],_0x12b648=>{const _0x584a1c=_0x3b30bd;this[_0x584a1c(0x159)](_0x12b648);});}),this['on'](_0x4ad7b2(0x131),()=>{const _0x54c09d=_0x4ad7b2;this[_0x54c09d(0x14b)]();}),this[_0x4ad7b2(0x138)]();}[_0x1ace78(0x148)](){const _0x336977=_0x1ace78;this[_0x336977(0x147)][_0x336977(0x148)]();}[_0x1ace78(0x14b)](){const _0x72f85a=_0x1ace78;switch(this[_0x72f85a(0x14f)][_0x72f85a(0x14a)](),this[_0x72f85a(0x15e)]){case _0x72f85a(0x141):this[_0x72f85a(0x14f)][_0x72f85a(0x140)](this[_0x72f85a(0x12f)]);break;case _0x72f85a(0x13e):this[_0x72f85a(0x14f)][_0x72f85a(0x140)](this[_0x72f85a(0x132)]);break;case _0x72f85a(0x158):this[_0x72f85a(0x14f)][_0x72f85a(0x14d)]([this[_0x72f85a(0x13f)],this[_0x72f85a(0x12e)]]);}}[_0x1ace78(0x160)](_0xf67679,_0x230d07){const _0xfef79c=_0x1ace78,_0x30227e=_0xfef79c(0x12c),_0x448de3=_0xf67679[_0xfef79c(0x145)](_0x30227e);if(_0x448de3)return _0x230d07(_0x448de3);const _0x168f39=new MutationObserver(_0x23e827=>{const _0x25349a=_0xfef79c,_0x1fd7ec=_0x23e827[_0x25349a(0x153)](_0x1f4f3f=>_0x1f4f3f[_0x25349a(0x146)]===_0xf67679&&_0x1f4f3f[_0x25349a(0x130)][_0x25349a(0x15c)]>0x0&&_0x1f4f3f[_0x25349a(0x130)][0x0][_0x25349a(0x154)][_0x25349a(0x156)]()===_0x30227e);_0x1fd7ec[_0x25349a(0x15c)]&&(_0x168f39[_0x25349a(0x12b)](),_0x230d07(_0x1fd7ec[0x0][_0x25349a(0x130)][0x0]));});_0x168f39[_0xfef79c(0x151)](_0xf67679,{'childList':!0x0,'subtree':!0x0});}[_0x1ace78(0x159)](_0x290c70){const _0x1a572f=_0x1ace78;_0x290c70[_0x1a572f(0x15a)](_0x1a572f(0x152),_0x5ea95e=>{const _0x214018=_0x1a572f;this[_0x214018(0x133)](_0x214018(0x152),{'imageSrc':_0x5ea95e[_0x214018(0x135)][_0x214018(0x143)]});}),_0x290c70[_0x1a572f(0x15a)](_0x1a572f(0x137),()=>{const _0x558ec3=_0x1a572f;this[_0x558ec3(0x133)](_0x558ec3(0x137));});}[_0x1ace78(0x138)](){const _0x16676a=_0x1ace78;this[_0x16676a(0x132)]['on'](_0x16676a(0x13d),()=>{const _0x199a8e=_0x16676a;this[_0x199a8e(0x133)](_0x199a8e(0x13d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ee87b=_0x4f05;(function(_0x2915ec,_0x586f2b){const _0x2113dc=_0x4f05,_0x418eb9=_0x2915ec();while(!![]){try{const _0x3df22a=parseInt(_0x2113dc(0x1e8))/0x1+-parseInt(_0x2113dc(0x1e9))/0x2*(-parseInt(_0x2113dc(0x1df))/0x3)+parseInt(_0x2113dc(0x1e6))/0x4*(parseInt(_0x2113dc(0x1d6))/0x5)+-parseInt(_0x2113dc(0x1d5))/0x6+parseInt(_0x2113dc(0x1f2))/0x7*(-parseInt(_0x2113dc(0x1e5))/0x8)+parseInt(_0x2113dc(0x1d4))/0x9+parseInt(_0x2113dc(0x1ee))/0xa*(-parseInt(_0x2113dc(0x1e0))/0xb);if(_0x3df22a===_0x586f2b)break;else _0x418eb9['push'](_0x418eb9['shift']());}catch(_0x2a0c69){_0x418eb9['push'](_0x418eb9['shift']());}}}(_0x3c01,0x2328c));function _0x3c01(){const _0x347ff4=['requires','isEnabled','editor','192olYuho','67868njVfPI','selection','240938GpTiTS','6lUkiAv','uploadcare.allowExternalImagesEditing','element','model','unbind','10AIDXXs','execute','set','_isEditable','6153BzXuDZ','refresh','imageBlock','2572281rGAyui','438852FmUZdk','35fGbkyL','imageInline','isActive','config','plugins','getSelectedElement','bind','get','imageEditController','114465KMqgvU','5739041Cjvcww','document'];_0x3c01=function(){return _0x347ff4;};return _0x3c01();}function _0x4f05(_0x11cbff,_0x5efeaf){const _0x3c012=_0x3c01();return _0x4f05=function(_0x4f05cd,_0x59be2a){_0x4f05cd=_0x4f05cd-0x1d4;let _0x55dfba=_0x3c012[_0x4f05cd];return _0x55dfba;},_0x4f05(_0x11cbff,_0x5efeaf);}import{Command as _0x555f23}from'ckeditor5/src/core.js';import{Dialog as _0xb29d35}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2bc0e8}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x52fc4c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x555f23{[_0x3ee87b(0x1de)];static get[_0x3ee87b(0x1e2)](){return[_0xb29d35];}[_0x3ee87b(0x1f1)];constructor(_0x4b6ce2){const _0x1bbca8=_0x3ee87b;super(_0x4b6ce2),this[_0x1bbca8(0x1de)]=void 0x0,this[_0x1bbca8(0x1f1)]=_0x52fc4c(_0x4b6ce2[_0x1bbca8(0x1d9)][_0x1bbca8(0x1dd)](_0x1bbca8(0x1ea))||[]),this[_0x1bbca8(0x1f0)]({'isActive':!0x1});}[_0x3ee87b(0x1f3)](){const _0x309405=_0x3ee87b,_0x691036=this[_0x309405(0x1e4)][_0x309405(0x1ec)][_0x309405(0x1e1)][_0x309405(0x1e7)][_0x309405(0x1db)]();this[_0x309405(0x1e3)]=this[_0x309405(0x1f1)](_0x691036);}[_0x3ee87b(0x1ef)](){const _0x3fca3c=_0x3ee87b;this[_0x3fca3c(0x1de)]&&(this[_0x3fca3c(0x1ed)](_0x3fca3c(0x1d8)),this[_0x3fca3c(0x1de)]=void 0x0);const _0x363a41=this[_0x3fca3c(0x1e4)][_0x3fca3c(0x1ec)][_0x3fca3c(0x1e1)][_0x3fca3c(0x1e7)][_0x3fca3c(0x1db)]();_0x363a41&&(_0x363a41['is'](_0x3fca3c(0x1eb),_0x3fca3c(0x1f4))||_0x363a41['is'](_0x3fca3c(0x1eb),_0x3fca3c(0x1d7)))&&(this[_0x3fca3c(0x1de)]=new _0x2bc0e8(this[_0x3fca3c(0x1e4)],this[_0x3fca3c(0x1e4)][_0x3fca3c(0x1da)][_0x3fca3c(0x1dd)](_0xb29d35),_0x363a41),this[_0x3fca3c(0x1dc)](_0x3fca3c(0x1d8))['to'](this[_0x3fca3c(0x1de)],_0x3fca3c(0x1d8)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4dea(_0xae38e5,_0x228f52){const _0x308eb5=_0x308e();return _0x4dea=function(_0x4deaeb,_0x40d63d){_0x4deaeb=_0x4deaeb-0xa3;let _0x3ef27c=_0x308eb5[_0x4deaeb];return _0x3ef27c;},_0x4dea(_0xae38e5,_0x228f52);}const _0x37153b=_0x4dea;(function(_0x188a4a,_0x1f28ef){const _0x48cdf2=_0x4dea,_0x4e5feb=_0x188a4a();while(!![]){try{const _0x3b3d75=-parseInt(_0x48cdf2(0xb3))/0x1*(-parseInt(_0x48cdf2(0xa7))/0x2)+-parseInt(_0x48cdf2(0xac))/0x3*(parseInt(_0x48cdf2(0xad))/0x4)+-parseInt(_0x48cdf2(0xb1))/0x5+parseInt(_0x48cdf2(0xab))/0x6*(parseInt(_0x48cdf2(0xa3))/0x7)+-parseInt(_0x48cdf2(0xb2))/0x8+parseInt(_0x48cdf2(0xa4))/0x9+parseInt(_0x48cdf2(0xb8))/0xa;if(_0x3b3d75===_0x1f28ef)break;else _0x4e5feb['push'](_0x4e5feb['shift']());}catch(_0x1c1c25){_0x4e5feb['push'](_0x4e5feb['shift']());}}}(_0x308e,0x3ccd7));import{Plugin as _0x5db8e9}from'ckeditor5/src/core.js';import{Notification as _0x237334}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x5efa40}from'./uploadcareimageeditcommand.js';function _0x308e(){const _0x3157d5=['3495996KcPSCl','ImageUtils','ImageEditing','24XAytKp','commands','init','requires','6yvpkIL','6ywWhFp','237964GhNFZL','isOfficialPlugin','uploadcareImageEdit','UploadcareImageEditEditing','895940JhTZzq','1895360tlWJeh','5197outklR','isPremiumPlugin','pluginName','uploadcareImageReplace','add','262710uhwMrZ','2149406qitwsw'];_0x308e=function(){return _0x3157d5;};return _0x308e();}import{UploadcareImageReplaceCommand as _0x58e079}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x5daef2}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x5db8e9{static get[_0x37153b(0xb5)](){const _0x55df40=_0x37153b;return _0x55df40(0xb0);}static get[_0x37153b(0xaa)](){const _0x299c70=_0x37153b;return[_0x5daef2,_0x237334,_0x299c70(0xa5),_0x299c70(0xa6)];}static get[_0x37153b(0xae)](){return!0x0;}static get[_0x37153b(0xb4)](){return!0x0;}[_0x37153b(0xa9)](){const _0x34604c=_0x37153b,{editor:_0xe5dab5}=this;_0xe5dab5[_0x34604c(0xa8)][_0x34604c(0xb7)](_0x34604c(0xaf),new _0x5efa40(_0xe5dab5)),_0xe5dab5[_0x34604c(0xa8)][_0x34604c(0xb7)](_0x34604c(0xb6),new _0x58e079(_0xe5dab5));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x42379b}from'ckeditor5/src/core.js';import{ButtonView as _0x344364}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x70ae98}from'ckeditor5/src/icons.js';import{createElement as _0x3b1180}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 _0x42379b{['_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 _0x3b2a22=this['editor'];_0x3b2a22['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1da1f5=>{const _0x49fca3=_0x3b2a22['commands']['get']('uploadcareImageEdit'),_0x46db1a=new _0x344364(_0x1da1f5),t=_0x1da1f5['t'];return _0x46db1a['set']({'icon':_0x70ae98,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x46db1a['bind']('isEnabled')['to'](_0x49fca3),_0x46db1a['bind']('isOn')['to'](_0x49fca3,'isActive'),this['listenTo'](_0x46db1a,'execute',()=>{_0x3b2a22['execute']('uploadcareImageEdit'),_0x3b2a22['editing']['view']['focus']();}),_0x46db1a;}),this['_initConfig']();}['_initConfig'](){const _0x13f6f2=_0x3b1180(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x13f6f2),this['listenTo'](this['editor'],'destroy',()=>{_0x13f6f2['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x20a784=_0x3177;(function(_0x5cdd9a,_0xe70a5e){const _0x2ecbbf=_0x3177,_0x3d0989=_0x5cdd9a();while(!![]){try{const _0x87b893=-parseInt(_0x2ecbbf(0x11d))/0x1+-parseInt(_0x2ecbbf(0x128))/0x2+-parseInt(_0x2ecbbf(0x11c))/0x3*(-parseInt(_0x2ecbbf(0x11b))/0x4)+-parseInt(_0x2ecbbf(0x11e))/0x5+parseInt(_0x2ecbbf(0x11f))/0x6+-parseInt(_0x2ecbbf(0x124))/0x7*(parseInt(_0x2ecbbf(0x129))/0x8)+parseInt(_0x2ecbbf(0x12e))/0x9*(parseInt(_0x2ecbbf(0x132))/0xa);if(_0x87b893===_0xe70a5e)break;else _0x3d0989['push'](_0x3d0989['shift']());}catch(_0x50a0cb){_0x3d0989['push'](_0x3d0989['shift']());}}}(_0x3fc1,0xbe876));function _0x3177(_0x298ba6,_0x2069f7){const _0x3fc11a=_0x3fc1();return _0x3177=function(_0x3177ec,_0x34d947){_0x3177ec=_0x3177ec-0x11b;let _0x27a28d=_0x3fc11a[_0x3177ec];return _0x27a28d;},_0x3177(_0x298ba6,_0x2069f7);}import{Command as _0xf19a5c}from'ckeditor5/src/core.js';function _0x3fc1(){const _0x212126=['10Zwnedi','change','refresh','324260vzBpRo','27DPfVlp','505315VQmdqC','1798510tDvUUn','7507080sQIgtK','selection','imageBlock','srcset','model','7QwnMNL','document','editor','removeAttribute','1884216QeBvcR','6049160dMWoST','sizes','setAttributes','getSelectedElement','isEnabled','12266199owEaxJ','element','execute','imageInline'];_0x3fc1=function(){return _0x212126;};return _0x3fc1();}export class UploadcareImageReplaceCommand extends _0xf19a5c{[_0x20a784(0x134)](){const _0x28b9f1=_0x20a784,_0x580a63=this[_0x28b9f1(0x126)][_0x28b9f1(0x123)][_0x28b9f1(0x125)][_0x28b9f1(0x120)][_0x28b9f1(0x12c)]();this[_0x28b9f1(0x12d)]=Boolean(_0x580a63&&(_0x580a63['is'](_0x28b9f1(0x12f),_0x28b9f1(0x121))||_0x580a63['is'](_0x28b9f1(0x12f),_0x28b9f1(0x131))));}[_0x20a784(0x130)](_0x883b9){const _0x59d7a7=_0x20a784,_0x6e17a3=this[_0x59d7a7(0x126)][_0x59d7a7(0x123)][_0x59d7a7(0x125)][_0x59d7a7(0x120)][_0x59d7a7(0x12c)]();this[_0x59d7a7(0x126)][_0x59d7a7(0x123)][_0x59d7a7(0x133)](_0x485290=>{const _0x24733d=_0x59d7a7;_0x485290[_0x24733d(0x12b)](_0x883b9,_0x6e17a3),_0x485290[_0x24733d(0x127)](_0x24733d(0x122),_0x6e17a3),_0x485290[_0x24733d(0x127)](_0x24733d(0x12a),_0x6e17a3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x315925=_0x51b0;(function(_0x249837,_0x2f0962){var _0x253afb=_0x51b0,_0x1c81b7=_0x249837();while(!![]){try{var _0x465403=parseInt(_0x253afb(0xea))/0x1+parseInt(_0x253afb(0xef))/0x2+-parseInt(_0x253afb(0xee))/0x3+-parseInt(_0x253afb(0xf0))/0x4+parseInt(_0x253afb(0xe8))/0x5+parseInt(_0x253afb(0xe7))/0x6*(parseInt(_0x253afb(0xec))/0x7)+-parseInt(_0x253afb(0xe6))/0x8;if(_0x465403===_0x2f0962)break;else _0x1c81b7['push'](_0x1c81b7['shift']());}catch(_0x4000ba){_0x1c81b7['push'](_0x1c81b7['shift']());}}}(_0x14d4,0x45542));function _0x51b0(_0x2d9a96,_0x1f0462){var _0x14d469=_0x14d4();return _0x51b0=function(_0x51b072,_0x4d8919){_0x51b072=_0x51b072-0xe4;var _0x5d318a=_0x14d469[_0x51b072];return _0x5d318a;},_0x51b0(_0x2d9a96,_0x1f0462);}function _0x14d4(){var _0x4bce9f=['407385qDdhEa','UploadcareImageEdit','49dfWjaY','pluginName','69597EkZUCr','768374ZTWtcT','1088400GxTJHm','requires','isPremiumPlugin','5127712IzDtjh','143814tzzxoS','1304390RDcblE','isOfficialPlugin'];_0x14d4=function(){return _0x4bce9f;};return _0x14d4();}import{Plugin as _0x23d12f}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x1988d0}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x624565}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x23d12f{static get[_0x315925(0xed)](){var _0x3b21e5=_0x315925;return _0x3b21e5(0xeb);}static get[_0x315925(0xe4)](){return[_0x1988d0,_0x624565];}static get[_0x315925(0xe9)](){return!0x0;}static get[_0x315925(0xe5)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b1110=_0xd38e;function _0x2505(){const _0x1b30f8=['isOfficialPlugin','label','tooltip','destroy','trialLimit','invalid','Replace','URL','commands','bind','_getIntegrationKey','1833435iQYHdc','afterInit','map','_createDropdownButtons','4291140SJiFQY','reduce','_createButton','forEach','expired','UploadcareUI','evaluationLimit','withText','8bMftBO','has','uploadcareLicenseKeyTrialLimit','locale','735327qHYlcc','_createToolbarButton','push','registerIntegration','pluginName','upload','3120795kwhBsg','Insert','77ehGgLl','get','icon','config','usageLimit','shortText','_normalizeConfigSourceList','uploadcareLicenseKeyExpired','entries','OneDrive','_licenseKeyCheckInterval','uploadcareLicenseKeyInvalid','isPremiumPlugin','isEnabled','Uploadcare','_createMenuBarButtons','featureNotAllowed','uploadcareLicenseKeyNotAllowed','Facebook','text','68DRHZhe','isImageSelected','Dropbox','uploadcareLicenseKeyEvaluationLimit','8ZGDBFo','uploadcareLicenseKeyUsageLimit','uploadcare.uploader.sourceList','GDrive','uploadcareLicenseKeyValid','uploadcare','url','1413804ORvNhn','assetManager','domainLimit','Local','editor','ImageInsertUI','GPhotos','init','_showLicenseError','plugins','6gWPBew','execute','type','4426219ZYKqsE','uploadcareLicenseKeyDomainLimit','17322EJsZJS','licenseKey'];_0x2505=function(){return _0x1b30f8;};return _0x2505();}(function(_0x16f582,_0x1b055c){const _0x2f127a=_0xd38e,_0x5da255=_0x16f582();while(!![]){try{const _0x20858a=-parseInt(_0x2f127a(0x17e))/0x1*(parseInt(_0x2f127a(0x145))/0x2)+-parseInt(_0x2f127a(0x162))/0x3*(parseInt(_0x2f127a(0x182))/0x4)+parseInt(_0x2f127a(0x168))/0x5*(parseInt(_0x2f127a(0x140))/0x6)+parseInt(_0x2f127a(0x143))/0x7*(-parseInt(_0x2f127a(0x15e))/0x8)+parseInt(_0x2f127a(0x152))/0x9+parseInt(_0x2f127a(0x156))/0xa+-parseInt(_0x2f127a(0x16a))/0xb*(-parseInt(_0x2f127a(0x189))/0xc);if(_0x20858a===_0x1b055c)break;else _0x5da255['push'](_0x5da255['shift']());}catch(_0x424873){_0x5da255['push'](_0x5da255['shift']());}}}(_0x2505,0x5a630));import{Plugin as _0x5522db}from'ckeditor5/src/core.js';import{IconDropbox as _0xf6d75d,IconFacebook as _0x42ad30,IconGoogleDrive as _0x1d3636,IconGooglePhotos as _0x1e30e4,IconUploadcareImageUpload as _0x2df7dc,IconUploadcareLink as _0x1bf1ef,IconOneDrive as _0x5c1f28}from'ckeditor5/src/icons.js';import{ButtonView as _0x1b13c6,MenuBarMenuListItemButtonView as _0x1ef82a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x37c38a}from'./uploadcareconfig.js';import{getTranslation as _0x46120f}from'./utils/common-translations.js';function _0xd38e(_0x49315f,_0x33717f){const _0x250557=_0x2505();return _0xd38e=function(_0xd38ee2,_0x400dd1){_0xd38ee2=_0xd38ee2-0x13d;let _0x38e99b=_0x250557[_0xd38ee2];return _0x38e99b;},_0xd38e(_0x49315f,_0x33717f);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x5522db{[_0x4b1110(0x146)];[_0x4b1110(0x174)];static get[_0x4b1110(0x166)](){const _0xb2086f=_0x4b1110;return _0xb2086f(0x15b);}static get[_0x4b1110(0x147)](){return!0x0;}static get[_0x4b1110(0x176)](){return!0x0;}[_0x4b1110(0x13d)](){const _0x4325f8=_0x4b1110;this[_0x4325f8(0x146)]=this[_0x4325f8(0x18d)][_0x4325f8(0x16d)][_0x4325f8(0x16b)](_0x4325f8(0x146));const _0x5b09cc=this[_0x4325f8(0x18d)];this[_0x4325f8(0x174)]=setInterval(()=>{const _0x142c07=_0x4325f8;let _0x23eca4;for(const _0x331bfc in _0x5b09cc){const _0x52ecbd=_0x331bfc,_0x56ff74=_0x5b09cc[_0x52ecbd];if(_0x142c07(0x186)==_0x56ff74||_0x142c07(0x175)==_0x56ff74||_0x142c07(0x171)==_0x56ff74||_0x142c07(0x144)==_0x56ff74||_0x142c07(0x17b)==_0x56ff74||_0x142c07(0x181)==_0x56ff74||_0x142c07(0x160)==_0x56ff74||_0x142c07(0x183)==_0x56ff74){delete _0x5b09cc[_0x52ecbd],_0x23eca4=_0x56ff74,clearInterval(this[_0x142c07(0x174)]),this[_0x142c07(0x174)]=void 0x0;break;}}_0x142c07(0x175)==_0x23eca4&&_0x5b09cc[_0x142c07(0x13e)](_0x142c07(0x14c)),_0x142c07(0x171)==_0x23eca4&&_0x5b09cc[_0x142c07(0x13e)](_0x142c07(0x15a)),_0x142c07(0x144)==_0x23eca4&&_0x5b09cc[_0x142c07(0x13e)](_0x142c07(0x18b)),_0x142c07(0x17b)==_0x23eca4&&_0x5b09cc[_0x142c07(0x13e)](_0x142c07(0x17a),_0x142c07(0x178)),_0x142c07(0x181)==_0x23eca4&&_0x5b09cc[_0x142c07(0x13e)](_0x142c07(0x15c)),_0x142c07(0x160)==_0x23eca4&&_0x5b09cc[_0x142c07(0x13e)](_0x142c07(0x14b)),_0x142c07(0x183)==_0x23eca4&&_0x5b09cc[_0x142c07(0x13e)](_0x142c07(0x16e));},0x3e8);}[_0x4b1110(0x153)](){const _0x529c39=_0x4b1110,{editor:_0x38d554}=this,_0x12247b=_0x38d554[_0x529c39(0x14f)][_0x529c39(0x16b)](_0x529c39(0x187));if(!_0x12247b)return;const _0x201fac=this[_0x529c39(0x170)](_0x38d554[_0x529c39(0x16d)][_0x529c39(0x16b)](_0x529c39(0x184)))[_0x529c39(0x157)]((_0x12dd3d,_0x57a12a)=>{const _0x5eaadc=_0x529c39,_0x423b2f=this[_0x5eaadc(0x151)](_0x57a12a[_0x5eaadc(0x142)]);return _0x12dd3d[_0x423b2f]||(_0x12dd3d[_0x423b2f]=[]),_0x12dd3d[_0x423b2f][_0x5eaadc(0x164)](_0x57a12a),_0x12dd3d;},{});_0x38d554[_0x529c39(0x13f)][_0x529c39(0x15f)](_0x529c39(0x18e))&&_0x38d554[_0x529c39(0x14f)][_0x529c39(0x16b)](_0x529c39(0x187))&&Object[_0x529c39(0x172)](_0x201fac)[_0x529c39(0x159)](([_0x2dd1f1,_0x3b8606])=>{const _0x19128f=_0x529c39;_0x38d554[_0x19128f(0x13f)][_0x19128f(0x16b)](_0x19128f(0x18e))[_0x19128f(0x165)]({'name':_0x2dd1f1,'observable':()=>_0x12247b,'buttonViewCreator':()=>this[_0x19128f(0x163)](_0x3b8606),'formViewCreator':()=>this[_0x19128f(0x155)](_0x3b8606),'menuBarButtonViewCreator':()=>this[_0x19128f(0x179)](_0x3b8606),'override':_0x19128f(0x18a)!==_0x2dd1f1});});}[_0x4b1110(0x14a)](){const _0x31eb6f=_0x4b1110;super[_0x31eb6f(0x14a)](),this[_0x31eb6f(0x174)]&&clearInterval(this[_0x31eb6f(0x174)]);}[_0x4b1110(0x170)](_0x1cea71){const _0x3c2363=_0x4b1110,{locale:_0x2f251f}=this[_0x3c2363(0x18d)];return _0x1cea71[_0x3c2363(0x154)](_0x5c3010=>{const _0x2a9a78=_0x3c2363,_0x57bd1c=_0x46120f(_0x2f251f,_0x5c3010,_0x2a9a78(0x169));switch(_0x5c3010){case _0x37c38a[_0x2a9a78(0x18c)]:return{'icon':_0x2df7dc,'type':_0x37c38a[_0x2a9a78(0x18c)],..._0x57bd1c};case _0x37c38a[_0x2a9a78(0x14e)]:return{'icon':_0x1bf1ef,'type':_0x37c38a[_0x2a9a78(0x14e)],..._0x57bd1c};case _0x37c38a[_0x2a9a78(0x180)]:return{'icon':_0xf6d75d,'type':_0x37c38a[_0x2a9a78(0x180)],..._0x57bd1c};case _0x37c38a[_0x2a9a78(0x17c)]:return{'icon':_0x42ad30,'type':_0x37c38a[_0x2a9a78(0x17c)],..._0x57bd1c};case _0x37c38a[_0x2a9a78(0x185)]:return{'icon':_0x1d3636,'type':_0x37c38a[_0x2a9a78(0x185)],..._0x57bd1c};case _0x37c38a[_0x2a9a78(0x18f)]:return{'icon':_0x1e30e4,'type':_0x37c38a[_0x2a9a78(0x18f)],..._0x57bd1c};case _0x37c38a[_0x2a9a78(0x173)]:return{'icon':_0x5c1f28,'type':_0x37c38a[_0x2a9a78(0x173)],..._0x57bd1c};}});}[_0x4b1110(0x151)](_0x32f626){const _0x4d364f=_0x4b1110;switch(_0x32f626){case _0x37c38a[_0x4d364f(0x18c)]:return _0x4d364f(0x167);case _0x37c38a[_0x4d364f(0x14e)]:return _0x4d364f(0x188);default:return _0x4d364f(0x18a);}}[_0x4b1110(0x158)](_0x29fb72,_0x580b97){const _0x20d1fe=_0x4b1110,_0x139db4=this[_0x20d1fe(0x18d)],_0x555a16=new _0x29fb72(_0x139db4[_0x20d1fe(0x161)]),_0x564e5f=_0x139db4[_0x20d1fe(0x14f)][_0x20d1fe(0x16b)](_0x20d1fe(0x187));return _0x555a16[_0x20d1fe(0x150)](_0x20d1fe(0x177))['to'](_0x564e5f),_0x555a16['on'](_0x20d1fe(0x141),()=>{const _0x47d189=_0x20d1fe;_0x564e5f[_0x47d189(0x141)](_0x580b97);}),_0x555a16;}[_0x4b1110(0x163)](_0xbcedc4){const _0x4d60e6=_0x4b1110,{locale:_0x557e64}=this[_0x4d60e6(0x18d)],_0x2a4a23=this[_0x4d60e6(0x18d)][_0x4d60e6(0x13f)][_0x4d60e6(0x16b)](_0x4d60e6(0x18e)),_0x32a671=_0xbcedc4[0x0],_0x1a5cba=this[_0x4d60e6(0x158)](_0x1b13c6,_0x32a671[_0x4d60e6(0x142)]);return _0x1a5cba[_0x4d60e6(0x16c)]=_0x32a671[_0x4d60e6(0x16c)],_0x1a5cba[_0x4d60e6(0x150)](_0x4d60e6(0x148))['to'](_0x2a4a23,_0x4d60e6(0x17f),_0x5bc094=>_0x46120f(_0x557e64,_0x32a671[_0x4d60e6(0x142)],_0x5bc094?_0x4d60e6(0x14d):_0x4d60e6(0x169))[_0x4d60e6(0x17d)]),_0x1a5cba[_0x4d60e6(0x149)]=!0x0,_0x1a5cba;}[_0x4b1110(0x155)](_0x549d44){const _0x3b2d45=_0x4b1110,{locale:_0x121f65}=this[_0x3b2d45(0x18d)],_0x2b6d04=this[_0x3b2d45(0x18d)][_0x3b2d45(0x13f)][_0x3b2d45(0x16b)](_0x3b2d45(0x18e));return _0x549d44[_0x3b2d45(0x154)](_0x6aeed7=>{const _0x501592=_0x3b2d45,_0x3646b4=this[_0x501592(0x158)](_0x1b13c6,_0x6aeed7[_0x501592(0x142)]);return _0x3646b4[_0x501592(0x15d)]=!0x0,_0x3646b4[_0x501592(0x16c)]=_0x6aeed7[_0x501592(0x16c)],_0x3646b4[_0x501592(0x150)](_0x501592(0x148))['to'](_0x2b6d04,_0x501592(0x17f),_0x582b2e=>_0x46120f(_0x121f65,_0x6aeed7[_0x501592(0x142)],_0x582b2e?_0x501592(0x14d):_0x501592(0x169))[_0x501592(0x17d)]),_0x3646b4;});}[_0x4b1110(0x179)](_0x509854){const _0xffc9ed=_0x4b1110;return _0x509854[_0xffc9ed(0x154)](_0x43287c=>{const _0x32ea88=_0xffc9ed,_0x1de0fa=this[_0x32ea88(0x158)](_0x1ef82a,_0x43287c[_0x32ea88(0x142)]);return _0x1de0fa[_0x32ea88(0x16c)]=_0x43287c[_0x32ea88(0x16c)],_0x1de0fa[_0x32ea88(0x148)]=_0x43287c[_0x32ea88(0x16f)],_0x1de0fa;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x526937}from'ckeditor5/src/core.js';import{FileRepository as _0x2682e2}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2b3070}from'./uploadcareediting.js';import{UploadUtils as _0x261a35}from'./utils/uploadutils.js';import{getImageUrls as _0x23fd25}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x526937{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2682e2,_0x2b3070];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1d2134=this['editor'];if(!!!_0x1d2134['config']['get']('uploadcare'))return;_0x1d2134['plugins']['get'](_0x2682e2)['createUploadAdapter']=_0x1da45a=>new k(_0x1da45a,_0x1d2134),_0x1d2134['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x36df75,{imageElement:_0x2b454d,data:_0xd7993a})=>{_0x1d2134['model']['change'](_0x2d8e26=>{_0x2d8e26['setAttribute']('uploadcareImageId',_0xd7993a['uploadcareImageId'],_0x2b454d);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x174db4,_0x11edda){this['loader']=_0x174db4,this['editor']=_0x11edda,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x44c4b3=await this['loader']['file'];return _0x261a35['upload']({'file':_0x44c4b3,'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':_0x1b1a1a=>{_0x1b1a1a&&_0x1b1a1a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1b1a1a['value']);}})['then'](async _0x338141=>{const {imageFallbackUrl:_0x3a8462,imageSources:_0x2463ed}=_0x23fd25(_0x338141['cdnUrl'],_0x338141['imageInfo']['width']);return{'uploadcareImageId':_0x338141['uuid'],'default':_0x3a8462,'sources':_0x2463ed};})['catch'](()=>{const _0x3376e1=t('Cannot\x20upload\x20file:')+('\x20'+_0x44c4b3['name']+'.');return Promise['reject'](_0x3376e1);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x3d1a5c}from'../uploadcareconfig.js';export function getTranslation(_0xdee14b,_0x357406,_0x3b2708){const t=_0xdee14b['t'],_0x4fc02a=_0xdee14b['t'];switch(_0x357406){case _0x3d1a5c['Local']:return{'text':_0x4fc02a('Insert'===_0x3b2708?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4fc02a('From\x20computer')};case _0x3d1a5c['URL']:return{'text':'Insert'===_0x3b2708?_0x4fc02a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4fc02a('Via\x20URL')};case _0x3d1a5c['Dropbox']:return{'text':t('Insert'===_0x3b2708?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3d1a5c['Facebook']:return{'text':t('Insert'===_0x3b2708?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3d1a5c['GDrive']:return{'text':t('Insert'===_0x3b2708?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3d1a5c['GPhotos']:return{'text':t('Insert'===_0x3b2708?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3d1a5c['OneDrive']:return{'text':t('Insert'===_0x3b2708?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x357406;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xf718c8=_0x33de;(function(_0x2d2198,_0x368170){var _0x20db50=_0x33de,_0x4aea53=_0x2d2198();while(!![]){try{var _0x5a591b=parseInt(_0x20db50(0x117))/0x1+-parseInt(_0x20db50(0x116))/0x2+-parseInt(_0x20db50(0x113))/0x3*(-parseInt(_0x20db50(0x11c))/0x4)+-parseInt(_0x20db50(0x11d))/0x5*(-parseInt(_0x20db50(0x119))/0x6)+parseInt(_0x20db50(0x110))/0x7*(parseInt(_0x20db50(0x114))/0x8)+-parseInt(_0x20db50(0x120))/0x9*(-parseInt(_0x20db50(0x10f))/0xa)+-parseInt(_0x20db50(0x115))/0xb;if(_0x5a591b===_0x368170)break;else _0x4aea53['push'](_0x4aea53['shift']());}catch(_0x2318c6){_0x4aea53['push'](_0x4aea53['shift']());}}}(_0x40a9,0xc3d0d));function _0x40a9(){var _0x581a82=['bindTemplate','6CYIlFU','focusTracker','getFocusableElement','44408wJeASM','1589105CZsJJM','createCollection','fire','9lfUokh','focusCycler','div','1285510yRSvcf','3828013iMyuex','true','forwardCycle','165ojGYko','8GgRCRh','216370UBnyZk','2879932iAvrLG','657856gXmcxd'];_0x40a9=function(){return _0x581a82;};return _0x40a9();}import{FocusTracker as _0x5e1c55}from'ckeditor5/src/utils.js';import{View as _0x147508,FocusCycler as _0x2fd71b}from'ckeditor5/src/ui.js';function _0x33de(_0x50537d,_0x32c2a4){var _0x40a92b=_0x40a9();return _0x33de=function(_0x33de72,_0x9b9f99){_0x33de72=_0x33de72-0x10d;var _0x462b0f=_0x40a92b[_0x33de72];return _0x462b0f;},_0x33de(_0x50537d,_0x32c2a4);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x147508{[_0xf718c8(0x11a)];[_0xf718c8(0x10d)];constructor(_0x31206a){var _0x178504=_0xf718c8;super(_0x31206a),this[_0x178504(0x11a)]=new _0x5e1c55(),this[_0x178504(0x10d)]=new _0x2fd71b({'focusables':this[_0x178504(0x11e)](),'focusTracker':this[_0x178504(0x11a)]});}[_0xf718c8(0x11b)](){var _0x45f714=_0xf718c8;return{'tag':_0x45f714(0x10e),'attributes':{'aria-hidden':_0x45f714(0x111),'tabindex':'0'},'on':{'focus':this[_0x45f714(0x118)]['to'](()=>{var _0x32603c=_0x45f714;this[_0x32603c(0x10d)][_0x32603c(0x11f)](_0x32603c(0x112));})}};}}
|