@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251230.0 → 0.0.0-nightly-next-20251231.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4e53(_0xa03a44,_0x1c4f3f){const _0x480922=_0x4809();return _0x4e53=function(_0x4e5364,_0x248dca){_0x4e5364=_0x4e5364-0x19f;let _0x41e6de=_0x480922[_0x4e5364];return _0x41e6de;},_0x4e53(_0xa03a44,_0x1c4f3f);}const _0x14c04d=_0x4e53;(function(_0x2f3ce0,_0x480aed){const _0x2a36eb=_0x4e53,_0x52863d=_0x2f3ce0();while(!![]){try{const _0x2a4287=-parseInt(_0x2a36eb(0x1e7))/0x1+parseInt(_0x2a36eb(0x1b5))/0x2*(parseInt(_0x2a36eb(0x1b1))/0x3)+parseInt(_0x2a36eb(0x1b4))/0x4*(parseInt(_0x2a36eb(0x1e8))/0x5)+parseInt(_0x2a36eb(0x1ba))/0x6*(parseInt(_0x2a36eb(0x1a2))/0x7)+parseInt(_0x2a36eb(0x1e4))/0x8*(-parseInt(_0x2a36eb(0x1ae))/0x9)+-parseInt(_0x2a36eb(0x1bf))/0xa+parseInt(_0x2a36eb(0x1ab))/0xb;if(_0x2a4287===_0x480aed)break;else _0x52863d['push'](_0x52863d['shift']());}catch(_0x348b68){_0x52863d['push'](_0x52863d['shift']());}}}(_0x4809,0xcf97c));import{Plugin as _0xe74a58}from'ckeditor5/src/core.js';import{Dialog as _0x33cb83}from'ckeditor5/src/ui.js';import{createElement as _0x479a4d,global as _0x83c9cb,uid as _0x1cef99}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5da0b9}from'./uploadcarecommand.js';function _0x4809(){const _0xd3436b=['true','#uc-icon-arrow-down','extend','model','map','href','_initImageProcessingIndicator','selection','add','render','init','listenTo','imageInline','document','cleanupImage','222446KOWXbe','getSelectedElement','once','uploadcareImageReplace','_ctxElement','destroy','view','fromCharCode','locale','20080324ucorUj','get','imageBlock','13653369PGeciA','PictureEditing','ucContextId','3Barurg','isOfficialPlugin','data-uc-image-id','5320444ciILBP','373276OSuKUN','uploadcare.pubkey','_initConfig','execute','replaceImageSource','12vPKRmX','uploader-','pluginName','uploadcare.uploader','body','5157530shJnav','upcast','\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','querySelector','downcast','commands','for','ctxElement','schema','editor','config','editing','closeMax','remove','appendChild','removeAttribute','_initConversion','getAttribute','_initSchema','uploadcareImageId','input[uploadcare-file-input]','_configElement','isRegistered','elementToAttribute','iconHrefResolver','attributeToAttribute','isPremiumPlugin','_initCtx','uc-upload-ctx-provider','insertImage','join','uc-config','contentLanguage','afterInit','UploadcareEditing','configElement','requires','8IOsKxJ','uploadcare','conversion','522695lHsZzd','5qxjOIQ'];_0x4809=function(){return _0xd3436b;};return _0x4809();}import{UploadcareUploadAdapter as _0xdc77ea}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5c7510}from'./utils/editingutils.js';export class UploadcareEditing extends _0xe74a58{[_0x14c04d(0x1d4)]=null;[_0x14c04d(0x1a6)]=null;static get[_0x14c04d(0x1bc)](){const _0x48fd18=_0x14c04d;return _0x48fd18(0x1e1);}static get[_0x14c04d(0x1e3)](){const _0x2b0a24=_0x14c04d;return[_0x2b0a24(0x1af),_0xdc77ea,_0x33cb83];}static get[_0x14c04d(0x1b2)](){return!0x0;}static get[_0x14c04d(0x1d9)](){return!0x0;}[_0x14c04d(0x1b0)];get[_0x14c04d(0x1e2)](){const _0x763f37=_0x14c04d;return this[_0x763f37(0x1d4)];}get[_0x14c04d(0x1c6)](){const _0x1b84bc=_0x14c04d;return this[_0x1b84bc(0x1a6)];}constructor(_0x19b8ed){const _0x5b29a2=_0x14c04d;super(_0x19b8ed),this[_0x5b29a2(0x1b0)]=_0x1cef99();}[_0x14c04d(0x1f3)](){const _0x194f35=_0x14c04d,_0x375e2c=this[_0x194f35(0x1c8)];_0x375e2c[_0x194f35(0x1c4)][_0x194f35(0x1f1)](_0x194f35(0x1e5),new _0x5da0b9(_0x375e2c));}[_0x14c04d(0x1e0)](){const _0x5b4d01=_0x14c04d;this[_0x5b4d01(0x1d1)](),this[_0x5b4d01(0x1cf)](),this[_0x5b4d01(0x1b7)](),this[_0x5b4d01(0x1da)](),this[_0x5b4d01(0x1ef)](),this[_0x5b4d01(0x1f4)](this[_0x5b4d01(0x1c8)],_0x5b4d01(0x1a7),()=>{const _0x191ea8=_0x5b4d01;this[_0x191ea8(0x1d4)]&&(this[_0x191ea8(0x1d4)][_0x191ea8(0x1cc)](),this[_0x191ea8(0x1d4)]=null),this[_0x191ea8(0x1a6)]&&(this[_0x191ea8(0x1a6)][_0x191ea8(0x1cc)](),this[_0x191ea8(0x1a6)]=null);const _0x25b639=_0x83c9cb[_0x191ea8(0x1a0)][_0x191ea8(0x1c2)](_0x191ea8(0x1d3));_0x25b639&&_0x25b639[_0x191ea8(0x1cc)]();}),async function(_0x4b4f51){const _0x748fa1=_0x20eac7([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2097ac=0x535f8c3a,_0x413bd4=0x5358f15a^_0x2097ac,_0x59db16=window[_0x20eac7([0x44,0x61,0x74,0x65])][_0x20eac7([0x6e,0x6f,0x77])](),_0x47a25c=_0x4b4f51[_0x20eac7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1428ec=new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b28d=>{_0x47a25c[_0x20eac7([0x6f,0x6e,0x63,0x65])](_0x20eac7([0x72,0x65,0x61,0x64,0x79]),_0x21b28d);}),_0x2db73d={[_0x20eac7([0x6b,0x74,0x79])]:_0x20eac7([0x45,0x43]),[_0x20eac7([0x75,0x73,0x65])]:_0x20eac7([0x73,0x69,0x67]),[_0x20eac7([0x63,0x72,0x76])]:_0x20eac7([0x50,0x2d,0x32,0x35,0x36]),[_0x20eac7([0x78])]:_0x20eac7([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]),[_0x20eac7([0x79])]:_0x20eac7([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]),[_0x20eac7([0x61,0x6c,0x67])]:_0x20eac7([0x45,0x53,0x32,0x35,0x36])},_0x54ad19=_0x47a25c[_0x20eac7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20eac7([0x67,0x65,0x74])](_0x20eac7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a14bb(){let _0x23c8ef,_0x170e66=null,_0x1bf01b=null;try{if(_0x54ad19==_0x20eac7([0x47,0x50,0x4c]))return _0x20eac7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23c8ef=_0x3d1558(),!_0x23c8ef)return _0x20eac7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23c8ef[_0x20eac7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bf01b=_0x14b929(_0x23c8ef[_0x20eac7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23c8ef[_0x20eac7([0x6a,0x74,0x69])])),await _0x317cc4()?_0x183cb7()?_0x2315f6()?_0x20eac7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12bcf4()?(_0x23c8ef[_0x20eac7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20eac7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x170e66=_0x382d2c(_0x20eac7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x23c8ef[_0x20eac7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20eac7([0x74,0x72,0x69,0x61,0x6c])&&(_0x170e66=_0x382d2c(_0x20eac7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x35737b()):_0x20eac7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20eac7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20eac7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20eac7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2315f6(){const _0x3bc003=[_0x20eac7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20eac7([0x74,0x72,0x69,0x61,0x6c])][_0x20eac7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c8ef[_0x20eac7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59db16/0x3e8:0xe10*_0x413bd4;return _0x23c8ef[_0x20eac7([0x65,0x78,0x70])]<_0x3bc003;}function _0x183cb7(){const _0x25c914=_0x23c8ef[_0x20eac7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x25c914&&(!!_0x25c914[_0x20eac7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20eac7([0x2a]))||!!_0x25c914[_0x20eac7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20eac7([0x55,0x50,0x4c,0x43])));}function _0x12bcf4(){const _0x41fd68=_0x4e53,_0x2ac7fc=_0x23c8ef[_0x20eac7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ac7fc||0x0==_0x2ac7fc[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a8db2}=new URL(window[_0x20eac7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x41fd68(0x1ee)]);if(_0x2ac7fc[_0x20eac7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8db2))return!0x0;const _0x4dfd5a=_0x5a8db2[_0x20eac7([0x73,0x70,0x6c,0x69,0x74])](_0x20eac7([0x2e]));return _0x2ac7fc[_0x20eac7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b03be=>_0x3b03be[_0x20eac7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20eac7([0x2a])))[_0x20eac7([0x6d,0x61,0x70])](_0x2aea1b=>_0x2aea1b[_0x20eac7([0x73,0x70,0x6c,0x69,0x74])](_0x20eac7([0x2e])))[_0x20eac7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37913d=>_0x37913d[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4dfd5a[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20eac7([0x6d,0x61,0x70])](_0x186182=>Array(_0x4dfd5a[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x186182[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20eac7([0x66,0x69,0x6c,0x6c])](_0x186182[0x0]===_0x20eac7([0x2a])?_0x20eac7([0x2a]):'')[_0x20eac7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x186182))[_0x20eac7([0x73,0x6f,0x6d,0x65])](_0x20d4ce=>_0x4dfd5a[_0x20eac7([0x65,0x76,0x65,0x72,0x79])]((_0x525cb0,_0x13bd55)=>_0x20d4ce[_0x13bd55]===_0x525cb0||_0x20d4ce[_0x13bd55]===_0x20eac7([0x2a])));}function _0x35737b(){return _0x170e66&&_0x1bf01b?new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xaf3614,_0x180bc6)=>{_0x170e66[_0x20eac7([0x74,0x68,0x65,0x6e])](_0xaf3614,_0x180bc6),_0x1bf01b[_0x20eac7([0x74,0x68,0x65,0x6e])](_0xf84144=>{_0xf84144!=_0x20eac7([0x56,0x61,0x6c,0x69,0x64])&&_0xaf3614(_0xf84144);},_0x180bc6);}):_0x170e66||_0x1bf01b||_0x20eac7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x14b929(_0x5ca6d2,_0x8b634){return new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5561c6=>{if(_0x1ef61a())return _0x5561c6(_0x20eac7([0x56,0x61,0x6c,0x69,0x64]));_0x29beaf(),_0x47a25c[_0x20eac7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20eac7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3456a1=!0x1;const _0x2da294=_0x1cef99();function _0x3ef28d(_0x5ddcab){return!!_0x5ddcab&&(typeof _0x5ddcab===_0x20eac7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ddcab===_0x20eac7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ddcab[_0x20eac7([0x74,0x68,0x65,0x6e])]===_0x20eac7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ddcab[_0x20eac7([0x63,0x61,0x74,0x63,0x68])]===_0x20eac7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e29c3(_0x43b963){_0x1011b7(_0x43b963)[_0x20eac7([0x74,0x68,0x65,0x6e])](_0x2d8ef0=>{if(!_0x2d8ef0||_0x2d8ef0[_0x20eac7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20eac7([0x6f,0x6b]))return _0x20eac7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x298321(_0x5e39c5(_0x2da294+_0x8b634))!=_0x2d8ef0[_0x20eac7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20eac7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20eac7([0x56,0x61,0x6c,0x69,0x64]);})[_0x20eac7([0x74,0x68,0x65,0x6e])](_0x107fa5=>(_0x4d2aed(),_0x107fa5),()=>{const _0x3d316f=_0x1753f9();return null==_0x3d316f?(_0x4d2aed(),_0x20eac7([0x56,0x61,0x6c,0x69,0x64])):_0x20eac7(_0x59db16-_0x3d316f>(0x7753083a^_0x2097ac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20eac7([0x74,0x68,0x65,0x6e])](_0x5561c6)[_0x20eac7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5561c6(_0x20eac7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x17ec8c=0x536962ba^_0x2097ac;function _0x4d2aed(){const _0x49674b=_0x20eac7([0x6c,0x6c,0x63,0x74,0x2d])+_0x298321(_0x5e39c5(_0x5ca6d2)),_0x30c4b7=_0x48c6ed(_0x298321(window[_0x20eac7([0x4d,0x61,0x74,0x68])][_0x20eac7([0x63,0x65,0x69,0x6c])](_0x59db16/_0x17ec8c)));window[_0x20eac7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20eac7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49674b,_0x30c4b7);}function _0x1753f9(){const _0x2b4e57=_0x20eac7([0x6c,0x6c,0x63,0x74,0x2d])+_0x298321(_0x5e39c5(_0x5ca6d2)),_0x3ce3b6=window[_0x20eac7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20eac7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b4e57);return _0x3ce3b6?window[_0x20eac7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48c6ed(_0x3ce3b6),0x10)*_0x17ec8c:null;}function _0x1011b7(_0x2885a3){return new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59da99,_0xac6206)=>{_0x2885a3[_0x20eac7([0x74,0x68,0x65,0x6e])](_0x59da99,_0xac6206),window[_0x20eac7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xac6206,0x535e58fa^_0x2097ac);});}}_0x47a25c[_0x20eac7([0x6f,0x6e])](_0x20eac7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13d477,_0x39dc08)=>{if(_0x39dc08[0x0]!=_0x5ca6d2)return _0x5561c6(_0x20eac7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39dc08[0x1]={..._0x39dc08[0x1],[_0x20eac7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2da294};},{[_0x20eac7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20eac7([0x68,0x69,0x67,0x68])}),_0x47a25c[_0x20eac7([0x6f,0x6e])](_0x20eac7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x48091b=>{_0x3ef28d(_0x48091b[_0x20eac7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3456a1=!0x0,_0x1e29c3(_0x48091b[_0x20eac7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20eac7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20eac7([0x6c,0x6f,0x77])}),_0x1428ec[_0x20eac7([0x74,0x68,0x65,0x6e])](()=>{_0x3456a1||_0x5561c6(_0x20eac7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ef61a(){return _0x47a25c[_0x20eac7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20eac7([0x76,0x69,0x65,0x77])][_0x20eac7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20eac7([0x61,0x75,0x74,0x6f]);}function _0x29beaf(){_0x47a25c[_0x20eac7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20eac7([0x76,0x69,0x65,0x77])][_0x20eac7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20eac7([0x61,0x75,0x74,0x6f]);}}function _0x382d2c(_0x576ef6){const _0x1a4574=[new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14e53d=>setTimeout(_0x14e53d,0x5356b2f6^_0x2097ac)),_0x1428ec[_0x20eac7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x909211=>{let _0x36445d=0x0;_0x47a25c[_0x20eac7([0x6d,0x6f,0x64,0x65,0x6c])][_0x20eac7([0x6f,0x6e])](_0x20eac7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a6b8b,_0x1a8002)=>{_0x1a8002[0x0][_0x20eac7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x36445d++,_0x36445d==(0x535f89d2^_0x2097ac)&&(_0x909211(),_0x4a6b8b[_0x20eac7([0x6f,0x66,0x66])]());});}))];return window[_0x20eac7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20eac7([0x72,0x61,0x63,0x65])](_0x1a4574)[_0x20eac7([0x74,0x68,0x65,0x6e])](()=>_0x576ef6);}async function _0x4844e0(){await _0x1428ec,_0x47a25c[_0x20eac7([0x6d,0x6f,0x64,0x65,0x6c])][_0x20eac7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b5787,_0x47a25c[_0x20eac7([0x6d,0x6f,0x64,0x65,0x6c])][_0x20eac7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b5787,_0x47a25c[_0x20eac7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20eac7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1274f4(_0x320c25){const _0x5c5469=_0x4d78a0();_0x47a25c[_0x5c5469]=_0x20eac7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x320c25,_0x320c25!=_0x20eac7([0x56,0x61,0x6c,0x69,0x64])&&_0x4844e0();}function _0x4d78a0(){const _0x1a5c84=window[_0x20eac7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20eac7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20eac7([0x6e,0x6f,0x77])]())[_0x20eac7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20eac7([0x2e]),'');let _0x59e922=_0x20eac7([0x68]);for(let _0xd5d0de=0x0;_0xd5d0de<_0x1a5c84[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd5d0de+=0x2){let _0x172f38=window[_0x20eac7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a5c84[_0x20eac7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd5d0de,_0xd5d0de+0x2));_0x172f38>=_0x748fa1[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x172f38-=_0x748fa1[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59e922+=_0x748fa1[_0x172f38];}return _0x59e922;}function _0x3d1558(){const _0xbd98ea=_0x54ad19[_0x20eac7([0x73,0x70,0x6c,0x69,0x74])](_0x20eac7([0x2e]));if(0x3!=_0xbd98ea[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57aea2(_0xbd98ea[0x1]);function _0x57aea2(_0x3d557e){const _0x45d683=_0x6fa74e(_0x3d557e);return _0x45d683&&_0x2e3302()?_0x45d683:null;function _0x2e3302(){const _0x18adba=_0x45d683[_0x20eac7([0x6a,0x74,0x69])],_0x4f1f58=window[_0x20eac7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18adba[_0x20eac7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18adba[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x231773={..._0x45d683,[_0x20eac7([0x6a,0x74,0x69])]:_0x18adba[_0x20eac7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18adba[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x231773[_0x20eac7([0x76,0x63])],_0x5e39c5(_0x231773)==_0x4f1f58;}}}async function _0x317cc4(){let _0x351e3c=!0x0;try{const _0x503779=_0x54ad19[_0x20eac7([0x73,0x70,0x6c,0x69,0x74])](_0x20eac7([0x2e])),[_0x7bf3e5,_0x315d5f,_0x219356]=_0x503779;return _0xf373ba(_0x7bf3e5),await _0x3f6e5d(_0x7bf3e5,_0x315d5f,_0x219356),_0x351e3c;}catch{return!0x1;}function _0xf373ba(_0x166352){const _0x1479d9=_0x6fa74e(_0x166352);_0x1479d9&&_0x1479d9[_0x20eac7([0x61,0x6c,0x67])]==_0x20eac7([0x45,0x53,0x32,0x35,0x36])||(_0x351e3c=!0x1);}async function _0x3f6e5d(_0x22d33c,_0x47465d,_0x3a10d7){const _0x37d5ca=window[_0x20eac7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20eac7([0x66,0x72,0x6f,0x6d])](_0x78af73(_0x3a10d7),_0x1e501c=>_0x1e501c[_0x20eac7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21a8e3=new window[(_0x20eac7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20eac7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22d33c+_0x20eac7([0x2e])+_0x47465d),_0x500efd=window[_0x20eac7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20eac7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x500efd)return;const _0x517fa6=await _0x500efd[_0x20eac7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20eac7([0x6a,0x77,0x6b]),_0x2db73d,{[_0x20eac7([0x6e,0x61,0x6d,0x65])]:_0x20eac7([0x45,0x43,0x44,0x53,0x41]),[_0x20eac7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20eac7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20eac7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x500efd[_0x20eac7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20eac7([0x6e,0x61,0x6d,0x65])]:_0x20eac7([0x45,0x43,0x44,0x53,0x41]),[_0x20eac7([0x68,0x61,0x73,0x68])]:{[_0x20eac7([0x6e,0x61,0x6d,0x65])]:_0x20eac7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x517fa6,_0x37d5ca,_0x21a8e3)||(_0x351e3c=!0x1);}}function _0x6fa74e(_0x611022){return _0x611022[_0x20eac7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20eac7([0x65,0x79]))?JSON[_0x20eac7([0x70,0x61,0x72,0x73,0x65])](_0x78af73(_0x611022)):null;}function _0x78af73(_0x16538c){return window[_0x20eac7([0x61,0x74,0x6f,0x62])](_0x16538c[_0x20eac7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20eac7([0x2b]))[_0x20eac7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20eac7([0x2f])));}function _0x5e39c5(_0xfbba71){let _0x1bad81=0x1505;function _0x36a36e(_0x301748){for(let _0x56ae5f=0x0;_0x56ae5f<_0x301748[_0x20eac7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56ae5f++){const _0x32343e=_0x301748[_0x20eac7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56ae5f);_0x1bad81=(_0x1bad81<<0x5)+_0x1bad81+_0x32343e,_0x1bad81&=_0x1bad81;}}function _0x5068ce(_0xd9b45a){Array[_0x20eac7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd9b45a)?_0xd9b45a[_0x20eac7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5068ce):_0xd9b45a&&typeof _0xd9b45a==_0x20eac7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20eac7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd9b45a)[_0x20eac7([0x73,0x6f,0x72,0x74])]()[_0x20eac7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13aecf,_0x1e4c0c])=>{_0x36a36e(_0x13aecf),_0x5068ce(_0x1e4c0c);}):_0x36a36e(window[_0x20eac7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd9b45a));}return _0x5068ce(_0xfbba71),_0x1bad81>>>0x0;}function _0x298321(_0x204f3c){return _0x204f3c[_0x20eac7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20eac7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20eac7([0x30]));}function _0x48c6ed(_0x1fa0de){return _0x1fa0de[_0x20eac7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20eac7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20eac7([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b5787(){}function _0x20eac7(_0x15f433){const _0x20f589=_0x4e53;return _0x15f433[_0x20f589(0x1ed)](_0x5bfcb5=>String[_0x20f589(0x1a9)](_0x5bfcb5))[_0x20f589(0x1dd)]('');}_0x1274f4(await _0x4a14bb());}(this);}[_0x14c04d(0x1d1)](){const _0x31dff3=_0x14c04d,_0x31ce0f=this[_0x31dff3(0x1c8)][_0x31dff3(0x1ec)][_0x31dff3(0x1c7)];_0x31ce0f[_0x31dff3(0x1d5)](_0x31dff3(0x1ad))&&_0x31ce0f[_0x31dff3(0x1eb)](_0x31dff3(0x1ad),{'allowAttributes':[_0x31dff3(0x1d2)]}),_0x31ce0f[_0x31dff3(0x1d5)](_0x31dff3(0x19f))&&_0x31ce0f[_0x31dff3(0x1eb)](_0x31dff3(0x19f),{'allowAttributes':[_0x31dff3(0x1d2)]});}[_0x14c04d(0x1cf)](){const _0x493330=_0x14c04d,_0x195dc6=this[_0x493330(0x1c8)];_0x195dc6[_0x493330(0x1e6)][_0x493330(0x1c5)](_0x493330(0x1c3))[_0x493330(0x1d8)]({'model':_0x493330(0x1d2),'view':_0x493330(0x1b3)}),_0x195dc6[_0x493330(0x1e6)][_0x493330(0x1c5)](_0x493330(0x1c0))[_0x493330(0x1d6)]({'model':{'key':_0x493330(0x1d2),'value':_0x3c7a71=>_0x3c7a71[_0x493330(0x1d0)](_0x493330(0x1b3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x33f4aa=_0x195dc6[_0x493330(0x1c4)][_0x493330(0x1ac)](_0x493330(0x1b9));_0x33f4aa&&this[_0x493330(0x1f4)](_0x33f4aa,_0x493330(0x1a1),(_0x4be7ce,[_0x5b32e9,_0x994c9b])=>{const _0x2d3f47=_0x493330;_0x5b32e9[_0x2d3f47(0x1ce)](_0x2d3f47(0x1d2),_0x994c9b);});}[_0x14c04d(0x1b7)](){const _0x2a9a53=_0x14c04d,_0xac84c7=this[_0x2a9a53(0x1c8)][_0x2a9a53(0x1c9)][_0x2a9a53(0x1ac)](_0x2a9a53(0x1bd))||{},_0x3843db=this[_0x2a9a53(0x1c8)][_0x2a9a53(0x1c9)][_0x2a9a53(0x1ac)](_0x2a9a53(0x1b6))||'';this[_0x2a9a53(0x1d4)]=_0x479a4d(_0x83c9cb[_0x2a9a53(0x1a0)],_0x2a9a53(0x1de),{..._0xac84c7,'pubkey':_0x3843db,'ctx-name':_0x2a9a53(0x1bb)+this[_0x2a9a53(0x1b0)],'sourceList':'','imgOnly':_0x2a9a53(0x1e9),'removeCopyright':_0x2a9a53(0x1e9),'localeName':this[_0x2a9a53(0x1c8)][_0x2a9a53(0x1aa)][_0x2a9a53(0x1df)],'externalSourcesEmbedCss':_0x2a9a53(0x1c1)}),this[_0x2a9a53(0x1d4)][_0x2a9a53(0x1d7)]=_0x3e2ef0=>{const _0x389dc4=_0x2a9a53;if(_0x389dc4(0x1cb)==_0x3e2ef0)return _0x389dc4(0x1ea);},_0x83c9cb[_0x2a9a53(0x1a0)][_0x2a9a53(0x1be)][_0x2a9a53(0x1cd)](this[_0x2a9a53(0x1d4)]);}[_0x14c04d(0x1da)](){const _0xb08d82=_0x14c04d;this[_0xb08d82(0x1a6)]=_0x479a4d(_0x83c9cb[_0xb08d82(0x1a0)],_0xb08d82(0x1db),{'ctx-name':_0xb08d82(0x1bb)+this[_0xb08d82(0x1b0)]}),_0x83c9cb[_0xb08d82(0x1a0)][_0xb08d82(0x1be)][_0xb08d82(0x1cd)](this[_0xb08d82(0x1a6)]);}[_0x14c04d(0x1ef)](){const _0x51454e=_0x14c04d,_0x300f00=this[_0x51454e(0x1c8)][_0x51454e(0x1c4)][_0x51454e(0x1ac)](_0x51454e(0x1dc));_0x300f00&&this[_0x51454e(0x1f4)](_0x300f00,_0x51454e(0x1b8),()=>{const _0x412ff1=_0x51454e,_0x391705=this[_0x412ff1(0x1c8)][_0x412ff1(0x1ec)][_0x412ff1(0x1a0)][_0x412ff1(0x1f0)][_0x412ff1(0x1a3)]();_0x391705&&_0x391705[_0x412ff1(0x1d0)](_0x412ff1(0x1d2))&&this[_0x412ff1(0x1c8)][_0x412ff1(0x1ca)][_0x412ff1(0x1a8)][_0x412ff1(0x1a4)](_0x412ff1(0x1f2),()=>{const _0x249654=_0x412ff1;_0x5c7510(this[_0x249654(0x1c8)],_0x391705);});});const _0x3a08da=this[_0x51454e(0x1c8)][_0x51454e(0x1c4)][_0x51454e(0x1ac)](_0x51454e(0x1a5));_0x3a08da&&this[_0x51454e(0x1f4)](_0x3a08da,_0x51454e(0x1b8),()=>{const _0x19b249=_0x51454e,_0x586afb=this[_0x19b249(0x1c8)][_0x19b249(0x1ec)][_0x19b249(0x1a0)][_0x19b249(0x1f0)][_0x19b249(0x1a3)]();_0x586afb&&_0x586afb[_0x19b249(0x1d0)](_0x19b249(0x1d2))&&this[_0x19b249(0x1c8)][_0x19b249(0x1ca)][_0x19b249(0x1a8)][_0x19b249(0x1a4)](_0x19b249(0x1f2),()=>{const _0x1fadd6=_0x19b249;_0x5c7510(this[_0x1fadd6(0x1c8)],_0x586afb);});});}}
|
|
23
|
+
function _0x43d4(_0x45b9ae,_0x35d8b5){const _0x261b91=_0x261b();return _0x43d4=function(_0x43d445,_0x2f14d6){_0x43d445=_0x43d445-0x19a;let _0x390a23=_0x261b91[_0x43d445];return _0x390a23;},_0x43d4(_0x45b9ae,_0x35d8b5);}const _0x2c8525=_0x43d4;(function(_0x496650,_0x589077){const _0x388ba6=_0x43d4,_0x4aac00=_0x496650();while(!![]){try{const _0xb091a1=parseInt(_0x388ba6(0x1a6))/0x1*(-parseInt(_0x388ba6(0x1b3))/0x2)+parseInt(_0x388ba6(0x1ec))/0x3*(-parseInt(_0x388ba6(0x1e7))/0x4)+-parseInt(_0x388ba6(0x1bb))/0x5+-parseInt(_0x388ba6(0x1de))/0x6+parseInt(_0x388ba6(0x1d4))/0x7+parseInt(_0x388ba6(0x1b6))/0x8+parseInt(_0x388ba6(0x1a5))/0x9;if(_0xb091a1===_0x589077)break;else _0x4aac00['push'](_0x4aac00['shift']());}catch(_0x412b9c){_0x4aac00['push'](_0x4aac00['shift']());}}}(_0x261b,0xa3b5c));import{Plugin as _0x8b908f}from'ckeditor5/src/core.js';import{Dialog as _0x2bb1f7}from'ckeditor5/src/ui.js';import{createElement as _0x6f644e,global as _0x421869,uid as _0x4a7416}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x303713}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5035b4}from'./uploadcareuploadadapter.js';function _0x261b(){const _0x406bde=['2Konjzz','body','#uc-icon-arrow-down','263376JbPtJe','uc-config','closeMax','imageInline','add','1800830CyOfdH','view','for','uploadcareImageId','render','PictureEditing','ctxElement','insertImage','_initConversion','removeAttribute','_initImageProcessingIndicator','cleanupImage','contentLanguage','remove','listenTo','uploadcareImageReplace','ucContextId','selection','configElement','\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','fromCharCode','isPremiumPlugin','model','get','uc-upload-ctx-provider','8630874EIfGpT','schema','href','appendChild','uploadcare.uploader','afterInit','requires','getSelectedElement','config','_initConfig','5562078LShwRt','commands','editor','document','_initSchema','_configElement','data-uc-image-id','join','replaceImageSource','4YxYzdo','uploadcare.pubkey','conversion','isRegistered','_initCtx','22668YHnYzC','execute','querySelector','uploadcare','init','attributeToAttribute','_ctxElement','editing','elementToAttribute','upcast','uploader-','map','iconHrefResolver','10018395AhTqMX','413768kTlvZP','extend','locale','isOfficialPlugin','destroy','pluginName','input[uploadcare-file-input]','imageBlock','getAttribute','once','downcast','true','UploadcareEditing'];_0x261b=function(){return _0x406bde;};return _0x261b();}import{showImageProcessingIndicator as _0x59f2fb}from'./utils/editingutils.js';export class UploadcareEditing extends _0x8b908f{[_0x2c8525(0x1e3)]=null;[_0x2c8525(0x19e)]=null;static get[_0x2c8525(0x1ab)](){const _0x453feb=_0x2c8525;return _0x453feb(0x1b2);}static get[_0x2c8525(0x1da)](){const _0x2ed41f=_0x2c8525;return[_0x2ed41f(0x1c0),_0x5035b4,_0x2bb1f7];}static get[_0x2c8525(0x1a9)](){return!0x0;}static get[_0x2c8525(0x1d0)](){return!0x0;}[_0x2c8525(0x1cb)];get[_0x2c8525(0x1cd)](){const _0x1b5d76=_0x2c8525;return this[_0x1b5d76(0x1e3)];}get[_0x2c8525(0x1c1)](){const _0x554e11=_0x2c8525;return this[_0x554e11(0x19e)];}constructor(_0x3327e6){const _0x370617=_0x2c8525;super(_0x3327e6),this[_0x370617(0x1cb)]=_0x4a7416();}[_0x2c8525(0x19c)](){const _0x187487=_0x2c8525,_0x9e8371=this[_0x187487(0x1e0)];_0x9e8371[_0x187487(0x1df)][_0x187487(0x1ba)](_0x187487(0x19b),new _0x303713(_0x9e8371));}[_0x2c8525(0x1d9)](){const _0x222a31=_0x2c8525;this[_0x222a31(0x1e2)](),this[_0x222a31(0x1c3)](),this[_0x222a31(0x1dd)](),this[_0x222a31(0x1eb)](),this[_0x222a31(0x1c5)](),this[_0x222a31(0x1c9)](this[_0x222a31(0x1e0)],_0x222a31(0x1aa),()=>{const _0x1bc281=_0x222a31;this[_0x1bc281(0x1e3)]&&(this[_0x1bc281(0x1e3)][_0x1bc281(0x1c8)](),this[_0x1bc281(0x1e3)]=null),this[_0x1bc281(0x19e)]&&(this[_0x1bc281(0x19e)][_0x1bc281(0x1c8)](),this[_0x1bc281(0x19e)]=null);const _0x16b2df=_0x421869[_0x1bc281(0x1e1)][_0x1bc281(0x19a)](_0x1bc281(0x1ac));_0x16b2df&&_0x16b2df[_0x1bc281(0x1c8)]();}),async function(_0x449b85){const _0x418bf8=_0x156357([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1865a0=0x535f8c3a,_0x2a53a2=0x5358f142^_0x1865a0,_0xb5cb11=window[_0x156357([0x44,0x61,0x74,0x65])][_0x156357([0x6e,0x6f,0x77])](),_0x50657d=_0x449b85[_0x156357([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36fec5=new window[(_0x156357([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4555be=>{_0x50657d[_0x156357([0x6f,0x6e,0x63,0x65])](_0x156357([0x72,0x65,0x61,0x64,0x79]),_0x4555be);}),_0x1907fd={[_0x156357([0x6b,0x74,0x79])]:_0x156357([0x45,0x43]),[_0x156357([0x75,0x73,0x65])]:_0x156357([0x73,0x69,0x67]),[_0x156357([0x63,0x72,0x76])]:_0x156357([0x50,0x2d,0x32,0x35,0x36]),[_0x156357([0x78])]:_0x156357([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]),[_0x156357([0x79])]:_0x156357([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]),[_0x156357([0x61,0x6c,0x67])]:_0x156357([0x45,0x53,0x32,0x35,0x36])},_0x3fc97d=_0x50657d[_0x156357([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x156357([0x67,0x65,0x74])](_0x156357([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb77b3b(){let _0x4642b6,_0x303a8f=null,_0x41ccfc=null;try{if(_0x3fc97d==_0x156357([0x47,0x50,0x4c]))return _0x156357([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4642b6=_0xba37f9(),!_0x4642b6)return _0x156357([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4642b6[_0x156357([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41ccfc=_0x2cccef(_0x4642b6[_0x156357([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4642b6[_0x156357([0x6a,0x74,0x69])])),await _0x3bfe2a()?_0x47e5e5()?_0x56aae8()?_0x156357([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x531f5f()?(_0x4642b6[_0x156357([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x156357([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x303a8f=_0x1104b8(_0x156357([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4642b6[_0x156357([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x156357([0x74,0x72,0x69,0x61,0x6c])&&(_0x303a8f=_0x1104b8(_0x156357([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x92926d()):_0x156357([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x156357([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x156357([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x156357([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56aae8(){const _0x2ac2b9=[_0x156357([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x156357([0x74,0x72,0x69,0x61,0x6c])][_0x156357([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4642b6[_0x156357([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb5cb11/0x3e8:0xe10*_0x2a53a2;return _0x4642b6[_0x156357([0x65,0x78,0x70])]<_0x2ac2b9;}function _0x47e5e5(){const _0x395779=_0x4642b6[_0x156357([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x395779&&(!!_0x395779[_0x156357([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156357([0x2a]))||!!_0x395779[_0x156357([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156357([0x55,0x50,0x4c,0x43])));}function _0x531f5f(){const _0x58ad22=_0x43d4,_0x523c36=_0x4642b6[_0x156357([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x523c36||0x0==_0x523c36[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x292c08}=new URL(window[_0x156357([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x58ad22(0x1d6)]);if(_0x523c36[_0x156357([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x292c08))return!0x0;const _0x307c52=_0x292c08[_0x156357([0x73,0x70,0x6c,0x69,0x74])](_0x156357([0x2e]));return _0x523c36[_0x156357([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15f834=>_0x15f834[_0x156357([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156357([0x2a])))[_0x156357([0x6d,0x61,0x70])](_0x2fcde2=>_0x2fcde2[_0x156357([0x73,0x70,0x6c,0x69,0x74])](_0x156357([0x2e])))[_0x156357([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17b726=>_0x17b726[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x307c52[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x156357([0x6d,0x61,0x70])](_0x19bc35=>Array(_0x307c52[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19bc35[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x156357([0x66,0x69,0x6c,0x6c])](_0x19bc35[0x0]===_0x156357([0x2a])?_0x156357([0x2a]):'')[_0x156357([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19bc35))[_0x156357([0x73,0x6f,0x6d,0x65])](_0x1c45a9=>_0x307c52[_0x156357([0x65,0x76,0x65,0x72,0x79])]((_0x3e16c3,_0x3de229)=>_0x1c45a9[_0x3de229]===_0x3e16c3||_0x1c45a9[_0x3de229]===_0x156357([0x2a])));}function _0x92926d(){return _0x303a8f&&_0x41ccfc?new window[(_0x156357([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f21b8,_0x5e9dbb)=>{_0x303a8f[_0x156357([0x74,0x68,0x65,0x6e])](_0x1f21b8,_0x5e9dbb),_0x41ccfc[_0x156357([0x74,0x68,0x65,0x6e])](_0x5159bc=>{_0x5159bc!=_0x156357([0x56,0x61,0x6c,0x69,0x64])&&_0x1f21b8(_0x5159bc);},_0x5e9dbb);}):_0x303a8f||_0x41ccfc||_0x156357([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2cccef(_0x3a0277,_0x46c12d){return new window[(_0x156357([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5388a9=>{if(_0x31b9b5())return _0x5388a9(_0x156357([0x56,0x61,0x6c,0x69,0x64]));_0x41a2ca(),_0x50657d[_0x156357([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x156357([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b740e=!0x1;const _0x2c6b1e=_0x4a7416();function _0x16d90e(_0x1c8ee7){return!!_0x1c8ee7&&(typeof _0x1c8ee7===_0x156357([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c8ee7===_0x156357([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c8ee7[_0x156357([0x74,0x68,0x65,0x6e])]===_0x156357([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c8ee7[_0x156357([0x63,0x61,0x74,0x63,0x68])]===_0x156357([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x21e313(_0x3e5b01){_0x280145(_0x3e5b01)[_0x156357([0x74,0x68,0x65,0x6e])](_0x5f6adf=>{if(!_0x5f6adf||_0x5f6adf[_0x156357([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x156357([0x6f,0x6b]))return _0x156357([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5609f2(_0x3a7f29(_0x2c6b1e+_0x46c12d))!=_0x5f6adf[_0x156357([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x156357([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x156357([0x56,0x61,0x6c,0x69,0x64]);})[_0x156357([0x74,0x68,0x65,0x6e])](_0x3b50e6=>(_0x2fb661(),_0x3b50e6),()=>{const _0x4b7d79=_0x538f99();return null==_0x4b7d79?(_0x2fb661(),_0x156357([0x56,0x61,0x6c,0x69,0x64])):_0x156357(_0xb5cb11-_0x4b7d79>(0x7753083a^_0x1865a0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x156357([0x74,0x68,0x65,0x6e])](_0x5388a9)[_0x156357([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5388a9(_0x156357([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x544a3c=0x536962ba^_0x1865a0;function _0x2fb661(){const _0xc73f7=_0x156357([0x6c,0x6c,0x63,0x74,0x2d])+_0x5609f2(_0x3a7f29(_0x3a0277)),_0x1793b7=_0x399dad(_0x5609f2(window[_0x156357([0x4d,0x61,0x74,0x68])][_0x156357([0x63,0x65,0x69,0x6c])](_0xb5cb11/_0x544a3c)));window[_0x156357([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x156357([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc73f7,_0x1793b7);}function _0x538f99(){const _0x347fdc=_0x156357([0x6c,0x6c,0x63,0x74,0x2d])+_0x5609f2(_0x3a7f29(_0x3a0277)),_0x3a2893=window[_0x156357([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x156357([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x347fdc);return _0x3a2893?window[_0x156357([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x399dad(_0x3a2893),0x10)*_0x544a3c:null;}function _0x280145(_0x2de864){return new window[(_0x156357([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x330a11,_0xef1d3b)=>{_0x2de864[_0x156357([0x74,0x68,0x65,0x6e])](_0x330a11,_0xef1d3b),window[_0x156357([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xef1d3b,0x535e58fa^_0x1865a0);});}}_0x50657d[_0x156357([0x6f,0x6e])](_0x156357([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x817bad,_0x2ae04b)=>{if(_0x2ae04b[0x0]!=_0x3a0277)return _0x5388a9(_0x156357([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ae04b[0x1]={..._0x2ae04b[0x1],[_0x156357([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c6b1e};},{[_0x156357([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x156357([0x68,0x69,0x67,0x68])}),_0x50657d[_0x156357([0x6f,0x6e])](_0x156357([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2052ac=>{_0x16d90e(_0x2052ac[_0x156357([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b740e=!0x0,_0x21e313(_0x2052ac[_0x156357([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x156357([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x156357([0x6c,0x6f,0x77])}),_0x36fec5[_0x156357([0x74,0x68,0x65,0x6e])](()=>{_0x2b740e||_0x5388a9(_0x156357([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31b9b5(){return _0x50657d[_0x156357([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x156357([0x76,0x69,0x65,0x77])][_0x156357([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x156357([0x61,0x75,0x74,0x6f]);}function _0x41a2ca(){_0x50657d[_0x156357([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x156357([0x76,0x69,0x65,0x77])][_0x156357([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x156357([0x61,0x75,0x74,0x6f]);}}function _0x1104b8(_0x20a23f){const _0x1ab6e4=[new window[(_0x156357([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44ca3f=>setTimeout(_0x44ca3f,0x5356b2f6^_0x1865a0)),_0x36fec5[_0x156357([0x74,0x68,0x65,0x6e])](()=>new window[(_0x156357([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47627a=>{let _0x4c088d=0x0;_0x50657d[_0x156357([0x6d,0x6f,0x64,0x65,0x6c])][_0x156357([0x6f,0x6e])](_0x156357([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49a20f,_0x2a0cee)=>{_0x2a0cee[0x0][_0x156357([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c088d++,_0x4c088d==(0x535f89d2^_0x1865a0)&&(_0x47627a(),_0x49a20f[_0x156357([0x6f,0x66,0x66])]());});}))];return window[_0x156357([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x156357([0x72,0x61,0x63,0x65])](_0x1ab6e4)[_0x156357([0x74,0x68,0x65,0x6e])](()=>_0x20a23f);}async function _0x1fc09d(){await _0x36fec5,_0x50657d[_0x156357([0x6d,0x6f,0x64,0x65,0x6c])][_0x156357([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x521f94,_0x50657d[_0x156357([0x6d,0x6f,0x64,0x65,0x6c])][_0x156357([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x521f94,_0x50657d[_0x156357([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x156357([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15cfa3(_0x44a3aa){const _0x3bc7fb=_0x25900e();_0x50657d[_0x3bc7fb]=_0x156357([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44a3aa,_0x44a3aa!=_0x156357([0x56,0x61,0x6c,0x69,0x64])&&_0x1fc09d();}function _0x25900e(){const _0x16d799=window[_0x156357([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x156357([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x156357([0x6e,0x6f,0x77])]())[_0x156357([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x156357([0x2e]),'');let _0x4324b2=_0x156357([0x68]);for(let _0x3f2097=0x0;_0x3f2097<_0x16d799[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f2097+=0x2){let _0x5c0403=window[_0x156357([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16d799[_0x156357([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f2097,_0x3f2097+0x2));_0x5c0403>=_0x418bf8[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c0403-=_0x418bf8[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4324b2+=_0x418bf8[_0x5c0403];}return _0x4324b2;}function _0xba37f9(){const _0x2ad6b4=_0x3fc97d[_0x156357([0x73,0x70,0x6c,0x69,0x74])](_0x156357([0x2e]));if(0x3!=_0x2ad6b4[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3548b9(_0x2ad6b4[0x1]);function _0x3548b9(_0x111c20){const _0x5c7384=_0x431c4c(_0x111c20);return _0x5c7384&&_0x296ae1()?_0x5c7384:null;function _0x296ae1(){const _0x1d6a2e=_0x5c7384[_0x156357([0x6a,0x74,0x69])],_0x5a3f8e=window[_0x156357([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d6a2e[_0x156357([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d6a2e[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x110a7e={..._0x5c7384,[_0x156357([0x6a,0x74,0x69])]:_0x1d6a2e[_0x156357([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d6a2e[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x110a7e[_0x156357([0x76,0x63])],_0x3a7f29(_0x110a7e)==_0x5a3f8e;}}}async function _0x3bfe2a(){let _0x22d553=!0x0;try{const _0x4a92d3=_0x3fc97d[_0x156357([0x73,0x70,0x6c,0x69,0x74])](_0x156357([0x2e])),[_0xd50ef7,_0x54d545,_0x2e1aea]=_0x4a92d3;return _0xc9bf92(_0xd50ef7),await _0x5f154e(_0xd50ef7,_0x54d545,_0x2e1aea),_0x22d553;}catch{return!0x1;}function _0xc9bf92(_0x2237e0){const _0x297b25=_0x431c4c(_0x2237e0);_0x297b25&&_0x297b25[_0x156357([0x61,0x6c,0x67])]==_0x156357([0x45,0x53,0x32,0x35,0x36])||(_0x22d553=!0x1);}async function _0x5f154e(_0x30b382,_0x5b2298,_0xae134f){const _0x500d47=window[_0x156357([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x156357([0x66,0x72,0x6f,0x6d])](_0x3ea3d0(_0xae134f),_0x4c79cd=>_0x4c79cd[_0x156357([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34c500=new window[(_0x156357([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x156357([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30b382+_0x156357([0x2e])+_0x5b2298),_0x58cf7e=window[_0x156357([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x156357([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58cf7e)return;const _0x508f1b=await _0x58cf7e[_0x156357([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x156357([0x6a,0x77,0x6b]),_0x1907fd,{[_0x156357([0x6e,0x61,0x6d,0x65])]:_0x156357([0x45,0x43,0x44,0x53,0x41]),[_0x156357([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x156357([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x156357([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58cf7e[_0x156357([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x156357([0x6e,0x61,0x6d,0x65])]:_0x156357([0x45,0x43,0x44,0x53,0x41]),[_0x156357([0x68,0x61,0x73,0x68])]:{[_0x156357([0x6e,0x61,0x6d,0x65])]:_0x156357([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x508f1b,_0x500d47,_0x34c500)||(_0x22d553=!0x1);}}function _0x431c4c(_0xd94c55){return _0xd94c55[_0x156357([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x156357([0x65,0x79]))?JSON[_0x156357([0x70,0x61,0x72,0x73,0x65])](_0x3ea3d0(_0xd94c55)):null;}function _0x3ea3d0(_0x362d4e){return window[_0x156357([0x61,0x74,0x6f,0x62])](_0x362d4e[_0x156357([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x156357([0x2b]))[_0x156357([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x156357([0x2f])));}function _0x3a7f29(_0x2660ee){let _0x522486=0x1505;function _0x50f4f6(_0x54e147){for(let _0x3c26c4=0x0;_0x3c26c4<_0x54e147[_0x156357([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c26c4++){const _0x194708=_0x54e147[_0x156357([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c26c4);_0x522486=(_0x522486<<0x5)+_0x522486+_0x194708,_0x522486&=_0x522486;}}function _0x3be651(_0x5b4294){Array[_0x156357([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b4294)?_0x5b4294[_0x156357([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3be651):_0x5b4294&&typeof _0x5b4294==_0x156357([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x156357([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b4294)[_0x156357([0x73,0x6f,0x72,0x74])]()[_0x156357([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x370896,_0x4d6625])=>{_0x50f4f6(_0x370896),_0x3be651(_0x4d6625);}):_0x50f4f6(window[_0x156357([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b4294));}return _0x3be651(_0x2660ee),_0x522486>>>0x0;}function _0x5609f2(_0x217922){return _0x217922[_0x156357([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x156357([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x156357([0x30]));}function _0x399dad(_0x208204){return _0x208204[_0x156357([0x73,0x70,0x6c,0x69,0x74])]('')[_0x156357([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x156357([0x6a,0x6f,0x69,0x6e])]('');}function _0x521f94(){}function _0x156357(_0x23bca0){const _0x26c0f9=_0x43d4;return _0x23bca0[_0x26c0f9(0x1a3)](_0x328c72=>String[_0x26c0f9(0x1cf)](_0x328c72))[_0x26c0f9(0x1e5)]('');}_0x15cfa3(await _0xb77b3b());}(this);}[_0x2c8525(0x1e2)](){const _0x2f698b=_0x2c8525,_0x131222=this[_0x2f698b(0x1e0)][_0x2f698b(0x1d1)][_0x2f698b(0x1d5)];_0x131222[_0x2f698b(0x1ea)](_0x2f698b(0x1ad))&&_0x131222[_0x2f698b(0x1a7)](_0x2f698b(0x1ad),{'allowAttributes':[_0x2f698b(0x1be)]}),_0x131222[_0x2f698b(0x1ea)](_0x2f698b(0x1b9))&&_0x131222[_0x2f698b(0x1a7)](_0x2f698b(0x1b9),{'allowAttributes':[_0x2f698b(0x1be)]});}[_0x2c8525(0x1c3)](){const _0x376c95=_0x2c8525,_0x3cad29=this[_0x376c95(0x1e0)];_0x3cad29[_0x376c95(0x1e9)][_0x376c95(0x1bd)](_0x376c95(0x1b0))[_0x376c95(0x19d)]({'model':_0x376c95(0x1be),'view':_0x376c95(0x1e4)}),_0x3cad29[_0x376c95(0x1e9)][_0x376c95(0x1bd)](_0x376c95(0x1a1))[_0x376c95(0x1a0)]({'model':{'key':_0x376c95(0x1be),'value':_0x176987=>_0x176987[_0x376c95(0x1ae)](_0x376c95(0x1e4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x40f94c=_0x3cad29[_0x376c95(0x1df)][_0x376c95(0x1d2)](_0x376c95(0x1e6));_0x40f94c&&this[_0x376c95(0x1c9)](_0x40f94c,_0x376c95(0x1c6),(_0x1e7433,[_0x1d1f2f,_0x32af83])=>{const _0x8a1f8c=_0x376c95;_0x1d1f2f[_0x8a1f8c(0x1c4)](_0x8a1f8c(0x1be),_0x32af83);});}[_0x2c8525(0x1dd)](){const _0x4c8d29=_0x2c8525,_0x53e245=this[_0x4c8d29(0x1e0)][_0x4c8d29(0x1dc)][_0x4c8d29(0x1d2)](_0x4c8d29(0x1d8))||{},_0x250dcd=this[_0x4c8d29(0x1e0)][_0x4c8d29(0x1dc)][_0x4c8d29(0x1d2)](_0x4c8d29(0x1e8))||'';this[_0x4c8d29(0x1e3)]=_0x6f644e(_0x421869[_0x4c8d29(0x1e1)],_0x4c8d29(0x1b7),{..._0x53e245,'pubkey':_0x250dcd,'ctx-name':_0x4c8d29(0x1a2)+this[_0x4c8d29(0x1cb)],'sourceList':'','imgOnly':_0x4c8d29(0x1b1),'removeCopyright':_0x4c8d29(0x1b1),'localeName':this[_0x4c8d29(0x1e0)][_0x4c8d29(0x1a8)][_0x4c8d29(0x1c7)],'externalSourcesEmbedCss':_0x4c8d29(0x1ce)}),this[_0x4c8d29(0x1e3)][_0x4c8d29(0x1a4)]=_0x28252c=>{const _0x47ba09=_0x4c8d29;if(_0x47ba09(0x1b8)==_0x28252c)return _0x47ba09(0x1b5);},_0x421869[_0x4c8d29(0x1e1)][_0x4c8d29(0x1b4)][_0x4c8d29(0x1d7)](this[_0x4c8d29(0x1e3)]);}[_0x2c8525(0x1eb)](){const _0x42041b=_0x2c8525;this[_0x42041b(0x19e)]=_0x6f644e(_0x421869[_0x42041b(0x1e1)],_0x42041b(0x1d3),{'ctx-name':_0x42041b(0x1a2)+this[_0x42041b(0x1cb)]}),_0x421869[_0x42041b(0x1e1)][_0x42041b(0x1b4)][_0x42041b(0x1d7)](this[_0x42041b(0x19e)]);}[_0x2c8525(0x1c5)](){const _0x2d3b92=_0x2c8525,_0x1b9f7e=this[_0x2d3b92(0x1e0)][_0x2d3b92(0x1df)][_0x2d3b92(0x1d2)](_0x2d3b92(0x1c2));_0x1b9f7e&&this[_0x2d3b92(0x1c9)](_0x1b9f7e,_0x2d3b92(0x1ed),()=>{const _0x213319=_0x2d3b92,_0x284a84=this[_0x213319(0x1e0)][_0x213319(0x1d1)][_0x213319(0x1e1)][_0x213319(0x1cc)][_0x213319(0x1db)]();_0x284a84&&_0x284a84[_0x213319(0x1ae)](_0x213319(0x1be))&&this[_0x213319(0x1e0)][_0x213319(0x19f)][_0x213319(0x1bc)][_0x213319(0x1af)](_0x213319(0x1bf),()=>{const _0xb156e7=_0x213319;_0x59f2fb(this[_0xb156e7(0x1e0)],_0x284a84);});});const _0x197151=this[_0x2d3b92(0x1e0)][_0x2d3b92(0x1df)][_0x2d3b92(0x1d2)](_0x2d3b92(0x1ca));_0x197151&&this[_0x2d3b92(0x1c9)](_0x197151,_0x2d3b92(0x1ed),()=>{const _0x44e020=_0x2d3b92,_0x8ca05f=this[_0x44e020(0x1e0)][_0x44e020(0x1d1)][_0x44e020(0x1e1)][_0x44e020(0x1cc)][_0x44e020(0x1db)]();_0x8ca05f&&_0x8ca05f[_0x44e020(0x1ae)](_0x44e020(0x1be))&&this[_0x44e020(0x1e0)][_0x44e020(0x19f)][_0x44e020(0x1bc)][_0x44e020(0x1af)](_0x44e020(0x1bf),()=>{const _0x7bfbfc=_0x44e020;_0x59f2fb(this[_0x7bfbfc(0x1e0)],_0x8ca05f);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x35b331,ObservableMixin as _0x54ae93}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2799a4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x37490f}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3fed54}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xcf0461}from'../../utils/uploadutils.js';import{getImageUrls as _0x4e77fc,getImageDimension as _0x1bd682}from'../../utils/editingutils.js';import{isAncestor as _0x1eb116}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x54ae93(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2e1ad0,_0x1d2ea6,_0x49f9ad){super(),this['_editor']=_0x2e1ad0,this['_dialog']=_0x1d2ea6,this['_imageElement']=_0x49f9ad,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 _0x17197b=this['_imageElement'],_0x37001a=_0x17197b['getAttribute']('uploadcareImageId'),_0xb5c4d4=_0x17197b['getAttribute']('src');if(_0x37001a)await this['_loadImageInfo'](_0x37001a,_0xb5c4d4);else{if(this['_imageCache']['has'](_0xb5c4d4)){const _0x40b9dc=this['_imageCache']['get'](_0xb5c4d4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40b9dc['url'],this['imageDimension']=_0x40b9dc['dimension'],this['imageId']=_0x40b9dc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xfd4062}=this['_editor'],t=_0xfd4062['t'],_0x3481f4=new _0x3fed54(_0xfd4062,this['imageStatus'],this['_attributes']);_0x3481f4['bind']('status')['to'](this,'imageStatus'),_0x3481f4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3481f4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3481f4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3481f4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x37490f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3481f4,'position':_0x2799a4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3481f4['focus']();},'onHide':()=>{_0x3481f4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xc34fcb=>!_0x1eb116(_0xc34fcb,_0x3481f4['element'])}});}['_loadImageInfo'](_0x44078f,_0x41c993){return _0xcf0461['getInfo'](_0x44078f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x53c901=>{const {width:_0x1c9668,height:_0x3a7d4b}=_0x53c901['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x41c993,this['imageDimension']={'width':_0x1c9668,'height':_0x3a7d4b},this['imageId']=_0x44078f;})['catch'](_0x548e31=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x548e31['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d823d,_0x297ae8){return this['_getImageAsFile'](_0x1d823d)['then'](_0x4753e4=>_0xcf0461['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x297ae8['signal'],'file':_0x4753e4,'onProgress':_0x1b07cd=>{_0x1b07cd&&_0x1b07cd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1b07cd['value']));}}))['then'](_0x401a1a=>{const {width:_0xb2a1ac,height:_0x537f88}=_0x401a1a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x401a1a['cdnUrl'],this['imageDimension']={'width':_0xb2a1ac,'height':_0x537f88},this['imageId']=_0x401a1a['uuid'],this['imageUploadProgress']=null;const _0x3946ee=_0x1d823d['getAttribute']('src');this['_imageCache']['set'](_0x3946ee,{'id':_0x401a1a['uuid'],'url':_0x401a1a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5bdc73=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5bdc73['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2d4baa,_0x529dc2){_0x2d4baa['on']('apply',(_0x5619ce,_0x2db6e8)=>{this['_replaceImage'](_0x529dc2,_0x2db6e8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2d4baa['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2d4baa['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1141a6,_0x2f915b,_0x3d938b){const _0x56e34f=this['_editor'],{width:_0x4c8ecf,height:_0x27b150}=_0x1bd682(_0x2f915b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x430876,imageSources:_0xc6cf31}=_0x4e77fc(_0x2f915b,_0x4c8ecf);_0x56e34f['model']['change'](_0x28805d=>{if('$graveyard'===_0x1141a6['root']['rootName']){_0x56e34f['execute']('insertImage',{'imageType':_0x1141a6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1141a6['getAttributes']()),'uploadcareImageId':_0x3d938b,'src':_0x430876,'sources':_0xc6cf31,'width':_0x4c8ecf,'height':_0x27b150}});const _0x4d6cb4=_0x1141a6['getChildren']();_0x1141a6=_0x56e34f['model']['document']['selection']['getSelectedElement']();for(const _0x321618 of _0x4d6cb4)_0x28805d['append'](_0x28805d['cloneElement'](_0x321618),_0x1141a6);}else _0x28805d['setSelection'](_0x1141a6,'on'),_0x56e34f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1141a6['getAttributes']()),'uploadcareImageId':_0x3d938b,'src':_0x430876,'sources':_0xc6cf31,'width':_0x4c8ecf,'height':_0x27b150},_0x1141a6);_0x28805d['setSelection'](_0x1141a6,'on');});}async['_getImageAsFile'](_0x339743){const _0x12bf3c=_0x35b331['window'],_0x4416c9=_0x35b331['document']['location']['href'],_0x3e167c=new _0x12bf3c['URL'](_0x339743['getAttribute']('src'),_0x4416c9);if('data:'===_0x3e167c['protocol']){const _0x10f83e=_0x3e167c['href']['split'](','),_0x3843fd=_0x10f83e[0x0]['match'](/:(.*?);/)[0x1],_0x960d0=_0x3843fd['split']('/')[0x1],_0x118bbe=_0x12bf3c['atob'](_0x10f83e[_0x10f83e['length']-0x1]);let _0x8b1e18=_0x118bbe['length'];const _0x430e87=new _0x12bf3c['Uint8Array'](_0x8b1e18);for(;_0x8b1e18--;)_0x430e87[_0x8b1e18]=_0x118bbe['charCodeAt'](_0x8b1e18);return new _0x12bf3c['File']([_0x430e87],'image.'+_0x960d0,{'type':_0x3843fd});}const _0xa8d2ed=_0x3e167c['href']['split']('/'),_0x3d1084=_0xa8d2ed[_0xa8d2ed['length']-0x1],_0x4a725a=_0x3d1084['split']('.')[0x1];return _0x12bf3c['fetch'](_0x3e167c['href'])['then'](_0x13c64e=>_0x13c64e['clone']()['blob']())['then'](_0x404334=>new _0x12bf3c['File']([_0x404334],_0x3d1084,{'type':'image/'+_0x4a725a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x54ec(_0x28990d,_0x30569f){const _0x2bd085=_0x2bd0();return _0x54ec=function(_0x54ec7d,_0xeb86dd){_0x54ec7d=_0x54ec7d-0x11b;let _0x1d9885=_0x2bd085[_0x54ec7d];return _0x1d9885;},_0x54ec(_0x28990d,_0x30569f);}(function(_0x446716,_0x12a90e){const _0x4eff04=_0x54ec,_0x7f6905=_0x446716();while(!![]){try{const _0x1f5713=-parseInt(_0x4eff04(0x123))/0x1*(parseInt(_0x4eff04(0x11f))/0x2)+-parseInt(_0x4eff04(0x12a))/0x3*(parseInt(_0x4eff04(0x11b))/0x4)+-parseInt(_0x4eff04(0x11d))/0x5*(parseInt(_0x4eff04(0x121))/0x6)+parseInt(_0x4eff04(0x126))/0x7+parseInt(_0x4eff04(0x11c))/0x8+-parseInt(_0x4eff04(0x125))/0x9*(parseInt(_0x4eff04(0x12c))/0xa)+parseInt(_0x4eff04(0x12b))/0xb*(parseInt(_0x4eff04(0x12e))/0xc);if(_0x1f5713===_0x12a90e)break;else _0x7f6905['push'](_0x7f6905['shift']());}catch(_0x373d50){_0x7f6905['push'](_0x7f6905['shift']());}}}(_0x2bd0,0x5708e));import{View as _0x57e2a2}from'ckeditor5/src/ui.js';function _0x2bd0(){const _0x6e4680=['2Vttowg','set','2817OStmZr','188013jOncxt','bindTemplate','setTemplate','ck-uploadcare-theme','3147YkwiJK','22bQUSxd','13190OxvlDa','uc-light','10629768qooDTb','2084hXyJiq','3022928boNtTt','15HLfVXp','uc-cloud-image-editor','661604qUrqQV','imageSrc','397758PoEuxh','image-edit'];_0x2bd0=function(){return _0x6e4680;};return _0x2bd0();}export class UploadcareImageEditFormEditingView extends _0x57e2a2{constructor(_0x3fc498,_0x3f60bb){const _0x3503be=_0x54ec;super(_0x3fc498);const _0x2e0868=this[_0x3503be(0x127)];this[_0x3503be(0x124)](_0x3503be(0x120),''),this[_0x3503be(0x128)]({'tag':_0x3503be(0x11e),'attributes':{..._0x3f60bb,'class':[_0x3503be(0x12d),_0x3503be(0x129)],'ctx-name':_0x3503be(0x122),'cdn-url':_0x2e0868['to'](_0x3503be(0x120))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x506220}from'ckeditor5/src/icons.js';import{ButtonView as _0x21244b,IconView as _0x1707e4,View as _0x256f0b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x256f0b{constructor(_0xf542e4){super(_0xf542e4);const t=_0xf542e4['t'];this['set']('errorType',null);const _0x36b934=new _0x21244b(_0xf542e4);_0x36b934['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x36b934['withText']=!0x0,_0x36b934['class']='ck-button-action',_0x36b934['on']('execute',()=>{this['fire']('retry');}),_0x36b934['bind']('isVisible')['to'](this,'errorType',_0x575cd0=>'NotFound'!==_0x575cd0);const _0x4b99be=new _0x1707e4();_0x4b99be['content']=_0x506220,_0x4b99be['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5339a7=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':[_0x4b99be,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5339a7['to']('errorType',_0x43b225=>t('NotFound'!==_0x43b225?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x36b934]},{'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 _0x24ea7f,View as _0x142621}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x142621{constructor(_0x4d6395){super(_0x4d6395);const t=_0x4d6395['t'],_0x45a7ef=this['bindTemplate'],_0x36ddab=new _0x24ea7f();_0x36ddab['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':[_0x36ddab,{'text':_0x45a7ef['to']('imageUploadProgress',_0x4e44ea=>t('Loading\x20image...')+'\x20('+(_0x4e44ea||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 _0x4a5f14=_0x2912;(function(_0x5ad86c,_0x49331d){const _0x351667=_0x2912,_0xa43fa6=_0x5ad86c();while(!![]){try{const _0x5a3ec1=parseInt(_0x351667(0x8f))/0x1*(-parseInt(_0x351667(0xb2))/0x2)+-parseInt(_0x351667(0xab))/0x3+-parseInt(_0x351667(0x96))/0x4*(parseInt(_0x351667(0x8b))/0x5)+-parseInt(_0x351667(0x8c))/0x6+parseInt(_0x351667(0x7f))/0x7+-parseInt(_0x351667(0x91))/0x8*(parseInt(_0x351667(0xa9))/0x9)+parseInt(_0x351667(0xae))/0xa;if(_0x5a3ec1===_0x49331d)break;else _0xa43fa6['push'](_0xa43fa6['shift']());}catch(_0x156ca8){_0xa43fa6['push'](_0xa43fa6['shift']());}}}(_0x25c7,0x6bdd3));import{View as _0x759ec8}from'ckeditor5/src/ui.js';function _0x25c7(){const _0x1a5727=['getFocusableElement','div','2262339wYYKup','ck-reset_all-excluded','1904121SumUdz','uploading','disconnect','30038800lGdGwS','set','render','fire','17132PNUzmV','_addErrorViewListeners','focus','addedNodes','1062929ZWQgAB','target','querySelector','addMany','_setView','retry','_waitForImageEditorComponent','filter','apply','nodeName','createCollection','observe','263510nfBzDh','4406322omyUJQ','error','once','86LElQKP','element','16Wryudp','_editingView','cancel','change:status','setTemplate','8KWdsPU','_items','toLowerCase','detail','uc-cloud-image-editor','_loadingView','_errorView','clear','length','cdnUrl','add','addEventListener','ck-uploadcare-form','status','ready','_addUploadcareImageEditorListeners','_focusableView'];_0x25c7=function(){return _0x1a5727;};return _0x25c7();}import{UploadcareImageEditFormLoadingView as _0x109a12}from'./uploadcareimageeditformloadingview.js';function _0x2912(_0x5a9beb,_0x47f3b8){const _0x25c709=_0x25c7();return _0x2912=function(_0x2912a8,_0x1ec041){_0x2912a8=_0x2912a8-0x7f;let _0x77c5f7=_0x25c709[_0x2912a8];return _0x77c5f7;},_0x2912(_0x5a9beb,_0x47f3b8);}import{UploadcareImageEditFormErrorView as _0x27e126}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x49636f}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1247b4}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1247b4{[_0x4a5f14(0x97)];[_0x4a5f14(0x9b)];[_0x4a5f14(0x9c)];[_0x4a5f14(0x92)];[_0x4a5f14(0xa6)];constructor(_0x1ecb40,_0x4c7b40,_0x377d61){const _0x33b160=_0x4a5f14;super(_0x1ecb40),this[_0x33b160(0x97)]=this[_0x33b160(0x89)](),this[_0x33b160(0x9b)]=new _0x109a12(_0x1ecb40),this[_0x33b160(0x9c)]=new _0x27e126(_0x1ecb40),this[_0x33b160(0x92)]=new _0x49636f(_0x1ecb40,_0x377d61),this[_0x33b160(0xa6)]=new _0x759ec8(_0x1ecb40),this[_0x33b160(0xa6)][_0x33b160(0x95)](this[_0x33b160(0xa7)]()),this[_0x33b160(0xaf)](_0x33b160(0xa3),_0x4c7b40),this[_0x33b160(0x95)]({'tag':_0x33b160(0xa8),'attributes':{'class':['ck',_0x33b160(0xaa),_0x33b160(0xa2)],'tabindex':'-1'},'children':this[_0x33b160(0x97)]}),this[_0x33b160(0x83)](),this[_0x33b160(0x8e)](_0x33b160(0xb0),()=>{const _0x2c3579=_0x33b160;this[_0x2c3579(0x85)](this[_0x2c3579(0x90)],_0x582f31=>{const _0x5da184=_0x2c3579;this[_0x5da184(0xa5)](_0x582f31);});}),this['on'](_0x33b160(0x94),()=>{const _0x157aa0=_0x33b160;this[_0x157aa0(0x83)]();}),this[_0x33b160(0xb3)]();}[_0x4a5f14(0xb4)](){const _0x50bb08=_0x4a5f14;this[_0x50bb08(0x90)][_0x50bb08(0xb4)]();}[_0x4a5f14(0x83)](){const _0x5bb4cb=_0x4a5f14;switch(this[_0x5bb4cb(0x97)][_0x5bb4cb(0x9d)](),this[_0x5bb4cb(0xa3)]){case _0x5bb4cb(0xac):this[_0x5bb4cb(0x97)][_0x5bb4cb(0xa0)](this[_0x5bb4cb(0x9b)]);break;case _0x5bb4cb(0x8d):this[_0x5bb4cb(0x97)][_0x5bb4cb(0xa0)](this[_0x5bb4cb(0x9c)]);break;case _0x5bb4cb(0xa4):this[_0x5bb4cb(0x97)][_0x5bb4cb(0x82)]([this[_0x5bb4cb(0x92)],this[_0x5bb4cb(0xa6)]]);}}[_0x4a5f14(0x85)](_0x3983c7,_0xb7e177){const _0xe31bd1=_0x4a5f14,_0x20936d=_0xe31bd1(0x9a),_0xa276ed=_0x3983c7[_0xe31bd1(0x81)](_0x20936d);if(_0xa276ed)return _0xb7e177(_0xa276ed);const _0x565584=new MutationObserver(_0x5547f4=>{const _0x3cb546=_0xe31bd1,_0x1b8afa=_0x5547f4[_0x3cb546(0x86)](_0x5b603a=>_0x5b603a[_0x3cb546(0x80)]===_0x3983c7&&_0x5b603a[_0x3cb546(0xb5)][_0x3cb546(0x9e)]>0x0&&_0x5b603a[_0x3cb546(0xb5)][0x0][_0x3cb546(0x88)][_0x3cb546(0x98)]()===_0x20936d);_0x1b8afa[_0x3cb546(0x9e)]&&(_0x565584[_0x3cb546(0xad)](),_0xb7e177(_0x1b8afa[0x0][_0x3cb546(0xb5)][0x0]));});_0x565584[_0xe31bd1(0x8a)](_0x3983c7,{'childList':!0x0,'subtree':!0x0});}[_0x4a5f14(0xa5)](_0x508a93){const _0x2b6d9e=_0x4a5f14;_0x508a93[_0x2b6d9e(0xa1)](_0x2b6d9e(0x87),_0x236146=>{const _0xccda5c=_0x2b6d9e;this[_0xccda5c(0xb1)](_0xccda5c(0x87),{'imageSrc':_0x236146[_0xccda5c(0x99)][_0xccda5c(0x9f)]});}),_0x508a93[_0x2b6d9e(0xa1)](_0x2b6d9e(0x93),()=>{const _0x3cb793=_0x2b6d9e;this[_0x3cb793(0xb1)](_0x3cb793(0x93));});}[_0x4a5f14(0xb3)](){const _0xc3f518=_0x4a5f14;this[_0xc3f518(0x9c)]['on'](_0xc3f518(0x84),()=>{const _0x17bda5=_0xc3f518;this[_0x17bda5(0xb1)](_0x17bda5(0x84));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b71de=_0x4865;(function(_0x58a3c6,_0x5156dc){const _0x33b6b2=_0x4865,_0x49ca9d=_0x58a3c6();while(!![]){try{const _0x3ad6f2=parseInt(_0x33b6b2(0x1b9))/0x1*(parseInt(_0x33b6b2(0x1b7))/0x2)+parseInt(_0x33b6b2(0x1af))/0x3+parseInt(_0x33b6b2(0x1b5))/0x4+-parseInt(_0x33b6b2(0x1b4))/0x5+-parseInt(_0x33b6b2(0x1a5))/0x6*(-parseInt(_0x33b6b2(0x1a1))/0x7)+parseInt(_0x33b6b2(0x1b6))/0x8*(-parseInt(_0x33b6b2(0x1be))/0x9)+parseInt(_0x33b6b2(0x1b0))/0xa*(-parseInt(_0x33b6b2(0x1c0))/0xb);if(_0x3ad6f2===_0x5156dc)break;else _0x49ca9d['push'](_0x49ca9d['shift']());}catch(_0x22b027){_0x49ca9d['push'](_0x49ca9d['shift']());}}}(_0x282f,0x3de3a));import{Command as _0x31e637}from'ckeditor5/src/core.js';import{Dialog as _0x4e5354}from'ckeditor5/src/ui.js';function _0x4865(_0x2c2bba,_0x1e897c){const _0x282ff8=_0x282f();return _0x4865=function(_0x486572,_0x30ed74){_0x486572=_0x486572-0x1a0;let _0x4bc119=_0x282ff8[_0x486572];return _0x4bc119;},_0x4865(_0x2c2bba,_0x1e897c);}import{UploadcareImageEditController as _0x5068f5}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1b9b02}from'../utils/editingutils.js';function _0x282f(){const _0x4dc6be=['1358820wrjnwG','24MQQouU','75598qWXnwN','getSelectedElement','3DrWxHf','editor','isEnabled','plugins','document','214713RNHczh','selection','48587kdSJiD','unbind','1953833iwpSjr','_isEditable','model','element','6ZDVthz','execute','set','bind','imageBlock','refresh','imageInline','uploadcare.allowExternalImagesEditing','requires','get','1178946Bdjlyh','1300YnQbUU','isActive','config','imageEditController','1129620ckyknw'];_0x282f=function(){return _0x4dc6be;};return _0x282f();}export class UploadcareImageEditCommand extends _0x31e637{[_0x1b71de(0x1b3)];static get[_0x1b71de(0x1ad)](){return[_0x4e5354];}[_0x1b71de(0x1a2)];constructor(_0x1679f1){const _0x152c01=_0x1b71de;super(_0x1679f1),this[_0x152c01(0x1b3)]=void 0x0,this[_0x152c01(0x1a2)]=_0x1b9b02(_0x1679f1[_0x152c01(0x1b2)][_0x152c01(0x1ae)](_0x152c01(0x1ac))||[]),this[_0x152c01(0x1a7)]({'isActive':!0x1});}[_0x1b71de(0x1aa)](){const _0x4ce03c=_0x1b71de,_0x49252a=this[_0x4ce03c(0x1ba)][_0x4ce03c(0x1a3)][_0x4ce03c(0x1bd)][_0x4ce03c(0x1bf)][_0x4ce03c(0x1b8)]();this[_0x4ce03c(0x1bb)]=this[_0x4ce03c(0x1a2)](_0x49252a);}[_0x1b71de(0x1a6)](){const _0x426006=_0x1b71de;this[_0x426006(0x1b3)]&&(this[_0x426006(0x1a0)](_0x426006(0x1b1)),this[_0x426006(0x1b3)]=void 0x0);const _0x3c69b3=this[_0x426006(0x1ba)][_0x426006(0x1a3)][_0x426006(0x1bd)][_0x426006(0x1bf)][_0x426006(0x1b8)]();_0x3c69b3&&(_0x3c69b3['is'](_0x426006(0x1a4),_0x426006(0x1a9))||_0x3c69b3['is'](_0x426006(0x1a4),_0x426006(0x1ab)))&&(this[_0x426006(0x1b3)]=new _0x5068f5(this[_0x426006(0x1ba)],this[_0x426006(0x1ba)][_0x426006(0x1bc)][_0x426006(0x1ae)](_0x4e5354),_0x3c69b3),this[_0x426006(0x1a8)](_0x426006(0x1b1))['to'](this[_0x426006(0x1b3)],_0x426006(0x1b1)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bbc34=_0x34d6;(function(_0x48c4a7,_0x34419e){const _0x421e93=_0x34d6,_0x748ec7=_0x48c4a7();while(!![]){try{const _0x2e631c=-parseInt(_0x421e93(0x1db))/0x1*(parseInt(_0x421e93(0x1cc))/0x2)+-parseInt(_0x421e93(0x1ca))/0x3+-parseInt(_0x421e93(0x1cd))/0x4+-parseInt(_0x421e93(0x1cf))/0x5*(-parseInt(_0x421e93(0x1d2))/0x6)+-parseInt(_0x421e93(0x1d3))/0x7+-parseInt(_0x421e93(0x1d7))/0x8*(-parseInt(_0x421e93(0x1d4))/0x9)+-parseInt(_0x421e93(0x1dd))/0xa*(-parseInt(_0x421e93(0x1ce))/0xb);if(_0x2e631c===_0x34419e)break;else _0x748ec7['push'](_0x748ec7['shift']());}catch(_0x3db847){_0x748ec7['push'](_0x748ec7['shift']());}}}(_0x38ca,0xe0bec));import{Plugin as _0x120ba6}from'ckeditor5/src/core.js';function _0x38ca(){const _0x54e278=['2662324xqXTgs','29239144JKkAoo','715YKJhtY','isPremiumPlugin','uploadcareImageEdit','7404QdarCv','1011710BpNbfs','4626XNhmUp','commands','ImageEditing','15592LzBbXx','isOfficialPlugin','add','init','3WIvurj','requires','10CINoWM','uploadcareImageReplace','pluginName','UploadcareImageEditEditing','3354903zfRQka','ImageUtils','658256rUuKuk'];_0x38ca=function(){return _0x54e278;};return _0x38ca();}import{Notification as _0x579659}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x5ba0cf}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3b5268}from'./uploadcareimagereplacecommand.js';function _0x34d6(_0x1dd187,_0x4bcb8d){const _0x38ca02=_0x38ca();return _0x34d6=function(_0x34d6a1,_0x57e71b){_0x34d6a1=_0x34d6a1-0x1c7;let _0x748c93=_0x38ca02[_0x34d6a1];return _0x748c93;},_0x34d6(_0x1dd187,_0x4bcb8d);}import{UploadcareEditing as _0x5955da}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x120ba6{static get[_0x3bbc34(0x1c8)](){const _0x39f174=_0x3bbc34;return _0x39f174(0x1c9);}static get[_0x3bbc34(0x1dc)](){const _0x2b3fe0=_0x3bbc34;return[_0x5955da,_0x579659,_0x2b3fe0(0x1cb),_0x2b3fe0(0x1d6)];}static get[_0x3bbc34(0x1d8)](){return!0x0;}static get[_0x3bbc34(0x1d0)](){return!0x0;}[_0x3bbc34(0x1da)](){const _0x13dab7=_0x3bbc34,{editor:_0x109805}=this;_0x109805[_0x13dab7(0x1d5)][_0x13dab7(0x1d9)](_0x13dab7(0x1d1),new _0x5ba0cf(_0x109805)),_0x109805[_0x13dab7(0x1d5)][_0x13dab7(0x1d9)](_0x13dab7(0x1c7),new _0x3b5268(_0x109805));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xa2a92b}from'ckeditor5/src/core.js';import{ButtonView as _0x4e061d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x206d0c}from'ckeditor5/src/icons.js';import{createElement as _0x529a5c}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0xa2a92b{['_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 _0x44b253=this['editor'];_0x44b253['ui']['componentFactory']['add']('uploadcareImageEdit',_0x374eb7=>{const _0x5ba553=_0x44b253['commands']['get']('uploadcareImageEdit'),_0x1837dc=new _0x4e061d(_0x374eb7),t=_0x374eb7['t'];return _0x1837dc['set']({'icon':_0x206d0c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1837dc['bind']('isEnabled')['to'](_0x5ba553),_0x1837dc['bind']('isOn')['to'](_0x5ba553,'isActive'),this['listenTo'](_0x1837dc,'execute',()=>{_0x44b253['execute']('uploadcareImageEdit'),_0x44b253['editing']['view']['focus']();}),_0x1837dc;}),this['_initConfig']();}['_initConfig'](){const _0x230325=_0x529a5c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x230325),this['listenTo'](this['editor'],'destroy',()=>{_0x230325['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x1933a1=_0x1810;function _0x1810(_0x5cb9bc,_0x21bed7){const _0x27bcac=_0x27bc();return _0x1810=function(_0x181094,_0x2a78c8){_0x181094=_0x181094-0x8d;let _0x18de21=_0x27bcac[_0x181094];return _0x18de21;},_0x1810(_0x5cb9bc,_0x21bed7);}(function(_0x58427a,_0x52d09e){const _0x415d36=_0x1810,_0x16d08e=_0x58427a();while(!![]){try{const _0x54b7fd=parseInt(_0x415d36(0x95))/0x1*(-parseInt(_0x415d36(0x99))/0x2)+parseInt(_0x415d36(0x91))/0x3*(parseInt(_0x415d36(0x9c))/0x4)+parseInt(_0x415d36(0xa4))/0x5+-parseInt(_0x415d36(0x9e))/0x6+-parseInt(_0x415d36(0x96))/0x7+parseInt(_0x415d36(0x98))/0x8+parseInt(_0x415d36(0x9f))/0x9;if(_0x54b7fd===_0x52d09e)break;else _0x16d08e['push'](_0x16d08e['shift']());}catch(_0x18eeb4){_0x16d08e['push'](_0x16d08e['shift']());}}}(_0x27bc,0x5d6f8));import{Command as _0x47169c}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x47169c{[_0x1933a1(0x9a)](){const _0x12411c=_0x1933a1,_0x57b223=this[_0x12411c(0xa2)][_0x12411c(0x97)][_0x12411c(0xa1)][_0x12411c(0x94)][_0x12411c(0x8e)]();this[_0x12411c(0xa5)]=Boolean(_0x57b223&&(_0x57b223['is'](_0x12411c(0x93),_0x12411c(0xa0))||_0x57b223['is'](_0x12411c(0x93),_0x12411c(0x90))));}[_0x1933a1(0x8d)](_0x4bf09f){const _0xfd6706=_0x1933a1,_0x27ac26=this[_0xfd6706(0xa2)][_0xfd6706(0x97)][_0xfd6706(0xa1)][_0xfd6706(0x94)][_0xfd6706(0x8e)]();this[_0xfd6706(0xa2)][_0xfd6706(0x97)][_0xfd6706(0x92)](_0x436654=>{const _0x4243f7=_0xfd6706;_0x436654[_0x4243f7(0x9d)](_0x4bf09f,_0x27ac26),_0x436654[_0x4243f7(0x9b)](_0x4243f7(0xa3),_0x27ac26),_0x436654[_0x4243f7(0x9b)](_0x4243f7(0x8f),_0x27ac26);});}}function _0x27bc(){const _0x1b6af6=['change','element','selection','3052QBHiYQ','4524765LkqKBX','model','2840464tpmhTl','430IntOpL','refresh','removeAttribute','4emJbUn','setAttributes','2560860eMNQdy','11159487ruZVxA','imageBlock','document','editor','srcset','1861330gfYMXN','isEnabled','execute','getSelectedElement','sizes','imageInline','434490FUfjyr'];_0x27bc=function(){return _0x1b6af6;};return _0x27bc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x27e4f7=_0x17ac;(function(_0x1b968f,_0x39c683){var _0x125939=_0x17ac,_0x5de2ce=_0x1b968f();while(!![]){try{var _0x2ff387=parseInt(_0x125939(0x1d6))/0x1*(parseInt(_0x125939(0x1dd))/0x2)+parseInt(_0x125939(0x1e1))/0x3*(parseInt(_0x125939(0x1da))/0x4)+parseInt(_0x125939(0x1db))/0x5*(-parseInt(_0x125939(0x1df))/0x6)+-parseInt(_0x125939(0x1d3))/0x7+parseInt(_0x125939(0x1d7))/0x8+-parseInt(_0x125939(0x1d9))/0x9*(parseInt(_0x125939(0x1d4))/0xa)+parseInt(_0x125939(0x1dc))/0xb;if(_0x2ff387===_0x39c683)break;else _0x5de2ce['push'](_0x5de2ce['shift']());}catch(_0x2c2d0d){_0x5de2ce['push'](_0x5de2ce['shift']());}}}(_0x452d,0xab642));import{Plugin as _0x190d2d}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x574fc3}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x42dbb4}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x452d(){var _0x2a12ed=['8145781VbYKMm','10FbbqUw','isOfficialPlugin','1SPOLeh','4610976yKSkOd','UploadcareImageEdit','4660668jQqatz','932mBZcHH','5QXHZCd','13892021FpHpwk','2438620LkYIQq','requires','5924958iNQXSW','pluginName','4023OruDVd','isPremiumPlugin'];_0x452d=function(){return _0x2a12ed;};return _0x452d();}function _0x17ac(_0x5a3cfe,_0x355d45){var _0x452d7c=_0x452d();return _0x17ac=function(_0x17ac15,_0x53dd87){_0x17ac15=_0x17ac15-0x1d3;var _0x19522a=_0x452d7c[_0x17ac15];return _0x19522a;},_0x17ac(_0x5a3cfe,_0x355d45);}export class UploadcareImageEdit extends _0x190d2d{static get[_0x27e4f7(0x1e0)](){var _0x29b00e=_0x27e4f7;return _0x29b00e(0x1d8);}static get[_0x27e4f7(0x1de)](){return[_0x574fc3,_0x42dbb4];}static get[_0x27e4f7(0x1d5)](){return!0x0;}static get[_0x27e4f7(0x1e2)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x318f17=_0x2974;(function(_0x11ba33,_0x3d5244){const _0x3f69be=_0x2974,_0x382f92=_0x11ba33();while(!![]){try{const _0x16bd60=-parseInt(_0x3f69be(0x1b3))/0x1+-parseInt(_0x3f69be(0x18a))/0x2*(-parseInt(_0x3f69be(0x1ba))/0x3)+parseInt(_0x3f69be(0x177))/0x4*(-parseInt(_0x3f69be(0x184))/0x5)+-parseInt(_0x3f69be(0x19b))/0x6*(parseInt(_0x3f69be(0x172))/0x7)+parseInt(_0x3f69be(0x1a2))/0x8+-parseInt(_0x3f69be(0x174))/0x9+parseInt(_0x3f69be(0x16b))/0xa*(parseInt(_0x3f69be(0x193))/0xb);if(_0x16bd60===_0x3d5244)break;else _0x382f92['push'](_0x382f92['shift']());}catch(_0x58a81a){_0x382f92['push'](_0x382f92['shift']());}}}(_0x477d,0x3d3b9));import{Plugin as _0xeabae4}from'ckeditor5/src/core.js';import{IconDropbox as _0x3f409d,IconFacebook as _0x1f9166,IconGoogleDrive as _0x18aebf,IconGooglePhotos as _0x589eae,IconUploadcareImageUpload as _0x5c1715,IconUploadcareLink as _0x7234c,IconOneDrive as _0x1d80ef}from'ckeditor5/src/icons.js';import{ButtonView as _0x22841f,MenuBarMenuListItemButtonView as _0x53214e}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x229939}from'./uploadcareconfig.js';function _0x477d(){const _0x42ea58=['GDrive','Local','plugins','195645uXDTWu','Replace','entries','label','has','_licenseKeyCheckInterval','12622quVXZW','forEach','_createButton','isPremiumPlugin','shortText','GPhotos','withText','ImageInsertUI','uploadcare','59631XpcrAQ','text','isEnabled','domainLimit','destroy','assetManager','_createToolbarButton','_showLicenseError','9942ZVBKLl','Facebook','uploadcare.uploader.sourceList','_createDropdownButtons','usageLimit','reduce','uploadcareLicenseKeyInvalid','1448712fQpbMf','invalid','UploadcareUI','push','execute','uploadcareLicenseKeyDomainLimit','_getIntegrationKey','map','tooltip','isImageSelected','uploadcareLicenseKeyUsageLimit','licenseKey','commands','URL','uploadcareLicenseKeyValid','afterInit','editor','79903zOjxQH','uploadcareLicenseKeyTrialLimit','OneDrive','featureNotAllowed','isOfficialPlugin','uploadcareLicenseKeyNotAllowed','trialLimit','87xCQqUl','bind','url','930XHVJCa','get','config','icon','upload','_normalizeConfigSourceList','uploadcareLicenseKeyEvaluationLimit','98MqIAVE','_createMenuBarButtons','1459710QTdeLr','init','locale','36BAAcLr','Dropbox','type','evaluationLimit','registerIntegration','uploadcareLicenseKeyExpired','pluginName','Insert','Uploadcare','expired'];_0x477d=function(){return _0x42ea58;};return _0x477d();}function _0x2974(_0x5ad210,_0x5c4f82){const _0x477d19=_0x477d();return _0x2974=function(_0x2974c0,_0x33fa32){_0x2974c0=_0x2974c0-0x169;let _0xeada89=_0x477d19[_0x2974c0];return _0xeada89;},_0x2974(_0x5ad210,_0x5c4f82);}import{getTranslation as _0x473c98}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 class UploadcareUI extends _0xeabae4{[_0x318f17(0x1ad)];[_0x318f17(0x189)];static get[_0x318f17(0x17d)](){const _0x2c9a1a=_0x318f17;return _0x2c9a1a(0x1a4);}static get[_0x318f17(0x1b7)](){return!0x0;}static get[_0x318f17(0x18d)](){return!0x0;}[_0x318f17(0x175)](){const _0x1c6f2c=_0x318f17;this[_0x1c6f2c(0x1ad)]=this[_0x1c6f2c(0x1b2)][_0x1c6f2c(0x16d)][_0x1c6f2c(0x16c)](_0x1c6f2c(0x1ad));const _0x53be8a=this[_0x1c6f2c(0x1b2)];this[_0x1c6f2c(0x189)]=setInterval(()=>{const _0x6b952e=_0x1c6f2c;let _0x363a2b;for(const _0x481f97 in _0x53be8a){const _0x19734f=_0x481f97,_0x419393=_0x53be8a[_0x19734f];if(_0x6b952e(0x1b0)==_0x419393||_0x6b952e(0x1a1)==_0x419393||_0x6b952e(0x17c)==_0x419393||_0x6b952e(0x1a7)==_0x419393||_0x6b952e(0x1b8)==_0x419393||_0x6b952e(0x171)==_0x419393||_0x6b952e(0x1b4)==_0x419393||_0x6b952e(0x1ac)==_0x419393){delete _0x53be8a[_0x19734f],_0x363a2b=_0x419393,clearInterval(this[_0x6b952e(0x189)]),this[_0x6b952e(0x189)]=void 0x0;break;}}_0x6b952e(0x1a1)==_0x363a2b&&_0x53be8a[_0x6b952e(0x19a)](_0x6b952e(0x1a3)),_0x6b952e(0x17c)==_0x363a2b&&_0x53be8a[_0x6b952e(0x19a)](_0x6b952e(0x180)),_0x6b952e(0x1a7)==_0x363a2b&&_0x53be8a[_0x6b952e(0x19a)](_0x6b952e(0x196)),_0x6b952e(0x1b8)==_0x363a2b&&_0x53be8a[_0x6b952e(0x19a)](_0x6b952e(0x1b6),_0x6b952e(0x17f)),_0x6b952e(0x171)==_0x363a2b&&_0x53be8a[_0x6b952e(0x19a)](_0x6b952e(0x17a)),_0x6b952e(0x1b4)==_0x363a2b&&_0x53be8a[_0x6b952e(0x19a)](_0x6b952e(0x1b9)),_0x6b952e(0x1ac)==_0x363a2b&&_0x53be8a[_0x6b952e(0x19a)](_0x6b952e(0x19f));},0x3e8);}[_0x318f17(0x1b1)](){const _0x1e6cd8=_0x318f17,{editor:_0x45bbe7}=this,_0x1d763c=_0x45bbe7[_0x1e6cd8(0x1ae)][_0x1e6cd8(0x16c)](_0x1e6cd8(0x192));if(!_0x1d763c)return;const _0x228fe4=this[_0x1e6cd8(0x170)](_0x45bbe7[_0x1e6cd8(0x16d)][_0x1e6cd8(0x16c)](_0x1e6cd8(0x19d)))[_0x1e6cd8(0x1a0)]((_0x4b5e01,_0x30626e)=>{const _0x567b38=_0x1e6cd8,_0x2da84e=this[_0x567b38(0x1a8)](_0x30626e[_0x567b38(0x179)]);return _0x4b5e01[_0x2da84e]||(_0x4b5e01[_0x2da84e]=[]),_0x4b5e01[_0x2da84e][_0x567b38(0x1a5)](_0x30626e),_0x4b5e01;},{});_0x45bbe7[_0x1e6cd8(0x183)][_0x1e6cd8(0x188)](_0x1e6cd8(0x191))&&_0x45bbe7[_0x1e6cd8(0x1ae)][_0x1e6cd8(0x16c)](_0x1e6cd8(0x192))&&Object[_0x1e6cd8(0x186)](_0x228fe4)[_0x1e6cd8(0x18b)](([_0x22cfa2,_0x3ca337])=>{const _0x52cf0=_0x1e6cd8;_0x45bbe7[_0x52cf0(0x183)][_0x52cf0(0x16c)](_0x52cf0(0x191))[_0x52cf0(0x17b)]({'name':_0x22cfa2,'observable':()=>_0x1d763c,'buttonViewCreator':()=>this[_0x52cf0(0x199)](_0x3ca337),'formViewCreator':()=>this[_0x52cf0(0x19e)](_0x3ca337),'menuBarButtonViewCreator':()=>this[_0x52cf0(0x173)](_0x3ca337),'override':_0x52cf0(0x198)!==_0x22cfa2});});}[_0x318f17(0x197)](){const _0x2f6af7=_0x318f17;super[_0x2f6af7(0x197)](),this[_0x2f6af7(0x189)]&&clearInterval(this[_0x2f6af7(0x189)]);}[_0x318f17(0x170)](_0x2d9afb){const _0x41d70a=_0x318f17,{locale:_0x41aa0c}=this[_0x41d70a(0x1b2)];return _0x2d9afb[_0x41d70a(0x1a9)](_0x19e72e=>{const _0x35bdd3=_0x41d70a,_0x3b6ceb=_0x473c98(_0x41aa0c,_0x19e72e,_0x35bdd3(0x17e));switch(_0x19e72e){case _0x229939[_0x35bdd3(0x182)]:return{'icon':_0x5c1715,'type':_0x229939[_0x35bdd3(0x182)],..._0x3b6ceb};case _0x229939[_0x35bdd3(0x1af)]:return{'icon':_0x7234c,'type':_0x229939[_0x35bdd3(0x1af)],..._0x3b6ceb};case _0x229939[_0x35bdd3(0x178)]:return{'icon':_0x3f409d,'type':_0x229939[_0x35bdd3(0x178)],..._0x3b6ceb};case _0x229939[_0x35bdd3(0x19c)]:return{'icon':_0x1f9166,'type':_0x229939[_0x35bdd3(0x19c)],..._0x3b6ceb};case _0x229939[_0x35bdd3(0x181)]:return{'icon':_0x18aebf,'type':_0x229939[_0x35bdd3(0x181)],..._0x3b6ceb};case _0x229939[_0x35bdd3(0x18f)]:return{'icon':_0x589eae,'type':_0x229939[_0x35bdd3(0x18f)],..._0x3b6ceb};case _0x229939[_0x35bdd3(0x1b5)]:return{'icon':_0x1d80ef,'type':_0x229939[_0x35bdd3(0x1b5)],..._0x3b6ceb};}});}[_0x318f17(0x1a8)](_0x419e5f){const _0x16ca9d=_0x318f17;switch(_0x419e5f){case _0x229939[_0x16ca9d(0x182)]:return _0x16ca9d(0x16f);case _0x229939[_0x16ca9d(0x1af)]:return _0x16ca9d(0x16a);default:return _0x16ca9d(0x198);}}[_0x318f17(0x18c)](_0x32c13a,_0x42969f){const _0x37d7d8=_0x318f17,_0x1b2445=this[_0x37d7d8(0x1b2)],_0xca11b3=new _0x32c13a(_0x1b2445[_0x37d7d8(0x176)]),_0x2c163d=_0x1b2445[_0x37d7d8(0x1ae)][_0x37d7d8(0x16c)](_0x37d7d8(0x192));return _0xca11b3[_0x37d7d8(0x169)](_0x37d7d8(0x195))['to'](_0x2c163d),_0xca11b3['on'](_0x37d7d8(0x1a6),()=>{const _0x3d8c11=_0x37d7d8;_0x2c163d[_0x3d8c11(0x1a6)](_0x42969f);}),_0xca11b3;}[_0x318f17(0x199)](_0x305046){const _0x5f1ea4=_0x318f17,{locale:_0x4a8e59}=this[_0x5f1ea4(0x1b2)],_0x578f22=this[_0x5f1ea4(0x1b2)][_0x5f1ea4(0x183)][_0x5f1ea4(0x16c)](_0x5f1ea4(0x191)),_0x26daf4=_0x305046[0x0],_0x22a63f=this[_0x5f1ea4(0x18c)](_0x22841f,_0x26daf4[_0x5f1ea4(0x179)]);return _0x22a63f[_0x5f1ea4(0x16e)]=_0x26daf4[_0x5f1ea4(0x16e)],_0x22a63f[_0x5f1ea4(0x169)](_0x5f1ea4(0x187))['to'](_0x578f22,_0x5f1ea4(0x1ab),_0x477554=>_0x473c98(_0x4a8e59,_0x26daf4[_0x5f1ea4(0x179)],_0x477554?_0x5f1ea4(0x185):_0x5f1ea4(0x17e))[_0x5f1ea4(0x194)]),_0x22a63f[_0x5f1ea4(0x1aa)]=!0x0,_0x22a63f;}[_0x318f17(0x19e)](_0x3993c2){const _0x3dd56a=_0x318f17,{locale:_0x3ff923}=this[_0x3dd56a(0x1b2)],_0x586885=this[_0x3dd56a(0x1b2)][_0x3dd56a(0x183)][_0x3dd56a(0x16c)](_0x3dd56a(0x191));return _0x3993c2[_0x3dd56a(0x1a9)](_0x2249fb=>{const _0x58599d=_0x3dd56a,_0x1874b7=this[_0x58599d(0x18c)](_0x22841f,_0x2249fb[_0x58599d(0x179)]);return _0x1874b7[_0x58599d(0x190)]=!0x0,_0x1874b7[_0x58599d(0x16e)]=_0x2249fb[_0x58599d(0x16e)],_0x1874b7[_0x58599d(0x169)](_0x58599d(0x187))['to'](_0x586885,_0x58599d(0x1ab),_0x3dd963=>_0x473c98(_0x3ff923,_0x2249fb[_0x58599d(0x179)],_0x3dd963?_0x58599d(0x185):_0x58599d(0x17e))[_0x58599d(0x194)]),_0x1874b7;});}[_0x318f17(0x173)](_0x73b5ef){const _0x8bf6fe=_0x318f17;return _0x73b5ef[_0x8bf6fe(0x1a9)](_0xf4f577=>{const _0x212fa8=_0x8bf6fe,_0x23f52f=this[_0x212fa8(0x18c)](_0x53214e,_0xf4f577[_0x212fa8(0x179)]);return _0x23f52f[_0x212fa8(0x16e)]=_0xf4f577[_0x212fa8(0x16e)],_0x23f52f[_0x212fa8(0x187)]=_0xf4f577[_0x212fa8(0x18e)],_0x23f52f;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1624f5}from'ckeditor5/src/core.js';import{FileRepository as _0x220742}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x566fcf}from'./uploadcareediting.js';import{UploadUtils as _0x10e200}from'./utils/uploadutils.js';import{getImageUrls as _0x13dffd}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x1624f5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x220742,_0x566fcf];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4f2e8b=this['editor'];if(!!!_0x4f2e8b['config']['get']('uploadcare'))return;_0x4f2e8b['plugins']['get'](_0x220742)['createUploadAdapter']=_0x4b84ac=>new k(_0x4b84ac,_0x4f2e8b),_0x4f2e8b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x571477,{imageElement:_0x5a1b49,data:_0xa155de})=>{_0x4f2e8b['model']['change'](_0xa449f7=>{_0xa449f7['setAttribute']('uploadcareImageId',_0xa155de['uploadcareImageId'],_0x5a1b49);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x509562,_0x1198f4){this['loader']=_0x509562,this['editor']=_0x1198f4,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5d53b2=await this['loader']['file'];return _0x10e200['upload']({'file':_0x5d53b2,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x51859b=>{_0x51859b&&_0x51859b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x51859b['value']);}})['then'](async _0x10cb88=>{const {imageFallbackUrl:_0x3f58e7,imageSources:_0x2ae293}=_0x13dffd(_0x10cb88['cdnUrl'],_0x10cb88['imageInfo']['width']);return{'uploadcareImageId':_0x10cb88['uuid'],'default':_0x3f58e7,'sources':_0x2ae293};})['catch'](()=>{const _0x5cdb74=t('Cannot\x20upload\x20file:')+('\x20'+_0x5d53b2['name']+'.');return Promise['reject'](_0x5cdb74);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x4040ae}from'../uploadcareconfig.js';export function getTranslation(_0x374672,_0x58a2f0,_0x206fd6){const t=_0x374672['t'],_0x551cbb=_0x374672['t'];switch(_0x58a2f0){case _0x4040ae['Local']:return{'text':_0x551cbb('Insert'===_0x206fd6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x551cbb('From\x20computer')};case _0x4040ae['URL']:return{'text':'Insert'===_0x206fd6?_0x551cbb('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x551cbb('Via\x20URL')};case _0x4040ae['Dropbox']:return{'text':t('Insert'===_0x206fd6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x4040ae['Facebook']:return{'text':t('Insert'===_0x206fd6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x4040ae['GDrive']:return{'text':t('Insert'===_0x206fd6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x4040ae['GPhotos']:return{'text':t('Insert'===_0x206fd6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x4040ae['OneDrive']:return{'text':t('Insert'===_0x206fd6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x58a2f0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x43ae8a=_0x580d;function _0x3dce(){var _0x1c1186=['12CTxRCL','192SNSybC','387JNKISK','div','8LQmwmv','focusTracker','8CAiDSn','917925ufKQLQ','focusCycler','fire','createCollection','forwardCycle','true','21324fFzRHi','getFocusableElement','4128565rnWSnl','3702438EVPpox','238330MuMlAG','3204810xjiZGh','1885477GlaUDs','bindTemplate'];_0x3dce=function(){return _0x1c1186;};return _0x3dce();}(function(_0x541440,_0x4aa78d){var _0x5e138a=_0x580d,_0xdcf444=_0x541440();while(!![]){try{var _0x5405e7=parseInt(_0x5e138a(0x1d7))/0x1+parseInt(_0x5e138a(0x1dd))/0x2*(parseInt(_0x5e138a(0x1d1))/0x3)+-parseInt(_0x5e138a(0x1d6))/0x4*(-parseInt(_0x5e138a(0x1e2))/0x5)+-parseInt(_0x5e138a(0x1e0))/0x6+-parseInt(_0x5e138a(0x1df))/0x7*(parseInt(_0x5e138a(0x1d4))/0x8)+-parseInt(_0x5e138a(0x1d2))/0x9*(parseInt(_0x5e138a(0x1e1))/0xa)+parseInt(_0x5e138a(0x1e3))/0xb*(parseInt(_0x5e138a(0x1d0))/0xc);if(_0x5405e7===_0x4aa78d)break;else _0xdcf444['push'](_0xdcf444['shift']());}catch(_0xe0cf9d){_0xdcf444['push'](_0xdcf444['shift']());}}}(_0x3dce,0xc8ab1));function _0x580d(_0x1304a7,_0x558be1){var _0x3dce1e=_0x3dce();return _0x580d=function(_0x580dcc,_0xe1666e){_0x580dcc=_0x580dcc-0x1cf;var _0x3fc1c6=_0x3dce1e[_0x580dcc];return _0x3fc1c6;},_0x580d(_0x1304a7,_0x558be1);}import{FocusTracker as _0x489499}from'ckeditor5/src/utils.js';import{View as _0x11b58b,FocusCycler as _0x45203e}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x11b58b{[_0x43ae8a(0x1d5)];[_0x43ae8a(0x1d8)];constructor(_0x1b95ba){var _0x3d7389=_0x43ae8a;super(_0x1b95ba),this[_0x3d7389(0x1d5)]=new _0x489499(),this[_0x3d7389(0x1d8)]=new _0x45203e({'focusables':this[_0x3d7389(0x1da)](),'focusTracker':this[_0x3d7389(0x1d5)]});}[_0x43ae8a(0x1de)](){var _0x53fc8c=_0x43ae8a;return{'tag':_0x53fc8c(0x1d3),'attributes':{'aria-hidden':_0x53fc8c(0x1dc),'tabindex':'0'},'on':{'focus':this[_0x53fc8c(0x1cf)]['to'](()=>{var _0x2a6827=_0x53fc8c;this[_0x2a6827(0x1d8)][_0x2a6827(0x1d9)](_0x2a6827(0x1db));})}};}}
|