@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.4 → 45.2.1-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x53a1e4=_0x23a8;(function(_0x4a17dc,_0x3a597d){const _0x49eb0f=_0x23a8,_0x3445b0=_0x4a17dc();while(!![]){try{const _0x1cbb7b=-parseInt(_0x49eb0f(0x1cc))/0x1+-parseInt(_0x49eb0f(0x1cd))/0x2+-parseInt(_0x49eb0f(0x1fb))/0x3*(parseInt(_0x49eb0f(0x1f9))/0x4)+-parseInt(_0x49eb0f(0x1e9))/0x5+parseInt(_0x49eb0f(0x1d0))/0x6*(-parseInt(_0x49eb0f(0x1f3))/0x7)+parseInt(_0x49eb0f(0x1f4))/0x8*(parseInt(_0x49eb0f(0x1ca))/0x9)+parseInt(_0x49eb0f(0x1cf))/0xa;if(_0x1cbb7b===_0x3a597d)break;else _0x3445b0['push'](_0x3445b0['shift']());}catch(_0x3384bb){_0x3445b0['push'](_0x3445b0['shift']());}}}(_0x4cc3,0xea4ec));function _0x23a8(_0x17d870,_0x13b250){const _0x4cc3e0=_0x4cc3();return _0x23a8=function(_0x23a86e,_0x1a79ce){_0x23a86e=_0x23a86e-0x1b5;let _0x5a08c5=_0x4cc3e0[_0x23a86e];return _0x5a08c5;},_0x23a8(_0x17d870,_0x13b250);}import{Plugin as _0x33a267}from'ckeditor5/src/core.js';import{Dialog as _0x13d0e5}from'ckeditor5/src/ui.js';import{createElement as _0x17c3f1,global as _0x132f6c,uid as _0x278f30}from'ckeditor5/src/utils.js';import _0x511c5b from'./uploadcarecommand.js';import _0x1a0735 from'./uploadcareuploadadapter.js';function _0x4cc3(){const _0x47321a=['map','render','commands','uploadcareImageReplace','once','extend','afterInit','isRegistered','schema','uploadcareImageId','join','listenTo','_initSchema','downcast','view','upcast','config','fromCharCode','editor','PictureEditing','body','conversion','_initConversion','_initConfig','uploadcare.uploader','9iiEjKY','model','452750tnyvUj','257206HobvbV','remove','34091560MCHgVb','2601330xDJbxx','isPremiumPlugin','appendChild','contentLanguage','elementToAttribute','_initCtx','uc-config','attributeToAttribute','document','locale','isOfficialPlugin','href','pluginName','data-uc-image-id','get','querySelector','getSelectedElement','execute','init','removeAttribute','for','true','#uc-icon-arrow-down','input[uploadcare-file-input]','imageBlock','7703570tLxFHd','_initImageProcessingIndicator','UploadcareEditing','requires','closeMax','insertImage','add','destroy','uploadcare','configElement','14bTFEYt','10110008iNzuRk','imageInline','uploader','ctxElement','getAttribute','8iOHakg','\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','1086009EtBNIA','_ctxElement','uploadcare.pubkey','uc-upload-ctx-provider','editing','cleanupImage','iconHrefResolver','_configElement','selection','replaceImageSource'];_0x4cc3=function(){return _0x47321a;};return _0x4cc3();}import{showImageProcessingIndicator as _0x12c239}from'./utils/editingutils.js';export default class i extends _0x33a267{[_0x53a1e4(0x202)]=null;[_0x53a1e4(0x1fc)]=null;static get[_0x53a1e4(0x1dc)](){const _0x2f8f55=_0x53a1e4;return _0x2f8f55(0x1eb);}static get[_0x53a1e4(0x1ec)](){const _0x223a7b=_0x53a1e4;return[_0x223a7b(0x1c4),_0x1a0735,_0x13d0e5];}static get[_0x53a1e4(0x1da)](){return!0x0;}static get[_0x53a1e4(0x1d1)](){return!0x0;}get[_0x53a1e4(0x1f2)](){const _0xf4342f=_0x53a1e4;return this[_0xf4342f(0x202)];}get[_0x53a1e4(0x1f7)](){const _0x29e844=_0x53a1e4;return this[_0x29e844(0x1fc)];}[_0x53a1e4(0x1e2)](){const _0x1485a3=_0x53a1e4,_0x689081=this[_0x1485a3(0x1c3)];_0x689081[_0x1485a3(0x207)][_0x1485a3(0x1ef)](_0x1485a3(0x1f1),new _0x511c5b(_0x689081));}[_0x53a1e4(0x1b7)](){const _0x21aefc=_0x53a1e4;this[_0x21aefc(0x1bd)](),this[_0x21aefc(0x1c7)](),this[_0x21aefc(0x1c8)](),this[_0x21aefc(0x1d5)](),this[_0x21aefc(0x1ea)](),this[_0x21aefc(0x1bc)](this[_0x21aefc(0x1c3)],_0x21aefc(0x1f0),()=>{const _0x14df02=_0x21aefc;this[_0x14df02(0x202)]&&(this[_0x14df02(0x202)][_0x14df02(0x1ce)](),this[_0x14df02(0x202)]=null),this[_0x14df02(0x1fc)]&&(this[_0x14df02(0x1fc)][_0x14df02(0x1ce)](),this[_0x14df02(0x1fc)]=null);const _0x1f242a=_0x132f6c[_0x14df02(0x1d8)][_0x14df02(0x1df)](_0x14df02(0x1e7));_0x1f242a&&_0x1f242a[_0x14df02(0x1ce)]();}),async function(_0x1d0f7e){const _0x445162=_0x40192c([0x44,0x61,0x72,0x78,0x6a,0x4a,0x41,0x36,0x42,0x4f,0x30,0x49,0x55,0x74,0x67,0x65,0x77,0x51,0x38,0x63,0x35,0x56,0x52,0x4b,0x32,0x50,0x4c,0x54,0x70,0x7a,0x71,0x75,0x58,0x4d,0x46,0x6f,0x79,0x69,0x48,0x43,0x66,0x34,0x6c,0x76,0x57,0x39,0x6e,0x6b,0x73,0x59,0x5a,0x31,0x4e,0x53,0x45,0x6d,0x33,0x64,0x68,0x37,0x47,0x62]),_0x236b88=0x3c5472bd,_0x5a8612=0x3c5319bd^_0x236b88,_0x4574d7=window[_0x40192c([0x44,0x61,0x74,0x65])][_0x40192c([0x6e,0x6f,0x77])](),_0x20de96=_0x1d0f7e[_0x40192c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ac7ef=new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48e6eb=>{_0x20de96[_0x40192c([0x6f,0x6e,0x63,0x65])](_0x40192c([0x72,0x65,0x61,0x64,0x79]),_0x48e6eb);}),_0x34f9dc={[_0x40192c([0x6b,0x74,0x79])]:_0x40192c([0x45,0x43]),[_0x40192c([0x75,0x73,0x65])]:_0x40192c([0x73,0x69,0x67]),[_0x40192c([0x63,0x72,0x76])]:_0x40192c([0x50,0x2d,0x32,0x35,0x36]),[_0x40192c([0x78])]:_0x40192c([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]),[_0x40192c([0x79])]:_0x40192c([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]),[_0x40192c([0x61,0x6c,0x67])]:_0x40192c([0x45,0x53,0x32,0x35,0x36])},_0x423339=_0x20de96[_0x40192c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40192c([0x67,0x65,0x74])](_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x389e27(){let _0x59d3fe,_0xe4a660=null,_0x63de36=null;try{if(_0x423339==_0x40192c([0x47,0x50,0x4c]))return _0x40192c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59d3fe=_0x225cf9(),!_0x59d3fe)return _0x40192c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59d3fe[_0x40192c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x63de36=_0x1b79db(_0x59d3fe[_0x40192c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59d3fe[_0x40192c([0x6a,0x74,0x69])])),await _0x1d1d4d()?_0x4f3363()?_0x2b8e78()?_0x40192c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x243c62()?(_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40192c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe4a660=_0x59ea2f(_0x40192c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40192c([0x74,0x72,0x69,0x61,0x6c])&&(_0xe4a660=_0x59ea2f(_0x40192c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x117a49()):_0x40192c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40192c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40192c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40192c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b8e78(){const _0x3a87e8=[_0x40192c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40192c([0x74,0x72,0x69,0x61,0x6c])][_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4574d7/0x3e8:0xe10*_0x5a8612;return _0x59d3fe[_0x40192c([0x65,0x78,0x70])]<_0x3a87e8;}function _0x4f3363(){const _0x6ea1a6=_0x59d3fe[_0x40192c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x6ea1a6&&(!!_0x6ea1a6[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40192c([0x2a]))||!!_0x6ea1a6[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40192c([0x55,0x50,0x4c,0x43])));}function _0x243c62(){const _0x47ae69=_0x23a8,_0x1148e5=_0x59d3fe[_0x40192c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1148e5||0x0==_0x1148e5[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x521789}=new URL(window[_0x40192c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x47ae69(0x1db)]);if(_0x1148e5[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x521789))return!0x0;const _0x137475=_0x521789[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e]));return _0x1148e5[_0x40192c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x569351=>_0x569351[_0x40192c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40192c([0x2a])))[_0x40192c([0x6d,0x61,0x70])](_0x513a95=>_0x513a95[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e])))[_0x40192c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2520d3=>_0x2520d3[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x137475[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40192c([0x6d,0x61,0x70])](_0x4bda73=>Array(_0x137475[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4bda73[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40192c([0x66,0x69,0x6c,0x6c])](_0x4bda73[0x0]===_0x40192c([0x2a])?_0x40192c([0x2a]):'')[_0x40192c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4bda73))[_0x40192c([0x73,0x6f,0x6d,0x65])](_0x3a584d=>_0x137475[_0x40192c([0x65,0x76,0x65,0x72,0x79])]((_0x505972,_0x623ac7)=>_0x3a584d[_0x623ac7]===_0x505972||_0x3a584d[_0x623ac7]===_0x40192c([0x2a])));}function _0x117a49(){return _0xe4a660&&_0x63de36?new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a2725,_0x15e31b)=>{_0xe4a660[_0x40192c([0x74,0x68,0x65,0x6e])](_0x4a2725,_0x15e31b),_0x63de36[_0x40192c([0x74,0x68,0x65,0x6e])](_0x42e370=>{_0x42e370!=_0x40192c([0x56,0x61,0x6c,0x69,0x64])&&_0x4a2725(_0x42e370);},_0x15e31b);}):_0xe4a660||_0x63de36||_0x40192c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b79db(_0x373491,_0xdfac45){return new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x509756=>{if(_0x20c34f())return _0x509756(_0x40192c([0x56,0x61,0x6c,0x69,0x64]));_0x574269(),_0x20de96[_0x40192c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40192c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35cd46=!0x1;const _0x2cc2f1=_0x278f30();function _0x404413(_0x26f468){return!!_0x26f468&&(typeof _0x26f468===_0x40192c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26f468===_0x40192c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26f468[_0x40192c([0x74,0x68,0x65,0x6e])]===_0x40192c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26f468[_0x40192c([0x63,0x61,0x74,0x63,0x68])]===_0x40192c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f1849(_0x1c2f54){_0x28b011(_0x1c2f54)[_0x40192c([0x74,0x68,0x65,0x6e])](_0x1fffef=>{if(!_0x1fffef||_0x1fffef[_0x40192c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40192c([0x6f,0x6b]))return _0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcb043a(_0x58155a(_0x2cc2f1+_0xdfac45))!=_0x1fffef[_0x40192c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40192c([0x56,0x61,0x6c,0x69,0x64]);})[_0x40192c([0x74,0x68,0x65,0x6e])](_0xaf5086=>(_0x373987(),_0xaf5086),()=>{const _0x2248d5=_0x50b65d();return null==_0x2248d5?(_0x373987(),_0x40192c([0x56,0x61,0x6c,0x69,0x64])):_0x40192c(_0x4574d7-_0x2248d5>(0x1858f6bd^_0x236b88)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40192c([0x74,0x68,0x65,0x6e])](_0x509756)[_0x40192c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x509756(_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x495e0f=0x3c629c3d^_0x236b88;function _0x373987(){const _0x4dada0=_0x40192c([0x6c,0x6c,0x63,0x74,0x2d])+_0xcb043a(_0x58155a(_0x373491)),_0x169485=_0x2f997c(_0xcb043a(window[_0x40192c([0x4d,0x61,0x74,0x68])][_0x40192c([0x63,0x65,0x69,0x6c])](_0x4574d7/_0x495e0f)));window[_0x40192c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40192c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dada0,_0x169485);}function _0x50b65d(){const _0x1ca05e=_0x40192c([0x6c,0x6c,0x63,0x74,0x2d])+_0xcb043a(_0x58155a(_0x373491)),_0x2d6187=window[_0x40192c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40192c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ca05e);return _0x2d6187?window[_0x40192c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f997c(_0x2d6187),0x10)*_0x495e0f:null;}function _0x28b011(_0x4b9f80){return new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c97af,_0x3eee65)=>{_0x4b9f80[_0x40192c([0x74,0x68,0x65,0x6e])](_0x3c97af,_0x3eee65),window[_0x40192c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3eee65,0x3c55a67d^_0x236b88);});}}_0x20de96[_0x40192c([0x6f,0x6e])](_0x40192c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f5b91,_0x1abd84)=>{if(_0x1abd84[0x0]!=_0x373491)return _0x509756(_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1abd84[0x1]={..._0x1abd84[0x1],[_0x40192c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2cc2f1};},{[_0x40192c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40192c([0x68,0x69,0x67,0x68])}),_0x20de96[_0x40192c([0x6f,0x6e])](_0x40192c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x659cce=>{_0x404413(_0x659cce[_0x40192c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35cd46=!0x0,_0x1f1849(_0x659cce[_0x40192c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40192c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40192c([0x6c,0x6f,0x77])}),_0x5ac7ef[_0x40192c([0x74,0x68,0x65,0x6e])](()=>{_0x35cd46||_0x509756(_0x40192c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x20c34f(){return _0x20de96[_0x40192c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40192c([0x76,0x69,0x65,0x77])][_0x40192c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40192c([0x61,0x75,0x74,0x6f]);}function _0x574269(){_0x20de96[_0x40192c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40192c([0x76,0x69,0x65,0x77])][_0x40192c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40192c([0x61,0x75,0x74,0x6f]);}}function _0x59ea2f(_0x362618){const _0x34e441=[new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x374400=>setTimeout(_0x374400,0x3c5d4c71^_0x236b88)),_0x5ac7ef[_0x40192c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4206=>{let _0x273541=0x0;_0x20de96[_0x40192c([0x6d,0x6f,0x64,0x65,0x6c])][_0x40192c([0x6f,0x6e])](_0x40192c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x93c2b8,_0x420e21)=>{_0x420e21[0x0][_0x40192c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x273541++,_0x273541==(0x3c547345^_0x236b88)&&(_0x5f4206(),_0x93c2b8[_0x40192c([0x6f,0x66,0x66])]());});}))];return window[_0x40192c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40192c([0x72,0x61,0x63,0x65])](_0x34e441)[_0x40192c([0x74,0x68,0x65,0x6e])](()=>_0x362618);}async function _0x4e89fe(){await _0x5ac7ef,_0x20de96[_0x40192c([0x6d,0x6f,0x64,0x65,0x6c])][_0x40192c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c2387,_0x20de96[_0x40192c([0x6d,0x6f,0x64,0x65,0x6c])][_0x40192c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c2387,_0x20de96[_0x40192c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40192c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51b7de(_0x534e26){const _0x39aebb=_0x5d42e8();_0x20de96[_0x39aebb]=_0x40192c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x534e26,_0x534e26!=_0x40192c([0x56,0x61,0x6c,0x69,0x64])&&_0x4e89fe();}function _0x5d42e8(){const _0xd3a1f=window[_0x40192c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40192c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40192c([0x6e,0x6f,0x77])]())[_0x40192c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40192c([0x2e]),'');let _0x5457b3=_0x40192c([0x44]);for(let _0x4baee3=0x0;_0x4baee3<_0xd3a1f[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4baee3+=0x2){let _0x2f57e9=window[_0x40192c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd3a1f[_0x40192c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4baee3,_0x4baee3+0x2));_0x2f57e9>=_0x445162[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f57e9-=_0x445162[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5457b3+=_0x445162[_0x2f57e9];}return _0x5457b3;}function _0x225cf9(){const _0xd172bb=_0x423339[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e]));if(0x3!=_0xd172bb[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8c1308(_0xd172bb[0x1]);function _0x8c1308(_0x3fa42a){const _0x1848a0=_0x5bde0c(_0x3fa42a);return _0x1848a0&&_0x114586()?_0x1848a0:null;function _0x114586(){const _0x47b282=_0x1848a0[_0x40192c([0x6a,0x74,0x69])],_0x92e07a=window[_0x40192c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47b282[_0x40192c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47b282[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1327f7={..._0x1848a0,[_0x40192c([0x6a,0x74,0x69])]:_0x47b282[_0x40192c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47b282[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1327f7[_0x40192c([0x76,0x63])],_0x58155a(_0x1327f7)==_0x92e07a;}}}async function _0x1d1d4d(){let _0x224c91=!0x0;try{const _0x38e670=_0x423339[_0x40192c([0x73,0x70,0x6c,0x69,0x74])](_0x40192c([0x2e])),[_0x2047a2,_0x18e49f,_0x52364e]=_0x38e670;return _0x87b5(_0x2047a2),await _0x24069e(_0x2047a2,_0x18e49f,_0x52364e),_0x224c91;}catch{return!0x1;}function _0x87b5(_0x1ffd02){const _0x58e6c4=_0x5bde0c(_0x1ffd02);_0x58e6c4&&_0x58e6c4[_0x40192c([0x61,0x6c,0x67])]==_0x40192c([0x45,0x53,0x32,0x35,0x36])||(_0x224c91=!0x1);}async function _0x24069e(_0x40802f,_0x52d4b1,_0x55a12a){const _0x4d64ef=window[_0x40192c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40192c([0x66,0x72,0x6f,0x6d])](_0x34cc5f(_0x55a12a),_0x1917d0=>_0x1917d0[_0x40192c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x86ed8f=new window[(_0x40192c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40192c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40802f+_0x40192c([0x2e])+_0x52d4b1),_0x48103d=window[_0x40192c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40192c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48103d)return;const _0x2d7e64=await _0x48103d[_0x40192c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40192c([0x6a,0x77,0x6b]),_0x34f9dc,{[_0x40192c([0x6e,0x61,0x6d,0x65])]:_0x40192c([0x45,0x43,0x44,0x53,0x41]),[_0x40192c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40192c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40192c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48103d[_0x40192c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40192c([0x6e,0x61,0x6d,0x65])]:_0x40192c([0x45,0x43,0x44,0x53,0x41]),[_0x40192c([0x68,0x61,0x73,0x68])]:{[_0x40192c([0x6e,0x61,0x6d,0x65])]:_0x40192c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d7e64,_0x4d64ef,_0x86ed8f)||(_0x224c91=!0x1);}}function _0x5bde0c(_0xcfa4ff){return _0xcfa4ff[_0x40192c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40192c([0x65,0x79]))?JSON[_0x40192c([0x70,0x61,0x72,0x73,0x65])](_0x34cc5f(_0xcfa4ff)):null;}function _0x34cc5f(_0x2f5ca8){return window[_0x40192c([0x61,0x74,0x6f,0x62])](_0x2f5ca8[_0x40192c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40192c([0x2b]))[_0x40192c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40192c([0x2f])));}function _0x58155a(_0x4fefd2){let _0x4b799d=0x1505;function _0x164739(_0x4343b3){for(let _0x53fb7c=0x0;_0x53fb7c<_0x4343b3[_0x40192c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53fb7c++){const _0x36e31c=_0x4343b3[_0x40192c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53fb7c);_0x4b799d=(_0x4b799d<<0x5)+_0x4b799d+_0x36e31c,_0x4b799d&=_0x4b799d;}}function _0x55eab3(_0x468dad){Array[_0x40192c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x468dad)?_0x468dad[_0x40192c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x55eab3):_0x468dad&&typeof _0x468dad==_0x40192c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40192c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x468dad)[_0x40192c([0x73,0x6f,0x72,0x74])]()[_0x40192c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x46238f,_0x299068])=>{_0x164739(_0x46238f),_0x55eab3(_0x299068);}):_0x164739(window[_0x40192c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x468dad));}return _0x55eab3(_0x4fefd2),_0x4b799d>>>0x0;}function _0xcb043a(_0x15a5d7){return _0x15a5d7[_0x40192c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40192c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40192c([0x30]));}function _0x2f997c(_0x32e826){return _0x32e826[_0x40192c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40192c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40192c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c2387(){}function _0x40192c(_0x213c25){const _0x2dceed=_0x23a8;return _0x213c25[_0x2dceed(0x205)](_0x53fba1=>String[_0x2dceed(0x1c2)](_0x53fba1))[_0x2dceed(0x1bb)]('');}_0x51b7de(await _0x389e27());}(this);}[_0x53a1e4(0x1bd)](){const _0x56b201=_0x53a1e4,_0x41f04b=this[_0x56b201(0x1c3)][_0x56b201(0x1cb)][_0x56b201(0x1b9)];_0x41f04b[_0x56b201(0x1b8)](_0x56b201(0x1e8))&&_0x41f04b[_0x56b201(0x1b6)](_0x56b201(0x1e8),{'allowAttributes':[_0x56b201(0x1ba)]}),_0x41f04b[_0x56b201(0x1b8)](_0x56b201(0x1f5))&&_0x41f04b[_0x56b201(0x1b6)](_0x56b201(0x1f5),{'allowAttributes':[_0x56b201(0x1ba)]});}[_0x53a1e4(0x1c7)](){const _0x3389a3=_0x53a1e4,_0xc4cf67=this[_0x3389a3(0x1c3)];_0xc4cf67[_0x3389a3(0x1c6)][_0x3389a3(0x1e4)](_0x3389a3(0x1be))[_0x3389a3(0x1d7)]({'model':_0x3389a3(0x1ba),'view':_0x3389a3(0x1dd)}),_0xc4cf67[_0x3389a3(0x1c6)][_0x3389a3(0x1e4)](_0x3389a3(0x1c0))[_0x3389a3(0x1d4)]({'model':{'key':_0x3389a3(0x1ba),'value':_0x4acd9f=>_0x4acd9f[_0x3389a3(0x1f8)](_0x3389a3(0x1dd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x599928=_0xc4cf67[_0x3389a3(0x207)][_0x3389a3(0x1de)](_0x3389a3(0x204));_0x599928&&this[_0x3389a3(0x1bc)](_0x599928,_0x3389a3(0x200),(_0x3ed6c5,[_0x164d8a,_0x38ff51])=>{const _0x39bb55=_0x3389a3;_0x164d8a[_0x39bb55(0x1e3)](_0x39bb55(0x1ba),_0x38ff51);});}[_0x53a1e4(0x1c8)](){const _0x543f54=_0x53a1e4,_0x41cc44=this[_0x543f54(0x1c3)][_0x543f54(0x1c1)][_0x543f54(0x1de)](_0x543f54(0x1c9))||{},_0x5d645a=this[_0x543f54(0x1c3)][_0x543f54(0x1c1)][_0x543f54(0x1de)](_0x543f54(0x1fd))||'';this[_0x543f54(0x202)]=_0x17c3f1(_0x132f6c[_0x543f54(0x1d8)],_0x543f54(0x1d6),{..._0x41cc44,'pubkey':_0x5d645a,'ctx-name':_0x543f54(0x1f6),'sourceList':'','imgOnly':_0x543f54(0x1e5),'removeCopyright':_0x543f54(0x1e5),'localeName':this[_0x543f54(0x1c3)][_0x543f54(0x1d9)][_0x543f54(0x1d3)],'externalSourcesEmbedCss':_0x543f54(0x1fa)}),this[_0x543f54(0x202)][_0x543f54(0x201)]=_0x25e657=>{const _0x10c1a2=_0x543f54;if(_0x10c1a2(0x1ed)==_0x25e657)return _0x10c1a2(0x1e6);},_0x132f6c[_0x543f54(0x1d8)][_0x543f54(0x1c5)][_0x543f54(0x1d2)](this[_0x543f54(0x202)]);}[_0x53a1e4(0x1d5)](){const _0x34b1f5=_0x53a1e4;this[_0x34b1f5(0x1fc)]=_0x17c3f1(_0x132f6c[_0x34b1f5(0x1d8)],_0x34b1f5(0x1fe),{'ctx-name':_0x34b1f5(0x1f6)}),_0x132f6c[_0x34b1f5(0x1d8)][_0x34b1f5(0x1c5)][_0x34b1f5(0x1d2)](this[_0x34b1f5(0x1fc)]);}[_0x53a1e4(0x1ea)](){const _0x2a4fd6=_0x53a1e4,_0x3e6e22=this[_0x2a4fd6(0x1c3)][_0x2a4fd6(0x207)][_0x2a4fd6(0x1de)](_0x2a4fd6(0x1ee));_0x3e6e22&&this[_0x2a4fd6(0x1bc)](_0x3e6e22,_0x2a4fd6(0x1e1),()=>{const _0x4d9d38=_0x2a4fd6,_0x3cfc96=this[_0x4d9d38(0x1c3)][_0x4d9d38(0x1cb)][_0x4d9d38(0x1d8)][_0x4d9d38(0x203)][_0x4d9d38(0x1e0)]();_0x3cfc96&&_0x3cfc96[_0x4d9d38(0x1f8)](_0x4d9d38(0x1ba))&&this[_0x4d9d38(0x1c3)][_0x4d9d38(0x1ff)][_0x4d9d38(0x1bf)][_0x4d9d38(0x1b5)](_0x4d9d38(0x206),()=>{const _0x3aab76=_0x4d9d38;_0x12c239(this[_0x3aab76(0x1c3)],_0x3cfc96);});});const _0x46fb7d=this[_0x2a4fd6(0x1c3)][_0x2a4fd6(0x207)][_0x2a4fd6(0x1de)](_0x2a4fd6(0x208));_0x46fb7d&&this[_0x2a4fd6(0x1bc)](_0x46fb7d,_0x2a4fd6(0x1e1),()=>{const _0x3eeb05=_0x2a4fd6,_0x4c78b5=this[_0x3eeb05(0x1c3)][_0x3eeb05(0x1cb)][_0x3eeb05(0x1d8)][_0x3eeb05(0x203)][_0x3eeb05(0x1e0)]();_0x4c78b5&&_0x4c78b5[_0x3eeb05(0x1f8)](_0x3eeb05(0x1ba))&&this[_0x3eeb05(0x1c3)][_0x3eeb05(0x1ff)][_0x3eeb05(0x1bf)][_0x3eeb05(0x1b5)](_0x3eeb05(0x206),()=>{const _0x4ce589=_0x3eeb05;_0x12c239(this[_0x4ce589(0x1c3)],_0x4c78b5);});});}}
|
|
23
|
+
function _0x1f27(_0x354dd3,_0x1a2613){const _0x2bae7f=_0x2bae();return _0x1f27=function(_0x1f27b3,_0x300e59){_0x1f27b3=_0x1f27b3-0xaa;let _0x4b38c2=_0x2bae7f[_0x1f27b3];return _0x4b38c2;},_0x1f27(_0x354dd3,_0x1a2613);}const _0x2f6e4d=_0x1f27;(function(_0xf460c4,_0x4e2f7e){const _0x5c908c=_0x1f27,_0x1c5d98=_0xf460c4();while(!![]){try{const _0x126b5e=-parseInt(_0x5c908c(0xee))/0x1*(parseInt(_0x5c908c(0xe2))/0x2)+-parseInt(_0x5c908c(0xd3))/0x3+parseInt(_0x5c908c(0xbf))/0x4+parseInt(_0x5c908c(0xfe))/0x5*(-parseInt(_0x5c908c(0xd1))/0x6)+parseInt(_0x5c908c(0xc2))/0x7*(-parseInt(_0x5c908c(0xb1))/0x8)+parseInt(_0x5c908c(0xe8))/0x9*(-parseInt(_0x5c908c(0xd4))/0xa)+parseInt(_0x5c908c(0xba))/0xb;if(_0x126b5e===_0x4e2f7e)break;else _0x1c5d98['push'](_0x1c5d98['shift']());}catch(_0x1e49e7){_0x1c5d98['push'](_0x1c5d98['shift']());}}}(_0x2bae,0x28064));import{Plugin as _0x4d9ed9}from'ckeditor5/src/core.js';import{Dialog as _0x3a3cc6}from'ckeditor5/src/ui.js';import{createElement as _0xb2bbb2,global as _0x3e022c,uid as _0x675505}from'ckeditor5/src/utils.js';import _0x303e81 from'./uploadcarecommand.js';import _0x5a503c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x26b8d8}from'./utils/editingutils.js';function _0x2bae(){const _0x331d22=['cleanupImage','_ctxElement','requires','add','354rwYMwG','pluginName','619479shCfss','740fLQHYv','config','data-uc-image-id','map','elementToAttribute','uploadcare','_initImageProcessingIndicator','uploadcare.uploader','afterInit','getSelectedElement','model','UploadcareEditing','true','isOfficialPlugin','300332DoqIAB','_configElement','#uc-icon-arrow-down','attributeToAttribute','imageBlock','downcast','38052GbslOn','PictureEditing','selection','querySelector','uc-upload-ctx-provider','uploader','1cmBAyd','upcast','uploadcare.pubkey','extend','iconHrefResolver','init','configElement','fromCharCode','for','href','input[uploadcare-file-input]','_initCtx','appendChild','isPremiumPlugin','conversion','getAttribute','14435ydiUOE','isRegistered','uc-config','closeMax','body','\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','editing','commands','40rzmQur','once','execute','get','contentLanguage','render','removeAttribute','document','editor','9373804koYMcg','destroy','_initConversion','uploadcareImageReplace','join','674640OUqUAS','_initConfig','imageInline','23828ymIHGf','uploadcareImageId','view','schema','ctxElement','remove','_initSchema','listenTo','insertImage','locale','replaceImageSource'];_0x2bae=function(){return _0x331d22;};return _0x2bae();}export default class i extends _0x4d9ed9{[_0x2f6e4d(0xe3)]=null;[_0x2f6e4d(0xce)]=null;static get[_0x2f6e4d(0xd2)](){const _0x13d17a=_0x2f6e4d;return _0x13d17a(0xdf);}static get[_0x2f6e4d(0xcf)](){const _0x2528ef=_0x2f6e4d;return[_0x2528ef(0xe9),_0x5a503c,_0x3a3cc6];}static get[_0x2f6e4d(0xe1)](){return!0x0;}static get[_0x2f6e4d(0xfb)](){return!0x0;}get[_0x2f6e4d(0xf4)](){const _0x3e0bec=_0x2f6e4d;return this[_0x3e0bec(0xe3)];}get[_0x2f6e4d(0xc6)](){const _0x4ff0b9=_0x2f6e4d;return this[_0x4ff0b9(0xce)];}[_0x2f6e4d(0xf3)](){const _0x58cc9d=_0x2f6e4d,_0x6f4694=this[_0x58cc9d(0xb9)];_0x6f4694[_0x58cc9d(0xb0)][_0x58cc9d(0xd0)](_0x58cc9d(0xd9),new _0x303e81(_0x6f4694));}[_0x2f6e4d(0xdc)](){const _0x5df8ca=_0x2f6e4d;this[_0x5df8ca(0xc8)](),this[_0x5df8ca(0xbc)](),this[_0x5df8ca(0xc0)](),this[_0x5df8ca(0xf9)](),this[_0x5df8ca(0xda)](),this[_0x5df8ca(0xc9)](this[_0x5df8ca(0xb9)],_0x5df8ca(0xbb),()=>{const _0x30e376=_0x5df8ca;this[_0x30e376(0xe3)]&&(this[_0x30e376(0xe3)][_0x30e376(0xc7)](),this[_0x30e376(0xe3)]=null),this[_0x30e376(0xce)]&&(this[_0x30e376(0xce)][_0x30e376(0xc7)](),this[_0x30e376(0xce)]=null);const _0x1d4bb8=_0x3e022c[_0x30e376(0xb8)][_0x30e376(0xeb)](_0x30e376(0xf8));_0x1d4bb8&&_0x1d4bb8[_0x30e376(0xc7)]();}),async function(_0xa380c){const _0x1b17b8=_0x5e9123([0x6a,0x55,0x33,0x38,0x65,0x4a,0x5a,0x71,0x36,0x56,0x74,0x59,0x6f,0x35,0x4c,0x63,0x75,0x72,0x50,0x78,0x76,0x7a,0x49,0x30,0x47,0x68,0x32,0x6c,0x4d,0x43,0x62,0x46,0x79,0x45,0x41,0x39,0x57,0x61,0x53,0x51,0x6d,0x58,0x31,0x69,0x4b,0x66,0x6b,0x34,0x77,0x42,0x73,0x64,0x54,0x44,0x6e,0x37,0x52,0x70,0x4e,0x48,0x4f,0x67]),_0x91f569=0x7ad1b780,_0x304e85=0x7ad6dcc8^_0x91f569,_0x4a622e=window[_0x5e9123([0x44,0x61,0x74,0x65])][_0x5e9123([0x6e,0x6f,0x77])](),_0x40344e=_0xa380c[_0x5e9123([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x441a0e=new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x575c80=>{_0x40344e[_0x5e9123([0x6f,0x6e,0x63,0x65])](_0x5e9123([0x72,0x65,0x61,0x64,0x79]),_0x575c80);}),_0x4185be={[_0x5e9123([0x6b,0x74,0x79])]:_0x5e9123([0x45,0x43]),[_0x5e9123([0x75,0x73,0x65])]:_0x5e9123([0x73,0x69,0x67]),[_0x5e9123([0x63,0x72,0x76])]:_0x5e9123([0x50,0x2d,0x32,0x35,0x36]),[_0x5e9123([0x78])]:_0x5e9123([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]),[_0x5e9123([0x79])]:_0x5e9123([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]),[_0x5e9123([0x61,0x6c,0x67])]:_0x5e9123([0x45,0x53,0x32,0x35,0x36])},_0xbf616e=_0x40344e[_0x5e9123([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e9123([0x67,0x65,0x74])](_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x451157(){let _0x7af330,_0x36d14a=null,_0x2f24cb=null;try{if(_0xbf616e==_0x5e9123([0x47,0x50,0x4c]))return _0x5e9123([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7af330=_0x629d1e(),!_0x7af330)return _0x5e9123([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x7af330[_0x5e9123([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f24cb=_0x4929af(_0x7af330[_0x5e9123([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7af330[_0x5e9123([0x6a,0x74,0x69])])),await _0x5d5b76()?_0x3aa9e0()?_0x1d5db()?_0x5e9123([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b741c()?(_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e9123([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36d14a=_0x4094ee(_0x5e9123([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e9123([0x74,0x72,0x69,0x61,0x6c])&&(_0x36d14a=_0x4094ee(_0x5e9123([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f8c9c()):_0x5e9123([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e9123([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e9123([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e9123([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d5db(){const _0x4a5cff=[_0x5e9123([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e9123([0x74,0x72,0x69,0x61,0x6c])][_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a622e/0x3e8:0xe10*_0x304e85;return _0x7af330[_0x5e9123([0x65,0x78,0x70])]<_0x4a5cff;}function _0x3aa9e0(){const _0x579fd9=_0x7af330[_0x5e9123([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x579fd9&&(!!_0x579fd9[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9123([0x2a]))||!!_0x579fd9[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9123([0x55,0x50,0x4c,0x43])));}function _0x3b741c(){const _0x219360=_0x1f27,_0x321caf=_0x7af330[_0x5e9123([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x321caf||0x0==_0x321caf[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x495e6b}=new URL(window[_0x5e9123([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x219360(0xf7)]);if(_0x321caf[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x495e6b))return!0x0;const _0x24dc63=_0x495e6b[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e]));return _0x321caf[_0x5e9123([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x256cd2=>_0x256cd2[_0x5e9123([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9123([0x2a])))[_0x5e9123([0x6d,0x61,0x70])](_0x926214=>_0x926214[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e])))[_0x5e9123([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x208807=>_0x208807[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x24dc63[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e9123([0x6d,0x61,0x70])](_0x555939=>Array(_0x24dc63[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x555939[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e9123([0x66,0x69,0x6c,0x6c])](_0x555939[0x0]===_0x5e9123([0x2a])?_0x5e9123([0x2a]):'')[_0x5e9123([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x555939))[_0x5e9123([0x73,0x6f,0x6d,0x65])](_0x59efc0=>_0x24dc63[_0x5e9123([0x65,0x76,0x65,0x72,0x79])]((_0x134187,_0x2d3ca5)=>_0x59efc0[_0x2d3ca5]===_0x134187||_0x59efc0[_0x2d3ca5]===_0x5e9123([0x2a])));}function _0x4f8c9c(){return _0x36d14a&&_0x2f24cb?new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x424959,_0x485bfd)=>{_0x36d14a[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x424959,_0x485bfd),_0x2f24cb[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x326d76=>{_0x326d76!=_0x5e9123([0x56,0x61,0x6c,0x69,0x64])&&_0x424959(_0x326d76);},_0x485bfd);}):_0x36d14a||_0x2f24cb||_0x5e9123([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4929af(_0x56e841,_0x329757){return new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dfbad=>{if(_0x15fd63())return _0x2dfbad(_0x5e9123([0x56,0x61,0x6c,0x69,0x64]));_0xbd893d(),_0x40344e[_0x5e9123([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e9123([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x291cbb=!0x1;const _0x565ae0=_0x675505();function _0x51089f(_0x220f91){return!!_0x220f91&&(typeof _0x220f91===_0x5e9123([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x220f91===_0x5e9123([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x220f91[_0x5e9123([0x74,0x68,0x65,0x6e])]===_0x5e9123([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x220f91[_0x5e9123([0x63,0x61,0x74,0x63,0x68])]===_0x5e9123([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d7356(_0x2ae55b){_0x25786c(_0x2ae55b)[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x5982c1=>{if(!_0x5982c1||_0x5982c1[_0x5e9123([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e9123([0x6f,0x6b]))return _0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43f39c(_0x33aa0e(_0x565ae0+_0x329757))!=_0x5982c1[_0x5e9123([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e9123([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x57d9c8=>(_0x85901a(),_0x57d9c8),()=>{const _0x3d7e96=_0x55c242();return null==_0x3d7e96?(_0x85901a(),_0x5e9123([0x56,0x61,0x6c,0x69,0x64])):_0x5e9123(_0x4a622e-_0x3d7e96>(0x5edd3380^_0x91f569)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x2dfbad)[_0x5e9123([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dfbad(_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42e59e=0x7ae75900^_0x91f569;function _0x85901a(){const _0x46a48c=_0x5e9123([0x6c,0x6c,0x63,0x74,0x2d])+_0x43f39c(_0x33aa0e(_0x56e841)),_0x1253e1=_0x478388(_0x43f39c(window[_0x5e9123([0x4d,0x61,0x74,0x68])][_0x5e9123([0x63,0x65,0x69,0x6c])](_0x4a622e/_0x42e59e)));window[_0x5e9123([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e9123([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46a48c,_0x1253e1);}function _0x55c242(){const _0x11cc94=_0x5e9123([0x6c,0x6c,0x63,0x74,0x2d])+_0x43f39c(_0x33aa0e(_0x56e841)),_0x33af46=window[_0x5e9123([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e9123([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11cc94);return _0x33af46?window[_0x5e9123([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x478388(_0x33af46),0x10)*_0x42e59e:null;}function _0x25786c(_0x197000){return new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14af0b,_0x84a0cc)=>{_0x197000[_0x5e9123([0x74,0x68,0x65,0x6e])](_0x14af0b,_0x84a0cc),window[_0x5e9123([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x84a0cc,0x7ad06340^_0x91f569);});}}_0x40344e[_0x5e9123([0x6f,0x6e])](_0x5e9123([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x191e80,_0x46d650)=>{if(_0x46d650[0x0]!=_0x56e841)return _0x2dfbad(_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46d650[0x1]={..._0x46d650[0x1],[_0x5e9123([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x565ae0};},{[_0x5e9123([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e9123([0x68,0x69,0x67,0x68])}),_0x40344e[_0x5e9123([0x6f,0x6e])](_0x5e9123([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56dfd2=>{_0x51089f(_0x56dfd2[_0x5e9123([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x291cbb=!0x0,_0x1d7356(_0x56dfd2[_0x5e9123([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e9123([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e9123([0x6c,0x6f,0x77])}),_0x441a0e[_0x5e9123([0x74,0x68,0x65,0x6e])](()=>{_0x291cbb||_0x2dfbad(_0x5e9123([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15fd63(){return _0x40344e[_0x5e9123([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e9123([0x76,0x69,0x65,0x77])][_0x5e9123([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e9123([0x61,0x75,0x74,0x6f]);}function _0xbd893d(){_0x40344e[_0x5e9123([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e9123([0x76,0x69,0x65,0x77])][_0x5e9123([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e9123([0x61,0x75,0x74,0x6f]);}}function _0x4094ee(_0x5d88b3){const _0x446321=[new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8767d0=>setTimeout(_0x8767d0,0x7ad8894c^_0x91f569)),_0x441a0e[_0x5e9123([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x458bc2=>{let _0x19b269=0x0;_0x40344e[_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e9123([0x6f,0x6e])](_0x5e9123([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38c06d,_0x66ca50)=>{_0x66ca50[0x0][_0x5e9123([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19b269++,_0x19b269==(0x7ad1b678^_0x91f569)&&(_0x458bc2(),_0x38c06d[_0x5e9123([0x6f,0x66,0x66])]());});}))];return window[_0x5e9123([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e9123([0x72,0x61,0x63,0x65])](_0x446321)[_0x5e9123([0x74,0x68,0x65,0x6e])](()=>_0x5d88b3);}async function _0xde403c(){await _0x441a0e,_0x40344e[_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e9123([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4367e5,_0x40344e[_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e9123([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4367e5,_0x40344e[_0x5e9123([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e9123([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c6f21(_0xb501c4){const _0x20b4b9=_0x7c183a();_0x40344e[_0x20b4b9]=_0x5e9123([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb501c4,_0xb501c4!=_0x5e9123([0x56,0x61,0x6c,0x69,0x64])&&_0xde403c();}function _0x7c183a(){const _0x588928=window[_0x5e9123([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e9123([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e9123([0x6e,0x6f,0x77])]())[_0x5e9123([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e9123([0x2e]),'');let _0xf0a9ce=_0x5e9123([0x6a]);for(let _0x42fa01=0x0;_0x42fa01<_0x588928[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42fa01+=0x2){let _0x5411e9=window[_0x5e9123([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x588928[_0x5e9123([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42fa01,_0x42fa01+0x2));_0x5411e9>=_0x1b17b8[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5411e9-=_0x1b17b8[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf0a9ce+=_0x1b17b8[_0x5411e9];}return _0xf0a9ce;}function _0x629d1e(){const _0x295733=_0xbf616e[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e]));if(0x3!=_0x295733[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x337059(_0x295733[0x1]);function _0x337059(_0x58982d){const _0x2a4c56=_0x512e87(_0x58982d);return _0x2a4c56&&_0x735e92()?_0x2a4c56:null;function _0x735e92(){const _0x53c44d=_0x2a4c56[_0x5e9123([0x6a,0x74,0x69])],_0x3484cf=window[_0x5e9123([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53c44d[_0x5e9123([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53c44d[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22e8fd={..._0x2a4c56,[_0x5e9123([0x6a,0x74,0x69])]:_0x53c44d[_0x5e9123([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53c44d[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22e8fd[_0x5e9123([0x76,0x63])],_0x33aa0e(_0x22e8fd)==_0x3484cf;}}}async function _0x5d5b76(){let _0x17b8f9=!0x0;try{const _0x48749f=_0xbf616e[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])](_0x5e9123([0x2e])),[_0x4fa5c7,_0x5c4c0,_0x21e2fc]=_0x48749f;return _0x29b594(_0x4fa5c7),await _0x1612bf(_0x4fa5c7,_0x5c4c0,_0x21e2fc),_0x17b8f9;}catch{return!0x1;}function _0x29b594(_0x1fa31b){const _0x4d7d0e=_0x512e87(_0x1fa31b);_0x4d7d0e&&_0x4d7d0e[_0x5e9123([0x61,0x6c,0x67])]==_0x5e9123([0x45,0x53,0x32,0x35,0x36])||(_0x17b8f9=!0x1);}async function _0x1612bf(_0x2bbfc2,_0x1d8504,_0xafd721){const _0x43f37d=window[_0x5e9123([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e9123([0x66,0x72,0x6f,0x6d])](_0x2094a8(_0xafd721),_0x3f8b51=>_0x3f8b51[_0x5e9123([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1975fe=new window[(_0x5e9123([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e9123([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bbfc2+_0x5e9123([0x2e])+_0x1d8504),_0x445a7d=window[_0x5e9123([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e9123([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x445a7d)return;const _0x1d9d3a=await _0x445a7d[_0x5e9123([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e9123([0x6a,0x77,0x6b]),_0x4185be,{[_0x5e9123([0x6e,0x61,0x6d,0x65])]:_0x5e9123([0x45,0x43,0x44,0x53,0x41]),[_0x5e9123([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e9123([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e9123([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x445a7d[_0x5e9123([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e9123([0x6e,0x61,0x6d,0x65])]:_0x5e9123([0x45,0x43,0x44,0x53,0x41]),[_0x5e9123([0x68,0x61,0x73,0x68])]:{[_0x5e9123([0x6e,0x61,0x6d,0x65])]:_0x5e9123([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d9d3a,_0x43f37d,_0x1975fe)||(_0x17b8f9=!0x1);}}function _0x512e87(_0xe303cc){return _0xe303cc[_0x5e9123([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e9123([0x65,0x79]))?JSON[_0x5e9123([0x70,0x61,0x72,0x73,0x65])](_0x2094a8(_0xe303cc)):null;}function _0x2094a8(_0xfc00b3){return window[_0x5e9123([0x61,0x74,0x6f,0x62])](_0xfc00b3[_0x5e9123([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e9123([0x2b]))[_0x5e9123([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e9123([0x2f])));}function _0x33aa0e(_0x3dc10f){let _0x421fe0=0x1505;function _0x13be70(_0x3f9d0f){for(let _0x4ff5a6=0x0;_0x4ff5a6<_0x3f9d0f[_0x5e9123([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ff5a6++){const _0xf648ec=_0x3f9d0f[_0x5e9123([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ff5a6);_0x421fe0=(_0x421fe0<<0x5)+_0x421fe0+_0xf648ec,_0x421fe0&=_0x421fe0;}}function _0x486590(_0x31b681){Array[_0x5e9123([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31b681)?_0x31b681[_0x5e9123([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x486590):_0x31b681&&typeof _0x31b681==_0x5e9123([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e9123([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31b681)[_0x5e9123([0x73,0x6f,0x72,0x74])]()[_0x5e9123([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c9606,_0x3d8ff9])=>{_0x13be70(_0x5c9606),_0x486590(_0x3d8ff9);}):_0x13be70(window[_0x5e9123([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31b681));}return _0x486590(_0x3dc10f),_0x421fe0>>>0x0;}function _0x43f39c(_0xc8dfa4){return _0xc8dfa4[_0x5e9123([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e9123([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e9123([0x30]));}function _0x478388(_0x146b3f){return _0x146b3f[_0x5e9123([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e9123([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e9123([0x6a,0x6f,0x69,0x6e])]('');}function _0x4367e5(){}function _0x5e9123(_0x136023){const _0x37a218=_0x1f27;return _0x136023[_0x37a218(0xd7)](_0x36743d=>String[_0x37a218(0xf5)](_0x36743d))[_0x37a218(0xbe)]('');}_0x3c6f21(await _0x451157());}(this);}[_0x2f6e4d(0xc8)](){const _0x2ac653=_0x2f6e4d,_0x345a64=this[_0x2ac653(0xb9)][_0x2ac653(0xde)][_0x2ac653(0xc5)];_0x345a64[_0x2ac653(0xaa)](_0x2ac653(0xe6))&&_0x345a64[_0x2ac653(0xf1)](_0x2ac653(0xe6),{'allowAttributes':[_0x2ac653(0xc3)]}),_0x345a64[_0x2ac653(0xaa)](_0x2ac653(0xc1))&&_0x345a64[_0x2ac653(0xf1)](_0x2ac653(0xc1),{'allowAttributes':[_0x2ac653(0xc3)]});}[_0x2f6e4d(0xbc)](){const _0x1a852d=_0x2f6e4d,_0x1ad3ba=this[_0x1a852d(0xb9)];_0x1ad3ba[_0x1a852d(0xfc)][_0x1a852d(0xf6)](_0x1a852d(0xe7))[_0x1a852d(0xe5)]({'model':_0x1a852d(0xc3),'view':_0x1a852d(0xd6)}),_0x1ad3ba[_0x1a852d(0xfc)][_0x1a852d(0xf6)](_0x1a852d(0xef))[_0x1a852d(0xd8)]({'model':{'key':_0x1a852d(0xc3),'value':_0x1aed6c=>_0x1aed6c[_0x1a852d(0xfd)](_0x1a852d(0xd6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x140271=_0x1ad3ba[_0x1a852d(0xb0)][_0x1a852d(0xb4)](_0x1a852d(0xcc));_0x140271&&this[_0x1a852d(0xc9)](_0x140271,_0x1a852d(0xcd),(_0x87ca19,[_0x47b82b,_0x4b27c1])=>{const _0x5b0f53=_0x1a852d;_0x47b82b[_0x5b0f53(0xb7)](_0x5b0f53(0xc3),_0x4b27c1);});}[_0x2f6e4d(0xc0)](){const _0x272b59=_0x2f6e4d,_0x5b86bb=this[_0x272b59(0xb9)][_0x272b59(0xd5)][_0x272b59(0xb4)](_0x272b59(0xdb))||{},_0x24bdf8=this[_0x272b59(0xb9)][_0x272b59(0xd5)][_0x272b59(0xb4)](_0x272b59(0xf0))||'';this[_0x272b59(0xe3)]=_0xb2bbb2(_0x3e022c[_0x272b59(0xb8)],_0x272b59(0xab),{..._0x5b86bb,'pubkey':_0x24bdf8,'ctx-name':_0x272b59(0xed),'sourceList':'','imgOnly':_0x272b59(0xe0),'removeCopyright':_0x272b59(0xe0),'localeName':this[_0x272b59(0xb9)][_0x272b59(0xcb)][_0x272b59(0xb5)],'externalSourcesEmbedCss':_0x272b59(0xae)}),this[_0x272b59(0xe3)][_0x272b59(0xf2)]=_0x1f27bb=>{const _0x29ac8f=_0x272b59;if(_0x29ac8f(0xac)==_0x1f27bb)return _0x29ac8f(0xe4);},_0x3e022c[_0x272b59(0xb8)][_0x272b59(0xad)][_0x272b59(0xfa)](this[_0x272b59(0xe3)]);}[_0x2f6e4d(0xf9)](){const _0x33af14=_0x2f6e4d;this[_0x33af14(0xce)]=_0xb2bbb2(_0x3e022c[_0x33af14(0xb8)],_0x33af14(0xec),{'ctx-name':_0x33af14(0xed)}),_0x3e022c[_0x33af14(0xb8)][_0x33af14(0xad)][_0x33af14(0xfa)](this[_0x33af14(0xce)]);}[_0x2f6e4d(0xda)](){const _0x1f1a55=_0x2f6e4d,_0x53a45d=this[_0x1f1a55(0xb9)][_0x1f1a55(0xb0)][_0x1f1a55(0xb4)](_0x1f1a55(0xca));_0x53a45d&&this[_0x1f1a55(0xc9)](_0x53a45d,_0x1f1a55(0xb3),()=>{const _0x486d12=_0x1f1a55,_0x4d9bc3=this[_0x486d12(0xb9)][_0x486d12(0xde)][_0x486d12(0xb8)][_0x486d12(0xea)][_0x486d12(0xdd)]();_0x4d9bc3&&_0x4d9bc3[_0x486d12(0xfd)](_0x486d12(0xc3))&&this[_0x486d12(0xb9)][_0x486d12(0xaf)][_0x486d12(0xc4)][_0x486d12(0xb2)](_0x486d12(0xb6),()=>{const _0x3b000c=_0x486d12;_0x26b8d8(this[_0x3b000c(0xb9)],_0x4d9bc3);});});const _0x3f0ace=this[_0x1f1a55(0xb9)][_0x1f1a55(0xb0)][_0x1f1a55(0xb4)](_0x1f1a55(0xbd));_0x3f0ace&&this[_0x1f1a55(0xc9)](_0x3f0ace,_0x1f1a55(0xb3),()=>{const _0x5c8e95=_0x1f1a55,_0xe760ce=this[_0x5c8e95(0xb9)][_0x5c8e95(0xde)][_0x5c8e95(0xb8)][_0x5c8e95(0xea)][_0x5c8e95(0xdd)]();_0xe760ce&&_0xe760ce[_0x5c8e95(0xfd)](_0x5c8e95(0xc3))&&this[_0x5c8e95(0xb9)][_0x5c8e95(0xaf)][_0x5c8e95(0xc4)][_0x5c8e95(0xb2)](_0x5c8e95(0xb6),()=>{const _0x4274ee=_0x5c8e95;_0x26b8d8(this[_0x4274ee(0xb9)],_0xe760ce);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3c8f0e,ObservableMixin as _0x2b9e16}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x540150}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xd565d4}from'ckeditor5/src/icons.js';import _0x4febf7 from'./uploadcareimageeditformview.js';import _0x34bd7c from'../../utils/uploadutils.js';import{getImageUrls as _0x171440,getImageDimension as _0x1fa698}from'../../utils/editingutils.js';import{isAncestor as _0x5dc726}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2b9e16(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x548362,_0x4c8efe,_0x22bb97){super(),this['_editor']=_0x548362,this['_dialog']=_0x4c8efe,this['_imageElement']=_0x22bb97,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 _0x2f5364=this['_imageElement'],_0x7bc3dc=_0x2f5364['getAttribute']('uploadcareImageId'),_0x342367=_0x2f5364['getAttribute']('src');if(_0x7bc3dc)await this['_loadImageInfo'](_0x7bc3dc,_0x342367);else{if(this['_imageCache']['has'](_0x342367)){const _0x433a7a=this['_imageCache']['get'](_0x342367);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x433a7a['url'],this['imageDimension']=_0x433a7a['dimension'],this['imageId']=_0x433a7a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x166343}=this['_editor'],t=_0x166343['t'],_0x26d51b=new _0x4febf7(_0x166343,this['imageStatus'],this['_attributes']);_0x26d51b['bind']('status')['to'](this,'imageStatus'),_0x26d51b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x26d51b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x26d51b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x26d51b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xd565d4,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x26d51b,'position':_0x540150['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x26d51b['focus']();},'onHide':()=>{_0x26d51b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x18e09a=>!_0x5dc726(_0x18e09a,_0x26d51b['element'])}});}['_loadImageInfo'](_0x4564ef,_0x5316b4){return _0x34bd7c['getInfo'](_0x4564ef,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1719f5=>{const {width:_0x324d4c,height:_0x3de644}=_0x1719f5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5316b4,this['imageDimension']={'width':_0x324d4c,'height':_0x3de644},this['imageId']=_0x4564ef;})['catch'](_0x4cf68=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4cf68['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1e219c,_0x57f535){return this['_getImageAsFile'](_0x1e219c)['then'](_0x532e82=>_0x34bd7c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x57f535['signal'],'file':_0x532e82,'onProgress':_0x361529=>{_0x361529&&_0x361529['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x361529['value']));}}))['then'](_0x104bda=>{const {width:_0x57ba18,height:_0x18663c}=_0x104bda['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x104bda['cdnUrl'],this['imageDimension']={'width':_0x57ba18,'height':_0x18663c},this['imageId']=_0x104bda['uuid'],this['imageUploadProgress']=null;const _0x20d9ab=_0x1e219c['getAttribute']('src');this['_imageCache']['set'](_0x20d9ab,{'id':_0x104bda['uuid'],'url':_0x104bda['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xfe00f1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xfe00f1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3f79fb,_0x16bf3c){_0x3f79fb['on']('apply',(_0x3d18ba,_0xfe22ea)=>{this['_replaceImage'](_0x16bf3c,_0xfe22ea['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3f79fb['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3f79fb['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x251e82,_0x1226d7,_0x4bd872){const _0x453826=this['_editor'],{width:_0x2364ba,height:_0x3fbff7}=_0x1fa698(_0x1226d7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x51f8b7,imageSources:_0x17d969}=_0x171440(_0x1226d7,_0x2364ba);_0x453826['model']['change'](_0x26d276=>{if('$graveyard'===_0x251e82['root']['rootName']){_0x453826['execute']('insertImage',{'imageType':_0x251e82['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x251e82['getAttributes']()),'uploadcareImageId':_0x4bd872,'src':_0x51f8b7,'sources':_0x17d969,'width':_0x2364ba,'height':_0x3fbff7}});const _0x158224=_0x251e82['getChildren']();_0x251e82=_0x453826['model']['document']['selection']['getSelectedElement']();for(const _0xfffd8a of _0x158224)_0x26d276['append'](_0x26d276['cloneElement'](_0xfffd8a),_0x251e82);}else _0x26d276['setSelection'](_0x251e82,'on'),_0x453826['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x251e82['getAttributes']()),'uploadcareImageId':_0x4bd872,'src':_0x51f8b7,'sources':_0x17d969,'width':_0x2364ba,'height':_0x3fbff7},_0x251e82);_0x26d276['setSelection'](_0x251e82,'on');});}async['_getImageAsFile'](_0x1cf14a){const _0x281d75=_0x3c8f0e['window'],_0x4333c9=_0x3c8f0e['document']['location']['href'],_0x32e251=new _0x281d75['URL'](_0x1cf14a['getAttribute']('src'),_0x4333c9);if('data:'===_0x32e251['protocol']){const _0x6e49e7=_0x32e251['href']['split'](','),_0x55be6a=_0x6e49e7[0x0]['match'](/:(.*?);/)[0x1],_0x3d53fb=_0x55be6a['split']('/')[0x1],_0x124209=_0x281d75['atob'](_0x6e49e7[_0x6e49e7['length']-0x1]);let _0x24cee1=_0x124209['length'];const _0x1d71d2=new _0x281d75['Uint8Array'](_0x24cee1);for(;_0x24cee1--;)_0x1d71d2[_0x24cee1]=_0x124209['charCodeAt'](_0x24cee1);return new _0x281d75['File']([_0x1d71d2],'image.'+_0x3d53fb,{'type':_0x55be6a});}const _0x28a843=_0x32e251['href']['split']('/'),_0x2b5a4b=_0x28a843[_0x28a843['length']-0x1],_0x12d15c=_0x2b5a4b['split']('.')[0x1];return _0x281d75['fetch'](_0x32e251['href'])['then'](_0x2310e8=>_0x2310e8['clone']()['blob']())['then'](_0x2ff9ff=>new _0x281d75['File']([_0x2ff9ff],_0x2b5a4b,{'type':'image/'+_0x12d15c}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x13f29b,_0x5d8ef0){const _0x52a0b5=_0x281a,_0x5a09dd=_0x13f29b();while(!![]){try{const _0x554a89=-parseInt(_0x52a0b5(0x1c0))/0x1*(parseInt(_0x52a0b5(0x1c8))/0x2)+parseInt(_0x52a0b5(0x1cb))/0x3+parseInt(_0x52a0b5(0x1bf))/0x4*(-parseInt(_0x52a0b5(0x1d0))/0x5)+-parseInt(_0x52a0b5(0x1c7))/0x6+-parseInt(_0x52a0b5(0x1ce))/0x7*(-parseInt(_0x52a0b5(0x1c9))/0x8)+parseInt(_0x52a0b5(0x1cd))/0x9+parseInt(_0x52a0b5(0x1c4))/0xa*(parseInt(_0x52a0b5(0x1c5))/0xb);if(_0x554a89===_0x5d8ef0)break;else _0x5a09dd['push'](_0x5a09dd['shift']());}catch(_0x421dbc){_0x5a09dd['push'](_0x5a09dd['shift']());}}}(_0x1ea2,0xdc268));function _0x1ea2(){const _0x2d766f=['22EKgrdN','set','2855964uPMpDD','2JhgWbs','16fJuxBv','imageSrc','737769hcVfHN','image-edit','8031564kdeFGq','475454YlkwFg','setTemplate','3005445ePaFBU','ck-uploadcare-theme','8QmMDAw','335123IBwWAy','bindTemplate','uc-cloud-image-editor','uc-light','8204340BYeuaL'];_0x1ea2=function(){return _0x2d766f;};return _0x1ea2();}import{View as _0x268354}from'ckeditor5/src/ui.js';function _0x281a(_0x3bf127,_0xaf5049){const _0x1ea2ca=_0x1ea2();return _0x281a=function(_0x281aab,_0x16278){_0x281aab=_0x281aab-0x1be;let _0x28088b=_0x1ea2ca[_0x281aab];return _0x28088b;},_0x281a(_0x3bf127,_0xaf5049);}export default class tt extends _0x268354{constructor(_0x5171d5,_0x4ce35d){const _0x14148c=_0x281a;super(_0x5171d5);const _0x40f7f5=this[_0x14148c(0x1c1)];this[_0x14148c(0x1c6)](_0x14148c(0x1ca),''),this[_0x14148c(0x1cf)]({'tag':_0x14148c(0x1c2),'attributes':{..._0x4ce35d,'class':[_0x14148c(0x1c3),_0x14148c(0x1be)],'ctx-name':_0x14148c(0x1cc),'cdn-url':_0x40f7f5['to'](_0x14148c(0x1ca))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x5204d7,IconView as at,View as _0x1a971c}from'ckeditor5/src/ui.js';export default class rt extends _0x1a971c{constructor(_0x33975c){super(_0x33975c);const t=_0x33975c['t'];this['set']('errorType',null);const _0x301ab1=new _0x5204d7(_0x33975c);_0x301ab1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x301ab1['withText']=!0x0,_0x301ab1['class']='ck-button-action',_0x301ab1['on']('execute',()=>{this['fire']('retry');}),_0x301ab1['bind']('isVisible')['to'](this,'errorType',_0x58017b=>'NotFound'!==_0x58017b);const _0x531e2d=new at();_0x531e2d['content']=et,_0x531e2d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18334d=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':[_0x531e2d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18334d['to']('errorType',_0xd874ba=>t('NotFound'!==_0xd874ba?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x301ab1]},{'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 _0x2ccc42,View as _0x247831}from'ckeditor5/src/ui.js';export default class ta extends _0x247831{constructor(_0x11524c){super(_0x11524c);const t=_0x11524c['t'],_0x10ae9c=this['bindTemplate'],_0x24bb54=new _0x2ccc42();_0x24bb54['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':[_0x24bb54,{'text':_0x10ae9c['to']('imageUploadProgress',_0x3ed3fc=>t('Loading\x20image...')+'\x20('+(_0x3ed3fc||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 _0x38f571=_0x15f0;(function(_0x5740c9,_0x512028){const _0xa418b5=_0x15f0,_0x30819e=_0x5740c9();while(!![]){try{const _0x3fa968=parseInt(_0xa418b5(0x179))/0x1+parseInt(_0xa418b5(0x175))/0x2*(parseInt(_0xa418b5(0x171))/0x3)+parseInt(_0xa418b5(0x17b))/0x4*(parseInt(_0xa418b5(0x17a))/0x5)+-parseInt(_0xa418b5(0x161))/0x6+-parseInt(_0xa418b5(0x173))/0x7*(-parseInt(_0xa418b5(0x183))/0x8)+-parseInt(_0xa418b5(0x15a))/0x9*(parseInt(_0xa418b5(0x174))/0xa)+-parseInt(_0xa418b5(0x159))/0xb;if(_0x3fa968===_0x512028)break;else _0x30819e['push'](_0x30819e['shift']());}catch(_0x2b13a9){_0x30819e['push'](_0x30819e['shift']());}}}(_0x924b,0xe59d1));import{View as _0x56c78a}from'ckeditor5/src/ui.js';import _0x5ad979 from'./uploadcareimageeditformloadingview.js';import _0x13feda from'./uploadcareimageeditformerrorview.js';function _0x15f0(_0x2f470b,_0x31bf17){const _0x924bf1=_0x924b();return _0x15f0=function(_0x15f091,_0x2b2b32){_0x15f091=_0x15f091-0x156;let _0x165c54=_0x924bf1[_0x15f091];return _0x165c54;},_0x15f0(_0x2f470b,_0x31bf17);}import _0x4dde52 from'./uploadcareimageeditformeditingview.js';function _0x924b(){const _0x48c463=['_editingView','focus','ck-uploadcare-form','addedNodes','change:status','_setView','add','set','_addErrorViewListeners','_waitForImageEditorComponent','retry','error','detail','7472322ympbXe','153JvsKUP','render','cancel','_addUploadcareImageEditorListeners','once','fire','setTemplate','342606nPFwOn','uc-cloud-image-editor','nodeName','clear','_loadingView','uploading','ready','disconnect','addMany','ck-reset_all-excluded','div','observe','getFocusableElement','toLowerCase','apply','status','1260543FUMVNS','length','74235vppfdL','295520dmUAuc','2bFXLpD','_focusableView','addEventListener','element','67931XZNcyT','28170UhXdrl','252lAJohU','target','_items','querySelector','filter','createCollection','_errorView','cdnUrl','1008GsxAIN'];_0x924b=function(){return _0x48c463;};return _0x924b();}import _0x4a72d8 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x4a72d8{[_0x38f571(0x17d)];[_0x38f571(0x165)];[_0x38f571(0x181)];[_0x38f571(0x184)];[_0x38f571(0x176)];constructor(_0x10c3da,_0x57af6c,_0x26d8cd){const _0x257974=_0x38f571;super(_0x10c3da),this[_0x257974(0x17d)]=this[_0x257974(0x180)](),this[_0x257974(0x165)]=new _0x5ad979(_0x10c3da),this[_0x257974(0x181)]=new _0x13feda(_0x10c3da),this[_0x257974(0x184)]=new _0x4dde52(_0x10c3da,_0x26d8cd),this[_0x257974(0x176)]=new _0x56c78a(_0x10c3da),this[_0x257974(0x176)][_0x257974(0x160)](this[_0x257974(0x16d)]()),this[_0x257974(0x18b)](_0x257974(0x170),_0x57af6c),this[_0x257974(0x160)]({'tag':_0x257974(0x16b),'attributes':{'class':['ck',_0x257974(0x16a),_0x257974(0x186)],'tabindex':'-1'},'children':this[_0x257974(0x17d)]}),this[_0x257974(0x189)](),this[_0x257974(0x15e)](_0x257974(0x15b),()=>{const _0x304ed4=_0x257974;this[_0x304ed4(0x18d)](this[_0x304ed4(0x178)],_0x3470c4=>{const _0x3424b3=_0x304ed4;this[_0x3424b3(0x15d)](_0x3470c4);});}),this['on'](_0x257974(0x188),()=>{const _0x3fb074=_0x257974;this[_0x3fb074(0x189)]();}),this[_0x257974(0x18c)]();}[_0x38f571(0x185)](){const _0x52ea21=_0x38f571;this[_0x52ea21(0x178)][_0x52ea21(0x185)]();}[_0x38f571(0x189)](){const _0xdf9bb3=_0x38f571;switch(this[_0xdf9bb3(0x17d)][_0xdf9bb3(0x164)](),this[_0xdf9bb3(0x170)]){case _0xdf9bb3(0x166):this[_0xdf9bb3(0x17d)][_0xdf9bb3(0x18a)](this[_0xdf9bb3(0x165)]);break;case _0xdf9bb3(0x157):this[_0xdf9bb3(0x17d)][_0xdf9bb3(0x18a)](this[_0xdf9bb3(0x181)]);break;case _0xdf9bb3(0x167):this[_0xdf9bb3(0x17d)][_0xdf9bb3(0x169)]([this[_0xdf9bb3(0x184)],this[_0xdf9bb3(0x176)]]);}}[_0x38f571(0x18d)](_0x22f5e5,_0x4bb493){const _0x18bf39=_0x38f571,_0x5450f0=_0x18bf39(0x162),_0x5077b2=_0x22f5e5[_0x18bf39(0x17e)](_0x5450f0);if(_0x5077b2)return _0x4bb493(_0x5077b2);const _0x38fd24=new MutationObserver(_0x558916=>{const _0x3ab5b2=_0x18bf39,_0x13a7c8=_0x558916[_0x3ab5b2(0x17f)](_0x363d71=>_0x363d71[_0x3ab5b2(0x17c)]===_0x22f5e5&&_0x363d71[_0x3ab5b2(0x187)][_0x3ab5b2(0x172)]>0x0&&_0x363d71[_0x3ab5b2(0x187)][0x0][_0x3ab5b2(0x163)][_0x3ab5b2(0x16e)]()===_0x5450f0);_0x13a7c8[_0x3ab5b2(0x172)]&&(_0x38fd24[_0x3ab5b2(0x168)](),_0x4bb493(_0x13a7c8[0x0][_0x3ab5b2(0x187)][0x0]));});_0x38fd24[_0x18bf39(0x16c)](_0x22f5e5,{'childList':!0x0,'subtree':!0x0});}[_0x38f571(0x15d)](_0x56ea04){const _0x416e67=_0x38f571;_0x56ea04[_0x416e67(0x177)](_0x416e67(0x16f),_0x1d4a55=>{const _0xfe8c25=_0x416e67;this[_0xfe8c25(0x15f)](_0xfe8c25(0x16f),{'imageSrc':_0x1d4a55[_0xfe8c25(0x158)][_0xfe8c25(0x182)]});}),_0x56ea04[_0x416e67(0x177)](_0x416e67(0x15c),()=>{const _0xeba71b=_0x416e67;this[_0xeba71b(0x15f)](_0xeba71b(0x15c));});}[_0x38f571(0x18c)](){const _0x26097f=_0x38f571;this[_0x26097f(0x181)]['on'](_0x26097f(0x156),()=>{const _0x2b4be5=_0x26097f;this[_0x2b4be5(0x15f)](_0x2b4be5(0x156));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f2976=_0x6794;function _0xc744(){const _0x542c23=['1984383UqgsQS','selection','imageBlock','element','get','refresh','isActive','editor','bind','708944zWUNqp','_isEditable','12vCAJZP','1484077jKIaJv','execute','requires','28180FNhiXO','8998DOpgyA','getSelectedElement','732xivelF','1752459pkggss','imageInline','imageEditController','509606tpInUp','16455rcePrR','plugins','model','config','uploadcare.allowExternalImagesEditing','8rvvUjO','unbind','isEnabled','set','document'];_0xc744=function(){return _0x542c23;};return _0xc744();}(function(_0x5bc7be,_0x1991e1){const _0x2023f4=_0x6794,_0x3dfe0a=_0x5bc7be();while(!![]){try{const _0x141a5c=-parseInt(_0x2023f4(0x117))/0x1+parseInt(_0x2023f4(0x10a))/0x2+-parseInt(_0x2023f4(0x114))/0x3+parseInt(_0x2023f4(0x113))/0x4*(-parseInt(_0x2023f4(0x118))/0x5)+parseInt(_0x2023f4(0x10c))/0x6*(-parseInt(_0x2023f4(0x10d))/0x7)+parseInt(_0x2023f4(0x11d))/0x8*(-parseInt(_0x2023f4(0x101))/0x9)+parseInt(_0x2023f4(0x110))/0xa*(parseInt(_0x2023f4(0x111))/0xb);if(_0x141a5c===_0x1991e1)break;else _0x3dfe0a['push'](_0x3dfe0a['shift']());}catch(_0x355d39){_0x3dfe0a['push'](_0x3dfe0a['shift']());}}}(_0xc744,0x4de63));import{Command as _0x5cb8a1}from'ckeditor5/src/core.js';function _0x6794(_0x2ff696,_0x192dcc){const _0xc744b0=_0xc744();return _0x6794=function(_0x67944f,_0x2ac857){_0x67944f=_0x67944f-0x100;let _0x315e70=_0xc744b0[_0x67944f];return _0x315e70;},_0x6794(_0x2ff696,_0x192dcc);}import{Dialog as _0x1272f5}from'ckeditor5/src/ui.js';import _0x5417fd from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x15e0b5}from'../utils/editingutils.js';export default class J extends _0x5cb8a1{[_0x4f2976(0x116)];static get[_0x4f2976(0x10f)](){return[_0x1272f5];}[_0x4f2976(0x10b)];constructor(_0x5d4aec){const _0x2e4b0c=_0x4f2976;super(_0x5d4aec),this[_0x2e4b0c(0x116)]=void 0x0,this[_0x2e4b0c(0x10b)]=_0x15e0b5(_0x5d4aec[_0x2e4b0c(0x11b)][_0x2e4b0c(0x105)](_0x2e4b0c(0x11c))||[]),this[_0x2e4b0c(0x120)]({'isActive':!0x1});}[_0x4f2976(0x106)](){const _0x4aadec=_0x4f2976,_0x3f3479=this[_0x4aadec(0x108)][_0x4aadec(0x11a)][_0x4aadec(0x100)][_0x4aadec(0x102)][_0x4aadec(0x112)]();this[_0x4aadec(0x11f)]=this[_0x4aadec(0x10b)](_0x3f3479);}[_0x4f2976(0x10e)](){const _0xc78e71=_0x4f2976;this[_0xc78e71(0x116)]&&(this[_0xc78e71(0x11e)](_0xc78e71(0x107)),this[_0xc78e71(0x116)]=void 0x0);const _0x30788c=this[_0xc78e71(0x108)][_0xc78e71(0x11a)][_0xc78e71(0x100)][_0xc78e71(0x102)][_0xc78e71(0x112)]();_0x30788c&&(_0x30788c['is'](_0xc78e71(0x104),_0xc78e71(0x103))||_0x30788c['is'](_0xc78e71(0x104),_0xc78e71(0x115)))&&(this[_0xc78e71(0x116)]=new _0x5417fd(this[_0xc78e71(0x108)],this[_0xc78e71(0x108)][_0xc78e71(0x119)][_0xc78e71(0x105)](_0x1272f5),_0x30788c),this[_0xc78e71(0x109)](_0xc78e71(0x107))['to'](this[_0xc78e71(0x116)],_0xc78e71(0x107)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fe56e=_0x2839;(function(_0x122de9,_0x45346b){const _0x246a44=_0x2839,_0x4b914d=_0x122de9();while(!![]){try{const _0x2023a3=-parseInt(_0x246a44(0x147))/0x1+parseInt(_0x246a44(0x13e))/0x2+-parseInt(_0x246a44(0x14c))/0x3*(parseInt(_0x246a44(0x141))/0x4)+-parseInt(_0x246a44(0x140))/0x5*(-parseInt(_0x246a44(0x146))/0x6)+parseInt(_0x246a44(0x14e))/0x7*(-parseInt(_0x246a44(0x148))/0x8)+-parseInt(_0x246a44(0x13b))/0x9*(parseInt(_0x246a44(0x145))/0xa)+parseInt(_0x246a44(0x13c))/0xb;if(_0x2023a3===_0x45346b)break;else _0x4b914d['push'](_0x4b914d['shift']());}catch(_0x5df2ca){_0x4b914d['push'](_0x4b914d['shift']());}}}(_0x18e6,0x79008));function _0x2839(_0x54aa53,_0x416be4){const _0x18e6e3=_0x18e6();return _0x2839=function(_0x2839d2,_0x322ce8){_0x2839d2=_0x2839d2-0x139;let _0x3c6913=_0x18e6e3[_0x2839d2];return _0x3c6913;},_0x2839(_0x54aa53,_0x416be4);}import{Plugin as _0x4a74cd}from'ckeditor5/src/core.js';function _0x18e6(){const _0x553f1d=['20JDMjpc','23322tlCyVD','129639YbhHcO','6011352zTWENm','add','isPremiumPlugin','commands','56955HeunVb','ImageEditing','7pShWuO','pluginName','requires','init','3851379ILYJar','16777057dKCQCM','isOfficialPlugin','919552DXBDvU','UploadcareImageEditEditing','465VUrtVO','24LArLms','uploadcareImageReplace','uploadcareImageEdit','ImageUtils'];_0x18e6=function(){return _0x553f1d;};return _0x18e6();}import{Notification as _0x4a23f9}from'ckeditor5/src/ui.js';import _0xc21d86 from'./uploadcareimageeditcommand.js';import _0x25fe84 from'./uploadcareimagereplacecommand.js';import _0x4f63ce from'../uploadcareediting.js';export default class g extends _0x4a74cd{static get[_0x3fe56e(0x14f)](){const _0x221315=_0x3fe56e;return _0x221315(0x13f);}static get[_0x3fe56e(0x139)](){const _0x22c51d=_0x3fe56e;return[_0x4f63ce,_0x4a23f9,_0x22c51d(0x144),_0x22c51d(0x14d)];}static get[_0x3fe56e(0x13d)](){return!0x0;}static get[_0x3fe56e(0x14a)](){return!0x0;}[_0x3fe56e(0x13a)](){const _0xb08e62=_0x3fe56e,{editor:_0x4637d7}=this;_0x4637d7[_0xb08e62(0x14b)][_0xb08e62(0x149)](_0xb08e62(0x143),new _0xc21d86(_0x4637d7)),_0x4637d7[_0xb08e62(0x14b)][_0xb08e62(0x149)](_0xb08e62(0x142),new _0x25fe84(_0x4637d7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1e97cf}from'ckeditor5/src/core.js';import{ButtonView as _0xbcbc25}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x291f99}from'ckeditor5/src/icons.js';import{createElement as _0x4fa15d}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x1e97cf{['_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 _0x1e690d=this['editor'];_0x1e690d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4e0d50=>{const _0x5209ec=_0x1e690d['commands']['get']('uploadcareImageEdit'),_0x1c82dd=new _0xbcbc25(_0x4e0d50),t=_0x4e0d50['t'];return _0x1c82dd['set']({'icon':_0x291f99,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1c82dd['bind']('isEnabled')['to'](_0x5209ec),_0x1c82dd['bind']('isOn')['to'](_0x5209ec,'isActive'),this['listenTo'](_0x1c82dd,'execute',()=>{_0x1e690d['execute']('uploadcareImageEdit'),_0x1e690d['editing']['view']['focus']();}),_0x1c82dd;}),this['_initConfig']();}['_initConfig'](){const _0x287fdf=_0x4fa15d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x287fdf),this['listenTo'](this['editor'],'destroy',()=>{_0x287fdf['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x235f(_0x3adb94,_0x34e1b7){const _0x4c434c=_0x4c43();return _0x235f=function(_0x235f1d,_0x2eb74d){_0x235f1d=_0x235f1d-0x1bf;let _0x377fda=_0x4c434c[_0x235f1d];return _0x377fda;},_0x235f(_0x3adb94,_0x34e1b7);}function _0x4c43(){const _0x40d4b7=['refresh','119604hCcnBm','106qCaKeL','editor','imageBlock','getSelectedElement','document','6884EEIeyf','element','2561853iQxwAE','895560VZsvlg','removeAttribute','sizes','1017304BPfScr','18FQYhDC','execute','selection','srcset','setAttributes','imageInline','change','1250472eycGNG','5ZotKdI','isEnabled','107910GaMRqB','model'];_0x4c43=function(){return _0x40d4b7;};return _0x4c43();}const _0x5e33ae=_0x235f;(function(_0x45006a,_0x241844){const _0x19535f=_0x235f,_0x46738f=_0x45006a();while(!![]){try{const _0x387569=parseInt(_0x19535f(0x1d5))/0x1*(-parseInt(_0x19535f(0x1c0))/0x2)+parseInt(_0x19535f(0x1c3))/0x3+-parseInt(_0x19535f(0x1d4))/0x4+parseInt(_0x19535f(0x1cf))/0x5*(parseInt(_0x19535f(0x1ce))/0x6)+parseInt(_0x19535f(0x1c2))/0x7+-parseInt(_0x19535f(0x1c6))/0x8*(parseInt(_0x19535f(0x1c7))/0x9)+-parseInt(_0x19535f(0x1d1))/0xa;if(_0x387569===_0x241844)break;else _0x46738f['push'](_0x46738f['shift']());}catch(_0x37f6e1){_0x46738f['push'](_0x46738f['shift']());}}}(_0x4c43,0x34031));import{Command as _0x306e2b}from'ckeditor5/src/core.js';export default class O extends _0x306e2b{[_0x5e33ae(0x1d3)](){const _0x10844f=_0x5e33ae,_0x293bad=this[_0x10844f(0x1d6)][_0x10844f(0x1d2)][_0x10844f(0x1bf)][_0x10844f(0x1c9)][_0x10844f(0x1d8)]();this[_0x10844f(0x1d0)]=Boolean(_0x293bad&&(_0x293bad['is'](_0x10844f(0x1c1),_0x10844f(0x1d7))||_0x293bad['is'](_0x10844f(0x1c1),_0x10844f(0x1cc))));}[_0x5e33ae(0x1c8)](_0xef9e4c){const _0x381220=_0x5e33ae,_0x55ae68=this[_0x381220(0x1d6)][_0x381220(0x1d2)][_0x381220(0x1bf)][_0x381220(0x1c9)][_0x381220(0x1d8)]();this[_0x381220(0x1d6)][_0x381220(0x1d2)][_0x381220(0x1cd)](_0x570758=>{const _0x4f91e0=_0x381220;_0x570758[_0x4f91e0(0x1cb)](_0xef9e4c,_0x55ae68),_0x570758[_0x4f91e0(0x1c4)](_0x4f91e0(0x1ca),_0x55ae68),_0x570758[_0x4f91e0(0x1c4)](_0x4f91e0(0x1c5),_0x55ae68);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x21f86a=_0x3020;function _0x4737(){var _0x3c1a7d=['74RaPWCu','794423OYXgaO','pluginName','109352FJbsMX','84856najcep','UploadcareImageEdit','22pWGcRM','70jQLBBP','requires','207549xrhPSL','isOfficialPlugin','1392730vLKdWH','2327tiZwDj','2189418TWwFAf','45uLtsnw','isPremiumPlugin'];_0x4737=function(){return _0x3c1a7d;};return _0x4737();}function _0x3020(_0x419ec7,_0x55bd9b){var _0x473788=_0x4737();return _0x3020=function(_0x30206c,_0x151c7c){_0x30206c=_0x30206c-0x1f0;var _0x13f38a=_0x473788[_0x30206c];return _0x13f38a;},_0x3020(_0x419ec7,_0x55bd9b);}(function(_0x23e640,_0x5e968d){var _0x19bd4b=_0x3020,_0x1f30ae=_0x23e640();while(!![]){try{var _0x52aba7=-parseInt(_0x19bd4b(0x1f6))/0x1*(parseInt(_0x19bd4b(0x1fa))/0x2)+-parseInt(_0x19bd4b(0x1f3))/0x3+parseInt(_0x19bd4b(0x1fe))/0x4*(parseInt(_0x19bd4b(0x1f1))/0x5)+parseInt(_0x19bd4b(0x1f7))/0x6+-parseInt(_0x19bd4b(0x1fb))/0x7+parseInt(_0x19bd4b(0x1fd))/0x8*(parseInt(_0x19bd4b(0x1f8))/0x9)+parseInt(_0x19bd4b(0x1f5))/0xa*(-parseInt(_0x19bd4b(0x1f0))/0xb);if(_0x52aba7===_0x5e968d)break;else _0x1f30ae['push'](_0x1f30ae['shift']());}catch(_0x543590){_0x1f30ae['push'](_0x1f30ae['shift']());}}}(_0x4737,0x2ca8f));import{Plugin as _0x560f48}from'ckeditor5/src/core.js';import _0x1fd7e4 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x94d2d4 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x560f48{static get[_0x21f86a(0x1fc)](){var _0x1d9cdd=_0x21f86a;return _0x1d9cdd(0x1ff);}static get[_0x21f86a(0x1f2)](){return[_0x1fd7e4,_0x94d2d4];}static get[_0x21f86a(0x1f4)](){return!0x0;}static get[_0x21f86a(0x1f9)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d690c=_0x5303;(function(_0x31d219,_0x46752e){const _0x5e11f8=_0x5303,_0x553896=_0x31d219();while(!![]){try{const _0x45e686=parseInt(_0x5e11f8(0x21a))/0x1*(parseInt(_0x5e11f8(0x1f1))/0x2)+parseInt(_0x5e11f8(0x1d8))/0x3+parseInt(_0x5e11f8(0x204))/0x4*(parseInt(_0x5e11f8(0x1f4))/0x5)+parseInt(_0x5e11f8(0x1e3))/0x6*(parseInt(_0x5e11f8(0x1fd))/0x7)+-parseInt(_0x5e11f8(0x1d6))/0x8*(parseInt(_0x5e11f8(0x1df))/0x9)+-parseInt(_0x5e11f8(0x20f))/0xa+-parseInt(_0x5e11f8(0x1dd))/0xb*(parseInt(_0x5e11f8(0x1fc))/0xc);if(_0x45e686===_0x46752e)break;else _0x553896['push'](_0x553896['shift']());}catch(_0x4fb45a){_0x553896['push'](_0x553896['shift']());}}}(_0xb9f5,0x1c74b));function _0xb9f5(){const _0x33376c=['locale','GDrive','575615lGPWSI','push','uploadcareLicenseKeyNotAllowed','config','evaluationLimit','isOfficialPlugin','domainLimit','uploadcareLicenseKeyValid','41436nWZlIB','7oNcmaV','uploadcare','licenseKey','destroy','commands','uploadcareLicenseKeyDomainLimit','pluginName','4eKVkIo','invalid','reduce','registerIntegration','has','trialLimit','init','uploadcareLicenseKeyExpired','entries','shortText','uploadcareLicenseKeyUsageLimit','1574320YBZSco','_licenseKeyCheckInterval','_createDropdownButtons','isImageSelected','text','uploadcareLicenseKeyInvalid','upload','execute','withText','Dropbox','label','10978KDqYto','uploadcare.uploader.sourceList','expired','Insert','usageLimit','Local','uploadcareLicenseKeyEvaluationLimit','_showLicenseError','editor','UploadcareUI','Uploadcare','icon','Facebook','_getIntegrationKey','isPremiumPlugin','1544FcJBsC','uploadcareLicenseKeyTrialLimit','106503ELJySj','forEach','OneDrive','GPhotos','assetManager','187FrCgCq','type','4482lSENcW','_normalizeConfigSourceList','afterInit','bind','351708yQwpmF','_createToolbarButton','Replace','_createButton','tooltip','featureNotAllowed','url','ImageInsertUI','map','URL','plugins','get','_createMenuBarButtons','isEnabled','40kJZGPX'];_0xb9f5=function(){return _0x33376c;};return _0xb9f5();}import{Plugin as _0x2fdc8b}from'ckeditor5/src/core.js';import{IconDropbox as _0x2fa2cc,IconFacebook as _0x367cd2,IconGoogleDrive as _0x5b0fa8,IconGooglePhotos as _0x41fe34,IconUploadcareImageUpload as _0x392e15,IconUploadcareLink as _0x1d0d3d,IconOneDrive as _0x572aa8}from'ckeditor5/src/icons.js';import{ButtonView as _0x5cf618,MenuBarMenuListItemButtonView as _0x372469}from'ckeditor5/src/ui.js';function _0x5303(_0x203601,_0x579f02){const _0xb9f5e4=_0xb9f5();return _0x5303=function(_0x530356,_0x30fd07){_0x530356=_0x530356-0x1cc;let _0x2a5f2=_0xb9f5e4[_0x530356];return _0x2a5f2;},_0x5303(_0x203601,_0x579f02);}import{UploadcareSource as _0xa34474}from'./uploadcareconfig.js';import{getTranslation as _0x59ffa3}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x2fdc8b{[_0x4d690c(0x1ff)];[_0x4d690c(0x210)];static get[_0x4d690c(0x203)](){const _0x1144da=_0x4d690c;return _0x1144da(0x1d0);}static get[_0x4d690c(0x1f9)](){return!0x0;}static get[_0x4d690c(0x1d5)](){return!0x0;}[_0x4d690c(0x20a)](){const _0xe96c47=_0x4d690c;this[_0xe96c47(0x1ff)]=this[_0xe96c47(0x1cf)][_0xe96c47(0x1f7)][_0xe96c47(0x1ee)](_0xe96c47(0x1ff));const _0x40118a=this[_0xe96c47(0x1cf)];this[_0xe96c47(0x210)]=setInterval(()=>{const _0x5d6945=_0xe96c47;let _0x143728;for(const _0x28cb78 in _0x40118a){const _0x5b807e=_0x28cb78,_0x7b4d15=_0x40118a[_0x5b807e];if(_0x5d6945(0x1fb)==_0x7b4d15||_0x5d6945(0x214)==_0x7b4d15||_0x5d6945(0x20b)==_0x7b4d15||_0x5d6945(0x202)==_0x7b4d15||_0x5d6945(0x1f6)==_0x7b4d15||_0x5d6945(0x1cd)==_0x7b4d15||_0x5d6945(0x1d7)==_0x7b4d15||_0x5d6945(0x20e)==_0x7b4d15){delete _0x40118a[_0x5b807e],_0x143728=_0x7b4d15,clearInterval(this[_0x5d6945(0x210)]),this[_0x5d6945(0x210)]=void 0x0;break;}}_0x5d6945(0x214)==_0x143728&&_0x40118a[_0x5d6945(0x1ce)](_0x5d6945(0x205)),_0x5d6945(0x20b)==_0x143728&&_0x40118a[_0x5d6945(0x1ce)](_0x5d6945(0x21c)),_0x5d6945(0x202)==_0x143728&&_0x40118a[_0x5d6945(0x1ce)](_0x5d6945(0x1fa)),_0x5d6945(0x1f6)==_0x143728&&_0x40118a[_0x5d6945(0x1ce)](_0x5d6945(0x1e8),_0x5d6945(0x1d1)),_0x5d6945(0x1cd)==_0x143728&&_0x40118a[_0x5d6945(0x1ce)](_0x5d6945(0x1f8)),_0x5d6945(0x1d7)==_0x143728&&_0x40118a[_0x5d6945(0x1ce)](_0x5d6945(0x209)),_0x5d6945(0x20e)==_0x143728&&_0x40118a[_0x5d6945(0x1ce)](_0x5d6945(0x21e));},0x3e8);}[_0x4d690c(0x1e1)](){const _0x207c71=_0x4d690c,{editor:_0x4b7e4b}=this,_0x2472bf=_0x4b7e4b[_0x207c71(0x201)][_0x207c71(0x1ee)](_0x207c71(0x1fe));if(!_0x2472bf)return;const _0x3dd0cd=this[_0x207c71(0x1e0)](_0x4b7e4b[_0x207c71(0x1f7)][_0x207c71(0x1ee)](_0x207c71(0x21b)))[_0x207c71(0x206)]((_0x47237e,_0x2ee472)=>{const _0x4de701=_0x207c71,_0x4e3a19=this[_0x4de701(0x1d4)](_0x2ee472[_0x4de701(0x1de)]);return _0x47237e[_0x4e3a19]||(_0x47237e[_0x4e3a19]=[]),_0x47237e[_0x4e3a19][_0x4de701(0x1f5)](_0x2ee472),_0x47237e;},{});_0x4b7e4b[_0x207c71(0x1ed)][_0x207c71(0x208)](_0x207c71(0x1ea))&&_0x4b7e4b[_0x207c71(0x201)][_0x207c71(0x1ee)](_0x207c71(0x1fe))&&Object[_0x207c71(0x20c)](_0x3dd0cd)[_0x207c71(0x1d9)](([_0x4ce3d2,_0x2f576a])=>{const _0x42b7e7=_0x207c71;_0x4b7e4b[_0x42b7e7(0x1ed)][_0x42b7e7(0x1ee)](_0x42b7e7(0x1ea))[_0x42b7e7(0x207)]({'name':_0x4ce3d2,'observable':()=>_0x2472bf,'buttonViewCreator':()=>this[_0x42b7e7(0x1e4)](_0x2f576a),'formViewCreator':()=>this[_0x42b7e7(0x211)](_0x2f576a),'menuBarButtonViewCreator':()=>this[_0x42b7e7(0x1ef)](_0x2f576a),'override':_0x42b7e7(0x1dc)!==_0x4ce3d2});});}[_0x4d690c(0x200)](){const _0x4f4449=_0x4d690c;super[_0x4f4449(0x200)](),this[_0x4f4449(0x210)]&&clearInterval(this[_0x4f4449(0x210)]);}[_0x4d690c(0x1e0)](_0x12d601){const _0x48032c=_0x4d690c,{locale:_0xf4d819}=this[_0x48032c(0x1cf)];return _0x12d601[_0x48032c(0x1eb)](_0x388c6f=>{const _0x11eb0e=_0x48032c,_0x2567d6=_0x59ffa3(_0xf4d819,_0x388c6f,_0x11eb0e(0x21d));switch(_0x388c6f){case _0xa34474[_0x11eb0e(0x1cc)]:return{'icon':_0x392e15,'type':_0xa34474[_0x11eb0e(0x1cc)],..._0x2567d6};case _0xa34474[_0x11eb0e(0x1ec)]:return{'icon':_0x1d0d3d,'type':_0xa34474[_0x11eb0e(0x1ec)],..._0x2567d6};case _0xa34474[_0x11eb0e(0x218)]:return{'icon':_0x2fa2cc,'type':_0xa34474[_0x11eb0e(0x218)],..._0x2567d6};case _0xa34474[_0x11eb0e(0x1d3)]:return{'icon':_0x367cd2,'type':_0xa34474[_0x11eb0e(0x1d3)],..._0x2567d6};case _0xa34474[_0x11eb0e(0x1f3)]:return{'icon':_0x5b0fa8,'type':_0xa34474[_0x11eb0e(0x1f3)],..._0x2567d6};case _0xa34474[_0x11eb0e(0x1db)]:return{'icon':_0x41fe34,'type':_0xa34474[_0x11eb0e(0x1db)],..._0x2567d6};case _0xa34474[_0x11eb0e(0x1da)]:return{'icon':_0x572aa8,'type':_0xa34474[_0x11eb0e(0x1da)],..._0x2567d6};}});}[_0x4d690c(0x1d4)](_0x5d549b){const _0x420f4e=_0x4d690c;switch(_0x5d549b){case _0xa34474[_0x420f4e(0x1cc)]:return _0x420f4e(0x215);case _0xa34474[_0x420f4e(0x1ec)]:return _0x420f4e(0x1e9);default:return _0x420f4e(0x1dc);}}[_0x4d690c(0x1e6)](_0x5b9b97,_0x2551dd){const _0x5e3d1e=_0x4d690c,_0x57daaa=this[_0x5e3d1e(0x1cf)],_0x5d0875=new _0x5b9b97(_0x57daaa[_0x5e3d1e(0x1f2)]),_0x4fd91c=_0x57daaa[_0x5e3d1e(0x201)][_0x5e3d1e(0x1ee)](_0x5e3d1e(0x1fe));return _0x5d0875[_0x5e3d1e(0x1e2)](_0x5e3d1e(0x1f0))['to'](_0x4fd91c),_0x5d0875['on'](_0x5e3d1e(0x216),()=>{const _0x3c1aa7=_0x5e3d1e;_0x4fd91c[_0x3c1aa7(0x216)](_0x2551dd);}),_0x5d0875;}[_0x4d690c(0x1e4)](_0x4b2b14){const _0x2e344b=_0x4d690c,{locale:_0x1d4c19}=this[_0x2e344b(0x1cf)],_0x3fe020=this[_0x2e344b(0x1cf)][_0x2e344b(0x1ed)][_0x2e344b(0x1ee)](_0x2e344b(0x1ea)),_0x68a826=_0x4b2b14[0x0],_0x459727=this[_0x2e344b(0x1e6)](_0x5cf618,_0x68a826[_0x2e344b(0x1de)]);return _0x459727[_0x2e344b(0x1d2)]=_0x68a826[_0x2e344b(0x1d2)],_0x459727[_0x2e344b(0x1e2)](_0x2e344b(0x219))['to'](_0x3fe020,_0x2e344b(0x212),_0x2a6224=>_0x59ffa3(_0x1d4c19,_0x68a826[_0x2e344b(0x1de)],_0x2a6224?_0x2e344b(0x1e5):_0x2e344b(0x21d))[_0x2e344b(0x213)]),_0x459727[_0x2e344b(0x1e7)]=!0x0,_0x459727;}[_0x4d690c(0x211)](_0x1dfb95){const _0x4bebab=_0x4d690c,{locale:_0x32069b}=this[_0x4bebab(0x1cf)],_0x4fc8ee=this[_0x4bebab(0x1cf)][_0x4bebab(0x1ed)][_0x4bebab(0x1ee)](_0x4bebab(0x1ea));return _0x1dfb95[_0x4bebab(0x1eb)](_0x3a7031=>{const _0x5d78b5=_0x4bebab,_0xf2de53=this[_0x5d78b5(0x1e6)](_0x5cf618,_0x3a7031[_0x5d78b5(0x1de)]);return _0xf2de53[_0x5d78b5(0x217)]=!0x0,_0xf2de53[_0x5d78b5(0x1d2)]=_0x3a7031[_0x5d78b5(0x1d2)],_0xf2de53[_0x5d78b5(0x1e2)](_0x5d78b5(0x219))['to'](_0x4fc8ee,_0x5d78b5(0x212),_0x502bf2=>_0x59ffa3(_0x32069b,_0x3a7031[_0x5d78b5(0x1de)],_0x502bf2?_0x5d78b5(0x1e5):_0x5d78b5(0x21d))[_0x5d78b5(0x213)]),_0xf2de53;});}[_0x4d690c(0x1ef)](_0xda91be){const _0x399366=_0x4d690c;return _0xda91be[_0x399366(0x1eb)](_0x275610=>{const _0x23e869=_0x399366,_0x3c7c48=this[_0x23e869(0x1e6)](_0x372469,_0x275610[_0x23e869(0x1de)]);return _0x3c7c48[_0x23e869(0x1d2)]=_0x275610[_0x23e869(0x1d2)],_0x3c7c48[_0x23e869(0x219)]=_0x275610[_0x23e869(0x20d)],_0x3c7c48;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x75eb6f}from'ckeditor5/src/core.js';import{FileRepository as _0x406414}from'ckeditor5/src/upload.js';import _0x57ad65 from'./uploadcareediting.js';import _0x1cc203 from'./utils/uploadutils.js';import{getImageUrls as _0x1e03c5}from'./utils/editingutils.js';export default class p extends _0x75eb6f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x406414,_0x57ad65];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2181e3=this['editor'];if(!!!_0x2181e3['config']['get']('uploadcare'))return;_0x2181e3['plugins']['get'](_0x406414)['createUploadAdapter']=_0x58363e=>new x(_0x58363e,_0x2181e3),_0x2181e3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x16a957,{imageElement:_0x4c1e4f,data:_0x316295})=>{_0x2181e3['model']['change'](_0x91ea83=>{_0x91ea83['setAttribute']('uploadcareImageId',_0x316295['uploadcareImageId'],_0x4c1e4f);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x56a941,_0x9a43e8){this['loader']=_0x56a941,this['editor']=_0x9a43e8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xabb8c1=this['editor']['config']['get']('uploadcare.pubkey'),_0x45852e=await this['loader']['file'];return _0x1cc203['upload']({'file':_0x45852e,'publicKey':_0xabb8c1,'signal':this['controller']['signal'],'onProgress':_0x454233=>{_0x454233&&_0x454233['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x454233['value']);}})['then'](async _0x6c4425=>{const {imageFallbackUrl:_0x423d78,imageSources:_0x1df9ba}=_0x1e03c5(_0x6c4425['cdnUrl'],_0x6c4425['imageInfo']['width']);return{'uploadcareImageId':_0x6c4425['uuid'],'default':_0x423d78,'sources':_0x1df9ba};})['catch'](()=>{const _0x2b8de3=t('Cannot\x20upload\x20file:')+('\x20'+_0x45852e['name']+'.');return Promise['reject'](_0x2b8de3);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xcb8dd4}from'../uploadcareconfig.js';export function getTranslation(_0x545632,_0x7b347,_0x47bde5){const t=_0x545632['t'],_0x2b82a0=_0x545632['t'];switch(_0x7b347){case _0xcb8dd4['Local']:return{'text':_0x2b82a0('Insert'===_0x47bde5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2b82a0('From\x20computer')};case _0xcb8dd4['URL']:return{'text':'Insert'===_0x47bde5?_0x2b82a0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2b82a0('Via\x20URL')};case _0xcb8dd4['Dropbox']:return{'text':t('Insert'===_0x47bde5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xcb8dd4['Facebook']:return{'text':t('Insert'===_0x47bde5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xcb8dd4['GDrive']:return{'text':t('Insert'===_0x47bde5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xcb8dd4['GPhotos']:return{'text':t('Insert'===_0x47bde5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xcb8dd4['OneDrive']:return{'text':t('Insert'===_0x47bde5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x7b347;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4652d1=_0x2124;(function(_0x2e43ab,_0x100cb2){var _0x2b2792=_0x2124,_0xce3f36=_0x2e43ab();while(!![]){try{var _0x481abe=-parseInt(_0x2b2792(0xd4))/0x1+-parseInt(_0x2b2792(0xe2))/0x2*(parseInt(_0x2b2792(0xd8))/0x3)+parseInt(_0x2b2792(0xe3))/0x4+-parseInt(_0x2b2792(0xd2))/0x5*(parseInt(_0x2b2792(0xd5))/0x6)+parseInt(_0x2b2792(0xdf))/0x7*(parseInt(_0x2b2792(0xe4))/0x8)+-parseInt(_0x2b2792(0xde))/0x9+parseInt(_0x2b2792(0xe0))/0xa;if(_0x481abe===_0x100cb2)break;else _0xce3f36['push'](_0xce3f36['shift']());}catch(_0x421df5){_0xce3f36['push'](_0xce3f36['shift']());}}}(_0x4d85,0x5c983));import{FocusTracker as _0x285e11}from'ckeditor5/src/utils.js';function _0x4d85(){var _0x1c4ead=['26886gHNJwc','getFocusableElement','createCollection','7839UxLgCV','focusCycler','focusTracker','fire','div','forwardCycle','5181480VLfOWw','1106007OWuFiP','6020930RwfWlz','true','38JlsBeZ','601508yPzXiz','24cUeamQ','35YPNoVd','bindTemplate','190472MHJkaF'];_0x4d85=function(){return _0x1c4ead;};return _0x4d85();}import{View as _0x272380,FocusCycler as _0xb0c148}from'ckeditor5/src/ui.js';function _0x2124(_0x5b28d9,_0x8d3035){var _0x4d853c=_0x4d85();return _0x2124=function(_0x212460,_0x27430e){_0x212460=_0x212460-0xd2;var _0x4e5a6a=_0x4d853c[_0x212460];return _0x4e5a6a;},_0x2124(_0x5b28d9,_0x8d3035);}import'../../theme/uploadcare-form.css';export default class q extends _0x272380{[_0x4652d1(0xda)];[_0x4652d1(0xd9)];constructor(_0x335a25){var _0x52f3ea=_0x4652d1;super(_0x335a25),this[_0x52f3ea(0xda)]=new _0x285e11(),this[_0x52f3ea(0xd9)]=new _0xb0c148({'focusables':this[_0x52f3ea(0xd7)](),'focusTracker':this[_0x52f3ea(0xda)]});}[_0x4652d1(0xd6)](){var _0x12a350=_0x4652d1;return{'tag':_0x12a350(0xdc),'attributes':{'aria-hidden':_0x12a350(0xe1),'tabindex':'0'},'on':{'focus':this[_0x12a350(0xd3)]['to'](()=>{var _0x4a6615=_0x12a350;this[_0x4a6615(0xd9)][_0x4a6615(0xdb)](_0x4a6615(0xdd));})}};}}
|