@ckeditor/ckeditor5-uploadcare 47.7.0-alpha.1 → 47.7.0-alpha.2
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 _0xbc569c=_0x1c3b;(function(_0x2abf0f,_0x569f0d){const _0x55a587=_0x1c3b,_0x33f82d=_0x2abf0f();while(!![]){try{const _0x5b55fb=-parseInt(_0x55a587(0x1b2))/0x1*(parseInt(_0x55a587(0x1b1))/0x2)+parseInt(_0x55a587(0x1cf))/0x3+-parseInt(_0x55a587(0x1d5))/0x4+parseInt(_0x55a587(0x1b6))/0x5*(-parseInt(_0x55a587(0x1ee))/0x6)+-parseInt(_0x55a587(0x1d1))/0x7+parseInt(_0x55a587(0x1eb))/0x8*(parseInt(_0x55a587(0x1b5))/0x9)+parseInt(_0x55a587(0x1a8))/0xa*(parseInt(_0x55a587(0x1f5))/0xb);if(_0x5b55fb===_0x569f0d)break;else _0x33f82d['push'](_0x33f82d['shift']());}catch(_0x111cc9){_0x33f82d['push'](_0x33f82d['shift']());}}}(_0x3576,0x821a7));import{Plugin as _0xf5e65e}from'ckeditor5/src/core.js';import{Dialog as _0x4b8202}from'ckeditor5/src/ui.js';import{createElement as _0x2e920d,global as _0x23ba17,uid as _0x26013d}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x172c15}from'./uploadcarecommand.js';function _0x1c3b(_0x379ca7,_0xdb9aef){const _0x35765c=_0x3576();return _0x1c3b=function(_0x1c3b87,_0xda441a){_0x1c3b87=_0x1c3b87-0x1a1;let _0x5e3ec5=_0x35765c[_0x1c3b87];return _0x5e3ec5;},_0x1c3b(_0x379ca7,_0xdb9aef);}import{UploadcareUploadAdapter as _0x4500ab}from'./uploadcareuploadadapter.js';function _0x3576(){const _0xd67287=['add','listenTo','editing','contentLanguage','commands','downcast','uploader-','10OOgIET','_initConfig','_configElement','requires','get','afterInit','ctxElement','map','iconHrefResolver','19772tqVUpA','107llKEEr','init','once','9DMvHtm','4913515gyPjOK','_initCtx','uploadcareImageReplace','#uc-icon-arrow-down','cleanupImage','conversion','for','isPremiumPlugin','_initImageProcessingIndicator','extend','input[uploadcare-file-input]','_ctxElement','view','\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','replaceImageSource','destroy','document','uc-upload-ctx-provider','render','uploadcareImageId','querySelector','upcast','body','uploadcare.pubkey','data-uc-image-id','1163415FoDXVF','isRegistered','1418998iSGVzZ','locale','imageBlock','getAttribute','1166192JYgtDn','pluginName','join','execute','elementToAttribute','uc-config','appendChild','insertImage','PictureEditing','removeAttribute','model','href','UploadcareEditing','ucContextId','uploadcare.uploader','uploadcare','attributeToAttribute','true','getSelectedElement','_initSchema','config','schema','3542568wbDEmF','fromCharCode','isOfficialPlugin','6wXHPwH','editor','selection','imageInline','closeMax','remove','_initConversion','24607484ZNxCcX','configElement'];_0x3576=function(){return _0xd67287;};return _0x3576();}import{showImageProcessingIndicator as _0x2b7a80}from'./utils/editingutils.js';export class UploadcareEditing extends _0xf5e65e{[_0xbc569c(0x1aa)]=null;[_0xbc569c(0x1c1)]=null;static get[_0xbc569c(0x1d6)](){const _0x7d4ff=_0xbc569c;return _0x7d4ff(0x1e1);}static get[_0xbc569c(0x1ab)](){const _0x1ca528=_0xbc569c;return[_0x1ca528(0x1dd),_0x4500ab,_0x4b8202];}static get[_0xbc569c(0x1ed)](){return!0x0;}static get[_0xbc569c(0x1bd)](){return!0x0;}[_0xbc569c(0x1e2)];get[_0xbc569c(0x1f6)](){const _0x1edd9c=_0xbc569c;return this[_0x1edd9c(0x1aa)];}get[_0xbc569c(0x1ae)](){const _0x492603=_0xbc569c;return this[_0x492603(0x1c1)];}constructor(_0x302ef0){const _0x542cb4=_0xbc569c;super(_0x302ef0),this[_0x542cb4(0x1e2)]=_0x26013d();}[_0xbc569c(0x1b3)](){const _0x423af6=_0xbc569c,_0x46c9bd=this[_0x423af6(0x1ef)];_0x46c9bd[_0x423af6(0x1a5)][_0x423af6(0x1a1)](_0x423af6(0x1e4),new _0x172c15(_0x46c9bd));}[_0xbc569c(0x1ad)](){const _0x1dc0ff=_0xbc569c;this[_0x1dc0ff(0x1e8)](),this[_0x1dc0ff(0x1f4)](),this[_0x1dc0ff(0x1a9)](),this[_0x1dc0ff(0x1b7)](),this[_0x1dc0ff(0x1be)](),this[_0x1dc0ff(0x1a2)](this[_0x1dc0ff(0x1ef)],_0x1dc0ff(0x1c5),()=>{const _0x2767e2=_0x1dc0ff;this[_0x2767e2(0x1aa)]&&(this[_0x2767e2(0x1aa)][_0x2767e2(0x1f3)](),this[_0x2767e2(0x1aa)]=null),this[_0x2767e2(0x1c1)]&&(this[_0x2767e2(0x1c1)][_0x2767e2(0x1f3)](),this[_0x2767e2(0x1c1)]=null);const _0x5e3858=_0x23ba17[_0x2767e2(0x1c6)][_0x2767e2(0x1ca)](_0x2767e2(0x1c0));_0x5e3858&&_0x5e3858[_0x2767e2(0x1f3)]();}),async function(_0x47c6d7){const _0x4e2aa5=_0x205a24([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]),_0x48defc=0x535f8c3a,_0x192984=0x53580b1a^_0x48defc,_0x36a4dc=window[_0x205a24([0x44,0x61,0x74,0x65])][_0x205a24([0x6e,0x6f,0x77])](),_0x5e41c4=_0x47c6d7[_0x205a24([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4226c6=new window[(_0x205a24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e7f8a=>{_0x5e41c4[_0x205a24([0x6f,0x6e,0x63,0x65])](_0x205a24([0x72,0x65,0x61,0x64,0x79]),_0x4e7f8a);}),_0xc1711f={[_0x205a24([0x6b,0x74,0x79])]:_0x205a24([0x45,0x43]),[_0x205a24([0x75,0x73,0x65])]:_0x205a24([0x73,0x69,0x67]),[_0x205a24([0x63,0x72,0x76])]:_0x205a24([0x50,0x2d,0x32,0x35,0x36]),[_0x205a24([0x78])]:_0x205a24([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]),[_0x205a24([0x79])]:_0x205a24([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]),[_0x205a24([0x61,0x6c,0x67])]:_0x205a24([0x45,0x53,0x32,0x35,0x36])},_0x56a986=_0x5e41c4[_0x205a24([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x205a24([0x67,0x65,0x74])](_0x205a24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a9d12(){let _0xd90a02,_0x13e6bd=null,_0x3cd214=null;try{if(_0x56a986==_0x205a24([0x47,0x50,0x4c]))return _0x205a24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd90a02=_0x3f86da(),!_0xd90a02)return _0x205a24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd90a02[_0x205a24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3cd214=_0x4528f6(_0xd90a02[_0x205a24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd90a02[_0x205a24([0x6a,0x74,0x69])])),await _0x5e91e2()?_0x1ef136()?_0x23f98f()?_0x205a24([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5f54a4()?(_0xd90a02[_0x205a24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x205a24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x13e6bd=_0xf24fcf(_0x205a24([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x566400()):_0x205a24([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x205a24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x205a24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x205a24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23f98f(){const _0x287ac5=[_0x205a24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x205a24([0x74,0x72,0x69,0x61,0x6c])][_0x205a24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd90a02[_0x205a24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36a4dc/0x3e8:0xe10*_0x192984;return _0xd90a02[_0x205a24([0x65,0x78,0x70])]<_0x287ac5;}function _0x1ef136(){const _0x60e417=_0xd90a02[_0x205a24([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x60e417&&(!!_0x60e417[_0x205a24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x205a24([0x2a]))||!!_0x60e417[_0x205a24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x205a24([0x55,0x50,0x4c,0x43])));}function _0x5f54a4(){const _0x3d5148=_0x1c3b,_0x58ad26=_0xd90a02[_0x205a24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58ad26||0x0==_0x58ad26[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x45adc7}=new URL(window[_0x205a24([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3d5148(0x1e0)]);if(_0x58ad26[_0x205a24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45adc7))return!0x0;const _0x3a1e1f=_0x45adc7[_0x205a24([0x73,0x70,0x6c,0x69,0x74])](_0x205a24([0x2e]));return _0x58ad26[_0x205a24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49dbdd=>_0x49dbdd[_0x205a24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x205a24([0x2a])))[_0x205a24([0x6d,0x61,0x70])](_0x278b21=>_0x278b21[_0x205a24([0x73,0x70,0x6c,0x69,0x74])](_0x205a24([0x2e])))[_0x205a24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ba6ee=>_0x1ba6ee[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a1e1f[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x205a24([0x6d,0x61,0x70])](_0x25c964=>Array(_0x3a1e1f[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x25c964[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x205a24([0x66,0x69,0x6c,0x6c])](_0x25c964[0x0]===_0x205a24([0x2a])?_0x205a24([0x2a]):'')[_0x205a24([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x25c964))[_0x205a24([0x73,0x6f,0x6d,0x65])](_0x103eb5=>_0x3a1e1f[_0x205a24([0x65,0x76,0x65,0x72,0x79])]((_0x19b06a,_0x212fec)=>_0x103eb5[_0x212fec]===_0x19b06a||_0x103eb5[_0x212fec]===_0x205a24([0x2a])));}function _0x566400(){return _0x13e6bd&&_0x3cd214?new window[(_0x205a24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x384a67,_0x44a8d3)=>{_0x13e6bd[_0x205a24([0x74,0x68,0x65,0x6e])](_0x384a67,_0x44a8d3),_0x3cd214[_0x205a24([0x74,0x68,0x65,0x6e])](_0xf4ff2d=>{_0xf4ff2d!=_0x205a24([0x56,0x61,0x6c,0x69,0x64])&&_0x384a67(_0xf4ff2d);},_0x44a8d3);}):_0x13e6bd||_0x3cd214||_0x205a24([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4528f6(_0xe4a580,_0x76e9f0){return new window[(_0x205a24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2581f1=>{if(_0x3ef601())return _0x2581f1(_0x205a24([0x56,0x61,0x6c,0x69,0x64]));_0x1470ee(),_0x5e41c4[_0x205a24([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x205a24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x533c58=!0x1;const _0xaf199d=_0x26013d();function _0x538bc5(_0x170cd8){return!!_0x170cd8&&(typeof _0x170cd8===_0x205a24([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x170cd8===_0x205a24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x170cd8[_0x205a24([0x74,0x68,0x65,0x6e])]===_0x205a24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x170cd8[_0x205a24([0x63,0x61,0x74,0x63,0x68])]===_0x205a24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2812ce(_0x1d3065){_0x3dd624(_0x1d3065)[_0x205a24([0x74,0x68,0x65,0x6e])](_0x5a76ad=>{if(!_0x5a76ad||_0x5a76ad[_0x205a24([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x205a24([0x6f,0x6b]))return _0x205a24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ca3e0(_0x46980f(_0xaf199d+_0x76e9f0))!=_0x5a76ad[_0x205a24([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x205a24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x205a24([0x56,0x61,0x6c,0x69,0x64]);})[_0x205a24([0x74,0x68,0x65,0x6e])](_0x1482b8=>(_0x8eada(),_0x1482b8),()=>{const _0x228b32=_0x3ad0fe();return null==_0x228b32?(_0x8eada(),_0x205a24([0x56,0x61,0x6c,0x69,0x64])):_0x205a24(_0x36a4dc-_0x228b32>(0x7753083a^_0x48defc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x205a24([0x74,0x68,0x65,0x6e])](_0x2581f1)[_0x205a24([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2581f1(_0x205a24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33cf7a=0x536962ba^_0x48defc;function _0x8eada(){const _0x299836=_0x205a24([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ca3e0(_0x46980f(_0xe4a580)),_0x5183e6=_0x2bbf1f(_0x4ca3e0(window[_0x205a24([0x4d,0x61,0x74,0x68])][_0x205a24([0x63,0x65,0x69,0x6c])](_0x36a4dc/_0x33cf7a)));window[_0x205a24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x205a24([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x299836,_0x5183e6);}function _0x3ad0fe(){const _0x5e6f08=_0x205a24([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ca3e0(_0x46980f(_0xe4a580)),_0x521240=window[_0x205a24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x205a24([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e6f08);return _0x521240?window[_0x205a24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bbf1f(_0x521240),0x10)*_0x33cf7a:null;}function _0x3dd624(_0x282403){return new window[(_0x205a24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b33d8,_0x223fd7)=>{_0x282403[_0x205a24([0x74,0x68,0x65,0x6e])](_0x2b33d8,_0x223fd7),window[_0x205a24([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x223fd7,0x535e58fa^_0x48defc);});}}_0x5e41c4[_0x205a24([0x6f,0x6e])](_0x205a24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x568568,_0x27ebc0)=>{if(_0x27ebc0[0x0]!=_0xe4a580)return _0x2581f1(_0x205a24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x27ebc0[0x1]={..._0x27ebc0[0x1],[_0x205a24([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xaf199d};},{[_0x205a24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x205a24([0x68,0x69,0x67,0x68])}),_0x5e41c4[_0x205a24([0x6f,0x6e])](_0x205a24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d8797=>{_0x538bc5(_0x3d8797[_0x205a24([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x533c58=!0x0,_0x2812ce(_0x3d8797[_0x205a24([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x205a24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x205a24([0x6c,0x6f,0x77])}),_0x4226c6[_0x205a24([0x74,0x68,0x65,0x6e])](()=>{_0x533c58||_0x2581f1(_0x205a24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ef601(){return _0x5e41c4[_0x205a24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x205a24([0x76,0x69,0x65,0x77])][_0x205a24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x205a24([0x61,0x75,0x74,0x6f]);}function _0x1470ee(){_0x5e41c4[_0x205a24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x205a24([0x76,0x69,0x65,0x77])][_0x205a24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x205a24([0x61,0x75,0x74,0x6f]);}}function _0xf24fcf(_0x4263bb){const _0x9cda13=[new window[(_0x205a24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x161d6f=>setTimeout(_0x161d6f,0x5356b2f6^_0x48defc)),_0x4226c6[_0x205a24([0x74,0x68,0x65,0x6e])](()=>new window[(_0x205a24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2367f9=>{let _0x5e9041=0x0;_0x5e41c4[_0x205a24([0x6d,0x6f,0x64,0x65,0x6c])][_0x205a24([0x6f,0x6e])](_0x205a24([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f2287,_0x30c5af)=>{_0x30c5af[0x0][_0x205a24([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e9041++,_0x5e9041==(0x535f89d2^_0x48defc)&&(_0x2367f9(),_0x5f2287[_0x205a24([0x6f,0x66,0x66])]());});}))];return window[_0x205a24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x205a24([0x72,0x61,0x63,0x65])](_0x9cda13)[_0x205a24([0x74,0x68,0x65,0x6e])](()=>_0x4263bb);}async function _0x476dfa(){await _0x4226c6,_0x5e41c4[_0x205a24([0x6d,0x6f,0x64,0x65,0x6c])][_0x205a24([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c43c5,_0x5e41c4[_0x205a24([0x6d,0x6f,0x64,0x65,0x6c])][_0x205a24([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c43c5,_0x5e41c4[_0x205a24([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x205a24([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4137a7(_0xb2ad30){const _0xd4defe=_0xd6afaf();_0x5e41c4[_0xd4defe]=_0x205a24([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb2ad30,_0xb2ad30!=_0x205a24([0x56,0x61,0x6c,0x69,0x64])&&_0x476dfa();}function _0xd6afaf(){const _0x557a58=window[_0x205a24([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x205a24([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x205a24([0x6e,0x6f,0x77])]())[_0x205a24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x205a24([0x2e]),'');let _0x594931=_0x205a24([0x68]);for(let _0x227453=0x0;_0x227453<_0x557a58[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x227453+=0x2){let _0x1843cd=window[_0x205a24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x557a58[_0x205a24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x227453,_0x227453+0x2));_0x1843cd>=_0x4e2aa5[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1843cd-=_0x4e2aa5[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x594931+=_0x4e2aa5[_0x1843cd];}return _0x594931;}function _0x3f86da(){const _0x1cb7f5=_0x56a986[_0x205a24([0x73,0x70,0x6c,0x69,0x74])](_0x205a24([0x2e]));if(0x3!=_0x1cb7f5[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53efaa(_0x1cb7f5[0x1]);function _0x53efaa(_0x4f5303){const _0x4f93bb=_0x345a3f(_0x4f5303);return _0x4f93bb&&_0x5d66e1()?_0x4f93bb:null;function _0x5d66e1(){const _0x1c99cf=_0x4f93bb[_0x205a24([0x6a,0x74,0x69])],_0x3a32b1=window[_0x205a24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c99cf[_0x205a24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c99cf[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3add54={..._0x4f93bb,[_0x205a24([0x6a,0x74,0x69])]:_0x1c99cf[_0x205a24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1c99cf[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3add54[_0x205a24([0x76,0x63])],_0x46980f(_0x3add54)==_0x3a32b1;}}}async function _0x5e91e2(){let _0x51c68a=!0x0;try{const _0x423178=_0x56a986[_0x205a24([0x73,0x70,0x6c,0x69,0x74])](_0x205a24([0x2e])),[_0x3ce199,_0x43ca61,_0x82a668]=_0x423178;return _0x176577(_0x3ce199),await _0x5c9021(_0x3ce199,_0x43ca61,_0x82a668),_0x51c68a;}catch{return!0x1;}function _0x176577(_0x1e2910){const _0xf15d70=_0x345a3f(_0x1e2910);_0xf15d70&&_0xf15d70[_0x205a24([0x61,0x6c,0x67])]==_0x205a24([0x45,0x53,0x32,0x35,0x36])||(_0x51c68a=!0x1);}async function _0x5c9021(_0x17b5a0,_0x2e3381,_0x15b4bd){const _0x3fad0d=window[_0x205a24([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x205a24([0x66,0x72,0x6f,0x6d])](_0x15638f(_0x15b4bd),_0xedde66=>_0xedde66[_0x205a24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x559565=new window[(_0x205a24([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x205a24([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17b5a0+_0x205a24([0x2e])+_0x2e3381),_0x33f8de=window[_0x205a24([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x205a24([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33f8de)return;const _0x5e9d0f=await _0x33f8de[_0x205a24([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x205a24([0x6a,0x77,0x6b]),_0xc1711f,{[_0x205a24([0x6e,0x61,0x6d,0x65])]:_0x205a24([0x45,0x43,0x44,0x53,0x41]),[_0x205a24([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x205a24([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x205a24([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33f8de[_0x205a24([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x205a24([0x6e,0x61,0x6d,0x65])]:_0x205a24([0x45,0x43,0x44,0x53,0x41]),[_0x205a24([0x68,0x61,0x73,0x68])]:{[_0x205a24([0x6e,0x61,0x6d,0x65])]:_0x205a24([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e9d0f,_0x3fad0d,_0x559565)||(_0x51c68a=!0x1);}}function _0x345a3f(_0xe97b88){return _0xe97b88[_0x205a24([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x205a24([0x65,0x79]))?JSON[_0x205a24([0x70,0x61,0x72,0x73,0x65])](_0x15638f(_0xe97b88)):null;}function _0x15638f(_0x2cb8fd){return window[_0x205a24([0x61,0x74,0x6f,0x62])](_0x2cb8fd[_0x205a24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x205a24([0x2b]))[_0x205a24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x205a24([0x2f])));}function _0x46980f(_0x23dc35){let _0x12b852=0x1505;function _0x7f1695(_0x44c57b){for(let _0x2bd818=0x0;_0x2bd818<_0x44c57b[_0x205a24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bd818++){const _0x3a89bc=_0x44c57b[_0x205a24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bd818);_0x12b852=(_0x12b852<<0x5)+_0x12b852+_0x3a89bc,_0x12b852&=_0x12b852;}}function _0x2b3270(_0xf9b1e5){Array[_0x205a24([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf9b1e5)?_0xf9b1e5[_0x205a24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b3270):_0xf9b1e5&&typeof _0xf9b1e5==_0x205a24([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x205a24([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf9b1e5)[_0x205a24([0x73,0x6f,0x72,0x74])]()[_0x205a24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x549e1a,_0x4a04a1])=>{_0x7f1695(_0x549e1a),_0x2b3270(_0x4a04a1);}):_0x7f1695(window[_0x205a24([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf9b1e5));}return _0x2b3270(_0x23dc35),_0x12b852>>>0x0;}function _0x4ca3e0(_0xcf68eb){return _0xcf68eb[_0x205a24([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x205a24([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x205a24([0x30]));}function _0x2bbf1f(_0x57eac4){return _0x57eac4[_0x205a24([0x73,0x70,0x6c,0x69,0x74])]('')[_0x205a24([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x205a24([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c43c5(){}function _0x205a24(_0x33520b){const _0xa538f5=_0x1c3b;return _0x33520b[_0xa538f5(0x1af)](_0x1150c5=>String[_0xa538f5(0x1ec)](_0x1150c5))[_0xa538f5(0x1d7)]('');}_0x4137a7(await _0x5a9d12());}(this);}[_0xbc569c(0x1e8)](){const _0x3f0b73=_0xbc569c,_0x4d0c3c=this[_0x3f0b73(0x1ef)][_0x3f0b73(0x1df)][_0x3f0b73(0x1ea)];_0x4d0c3c[_0x3f0b73(0x1d0)](_0x3f0b73(0x1d3))&&_0x4d0c3c[_0x3f0b73(0x1bf)](_0x3f0b73(0x1d3),{'allowAttributes':[_0x3f0b73(0x1c9)]}),_0x4d0c3c[_0x3f0b73(0x1d0)](_0x3f0b73(0x1f1))&&_0x4d0c3c[_0x3f0b73(0x1bf)](_0x3f0b73(0x1f1),{'allowAttributes':[_0x3f0b73(0x1c9)]});}[_0xbc569c(0x1f4)](){const _0x55871d=_0xbc569c,_0x53a0c0=this[_0x55871d(0x1ef)];_0x53a0c0[_0x55871d(0x1bb)][_0x55871d(0x1bc)](_0x55871d(0x1a6))[_0x55871d(0x1e5)]({'model':_0x55871d(0x1c9),'view':_0x55871d(0x1ce)}),_0x53a0c0[_0x55871d(0x1bb)][_0x55871d(0x1bc)](_0x55871d(0x1cb))[_0x55871d(0x1d9)]({'model':{'key':_0x55871d(0x1c9),'value':_0x418f72=>_0x418f72[_0x55871d(0x1d4)](_0x55871d(0x1ce))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x269e85=_0x53a0c0[_0x55871d(0x1a5)][_0x55871d(0x1ac)](_0x55871d(0x1c4));_0x269e85&&this[_0x55871d(0x1a2)](_0x269e85,_0x55871d(0x1ba),(_0x3af787,[_0x388aa2,_0x2a9395])=>{const _0x476be0=_0x55871d;_0x388aa2[_0x476be0(0x1de)](_0x476be0(0x1c9),_0x2a9395);});}[_0xbc569c(0x1a9)](){const _0x2c86c6=_0xbc569c,_0x100f26=this[_0x2c86c6(0x1ef)][_0x2c86c6(0x1e9)][_0x2c86c6(0x1ac)](_0x2c86c6(0x1e3))||{},_0x263857=this[_0x2c86c6(0x1ef)][_0x2c86c6(0x1e9)][_0x2c86c6(0x1ac)](_0x2c86c6(0x1cd))||'';this[_0x2c86c6(0x1aa)]=_0x2e920d(_0x23ba17[_0x2c86c6(0x1c6)],_0x2c86c6(0x1da),{..._0x100f26,'pubkey':_0x263857,'ctx-name':_0x2c86c6(0x1a7)+this[_0x2c86c6(0x1e2)],'sourceList':'','imgOnly':_0x2c86c6(0x1e6),'removeCopyright':_0x2c86c6(0x1e6),'localeName':this[_0x2c86c6(0x1ef)][_0x2c86c6(0x1d2)][_0x2c86c6(0x1a4)],'externalSourcesEmbedCss':_0x2c86c6(0x1c3)}),this[_0x2c86c6(0x1aa)][_0x2c86c6(0x1b0)]=_0x1674ff=>{const _0x369089=_0x2c86c6;if(_0x369089(0x1f2)==_0x1674ff)return _0x369089(0x1b9);},_0x23ba17[_0x2c86c6(0x1c6)][_0x2c86c6(0x1cc)][_0x2c86c6(0x1db)](this[_0x2c86c6(0x1aa)]);}[_0xbc569c(0x1b7)](){const _0x33a6dd=_0xbc569c;this[_0x33a6dd(0x1c1)]=_0x2e920d(_0x23ba17[_0x33a6dd(0x1c6)],_0x33a6dd(0x1c7),{'ctx-name':_0x33a6dd(0x1a7)+this[_0x33a6dd(0x1e2)]}),_0x23ba17[_0x33a6dd(0x1c6)][_0x33a6dd(0x1cc)][_0x33a6dd(0x1db)](this[_0x33a6dd(0x1c1)]);}[_0xbc569c(0x1be)](){const _0x43a5f3=_0xbc569c,_0xfb1014=this[_0x43a5f3(0x1ef)][_0x43a5f3(0x1a5)][_0x43a5f3(0x1ac)](_0x43a5f3(0x1dc));_0xfb1014&&this[_0x43a5f3(0x1a2)](_0xfb1014,_0x43a5f3(0x1d8),()=>{const _0x26b9e6=_0x43a5f3,_0x36c37e=this[_0x26b9e6(0x1ef)][_0x26b9e6(0x1df)][_0x26b9e6(0x1c6)][_0x26b9e6(0x1f0)][_0x26b9e6(0x1e7)]();_0x36c37e&&_0x36c37e[_0x26b9e6(0x1d4)](_0x26b9e6(0x1c9))&&this[_0x26b9e6(0x1ef)][_0x26b9e6(0x1a3)][_0x26b9e6(0x1c2)][_0x26b9e6(0x1b4)](_0x26b9e6(0x1c8),()=>{const _0x35bde5=_0x26b9e6;_0x2b7a80(this[_0x35bde5(0x1ef)],_0x36c37e);});});const _0x119576=this[_0x43a5f3(0x1ef)][_0x43a5f3(0x1a5)][_0x43a5f3(0x1ac)](_0x43a5f3(0x1b8));_0x119576&&this[_0x43a5f3(0x1a2)](_0x119576,_0x43a5f3(0x1d8),()=>{const _0x2dc2f2=_0x43a5f3,_0x4ac7d4=this[_0x2dc2f2(0x1ef)][_0x2dc2f2(0x1df)][_0x2dc2f2(0x1c6)][_0x2dc2f2(0x1f0)][_0x2dc2f2(0x1e7)]();_0x4ac7d4&&_0x4ac7d4[_0x2dc2f2(0x1d4)](_0x2dc2f2(0x1c9))&&this[_0x2dc2f2(0x1ef)][_0x2dc2f2(0x1a3)][_0x2dc2f2(0x1c2)][_0x2dc2f2(0x1b4)](_0x2dc2f2(0x1c8),()=>{const _0x52cae0=_0x2dc2f2;_0x2b7a80(this[_0x52cae0(0x1ef)],_0x4ac7d4);});});}}
|
|
23
|
+
const _0x333856=_0x1529;(function(_0x378477,_0x264c2f){const _0x35b970=_0x1529,_0x5a3bcb=_0x378477();while(!![]){try{const _0x592a58=-parseInt(_0x35b970(0x85))/0x1+parseInt(_0x35b970(0x8a))/0x2+parseInt(_0x35b970(0xc3))/0x3*(-parseInt(_0x35b970(0x99))/0x4)+-parseInt(_0x35b970(0x9b))/0x5+-parseInt(_0x35b970(0xd4))/0x6+-parseInt(_0x35b970(0x83))/0x7*(-parseInt(_0x35b970(0x89))/0x8)+parseInt(_0x35b970(0xc4))/0x9*(parseInt(_0x35b970(0xb1))/0xa);if(_0x592a58===_0x264c2f)break;else _0x5a3bcb['push'](_0x5a3bcb['shift']());}catch(_0x1bf2cb){_0x5a3bcb['push'](_0x5a3bcb['shift']());}}}(_0x593b,0x54061));import{Plugin as _0x5efb59}from'ckeditor5/src/core.js';function _0x593b(){const _0x4bb6bf=['1394616ImgYMM','113982cLyUxp','_initConversion','input[uploadcare-file-input]','uploadcare','insertImage','elementToAttribute','configElement','_initImageProcessingIndicator','fromCharCode','editing','uploadcare.uploader','getAttribute','isRegistered','for','_configElement','4tMHvXq','_initSchema','533830wfYxul','model','execute','PictureEditing','contentLanguage','extend','editor','schema','true','add','map','isPremiumPlugin','init','\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','appendChild','destroy','cleanupImage','getSelectedElement','_ctxElement','uploadcareImageReplace','remove','uploader-','7326010KbRxIf','ctxElement','upcast','config','_initConfig','listenTo','ucContextId','once','get','uc-config','requires','uploadcareImageId','uploadcare.pubkey','afterInit','data-uc-image-id','join','#uc-icon-arrow-down','removeAttribute','820905LOAVkS','9GlEvbt','commands','isOfficialPlugin','imageInline','uc-upload-ctx-provider','body','imageBlock','locale','downcast','selection','render','querySelector','document','pluginName','closeMax','replaceImageSource','2089914sqPrVP','conversion','iconHrefResolver','UploadcareEditing','14MhjjLC','href','65365WmzZuO','_initCtx','view','attributeToAttribute'];_0x593b=function(){return _0x4bb6bf;};return _0x593b();}import{Dialog as _0x2bac8e}from'ckeditor5/src/ui.js';import{createElement as _0x41fd7f,global as _0x456893,uid as _0x182fbe}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3a10c7}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x184f77}from'./uploadcareuploadadapter.js';function _0x1529(_0x3f4562,_0x3cb0dc){const _0x593bce=_0x593b();return _0x1529=function(_0x152992,_0x52e547){_0x152992=_0x152992-0x83;let _0xb7ad2=_0x593bce[_0x152992];return _0xb7ad2;},_0x1529(_0x3f4562,_0x3cb0dc);}import{showImageProcessingIndicator as _0x2d5c12}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5efb59{[_0x333856(0x98)]=null;[_0x333856(0xad)]=null;static get[_0x333856(0xd1)](){const _0x2fafbe=_0x333856;return _0x2fafbe(0xd7);}static get[_0x333856(0xbb)](){const _0x3c411d=_0x333856;return[_0x3c411d(0x9e),_0x184f77,_0x2bac8e];}static get[_0x333856(0xc6)](){return!0x0;}static get[_0x333856(0xa6)](){return!0x0;}[_0x333856(0xb7)];get[_0x333856(0x90)](){const _0x543101=_0x333856;return this[_0x543101(0x98)];}get[_0x333856(0xb2)](){const _0x467260=_0x333856;return this[_0x467260(0xad)];}constructor(_0x1c45e9){const _0x523480=_0x333856;super(_0x1c45e9),this[_0x523480(0xb7)]=_0x182fbe();}[_0x333856(0xa7)](){const _0x4ea539=_0x333856,_0x4558d6=this[_0x4ea539(0xa1)];_0x4558d6[_0x4ea539(0xc5)][_0x4ea539(0xa4)](_0x4ea539(0x8d),new _0x3a10c7(_0x4558d6));}[_0x333856(0xbe)](){const _0xb908a2=_0x333856;this[_0xb908a2(0x9a)](),this[_0xb908a2(0x8b)](),this[_0xb908a2(0xb5)](),this[_0xb908a2(0x86)](),this[_0xb908a2(0x91)](),this[_0xb908a2(0xb6)](this[_0xb908a2(0xa1)],_0xb908a2(0xaa),()=>{const _0x4b2bda=_0xb908a2;this[_0x4b2bda(0x98)]&&(this[_0x4b2bda(0x98)][_0x4b2bda(0xaf)](),this[_0x4b2bda(0x98)]=null),this[_0x4b2bda(0xad)]&&(this[_0x4b2bda(0xad)][_0x4b2bda(0xaf)](),this[_0x4b2bda(0xad)]=null);const _0x57f17c=_0x456893[_0x4b2bda(0xd0)][_0x4b2bda(0xcf)](_0x4b2bda(0x8c));_0x57f17c&&_0x57f17c[_0x4b2bda(0xaf)]();}),async function(_0x53bb69){const _0x1ec18a=_0x15ef4d([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]),_0x28f4a8=0x535f8c3a,_0x22846e=0x53580b1a^_0x28f4a8,_0x3919cd=window[_0x15ef4d([0x44,0x61,0x74,0x65])][_0x15ef4d([0x6e,0x6f,0x77])](),_0x23f38a=_0x53bb69[_0x15ef4d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x393255=new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221ea5=>{_0x23f38a[_0x15ef4d([0x6f,0x6e,0x63,0x65])](_0x15ef4d([0x72,0x65,0x61,0x64,0x79]),_0x221ea5);}),_0x2e4756={[_0x15ef4d([0x6b,0x74,0x79])]:_0x15ef4d([0x45,0x43]),[_0x15ef4d([0x75,0x73,0x65])]:_0x15ef4d([0x73,0x69,0x67]),[_0x15ef4d([0x63,0x72,0x76])]:_0x15ef4d([0x50,0x2d,0x32,0x35,0x36]),[_0x15ef4d([0x78])]:_0x15ef4d([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]),[_0x15ef4d([0x79])]:_0x15ef4d([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]),[_0x15ef4d([0x61,0x6c,0x67])]:_0x15ef4d([0x45,0x53,0x32,0x35,0x36])},_0x4987d0=_0x23f38a[_0x15ef4d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15ef4d([0x67,0x65,0x74])](_0x15ef4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c1125(){let _0x382be0,_0x6c625=null,_0x33bc07=null;try{if(_0x4987d0==_0x15ef4d([0x47,0x50,0x4c]))return _0x15ef4d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x382be0=_0x375a0f(),!_0x382be0)return _0x15ef4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x382be0[_0x15ef4d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33bc07=_0x182e34(_0x382be0[_0x15ef4d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x382be0[_0x15ef4d([0x6a,0x74,0x69])])),await _0x5b9991()?_0x27981f()?_0x1694a9()?_0x15ef4d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24325f()?(_0x382be0[_0x15ef4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15ef4d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6c625=_0x3a87d5(_0x15ef4d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x511468()):_0x15ef4d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15ef4d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15ef4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x15ef4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1694a9(){const _0x5a9856=[_0x15ef4d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15ef4d([0x74,0x72,0x69,0x61,0x6c])][_0x15ef4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x382be0[_0x15ef4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3919cd/0x3e8:0xe10*_0x22846e;return _0x382be0[_0x15ef4d([0x65,0x78,0x70])]<_0x5a9856;}function _0x27981f(){const _0x137d76=_0x382be0[_0x15ef4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x137d76&&(!!_0x137d76[_0x15ef4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ef4d([0x2a]))||!!_0x137d76[_0x15ef4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ef4d([0x55,0x50,0x4c,0x43])));}function _0x24325f(){const _0x292233=_0x1529,_0x254f7d=_0x382be0[_0x15ef4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x254f7d||0x0==_0x254f7d[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x115666}=new URL(window[_0x15ef4d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x292233(0x84)]);if(_0x254f7d[_0x15ef4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x115666))return!0x0;const _0x4ab29d=_0x115666[_0x15ef4d([0x73,0x70,0x6c,0x69,0x74])](_0x15ef4d([0x2e]));return _0x254f7d[_0x15ef4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53d082=>_0x53d082[_0x15ef4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ef4d([0x2a])))[_0x15ef4d([0x6d,0x61,0x70])](_0x3c18a6=>_0x3c18a6[_0x15ef4d([0x73,0x70,0x6c,0x69,0x74])](_0x15ef4d([0x2e])))[_0x15ef4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x537135=>_0x537135[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ab29d[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15ef4d([0x6d,0x61,0x70])](_0x5a49ce=>Array(_0x4ab29d[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5a49ce[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15ef4d([0x66,0x69,0x6c,0x6c])](_0x5a49ce[0x0]===_0x15ef4d([0x2a])?_0x15ef4d([0x2a]):'')[_0x15ef4d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5a49ce))[_0x15ef4d([0x73,0x6f,0x6d,0x65])](_0x373e41=>_0x4ab29d[_0x15ef4d([0x65,0x76,0x65,0x72,0x79])]((_0x4db9a1,_0xeb8114)=>_0x373e41[_0xeb8114]===_0x4db9a1||_0x373e41[_0xeb8114]===_0x15ef4d([0x2a])));}function _0x511468(){return _0x6c625&&_0x33bc07?new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb7ef6c,_0x5f58fb)=>{_0x6c625[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0xb7ef6c,_0x5f58fb),_0x33bc07[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0xf44fcd=>{_0xf44fcd!=_0x15ef4d([0x56,0x61,0x6c,0x69,0x64])&&_0xb7ef6c(_0xf44fcd);},_0x5f58fb);}):_0x6c625||_0x33bc07||_0x15ef4d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x182e34(_0xd6e6d6,_0x27281e){return new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5503a3=>{if(_0x261a70())return _0x5503a3(_0x15ef4d([0x56,0x61,0x6c,0x69,0x64]));_0x3602f9(),_0x23f38a[_0x15ef4d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15ef4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d030d=!0x1;const _0x190dfe=_0x182fbe();function _0x280779(_0x3e22ec){return!!_0x3e22ec&&(typeof _0x3e22ec===_0x15ef4d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e22ec===_0x15ef4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e22ec[_0x15ef4d([0x74,0x68,0x65,0x6e])]===_0x15ef4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e22ec[_0x15ef4d([0x63,0x61,0x74,0x63,0x68])]===_0x15ef4d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf1c34(_0x43cd02){_0x1c41b4(_0x43cd02)[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0x3d2922=>{if(!_0x3d2922||_0x3d2922[_0x15ef4d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15ef4d([0x6f,0x6b]))return _0x15ef4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x446927(_0x1b776f(_0x190dfe+_0x27281e))!=_0x3d2922[_0x15ef4d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15ef4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15ef4d([0x56,0x61,0x6c,0x69,0x64]);})[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0x3db842=>(_0x2accff(),_0x3db842),()=>{const _0x45469d=_0x3727ae();return null==_0x45469d?(_0x2accff(),_0x15ef4d([0x56,0x61,0x6c,0x69,0x64])):_0x15ef4d(_0x3919cd-_0x45469d>(0x7753083a^_0x28f4a8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0x5503a3)[_0x15ef4d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5503a3(_0x15ef4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x548b22=0x536962ba^_0x28f4a8;function _0x2accff(){const _0x29146c=_0x15ef4d([0x6c,0x6c,0x63,0x74,0x2d])+_0x446927(_0x1b776f(_0xd6e6d6)),_0x4b4f48=_0x308d0b(_0x446927(window[_0x15ef4d([0x4d,0x61,0x74,0x68])][_0x15ef4d([0x63,0x65,0x69,0x6c])](_0x3919cd/_0x548b22)));window[_0x15ef4d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15ef4d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29146c,_0x4b4f48);}function _0x3727ae(){const _0xbe5745=_0x15ef4d([0x6c,0x6c,0x63,0x74,0x2d])+_0x446927(_0x1b776f(_0xd6e6d6)),_0x552e7c=window[_0x15ef4d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15ef4d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbe5745);return _0x552e7c?window[_0x15ef4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x308d0b(_0x552e7c),0x10)*_0x548b22:null;}function _0x1c41b4(_0x51d252){return new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d299c,_0x14379c)=>{_0x51d252[_0x15ef4d([0x74,0x68,0x65,0x6e])](_0x2d299c,_0x14379c),window[_0x15ef4d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14379c,0x535e58fa^_0x28f4a8);});}}_0x23f38a[_0x15ef4d([0x6f,0x6e])](_0x15ef4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f3ddc,_0x2e5a18)=>{if(_0x2e5a18[0x0]!=_0xd6e6d6)return _0x5503a3(_0x15ef4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e5a18[0x1]={..._0x2e5a18[0x1],[_0x15ef4d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x190dfe};},{[_0x15ef4d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15ef4d([0x68,0x69,0x67,0x68])}),_0x23f38a[_0x15ef4d([0x6f,0x6e])](_0x15ef4d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5158a4=>{_0x280779(_0x5158a4[_0x15ef4d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d030d=!0x0,_0xf1c34(_0x5158a4[_0x15ef4d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15ef4d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15ef4d([0x6c,0x6f,0x77])}),_0x393255[_0x15ef4d([0x74,0x68,0x65,0x6e])](()=>{_0x1d030d||_0x5503a3(_0x15ef4d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x261a70(){return _0x23f38a[_0x15ef4d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15ef4d([0x76,0x69,0x65,0x77])][_0x15ef4d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15ef4d([0x61,0x75,0x74,0x6f]);}function _0x3602f9(){_0x23f38a[_0x15ef4d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15ef4d([0x76,0x69,0x65,0x77])][_0x15ef4d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15ef4d([0x61,0x75,0x74,0x6f]);}}function _0x3a87d5(_0x599379){const _0x5ccb18=[new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18aef0=>setTimeout(_0x18aef0,0x5356b2f6^_0x28f4a8)),_0x393255[_0x15ef4d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18d23d=>{let _0x49d93c=0x0;_0x23f38a[_0x15ef4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x15ef4d([0x6f,0x6e])](_0x15ef4d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1fafbe,_0x353559)=>{_0x353559[0x0][_0x15ef4d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x49d93c++,_0x49d93c==(0x535f89d2^_0x28f4a8)&&(_0x18d23d(),_0x1fafbe[_0x15ef4d([0x6f,0x66,0x66])]());});}))];return window[_0x15ef4d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15ef4d([0x72,0x61,0x63,0x65])](_0x5ccb18)[_0x15ef4d([0x74,0x68,0x65,0x6e])](()=>_0x599379);}async function _0x35d348(){await _0x393255,_0x23f38a[_0x15ef4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x15ef4d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46c4d1,_0x23f38a[_0x15ef4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x15ef4d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46c4d1,_0x23f38a[_0x15ef4d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15ef4d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f019b(_0x4e73f4){const _0x502e9b=_0x1f18be();_0x23f38a[_0x502e9b]=_0x15ef4d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e73f4,_0x4e73f4!=_0x15ef4d([0x56,0x61,0x6c,0x69,0x64])&&_0x35d348();}function _0x1f18be(){const _0x8fc29b=window[_0x15ef4d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15ef4d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15ef4d([0x6e,0x6f,0x77])]())[_0x15ef4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15ef4d([0x2e]),'');let _0x91f0dd=_0x15ef4d([0x68]);for(let _0x2673de=0x0;_0x2673de<_0x8fc29b[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2673de+=0x2){let _0x1797d9=window[_0x15ef4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8fc29b[_0x15ef4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2673de,_0x2673de+0x2));_0x1797d9>=_0x1ec18a[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1797d9-=_0x1ec18a[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x91f0dd+=_0x1ec18a[_0x1797d9];}return _0x91f0dd;}function _0x375a0f(){const _0x38a26e=_0x4987d0[_0x15ef4d([0x73,0x70,0x6c,0x69,0x74])](_0x15ef4d([0x2e]));if(0x3!=_0x38a26e[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1c2f2c(_0x38a26e[0x1]);function _0x1c2f2c(_0x4124ab){const _0x39ad1d=_0x507d1f(_0x4124ab);return _0x39ad1d&&_0x47cd47()?_0x39ad1d:null;function _0x47cd47(){const _0x5733e8=_0x39ad1d[_0x15ef4d([0x6a,0x74,0x69])],_0x10006a=window[_0x15ef4d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5733e8[_0x15ef4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5733e8[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1561e0={..._0x39ad1d,[_0x15ef4d([0x6a,0x74,0x69])]:_0x5733e8[_0x15ef4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5733e8[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1561e0[_0x15ef4d([0x76,0x63])],_0x1b776f(_0x1561e0)==_0x10006a;}}}async function _0x5b9991(){let _0x120955=!0x0;try{const _0x5f2226=_0x4987d0[_0x15ef4d([0x73,0x70,0x6c,0x69,0x74])](_0x15ef4d([0x2e])),[_0x5a6999,_0x48538,_0x1dee68]=_0x5f2226;return _0x398d58(_0x5a6999),await _0x36004e(_0x5a6999,_0x48538,_0x1dee68),_0x120955;}catch{return!0x1;}function _0x398d58(_0x2aaf71){const _0x3afcf4=_0x507d1f(_0x2aaf71);_0x3afcf4&&_0x3afcf4[_0x15ef4d([0x61,0x6c,0x67])]==_0x15ef4d([0x45,0x53,0x32,0x35,0x36])||(_0x120955=!0x1);}async function _0x36004e(_0x541b80,_0x3766fe,_0x36bfd9){const _0x231faa=window[_0x15ef4d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15ef4d([0x66,0x72,0x6f,0x6d])](_0x9977b(_0x36bfd9),_0x4dd01d=>_0x4dd01d[_0x15ef4d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e45b4=new window[(_0x15ef4d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15ef4d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x541b80+_0x15ef4d([0x2e])+_0x3766fe),_0x41e59a=window[_0x15ef4d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15ef4d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41e59a)return;const _0x24dac5=await _0x41e59a[_0x15ef4d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15ef4d([0x6a,0x77,0x6b]),_0x2e4756,{[_0x15ef4d([0x6e,0x61,0x6d,0x65])]:_0x15ef4d([0x45,0x43,0x44,0x53,0x41]),[_0x15ef4d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15ef4d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15ef4d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41e59a[_0x15ef4d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15ef4d([0x6e,0x61,0x6d,0x65])]:_0x15ef4d([0x45,0x43,0x44,0x53,0x41]),[_0x15ef4d([0x68,0x61,0x73,0x68])]:{[_0x15ef4d([0x6e,0x61,0x6d,0x65])]:_0x15ef4d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24dac5,_0x231faa,_0x3e45b4)||(_0x120955=!0x1);}}function _0x507d1f(_0x55abd6){return _0x55abd6[_0x15ef4d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15ef4d([0x65,0x79]))?JSON[_0x15ef4d([0x70,0x61,0x72,0x73,0x65])](_0x9977b(_0x55abd6)):null;}function _0x9977b(_0x27abd5){return window[_0x15ef4d([0x61,0x74,0x6f,0x62])](_0x27abd5[_0x15ef4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15ef4d([0x2b]))[_0x15ef4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15ef4d([0x2f])));}function _0x1b776f(_0x2da56f){let _0x10bd2e=0x1505;function _0x1c4ac7(_0x41dbbc){for(let _0x465798=0x0;_0x465798<_0x41dbbc[_0x15ef4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x465798++){const _0x2dfe0e=_0x41dbbc[_0x15ef4d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x465798);_0x10bd2e=(_0x10bd2e<<0x5)+_0x10bd2e+_0x2dfe0e,_0x10bd2e&=_0x10bd2e;}}function _0x2f58f8(_0x4b87a1){Array[_0x15ef4d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b87a1)?_0x4b87a1[_0x15ef4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f58f8):_0x4b87a1&&typeof _0x4b87a1==_0x15ef4d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15ef4d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b87a1)[_0x15ef4d([0x73,0x6f,0x72,0x74])]()[_0x15ef4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x296330,_0x2db1be])=>{_0x1c4ac7(_0x296330),_0x2f58f8(_0x2db1be);}):_0x1c4ac7(window[_0x15ef4d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b87a1));}return _0x2f58f8(_0x2da56f),_0x10bd2e>>>0x0;}function _0x446927(_0x4fbd23){return _0x4fbd23[_0x15ef4d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15ef4d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15ef4d([0x30]));}function _0x308d0b(_0x536bec){return _0x536bec[_0x15ef4d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15ef4d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15ef4d([0x6a,0x6f,0x69,0x6e])]('');}function _0x46c4d1(){}function _0x15ef4d(_0x266cec){const _0x3ce435=_0x1529;return _0x266cec[_0x3ce435(0xa5)](_0x69fe3=>String[_0x3ce435(0x92)](_0x69fe3))[_0x3ce435(0xc0)]('');}_0x2f019b(await _0x2c1125());}(this);}[_0x333856(0x9a)](){const _0x1fcabf=_0x333856,_0x48fe2f=this[_0x1fcabf(0xa1)][_0x1fcabf(0x9c)][_0x1fcabf(0xa2)];_0x48fe2f[_0x1fcabf(0x96)](_0x1fcabf(0xca))&&_0x48fe2f[_0x1fcabf(0xa0)](_0x1fcabf(0xca),{'allowAttributes':[_0x1fcabf(0xbc)]}),_0x48fe2f[_0x1fcabf(0x96)](_0x1fcabf(0xc7))&&_0x48fe2f[_0x1fcabf(0xa0)](_0x1fcabf(0xc7),{'allowAttributes':[_0x1fcabf(0xbc)]});}[_0x333856(0x8b)](){const _0x209f58=_0x333856,_0x243681=this[_0x209f58(0xa1)];_0x243681[_0x209f58(0xd5)][_0x209f58(0x97)](_0x209f58(0xcc))[_0x209f58(0x88)]({'model':_0x209f58(0xbc),'view':_0x209f58(0xbf)}),_0x243681[_0x209f58(0xd5)][_0x209f58(0x97)](_0x209f58(0xb3))[_0x209f58(0x8f)]({'model':{'key':_0x209f58(0xbc),'value':_0x3aa35f=>_0x3aa35f[_0x209f58(0x95)](_0x209f58(0xbf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x25e590=_0x243681[_0x209f58(0xc5)][_0x209f58(0xb9)](_0x209f58(0xd3));_0x25e590&&this[_0x209f58(0xb6)](_0x25e590,_0x209f58(0xab),(_0x1f39d0,[_0x436d42,_0x4cbaf2])=>{const _0x56f8b6=_0x209f58;_0x436d42[_0x56f8b6(0xc2)](_0x56f8b6(0xbc),_0x4cbaf2);});}[_0x333856(0xb5)](){const _0x520fce=_0x333856,_0x5e4d07=this[_0x520fce(0xa1)][_0x520fce(0xb4)][_0x520fce(0xb9)](_0x520fce(0x94))||{},_0x21bcb3=this[_0x520fce(0xa1)][_0x520fce(0xb4)][_0x520fce(0xb9)](_0x520fce(0xbd))||'';this[_0x520fce(0x98)]=_0x41fd7f(_0x456893[_0x520fce(0xd0)],_0x520fce(0xba),{..._0x5e4d07,'pubkey':_0x21bcb3,'ctx-name':_0x520fce(0xb0)+this[_0x520fce(0xb7)],'sourceList':'','imgOnly':_0x520fce(0xa3),'removeCopyright':_0x520fce(0xa3),'localeName':this[_0x520fce(0xa1)][_0x520fce(0xcb)][_0x520fce(0x9f)],'externalSourcesEmbedCss':_0x520fce(0xa8)}),this[_0x520fce(0x98)][_0x520fce(0xd6)]=_0x2025c0=>{const _0xb15984=_0x520fce;if(_0xb15984(0xd2)==_0x2025c0)return _0xb15984(0xc1);},_0x456893[_0x520fce(0xd0)][_0x520fce(0xc9)][_0x520fce(0xa9)](this[_0x520fce(0x98)]);}[_0x333856(0x86)](){const _0x1e1e93=_0x333856;this[_0x1e1e93(0xad)]=_0x41fd7f(_0x456893[_0x1e1e93(0xd0)],_0x1e1e93(0xc8),{'ctx-name':_0x1e1e93(0xb0)+this[_0x1e1e93(0xb7)]}),_0x456893[_0x1e1e93(0xd0)][_0x1e1e93(0xc9)][_0x1e1e93(0xa9)](this[_0x1e1e93(0xad)]);}[_0x333856(0x91)](){const _0x3df458=_0x333856,_0x59cfdb=this[_0x3df458(0xa1)][_0x3df458(0xc5)][_0x3df458(0xb9)](_0x3df458(0x8e));_0x59cfdb&&this[_0x3df458(0xb6)](_0x59cfdb,_0x3df458(0x9d),()=>{const _0x2ef4ef=_0x3df458,_0x2d7e85=this[_0x2ef4ef(0xa1)][_0x2ef4ef(0x9c)][_0x2ef4ef(0xd0)][_0x2ef4ef(0xcd)][_0x2ef4ef(0xac)]();_0x2d7e85&&_0x2d7e85[_0x2ef4ef(0x95)](_0x2ef4ef(0xbc))&&this[_0x2ef4ef(0xa1)][_0x2ef4ef(0x93)][_0x2ef4ef(0x87)][_0x2ef4ef(0xb8)](_0x2ef4ef(0xce),()=>{const _0x2858be=_0x2ef4ef;_0x2d5c12(this[_0x2858be(0xa1)],_0x2d7e85);});});const _0x5518f7=this[_0x3df458(0xa1)][_0x3df458(0xc5)][_0x3df458(0xb9)](_0x3df458(0xae));_0x5518f7&&this[_0x3df458(0xb6)](_0x5518f7,_0x3df458(0x9d),()=>{const _0xe20ce3=_0x3df458,_0x156c97=this[_0xe20ce3(0xa1)][_0xe20ce3(0x9c)][_0xe20ce3(0xd0)][_0xe20ce3(0xcd)][_0xe20ce3(0xac)]();_0x156c97&&_0x156c97[_0xe20ce3(0x95)](_0xe20ce3(0xbc))&&this[_0xe20ce3(0xa1)][_0xe20ce3(0x93)][_0xe20ce3(0x87)][_0xe20ce3(0xb8)](_0xe20ce3(0xce),()=>{const _0x1512d8=_0xe20ce3;_0x2d5c12(this[_0x1512d8(0xa1)],_0x156c97);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x358d5e,ObservableMixin as _0x789566}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x19f0d2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1f459a}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x35258c}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x4ba868}from'../../utils/uploadutils.js';import{getImageUrls as _0x46d178,getImageDimension as _0x5d144c}from'../../utils/editingutils.js';import{isAncestor as _0x57f69e}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x789566(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x28ecb6,_0x6efed5,_0x3e2e56){super(),this['_editor']=_0x28ecb6,this['_dialog']=_0x6efed5,this['_imageElement']=_0x3e2e56,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 _0x20cfda=this['_imageElement'],_0x5b7dab=_0x20cfda['getAttribute']('uploadcareImageId'),_0x4e7791=_0x20cfda['getAttribute']('src');if(_0x5b7dab)await this['_loadImageInfo'](_0x5b7dab,_0x4e7791);else{if(this['_imageCache']['has'](_0x4e7791)){const _0x1414f9=this['_imageCache']['get'](_0x4e7791);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1414f9['url'],this['imageDimension']=_0x1414f9['dimension'],this['imageId']=_0x1414f9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x12e0f7}=this['_editor'],t=_0x12e0f7['t'],_0x5788bb=new _0x35258c(_0x12e0f7,this['imageStatus'],this['_attributes']);_0x5788bb['bind']('status')['to'](this,'imageStatus'),_0x5788bb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5788bb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5788bb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5788bb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1f459a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5788bb,'position':_0x19f0d2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5788bb['focus']();},'onHide':()=>{_0x5788bb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5617aa=>!_0x57f69e(_0x5617aa,_0x5788bb['element'])}});}['_loadImageInfo'](_0x9a1644,_0x304b07){return _0x4ba868['getInfo'](_0x9a1644,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x51f020=>{const {width:_0x1c1354,height:_0x36bfe9}=_0x51f020['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x304b07,this['imageDimension']={'width':_0x1c1354,'height':_0x36bfe9},this['imageId']=_0x9a1644;})['catch'](_0x139ad2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x139ad2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xd5d0d,_0x128312){return this['_getImageAsFile'](_0xd5d0d)['then'](_0x5022ac=>_0x4ba868['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':_0x128312['signal'],'file':_0x5022ac,'onProgress':_0xebaaa2=>{_0xebaaa2&&_0xebaaa2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xebaaa2['value']));}}))['then'](_0x50ded2=>{const {width:_0x193723,height:_0x3b8dc8}=_0x50ded2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50ded2['cdnUrl'],this['imageDimension']={'width':_0x193723,'height':_0x3b8dc8},this['imageId']=_0x50ded2['uuid'],this['imageUploadProgress']=null;const _0xbd86e0=_0xd5d0d['getAttribute']('src');this['_imageCache']['set'](_0xbd86e0,{'id':_0x50ded2['uuid'],'url':_0x50ded2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1a746d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a746d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x442be1,_0x46794d){_0x442be1['on']('apply',(_0x226fd8,_0x30325b)=>{this['_replaceImage'](_0x46794d,_0x30325b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x442be1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x442be1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1d8bd8,_0x2cd143,_0x3ad2c3){const _0x294295=this['_editor'],{width:_0x34a116,height:_0xa19316}=_0x5d144c(_0x2cd143,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1aacd7,imageSources:_0x388492}=_0x46d178(_0x2cd143,_0x34a116);_0x294295['model']['change'](_0x590e42=>{if('$graveyard'===_0x1d8bd8['root']['rootName']){_0x294295['execute']('insertImage',{'imageType':_0x1d8bd8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1d8bd8['getAttributes']()),'uploadcareImageId':_0x3ad2c3,'src':_0x1aacd7,'sources':_0x388492,'width':_0x34a116,'height':_0xa19316}});const _0x74937b=_0x1d8bd8['getChildren']();_0x1d8bd8=_0x294295['model']['document']['selection']['getSelectedElement']();for(const _0x32ae5c of _0x74937b)_0x590e42['append'](_0x590e42['cloneElement'](_0x32ae5c),_0x1d8bd8);}else _0x590e42['setSelection'](_0x1d8bd8,'on'),_0x294295['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1d8bd8['getAttributes']()),'uploadcareImageId':_0x3ad2c3,'src':_0x1aacd7,'sources':_0x388492,'width':_0x34a116,'height':_0xa19316},_0x1d8bd8);_0x590e42['setSelection'](_0x1d8bd8,'on');});}async['_getImageAsFile'](_0x2d7976){const _0x43e5fe=_0x358d5e['window'],_0xb1c5c7=_0x358d5e['document']['location']['href'],_0x64f5d=new _0x43e5fe['URL'](_0x2d7976['getAttribute']('src'),_0xb1c5c7);if('data:'===_0x64f5d['protocol']){const _0x5527cd=_0x64f5d['href']['split'](','),_0x112937=_0x5527cd[0x0]['match'](/:(.*?);/)[0x1],_0x59833d=_0x112937['split']('/')[0x1],_0x28c2f8=_0x43e5fe['atob'](_0x5527cd[_0x5527cd['length']-0x1]);let _0x2932e9=_0x28c2f8['length'];const _0x2d4b0b=new _0x43e5fe['Uint8Array'](_0x2932e9);for(;_0x2932e9--;)_0x2d4b0b[_0x2932e9]=_0x28c2f8['charCodeAt'](_0x2932e9);return new _0x43e5fe['File']([_0x2d4b0b],'image.'+_0x59833d,{'type':_0x112937});}const _0x44cdeb=_0x64f5d['href']['split']('/'),_0xb1e4cc=_0x44cdeb[_0x44cdeb['length']-0x1],_0x47321a=_0xb1e4cc['split']('.')[0x1];return _0x43e5fe['fetch'](_0x64f5d['href'])['then'](_0x2e5aad=>_0x2e5aad['clone']()['blob']())['then'](_0x2b4637=>new _0x43e5fe['File']([_0x2b4637],_0xb1e4cc,{'type':'image/'+_0x47321a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x29a434,_0x2555d6){const _0x318fe6=_0x5bf6,_0x360ff1=_0x29a434();while(!![]){try{const _0x148a88=-parseInt(_0x318fe6(0x135))/0x1+-parseInt(_0x318fe6(0x12e))/0x2*(parseInt(_0x318fe6(0x137))/0x3)+parseInt(_0x318fe6(0x132))/0x4*(parseInt(_0x318fe6(0x13a))/0x5)+parseInt(_0x318fe6(0x12d))/0x6+-parseInt(_0x318fe6(0x136))/0x7*(-parseInt(_0x318fe6(0x133))/0x8)+parseInt(_0x318fe6(0x13b))/0x9+-parseInt(_0x318fe6(0x13c))/0xa;if(_0x148a88===_0x2555d6)break;else _0x360ff1['push'](_0x360ff1['shift']());}catch(_0x1e5caa){_0x360ff1['push'](_0x360ff1['shift']());}}}(_0x3a66,0x37427));function _0x3a66(){const _0x55b88b=['42AfLkpr','uc-cloud-image-editor','ck-uploadcare-theme','uc-light','71796zyytHs','2488uWgvIR','imageSrc','399193kRAxtU','9499EEKltQ','32703EXGsUK','set','bindTemplate','55mbJxhk','3294351cTiQMK','2297590ijfyqf','setTemplate','image-edit','592266ygebeD'];_0x3a66=function(){return _0x55b88b;};return _0x3a66();}function _0x5bf6(_0x5651d6,_0x265bbf){const _0x3a66ee=_0x3a66();return _0x5bf6=function(_0x5bf6fb,_0x388994){_0x5bf6fb=_0x5bf6fb-0x12b;let _0x5ec14c=_0x3a66ee[_0x5bf6fb];return _0x5ec14c;},_0x5bf6(_0x5651d6,_0x265bbf);}import{View as _0x1646e9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x1646e9{constructor(_0x3322d2,_0x35997f){const _0x1f045a=_0x5bf6;super(_0x3322d2);const _0x1a8be0=this[_0x1f045a(0x139)];this[_0x1f045a(0x138)](_0x1f045a(0x134),''),this[_0x1f045a(0x12b)]({'tag':_0x1f045a(0x12f),'attributes':{..._0x35997f,'class':[_0x1f045a(0x131),_0x1f045a(0x130)],'ctx-name':_0x1f045a(0x12c),'cdn-url':_0x1a8be0['to'](_0x1f045a(0x134))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x28394e}from'ckeditor5/src/icons.js';import{ButtonView as _0x36afba,IconView as _0x3e54a6,View as _0x315dda}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x315dda{constructor(_0x1c4a2e){super(_0x1c4a2e);const t=_0x1c4a2e['t'];this['set']('errorType',null);const _0x3646fa=new _0x36afba(_0x1c4a2e);_0x3646fa['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3646fa['withText']=!0x0,_0x3646fa['class']='ck-button-action',_0x3646fa['on']('execute',()=>{this['fire']('retry');}),_0x3646fa['bind']('isVisible')['to'](this,'errorType',_0x367be5=>'NotFound'!==_0x367be5);const _0x2875a5=new _0x3e54a6();_0x2875a5['content']=_0x28394e,_0x2875a5['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5e0823=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':[_0x2875a5,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5e0823['to']('errorType',_0x4e0604=>t('NotFound'!==_0x4e0604?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3646fa]},{'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 _0x929133,View as _0x14dc8f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x14dc8f{constructor(_0x6736b9){super(_0x6736b9);const t=_0x6736b9['t'],_0x1b382d=this['bindTemplate'],_0x3d29ea=new _0x929133();_0x3d29ea['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':[_0x3d29ea,{'text':_0x1b382d['to']('imageUploadProgress',_0x29f106=>t('Loading\x20image...')+'\x20('+(_0x29f106||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14343b=_0x105a;(function(_0x403318,_0x9a0c4b){const _0x1f8aae=_0x105a,_0x5bee7b=_0x403318();while(!![]){try{const _0x2f8e5a=parseInt(_0x1f8aae(0x188))/0x1*(-parseInt(_0x1f8aae(0x16a))/0x2)+-parseInt(_0x1f8aae(0x16d))/0x3*(parseInt(_0x1f8aae(0x169))/0x4)+parseInt(_0x1f8aae(0x175))/0x5*(-parseInt(_0x1f8aae(0x180))/0x6)+parseInt(_0x1f8aae(0x163))/0x7*(-parseInt(_0x1f8aae(0x17d))/0x8)+-parseInt(_0x1f8aae(0x193))/0x9*(parseInt(_0x1f8aae(0x174))/0xa)+-parseInt(_0x1f8aae(0x16e))/0xb*(-parseInt(_0x1f8aae(0x16f))/0xc)+-parseInt(_0x1f8aae(0x185))/0xd*(-parseInt(_0x1f8aae(0x191))/0xe);if(_0x2f8e5a===_0x9a0c4b)break;else _0x5bee7b['push'](_0x5bee7b['shift']());}catch(_0xbc588f){_0x5bee7b['push'](_0x5bee7b['shift']());}}}(_0x37de,0x1f2c4));import{View as _0x42eea8}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x2708d9}from'./uploadcareimageeditformloadingview.js';function _0x37de(){const _0x222a91=['24QGeeQs','toLowerCase','element','_waitForImageEditorComponent','_setView','140iDPvXj','269135axdIjz','disconnect','setTemplate','detail','_items','ready','getFocusableElement','target','940312rUnqTh','_errorView','_editingView','24hKfoLj','ck-uploadcare-form','createCollection','addEventListener','addMany','9742759xNpljt','_focusableView','fire','5867DoGinS','status','clear','observe','render','ck-reset_all-excluded','retry','cdnUrl','focus','14nJocHJ','set','66285PajXsL','filter','_loadingView','uc-cloud-image-editor','uploading','change:status','cancel','addedNodes','querySelector','add','div','7zJTPTd','once','nodeName','_addUploadcareImageEditorListeners','length','error','353372jdQDLN','46pqakFV','apply','_addErrorViewListeners','3Puhyxn','206151aaVLGf'];_0x37de=function(){return _0x222a91;};return _0x37de();}import{UploadcareImageEditFormErrorView as _0x59de89}from'./uploadcareimageeditformerrorview.js';function _0x105a(_0x17e742,_0x339684){const _0x37dee3=_0x37de();return _0x105a=function(_0x105afb,_0x339330){_0x105afb=_0x105afb-0x15d;let _0x177a8c=_0x37dee3[_0x105afb];return _0x177a8c;},_0x105a(_0x17e742,_0x339684);}import{UploadcareImageEditFormEditingView as _0x54a69d}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2814bc}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2814bc{[_0x14343b(0x179)];[_0x14343b(0x195)];[_0x14343b(0x17e)];[_0x14343b(0x17f)];[_0x14343b(0x186)];constructor(_0x47b029,_0xd2d3d9,_0x412ad3){const _0x1120a6=_0x14343b;super(_0x47b029),this[_0x1120a6(0x179)]=this[_0x1120a6(0x182)](),this[_0x1120a6(0x195)]=new _0x2708d9(_0x47b029),this[_0x1120a6(0x17e)]=new _0x59de89(_0x47b029),this[_0x1120a6(0x17f)]=new _0x54a69d(_0x47b029,_0x412ad3),this[_0x1120a6(0x186)]=new _0x42eea8(_0x47b029),this[_0x1120a6(0x186)][_0x1120a6(0x177)](this[_0x1120a6(0x17b)]()),this[_0x1120a6(0x192)](_0x1120a6(0x189),_0xd2d3d9),this[_0x1120a6(0x177)]({'tag':_0x1120a6(0x162),'attributes':{'class':['ck',_0x1120a6(0x18d),_0x1120a6(0x181)],'tabindex':'-1'},'children':this[_0x1120a6(0x179)]}),this[_0x1120a6(0x173)](),this[_0x1120a6(0x164)](_0x1120a6(0x18c),()=>{const _0x3f7f39=_0x1120a6;this[_0x3f7f39(0x172)](this[_0x3f7f39(0x171)],_0xdfef29=>{const _0x55a4bc=_0x3f7f39;this[_0x55a4bc(0x166)](_0xdfef29);});}),this['on'](_0x1120a6(0x15d),()=>{const _0x1e23ce=_0x1120a6;this[_0x1e23ce(0x173)]();}),this[_0x1120a6(0x16c)]();}[_0x14343b(0x190)](){const _0x2c09c6=_0x14343b;this[_0x2c09c6(0x171)][_0x2c09c6(0x190)]();}[_0x14343b(0x173)](){const _0x3fc6b8=_0x14343b;switch(this[_0x3fc6b8(0x179)][_0x3fc6b8(0x18a)](),this[_0x3fc6b8(0x189)]){case _0x3fc6b8(0x197):this[_0x3fc6b8(0x179)][_0x3fc6b8(0x161)](this[_0x3fc6b8(0x195)]);break;case _0x3fc6b8(0x168):this[_0x3fc6b8(0x179)][_0x3fc6b8(0x161)](this[_0x3fc6b8(0x17e)]);break;case _0x3fc6b8(0x17a):this[_0x3fc6b8(0x179)][_0x3fc6b8(0x184)]([this[_0x3fc6b8(0x17f)],this[_0x3fc6b8(0x186)]]);}}[_0x14343b(0x172)](_0x2d0fbb,_0x193b93){const _0x3c98ca=_0x14343b,_0x15132f=_0x3c98ca(0x196),_0x2ad779=_0x2d0fbb[_0x3c98ca(0x160)](_0x15132f);if(_0x2ad779)return _0x193b93(_0x2ad779);const _0x1f2263=new MutationObserver(_0x278b44=>{const _0x3b3b67=_0x3c98ca,_0xb87b99=_0x278b44[_0x3b3b67(0x194)](_0x25f2e2=>_0x25f2e2[_0x3b3b67(0x17c)]===_0x2d0fbb&&_0x25f2e2[_0x3b3b67(0x15f)][_0x3b3b67(0x167)]>0x0&&_0x25f2e2[_0x3b3b67(0x15f)][0x0][_0x3b3b67(0x165)][_0x3b3b67(0x170)]()===_0x15132f);_0xb87b99[_0x3b3b67(0x167)]&&(_0x1f2263[_0x3b3b67(0x176)](),_0x193b93(_0xb87b99[0x0][_0x3b3b67(0x15f)][0x0]));});_0x1f2263[_0x3c98ca(0x18b)](_0x2d0fbb,{'childList':!0x0,'subtree':!0x0});}[_0x14343b(0x166)](_0x49af96){const _0x5a5953=_0x14343b;_0x49af96[_0x5a5953(0x183)](_0x5a5953(0x16b),_0x1032c9=>{const _0x24a041=_0x5a5953;this[_0x24a041(0x187)](_0x24a041(0x16b),{'imageSrc':_0x1032c9[_0x24a041(0x178)][_0x24a041(0x18f)]});}),_0x49af96[_0x5a5953(0x183)](_0x5a5953(0x15e),()=>{const _0x3b53ea=_0x5a5953;this[_0x3b53ea(0x187)](_0x3b53ea(0x15e));});}[_0x14343b(0x16c)](){const _0x5f50e6=_0x14343b;this[_0x5f50e6(0x17e)]['on'](_0x5f50e6(0x18e),()=>{const _0x5efcea=_0x5f50e6;this[_0x5efcea(0x187)](_0x5efcea(0x18e));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x252a22=_0x233d;(function(_0x521402,_0x481c06){const _0x559c83=_0x233d,_0x27f47a=_0x521402();while(!![]){try{const _0x55c5c8=parseInt(_0x559c83(0x171))/0x1+parseInt(_0x559c83(0x162))/0x2*(parseInt(_0x559c83(0x156))/0x3)+parseInt(_0x559c83(0x161))/0x4*(-parseInt(_0x559c83(0x159))/0x5)+-parseInt(_0x559c83(0x165))/0x6*(-parseInt(_0x559c83(0x175))/0x7)+parseInt(_0x559c83(0x167))/0x8+parseInt(_0x559c83(0x15b))/0x9*(-parseInt(_0x559c83(0x16c))/0xa)+parseInt(_0x559c83(0x158))/0xb*(-parseInt(_0x559c83(0x16d))/0xc);if(_0x55c5c8===_0x481c06)break;else _0x27f47a['push'](_0x27f47a['shift']());}catch(_0x25751e){_0x27f47a['push'](_0x27f47a['shift']());}}}(_0x24c3,0xe2465));import{Command as _0xc071ab}from'ckeditor5/src/core.js';import{Dialog as _0x2fdbbe}from'ckeditor5/src/ui.js';function _0x24c3(){const _0x2bec74=['imageBlock','isEnabled','23046vnzXHN','unbind','134926VDisXB','5BhISdD','config','9LPuzjc','imageInline','element','bind','plugins','imageEditController','3831552HGOHdO','294Gxmeae','get','getSelectedElement','24fgKopc','requires','4959472xmHRlh','document','execute','_isEditable','refresh','1614530bGDdij','1584WxtZIQ','editor','model','set','607442mdQOJw','selection','isActive','uploadcare.allowExternalImagesEditing','2290127qZRwbb'];_0x24c3=function(){return _0x2bec74;};return _0x24c3();}function _0x233d(_0xd9fcb6,_0x4b91fb){const _0x24c314=_0x24c3();return _0x233d=function(_0x233d6f,_0x74a817){_0x233d6f=_0x233d6f-0x155;let _0x331ef1=_0x24c314[_0x233d6f];return _0x331ef1;},_0x233d(_0xd9fcb6,_0x4b91fb);}import{UploadcareImageEditController as _0x49be27}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x28e01d}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xc071ab{[_0x252a22(0x160)];static get[_0x252a22(0x166)](){return[_0x2fdbbe];}[_0x252a22(0x16a)];constructor(_0x4bd9c4){const _0x125f5d=_0x252a22;super(_0x4bd9c4),this[_0x125f5d(0x160)]=void 0x0,this[_0x125f5d(0x16a)]=_0x28e01d(_0x4bd9c4[_0x125f5d(0x15a)][_0x125f5d(0x163)](_0x125f5d(0x174))||[]),this[_0x125f5d(0x170)]({'isActive':!0x1});}[_0x252a22(0x16b)](){const _0x2faa1b=_0x252a22,_0x29af84=this[_0x2faa1b(0x16e)][_0x2faa1b(0x16f)][_0x2faa1b(0x168)][_0x2faa1b(0x172)][_0x2faa1b(0x164)]();this[_0x2faa1b(0x155)]=this[_0x2faa1b(0x16a)](_0x29af84);}[_0x252a22(0x169)](){const _0x537fe8=_0x252a22;this[_0x537fe8(0x160)]&&(this[_0x537fe8(0x157)](_0x537fe8(0x173)),this[_0x537fe8(0x160)]=void 0x0);const _0x381d50=this[_0x537fe8(0x16e)][_0x537fe8(0x16f)][_0x537fe8(0x168)][_0x537fe8(0x172)][_0x537fe8(0x164)]();_0x381d50&&(_0x381d50['is'](_0x537fe8(0x15d),_0x537fe8(0x176))||_0x381d50['is'](_0x537fe8(0x15d),_0x537fe8(0x15c)))&&(this[_0x537fe8(0x160)]=new _0x49be27(this[_0x537fe8(0x16e)],this[_0x537fe8(0x16e)][_0x537fe8(0x15f)][_0x537fe8(0x163)](_0x2fdbbe),_0x381d50),this[_0x537fe8(0x15e)](_0x537fe8(0x173))['to'](this[_0x537fe8(0x160)],_0x537fe8(0x173)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b1841=_0xd52d;(function(_0x5096f7,_0x3f2737){const _0x371d60=_0xd52d,_0x118a16=_0x5096f7();while(!![]){try{const _0x574dbf=parseInt(_0x371d60(0x173))/0x1*(parseInt(_0x371d60(0x167))/0x2)+-parseInt(_0x371d60(0x160))/0x3+parseInt(_0x371d60(0x16b))/0x4*(parseInt(_0x371d60(0x172))/0x5)+-parseInt(_0x371d60(0x170))/0x6+parseInt(_0x371d60(0x166))/0x7+-parseInt(_0x371d60(0x174))/0x8+parseInt(_0x371d60(0x161))/0x9*(-parseInt(_0x371d60(0x16c))/0xa);if(_0x574dbf===_0x3f2737)break;else _0x118a16['push'](_0x118a16['shift']());}catch(_0x1b9c1d){_0x118a16['push'](_0x118a16['shift']());}}}(_0x5eae,0x25860));import{Plugin as _0x3ee2e5}from'ckeditor5/src/core.js';function _0x5eae(){const _0x33f6fb=['725226ZkhEGT','requires','1088095ClVjOZ','282844Ltievl','355472WmizYj','uploadcareImageEdit','231618DJSyDP','241389nrYzRX','init','pluginName','isOfficialPlugin','uploadcareImageReplace','1147678lMDyJD','2nAZfJb','isPremiumPlugin','add','ImageUtils','4uiVOdp','100QMNDzx','UploadcareImageEditEditing','commands','ImageEditing'];_0x5eae=function(){return _0x33f6fb;};return _0x5eae();}import{Notification as _0x56a15d}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x2375c3}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3aff7c}from'./uploadcareimagereplacecommand.js';function _0xd52d(_0x5a07ab,_0xd05114){const _0x5eae0e=_0x5eae();return _0xd52d=function(_0xd52d46,_0x2b08b2){_0xd52d46=_0xd52d46-0x160;let _0x4158c1=_0x5eae0e[_0xd52d46];return _0x4158c1;},_0xd52d(_0x5a07ab,_0xd05114);}import{UploadcareEditing as _0x14222f}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3ee2e5{static get[_0x1b1841(0x163)](){const _0xf99893=_0x1b1841;return _0xf99893(0x16d);}static get[_0x1b1841(0x171)](){const _0x348018=_0x1b1841;return[_0x14222f,_0x56a15d,_0x348018(0x16a),_0x348018(0x16f)];}static get[_0x1b1841(0x164)](){return!0x0;}static get[_0x1b1841(0x168)](){return!0x0;}[_0x1b1841(0x162)](){const _0x113a5e=_0x1b1841,{editor:_0x1e6ed3}=this;_0x1e6ed3[_0x113a5e(0x16e)][_0x113a5e(0x169)](_0x113a5e(0x175),new _0x2375c3(_0x1e6ed3)),_0x1e6ed3[_0x113a5e(0x16e)][_0x113a5e(0x169)](_0x113a5e(0x165),new _0x3aff7c(_0x1e6ed3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x15815f}from'ckeditor5/src/core.js';import{ButtonView as _0x4643f3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4d71aa}from'ckeditor5/src/icons.js';import{createElement as _0x221a46}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 _0x15815f{['_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 _0xf2f743=this['editor'];_0xf2f743['ui']['componentFactory']['add']('uploadcareImageEdit',_0x6f1bca=>{const _0xe35c22=_0xf2f743['commands']['get']('uploadcareImageEdit'),_0x1f2525=new _0x4643f3(_0x6f1bca),t=_0x6f1bca['t'];return _0x1f2525['set']({'icon':_0x4d71aa,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1f2525['bind']('isEnabled')['to'](_0xe35c22),_0x1f2525['bind']('isOn')['to'](_0xe35c22,'isActive'),this['listenTo'](_0x1f2525,'execute',()=>{_0xf2f743['execute']('uploadcareImageEdit'),_0xf2f743['editing']['view']['focus']();}),_0x1f2525;}),this['_initConfig']();}['_initConfig'](){const _0x672319=_0x221a46(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x672319),this['listenTo'](this['editor'],'destroy',()=>{_0x672319['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5e07(){const _0x164e18=['removeAttribute','222aSdfBy','element','2611812LmVjqT','292452sZjeTx','381aPkVnX','940048BwyRWZ','27UnljRK','editor','model','277230gVxAVE','selection','getSelectedElement','sizes','refresh','execute','srcset','3588TuzrFM','document','setAttributes','change','295628wOXyhK','isEnabled','imageBlock','16090YCbIAR','imageInline'];_0x5e07=function(){return _0x164e18;};return _0x5e07();}const _0x5b026c=_0x2699;function _0x2699(_0x58ff30,_0x172071){const _0x5e079e=_0x5e07();return _0x2699=function(_0x2699dd,_0x277ee9){_0x2699dd=_0x2699dd-0xcb;let _0x242c6d=_0x5e079e[_0x2699dd];return _0x242c6d;},_0x2699(_0x58ff30,_0x172071);}(function(_0x314ca7,_0x42b9f9){const _0x9a987e=_0x2699,_0x490bef=_0x314ca7();while(!![]){try{const _0x1c3c38=-parseInt(_0x9a987e(0xce))/0x1+-parseInt(_0x9a987e(0xe4))/0x2*(parseInt(_0x9a987e(0xd8))/0x3)+parseInt(_0x9a987e(0xd7))/0x4+parseInt(_0x9a987e(0xd1))/0x5*(parseInt(_0x9a987e(0xd4))/0x6)+parseInt(_0x9a987e(0xd6))/0x7+parseInt(_0x9a987e(0xd9))/0x8+-parseInt(_0x9a987e(0xda))/0x9*(-parseInt(_0x9a987e(0xdd))/0xa);if(_0x1c3c38===_0x42b9f9)break;else _0x490bef['push'](_0x490bef['shift']());}catch(_0x3198ba){_0x490bef['push'](_0x490bef['shift']());}}}(_0x5e07,0x3b348));import{Command as _0x2730b0}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2730b0{[_0x5b026c(0xe1)](){const _0x20e301=_0x5b026c,_0x42e576=this[_0x20e301(0xdb)][_0x20e301(0xdc)][_0x20e301(0xcb)][_0x20e301(0xde)][_0x20e301(0xdf)]();this[_0x20e301(0xcf)]=Boolean(_0x42e576&&(_0x42e576['is'](_0x20e301(0xd5),_0x20e301(0xd0))||_0x42e576['is'](_0x20e301(0xd5),_0x20e301(0xd2))));}[_0x5b026c(0xe2)](_0x3588e0){const _0x326861=_0x5b026c,_0x34d12a=this[_0x326861(0xdb)][_0x326861(0xdc)][_0x326861(0xcb)][_0x326861(0xde)][_0x326861(0xdf)]();this[_0x326861(0xdb)][_0x326861(0xdc)][_0x326861(0xcd)](_0x2e0848=>{const _0x1ae907=_0x326861;_0x2e0848[_0x1ae907(0xcc)](_0x3588e0,_0x34d12a),_0x2e0848[_0x1ae907(0xd3)](_0x1ae907(0xe3),_0x34d12a),_0x2e0848[_0x1ae907(0xd3)](_0x1ae907(0xe0),_0x34d12a);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x1a148c=_0x207b;function _0x2ccf(){var _0x57e72c=['8bSQnBX','11UpkDyx','pluginName','82920fKECKe','614373MXlJIr','15220YQxOhn','1834216SyLPci','354FgQGcD','2417936wqDbvL','requires','851272lORypB','UploadcareImageEdit','21gifGun','isPremiumPlugin','5067XnxqwA','24446064UQFflW','isOfficialPlugin'];_0x2ccf=function(){return _0x57e72c;};return _0x2ccf();}(function(_0x34f305,_0x2ce633){var _0x4d8519=_0x207b,_0x5d30d9=_0x34f305();while(!![]){try{var _0x5d303f=parseInt(_0x4d8519(0xa2))/0x1+-parseInt(_0x4d8519(0x9e))/0x2+-parseInt(_0x4d8519(0x9c))/0x3*(parseInt(_0x4d8519(0x98))/0x4)+-parseInt(_0x4d8519(0x9b))/0x5*(parseInt(_0x4d8519(0x9f))/0x6)+parseInt(_0x4d8519(0xa4))/0x7*(-parseInt(_0x4d8519(0xa0))/0x8)+-parseInt(_0x4d8519(0xa6))/0x9*(-parseInt(_0x4d8519(0x9d))/0xa)+parseInt(_0x4d8519(0x99))/0xb*(parseInt(_0x4d8519(0xa7))/0xc);if(_0x5d303f===_0x2ce633)break;else _0x5d30d9['push'](_0x5d30d9['shift']());}catch(_0x58eca0){_0x5d30d9['push'](_0x5d30d9['shift']());}}}(_0x2ccf,0x823d2));import{Plugin as _0x1d116a}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x2fc311}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x194ee6}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x207b(_0x168404,_0x2c99a8){var _0x2ccf92=_0x2ccf();return _0x207b=function(_0x207b39,_0x6a1ef5){_0x207b39=_0x207b39-0x97;var _0x7d405e=_0x2ccf92[_0x207b39];return _0x7d405e;},_0x207b(_0x168404,_0x2c99a8);}export class UploadcareImageEdit extends _0x1d116a{static get[_0x1a148c(0x9a)](){var _0x311c51=_0x1a148c;return _0x311c51(0xa3);}static get[_0x1a148c(0xa1)](){return[_0x2fc311,_0x194ee6];}static get[_0x1a148c(0x97)](){return!0x0;}static get[_0x1a148c(0xa5)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x36d1(_0x85d1d2,_0x393ddd){const _0x1936dc=_0x1936();return _0x36d1=function(_0x36d16a,_0x17d25a){_0x36d16a=_0x36d16a-0x111;let _0x373b45=_0x1936dc[_0x36d16a];return _0x373b45;},_0x36d1(_0x85d1d2,_0x393ddd);}const _0x5c15d3=_0x36d1;(function(_0x1451d1,_0x24be4f){const _0x43261d=_0x36d1,_0x151641=_0x1451d1();while(!![]){try{const _0x3fd3bb=parseInt(_0x43261d(0x12c))/0x1+-parseInt(_0x43261d(0x155))/0x2*(-parseInt(_0x43261d(0x118))/0x3)+parseInt(_0x43261d(0x115))/0x4*(parseInt(_0x43261d(0x131))/0x5)+parseInt(_0x43261d(0x13c))/0x6*(-parseInt(_0x43261d(0x12b))/0x7)+-parseInt(_0x43261d(0x11f))/0x8*(parseInt(_0x43261d(0x161))/0x9)+parseInt(_0x43261d(0x14a))/0xa+-parseInt(_0x43261d(0x14f))/0xb*(parseInt(_0x43261d(0x137))/0xc);if(_0x3fd3bb===_0x24be4f)break;else _0x151641['push'](_0x151641['shift']());}catch(_0x13b49e){_0x151641['push'](_0x151641['shift']());}}}(_0x1936,0x28b78));import{Plugin as _0x1791e6}from'ckeditor5/src/core.js';import{IconDropbox as _0x13d8e3,IconFacebook as _0x9b4b42,IconGoogleDrive as _0x4fc624,IconGooglePhotos as _0x488380,IconUploadcareImageUpload as _0x219898,IconUploadcareLink as _0x26d679,IconOneDrive as _0x4923d7}from'ckeditor5/src/icons.js';import{ButtonView as _0x5294a4,MenuBarMenuListItemButtonView as _0xd32599}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x2c0365}from'./uploadcareconfig.js';import{getTranslation as _0xe960a0}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x1936(){const _0x4b6482=['get','featureNotAllowed','withText','evaluationLimit','destroy','8DuqLoX','_normalizeConfigSourceList','label','Insert','locale','uploadcareLicenseKeyUsageLimit','has','text','_createDropdownButtons','ImageInsertUI','uploadcareLicenseKeyDomainLimit','url','18NCwDCN','init','forEach','assetManager','uploadcareLicenseKeyNotAllowed','81996sWPvgR','Local','plugins','71466JySGlZ','config','afterInit','GDrive','isOfficialPlugin','isPremiumPlugin','map','1272424FPuFhV','isImageSelected','pluginName','_getIntegrationKey','entries','push','usageLimit','GPhotos','registerIntegration','_createMenuBarButtons','licenseKey','icon','7qLqDQB','43376ubiber','OneDrive','uploadcareLicenseKeyValid','commands','upload','75cUSwHZ','_showLicenseError','tooltip','Uploadcare','uploadcareLicenseKeyExpired','uploadcareLicenseKeyEvaluationLimit','685380Ajtzqu','uploadcareLicenseKeyInvalid','uploadcare.uploader.sourceList','reduce','bind','394734AyHnSm','editor','uploadcare','Facebook','URL','expired','UploadcareUI','type','invalid','domainLimit','isEnabled','_createToolbarButton','Dropbox','_licenseKeyCheckInterval','1616370wlzWno','shortText','Replace','execute','_createButton','11KMnxEn'];_0x1936=function(){return _0x4b6482;};return _0x1936();}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x1791e6{[_0x5c15d3(0x129)];[_0x5c15d3(0x149)];static get[_0x5c15d3(0x121)](){const _0x398077=_0x5c15d3;return _0x398077(0x142);}static get[_0x5c15d3(0x11c)](){return!0x0;}static get[_0x5c15d3(0x11d)](){return!0x0;}[_0x5c15d3(0x111)](){const _0x101e75=_0x5c15d3;this[_0x101e75(0x129)]=this[_0x101e75(0x13d)][_0x101e75(0x119)][_0x101e75(0x150)](_0x101e75(0x129));const _0x19e6d1=this[_0x101e75(0x13d)];this[_0x101e75(0x149)]=setInterval(()=>{const _0x24129e=_0x101e75;let _0xec32bc;for(const _0x52393e in _0x19e6d1){const _0x5583e8=_0x52393e,_0x5c38be=_0x19e6d1[_0x5583e8];if(_0x24129e(0x12e)==_0x5c38be||_0x24129e(0x138)==_0x5c38be||_0x24129e(0x135)==_0x5c38be||_0x24129e(0x15f)==_0x5c38be||_0x24129e(0x114)==_0x5c38be||_0x24129e(0x136)==_0x5c38be||_0x24129e(0x15a)==_0x5c38be){delete _0x19e6d1[_0x5583e8],_0xec32bc=_0x5c38be,clearInterval(this[_0x24129e(0x149)]),this[_0x24129e(0x149)]=void 0x0;break;}}_0x24129e(0x138)==_0xec32bc&&_0x19e6d1[_0x24129e(0x132)](_0x24129e(0x144)),_0x24129e(0x135)==_0xec32bc&&_0x19e6d1[_0x24129e(0x132)](_0x24129e(0x141)),_0x24129e(0x15f)==_0xec32bc&&_0x19e6d1[_0x24129e(0x132)](_0x24129e(0x145)),_0x24129e(0x114)==_0xec32bc&&_0x19e6d1[_0x24129e(0x132)](_0x24129e(0x151),_0x24129e(0x134)),_0x24129e(0x136)==_0xec32bc&&_0x19e6d1[_0x24129e(0x132)](_0x24129e(0x153)),_0x24129e(0x15a)==_0xec32bc&&_0x19e6d1[_0x24129e(0x132)](_0x24129e(0x125));},0x3e8);}[_0x5c15d3(0x11a)](){const _0x5334f6=_0x5c15d3,{editor:_0x34f00e}=this,_0x5a3027=_0x34f00e[_0x5334f6(0x12f)][_0x5334f6(0x150)](_0x5334f6(0x13e));if(!_0x5a3027)return;const _0x1c076a=this[_0x5334f6(0x156)](_0x34f00e[_0x5334f6(0x119)][_0x5334f6(0x150)](_0x5334f6(0x139)))[_0x5334f6(0x13a)]((_0x471cd8,_0x209da7)=>{const _0x176223=_0x5334f6,_0x13bddf=this[_0x176223(0x122)](_0x209da7[_0x176223(0x143)]);return _0x471cd8[_0x13bddf]||(_0x471cd8[_0x13bddf]=[]),_0x471cd8[_0x13bddf][_0x176223(0x124)](_0x209da7),_0x471cd8;},{});_0x34f00e[_0x5334f6(0x117)][_0x5334f6(0x15b)](_0x5334f6(0x15e))&&_0x34f00e[_0x5334f6(0x12f)][_0x5334f6(0x150)](_0x5334f6(0x13e))&&Object[_0x5334f6(0x123)](_0x1c076a)[_0x5334f6(0x112)](([_0x38d295,_0x550761])=>{const _0x74b6b5=_0x5334f6;_0x34f00e[_0x74b6b5(0x117)][_0x74b6b5(0x150)](_0x74b6b5(0x15e))[_0x74b6b5(0x127)]({'name':_0x38d295,'observable':()=>_0x5a3027,'buttonViewCreator':()=>this[_0x74b6b5(0x147)](_0x550761),'formViewCreator':()=>this[_0x74b6b5(0x15d)](_0x550761),'menuBarButtonViewCreator':()=>this[_0x74b6b5(0x128)](_0x550761),'override':_0x74b6b5(0x113)!==_0x38d295});});}[_0x5c15d3(0x154)](){const _0xec0a5d=_0x5c15d3;super[_0xec0a5d(0x154)](),this[_0xec0a5d(0x149)]&&clearInterval(this[_0xec0a5d(0x149)]);}[_0x5c15d3(0x156)](_0x4dae78){const _0x1f24d7=_0x5c15d3,{locale:_0x558ea9}=this[_0x1f24d7(0x13d)];return _0x4dae78[_0x1f24d7(0x11e)](_0x534fa7=>{const _0x1f6d87=_0x1f24d7,_0x17b255=_0xe960a0(_0x558ea9,_0x534fa7,_0x1f6d87(0x158));switch(_0x534fa7){case _0x2c0365[_0x1f6d87(0x116)]:return{'icon':_0x219898,'type':_0x2c0365[_0x1f6d87(0x116)],..._0x17b255};case _0x2c0365[_0x1f6d87(0x140)]:return{'icon':_0x26d679,'type':_0x2c0365[_0x1f6d87(0x140)],..._0x17b255};case _0x2c0365[_0x1f6d87(0x148)]:return{'icon':_0x13d8e3,'type':_0x2c0365[_0x1f6d87(0x148)],..._0x17b255};case _0x2c0365[_0x1f6d87(0x13f)]:return{'icon':_0x9b4b42,'type':_0x2c0365[_0x1f6d87(0x13f)],..._0x17b255};case _0x2c0365[_0x1f6d87(0x11b)]:return{'icon':_0x4fc624,'type':_0x2c0365[_0x1f6d87(0x11b)],..._0x17b255};case _0x2c0365[_0x1f6d87(0x126)]:return{'icon':_0x488380,'type':_0x2c0365[_0x1f6d87(0x126)],..._0x17b255};case _0x2c0365[_0x1f6d87(0x12d)]:return{'icon':_0x4923d7,'type':_0x2c0365[_0x1f6d87(0x12d)],..._0x17b255};}});}[_0x5c15d3(0x122)](_0x375fe2){const _0x152ce3=_0x5c15d3;switch(_0x375fe2){case _0x2c0365[_0x152ce3(0x116)]:return _0x152ce3(0x130);case _0x2c0365[_0x152ce3(0x140)]:return _0x152ce3(0x160);default:return _0x152ce3(0x113);}}[_0x5c15d3(0x14e)](_0x1c771b,_0x3373d0){const _0xeacbc3=_0x5c15d3,_0x28b4fe=this[_0xeacbc3(0x13d)],_0x215d33=new _0x1c771b(_0x28b4fe[_0xeacbc3(0x159)]),_0x54f966=_0x28b4fe[_0xeacbc3(0x12f)][_0xeacbc3(0x150)](_0xeacbc3(0x13e));return _0x215d33[_0xeacbc3(0x13b)](_0xeacbc3(0x146))['to'](_0x54f966),_0x215d33['on'](_0xeacbc3(0x14d),()=>{const _0x59a87d=_0xeacbc3;_0x54f966[_0x59a87d(0x14d)](_0x3373d0);}),_0x215d33;}[_0x5c15d3(0x147)](_0x1713dc){const _0x3405b0=_0x5c15d3,{locale:_0xacbf2f}=this[_0x3405b0(0x13d)],_0x366fcc=this[_0x3405b0(0x13d)][_0x3405b0(0x117)][_0x3405b0(0x150)](_0x3405b0(0x15e)),_0x15ece4=_0x1713dc[0x0],_0x5bd7cd=this[_0x3405b0(0x14e)](_0x5294a4,_0x15ece4[_0x3405b0(0x143)]);return _0x5bd7cd[_0x3405b0(0x12a)]=_0x15ece4[_0x3405b0(0x12a)],_0x5bd7cd[_0x3405b0(0x13b)](_0x3405b0(0x157))['to'](_0x366fcc,_0x3405b0(0x120),_0xcb82b6=>_0xe960a0(_0xacbf2f,_0x15ece4[_0x3405b0(0x143)],_0xcb82b6?_0x3405b0(0x14c):_0x3405b0(0x158))[_0x3405b0(0x15c)]),_0x5bd7cd[_0x3405b0(0x133)]=!0x0,_0x5bd7cd;}[_0x5c15d3(0x15d)](_0x79457e){const _0xac0ebc=_0x5c15d3,{locale:_0x3d96a0}=this[_0xac0ebc(0x13d)],_0x5039bd=this[_0xac0ebc(0x13d)][_0xac0ebc(0x117)][_0xac0ebc(0x150)](_0xac0ebc(0x15e));return _0x79457e[_0xac0ebc(0x11e)](_0x33fee2=>{const _0x530a20=_0xac0ebc,_0xae7f0c=this[_0x530a20(0x14e)](_0x5294a4,_0x33fee2[_0x530a20(0x143)]);return _0xae7f0c[_0x530a20(0x152)]=!0x0,_0xae7f0c[_0x530a20(0x12a)]=_0x33fee2[_0x530a20(0x12a)],_0xae7f0c[_0x530a20(0x13b)](_0x530a20(0x157))['to'](_0x5039bd,_0x530a20(0x120),_0x2a12f6=>_0xe960a0(_0x3d96a0,_0x33fee2[_0x530a20(0x143)],_0x2a12f6?_0x530a20(0x14c):_0x530a20(0x158))[_0x530a20(0x15c)]),_0xae7f0c;});}[_0x5c15d3(0x128)](_0x22440f){const _0x38c49e=_0x5c15d3;return _0x22440f[_0x38c49e(0x11e)](_0x45ecab=>{const _0x39e5eb=_0x38c49e,_0x4feca0=this[_0x39e5eb(0x14e)](_0xd32599,_0x45ecab[_0x39e5eb(0x143)]);return _0x4feca0[_0x39e5eb(0x12a)]=_0x45ecab[_0x39e5eb(0x12a)],_0x4feca0[_0x39e5eb(0x157)]=_0x45ecab[_0x39e5eb(0x14b)],_0x4feca0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x112a79}from'ckeditor5/src/core.js';import{FileRepository as _0x2a1c61}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x48fe09}from'./uploadcareediting.js';import{UploadUtils as _0x260e0a}from'./utils/uploadutils.js';import{getImageUrls as _0x570a13}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x112a79{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2a1c61,_0x48fe09];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5da2c8=this['editor'];if(!!!_0x5da2c8['config']['get']('uploadcare'))return;_0x5da2c8['plugins']['get'](_0x2a1c61)['createUploadAdapter']=_0x449e0c=>new k(_0x449e0c,_0x5da2c8),_0x5da2c8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2ee3de,{imageElement:_0x14deb0,data:_0x109d8f})=>{_0x5da2c8['model']['change'](_0xd565fe=>{_0xd565fe['setAttribute']('uploadcareImageId',_0x109d8f['uploadcareImageId'],_0x14deb0);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xcb0e53,_0x5eae4a){this['loader']=_0xcb0e53,this['editor']=_0x5eae4a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3f116b=await this['loader']['file'];return _0x260e0a['upload']({'file':_0x3f116b,'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':_0x57bb32=>{_0x57bb32&&_0x57bb32['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x57bb32['value']);}})['then'](async _0x2fad51=>{const {imageFallbackUrl:_0x122c78,imageSources:_0x5e9930}=_0x570a13(_0x2fad51['cdnUrl'],_0x2fad51['imageInfo']['width']);return{'uploadcareImageId':_0x2fad51['uuid'],'default':_0x122c78,'sources':_0x5e9930};})['catch'](()=>{const _0x3560ee=t('Cannot\x20upload\x20file:')+('\x20'+_0x3f116b['name']+'.');return Promise['reject'](_0x3560ee);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x590956}from'../uploadcareconfig.js';export function getTranslation(_0x2a3100,_0x9625a1,_0x3ba228){const t=_0x2a3100['t'],_0x2b4bc7=_0x2a3100['t'];switch(_0x9625a1){case _0x590956['Local']:return{'text':_0x2b4bc7('Insert'===_0x3ba228?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2b4bc7('From\x20computer')};case _0x590956['URL']:return{'text':'Insert'===_0x3ba228?_0x2b4bc7('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2b4bc7('Via\x20URL')};case _0x590956['Dropbox']:return{'text':t('Insert'===_0x3ba228?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x590956['Facebook']:return{'text':t('Insert'===_0x3ba228?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x590956['GDrive']:return{'text':t('Insert'===_0x3ba228?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x590956['GPhotos']:return{'text':t('Insert'===_0x3ba228?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x590956['OneDrive']:return{'text':t('Insert'===_0x3ba228?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x9625a1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x38f6b5=_0x2e50;function _0x3445(){var _0x50fa99=['true','div','focusCycler','125688PzLUBC','bindTemplate','10421330aPVKma','fire','focusTracker','8OEeuCP','6434919ezxBBQ','getFocusableElement','5429641WlSxvO','20dJmbyb','191628RNImGX','createCollection','forwardCycle','80AHnrRP','33PEyZVw','3573616DNkmFZ','727746nRSSRM'];_0x3445=function(){return _0x50fa99;};return _0x3445();}function _0x2e50(_0x467060,_0x1216e6){var _0x34457d=_0x3445();return _0x2e50=function(_0x2e5040,_0x13878a){_0x2e5040=_0x2e5040-0xaf;var _0x560483=_0x34457d[_0x2e5040];return _0x560483;},_0x2e50(_0x467060,_0x1216e6);}(function(_0x4bea98,_0x437309){var _0x4ba8e1=_0x2e50,_0x3259b4=_0x4bea98();while(!![]){try{var _0x4759b7=parseInt(_0x4ba8e1(0xb2))/0x1+parseInt(_0x4ba8e1(0xbf))/0x2*(-parseInt(_0x4ba8e1(0xc0))/0x3)+-parseInt(_0x4ba8e1(0xb1))/0x4+-parseInt(_0x4ba8e1(0xaf))/0x5*(parseInt(_0x4ba8e1(0xb6))/0x6)+-parseInt(_0x4ba8e1(0xbe))/0x7+parseInt(_0x4ba8e1(0xbb))/0x8*(-parseInt(_0x4ba8e1(0xbc))/0x9)+parseInt(_0x4ba8e1(0xb8))/0xa*(parseInt(_0x4ba8e1(0xb0))/0xb);if(_0x4759b7===_0x437309)break;else _0x3259b4['push'](_0x3259b4['shift']());}catch(_0x129e8f){_0x3259b4['push'](_0x3259b4['shift']());}}}(_0x3445,0x7921f));import{FocusTracker as _0x45c283}from'ckeditor5/src/utils.js';import{View as _0x4a6cb8,FocusCycler as _0x62c78c}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4a6cb8{[_0x38f6b5(0xba)];[_0x38f6b5(0xb5)];constructor(_0x3bcc4e){var _0x5f4099=_0x38f6b5;super(_0x3bcc4e),this[_0x5f4099(0xba)]=new _0x45c283(),this[_0x5f4099(0xb5)]=new _0x62c78c({'focusables':this[_0x5f4099(0xc1)](),'focusTracker':this[_0x5f4099(0xba)]});}[_0x38f6b5(0xbd)](){var _0x4179fc=_0x38f6b5;return{'tag':_0x4179fc(0xb4),'attributes':{'aria-hidden':_0x4179fc(0xb3),'tabindex':'0'},'on':{'focus':this[_0x4179fc(0xb7)]['to'](()=>{var _0x34acc0=_0x4179fc;this[_0x34acc0(0xb5)][_0x34acc0(0xb9)](_0x34acc0(0xc2));})}};}}
|