@ckeditor/ckeditor5-uploadcare 44.2.0-alpha.11 → 44.2.0-alpha.12
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/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 +8 -8
- 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 _0x57044c=_0x4630;(function(_0x264e69,_0x4c06e7){const _0x1f1a79=_0x4630,_0x470c31=_0x264e69();while(!![]){try{const _0x332ab0=parseInt(_0x1f1a79(0x1b1))/0x1*(-parseInt(_0x1f1a79(0x1db))/0x2)+-parseInt(_0x1f1a79(0x1f1))/0x3*(parseInt(_0x1f1a79(0x1eb))/0x4)+-parseInt(_0x1f1a79(0x1d6))/0x5*(parseInt(_0x1f1a79(0x1f6))/0x6)+-parseInt(_0x1f1a79(0x1c6))/0x7+-parseInt(_0x1f1a79(0x1ad))/0x8+parseInt(_0x1f1a79(0x1fc))/0x9*(-parseInt(_0x1f1a79(0x1b9))/0xa)+parseInt(_0x1f1a79(0x1cc))/0xb;if(_0x332ab0===_0x4c06e7)break;else _0x470c31['push'](_0x470c31['shift']());}catch(_0x35b727){_0x470c31['push'](_0x470c31['shift']());}}}(_0x3938,0x1f8bf));import{Plugin as _0x5743c7}from'ckeditor5/src/core.js';function _0x3938(){const _0x9feb97=['input[uploadcare-file-input]','isPremiumPlugin','UploadcareEditing','requires','834738qxHYhg','schema','#uc-icon-arrow-down','uploadcare.uploader','uc-upload-ctx-provider','add','922113KjfwVz','appendChild','imageBlock','PictureEditing','true','uploadcare.pubkey','2017648CrBFTe','data-uc-image-id','fromCharCode','extend','3452ejgobw','listenTo','insertImage','editing','render','upcast','get','getAttribute','10ffCcLL','uploadcareImageReplace','for','_initCtx','view','uploadcare','pluginName','once','configElement','uc-config','destroy','editor','iconHrefResolver','518084bicAQH','_initConversion','href','body','elementToAttribute','imageInline','10406154QrPTgQ','conversion','execute','_initImageProcessingIndicator','querySelector','isOfficialPlugin','attributeToAttribute','replaceImageSource','ctxElement','removeAttribute','5HbzRWL','afterInit','join','closeMax','\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','90ebcNrG','cleanupImage','map','document','_ctxElement','selection','uploader','downcast','remove','init','locale','isRegistered','model','_initSchema','config','commands','916MgOLkC','_initConfig','contentLanguage','_configElement','getSelectedElement','uploadcareImageId','1227REJjBB'];_0x3938=function(){return _0x9feb97;};return _0x3938();}import{Dialog as _0x7b7d1c}from'ckeditor5/src/ui.js';import{createElement as _0x5d37e8,global as _0x4fe116,uid as _0x1b87e3}from'ckeditor5/src/utils.js';import _0x2feb6f from'./uploadcarecommand.js';import _0x2fc410 from'./uploadcareuploadadapter.js';function _0x4630(_0x3ce0cf,_0x5d9f96){const _0x3938cc=_0x3938();return _0x4630=function(_0x46305a,_0x5be63d){_0x46305a=_0x46305a-0x1ab;let _0x17b404=_0x3938cc[_0x46305a];return _0x17b404;},_0x4630(_0x3ce0cf,_0x5d9f96);}import{showImageProcessingIndicator as _0x4be007}from'./utils/editingutils.js';export default class i extends _0x5743c7{constructor(){const _0x2f66e3=_0x4630;super(...arguments),this[_0x2f66e3(0x1ee)]=null,this[_0x2f66e3(0x1df)]=null;}static get[_0x57044c(0x1bf)](){const _0x5aadb8=_0x57044c;return _0x5aadb8(0x1f4);}static get[_0x57044c(0x1f5)](){const _0x1f1bd1=_0x57044c;return[_0x1f1bd1(0x1ff),_0x2fc410,_0x7b7d1c];}static get[_0x57044c(0x1d1)](){return!0x0;}static get[_0x57044c(0x1f3)](){return!0x0;}get[_0x57044c(0x1c1)](){const _0x38891f=_0x57044c;return this[_0x38891f(0x1ee)];}get[_0x57044c(0x1d4)](){const _0x1ada92=_0x57044c;return this[_0x1ada92(0x1df)];}[_0x57044c(0x1e4)](){const _0x208377=_0x57044c,_0x1d3ac3=this[_0x208377(0x1c4)];_0x1d3ac3[_0x208377(0x1ea)][_0x208377(0x1fb)](_0x208377(0x1be),new _0x2feb6f(_0x1d3ac3));}[_0x57044c(0x1d7)](){const _0x4eeac6=_0x57044c;this[_0x4eeac6(0x1e8)](),this[_0x4eeac6(0x1c7)](),this[_0x4eeac6(0x1ec)](),this[_0x4eeac6(0x1bc)](),this[_0x4eeac6(0x1cf)](),this[_0x4eeac6(0x1b2)](this[_0x4eeac6(0x1c4)],_0x4eeac6(0x1c3),()=>{const _0x4d5612=_0x4eeac6;this[_0x4d5612(0x1ee)]&&(this[_0x4d5612(0x1ee)][_0x4d5612(0x1e3)](),this[_0x4d5612(0x1ee)]=null),this[_0x4d5612(0x1df)]&&(this[_0x4d5612(0x1df)][_0x4d5612(0x1e3)](),this[_0x4d5612(0x1df)]=null);const _0x5c8cef=_0x4fe116[_0x4d5612(0x1de)][_0x4d5612(0x1d0)](_0x4d5612(0x1f2));_0x5c8cef&&_0x5c8cef[_0x4d5612(0x1e3)]();}),async function(_0x13211d){const _0x18675d=_0x221f08([0x37,0x6e,0x6f,0x48,0x39,0x43,0x4c,0x57,0x4d,0x38,0x56,0x66,0x75,0x70,0x68,0x62,0x4f,0x55,0x72,0x35,0x33,0x74,0x73,0x67,0x6c,0x32,0x49,0x50,0x59,0x34,0x53,0x52,0x5a,0x41,0x4b,0x58,0x6b,0x47,0x36,0x71,0x51,0x61,0x30,0x76,0x45,0x78,0x6a,0x77,0x64,0x42,0x69,0x65,0x31,0x4e,0x44,0x63,0x6d,0x4a,0x79,0x54,0x46,0x7a]),_0x1567bd=0x1cd2b5bd,_0x565d37=0x1cd5eb6d^_0x1567bd,_0x419462=window[_0x221f08([0x44,0x61,0x74,0x65])][_0x221f08([0x6e,0x6f,0x77])](),_0x55fc8b=_0x13211d[_0x221f08([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x55fd05=new window[(_0x221f08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bc0e3=>{_0x55fc8b[_0x221f08([0x6f,0x6e,0x63,0x65])](_0x221f08([0x72,0x65,0x61,0x64,0x79]),_0x4bc0e3);}),_0x4ecfed={[_0x221f08([0x6b,0x74,0x79])]:_0x221f08([0x45,0x43]),[_0x221f08([0x75,0x73,0x65])]:_0x221f08([0x73,0x69,0x67]),[_0x221f08([0x63,0x72,0x76])]:_0x221f08([0x50,0x2d,0x32,0x35,0x36]),[_0x221f08([0x78])]:_0x221f08([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]),[_0x221f08([0x79])]:_0x221f08([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]),[_0x221f08([0x61,0x6c,0x67])]:_0x221f08([0x45,0x53,0x32,0x35,0x36])},_0x2cab33=_0x55fc8b[_0x221f08([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x221f08([0x67,0x65,0x74])](_0x221f08([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5aa3e9(){let _0x36429b,_0x5e1a12=null,_0x445188=null;try{if(_0x2cab33==_0x221f08([0x47,0x50,0x4c]))return _0x221f08([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36429b=_0x12f113(),!_0x36429b)return _0x221f08([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36429b[_0x221f08([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x445188=_0x36bc38(_0x36429b[_0x221f08([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36429b[_0x221f08([0x6a,0x74,0x69])])),await _0xb56a45()?_0x5e7117()?_0x1a58e2()?_0x221f08([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43b839()?(_0x36429b[_0x221f08([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x221f08([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e1a12=_0x2a68a9(_0x221f08([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x36429b[_0x221f08([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x221f08([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e1a12=_0x2a68a9(_0x221f08([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x171345()):_0x221f08([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x221f08([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x221f08([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3a39db){return _0x221f08([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a58e2(){const _0x1d8d9d=[_0x221f08([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x221f08([0x74,0x72,0x69,0x61,0x6c])][_0x221f08([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36429b[_0x221f08([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x419462/0x3e8:0xe10*_0x565d37;return _0x36429b[_0x221f08([0x65,0x78,0x70])]<_0x1d8d9d;}function _0x5e7117(){const _0x492389=_0x36429b[_0x221f08([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x492389&&(!!_0x492389[_0x221f08([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x221f08([0x2a]))||!!_0x492389[_0x221f08([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x221f08([0x55,0x50,0x4c,0x43])));}function _0x43b839(){const _0x4c5b84=_0x4630,_0x3206fe=_0x36429b[_0x221f08([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3206fe||0x0==_0x3206fe[_0x221f08([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38a8e3}=new URL(window[_0x221f08([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4c5b84(0x1c8)]);if(_0x3206fe[_0x221f08([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a8e3))return!0x0;const _0x3a32ef=_0x38a8e3[_0x221f08([0x73,0x70,0x6c,0x69,0x74])](_0x221f08([0x2e]));return _0x3206fe[_0x221f08([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x121b88=>_0x121b88[_0x221f08([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x221f08([0x2a])))[_0x221f08([0x6d,0x61,0x70])](_0x5386e9=>_0x5386e9[_0x221f08([0x73,0x70,0x6c,0x69,0x74])](_0x221f08([0x2e])))[_0x221f08([0x73,0x6f,0x6d,0x65])](_0x1819c4=>_0x3a32ef[_0x221f08([0x65,0x76,0x65,0x72,0x79])]((_0x86fc1b,_0x416402)=>_0x1819c4[_0x416402]===_0x86fc1b||_0x1819c4[_0x416402]===_0x221f08([0x2a])));}function _0x171345(){return _0x5e1a12&&_0x445188?new window[(_0x221f08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x373933,_0x55d738)=>{_0x5e1a12[_0x221f08([0x74,0x68,0x65,0x6e])](_0x373933,_0x55d738),_0x445188[_0x221f08([0x74,0x68,0x65,0x6e])](_0x1e9fd5=>{_0x1e9fd5!=_0x221f08([0x56,0x61,0x6c,0x69,0x64])&&_0x373933(_0x1e9fd5);},_0x55d738);}):_0x5e1a12||_0x445188||_0x221f08([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36bc38(_0x3532fd,_0x39565f){return new window[(_0x221f08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2388a0=>{if(_0x4eb630())return _0x2388a0(_0x221f08([0x56,0x61,0x6c,0x69,0x64]));_0x15f524(),_0x55fc8b[_0x221f08([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x221f08([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bd182=!0x1;const _0x15c586=_0x1b87e3();function _0x4783b7(_0x2a0c16){return!!_0x2a0c16&&(typeof _0x2a0c16===_0x221f08([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a0c16===_0x221f08([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a0c16[_0x221f08([0x74,0x68,0x65,0x6e])]===_0x221f08([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a0c16[_0x221f08([0x63,0x61,0x74,0x63,0x68])]===_0x221f08([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e5441(_0x3d7515){_0x4b7f67(_0x3d7515)[_0x221f08([0x74,0x68,0x65,0x6e])](_0x23ae10=>{if(!_0x23ae10||_0x23ae10[_0x221f08([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x221f08([0x6f,0x6b]))return _0x221f08([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12afd0(_0x1b6bd2(_0x15c586+_0x39565f))!=_0x23ae10[_0x221f08([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x221f08([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x221f08([0x56,0x61,0x6c,0x69,0x64]);})[_0x221f08([0x74,0x68,0x65,0x6e])](_0x4e599a=>(_0x153373(),_0x4e599a),()=>{const _0x4d7553=_0x40e85c();return null==_0x4d7553?(_0x153373(),_0x221f08([0x56,0x61,0x6c,0x69,0x64])):_0x221f08(_0x419462-_0x4d7553>(0x38de31bd^_0x1567bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x221f08([0x74,0x68,0x65,0x6e])](_0x2388a0)[_0x221f08([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2388a0(_0x221f08([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13263c=0x1ce45b3d^_0x1567bd;function _0x153373(){const _0x12b2a2=_0x221f08([0x6c,0x6c,0x63,0x74,0x2d])+_0x12afd0(_0x1b6bd2(_0x3532fd)),_0x5b6b60=_0x5370c7(_0x12afd0(window[_0x221f08([0x4d,0x61,0x74,0x68])][_0x221f08([0x63,0x65,0x69,0x6c])](_0x419462/_0x13263c)));window[_0x221f08([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x221f08([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12b2a2,_0x5b6b60);}function _0x40e85c(){const _0x59d08a=_0x221f08([0x6c,0x6c,0x63,0x74,0x2d])+_0x12afd0(_0x1b6bd2(_0x3532fd)),_0x1ca007=window[_0x221f08([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x221f08([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59d08a);return _0x1ca007?window[_0x221f08([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5370c7(_0x1ca007),0x10)*_0x13263c:null;}function _0x4b7f67(_0xaaf2bb){return new window[(_0x221f08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c2ba2,_0x551faf)=>{_0xaaf2bb[_0x221f08([0x74,0x68,0x65,0x6e])](_0x2c2ba2,_0x551faf),window[_0x221f08([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x551faf,0x1cd3617d^_0x1567bd);});}}_0x55fc8b[_0x221f08([0x6f,0x6e])](_0x221f08([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a4c1a,_0x34ecb8)=>{if(_0x34ecb8[0x0]!=_0x3532fd)return _0x2388a0(_0x221f08([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34ecb8[0x1]={..._0x34ecb8[0x1],[_0x221f08([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15c586};},{[_0x221f08([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x221f08([0x68,0x69,0x67,0x68])}),_0x55fc8b[_0x221f08([0x6f,0x6e])](_0x221f08([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x172e5a=>{_0x4783b7(_0x172e5a[_0x221f08([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bd182=!0x0,_0x2e5441(_0x172e5a[_0x221f08([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x221f08([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x221f08([0x6c,0x6f,0x77])}),_0x55fd05[_0x221f08([0x74,0x68,0x65,0x6e])](()=>{_0x4bd182||_0x2388a0(_0x221f08([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4eb630(){return _0x55fc8b[_0x221f08([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x221f08([0x76,0x69,0x65,0x77])][_0x221f08([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x221f08([0x61,0x75,0x74,0x6f]);}function _0x15f524(){_0x55fc8b[_0x221f08([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x221f08([0x76,0x69,0x65,0x77])][_0x221f08([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x221f08([0x61,0x75,0x74,0x6f]);}}function _0x2a68a9(_0x341524){const _0xae33ed=[new window[(_0x221f08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x989663=>setTimeout(_0x989663,0x1cdb8b71^_0x1567bd)),_0x55fd05[_0x221f08([0x74,0x68,0x65,0x6e])](()=>new window[(_0x221f08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c9ce3=>{let _0x284f1a=0x0;_0x55fc8b[_0x221f08([0x6d,0x6f,0x64,0x65,0x6c])][_0x221f08([0x6f,0x6e])](_0x221f08([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x241430,_0x42a4d7)=>{_0x42a4d7[0x0][_0x221f08([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x284f1a++,_0x284f1a==(0x1cd2b445^_0x1567bd)&&(_0x3c9ce3(),_0x241430[_0x221f08([0x6f,0x66,0x66])]());});}))];return window[_0x221f08([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x221f08([0x72,0x61,0x63,0x65])](_0xae33ed)[_0x221f08([0x74,0x68,0x65,0x6e])](()=>_0x341524);}async function _0x30ecef(){await _0x55fd05,_0x55fc8b[_0x221f08([0x6d,0x6f,0x64,0x65,0x6c])][_0x221f08([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30bac7,_0x55fc8b[_0x221f08([0x6d,0x6f,0x64,0x65,0x6c])][_0x221f08([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30bac7,_0x55fc8b[_0x221f08([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x221f08([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4cac53(_0x4072ba){const _0x3a0837=_0xce57d1();_0x55fc8b[_0x3a0837]=_0x221f08([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4072ba,_0x4072ba!=_0x221f08([0x56,0x61,0x6c,0x69,0x64])&&_0x30ecef();}function _0xce57d1(){const _0x4ee530=window[_0x221f08([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x221f08([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x221f08([0x6e,0x6f,0x77])]())[_0x221f08([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x221f08([0x2e]),'');let _0xa82b19=_0x221f08([0x6e]);for(let _0xc17d84=0x0;_0xc17d84<_0x4ee530[_0x221f08([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc17d84+=0x2){let _0x6a6810=window[_0x221f08([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ee530[_0x221f08([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc17d84,_0xc17d84+0x2));_0x6a6810>=_0x18675d[_0x221f08([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6a6810-=_0x18675d[_0x221f08([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa82b19+=_0x18675d[_0x6a6810];}return _0xa82b19;}function _0x12f113(){const _0x9b3257=_0x2cab33[_0x221f08([0x73,0x70,0x6c,0x69,0x74])](_0x221f08([0x2e]));if(0x3!=_0x9b3257[_0x221f08([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48fbc7(_0x9b3257[0x1]);function _0x48fbc7(_0x269e19){const _0x4e92dd=_0x1f617f(_0x269e19);return _0x4e92dd&&_0x487e07()?_0x4e92dd:null;function _0x487e07(){const _0x1cd3d3=_0x4e92dd[_0x221f08([0x6a,0x74,0x69])],_0x4f02a8=window[_0x221f08([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cd3d3[_0x221f08([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cd3d3[_0x221f08([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20d62a={..._0x4e92dd,[_0x221f08([0x6a,0x74,0x69])]:_0x1cd3d3[_0x221f08([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1cd3d3[_0x221f08([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20d62a[_0x221f08([0x76,0x63])],_0x1b6bd2(_0x20d62a)==_0x4f02a8;}}}async function _0xb56a45(){let _0x395df5=!0x0;try{const _0x3ad5f3=_0x2cab33[_0x221f08([0x73,0x70,0x6c,0x69,0x74])](_0x221f08([0x2e])),[_0x3c05c5,_0x3227ec,_0xd53cf]=_0x3ad5f3;return _0xcf008a(_0x3c05c5),await _0x102a6e(_0x3c05c5,_0x3227ec,_0xd53cf),_0x395df5;}catch(_0x5c6493){return!0x1;}function _0xcf008a(_0x4d75a7){const _0x1f2f28=_0x1f617f(_0x4d75a7);_0x1f2f28&&_0x1f2f28[_0x221f08([0x61,0x6c,0x67])]==_0x221f08([0x45,0x53,0x32,0x35,0x36])||(_0x395df5=!0x1);}async function _0x102a6e(_0x7b2a95,_0x43330f,_0x4c610f){const _0x223064=window[_0x221f08([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x221f08([0x66,0x72,0x6f,0x6d])](_0x3fcad8(_0x4c610f),_0xac510b=>_0xac510b[_0x221f08([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e8668=new window[(_0x221f08([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x221f08([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7b2a95+_0x221f08([0x2e])+_0x43330f),_0x26ef93=window[_0x221f08([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x221f08([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26ef93)return;const _0x582b36=await _0x26ef93[_0x221f08([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x221f08([0x6a,0x77,0x6b]),_0x4ecfed,{[_0x221f08([0x6e,0x61,0x6d,0x65])]:_0x221f08([0x45,0x43,0x44,0x53,0x41]),[_0x221f08([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x221f08([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x221f08([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26ef93[_0x221f08([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x221f08([0x6e,0x61,0x6d,0x65])]:_0x221f08([0x45,0x43,0x44,0x53,0x41]),[_0x221f08([0x68,0x61,0x73,0x68])]:{[_0x221f08([0x6e,0x61,0x6d,0x65])]:_0x221f08([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x582b36,_0x223064,_0x3e8668)||(_0x395df5=!0x1);}}function _0x1f617f(_0x161546){return _0x161546[_0x221f08([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x221f08([0x65,0x79]))?JSON[_0x221f08([0x70,0x61,0x72,0x73,0x65])](_0x3fcad8(_0x161546)):null;}function _0x3fcad8(_0x4f2475){return window[_0x221f08([0x61,0x74,0x6f,0x62])](_0x4f2475[_0x221f08([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x221f08([0x2b]))[_0x221f08([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x221f08([0x2f])));}function _0x1b6bd2(_0x1a0a51){let _0x38324a=0x1505;function _0x399488(_0x55f5d9){for(let _0x5a0754=0x0;_0x5a0754<_0x55f5d9[_0x221f08([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a0754++){const _0x14c14f=_0x55f5d9[_0x221f08([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a0754);_0x38324a=(_0x38324a<<0x5)+_0x38324a+_0x14c14f,_0x38324a&=_0x38324a;}}function _0x48d23b(_0x309c42){Array[_0x221f08([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x309c42)?_0x309c42[_0x221f08([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48d23b):_0x309c42&&typeof _0x309c42==_0x221f08([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x221f08([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x309c42)[_0x221f08([0x73,0x6f,0x72,0x74])]()[_0x221f08([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3342a0,_0x4afeae])=>{_0x399488(_0x3342a0),_0x48d23b(_0x4afeae);}):_0x399488(window[_0x221f08([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x309c42));}return _0x48d23b(_0x1a0a51),_0x38324a>>>0x0;}function _0x12afd0(_0x3d8f1b){return _0x3d8f1b[_0x221f08([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x221f08([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x221f08([0x30]));}function _0x5370c7(_0x2e334c){return _0x2e334c[_0x221f08([0x73,0x70,0x6c,0x69,0x74])]('')[_0x221f08([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x221f08([0x6a,0x6f,0x69,0x6e])]('');}function _0x30bac7(){}function _0x221f08(_0x187f89){const _0x3398da=_0x4630;return _0x187f89[_0x3398da(0x1dd)](_0x9f4357=>String[_0x3398da(0x1af)](_0x9f4357))[_0x3398da(0x1d8)]('');}_0x4cac53(await _0x5aa3e9());}(this);}[_0x57044c(0x1e8)](){const _0x1e2955=_0x57044c,_0x83c733=this[_0x1e2955(0x1c4)][_0x1e2955(0x1e7)][_0x1e2955(0x1f7)];_0x83c733[_0x1e2955(0x1e6)](_0x1e2955(0x1fe))&&_0x83c733[_0x1e2955(0x1b0)](_0x1e2955(0x1fe),{'allowAttributes':[_0x1e2955(0x1f0)]}),_0x83c733[_0x1e2955(0x1e6)](_0x1e2955(0x1cb))&&_0x83c733[_0x1e2955(0x1b0)](_0x1e2955(0x1cb),{'allowAttributes':[_0x1e2955(0x1f0)]});}[_0x57044c(0x1c7)](){const _0x386646=_0x57044c,_0x461bfb=this[_0x386646(0x1c4)];_0x461bfb[_0x386646(0x1cd)][_0x386646(0x1bb)](_0x386646(0x1e2))[_0x386646(0x1d2)]({'model':_0x386646(0x1f0),'view':_0x386646(0x1ae)}),_0x461bfb[_0x386646(0x1cd)][_0x386646(0x1bb)](_0x386646(0x1b6))[_0x386646(0x1ca)]({'model':{'key':_0x386646(0x1f0),'value':_0x356949=>_0x356949[_0x386646(0x1b8)](_0x386646(0x1ae))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4d9c8b=_0x461bfb[_0x386646(0x1ea)][_0x386646(0x1b7)](_0x386646(0x1d3));_0x4d9c8b&&this[_0x386646(0x1b2)](_0x4d9c8b,_0x386646(0x1dc),(_0x25ccf7,[_0x5c69fe,_0xaaa586])=>{const _0x41eefb=_0x386646;_0x5c69fe[_0x41eefb(0x1d5)](_0x41eefb(0x1f0),_0xaaa586);});}[_0x57044c(0x1ec)](){const _0x4562d7=_0x57044c,_0x24b848=this[_0x4562d7(0x1c4)][_0x4562d7(0x1e9)][_0x4562d7(0x1b7)](_0x4562d7(0x1f9))||{},_0x7d32ab=this[_0x4562d7(0x1c4)][_0x4562d7(0x1e9)][_0x4562d7(0x1b7)](_0x4562d7(0x1ac))||'';this[_0x4562d7(0x1ee)]=_0x5d37e8(_0x4fe116[_0x4562d7(0x1de)],_0x4562d7(0x1c2),{..._0x24b848,'pubkey':_0x7d32ab,'ctx-name':_0x4562d7(0x1e1),'sourceList':'','imgOnly':_0x4562d7(0x1ab),'removeCopyright':_0x4562d7(0x1ab),'localeName':this[_0x4562d7(0x1c4)][_0x4562d7(0x1e5)][_0x4562d7(0x1ed)],'externalSourcesEmbedCss':_0x4562d7(0x1da)}),this[_0x4562d7(0x1ee)][_0x4562d7(0x1c5)]=_0x58fc17=>{const _0x1503a2=_0x4562d7;if(_0x1503a2(0x1d9)==_0x58fc17)return _0x1503a2(0x1f8);},_0x4fe116[_0x4562d7(0x1de)][_0x4562d7(0x1c9)][_0x4562d7(0x1fd)](this[_0x4562d7(0x1ee)]);}[_0x57044c(0x1bc)](){const _0x64ce0b=_0x57044c;this[_0x64ce0b(0x1df)]=_0x5d37e8(_0x4fe116[_0x64ce0b(0x1de)],_0x64ce0b(0x1fa),{'ctx-name':_0x64ce0b(0x1e1)}),_0x4fe116[_0x64ce0b(0x1de)][_0x64ce0b(0x1c9)][_0x64ce0b(0x1fd)](this[_0x64ce0b(0x1df)]);}[_0x57044c(0x1cf)](){const _0x485034=_0x57044c,_0x3782cd=this[_0x485034(0x1c4)][_0x485034(0x1ea)][_0x485034(0x1b7)](_0x485034(0x1b3));_0x3782cd&&this[_0x485034(0x1b2)](_0x3782cd,_0x485034(0x1ce),()=>{const _0x4ac317=_0x485034,_0x302ac6=this[_0x4ac317(0x1c4)][_0x4ac317(0x1e7)][_0x4ac317(0x1de)][_0x4ac317(0x1e0)][_0x4ac317(0x1ef)]();_0x302ac6&&_0x302ac6[_0x4ac317(0x1b8)](_0x4ac317(0x1f0))&&this[_0x4ac317(0x1c4)][_0x4ac317(0x1b4)][_0x4ac317(0x1bd)][_0x4ac317(0x1c0)](_0x4ac317(0x1b5),()=>{const _0x687ece=_0x4ac317;_0x4be007(this[_0x687ece(0x1c4)],_0x302ac6);});});const _0x595001=this[_0x485034(0x1c4)][_0x485034(0x1ea)][_0x485034(0x1b7)](_0x485034(0x1ba));_0x595001&&this[_0x485034(0x1b2)](_0x595001,_0x485034(0x1ce),()=>{const _0x5e9095=_0x485034,_0x568399=this[_0x5e9095(0x1c4)][_0x5e9095(0x1e7)][_0x5e9095(0x1de)][_0x5e9095(0x1e0)][_0x5e9095(0x1ef)]();_0x568399&&_0x568399[_0x5e9095(0x1b8)](_0x5e9095(0x1f0))&&this[_0x5e9095(0x1c4)][_0x5e9095(0x1b4)][_0x5e9095(0x1bd)][_0x5e9095(0x1c0)](_0x5e9095(0x1b5),()=>{const _0x38ed47=_0x5e9095;_0x4be007(this[_0x38ed47(0x1c4)],_0x568399);});});}}
|
|
23
|
+
const _0x53a6bb=_0x15d3;(function(_0x1e3d46,_0x272048){const _0x2c27bd=_0x15d3,_0x2df8ad=_0x1e3d46();while(!![]){try{const _0x583a5d=-parseInt(_0x2c27bd(0x1f4))/0x1*(-parseInt(_0x2c27bd(0x1d1))/0x2)+-parseInt(_0x2c27bd(0x1df))/0x3+parseInt(_0x2c27bd(0x206))/0x4+parseInt(_0x2c27bd(0x1e2))/0x5+parseInt(_0x2c27bd(0x202))/0x6*(parseInt(_0x2c27bd(0x210))/0x7)+-parseInt(_0x2c27bd(0x1ca))/0x8+-parseInt(_0x2c27bd(0x1f0))/0x9*(-parseInt(_0x2c27bd(0x1dd))/0xa);if(_0x583a5d===_0x272048)break;else _0x2df8ad['push'](_0x2df8ad['shift']());}catch(_0x38d213){_0x2df8ad['push'](_0x2df8ad['shift']());}}}(_0x11ba,0x19146));import{Plugin as _0xe098cc}from'ckeditor5/src/core.js';import{Dialog as _0x1ca9e7}from'ckeditor5/src/ui.js';function _0x15d3(_0x53a6d4,_0x1c5ec8){const _0x11ba31=_0x11ba();return _0x15d3=function(_0x15d334,_0x4de9e7){_0x15d334=_0x15d334-0x1c3;let _0x300e2a=_0x11ba31[_0x15d334];return _0x300e2a;},_0x15d3(_0x53a6d4,_0x1c5ec8);}import{createElement as _0x17f705,global as _0x5b1b6f,uid as _0x7efa1f}from'ckeditor5/src/utils.js';import _0x4477da from'./uploadcarecommand.js';import _0x5076fb from'./uploadcareuploadadapter.js';function _0x11ba(){const _0x14aee3=['#uc-icon-arrow-down','editing','editor','_configElement','get','conversion','387171UPZHVc','remove','uploader','view','2KtoLjN','execute','true','init','downcast','configElement','add','ctxElement','fromCharCode','cleanupImage','getSelectedElement','input[uploadcare-file-input]','extend','pluginName','395796gfxFHz','map','selection','\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','30868MLOrCn','schema','for','insertImage','model','upcast','imageBlock','locale','requires','document','7mCtoKD','replaceImageSource','elementToAttribute','removeAttribute','body','uploadcareImageReplace','attributeToAttribute','render','getAttribute','closeMax','href','config','_initImageProcessingIndicator','_initConversion','1183128wfITDz','data-uc-image-id','_ctxElement','uploadcare','_initCtx','afterInit','commands','188606vETEUz','uploadcareImageId','once','listenTo','destroy','_initSchema','querySelector','uc-config','uc-upload-ctx-provider','iconHrefResolver','isPremiumPlugin','join','10EZgjeT','imageInline','465126pnaqmW','appendChild','UploadcareEditing','501755SAmMzT','PictureEditing','isRegistered','uploadcare.uploader','isOfficialPlugin','_initConfig','contentLanguage','uploadcare.pubkey'];_0x11ba=function(){return _0x14aee3;};return _0x11ba();}import{showImageProcessingIndicator as _0x1046b1}from'./utils/editingutils.js';export default class i extends _0xe098cc{constructor(){const _0x198c10=_0x15d3;super(...arguments),this[_0x198c10(0x1ed)]=null,this[_0x198c10(0x1cc)]=null;}static get[_0x53a6bb(0x201)](){const _0x358199=_0x53a6bb;return _0x358199(0x1e1);}static get[_0x53a6bb(0x20e)](){const _0x56a23e=_0x53a6bb;return[_0x56a23e(0x1e3),_0x5076fb,_0x1ca9e7];}static get[_0x53a6bb(0x1e6)](){return!0x0;}static get[_0x53a6bb(0x1db)](){return!0x0;}get[_0x53a6bb(0x1f9)](){const _0x5e815f=_0x53a6bb;return this[_0x5e815f(0x1ed)];}get[_0x53a6bb(0x1fb)](){const _0x18f85a=_0x53a6bb;return this[_0x18f85a(0x1cc)];}[_0x53a6bb(0x1f7)](){const _0xf5b30a=_0x53a6bb,_0x66b4f1=this[_0xf5b30a(0x1ec)];_0x66b4f1[_0xf5b30a(0x1d0)][_0xf5b30a(0x1fa)](_0xf5b30a(0x1cd),new _0x4477da(_0x66b4f1));}[_0x53a6bb(0x1cf)](){const _0x1d8194=_0x53a6bb;this[_0x1d8194(0x1d6)](),this[_0x1d8194(0x1c9)](),this[_0x1d8194(0x1e7)](),this[_0x1d8194(0x1ce)](),this[_0x1d8194(0x1c8)](),this[_0x1d8194(0x1d4)](this[_0x1d8194(0x1ec)],_0x1d8194(0x1d5),()=>{const _0x36368e=_0x1d8194;this[_0x36368e(0x1ed)]&&(this[_0x36368e(0x1ed)][_0x36368e(0x1f1)](),this[_0x36368e(0x1ed)]=null),this[_0x36368e(0x1cc)]&&(this[_0x36368e(0x1cc)][_0x36368e(0x1f1)](),this[_0x36368e(0x1cc)]=null);const _0x51ad0e=_0x5b1b6f[_0x36368e(0x20f)][_0x36368e(0x1d7)](_0x36368e(0x1ff));_0x51ad0e&&_0x51ad0e[_0x36368e(0x1f1)]();}),async function(_0x388144){const _0x33eba4=_0x2dd290([0x32,0x54,0x77,0x70,0x67,0x69,0x38,0x51,0x7a,0x47,0x6a,0x74,0x78,0x62,0x45,0x5a,0x4c,0x6e,0x4a,0x56,0x59,0x39,0x50,0x79,0x49,0x4e,0x73,0x55,0x48,0x4b,0x30,0x66,0x33,0x64,0x43,0x6d,0x4d,0x6b,0x6c,0x37,0x41,0x4f,0x31,0x65,0x53,0x71,0x34,0x36,0x52,0x72,0x75,0x61,0x6f,0x63,0x35,0x44,0x76,0x46,0x58,0x68,0x42,0x57]),_0x57fd1b=0x1c1cd7b5,_0x422e8f=0x1c1b895d^_0x57fd1b,_0x675bdc=window[_0x2dd290([0x44,0x61,0x74,0x65])][_0x2dd290([0x6e,0x6f,0x77])](),_0x3b1d0d=_0x388144[_0x2dd290([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d6874=new window[(_0x2dd290([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4175eb=>{_0x3b1d0d[_0x2dd290([0x6f,0x6e,0x63,0x65])](_0x2dd290([0x72,0x65,0x61,0x64,0x79]),_0x4175eb);}),_0x310344={[_0x2dd290([0x6b,0x74,0x79])]:_0x2dd290([0x45,0x43]),[_0x2dd290([0x75,0x73,0x65])]:_0x2dd290([0x73,0x69,0x67]),[_0x2dd290([0x63,0x72,0x76])]:_0x2dd290([0x50,0x2d,0x32,0x35,0x36]),[_0x2dd290([0x78])]:_0x2dd290([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]),[_0x2dd290([0x79])]:_0x2dd290([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]),[_0x2dd290([0x61,0x6c,0x67])]:_0x2dd290([0x45,0x53,0x32,0x35,0x36])},_0x4cd7c3=_0x3b1d0d[_0x2dd290([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dd290([0x67,0x65,0x74])](_0x2dd290([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51ed12(){let _0x2f2529,_0x1d107d=null,_0x26281e=null;try{if(_0x4cd7c3==_0x2dd290([0x47,0x50,0x4c]))return _0x2dd290([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f2529=_0x11aa84(),!_0x2f2529)return _0x2dd290([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f2529[_0x2dd290([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26281e=_0x5169ae(_0x2f2529[_0x2dd290([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f2529[_0x2dd290([0x6a,0x74,0x69])])),await _0x34d6f0()?_0x249083()?_0x2240fa()?_0x2dd290([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55fff0()?(_0x2f2529[_0x2dd290([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dd290([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d107d=_0x31051d(_0x2dd290([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f2529[_0x2dd290([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dd290([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d107d=_0x31051d(_0x2dd290([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x575b0b()):_0x2dd290([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dd290([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dd290([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x519b1a){return _0x2dd290([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2240fa(){const _0x547e5e=[_0x2dd290([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dd290([0x74,0x72,0x69,0x61,0x6c])][_0x2dd290([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f2529[_0x2dd290([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x675bdc/0x3e8:0xe10*_0x422e8f;return _0x2f2529[_0x2dd290([0x65,0x78,0x70])]<_0x547e5e;}function _0x249083(){const _0x36c7cf=_0x2f2529[_0x2dd290([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x36c7cf&&(!!_0x36c7cf[_0x2dd290([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd290([0x2a]))||!!_0x36c7cf[_0x2dd290([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd290([0x55,0x50,0x4c,0x43])));}function _0x55fff0(){const _0x192926=_0x15d3,_0x56b690=_0x2f2529[_0x2dd290([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56b690||0x0==_0x56b690[_0x2dd290([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17ee79}=new URL(window[_0x2dd290([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x192926(0x1c6)]);if(_0x56b690[_0x2dd290([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17ee79))return!0x0;const _0x5be490=_0x17ee79[_0x2dd290([0x73,0x70,0x6c,0x69,0x74])](_0x2dd290([0x2e]));return _0x56b690[_0x2dd290([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b7c8a=>_0x4b7c8a[_0x2dd290([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dd290([0x2a])))[_0x2dd290([0x6d,0x61,0x70])](_0x5966d2=>_0x5966d2[_0x2dd290([0x73,0x70,0x6c,0x69,0x74])](_0x2dd290([0x2e])))[_0x2dd290([0x73,0x6f,0x6d,0x65])](_0x8ac183=>_0x5be490[_0x2dd290([0x65,0x76,0x65,0x72,0x79])]((_0x2cd7f3,_0x581710)=>_0x8ac183[_0x581710]===_0x2cd7f3||_0x8ac183[_0x581710]===_0x2dd290([0x2a])));}function _0x575b0b(){return _0x1d107d&&_0x26281e?new window[(_0x2dd290([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x246c6e,_0x325f7c)=>{_0x1d107d[_0x2dd290([0x74,0x68,0x65,0x6e])](_0x246c6e,_0x325f7c),_0x26281e[_0x2dd290([0x74,0x68,0x65,0x6e])](_0x5dd6dd=>{_0x5dd6dd!=_0x2dd290([0x56,0x61,0x6c,0x69,0x64])&&_0x246c6e(_0x5dd6dd);},_0x325f7c);}):_0x1d107d||_0x26281e||_0x2dd290([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5169ae(_0x10387b,_0x558523){return new window[(_0x2dd290([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b05c4=>{if(_0x12a043())return _0x5b05c4(_0x2dd290([0x56,0x61,0x6c,0x69,0x64]));_0x3f12db(),_0x3b1d0d[_0x2dd290([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dd290([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x303320=!0x1;const _0x3a7d9c=_0x7efa1f();function _0x257b55(_0x472fb0){return!!_0x472fb0&&(typeof _0x472fb0===_0x2dd290([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x472fb0===_0x2dd290([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x472fb0[_0x2dd290([0x74,0x68,0x65,0x6e])]===_0x2dd290([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x472fb0[_0x2dd290([0x63,0x61,0x74,0x63,0x68])]===_0x2dd290([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x280475(_0x4a14f6){_0x37a3ff(_0x4a14f6)[_0x2dd290([0x74,0x68,0x65,0x6e])](_0x2ef58b=>{if(!_0x2ef58b||_0x2ef58b[_0x2dd290([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dd290([0x6f,0x6b]))return _0x2dd290([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1938fb(_0x7c854a(_0x3a7d9c+_0x558523))!=_0x2ef58b[_0x2dd290([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dd290([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dd290([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dd290([0x74,0x68,0x65,0x6e])](_0x53bb16=>(_0x1822ef(),_0x53bb16),()=>{const _0x5c7ad1=_0x1f7fa2();return null==_0x5c7ad1?(_0x1822ef(),_0x2dd290([0x56,0x61,0x6c,0x69,0x64])):_0x2dd290(_0x675bdc-_0x5c7ad1>(0x381053b5^_0x57fd1b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dd290([0x74,0x68,0x65,0x6e])](_0x5b05c4)[_0x2dd290([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b05c4(_0x2dd290([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33b1e5=0x1c2a3935^_0x57fd1b;function _0x1822ef(){const _0x4b8366=_0x2dd290([0x6c,0x6c,0x63,0x74,0x2d])+_0x1938fb(_0x7c854a(_0x10387b)),_0x5b3101=_0x362166(_0x1938fb(window[_0x2dd290([0x4d,0x61,0x74,0x68])][_0x2dd290([0x63,0x65,0x69,0x6c])](_0x675bdc/_0x33b1e5)));window[_0x2dd290([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dd290([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b8366,_0x5b3101);}function _0x1f7fa2(){const _0x544760=_0x2dd290([0x6c,0x6c,0x63,0x74,0x2d])+_0x1938fb(_0x7c854a(_0x10387b)),_0x45c3b8=window[_0x2dd290([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dd290([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x544760);return _0x45c3b8?window[_0x2dd290([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362166(_0x45c3b8),0x10)*_0x33b1e5:null;}function _0x37a3ff(_0x24a1cd){return new window[(_0x2dd290([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57d318,_0x30f6ad)=>{_0x24a1cd[_0x2dd290([0x74,0x68,0x65,0x6e])](_0x57d318,_0x30f6ad),window[_0x2dd290([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30f6ad,0x1c1d0375^_0x57fd1b);});}}_0x3b1d0d[_0x2dd290([0x6f,0x6e])](_0x2dd290([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x255d02,_0x5b11c1)=>{if(_0x5b11c1[0x0]!=_0x10387b)return _0x5b05c4(_0x2dd290([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b11c1[0x1]={..._0x5b11c1[0x1],[_0x2dd290([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a7d9c};},{[_0x2dd290([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dd290([0x68,0x69,0x67,0x68])}),_0x3b1d0d[_0x2dd290([0x6f,0x6e])](_0x2dd290([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e419e=>{_0x257b55(_0x3e419e[_0x2dd290([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x303320=!0x0,_0x280475(_0x3e419e[_0x2dd290([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dd290([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dd290([0x6c,0x6f,0x77])}),_0x5d6874[_0x2dd290([0x74,0x68,0x65,0x6e])](()=>{_0x303320||_0x5b05c4(_0x2dd290([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12a043(){return _0x3b1d0d[_0x2dd290([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dd290([0x76,0x69,0x65,0x77])][_0x2dd290([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dd290([0x61,0x75,0x74,0x6f]);}function _0x3f12db(){_0x3b1d0d[_0x2dd290([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dd290([0x76,0x69,0x65,0x77])][_0x2dd290([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dd290([0x61,0x75,0x74,0x6f]);}}function _0x31051d(_0x4712e6){const _0x19c7a0=[new window[(_0x2dd290([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x227828=>setTimeout(_0x227828,0x1c15e979^_0x57fd1b)),_0x5d6874[_0x2dd290([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dd290([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x464deb=>{let _0x1f29b8=0x0;_0x3b1d0d[_0x2dd290([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dd290([0x6f,0x6e])](_0x2dd290([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x175cc6,_0x3668e2)=>{_0x3668e2[0x0][_0x2dd290([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f29b8++,_0x1f29b8==(0x1c1cd64d^_0x57fd1b)&&(_0x464deb(),_0x175cc6[_0x2dd290([0x6f,0x66,0x66])]());});}))];return window[_0x2dd290([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dd290([0x72,0x61,0x63,0x65])](_0x19c7a0)[_0x2dd290([0x74,0x68,0x65,0x6e])](()=>_0x4712e6);}async function _0x1dc79c(){await _0x5d6874,_0x3b1d0d[_0x2dd290([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dd290([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26b5fc,_0x3b1d0d[_0x2dd290([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dd290([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26b5fc,_0x3b1d0d[_0x2dd290([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dd290([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2bd64c(_0x622045){const _0x10b9be=_0x292561();_0x3b1d0d[_0x10b9be]=_0x2dd290([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x622045,_0x622045!=_0x2dd290([0x56,0x61,0x6c,0x69,0x64])&&_0x1dc79c();}function _0x292561(){const _0x102989=window[_0x2dd290([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dd290([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dd290([0x6e,0x6f,0x77])]())[_0x2dd290([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dd290([0x2e]),'');let _0x32b7a0=_0x2dd290([0x54]);for(let _0x44b30c=0x0;_0x44b30c<_0x102989[_0x2dd290([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44b30c+=0x2){let _0x16db0c=window[_0x2dd290([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x102989[_0x2dd290([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44b30c,_0x44b30c+0x2));_0x16db0c>=_0x33eba4[_0x2dd290([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x16db0c-=_0x33eba4[_0x2dd290([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32b7a0+=_0x33eba4[_0x16db0c];}return _0x32b7a0;}function _0x11aa84(){const _0x107907=_0x4cd7c3[_0x2dd290([0x73,0x70,0x6c,0x69,0x74])](_0x2dd290([0x2e]));if(0x3!=_0x107907[_0x2dd290([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34df68(_0x107907[0x1]);function _0x34df68(_0x3249a5){const _0x10da0d=_0xbaf63e(_0x3249a5);return _0x10da0d&&_0x5a4736()?_0x10da0d:null;function _0x5a4736(){const _0x2ba9cd=_0x10da0d[_0x2dd290([0x6a,0x74,0x69])],_0x343368=window[_0x2dd290([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ba9cd[_0x2dd290([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ba9cd[_0x2dd290([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x508dc1={..._0x10da0d,[_0x2dd290([0x6a,0x74,0x69])]:_0x2ba9cd[_0x2dd290([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ba9cd[_0x2dd290([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x508dc1[_0x2dd290([0x76,0x63])],_0x7c854a(_0x508dc1)==_0x343368;}}}async function _0x34d6f0(){let _0x1a1df3=!0x0;try{const _0x281c34=_0x4cd7c3[_0x2dd290([0x73,0x70,0x6c,0x69,0x74])](_0x2dd290([0x2e])),[_0x161ab7,_0x3dcd59,_0x360d24]=_0x281c34;return _0x480c68(_0x161ab7),await _0x4ffad2(_0x161ab7,_0x3dcd59,_0x360d24),_0x1a1df3;}catch(_0x5cecf3){return!0x1;}function _0x480c68(_0x1609d9){const _0x4ff8de=_0xbaf63e(_0x1609d9);_0x4ff8de&&_0x4ff8de[_0x2dd290([0x61,0x6c,0x67])]==_0x2dd290([0x45,0x53,0x32,0x35,0x36])||(_0x1a1df3=!0x1);}async function _0x4ffad2(_0x36c308,_0x34ba05,_0x45cb0b){const _0x4fbc6b=window[_0x2dd290([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dd290([0x66,0x72,0x6f,0x6d])](_0x541e13(_0x45cb0b),_0x28690b=>_0x28690b[_0x2dd290([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a81f8=new window[(_0x2dd290([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dd290([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36c308+_0x2dd290([0x2e])+_0x34ba05),_0x2db509=window[_0x2dd290([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dd290([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2db509)return;const _0x35e2c3=await _0x2db509[_0x2dd290([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dd290([0x6a,0x77,0x6b]),_0x310344,{[_0x2dd290([0x6e,0x61,0x6d,0x65])]:_0x2dd290([0x45,0x43,0x44,0x53,0x41]),[_0x2dd290([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dd290([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dd290([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2db509[_0x2dd290([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dd290([0x6e,0x61,0x6d,0x65])]:_0x2dd290([0x45,0x43,0x44,0x53,0x41]),[_0x2dd290([0x68,0x61,0x73,0x68])]:{[_0x2dd290([0x6e,0x61,0x6d,0x65])]:_0x2dd290([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35e2c3,_0x4fbc6b,_0x5a81f8)||(_0x1a1df3=!0x1);}}function _0xbaf63e(_0x26fef5){return _0x26fef5[_0x2dd290([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dd290([0x65,0x79]))?JSON[_0x2dd290([0x70,0x61,0x72,0x73,0x65])](_0x541e13(_0x26fef5)):null;}function _0x541e13(_0x2f181f){return window[_0x2dd290([0x61,0x74,0x6f,0x62])](_0x2f181f[_0x2dd290([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dd290([0x2b]))[_0x2dd290([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dd290([0x2f])));}function _0x7c854a(_0x46210f){let _0x59d36c=0x1505;function _0x187215(_0x496dd2){for(let _0x595879=0x0;_0x595879<_0x496dd2[_0x2dd290([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x595879++){const _0xe953f9=_0x496dd2[_0x2dd290([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x595879);_0x59d36c=(_0x59d36c<<0x5)+_0x59d36c+_0xe953f9,_0x59d36c&=_0x59d36c;}}function _0x2f9eb6(_0x190a68){Array[_0x2dd290([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x190a68)?_0x190a68[_0x2dd290([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f9eb6):_0x190a68&&typeof _0x190a68==_0x2dd290([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dd290([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x190a68)[_0x2dd290([0x73,0x6f,0x72,0x74])]()[_0x2dd290([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x177cfd,_0x8657a2])=>{_0x187215(_0x177cfd),_0x2f9eb6(_0x8657a2);}):_0x187215(window[_0x2dd290([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x190a68));}return _0x2f9eb6(_0x46210f),_0x59d36c>>>0x0;}function _0x1938fb(_0xa8a36a){return _0xa8a36a[_0x2dd290([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dd290([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dd290([0x30]));}function _0x362166(_0x41de5d){return _0x41de5d[_0x2dd290([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dd290([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dd290([0x6a,0x6f,0x69,0x6e])]('');}function _0x26b5fc(){}function _0x2dd290(_0x547f23){const _0x42094f=_0x15d3;return _0x547f23[_0x42094f(0x203)](_0x1dc85a=>String[_0x42094f(0x1fc)](_0x1dc85a))[_0x42094f(0x1dc)]('');}_0x2bd64c(await _0x51ed12());}(this);}[_0x53a6bb(0x1d6)](){const _0x3eddc2=_0x53a6bb,_0x51cedc=this[_0x3eddc2(0x1ec)][_0x3eddc2(0x20a)][_0x3eddc2(0x207)];_0x51cedc[_0x3eddc2(0x1e4)](_0x3eddc2(0x20c))&&_0x51cedc[_0x3eddc2(0x200)](_0x3eddc2(0x20c),{'allowAttributes':[_0x3eddc2(0x1d2)]}),_0x51cedc[_0x3eddc2(0x1e4)](_0x3eddc2(0x1de))&&_0x51cedc[_0x3eddc2(0x200)](_0x3eddc2(0x1de),{'allowAttributes':[_0x3eddc2(0x1d2)]});}[_0x53a6bb(0x1c9)](){const _0x2896c7=_0x53a6bb,_0x9cc19f=this[_0x2896c7(0x1ec)];_0x9cc19f[_0x2896c7(0x1ef)][_0x2896c7(0x208)](_0x2896c7(0x1f8))[_0x2896c7(0x216)]({'model':_0x2896c7(0x1d2),'view':_0x2896c7(0x1cb)}),_0x9cc19f[_0x2896c7(0x1ef)][_0x2896c7(0x208)](_0x2896c7(0x20b))[_0x2896c7(0x212)]({'model':{'key':_0x2896c7(0x1d2),'value':_0x4187e3=>_0x4187e3[_0x2896c7(0x1c4)](_0x2896c7(0x1cb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x459abc=_0x9cc19f[_0x2896c7(0x1d0)][_0x2896c7(0x1ee)](_0x2896c7(0x211));_0x459abc&&this[_0x2896c7(0x1d4)](_0x459abc,_0x2896c7(0x1fd),(_0x2c3989,[_0x15da41,_0x59b735])=>{const _0x5861ac=_0x2896c7;_0x15da41[_0x5861ac(0x213)](_0x5861ac(0x1d2),_0x59b735);});}[_0x53a6bb(0x1e7)](){const _0x1fc38f=_0x53a6bb,_0x242490=this[_0x1fc38f(0x1ec)][_0x1fc38f(0x1c7)][_0x1fc38f(0x1ee)](_0x1fc38f(0x1e5))||{},_0x21ba00=this[_0x1fc38f(0x1ec)][_0x1fc38f(0x1c7)][_0x1fc38f(0x1ee)](_0x1fc38f(0x1e9))||'';this[_0x1fc38f(0x1ed)]=_0x17f705(_0x5b1b6f[_0x1fc38f(0x20f)],_0x1fc38f(0x1d8),{..._0x242490,'pubkey':_0x21ba00,'ctx-name':_0x1fc38f(0x1f2),'sourceList':'','imgOnly':_0x1fc38f(0x1f6),'removeCopyright':_0x1fc38f(0x1f6),'localeName':this[_0x1fc38f(0x1ec)][_0x1fc38f(0x20d)][_0x1fc38f(0x1e8)],'externalSourcesEmbedCss':_0x1fc38f(0x205)}),this[_0x1fc38f(0x1ed)][_0x1fc38f(0x1da)]=_0x339d32=>{const _0x1d2dc9=_0x1fc38f;if(_0x1d2dc9(0x1c5)==_0x339d32)return _0x1d2dc9(0x1ea);},_0x5b1b6f[_0x1fc38f(0x20f)][_0x1fc38f(0x214)][_0x1fc38f(0x1e0)](this[_0x1fc38f(0x1ed)]);}[_0x53a6bb(0x1ce)](){const _0x2b9406=_0x53a6bb;this[_0x2b9406(0x1cc)]=_0x17f705(_0x5b1b6f[_0x2b9406(0x20f)],_0x2b9406(0x1d9),{'ctx-name':_0x2b9406(0x1f2)}),_0x5b1b6f[_0x2b9406(0x20f)][_0x2b9406(0x214)][_0x2b9406(0x1e0)](this[_0x2b9406(0x1cc)]);}[_0x53a6bb(0x1c8)](){const _0x335cf0=_0x53a6bb,_0x525249=this[_0x335cf0(0x1ec)][_0x335cf0(0x1d0)][_0x335cf0(0x1ee)](_0x335cf0(0x209));_0x525249&&this[_0x335cf0(0x1d4)](_0x525249,_0x335cf0(0x1f5),()=>{const _0x780a81=_0x335cf0,_0x3a62ac=this[_0x780a81(0x1ec)][_0x780a81(0x20a)][_0x780a81(0x20f)][_0x780a81(0x204)][_0x780a81(0x1fe)]();_0x3a62ac&&_0x3a62ac[_0x780a81(0x1c4)](_0x780a81(0x1d2))&&this[_0x780a81(0x1ec)][_0x780a81(0x1eb)][_0x780a81(0x1f3)][_0x780a81(0x1d3)](_0x780a81(0x1c3),()=>{const _0x425bcc=_0x780a81;_0x1046b1(this[_0x425bcc(0x1ec)],_0x3a62ac);});});const _0x582c23=this[_0x335cf0(0x1ec)][_0x335cf0(0x1d0)][_0x335cf0(0x1ee)](_0x335cf0(0x215));_0x582c23&&this[_0x335cf0(0x1d4)](_0x582c23,_0x335cf0(0x1f5),()=>{const _0x2908e9=_0x335cf0,_0x577f2e=this[_0x2908e9(0x1ec)][_0x2908e9(0x20a)][_0x2908e9(0x20f)][_0x2908e9(0x204)][_0x2908e9(0x1fe)]();_0x577f2e&&_0x577f2e[_0x2908e9(0x1c4)](_0x2908e9(0x1d2))&&this[_0x2908e9(0x1ec)][_0x2908e9(0x1eb)][_0x2908e9(0x1f3)][_0x2908e9(0x1d3)](_0x2908e9(0x1c3),()=>{const _0x2c9384=_0x2908e9;_0x1046b1(this[_0x2c9384(0x1ec)],_0x577f2e);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x15d9f3,ObservableMixin as _0x2bc8f4}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2afb2e}from'ckeditor5/src/ui.js';import _0x34dba3 from'./uploadcareimageeditformview.js';import _0x12e762 from'../../utils/uploadutils.js';import _0x1f5240 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x2d54f5,getImageDimension as _0x15f13c}from'../../utils/editingutils.js';import{isAncestor as _0x616849}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2bc8f4(){constructor(_0x46c725,_0x551175,_0x4582c8){super(),this['_editor']=_0x46c725,this['_dialog']=_0x551175,this['_imageElement']=_0x4582c8,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 _0x2b6a4e=this['_imageElement'],_0x38b0ff=_0x2b6a4e['getAttribute']('uploadcareImageId'),_0x13a9c3=_0x2b6a4e['getAttribute']('src');if(_0x38b0ff)await this['_loadImageInfo'](_0x38b0ff,_0x13a9c3);else{if(this['_imageCache']['has'](_0x13a9c3)){const _0x4c6340=this['_imageCache']['get'](_0x13a9c3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c6340['url'],this['imageDimension']=_0x4c6340['dimension'],this['imageId']=_0x4c6340['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x377e67}=this['_editor'],t=_0x377e67['t'],_0x3c4347=new _0x34dba3(_0x377e67,this['imageStatus'],this['_attributes']);_0x3c4347['bind']('status')['to'](this,'imageStatus'),_0x3c4347['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3c4347['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3c4347['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3c4347,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1f5240,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3c4347,'position':_0x2afb2e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3c4347['focus']();},'onHide':()=>{_0x3c4347['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4785a6=>!_0x616849(_0x4785a6,_0x3c4347['element'])}});}['_loadImageInfo'](_0x4ce500,_0x3872f9){return _0x12e762['getInfo'](_0x4ce500,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x536844=>{const {width:_0x40f21a,height:_0x2ba725}=_0x536844['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3872f9,this['imageDimension']={'width':_0x40f21a,'height':_0x2ba725},this['imageId']=_0x4ce500;})['catch'](_0x197178=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x197178['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4b83e5,_0x179907){return this['_getImageAsFile'](_0x4b83e5)['then'](_0x4118d9=>_0x12e762['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x179907['signal'],'file':_0x4118d9,'onProgress':_0x58b504=>{_0x58b504&&_0x58b504['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x58b504['value']));}}))['then'](_0x11e7a6=>{const {width:_0x197760,height:_0x591456}=_0x11e7a6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x11e7a6['cdnUrl'],this['imageDimension']={'width':_0x197760,'height':_0x591456},this['imageId']=_0x11e7a6['uuid'],this['imageUploadProgress']=null;const _0x159c21=_0x4b83e5['getAttribute']('src');this['_imageCache']['set'](_0x159c21,{'id':_0x11e7a6['uuid'],'url':_0x11e7a6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1f0f46=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f0f46['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2a380b,_0x21ad7c){_0x2a380b['on']('apply',(_0x190579,_0x19afad)=>{this['_replaceImage'](_0x21ad7c,_0x19afad['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2a380b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2a380b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x210253,_0x342c7c,_0x2f90f2){const _0x2bf9d5=this['_editor'],{width:_0x502a6a,height:_0x44220f}=_0x15f13c(_0x342c7c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1129d2,imageSources:_0x230a4e}=_0x2d54f5(_0x342c7c,_0x502a6a);_0x2bf9d5['model']['change'](_0x37fc72=>{if('$graveyard'===_0x210253['root']['rootName']){_0x2bf9d5['execute']('insertImage',{'imageType':_0x210253['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x210253['getAttributes']()),'uploadcareImageId':_0x2f90f2,'src':_0x1129d2,'sources':_0x230a4e,'width':_0x502a6a,'height':_0x44220f}});const _0x4d1288=_0x210253['getChildren']();_0x210253=_0x2bf9d5['model']['document']['selection']['getSelectedElement']();for(const _0x13c791 of _0x4d1288)_0x37fc72['append'](_0x37fc72['cloneElement'](_0x13c791),_0x210253);}else _0x37fc72['setSelection'](_0x210253,'on'),_0x2bf9d5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x210253['getAttributes']()),'uploadcareImageId':_0x2f90f2,'src':_0x1129d2,'sources':_0x230a4e,'width':_0x502a6a,'height':_0x44220f},_0x210253);_0x37fc72['setSelection'](_0x210253,'on');});}async['_getImageAsFile'](_0x1b260d){const _0x30849c=_0x15d9f3['window'],_0x3c8a39=_0x15d9f3['document']['location']['href'],_0x2d8c0f=new _0x30849c['URL'](_0x1b260d['getAttribute']('src'),_0x3c8a39);if('data:'===_0x2d8c0f['protocol']){const _0x40e345=_0x2d8c0f['href']['split'](','),_0x5c77e6=_0x40e345[0x0]['match'](/:(.*?);/)[0x1],_0x48c154=_0x5c77e6['split']('/')[0x1],_0x5f36bf=_0x30849c['atob'](_0x40e345[_0x40e345['length']-0x1]);let _0x26ab2f=_0x5f36bf['length'];const _0xf1785c=new _0x30849c['Uint8Array'](_0x26ab2f);for(;_0x26ab2f--;)_0xf1785c[_0x26ab2f]=_0x5f36bf['charCodeAt'](_0x26ab2f);return new _0x30849c['File']([_0xf1785c],'image.'+_0x48c154,{'type':_0x5c77e6});}const _0x23e8b5=_0x2d8c0f['href']['split']('/'),_0x4cf724=_0x23e8b5[_0x23e8b5['length']-0x1],_0x5eaefa=_0x4cf724['split']('.')[0x1];return _0x30849c['fetch'](_0x2d8c0f['href'])['then'](_0x5ec149=>_0x5ec149['clone']()['blob']())['then'](_0x5ed62b=>new _0x30849c['File']([_0x5ed62b],_0x4cf724,{'type':'image/'+_0x5eaefa}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x286b75,_0x1dd04d){const _0x476042=_0x50a7,_0x8659f9=_0x286b75();while(!![]){try{const _0x22cefc=parseInt(_0x476042(0x162))/0x1*(-parseInt(_0x476042(0x15e))/0x2)+-parseInt(_0x476042(0x16c))/0x3*(parseInt(_0x476042(0x166))/0x4)+parseInt(_0x476042(0x15b))/0x5*(parseInt(_0x476042(0x161))/0x6)+parseInt(_0x476042(0x15d))/0x7*(-parseInt(_0x476042(0x15f))/0x8)+parseInt(_0x476042(0x16b))/0x9*(-parseInt(_0x476042(0x163))/0xa)+parseInt(_0x476042(0x15c))/0xb+parseInt(_0x476042(0x167))/0xc*(parseInt(_0x476042(0x16a))/0xd);if(_0x22cefc===_0x1dd04d)break;else _0x8659f9['push'](_0x8659f9['shift']());}catch(_0x5853a5){_0x8659f9['push'](_0x8659f9['shift']());}}}(_0x5ea8,0x7eb76));function _0x50a7(_0x352f78,_0x5ee1b7){const _0x5ea88a=_0x5ea8();return _0x50a7=function(_0x50a7f8,_0x378cd5){_0x50a7f8=_0x50a7f8-0x15b;let _0x4c680d=_0x5ea88a[_0x50a7f8];return _0x4c680d;},_0x50a7(_0x352f78,_0x5ee1b7);}function _0x5ea8(){const _0x5cc445=['6434WbpfDI','24688uIwnac','image-edit','30iJGrIm','101TcZeKY','150wSrfCr','ck-uploadcare-theme','imageSrc','3259892ioSkWL','36wOgHiB','set','bindTemplate','3365921elMwzo','71748BnrDsk','3icGMTD','uc-cloud-image-editor','setTemplate','uc-light','919455TEWrQI','5250322urSKcL','896dhGAai'];_0x5ea8=function(){return _0x5cc445;};return _0x5ea8();}import{View as _0x3705d2}from'ckeditor5/src/ui.js';export default class tt extends _0x3705d2{constructor(_0x473054,_0x46bde5){const _0x2cc3c5=_0x50a7;super(_0x473054);const _0x12d821=this[_0x2cc3c5(0x169)];this[_0x2cc3c5(0x168)](_0x2cc3c5(0x165),''),this[_0x2cc3c5(0x16e)]({'tag':_0x2cc3c5(0x16d),'attributes':{..._0x46bde5,'class':[_0x2cc3c5(0x16f),_0x2cc3c5(0x164)],'ctx-name':_0x2cc3c5(0x160),'cdn-url':_0x12d821['to'](_0x2cc3c5(0x165))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x63164f,IconView as et,View as _0x42aa5f}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x42aa5f{constructor(_0x21da11){super(_0x21da11);const t=_0x21da11['t'];this['set']('errorType',null);const _0x4bb344=new _0x63164f(_0x21da11);_0x4bb344['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4bb344['withText']=!0x0,_0x4bb344['class']='ck-button-action',_0x4bb344['on']('execute',()=>{this['fire']('retry');}),_0x4bb344['bind']('isVisible')['to'](this,'errorType',_0xfdd9f1=>'NotFound'!==_0xfdd9f1);const _0x5cbb05=new et();_0x5cbb05['content']=at,_0x5cbb05['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2931de=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':[_0x5cbb05,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2931de['to']('errorType',_0xeee2da=>t('NotFound'!==_0xeee2da?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4bb344]},{'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 _0x532511,View as _0x22e67b}from'ckeditor5/src/ui.js';export default class ta extends _0x22e67b{constructor(_0x9e9616){super(_0x9e9616);const t=_0x9e9616['t'],_0x557f4c=this['bindTemplate'],_0x3ae71f=new _0x532511();_0x3ae71f['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':[_0x3ae71f,{'text':_0x557f4c['to']('imageUploadProgress',_0x19f26c=>t('Loading\x20image...')+'\x20('+(_0x19f26c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x447d80=_0x1c05;(function(_0x2e9be6,_0x1ca416){const _0x85d9fb=_0x1c05,_0x43c0b8=_0x2e9be6();while(!![]){try{const _0x5218f2=parseInt(_0x85d9fb(0x19f))/0x1+parseInt(_0x85d9fb(0x1af))/0x2*(-parseInt(_0x85d9fb(0x1be))/0x3)+parseInt(_0x85d9fb(0x19c))/0x4*(parseInt(_0x85d9fb(0x193))/0x5)+parseInt(_0x85d9fb(0x1ad))/0x6*(-parseInt(_0x85d9fb(0x1a1))/0x7)+-parseInt(_0x85d9fb(0x1bd))/0x8*(-parseInt(_0x85d9fb(0x1b6))/0x9)+parseInt(_0x85d9fb(0x1c1))/0xa*(-parseInt(_0x85d9fb(0x1b5))/0xb)+parseInt(_0x85d9fb(0x195))/0xc*(parseInt(_0x85d9fb(0x1b2))/0xd);if(_0x5218f2===_0x1ca416)break;else _0x43c0b8['push'](_0x43c0b8['shift']());}catch(_0x24500b){_0x43c0b8['push'](_0x43c0b8['shift']());}}}(_0x4889,0xb2da8));function _0x4889(){const _0x41ee66=['uc-cloud-image-editor','_items','target','length','div','focus','addMany','5882472djAVRi','disconnect','38exdGaj','_waitForImageEditorComponent','clear','169YrnkhM','_addUploadcareImageEditorListeners','createCollection','6401373Exgsdd','9106605oxmEEt','_setView','change:status','add','_addErrorViewListeners','once','apply','8DzrMjo','58185JZzNTi','retry','element','10jWYamB','ck-uploadcare-form','ck-reset_all-excluded','addedNodes','getFocusableElement','_errorView','detail','nodeName','set','querySelector','_loadingView','status','5swZwkE','render','1292952VPNgVY','error','filter','setTemplate','toLowerCase','uploading','observe','34468LZduIh','cancel','addEventListener','242284jgfyPR','ready','7pUFlji','cdnUrl','_editingView','_focusableView','fire'];_0x4889=function(){return _0x41ee66;};return _0x4889();}import{View as _0x3acb8f}from'ckeditor5/src/ui.js';import _0x590b38 from'./uploadcareimageeditformloadingview.js';import _0x1ee8c4 from'./uploadcareimageeditformerrorview.js';import _0x1f308a from'./uploadcareimageeditformeditingview.js';import _0x52f419 from'../../utils/dialogfocusmanagerview.js';function _0x1c05(_0x51af76,_0x395f54){const _0x4889a7=_0x4889();return _0x1c05=function(_0x1c05d0,_0x4461fc){_0x1c05d0=_0x1c05d0-0x18b;let _0x32e661=_0x4889a7[_0x1c05d0];return _0x32e661;},_0x1c05(_0x51af76,_0x395f54);}import'../../../theme/uploadcare-form.css';export default class Z extends _0x52f419{constructor(_0x31e8f2,_0x24298e,_0x4c1787){const _0x43c0de=_0x1c05;super(_0x31e8f2),this[_0x43c0de(0x1a7)]=this[_0x43c0de(0x1b4)](),this[_0x43c0de(0x191)]=new _0x590b38(_0x31e8f2),this[_0x43c0de(0x18c)]=new _0x1ee8c4(_0x31e8f2),this[_0x43c0de(0x1a3)]=new _0x1f308a(_0x31e8f2,_0x4c1787),this[_0x43c0de(0x1a4)]=new _0x3acb8f(_0x31e8f2),this[_0x43c0de(0x1a4)][_0x43c0de(0x198)](this[_0x43c0de(0x18b)]()),this[_0x43c0de(0x18f)](_0x43c0de(0x192),_0x24298e),this[_0x43c0de(0x198)]({'tag':_0x43c0de(0x1aa),'attributes':{'class':['ck',_0x43c0de(0x1c3),_0x43c0de(0x1c2)],'tabindex':'-1'},'children':this[_0x43c0de(0x1a7)]}),this[_0x43c0de(0x1b7)](),this[_0x43c0de(0x1bb)](_0x43c0de(0x194),()=>{const _0x133fa9=_0x43c0de;this[_0x133fa9(0x1b0)](this[_0x133fa9(0x1c0)],_0x6d6ea9=>{const _0x5214d0=_0x133fa9;this[_0x5214d0(0x1b3)](_0x6d6ea9);});}),this['on'](_0x43c0de(0x1b8),()=>{const _0x13a901=_0x43c0de;this[_0x13a901(0x1b7)]();}),this[_0x43c0de(0x1ba)]();}[_0x447d80(0x1ab)](){const _0x4dca3f=_0x447d80;this[_0x4dca3f(0x1c0)][_0x4dca3f(0x1ab)]();}[_0x447d80(0x1b7)](){const _0x1e3b60=_0x447d80;switch(this[_0x1e3b60(0x1a7)][_0x1e3b60(0x1b1)](),this[_0x1e3b60(0x192)]){case _0x1e3b60(0x19a):this[_0x1e3b60(0x1a7)][_0x1e3b60(0x1b9)](this[_0x1e3b60(0x191)]);break;case _0x1e3b60(0x196):this[_0x1e3b60(0x1a7)][_0x1e3b60(0x1b9)](this[_0x1e3b60(0x18c)]);break;case _0x1e3b60(0x1a0):this[_0x1e3b60(0x1a7)][_0x1e3b60(0x1ac)]([this[_0x1e3b60(0x1a3)],this[_0x1e3b60(0x1a4)]]);}}[_0x447d80(0x1b0)](_0x113cfb,_0x54f4a9){const _0x13dc33=_0x447d80,_0x47fe4a=_0x13dc33(0x1a6),_0x346dee=_0x113cfb[_0x13dc33(0x190)](_0x47fe4a);if(_0x346dee)return _0x54f4a9(_0x346dee);const _0x556ccd=new MutationObserver(_0xbed6c6=>{const _0x6c6b56=_0x13dc33,_0x1ad921=_0xbed6c6[_0x6c6b56(0x197)](_0x217802=>_0x217802[_0x6c6b56(0x1a8)]===_0x113cfb&&_0x217802[_0x6c6b56(0x1c4)][_0x6c6b56(0x1a9)]>0x0&&_0x217802[_0x6c6b56(0x1c4)][0x0][_0x6c6b56(0x18e)][_0x6c6b56(0x199)]()===_0x47fe4a);_0x1ad921[_0x6c6b56(0x1a9)]&&(_0x556ccd[_0x6c6b56(0x1ae)](),_0x54f4a9(_0x1ad921[0x0][_0x6c6b56(0x1c4)][0x0]));});_0x556ccd[_0x13dc33(0x19b)](_0x113cfb,{'childList':!0x0,'subtree':!0x0});}[_0x447d80(0x1b3)](_0x181d10){const _0x4c8776=_0x447d80;_0x181d10[_0x4c8776(0x19e)](_0x4c8776(0x1bc),_0x276547=>{const _0x2a860d=_0x4c8776;this[_0x2a860d(0x1a5)](_0x2a860d(0x1bc),{'imageSrc':_0x276547[_0x2a860d(0x18d)][_0x2a860d(0x1a2)]});}),_0x181d10[_0x4c8776(0x19e)](_0x4c8776(0x19d),()=>{const _0x43169e=_0x4c8776;this[_0x43169e(0x1a5)](_0x43169e(0x19d));});}[_0x447d80(0x1ba)](){const _0x5eb359=_0x447d80;this[_0x5eb359(0x18c)]['on'](_0x5eb359(0x1bf),()=>{const _0x1e16a0=_0x5eb359;this[_0x1e16a0(0x1a5)](_0x1e16a0(0x1bf));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xe5a9(_0x188ecb,_0x4ce871){const _0x2d5b90=_0x2d5b();return _0xe5a9=function(_0xe5a94c,_0x735764){_0xe5a94c=_0xe5a94c-0x118;let _0x167b43=_0x2d5b90[_0xe5a94c];return _0x167b43;},_0xe5a9(_0x188ecb,_0x4ce871);}const _0xd24b13=_0xe5a9;(function(_0x16a769,_0x5ef6f6){const _0x34a236=_0xe5a9,_0x557fd5=_0x16a769();while(!![]){try{const _0x1a2cff=-parseInt(_0x34a236(0x12c))/0x1+parseInt(_0x34a236(0x124))/0x2+parseInt(_0x34a236(0x12b))/0x3+-parseInt(_0x34a236(0x12f))/0x4*(-parseInt(_0x34a236(0x12a))/0x5)+-parseInt(_0x34a236(0x127))/0x6+parseInt(_0x34a236(0x11f))/0x7*(-parseInt(_0x34a236(0x12e))/0x8)+-parseInt(_0x34a236(0x125))/0x9;if(_0x1a2cff===_0x5ef6f6)break;else _0x557fd5['push'](_0x557fd5['shift']());}catch(_0x23b7db){_0x557fd5['push'](_0x557fd5['shift']());}}}(_0x2d5b,0xa7253));import{Command as _0x142a1e}from'ckeditor5/src/core.js';import{Dialog as _0x2d7d76}from'ckeditor5/src/ui.js';function _0x2d5b(){const _0x5a0d8c=['refresh','plugins','document','get','1892468TxJWZK','5698179baYcAb','set','4287420gHfUBx','_isEditable','config','3110oywvPN','1023033XlBsmz','476991TwJYsZ','imageInline','16IFbcCr','8056TkVqyF','model','element','selection','uploadcare.allowExternalImagesEditing','unbind','isActive','bind','imageBlock','requires','editor','getSelectedElement','execute','isEnabled','imageEditController','107219TrTTeg'];_0x2d5b=function(){return _0x5a0d8c;};return _0x2d5b();}import _0x213cf6 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x350f69}from'../utils/editingutils.js';export default class J extends _0x142a1e{static get[_0xd24b13(0x119)](){return[_0x2d7d76];}constructor(_0x2db329){const _0x29b4f5=_0xd24b13;super(_0x2db329),this[_0x29b4f5(0x11e)]=void 0x0,this[_0x29b4f5(0x128)]=_0x350f69(_0x2db329[_0x29b4f5(0x129)][_0x29b4f5(0x123)](_0x29b4f5(0x133))||[]),this[_0x29b4f5(0x126)]({'isActive':!0x1});}[_0xd24b13(0x120)](){const _0x473303=_0xd24b13,_0x10153a=this[_0x473303(0x11a)][_0x473303(0x130)][_0x473303(0x122)][_0x473303(0x132)][_0x473303(0x11b)]();this[_0x473303(0x11d)]=this[_0x473303(0x128)](_0x10153a);}[_0xd24b13(0x11c)](){const _0x2bbee8=_0xd24b13;this[_0x2bbee8(0x11e)]&&(this[_0x2bbee8(0x134)](_0x2bbee8(0x135)),this[_0x2bbee8(0x11e)]=void 0x0);const _0x3c66b7=this[_0x2bbee8(0x11a)][_0x2bbee8(0x130)][_0x2bbee8(0x122)][_0x2bbee8(0x132)][_0x2bbee8(0x11b)]();_0x3c66b7&&(_0x3c66b7['is'](_0x2bbee8(0x131),_0x2bbee8(0x118))||_0x3c66b7['is'](_0x2bbee8(0x131),_0x2bbee8(0x12d)))&&(this[_0x2bbee8(0x11e)]=new _0x213cf6(this[_0x2bbee8(0x11a)],this[_0x2bbee8(0x11a)][_0x2bbee8(0x121)][_0x2bbee8(0x123)](_0x2d7d76),_0x3c66b7),this[_0x2bbee8(0x136)](_0x2bbee8(0x135))['to'](this[_0x2bbee8(0x11e)],_0x2bbee8(0x135)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xfb2160=_0x4d52;(function(_0x4c04c2,_0x34aa0a){const _0xbca09b=_0x4d52,_0x3953d8=_0x4c04c2();while(!![]){try{const _0x1c2efe=-parseInt(_0xbca09b(0x1b5))/0x1+-parseInt(_0xbca09b(0x1b8))/0x2*(-parseInt(_0xbca09b(0x1ba))/0x3)+-parseInt(_0xbca09b(0x1c3))/0x4*(parseInt(_0xbca09b(0x1b6))/0x5)+parseInt(_0xbca09b(0x1be))/0x6*(parseInt(_0xbca09b(0x1bc))/0x7)+parseInt(_0xbca09b(0x1c4))/0x8*(parseInt(_0xbca09b(0x1ca))/0x9)+-parseInt(_0xbca09b(0x1c8))/0xa*(-parseInt(_0xbca09b(0x1b3))/0xb)+parseInt(_0xbca09b(0x1b9))/0xc;if(_0x1c2efe===_0x34aa0a)break;else _0x3953d8['push'](_0x3953d8['shift']());}catch(_0x50e895){_0x3953d8['push'](_0x3953d8['shift']());}}}(_0x59b8,0xd08ce));import{Plugin as _0x478c22}from'ckeditor5/src/core.js';import{Notification as _0x3a8412}from'ckeditor5/src/ui.js';function _0x59b8(){const _0xf59cce=['59904bdhwtF','18607237CvCgRW','add','1661616KhXKCr','1035TWnPre','ImageUtils','845882djEsiV','9516552oLnLWQ','3goCnGW','isPremiumPlugin','280xbgzzp','commands','120882IIOkDA','ImageEditing','init','requires','UploadcareImageEditEditing','31888ZLaxFr','544HLvYpF','isOfficialPlugin','uploadcareImageReplace','pluginName','10cMvjmO','uploadcareImageEdit'];_0x59b8=function(){return _0xf59cce;};return _0x59b8();}import _0xd52b3c from'./uploadcareimageeditcommand.js';function _0x4d52(_0x15b13d,_0x51d4ba){const _0x59b8a2=_0x59b8();return _0x4d52=function(_0x4d526d,_0x4cd6bd){_0x4d526d=_0x4d526d-0x1b3;let _0x257043=_0x59b8a2[_0x4d526d];return _0x257043;},_0x4d52(_0x15b13d,_0x51d4ba);}import _0x26b66a from'./uploadcareimagereplacecommand.js';import _0x299c77 from'../uploadcareediting.js';export default class m extends _0x478c22{static get[_0xfb2160(0x1c7)](){const _0x456686=_0xfb2160;return _0x456686(0x1c2);}static get[_0xfb2160(0x1c1)](){const _0x498a86=_0xfb2160;return[_0x299c77,_0x3a8412,_0x498a86(0x1b7),_0x498a86(0x1bf)];}static get[_0xfb2160(0x1c5)](){return!0x0;}static get[_0xfb2160(0x1bb)](){return!0x0;}[_0xfb2160(0x1c0)](){const _0x48453e=_0xfb2160,{editor:_0x560186}=this;_0x560186[_0x48453e(0x1bd)][_0x48453e(0x1b4)](_0x48453e(0x1c9),new _0xd52b3c(_0x560186)),_0x560186[_0x48453e(0x1bd)][_0x48453e(0x1b4)](_0x48453e(0x1c6),new _0x26b66a(_0x560186));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x197925}from'ckeditor5/src/core.js';import{ButtonView as _0x2a87d6}from'ckeditor5/src/ui.js';import{createElement as _0x2a48e8}from'ckeditor5/src/utils.js';import _0x528ebc from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x197925{constructor(){super(...arguments),this['_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 _0x1c440b=this['editor'];_0x1c440b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x167fdc=>{const _0x58d619=_0x1c440b['commands']['get']('uploadcareImageEdit'),_0x553e6d=new _0x2a87d6(_0x167fdc),t=_0x167fdc['t'];return _0x553e6d['set']({'icon':_0x528ebc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x553e6d['bind']('isEnabled')['to'](_0x58d619),_0x553e6d['bind']('isOn')['to'](_0x58d619,'isActive'),this['listenTo'](_0x553e6d,'execute',()=>{_0x1c440b['execute']('uploadcareImageEdit'),_0x1c440b['editing']['view']['focus']();}),_0x553e6d;}),this['_initConfig']();}['_initConfig'](){const _0x57940e=_0x2a48e8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x57940e),this['listenTo'](this['editor'],'destroy',()=>{_0x57940e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39ea7e=_0x3305;(function(_0x4cdaa9,_0x3c92b1){const _0x57fe47=_0x3305,_0x51a134=_0x4cdaa9();while(!![]){try{const _0x5d2237=-parseInt(_0x57fe47(0x19f))/0x1*(-parseInt(_0x57fe47(0x1b0))/0x2)+parseInt(_0x57fe47(0x1ae))/0x3+parseInt(_0x57fe47(0x1a2))/0x4*(parseInt(_0x57fe47(0x1b2))/0x5)+parseInt(_0x57fe47(0x1af))/0x6+parseInt(_0x57fe47(0x1a7))/0x7*(parseInt(_0x57fe47(0x1a4))/0x8)+parseInt(_0x57fe47(0x1aa))/0x9+-parseInt(_0x57fe47(0x1b3))/0xa;if(_0x5d2237===_0x3c92b1)break;else _0x51a134['push'](_0x51a134['shift']());}catch(_0xcf94c){_0x51a134['push'](_0x51a134['shift']());}}}(_0x29b5,0x62a02));import{Command as _0x33d793}from'ckeditor5/src/core.js';export default class O extends _0x33d793{[_0x39ea7e(0x1b4)](){const _0x22aea0=_0x39ea7e,_0x4c789e=this[_0x22aea0(0x19d)][_0x22aea0(0x1a8)][_0x22aea0(0x1a9)][_0x22aea0(0x19c)][_0x22aea0(0x1ab)]();this[_0x22aea0(0x1a3)]=Boolean(_0x4c789e&&(_0x4c789e['is'](_0x22aea0(0x1a6),_0x22aea0(0x1ac))||_0x4c789e['is'](_0x22aea0(0x1a6),_0x22aea0(0x1ad))));}[_0x39ea7e(0x1a0)](_0x19c7dc){const _0xd0e9ae=_0x39ea7e,_0x1e721b=this[_0xd0e9ae(0x19d)][_0xd0e9ae(0x1a8)][_0xd0e9ae(0x1a9)][_0xd0e9ae(0x19c)][_0xd0e9ae(0x1ab)]();this[_0xd0e9ae(0x19d)][_0xd0e9ae(0x1a8)][_0xd0e9ae(0x19b)](_0x4a2c9e=>{const _0x11cd65=_0xd0e9ae;_0x4a2c9e[_0x11cd65(0x1a1)](_0x19c7dc,_0x1e721b),_0x4a2c9e[_0x11cd65(0x1b1)](_0x11cd65(0x1a5),_0x1e721b),_0x4a2c9e[_0x11cd65(0x1b1)](_0x11cd65(0x19e),_0x1e721b);});}}function _0x3305(_0x4bf393,_0x320d81){const _0x29b5f4=_0x29b5();return _0x3305=function(_0x3305e3,_0x1b1099){_0x3305e3=_0x3305e3-0x19b;let _0x263456=_0x29b5f4[_0x3305e3];return _0x263456;},_0x3305(_0x4bf393,_0x320d81);}function _0x29b5(){const _0x8ca94b=['24813200OUYJer','refresh','change','selection','editor','sizes','7417lBhdKR','execute','setAttributes','1652euJGDM','isEnabled','624qOfBYC','srcset','element','54299bIkIVn','model','document','954594AXjaWp','getSelectedElement','imageBlock','imageInline','1603896QSLXNp','4006044vmGZTy','136YBllTq','removeAttribute','5660mCBNkH'];_0x29b5=function(){return _0x8ca94b;};return _0x29b5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x59b8d7=_0x5c31;(function(_0xce24a9,_0x5ad396){var _0x258ea9=_0x5c31,_0x5155ed=_0xce24a9();while(!![]){try{var _0x1be031=-parseInt(_0x258ea9(0x1de))/0x1+-parseInt(_0x258ea9(0x1dc))/0x2+-parseInt(_0x258ea9(0x1d7))/0x3+parseInt(_0x258ea9(0x1d6))/0x4+-parseInt(_0x258ea9(0x1d4))/0x5*(parseInt(_0x258ea9(0x1d5))/0x6)+-parseInt(_0x258ea9(0x1d8))/0x7*(-parseInt(_0x258ea9(0x1d9))/0x8)+parseInt(_0x258ea9(0x1da))/0x9;if(_0x1be031===_0x5ad396)break;else _0x5155ed['push'](_0x5155ed['shift']());}catch(_0x20ca14){_0x5155ed['push'](_0x5155ed['shift']());}}}(_0x34cb,0xd9b5e));import{Plugin as _0xe16dea}from'ckeditor5/src/core.js';function _0x5c31(_0x1a99a3,_0x5809b6){var _0x34cbde=_0x34cb();return _0x5c31=function(_0x5c31ae,_0x4b9ffa){_0x5c31ae=_0x5c31ae-0x1d1;var _0x59ba7d=_0x34cbde[_0x5c31ae];return _0x59ba7d;},_0x5c31(_0x1a99a3,_0x5809b6);}import _0x4f7b4b from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0xdfbe0f from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0xe16dea{static get[_0x59b8d7(0x1d2)](){var _0x4f0b85=_0x59b8d7;return _0x4f0b85(0x1d3);}static get[_0x59b8d7(0x1dd)](){return[_0x4f7b4b,_0xdfbe0f];}static get[_0x59b8d7(0x1d1)](){return!0x0;}static get[_0x59b8d7(0x1db)](){return!0x0;}}function _0x34cb(){var _0x30bd3a=['UploadcareImageEdit','1325ZGuate','25080XzQRbN','5523680VuSLYC','683661SqNzbz','2513fEoSiG','1520lcUySN','37345959cLvtvf','isPremiumPlugin','3332516RMUdah','requires','1705094TPSYKK','isOfficialPlugin','pluginName'];_0x34cb=function(){return _0x30bd3a;};return _0x34cb();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fcc00=_0x3511;(function(_0x3d3da7,_0x4f5a77){const _0xd0e4f3=_0x3511,_0x2f3a30=_0x3d3da7();while(!![]){try{const _0x257006=-parseInt(_0xd0e4f3(0xcb))/0x1+parseInt(_0xd0e4f3(0xcc))/0x2+-parseInt(_0xd0e4f3(0xdc))/0x3*(parseInt(_0xd0e4f3(0xb3))/0x4)+parseInt(_0xd0e4f3(0xcd))/0x5+parseInt(_0xd0e4f3(0xd4))/0x6*(parseInt(_0xd0e4f3(0xe4))/0x7)+-parseInt(_0xd0e4f3(0xbe))/0x8+parseInt(_0xd0e4f3(0xa4))/0x9;if(_0x257006===_0x4f5a77)break;else _0x2f3a30['push'](_0x2f3a30['shift']());}catch(_0x3380f3){_0x2f3a30['push'](_0x2f3a30['shift']());}}}(_0x22cb,0xdabca));import{Plugin as _0x584740,icons as _0x3f6ba4}from'ckeditor5/src/core.js';import{ButtonView as _0x16b2d7,MenuBarMenuListItemButtonView as _0x1b3e87}from'ckeditor5/src/ui.js';import _0x599828 from'../theme/icons/dropbox.svg';import _0x145275 from'../theme/icons/facebook.svg';import _0x32d3f9 from'../theme/icons/google-drive.svg';import _0x1bfaa6 from'../theme/icons/google-photos.svg';import _0x2b4492 from'../theme/icons/link.svg';import _0x1826bf from'../theme/icons/onedrive.svg';function _0x3511(_0x397413,_0x498f05){const _0x22cbb2=_0x22cb();return _0x3511=function(_0x3511b6,_0xf1fbf){_0x3511b6=_0x3511b6-0x9f;let _0x14cd5d=_0x22cbb2[_0x3511b6];return _0x14cd5d;},_0x3511(_0x397413,_0x498f05);}import{UploadcareSource as _0x1d8570}from'./uploadcareconfig.js';import{getTranslation as _0x36b965}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x584740{static get[_0x2fcc00(0xa6)](){const _0x13ed0a=_0x2fcc00;return _0x13ed0a(0xaf);}static get[_0x2fcc00(0xda)](){return!0x0;}static get[_0x2fcc00(0xd9)](){return!0x0;}[_0x2fcc00(0xb6)](){const _0x43be02=_0x2fcc00;this[_0x43be02(0xab)]=this[_0x43be02(0xa9)][_0x43be02(0xb7)][_0x43be02(0xe9)](_0x43be02(0xab));const _0x55a520=this[_0x43be02(0xa9)];this[_0x43be02(0xe6)]=setInterval(()=>{const _0x32e2d2=_0x43be02;let _0x5860fd;for(const _0x271900 in _0x55a520){const _0x1c2084=_0x271900,_0x5b3558=_0x55a520[_0x1c2084];if(_0x32e2d2(0xca)==_0x5b3558||_0x32e2d2(0xec)==_0x5b3558||_0x32e2d2(0xa5)==_0x5b3558||_0x32e2d2(0xb8)==_0x5b3558||_0x32e2d2(0xb1)==_0x5b3558||_0x32e2d2(0xe1)==_0x5b3558||_0x32e2d2(0xdd)==_0x5b3558||_0x32e2d2(0xcf)==_0x5b3558){delete _0x55a520[_0x1c2084],_0x5860fd=_0x5b3558,clearInterval(this[_0x32e2d2(0xe6)]),this[_0x32e2d2(0xe6)]=void 0x0;break;}}_0x32e2d2(0xec)==_0x5860fd&&_0x55a520[_0x32e2d2(0xc7)](_0x32e2d2(0xa0)),_0x32e2d2(0xa5)==_0x5860fd&&_0x55a520[_0x32e2d2(0xc7)](_0x32e2d2(0xd0)),_0x32e2d2(0xb8)==_0x5860fd&&_0x55a520[_0x32e2d2(0xc7)](_0x32e2d2(0xbd)),_0x32e2d2(0xb1)==_0x5860fd&&_0x55a520[_0x32e2d2(0xc7)](_0x32e2d2(0xc1),_0x32e2d2(0xc5)),_0x32e2d2(0xe1)==_0x5860fd&&_0x55a520[_0x32e2d2(0xc7)](_0x32e2d2(0xd2)),_0x32e2d2(0xdd)==_0x5860fd&&_0x55a520[_0x32e2d2(0xc7)](_0x32e2d2(0xea)),_0x32e2d2(0xcf)==_0x5860fd&&_0x55a520[_0x32e2d2(0xc7)](_0x32e2d2(0xa8));},0x3e8);}[_0x2fcc00(0xae)](){const _0x542eb4=_0x2fcc00,{editor:_0x3058df}=this,_0x3959dd=_0x3058df[_0x542eb4(0xee)][_0x542eb4(0xe9)](_0x542eb4(0xbf));if(!_0x3959dd)return;const _0x54dd1c=this[_0x542eb4(0xe0)](_0x3058df[_0x542eb4(0xb7)][_0x542eb4(0xe9)](_0x542eb4(0xed)))[_0x542eb4(0xad)]((_0x17ca0b,_0x410b50)=>{const _0x41c6d3=_0x542eb4,_0x2262fe=this[_0x41c6d3(0xb4)](_0x410b50[_0x41c6d3(0xa3)]);return _0x17ca0b[_0x2262fe]||(_0x17ca0b[_0x2262fe]=[]),_0x17ca0b[_0x2262fe][_0x41c6d3(0xc4)](_0x410b50),_0x17ca0b;},{});_0x3058df[_0x542eb4(0xc8)][_0x542eb4(0xb9)](_0x542eb4(0x9f))&&_0x3058df[_0x542eb4(0xee)][_0x542eb4(0xe9)](_0x542eb4(0xbf))&&Object[_0x542eb4(0xc0)](_0x54dd1c)[_0x542eb4(0xc6)](([_0xa789b5,_0x1eff2c])=>{const _0x50fb76=_0x542eb4;_0x3058df[_0x50fb76(0xc8)][_0x50fb76(0xe9)](_0x50fb76(0x9f))[_0x50fb76(0xbb)]({'name':_0xa789b5,'observable':()=>_0x3959dd,'buttonViewCreator':()=>this[_0x50fb76(0xe3)](_0x1eff2c),'formViewCreator':()=>this[_0x50fb76(0xd6)](_0x1eff2c),'menuBarButtonViewCreator':()=>this[_0x50fb76(0xe8)](_0x1eff2c),'override':_0x50fb76(0xb0)!==_0xa789b5});});}[_0x2fcc00(0xd3)](){const _0x1c29ce=_0x2fcc00;super[_0x1c29ce(0xd3)](),this[_0x1c29ce(0xe6)]&&clearInterval(this[_0x1c29ce(0xe6)]);}[_0x2fcc00(0xe0)](_0x1fd20c){const _0x4a1acd=_0x2fcc00,{locale:_0xdd1d41}=this[_0x4a1acd(0xa9)];return _0x1fd20c[_0x4a1acd(0xd1)](_0x44c158=>{const _0xd8cb5e=_0x4a1acd,_0x7e8f72=_0x36b965(_0xdd1d41,_0x44c158,_0xd8cb5e(0xeb));switch(_0x44c158){case _0x1d8570[_0xd8cb5e(0xa2)]:return{'icon':_0x3f6ba4[_0xd8cb5e(0xc9)],'type':_0x1d8570[_0xd8cb5e(0xa2)],..._0x7e8f72};case _0x1d8570[_0xd8cb5e(0xd8)]:return{'icon':_0x2b4492,'type':_0x1d8570[_0xd8cb5e(0xd8)],..._0x7e8f72};case _0x1d8570[_0xd8cb5e(0xd7)]:return{'icon':_0x599828,'type':_0x1d8570[_0xd8cb5e(0xd7)],..._0x7e8f72};case _0x1d8570[_0xd8cb5e(0xbc)]:return{'icon':_0x145275,'type':_0x1d8570[_0xd8cb5e(0xbc)],..._0x7e8f72};case _0x1d8570[_0xd8cb5e(0xd5)]:return{'icon':_0x32d3f9,'type':_0x1d8570[_0xd8cb5e(0xd5)],..._0x7e8f72};case _0x1d8570[_0xd8cb5e(0xba)]:return{'icon':_0x1bfaa6,'type':_0x1d8570[_0xd8cb5e(0xba)],..._0x7e8f72};case _0x1d8570[_0xd8cb5e(0xe5)]:return{'icon':_0x1826bf,'type':_0x1d8570[_0xd8cb5e(0xe5)],..._0x7e8f72};}});}[_0x2fcc00(0xb4)](_0xe19ddc){const _0xb778c=_0x2fcc00;switch(_0xe19ddc){case _0x1d8570[_0xb778c(0xa2)]:return _0xb778c(0xa7);case _0x1d8570[_0xb778c(0xd8)]:return _0xb778c(0xde);default:return _0xb778c(0xb0);}}[_0x2fcc00(0xaa)](_0x1aa824,_0x4c71c7){const _0x2f71a4=_0x2fcc00,_0x530ec0=this[_0x2f71a4(0xa9)],_0x26d003=new _0x1aa824(_0x530ec0[_0x2f71a4(0xac)]),_0x3ecae9=_0x530ec0[_0x2f71a4(0xee)][_0x2f71a4(0xe9)](_0x2f71a4(0xbf));return _0x26d003[_0x2f71a4(0xe2)](_0x2f71a4(0xc2))['to'](_0x3ecae9),_0x26d003['on'](_0x2f71a4(0xb5),()=>{const _0x4c42d2=_0x2f71a4;_0x3ecae9[_0x4c42d2(0xb5)](_0x4c71c7);}),_0x26d003;}[_0x2fcc00(0xe3)](_0x4ec5a0){const _0x2cf683=_0x2fcc00,{locale:_0x22872a}=this[_0x2cf683(0xa9)],_0x4d8411=this[_0x2cf683(0xa9)][_0x2cf683(0xc8)][_0x2cf683(0xe9)](_0x2cf683(0x9f)),_0x1419c0=_0x4ec5a0[0x0],_0x4029b8=this[_0x2cf683(0xaa)](_0x16b2d7,_0x1419c0[_0x2cf683(0xa3)]);return _0x4029b8[_0x2cf683(0xdf)]=_0x1419c0[_0x2cf683(0xdf)],_0x4029b8[_0x2cf683(0xe2)](_0x2cf683(0xb2))['to'](_0x4d8411,_0x2cf683(0xa1),_0x774db=>_0x36b965(_0x22872a,_0x1419c0[_0x2cf683(0xa3)],_0x774db?_0x2cf683(0xce):_0x2cf683(0xeb))[_0x2cf683(0xe7)]),_0x4029b8[_0x2cf683(0xc3)]=!0x0,_0x4029b8;}[_0x2fcc00(0xd6)](_0x525402){const _0x426427=_0x2fcc00,{locale:_0x179f2c}=this[_0x426427(0xa9)],_0xf2c57d=this[_0x426427(0xa9)][_0x426427(0xc8)][_0x426427(0xe9)](_0x426427(0x9f));return _0x525402[_0x426427(0xd1)](_0x33c8c4=>{const _0x2f2d12=_0x426427,_0x52d452=this[_0x2f2d12(0xaa)](_0x16b2d7,_0x33c8c4[_0x2f2d12(0xa3)]);return _0x52d452[_0x2f2d12(0xdb)]=!0x0,_0x52d452[_0x2f2d12(0xdf)]=_0x33c8c4[_0x2f2d12(0xdf)],_0x52d452[_0x2f2d12(0xe2)](_0x2f2d12(0xb2))['to'](_0xf2c57d,_0x2f2d12(0xa1),_0x225799=>_0x36b965(_0x179f2c,_0x33c8c4[_0x2f2d12(0xa3)],_0x225799?_0x2f2d12(0xce):_0x2f2d12(0xeb))[_0x2f2d12(0xe7)]),_0x52d452;});}[_0x2fcc00(0xe8)](_0x2d4a9a){const _0x521ee6=_0x2fcc00;return _0x2d4a9a[_0x521ee6(0xd1)](_0x52f840=>{const _0x2c2ebf=_0x521ee6,_0x3dab71=this[_0x2c2ebf(0xaa)](_0x1b3e87,_0x52f840[_0x2c2ebf(0xa3)]);return _0x3dab71[_0x2c2ebf(0xdf)]=_0x52f840[_0x2c2ebf(0xdf)],_0x3dab71[_0x2c2ebf(0xb2)]=_0x52f840[_0x2c2ebf(0xef)],_0x3dab71;});}}function _0x22cb(){const _0x332329=['15654DnYeaM','GDrive','_createDropdownButtons','Dropbox','URL','isPremiumPlugin','isOfficialPlugin','withText','1221fKVgDq','uploadcareLicenseKeyTrialLimit','url','icon','_normalizeConfigSourceList','uploadcareLicenseKeyEvaluationLimit','bind','_createToolbarButton','182lilBmc','OneDrive','_licenseKeyCheckInterval','text','_createMenuBarButtons','get','trialLimit','Insert','uploadcareLicenseKeyInvalid','uploadcare.uploader.sourceList','commands','shortText','ImageInsertUI','invalid','isImageSelected','Local','type','5417577rzacvF','uploadcareLicenseKeyExpired','pluginName','upload','usageLimit','editor','_createButton','licenseKey','locale','reduce','afterInit','UploadcareUI','assetManager','uploadcareLicenseKeyNotAllowed','label','128KoBoys','_getIntegrationKey','execute','init','config','uploadcareLicenseKeyDomainLimit','has','GPhotos','registerIntegration','Facebook','domainLimit','9146840fdLJsp','uploadcare','entries','featureNotAllowed','isEnabled','tooltip','push','Uploadcare','forEach','_showLicenseError','plugins','imageUpload','uploadcareLicenseKeyValid','447950gGhjXa','438712LeOwMv','8055660lqAKcr','Replace','uploadcareLicenseKeyUsageLimit','expired','map','evaluationLimit','destroy'];_0x22cb=function(){return _0x332329;};return _0x22cb();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3c6d95}from'ckeditor5/src/core.js';import{FileRepository as _0x558c9f}from'ckeditor5/src/upload.js';import _0x5e460f from'./uploadcareediting.js';import _0x4498d5 from'./utils/uploadutils.js';import{getImageUrls as _0x535c33}from'./utils/editingutils.js';export default class f extends _0x3c6d95{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x558c9f,_0x5e460f];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2d88ee=this['editor'];if(!!!_0x2d88ee['config']['get']('uploadcare'))return;_0x2d88ee['plugins']['get'](_0x558c9f)['createUploadAdapter']=_0x3fd4f6=>new E(_0x3fd4f6,_0x2d88ee),_0x2d88ee['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5f0c83,{imageElement:_0x6ff138,data:_0xcb5d2f})=>{_0x2d88ee['model']['change'](_0xca0a85=>{_0xca0a85['setAttribute']('uploadcareImageId',_0xcb5d2f['uploadcareImageId'],_0x6ff138);});});}}class E{constructor(_0x1cfe21,_0x173d59){this['loader']=_0x1cfe21,this['editor']=_0x173d59,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5d4500=this['editor']['config']['get']('uploadcare.pubkey'),_0x3c7dab=await this['loader']['file'];return _0x4498d5['upload']({'file':_0x3c7dab,'publicKey':_0x5d4500,'signal':this['controller']['signal'],'onProgress':_0x1d8a31=>{_0x1d8a31&&_0x1d8a31['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1d8a31['value']);}})['then'](async _0x77410=>{const {imageFallbackUrl:_0x20d72e,imageSources:_0x3a30d8}=_0x535c33(_0x77410['cdnUrl'],_0x77410['imageInfo']['width']);return{'uploadcareImageId':_0x77410['uuid'],'default':_0x20d72e,'sources':_0x3a30d8};})['catch'](()=>{const _0x54c5fc=t('Cannot\x20upload\x20file:')+('\x20'+_0x3c7dab['name']+'.');return Promise['reject'](_0x54c5fc);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5ddfe1}from'../uploadcareconfig.js';export function getTranslation(_0x5887bf,_0x409a6f,_0x84df8d){const t=_0x5887bf['t'],_0x48de89=_0x5887bf['t'];switch(_0x409a6f){case _0x5ddfe1['Local']:return{'text':_0x48de89('Insert'===_0x84df8d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x48de89('From\x20computer')};case _0x5ddfe1['URL']:return{'text':'Insert'===_0x84df8d?_0x48de89('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x48de89('Via\x20URL')};case _0x5ddfe1['Dropbox']:return{'text':t('Insert'===_0x84df8d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5ddfe1['Facebook']:return{'text':t('Insert'===_0x84df8d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5ddfe1['GDrive']:return{'text':t('Insert'===_0x84df8d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5ddfe1['GPhotos']:return{'text':t('Insert'===_0x84df8d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5ddfe1['OneDrive']:return{'text':t('Insert'===_0x84df8d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x409a6f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5441ce=_0x5dc7;(function(_0x2049bf,_0x5b6a8f){var _0x5c2eb7=_0x5dc7,_0x21e251=_0x2049bf();while(!![]){try{var _0x4aff06=parseInt(_0x5c2eb7(0x140))/0x1*(parseInt(_0x5c2eb7(0x13d))/0x2)+-parseInt(_0x5c2eb7(0x131))/0x3*(parseInt(_0x5c2eb7(0x137))/0x4)+parseInt(_0x5c2eb7(0x133))/0x5*(parseInt(_0x5c2eb7(0x138))/0x6)+parseInt(_0x5c2eb7(0x13b))/0x7*(parseInt(_0x5c2eb7(0x132))/0x8)+parseInt(_0x5c2eb7(0x130))/0x9+-parseInt(_0x5c2eb7(0x13f))/0xa+-parseInt(_0x5c2eb7(0x13e))/0xb;if(_0x4aff06===_0x5b6a8f)break;else _0x21e251['push'](_0x21e251['shift']());}catch(_0x532253){_0x21e251['push'](_0x21e251['shift']());}}}(_0x3dbb,0xc6970));import{FocusTracker as _0x5c9c7e}from'ckeditor5/src/utils.js';import{View as _0x48c40c,FocusCycler as _0x40b4e2}from'ckeditor5/src/ui.js';function _0x3dbb(){var _0xcd91f3=['13880340fMAdKp','654KDntAa','251216MkpxWA','69225sxtErY','true','fire','createCollection','864ThOBdm','66wJIsau','bindTemplate','div','42CqwDLQ','focusTracker','102380blovTm','6736785hdlLMl','5635900OeUqQK','3jbKWhm','forwardCycle','focusCycler','getFocusableElement'];_0x3dbb=function(){return _0xcd91f3;};return _0x3dbb();}function _0x5dc7(_0x197e21,_0xe68343){var _0x3dbbeb=_0x3dbb();return _0x5dc7=function(_0x5dc76b,_0x24bb11){_0x5dc76b=_0x5dc76b-0x130;var _0x3d5c62=_0x3dbbeb[_0x5dc76b];return _0x3d5c62;},_0x5dc7(_0x197e21,_0xe68343);}import'../../theme/uploadcare-form.css';export default class q extends _0x48c40c{constructor(_0x339b43){var _0x3598fb=_0x5dc7;super(_0x339b43),this[_0x3598fb(0x13c)]=new _0x5c9c7e(),this[_0x3598fb(0x142)]=new _0x40b4e2({'focusables':this[_0x3598fb(0x136)](),'focusTracker':this[_0x3598fb(0x13c)]});}[_0x5441ce(0x143)](){var _0x565df4=_0x5441ce;return{'tag':_0x565df4(0x13a),'attributes':{'aria-hidden':_0x565df4(0x134),'tabindex':'0'},'on':{'focus':this[_0x565df4(0x139)]['to'](()=>{var _0x591598=_0x565df4;this[_0x591598(0x142)][_0x591598(0x135)](_0x591598(0x141));})}};}}
|