@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20260105.0 → 0.0.0-nightly-20260106.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 _0x4d6a0d=_0x2a06;function _0x2f1c(){const _0x248c18=['commands','downcast','contentLanguage','configElement','uploadcareImageId','data-uc-image-id','4puLJPa','execute','ucContextId','imageBlock','2CommXL','view','editor','5605555cJTsND','UploadcareEditing','init','editing','_initConversion','uc-config','uploadcare.uploader','imageInline','once','selection','upcast','querySelector','3848rpfkCZ','appendChild','_initCtx','elementToAttribute','isPremiumPlugin','_ctxElement','closeMax','5557032YygFJc','4519452IGnxLq','extend','replaceImageSource','_initImageProcessingIndicator','add','fromCharCode','join','getAttribute','uploader-','9247YoCfKw','getSelectedElement','model','uc-upload-ctx-provider','remove','afterInit','schema','requires','destroy','957851SlUMkD','insertImage','_initSchema','#uc-icon-arrow-down','2218107pzvvHh','true','pluginName','config','removeAttribute','25772879AhjJxo','input[uploadcare-file-input]','render','10fULvph','document','uploadcareImageReplace','uploadcare.pubkey','_initConfig','listenTo','\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','isRegistered','PictureEditing','locale','iconHrefResolver','cleanupImage','attributeToAttribute','uploadcare','body','get','for','map','isOfficialPlugin','_configElement','href','conversion','ctxElement'];_0x2f1c=function(){return _0x248c18;};return _0x2f1c();}(function(_0x3a818c,_0x373fb7){const _0x13e1f5=_0x2a06,_0x88fcfb=_0x3a818c();while(!![]){try{const _0x1f1db5=parseInt(_0x13e1f5(0x164))/0x1*(-parseInt(_0x13e1f5(0x13b))/0x2)+parseInt(_0x13e1f5(0x168))/0x3*(parseInt(_0x13e1f5(0x18d))/0x4)+parseInt(_0x13e1f5(0x13e))/0x5+parseInt(_0x13e1f5(0x152))/0x6+parseInt(_0x13e1f5(0x15b))/0x7*(parseInt(_0x13e1f5(0x14a))/0x8)+parseInt(_0x13e1f5(0x151))/0x9+-parseInt(_0x13e1f5(0x170))/0xa*(parseInt(_0x13e1f5(0x16d))/0xb);if(_0x1f1db5===_0x373fb7)break;else _0x88fcfb['push'](_0x88fcfb['shift']());}catch(_0x1050bc){_0x88fcfb['push'](_0x88fcfb['shift']());}}}(_0x2f1c,0x8a1e3));import{Plugin as _0xecf7e8}from'ckeditor5/src/core.js';import{Dialog as _0x1fdeb8}from'ckeditor5/src/ui.js';import{createElement as _0x3a842a,global as _0x3ced27,uid as _0x406430}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5ced74}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x27b222}from'./uploadcareuploadadapter.js';function _0x2a06(_0x5bba01,_0x48137c){const _0x2f1c61=_0x2f1c();return _0x2a06=function(_0x2a0681,_0x705002){_0x2a0681=_0x2a0681-0x139;let _0x472c19=_0x2f1c61[_0x2a0681];return _0x472c19;},_0x2a06(_0x5bba01,_0x48137c);}import{showImageProcessingIndicator as _0x503da2}from'./utils/editingutils.js';export class UploadcareEditing extends _0xecf7e8{[_0x4d6a0d(0x183)]=null;[_0x4d6a0d(0x14f)]=null;static get[_0x4d6a0d(0x16a)](){const _0x143726=_0x4d6a0d;return _0x143726(0x13f);}static get[_0x4d6a0d(0x162)](){const _0x4bcd5a=_0x4d6a0d;return[_0x4bcd5a(0x178),_0x27b222,_0x1fdeb8];}static get[_0x4d6a0d(0x182)](){return!0x0;}static get[_0x4d6a0d(0x14e)](){return!0x0;}[_0x4d6a0d(0x139)];get[_0x4d6a0d(0x18a)](){const _0x2ebb6b=_0x4d6a0d;return this[_0x2ebb6b(0x183)];}get[_0x4d6a0d(0x186)](){const _0x4c9a55=_0x4d6a0d;return this[_0x4c9a55(0x14f)];}constructor(_0x1d754f){const _0xc6a7b0=_0x4d6a0d;super(_0x1d754f),this[_0xc6a7b0(0x139)]=_0x406430();}[_0x4d6a0d(0x140)](){const _0x2e0a70=_0x4d6a0d,_0x44a852=this[_0x2e0a70(0x13d)];_0x44a852[_0x2e0a70(0x187)][_0x2e0a70(0x156)](_0x2e0a70(0x17d),new _0x5ced74(_0x44a852));}[_0x4d6a0d(0x160)](){const _0x53f40c=_0x4d6a0d;this[_0x53f40c(0x166)](),this[_0x53f40c(0x142)](),this[_0x53f40c(0x174)](),this[_0x53f40c(0x14c)](),this[_0x53f40c(0x155)](),this[_0x53f40c(0x175)](this[_0x53f40c(0x13d)],_0x53f40c(0x163),()=>{const _0x4c4d4a=_0x53f40c;this[_0x4c4d4a(0x183)]&&(this[_0x4c4d4a(0x183)][_0x4c4d4a(0x15f)](),this[_0x4c4d4a(0x183)]=null),this[_0x4c4d4a(0x14f)]&&(this[_0x4c4d4a(0x14f)][_0x4c4d4a(0x15f)](),this[_0x4c4d4a(0x14f)]=null);const _0x56abaa=_0x3ced27[_0x4c4d4a(0x171)][_0x4c4d4a(0x149)](_0x4c4d4a(0x16e));_0x56abaa&&_0x56abaa[_0x4c4d4a(0x15f)]();}),async function(_0x34fc33){const _0x5ef54b=_0x2f8119([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]),_0xe1b460=0x535f8c3a,_0x3e6d70=0x5358f1ca^_0xe1b460,_0x11f478=window[_0x2f8119([0x44,0x61,0x74,0x65])][_0x2f8119([0x6e,0x6f,0x77])](),_0x391b91=_0x34fc33[_0x2f8119([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c76b2=new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a84a8=>{_0x391b91[_0x2f8119([0x6f,0x6e,0x63,0x65])](_0x2f8119([0x72,0x65,0x61,0x64,0x79]),_0x5a84a8);}),_0x2c6b88={[_0x2f8119([0x6b,0x74,0x79])]:_0x2f8119([0x45,0x43]),[_0x2f8119([0x75,0x73,0x65])]:_0x2f8119([0x73,0x69,0x67]),[_0x2f8119([0x63,0x72,0x76])]:_0x2f8119([0x50,0x2d,0x32,0x35,0x36]),[_0x2f8119([0x78])]:_0x2f8119([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]),[_0x2f8119([0x79])]:_0x2f8119([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]),[_0x2f8119([0x61,0x6c,0x67])]:_0x2f8119([0x45,0x53,0x32,0x35,0x36])},_0x408d91=_0x391b91[_0x2f8119([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f8119([0x67,0x65,0x74])](_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c0fb2(){let _0x12f04c,_0x52a4a9=null,_0x3aa38e=null;try{if(_0x408d91==_0x2f8119([0x47,0x50,0x4c]))return _0x2f8119([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12f04c=_0x18c66f(),!_0x12f04c)return _0x2f8119([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12f04c[_0x2f8119([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3aa38e=_0x1fea45(_0x12f04c[_0x2f8119([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12f04c[_0x2f8119([0x6a,0x74,0x69])])),await _0x47817e()?_0x599b6f()?_0x2c133f()?_0x2f8119([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45e493()?(_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f8119([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x52a4a9=_0x13bf8b(_0x2f8119([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f8119([0x74,0x72,0x69,0x61,0x6c])&&(_0x52a4a9=_0x13bf8b(_0x2f8119([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a672b()):_0x2f8119([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f8119([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f8119([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f8119([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c133f(){const _0x3906a2=[_0x2f8119([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f8119([0x74,0x72,0x69,0x61,0x6c])][_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11f478/0x3e8:0xe10*_0x3e6d70;return _0x12f04c[_0x2f8119([0x65,0x78,0x70])]<_0x3906a2;}function _0x599b6f(){const _0x756314=_0x12f04c[_0x2f8119([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x756314&&(!!_0x756314[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8119([0x2a]))||!!_0x756314[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8119([0x55,0x50,0x4c,0x43])));}function _0x45e493(){const _0x4d32ee=_0x2a06,_0xb6921f=_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb6921f||0x0==_0xb6921f[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x463ddf}=new URL(window[_0x2f8119([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4d32ee(0x184)]);if(_0xb6921f[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x463ddf))return!0x0;const _0x508ac5=_0x463ddf[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e]));return _0xb6921f[_0x2f8119([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x116ab4=>_0x116ab4[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8119([0x2a])))[_0x2f8119([0x6d,0x61,0x70])](_0x46bb13=>_0x46bb13[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e])))[_0x2f8119([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10a1e3=>_0x10a1e3[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x508ac5[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f8119([0x6d,0x61,0x70])](_0x1a3951=>Array(_0x508ac5[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a3951[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f8119([0x66,0x69,0x6c,0x6c])](_0x1a3951[0x0]===_0x2f8119([0x2a])?_0x2f8119([0x2a]):'')[_0x2f8119([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a3951))[_0x2f8119([0x73,0x6f,0x6d,0x65])](_0x247efc=>_0x508ac5[_0x2f8119([0x65,0x76,0x65,0x72,0x79])]((_0x1aff3a,_0x18a3b6)=>_0x247efc[_0x18a3b6]===_0x1aff3a||_0x247efc[_0x18a3b6]===_0x2f8119([0x2a])));}function _0x5a672b(){return _0x52a4a9&&_0x3aa38e?new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22a10b,_0x12fd44)=>{_0x52a4a9[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x22a10b,_0x12fd44),_0x3aa38e[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x29a3df=>{_0x29a3df!=_0x2f8119([0x56,0x61,0x6c,0x69,0x64])&&_0x22a10b(_0x29a3df);},_0x12fd44);}):_0x52a4a9||_0x3aa38e||_0x2f8119([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1fea45(_0x4928d1,_0x16e42c){return new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53afdf=>{if(_0xed3e11())return _0x53afdf(_0x2f8119([0x56,0x61,0x6c,0x69,0x64]));_0x352bbe(),_0x391b91[_0x2f8119([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f8119([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3db2a6=!0x1;const _0x310611=_0x406430();function _0x42f95e(_0x494011){return!!_0x494011&&(typeof _0x494011===_0x2f8119([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x494011===_0x2f8119([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x494011[_0x2f8119([0x74,0x68,0x65,0x6e])]===_0x2f8119([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x494011[_0x2f8119([0x63,0x61,0x74,0x63,0x68])]===_0x2f8119([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x510f6d(_0x5df6ce){_0x144913(_0x5df6ce)[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x40c3b3=>{if(!_0x40c3b3||_0x40c3b3[_0x2f8119([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f8119([0x6f,0x6b]))return _0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xda6dec(_0x9d51d4(_0x310611+_0x16e42c))!=_0x40c3b3[_0x2f8119([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f8119([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x28d13b=>(_0x23ebcf(),_0x28d13b),()=>{const _0x1b4d2a=_0x5b9d4c();return null==_0x1b4d2a?(_0x23ebcf(),_0x2f8119([0x56,0x61,0x6c,0x69,0x64])):_0x2f8119(_0x11f478-_0x1b4d2a>(0x7753083a^_0xe1b460)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x53afdf)[_0x2f8119([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53afdf(_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x396e72=0x536962ba^_0xe1b460;function _0x23ebcf(){const _0x4c5c0a=_0x2f8119([0x6c,0x6c,0x63,0x74,0x2d])+_0xda6dec(_0x9d51d4(_0x4928d1)),_0x121db6=_0x221ab3(_0xda6dec(window[_0x2f8119([0x4d,0x61,0x74,0x68])][_0x2f8119([0x63,0x65,0x69,0x6c])](_0x11f478/_0x396e72)));window[_0x2f8119([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f8119([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c5c0a,_0x121db6);}function _0x5b9d4c(){const _0x15329c=_0x2f8119([0x6c,0x6c,0x63,0x74,0x2d])+_0xda6dec(_0x9d51d4(_0x4928d1)),_0x2ab563=window[_0x2f8119([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f8119([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15329c);return _0x2ab563?window[_0x2f8119([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x221ab3(_0x2ab563),0x10)*_0x396e72:null;}function _0x144913(_0x2076f7){return new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52e11a,_0x446eb6)=>{_0x2076f7[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x52e11a,_0x446eb6),window[_0x2f8119([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x446eb6,0x535e58fa^_0xe1b460);});}}_0x391b91[_0x2f8119([0x6f,0x6e])](_0x2f8119([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d9969,_0x43feef)=>{if(_0x43feef[0x0]!=_0x4928d1)return _0x53afdf(_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43feef[0x1]={..._0x43feef[0x1],[_0x2f8119([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x310611};},{[_0x2f8119([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f8119([0x68,0x69,0x67,0x68])}),_0x391b91[_0x2f8119([0x6f,0x6e])](_0x2f8119([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d83c6=>{_0x42f95e(_0x3d83c6[_0x2f8119([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3db2a6=!0x0,_0x510f6d(_0x3d83c6[_0x2f8119([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f8119([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f8119([0x6c,0x6f,0x77])}),_0x1c76b2[_0x2f8119([0x74,0x68,0x65,0x6e])](()=>{_0x3db2a6||_0x53afdf(_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xed3e11(){return _0x391b91[_0x2f8119([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f8119([0x76,0x69,0x65,0x77])][_0x2f8119([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f8119([0x61,0x75,0x74,0x6f]);}function _0x352bbe(){_0x391b91[_0x2f8119([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f8119([0x76,0x69,0x65,0x77])][_0x2f8119([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f8119([0x61,0x75,0x74,0x6f]);}}function _0x13bf8b(_0x19deaf){const _0x29f76d=[new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c9858=>setTimeout(_0x4c9858,0x5356b2f6^_0xe1b460)),_0x1c76b2[_0x2f8119([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53e3f4=>{let _0xe8f5b0=0x0;_0x391b91[_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8119([0x6f,0x6e])](_0x2f8119([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59c003,_0x230e86)=>{_0x230e86[0x0][_0x2f8119([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe8f5b0++,_0xe8f5b0==(0x535f89d2^_0xe1b460)&&(_0x53e3f4(),_0x59c003[_0x2f8119([0x6f,0x66,0x66])]());});}))];return window[_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f8119([0x72,0x61,0x63,0x65])](_0x29f76d)[_0x2f8119([0x74,0x68,0x65,0x6e])](()=>_0x19deaf);}async function _0x292c60(){await _0x1c76b2,_0x391b91[_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8119([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2485be,_0x391b91[_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8119([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2485be,_0x391b91[_0x2f8119([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5cd0d7(_0x5d9436){const _0x55b46c=_0x5a533e();_0x391b91[_0x55b46c]=_0x2f8119([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d9436,_0x5d9436!=_0x2f8119([0x56,0x61,0x6c,0x69,0x64])&&_0x292c60();}function _0x5a533e(){const _0x4ebd48=window[_0x2f8119([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f8119([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f8119([0x6e,0x6f,0x77])]())[_0x2f8119([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f8119([0x2e]),'');let _0x334508=_0x2f8119([0x68]);for(let _0x27a212=0x0;_0x27a212<_0x4ebd48[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27a212+=0x2){let _0xb449ac=window[_0x2f8119([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ebd48[_0x2f8119([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27a212,_0x27a212+0x2));_0xb449ac>=_0x5ef54b[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb449ac-=_0x5ef54b[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x334508+=_0x5ef54b[_0xb449ac];}return _0x334508;}function _0x18c66f(){const _0x41d9fb=_0x408d91[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e]));if(0x3!=_0x41d9fb[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe9822b(_0x41d9fb[0x1]);function _0xe9822b(_0x214a1a){const _0x32b703=_0x5b158e(_0x214a1a);return _0x32b703&&_0x4290c4()?_0x32b703:null;function _0x4290c4(){const _0x2b8bf3=_0x32b703[_0x2f8119([0x6a,0x74,0x69])],_0x17ddac=window[_0x2f8119([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b8bf3[_0x2f8119([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b8bf3[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d1b87={..._0x32b703,[_0x2f8119([0x6a,0x74,0x69])]:_0x2b8bf3[_0x2f8119([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b8bf3[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d1b87[_0x2f8119([0x76,0x63])],_0x9d51d4(_0x2d1b87)==_0x17ddac;}}}async function _0x47817e(){let _0x43200f=!0x0;try{const _0x19106d=_0x408d91[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e])),[_0xa90250,_0x167ef9,_0x5e2de4]=_0x19106d;return _0x260374(_0xa90250),await _0x14a028(_0xa90250,_0x167ef9,_0x5e2de4),_0x43200f;}catch{return!0x1;}function _0x260374(_0x5e6520){const _0x28a6aa=_0x5b158e(_0x5e6520);_0x28a6aa&&_0x28a6aa[_0x2f8119([0x61,0x6c,0x67])]==_0x2f8119([0x45,0x53,0x32,0x35,0x36])||(_0x43200f=!0x1);}async function _0x14a028(_0x204610,_0x4f79b1,_0x3e232c){const _0x5397f3=window[_0x2f8119([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f8119([0x66,0x72,0x6f,0x6d])](_0x2cd892(_0x3e232c),_0x18e22a=>_0x18e22a[_0x2f8119([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20ca54=new window[(_0x2f8119([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f8119([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x204610+_0x2f8119([0x2e])+_0x4f79b1),_0x2cc056=window[_0x2f8119([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f8119([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cc056)return;const _0x21be06=await _0x2cc056[_0x2f8119([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f8119([0x6a,0x77,0x6b]),_0x2c6b88,{[_0x2f8119([0x6e,0x61,0x6d,0x65])]:_0x2f8119([0x45,0x43,0x44,0x53,0x41]),[_0x2f8119([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f8119([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f8119([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cc056[_0x2f8119([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f8119([0x6e,0x61,0x6d,0x65])]:_0x2f8119([0x45,0x43,0x44,0x53,0x41]),[_0x2f8119([0x68,0x61,0x73,0x68])]:{[_0x2f8119([0x6e,0x61,0x6d,0x65])]:_0x2f8119([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21be06,_0x5397f3,_0x20ca54)||(_0x43200f=!0x1);}}function _0x5b158e(_0x423826){return _0x423826[_0x2f8119([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f8119([0x65,0x79]))?JSON[_0x2f8119([0x70,0x61,0x72,0x73,0x65])](_0x2cd892(_0x423826)):null;}function _0x2cd892(_0x285271){return window[_0x2f8119([0x61,0x74,0x6f,0x62])](_0x285271[_0x2f8119([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f8119([0x2b]))[_0x2f8119([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f8119([0x2f])));}function _0x9d51d4(_0x25ed58){let _0xa2d79a=0x1505;function _0x3fa235(_0x484bf4){for(let _0x452b3d=0x0;_0x452b3d<_0x484bf4[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x452b3d++){const _0x436ea9=_0x484bf4[_0x2f8119([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x452b3d);_0xa2d79a=(_0xa2d79a<<0x5)+_0xa2d79a+_0x436ea9,_0xa2d79a&=_0xa2d79a;}}function _0x7f9997(_0xfc8ec2){Array[_0x2f8119([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfc8ec2)?_0xfc8ec2[_0x2f8119([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7f9997):_0xfc8ec2&&typeof _0xfc8ec2==_0x2f8119([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f8119([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfc8ec2)[_0x2f8119([0x73,0x6f,0x72,0x74])]()[_0x2f8119([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x449cae,_0x24bd21])=>{_0x3fa235(_0x449cae),_0x7f9997(_0x24bd21);}):_0x3fa235(window[_0x2f8119([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfc8ec2));}return _0x7f9997(_0x25ed58),_0xa2d79a>>>0x0;}function _0xda6dec(_0x3d5b08){return _0x3d5b08[_0x2f8119([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f8119([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f8119([0x30]));}function _0x221ab3(_0x4f504f){return _0x4f504f[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f8119([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f8119([0x6a,0x6f,0x69,0x6e])]('');}function _0x2485be(){}function _0x2f8119(_0x45706d){const _0x296188=_0x2a06;return _0x45706d[_0x296188(0x181)](_0x9df452=>String[_0x296188(0x157)](_0x9df452))[_0x296188(0x158)]('');}_0x5cd0d7(await _0x3c0fb2());}(this);}[_0x4d6a0d(0x166)](){const _0x2d411c=_0x4d6a0d,_0x7e974=this[_0x2d411c(0x13d)][_0x2d411c(0x15d)][_0x2d411c(0x161)];_0x7e974[_0x2d411c(0x177)](_0x2d411c(0x13a))&&_0x7e974[_0x2d411c(0x153)](_0x2d411c(0x13a),{'allowAttributes':[_0x2d411c(0x18b)]}),_0x7e974[_0x2d411c(0x177)](_0x2d411c(0x145))&&_0x7e974[_0x2d411c(0x153)](_0x2d411c(0x145),{'allowAttributes':[_0x2d411c(0x18b)]});}[_0x4d6a0d(0x142)](){const _0x55836b=_0x4d6a0d,_0x196ceb=this[_0x55836b(0x13d)];_0x196ceb[_0x55836b(0x185)][_0x55836b(0x180)](_0x55836b(0x188))[_0x55836b(0x17c)]({'model':_0x55836b(0x18b),'view':_0x55836b(0x18c)}),_0x196ceb[_0x55836b(0x185)][_0x55836b(0x180)](_0x55836b(0x148))[_0x55836b(0x14d)]({'model':{'key':_0x55836b(0x18b),'value':_0x22a5dd=>_0x22a5dd[_0x55836b(0x159)](_0x55836b(0x18c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x182d26=_0x196ceb[_0x55836b(0x187)][_0x55836b(0x17f)](_0x55836b(0x154));_0x182d26&&this[_0x55836b(0x175)](_0x182d26,_0x55836b(0x17b),(_0x5f238b,[_0x1cf2c4,_0x146c1a])=>{const _0xb5b253=_0x55836b;_0x1cf2c4[_0xb5b253(0x16c)](_0xb5b253(0x18b),_0x146c1a);});}[_0x4d6a0d(0x174)](){const _0x3e72e7=_0x4d6a0d,_0x5c4903=this[_0x3e72e7(0x13d)][_0x3e72e7(0x16b)][_0x3e72e7(0x17f)](_0x3e72e7(0x144))||{},_0x64c8bd=this[_0x3e72e7(0x13d)][_0x3e72e7(0x16b)][_0x3e72e7(0x17f)](_0x3e72e7(0x173))||'';this[_0x3e72e7(0x183)]=_0x3a842a(_0x3ced27[_0x3e72e7(0x171)],_0x3e72e7(0x143),{..._0x5c4903,'pubkey':_0x64c8bd,'ctx-name':_0x3e72e7(0x15a)+this[_0x3e72e7(0x139)],'sourceList':'','imgOnly':_0x3e72e7(0x169),'removeCopyright':_0x3e72e7(0x169),'localeName':this[_0x3e72e7(0x13d)][_0x3e72e7(0x179)][_0x3e72e7(0x189)],'externalSourcesEmbedCss':_0x3e72e7(0x176)}),this[_0x3e72e7(0x183)][_0x3e72e7(0x17a)]=_0x16e680=>{const _0x5bfb86=_0x3e72e7;if(_0x5bfb86(0x150)==_0x16e680)return _0x5bfb86(0x167);},_0x3ced27[_0x3e72e7(0x171)][_0x3e72e7(0x17e)][_0x3e72e7(0x14b)](this[_0x3e72e7(0x183)]);}[_0x4d6a0d(0x14c)](){const _0x212da4=_0x4d6a0d;this[_0x212da4(0x14f)]=_0x3a842a(_0x3ced27[_0x212da4(0x171)],_0x212da4(0x15e),{'ctx-name':_0x212da4(0x15a)+this[_0x212da4(0x139)]}),_0x3ced27[_0x212da4(0x171)][_0x212da4(0x17e)][_0x212da4(0x14b)](this[_0x212da4(0x14f)]);}[_0x4d6a0d(0x155)](){const _0xf4e80f=_0x4d6a0d,_0x48f3a7=this[_0xf4e80f(0x13d)][_0xf4e80f(0x187)][_0xf4e80f(0x17f)](_0xf4e80f(0x165));_0x48f3a7&&this[_0xf4e80f(0x175)](_0x48f3a7,_0xf4e80f(0x18e),()=>{const _0x3c1c0e=_0xf4e80f,_0x2fc1cc=this[_0x3c1c0e(0x13d)][_0x3c1c0e(0x15d)][_0x3c1c0e(0x171)][_0x3c1c0e(0x147)][_0x3c1c0e(0x15c)]();_0x2fc1cc&&_0x2fc1cc[_0x3c1c0e(0x159)](_0x3c1c0e(0x18b))&&this[_0x3c1c0e(0x13d)][_0x3c1c0e(0x141)][_0x3c1c0e(0x13c)][_0x3c1c0e(0x146)](_0x3c1c0e(0x16f),()=>{const _0x5bc694=_0x3c1c0e;_0x503da2(this[_0x5bc694(0x13d)],_0x2fc1cc);});});const _0x2af56e=this[_0xf4e80f(0x13d)][_0xf4e80f(0x187)][_0xf4e80f(0x17f)](_0xf4e80f(0x172));_0x2af56e&&this[_0xf4e80f(0x175)](_0x2af56e,_0xf4e80f(0x18e),()=>{const _0x4e8b95=_0xf4e80f,_0x434000=this[_0x4e8b95(0x13d)][_0x4e8b95(0x15d)][_0x4e8b95(0x171)][_0x4e8b95(0x147)][_0x4e8b95(0x15c)]();_0x434000&&_0x434000[_0x4e8b95(0x159)](_0x4e8b95(0x18b))&&this[_0x4e8b95(0x13d)][_0x4e8b95(0x141)][_0x4e8b95(0x13c)][_0x4e8b95(0x146)](_0x4e8b95(0x16f),()=>{const _0x2137e2=_0x4e8b95;_0x503da2(this[_0x2137e2(0x13d)],_0x434000);});});}}
|
|
23
|
+
const _0x411a6=_0x4d56;(function(_0x1a80b5,_0x22b6f1){const _0x3f7f5c=_0x4d56,_0x1d939f=_0x1a80b5();while(!![]){try{const _0x33818c=parseInt(_0x3f7f5c(0xa2))/0x1+parseInt(_0x3f7f5c(0x6c))/0x2*(-parseInt(_0x3f7f5c(0x6d))/0x3)+parseInt(_0x3f7f5c(0xaf))/0x4+parseInt(_0x3f7f5c(0xac))/0x5+-parseInt(_0x3f7f5c(0xad))/0x6*(-parseInt(_0x3f7f5c(0x7f))/0x7)+parseInt(_0x3f7f5c(0x82))/0x8+-parseInt(_0x3f7f5c(0x6a))/0x9;if(_0x33818c===_0x22b6f1)break;else _0x1d939f['push'](_0x1d939f['shift']());}catch(_0x3d7425){_0x1d939f['push'](_0x1d939f['shift']());}}}(_0xb398,0xe74aa));import{Plugin as _0x41e451}from'ckeditor5/src/core.js';import{Dialog as _0x19593e}from'ckeditor5/src/ui.js';import{createElement as _0x209b6b,global as _0x4ce68c,uid as _0x24adae}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x7eb539}from'./uploadcarecommand.js';function _0x4d56(_0x4e1e98,_0x179386){const _0xb398eb=_0xb398();return _0x4d56=function(_0x4d568a,_0x28dd59){_0x4d568a=_0x4d568a-0x6a;let _0x2dda4a=_0xb398eb[_0x4d568a];return _0x2dda4a;},_0x4d56(_0x4e1e98,_0x179386);}function _0xb398(){const _0x13dddc=['destroy','uc-config','execute','appendChild','uploadcare.uploader','selection','3824121WlKOAN','_initImageProcessingIndicator','_ctxElement','7330144wUYShV','replaceImageSource','uploadcare.pubkey','true','ctxElement','_initSchema','uploader-','document','conversion','upcast','extend','contentLanguage','getSelectedElement','elementToAttribute','model','config','input[uploadcare-file-input]','_initCtx','\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','downcast','PictureEditing','iconHrefResolver','requires','isRegistered','schema','UploadcareEditing','#uc-icon-arrow-down','isOfficialPlugin','isPremiumPlugin','render','commands','editor','555502VPDUab','for','cleanupImage','uploadcare','ucContextId','_initConversion','_initConfig','body','href','data-uc-image-id','1675440APmpei','12kwMawD','pluginName','7514184iENBaI','view','configElement','once','imageInline','removeAttribute','uploadcareImageReplace','join','editing','getAttribute','closeMax','imageBlock','locale','querySelector','insertImage','26932005yLADqN','_configElement','6326Xykmiq','795NpXRpA','afterInit','get','listenTo','uc-upload-ctx-provider','remove','add','fromCharCode','map','attributeToAttribute','init','uploadcareImageId'];_0xb398=function(){return _0x13dddc;};return _0xb398();}import{UploadcareUploadAdapter as _0x43e0fd}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x194570}from'./utils/editingutils.js';export class UploadcareEditing extends _0x41e451{[_0x411a6(0x6b)]=null;[_0x411a6(0x81)]=null;static get[_0x411a6(0xae)](){const _0x445c52=_0x411a6;return _0x445c52(0x9b);}static get[_0x411a6(0x98)](){const _0x1a02cb=_0x411a6;return[_0x1a02cb(0x96),_0x43e0fd,_0x19593e];}static get[_0x411a6(0x9d)](){return!0x0;}static get[_0x411a6(0x9e)](){return!0x0;}[_0x411a6(0xa6)];get[_0x411a6(0xb1)](){const _0x3dd35d=_0x411a6;return this[_0x3dd35d(0x6b)];}get[_0x411a6(0x86)](){const _0x3281a0=_0x411a6;return this[_0x3281a0(0x81)];}constructor(_0x4bb6e2){const _0x3b416c=_0x411a6;super(_0x4bb6e2),this[_0x3b416c(0xa6)]=_0x24adae();}[_0x411a6(0x77)](){const _0x2d29c3=_0x411a6,_0x1b3c7a=this[_0x2d29c3(0xa1)];_0x1b3c7a[_0x2d29c3(0xa0)][_0x2d29c3(0x73)](_0x2d29c3(0xa5),new _0x7eb539(_0x1b3c7a));}[_0x411a6(0x6e)](){const _0x58e038=_0x411a6;this[_0x58e038(0x87)](),this[_0x58e038(0xa7)](),this[_0x58e038(0xa8)](),this[_0x58e038(0x93)](),this[_0x58e038(0x80)](),this[_0x58e038(0x70)](this[_0x58e038(0xa1)],_0x58e038(0x79),()=>{const _0x5f44ee=_0x58e038;this[_0x5f44ee(0x6b)]&&(this[_0x5f44ee(0x6b)][_0x5f44ee(0x72)](),this[_0x5f44ee(0x6b)]=null),this[_0x5f44ee(0x81)]&&(this[_0x5f44ee(0x81)][_0x5f44ee(0x72)](),this[_0x5f44ee(0x81)]=null);const _0x525774=_0x4ce68c[_0x5f44ee(0x89)][_0x5f44ee(0xbc)](_0x5f44ee(0x92));_0x525774&&_0x525774[_0x5f44ee(0x72)]();}),async function(_0x1328b6){const _0x1761ba=_0x53f764([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]),_0x34a1cd=0x535f8c3a,_0x505ea2=0x5358f232^_0x34a1cd,_0x15b259=window[_0x53f764([0x44,0x61,0x74,0x65])][_0x53f764([0x6e,0x6f,0x77])](),_0x31b930=_0x1328b6[_0x53f764([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x206af7=new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1159d1=>{_0x31b930[_0x53f764([0x6f,0x6e,0x63,0x65])](_0x53f764([0x72,0x65,0x61,0x64,0x79]),_0x1159d1);}),_0x4b5312={[_0x53f764([0x6b,0x74,0x79])]:_0x53f764([0x45,0x43]),[_0x53f764([0x75,0x73,0x65])]:_0x53f764([0x73,0x69,0x67]),[_0x53f764([0x63,0x72,0x76])]:_0x53f764([0x50,0x2d,0x32,0x35,0x36]),[_0x53f764([0x78])]:_0x53f764([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]),[_0x53f764([0x79])]:_0x53f764([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]),[_0x53f764([0x61,0x6c,0x67])]:_0x53f764([0x45,0x53,0x32,0x35,0x36])},_0x49856f=_0x31b930[_0x53f764([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53f764([0x67,0x65,0x74])](_0x53f764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18f1a7(){let _0x358888,_0x1fe3a3=null,_0x196725=null;try{if(_0x49856f==_0x53f764([0x47,0x50,0x4c]))return _0x53f764([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x358888=_0x3ae753(),!_0x358888)return _0x53f764([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x358888[_0x53f764([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x196725=_0x16cb63(_0x358888[_0x53f764([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x358888[_0x53f764([0x6a,0x74,0x69])])),await _0x4aff1c()?_0x42d78b()?_0x548f80()?_0x53f764([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33ea90()?(_0x358888[_0x53f764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53f764([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fe3a3=_0x1e0e15(_0x53f764([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x358888[_0x53f764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53f764([0x74,0x72,0x69,0x61,0x6c])&&(_0x1fe3a3=_0x1e0e15(_0x53f764([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5323a4()):_0x53f764([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53f764([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53f764([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53f764([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x548f80(){const _0xa77119=[_0x53f764([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53f764([0x74,0x72,0x69,0x61,0x6c])][_0x53f764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x358888[_0x53f764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x15b259/0x3e8:0xe10*_0x505ea2;return _0x358888[_0x53f764([0x65,0x78,0x70])]<_0xa77119;}function _0x42d78b(){const _0x4d1f2d=_0x358888[_0x53f764([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d1f2d&&(!!_0x4d1f2d[_0x53f764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53f764([0x2a]))||!!_0x4d1f2d[_0x53f764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53f764([0x55,0x50,0x4c,0x43])));}function _0x33ea90(){const _0x32a12a=_0x4d56,_0x4efd09=_0x358888[_0x53f764([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4efd09||0x0==_0x4efd09[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x45484a}=new URL(window[_0x53f764([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x32a12a(0xaa)]);if(_0x4efd09[_0x53f764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45484a))return!0x0;const _0x1ba16a=_0x45484a[_0x53f764([0x73,0x70,0x6c,0x69,0x74])](_0x53f764([0x2e]));return _0x4efd09[_0x53f764([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11a3f4=>_0x11a3f4[_0x53f764([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53f764([0x2a])))[_0x53f764([0x6d,0x61,0x70])](_0x1fd720=>_0x1fd720[_0x53f764([0x73,0x70,0x6c,0x69,0x74])](_0x53f764([0x2e])))[_0x53f764([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x377c26=>_0x377c26[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ba16a[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53f764([0x6d,0x61,0x70])](_0xa52623=>Array(_0x1ba16a[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa52623[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53f764([0x66,0x69,0x6c,0x6c])](_0xa52623[0x0]===_0x53f764([0x2a])?_0x53f764([0x2a]):'')[_0x53f764([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa52623))[_0x53f764([0x73,0x6f,0x6d,0x65])](_0x53aff8=>_0x1ba16a[_0x53f764([0x65,0x76,0x65,0x72,0x79])]((_0x1577dd,_0x12715f)=>_0x53aff8[_0x12715f]===_0x1577dd||_0x53aff8[_0x12715f]===_0x53f764([0x2a])));}function _0x5323a4(){return _0x1fe3a3&&_0x196725?new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x433b73,_0xc1683a)=>{_0x1fe3a3[_0x53f764([0x74,0x68,0x65,0x6e])](_0x433b73,_0xc1683a),_0x196725[_0x53f764([0x74,0x68,0x65,0x6e])](_0x3872f5=>{_0x3872f5!=_0x53f764([0x56,0x61,0x6c,0x69,0x64])&&_0x433b73(_0x3872f5);},_0xc1683a);}):_0x1fe3a3||_0x196725||_0x53f764([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16cb63(_0x519ee1,_0x12436f){return new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x209d6c=>{if(_0x1e10ac())return _0x209d6c(_0x53f764([0x56,0x61,0x6c,0x69,0x64]));_0x5ae27c(),_0x31b930[_0x53f764([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53f764([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14fac9=!0x1;const _0x3071d6=_0x24adae();function _0x57de2a(_0x2a2b55){return!!_0x2a2b55&&(typeof _0x2a2b55===_0x53f764([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a2b55===_0x53f764([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a2b55[_0x53f764([0x74,0x68,0x65,0x6e])]===_0x53f764([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a2b55[_0x53f764([0x63,0x61,0x74,0x63,0x68])]===_0x53f764([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2795af(_0x22c66c){_0x3a9cb9(_0x22c66c)[_0x53f764([0x74,0x68,0x65,0x6e])](_0x1c0049=>{if(!_0x1c0049||_0x1c0049[_0x53f764([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53f764([0x6f,0x6b]))return _0x53f764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x472c8b(_0xba5f7a(_0x3071d6+_0x12436f))!=_0x1c0049[_0x53f764([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53f764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53f764([0x56,0x61,0x6c,0x69,0x64]);})[_0x53f764([0x74,0x68,0x65,0x6e])](_0x551bcc=>(_0x90bb98(),_0x551bcc),()=>{const _0x1e1654=_0x2ee0b5();return null==_0x1e1654?(_0x90bb98(),_0x53f764([0x56,0x61,0x6c,0x69,0x64])):_0x53f764(_0x15b259-_0x1e1654>(0x7753083a^_0x34a1cd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53f764([0x74,0x68,0x65,0x6e])](_0x209d6c)[_0x53f764([0x63,0x61,0x74,0x63,0x68])](()=>{_0x209d6c(_0x53f764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x558c29=0x536962ba^_0x34a1cd;function _0x90bb98(){const _0x8b67d2=_0x53f764([0x6c,0x6c,0x63,0x74,0x2d])+_0x472c8b(_0xba5f7a(_0x519ee1)),_0x13db34=_0x36ff34(_0x472c8b(window[_0x53f764([0x4d,0x61,0x74,0x68])][_0x53f764([0x63,0x65,0x69,0x6c])](_0x15b259/_0x558c29)));window[_0x53f764([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53f764([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8b67d2,_0x13db34);}function _0x2ee0b5(){const _0x31a952=_0x53f764([0x6c,0x6c,0x63,0x74,0x2d])+_0x472c8b(_0xba5f7a(_0x519ee1)),_0xb42778=window[_0x53f764([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53f764([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31a952);return _0xb42778?window[_0x53f764([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36ff34(_0xb42778),0x10)*_0x558c29:null;}function _0x3a9cb9(_0x41d91b){return new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xcad291,_0x160404)=>{_0x41d91b[_0x53f764([0x74,0x68,0x65,0x6e])](_0xcad291,_0x160404),window[_0x53f764([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x160404,0x535e58fa^_0x34a1cd);});}}_0x31b930[_0x53f764([0x6f,0x6e])](_0x53f764([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41a450,_0x4ae8d3)=>{if(_0x4ae8d3[0x0]!=_0x519ee1)return _0x209d6c(_0x53f764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ae8d3[0x1]={..._0x4ae8d3[0x1],[_0x53f764([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3071d6};},{[_0x53f764([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53f764([0x68,0x69,0x67,0x68])}),_0x31b930[_0x53f764([0x6f,0x6e])](_0x53f764([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xebfaa=>{_0x57de2a(_0xebfaa[_0x53f764([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14fac9=!0x0,_0x2795af(_0xebfaa[_0x53f764([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53f764([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53f764([0x6c,0x6f,0x77])}),_0x206af7[_0x53f764([0x74,0x68,0x65,0x6e])](()=>{_0x14fac9||_0x209d6c(_0x53f764([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e10ac(){return _0x31b930[_0x53f764([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53f764([0x76,0x69,0x65,0x77])][_0x53f764([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53f764([0x61,0x75,0x74,0x6f]);}function _0x5ae27c(){_0x31b930[_0x53f764([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53f764([0x76,0x69,0x65,0x77])][_0x53f764([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53f764([0x61,0x75,0x74,0x6f]);}}function _0x1e0e15(_0x572ffd){const _0x4df9e8=[new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9428fc=>setTimeout(_0x9428fc,0x5356b2f6^_0x34a1cd)),_0x206af7[_0x53f764([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x142aa4=>{let _0x3fca0a=0x0;_0x31b930[_0x53f764([0x6d,0x6f,0x64,0x65,0x6c])][_0x53f764([0x6f,0x6e])](_0x53f764([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36a661,_0x3e2d6f)=>{_0x3e2d6f[0x0][_0x53f764([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3fca0a++,_0x3fca0a==(0x535f89d2^_0x34a1cd)&&(_0x142aa4(),_0x36a661[_0x53f764([0x6f,0x66,0x66])]());});}))];return window[_0x53f764([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53f764([0x72,0x61,0x63,0x65])](_0x4df9e8)[_0x53f764([0x74,0x68,0x65,0x6e])](()=>_0x572ffd);}async function _0x5a0513(){await _0x206af7,_0x31b930[_0x53f764([0x6d,0x6f,0x64,0x65,0x6c])][_0x53f764([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38e531,_0x31b930[_0x53f764([0x6d,0x6f,0x64,0x65,0x6c])][_0x53f764([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38e531,_0x31b930[_0x53f764([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53f764([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a8486(_0x35546c){const _0x54400c=_0x5368fd();_0x31b930[_0x54400c]=_0x53f764([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x35546c,_0x35546c!=_0x53f764([0x56,0x61,0x6c,0x69,0x64])&&_0x5a0513();}function _0x5368fd(){const _0x237d92=window[_0x53f764([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53f764([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53f764([0x6e,0x6f,0x77])]())[_0x53f764([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53f764([0x2e]),'');let _0xb4b96=_0x53f764([0x68]);for(let _0x3d98b1=0x0;_0x3d98b1<_0x237d92[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d98b1+=0x2){let _0xfb0183=window[_0x53f764([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x237d92[_0x53f764([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d98b1,_0x3d98b1+0x2));_0xfb0183>=_0x1761ba[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfb0183-=_0x1761ba[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb4b96+=_0x1761ba[_0xfb0183];}return _0xb4b96;}function _0x3ae753(){const _0x10b1fb=_0x49856f[_0x53f764([0x73,0x70,0x6c,0x69,0x74])](_0x53f764([0x2e]));if(0x3!=_0x10b1fb[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf2dc32(_0x10b1fb[0x1]);function _0xf2dc32(_0x50a52c){const _0x2ba4eb=_0x569a04(_0x50a52c);return _0x2ba4eb&&_0x2bfe63()?_0x2ba4eb:null;function _0x2bfe63(){const _0x12f71b=_0x2ba4eb[_0x53f764([0x6a,0x74,0x69])],_0x2b1a44=window[_0x53f764([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12f71b[_0x53f764([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12f71b[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7552f7={..._0x2ba4eb,[_0x53f764([0x6a,0x74,0x69])]:_0x12f71b[_0x53f764([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12f71b[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7552f7[_0x53f764([0x76,0x63])],_0xba5f7a(_0x7552f7)==_0x2b1a44;}}}async function _0x4aff1c(){let _0x39d6c0=!0x0;try{const _0x30558f=_0x49856f[_0x53f764([0x73,0x70,0x6c,0x69,0x74])](_0x53f764([0x2e])),[_0x3fa179,_0x21c48a,_0x36f931]=_0x30558f;return _0x308d30(_0x3fa179),await _0x149e1e(_0x3fa179,_0x21c48a,_0x36f931),_0x39d6c0;}catch{return!0x1;}function _0x308d30(_0x26e452){const _0x2ffff2=_0x569a04(_0x26e452);_0x2ffff2&&_0x2ffff2[_0x53f764([0x61,0x6c,0x67])]==_0x53f764([0x45,0x53,0x32,0x35,0x36])||(_0x39d6c0=!0x1);}async function _0x149e1e(_0x18c395,_0x3e03b9,_0x568784){const _0x275168=window[_0x53f764([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53f764([0x66,0x72,0x6f,0x6d])](_0x1c1a60(_0x568784),_0x3bdf17=>_0x3bdf17[_0x53f764([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1eeb3a=new window[(_0x53f764([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53f764([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18c395+_0x53f764([0x2e])+_0x3e03b9),_0x358570=window[_0x53f764([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53f764([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x358570)return;const _0x492aaf=await _0x358570[_0x53f764([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53f764([0x6a,0x77,0x6b]),_0x4b5312,{[_0x53f764([0x6e,0x61,0x6d,0x65])]:_0x53f764([0x45,0x43,0x44,0x53,0x41]),[_0x53f764([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53f764([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53f764([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x358570[_0x53f764([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53f764([0x6e,0x61,0x6d,0x65])]:_0x53f764([0x45,0x43,0x44,0x53,0x41]),[_0x53f764([0x68,0x61,0x73,0x68])]:{[_0x53f764([0x6e,0x61,0x6d,0x65])]:_0x53f764([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x492aaf,_0x275168,_0x1eeb3a)||(_0x39d6c0=!0x1);}}function _0x569a04(_0x31c064){return _0x31c064[_0x53f764([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53f764([0x65,0x79]))?JSON[_0x53f764([0x70,0x61,0x72,0x73,0x65])](_0x1c1a60(_0x31c064)):null;}function _0x1c1a60(_0x3118bd){return window[_0x53f764([0x61,0x74,0x6f,0x62])](_0x3118bd[_0x53f764([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53f764([0x2b]))[_0x53f764([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53f764([0x2f])));}function _0xba5f7a(_0x1bbed0){let _0x77b44=0x1505;function _0x122ea2(_0x1c7b22){for(let _0x33922c=0x0;_0x33922c<_0x1c7b22[_0x53f764([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33922c++){const _0x158b71=_0x1c7b22[_0x53f764([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33922c);_0x77b44=(_0x77b44<<0x5)+_0x77b44+_0x158b71,_0x77b44&=_0x77b44;}}function _0x14e6cc(_0x4ca332){Array[_0x53f764([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ca332)?_0x4ca332[_0x53f764([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14e6cc):_0x4ca332&&typeof _0x4ca332==_0x53f764([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53f764([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ca332)[_0x53f764([0x73,0x6f,0x72,0x74])]()[_0x53f764([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ba343,_0x5dd9a5])=>{_0x122ea2(_0x1ba343),_0x14e6cc(_0x5dd9a5);}):_0x122ea2(window[_0x53f764([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ca332));}return _0x14e6cc(_0x1bbed0),_0x77b44>>>0x0;}function _0x472c8b(_0x47f06c){return _0x47f06c[_0x53f764([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53f764([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53f764([0x30]));}function _0x36ff34(_0x43f89f){return _0x43f89f[_0x53f764([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53f764([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53f764([0x6a,0x6f,0x69,0x6e])]('');}function _0x38e531(){}function _0x53f764(_0x3833d5){const _0x2ca952=_0x4d56;return _0x3833d5[_0x2ca952(0x75)](_0xe1ab81=>String[_0x2ca952(0x74)](_0xe1ab81))[_0x2ca952(0xb6)]('');}_0x2a8486(await _0x18f1a7());}(this);}[_0x411a6(0x87)](){const _0x5fd2d4=_0x411a6,_0x2e9aa6=this[_0x5fd2d4(0xa1)][_0x5fd2d4(0x90)][_0x5fd2d4(0x9a)];_0x2e9aa6[_0x5fd2d4(0x99)](_0x5fd2d4(0xba))&&_0x2e9aa6[_0x5fd2d4(0x8c)](_0x5fd2d4(0xba),{'allowAttributes':[_0x5fd2d4(0x78)]}),_0x2e9aa6[_0x5fd2d4(0x99)](_0x5fd2d4(0xb3))&&_0x2e9aa6[_0x5fd2d4(0x8c)](_0x5fd2d4(0xb3),{'allowAttributes':[_0x5fd2d4(0x78)]});}[_0x411a6(0xa7)](){const _0x3f910e=_0x411a6,_0x4b145c=this[_0x3f910e(0xa1)];_0x4b145c[_0x3f910e(0x8a)][_0x3f910e(0xa3)](_0x3f910e(0x95))[_0x3f910e(0x76)]({'model':_0x3f910e(0x78),'view':_0x3f910e(0xab)}),_0x4b145c[_0x3f910e(0x8a)][_0x3f910e(0xa3)](_0x3f910e(0x8b))[_0x3f910e(0x8f)]({'model':{'key':_0x3f910e(0x78),'value':_0x999cb=>_0x999cb[_0x3f910e(0xb8)](_0x3f910e(0xab))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2fbc14=_0x4b145c[_0x3f910e(0xa0)][_0x3f910e(0x6f)](_0x3f910e(0x83));_0x2fbc14&&this[_0x3f910e(0x70)](_0x2fbc14,_0x3f910e(0xa4),(_0x1d7603,[_0x2a0791,_0xfa376f])=>{const _0x5d21d5=_0x3f910e;_0x2a0791[_0x5d21d5(0xb4)](_0x5d21d5(0x78),_0xfa376f);});}[_0x411a6(0xa8)](){const _0x213ecd=_0x411a6,_0x13d27e=this[_0x213ecd(0xa1)][_0x213ecd(0x91)][_0x213ecd(0x6f)](_0x213ecd(0x7d))||{},_0xf734c2=this[_0x213ecd(0xa1)][_0x213ecd(0x91)][_0x213ecd(0x6f)](_0x213ecd(0x84))||'';this[_0x213ecd(0x6b)]=_0x209b6b(_0x4ce68c[_0x213ecd(0x89)],_0x213ecd(0x7a),{..._0x13d27e,'pubkey':_0xf734c2,'ctx-name':_0x213ecd(0x88)+this[_0x213ecd(0xa6)],'sourceList':'','imgOnly':_0x213ecd(0x85),'removeCopyright':_0x213ecd(0x85),'localeName':this[_0x213ecd(0xa1)][_0x213ecd(0xbb)][_0x213ecd(0x8d)],'externalSourcesEmbedCss':_0x213ecd(0x94)}),this[_0x213ecd(0x6b)][_0x213ecd(0x97)]=_0x1350b4=>{const _0x2ee191=_0x213ecd;if(_0x2ee191(0xb9)==_0x1350b4)return _0x2ee191(0x9c);},_0x4ce68c[_0x213ecd(0x89)][_0x213ecd(0xa9)][_0x213ecd(0x7c)](this[_0x213ecd(0x6b)]);}[_0x411a6(0x93)](){const _0x1ff864=_0x411a6;this[_0x1ff864(0x81)]=_0x209b6b(_0x4ce68c[_0x1ff864(0x89)],_0x1ff864(0x71),{'ctx-name':_0x1ff864(0x88)+this[_0x1ff864(0xa6)]}),_0x4ce68c[_0x1ff864(0x89)][_0x1ff864(0xa9)][_0x1ff864(0x7c)](this[_0x1ff864(0x81)]);}[_0x411a6(0x80)](){const _0x229999=_0x411a6,_0x4fda1e=this[_0x229999(0xa1)][_0x229999(0xa0)][_0x229999(0x6f)](_0x229999(0xbd));_0x4fda1e&&this[_0x229999(0x70)](_0x4fda1e,_0x229999(0x7b),()=>{const _0x1fdaaf=_0x229999,_0x54146f=this[_0x1fdaaf(0xa1)][_0x1fdaaf(0x90)][_0x1fdaaf(0x89)][_0x1fdaaf(0x7e)][_0x1fdaaf(0x8e)]();_0x54146f&&_0x54146f[_0x1fdaaf(0xb8)](_0x1fdaaf(0x78))&&this[_0x1fdaaf(0xa1)][_0x1fdaaf(0xb7)][_0x1fdaaf(0xb0)][_0x1fdaaf(0xb2)](_0x1fdaaf(0x9f),()=>{const _0x25798d=_0x1fdaaf;_0x194570(this[_0x25798d(0xa1)],_0x54146f);});});const _0x28615a=this[_0x229999(0xa1)][_0x229999(0xa0)][_0x229999(0x6f)](_0x229999(0xb5));_0x28615a&&this[_0x229999(0x70)](_0x28615a,_0x229999(0x7b),()=>{const _0x46cca8=_0x229999,_0x58c0f2=this[_0x46cca8(0xa1)][_0x46cca8(0x90)][_0x46cca8(0x89)][_0x46cca8(0x7e)][_0x46cca8(0x8e)]();_0x58c0f2&&_0x58c0f2[_0x46cca8(0xb8)](_0x46cca8(0x78))&&this[_0x46cca8(0xa1)][_0x46cca8(0xb7)][_0x46cca8(0xb0)][_0x46cca8(0xb2)](_0x46cca8(0x9f),()=>{const _0xf5e54e=_0x46cca8;_0x194570(this[_0xf5e54e(0xa1)],_0x58c0f2);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1e349d,ObservableMixin as _0x41b685}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1c8430}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xc3b6ec}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2b3b40}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x6e1aa3}from'../../utils/uploadutils.js';import{getImageUrls as _0x2e7c57,getImageDimension as _0x4bd549}from'../../utils/editingutils.js';import{isAncestor as _0x520614}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x41b685(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x713b5d,_0x681c3d,_0x42dc03){super(),this['_editor']=_0x713b5d,this['_dialog']=_0x681c3d,this['_imageElement']=_0x42dc03,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 _0x5d27d6=this['_imageElement'],_0x27b758=_0x5d27d6['getAttribute']('uploadcareImageId'),_0xcd3960=_0x5d27d6['getAttribute']('src');if(_0x27b758)await this['_loadImageInfo'](_0x27b758,_0xcd3960);else{if(this['_imageCache']['has'](_0xcd3960)){const _0x409c66=this['_imageCache']['get'](_0xcd3960);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x409c66['url'],this['imageDimension']=_0x409c66['dimension'],this['imageId']=_0x409c66['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xdf0667}=this['_editor'],t=_0xdf0667['t'],_0x213c83=new _0x2b3b40(_0xdf0667,this['imageStatus'],this['_attributes']);_0x213c83['bind']('status')['to'](this,'imageStatus'),_0x213c83['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x213c83['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x213c83['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x213c83,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xc3b6ec,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x213c83,'position':_0x1c8430['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x213c83['focus']();},'onHide':()=>{_0x213c83['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x7e6411=>!_0x520614(_0x7e6411,_0x213c83['element'])}});}['_loadImageInfo'](_0x49b777,_0x50842c){return _0x6e1aa3['getInfo'](_0x49b777,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x34c68c=>{const {width:_0x187b3d,height:_0x242a3b}=_0x34c68c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50842c,this['imageDimension']={'width':_0x187b3d,'height':_0x242a3b},this['imageId']=_0x49b777;})['catch'](_0x38ff4e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x38ff4e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x417e86,_0x18e228){return this['_getImageAsFile'](_0x417e86)['then'](_0x1a91ff=>_0x6e1aa3['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':_0x18e228['signal'],'file':_0x1a91ff,'onProgress':_0x3efc48=>{_0x3efc48&&_0x3efc48['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3efc48['value']));}}))['then'](_0x530b4e=>{const {width:_0x19350f,height:_0x1485c7}=_0x530b4e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x530b4e['cdnUrl'],this['imageDimension']={'width':_0x19350f,'height':_0x1485c7},this['imageId']=_0x530b4e['uuid'],this['imageUploadProgress']=null;const _0x4a6049=_0x417e86['getAttribute']('src');this['_imageCache']['set'](_0x4a6049,{'id':_0x530b4e['uuid'],'url':_0x530b4e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x545936=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x545936['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x14db33,_0x494e4){_0x14db33['on']('apply',(_0x2b9497,_0xbc4403)=>{this['_replaceImage'](_0x494e4,_0xbc4403['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x14db33['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x14db33['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x306831,_0x89eaee,_0x375069){const _0x1aba88=this['_editor'],{width:_0xe05dd0,height:_0x3631dc}=_0x4bd549(_0x89eaee,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x53383f,imageSources:_0x554b04}=_0x2e7c57(_0x89eaee,_0xe05dd0);_0x1aba88['model']['change'](_0x21372f=>{if('$graveyard'===_0x306831['root']['rootName']){_0x1aba88['execute']('insertImage',{'imageType':_0x306831['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x306831['getAttributes']()),'uploadcareImageId':_0x375069,'src':_0x53383f,'sources':_0x554b04,'width':_0xe05dd0,'height':_0x3631dc}});const _0x316084=_0x306831['getChildren']();_0x306831=_0x1aba88['model']['document']['selection']['getSelectedElement']();for(const _0x43a325 of _0x316084)_0x21372f['append'](_0x21372f['cloneElement'](_0x43a325),_0x306831);}else _0x21372f['setSelection'](_0x306831,'on'),_0x1aba88['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x306831['getAttributes']()),'uploadcareImageId':_0x375069,'src':_0x53383f,'sources':_0x554b04,'width':_0xe05dd0,'height':_0x3631dc},_0x306831);_0x21372f['setSelection'](_0x306831,'on');});}async['_getImageAsFile'](_0x44cff3){const _0x1544ed=_0x1e349d['window'],_0x12233b=_0x1e349d['document']['location']['href'],_0x203380=new _0x1544ed['URL'](_0x44cff3['getAttribute']('src'),_0x12233b);if('data:'===_0x203380['protocol']){const _0x2db952=_0x203380['href']['split'](','),_0x341388=_0x2db952[0x0]['match'](/:(.*?);/)[0x1],_0x3e1314=_0x341388['split']('/')[0x1],_0x1a457a=_0x1544ed['atob'](_0x2db952[_0x2db952['length']-0x1]);let _0x39149b=_0x1a457a['length'];const _0x4e9704=new _0x1544ed['Uint8Array'](_0x39149b);for(;_0x39149b--;)_0x4e9704[_0x39149b]=_0x1a457a['charCodeAt'](_0x39149b);return new _0x1544ed['File']([_0x4e9704],'image.'+_0x3e1314,{'type':_0x341388});}const _0x106147=_0x203380['href']['split']('/'),_0x11dba1=_0x106147[_0x106147['length']-0x1],_0xeee9c6=_0x11dba1['split']('.')[0x1];return _0x1544ed['fetch'](_0x203380['href'])['then'](_0x3b4885=>_0x3b4885['clone']()['blob']())['then'](_0x9cb306=>new _0x1544ed['File']([_0x9cb306],_0x11dba1,{'type':'image/'+_0xeee9c6}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1cf5(){const _0xe5abb7=['1176469nlKwgb','set','29372950ZPVpPQ','6746562JAKPIQ','image-edit','5856OBkvjA','1698FsuGbe','748293iIprgB','bindTemplate','2533704tuqrTS','setTemplate','uc-light','ck-uploadcare-theme','uc-cloud-image-editor','imageSrc','1710lHJzKi','88LGHLqJ','2090ECiBvq'];_0x1cf5=function(){return _0xe5abb7;};return _0x1cf5();}(function(_0x30736d,_0x387047){const _0x19b109=_0x2f63,_0x35435e=_0x30736d();while(!![]){try{const _0x3ab56f=-parseInt(_0x19b109(0x1a1))/0x1+-parseInt(_0x19b109(0x198))/0x2+-parseInt(_0x19b109(0x1a7))/0x3*(-parseInt(_0x19b109(0x1a6))/0x4)+parseInt(_0x19b109(0x1a0))/0x5*(-parseInt(_0x19b109(0x19e))/0x6)+parseInt(_0x19b109(0x1a8))/0x7*(-parseInt(_0x19b109(0x19f))/0x8)+parseInt(_0x19b109(0x1a4))/0x9+parseInt(_0x19b109(0x1a3))/0xa;if(_0x3ab56f===_0x387047)break;else _0x35435e['push'](_0x35435e['shift']());}catch(_0x40898f){_0x35435e['push'](_0x35435e['shift']());}}}(_0x1cf5,0xbdbed));function _0x2f63(_0x4aa6af,_0x3dd280){const _0x1cf573=_0x1cf5();return _0x2f63=function(_0x2f63cc,_0x43ce3f){_0x2f63cc=_0x2f63cc-0x197;let _0x3d86cd=_0x1cf573[_0x2f63cc];return _0x3d86cd;},_0x2f63(_0x4aa6af,_0x3dd280);}import{View as _0x23e0fb}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x23e0fb{constructor(_0x30c86f,_0x14238f){const _0x7ad74f=_0x2f63;super(_0x30c86f);const _0x52210b=this[_0x7ad74f(0x197)];this[_0x7ad74f(0x1a2)](_0x7ad74f(0x19d),''),this[_0x7ad74f(0x199)]({'tag':_0x7ad74f(0x19c),'attributes':{..._0x14238f,'class':[_0x7ad74f(0x19a),_0x7ad74f(0x19b)],'ctx-name':_0x7ad74f(0x1a5),'cdn-url':_0x52210b['to'](_0x7ad74f(0x19d))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4a9558}from'ckeditor5/src/icons.js';import{ButtonView as _0x5732d3,IconView as _0x574e0f,View as _0x11813a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x11813a{constructor(_0x3aa85c){super(_0x3aa85c);const t=_0x3aa85c['t'];this['set']('errorType',null);const _0x4f684f=new _0x5732d3(_0x3aa85c);_0x4f684f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4f684f['withText']=!0x0,_0x4f684f['class']='ck-button-action',_0x4f684f['on']('execute',()=>{this['fire']('retry');}),_0x4f684f['bind']('isVisible')['to'](this,'errorType',_0x42e464=>'NotFound'!==_0x42e464);const _0x5b47fb=new _0x574e0f();_0x5b47fb['content']=_0x4a9558,_0x5b47fb['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3e86a4=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':[_0x5b47fb,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3e86a4['to']('errorType',_0x1f17e5=>t('NotFound'!==_0x1f17e5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4f684f]},{'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 _0x4efc47,View as _0x11be69}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x11be69{constructor(_0x14b2b7){super(_0x14b2b7);const t=_0x14b2b7['t'],_0x41eb8b=this['bindTemplate'],_0x3581e6=new _0x4efc47();_0x3581e6['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':[_0x3581e6,{'text':_0x41eb8b['to']('imageUploadProgress',_0x451dcf=>t('Loading\x20image...')+'\x20('+(_0x451dcf||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
|
-
|
|
23
|
+
function _0x19be(_0x8d118f,_0x3aa0a2){const _0x305c5a=_0x305c();return _0x19be=function(_0x19be5b,_0x5f3591){_0x19be5b=_0x19be5b-0xea;let _0x275359=_0x305c5a[_0x19be5b];return _0x275359;},_0x19be(_0x8d118f,_0x3aa0a2);}const _0x2e1f09=_0x19be;(function(_0x560fe8,_0x164f53){const _0x2cb0a2=_0x19be,_0x516854=_0x560fe8();while(!![]){try{const _0x440905=-parseInt(_0x2cb0a2(0x11c))/0x1+parseInt(_0x2cb0a2(0x121))/0x2+-parseInt(_0x2cb0a2(0x109))/0x3*(-parseInt(_0x2cb0a2(0xf2))/0x4)+-parseInt(_0x2cb0a2(0xea))/0x5*(parseInt(_0x2cb0a2(0xf1))/0x6)+-parseInt(_0x2cb0a2(0x111))/0x7+-parseInt(_0x2cb0a2(0xeb))/0x8*(-parseInt(_0x2cb0a2(0x112))/0x9)+parseInt(_0x2cb0a2(0x10f))/0xa*(parseInt(_0x2cb0a2(0xff))/0xb);if(_0x440905===_0x164f53)break;else _0x516854['push'](_0x516854['shift']());}catch(_0xd0a039){_0x516854['push'](_0x516854['shift']());}}}(_0x305c,0x5d8d7));import{View as _0x2be3bc}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0xec9bde}from'./uploadcareimageeditformloadingview.js';function _0x305c(){const _0xb581c5=['_focusableView','length','div','_loadingView','element','add','ck-uploadcare-form','184839KPUCub','_editingView','clear','addMany','uc-cloud-image-editor','observe','1750870PqpRiO','set','4238164UaXNSB','9iCahDq','_waitForImageEditorComponent','disconnect','addEventListener','apply','uploading','_setView','filter','_items','toLowerCase','552590qHVrYo','ck-reset_all-excluded','createCollection','ready','detail','375850HMgzme','13345bmMeYp','5364104TwgBaH','_errorView','_addErrorViewListeners','addedNodes','_addUploadcareImageEditorListeners','render','732uoQWlt','20foqvdZ','cdnUrl','focus','nodeName','fire','error','getFocusableElement','target','status','change:status','once','setTemplate','cancel','44xNcBww','querySelector','retry'];_0x305c=function(){return _0xb581c5;};return _0x305c();}import{UploadcareImageEditFormErrorView as _0x17528a}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x210ee6}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2a0dd0}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2a0dd0{[_0x2e1f09(0x11a)];[_0x2e1f09(0x105)];[_0x2e1f09(0xec)];[_0x2e1f09(0x10a)];[_0x2e1f09(0x102)];constructor(_0x3b2b4e,_0x26b1b6,_0x5dca9b){const _0x283d7e=_0x2e1f09;super(_0x3b2b4e),this[_0x283d7e(0x11a)]=this[_0x283d7e(0x11e)](),this[_0x283d7e(0x105)]=new _0xec9bde(_0x3b2b4e),this[_0x283d7e(0xec)]=new _0x17528a(_0x3b2b4e),this[_0x283d7e(0x10a)]=new _0x210ee6(_0x3b2b4e,_0x5dca9b),this[_0x283d7e(0x102)]=new _0x2be3bc(_0x3b2b4e),this[_0x283d7e(0x102)][_0x283d7e(0xfd)](this[_0x283d7e(0xf8)]()),this[_0x283d7e(0x110)](_0x283d7e(0xfa),_0x26b1b6),this[_0x283d7e(0xfd)]({'tag':_0x283d7e(0x104),'attributes':{'class':['ck',_0x283d7e(0x11d),_0x283d7e(0x108)],'tabindex':'-1'},'children':this[_0x283d7e(0x11a)]}),this[_0x283d7e(0x118)](),this[_0x283d7e(0xfc)](_0x283d7e(0xf0),()=>{const _0x4a9b55=_0x283d7e;this[_0x4a9b55(0x113)](this[_0x4a9b55(0x106)],_0x122483=>{const _0x135b3c=_0x4a9b55;this[_0x135b3c(0xef)](_0x122483);});}),this['on'](_0x283d7e(0xfb),()=>{const _0x3e6e16=_0x283d7e;this[_0x3e6e16(0x118)]();}),this[_0x283d7e(0xed)]();}[_0x2e1f09(0xf4)](){const _0x29b9af=_0x2e1f09;this[_0x29b9af(0x106)][_0x29b9af(0xf4)]();}[_0x2e1f09(0x118)](){const _0xe70f5a=_0x2e1f09;switch(this[_0xe70f5a(0x11a)][_0xe70f5a(0x10b)](),this[_0xe70f5a(0xfa)]){case _0xe70f5a(0x117):this[_0xe70f5a(0x11a)][_0xe70f5a(0x107)](this[_0xe70f5a(0x105)]);break;case _0xe70f5a(0xf7):this[_0xe70f5a(0x11a)][_0xe70f5a(0x107)](this[_0xe70f5a(0xec)]);break;case _0xe70f5a(0x11f):this[_0xe70f5a(0x11a)][_0xe70f5a(0x10c)]([this[_0xe70f5a(0x10a)],this[_0xe70f5a(0x102)]]);}}[_0x2e1f09(0x113)](_0xfbc20a,_0x1208fa){const _0x4a0793=_0x2e1f09,_0xfa8562=_0x4a0793(0x10d),_0x2375b0=_0xfbc20a[_0x4a0793(0x100)](_0xfa8562);if(_0x2375b0)return _0x1208fa(_0x2375b0);const _0x3950c9=new MutationObserver(_0x158f40=>{const _0x57b272=_0x4a0793,_0x131bcf=_0x158f40[_0x57b272(0x119)](_0x32dbe9=>_0x32dbe9[_0x57b272(0xf9)]===_0xfbc20a&&_0x32dbe9[_0x57b272(0xee)][_0x57b272(0x103)]>0x0&&_0x32dbe9[_0x57b272(0xee)][0x0][_0x57b272(0xf5)][_0x57b272(0x11b)]()===_0xfa8562);_0x131bcf[_0x57b272(0x103)]&&(_0x3950c9[_0x57b272(0x114)](),_0x1208fa(_0x131bcf[0x0][_0x57b272(0xee)][0x0]));});_0x3950c9[_0x4a0793(0x10e)](_0xfbc20a,{'childList':!0x0,'subtree':!0x0});}[_0x2e1f09(0xef)](_0x5ea8e1){const _0x5dd1e6=_0x2e1f09;_0x5ea8e1[_0x5dd1e6(0x115)](_0x5dd1e6(0x116),_0x224872=>{const _0x2b942d=_0x5dd1e6;this[_0x2b942d(0xf6)](_0x2b942d(0x116),{'imageSrc':_0x224872[_0x2b942d(0x120)][_0x2b942d(0xf3)]});}),_0x5ea8e1[_0x5dd1e6(0x115)](_0x5dd1e6(0xfe),()=>{const _0x3b1d26=_0x5dd1e6;this[_0x3b1d26(0xf6)](_0x3b1d26(0xfe));});}[_0x2e1f09(0xed)](){const _0x632dd1=_0x2e1f09;this[_0x632dd1(0xec)]['on'](_0x632dd1(0x101),()=>{const _0x4480b1=_0x632dd1;this[_0x4480b1(0xf6)](_0x4480b1(0x101));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e7d7d=_0x448d;(function(_0x31b140,_0xb562a7){const _0x2f7daf=_0x448d,_0x1f9865=_0x31b140();while(!![]){try{const _0x4ea309=-parseInt(_0x2f7daf(0xca))/0x1+-parseInt(_0x2f7daf(0xc5))/0x2+parseInt(_0x2f7daf(0xd9))/0x3+-parseInt(_0x2f7daf(0xd6))/0x4+parseInt(_0x2f7daf(0xd3))/0x5+parseInt(_0x2f7daf(0xce))/0x6*(parseInt(_0x2f7daf(0xcd))/0x7)+-parseInt(_0x2f7daf(0xd1))/0x8*(parseInt(_0x2f7daf(0xcf))/0x9);if(_0x4ea309===_0xb562a7)break;else _0x1f9865['push'](_0x1f9865['shift']());}catch(_0x132797){_0x1f9865['push'](_0x1f9865['shift']());}}}(_0x25c5,0xd5c7d));function _0x448d(_0x55d682,_0x1e8fde){const _0x25c5a5=_0x25c5();return _0x448d=function(_0x448dbd,_0x4a669){_0x448dbd=_0x448dbd-0xbc;let _0x213d1a=_0x25c5a5[_0x448dbd];return _0x213d1a;},_0x448d(_0x55d682,_0x1e8fde);}import{Command as _0x408597}from'ckeditor5/src/core.js';function _0x25c5(){const _0x1067d9=['uploadcare.allowExternalImagesEditing','8521145FvYdAZ','requires','model','2130128cyDZfl','editor','imageInline','2030988DEdSpK','imageEditController','plugins','isEnabled','document','bind','config','set','refresh','unbind','isActive','2397608tucImh','get','selection','imageBlock','element','1112199AJXRem','getSelectedElement','execute','91AIiLzZ','728466WQirsD','2163492joFOZc','_isEditable','8vToAeY'];_0x25c5=function(){return _0x1067d9;};return _0x25c5();}import{Dialog as _0x55a095}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x31f80f}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4637ca}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x408597{[_0x3e7d7d(0xda)];static get[_0x3e7d7d(0xd4)](){return[_0x55a095];}[_0x3e7d7d(0xd0)];constructor(_0x41cb52){const _0x339b35=_0x3e7d7d;super(_0x41cb52),this[_0x339b35(0xda)]=void 0x0,this[_0x339b35(0xd0)]=_0x4637ca(_0x41cb52[_0x339b35(0xc0)][_0x339b35(0xc6)](_0x339b35(0xd2))||[]),this[_0x339b35(0xc1)]({'isActive':!0x1});}[_0x3e7d7d(0xc2)](){const _0x50220e=_0x3e7d7d,_0x5e55d3=this[_0x50220e(0xd7)][_0x50220e(0xd5)][_0x50220e(0xbe)][_0x50220e(0xc7)][_0x50220e(0xcb)]();this[_0x50220e(0xbd)]=this[_0x50220e(0xd0)](_0x5e55d3);}[_0x3e7d7d(0xcc)](){const _0x16c93c=_0x3e7d7d;this[_0x16c93c(0xda)]&&(this[_0x16c93c(0xc3)](_0x16c93c(0xc4)),this[_0x16c93c(0xda)]=void 0x0);const _0x596caa=this[_0x16c93c(0xd7)][_0x16c93c(0xd5)][_0x16c93c(0xbe)][_0x16c93c(0xc7)][_0x16c93c(0xcb)]();_0x596caa&&(_0x596caa['is'](_0x16c93c(0xc9),_0x16c93c(0xc8))||_0x596caa['is'](_0x16c93c(0xc9),_0x16c93c(0xd8)))&&(this[_0x16c93c(0xda)]=new _0x31f80f(this[_0x16c93c(0xd7)],this[_0x16c93c(0xd7)][_0x16c93c(0xbc)][_0x16c93c(0xc6)](_0x55a095),_0x596caa),this[_0x16c93c(0xbf)](_0x16c93c(0xc4))['to'](this[_0x16c93c(0xda)],_0x16c93c(0xc4)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x358dc3=_0x111a;function _0x111a(_0x40930a,_0x49d880){const _0x20d2ab=_0x20d2();return _0x111a=function(_0x111a92,_0x22a086){_0x111a92=_0x111a92-0x1cc;let _0x5e1217=_0x20d2ab[_0x111a92];return _0x5e1217;},_0x111a(_0x40930a,_0x49d880);}(function(_0xe50433,_0x36cda9){const _0x25d995=_0x111a,_0x39280b=_0xe50433();while(!![]){try{const _0x7e62bd=parseInt(_0x25d995(0x1d5))/0x1+parseInt(_0x25d995(0x1d6))/0x2+-parseInt(_0x25d995(0x1dc))/0x3+parseInt(_0x25d995(0x1d0))/0x4*(parseInt(_0x25d995(0x1d4))/0x5)+-parseInt(_0x25d995(0x1dd))/0x6+parseInt(_0x25d995(0x1cf))/0x7+parseInt(_0x25d995(0x1cd))/0x8*(-parseInt(_0x25d995(0x1e0))/0x9);if(_0x7e62bd===_0x36cda9)break;else _0x39280b['push'](_0x39280b['shift']());}catch(_0x3d3ff1){_0x39280b['push'](_0x39280b['shift']());}}}(_0x20d2,0x47235));function _0x20d2(){const _0x4fdaba=['commands','2638370nHKONb','700pwQPUH','uploadcareImageEdit','requires','isOfficialPlugin','8175xkTJvp','406785AkqGlt','791534XPpaMb','ImageEditing','ImageUtils','pluginName','add','UploadcareImageEditEditing','1591986NeLmFl','1979724TNndvt','init','isPremiumPlugin','470385GuxMeS','uploadcareImageReplace','48TejJWg'];_0x20d2=function(){return _0x4fdaba;};return _0x20d2();}import{Plugin as _0x3a1eb9}from'ckeditor5/src/core.js';import{Notification as _0xaa3ee5}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x2dedec}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1bf763}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2cbfe1}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3a1eb9{static get[_0x358dc3(0x1d9)](){const _0x1e4a60=_0x358dc3;return _0x1e4a60(0x1db);}static get[_0x358dc3(0x1d2)](){const _0x3b00cb=_0x358dc3;return[_0x2cbfe1,_0xaa3ee5,_0x3b00cb(0x1d8),_0x3b00cb(0x1d7)];}static get[_0x358dc3(0x1d3)](){return!0x0;}static get[_0x358dc3(0x1df)](){return!0x0;}[_0x358dc3(0x1de)](){const _0x2b2a08=_0x358dc3,{editor:_0x3d4560}=this;_0x3d4560[_0x2b2a08(0x1ce)][_0x2b2a08(0x1da)](_0x2b2a08(0x1d1),new _0x2dedec(_0x3d4560)),_0x3d4560[_0x2b2a08(0x1ce)][_0x2b2a08(0x1da)](_0x2b2a08(0x1cc),new _0x1bf763(_0x3d4560));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x55c6c5}from'ckeditor5/src/core.js';import{ButtonView as _0x54e2a9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1184f5}from'ckeditor5/src/icons.js';import{createElement as _0x30766a}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 _0x55c6c5{['_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 _0x3d210b=this['editor'];_0x3d210b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x19d271=>{const _0x5df5ef=_0x3d210b['commands']['get']('uploadcareImageEdit'),_0x4f5bb0=new _0x54e2a9(_0x19d271),t=_0x19d271['t'];return _0x4f5bb0['set']({'icon':_0x1184f5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4f5bb0['bind']('isEnabled')['to'](_0x5df5ef),_0x4f5bb0['bind']('isOn')['to'](_0x5df5ef,'isActive'),this['listenTo'](_0x4f5bb0,'execute',()=>{_0x3d210b['execute']('uploadcareImageEdit'),_0x3d210b['editing']['view']['focus']();}),_0x4f5bb0;}),this['_initConfig']();}['_initConfig'](){const _0x12d85e=_0x30766a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x12d85e),this['listenTo'](this['editor'],'destroy',()=>{_0x12d85e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3813d3=_0x5076;(function(_0x2d9021,_0x326602){const _0x3f50b6=_0x5076,_0x2cf00b=_0x2d9021();while(!![]){try{const _0x1ac9df=parseInt(_0x3f50b6(0x11a))/0x1*(-parseInt(_0x3f50b6(0x122))/0x2)+parseInt(_0x3f50b6(0x11e))/0x3+-parseInt(_0x3f50b6(0x123))/0x4*(parseInt(_0x3f50b6(0x12f))/0x5)+parseInt(_0x3f50b6(0x125))/0x6*(-parseInt(_0x3f50b6(0x120))/0x7)+-parseInt(_0x3f50b6(0x126))/0x8*(-parseInt(_0x3f50b6(0x129))/0x9)+-parseInt(_0x3f50b6(0x11c))/0xa*(parseInt(_0x3f50b6(0x128))/0xb)+parseInt(_0x3f50b6(0x12e))/0xc;if(_0x1ac9df===_0x326602)break;else _0x2cf00b['push'](_0x2cf00b['shift']());}catch(_0x59f1bf){_0x2cf00b['push'](_0x2cf00b['shift']());}}}(_0x57a0,0x5fd21));function _0x5076(_0x57c10,_0x5d67b6){const _0x57a07c=_0x57a0();return _0x5076=function(_0x50769e,_0x3ad9ce){_0x50769e=_0x50769e-0x116;let _0x3b6c46=_0x57a07c[_0x50769e];return _0x3b6c46;},_0x5076(_0x57c10,_0x5d67b6);}import{Command as _0x3a80a1}from'ckeditor5/src/core.js';function _0x57a0(){const _0x392f69=['1979964rFcVEC','document','3993222wVMdCg','24oSggxk','isEnabled','28347yywEAF','1457838vonMDL','removeAttribute','setAttributes','change','refresh','20618484zNjCtQ','5DpadaP','execute','imageBlock','imageInline','getSelectedElement','model','editor','234631zxYynS','selection','390oKQxlx','sizes','459756oukHdS','srcset','7BmpvXd','element','6GQjIZG'];_0x57a0=function(){return _0x392f69;};return _0x57a0();}export class UploadcareImageReplaceCommand extends _0x3a80a1{[_0x3813d3(0x12d)](){const _0x110221=_0x3813d3,_0x34fd81=this[_0x110221(0x119)][_0x110221(0x118)][_0x110221(0x124)][_0x110221(0x11b)][_0x110221(0x117)]();this[_0x110221(0x127)]=Boolean(_0x34fd81&&(_0x34fd81['is'](_0x110221(0x121),_0x110221(0x131))||_0x34fd81['is'](_0x110221(0x121),_0x110221(0x116))));}[_0x3813d3(0x130)](_0x267fd0){const _0x42a8eb=_0x3813d3,_0xc5fe1a=this[_0x42a8eb(0x119)][_0x42a8eb(0x118)][_0x42a8eb(0x124)][_0x42a8eb(0x11b)][_0x42a8eb(0x117)]();this[_0x42a8eb(0x119)][_0x42a8eb(0x118)][_0x42a8eb(0x12c)](_0x3f0d9b=>{const _0x26a3d6=_0x42a8eb;_0x3f0d9b[_0x26a3d6(0x12b)](_0x267fd0,_0xc5fe1a),_0x3f0d9b[_0x26a3d6(0x12a)](_0x26a3d6(0x11f),_0xc5fe1a),_0x3f0d9b[_0x26a3d6(0x12a)](_0x26a3d6(0x11d),_0xc5fe1a);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5790(_0x5a45eb,_0x362a25){var _0x27dddf=_0x27dd();return _0x5790=function(_0x5790f8,_0x563c71){_0x5790f8=_0x5790f8-0x1d3;var _0x2603c5=_0x27dddf[_0x5790f8];return _0x2603c5;},_0x5790(_0x5a45eb,_0x362a25);}var _0x4864db=_0x5790;(function(_0x47f349,_0xd44852){var _0x593cd2=_0x5790,_0x219672=_0x47f349();while(!![]){try{var _0x35df3f=-parseInt(_0x593cd2(0x1db))/0x1*(parseInt(_0x593cd2(0x1e0))/0x2)+parseInt(_0x593cd2(0x1de))/0x3*(-parseInt(_0x593cd2(0x1dc))/0x4)+parseInt(_0x593cd2(0x1d5))/0x5+parseInt(_0x593cd2(0x1df))/0x6+-parseInt(_0x593cd2(0x1d4))/0x7*(-parseInt(_0x593cd2(0x1e1))/0x8)+parseInt(_0x593cd2(0x1d7))/0x9+-parseInt(_0x593cd2(0x1dd))/0xa;if(_0x35df3f===_0xd44852)break;else _0x219672['push'](_0x219672['shift']());}catch(_0x12c3c6){_0x219672['push'](_0x219672['shift']());}}}(_0x27dd,0x3af06));import{Plugin as _0xcf02f0}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x1dab3b}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x3f4352}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x27dd(){var _0xac925a=['requires','69fdsOug','11136sdByPD','4134510AlUBtp','177WCbYGX','1232322IpIDcl','4578OuEJSd','24ncDGiG','isPremiumPlugin','601923CFxyXH','1008175CZESQa','pluginName','2808657DOmjhl','isOfficialPlugin','UploadcareImageEdit'];_0x27dd=function(){return _0xac925a;};return _0x27dd();}export class UploadcareImageEdit extends _0xcf02f0{static get[_0x4864db(0x1d6)](){var _0x14b182=_0x4864db;return _0x14b182(0x1d9);}static get[_0x4864db(0x1da)](){return[_0x1dab3b,_0x3f4352];}static get[_0x4864db(0x1d8)](){return!0x0;}static get[_0x4864db(0x1d3)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4837(){const _0x1cab2b=['uploadcareLicenseKeyUsageLimit','_showLicenseError','plugins','isOfficialPlugin','uploadcareLicenseKeyNotAllowed','_createMenuBarButtons','_getIntegrationKey','262758rUVSNr','Uploadcare','uploadcareLicenseKeyTrialLimit','pluginName','uploadcareLicenseKeyValid','icon','expired','execute','config','type','Facebook','reduce','label','_createToolbarButton','shortText','evaluationLimit','map','usageLimit','isImageSelected','Local','uploadcare','211608MMwNuN','isPremiumPlugin','Replace','11073861VWXHrK','trialLimit','Dropbox','assetManager','OneDrive','withText','tooltip','3516331XkolhI','uploadcareLicenseKeyDomainLimit','locale','1455972tllvnq','UploadcareUI','licenseKey','text','has','Insert','8peKWxm','bind','isEnabled','registerIntegration','afterInit','destroy','invalid','featureNotAllowed','url','5yJrfPY','push','30768brSZsm','commands','GPhotos','uploadcareLicenseKeyInvalid','ImageInsertUI','init','upload','uploadcareLicenseKeyExpired','GDrive','domainLimit','_licenseKeyCheckInterval','forEach','uploadcareLicenseKeyEvaluationLimit','_createButton','_createDropdownButtons','uploadcare.uploader.sourceList','get','2435805jeMazz','URL','_normalizeConfigSourceList','entries','editor'];_0x4837=function(){return _0x1cab2b;};return _0x4837();}const _0x362b74=_0x1a84;function _0x1a84(_0x2e113e,_0x575f0e){const _0x4837b6=_0x4837();return _0x1a84=function(_0x1a84b7,_0x2797ee){_0x1a84b7=_0x1a84b7-0x1e3;let _0x554f05=_0x4837b6[_0x1a84b7];return _0x554f05;},_0x1a84(_0x2e113e,_0x575f0e);}(function(_0x294403,_0x51774f){const _0x16923e=_0x1a84,_0x4f4545=_0x294403();while(!![]){try{const _0x1f2e64=parseInt(_0x16923e(0x1eb))/0x1+parseInt(_0x16923e(0x226))/0x2+-parseInt(_0x16923e(0x21a))/0x3+-parseInt(_0x16923e(0x1f8))/0x4*(-parseInt(_0x16923e(0x207))/0x5)+parseInt(_0x16923e(0x209))/0x6+-parseInt(_0x16923e(0x1f5))/0x7+parseInt(_0x16923e(0x1fe))/0x8*(parseInt(_0x16923e(0x1ee))/0x9);if(_0x1f2e64===_0x51774f)break;else _0x4f4545['push'](_0x4f4545['shift']());}catch(_0x3cb092){_0x4f4545['push'](_0x4f4545['shift']());}}}(_0x4837,0x9962d));import{Plugin as _0x11ca68}from'ckeditor5/src/core.js';import{IconDropbox as _0x498922,IconFacebook as _0x112678,IconGoogleDrive as _0x5eeae4,IconGooglePhotos as _0x2a0cf6,IconUploadcareImageUpload as _0x576f1e,IconUploadcareLink as _0x33c98d,IconOneDrive as _0x671eb8}from'ckeditor5/src/icons.js';import{ButtonView as _0x3c4cb8,MenuBarMenuListItemButtonView as _0x50729f}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x3114ec}from'./uploadcareconfig.js';import{getTranslation as _0x394a7e}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x11ca68{[_0x362b74(0x1fa)];[_0x362b74(0x213)];static get[_0x362b74(0x229)](){const _0x18d9f9=_0x362b74;return _0x18d9f9(0x1f9);}static get[_0x362b74(0x222)](){return!0x0;}static get[_0x362b74(0x1ec)](){return!0x0;}[_0x362b74(0x20e)](){const _0x55f0a4=_0x362b74;this[_0x55f0a4(0x1fa)]=this[_0x55f0a4(0x21e)][_0x55f0a4(0x22e)][_0x55f0a4(0x219)](_0x55f0a4(0x1fa));const _0x5bc573=this[_0x55f0a4(0x21e)];this[_0x55f0a4(0x213)]=setInterval(()=>{const _0x14fd3a=_0x55f0a4;let _0x5a3dd8;for(const _0x26b3cd in _0x5bc573){const _0xdd1e72=_0x26b3cd,_0x5eb10f=_0x5bc573[_0xdd1e72];if(_0x14fd3a(0x22a)==_0x5eb10f||_0x14fd3a(0x20c)==_0x5eb10f||_0x14fd3a(0x210)==_0x5eb10f||_0x14fd3a(0x1f6)==_0x5eb10f||_0x14fd3a(0x223)==_0x5eb10f||_0x14fd3a(0x215)==_0x5eb10f||_0x14fd3a(0x228)==_0x5eb10f||_0x14fd3a(0x21f)==_0x5eb10f){delete _0x5bc573[_0xdd1e72],_0x5a3dd8=_0x5eb10f,clearInterval(this[_0x14fd3a(0x213)]),this[_0x14fd3a(0x213)]=void 0x0;break;}}_0x14fd3a(0x20c)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x204)),_0x14fd3a(0x210)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x22c)),_0x14fd3a(0x1f6)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x212)),_0x14fd3a(0x223)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x205),_0x14fd3a(0x227)),_0x14fd3a(0x215)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x1e5)),_0x14fd3a(0x228)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x1ef)),_0x14fd3a(0x21f)==_0x5a3dd8&&_0x5bc573[_0x14fd3a(0x220)](_0x14fd3a(0x1e7));},0x3e8);}[_0x362b74(0x202)](){const _0x26ce5e=_0x362b74,{editor:_0x42af71}=this,_0x58208a=_0x42af71[_0x26ce5e(0x20a)][_0x26ce5e(0x219)](_0x26ce5e(0x1ea));if(!_0x58208a)return;const _0x38b4f2=this[_0x26ce5e(0x21c)](_0x42af71[_0x26ce5e(0x22e)][_0x26ce5e(0x219)](_0x26ce5e(0x218)))[_0x26ce5e(0x231)]((_0x503ddb,_0x4dc4e7)=>{const _0x30aa04=_0x26ce5e,_0x4fc664=this[_0x30aa04(0x225)](_0x4dc4e7[_0x30aa04(0x22f)]);return _0x503ddb[_0x4fc664]||(_0x503ddb[_0x4fc664]=[]),_0x503ddb[_0x4fc664][_0x30aa04(0x208)](_0x4dc4e7),_0x503ddb;},{});_0x42af71[_0x26ce5e(0x221)][_0x26ce5e(0x1fc)](_0x26ce5e(0x20d))&&_0x42af71[_0x26ce5e(0x20a)][_0x26ce5e(0x219)](_0x26ce5e(0x1ea))&&Object[_0x26ce5e(0x21d)](_0x38b4f2)[_0x26ce5e(0x214)](([_0x900891,_0x1067f8])=>{const _0x3b2576=_0x26ce5e;_0x42af71[_0x3b2576(0x221)][_0x3b2576(0x219)](_0x3b2576(0x20d))[_0x3b2576(0x201)]({'name':_0x900891,'observable':()=>_0x58208a,'buttonViewCreator':()=>this[_0x3b2576(0x1e3)](_0x1067f8),'formViewCreator':()=>this[_0x3b2576(0x217)](_0x1067f8),'menuBarButtonViewCreator':()=>this[_0x3b2576(0x224)](_0x1067f8),'override':_0x3b2576(0x1f1)!==_0x900891});});}[_0x362b74(0x203)](){const _0xb30847=_0x362b74;super[_0xb30847(0x203)](),this[_0xb30847(0x213)]&&clearInterval(this[_0xb30847(0x213)]);}[_0x362b74(0x21c)](_0x2bf27d){const _0x2d866c=_0x362b74,{locale:_0x115745}=this[_0x2d866c(0x21e)];return _0x2bf27d[_0x2d866c(0x1e6)](_0x132e93=>{const _0x53124d=_0x2d866c,_0x44e23c=_0x394a7e(_0x115745,_0x132e93,_0x53124d(0x1fd));switch(_0x132e93){case _0x3114ec[_0x53124d(0x1e9)]:return{'icon':_0x576f1e,'type':_0x3114ec[_0x53124d(0x1e9)],..._0x44e23c};case _0x3114ec[_0x53124d(0x21b)]:return{'icon':_0x33c98d,'type':_0x3114ec[_0x53124d(0x21b)],..._0x44e23c};case _0x3114ec[_0x53124d(0x1f0)]:return{'icon':_0x498922,'type':_0x3114ec[_0x53124d(0x1f0)],..._0x44e23c};case _0x3114ec[_0x53124d(0x230)]:return{'icon':_0x112678,'type':_0x3114ec[_0x53124d(0x230)],..._0x44e23c};case _0x3114ec[_0x53124d(0x211)]:return{'icon':_0x5eeae4,'type':_0x3114ec[_0x53124d(0x211)],..._0x44e23c};case _0x3114ec[_0x53124d(0x20b)]:return{'icon':_0x2a0cf6,'type':_0x3114ec[_0x53124d(0x20b)],..._0x44e23c};case _0x3114ec[_0x53124d(0x1f2)]:return{'icon':_0x671eb8,'type':_0x3114ec[_0x53124d(0x1f2)],..._0x44e23c};}});}[_0x362b74(0x225)](_0x4e1af7){const _0x479c0a=_0x362b74;switch(_0x4e1af7){case _0x3114ec[_0x479c0a(0x1e9)]:return _0x479c0a(0x20f);case _0x3114ec[_0x479c0a(0x21b)]:return _0x479c0a(0x206);default:return _0x479c0a(0x1f1);}}[_0x362b74(0x216)](_0x3c0cc2,_0x1cbe3f){const _0x5af9e8=_0x362b74,_0x4a1f7d=this[_0x5af9e8(0x21e)],_0x3deff0=new _0x3c0cc2(_0x4a1f7d[_0x5af9e8(0x1f7)]),_0x510e08=_0x4a1f7d[_0x5af9e8(0x20a)][_0x5af9e8(0x219)](_0x5af9e8(0x1ea));return _0x3deff0[_0x5af9e8(0x1ff)](_0x5af9e8(0x200))['to'](_0x510e08),_0x3deff0['on'](_0x5af9e8(0x22d),()=>{const _0x3f95a6=_0x5af9e8;_0x510e08[_0x3f95a6(0x22d)](_0x1cbe3f);}),_0x3deff0;}[_0x362b74(0x1e3)](_0x344328){const _0x242c65=_0x362b74,{locale:_0x4dd66d}=this[_0x242c65(0x21e)],_0xac8835=this[_0x242c65(0x21e)][_0x242c65(0x221)][_0x242c65(0x219)](_0x242c65(0x20d)),_0x4336e2=_0x344328[0x0],_0x4608b2=this[_0x242c65(0x216)](_0x3c4cb8,_0x4336e2[_0x242c65(0x22f)]);return _0x4608b2[_0x242c65(0x22b)]=_0x4336e2[_0x242c65(0x22b)],_0x4608b2[_0x242c65(0x1ff)](_0x242c65(0x232))['to'](_0xac8835,_0x242c65(0x1e8),_0x41f859=>_0x394a7e(_0x4dd66d,_0x4336e2[_0x242c65(0x22f)],_0x41f859?_0x242c65(0x1ed):_0x242c65(0x1fd))[_0x242c65(0x1fb)]),_0x4608b2[_0x242c65(0x1f4)]=!0x0,_0x4608b2;}[_0x362b74(0x217)](_0x193ef4){const _0x2ccda1=_0x362b74,{locale:_0x574982}=this[_0x2ccda1(0x21e)],_0x304204=this[_0x2ccda1(0x21e)][_0x2ccda1(0x221)][_0x2ccda1(0x219)](_0x2ccda1(0x20d));return _0x193ef4[_0x2ccda1(0x1e6)](_0x8e25a1=>{const _0x2567c6=_0x2ccda1,_0x2456fd=this[_0x2567c6(0x216)](_0x3c4cb8,_0x8e25a1[_0x2567c6(0x22f)]);return _0x2456fd[_0x2567c6(0x1f3)]=!0x0,_0x2456fd[_0x2567c6(0x22b)]=_0x8e25a1[_0x2567c6(0x22b)],_0x2456fd[_0x2567c6(0x1ff)](_0x2567c6(0x232))['to'](_0x304204,_0x2567c6(0x1e8),_0xd27373=>_0x394a7e(_0x574982,_0x8e25a1[_0x2567c6(0x22f)],_0xd27373?_0x2567c6(0x1ed):_0x2567c6(0x1fd))[_0x2567c6(0x1fb)]),_0x2456fd;});}[_0x362b74(0x224)](_0x201ab2){const _0x2e6e5e=_0x362b74;return _0x201ab2[_0x2e6e5e(0x1e6)](_0x1b26e7=>{const _0x451cc6=_0x2e6e5e,_0x3be5ff=this[_0x451cc6(0x216)](_0x50729f,_0x1b26e7[_0x451cc6(0x22f)]);return _0x3be5ff[_0x451cc6(0x22b)]=_0x1b26e7[_0x451cc6(0x22b)],_0x3be5ff[_0x451cc6(0x232)]=_0x1b26e7[_0x451cc6(0x1e4)],_0x3be5ff;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2e28d1}from'ckeditor5/src/core.js';import{FileRepository as _0x28ab0f}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x26566a}from'./uploadcareediting.js';import{UploadUtils as _0x1fa32c}from'./utils/uploadutils.js';import{getImageUrls as _0x5b8a2d}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x2e28d1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x28ab0f,_0x26566a];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f7271=this['editor'];if(!!!_0x1f7271['config']['get']('uploadcare'))return;_0x1f7271['plugins']['get'](_0x28ab0f)['createUploadAdapter']=_0x5877af=>new k(_0x5877af,_0x1f7271),_0x1f7271['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4b02f2,{imageElement:_0x121688,data:_0x470c67})=>{_0x1f7271['model']['change'](_0x2e90c6=>{_0x2e90c6['setAttribute']('uploadcareImageId',_0x470c67['uploadcareImageId'],_0x121688);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x274b03,_0x28013d){this['loader']=_0x274b03,this['editor']=_0x28013d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3e5061=await this['loader']['file'];return _0x1fa32c['upload']({'file':_0x3e5061,'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':_0x16c7f3=>{_0x16c7f3&&_0x16c7f3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x16c7f3['value']);}})['then'](async _0x1be806=>{const {imageFallbackUrl:_0x8bb689,imageSources:_0x58a174}=_0x5b8a2d(_0x1be806['cdnUrl'],_0x1be806['imageInfo']['width']);return{'uploadcareImageId':_0x1be806['uuid'],'default':_0x8bb689,'sources':_0x58a174};})['catch'](()=>{const _0x46a979=t('Cannot\x20upload\x20file:')+('\x20'+_0x3e5061['name']+'.');return Promise['reject'](_0x46a979);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xb6f6af}from'../uploadcareconfig.js';export function getTranslation(_0x4a7469,_0x55d022,_0x257d84){const t=_0x4a7469['t'],_0x464174=_0x4a7469['t'];switch(_0x55d022){case _0xb6f6af['Local']:return{'text':_0x464174('Insert'===_0x257d84?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x464174('From\x20computer')};case _0xb6f6af['URL']:return{'text':'Insert'===_0x257d84?_0x464174('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x464174('Via\x20URL')};case _0xb6f6af['Dropbox']:return{'text':t('Insert'===_0x257d84?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xb6f6af['Facebook']:return{'text':t('Insert'===_0x257d84?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xb6f6af['GDrive']:return{'text':t('Insert'===_0x257d84?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xb6f6af['GPhotos']:return{'text':t('Insert'===_0x257d84?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xb6f6af['OneDrive']:return{'text':t('Insert'===_0x257d84?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x55d022;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x1af836=_0x267a;(function(_0x34b6f0,_0x19aeea){var _0x386738=_0x267a,_0xd64517=_0x34b6f0();while(!![]){try{var _0x193230=parseInt(_0x386738(0x134))/0x1*(parseInt(_0x386738(0x136))/0x2)+parseInt(_0x386738(0x132))/0x3*(parseInt(_0x386738(0x13b))/0x4)+parseInt(_0x386738(0x130))/0x5*(-parseInt(_0x386738(0x135))/0x6)+-parseInt(_0x386738(0x13a))/0x7*(parseInt(_0x386738(0x13c))/0x8)+parseInt(_0x386738(0x140))/0x9+parseInt(_0x386738(0x144))/0xa*(-parseInt(_0x386738(0x139))/0xb)+-parseInt(_0x386738(0x133))/0xc*(-parseInt(_0x386738(0x142))/0xd);if(_0x193230===_0x19aeea)break;else _0xd64517['push'](_0xd64517['shift']());}catch(_0x3134c0){_0xd64517['push'](_0xd64517['shift']());}}}(_0x5291,0x92c16));function _0x267a(_0x194ae7,_0x515fbe){var _0x52916d=_0x5291();return _0x267a=function(_0x267a8e,_0x562bf8){_0x267a8e=_0x267a8e-0x130;var _0x34e0b0=_0x52916d[_0x267a8e];return _0x34e0b0;},_0x267a(_0x194ae7,_0x515fbe);}import{FocusTracker as _0x1b3906}from'ckeditor5/src/utils.js';function _0x5291(){var _0x3e389f=['4wBcgyy','848OLCzHh','fire','forwardCycle','div','3264039nVsrYo','getFocusableElement','2514707Lsxzqb','createCollection','730wxyOAY','true','117525DDBDPA','focusCycler','3096621EMaFHC','60cdENKC','308623xCAjpH','60ZAqOVD','2XaKkJh','focusTracker','bindTemplate','103246VVBSdA','75901gepwZA'];_0x5291=function(){return _0x3e389f;};return _0x5291();}import{View as _0x177391,FocusCycler as _0x2129e8}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x177391{[_0x1af836(0x137)];[_0x1af836(0x131)];constructor(_0x1375b2){var _0x17a8b6=_0x1af836;super(_0x1375b2),this[_0x17a8b6(0x137)]=new _0x1b3906(),this[_0x17a8b6(0x131)]=new _0x2129e8({'focusables':this[_0x17a8b6(0x143)](),'focusTracker':this[_0x17a8b6(0x137)]});}[_0x1af836(0x141)](){var _0x48e919=_0x1af836;return{'tag':_0x48e919(0x13f),'attributes':{'aria-hidden':_0x48e919(0x145),'tabindex':'0'},'on':{'focus':this[_0x48e919(0x138)]['to'](()=>{var _0x1eceb5=_0x48e919;this[_0x1eceb5(0x131)][_0x1eceb5(0x13d)](_0x1eceb5(0x13e));})}};}}
|