@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250923.0 → 0.0.0-nightly-20250924.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x14da24=_0x1fba;(function(_0x36fc8d,_0x316df9){const _0x116a43=_0x1fba,_0x1479b2=_0x36fc8d();while(!![]){try{const _0x5760fa=-parseInt(_0x116a43(0x143))/0x1*(parseInt(_0x116a43(0x165))/0x2)+parseInt(_0x116a43(0x133))/0x3+-parseInt(_0x116a43(0x146))/0x4*(-parseInt(_0x116a43(0x153))/0x5)+parseInt(_0x116a43(0x145))/0x6*(-parseInt(_0x116a43(0x177))/0x7)+parseInt(_0x116a43(0x136))/0x8*(-parseInt(_0x116a43(0x16d))/0x9)+parseInt(_0x116a43(0x14c))/0xa*(parseInt(_0x116a43(0x124))/0xb)+parseInt(_0x116a43(0x178))/0xc*(parseInt(_0x116a43(0x135))/0xd);if(_0x5760fa===_0x316df9)break;else _0x1479b2['push'](_0x1479b2['shift']());}catch(_0xeacf7e){_0x1479b2['push'](_0x1479b2['shift']());}}}(_0x13a6,0xb0a9b));import{Plugin as _0x3c2504}from'ckeditor5/src/core.js';function _0x1fba(_0x22b583,_0x54a817){const _0x13a68c=_0x13a6();return _0x1fba=function(_0x1fba38,_0x37ad01){_0x1fba38=_0x1fba38-0x121;let _0x1c95c5=_0x13a68c[_0x1fba38];return _0x1c95c5;},_0x1fba(_0x22b583,_0x54a817);}function _0x13a6(){const _0x57184e=['configElement','editor','47901VSrgSo','4122348rrGiXJ','attributeToAttribute','commands','pluginName','26774hNCzcu','view','document','uploadcare','get','_ctxElement','href','execute','getAttribute','appendChild','replaceImageSource','requires','ucContextId','_initCtx','removeAttribute','855441GTbsbE','locale','91GBTEqb','11434152MWpiLd','uploader-','body','_initImageProcessingIndicator','PictureEditing','init','insertImage','editing','isOfficialPlugin','remove','_initConfig','afterInit','UploadcareEditing','47TgtctW','cleanupImage','1122BenehL','4192FviMLM','selection','isPremiumPlugin','config','conversion','fromCharCode','2770tKtGRz','uploadcare.pubkey','uc-upload-ctx-provider','listenTo','render','#uc-icon-arrow-down','iconHrefResolver','5765eohPRP','true','closeMax','extend','_initConversion','getSelectedElement','imageInline','_initSchema','input[uploadcare-file-input]','isRegistered','map','upcast','destroy','_configElement','data-uc-image-id','querySelector','uc-config','imageBlock','48506eoxPtc','uploadcareImageId','ctxElement','for','elementToAttribute','\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','uploadcareImageReplace','uploadcare.uploader','9ntEhBj','model','downcast','join','schema','once','add','contentLanguage'];_0x13a6=function(){return _0x57184e;};return _0x13a6();}import{Dialog as _0x41be37}from'ckeditor5/src/ui.js';import{createElement as _0x5f276b,global as _0x42b23b,uid as _0x5de18c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x552be5}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1f3f0a}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x22a83f}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3c2504{[_0x14da24(0x160)]=null;[_0x14da24(0x129)]=null;static get[_0x14da24(0x123)](){const _0x2baf7c=_0x14da24;return _0x2baf7c(0x142);}static get[_0x14da24(0x12f)](){const _0x3b6baa=_0x14da24;return[_0x3b6baa(0x13a),_0x1f3f0a,_0x41be37];}static get[_0x14da24(0x13e)](){return!0x0;}static get[_0x14da24(0x148)](){return!0x0;}[_0x14da24(0x130)];get[_0x14da24(0x175)](){const _0x255154=_0x14da24;return this[_0x255154(0x160)];}get[_0x14da24(0x167)](){const _0x1550b0=_0x14da24;return this[_0x1550b0(0x129)];}constructor(_0x3af9ad){const _0x3f1f60=_0x14da24;super(_0x3af9ad),this[_0x3f1f60(0x130)]=_0x5de18c();}[_0x14da24(0x13b)](){const _0x403818=_0x14da24,_0x37000b=this[_0x403818(0x176)];_0x37000b[_0x403818(0x122)][_0x403818(0x173)](_0x403818(0x127),new _0x552be5(_0x37000b));}[_0x14da24(0x141)](){const _0x1437b3=_0x14da24;this[_0x1437b3(0x15a)](),this[_0x1437b3(0x157)](),this[_0x1437b3(0x140)](),this[_0x1437b3(0x131)](),this[_0x1437b3(0x139)](),this[_0x1437b3(0x14f)](this[_0x1437b3(0x176)],_0x1437b3(0x15f),()=>{const _0x51c834=_0x1437b3;this[_0x51c834(0x160)]&&(this[_0x51c834(0x160)][_0x51c834(0x13f)](),this[_0x51c834(0x160)]=null),this[_0x51c834(0x129)]&&(this[_0x51c834(0x129)][_0x51c834(0x13f)](),this[_0x51c834(0x129)]=null);const _0xb97978=_0x42b23b[_0x51c834(0x126)][_0x51c834(0x162)](_0x51c834(0x15b));_0xb97978&&_0xb97978[_0x51c834(0x13f)]();}),async function(_0x52e295){const _0x191b40=_0x30b84f([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x480e7a=0x3d8d0df,_0xfa6470=0x3dfa4ef^_0x480e7a,_0x34b68b=window[_0x30b84f([0x44,0x61,0x74,0x65])][_0x30b84f([0x6e,0x6f,0x77])](),_0x28cf18=_0x52e295[_0x30b84f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe58631=new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x629238=>{_0x28cf18[_0x30b84f([0x6f,0x6e,0x63,0x65])](_0x30b84f([0x72,0x65,0x61,0x64,0x79]),_0x629238);}),_0x6334b0={[_0x30b84f([0x6b,0x74,0x79])]:_0x30b84f([0x45,0x43]),[_0x30b84f([0x75,0x73,0x65])]:_0x30b84f([0x73,0x69,0x67]),[_0x30b84f([0x63,0x72,0x76])]:_0x30b84f([0x50,0x2d,0x32,0x35,0x36]),[_0x30b84f([0x78])]:_0x30b84f([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]),[_0x30b84f([0x79])]:_0x30b84f([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]),[_0x30b84f([0x61,0x6c,0x67])]:_0x30b84f([0x45,0x53,0x32,0x35,0x36])},_0x4d6dd5=_0x28cf18[_0x30b84f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x30b84f([0x67,0x65,0x74])](_0x30b84f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58174e(){let _0x3a64b7,_0xd4fcb0=null,_0xf7481e=null;try{if(_0x4d6dd5==_0x30b84f([0x47,0x50,0x4c]))return _0x30b84f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3a64b7=_0x3fae04(),!_0x3a64b7)return _0x30b84f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3a64b7[_0x30b84f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf7481e=_0x53fdc4(_0x3a64b7[_0x30b84f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3a64b7[_0x30b84f([0x6a,0x74,0x69])])),await _0x7a242f()?_0x2b709b()?_0x2e0a78()?_0x30b84f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53004f()?(_0x3a64b7[_0x30b84f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30b84f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd4fcb0=_0x5e323c(_0x30b84f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3a64b7[_0x30b84f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x30b84f([0x74,0x72,0x69,0x61,0x6c])&&(_0xd4fcb0=_0x5e323c(_0x30b84f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x439c14()):_0x30b84f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x30b84f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x30b84f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x30b84f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e0a78(){const _0x6d8908=[_0x30b84f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x30b84f([0x74,0x72,0x69,0x61,0x6c])][_0x30b84f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a64b7[_0x30b84f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34b68b/0x3e8:0xe10*_0xfa6470;return _0x3a64b7[_0x30b84f([0x65,0x78,0x70])]<_0x6d8908;}function _0x2b709b(){const _0xcf8bcc=_0x3a64b7[_0x30b84f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xcf8bcc&&(!!_0xcf8bcc[_0x30b84f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b84f([0x2a]))||!!_0xcf8bcc[_0x30b84f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b84f([0x55,0x50,0x4c,0x43])));}function _0x53004f(){const _0x352011=_0x1fba,_0x490397=_0x3a64b7[_0x30b84f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x490397||0x0==_0x490397[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f9890}=new URL(window[_0x30b84f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x352011(0x12a)]);if(_0x490397[_0x30b84f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f9890))return!0x0;const _0x37642d=_0x1f9890[_0x30b84f([0x73,0x70,0x6c,0x69,0x74])](_0x30b84f([0x2e]));return _0x490397[_0x30b84f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50dec2=>_0x50dec2[_0x30b84f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b84f([0x2a])))[_0x30b84f([0x6d,0x61,0x70])](_0x400fd8=>_0x400fd8[_0x30b84f([0x73,0x70,0x6c,0x69,0x74])](_0x30b84f([0x2e])))[_0x30b84f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58b3a4=>_0x58b3a4[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x37642d[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30b84f([0x6d,0x61,0x70])](_0x5d43fd=>Array(_0x37642d[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d43fd[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x30b84f([0x66,0x69,0x6c,0x6c])](_0x5d43fd[0x0]===_0x30b84f([0x2a])?_0x30b84f([0x2a]):'')[_0x30b84f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d43fd))[_0x30b84f([0x73,0x6f,0x6d,0x65])](_0x443e18=>_0x37642d[_0x30b84f([0x65,0x76,0x65,0x72,0x79])]((_0x14c3b2,_0x10bbce)=>_0x443e18[_0x10bbce]===_0x14c3b2||_0x443e18[_0x10bbce]===_0x30b84f([0x2a])));}function _0x439c14(){return _0xd4fcb0&&_0xf7481e?new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42f387,_0x2847bd)=>{_0xd4fcb0[_0x30b84f([0x74,0x68,0x65,0x6e])](_0x42f387,_0x2847bd),_0xf7481e[_0x30b84f([0x74,0x68,0x65,0x6e])](_0x33fd91=>{_0x33fd91!=_0x30b84f([0x56,0x61,0x6c,0x69,0x64])&&_0x42f387(_0x33fd91);},_0x2847bd);}):_0xd4fcb0||_0xf7481e||_0x30b84f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53fdc4(_0x164c83,_0x50261c){return new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x546ba5=>{if(_0x3beefe())return _0x546ba5(_0x30b84f([0x56,0x61,0x6c,0x69,0x64]));_0x26c442(),_0x28cf18[_0x30b84f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x30b84f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43c760=!0x1;const _0x2d8253=_0x5de18c();function _0x2c0ea5(_0x5535c2){return!!_0x5535c2&&(typeof _0x5535c2===_0x30b84f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5535c2===_0x30b84f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5535c2[_0x30b84f([0x74,0x68,0x65,0x6e])]===_0x30b84f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5535c2[_0x30b84f([0x63,0x61,0x74,0x63,0x68])]===_0x30b84f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x180dde(_0x722a60){_0x5fb88b(_0x722a60)[_0x30b84f([0x74,0x68,0x65,0x6e])](_0x31eb1d=>{if(!_0x31eb1d||_0x31eb1d[_0x30b84f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x30b84f([0x6f,0x6b]))return _0x30b84f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e728f(_0xf6b1cb(_0x2d8253+_0x50261c))!=_0x31eb1d[_0x30b84f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x30b84f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x30b84f([0x56,0x61,0x6c,0x69,0x64]);})[_0x30b84f([0x74,0x68,0x65,0x6e])](_0x1f6509=>(_0x4ba3c3(),_0x1f6509),()=>{const _0x449372=_0x55bdaa();return null==_0x449372?(_0x4ba3c3(),_0x30b84f([0x56,0x61,0x6c,0x69,0x64])):_0x30b84f(_0x34b68b-_0x449372>(0x27d454df^_0x480e7a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x30b84f([0x74,0x68,0x65,0x6e])](_0x546ba5)[_0x30b84f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x546ba5(_0x30b84f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13394a=0x3ee3e5f^_0x480e7a;function _0x4ba3c3(){const _0xd1819c=_0x30b84f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e728f(_0xf6b1cb(_0x164c83)),_0x54c179=_0x2ef47d(_0x5e728f(window[_0x30b84f([0x4d,0x61,0x74,0x68])][_0x30b84f([0x63,0x65,0x69,0x6c])](_0x34b68b/_0x13394a)));window[_0x30b84f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30b84f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd1819c,_0x54c179);}function _0x55bdaa(){const _0x96c4e1=_0x30b84f([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e728f(_0xf6b1cb(_0x164c83)),_0x2df32b=window[_0x30b84f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x30b84f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x96c4e1);return _0x2df32b?window[_0x30b84f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ef47d(_0x2df32b),0x10)*_0x13394a:null;}function _0x5fb88b(_0x5c3359){return new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xceee64,_0x1e3eec)=>{_0x5c3359[_0x30b84f([0x74,0x68,0x65,0x6e])](_0xceee64,_0x1e3eec),window[_0x30b84f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e3eec,0x3d9041f^_0x480e7a);});}}_0x28cf18[_0x30b84f([0x6f,0x6e])](_0x30b84f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3337dd,_0x11d0d3)=>{if(_0x11d0d3[0x0]!=_0x164c83)return _0x546ba5(_0x30b84f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11d0d3[0x1]={..._0x11d0d3[0x1],[_0x30b84f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d8253};},{[_0x30b84f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30b84f([0x68,0x69,0x67,0x68])}),_0x28cf18[_0x30b84f([0x6f,0x6e])](_0x30b84f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x362982=>{_0x2c0ea5(_0x362982[_0x30b84f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43c760=!0x0,_0x180dde(_0x362982[_0x30b84f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x30b84f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x30b84f([0x6c,0x6f,0x77])}),_0xe58631[_0x30b84f([0x74,0x68,0x65,0x6e])](()=>{_0x43c760||_0x546ba5(_0x30b84f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3beefe(){return _0x28cf18[_0x30b84f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30b84f([0x76,0x69,0x65,0x77])][_0x30b84f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x30b84f([0x61,0x75,0x74,0x6f]);}function _0x26c442(){_0x28cf18[_0x30b84f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x30b84f([0x76,0x69,0x65,0x77])][_0x30b84f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x30b84f([0x61,0x75,0x74,0x6f]);}}function _0x5e323c(_0x38a1b4){const _0x2f7350=[new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb4a5c=>setTimeout(_0xb4a5c,0x3d1ee13^_0x480e7a)),_0xe58631[_0x30b84f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24520c=>{let _0x546750=0x0;_0x28cf18[_0x30b84f([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b84f([0x6f,0x6e])](_0x30b84f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5aa93b,_0xaef0b7)=>{_0xaef0b7[0x0][_0x30b84f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x546750++,_0x546750==(0x3d8d127^_0x480e7a)&&(_0x24520c(),_0x5aa93b[_0x30b84f([0x6f,0x66,0x66])]());});}))];return window[_0x30b84f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x30b84f([0x72,0x61,0x63,0x65])](_0x2f7350)[_0x30b84f([0x74,0x68,0x65,0x6e])](()=>_0x38a1b4);}async function _0x3ba8b2(){await _0xe58631,_0x28cf18[_0x30b84f([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b84f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43adf8,_0x28cf18[_0x30b84f([0x6d,0x6f,0x64,0x65,0x6c])][_0x30b84f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43adf8,_0x28cf18[_0x30b84f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x30b84f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8e9ee1(_0x3c9e09){const _0x7faa57=_0x296019();_0x28cf18[_0x7faa57]=_0x30b84f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c9e09,_0x3c9e09!=_0x30b84f([0x56,0x61,0x6c,0x69,0x64])&&_0x3ba8b2();}function _0x296019(){const _0x3b3234=window[_0x30b84f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x30b84f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x30b84f([0x6e,0x6f,0x77])]())[_0x30b84f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x30b84f([0x2e]),'');let _0x4f1fa6=_0x30b84f([0x52]);for(let _0x50d770=0x0;_0x50d770<_0x3b3234[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50d770+=0x2){let _0x82e61=window[_0x30b84f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b3234[_0x30b84f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50d770,_0x50d770+0x2));_0x82e61>=_0x191b40[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x82e61-=_0x191b40[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f1fa6+=_0x191b40[_0x82e61];}return _0x4f1fa6;}function _0x3fae04(){const _0x9a7319=_0x4d6dd5[_0x30b84f([0x73,0x70,0x6c,0x69,0x74])](_0x30b84f([0x2e]));if(0x3!=_0x9a7319[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x22f334(_0x9a7319[0x1]);function _0x22f334(_0x2c976e){const _0x798b7f=_0x26bf82(_0x2c976e);return _0x798b7f&&_0x4aa29a()?_0x798b7f:null;function _0x4aa29a(){const _0x7aaa15=_0x798b7f[_0x30b84f([0x6a,0x74,0x69])],_0x3905cb=window[_0x30b84f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7aaa15[_0x30b84f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7aaa15[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40e53c={..._0x798b7f,[_0x30b84f([0x6a,0x74,0x69])]:_0x7aaa15[_0x30b84f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7aaa15[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40e53c[_0x30b84f([0x76,0x63])],_0xf6b1cb(_0x40e53c)==_0x3905cb;}}}async function _0x7a242f(){let _0x5b7df6=!0x0;try{const _0x3bd005=_0x4d6dd5[_0x30b84f([0x73,0x70,0x6c,0x69,0x74])](_0x30b84f([0x2e])),[_0x2d5b9a,_0x1c1ae7,_0x1086e8]=_0x3bd005;return _0x2c38d3(_0x2d5b9a),await _0x544f86(_0x2d5b9a,_0x1c1ae7,_0x1086e8),_0x5b7df6;}catch{return!0x1;}function _0x2c38d3(_0x27fed2){const _0x251253=_0x26bf82(_0x27fed2);_0x251253&&_0x251253[_0x30b84f([0x61,0x6c,0x67])]==_0x30b84f([0x45,0x53,0x32,0x35,0x36])||(_0x5b7df6=!0x1);}async function _0x544f86(_0x4628fc,_0x397de5,_0x198ab2){const _0x313a77=window[_0x30b84f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x30b84f([0x66,0x72,0x6f,0x6d])](_0x5d5b13(_0x198ab2),_0x453876=>_0x453876[_0x30b84f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e0573=new window[(_0x30b84f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x30b84f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4628fc+_0x30b84f([0x2e])+_0x397de5),_0x27cd50=window[_0x30b84f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x30b84f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27cd50)return;const _0x4b7b2e=await _0x27cd50[_0x30b84f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x30b84f([0x6a,0x77,0x6b]),_0x6334b0,{[_0x30b84f([0x6e,0x61,0x6d,0x65])]:_0x30b84f([0x45,0x43,0x44,0x53,0x41]),[_0x30b84f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x30b84f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x30b84f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27cd50[_0x30b84f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x30b84f([0x6e,0x61,0x6d,0x65])]:_0x30b84f([0x45,0x43,0x44,0x53,0x41]),[_0x30b84f([0x68,0x61,0x73,0x68])]:{[_0x30b84f([0x6e,0x61,0x6d,0x65])]:_0x30b84f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b7b2e,_0x313a77,_0x1e0573)||(_0x5b7df6=!0x1);}}function _0x26bf82(_0x161ff3){return _0x161ff3[_0x30b84f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x30b84f([0x65,0x79]))?JSON[_0x30b84f([0x70,0x61,0x72,0x73,0x65])](_0x5d5b13(_0x161ff3)):null;}function _0x5d5b13(_0x4fbdb0){return window[_0x30b84f([0x61,0x74,0x6f,0x62])](_0x4fbdb0[_0x30b84f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x30b84f([0x2b]))[_0x30b84f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x30b84f([0x2f])));}function _0xf6b1cb(_0x85a199){let _0x1adf67=0x1505;function _0x5ed7fc(_0x2e2995){for(let _0x509110=0x0;_0x509110<_0x2e2995[_0x30b84f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x509110++){const _0x50ef42=_0x2e2995[_0x30b84f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x509110);_0x1adf67=(_0x1adf67<<0x5)+_0x1adf67+_0x50ef42,_0x1adf67&=_0x1adf67;}}function _0x50189e(_0x3c03f5){Array[_0x30b84f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c03f5)?_0x3c03f5[_0x30b84f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50189e):_0x3c03f5&&typeof _0x3c03f5==_0x30b84f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x30b84f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c03f5)[_0x30b84f([0x73,0x6f,0x72,0x74])]()[_0x30b84f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe0fe0f,_0x2001a5])=>{_0x5ed7fc(_0xe0fe0f),_0x50189e(_0x2001a5);}):_0x5ed7fc(window[_0x30b84f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c03f5));}return _0x50189e(_0x85a199),_0x1adf67>>>0x0;}function _0x5e728f(_0x3aa7f5){return _0x3aa7f5[_0x30b84f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x30b84f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x30b84f([0x30]));}function _0x2ef47d(_0xf987be){return _0xf987be[_0x30b84f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x30b84f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x30b84f([0x6a,0x6f,0x69,0x6e])]('');}function _0x43adf8(){}function _0x30b84f(_0x4e9e1){const _0x50ea93=_0x1fba;return _0x4e9e1[_0x50ea93(0x15d)](_0xda84b7=>String[_0x50ea93(0x14b)](_0xda84b7))[_0x50ea93(0x170)]('');}_0x8e9ee1(await _0x58174e());}(this);}[_0x14da24(0x15a)](){const _0x48721c=_0x14da24,_0x46e407=this[_0x48721c(0x176)][_0x48721c(0x16e)][_0x48721c(0x171)];_0x46e407[_0x48721c(0x15c)](_0x48721c(0x164))&&_0x46e407[_0x48721c(0x156)](_0x48721c(0x164),{'allowAttributes':[_0x48721c(0x166)]}),_0x46e407[_0x48721c(0x15c)](_0x48721c(0x159))&&_0x46e407[_0x48721c(0x156)](_0x48721c(0x159),{'allowAttributes':[_0x48721c(0x166)]});}[_0x14da24(0x157)](){const _0x1e6c81=_0x14da24,_0x216861=this[_0x1e6c81(0x176)];_0x216861[_0x1e6c81(0x14a)][_0x1e6c81(0x168)](_0x1e6c81(0x16f))[_0x1e6c81(0x121)]({'model':_0x1e6c81(0x166),'view':_0x1e6c81(0x161)}),_0x216861[_0x1e6c81(0x14a)][_0x1e6c81(0x168)](_0x1e6c81(0x15e))[_0x1e6c81(0x169)]({'model':{'key':_0x1e6c81(0x166),'value':_0x591da3=>_0x591da3[_0x1e6c81(0x12c)](_0x1e6c81(0x161))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1bcb48=_0x216861[_0x1e6c81(0x122)][_0x1e6c81(0x128)](_0x1e6c81(0x12e));_0x1bcb48&&this[_0x1e6c81(0x14f)](_0x1bcb48,_0x1e6c81(0x144),(_0x589da3,[_0x1fc327,_0x30a7c0])=>{const _0x2fd9bf=_0x1e6c81;_0x1fc327[_0x2fd9bf(0x132)](_0x2fd9bf(0x166),_0x30a7c0);});}[_0x14da24(0x140)](){const _0x2fdfc8=_0x14da24,_0x558d86=this[_0x2fdfc8(0x176)][_0x2fdfc8(0x149)][_0x2fdfc8(0x128)](_0x2fdfc8(0x16c))||{},_0x5d2398=this[_0x2fdfc8(0x176)][_0x2fdfc8(0x149)][_0x2fdfc8(0x128)](_0x2fdfc8(0x14d))||'';this[_0x2fdfc8(0x160)]=_0x5f276b(_0x42b23b[_0x2fdfc8(0x126)],_0x2fdfc8(0x163),{..._0x558d86,'pubkey':_0x5d2398,'ctx-name':_0x2fdfc8(0x137)+this[_0x2fdfc8(0x130)],'sourceList':'','imgOnly':_0x2fdfc8(0x154),'removeCopyright':_0x2fdfc8(0x154),'localeName':this[_0x2fdfc8(0x176)][_0x2fdfc8(0x134)][_0x2fdfc8(0x174)],'externalSourcesEmbedCss':_0x2fdfc8(0x16a)}),this[_0x2fdfc8(0x160)][_0x2fdfc8(0x152)]=_0x8fb7b4=>{const _0xa94bbe=_0x2fdfc8;if(_0xa94bbe(0x155)==_0x8fb7b4)return _0xa94bbe(0x151);},_0x42b23b[_0x2fdfc8(0x126)][_0x2fdfc8(0x138)][_0x2fdfc8(0x12d)](this[_0x2fdfc8(0x160)]);}[_0x14da24(0x131)](){const _0x26f91d=_0x14da24;this[_0x26f91d(0x129)]=_0x5f276b(_0x42b23b[_0x26f91d(0x126)],_0x26f91d(0x14e),{'ctx-name':_0x26f91d(0x137)+this[_0x26f91d(0x130)]}),_0x42b23b[_0x26f91d(0x126)][_0x26f91d(0x138)][_0x26f91d(0x12d)](this[_0x26f91d(0x129)]);}[_0x14da24(0x139)](){const _0x2fa44b=_0x14da24,_0x3387da=this[_0x2fa44b(0x176)][_0x2fa44b(0x122)][_0x2fa44b(0x128)](_0x2fa44b(0x13c));_0x3387da&&this[_0x2fa44b(0x14f)](_0x3387da,_0x2fa44b(0x12b),()=>{const _0x197dcf=_0x2fa44b,_0x320a59=this[_0x197dcf(0x176)][_0x197dcf(0x16e)][_0x197dcf(0x126)][_0x197dcf(0x147)][_0x197dcf(0x158)]();_0x320a59&&_0x320a59[_0x197dcf(0x12c)](_0x197dcf(0x166))&&this[_0x197dcf(0x176)][_0x197dcf(0x13d)][_0x197dcf(0x125)][_0x197dcf(0x172)](_0x197dcf(0x150),()=>{const _0x26b60a=_0x197dcf;_0x22a83f(this[_0x26b60a(0x176)],_0x320a59);});});const _0x4a30ad=this[_0x2fa44b(0x176)][_0x2fa44b(0x122)][_0x2fa44b(0x128)](_0x2fa44b(0x16b));_0x4a30ad&&this[_0x2fa44b(0x14f)](_0x4a30ad,_0x2fa44b(0x12b),()=>{const _0x91e05c=_0x2fa44b,_0x518288=this[_0x91e05c(0x176)][_0x91e05c(0x16e)][_0x91e05c(0x126)][_0x91e05c(0x147)][_0x91e05c(0x158)]();_0x518288&&_0x518288[_0x91e05c(0x12c)](_0x91e05c(0x166))&&this[_0x91e05c(0x176)][_0x91e05c(0x13d)][_0x91e05c(0x125)][_0x91e05c(0x172)](_0x91e05c(0x150),()=>{const _0x245e4a=_0x91e05c;_0x22a83f(this[_0x245e4a(0x176)],_0x518288);});});}}
|
|
23
|
+
const _0x4eb55b=_0x5815;function _0x3e3a(){const _0x145b0b=['998616VUeUrC','uploadcareImageReplace','removeAttribute','selection','PictureEditing','locale','contentLanguage','pluginName','render','_initCtx','data-uc-image-id','href','extend','139141FjKlVs','245KkPRlf','appendChild','UploadcareEditing','commands','getAttribute','iconHrefResolver','editing','true','view','listenTo','downcast','config','configElement','cleanupImage','uploadcare.pubkey','uc-upload-ctx-provider','closeMax','uploadcare.uploader','_initConfig','isPremiumPlugin','uploadcareImageId','for','conversion','731949Tudgyf','uploadcare','_initConversion','1206258aFgSzb','schema','isOfficialPlugin','isRegistered','body','replaceImageSource','imageInline','_configElement','_initSchema','once','destroy','upcast','_initImageProcessingIndicator','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','join','afterInit','fromCharCode','insertImage','requires','709840xeQLpy','uploader-','get','imageBlock','ucContextId','uc-config','querySelector','attributeToAttribute','_ctxElement','execute','add','elementToAttribute','ctxElement','model','getSelectedElement','#uc-icon-arrow-down','editor','init','input[uploadcare-file-input]','324992OdWXTZ','document','remove','1522434VOBfZq','map'];_0x3e3a=function(){return _0x145b0b;};return _0x3e3a();}(function(_0x18a4d6,_0x506c9e){const _0x8f441f=_0x5815,_0x4cd4b3=_0x18a4d6();while(!![]){try{const _0x448e9a=-parseInt(_0x8f441f(0x7f))/0x1+-parseInt(_0x8f441f(0x70))/0x2+parseInt(_0x8f441f(0x97))/0x3+-parseInt(_0x8f441f(0x72))/0x4+-parseInt(_0x8f441f(0xad))/0x5+parseInt(_0x8f441f(0x9a))/0x6+parseInt(_0x8f441f(0x80))/0x7*(parseInt(_0x8f441f(0x6d))/0x8);if(_0x448e9a===_0x506c9e)break;else _0x4cd4b3['push'](_0x4cd4b3['shift']());}catch(_0x3b0b7d){_0x4cd4b3['push'](_0x4cd4b3['shift']());}}}(_0x3e3a,0x8c5a6));import{Plugin as _0x491260}from'ckeditor5/src/core.js';import{Dialog as _0x15c87f}from'ckeditor5/src/ui.js';import{createElement as _0x5f09bc,global as _0x465139,uid as _0x9f56f6}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1d6dae}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x79b93c}from'./uploadcareuploadadapter.js';function _0x5815(_0x2a3d37,_0x4e6acc){const _0x3e3a95=_0x3e3a();return _0x5815=function(_0x581573,_0x2041bd){_0x581573=_0x581573-0x67;let _0x529617=_0x3e3a95[_0x581573];return _0x529617;},_0x5815(_0x2a3d37,_0x4e6acc);}import{showImageProcessingIndicator as _0x118222}from'./utils/editingutils.js';export class UploadcareEditing extends _0x491260{[_0x4eb55b(0xa1)]=null;[_0x4eb55b(0xb5)]=null;static get[_0x4eb55b(0x79)](){const _0x2db4b4=_0x4eb55b;return _0x2db4b4(0x82);}static get[_0x4eb55b(0xac)](){const _0x1f934e=_0x4eb55b;return[_0x1f934e(0x76),_0x79b93c,_0x15c87f];}static get[_0x4eb55b(0x9c)](){return!0x0;}static get[_0x4eb55b(0x93)](){return!0x0;}[_0x4eb55b(0xb1)];get[_0x4eb55b(0x8c)](){const _0x7069d4=_0x4eb55b;return this[_0x7069d4(0xa1)];}get[_0x4eb55b(0xb9)](){const _0x15d163=_0x4eb55b;return this[_0x15d163(0xb5)];}constructor(_0x54155a){const _0x5a3285=_0x4eb55b;super(_0x54155a),this[_0x5a3285(0xb1)]=_0x9f56f6();}[_0x4eb55b(0x6b)](){const _0xb8ed1d=_0x4eb55b,_0x3f282e=this[_0xb8ed1d(0x6a)];_0x3f282e[_0xb8ed1d(0x83)][_0xb8ed1d(0xb7)](_0xb8ed1d(0x98),new _0x1d6dae(_0x3f282e));}[_0x4eb55b(0xa9)](){const _0x346d89=_0x4eb55b;this[_0x346d89(0xa2)](),this[_0x346d89(0x99)](),this[_0x346d89(0x92)](),this[_0x346d89(0x7b)](),this[_0x346d89(0xa6)](),this[_0x346d89(0x89)](this[_0x346d89(0x6a)],_0x346d89(0xa4),()=>{const _0x7ffb27=_0x346d89;this[_0x7ffb27(0xa1)]&&(this[_0x7ffb27(0xa1)][_0x7ffb27(0x6f)](),this[_0x7ffb27(0xa1)]=null),this[_0x7ffb27(0xb5)]&&(this[_0x7ffb27(0xb5)][_0x7ffb27(0x6f)](),this[_0x7ffb27(0xb5)]=null);const _0x52cfd1=_0x465139[_0x7ffb27(0x6e)][_0x7ffb27(0xb3)](_0x7ffb27(0x6c));_0x52cfd1&&_0x52cfd1[_0x7ffb27(0x6f)]();}),async function(_0x40fc4){const _0x56fda2=_0x5da6cc([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x30506e=0x3d8d0df,_0xe52b06=0x3dfa497^_0x30506e,_0x538566=window[_0x5da6cc([0x44,0x61,0x74,0x65])][_0x5da6cc([0x6e,0x6f,0x77])](),_0x3029aa=_0x40fc4[_0x5da6cc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x153893=new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26b8e0=>{_0x3029aa[_0x5da6cc([0x6f,0x6e,0x63,0x65])](_0x5da6cc([0x72,0x65,0x61,0x64,0x79]),_0x26b8e0);}),_0x1b46f8={[_0x5da6cc([0x6b,0x74,0x79])]:_0x5da6cc([0x45,0x43]),[_0x5da6cc([0x75,0x73,0x65])]:_0x5da6cc([0x73,0x69,0x67]),[_0x5da6cc([0x63,0x72,0x76])]:_0x5da6cc([0x50,0x2d,0x32,0x35,0x36]),[_0x5da6cc([0x78])]:_0x5da6cc([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]),[_0x5da6cc([0x79])]:_0x5da6cc([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]),[_0x5da6cc([0x61,0x6c,0x67])]:_0x5da6cc([0x45,0x53,0x32,0x35,0x36])},_0x2d4d61=_0x3029aa[_0x5da6cc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5da6cc([0x67,0x65,0x74])](_0x5da6cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5ccf1d(){let _0x5b3979,_0x4bcd83=null,_0x4f5cd0=null;try{if(_0x2d4d61==_0x5da6cc([0x47,0x50,0x4c]))return _0x5da6cc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5b3979=_0x134c80(),!_0x5b3979)return _0x5da6cc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5b3979[_0x5da6cc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f5cd0=_0x4517a3(_0x5b3979[_0x5da6cc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5b3979[_0x5da6cc([0x6a,0x74,0x69])])),await _0x286ba6()?_0x50e842()?_0x971c35()?_0x5da6cc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ce107()?(_0x5b3979[_0x5da6cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5da6cc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bcd83=_0x4c8443(_0x5da6cc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5b3979[_0x5da6cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5da6cc([0x74,0x72,0x69,0x61,0x6c])&&(_0x4bcd83=_0x4c8443(_0x5da6cc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1102d()):_0x5da6cc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5da6cc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5da6cc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5da6cc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x971c35(){const _0x2a5376=[_0x5da6cc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5da6cc([0x74,0x72,0x69,0x61,0x6c])][_0x5da6cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b3979[_0x5da6cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x538566/0x3e8:0xe10*_0xe52b06;return _0x5b3979[_0x5da6cc([0x65,0x78,0x70])]<_0x2a5376;}function _0x50e842(){const _0x4b9ce5=_0x5b3979[_0x5da6cc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4b9ce5&&(!!_0x4b9ce5[_0x5da6cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5da6cc([0x2a]))||!!_0x4b9ce5[_0x5da6cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5da6cc([0x55,0x50,0x4c,0x43])));}function _0x4ce107(){const _0x171f37=_0x5815,_0xfe678d=_0x5b3979[_0x5da6cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfe678d||0x0==_0xfe678d[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54719b}=new URL(window[_0x5da6cc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x171f37(0x7d)]);if(_0xfe678d[_0x5da6cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54719b))return!0x0;const _0x2fe5e6=_0x54719b[_0x5da6cc([0x73,0x70,0x6c,0x69,0x74])](_0x5da6cc([0x2e]));return _0xfe678d[_0x5da6cc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52f880=>_0x52f880[_0x5da6cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5da6cc([0x2a])))[_0x5da6cc([0x6d,0x61,0x70])](_0x5dbd7f=>_0x5dbd7f[_0x5da6cc([0x73,0x70,0x6c,0x69,0x74])](_0x5da6cc([0x2e])))[_0x5da6cc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x376aa6=>_0x376aa6[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2fe5e6[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5da6cc([0x6d,0x61,0x70])](_0xeb4caa=>Array(_0x2fe5e6[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xeb4caa[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5da6cc([0x66,0x69,0x6c,0x6c])](_0xeb4caa[0x0]===_0x5da6cc([0x2a])?_0x5da6cc([0x2a]):'')[_0x5da6cc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xeb4caa))[_0x5da6cc([0x73,0x6f,0x6d,0x65])](_0x5d1c01=>_0x2fe5e6[_0x5da6cc([0x65,0x76,0x65,0x72,0x79])]((_0x4cc461,_0x583a76)=>_0x5d1c01[_0x583a76]===_0x4cc461||_0x5d1c01[_0x583a76]===_0x5da6cc([0x2a])));}function _0x1102d(){return _0x4bcd83&&_0x4f5cd0?new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfdcc59,_0x15633f)=>{_0x4bcd83[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0xfdcc59,_0x15633f),_0x4f5cd0[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0x150f3e=>{_0x150f3e!=_0x5da6cc([0x56,0x61,0x6c,0x69,0x64])&&_0xfdcc59(_0x150f3e);},_0x15633f);}):_0x4bcd83||_0x4f5cd0||_0x5da6cc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4517a3(_0x2e694f,_0x4566ce){return new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x90c575=>{if(_0x14c9b2())return _0x90c575(_0x5da6cc([0x56,0x61,0x6c,0x69,0x64]));_0xe7f300(),_0x3029aa[_0x5da6cc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5da6cc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x45bde7=!0x1;const _0x381453=_0x9f56f6();function _0x55bd1e(_0x4f1ff9){return!!_0x4f1ff9&&(typeof _0x4f1ff9===_0x5da6cc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f1ff9===_0x5da6cc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f1ff9[_0x5da6cc([0x74,0x68,0x65,0x6e])]===_0x5da6cc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f1ff9[_0x5da6cc([0x63,0x61,0x74,0x63,0x68])]===_0x5da6cc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c445c(_0x259475){_0x49504c(_0x259475)[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0x165bac=>{if(!_0x165bac||_0x165bac[_0x5da6cc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5da6cc([0x6f,0x6b]))return _0x5da6cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x561a6(_0x42b6cf(_0x381453+_0x4566ce))!=_0x165bac[_0x5da6cc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5da6cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5da6cc([0x56,0x61,0x6c,0x69,0x64]);})[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0x586f1d=>(_0x3f3f7a(),_0x586f1d),()=>{const _0x202000=_0x25ce3a();return null==_0x202000?(_0x3f3f7a(),_0x5da6cc([0x56,0x61,0x6c,0x69,0x64])):_0x5da6cc(_0x538566-_0x202000>(0x27d454df^_0x30506e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0x90c575)[_0x5da6cc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x90c575(_0x5da6cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x206833=0x3ee3e5f^_0x30506e;function _0x3f3f7a(){const _0x3886ec=_0x5da6cc([0x6c,0x6c,0x63,0x74,0x2d])+_0x561a6(_0x42b6cf(_0x2e694f)),_0x58a6c7=_0x21aa7a(_0x561a6(window[_0x5da6cc([0x4d,0x61,0x74,0x68])][_0x5da6cc([0x63,0x65,0x69,0x6c])](_0x538566/_0x206833)));window[_0x5da6cc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5da6cc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3886ec,_0x58a6c7);}function _0x25ce3a(){const _0x28cb1e=_0x5da6cc([0x6c,0x6c,0x63,0x74,0x2d])+_0x561a6(_0x42b6cf(_0x2e694f)),_0x4b2b75=window[_0x5da6cc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5da6cc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28cb1e);return _0x4b2b75?window[_0x5da6cc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21aa7a(_0x4b2b75),0x10)*_0x206833:null;}function _0x49504c(_0x4b674e){return new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c7167,_0x50d6a1)=>{_0x4b674e[_0x5da6cc([0x74,0x68,0x65,0x6e])](_0x4c7167,_0x50d6a1),window[_0x5da6cc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50d6a1,0x3d9041f^_0x30506e);});}}_0x3029aa[_0x5da6cc([0x6f,0x6e])](_0x5da6cc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5eaadc,_0xe927df)=>{if(_0xe927df[0x0]!=_0x2e694f)return _0x90c575(_0x5da6cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe927df[0x1]={..._0xe927df[0x1],[_0x5da6cc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x381453};},{[_0x5da6cc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5da6cc([0x68,0x69,0x67,0x68])}),_0x3029aa[_0x5da6cc([0x6f,0x6e])](_0x5da6cc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b214b=>{_0x55bd1e(_0x1b214b[_0x5da6cc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x45bde7=!0x0,_0x4c445c(_0x1b214b[_0x5da6cc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5da6cc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5da6cc([0x6c,0x6f,0x77])}),_0x153893[_0x5da6cc([0x74,0x68,0x65,0x6e])](()=>{_0x45bde7||_0x90c575(_0x5da6cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14c9b2(){return _0x3029aa[_0x5da6cc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5da6cc([0x76,0x69,0x65,0x77])][_0x5da6cc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5da6cc([0x61,0x75,0x74,0x6f]);}function _0xe7f300(){_0x3029aa[_0x5da6cc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5da6cc([0x76,0x69,0x65,0x77])][_0x5da6cc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5da6cc([0x61,0x75,0x74,0x6f]);}}function _0x4c8443(_0x594696){const _0x29d065=[new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58a577=>setTimeout(_0x58a577,0x3d1ee13^_0x30506e)),_0x153893[_0x5da6cc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56ebad=>{let _0x23c7dc=0x0;_0x3029aa[_0x5da6cc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5da6cc([0x6f,0x6e])](_0x5da6cc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c6223,_0x32cacc)=>{_0x32cacc[0x0][_0x5da6cc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x23c7dc++,_0x23c7dc==(0x3d8d127^_0x30506e)&&(_0x56ebad(),_0x2c6223[_0x5da6cc([0x6f,0x66,0x66])]());});}))];return window[_0x5da6cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5da6cc([0x72,0x61,0x63,0x65])](_0x29d065)[_0x5da6cc([0x74,0x68,0x65,0x6e])](()=>_0x594696);}async function _0x244169(){await _0x153893,_0x3029aa[_0x5da6cc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5da6cc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf5cc97,_0x3029aa[_0x5da6cc([0x6d,0x6f,0x64,0x65,0x6c])][_0x5da6cc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf5cc97,_0x3029aa[_0x5da6cc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5da6cc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x444935(_0x1ef2e7){const _0x45e93c=_0x230b85();_0x3029aa[_0x45e93c]=_0x5da6cc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ef2e7,_0x1ef2e7!=_0x5da6cc([0x56,0x61,0x6c,0x69,0x64])&&_0x244169();}function _0x230b85(){const _0x56c29b=window[_0x5da6cc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5da6cc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5da6cc([0x6e,0x6f,0x77])]())[_0x5da6cc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5da6cc([0x2e]),'');let _0x37a88a=_0x5da6cc([0x52]);for(let _0x5c51a2=0x0;_0x5c51a2<_0x56c29b[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c51a2+=0x2){let _0xe48c75=window[_0x5da6cc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56c29b[_0x5da6cc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c51a2,_0x5c51a2+0x2));_0xe48c75>=_0x56fda2[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe48c75-=_0x56fda2[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37a88a+=_0x56fda2[_0xe48c75];}return _0x37a88a;}function _0x134c80(){const _0x791a85=_0x2d4d61[_0x5da6cc([0x73,0x70,0x6c,0x69,0x74])](_0x5da6cc([0x2e]));if(0x3!=_0x791a85[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bc763(_0x791a85[0x1]);function _0x5bc763(_0x565992){const _0x51f2f0=_0x2f2034(_0x565992);return _0x51f2f0&&_0x569f62()?_0x51f2f0:null;function _0x569f62(){const _0x1f4679=_0x51f2f0[_0x5da6cc([0x6a,0x74,0x69])],_0x5bfd95=window[_0x5da6cc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f4679[_0x5da6cc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f4679[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x110c55={..._0x51f2f0,[_0x5da6cc([0x6a,0x74,0x69])]:_0x1f4679[_0x5da6cc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f4679[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x110c55[_0x5da6cc([0x76,0x63])],_0x42b6cf(_0x110c55)==_0x5bfd95;}}}async function _0x286ba6(){let _0x32006d=!0x0;try{const _0xc2f34d=_0x2d4d61[_0x5da6cc([0x73,0x70,0x6c,0x69,0x74])](_0x5da6cc([0x2e])),[_0x4f3700,_0x1b5991,_0xe21c01]=_0xc2f34d;return _0x112597(_0x4f3700),await _0x110d80(_0x4f3700,_0x1b5991,_0xe21c01),_0x32006d;}catch{return!0x1;}function _0x112597(_0x6b70a4){const _0x88768c=_0x2f2034(_0x6b70a4);_0x88768c&&_0x88768c[_0x5da6cc([0x61,0x6c,0x67])]==_0x5da6cc([0x45,0x53,0x32,0x35,0x36])||(_0x32006d=!0x1);}async function _0x110d80(_0x305859,_0x1f72bb,_0x53ec9a){const _0x4ba806=window[_0x5da6cc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5da6cc([0x66,0x72,0x6f,0x6d])](_0x4caa0f(_0x53ec9a),_0x485adb=>_0x485adb[_0x5da6cc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37eecc=new window[(_0x5da6cc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5da6cc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x305859+_0x5da6cc([0x2e])+_0x1f72bb),_0x219ac0=window[_0x5da6cc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5da6cc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x219ac0)return;const _0x313ba1=await _0x219ac0[_0x5da6cc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5da6cc([0x6a,0x77,0x6b]),_0x1b46f8,{[_0x5da6cc([0x6e,0x61,0x6d,0x65])]:_0x5da6cc([0x45,0x43,0x44,0x53,0x41]),[_0x5da6cc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5da6cc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5da6cc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x219ac0[_0x5da6cc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5da6cc([0x6e,0x61,0x6d,0x65])]:_0x5da6cc([0x45,0x43,0x44,0x53,0x41]),[_0x5da6cc([0x68,0x61,0x73,0x68])]:{[_0x5da6cc([0x6e,0x61,0x6d,0x65])]:_0x5da6cc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x313ba1,_0x4ba806,_0x37eecc)||(_0x32006d=!0x1);}}function _0x2f2034(_0x1d4bff){return _0x1d4bff[_0x5da6cc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5da6cc([0x65,0x79]))?JSON[_0x5da6cc([0x70,0x61,0x72,0x73,0x65])](_0x4caa0f(_0x1d4bff)):null;}function _0x4caa0f(_0x538bc1){return window[_0x5da6cc([0x61,0x74,0x6f,0x62])](_0x538bc1[_0x5da6cc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5da6cc([0x2b]))[_0x5da6cc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5da6cc([0x2f])));}function _0x42b6cf(_0x4d8499){let _0x541728=0x1505;function _0x6dd20b(_0x45ad7f){for(let _0x223091=0x0;_0x223091<_0x45ad7f[_0x5da6cc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x223091++){const _0x5284cf=_0x45ad7f[_0x5da6cc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x223091);_0x541728=(_0x541728<<0x5)+_0x541728+_0x5284cf,_0x541728&=_0x541728;}}function _0xd14d43(_0x151a52){Array[_0x5da6cc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x151a52)?_0x151a52[_0x5da6cc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd14d43):_0x151a52&&typeof _0x151a52==_0x5da6cc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5da6cc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x151a52)[_0x5da6cc([0x73,0x6f,0x72,0x74])]()[_0x5da6cc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a814f,_0x5a2c84])=>{_0x6dd20b(_0x2a814f),_0xd14d43(_0x5a2c84);}):_0x6dd20b(window[_0x5da6cc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x151a52));}return _0xd14d43(_0x4d8499),_0x541728>>>0x0;}function _0x561a6(_0x56bd7c){return _0x56bd7c[_0x5da6cc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5da6cc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5da6cc([0x30]));}function _0x21aa7a(_0x3df2f2){return _0x3df2f2[_0x5da6cc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5da6cc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5da6cc([0x6a,0x6f,0x69,0x6e])]('');}function _0xf5cc97(){}function _0x5da6cc(_0x538ab8){const _0x407e05=_0x5815;return _0x538ab8[_0x407e05(0x71)](_0x5ba9d6=>String[_0x407e05(0xaa)](_0x5ba9d6))[_0x407e05(0xa8)]('');}_0x444935(await _0x5ccf1d());}(this);}[_0x4eb55b(0xa2)](){const _0x4881d2=_0x4eb55b,_0x23240d=this[_0x4881d2(0x6a)][_0x4881d2(0x67)][_0x4881d2(0x9b)];_0x23240d[_0x4881d2(0x9d)](_0x4881d2(0xb0))&&_0x23240d[_0x4881d2(0x7e)](_0x4881d2(0xb0),{'allowAttributes':[_0x4881d2(0x94)]}),_0x23240d[_0x4881d2(0x9d)](_0x4881d2(0xa0))&&_0x23240d[_0x4881d2(0x7e)](_0x4881d2(0xa0),{'allowAttributes':[_0x4881d2(0x94)]});}[_0x4eb55b(0x99)](){const _0x3f35bf=_0x4eb55b,_0x2171ca=this[_0x3f35bf(0x6a)];_0x2171ca[_0x3f35bf(0x96)][_0x3f35bf(0x95)](_0x3f35bf(0x8a))[_0x3f35bf(0xb4)]({'model':_0x3f35bf(0x94),'view':_0x3f35bf(0x7c)}),_0x2171ca[_0x3f35bf(0x96)][_0x3f35bf(0x95)](_0x3f35bf(0xa5))[_0x3f35bf(0xb8)]({'model':{'key':_0x3f35bf(0x94),'value':_0x1e38bb=>_0x1e38bb[_0x3f35bf(0x84)](_0x3f35bf(0x7c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x585dee=_0x2171ca[_0x3f35bf(0x83)][_0x3f35bf(0xaf)](_0x3f35bf(0x9f));_0x585dee&&this[_0x3f35bf(0x89)](_0x585dee,_0x3f35bf(0x8d),(_0x3861f9,[_0x2b5ac0,_0x5a480c])=>{const _0x2fb383=_0x3f35bf;_0x2b5ac0[_0x2fb383(0x74)](_0x2fb383(0x94),_0x5a480c);});}[_0x4eb55b(0x92)](){const _0x4c3bba=_0x4eb55b,_0x2ce269=this[_0x4c3bba(0x6a)][_0x4c3bba(0x8b)][_0x4c3bba(0xaf)](_0x4c3bba(0x91))||{},_0x41732b=this[_0x4c3bba(0x6a)][_0x4c3bba(0x8b)][_0x4c3bba(0xaf)](_0x4c3bba(0x8e))||'';this[_0x4c3bba(0xa1)]=_0x5f09bc(_0x465139[_0x4c3bba(0x6e)],_0x4c3bba(0xb2),{..._0x2ce269,'pubkey':_0x41732b,'ctx-name':_0x4c3bba(0xae)+this[_0x4c3bba(0xb1)],'sourceList':'','imgOnly':_0x4c3bba(0x87),'removeCopyright':_0x4c3bba(0x87),'localeName':this[_0x4c3bba(0x6a)][_0x4c3bba(0x77)][_0x4c3bba(0x78)],'externalSourcesEmbedCss':_0x4c3bba(0xa7)}),this[_0x4c3bba(0xa1)][_0x4c3bba(0x85)]=_0x5cc9d3=>{const _0x2a0b32=_0x4c3bba;if(_0x2a0b32(0x90)==_0x5cc9d3)return _0x2a0b32(0x69);},_0x465139[_0x4c3bba(0x6e)][_0x4c3bba(0x9e)][_0x4c3bba(0x81)](this[_0x4c3bba(0xa1)]);}[_0x4eb55b(0x7b)](){const _0x56f1ad=_0x4eb55b;this[_0x56f1ad(0xb5)]=_0x5f09bc(_0x465139[_0x56f1ad(0x6e)],_0x56f1ad(0x8f),{'ctx-name':_0x56f1ad(0xae)+this[_0x56f1ad(0xb1)]}),_0x465139[_0x56f1ad(0x6e)][_0x56f1ad(0x9e)][_0x56f1ad(0x81)](this[_0x56f1ad(0xb5)]);}[_0x4eb55b(0xa6)](){const _0xf65e01=_0x4eb55b,_0x288d1c=this[_0xf65e01(0x6a)][_0xf65e01(0x83)][_0xf65e01(0xaf)](_0xf65e01(0xab));_0x288d1c&&this[_0xf65e01(0x89)](_0x288d1c,_0xf65e01(0xb6),()=>{const _0x506a22=_0xf65e01,_0x38f53b=this[_0x506a22(0x6a)][_0x506a22(0x67)][_0x506a22(0x6e)][_0x506a22(0x75)][_0x506a22(0x68)]();_0x38f53b&&_0x38f53b[_0x506a22(0x84)](_0x506a22(0x94))&&this[_0x506a22(0x6a)][_0x506a22(0x86)][_0x506a22(0x88)][_0x506a22(0xa3)](_0x506a22(0x7a),()=>{const _0x535a36=_0x506a22;_0x118222(this[_0x535a36(0x6a)],_0x38f53b);});});const _0x36c018=this[_0xf65e01(0x6a)][_0xf65e01(0x83)][_0xf65e01(0xaf)](_0xf65e01(0x73));_0x36c018&&this[_0xf65e01(0x89)](_0x36c018,_0xf65e01(0xb6),()=>{const _0x484ab8=_0xf65e01,_0x19d2f9=this[_0x484ab8(0x6a)][_0x484ab8(0x67)][_0x484ab8(0x6e)][_0x484ab8(0x75)][_0x484ab8(0x68)]();_0x19d2f9&&_0x19d2f9[_0x484ab8(0x84)](_0x484ab8(0x94))&&this[_0x484ab8(0x6a)][_0x484ab8(0x86)][_0x484ab8(0x88)][_0x484ab8(0xa3)](_0x484ab8(0x7a),()=>{const _0x4ad8e8=_0x484ab8;_0x118222(this[_0x4ad8e8(0x6a)],_0x19d2f9);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x39a4c6,ObservableMixin as _0x4f47c7}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5e1efc}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1d6dcf}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x363ec9}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x18a829}from'../../utils/uploadutils.js';import{getImageUrls as _0xba4785,getImageDimension as _0x37fc15}from'../../utils/editingutils.js';import{isAncestor as _0x163a80}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4f47c7(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x39c92b,_0xccfd2b,_0x1ce90a){super(),this['_editor']=_0x39c92b,this['_dialog']=_0xccfd2b,this['_imageElement']=_0x1ce90a,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 _0x3afa32=this['_imageElement'],_0x436925=_0x3afa32['getAttribute']('uploadcareImageId'),_0x557768=_0x3afa32['getAttribute']('src');if(_0x436925)await this['_loadImageInfo'](_0x436925,_0x557768);else{if(this['_imageCache']['has'](_0x557768)){const _0x29d04a=this['_imageCache']['get'](_0x557768);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29d04a['url'],this['imageDimension']=_0x29d04a['dimension'],this['imageId']=_0x29d04a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4d376b}=this['_editor'],t=_0x4d376b['t'],_0x233fc3=new _0x363ec9(_0x4d376b,this['imageStatus'],this['_attributes']);_0x233fc3['bind']('status')['to'](this,'imageStatus'),_0x233fc3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x233fc3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x233fc3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x233fc3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1d6dcf,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x233fc3,'position':_0x5e1efc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x233fc3['focus']();},'onHide':()=>{_0x233fc3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x54e8cc=>!_0x163a80(_0x54e8cc,_0x233fc3['element'])}});}['_loadImageInfo'](_0x3403a9,_0x556c6e){return _0x18a829['getInfo'](_0x3403a9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1c10ff=>{const {width:_0x1e8a5f,height:_0x53e958}=_0x1c10ff['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x556c6e,this['imageDimension']={'width':_0x1e8a5f,'height':_0x53e958},this['imageId']=_0x3403a9;})['catch'](_0x2bb55a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2bb55a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x399bc7,_0x448a27){return this['_getImageAsFile'](_0x399bc7)['then'](_0x436de3=>_0x18a829['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':_0x448a27['signal'],'file':_0x436de3,'onProgress':_0x5772be=>{_0x5772be&&_0x5772be['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5772be['value']));}}))['then'](_0x2b5e1c=>{const {width:_0x212d7d,height:_0x199a57}=_0x2b5e1c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b5e1c['cdnUrl'],this['imageDimension']={'width':_0x212d7d,'height':_0x199a57},this['imageId']=_0x2b5e1c['uuid'],this['imageUploadProgress']=null;const _0x31a738=_0x399bc7['getAttribute']('src');this['_imageCache']['set'](_0x31a738,{'id':_0x2b5e1c['uuid'],'url':_0x2b5e1c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1793ec=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1793ec['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1010a0,_0x5cf116){_0x1010a0['on']('apply',(_0x461e68,_0x3f22bc)=>{this['_replaceImage'](_0x5cf116,_0x3f22bc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1010a0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1010a0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x545c03,_0x44baba,_0x1b404c){const _0x468817=this['_editor'],{width:_0x5cb3fa,height:_0x3d06f8}=_0x37fc15(_0x44baba,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4da2ba,imageSources:_0x317716}=_0xba4785(_0x44baba,_0x5cb3fa);_0x468817['model']['change'](_0x3dd03b=>{if('$graveyard'===_0x545c03['root']['rootName']){_0x468817['execute']('insertImage',{'imageType':_0x545c03['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x545c03['getAttributes']()),'uploadcareImageId':_0x1b404c,'src':_0x4da2ba,'sources':_0x317716,'width':_0x5cb3fa,'height':_0x3d06f8}});const _0x1dc069=_0x545c03['getChildren']();_0x545c03=_0x468817['model']['document']['selection']['getSelectedElement']();for(const _0xd4d74b of _0x1dc069)_0x3dd03b['append'](_0x3dd03b['cloneElement'](_0xd4d74b),_0x545c03);}else _0x3dd03b['setSelection'](_0x545c03,'on'),_0x468817['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x545c03['getAttributes']()),'uploadcareImageId':_0x1b404c,'src':_0x4da2ba,'sources':_0x317716,'width':_0x5cb3fa,'height':_0x3d06f8},_0x545c03);_0x3dd03b['setSelection'](_0x545c03,'on');});}async['_getImageAsFile'](_0x12a361){const _0x3e27e4=_0x39a4c6['window'],_0x1ff6a=_0x39a4c6['document']['location']['href'],_0x4b0508=new _0x3e27e4['URL'](_0x12a361['getAttribute']('src'),_0x1ff6a);if('data:'===_0x4b0508['protocol']){const _0x1896e0=_0x4b0508['href']['split'](','),_0x29bb63=_0x1896e0[0x0]['match'](/:(.*?);/)[0x1],_0x5c2e08=_0x29bb63['split']('/')[0x1],_0x28da91=_0x3e27e4['atob'](_0x1896e0[_0x1896e0['length']-0x1]);let _0x583a8a=_0x28da91['length'];const _0x3a30d0=new _0x3e27e4['Uint8Array'](_0x583a8a);for(;_0x583a8a--;)_0x3a30d0[_0x583a8a]=_0x28da91['charCodeAt'](_0x583a8a);return new _0x3e27e4['File']([_0x3a30d0],'image.'+_0x5c2e08,{'type':_0x29bb63});}const _0x5d9919=_0x4b0508['href']['split']('/'),_0x332eb8=_0x5d9919[_0x5d9919['length']-0x1],_0x55bc4e=_0x332eb8['split']('.')[0x1];return _0x3e27e4['fetch'](_0x4b0508['href'])['then'](_0x20b4e1=>_0x20b4e1['clone']()['blob']())['then'](_0x28e741=>new _0x3e27e4['File']([_0x28e741],_0x332eb8,{'type':'image/'+_0x55bc4e}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x22b10c,_0x23f93c){const _0x706e3c=_0x4970,_0x18f5ab=_0x22b10c();while(!![]){try{const _0x55c676=parseInt(_0x706e3c(0x139))/0x1*(-parseInt(_0x706e3c(0x143))/0x2)+parseInt(_0x706e3c(0x145))/0x3*(-parseInt(_0x706e3c(0x140))/0x4)+parseInt(_0x706e3c(0x13b))/0x5*(parseInt(_0x706e3c(0x133))/0x6)+-parseInt(_0x706e3c(0x138))/0x7*(parseInt(_0x706e3c(0x142))/0x8)+parseInt(_0x706e3c(0x134))/0x9*(-parseInt(_0x706e3c(0x13e))/0xa)+-parseInt(_0x706e3c(0x13c))/0xb+parseInt(_0x706e3c(0x13a))/0xc;if(_0x55c676===_0x23f93c)break;else _0x18f5ab['push'](_0x18f5ab['shift']());}catch(_0x1d1c94){_0x18f5ab['push'](_0x18f5ab['shift']());}}}(_0x456c,0x193db));function _0x4970(_0x572e20,_0x3fda30){const _0x456cfc=_0x456c();return _0x4970=function(_0x4970c0,_0x188499){_0x4970c0=_0x4970c0-0x132;let _0x5ef92d=_0x456cfc[_0x4970c0];return _0x5ef92d;},_0x4970(_0x572e20,_0x3fda30);}import{View as _0xf63c60}from'ckeditor5/src/ui.js';function _0x456c(){const _0x23664e=['18cegEop','imageSrc','image-edit','uc-cloud-image-editor','7piOJRl','204531bjiEPy','3978108bMQHLT','30NNkacj','891770IwfwPs','uc-light','112430SpJQzv','bindTemplate','56LVYJpi','set','364712lADCjp','2IljYGl','ck-uploadcare-theme','5547ytMXvd','setTemplate','151440mimdHp'];_0x456c=function(){return _0x23664e;};return _0x456c();}export class UploadcareImageEditFormEditingView extends _0xf63c60{constructor(_0x4af66a,_0xed132b){const _0x58ab36=_0x4970;super(_0x4af66a);const _0x22cfc2=this[_0x58ab36(0x13f)];this[_0x58ab36(0x141)](_0x58ab36(0x135),''),this[_0x58ab36(0x132)]({'tag':_0x58ab36(0x137),'attributes':{..._0xed132b,'class':[_0x58ab36(0x13d),_0x58ab36(0x144)],'ctx-name':_0x58ab36(0x136),'cdn-url':_0x22cfc2['to'](_0x58ab36(0x135))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x25cd30}from'ckeditor5/src/icons.js';import{ButtonView as _0x19d328,IconView as _0x2fc7fe,View as _0x4bd6cb}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x4bd6cb{constructor(_0x304e14){super(_0x304e14);const t=_0x304e14['t'];this['set']('errorType',null);const _0xa169bb=new _0x19d328(_0x304e14);_0xa169bb['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xa169bb['withText']=!0x0,_0xa169bb['class']='ck-button-action',_0xa169bb['on']('execute',()=>{this['fire']('retry');}),_0xa169bb['bind']('isVisible')['to'](this,'errorType',_0x48efda=>'NotFound'!==_0x48efda);const _0x172529=new _0x2fc7fe();_0x172529['content']=_0x25cd30,_0x172529['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x51d92b=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':[_0x172529,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x51d92b['to']('errorType',_0x4d368f=>t('NotFound'!==_0x4d368f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xa169bb]},{'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 _0x22e64a,View as _0xce8c59}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0xce8c59{constructor(_0x5c4510){super(_0x5c4510);const t=_0x5c4510['t'],_0x4af011=this['bindTemplate'],_0x157d7b=new _0x22e64a();_0x157d7b['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':[_0x157d7b,{'text':_0x4af011['to']('imageUploadProgress',_0x57a346=>t('Loading\x20image...')+'\x20('+(_0x57a346||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 _0x409eaa=_0x31a1;(function(_0xe5563c,_0x5ce076){const _0x2b0f88=_0x31a1,_0x17bacb=_0xe5563c();while(!![]){try{const _0x5c8dec=-parseInt(_0x2b0f88(0xbf))/0x1+-parseInt(_0x2b0f88(0x9c))/0x2*(-parseInt(_0x2b0f88(0xbd))/0x3)+parseInt(_0x2b0f88(0x90))/0x4+parseInt(_0x2b0f88(0xb2))/0x5+parseInt(_0x2b0f88(0x91))/0x6+parseInt(_0x2b0f88(0xa5))/0x7+-parseInt(_0x2b0f88(0x96))/0x8*(parseInt(_0x2b0f88(0xb8))/0x9);if(_0x5c8dec===_0x5ce076)break;else _0x17bacb['push'](_0x17bacb['shift']());}catch(_0x1be466){_0x17bacb['push'](_0x17bacb['shift']());}}}(_0xb1ee,0xae99f));import{View as _0x10dbad}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1c1491}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3a6841}from'./uploadcareimageeditformerrorview.js';function _0x31a1(_0x56326e,_0x3063c6){const _0xb1ee40=_0xb1ee();return _0x31a1=function(_0x31a149,_0x39fee4){_0x31a149=_0x31a149-0x8e;let _0x429b72=_0xb1ee40[_0x31a149];return _0x429b72;},_0x31a1(_0x56326e,_0x3063c6);}function _0xb1ee(){const _0x5c5acb=['error','addEventListener','_loadingView','ready','div','detail','render','2398595qLiGEv','disconnect','focus','retry','_setView','target','126DgRXZC','_addUploadcareImageEditorListeners','once','_items','change:status','1720071VLsIVd','toLowerCase','641224BnBgpg','apply','addMany','querySelector','add','clear','uploading','849576cyHrYR','8266812znlfXp','nodeName','element','_errorView','getFocusableElement','1406896nQMmoX','setTemplate','filter','cancel','observe','length','2vPpCpH','cdnUrl','set','ck-uploadcare-form','_waitForImageEditorComponent','uc-cloud-image-editor','fire','_addErrorViewListeners','addedNodes','8226309YpoBjF','ck-reset_all-excluded','createCollection','_editingView','_focusableView','status'];_0xb1ee=function(){return _0x5c5acb;};return _0xb1ee();}import{UploadcareImageEditFormEditingView as _0x40c981}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x16d9b0}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x16d9b0{[_0x409eaa(0xbb)];[_0x409eaa(0xad)];[_0x409eaa(0x94)];[_0x409eaa(0xa8)];[_0x409eaa(0xa9)];constructor(_0x22ec02,_0x41a256,_0x50f789){const _0xd772a7=_0x409eaa;super(_0x22ec02),this[_0xd772a7(0xbb)]=this[_0xd772a7(0xa7)](),this[_0xd772a7(0xad)]=new _0x1c1491(_0x22ec02),this[_0xd772a7(0x94)]=new _0x3a6841(_0x22ec02),this[_0xd772a7(0xa8)]=new _0x40c981(_0x22ec02,_0x50f789),this[_0xd772a7(0xa9)]=new _0x10dbad(_0x22ec02),this[_0xd772a7(0xa9)][_0xd772a7(0x97)](this[_0xd772a7(0x95)]()),this[_0xd772a7(0x9e)](_0xd772a7(0xaa),_0x41a256),this[_0xd772a7(0x97)]({'tag':_0xd772a7(0xaf),'attributes':{'class':['ck',_0xd772a7(0xa6),_0xd772a7(0x9f)],'tabindex':'-1'},'children':this[_0xd772a7(0xbb)]}),this[_0xd772a7(0xb6)](),this[_0xd772a7(0xba)](_0xd772a7(0xb1),()=>{const _0x183b6f=_0xd772a7;this[_0x183b6f(0xa0)](this[_0x183b6f(0x93)],_0x29e575=>{const _0x47c646=_0x183b6f;this[_0x47c646(0xb9)](_0x29e575);});}),this['on'](_0xd772a7(0xbc),()=>{const _0x2d4729=_0xd772a7;this[_0x2d4729(0xb6)]();}),this[_0xd772a7(0xa3)]();}[_0x409eaa(0xb4)](){const _0x17e7e9=_0x409eaa;this[_0x17e7e9(0x93)][_0x17e7e9(0xb4)]();}[_0x409eaa(0xb6)](){const _0x182701=_0x409eaa;switch(this[_0x182701(0xbb)][_0x182701(0x8e)](),this[_0x182701(0xaa)]){case _0x182701(0x8f):this[_0x182701(0xbb)][_0x182701(0xc3)](this[_0x182701(0xad)]);break;case _0x182701(0xab):this[_0x182701(0xbb)][_0x182701(0xc3)](this[_0x182701(0x94)]);break;case _0x182701(0xae):this[_0x182701(0xbb)][_0x182701(0xc1)]([this[_0x182701(0xa8)],this[_0x182701(0xa9)]]);}}[_0x409eaa(0xa0)](_0x521c27,_0x1a01e3){const _0x7ac237=_0x409eaa,_0x5d48de=_0x7ac237(0xa1),_0x3438b8=_0x521c27[_0x7ac237(0xc2)](_0x5d48de);if(_0x3438b8)return _0x1a01e3(_0x3438b8);const _0x482c0c=new MutationObserver(_0x105c0c=>{const _0x26f482=_0x7ac237,_0x48e2f8=_0x105c0c[_0x26f482(0x98)](_0x1f39ee=>_0x1f39ee[_0x26f482(0xb7)]===_0x521c27&&_0x1f39ee[_0x26f482(0xa4)][_0x26f482(0x9b)]>0x0&&_0x1f39ee[_0x26f482(0xa4)][0x0][_0x26f482(0x92)][_0x26f482(0xbe)]()===_0x5d48de);_0x48e2f8[_0x26f482(0x9b)]&&(_0x482c0c[_0x26f482(0xb3)](),_0x1a01e3(_0x48e2f8[0x0][_0x26f482(0xa4)][0x0]));});_0x482c0c[_0x7ac237(0x9a)](_0x521c27,{'childList':!0x0,'subtree':!0x0});}[_0x409eaa(0xb9)](_0x22a938){const _0x1933be=_0x409eaa;_0x22a938[_0x1933be(0xac)](_0x1933be(0xc0),_0x36999c=>{const _0x2d0c96=_0x1933be;this[_0x2d0c96(0xa2)](_0x2d0c96(0xc0),{'imageSrc':_0x36999c[_0x2d0c96(0xb0)][_0x2d0c96(0x9d)]});}),_0x22a938[_0x1933be(0xac)](_0x1933be(0x99),()=>{const _0x4b49aa=_0x1933be;this[_0x4b49aa(0xa2)](_0x4b49aa(0x99));});}[_0x409eaa(0xa3)](){const _0x2ad4cd=_0x409eaa;this[_0x2ad4cd(0x94)]['on'](_0x2ad4cd(0xb5),()=>{const _0x4ffc3f=_0x2ad4cd;this[_0x4ffc3f(0xa2)](_0x4ffc3f(0xb5));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1b75(_0x3ace8b,_0x5cfc3d){const _0x4573e5=_0x4573();return _0x1b75=function(_0x1b7561,_0x51a36a){_0x1b7561=_0x1b7561-0x1f2;let _0x4d8c06=_0x4573e5[_0x1b7561];return _0x4d8c06;},_0x1b75(_0x3ace8b,_0x5cfc3d);}const _0x15ee07=_0x1b75;function _0x4573(){const _0x16ab6e=['element','config','get','getSelectedElement','model','refresh','6334zhXFri','isActive','isEnabled','495798ZZcfgY','imageEditController','unbind','bind','imageBlock','6616800DcKtoL','requires','uploadcare.allowExternalImagesEditing','set','editor','5bkHycj','1061932WeFsWb','1008768uRjSjv','1993020WPbgDs','execute','selection','59zQerzs','imageInline','plugins','1858164uThtav','_isEditable','document','16tFKQcQ'];_0x4573=function(){return _0x16ab6e;};return _0x4573();}(function(_0x192e69,_0x5cca55){const _0x5017ce=_0x1b75,_0x13af7a=_0x192e69();while(!![]){try{const _0x3ab86b=-parseInt(_0x5017ce(0x20c))/0x1*(parseInt(_0x5017ce(0x1f9))/0x2)+parseInt(_0x5017ce(0x208))/0x3+-parseInt(_0x5017ce(0x207))/0x4+-parseInt(_0x5017ce(0x206))/0x5*(-parseInt(_0x5017ce(0x1fc))/0x6)+parseInt(_0x5017ce(0x20f))/0x7*(-parseInt(_0x5017ce(0x1f2))/0x8)+parseInt(_0x5017ce(0x201))/0x9+parseInt(_0x5017ce(0x209))/0xa;if(_0x3ab86b===_0x5cca55)break;else _0x13af7a['push'](_0x13af7a['shift']());}catch(_0x606512){_0x13af7a['push'](_0x13af7a['shift']());}}}(_0x4573,0x5a5e7));import{Command as _0x5be0ea}from'ckeditor5/src/core.js';import{Dialog as _0x20cc02}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x334ba6}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4ef65b}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x5be0ea{[_0x15ee07(0x1fd)];static get[_0x15ee07(0x202)](){return[_0x20cc02];}[_0x15ee07(0x210)];constructor(_0x350945){const _0x424cb0=_0x15ee07;super(_0x350945),this[_0x424cb0(0x1fd)]=void 0x0,this[_0x424cb0(0x210)]=_0x4ef65b(_0x350945[_0x424cb0(0x1f4)][_0x424cb0(0x1f5)](_0x424cb0(0x203))||[]),this[_0x424cb0(0x204)]({'isActive':!0x1});}[_0x15ee07(0x1f8)](){const _0x52b727=_0x15ee07,_0x43f139=this[_0x52b727(0x205)][_0x52b727(0x1f7)][_0x52b727(0x211)][_0x52b727(0x20b)][_0x52b727(0x1f6)]();this[_0x52b727(0x1fb)]=this[_0x52b727(0x210)](_0x43f139);}[_0x15ee07(0x20a)](){const _0x40597b=_0x15ee07;this[_0x40597b(0x1fd)]&&(this[_0x40597b(0x1fe)](_0x40597b(0x1fa)),this[_0x40597b(0x1fd)]=void 0x0);const _0x581396=this[_0x40597b(0x205)][_0x40597b(0x1f7)][_0x40597b(0x211)][_0x40597b(0x20b)][_0x40597b(0x1f6)]();_0x581396&&(_0x581396['is'](_0x40597b(0x1f3),_0x40597b(0x200))||_0x581396['is'](_0x40597b(0x1f3),_0x40597b(0x20d)))&&(this[_0x40597b(0x1fd)]=new _0x334ba6(this[_0x40597b(0x205)],this[_0x40597b(0x205)][_0x40597b(0x20e)][_0x40597b(0x1f5)](_0x20cc02),_0x581396),this[_0x40597b(0x1ff)](_0x40597b(0x1fa))['to'](this[_0x40597b(0x1fd)],_0x40597b(0x1fa)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53990f=_0x1f10;(function(_0x5320c1,_0xeeabc2){const _0x264c83=_0x1f10,_0x434800=_0x5320c1();while(!![]){try{const _0x198da0=-parseInt(_0x264c83(0xdf))/0x1*(parseInt(_0x264c83(0xd9))/0x2)+parseInt(_0x264c83(0xd8))/0x3+-parseInt(_0x264c83(0xcd))/0x4*(-parseInt(_0x264c83(0xcf))/0x5)+-parseInt(_0x264c83(0xde))/0x6*(parseInt(_0x264c83(0xe0))/0x7)+parseInt(_0x264c83(0xda))/0x8+parseInt(_0x264c83(0xd3))/0x9+-parseInt(_0x264c83(0xdb))/0xa*(parseInt(_0x264c83(0xd0))/0xb);if(_0x198da0===_0xeeabc2)break;else _0x434800['push'](_0x434800['shift']());}catch(_0x121949){_0x434800['push'](_0x434800['shift']());}}}(_0x27a9,0x7f2bb));import{Plugin as _0x3f639c}from'ckeditor5/src/core.js';import{Notification as _0x28e379}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x46ecb2}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x10e061}from'./uploadcareimagereplacecommand.js';function _0x1f10(_0x41a85e,_0x528f2c){const _0x27a9ae=_0x27a9();return _0x1f10=function(_0x1f107e,_0x2bdb05){_0x1f107e=_0x1f107e-0xcd;let _0x4f2906=_0x27a9ae[_0x1f107e];return _0x4f2906;},_0x1f10(_0x41a85e,_0x528f2c);}function _0x27a9(){const _0x2f6675=['UploadcareImageEditEditing','2457327SgQwlU','82426itDnOf','1742648qZdCFE','270MdlKCq','requires','pluginName','408KyfIsj','11CWYSbU','81333XXzqIJ','add','uploadcareImageReplace','isOfficialPlugin','1682768JLReEE','ImageEditing','10BGMHba','398255ePkgdD','ImageUtils','uploadcareImageEdit','7771833RzEyKO','commands','isPremiumPlugin','init'];_0x27a9=function(){return _0x2f6675;};return _0x27a9();}import{UploadcareEditing as _0x43c341}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3f639c{static get[_0x53990f(0xdd)](){const _0x2ab54d=_0x53990f;return _0x2ab54d(0xd7);}static get[_0x53990f(0xdc)](){const _0x4ab9fc=_0x53990f;return[_0x43c341,_0x28e379,_0x4ab9fc(0xd1),_0x4ab9fc(0xce)];}static get[_0x53990f(0xe3)](){return!0x0;}static get[_0x53990f(0xd5)](){return!0x0;}[_0x53990f(0xd6)](){const _0x3bec67=_0x53990f,{editor:_0x28a2c7}=this;_0x28a2c7[_0x3bec67(0xd4)][_0x3bec67(0xe1)](_0x3bec67(0xd2),new _0x46ecb2(_0x28a2c7)),_0x28a2c7[_0x3bec67(0xd4)][_0x3bec67(0xe1)](_0x3bec67(0xe2),new _0x10e061(_0x28a2c7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x311cbb}from'ckeditor5/src/core.js';import{ButtonView as _0x11c64c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x13463e}from'ckeditor5/src/icons.js';import{createElement as _0x1ad9fc}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 _0x311cbb{['_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 _0x2a924c=this['editor'];_0x2a924c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2d8108=>{const _0x2d2f4a=_0x2a924c['commands']['get']('uploadcareImageEdit'),_0x27341a=new _0x11c64c(_0x2d8108),t=_0x2d8108['t'];return _0x27341a['set']({'icon':_0x13463e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x27341a['bind']('isEnabled')['to'](_0x2d2f4a),_0x27341a['bind']('isOn')['to'](_0x2d2f4a,'isActive'),this['listenTo'](_0x27341a,'execute',()=>{_0x2a924c['execute']('uploadcareImageEdit'),_0x2a924c['editing']['view']['focus']();}),_0x27341a;}),this['_initConfig']();}['_initConfig'](){const _0x34874a=_0x1ad9fc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x34874a),this['listenTo'](this['editor'],'destroy',()=>{_0x34874a['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3057(){const _0x32b258=['setAttributes','1606468ZsgpwJ','document','refresh','22086UhqRNj','78dBHhIP','23499hrWNEk','422605faupGF','getSelectedElement','3249084IhnysQ','selection','imageInline','12XTlnRJ','243797XblBJq','editor','2070Lucdfk','sizes','removeAttribute','80uGTZzT','change','imageBlock','isEnabled','element','4954433DgtNiy','model','srcset','execute','2tAofaP'];_0x3057=function(){return _0x32b258;};return _0x3057();}const _0x597df1=_0x4902;(function(_0x4cdcc8,_0x5fc59d){const _0x4b198c=_0x4902,_0x599d5a=_0x4cdcc8();while(!![]){try{const _0x311878=-parseInt(_0x4b198c(0x16f))/0x1*(-parseInt(_0x4b198c(0x161))/0x2)+-parseInt(_0x4b198c(0x16b))/0x3+-parseInt(_0x4b198c(0x163))/0x4+parseInt(_0x4b198c(0x169))/0x5*(parseInt(_0x4b198c(0x167))/0x6)+parseInt(_0x4b198c(0x168))/0x7*(-parseInt(_0x4b198c(0x174))/0x8)+parseInt(_0x4b198c(0x166))/0x9*(parseInt(_0x4b198c(0x171))/0xa)+-parseInt(_0x4b198c(0x15d))/0xb*(-parseInt(_0x4b198c(0x16e))/0xc);if(_0x311878===_0x5fc59d)break;else _0x599d5a['push'](_0x599d5a['shift']());}catch(_0xd704a4){_0x599d5a['push'](_0x599d5a['shift']());}}}(_0x3057,0xbf190));import{Command as _0x84647d}from'ckeditor5/src/core.js';function _0x4902(_0x427cbe,_0x42867c){const _0x305770=_0x3057();return _0x4902=function(_0x490220,_0x1524f0){_0x490220=_0x490220-0x15c;let _0x5cb931=_0x305770[_0x490220];return _0x5cb931;},_0x4902(_0x427cbe,_0x42867c);}export class UploadcareImageReplaceCommand extends _0x84647d{[_0x597df1(0x165)](){const _0x3c3b6b=_0x597df1,_0x10910f=this[_0x3c3b6b(0x170)][_0x3c3b6b(0x15e)][_0x3c3b6b(0x164)][_0x3c3b6b(0x16c)][_0x3c3b6b(0x16a)]();this[_0x3c3b6b(0x177)]=Boolean(_0x10910f&&(_0x10910f['is'](_0x3c3b6b(0x15c),_0x3c3b6b(0x176))||_0x10910f['is'](_0x3c3b6b(0x15c),_0x3c3b6b(0x16d))));}[_0x597df1(0x160)](_0xdb983b){const _0x12b70e=_0x597df1,_0x30cd1d=this[_0x12b70e(0x170)][_0x12b70e(0x15e)][_0x12b70e(0x164)][_0x12b70e(0x16c)][_0x12b70e(0x16a)]();this[_0x12b70e(0x170)][_0x12b70e(0x15e)][_0x12b70e(0x175)](_0x1e493f=>{const _0x37d354=_0x12b70e;_0x1e493f[_0x37d354(0x162)](_0xdb983b,_0x30cd1d),_0x1e493f[_0x37d354(0x173)](_0x37d354(0x15f),_0x30cd1d),_0x1e493f[_0x37d354(0x173)](_0x37d354(0x172),_0x30cd1d);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x40a9ec=_0x759d;(function(_0x3db930,_0x3c6d03){var _0x502e5e=_0x759d,_0x43cecc=_0x3db930();while(!![]){try{var _0x2b50bd=-parseInt(_0x502e5e(0x1a4))/0x1*(parseInt(_0x502e5e(0x1a5))/0x2)+parseInt(_0x502e5e(0x1b3))/0x3*(parseInt(_0x502e5e(0x1aa))/0x4)+parseInt(_0x502e5e(0x1a9))/0x5+parseInt(_0x502e5e(0x1b4))/0x6*(parseInt(_0x502e5e(0x1ae))/0x7)+parseInt(_0x502e5e(0x1ac))/0x8*(parseInt(_0x502e5e(0x1b2))/0x9)+parseInt(_0x502e5e(0x1a6))/0xa*(parseInt(_0x502e5e(0x1ab))/0xb)+-parseInt(_0x502e5e(0x1a7))/0xc;if(_0x2b50bd===_0x3c6d03)break;else _0x43cecc['push'](_0x43cecc['shift']());}catch(_0x1ffe1a){_0x43cecc['push'](_0x43cecc['shift']());}}}(_0x5d83,0x4e8a0));function _0x759d(_0x51aebc,_0x84b4e0){var _0x5d834b=_0x5d83();return _0x759d=function(_0x759d6c,_0x299b1){_0x759d6c=_0x759d6c-0x1a4;var _0x3880ce=_0x5d834b[_0x759d6c];return _0x3880ce;},_0x759d(_0x51aebc,_0x84b4e0);}import{Plugin as _0x4eda4a}from'ckeditor5/src/core.js';function _0x5d83(){var _0x174858=['17104XrEyXF','9110fLWmAy','13947108eeaMPK','pluginName','2530430VJCsXx','60RgLBrs','4037PLRjVM','93000cvqFmf','requires','4296719xiBjey','UploadcareImageEdit','isOfficialPlugin','isPremiumPlugin','81XpjUtr','10674txMyZk','6UaIcTY','15XVRhrx'];_0x5d83=function(){return _0x174858;};return _0x5d83();}import{UploadcareImageEditEditing as _0x2a3d23}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x171fa5}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x4eda4a{static get[_0x40a9ec(0x1a8)](){var _0x3d5995=_0x40a9ec;return _0x3d5995(0x1af);}static get[_0x40a9ec(0x1ad)](){return[_0x2a3d23,_0x171fa5];}static get[_0x40a9ec(0x1b0)](){return!0x0;}static get[_0x40a9ec(0x1b1)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x250872=_0x4c9d;(function(_0x262d2,_0x12ab5e){const _0x5490c7=_0x4c9d,_0x48e2e9=_0x262d2();while(!![]){try{const _0x568cee=parseInt(_0x5490c7(0x146))/0x1*(parseInt(_0x5490c7(0x154))/0x2)+parseInt(_0x5490c7(0x11e))/0x3*(parseInt(_0x5490c7(0x149))/0x4)+-parseInt(_0x5490c7(0x117))/0x5*(parseInt(_0x5490c7(0x134))/0x6)+-parseInt(_0x5490c7(0x120))/0x7*(-parseInt(_0x5490c7(0x128))/0x8)+-parseInt(_0x5490c7(0x13b))/0x9+parseInt(_0x5490c7(0x156))/0xa+-parseInt(_0x5490c7(0x14a))/0xb*(parseInt(_0x5490c7(0x137))/0xc);if(_0x568cee===_0x12ab5e)break;else _0x48e2e9['push'](_0x48e2e9['shift']());}catch(_0xfd9022){_0x48e2e9['push'](_0x48e2e9['shift']());}}}(_0x2bef,0x9fd5b));import{Plugin as _0x580fca}from'ckeditor5/src/core.js';import{IconDropbox as _0x381766,IconFacebook as _0x451408,IconGoogleDrive as _0x4ec2eb,IconGooglePhotos as _0x4e11d9,IconUploadcareImageUpload as _0x4ac3cf,IconUploadcareLink as _0x2941ba,IconOneDrive as _0x3d1964}from'ckeditor5/src/icons.js';import{ButtonView as _0x44f397,MenuBarMenuListItemButtonView as _0x3aa80d}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x3d107b}from'./uploadcareconfig.js';import{getTranslation as _0x2531de}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x4c9d(_0x310b1e,_0x158b64){const _0x2bef3d=_0x2bef();return _0x4c9d=function(_0x4c9d41,_0x213f28){_0x4c9d41=_0x4c9d41-0x10a;let _0x546ae2=_0x2bef3d[_0x4c9d41];return _0x546ae2;},_0x4c9d(_0x310b1e,_0x158b64);}function _0x2bef(){const _0x2d484b=['_showLicenseError','uploadcareLicenseKeyEvaluationLimit','791096zjdLKr','url','ImageInsertUI','has','uploadcareLicenseKeyExpired','tooltip','Insert','_licenseKeyCheckInterval','expired','commands','_getIntegrationKey','GPhotos','6QvYTUS','domainLimit','map','1968yfrItP','text','URL','usageLimit','329040EJbczK','uploadcareLicenseKeyDomainLimit','get','isImageSelected','_createButton','isOfficialPlugin','isEnabled','icon','forEach','destroy','registerIntegration','6677cZCDtc','editor','Uploadcare','69188wsTOqc','102542LNbUIl','Dropbox','init','uploadcareLicenseKeyUsageLimit','trialLimit','afterInit','uploadcareLicenseKeyNotAllowed','Local','locale','_createDropdownButtons','332TpAzXE','uploadcare','7430060flpZmc','_createToolbarButton','withText','OneDrive','bind','uploadcareLicenseKeyTrialLimit','_createMenuBarButtons','uploadcareLicenseKeyValid','_normalizeConfigSourceList','push','GDrive','entries','pluginName','UploadcareUI','Facebook','evaluationLimit','licenseKey','isPremiumPlugin','label','upload','2915005CUVQCc','featureNotAllowed','invalid','Replace','uploadcareLicenseKeyInvalid','execute','uploadcare.uploader.sourceList','45gQsFNG','type','49ZzzooX','assetManager','plugins','config','reduce','shortText'];_0x2bef=function(){return _0x2d484b;};return _0x2bef();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x580fca{[_0x250872(0x113)];[_0x250872(0x12f)];static get[_0x250872(0x10f)](){const _0x61cd4e=_0x250872;return _0x61cd4e(0x110);}static get[_0x250872(0x140)](){return!0x0;}static get[_0x250872(0x114)](){return!0x0;}[_0x250872(0x14c)](){const _0x3c293a=_0x250872;this[_0x3c293a(0x113)]=this[_0x3c293a(0x147)][_0x3c293a(0x123)][_0x3c293a(0x13d)](_0x3c293a(0x113));const _0x29b82b=this[_0x3c293a(0x147)];this[_0x3c293a(0x12f)]=setInterval(()=>{const _0x1082e7=_0x3c293a;let _0x330841;for(const _0x1e136c in _0x29b82b){const _0x2e24af=_0x1e136c,_0x16c41e=_0x29b82b[_0x2e24af];if(_0x1082e7(0x10a)==_0x16c41e||_0x1082e7(0x11b)==_0x16c41e||_0x1082e7(0x12c)==_0x16c41e||_0x1082e7(0x13c)==_0x16c41e||_0x1082e7(0x150)==_0x16c41e||_0x1082e7(0x127)==_0x16c41e||_0x1082e7(0x15b)==_0x16c41e||_0x1082e7(0x14d)==_0x16c41e){delete _0x29b82b[_0x2e24af],_0x330841=_0x16c41e,clearInterval(this[_0x1082e7(0x12f)]),this[_0x1082e7(0x12f)]=void 0x0;break;}}_0x1082e7(0x11b)==_0x330841&&_0x29b82b[_0x1082e7(0x126)](_0x1082e7(0x119)),_0x1082e7(0x12c)==_0x330841&&_0x29b82b[_0x1082e7(0x126)](_0x1082e7(0x130)),_0x1082e7(0x13c)==_0x330841&&_0x29b82b[_0x1082e7(0x126)](_0x1082e7(0x135)),_0x1082e7(0x150)==_0x330841&&_0x29b82b[_0x1082e7(0x126)](_0x1082e7(0x118),_0x1082e7(0x148)),_0x1082e7(0x127)==_0x330841&&_0x29b82b[_0x1082e7(0x126)](_0x1082e7(0x112)),_0x1082e7(0x15b)==_0x330841&&_0x29b82b[_0x1082e7(0x126)](_0x1082e7(0x14e)),_0x1082e7(0x14d)==_0x330841&&_0x29b82b[_0x1082e7(0x126)](_0x1082e7(0x13a));},0x3e8);}[_0x250872(0x14f)](){const _0x35df99=_0x250872,{editor:_0x2da181}=this,_0x139ca1=_0x2da181[_0x35df99(0x131)][_0x35df99(0x13d)](_0x35df99(0x155));if(!_0x139ca1)return;const _0x5c5516=this[_0x35df99(0x10b)](_0x2da181[_0x35df99(0x123)][_0x35df99(0x13d)](_0x35df99(0x11d)))[_0x35df99(0x124)]((_0x2f676b,_0x30cea7)=>{const _0x569fba=_0x35df99,_0x230ee4=this[_0x569fba(0x132)](_0x30cea7[_0x569fba(0x11f)]);return _0x2f676b[_0x230ee4]||(_0x2f676b[_0x230ee4]=[]),_0x2f676b[_0x230ee4][_0x569fba(0x10c)](_0x30cea7),_0x2f676b;},{});_0x2da181[_0x35df99(0x122)][_0x35df99(0x12b)](_0x35df99(0x12a))&&_0x2da181[_0x35df99(0x131)][_0x35df99(0x13d)](_0x35df99(0x155))&&Object[_0x35df99(0x10e)](_0x5c5516)[_0x35df99(0x143)](([_0x32a181,_0x38a1a0])=>{const _0x4c4405=_0x35df99;_0x2da181[_0x4c4405(0x122)][_0x4c4405(0x13d)](_0x4c4405(0x12a))[_0x4c4405(0x145)]({'name':_0x32a181,'observable':()=>_0x139ca1,'buttonViewCreator':()=>this[_0x4c4405(0x157)](_0x38a1a0),'formViewCreator':()=>this[_0x4c4405(0x153)](_0x38a1a0),'menuBarButtonViewCreator':()=>this[_0x4c4405(0x15c)](_0x38a1a0),'override':_0x4c4405(0x121)!==_0x32a181});});}[_0x250872(0x144)](){const _0x14fe71=_0x250872;super[_0x14fe71(0x144)](),this[_0x14fe71(0x12f)]&&clearInterval(this[_0x14fe71(0x12f)]);}[_0x250872(0x10b)](_0x58a38f){const _0x3fb3b8=_0x250872,{locale:_0x127442}=this[_0x3fb3b8(0x147)];return _0x58a38f[_0x3fb3b8(0x136)](_0x47988c=>{const _0x4747e1=_0x3fb3b8,_0x401353=_0x2531de(_0x127442,_0x47988c,_0x4747e1(0x12e));switch(_0x47988c){case _0x3d107b[_0x4747e1(0x151)]:return{'icon':_0x4ac3cf,'type':_0x3d107b[_0x4747e1(0x151)],..._0x401353};case _0x3d107b[_0x4747e1(0x139)]:return{'icon':_0x2941ba,'type':_0x3d107b[_0x4747e1(0x139)],..._0x401353};case _0x3d107b[_0x4747e1(0x14b)]:return{'icon':_0x381766,'type':_0x3d107b[_0x4747e1(0x14b)],..._0x401353};case _0x3d107b[_0x4747e1(0x111)]:return{'icon':_0x451408,'type':_0x3d107b[_0x4747e1(0x111)],..._0x401353};case _0x3d107b[_0x4747e1(0x10d)]:return{'icon':_0x4ec2eb,'type':_0x3d107b[_0x4747e1(0x10d)],..._0x401353};case _0x3d107b[_0x4747e1(0x133)]:return{'icon':_0x4e11d9,'type':_0x3d107b[_0x4747e1(0x133)],..._0x401353};case _0x3d107b[_0x4747e1(0x159)]:return{'icon':_0x3d1964,'type':_0x3d107b[_0x4747e1(0x159)],..._0x401353};}});}[_0x250872(0x132)](_0x47b1fc){const _0x30f3ce=_0x250872;switch(_0x47b1fc){case _0x3d107b[_0x30f3ce(0x151)]:return _0x30f3ce(0x116);case _0x3d107b[_0x30f3ce(0x139)]:return _0x30f3ce(0x129);default:return _0x30f3ce(0x121);}}[_0x250872(0x13f)](_0xd87be5,_0x5b0e96){const _0x450ee1=_0x250872,_0x662183=this[_0x450ee1(0x147)],_0x461fac=new _0xd87be5(_0x662183[_0x450ee1(0x152)]),_0x1c207c=_0x662183[_0x450ee1(0x131)][_0x450ee1(0x13d)](_0x450ee1(0x155));return _0x461fac[_0x450ee1(0x15a)](_0x450ee1(0x141))['to'](_0x1c207c),_0x461fac['on'](_0x450ee1(0x11c),()=>{const _0x59f9f7=_0x450ee1;_0x1c207c[_0x59f9f7(0x11c)](_0x5b0e96);}),_0x461fac;}[_0x250872(0x157)](_0x2fdaa8){const _0x2323c5=_0x250872,{locale:_0x299fb2}=this[_0x2323c5(0x147)],_0x2f55a0=this[_0x2323c5(0x147)][_0x2323c5(0x122)][_0x2323c5(0x13d)](_0x2323c5(0x12a)),_0x276e1b=_0x2fdaa8[0x0],_0x39a0d4=this[_0x2323c5(0x13f)](_0x44f397,_0x276e1b[_0x2323c5(0x11f)]);return _0x39a0d4[_0x2323c5(0x142)]=_0x276e1b[_0x2323c5(0x142)],_0x39a0d4[_0x2323c5(0x15a)](_0x2323c5(0x115))['to'](_0x2f55a0,_0x2323c5(0x13e),_0x33b274=>_0x2531de(_0x299fb2,_0x276e1b[_0x2323c5(0x11f)],_0x33b274?_0x2323c5(0x11a):_0x2323c5(0x12e))[_0x2323c5(0x138)]),_0x39a0d4[_0x2323c5(0x12d)]=!0x0,_0x39a0d4;}[_0x250872(0x153)](_0x41b664){const _0x22634d=_0x250872,{locale:_0x1d07b0}=this[_0x22634d(0x147)],_0x447841=this[_0x22634d(0x147)][_0x22634d(0x122)][_0x22634d(0x13d)](_0x22634d(0x12a));return _0x41b664[_0x22634d(0x136)](_0x1d401f=>{const _0x4f37a4=_0x22634d,_0x1648c9=this[_0x4f37a4(0x13f)](_0x44f397,_0x1d401f[_0x4f37a4(0x11f)]);return _0x1648c9[_0x4f37a4(0x158)]=!0x0,_0x1648c9[_0x4f37a4(0x142)]=_0x1d401f[_0x4f37a4(0x142)],_0x1648c9[_0x4f37a4(0x15a)](_0x4f37a4(0x115))['to'](_0x447841,_0x4f37a4(0x13e),_0x1ccffc=>_0x2531de(_0x1d07b0,_0x1d401f[_0x4f37a4(0x11f)],_0x1ccffc?_0x4f37a4(0x11a):_0x4f37a4(0x12e))[_0x4f37a4(0x138)]),_0x1648c9;});}[_0x250872(0x15c)](_0x37123a){const _0x59b2f1=_0x250872;return _0x37123a[_0x59b2f1(0x136)](_0x1204ac=>{const _0x50b712=_0x59b2f1,_0x37d84c=this[_0x50b712(0x13f)](_0x3aa80d,_0x1204ac[_0x50b712(0x11f)]);return _0x37d84c[_0x50b712(0x142)]=_0x1204ac[_0x50b712(0x142)],_0x37d84c[_0x50b712(0x115)]=_0x1204ac[_0x50b712(0x125)],_0x37d84c;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xb3322c}from'ckeditor5/src/core.js';import{FileRepository as _0x11b499}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x63caad}from'./uploadcareediting.js';import{UploadUtils as _0xec9d7b}from'./utils/uploadutils.js';import{getImageUrls as _0x20e5a1}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0xb3322c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x11b499,_0x63caad];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4c1687=this['editor'];if(!!!_0x4c1687['config']['get']('uploadcare'))return;_0x4c1687['plugins']['get'](_0x11b499)['createUploadAdapter']=_0x1690f9=>new k(_0x1690f9,_0x4c1687),_0x4c1687['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x45a9a0,{imageElement:_0x5c5a28,data:_0x3d7f80})=>{_0x4c1687['model']['change'](_0x5dc0e7=>{_0x5dc0e7['setAttribute']('uploadcareImageId',_0x3d7f80['uploadcareImageId'],_0x5c5a28);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1a02a9,_0x2cfedb){this['loader']=_0x1a02a9,this['editor']=_0x2cfedb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x524062=await this['loader']['file'];return _0xec9d7b['upload']({'file':_0x524062,'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':_0x3af084=>{_0x3af084&&_0x3af084['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3af084['value']);}})['then'](async _0x3a3e77=>{const {imageFallbackUrl:_0x5b01f2,imageSources:_0x5ee1a1}=_0x20e5a1(_0x3a3e77['cdnUrl'],_0x3a3e77['imageInfo']['width']);return{'uploadcareImageId':_0x3a3e77['uuid'],'default':_0x5b01f2,'sources':_0x5ee1a1};})['catch'](()=>{const _0x2d1406=t('Cannot\x20upload\x20file:')+('\x20'+_0x524062['name']+'.');return Promise['reject'](_0x2d1406);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x21105b}from'../uploadcareconfig.js';export function getTranslation(_0x26dd87,_0x4f7908,_0x54a40e){const t=_0x26dd87['t'],_0x513eb2=_0x26dd87['t'];switch(_0x4f7908){case _0x21105b['Local']:return{'text':_0x513eb2('Insert'===_0x54a40e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x513eb2('From\x20computer')};case _0x21105b['URL']:return{'text':'Insert'===_0x54a40e?_0x513eb2('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x513eb2('Via\x20URL')};case _0x21105b['Dropbox']:return{'text':t('Insert'===_0x54a40e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x21105b['Facebook']:return{'text':t('Insert'===_0x54a40e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x21105b['GDrive']:return{'text':t('Insert'===_0x54a40e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x21105b['GPhotos']:return{'text':t('Insert'===_0x54a40e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x21105b['OneDrive']:return{'text':t('Insert'===_0x54a40e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f7908;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x1fc6(){var _0x2e086b=['8fpijSO','5229224IeicUC','focusCycler','25285ChpRUg','fire','getFocusableElement','27dJflcQ','div','bindTemplate','2874xHbaHq','598968qSwqhx','true','forwardCycle','196778lKtIVR','focusTracker','671013lQjUXu','1253OOSoQD','1pZPzKA','createCollection','1421690yhquxZ'];_0x1fc6=function(){return _0x2e086b;};return _0x1fc6();}var _0x40a58d=_0x52da;(function(_0x2cb9a5,_0x4b5afc){var _0x581fd3=_0x52da,_0x89b745=_0x2cb9a5();while(!![]){try{var _0x491600=parseInt(_0x581fd3(0x108))/0x1*(parseInt(_0x581fd3(0x118))/0x2)+parseInt(_0x581fd3(0x106))/0x3+parseInt(_0x581fd3(0x10b))/0x4*(-parseInt(_0x581fd3(0x10e))/0x5)+-parseInt(_0x581fd3(0x114))/0x6*(parseInt(_0x581fd3(0x107))/0x7)+parseInt(_0x581fd3(0x115))/0x8*(parseInt(_0x581fd3(0x111))/0x9)+parseInt(_0x581fd3(0x10a))/0xa+-parseInt(_0x581fd3(0x10c))/0xb;if(_0x491600===_0x4b5afc)break;else _0x89b745['push'](_0x89b745['shift']());}catch(_0x18af65){_0x89b745['push'](_0x89b745['shift']());}}}(_0x1fc6,0x1cb63));import{FocusTracker as _0x11b9a7}from'ckeditor5/src/utils.js';import{View as _0x452250,FocusCycler as _0x1916dd}from'ckeditor5/src/ui.js';function _0x52da(_0x4db8df,_0x3339e0){var _0x1fc6dd=_0x1fc6();return _0x52da=function(_0x52daf7,_0x4c28c7){_0x52daf7=_0x52daf7-0x105;var _0x3d9c18=_0x1fc6dd[_0x52daf7];return _0x3d9c18;},_0x52da(_0x4db8df,_0x3339e0);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x452250{[_0x40a58d(0x105)];[_0x40a58d(0x10d)];constructor(_0x32273d){var _0x565964=_0x40a58d;super(_0x32273d),this[_0x565964(0x105)]=new _0x11b9a7(),this[_0x565964(0x10d)]=new _0x1916dd({'focusables':this[_0x565964(0x109)](),'focusTracker':this[_0x565964(0x105)]});}[_0x40a58d(0x110)](){var _0x3e44ad=_0x40a58d;return{'tag':_0x3e44ad(0x112),'attributes':{'aria-hidden':_0x3e44ad(0x116),'tabindex':'0'},'on':{'focus':this[_0x3e44ad(0x113)]['to'](()=>{var _0x32d276=_0x3e44ad;this[_0x32d276(0x10d)][_0x32d276(0x10f)](_0x32d276(0x117));})}};}}
|