@ckeditor/ckeditor5-uploadcare 44.2.0-alpha.13 → 44.2.0-alpha.15
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
|
-
function _0x4338(){const _0x18d175=['schema','replaceImageSource','execute','document','querySelector','uploader','upcast','view','imageBlock','uploadcareImageReplace','conversion','_initImageProcessingIndicator','body','editing','_initSchema','input[uploadcare-file-input]','23119833ukuzex','data-uc-image-id','contentLanguage','removeAttribute','closeMax','isPremiumPlugin','config','uploadcare','for','selection','afterInit','downcast','_initConfig','configElement','requires','iconHrefResolver','42PieeRz','remove','10891936BmOVQT','uploadcare.pubkey','get','attributeToAttribute','destroy','9VNGJSH','uploadcareImageId','init','45ZHyDcR','getSelectedElement','12007130amBPHl','elementToAttribute','_ctxElement','_initConversion','107028nUKVyh','isRegistered','add','pluginName','_configElement','uc-upload-ctx-provider','editor','getAttribute','insertImage','locale','map','extend','\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','ctxElement','true','132057wAODeu','render','once','PictureEditing','model','#uc-icon-arrow-down','uc-config','UploadcareEditing','uploadcare.uploader','673822uaxrwt','commands','href','imageInline','409073lWtRlr','_initCtx','fromCharCode','isOfficialPlugin','4eOmefn','join','listenTo','cleanupImage','appendChild'];_0x4338=function(){return _0x18d175;};return _0x4338();}function _0x3897(_0x3f336b,_0x35d688){const _0x4338da=_0x4338();return _0x3897=function(_0x38975b,_0x78bb62){_0x38975b=_0x38975b-0x180;let _0x370082=_0x4338da[_0x38975b];return _0x370082;},_0x3897(_0x3f336b,_0x35d688);}const _0x131120=_0x3897;(function(_0x10d4b5,_0xcbaf3b){const _0x56d889=_0x3897,_0x322f4b=_0x10d4b5();while(!![]){try{const _0x3aff4d=parseInt(_0x56d889(0x194))/0x1*(-parseInt(_0x56d889(0x19c))/0x2)+-parseInt(_0x56d889(0x18b))/0x3+parseInt(_0x56d889(0x1d1))/0x4*(-parseInt(_0x56d889(0x1cb))/0x5)+-parseInt(_0x56d889(0x1c1))/0x6*(-parseInt(_0x56d889(0x198))/0x7)+-parseInt(_0x56d889(0x1c3))/0x8+parseInt(_0x56d889(0x1c8))/0x9*(parseInt(_0x56d889(0x1cd))/0xa)+parseInt(_0x56d889(0x1b1))/0xb;if(_0x3aff4d===_0xcbaf3b)break;else _0x322f4b['push'](_0x322f4b['shift']());}catch(_0x30560f){_0x322f4b['push'](_0x322f4b['shift']());}}}(_0x4338,0xaf335));import{Plugin as _0x20312e}from'ckeditor5/src/core.js';import{Dialog as _0x492e41}from'ckeditor5/src/ui.js';import{createElement as _0x14d090,global as _0x13ed35,uid as _0x446efc}from'ckeditor5/src/utils.js';import _0x57acfb from'./uploadcarecommand.js';import _0x3417bd from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1b4b0c}from'./utils/editingutils.js';export default class i extends _0x20312e{constructor(){const _0x5edbb7=_0x3897;super(...arguments),this[_0x5edbb7(0x180)]=null,this[_0x5edbb7(0x1cf)]=null;}static get[_0x131120(0x1d4)](){const _0x435fff=_0x131120;return _0x435fff(0x192);}static get[_0x131120(0x1bf)](){const _0x561b80=_0x131120;return[_0x561b80(0x18e),_0x3417bd,_0x492e41];}static get[_0x131120(0x19b)](){return!0x0;}static get[_0x131120(0x1b6)](){return!0x0;}get[_0x131120(0x1be)](){const _0x1b97d0=_0x131120;return this[_0x1b97d0(0x180)];}get[_0x131120(0x189)](){const _0x578734=_0x131120;return this[_0x578734(0x1cf)];}[_0x131120(0x1ca)](){const _0x5b5886=_0x131120,_0x4d6b3e=this[_0x5b5886(0x182)];_0x4d6b3e[_0x5b5886(0x195)][_0x5b5886(0x1d3)](_0x5b5886(0x1b8),new _0x57acfb(_0x4d6b3e));}[_0x131120(0x1bb)](){const _0x407787=_0x131120;this[_0x407787(0x1af)](),this[_0x407787(0x1d0)](),this[_0x407787(0x1bd)](),this[_0x407787(0x199)](),this[_0x407787(0x1ac)](),this[_0x407787(0x19e)](this[_0x407787(0x182)],_0x407787(0x1c7),()=>{const _0x1a8b02=_0x407787;this[_0x1a8b02(0x180)]&&(this[_0x1a8b02(0x180)][_0x1a8b02(0x1c2)](),this[_0x1a8b02(0x180)]=null),this[_0x1a8b02(0x1cf)]&&(this[_0x1a8b02(0x1cf)][_0x1a8b02(0x1c2)](),this[_0x1a8b02(0x1cf)]=null);const _0x3984b6=_0x13ed35[_0x1a8b02(0x1a4)][_0x1a8b02(0x1a5)](_0x1a8b02(0x1b0));_0x3984b6&&_0x3984b6[_0x1a8b02(0x1c2)]();}),async function(_0x336b24){const _0x2f4d16=_0x4b5ffc([0x34,0x43,0x45,0x72,0x6b,0x39,0x64,0x4e,0x6d,0x37,0x51,0x7a,0x67,0x68,0x36,0x44,0x6e,0x4f,0x61,0x57,0x4b,0x5a,0x33,0x4c,0x69,0x76,0x71,0x4d,0x6c,0x50,0x59,0x73,0x77,0x58,0x47,0x79,0x56,0x66,0x30,0x46,0x75,0x4a,0x41,0x62,0x70,0x53,0x55,0x49,0x42,0x32,0x6a,0x63,0x38,0x35,0x65,0x74,0x6f,0x48,0x78,0x52,0x54,0x31]),_0x4cacda=0x57b23d88,_0x234349=0x57b56288^_0x4cacda,_0x4922a5=window[_0x4b5ffc([0x44,0x61,0x74,0x65])][_0x4b5ffc([0x6e,0x6f,0x77])](),_0x202286=_0x336b24[_0x4b5ffc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x986d86=new window[(_0x4b5ffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20ae91=>{_0x202286[_0x4b5ffc([0x6f,0x6e,0x63,0x65])](_0x4b5ffc([0x72,0x65,0x61,0x64,0x79]),_0x20ae91);}),_0xe9daeb={[_0x4b5ffc([0x6b,0x74,0x79])]:_0x4b5ffc([0x45,0x43]),[_0x4b5ffc([0x75,0x73,0x65])]:_0x4b5ffc([0x73,0x69,0x67]),[_0x4b5ffc([0x63,0x72,0x76])]:_0x4b5ffc([0x50,0x2d,0x32,0x35,0x36]),[_0x4b5ffc([0x78])]:_0x4b5ffc([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]),[_0x4b5ffc([0x79])]:_0x4b5ffc([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]),[_0x4b5ffc([0x61,0x6c,0x67])]:_0x4b5ffc([0x45,0x53,0x32,0x35,0x36])},_0x456e18=_0x202286[_0x4b5ffc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b5ffc([0x67,0x65,0x74])](_0x4b5ffc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24a8c9(){let _0x31146b,_0x1c3e49=null,_0x3a959f=null;try{if(_0x456e18==_0x4b5ffc([0x47,0x50,0x4c]))return _0x4b5ffc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31146b=_0x282d2e(),!_0x31146b)return _0x4b5ffc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31146b[_0x4b5ffc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a959f=_0x111bc9(_0x31146b[_0x4b5ffc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31146b[_0x4b5ffc([0x6a,0x74,0x69])])),await _0x4c52b5()?_0x598a3f()?_0x3e3940()?_0x4b5ffc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x478930()?(_0x31146b[_0x4b5ffc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b5ffc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c3e49=_0xd5ffdd(_0x4b5ffc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x31146b[_0x4b5ffc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b5ffc([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c3e49=_0xd5ffdd(_0x4b5ffc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xacf893()):_0x4b5ffc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b5ffc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b5ffc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x306a0c){return _0x4b5ffc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e3940(){const _0x4ee625=[_0x4b5ffc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b5ffc([0x74,0x72,0x69,0x61,0x6c])][_0x4b5ffc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31146b[_0x4b5ffc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4922a5/0x3e8:0xe10*_0x234349;return _0x31146b[_0x4b5ffc([0x65,0x78,0x70])]<_0x4ee625;}function _0x598a3f(){const _0x2411f3=_0x31146b[_0x4b5ffc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2411f3&&(!!_0x2411f3[_0x4b5ffc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ffc([0x2a]))||!!_0x2411f3[_0x4b5ffc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ffc([0x55,0x50,0x4c,0x43])));}function _0x478930(){const _0x2fd084=_0x3897,_0x3950de=_0x31146b[_0x4b5ffc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3950de||0x0==_0x3950de[_0x4b5ffc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14572e}=new URL(window[_0x4b5ffc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2fd084(0x196)]);if(_0x3950de[_0x4b5ffc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14572e))return!0x0;const _0x2b879a=_0x14572e[_0x4b5ffc([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ffc([0x2e]));return _0x3950de[_0x4b5ffc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c377c=>_0x3c377c[_0x4b5ffc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b5ffc([0x2a])))[_0x4b5ffc([0x6d,0x61,0x70])](_0x31392c=>_0x31392c[_0x4b5ffc([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ffc([0x2e])))[_0x4b5ffc([0x73,0x6f,0x6d,0x65])](_0x418899=>_0x2b879a[_0x4b5ffc([0x65,0x76,0x65,0x72,0x79])]((_0x3f2e9b,_0x177fc9)=>_0x418899[_0x177fc9]===_0x3f2e9b||_0x418899[_0x177fc9]===_0x4b5ffc([0x2a])));}function _0xacf893(){return _0x1c3e49&&_0x3a959f?new window[(_0x4b5ffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d58be,_0x5ade4a)=>{_0x1c3e49[_0x4b5ffc([0x74,0x68,0x65,0x6e])](_0x1d58be,_0x5ade4a),_0x3a959f[_0x4b5ffc([0x74,0x68,0x65,0x6e])](_0x1414cf=>{_0x1414cf!=_0x4b5ffc([0x56,0x61,0x6c,0x69,0x64])&&_0x1d58be(_0x1414cf);},_0x5ade4a);}):_0x1c3e49||_0x3a959f||_0x4b5ffc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x111bc9(_0x517de0,_0x189f17){return new window[(_0x4b5ffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x180014=>{if(_0x3d4216())return _0x180014(_0x4b5ffc([0x56,0x61,0x6c,0x69,0x64]));_0x36535c(),_0x202286[_0x4b5ffc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b5ffc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e8f19=!0x1;const _0x3eacb9=_0x446efc();function _0x5a445a(_0x5e1237){return!!_0x5e1237&&(typeof _0x5e1237===_0x4b5ffc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e1237===_0x4b5ffc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e1237[_0x4b5ffc([0x74,0x68,0x65,0x6e])]===_0x4b5ffc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e1237[_0x4b5ffc([0x63,0x61,0x74,0x63,0x68])]===_0x4b5ffc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x424d9a(_0x285d59){_0x56f607(_0x285d59)[_0x4b5ffc([0x74,0x68,0x65,0x6e])](_0x4c99e2=>{if(!_0x4c99e2||_0x4c99e2[_0x4b5ffc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b5ffc([0x6f,0x6b]))return _0x4b5ffc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5bcaac(_0x5bfc88(_0x3eacb9+_0x189f17))!=_0x4c99e2[_0x4b5ffc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b5ffc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b5ffc([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b5ffc([0x74,0x68,0x65,0x6e])](_0x5f3156=>(_0x20a3e2(),_0x5f3156),()=>{const _0x33ef64=_0x44f8e9();return null==_0x33ef64?(_0x20a3e2(),_0x4b5ffc([0x56,0x61,0x6c,0x69,0x64])):_0x4b5ffc(_0x4922a5-_0x33ef64>(0x73beb988^_0x4cacda)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b5ffc([0x74,0x68,0x65,0x6e])](_0x180014)[_0x4b5ffc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x180014(_0x4b5ffc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f4397=0x5784d308^_0x4cacda;function _0x20a3e2(){const _0x4b7b7c=_0x4b5ffc([0x6c,0x6c,0x63,0x74,0x2d])+_0x5bcaac(_0x5bfc88(_0x517de0)),_0x1aede1=_0x4d01de(_0x5bcaac(window[_0x4b5ffc([0x4d,0x61,0x74,0x68])][_0x4b5ffc([0x63,0x65,0x69,0x6c])](_0x4922a5/_0x3f4397)));window[_0x4b5ffc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b5ffc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b7b7c,_0x1aede1);}function _0x44f8e9(){const _0x55b990=_0x4b5ffc([0x6c,0x6c,0x63,0x74,0x2d])+_0x5bcaac(_0x5bfc88(_0x517de0)),_0x23800d=window[_0x4b5ffc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b5ffc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55b990);return _0x23800d?window[_0x4b5ffc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d01de(_0x23800d),0x10)*_0x3f4397:null;}function _0x56f607(_0x2f7c1c){return new window[(_0x4b5ffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x366b67,_0x5b5c7b)=>{_0x2f7c1c[_0x4b5ffc([0x74,0x68,0x65,0x6e])](_0x366b67,_0x5b5c7b),window[_0x4b5ffc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b5c7b,0x57b3e948^_0x4cacda);});}}_0x202286[_0x4b5ffc([0x6f,0x6e])](_0x4b5ffc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x139d67,_0x5e0425)=>{if(_0x5e0425[0x0]!=_0x517de0)return _0x180014(_0x4b5ffc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e0425[0x1]={..._0x5e0425[0x1],[_0x4b5ffc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3eacb9};},{[_0x4b5ffc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b5ffc([0x68,0x69,0x67,0x68])}),_0x202286[_0x4b5ffc([0x6f,0x6e])](_0x4b5ffc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5235c5=>{_0x5a445a(_0x5235c5[_0x4b5ffc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e8f19=!0x0,_0x424d9a(_0x5235c5[_0x4b5ffc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b5ffc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b5ffc([0x6c,0x6f,0x77])}),_0x986d86[_0x4b5ffc([0x74,0x68,0x65,0x6e])](()=>{_0x4e8f19||_0x180014(_0x4b5ffc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d4216(){return _0x202286[_0x4b5ffc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b5ffc([0x76,0x69,0x65,0x77])][_0x4b5ffc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b5ffc([0x61,0x75,0x74,0x6f]);}function _0x36535c(){_0x202286[_0x4b5ffc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b5ffc([0x76,0x69,0x65,0x77])][_0x4b5ffc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b5ffc([0x61,0x75,0x74,0x6f]);}}function _0xd5ffdd(_0x2875fb){const _0xeba43b=[new window[(_0x4b5ffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a7ae4=>setTimeout(_0x3a7ae4,0x57bb0344^_0x4cacda)),_0x986d86[_0x4b5ffc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b5ffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a93b4=>{let _0xb7ff5e=0x0;_0x202286[_0x4b5ffc([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b5ffc([0x6f,0x6e])](_0x4b5ffc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xae90aa,_0x52044f)=>{_0x52044f[0x0][_0x4b5ffc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb7ff5e++,_0xb7ff5e==(0x57b23c70^_0x4cacda)&&(_0x2a93b4(),_0xae90aa[_0x4b5ffc([0x6f,0x66,0x66])]());});}))];return window[_0x4b5ffc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b5ffc([0x72,0x61,0x63,0x65])](_0xeba43b)[_0x4b5ffc([0x74,0x68,0x65,0x6e])](()=>_0x2875fb);}async function _0x249473(){await _0x986d86,_0x202286[_0x4b5ffc([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b5ffc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4a0c81,_0x202286[_0x4b5ffc([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b5ffc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4a0c81,_0x202286[_0x4b5ffc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b5ffc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x369a75(_0x509373){const _0xfceaa3=_0x144c9b();_0x202286[_0xfceaa3]=_0x4b5ffc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x509373,_0x509373!=_0x4b5ffc([0x56,0x61,0x6c,0x69,0x64])&&_0x249473();}function _0x144c9b(){const _0x4cd228=window[_0x4b5ffc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b5ffc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b5ffc([0x6e,0x6f,0x77])]())[_0x4b5ffc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b5ffc([0x2e]),'');let _0x4de6c2=_0x4b5ffc([0x43]);for(let _0x41b15f=0x0;_0x41b15f<_0x4cd228[_0x4b5ffc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41b15f+=0x2){let _0x4c6d32=window[_0x4b5ffc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd228[_0x4b5ffc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41b15f,_0x41b15f+0x2));_0x4c6d32>=_0x2f4d16[_0x4b5ffc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c6d32-=_0x2f4d16[_0x4b5ffc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4de6c2+=_0x2f4d16[_0x4c6d32];}return _0x4de6c2;}function _0x282d2e(){const _0x498958=_0x456e18[_0x4b5ffc([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ffc([0x2e]));if(0x3!=_0x498958[_0x4b5ffc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xfb2b35(_0x498958[0x1]);function _0xfb2b35(_0x35a729){const _0x1f9b54=_0x234f65(_0x35a729);return _0x1f9b54&&_0x5208e1()?_0x1f9b54:null;function _0x5208e1(){const _0x3af135=_0x1f9b54[_0x4b5ffc([0x6a,0x74,0x69])],_0xc1fc2e=window[_0x4b5ffc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3af135[_0x4b5ffc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3af135[_0x4b5ffc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18577b={..._0x1f9b54,[_0x4b5ffc([0x6a,0x74,0x69])]:_0x3af135[_0x4b5ffc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3af135[_0x4b5ffc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18577b[_0x4b5ffc([0x76,0x63])],_0x5bfc88(_0x18577b)==_0xc1fc2e;}}}async function _0x4c52b5(){let _0x2bd17d=!0x0;try{const _0x1ac7d2=_0x456e18[_0x4b5ffc([0x73,0x70,0x6c,0x69,0x74])](_0x4b5ffc([0x2e])),[_0x4e245e,_0x66a308,_0x5dc980]=_0x1ac7d2;return _0x382b9e(_0x4e245e),await _0x2fbe18(_0x4e245e,_0x66a308,_0x5dc980),_0x2bd17d;}catch(_0xe669cd){return!0x1;}function _0x382b9e(_0x4dc2e1){const _0x22f893=_0x234f65(_0x4dc2e1);_0x22f893&&_0x22f893[_0x4b5ffc([0x61,0x6c,0x67])]==_0x4b5ffc([0x45,0x53,0x32,0x35,0x36])||(_0x2bd17d=!0x1);}async function _0x2fbe18(_0x246521,_0x3e80e9,_0x5443c7){const _0x3e09ca=window[_0x4b5ffc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b5ffc([0x66,0x72,0x6f,0x6d])](_0x250764(_0x5443c7),_0x23695a=>_0x23695a[_0x4b5ffc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3cb426=new window[(_0x4b5ffc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b5ffc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x246521+_0x4b5ffc([0x2e])+_0x3e80e9),_0x3db0c3=window[_0x4b5ffc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b5ffc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3db0c3)return;const _0x47119c=await _0x3db0c3[_0x4b5ffc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b5ffc([0x6a,0x77,0x6b]),_0xe9daeb,{[_0x4b5ffc([0x6e,0x61,0x6d,0x65])]:_0x4b5ffc([0x45,0x43,0x44,0x53,0x41]),[_0x4b5ffc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b5ffc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b5ffc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3db0c3[_0x4b5ffc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b5ffc([0x6e,0x61,0x6d,0x65])]:_0x4b5ffc([0x45,0x43,0x44,0x53,0x41]),[_0x4b5ffc([0x68,0x61,0x73,0x68])]:{[_0x4b5ffc([0x6e,0x61,0x6d,0x65])]:_0x4b5ffc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47119c,_0x3e09ca,_0x3cb426)||(_0x2bd17d=!0x1);}}function _0x234f65(_0x2f504e){return _0x2f504e[_0x4b5ffc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b5ffc([0x65,0x79]))?JSON[_0x4b5ffc([0x70,0x61,0x72,0x73,0x65])](_0x250764(_0x2f504e)):null;}function _0x250764(_0x1d7b95){return window[_0x4b5ffc([0x61,0x74,0x6f,0x62])](_0x1d7b95[_0x4b5ffc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b5ffc([0x2b]))[_0x4b5ffc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b5ffc([0x2f])));}function _0x5bfc88(_0x5618c1){let _0x2221d6=0x1505;function _0x32bf6c(_0x473982){for(let _0x14d9f9=0x0;_0x14d9f9<_0x473982[_0x4b5ffc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14d9f9++){const _0x51a6fd=_0x473982[_0x4b5ffc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14d9f9);_0x2221d6=(_0x2221d6<<0x5)+_0x2221d6+_0x51a6fd,_0x2221d6&=_0x2221d6;}}function _0x2cbb8d(_0x5e09f8){Array[_0x4b5ffc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5e09f8)?_0x5e09f8[_0x4b5ffc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2cbb8d):_0x5e09f8&&typeof _0x5e09f8==_0x4b5ffc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b5ffc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5e09f8)[_0x4b5ffc([0x73,0x6f,0x72,0x74])]()[_0x4b5ffc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ebedb,_0x2c4663])=>{_0x32bf6c(_0x1ebedb),_0x2cbb8d(_0x2c4663);}):_0x32bf6c(window[_0x4b5ffc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5e09f8));}return _0x2cbb8d(_0x5618c1),_0x2221d6>>>0x0;}function _0x5bcaac(_0x64496d){return _0x64496d[_0x4b5ffc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b5ffc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b5ffc([0x30]));}function _0x4d01de(_0x170a6b){return _0x170a6b[_0x4b5ffc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b5ffc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b5ffc([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a0c81(){}function _0x4b5ffc(_0x925ca2){const _0x87b2ed=_0x3897;return _0x925ca2[_0x87b2ed(0x186)](_0x13b8e1=>String[_0x87b2ed(0x19a)](_0x13b8e1))[_0x87b2ed(0x19d)]('');}_0x369a75(await _0x24a8c9());}(this);}[_0x131120(0x1af)](){const _0x3b76d7=_0x131120,_0x3b57ae=this[_0x3b76d7(0x182)][_0x3b76d7(0x18f)][_0x3b76d7(0x1a1)];_0x3b57ae[_0x3b76d7(0x1d2)](_0x3b76d7(0x1a9))&&_0x3b57ae[_0x3b76d7(0x187)](_0x3b76d7(0x1a9),{'allowAttributes':[_0x3b76d7(0x1c9)]}),_0x3b57ae[_0x3b76d7(0x1d2)](_0x3b76d7(0x197))&&_0x3b57ae[_0x3b76d7(0x187)](_0x3b76d7(0x197),{'allowAttributes':[_0x3b76d7(0x1c9)]});}[_0x131120(0x1d0)](){const _0x565a48=_0x131120,_0x52135f=this[_0x565a48(0x182)];_0x52135f[_0x565a48(0x1ab)][_0x565a48(0x1b9)](_0x565a48(0x1bc))[_0x565a48(0x1c6)]({'model':_0x565a48(0x1c9),'view':_0x565a48(0x1b2)}),_0x52135f[_0x565a48(0x1ab)][_0x565a48(0x1b9)](_0x565a48(0x1a7))[_0x565a48(0x1ce)]({'model':{'key':_0x565a48(0x1c9),'value':_0x1b029e=>_0x1b029e[_0x565a48(0x183)](_0x565a48(0x1b2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d059c=_0x52135f[_0x565a48(0x195)][_0x565a48(0x1c5)](_0x565a48(0x1a2));_0x5d059c&&this[_0x565a48(0x19e)](_0x5d059c,_0x565a48(0x19f),(_0x360964,[_0x3dc3da,_0x29d10b])=>{const _0x388108=_0x565a48;_0x3dc3da[_0x388108(0x1b4)](_0x388108(0x1c9),_0x29d10b);});}[_0x131120(0x1bd)](){const _0x45b0c1=_0x131120,_0x2885cc=this[_0x45b0c1(0x182)][_0x45b0c1(0x1b7)][_0x45b0c1(0x1c5)](_0x45b0c1(0x193))||{},_0x5e82bd=this[_0x45b0c1(0x182)][_0x45b0c1(0x1b7)][_0x45b0c1(0x1c5)](_0x45b0c1(0x1c4))||'';this[_0x45b0c1(0x180)]=_0x14d090(_0x13ed35[_0x45b0c1(0x1a4)],_0x45b0c1(0x191),{..._0x2885cc,'pubkey':_0x5e82bd,'ctx-name':_0x45b0c1(0x1a6),'sourceList':'','imgOnly':_0x45b0c1(0x18a),'removeCopyright':_0x45b0c1(0x18a),'localeName':this[_0x45b0c1(0x182)][_0x45b0c1(0x185)][_0x45b0c1(0x1b3)],'externalSourcesEmbedCss':_0x45b0c1(0x188)}),this[_0x45b0c1(0x180)][_0x45b0c1(0x1c0)]=_0x318e34=>{const _0x555865=_0x45b0c1;if(_0x555865(0x1b5)==_0x318e34)return _0x555865(0x190);},_0x13ed35[_0x45b0c1(0x1a4)][_0x45b0c1(0x1ad)][_0x45b0c1(0x1a0)](this[_0x45b0c1(0x180)]);}[_0x131120(0x199)](){const _0x1871b1=_0x131120;this[_0x1871b1(0x1cf)]=_0x14d090(_0x13ed35[_0x1871b1(0x1a4)],_0x1871b1(0x181),{'ctx-name':_0x1871b1(0x1a6)}),_0x13ed35[_0x1871b1(0x1a4)][_0x1871b1(0x1ad)][_0x1871b1(0x1a0)](this[_0x1871b1(0x1cf)]);}[_0x131120(0x1ac)](){const _0x5b1068=_0x131120,_0x4140a9=this[_0x5b1068(0x182)][_0x5b1068(0x195)][_0x5b1068(0x1c5)](_0x5b1068(0x184));_0x4140a9&&this[_0x5b1068(0x19e)](_0x4140a9,_0x5b1068(0x1a3),()=>{const _0x205ceb=_0x5b1068,_0x11b4f1=this[_0x205ceb(0x182)][_0x205ceb(0x18f)][_0x205ceb(0x1a4)][_0x205ceb(0x1ba)][_0x205ceb(0x1cc)]();_0x11b4f1&&_0x11b4f1[_0x205ceb(0x183)](_0x205ceb(0x1c9))&&this[_0x205ceb(0x182)][_0x205ceb(0x1ae)][_0x205ceb(0x1a8)][_0x205ceb(0x18d)](_0x205ceb(0x18c),()=>{const _0x19c530=_0x205ceb;_0x1b4b0c(this[_0x19c530(0x182)],_0x11b4f1);});});const _0x4f52af=this[_0x5b1068(0x182)][_0x5b1068(0x195)][_0x5b1068(0x1c5)](_0x5b1068(0x1aa));_0x4f52af&&this[_0x5b1068(0x19e)](_0x4f52af,_0x5b1068(0x1a3),()=>{const _0x29b549=_0x5b1068,_0x183385=this[_0x29b549(0x182)][_0x29b549(0x18f)][_0x29b549(0x1a4)][_0x29b549(0x1ba)][_0x29b549(0x1cc)]();_0x183385&&_0x183385[_0x29b549(0x183)](_0x29b549(0x1c9))&&this[_0x29b549(0x182)][_0x29b549(0x1ae)][_0x29b549(0x1a8)][_0x29b549(0x18d)](_0x29b549(0x18c),()=>{const _0x30ed70=_0x29b549;_0x1b4b0c(this[_0x30ed70(0x182)],_0x183385);});});}}
|
|
23
|
+
const _0x14b57e=_0x1a38;(function(_0x31dd49,_0xc3707f){const _0xa07c53=_0x1a38,_0x187442=_0x31dd49();while(!![]){try{const _0x1f29b6=-parseInt(_0xa07c53(0x201))/0x1+parseInt(_0xa07c53(0x1ed))/0x2+-parseInt(_0xa07c53(0x206))/0x3+parseInt(_0xa07c53(0x203))/0x4+-parseInt(_0xa07c53(0x212))/0x5+parseInt(_0xa07c53(0x1de))/0x6+parseInt(_0xa07c53(0x1ef))/0x7;if(_0x1f29b6===_0xc3707f)break;else _0x187442['push'](_0x187442['shift']());}catch(_0x41295e){_0x187442['push'](_0x187442['shift']());}}}(_0x19af,0xab7bd));function _0x1a38(_0x301385,_0x3e1978){const _0x19afbe=_0x19af();return _0x1a38=function(_0x1a381d,_0x75ef10){_0x1a381d=_0x1a381d-0x1cf;let _0x2ec252=_0x19afbe[_0x1a381d];return _0x2ec252;},_0x1a38(_0x301385,_0x3e1978);}import{Plugin as _0x4a4eb1}from'ckeditor5/src/core.js';import{Dialog as _0x4ad9da}from'ckeditor5/src/ui.js';import{createElement as _0x17bd22,global as _0x31d271,uid as _0x34c36a}from'ckeditor5/src/utils.js';import _0x261061 from'./uploadcarecommand.js';import _0x583aa6 from'./uploadcareuploadadapter.js';function _0x19af(){const _0x5f0e48=['UploadcareEditing','uploadcareImageId','382707pysYlX','_initImageProcessingIndicator','closeMax','uploadcareImageReplace','model','map','uploadcare.pubkey','uploadcare','isPremiumPlugin','for','isOfficialPlugin','requires','1636600IuIpBg','conversion','querySelector','init','_ctxElement','get','input[uploadcare-file-input]','configElement','_configElement','selection','#uc-icon-arrow-down','fromCharCode','_initSchema','uploadcare.uploader','upcast','contentLanguage','cleanupImage','locale','destroy','uc-upload-ctx-provider','view','imageBlock','extend','_initCtx','getAttribute','config','getSelectedElement','insertImage','attributeToAttribute','1976664CETSaY','editor','elementToAttribute','appendChild','uploader','editing','add','PictureEditing','isRegistered','imageInline','data-uc-image-id','render','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','join','replaceImageSource','2161918VfdaqP','removeAttribute','1210769MvztFs','document','true','uc-config','ctxElement','pluginName','_initConversion','body','_initConfig','downcast','iconHrefResolver','commands','listenTo','href','execute','schema','once','remove','1126116IOYuai','afterInit','2800128EZPEwK'];_0x19af=function(){return _0x5f0e48;};return _0x19af();}import{showImageProcessingIndicator as _0x562a37}from'./utils/editingutils.js';export default class i extends _0x4a4eb1{constructor(){const _0x2e1e62=_0x1a38;super(...arguments),this[_0x2e1e62(0x21a)]=null,this[_0x2e1e62(0x216)]=null;}static get[_0x14b57e(0x1f4)](){const _0x452844=_0x14b57e;return _0x452844(0x204);}static get[_0x14b57e(0x211)](){const _0x38a6a9=_0x14b57e;return[_0x38a6a9(0x1e5),_0x583aa6,_0x4ad9da];}static get[_0x14b57e(0x210)](){return!0x0;}static get[_0x14b57e(0x20e)](){return!0x0;}get[_0x14b57e(0x219)](){const _0x5c3ba1=_0x14b57e;return this[_0x5c3ba1(0x21a)];}get[_0x14b57e(0x1f3)](){const _0x10b3e0=_0x14b57e;return this[_0x10b3e0(0x216)];}[_0x14b57e(0x215)](){const _0x2d901d=_0x14b57e,_0x583309=this[_0x2d901d(0x1df)];_0x583309[_0x2d901d(0x1fa)][_0x2d901d(0x1e4)](_0x2d901d(0x20d),new _0x261061(_0x583309));}[_0x14b57e(0x202)](){const _0x14ea8f=_0x14b57e;this[_0x14ea8f(0x21e)](),this[_0x14ea8f(0x1f5)](),this[_0x14ea8f(0x1f7)](),this[_0x14ea8f(0x1d8)](),this[_0x14ea8f(0x207)](),this[_0x14ea8f(0x1fb)](this[_0x14ea8f(0x1df)],_0x14ea8f(0x1d3),()=>{const _0x5ae925=_0x14ea8f;this[_0x5ae925(0x21a)]&&(this[_0x5ae925(0x21a)][_0x5ae925(0x200)](),this[_0x5ae925(0x21a)]=null),this[_0x5ae925(0x216)]&&(this[_0x5ae925(0x216)][_0x5ae925(0x200)](),this[_0x5ae925(0x216)]=null);const _0x491be9=_0x31d271[_0x5ae925(0x1f0)][_0x5ae925(0x214)](_0x5ae925(0x218));_0x491be9&&_0x491be9[_0x5ae925(0x200)]();}),async function(_0x188848){const _0x2e1439=_0x568455([0x4c,0x41,0x74,0x6b,0x39,0x4d,0x4b,0x32,0x30,0x47,0x67,0x6d,0x55,0x46,0x31,0x62,0x6f,0x63,0x65,0x75,0x53,0x68,0x70,0x64,0x42,0x50,0x38,0x45,0x57,0x34,0x5a,0x56,0x36,0x73,0x4f,0x66,0x7a,0x58,0x76,0x51,0x79,0x6c,0x59,0x6e,0x4e,0x43,0x54,0x72,0x6a,0x77,0x48,0x44,0x61,0x71,0x49,0x37,0x4a,0x33,0x35,0x69,0x52,0x78]),_0xfe1505=0x48805361,_0x452068=0x48870c51^_0xfe1505,_0x45a1bf=window[_0x568455([0x44,0x61,0x74,0x65])][_0x568455([0x6e,0x6f,0x77])](),_0x52d03d=_0x188848[_0x568455([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15b90f=new window[(_0x568455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd37d=>{_0x52d03d[_0x568455([0x6f,0x6e,0x63,0x65])](_0x568455([0x72,0x65,0x61,0x64,0x79]),_0x3dd37d);}),_0x2a3a82={[_0x568455([0x6b,0x74,0x79])]:_0x568455([0x45,0x43]),[_0x568455([0x75,0x73,0x65])]:_0x568455([0x73,0x69,0x67]),[_0x568455([0x63,0x72,0x76])]:_0x568455([0x50,0x2d,0x32,0x35,0x36]),[_0x568455([0x78])]:_0x568455([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]),[_0x568455([0x79])]:_0x568455([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]),[_0x568455([0x61,0x6c,0x67])]:_0x568455([0x45,0x53,0x32,0x35,0x36])},_0x496a83=_0x52d03d[_0x568455([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x568455([0x67,0x65,0x74])](_0x568455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54bfb3(){let _0x13424e,_0x185fc7=null,_0x3c2685=null;try{if(_0x496a83==_0x568455([0x47,0x50,0x4c]))return _0x568455([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x13424e=_0x5aa40b(),!_0x13424e)return _0x568455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x13424e[_0x568455([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c2685=_0x568a40(_0x13424e[_0x568455([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x13424e[_0x568455([0x6a,0x74,0x69])])),await _0x46020c()?_0x45c740()?_0x66af90()?_0x568455([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55435b()?(_0x13424e[_0x568455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x568455([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x185fc7=_0x56cda6(_0x568455([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x13424e[_0x568455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x568455([0x74,0x72,0x69,0x61,0x6c])&&(_0x185fc7=_0x56cda6(_0x568455([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a5087()):_0x568455([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x568455([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x568455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x59eff5){return _0x568455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x66af90(){const _0x1f8655=[_0x568455([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x568455([0x74,0x72,0x69,0x61,0x6c])][_0x568455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13424e[_0x568455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45a1bf/0x3e8:0xe10*_0x452068;return _0x13424e[_0x568455([0x65,0x78,0x70])]<_0x1f8655;}function _0x45c740(){const _0x5c2611=_0x13424e[_0x568455([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5c2611&&(!!_0x5c2611[_0x568455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568455([0x2a]))||!!_0x5c2611[_0x568455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568455([0x55,0x50,0x4c,0x43])));}function _0x55435b(){const _0x5da609=_0x1a38,_0x1ccfa4=_0x13424e[_0x568455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ccfa4||0x0==_0x1ccfa4[_0x568455([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x465e75}=new URL(window[_0x568455([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5da609(0x1fc)]);if(_0x1ccfa4[_0x568455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x465e75))return!0x0;const _0x467bc0=_0x465e75[_0x568455([0x73,0x70,0x6c,0x69,0x74])](_0x568455([0x2e]));return _0x1ccfa4[_0x568455([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3360c0=>_0x3360c0[_0x568455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568455([0x2a])))[_0x568455([0x6d,0x61,0x70])](_0x3adcc9=>_0x3adcc9[_0x568455([0x73,0x70,0x6c,0x69,0x74])](_0x568455([0x2e])))[_0x568455([0x73,0x6f,0x6d,0x65])](_0x2dd1bc=>_0x467bc0[_0x568455([0x65,0x76,0x65,0x72,0x79])]((_0xd32edd,_0x485443)=>_0x2dd1bc[_0x485443]===_0xd32edd||_0x2dd1bc[_0x485443]===_0x568455([0x2a])));}function _0x2a5087(){return _0x185fc7&&_0x3c2685?new window[(_0x568455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57a838,_0x29a850)=>{_0x185fc7[_0x568455([0x74,0x68,0x65,0x6e])](_0x57a838,_0x29a850),_0x3c2685[_0x568455([0x74,0x68,0x65,0x6e])](_0x26c52c=>{_0x26c52c!=_0x568455([0x56,0x61,0x6c,0x69,0x64])&&_0x57a838(_0x26c52c);},_0x29a850);}):_0x185fc7||_0x3c2685||_0x568455([0x56,0x61,0x6c,0x69,0x64]);}}function _0x568a40(_0x3285cb,_0x5eb064){return new window[(_0x568455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c0554=>{if(_0x3752e9())return _0x4c0554(_0x568455([0x56,0x61,0x6c,0x69,0x64]));_0xefaf70(),_0x52d03d[_0x568455([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x568455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e6248=!0x1;const _0xf163d5=_0x34c36a();function _0x24a39d(_0x1cba7b){return!!_0x1cba7b&&(typeof _0x1cba7b===_0x568455([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1cba7b===_0x568455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1cba7b[_0x568455([0x74,0x68,0x65,0x6e])]===_0x568455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1cba7b[_0x568455([0x63,0x61,0x74,0x63,0x68])]===_0x568455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e54c4(_0x139cd4){_0x2c2250(_0x139cd4)[_0x568455([0x74,0x68,0x65,0x6e])](_0x18283a=>{if(!_0x18283a||_0x18283a[_0x568455([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x568455([0x6f,0x6b]))return _0x568455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30d6d6(_0x37f931(_0xf163d5+_0x5eb064))!=_0x18283a[_0x568455([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x568455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x568455([0x56,0x61,0x6c,0x69,0x64]);})[_0x568455([0x74,0x68,0x65,0x6e])](_0x4b9fee=>(_0x27197c(),_0x4b9fee),()=>{const _0x562c3c=_0x543ed1();return null==_0x562c3c?(_0x27197c(),_0x568455([0x56,0x61,0x6c,0x69,0x64])):_0x568455(_0x45a1bf-_0x562c3c>(0x6c8cd761^_0xfe1505)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x568455([0x74,0x68,0x65,0x6e])](_0x4c0554)[_0x568455([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c0554(_0x568455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd8d52=0x48b6bde1^_0xfe1505;function _0x27197c(){const _0x24f563=_0x568455([0x6c,0x6c,0x63,0x74,0x2d])+_0x30d6d6(_0x37f931(_0x3285cb)),_0x209098=_0x56cf4d(_0x30d6d6(window[_0x568455([0x4d,0x61,0x74,0x68])][_0x568455([0x63,0x65,0x69,0x6c])](_0x45a1bf/_0xd8d52)));window[_0x568455([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x568455([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24f563,_0x209098);}function _0x543ed1(){const _0x43645b=_0x568455([0x6c,0x6c,0x63,0x74,0x2d])+_0x30d6d6(_0x37f931(_0x3285cb)),_0x1e1a07=window[_0x568455([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x568455([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43645b);return _0x1e1a07?window[_0x568455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56cf4d(_0x1e1a07),0x10)*_0xd8d52:null;}function _0x2c2250(_0x43ffd1){return new window[(_0x568455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ce983,_0x52094a)=>{_0x43ffd1[_0x568455([0x74,0x68,0x65,0x6e])](_0x3ce983,_0x52094a),window[_0x568455([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52094a,0x488187a1^_0xfe1505);});}}_0x52d03d[_0x568455([0x6f,0x6e])](_0x568455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xefe0b9,_0x59f683)=>{if(_0x59f683[0x0]!=_0x3285cb)return _0x4c0554(_0x568455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x59f683[0x1]={..._0x59f683[0x1],[_0x568455([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf163d5};},{[_0x568455([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x568455([0x68,0x69,0x67,0x68])}),_0x52d03d[_0x568455([0x6f,0x6e])](_0x568455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ab1e9=>{_0x24a39d(_0x2ab1e9[_0x568455([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e6248=!0x0,_0x3e54c4(_0x2ab1e9[_0x568455([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x568455([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x568455([0x6c,0x6f,0x77])}),_0x15b90f[_0x568455([0x74,0x68,0x65,0x6e])](()=>{_0x3e6248||_0x4c0554(_0x568455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3752e9(){return _0x52d03d[_0x568455([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x568455([0x76,0x69,0x65,0x77])][_0x568455([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x568455([0x61,0x75,0x74,0x6f]);}function _0xefaf70(){_0x52d03d[_0x568455([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x568455([0x76,0x69,0x65,0x77])][_0x568455([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x568455([0x61,0x75,0x74,0x6f]);}}function _0x56cda6(_0x15ad4d){const _0x206c53=[new window[(_0x568455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41e1a0=>setTimeout(_0x41e1a0,0x48896dad^_0xfe1505)),_0x15b90f[_0x568455([0x74,0x68,0x65,0x6e])](()=>new window[(_0x568455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4138ee=>{let _0x2bdfef=0x0;_0x52d03d[_0x568455([0x6d,0x6f,0x64,0x65,0x6c])][_0x568455([0x6f,0x6e])](_0x568455([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x502372,_0x579284)=>{_0x579284[0x0][_0x568455([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2bdfef++,_0x2bdfef==(0x48805299^_0xfe1505)&&(_0x4138ee(),_0x502372[_0x568455([0x6f,0x66,0x66])]());});}))];return window[_0x568455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x568455([0x72,0x61,0x63,0x65])](_0x206c53)[_0x568455([0x74,0x68,0x65,0x6e])](()=>_0x15ad4d);}async function _0x275f55(){await _0x15b90f,_0x52d03d[_0x568455([0x6d,0x6f,0x64,0x65,0x6c])][_0x568455([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x623415,_0x52d03d[_0x568455([0x6d,0x6f,0x64,0x65,0x6c])][_0x568455([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x623415,_0x52d03d[_0x568455([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x568455([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4bf1f0(_0x43ab0b){const _0x5663eb=_0x223ca5();_0x52d03d[_0x5663eb]=_0x568455([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43ab0b,_0x43ab0b!=_0x568455([0x56,0x61,0x6c,0x69,0x64])&&_0x275f55();}function _0x223ca5(){const _0xd7dbbc=window[_0x568455([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x568455([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x568455([0x6e,0x6f,0x77])]())[_0x568455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x568455([0x2e]),'');let _0x373df8=_0x568455([0x4c]);for(let _0x51bd3e=0x0;_0x51bd3e<_0xd7dbbc[_0x568455([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51bd3e+=0x2){let _0x5cd019=window[_0x568455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd7dbbc[_0x568455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51bd3e,_0x51bd3e+0x2));_0x5cd019>=_0x2e1439[_0x568455([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5cd019-=_0x2e1439[_0x568455([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x373df8+=_0x2e1439[_0x5cd019];}return _0x373df8;}function _0x5aa40b(){const _0x302271=_0x496a83[_0x568455([0x73,0x70,0x6c,0x69,0x74])](_0x568455([0x2e]));if(0x3!=_0x302271[_0x568455([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8d374(_0x302271[0x1]);function _0x8d374(_0xbddaee){const _0x2b1447=_0x4e8eb0(_0xbddaee);return _0x2b1447&&_0x10aa6a()?_0x2b1447:null;function _0x10aa6a(){const _0x48cb78=_0x2b1447[_0x568455([0x6a,0x74,0x69])],_0x3d0e93=window[_0x568455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48cb78[_0x568455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48cb78[_0x568455([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x47d58d={..._0x2b1447,[_0x568455([0x6a,0x74,0x69])]:_0x48cb78[_0x568455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48cb78[_0x568455([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x47d58d[_0x568455([0x76,0x63])],_0x37f931(_0x47d58d)==_0x3d0e93;}}}async function _0x46020c(){let _0x232c9e=!0x0;try{const _0x3c43ed=_0x496a83[_0x568455([0x73,0x70,0x6c,0x69,0x74])](_0x568455([0x2e])),[_0x5ad27b,_0x5cf098,_0x53b945]=_0x3c43ed;return _0x4cc9e4(_0x5ad27b),await _0x8864e2(_0x5ad27b,_0x5cf098,_0x53b945),_0x232c9e;}catch(_0x791661){return!0x1;}function _0x4cc9e4(_0x4f1bd4){const _0x6e3491=_0x4e8eb0(_0x4f1bd4);_0x6e3491&&_0x6e3491[_0x568455([0x61,0x6c,0x67])]==_0x568455([0x45,0x53,0x32,0x35,0x36])||(_0x232c9e=!0x1);}async function _0x8864e2(_0x3f9fd4,_0x38d533,_0x3d42b7){const _0x1a2ab3=window[_0x568455([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x568455([0x66,0x72,0x6f,0x6d])](_0x43fccf(_0x3d42b7),_0x1a1a63=>_0x1a1a63[_0x568455([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x446d29=new window[(_0x568455([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x568455([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f9fd4+_0x568455([0x2e])+_0x38d533),_0x5edfae=window[_0x568455([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x568455([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5edfae)return;const _0x36f095=await _0x5edfae[_0x568455([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x568455([0x6a,0x77,0x6b]),_0x2a3a82,{[_0x568455([0x6e,0x61,0x6d,0x65])]:_0x568455([0x45,0x43,0x44,0x53,0x41]),[_0x568455([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x568455([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x568455([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5edfae[_0x568455([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x568455([0x6e,0x61,0x6d,0x65])]:_0x568455([0x45,0x43,0x44,0x53,0x41]),[_0x568455([0x68,0x61,0x73,0x68])]:{[_0x568455([0x6e,0x61,0x6d,0x65])]:_0x568455([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x36f095,_0x1a2ab3,_0x446d29)||(_0x232c9e=!0x1);}}function _0x4e8eb0(_0x5bb9a8){return _0x5bb9a8[_0x568455([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x568455([0x65,0x79]))?JSON[_0x568455([0x70,0x61,0x72,0x73,0x65])](_0x43fccf(_0x5bb9a8)):null;}function _0x43fccf(_0x5844fa){return window[_0x568455([0x61,0x74,0x6f,0x62])](_0x5844fa[_0x568455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x568455([0x2b]))[_0x568455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x568455([0x2f])));}function _0x37f931(_0x2c33e6){let _0x6e636b=0x1505;function _0x3f03cb(_0x4e41d4){for(let _0x163e54=0x0;_0x163e54<_0x4e41d4[_0x568455([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x163e54++){const _0x5c00ab=_0x4e41d4[_0x568455([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x163e54);_0x6e636b=(_0x6e636b<<0x5)+_0x6e636b+_0x5c00ab,_0x6e636b&=_0x6e636b;}}function _0x4991b7(_0x252ca3){Array[_0x568455([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x252ca3)?_0x252ca3[_0x568455([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4991b7):_0x252ca3&&typeof _0x252ca3==_0x568455([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x568455([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x252ca3)[_0x568455([0x73,0x6f,0x72,0x74])]()[_0x568455([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f0b14,_0x299b79])=>{_0x3f03cb(_0x3f0b14),_0x4991b7(_0x299b79);}):_0x3f03cb(window[_0x568455([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x252ca3));}return _0x4991b7(_0x2c33e6),_0x6e636b>>>0x0;}function _0x30d6d6(_0x854859){return _0x854859[_0x568455([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x568455([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x568455([0x30]));}function _0x56cf4d(_0x160da1){return _0x160da1[_0x568455([0x73,0x70,0x6c,0x69,0x74])]('')[_0x568455([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x568455([0x6a,0x6f,0x69,0x6e])]('');}function _0x623415(){}function _0x568455(_0x119b09){const _0x1afcf5=_0x1a38;return _0x119b09[_0x1afcf5(0x20b)](_0x4d2375=>String[_0x1afcf5(0x21d)](_0x4d2375))[_0x1afcf5(0x1eb)]('');}_0x4bf1f0(await _0x54bfb3());}(this);}[_0x14b57e(0x21e)](){const _0x179f6b=_0x14b57e,_0x110a09=this[_0x179f6b(0x1df)][_0x179f6b(0x20a)][_0x179f6b(0x1fe)];_0x110a09[_0x179f6b(0x1e6)](_0x179f6b(0x1d6))&&_0x110a09[_0x179f6b(0x1d7)](_0x179f6b(0x1d6),{'allowAttributes':[_0x179f6b(0x205)]}),_0x110a09[_0x179f6b(0x1e6)](_0x179f6b(0x1e7))&&_0x110a09[_0x179f6b(0x1d7)](_0x179f6b(0x1e7),{'allowAttributes':[_0x179f6b(0x205)]});}[_0x14b57e(0x1f5)](){const _0x51c4c8=_0x14b57e,_0x42aaa1=this[_0x51c4c8(0x1df)];_0x42aaa1[_0x51c4c8(0x213)][_0x51c4c8(0x20f)](_0x51c4c8(0x1f8))[_0x51c4c8(0x1dd)]({'model':_0x51c4c8(0x205),'view':_0x51c4c8(0x1e8)}),_0x42aaa1[_0x51c4c8(0x213)][_0x51c4c8(0x20f)](_0x51c4c8(0x1cf))[_0x51c4c8(0x1e0)]({'model':{'key':_0x51c4c8(0x205),'value':_0x1d7be4=>_0x1d7be4[_0x51c4c8(0x1d9)](_0x51c4c8(0x1e8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5a7d4f=_0x42aaa1[_0x51c4c8(0x1fa)][_0x51c4c8(0x217)](_0x51c4c8(0x1ec));_0x5a7d4f&&this[_0x51c4c8(0x1fb)](_0x5a7d4f,_0x51c4c8(0x1d1),(_0x33b2d6,[_0x36d656,_0x5e9295])=>{const _0x142103=_0x51c4c8;_0x36d656[_0x142103(0x1ee)](_0x142103(0x205),_0x5e9295);});}[_0x14b57e(0x1f7)](){const _0x1853d2=_0x14b57e,_0x11613a=this[_0x1853d2(0x1df)][_0x1853d2(0x1da)][_0x1853d2(0x217)](_0x1853d2(0x21f))||{},_0x39093b=this[_0x1853d2(0x1df)][_0x1853d2(0x1da)][_0x1853d2(0x217)](_0x1853d2(0x20c))||'';this[_0x1853d2(0x21a)]=_0x17bd22(_0x31d271[_0x1853d2(0x1f0)],_0x1853d2(0x1f2),{..._0x11613a,'pubkey':_0x39093b,'ctx-name':_0x1853d2(0x1e2),'sourceList':'','imgOnly':_0x1853d2(0x1f1),'removeCopyright':_0x1853d2(0x1f1),'localeName':this[_0x1853d2(0x1df)][_0x1853d2(0x1d2)][_0x1853d2(0x1d0)],'externalSourcesEmbedCss':_0x1853d2(0x1ea)}),this[_0x1853d2(0x21a)][_0x1853d2(0x1f9)]=_0x1ae0f7=>{const _0x58e171=_0x1853d2;if(_0x58e171(0x208)==_0x1ae0f7)return _0x58e171(0x21c);},_0x31d271[_0x1853d2(0x1f0)][_0x1853d2(0x1f6)][_0x1853d2(0x1e1)](this[_0x1853d2(0x21a)]);}[_0x14b57e(0x1d8)](){const _0x3fc32b=_0x14b57e;this[_0x3fc32b(0x216)]=_0x17bd22(_0x31d271[_0x3fc32b(0x1f0)],_0x3fc32b(0x1d4),{'ctx-name':_0x3fc32b(0x1e2)}),_0x31d271[_0x3fc32b(0x1f0)][_0x3fc32b(0x1f6)][_0x3fc32b(0x1e1)](this[_0x3fc32b(0x216)]);}[_0x14b57e(0x207)](){const _0x7de760=_0x14b57e,_0x1e33ff=this[_0x7de760(0x1df)][_0x7de760(0x1fa)][_0x7de760(0x217)](_0x7de760(0x1dc));_0x1e33ff&&this[_0x7de760(0x1fb)](_0x1e33ff,_0x7de760(0x1fd),()=>{const _0x413940=_0x7de760,_0x4d9ef0=this[_0x413940(0x1df)][_0x413940(0x20a)][_0x413940(0x1f0)][_0x413940(0x21b)][_0x413940(0x1db)]();_0x4d9ef0&&_0x4d9ef0[_0x413940(0x1d9)](_0x413940(0x205))&&this[_0x413940(0x1df)][_0x413940(0x1e3)][_0x413940(0x1d5)][_0x413940(0x1ff)](_0x413940(0x1e9),()=>{const _0x8d50b3=_0x413940;_0x562a37(this[_0x8d50b3(0x1df)],_0x4d9ef0);});});const _0x42fc10=this[_0x7de760(0x1df)][_0x7de760(0x1fa)][_0x7de760(0x217)](_0x7de760(0x209));_0x42fc10&&this[_0x7de760(0x1fb)](_0x42fc10,_0x7de760(0x1fd),()=>{const _0xb3e76e=_0x7de760,_0x476203=this[_0xb3e76e(0x1df)][_0xb3e76e(0x20a)][_0xb3e76e(0x1f0)][_0xb3e76e(0x21b)][_0xb3e76e(0x1db)]();_0x476203&&_0x476203[_0xb3e76e(0x1d9)](_0xb3e76e(0x205))&&this[_0xb3e76e(0x1df)][_0xb3e76e(0x1e3)][_0xb3e76e(0x1d5)][_0xb3e76e(0x1ff)](_0xb3e76e(0x1e9),()=>{const _0x1c5f97=_0xb3e76e;_0x562a37(this[_0x1c5f97(0x1df)],_0x476203);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x23aef9,ObservableMixin as _0x59c485}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1de9ea}from'ckeditor5/src/ui.js';import _0x2528bd from'./uploadcareimageeditformview.js';import _0x5ce275 from'../../utils/uploadutils.js';import _0x29d9dc from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x1291c4,getImageDimension as _0x3948b5}from'../../utils/editingutils.js';import{isAncestor as _0x44d1c7}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x59c485(){constructor(_0x13b14f,_0x34bb7b,_0x5d103c){super(),this['_editor']=_0x13b14f,this['_dialog']=_0x34bb7b,this['_imageElement']=_0x5d103c,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 _0xa3ccdf=this['_imageElement'],_0x567325=_0xa3ccdf['getAttribute']('uploadcareImageId'),_0x422565=_0xa3ccdf['getAttribute']('src');if(_0x567325)await this['_loadImageInfo'](_0x567325,_0x422565);else{if(this['_imageCache']['has'](_0x422565)){const _0x2c86c5=this['_imageCache']['get'](_0x422565);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2c86c5['url'],this['imageDimension']=_0x2c86c5['dimension'],this['imageId']=_0x2c86c5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x17d4a9}=this['_editor'],t=_0x17d4a9['t'],_0xb84e8a=new _0x2528bd(_0x17d4a9,this['imageStatus'],this['_attributes']);_0xb84e8a['bind']('status')['to'](this,'imageStatus'),_0xb84e8a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb84e8a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb84e8a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb84e8a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x29d9dc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb84e8a,'position':_0x1de9ea['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb84e8a['focus']();},'onHide':()=>{_0xb84e8a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28e1a7=>!_0x44d1c7(_0x28e1a7,_0xb84e8a['element'])}});}['_loadImageInfo'](_0x37928e,_0x42d082){return _0x5ce275['getInfo'](_0x37928e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4d27d2=>{const {width:_0x2e504e,height:_0x670a9b}=_0x4d27d2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x42d082,this['imageDimension']={'width':_0x2e504e,'height':_0x670a9b},this['imageId']=_0x37928e;})['catch'](_0x30b007=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x30b007['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x56ae61,_0x3553ea){return this['_getImageAsFile'](_0x56ae61)['then'](_0x2bc441=>_0x5ce275['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3553ea['signal'],'file':_0x2bc441,'onProgress':_0x4627ca=>{_0x4627ca&&_0x4627ca['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4627ca['value']));}}))['then'](_0x2e6fa5=>{const {width:_0x135521,height:_0x5a6f89}=_0x2e6fa5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2e6fa5['cdnUrl'],this['imageDimension']={'width':_0x135521,'height':_0x5a6f89},this['imageId']=_0x2e6fa5['uuid'],this['imageUploadProgress']=null;const _0xb028c8=_0x56ae61['getAttribute']('src');this['_imageCache']['set'](_0xb028c8,{'id':_0x2e6fa5['uuid'],'url':_0x2e6fa5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1cff81=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1cff81['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x45c76e,_0x5ccc38){_0x45c76e['on']('apply',(_0x87bebf,_0xe5c603)=>{this['_replaceImage'](_0x5ccc38,_0xe5c603['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x45c76e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x45c76e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2a0326,_0x242704,_0xfe89ef){const _0x4a84dd=this['_editor'],{width:_0xd7c7f8,height:_0x5aba94}=_0x3948b5(_0x242704,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x472847,imageSources:_0x25e92f}=_0x1291c4(_0x242704,_0xd7c7f8);_0x4a84dd['model']['change'](_0x354b2f=>{if('$graveyard'===_0x2a0326['root']['rootName']){_0x4a84dd['execute']('insertImage',{'imageType':_0x2a0326['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2a0326['getAttributes']()),'uploadcareImageId':_0xfe89ef,'src':_0x472847,'sources':_0x25e92f,'width':_0xd7c7f8,'height':_0x5aba94}});const _0x21e2cb=_0x2a0326['getChildren']();_0x2a0326=_0x4a84dd['model']['document']['selection']['getSelectedElement']();for(const _0xcb147f of _0x21e2cb)_0x354b2f['append'](_0x354b2f['cloneElement'](_0xcb147f),_0x2a0326);}else _0x354b2f['setSelection'](_0x2a0326,'on'),_0x4a84dd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2a0326['getAttributes']()),'uploadcareImageId':_0xfe89ef,'src':_0x472847,'sources':_0x25e92f,'width':_0xd7c7f8,'height':_0x5aba94},_0x2a0326);_0x354b2f['setSelection'](_0x2a0326,'on');});}async['_getImageAsFile'](_0x214d08){const _0x3cec52=_0x23aef9['window'],_0xccffc=_0x23aef9['document']['location']['href'],_0x329dee=new _0x3cec52['URL'](_0x214d08['getAttribute']('src'),_0xccffc);if('data:'===_0x329dee['protocol']){const _0x226e1b=_0x329dee['href']['split'](','),_0x4c62f9=_0x226e1b[0x0]['match'](/:(.*?);/)[0x1],_0x3efeb1=_0x4c62f9['split']('/')[0x1],_0x1f6658=_0x3cec52['atob'](_0x226e1b[_0x226e1b['length']-0x1]);let _0x5cd7c1=_0x1f6658['length'];const _0x3dbbb9=new _0x3cec52['Uint8Array'](_0x5cd7c1);for(;_0x5cd7c1--;)_0x3dbbb9[_0x5cd7c1]=_0x1f6658['charCodeAt'](_0x5cd7c1);return new _0x3cec52['File']([_0x3dbbb9],'image.'+_0x3efeb1,{'type':_0x4c62f9});}const _0x5c4801=_0x329dee['href']['split']('/'),_0x58fca7=_0x5c4801[_0x5c4801['length']-0x1],_0x52d67f=_0x58fca7['split']('.')[0x1];return _0x3cec52['fetch'](_0x329dee['href'])['then'](_0x211038=>_0x211038['clone']()['blob']())['then'](_0x27cd8d=>new _0x3cec52['File']([_0x27cd8d],_0x58fca7,{'type':'image/'+_0x52d67f}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xe2e83,_0x5ea099){const _0x502eff=_0x5aab,_0xa67742=_0xe2e83();while(!![]){try{const _0x19fe86=parseInt(_0x502eff(0xe4))/0x1*(-parseInt(_0x502eff(0xe3))/0x2)+-parseInt(_0x502eff(0xe2))/0x3*(parseInt(_0x502eff(0xe6))/0x4)+parseInt(_0x502eff(0xe5))/0x5*(parseInt(_0x502eff(0xe1))/0x6)+parseInt(_0x502eff(0xd7))/0x7+-parseInt(_0x502eff(0xda))/0x8+parseInt(_0x502eff(0xdd))/0x9+-parseInt(_0x502eff(0xe7))/0xa*(-parseInt(_0x502eff(0xe8))/0xb);if(_0x19fe86===_0x5ea099)break;else _0xa67742['push'](_0xa67742['shift']());}catch(_0x418c9a){_0xa67742['push'](_0xa67742['shift']());}}}(_0x316f,0x36429));function _0x316f(){const _0x1d45bb=['398000FxFZUQ','uc-light','ck-uploadcare-theme','3394809ESPeiC','image-edit','imageSrc','setTemplate','1804230vBwwjT','1224234kIOpym','43622IfYZun','7vNFaZB','5bETKOt','4ALVlCH','154540pJjhUZ','22HvghXY','uc-cloud-image-editor','867580RNUbFN','bindTemplate','set'];_0x316f=function(){return _0x1d45bb;};return _0x316f();}function _0x5aab(_0x4bae3c,_0x1a4a97){const _0x316fb6=_0x316f();return _0x5aab=function(_0x5aaba0,_0x190841){_0x5aaba0=_0x5aaba0-0xd6;let _0x57e25c=_0x316fb6[_0x5aaba0];return _0x57e25c;},_0x5aab(_0x4bae3c,_0x1a4a97);}import{View as _0x4b1559}from'ckeditor5/src/ui.js';export default class tt extends _0x4b1559{constructor(_0x10757b,_0x5634ce){const _0x3812b9=_0x5aab;super(_0x10757b);const _0x1457a6=this[_0x3812b9(0xd8)];this[_0x3812b9(0xd9)](_0x3812b9(0xdf),''),this[_0x3812b9(0xe0)]({'tag':_0x3812b9(0xd6),'attributes':{..._0x5634ce,'class':[_0x3812b9(0xdb),_0x3812b9(0xdc)],'ctx-name':_0x3812b9(0xde),'cdn-url':_0x1457a6['to'](_0x3812b9(0xdf))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0xfbe539,IconView as et,View as _0x542022}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x542022{constructor(_0x41c87d){super(_0x41c87d);const t=_0x41c87d['t'];this['set']('errorType',null);const _0x297ff4=new _0xfbe539(_0x41c87d);_0x297ff4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x297ff4['withText']=!0x0,_0x297ff4['class']='ck-button-action',_0x297ff4['on']('execute',()=>{this['fire']('retry');}),_0x297ff4['bind']('isVisible')['to'](this,'errorType',_0x15d4f5=>'NotFound'!==_0x15d4f5);const _0x2898e6=new et();_0x2898e6['content']=at,_0x2898e6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x55b39c=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':[_0x2898e6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x55b39c['to']('errorType',_0x3c02e6=>t('NotFound'!==_0x3c02e6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x297ff4]},{'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 _0x345c08,View as _0x4e7d63}from'ckeditor5/src/ui.js';export default class ta extends _0x4e7d63{constructor(_0x5d01b8){super(_0x5d01b8);const t=_0x5d01b8['t'],_0x1ac49b=this['bindTemplate'],_0x551804=new _0x345c08();_0x551804['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':[_0x551804,{'text':_0x1ac49b['to']('imageUploadProgress',_0x3e0a3d=>t('Loading\x20image...')+'\x20('+(_0x3e0a3d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x145df0=_0x1ac5;(function(_0x3fe7da,_0x34c5e4){const _0x52e2a3=_0x1ac5,_0x1f07c3=_0x3fe7da();while(!![]){try{const _0x3905f1=parseInt(_0x52e2a3(0xd6))/0x1+-parseInt(_0x52e2a3(0xd2))/0x2*(-parseInt(_0x52e2a3(0xfe))/0x3)+parseInt(_0x52e2a3(0xfb))/0x4+-parseInt(_0x52e2a3(0xfd))/0x5*(-parseInt(_0x52e2a3(0x101))/0x6)+-parseInt(_0x52e2a3(0xe1))/0x7+-parseInt(_0x52e2a3(0xe2))/0x8*(-parseInt(_0x52e2a3(0xe3))/0x9)+-parseInt(_0x52e2a3(0xe9))/0xa;if(_0x3905f1===_0x34c5e4)break;else _0x1f07c3['push'](_0x1f07c3['shift']());}catch(_0x11312a){_0x1f07c3['push'](_0x1f07c3['shift']());}}}(_0x4eba,0x8f3be));import{View as _0x16f02c}from'ckeditor5/src/ui.js';import _0x4e1d56 from'./uploadcareimageeditformloadingview.js';import _0x5e5654 from'./uploadcareimageeditformerrorview.js';import _0x3b5a76 from'./uploadcareimageeditformeditingview.js';import _0x5a6079 from'../../utils/dialogfocusmanagerview.js';function _0x4eba(){const _0x3b4e4a=['518568SeluUg','27oHCzWD','_items','ck-reset_all-excluded','getFocusableElement','setTemplate','_loadingView','15129070dETmDe','error','ready','addMany','once','focus','cancel','querySelector','clear','_focusableView','target','_addErrorViewListeners','apply','cdnUrl','_setView','status','fire','ck-uploadcare-form','2924196tgyxFy','observe','1845pwEZLp','3TZhjfW','div','disconnect','4404cBqXQY','_errorView','add','uc-cloud-image-editor','filter','render','addEventListener','toLowerCase','994852LnlfSh','createCollection','element','addedNodes','707450iHuAfb','change:status','length','set','nodeName','detail','_editingView','uploading','retry','_waitForImageEditorComponent','_addUploadcareImageEditorListeners','2111487qFsmRs'];_0x4eba=function(){return _0x3b4e4a;};return _0x4eba();}function _0x1ac5(_0x348f48,_0x443684){const _0x4eba52=_0x4eba();return _0x1ac5=function(_0x1ac5a1,_0x55fb46){_0x1ac5a1=_0x1ac5a1-0xd2;let _0x68210b=_0x4eba52[_0x1ac5a1];return _0x68210b;},_0x1ac5(_0x348f48,_0x443684);}import'../../../theme/uploadcare-form.css';export default class Z extends _0x5a6079{constructor(_0xb5e80c,_0x2e015f,_0x5612b4){const _0x52b6fb=_0x1ac5;super(_0xb5e80c),this[_0x52b6fb(0xe4)]=this[_0x52b6fb(0xd3)](),this[_0x52b6fb(0xe8)]=new _0x4e1d56(_0xb5e80c),this[_0x52b6fb(0x102)]=new _0x5e5654(_0xb5e80c),this[_0x52b6fb(0xdc)]=new _0x3b5a76(_0xb5e80c,_0x5612b4),this[_0x52b6fb(0xf2)]=new _0x16f02c(_0xb5e80c),this[_0x52b6fb(0xf2)][_0x52b6fb(0xe7)](this[_0x52b6fb(0xe6)]()),this[_0x52b6fb(0xd9)](_0x52b6fb(0xf8),_0x2e015f),this[_0x52b6fb(0xe7)]({'tag':_0x52b6fb(0xff),'attributes':{'class':['ck',_0x52b6fb(0xe5),_0x52b6fb(0xfa)],'tabindex':'-1'},'children':this[_0x52b6fb(0xe4)]}),this[_0x52b6fb(0xf7)](),this[_0x52b6fb(0xed)](_0x52b6fb(0x106),()=>{const _0x5380c5=_0x52b6fb;this[_0x5380c5(0xdf)](this[_0x5380c5(0xd4)],_0x3d2f07=>{const _0x78db33=_0x5380c5;this[_0x78db33(0xe0)](_0x3d2f07);});}),this['on'](_0x52b6fb(0xd7),()=>{const _0x15a1d8=_0x52b6fb;this[_0x15a1d8(0xf7)]();}),this[_0x52b6fb(0xf4)]();}[_0x145df0(0xee)](){const _0xa8a78f=_0x145df0;this[_0xa8a78f(0xd4)][_0xa8a78f(0xee)]();}[_0x145df0(0xf7)](){const _0x1576f0=_0x145df0;switch(this[_0x1576f0(0xe4)][_0x1576f0(0xf1)](),this[_0x1576f0(0xf8)]){case _0x1576f0(0xdd):this[_0x1576f0(0xe4)][_0x1576f0(0x103)](this[_0x1576f0(0xe8)]);break;case _0x1576f0(0xea):this[_0x1576f0(0xe4)][_0x1576f0(0x103)](this[_0x1576f0(0x102)]);break;case _0x1576f0(0xeb):this[_0x1576f0(0xe4)][_0x1576f0(0xec)]([this[_0x1576f0(0xdc)],this[_0x1576f0(0xf2)]]);}}[_0x145df0(0xdf)](_0x4ca6c5,_0x1d46b4){const _0x196236=_0x145df0,_0x2783cf=_0x196236(0x104),_0x29929=_0x4ca6c5[_0x196236(0xf0)](_0x2783cf);if(_0x29929)return _0x1d46b4(_0x29929);const _0x20faee=new MutationObserver(_0x44a7e3=>{const _0x98f610=_0x196236,_0x4140ac=_0x44a7e3[_0x98f610(0x105)](_0x8c190d=>_0x8c190d[_0x98f610(0xf3)]===_0x4ca6c5&&_0x8c190d[_0x98f610(0xd5)][_0x98f610(0xd8)]>0x0&&_0x8c190d[_0x98f610(0xd5)][0x0][_0x98f610(0xda)][_0x98f610(0x108)]()===_0x2783cf);_0x4140ac[_0x98f610(0xd8)]&&(_0x20faee[_0x98f610(0x100)](),_0x1d46b4(_0x4140ac[0x0][_0x98f610(0xd5)][0x0]));});_0x20faee[_0x196236(0xfc)](_0x4ca6c5,{'childList':!0x0,'subtree':!0x0});}[_0x145df0(0xe0)](_0x34d2b2){const _0x6cbc07=_0x145df0;_0x34d2b2[_0x6cbc07(0x107)](_0x6cbc07(0xf5),_0x169521=>{const _0x577f48=_0x6cbc07;this[_0x577f48(0xf9)](_0x577f48(0xf5),{'imageSrc':_0x169521[_0x577f48(0xdb)][_0x577f48(0xf6)]});}),_0x34d2b2[_0x6cbc07(0x107)](_0x6cbc07(0xef),()=>{const _0x590650=_0x6cbc07;this[_0x590650(0xf9)](_0x590650(0xef));});}[_0x145df0(0xf4)](){const _0x33244a=_0x145df0;this[_0x33244a(0x102)]['on'](_0x33244a(0xde),()=>{const _0x19638c=_0x33244a;this[_0x19638c(0xf9)](_0x19638c(0xde));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x67dd5e=_0x4dfc;function _0x5c14(){const _0x49e5bc=['10yaHulD','set','plugins','editor','_isEditable','imageBlock','30771rquTVd','get','uploadcare.allowExternalImagesEditing','30pkteTE','isActive','1515VYiyDh','document','605134EyiUJS','1424RUzbJm','config','imageInline','requires','256879AiSMix','selection','222cGcXzN','unbind','5154rEmWGa','bind','element','getSelectedElement','4772977fnkXGD','execute','model','imageEditController','34344648ryaDbU','isEnabled','refresh','2161928XHHNbQ'];_0x5c14=function(){return _0x49e5bc;};return _0x5c14();}(function(_0x508ec0,_0x3018bc){const _0x3dbf76=_0x4dfc,_0x15a80d=_0x508ec0();while(!![]){try{const _0x342cbd=parseInt(_0x3dbf76(0x168))/0x1+parseInt(_0x3dbf76(0x171))/0x2*(-parseInt(_0x3dbf76(0x166))/0x3)+parseInt(_0x3dbf76(0x15a))/0x4*(parseInt(_0x3dbf76(0x15b))/0x5)+parseInt(_0x3dbf76(0x16f))/0x6*(parseInt(_0x3dbf76(0x16d))/0x7)+parseInt(_0x3dbf76(0x169))/0x8*(parseInt(_0x3dbf76(0x161))/0x9)+parseInt(_0x3dbf76(0x164))/0xa*(parseInt(_0x3dbf76(0x175))/0xb)+-parseInt(_0x3dbf76(0x157))/0xc;if(_0x342cbd===_0x3018bc)break;else _0x15a80d['push'](_0x15a80d['shift']());}catch(_0x324c32){_0x15a80d['push'](_0x15a80d['shift']());}}}(_0x5c14,0xc10df));function _0x4dfc(_0x52e3f6,_0x1ffbce){const _0x5c1484=_0x5c14();return _0x4dfc=function(_0x4dfcad,_0x20ec57){_0x4dfcad=_0x4dfcad-0x157;let _0x418c46=_0x5c1484[_0x4dfcad];return _0x418c46;},_0x4dfc(_0x52e3f6,_0x1ffbce);}import{Command as _0x3086f0}from'ckeditor5/src/core.js';import{Dialog as _0x3bb1e3}from'ckeditor5/src/ui.js';import _0x34c8b0 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4a4551}from'../utils/editingutils.js';export default class J extends _0x3086f0{static get[_0x67dd5e(0x16c)](){return[_0x3bb1e3];}constructor(_0x2217e8){const _0x5101d3=_0x67dd5e;super(_0x2217e8),this[_0x5101d3(0x178)]=void 0x0,this[_0x5101d3(0x15f)]=_0x4a4551(_0x2217e8[_0x5101d3(0x16a)][_0x5101d3(0x162)](_0x5101d3(0x163))||[]),this[_0x5101d3(0x15c)]({'isActive':!0x1});}[_0x67dd5e(0x159)](){const _0x286186=_0x67dd5e,_0x52c6b3=this[_0x286186(0x15e)][_0x286186(0x177)][_0x286186(0x167)][_0x286186(0x16e)][_0x286186(0x174)]();this[_0x286186(0x158)]=this[_0x286186(0x15f)](_0x52c6b3);}[_0x67dd5e(0x176)](){const _0xeb336b=_0x67dd5e;this[_0xeb336b(0x178)]&&(this[_0xeb336b(0x170)](_0xeb336b(0x165)),this[_0xeb336b(0x178)]=void 0x0);const _0x43a612=this[_0xeb336b(0x15e)][_0xeb336b(0x177)][_0xeb336b(0x167)][_0xeb336b(0x16e)][_0xeb336b(0x174)]();_0x43a612&&(_0x43a612['is'](_0xeb336b(0x173),_0xeb336b(0x160))||_0x43a612['is'](_0xeb336b(0x173),_0xeb336b(0x16b)))&&(this[_0xeb336b(0x178)]=new _0x34c8b0(this[_0xeb336b(0x15e)],this[_0xeb336b(0x15e)][_0xeb336b(0x15d)][_0xeb336b(0x162)](_0x3bb1e3),_0x43a612),this[_0xeb336b(0x172)](_0xeb336b(0x165))['to'](this[_0xeb336b(0x178)],_0xeb336b(0x165)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ee13a=_0x33ca;(function(_0x3bb7d1,_0x2c9365){const _0x5672bc=_0x33ca,_0x3bada8=_0x3bb7d1();while(!![]){try{const _0x56828b=-parseInt(_0x5672bc(0x152))/0x1*(-parseInt(_0x5672bc(0x15c))/0x2)+parseInt(_0x5672bc(0x149))/0x3*(-parseInt(_0x5672bc(0x145))/0x4)+-parseInt(_0x5672bc(0x153))/0x5*(parseInt(_0x5672bc(0x14d))/0x6)+-parseInt(_0x5672bc(0x148))/0x7+-parseInt(_0x5672bc(0x14f))/0x8*(-parseInt(_0x5672bc(0x150))/0x9)+-parseInt(_0x5672bc(0x14e))/0xa*(parseInt(_0x5672bc(0x156))/0xb)+-parseInt(_0x5672bc(0x159))/0xc*(-parseInt(_0x5672bc(0x15b))/0xd);if(_0x56828b===_0x2c9365)break;else _0x3bada8['push'](_0x3bada8['shift']());}catch(_0x28651f){_0x3bada8['push'](_0x3bada8['shift']());}}}(_0x5d0b,0xe17ea));function _0x5d0b(){const _0x4fe237=['3408rtkKyH','31212HlLWBR','ImageEditing','1NbyszV','38600CPLPWt','UploadcareImageEditEditing','uploadcareImageEdit','11dncAoC','isPremiumPlugin','add','12PIotHx','pluginName','37657503hWLyoU','1421362cdOjyx','requires','522884YaJjQe','uploadcareImageReplace','commands','8321159KTuaYr','24hyIyHo','ImageUtils','isOfficialPlugin','init','306TthyqS','15329290BMXaud'];_0x5d0b=function(){return _0x4fe237;};return _0x5d0b();}import{Plugin as _0x7ad494}from'ckeditor5/src/core.js';import{Notification as _0x3711d9}from'ckeditor5/src/ui.js';import _0x397241 from'./uploadcareimageeditcommand.js';function _0x33ca(_0x4134ad,_0x381469){const _0x5d0b06=_0x5d0b();return _0x33ca=function(_0x33cacf,_0x598716){_0x33cacf=_0x33cacf-0x145;let _0x3e8b4c=_0x5d0b06[_0x33cacf];return _0x3e8b4c;},_0x33ca(_0x4134ad,_0x381469);}import _0x2e782e from'./uploadcareimagereplacecommand.js';import _0x3921a5 from'../uploadcareediting.js';export default class m extends _0x7ad494{static get[_0x3ee13a(0x15a)](){const _0x173108=_0x3ee13a;return _0x173108(0x154);}static get[_0x3ee13a(0x15d)](){const _0x3eda99=_0x3ee13a;return[_0x3921a5,_0x3711d9,_0x3eda99(0x14a),_0x3eda99(0x151)];}static get[_0x3ee13a(0x14b)](){return!0x0;}static get[_0x3ee13a(0x157)](){return!0x0;}[_0x3ee13a(0x14c)](){const _0x534915=_0x3ee13a,{editor:_0x53ee4c}=this;_0x53ee4c[_0x534915(0x147)][_0x534915(0x158)](_0x534915(0x155),new _0x397241(_0x53ee4c)),_0x53ee4c[_0x534915(0x147)][_0x534915(0x158)](_0x534915(0x146),new _0x2e782e(_0x53ee4c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xf1c169}from'ckeditor5/src/core.js';import{ButtonView as _0x165c79}from'ckeditor5/src/ui.js';import{createElement as _0x1bef4c}from'ckeditor5/src/utils.js';import _0x592236 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 _0xf1c169{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 _0x3e3070=this['editor'];_0x3e3070['ui']['componentFactory']['add']('uploadcareImageEdit',_0x11f1e1=>{const _0x2c0805=_0x3e3070['commands']['get']('uploadcareImageEdit'),_0x39d847=new _0x165c79(_0x11f1e1),t=_0x11f1e1['t'];return _0x39d847['set']({'icon':_0x592236,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x39d847['bind']('isEnabled')['to'](_0x2c0805),_0x39d847['bind']('isOn')['to'](_0x2c0805,'isActive'),this['listenTo'](_0x39d847,'execute',()=>{_0x3e3070['execute']('uploadcareImageEdit'),_0x3e3070['editing']['view']['focus']();}),_0x39d847;}),this['_initConfig']();}['_initConfig'](){const _0xa2d3b2=_0x1bef4c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xa2d3b2),this['listenTo'](this['editor'],'destroy',()=>{_0xa2d3b2['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4095(_0x114a5d,_0xaa4165){const _0x4a5e1f=_0x4a5e();return _0x4095=function(_0x409574,_0x5791ca){_0x409574=_0x409574-0xa0;let _0x5ef754=_0x4a5e1f[_0x409574];return _0x5ef754;},_0x4095(_0x114a5d,_0xaa4165);}const _0x38d2eb=_0x4095;(function(_0x1a9913,_0x240d5f){const _0x3092e8=_0x4095,_0x127e65=_0x1a9913();while(!![]){try{const _0x5f3ba5=parseInt(_0x3092e8(0xb7))/0x1+parseInt(_0x3092e8(0xad))/0x2+parseInt(_0x3092e8(0xa0))/0x3*(parseInt(_0x3092e8(0xb5))/0x4)+parseInt(_0x3092e8(0xa7))/0x5*(parseInt(_0x3092e8(0xb0))/0x6)+-parseInt(_0x3092e8(0xa2))/0x7*(-parseInt(_0x3092e8(0xac))/0x8)+-parseInt(_0x3092e8(0xb6))/0x9*(parseInt(_0x3092e8(0xb2))/0xa)+-parseInt(_0x3092e8(0xaa))/0xb;if(_0x5f3ba5===_0x240d5f)break;else _0x127e65['push'](_0x127e65['shift']());}catch(_0x571d2c){_0x127e65['push'](_0x127e65['shift']());}}}(_0x4a5e,0xe153f));function _0x4a5e(){const _0x105362=['sizes','2056zcsUxW','503352IpTEKX','getSelectedElement','setAttributes','6gRBTXx','editor','20mUYMAz','execute','refresh','2916092xrofIX','2760291CJeDNl','1514140hFjMdw','srcset','model','element','6xAJEzK','imageBlock','18102VLdNoi','change','removeAttribute','document','imageInline','7036505vuvPCl','isEnabled','selection','41353664EhdzWb'];_0x4a5e=function(){return _0x105362;};return _0x4a5e();}import{Command as _0x412092}from'ckeditor5/src/core.js';export default class O extends _0x412092{[_0x38d2eb(0xb4)](){const _0x16aa99=_0x38d2eb,_0x49d573=this[_0x16aa99(0xb1)][_0x16aa99(0xb9)][_0x16aa99(0xa5)][_0x16aa99(0xa9)][_0x16aa99(0xae)]();this[_0x16aa99(0xa8)]=Boolean(_0x49d573&&(_0x49d573['is'](_0x16aa99(0xba),_0x16aa99(0xa1))||_0x49d573['is'](_0x16aa99(0xba),_0x16aa99(0xa6))));}[_0x38d2eb(0xb3)](_0x32117a){const _0x362d89=_0x38d2eb,_0x3726ab=this[_0x362d89(0xb1)][_0x362d89(0xb9)][_0x362d89(0xa5)][_0x362d89(0xa9)][_0x362d89(0xae)]();this[_0x362d89(0xb1)][_0x362d89(0xb9)][_0x362d89(0xa3)](_0x37a6c3=>{const _0x2bfce1=_0x362d89;_0x37a6c3[_0x2bfce1(0xaf)](_0x32117a,_0x3726ab),_0x37a6c3[_0x2bfce1(0xa4)](_0x2bfce1(0xb8),_0x3726ab),_0x37a6c3[_0x2bfce1(0xa4)](_0x2bfce1(0xab),_0x3726ab);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x18ad(_0x20a2e6,_0x171985){var _0x337da9=_0x337d();return _0x18ad=function(_0x18ad58,_0x31c435){_0x18ad58=_0x18ad58-0x1a4;var _0x175b30=_0x337da9[_0x18ad58];return _0x175b30;},_0x18ad(_0x20a2e6,_0x171985);}var _0x4106a0=_0x18ad;function _0x337d(){var _0x139bec=['3828318DDoJaz','4386624tcqlbU','isPremiumPlugin','9658593hPuWdl','5607776nNybTS','66580XsBlyX','10sKYIWt','7gVpUZf','pluginName','6VTSMCF','requires','UploadcareImageEdit','2068265LOQaHN','isOfficialPlugin','94401UtuQea'];_0x337d=function(){return _0x139bec;};return _0x337d();}(function(_0x18a4bc,_0x1888a5){var _0x1a42ce=_0x18ad,_0x606212=_0x18a4bc();while(!![]){try{var _0x4ea089=parseInt(_0x1a42ce(0x1af))/0x1+-parseInt(_0x1a42ce(0x1a4))/0x2*(-parseInt(_0x1a42ce(0x1a9))/0x3)+-parseInt(_0x1a42ce(0x1ab))/0x4+parseInt(_0x1a42ce(0x1a7))/0x5+parseInt(_0x1a42ce(0x1aa))/0x6*(-parseInt(_0x1a42ce(0x1b1))/0x7)+parseInt(_0x1a42ce(0x1ae))/0x8+parseInt(_0x1a42ce(0x1ad))/0x9*(parseInt(_0x1a42ce(0x1b0))/0xa);if(_0x4ea089===_0x1888a5)break;else _0x606212['push'](_0x606212['shift']());}catch(_0x966b3c){_0x606212['push'](_0x606212['shift']());}}}(_0x337d,0x95eba));import{Plugin as _0x8357df}from'ckeditor5/src/core.js';import _0x1423b7 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x346580 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x8357df{static get[_0x4106a0(0x1b2)](){var _0x2b4d93=_0x4106a0;return _0x2b4d93(0x1a6);}static get[_0x4106a0(0x1a5)](){return[_0x1423b7,_0x346580];}static get[_0x4106a0(0x1a8)](){return!0x0;}static get[_0x4106a0(0x1ac)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ae2ec=_0x3344;(function(_0xf84d1c,_0x3020ff){const _0x2fc9ad=_0x3344,_0x2902dd=_0xf84d1c();while(!![]){try{const _0x2f5d96=parseInt(_0x2fc9ad(0xf4))/0x1+parseInt(_0x2fc9ad(0xbd))/0x2+-parseInt(_0x2fc9ad(0xea))/0x3+parseInt(_0x2fc9ad(0xd9))/0x4+parseInt(_0x2fc9ad(0xb8))/0x5+parseInt(_0x2fc9ad(0xef))/0x6*(-parseInt(_0x2fc9ad(0xc4))/0x7)+-parseInt(_0x2fc9ad(0xeb))/0x8;if(_0x2f5d96===_0x3020ff)break;else _0x2902dd['push'](_0x2902dd['shift']());}catch(_0x1d71cf){_0x2902dd['push'](_0x2902dd['shift']());}}}(_0xaa35,0x65b0d));import{Plugin as _0x392b5d,icons as _0x57867c}from'ckeditor5/src/core.js';function _0x3344(_0x3f805a,_0x149771){const _0xaa358b=_0xaa35();return _0x3344=function(_0x33448d,_0x5ddbc8){_0x33448d=_0x33448d-0xa5;let _0x36c1f0=_0xaa358b[_0x33448d];return _0x36c1f0;},_0x3344(_0x3f805a,_0x149771);}import{ButtonView as _0xde019a,MenuBarMenuListItemButtonView as _0x2f4cf5}from'ckeditor5/src/ui.js';import _0x1c8666 from'../theme/icons/dropbox.svg';import _0xd4a7fd from'../theme/icons/facebook.svg';import _0x2abb18 from'../theme/icons/google-drive.svg';import _0x1d7492 from'../theme/icons/google-photos.svg';import _0x4ce2c2 from'../theme/icons/link.svg';import _0x140f76 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x2fceb1}from'./uploadcareconfig.js';import{getTranslation as _0x488e3b}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';function _0xaa35(){const _0x46a721=['plugins','entries','registerIntegration','Insert','url','isPremiumPlugin','reduce','uploadcareLicenseKeyExpired','isImageSelected','Local','assetManager','featureNotAllowed','_createDropdownButtons','1441941qZiXuS','3059056MlmGjA','expired','evaluationLimit','uploadcareLicenseKeyTrialLimit','43644WvplqH','text','locale','GPhotos','URL','296548YwciRS','uploadcareLicenseKeyDomainLimit','isEnabled','GDrive','has','isOfficialPlugin','_createMenuBarButtons','bind','config','type','domainLimit','upload','commands','afterInit','trialLimit','tooltip','OneDrive','push','Replace','uploadcareLicenseKeyInvalid','1095635IQfwJN','invalid','licenseKey','uploadcareLicenseKeyValid','pluginName','750932KJfVuB','UploadcareUI','map','uploadcare','shortText','icon','execute','357lQnnFk','_createToolbarButton','ImageInsertUI','_getIntegrationKey','uploadcare.uploader.sourceList','_normalizeConfigSourceList','uploadcareLicenseKeyUsageLimit','_createButton','Facebook','Uploadcare','_showLicenseError','imageUpload','usageLimit','label','forEach','_licenseKeyCheckInterval','uploadcareLicenseKeyNotAllowed','editor','destroy','get','withText','3037548WNoHIJ','uploadcareLicenseKeyEvaluationLimit','init','Dropbox'];_0xaa35=function(){return _0x46a721;};return _0xaa35();}export default class e extends _0x392b5d{static get[_0x1ae2ec(0xbc)](){const _0xe321b8=_0x1ae2ec;return _0xe321b8(0xbe);}static get[_0x1ae2ec(0xa9)](){return!0x0;}static get[_0x1ae2ec(0xe2)](){return!0x0;}[_0x1ae2ec(0xdb)](){const _0x486a65=_0x1ae2ec;this[_0x486a65(0xba)]=this[_0x486a65(0xd5)][_0x486a65(0xac)][_0x486a65(0xd7)](_0x486a65(0xba));const _0x183662=this[_0x486a65(0xd5)];this[_0x486a65(0xd3)]=setInterval(()=>{const _0x12f317=_0x486a65;let _0xfd0b78;for(const _0x4774e9 in _0x183662){const _0x51b596=_0x4774e9,_0x25d436=_0x183662[_0x51b596];if(_0x12f317(0xbb)==_0x25d436||_0x12f317(0xb7)==_0x25d436||_0x12f317(0xe4)==_0x25d436||_0x12f317(0xa5)==_0x25d436||_0x12f317(0xd4)==_0x25d436||_0x12f317(0xda)==_0x25d436||_0x12f317(0xee)==_0x25d436||_0x12f317(0xca)==_0x25d436){delete _0x183662[_0x51b596],_0xfd0b78=_0x25d436,clearInterval(this[_0x12f317(0xd3)]),this[_0x12f317(0xd3)]=void 0x0;break;}}_0x12f317(0xb7)==_0xfd0b78&&_0x183662[_0x12f317(0xce)](_0x12f317(0xb9)),_0x12f317(0xe4)==_0xfd0b78&&_0x183662[_0x12f317(0xce)](_0x12f317(0xec)),_0x12f317(0xa5)==_0xfd0b78&&_0x183662[_0x12f317(0xce)](_0x12f317(0xae)),_0x12f317(0xd4)==_0xfd0b78&&_0x183662[_0x12f317(0xce)](_0x12f317(0xe8),_0x12f317(0xcd)),_0x12f317(0xda)==_0xfd0b78&&_0x183662[_0x12f317(0xce)](_0x12f317(0xed)),_0x12f317(0xee)==_0xfd0b78&&_0x183662[_0x12f317(0xce)](_0x12f317(0xb2)),_0x12f317(0xca)==_0xfd0b78&&_0x183662[_0x12f317(0xce)](_0x12f317(0xd0));},0x3e8);}[_0x1ae2ec(0xb1)](){const _0x299659=_0x1ae2ec,{editor:_0x367ed0}=this,_0x3f73ef=_0x367ed0[_0x299659(0xb0)][_0x299659(0xd7)](_0x299659(0xc0));if(!_0x3f73ef)return;const _0x4dd8e5=this[_0x299659(0xc9)](_0x367ed0[_0x299659(0xac)][_0x299659(0xd7)](_0x299659(0xc8)))[_0x299659(0xe3)]((_0x3fa768,_0x44f412)=>{const _0x31f1a3=_0x299659,_0x5c9609=this[_0x31f1a3(0xc7)](_0x44f412[_0x31f1a3(0xad)]);return _0x3fa768[_0x5c9609]||(_0x3fa768[_0x5c9609]=[]),_0x3fa768[_0x5c9609][_0x31f1a3(0xb5)](_0x44f412),_0x3fa768;},{});_0x367ed0[_0x299659(0xdd)][_0x299659(0xa8)](_0x299659(0xc6))&&_0x367ed0[_0x299659(0xb0)][_0x299659(0xd7)](_0x299659(0xc0))&&Object[_0x299659(0xde)](_0x4dd8e5)[_0x299659(0xd2)](([_0x7d6ae,_0x2952bd])=>{const _0x329ec8=_0x299659;_0x367ed0[_0x329ec8(0xdd)][_0x329ec8(0xd7)](_0x329ec8(0xc6))[_0x329ec8(0xdf)]({'name':_0x7d6ae,'observable':()=>_0x3f73ef,'buttonViewCreator':()=>this[_0x329ec8(0xc5)](_0x2952bd),'formViewCreator':()=>this[_0x329ec8(0xe9)](_0x2952bd),'menuBarButtonViewCreator':()=>this[_0x329ec8(0xaa)](_0x2952bd),'override':_0x329ec8(0xe7)!==_0x7d6ae});});}[_0x1ae2ec(0xd6)](){const _0x5ca386=_0x1ae2ec;super[_0x5ca386(0xd6)](),this[_0x5ca386(0xd3)]&&clearInterval(this[_0x5ca386(0xd3)]);}[_0x1ae2ec(0xc9)](_0x3b4ae0){const _0x566de4=_0x1ae2ec,{locale:_0x538e8d}=this[_0x566de4(0xd5)];return _0x3b4ae0[_0x566de4(0xbf)](_0xc7b807=>{const _0x322c55=_0x566de4,_0x21710a=_0x488e3b(_0x538e8d,_0xc7b807,_0x322c55(0xe0));switch(_0xc7b807){case _0x2fceb1[_0x322c55(0xe6)]:return{'icon':_0x57867c[_0x322c55(0xcf)],'type':_0x2fceb1[_0x322c55(0xe6)],..._0x21710a};case _0x2fceb1[_0x322c55(0xf3)]:return{'icon':_0x4ce2c2,'type':_0x2fceb1[_0x322c55(0xf3)],..._0x21710a};case _0x2fceb1[_0x322c55(0xdc)]:return{'icon':_0x1c8666,'type':_0x2fceb1[_0x322c55(0xdc)],..._0x21710a};case _0x2fceb1[_0x322c55(0xcc)]:return{'icon':_0xd4a7fd,'type':_0x2fceb1[_0x322c55(0xcc)],..._0x21710a};case _0x2fceb1[_0x322c55(0xa7)]:return{'icon':_0x2abb18,'type':_0x2fceb1[_0x322c55(0xa7)],..._0x21710a};case _0x2fceb1[_0x322c55(0xf2)]:return{'icon':_0x1d7492,'type':_0x2fceb1[_0x322c55(0xf2)],..._0x21710a};case _0x2fceb1[_0x322c55(0xb4)]:return{'icon':_0x140f76,'type':_0x2fceb1[_0x322c55(0xb4)],..._0x21710a};}});}[_0x1ae2ec(0xc7)](_0x55a5d7){const _0x2fcf45=_0x1ae2ec;switch(_0x55a5d7){case _0x2fceb1[_0x2fcf45(0xe6)]:return _0x2fcf45(0xaf);case _0x2fceb1[_0x2fcf45(0xf3)]:return _0x2fcf45(0xe1);default:return _0x2fcf45(0xe7);}}[_0x1ae2ec(0xcb)](_0x1d58c0,_0x3c720a){const _0x392af4=_0x1ae2ec,_0x54232e=this[_0x392af4(0xd5)],_0x167f86=new _0x1d58c0(_0x54232e[_0x392af4(0xf1)]),_0x4ce1d4=_0x54232e[_0x392af4(0xb0)][_0x392af4(0xd7)](_0x392af4(0xc0));return _0x167f86[_0x392af4(0xab)](_0x392af4(0xa6))['to'](_0x4ce1d4),_0x167f86['on'](_0x392af4(0xc3),()=>{const _0x2fd0fb=_0x392af4;_0x4ce1d4[_0x2fd0fb(0xc3)](_0x3c720a);}),_0x167f86;}[_0x1ae2ec(0xc5)](_0xe746ca){const _0x3adbc2=_0x1ae2ec,{locale:_0x1f8faf}=this[_0x3adbc2(0xd5)],_0x25a2fb=this[_0x3adbc2(0xd5)][_0x3adbc2(0xdd)][_0x3adbc2(0xd7)](_0x3adbc2(0xc6)),_0x4f95f8=_0xe746ca[0x0],_0x175f31=this[_0x3adbc2(0xcb)](_0xde019a,_0x4f95f8[_0x3adbc2(0xad)]);return _0x175f31[_0x3adbc2(0xc2)]=_0x4f95f8[_0x3adbc2(0xc2)],_0x175f31[_0x3adbc2(0xab)](_0x3adbc2(0xd1))['to'](_0x25a2fb,_0x3adbc2(0xe5),_0xa2566b=>_0x488e3b(_0x1f8faf,_0x4f95f8[_0x3adbc2(0xad)],_0xa2566b?_0x3adbc2(0xb6):_0x3adbc2(0xe0))[_0x3adbc2(0xf0)]),_0x175f31[_0x3adbc2(0xb3)]=!0x0,_0x175f31;}[_0x1ae2ec(0xe9)](_0x5c531f){const _0x131e95=_0x1ae2ec,{locale:_0x3a5c82}=this[_0x131e95(0xd5)],_0x1aa6f5=this[_0x131e95(0xd5)][_0x131e95(0xdd)][_0x131e95(0xd7)](_0x131e95(0xc6));return _0x5c531f[_0x131e95(0xbf)](_0x1ad1e4=>{const _0x363fb4=_0x131e95,_0x2a164c=this[_0x363fb4(0xcb)](_0xde019a,_0x1ad1e4[_0x363fb4(0xad)]);return _0x2a164c[_0x363fb4(0xd8)]=!0x0,_0x2a164c[_0x363fb4(0xc2)]=_0x1ad1e4[_0x363fb4(0xc2)],_0x2a164c[_0x363fb4(0xab)](_0x363fb4(0xd1))['to'](_0x1aa6f5,_0x363fb4(0xe5),_0x1d3dd6=>_0x488e3b(_0x3a5c82,_0x1ad1e4[_0x363fb4(0xad)],_0x1d3dd6?_0x363fb4(0xb6):_0x363fb4(0xe0))[_0x363fb4(0xf0)]),_0x2a164c;});}[_0x1ae2ec(0xaa)](_0x55bf9d){const _0x4bc53f=_0x1ae2ec;return _0x55bf9d[_0x4bc53f(0xbf)](_0x2520ba=>{const _0x423693=_0x4bc53f,_0x4107f2=this[_0x423693(0xcb)](_0x2f4cf5,_0x2520ba[_0x423693(0xad)]);return _0x4107f2[_0x423693(0xc2)]=_0x2520ba[_0x423693(0xc2)],_0x4107f2[_0x423693(0xd1)]=_0x2520ba[_0x423693(0xc1)],_0x4107f2;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x538e66}from'ckeditor5/src/core.js';import{FileRepository as _0x34c1cb}from'ckeditor5/src/upload.js';import _0x5476fc from'./uploadcareediting.js';import _0x78f0f4 from'./utils/uploadutils.js';import{getImageUrls as _0x406128}from'./utils/editingutils.js';export default class f extends _0x538e66{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x34c1cb,_0x5476fc];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x61a3f3=this['editor'];if(!!!_0x61a3f3['config']['get']('uploadcare'))return;_0x61a3f3['plugins']['get'](_0x34c1cb)['createUploadAdapter']=_0xfd6fd8=>new E(_0xfd6fd8,_0x61a3f3),_0x61a3f3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2217c1,{imageElement:_0x34939a,data:_0x513b47})=>{_0x61a3f3['model']['change'](_0x4aa697=>{_0x4aa697['setAttribute']('uploadcareImageId',_0x513b47['uploadcareImageId'],_0x34939a);});});}}class E{constructor(_0x234153,_0x121ba0){this['loader']=_0x234153,this['editor']=_0x121ba0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3656b1=this['editor']['config']['get']('uploadcare.pubkey'),_0x3925b2=await this['loader']['file'];return _0x78f0f4['upload']({'file':_0x3925b2,'publicKey':_0x3656b1,'signal':this['controller']['signal'],'onProgress':_0x9da451=>{_0x9da451&&_0x9da451['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x9da451['value']);}})['then'](async _0x284f71=>{const {imageFallbackUrl:_0x4507e3,imageSources:_0x13964b}=_0x406128(_0x284f71['cdnUrl'],_0x284f71['imageInfo']['width']);return{'uploadcareImageId':_0x284f71['uuid'],'default':_0x4507e3,'sources':_0x13964b};})['catch'](()=>{const _0x26730e=t('Cannot\x20upload\x20file:')+('\x20'+_0x3925b2['name']+'.');return Promise['reject'](_0x26730e);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x58d979}from'../uploadcareconfig.js';export function getTranslation(_0x5e182f,_0x503e17,_0x548fe8){const t=_0x5e182f['t'],_0x879f3f=_0x5e182f['t'];switch(_0x503e17){case _0x58d979['Local']:return{'text':_0x879f3f('Insert'===_0x548fe8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x879f3f('From\x20computer')};case _0x58d979['URL']:return{'text':'Insert'===_0x548fe8?_0x879f3f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x879f3f('Via\x20URL')};case _0x58d979['Dropbox']:return{'text':t('Insert'===_0x548fe8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x58d979['Facebook']:return{'text':t('Insert'===_0x548fe8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x58d979['GDrive']:return{'text':t('Insert'===_0x548fe8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x58d979['GPhotos']:return{'text':t('Insert'===_0x548fe8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x58d979['OneDrive']:return{'text':t('Insert'===_0x548fe8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x503e17;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2f7d8d=_0x167c;(function(_0x4ccebe,_0x47ea53){var _0x4c6af9=_0x167c,_0x3c4a9f=_0x4ccebe();while(!![]){try{var _0x316d8a=parseInt(_0x4c6af9(0x182))/0x1*(parseInt(_0x4c6af9(0x181))/0x2)+parseInt(_0x4c6af9(0x17a))/0x3*(parseInt(_0x4c6af9(0x18b))/0x4)+parseInt(_0x4c6af9(0x17d))/0x5*(parseInt(_0x4c6af9(0x180))/0x6)+-parseInt(_0x4c6af9(0x17c))/0x7*(parseInt(_0x4c6af9(0x186))/0x8)+parseInt(_0x4c6af9(0x179))/0x9+parseInt(_0x4c6af9(0x17b))/0xa+parseInt(_0x4c6af9(0x188))/0xb*(-parseInt(_0x4c6af9(0x189))/0xc);if(_0x316d8a===_0x47ea53)break;else _0x3c4a9f['push'](_0x3c4a9f['shift']());}catch(_0x35fb20){_0x3c4a9f['push'](_0x3c4a9f['shift']());}}}(_0x2d99,0x81860));import{FocusTracker as _0xd3d487}from'ckeditor5/src/utils.js';import{View as _0x515a23,FocusCycler as _0x2d65b8}from'ckeditor5/src/ui.js';function _0x167c(_0x67748c,_0x1ad9a5){var _0x2d99de=_0x2d99();return _0x167c=function(_0x167ce5,_0x5a4564){_0x167ce5=_0x167ce5-0x178;var _0x4e920e=_0x2d99de[_0x167ce5];return _0x4e920e;},_0x167c(_0x67748c,_0x1ad9a5);}import'../../theme/uploadcare-form.css';function _0x2d99(){var _0x29a76b=['4gkjvIK','focusCycler','div','7993044jwCPxD','2746959rMzMZV','3723860kwWoQi','7pqtPiV','199695bUyyIB','bindTemplate','createCollection','30BSjrMo','42FzXSja','11168TktHmo','true','focusTracker','forwardCycle','2246872ccfSKD','getFocusableElement','50611GoAjIf','4692YyfqqU','fire'];_0x2d99=function(){return _0x29a76b;};return _0x2d99();}export default class q extends _0x515a23{constructor(_0x17b2b8){var _0x3e81c8=_0x167c;super(_0x17b2b8),this[_0x3e81c8(0x184)]=new _0xd3d487(),this[_0x3e81c8(0x18c)]=new _0x2d65b8({'focusables':this[_0x3e81c8(0x17f)](),'focusTracker':this[_0x3e81c8(0x184)]});}[_0x2f7d8d(0x187)](){var _0x1568eb=_0x2f7d8d;return{'tag':_0x1568eb(0x178),'attributes':{'aria-hidden':_0x1568eb(0x183),'tabindex':'0'},'on':{'focus':this[_0x1568eb(0x17e)]['to'](()=>{var _0x5e0325=_0x1568eb;this[_0x5e0325(0x18c)][_0x5e0325(0x18a)](_0x5e0325(0x185));})}};}}
|