@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251230.0 → 0.0.0-nightly-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
|
+
const _0xe14931=_0xb59e;function _0x4341(){const _0x343272=['upcast','selection','configElement','for','isOfficialPlugin','href','closeMax','destroy','execute','\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','2YhYlqR','isRegistered','isPremiumPlugin','elementToAttribute','UploadcareEditing','config','appendChild','getAttribute','iconHrefResolver','fromCharCode','uc-config','editing','uploadcare.uploader','model','true','listenTo','add','contentLanguage','view','uploadcareImageReplace','ucContextId','extend','_initCtx','data-uc-image-id','removeAttribute','input[uploadcare-file-input]','_configElement','attributeToAttribute','once','125415IGIkHQ','replaceImageSource','uploadcareImageId','requires','1036436pWkEad','uc-upload-ctx-provider','cleanupImage','join','imageInline','785800yPZaTO','ctxElement','3368zycRvG','insertImage','imageBlock','uploadcare','242002cvSFxq','60vREXuu','_initSchema','conversion','querySelector','pluginName','remove','body','map','getSelectedElement','659922lLMxUt','editor','_ctxElement','render','get','schema','2785080ULIWcy','#uc-icon-arrow-down','afterInit','document','uploader-','PictureEditing','downcast','uploadcare.pubkey','_initConfig','1309yaaXjq','init','_initConversion','commands','_initImageProcessingIndicator','locale'];_0x4341=function(){return _0x343272;};return _0x4341();}(function(_0x17cbe8,_0x3201d1){const _0xd86b01=_0xb59e,_0x23e8f8=_0x17cbe8();while(!![]){try{const _0x19e863=parseInt(_0xd86b01(0x1ef))/0x1+-parseInt(_0xd86b01(0x218))/0x2*(parseInt(_0xd86b01(0x1f9))/0x3)+-parseInt(_0xd86b01(0x1e4))/0x4+-parseInt(_0xd86b01(0x1e9))/0x5+parseInt(_0xd86b01(0x1ff))/0x6+-parseInt(_0xd86b01(0x208))/0x7*(-parseInt(_0xd86b01(0x1eb))/0x8)+parseInt(_0xd86b01(0x1e0))/0x9*(parseInt(_0xd86b01(0x1f0))/0xa);if(_0x19e863===_0x3201d1)break;else _0x23e8f8['push'](_0x23e8f8['shift']());}catch(_0x15e83b){_0x23e8f8['push'](_0x23e8f8['shift']());}}}(_0x4341,0x38b54));import{Plugin as _0x2df226}from'ckeditor5/src/core.js';import{Dialog as _0x3638b3}from'ckeditor5/src/ui.js';import{createElement as _0x36b5eb,global as _0x22a3a7,uid as _0xfaa9a0}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x224021}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2ca2aa}from'./uploadcareuploadadapter.js';function _0xb59e(_0xa35755,_0xb503d6){const _0x434116=_0x4341();return _0xb59e=function(_0xb59e6a,_0x1f0cb2){_0xb59e6a=_0xb59e6a-0x1d4;let _0x459e81=_0x434116[_0xb59e6a];return _0x459e81;},_0xb59e(_0xa35755,_0xb503d6);}import{showImageProcessingIndicator as _0x3f7ede}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2df226{[_0xe14931(0x1dd)]=null;[_0xe14931(0x1fb)]=null;static get[_0xe14931(0x1f4)](){const _0x325361=_0xe14931;return _0x325361(0x21c);}static get[_0xe14931(0x1e3)](){const _0x1979a3=_0xe14931;return[_0x1979a3(0x204),_0x2ca2aa,_0x3638b3];}static get[_0xe14931(0x212)](){return!0x0;}static get[_0xe14931(0x21a)](){return!0x0;}[_0xe14931(0x1d7)];get[_0xe14931(0x210)](){const _0x2d541f=_0xe14931;return this[_0x2d541f(0x1dd)];}get[_0xe14931(0x1ea)](){const _0x4841c5=_0xe14931;return this[_0x4841c5(0x1fb)];}constructor(_0x1d606b){const _0xb874b8=_0xe14931;super(_0x1d606b),this[_0xb874b8(0x1d7)]=_0xfaa9a0();}[_0xe14931(0x209)](){const _0x1c46fc=_0xe14931,_0x125c2f=this[_0x1c46fc(0x1fa)];_0x125c2f[_0x1c46fc(0x20b)][_0x1c46fc(0x228)](_0x1c46fc(0x1ee),new _0x224021(_0x125c2f));}[_0xe14931(0x201)](){const _0x5d0e08=_0xe14931;this[_0x5d0e08(0x1f1)](),this[_0x5d0e08(0x20a)](),this[_0x5d0e08(0x207)](),this[_0x5d0e08(0x1d9)](),this[_0x5d0e08(0x20c)](),this[_0x5d0e08(0x227)](this[_0x5d0e08(0x1fa)],_0x5d0e08(0x215),()=>{const _0x87b9a9=_0x5d0e08;this[_0x87b9a9(0x1dd)]&&(this[_0x87b9a9(0x1dd)][_0x87b9a9(0x1f5)](),this[_0x87b9a9(0x1dd)]=null),this[_0x87b9a9(0x1fb)]&&(this[_0x87b9a9(0x1fb)][_0x87b9a9(0x1f5)](),this[_0x87b9a9(0x1fb)]=null);const _0x17e9ce=_0x22a3a7[_0x87b9a9(0x202)][_0x87b9a9(0x1f3)](_0x87b9a9(0x1dc));_0x17e9ce&&_0x17e9ce[_0x87b9a9(0x1f5)]();}),async function(_0x309598){const _0x4ed33c=_0x4eecf9([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]),_0x2861d7=0x535f8c3a,_0x273a5e=0x5358f142^_0x2861d7,_0x328a5e=window[_0x4eecf9([0x44,0x61,0x74,0x65])][_0x4eecf9([0x6e,0x6f,0x77])](),_0x4efc4f=_0x309598[_0x4eecf9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59f71e=new window[(_0x4eecf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc8cefa=>{_0x4efc4f[_0x4eecf9([0x6f,0x6e,0x63,0x65])](_0x4eecf9([0x72,0x65,0x61,0x64,0x79]),_0xc8cefa);}),_0x19417e={[_0x4eecf9([0x6b,0x74,0x79])]:_0x4eecf9([0x45,0x43]),[_0x4eecf9([0x75,0x73,0x65])]:_0x4eecf9([0x73,0x69,0x67]),[_0x4eecf9([0x63,0x72,0x76])]:_0x4eecf9([0x50,0x2d,0x32,0x35,0x36]),[_0x4eecf9([0x78])]:_0x4eecf9([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]),[_0x4eecf9([0x79])]:_0x4eecf9([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]),[_0x4eecf9([0x61,0x6c,0x67])]:_0x4eecf9([0x45,0x53,0x32,0x35,0x36])},_0x27606f=_0x4efc4f[_0x4eecf9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4eecf9([0x67,0x65,0x74])](_0x4eecf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1227a(){let _0x71e587,_0xcc10d6=null,_0x10b2ce=null;try{if(_0x27606f==_0x4eecf9([0x47,0x50,0x4c]))return _0x4eecf9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x71e587=_0x550756(),!_0x71e587)return _0x4eecf9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x71e587[_0x4eecf9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10b2ce=_0x200baa(_0x71e587[_0x4eecf9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x71e587[_0x4eecf9([0x6a,0x74,0x69])])),await _0x121133()?_0x500ad3()?_0x5ea169()?_0x4eecf9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x673721()?(_0x71e587[_0x4eecf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4eecf9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xcc10d6=_0x398dfb(_0x4eecf9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x71e587[_0x4eecf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4eecf9([0x74,0x72,0x69,0x61,0x6c])&&(_0xcc10d6=_0x398dfb(_0x4eecf9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e7e56()):_0x4eecf9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4eecf9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4eecf9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4eecf9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5ea169(){const _0x2365f8=[_0x4eecf9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4eecf9([0x74,0x72,0x69,0x61,0x6c])][_0x4eecf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e587[_0x4eecf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x328a5e/0x3e8:0xe10*_0x273a5e;return _0x71e587[_0x4eecf9([0x65,0x78,0x70])]<_0x2365f8;}function _0x500ad3(){const _0x3b339b=_0x71e587[_0x4eecf9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b339b&&(!!_0x3b339b[_0x4eecf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eecf9([0x2a]))||!!_0x3b339b[_0x4eecf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eecf9([0x55,0x50,0x4c,0x43])));}function _0x673721(){const _0x4fcb9c=_0xb59e,_0x46f740=_0x71e587[_0x4eecf9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46f740||0x0==_0x46f740[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xba6c43}=new URL(window[_0x4eecf9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4fcb9c(0x213)]);if(_0x46f740[_0x4eecf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba6c43))return!0x0;const _0x59ed88=_0xba6c43[_0x4eecf9([0x73,0x70,0x6c,0x69,0x74])](_0x4eecf9([0x2e]));return _0x46f740[_0x4eecf9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4eb0af=>_0x4eb0af[_0x4eecf9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eecf9([0x2a])))[_0x4eecf9([0x6d,0x61,0x70])](_0x1a7247=>_0x1a7247[_0x4eecf9([0x73,0x70,0x6c,0x69,0x74])](_0x4eecf9([0x2e])))[_0x4eecf9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cb181=>_0x3cb181[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x59ed88[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4eecf9([0x6d,0x61,0x70])](_0x1b5feb=>Array(_0x59ed88[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b5feb[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4eecf9([0x66,0x69,0x6c,0x6c])](_0x1b5feb[0x0]===_0x4eecf9([0x2a])?_0x4eecf9([0x2a]):'')[_0x4eecf9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b5feb))[_0x4eecf9([0x73,0x6f,0x6d,0x65])](_0x17dcb9=>_0x59ed88[_0x4eecf9([0x65,0x76,0x65,0x72,0x79])]((_0x37eeae,_0x1922c8)=>_0x17dcb9[_0x1922c8]===_0x37eeae||_0x17dcb9[_0x1922c8]===_0x4eecf9([0x2a])));}function _0x4e7e56(){return _0xcc10d6&&_0x10b2ce?new window[(_0x4eecf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x364208,_0x5bf1e5)=>{_0xcc10d6[_0x4eecf9([0x74,0x68,0x65,0x6e])](_0x364208,_0x5bf1e5),_0x10b2ce[_0x4eecf9([0x74,0x68,0x65,0x6e])](_0x5a6d6c=>{_0x5a6d6c!=_0x4eecf9([0x56,0x61,0x6c,0x69,0x64])&&_0x364208(_0x5a6d6c);},_0x5bf1e5);}):_0xcc10d6||_0x10b2ce||_0x4eecf9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x200baa(_0x2c869d,_0x23df6b){return new window[(_0x4eecf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34c078=>{if(_0x4948ac())return _0x34c078(_0x4eecf9([0x56,0x61,0x6c,0x69,0x64]));_0x23126d(),_0x4efc4f[_0x4eecf9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4eecf9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3be3bc=!0x1;const _0xe5b60b=_0xfaa9a0();function _0x1b0eb5(_0x589188){return!!_0x589188&&(typeof _0x589188===_0x4eecf9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x589188===_0x4eecf9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x589188[_0x4eecf9([0x74,0x68,0x65,0x6e])]===_0x4eecf9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x589188[_0x4eecf9([0x63,0x61,0x74,0x63,0x68])]===_0x4eecf9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f6071(_0x409c3e){_0x5a9464(_0x409c3e)[_0x4eecf9([0x74,0x68,0x65,0x6e])](_0x56a044=>{if(!_0x56a044||_0x56a044[_0x4eecf9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4eecf9([0x6f,0x6b]))return _0x4eecf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4bb482(_0x14c9f8(_0xe5b60b+_0x23df6b))!=_0x56a044[_0x4eecf9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4eecf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4eecf9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4eecf9([0x74,0x68,0x65,0x6e])](_0x425368=>(_0x4874cf(),_0x425368),()=>{const _0x140647=_0x2cb849();return null==_0x140647?(_0x4874cf(),_0x4eecf9([0x56,0x61,0x6c,0x69,0x64])):_0x4eecf9(_0x328a5e-_0x140647>(0x7753083a^_0x2861d7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4eecf9([0x74,0x68,0x65,0x6e])](_0x34c078)[_0x4eecf9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34c078(_0x4eecf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x399aec=0x536962ba^_0x2861d7;function _0x4874cf(){const _0x536641=_0x4eecf9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bb482(_0x14c9f8(_0x2c869d)),_0x249ff5=_0x55facc(_0x4bb482(window[_0x4eecf9([0x4d,0x61,0x74,0x68])][_0x4eecf9([0x63,0x65,0x69,0x6c])](_0x328a5e/_0x399aec)));window[_0x4eecf9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4eecf9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x536641,_0x249ff5);}function _0x2cb849(){const _0x174232=_0x4eecf9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bb482(_0x14c9f8(_0x2c869d)),_0x3e33b3=window[_0x4eecf9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4eecf9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x174232);return _0x3e33b3?window[_0x4eecf9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55facc(_0x3e33b3),0x10)*_0x399aec:null;}function _0x5a9464(_0x12b839){return new window[(_0x4eecf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53ce8e,_0x1cdef1)=>{_0x12b839[_0x4eecf9([0x74,0x68,0x65,0x6e])](_0x53ce8e,_0x1cdef1),window[_0x4eecf9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cdef1,0x535e58fa^_0x2861d7);});}}_0x4efc4f[_0x4eecf9([0x6f,0x6e])](_0x4eecf9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1331fc,_0x2534f0)=>{if(_0x2534f0[0x0]!=_0x2c869d)return _0x34c078(_0x4eecf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2534f0[0x1]={..._0x2534f0[0x1],[_0x4eecf9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe5b60b};},{[_0x4eecf9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4eecf9([0x68,0x69,0x67,0x68])}),_0x4efc4f[_0x4eecf9([0x6f,0x6e])](_0x4eecf9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x428a58=>{_0x1b0eb5(_0x428a58[_0x4eecf9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3be3bc=!0x0,_0x1f6071(_0x428a58[_0x4eecf9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4eecf9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4eecf9([0x6c,0x6f,0x77])}),_0x59f71e[_0x4eecf9([0x74,0x68,0x65,0x6e])](()=>{_0x3be3bc||_0x34c078(_0x4eecf9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4948ac(){return _0x4efc4f[_0x4eecf9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eecf9([0x76,0x69,0x65,0x77])][_0x4eecf9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4eecf9([0x61,0x75,0x74,0x6f]);}function _0x23126d(){_0x4efc4f[_0x4eecf9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eecf9([0x76,0x69,0x65,0x77])][_0x4eecf9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4eecf9([0x61,0x75,0x74,0x6f]);}}function _0x398dfb(_0x4f2680){const _0x5ca1ba=[new window[(_0x4eecf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb22bf6=>setTimeout(_0xb22bf6,0x5356b2f6^_0x2861d7)),_0x59f71e[_0x4eecf9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4eecf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47b92a=>{let _0x489066=0x0;_0x4efc4f[_0x4eecf9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eecf9([0x6f,0x6e])](_0x4eecf9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15c40c,_0x3cc622)=>{_0x3cc622[0x0][_0x4eecf9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x489066++,_0x489066==(0x535f89d2^_0x2861d7)&&(_0x47b92a(),_0x15c40c[_0x4eecf9([0x6f,0x66,0x66])]());});}))];return window[_0x4eecf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4eecf9([0x72,0x61,0x63,0x65])](_0x5ca1ba)[_0x4eecf9([0x74,0x68,0x65,0x6e])](()=>_0x4f2680);}async function _0x3113e5(){await _0x59f71e,_0x4efc4f[_0x4eecf9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eecf9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35a2dd,_0x4efc4f[_0x4eecf9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eecf9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35a2dd,_0x4efc4f[_0x4eecf9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4eecf9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4057f2(_0x1d25ac){const _0x3ae571=_0x5029f5();_0x4efc4f[_0x3ae571]=_0x4eecf9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d25ac,_0x1d25ac!=_0x4eecf9([0x56,0x61,0x6c,0x69,0x64])&&_0x3113e5();}function _0x5029f5(){const _0x2ae5b7=window[_0x4eecf9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4eecf9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4eecf9([0x6e,0x6f,0x77])]())[_0x4eecf9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4eecf9([0x2e]),'');let _0x3addfe=_0x4eecf9([0x68]);for(let _0xceed3a=0x0;_0xceed3a<_0x2ae5b7[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xceed3a+=0x2){let _0x4bc693=window[_0x4eecf9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ae5b7[_0x4eecf9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xceed3a,_0xceed3a+0x2));_0x4bc693>=_0x4ed33c[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4bc693-=_0x4ed33c[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3addfe+=_0x4ed33c[_0x4bc693];}return _0x3addfe;}function _0x550756(){const _0x393128=_0x27606f[_0x4eecf9([0x73,0x70,0x6c,0x69,0x74])](_0x4eecf9([0x2e]));if(0x3!=_0x393128[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1140bc(_0x393128[0x1]);function _0x1140bc(_0x223427){const _0x1c8653=_0x3c52cf(_0x223427);return _0x1c8653&&_0x305efe()?_0x1c8653:null;function _0x305efe(){const _0x457c24=_0x1c8653[_0x4eecf9([0x6a,0x74,0x69])],_0x48b0df=window[_0x4eecf9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x457c24[_0x4eecf9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x457c24[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19d9c3={..._0x1c8653,[_0x4eecf9([0x6a,0x74,0x69])]:_0x457c24[_0x4eecf9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x457c24[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19d9c3[_0x4eecf9([0x76,0x63])],_0x14c9f8(_0x19d9c3)==_0x48b0df;}}}async function _0x121133(){let _0x25756c=!0x0;try{const _0x241eeb=_0x27606f[_0x4eecf9([0x73,0x70,0x6c,0x69,0x74])](_0x4eecf9([0x2e])),[_0x5db38a,_0x15a3a1,_0x7425c0]=_0x241eeb;return _0x1cd343(_0x5db38a),await _0xc06c81(_0x5db38a,_0x15a3a1,_0x7425c0),_0x25756c;}catch{return!0x1;}function _0x1cd343(_0x4d17f1){const _0x2cb656=_0x3c52cf(_0x4d17f1);_0x2cb656&&_0x2cb656[_0x4eecf9([0x61,0x6c,0x67])]==_0x4eecf9([0x45,0x53,0x32,0x35,0x36])||(_0x25756c=!0x1);}async function _0xc06c81(_0x1910b7,_0x32c3cc,_0x421c6f){const _0x17f680=window[_0x4eecf9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4eecf9([0x66,0x72,0x6f,0x6d])](_0xd19f59(_0x421c6f),_0x238655=>_0x238655[_0x4eecf9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43c2c1=new window[(_0x4eecf9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4eecf9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1910b7+_0x4eecf9([0x2e])+_0x32c3cc),_0x8191d4=window[_0x4eecf9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4eecf9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8191d4)return;const _0x30f81f=await _0x8191d4[_0x4eecf9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4eecf9([0x6a,0x77,0x6b]),_0x19417e,{[_0x4eecf9([0x6e,0x61,0x6d,0x65])]:_0x4eecf9([0x45,0x43,0x44,0x53,0x41]),[_0x4eecf9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4eecf9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4eecf9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8191d4[_0x4eecf9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4eecf9([0x6e,0x61,0x6d,0x65])]:_0x4eecf9([0x45,0x43,0x44,0x53,0x41]),[_0x4eecf9([0x68,0x61,0x73,0x68])]:{[_0x4eecf9([0x6e,0x61,0x6d,0x65])]:_0x4eecf9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30f81f,_0x17f680,_0x43c2c1)||(_0x25756c=!0x1);}}function _0x3c52cf(_0x3c5b07){return _0x3c5b07[_0x4eecf9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4eecf9([0x65,0x79]))?JSON[_0x4eecf9([0x70,0x61,0x72,0x73,0x65])](_0xd19f59(_0x3c5b07)):null;}function _0xd19f59(_0x354b95){return window[_0x4eecf9([0x61,0x74,0x6f,0x62])](_0x354b95[_0x4eecf9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4eecf9([0x2b]))[_0x4eecf9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4eecf9([0x2f])));}function _0x14c9f8(_0x546e21){let _0x43b6a7=0x1505;function _0x560632(_0x22782e){for(let _0x178445=0x0;_0x178445<_0x22782e[_0x4eecf9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x178445++){const _0x3e8f36=_0x22782e[_0x4eecf9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x178445);_0x43b6a7=(_0x43b6a7<<0x5)+_0x43b6a7+_0x3e8f36,_0x43b6a7&=_0x43b6a7;}}function _0x3bb1fa(_0x2fd624){Array[_0x4eecf9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fd624)?_0x2fd624[_0x4eecf9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3bb1fa):_0x2fd624&&typeof _0x2fd624==_0x4eecf9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4eecf9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fd624)[_0x4eecf9([0x73,0x6f,0x72,0x74])]()[_0x4eecf9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4828b8,_0x4b50fd])=>{_0x560632(_0x4828b8),_0x3bb1fa(_0x4b50fd);}):_0x560632(window[_0x4eecf9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fd624));}return _0x3bb1fa(_0x546e21),_0x43b6a7>>>0x0;}function _0x4bb482(_0x37f41e){return _0x37f41e[_0x4eecf9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4eecf9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4eecf9([0x30]));}function _0x55facc(_0x4d0eff){return _0x4d0eff[_0x4eecf9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4eecf9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4eecf9([0x6a,0x6f,0x69,0x6e])]('');}function _0x35a2dd(){}function _0x4eecf9(_0x59a7d9){const _0xc59dbf=_0xb59e;return _0x59a7d9[_0xc59dbf(0x1f7)](_0x3cb7a3=>String[_0xc59dbf(0x221)](_0x3cb7a3))[_0xc59dbf(0x1e7)]('');}_0x4057f2(await _0x1227a());}(this);}[_0xe14931(0x1f1)](){const _0x4a7bc7=_0xe14931,_0x528e91=this[_0x4a7bc7(0x1fa)][_0x4a7bc7(0x225)][_0x4a7bc7(0x1fe)];_0x528e91[_0x4a7bc7(0x219)](_0x4a7bc7(0x1ed))&&_0x528e91[_0x4a7bc7(0x1d8)](_0x4a7bc7(0x1ed),{'allowAttributes':[_0x4a7bc7(0x1e2)]}),_0x528e91[_0x4a7bc7(0x219)](_0x4a7bc7(0x1e8))&&_0x528e91[_0x4a7bc7(0x1d8)](_0x4a7bc7(0x1e8),{'allowAttributes':[_0x4a7bc7(0x1e2)]});}[_0xe14931(0x20a)](){const _0x4c2b5a=_0xe14931,_0x52e7c2=this[_0x4c2b5a(0x1fa)];_0x52e7c2[_0x4c2b5a(0x1f2)][_0x4c2b5a(0x211)](_0x4c2b5a(0x205))[_0x4c2b5a(0x1de)]({'model':_0x4c2b5a(0x1e2),'view':_0x4c2b5a(0x1da)}),_0x52e7c2[_0x4c2b5a(0x1f2)][_0x4c2b5a(0x211)](_0x4c2b5a(0x20e))[_0x4c2b5a(0x21b)]({'model':{'key':_0x4c2b5a(0x1e2),'value':_0x18fbeb=>_0x18fbeb[_0x4c2b5a(0x21f)](_0x4c2b5a(0x1da))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x459e2f=_0x52e7c2[_0x4c2b5a(0x20b)][_0x4c2b5a(0x1fd)](_0x4c2b5a(0x1e1));_0x459e2f&&this[_0x4c2b5a(0x227)](_0x459e2f,_0x4c2b5a(0x1e6),(_0x16e975,[_0x3543c3,_0x5c7358])=>{const _0x97f9de=_0x4c2b5a;_0x3543c3[_0x97f9de(0x1db)](_0x97f9de(0x1e2),_0x5c7358);});}[_0xe14931(0x207)](){const _0x1cb626=_0xe14931,_0x34a2b5=this[_0x1cb626(0x1fa)][_0x1cb626(0x21d)][_0x1cb626(0x1fd)](_0x1cb626(0x224))||{},_0x3a60e1=this[_0x1cb626(0x1fa)][_0x1cb626(0x21d)][_0x1cb626(0x1fd)](_0x1cb626(0x206))||'';this[_0x1cb626(0x1dd)]=_0x36b5eb(_0x22a3a7[_0x1cb626(0x202)],_0x1cb626(0x222),{..._0x34a2b5,'pubkey':_0x3a60e1,'ctx-name':_0x1cb626(0x203)+this[_0x1cb626(0x1d7)],'sourceList':'','imgOnly':_0x1cb626(0x226),'removeCopyright':_0x1cb626(0x226),'localeName':this[_0x1cb626(0x1fa)][_0x1cb626(0x20d)][_0x1cb626(0x1d4)],'externalSourcesEmbedCss':_0x1cb626(0x217)}),this[_0x1cb626(0x1dd)][_0x1cb626(0x220)]=_0x56bfdc=>{const _0xb1fbf7=_0x1cb626;if(_0xb1fbf7(0x214)==_0x56bfdc)return _0xb1fbf7(0x200);},_0x22a3a7[_0x1cb626(0x202)][_0x1cb626(0x1f6)][_0x1cb626(0x21e)](this[_0x1cb626(0x1dd)]);}[_0xe14931(0x1d9)](){const _0x1af7aa=_0xe14931;this[_0x1af7aa(0x1fb)]=_0x36b5eb(_0x22a3a7[_0x1af7aa(0x202)],_0x1af7aa(0x1e5),{'ctx-name':_0x1af7aa(0x203)+this[_0x1af7aa(0x1d7)]}),_0x22a3a7[_0x1af7aa(0x202)][_0x1af7aa(0x1f6)][_0x1af7aa(0x21e)](this[_0x1af7aa(0x1fb)]);}[_0xe14931(0x20c)](){const _0x233732=_0xe14931,_0x22bf16=this[_0x233732(0x1fa)][_0x233732(0x20b)][_0x233732(0x1fd)](_0x233732(0x1ec));_0x22bf16&&this[_0x233732(0x227)](_0x22bf16,_0x233732(0x216),()=>{const _0x485101=_0x233732,_0x32b819=this[_0x485101(0x1fa)][_0x485101(0x225)][_0x485101(0x202)][_0x485101(0x20f)][_0x485101(0x1f8)]();_0x32b819&&_0x32b819[_0x485101(0x21f)](_0x485101(0x1e2))&&this[_0x485101(0x1fa)][_0x485101(0x223)][_0x485101(0x1d5)][_0x485101(0x1df)](_0x485101(0x1fc),()=>{const _0x1452ca=_0x485101;_0x3f7ede(this[_0x1452ca(0x1fa)],_0x32b819);});});const _0x3ccb8e=this[_0x233732(0x1fa)][_0x233732(0x20b)][_0x233732(0x1fd)](_0x233732(0x1d6));_0x3ccb8e&&this[_0x233732(0x227)](_0x3ccb8e,_0x233732(0x216),()=>{const _0x133d25=_0x233732,_0x6d4854=this[_0x133d25(0x1fa)][_0x133d25(0x225)][_0x133d25(0x202)][_0x133d25(0x20f)][_0x133d25(0x1f8)]();_0x6d4854&&_0x6d4854[_0x133d25(0x21f)](_0x133d25(0x1e2))&&this[_0x133d25(0x1fa)][_0x133d25(0x223)][_0x133d25(0x1d5)][_0x133d25(0x1df)](_0x133d25(0x1fc),()=>{const _0x40bc7d=_0x133d25;_0x3f7ede(this[_0x40bc7d(0x1fa)],_0x6d4854);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x58c679,ObservableMixin as _0xeb1339}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x52623e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x50260c}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4a1878}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x13e8b9}from'../../utils/uploadutils.js';import{getImageUrls as _0x1443ee,getImageDimension as _0x2dc38c}from'../../utils/editingutils.js';import{isAncestor as _0x403405}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xeb1339(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x11d454,_0x56c14d,_0x750941){super(),this['_editor']=_0x11d454,this['_dialog']=_0x56c14d,this['_imageElement']=_0x750941,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 _0x2cd04a=this['_imageElement'],_0x1da9cd=_0x2cd04a['getAttribute']('uploadcareImageId'),_0x2a983d=_0x2cd04a['getAttribute']('src');if(_0x1da9cd)await this['_loadImageInfo'](_0x1da9cd,_0x2a983d);else{if(this['_imageCache']['has'](_0x2a983d)){const _0x309428=this['_imageCache']['get'](_0x2a983d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x309428['url'],this['imageDimension']=_0x309428['dimension'],this['imageId']=_0x309428['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x361c71}=this['_editor'],t=_0x361c71['t'],_0x4bb9fa=new _0x4a1878(_0x361c71,this['imageStatus'],this['_attributes']);_0x4bb9fa['bind']('status')['to'](this,'imageStatus'),_0x4bb9fa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4bb9fa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4bb9fa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4bb9fa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x50260c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4bb9fa,'position':_0x52623e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4bb9fa['focus']();},'onHide':()=>{_0x4bb9fa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x32f3b2=>!_0x403405(_0x32f3b2,_0x4bb9fa['element'])}});}['_loadImageInfo'](_0x7bcf1e,_0xe9e9fc){return _0x13e8b9['getInfo'](_0x7bcf1e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5a1ece=>{const {width:_0x4e2c6a,height:_0x527ae2}=_0x5a1ece['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe9e9fc,this['imageDimension']={'width':_0x4e2c6a,'height':_0x527ae2},this['imageId']=_0x7bcf1e;})['catch'](_0x237fee=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x237fee['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x49b227,_0x30e40b){return this['_getImageAsFile'](_0x49b227)['then'](_0x2c127d=>_0x13e8b9['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':_0x30e40b['signal'],'file':_0x2c127d,'onProgress':_0x55a13b=>{_0x55a13b&&_0x55a13b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x55a13b['value']));}}))['then'](_0x1a1f6e=>{const {width:_0x46df5c,height:_0x533bc8}=_0x1a1f6e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a1f6e['cdnUrl'],this['imageDimension']={'width':_0x46df5c,'height':_0x533bc8},this['imageId']=_0x1a1f6e['uuid'],this['imageUploadProgress']=null;const _0x452de7=_0x49b227['getAttribute']('src');this['_imageCache']['set'](_0x452de7,{'id':_0x1a1f6e['uuid'],'url':_0x1a1f6e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3762ce=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3762ce['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x30dfd4,_0x582bcc){_0x30dfd4['on']('apply',(_0x31d6d3,_0xe374d5)=>{this['_replaceImage'](_0x582bcc,_0xe374d5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x30dfd4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x30dfd4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x491f1d,_0x318aae,_0x19501c){const _0x4145a3=this['_editor'],{width:_0x1ff8a2,height:_0x2a4a78}=_0x2dc38c(_0x318aae,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3d4f59,imageSources:_0x215607}=_0x1443ee(_0x318aae,_0x1ff8a2);_0x4145a3['model']['change'](_0x4c0889=>{if('$graveyard'===_0x491f1d['root']['rootName']){_0x4145a3['execute']('insertImage',{'imageType':_0x491f1d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x491f1d['getAttributes']()),'uploadcareImageId':_0x19501c,'src':_0x3d4f59,'sources':_0x215607,'width':_0x1ff8a2,'height':_0x2a4a78}});const _0x55e38a=_0x491f1d['getChildren']();_0x491f1d=_0x4145a3['model']['document']['selection']['getSelectedElement']();for(const _0x91106f of _0x55e38a)_0x4c0889['append'](_0x4c0889['cloneElement'](_0x91106f),_0x491f1d);}else _0x4c0889['setSelection'](_0x491f1d,'on'),_0x4145a3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x491f1d['getAttributes']()),'uploadcareImageId':_0x19501c,'src':_0x3d4f59,'sources':_0x215607,'width':_0x1ff8a2,'height':_0x2a4a78},_0x491f1d);_0x4c0889['setSelection'](_0x491f1d,'on');});}async['_getImageAsFile'](_0x59acfb){const _0x48acf7=_0x58c679['window'],_0xed867d=_0x58c679['document']['location']['href'],_0x2c9b3e=new _0x48acf7['URL'](_0x59acfb['getAttribute']('src'),_0xed867d);if('data:'===_0x2c9b3e['protocol']){const _0x22efe3=_0x2c9b3e['href']['split'](','),_0xc35590=_0x22efe3[0x0]['match'](/:(.*?);/)[0x1],_0x4ccbe7=_0xc35590['split']('/')[0x1],_0x4aaae3=_0x48acf7['atob'](_0x22efe3[_0x22efe3['length']-0x1]);let _0x27909a=_0x4aaae3['length'];const _0x3b32fb=new _0x48acf7['Uint8Array'](_0x27909a);for(;_0x27909a--;)_0x3b32fb[_0x27909a]=_0x4aaae3['charCodeAt'](_0x27909a);return new _0x48acf7['File']([_0x3b32fb],'image.'+_0x4ccbe7,{'type':_0xc35590});}const _0x429b69=_0x2c9b3e['href']['split']('/'),_0x520ef3=_0x429b69[_0x429b69['length']-0x1],_0x3b68e8=_0x520ef3['split']('.')[0x1];return _0x48acf7['fetch'](_0x2c9b3e['href'])['then'](_0x1fcd69=>_0x1fcd69['clone']()['blob']())['then'](_0x10676f=>new _0x48acf7['File']([_0x10676f],_0x520ef3,{'type':'image/'+_0x3b68e8}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1a33(_0x5a3e77,_0x610f0f){const _0x572183=_0x5721();return _0x1a33=function(_0x1a338b,_0x6e490d){_0x1a338b=_0x1a338b-0xe8;let _0x269d2e=_0x572183[_0x1a338b];return _0x269d2e;},_0x1a33(_0x5a3e77,_0x610f0f);}(function(_0x31deca,_0x2f4d16){const _0x58df19=_0x1a33,_0x32f3e6=_0x31deca();while(!![]){try{const _0x47e133=parseInt(_0x58df19(0xf3))/0x1+-parseInt(_0x58df19(0xea))/0x2*(parseInt(_0x58df19(0xf2))/0x3)+-parseInt(_0x58df19(0xed))/0x4*(parseInt(_0x58df19(0xf8))/0x5)+-parseInt(_0x58df19(0xf5))/0x6*(parseInt(_0x58df19(0xee))/0x7)+-parseInt(_0x58df19(0xe9))/0x8*(parseInt(_0x58df19(0xec))/0x9)+-parseInt(_0x58df19(0xf9))/0xa*(parseInt(_0x58df19(0xeb))/0xb)+parseInt(_0x58df19(0xf7))/0xc;if(_0x47e133===_0x2f4d16)break;else _0x32f3e6['push'](_0x32f3e6['shift']());}catch(_0x37fc70){_0x32f3e6['push'](_0x32f3e6['shift']());}}}(_0x5721,0x9c74d));import{View as _0x5a778a}from'ckeditor5/src/ui.js';function _0x5721(){const _0x4e0a43=['set','30qRKndZ','uc-light','60583440fDjcjk','5164805oLQzUR','88870FAFtiI','setTemplate','ck-uploadcare-theme','bindTemplate','7496jDrORE','4xbxnvQ','1342aBVYDh','11970aEKUgK','4EWRhsH','1455629ZewPEl','imageSrc','uc-cloud-image-editor','image-edit','1036347NPMCED','686243VAcrCH'];_0x5721=function(){return _0x4e0a43;};return _0x5721();}export class UploadcareImageEditFormEditingView extends _0x5a778a{constructor(_0x58cb52,_0x6fdd11){const _0x4a1e79=_0x1a33;super(_0x58cb52);const _0x3c3ffd=this[_0x4a1e79(0xe8)];this[_0x4a1e79(0xf4)](_0x4a1e79(0xef),''),this[_0x4a1e79(0xfa)]({'tag':_0x4a1e79(0xf0),'attributes':{..._0x6fdd11,'class':[_0x4a1e79(0xf6),_0x4a1e79(0xfb)],'ctx-name':_0x4a1e79(0xf1),'cdn-url':_0x3c3ffd['to'](_0x4a1e79(0xef))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x3c10d7}from'ckeditor5/src/icons.js';import{ButtonView as _0x38c58e,IconView as _0x2148d3,View as _0x2cc6af}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2cc6af{constructor(_0x3a9d5b){super(_0x3a9d5b);const t=_0x3a9d5b['t'];this['set']('errorType',null);const _0x5c8a1f=new _0x38c58e(_0x3a9d5b);_0x5c8a1f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5c8a1f['withText']=!0x0,_0x5c8a1f['class']='ck-button-action',_0x5c8a1f['on']('execute',()=>{this['fire']('retry');}),_0x5c8a1f['bind']('isVisible')['to'](this,'errorType',_0x2bff63=>'NotFound'!==_0x2bff63);const _0x180751=new _0x2148d3();_0x180751['content']=_0x3c10d7,_0x180751['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x165a35=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':[_0x180751,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x165a35['to']('errorType',_0x2faa10=>t('NotFound'!==_0x2faa10?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5c8a1f]},{'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 _0x377122,View as _0x4c4b61}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4c4b61{constructor(_0x40e4b0){super(_0x40e4b0);const t=_0x40e4b0['t'],_0x561224=this['bindTemplate'],_0x5d19e9=new _0x377122();_0x5d19e9['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':[_0x5d19e9,{'text':_0x561224['to']('imageUploadProgress',_0x26e584=>t('Loading\x20image...')+'\x20('+(_0x26e584||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 _0x2d900a=_0x114b;(function(_0x411533,_0x577fd0){const _0x5d0657=_0x114b,_0x41d232=_0x411533();while(!![]){try{const _0x37f9ab=-parseInt(_0x5d0657(0x138))/0x1+parseInt(_0x5d0657(0x129))/0x2+-parseInt(_0x5d0657(0x111))/0x3+-parseInt(_0x5d0657(0x119))/0x4+-parseInt(_0x5d0657(0x137))/0x5*(parseInt(_0x5d0657(0x126))/0x6)+parseInt(_0x5d0657(0x140))/0x7*(-parseInt(_0x5d0657(0x11f))/0x8)+-parseInt(_0x5d0657(0x12d))/0x9*(-parseInt(_0x5d0657(0x128))/0xa);if(_0x37f9ab===_0x577fd0)break;else _0x41d232['push'](_0x41d232['shift']());}catch(_0x5e2dee){_0x41d232['push'](_0x41d232['shift']());}}}(_0x2293,0x4cce8));function _0x114b(_0x50e6a5,_0x20ba40){const _0x22938c=_0x2293();return _0x114b=function(_0x114bd1,_0x22498b){_0x114bd1=_0x114bd1-0x10b;let _0x2d9266=_0x22938c[_0x114bd1];return _0x2d9266;},_0x114b(_0x50e6a5,_0x20ba40);}import{View as _0x417522}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1b833d}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x32f562}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x42e462}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5b3f31}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5b3f31{[_0x2d900a(0x11d)];[_0x2d900a(0x125)];[_0x2d900a(0x121)];[_0x2d900a(0x133)];[_0x2d900a(0x112)];constructor(_0x4685aa,_0x27bdf1,_0x3f3705){const _0x31c1db=_0x2d900a;super(_0x4685aa),this[_0x31c1db(0x11d)]=this[_0x31c1db(0x123)](),this[_0x31c1db(0x125)]=new _0x1b833d(_0x4685aa),this[_0x31c1db(0x121)]=new _0x32f562(_0x4685aa),this[_0x31c1db(0x133)]=new _0x42e462(_0x4685aa,_0x3f3705),this[_0x31c1db(0x112)]=new _0x417522(_0x4685aa),this[_0x31c1db(0x112)][_0x31c1db(0x127)](this[_0x31c1db(0x139)]()),this[_0x31c1db(0x114)](_0x31c1db(0x110),_0x27bdf1),this[_0x31c1db(0x127)]({'tag':_0x31c1db(0x13a),'attributes':{'class':['ck',_0x31c1db(0x10f),_0x31c1db(0x13c)],'tabindex':'-1'},'children':this[_0x31c1db(0x11d)]}),this[_0x31c1db(0x117)](),this[_0x31c1db(0x12e)](_0x31c1db(0x113),()=>{const _0x2f8a4a=_0x31c1db;this[_0x2f8a4a(0x12f)](this[_0x2f8a4a(0x122)],_0x16fdb9=>{const _0x20ccd1=_0x2f8a4a;this[_0x20ccd1(0x120)](_0x16fdb9);});}),this['on'](_0x31c1db(0x134),()=>{const _0x412c97=_0x31c1db;this[_0x412c97(0x117)]();}),this[_0x31c1db(0x115)]();}[_0x2d900a(0x11c)](){const _0x5539eb=_0x2d900a;this[_0x5539eb(0x122)][_0x5539eb(0x11c)]();}[_0x2d900a(0x117)](){const _0xd2451e=_0x2d900a;switch(this[_0xd2451e(0x11d)][_0xd2451e(0x10d)](),this[_0xd2451e(0x110)]){case _0xd2451e(0x131):this[_0xd2451e(0x11d)][_0xd2451e(0x12a)](this[_0xd2451e(0x125)]);break;case _0xd2451e(0x13d):this[_0xd2451e(0x11d)][_0xd2451e(0x12a)](this[_0xd2451e(0x121)]);break;case _0xd2451e(0x13e):this[_0xd2451e(0x11d)][_0xd2451e(0x132)]([this[_0xd2451e(0x133)],this[_0xd2451e(0x112)]]);}}[_0x2d900a(0x12f)](_0x3f3ff8,_0x2e856a){const _0x57a521=_0x2d900a,_0xfe7c59=_0x57a521(0x12b),_0x15775d=_0x3f3ff8[_0x57a521(0x12c)](_0xfe7c59);if(_0x15775d)return _0x2e856a(_0x15775d);const _0x20ca24=new MutationObserver(_0x1cb636=>{const _0x21618e=_0x57a521,_0x3c31ac=_0x1cb636[_0x21618e(0x11a)](_0x4046d8=>_0x4046d8[_0x21618e(0x135)]===_0x3f3ff8&&_0x4046d8[_0x21618e(0x130)][_0x21618e(0x11b)]>0x0&&_0x4046d8[_0x21618e(0x130)][0x0][_0x21618e(0x10b)][_0x21618e(0x13b)]()===_0xfe7c59);_0x3c31ac[_0x21618e(0x11b)]&&(_0x20ca24[_0x21618e(0x116)](),_0x2e856a(_0x3c31ac[0x0][_0x21618e(0x130)][0x0]));});_0x20ca24[_0x57a521(0x13f)](_0x3f3ff8,{'childList':!0x0,'subtree':!0x0});}[_0x2d900a(0x120)](_0x22c2ba){const _0x6d63a7=_0x2d900a;_0x22c2ba[_0x6d63a7(0x124)](_0x6d63a7(0x118),_0x13974e=>{const _0xb362a9=_0x6d63a7;this[_0xb362a9(0x141)](_0xb362a9(0x118),{'imageSrc':_0x13974e[_0xb362a9(0x10e)][_0xb362a9(0x11e)]});}),_0x22c2ba[_0x6d63a7(0x124)](_0x6d63a7(0x136),()=>{const _0x204b2d=_0x6d63a7;this[_0x204b2d(0x141)](_0x204b2d(0x136));});}[_0x2d900a(0x115)](){const _0x1678dd=_0x2d900a;this[_0x1678dd(0x121)]['on'](_0x1678dd(0x10c),()=>{const _0x430192=_0x1678dd;this[_0x430192(0x141)](_0x430192(0x10c));});}}function _0x2293(){const _0x3ac4cf=['6Tbrxcr','setTemplate','10chtBMA','1143336WCcUHn','add','uc-cloud-image-editor','querySelector','12669165FPqcqs','once','_waitForImageEditorComponent','addedNodes','uploading','addMany','_editingView','change:status','target','cancel','701555MBMDfE','393764LglUfn','getFocusableElement','div','toLowerCase','ck-uploadcare-form','error','ready','observe','426391hthPdb','fire','nodeName','retry','clear','detail','ck-reset_all-excluded','status','1076064JgapvM','_focusableView','render','set','_addErrorViewListeners','disconnect','_setView','apply','1869700MzrGib','filter','length','focus','_items','cdnUrl','40nXhUaz','_addUploadcareImageEditorListeners','_errorView','element','createCollection','addEventListener','_loadingView'];_0x2293=function(){return _0x3ac4cf;};return _0x2293();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40a762=_0x1948;(function(_0x19673d,_0x38efc2){const _0x29fd51=_0x1948,_0x21ae3c=_0x19673d();while(!![]){try{const _0x4d49a2=-parseInt(_0x29fd51(0x101))/0x1+parseInt(_0x29fd51(0xf0))/0x2*(-parseInt(_0x29fd51(0x100))/0x3)+-parseInt(_0x29fd51(0x104))/0x4*(-parseInt(_0x29fd51(0xfb))/0x5)+-parseInt(_0x29fd51(0xfc))/0x6+parseInt(_0x29fd51(0xee))/0x7*(-parseInt(_0x29fd51(0xed))/0x8)+-parseInt(_0x29fd51(0xf2))/0x9+parseInt(_0x29fd51(0xfe))/0xa;if(_0x4d49a2===_0x38efc2)break;else _0x21ae3c['push'](_0x21ae3c['shift']());}catch(_0x1a7834){_0x21ae3c['push'](_0x21ae3c['shift']());}}}(_0x4f56,0xf102d));import{Command as _0x27534e}from'ckeditor5/src/core.js';import{Dialog as _0x7fe50a}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2ccb20}from'./ui/uploadcareimageeditcontroller.js';function _0x1948(_0x173740,_0x467638){const _0x4f56d7=_0x4f56();return _0x1948=function(_0x1948cf,_0x6a18ec){_0x1948cf=_0x1948cf-0xeb;let _0x5c5394=_0x4f56d7[_0x1948cf];return _0x5c5394;},_0x1948(_0x173740,_0x467638);}import{createEditabilityChecker as _0x41686a}from'../utils/editingutils.js';function _0x4f56(){const _0x3d75a1=['get','element','5415gPUvux','6333894PhHrLk','isEnabled','41868950wUCVqz','_isEditable','21YiAXYN','774798havdAH','selection','document','2972aPwoPc','plugins','editor','bind','uploadcare.allowExternalImagesEditing','model','imageBlock','set','config','4296HnFars','14392GVjJZH','imageInline','276590YSFHRp','requires','916191rluXAx','execute','refresh','imageEditController','unbind','getSelectedElement','isActive'];_0x4f56=function(){return _0x3d75a1;};return _0x4f56();}export class UploadcareImageEditCommand extends _0x27534e{[_0x40a762(0xf5)];static get[_0x40a762(0xf1)](){return[_0x7fe50a];}[_0x40a762(0xff)];constructor(_0x27f4b7){const _0x200916=_0x40a762;super(_0x27f4b7),this[_0x200916(0xf5)]=void 0x0,this[_0x200916(0xff)]=_0x41686a(_0x27f4b7[_0x200916(0xec)][_0x200916(0xf9)](_0x200916(0x108))||[]),this[_0x200916(0xeb)]({'isActive':!0x1});}[_0x40a762(0xf4)](){const _0x300db0=_0x40a762,_0x57ee0c=this[_0x300db0(0x106)][_0x300db0(0x109)][_0x300db0(0x103)][_0x300db0(0x102)][_0x300db0(0xf7)]();this[_0x300db0(0xfd)]=this[_0x300db0(0xff)](_0x57ee0c);}[_0x40a762(0xf3)](){const _0x2d483f=_0x40a762;this[_0x2d483f(0xf5)]&&(this[_0x2d483f(0xf6)](_0x2d483f(0xf8)),this[_0x2d483f(0xf5)]=void 0x0);const _0x951853=this[_0x2d483f(0x106)][_0x2d483f(0x109)][_0x2d483f(0x103)][_0x2d483f(0x102)][_0x2d483f(0xf7)]();_0x951853&&(_0x951853['is'](_0x2d483f(0xfa),_0x2d483f(0x10a))||_0x951853['is'](_0x2d483f(0xfa),_0x2d483f(0xef)))&&(this[_0x2d483f(0xf5)]=new _0x2ccb20(this[_0x2d483f(0x106)],this[_0x2d483f(0x106)][_0x2d483f(0x105)][_0x2d483f(0xf9)](_0x7fe50a),_0x951853),this[_0x2d483f(0x107)](_0x2d483f(0xf8))['to'](this[_0x2d483f(0xf5)],_0x2d483f(0xf8)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x54c801=_0x7d07;(function(_0x227afe,_0x1c3b1b){const _0x1e3cca=_0x7d07,_0x449449=_0x227afe();while(!![]){try{const _0x2e5bfb=parseInt(_0x1e3cca(0x180))/0x1*(-parseInt(_0x1e3cca(0x177))/0x2)+-parseInt(_0x1e3cca(0x175))/0x3*(-parseInt(_0x1e3cca(0x182))/0x4)+parseInt(_0x1e3cca(0x17f))/0x5+-parseInt(_0x1e3cca(0x184))/0x6*(-parseInt(_0x1e3cca(0x17c))/0x7)+parseInt(_0x1e3cca(0x18a))/0x8+-parseInt(_0x1e3cca(0x179))/0x9*(-parseInt(_0x1e3cca(0x183))/0xa)+-parseInt(_0x1e3cca(0x188))/0xb;if(_0x2e5bfb===_0x1c3b1b)break;else _0x449449['push'](_0x449449['shift']());}catch(_0x59ef65){_0x449449['push'](_0x449449['shift']());}}}(_0x468f,0xa7da8));import{Plugin as _0x2364a5}from'ckeditor5/src/core.js';import{Notification as _0x15666c}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x46b325}from'./uploadcareimageeditcommand.js';function _0x7d07(_0x471957,_0x37e6f0){const _0x468f29=_0x468f();return _0x7d07=function(_0x7d07f,_0x1483c3){_0x7d07f=_0x7d07f-0x175;let _0x1be897=_0x468f29[_0x7d07f];return _0x1be897;},_0x7d07(_0x471957,_0x37e6f0);}import{UploadcareImageReplaceCommand as _0x4892cb}from'./uploadcareimagereplacecommand.js';function _0x468f(){const _0x4cd53f=['uploadcareImageReplace','432IaXUBT','add','requires','1068487ckhEOb','isOfficialPlugin','pluginName','5622660tAiUzR','1IQkVdo','ImageEditing','16116lEAHCT','113530QCaUSj','42NdzDFe','init','uploadcareImageEdit','commands','38367494xOqGnI','UploadcareImageEditEditing','10304496oFRxsT','ImageUtils','408TEXItJ','isPremiumPlugin','796974UWHzAM'];_0x468f=function(){return _0x4cd53f;};return _0x468f();}import{UploadcareEditing as _0x2f1573}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x2364a5{static get[_0x54c801(0x17e)](){const _0x2449e5=_0x54c801;return _0x2449e5(0x189);}static get[_0x54c801(0x17b)](){const _0xbe0660=_0x54c801;return[_0x2f1573,_0x15666c,_0xbe0660(0x18b),_0xbe0660(0x181)];}static get[_0x54c801(0x17d)](){return!0x0;}static get[_0x54c801(0x176)](){return!0x0;}[_0x54c801(0x185)](){const _0x2f8817=_0x54c801,{editor:_0x15cc93}=this;_0x15cc93[_0x2f8817(0x187)][_0x2f8817(0x17a)](_0x2f8817(0x186),new _0x46b325(_0x15cc93)),_0x15cc93[_0x2f8817(0x187)][_0x2f8817(0x17a)](_0x2f8817(0x178),new _0x4892cb(_0x15cc93));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x117690}from'ckeditor5/src/core.js';import{ButtonView as _0x3b77e9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5a5847}from'ckeditor5/src/icons.js';import{createElement as _0x16a14f}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 _0x117690{['_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 _0x22ff6b=this['editor'];_0x22ff6b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4812d9=>{const _0x12d991=_0x22ff6b['commands']['get']('uploadcareImageEdit'),_0x2456a1=new _0x3b77e9(_0x4812d9),t=_0x4812d9['t'];return _0x2456a1['set']({'icon':_0x5a5847,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2456a1['bind']('isEnabled')['to'](_0x12d991),_0x2456a1['bind']('isOn')['to'](_0x12d991,'isActive'),this['listenTo'](_0x2456a1,'execute',()=>{_0x22ff6b['execute']('uploadcareImageEdit'),_0x22ff6b['editing']['view']['focus']();}),_0x2456a1;}),this['_initConfig']();}['_initConfig'](){const _0xc38baa=_0x16a14f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xc38baa),this['listenTo'](this['editor'],'destroy',()=>{_0xc38baa['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xfe235=_0x4b4c;(function(_0x113589,_0x2f1a3d){const _0x1c5876=_0x4b4c,_0x2b6cf7=_0x113589();while(!![]){try{const _0x3b835c=-parseInt(_0x1c5876(0xd1))/0x1*(parseInt(_0x1c5876(0xc1))/0x2)+-parseInt(_0x1c5876(0xc8))/0x3+-parseInt(_0x1c5876(0xcd))/0x4*(parseInt(_0x1c5876(0xc6))/0x5)+parseInt(_0x1c5876(0xcf))/0x6*(parseInt(_0x1c5876(0xd2))/0x7)+-parseInt(_0x1c5876(0xbe))/0x8+parseInt(_0x1c5876(0xbc))/0x9+parseInt(_0x1c5876(0xd4))/0xa;if(_0x3b835c===_0x2f1a3d)break;else _0x2b6cf7['push'](_0x2b6cf7['shift']());}catch(_0x2ce360){_0x2b6cf7['push'](_0x2b6cf7['shift']());}}}(_0x8065,0xba047));function _0x4b4c(_0x1b7fc4,_0x31fcb8){const _0x806556=_0x8065();return _0x4b4c=function(_0x4b4c59,_0x183fdb){_0x4b4c59=_0x4b4c59-0xbb;let _0x41204a=_0x806556[_0x4b4c59];return _0x41204a;},_0x4b4c(_0x1b7fc4,_0x31fcb8);}import{Command as _0x4e139b}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x4e139b{[_0xfe235(0xbd)](){const _0x5f1f96=_0xfe235,_0x48a695=this[_0x5f1f96(0xbf)][_0x5f1f96(0xc5)][_0x5f1f96(0xd0)][_0x5f1f96(0xc4)][_0x5f1f96(0xc0)]();this[_0x5f1f96(0xbb)]=Boolean(_0x48a695&&(_0x48a695['is'](_0x5f1f96(0xcc),_0x5f1f96(0xce))||_0x48a695['is'](_0x5f1f96(0xcc),_0x5f1f96(0xd3))));}[_0xfe235(0xcb)](_0x26e5dc){const _0x2d77ec=_0xfe235,_0x32f3d7=this[_0x2d77ec(0xbf)][_0x2d77ec(0xc5)][_0x2d77ec(0xd0)][_0x2d77ec(0xc4)][_0x2d77ec(0xc0)]();this[_0x2d77ec(0xbf)][_0x2d77ec(0xc5)][_0x2d77ec(0xca)](_0x1bf7e4=>{const _0x1d9627=_0x2d77ec;_0x1bf7e4[_0x1d9627(0xc3)](_0x26e5dc,_0x32f3d7),_0x1bf7e4[_0x1d9627(0xc2)](_0x1d9627(0xc7),_0x32f3d7),_0x1bf7e4[_0x1d9627(0xc2)](_0x1d9627(0xc9),_0x32f3d7);});}}function _0x8065(){const _0x492bdc=['214hlNoco','removeAttribute','setAttributes','selection','model','7435LziCOs','srcset','3698148qaZXvP','sizes','change','execute','element','2976THNvqP','imageBlock','3528FBvMjq','document','9939AOvDAX','8652ykXCVi','imageInline','24909310yjifVy','isEnabled','12288348kYsqNy','refresh','3349016HPCTZe','editor','getSelectedElement'];_0x8065=function(){return _0x492bdc;};return _0x8065();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x374354=_0x5270;function _0x5270(_0x48af6c,_0x3585d2){var _0x133ed8=_0x133e();return _0x5270=function(_0x52700f,_0x5e2bf9){_0x52700f=_0x52700f-0x169;var _0x212619=_0x133ed8[_0x52700f];return _0x212619;},_0x5270(_0x48af6c,_0x3585d2);}function _0x133e(){var _0x2ac07c=['7KVlSWF','isPremiumPlugin','366312emHkLQ','4898412elHpRN','isOfficialPlugin','1738oimhZS','21694xkaawg','pluginName','39KrMWKo','189702bcWRxH','9865SHKfKA','8170672uXyBQW','913643PfUXLy','UploadcareImageEdit','270ybTLoy','requires','1356iAADTL'];_0x133e=function(){return _0x2ac07c;};return _0x133e();}(function(_0x57d81d,_0x3165fa){var _0x164d08=_0x5270,_0x369291=_0x57d81d();while(!![]){try{var _0x1e8d16=-parseInt(_0x164d08(0x178))/0x1+parseInt(_0x164d08(0x172))/0x2*(-parseInt(_0x164d08(0x174))/0x3)+parseInt(_0x164d08(0x16b))/0x4*(-parseInt(_0x164d08(0x176))/0x5)+-parseInt(_0x164d08(0x16f))/0x6+-parseInt(_0x164d08(0x16c))/0x7*(parseInt(_0x164d08(0x177))/0x8)+parseInt(_0x164d08(0x175))/0x9*(-parseInt(_0x164d08(0x169))/0xa)+-parseInt(_0x164d08(0x171))/0xb*(-parseInt(_0x164d08(0x16e))/0xc);if(_0x1e8d16===_0x3165fa)break;else _0x369291['push'](_0x369291['shift']());}catch(_0x266be5){_0x369291['push'](_0x369291['shift']());}}}(_0x133e,0xa921d));import{Plugin as _0xace33b}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x8e6a3d}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x1b7713}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0xace33b{static get[_0x374354(0x173)](){var _0x55b03e=_0x374354;return _0x55b03e(0x179);}static get[_0x374354(0x16a)](){return[_0x8e6a3d,_0x1b7713];}static get[_0x374354(0x170)](){return!0x0;}static get[_0x374354(0x16d)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x52b250=_0x48d6;(function(_0xb05566,_0x74529a){const _0x517ed6=_0x48d6,_0x4b5570=_0xb05566();while(!![]){try{const _0x2379f8=-parseInt(_0x517ed6(0x14b))/0x1*(parseInt(_0x517ed6(0x13a))/0x2)+parseInt(_0x517ed6(0x15d))/0x3+parseInt(_0x517ed6(0x137))/0x4+-parseInt(_0x517ed6(0x13f))/0x5+parseInt(_0x517ed6(0x13e))/0x6*(parseInt(_0x517ed6(0x157))/0x7)+parseInt(_0x517ed6(0x17a))/0x8+-parseInt(_0x517ed6(0x138))/0x9;if(_0x2379f8===_0x74529a)break;else _0x4b5570['push'](_0x4b5570['shift']());}catch(_0x21e0bc){_0x4b5570['push'](_0x4b5570['shift']());}}}(_0x37d6,0x4ae92));import{Plugin as _0x2583a6}from'ckeditor5/src/core.js';function _0x48d6(_0x216097,_0x4889b2){const _0x37d648=_0x37d6();return _0x48d6=function(_0x48d660,_0x294140){_0x48d660=_0x48d660-0x133;let _0x487db3=_0x37d648[_0x48d660];return _0x487db3;},_0x48d6(_0x216097,_0x4889b2);}import{IconDropbox as _0x291f39,IconFacebook as _0x44765b,IconGoogleDrive as _0x3a2162,IconGooglePhotos as _0x4cb452,IconUploadcareImageUpload as _0x45082b,IconUploadcareLink as _0x3be866,IconOneDrive as _0x1de4d6}from'ckeditor5/src/icons.js';import{ButtonView as _0x9e3f58,MenuBarMenuListItemButtonView as _0x17c3d3}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x5b5db7}from'./uploadcareconfig.js';import{getTranslation as _0x47ecfe}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x37d6(){const _0x1dfef4=['isEnabled','_createMenuBarButtons','registerIntegration','config','uploadcareLicenseKeyInvalid','has','uploadcare.uploader.sourceList','Dropbox','uploadcareLicenseKeyExpired','reduce','_createButton','featureNotAllowed','Facebook','Local','execute','url','2155568dzNGaS','_createDropdownButtons','label','uploadcare','expired','entries','isImageSelected','plugins','uploadcareLicenseKeyDomainLimit','_normalizeConfigSourceList','tooltip','uploadcareLicenseKeyTrialLimit','Uploadcare','1100564hdGhxj','2732481LYmXSU','pluginName','6mfKOll','GDrive','_getIntegrationKey','push','6wEhron','1179820DkRwjn','bind','uploadcareLicenseKeyNotAllowed','withText','GPhotos','uploadcareLicenseKeyEvaluationLimit','isOfficialPlugin','isPremiumPlugin','init','licenseKey','upload','invalid','144527zshTmg','Insert','forEach','trialLimit','icon','_licenseKeyCheckInterval','assetManager','get','evaluationLimit','type','usageLimit','_createToolbarButton','4048604LcgiXv','uploadcareLicenseKeyUsageLimit','destroy','Replace','_showLicenseError','UploadcareUI','471087hTqlcH','uploadcareLicenseKeyValid','locale','afterInit','shortText','OneDrive','commands','text','editor','ImageInsertUI','URL','map','domainLimit'];_0x37d6=function(){return _0x1dfef4;};return _0x37d6();}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x2583a6{[_0x52b250(0x148)];[_0x52b250(0x150)];static get[_0x52b250(0x139)](){const _0x4c0a0f=_0x52b250;return _0x4c0a0f(0x15c);}static get[_0x52b250(0x145)](){return!0x0;}static get[_0x52b250(0x146)](){return!0x0;}[_0x52b250(0x147)](){const _0x29fc0c=_0x52b250;this[_0x29fc0c(0x148)]=this[_0x29fc0c(0x165)][_0x29fc0c(0x16d)][_0x29fc0c(0x152)](_0x29fc0c(0x148));const _0x374019=this[_0x29fc0c(0x165)];this[_0x29fc0c(0x150)]=setInterval(()=>{const _0x2f72a1=_0x29fc0c;let _0x3cbcfe;for(const _0x198b87 in _0x374019){const _0x556f5a=_0x198b87,_0x2468b6=_0x374019[_0x556f5a];if(_0x2f72a1(0x15e)==_0x2468b6||_0x2f72a1(0x16e)==_0x2468b6||_0x2f72a1(0x172)==_0x2468b6||_0x2f72a1(0x182)==_0x2468b6||_0x2f72a1(0x141)==_0x2468b6||_0x2f72a1(0x144)==_0x2468b6||_0x2f72a1(0x135)==_0x2468b6||_0x2f72a1(0x158)==_0x2468b6){delete _0x374019[_0x556f5a],_0x3cbcfe=_0x2468b6,clearInterval(this[_0x2f72a1(0x150)]),this[_0x2f72a1(0x150)]=void 0x0;break;}}_0x2f72a1(0x16e)==_0x3cbcfe&&_0x374019[_0x2f72a1(0x15b)](_0x2f72a1(0x14a)),_0x2f72a1(0x172)==_0x3cbcfe&&_0x374019[_0x2f72a1(0x15b)](_0x2f72a1(0x17e)),_0x2f72a1(0x182)==_0x3cbcfe&&_0x374019[_0x2f72a1(0x15b)](_0x2f72a1(0x169)),_0x2f72a1(0x141)==_0x3cbcfe&&_0x374019[_0x2f72a1(0x15b)](_0x2f72a1(0x175),_0x2f72a1(0x136)),_0x2f72a1(0x144)==_0x3cbcfe&&_0x374019[_0x2f72a1(0x15b)](_0x2f72a1(0x153)),_0x2f72a1(0x135)==_0x3cbcfe&&_0x374019[_0x2f72a1(0x15b)](_0x2f72a1(0x14e)),_0x2f72a1(0x158)==_0x3cbcfe&&_0x374019[_0x2f72a1(0x15b)](_0x2f72a1(0x155));},0x3e8);}[_0x52b250(0x160)](){const _0xc1482d=_0x52b250,{editor:_0x24d655}=this,_0x6180c7=_0x24d655[_0xc1482d(0x163)][_0xc1482d(0x152)](_0xc1482d(0x17d));if(!_0x6180c7)return;const _0x19faa6=this[_0xc1482d(0x133)](_0x24d655[_0xc1482d(0x16d)][_0xc1482d(0x152)](_0xc1482d(0x170)))[_0xc1482d(0x173)]((_0x552bf6,_0x2c6219)=>{const _0x34ad9e=_0xc1482d,_0x29fd56=this[_0x34ad9e(0x13c)](_0x2c6219[_0x34ad9e(0x154)]);return _0x552bf6[_0x29fd56]||(_0x552bf6[_0x29fd56]=[]),_0x552bf6[_0x29fd56][_0x34ad9e(0x13d)](_0x2c6219),_0x552bf6;},{});_0x24d655[_0xc1482d(0x181)][_0xc1482d(0x16f)](_0xc1482d(0x166))&&_0x24d655[_0xc1482d(0x163)][_0xc1482d(0x152)](_0xc1482d(0x17d))&&Object[_0xc1482d(0x17f)](_0x19faa6)[_0xc1482d(0x14d)](([_0x1ad601,_0x2f8456])=>{const _0xd0e084=_0xc1482d;_0x24d655[_0xd0e084(0x181)][_0xd0e084(0x152)](_0xd0e084(0x166))[_0xd0e084(0x16c)]({'name':_0x1ad601,'observable':()=>_0x6180c7,'buttonViewCreator':()=>this[_0xd0e084(0x156)](_0x2f8456),'formViewCreator':()=>this[_0xd0e084(0x17b)](_0x2f8456),'menuBarButtonViewCreator':()=>this[_0xd0e084(0x16b)](_0x2f8456),'override':_0xd0e084(0x151)!==_0x1ad601});});}[_0x52b250(0x159)](){const _0x12d741=_0x52b250;super[_0x12d741(0x159)](),this[_0x12d741(0x150)]&&clearInterval(this[_0x12d741(0x150)]);}[_0x52b250(0x133)](_0x117638){const _0x2f6915=_0x52b250,{locale:_0x566b0f}=this[_0x2f6915(0x165)];return _0x117638[_0x2f6915(0x168)](_0x39d267=>{const _0xbc678a=_0x2f6915,_0x1ad849=_0x47ecfe(_0x566b0f,_0x39d267,_0xbc678a(0x14c));switch(_0x39d267){case _0x5b5db7[_0xbc678a(0x177)]:return{'icon':_0x45082b,'type':_0x5b5db7[_0xbc678a(0x177)],..._0x1ad849};case _0x5b5db7[_0xbc678a(0x167)]:return{'icon':_0x3be866,'type':_0x5b5db7[_0xbc678a(0x167)],..._0x1ad849};case _0x5b5db7[_0xbc678a(0x171)]:return{'icon':_0x291f39,'type':_0x5b5db7[_0xbc678a(0x171)],..._0x1ad849};case _0x5b5db7[_0xbc678a(0x176)]:return{'icon':_0x44765b,'type':_0x5b5db7[_0xbc678a(0x176)],..._0x1ad849};case _0x5b5db7[_0xbc678a(0x13b)]:return{'icon':_0x3a2162,'type':_0x5b5db7[_0xbc678a(0x13b)],..._0x1ad849};case _0x5b5db7[_0xbc678a(0x143)]:return{'icon':_0x4cb452,'type':_0x5b5db7[_0xbc678a(0x143)],..._0x1ad849};case _0x5b5db7[_0xbc678a(0x162)]:return{'icon':_0x1de4d6,'type':_0x5b5db7[_0xbc678a(0x162)],..._0x1ad849};}});}[_0x52b250(0x13c)](_0x792d42){const _0x18d4aa=_0x52b250;switch(_0x792d42){case _0x5b5db7[_0x18d4aa(0x177)]:return _0x18d4aa(0x149);case _0x5b5db7[_0x18d4aa(0x167)]:return _0x18d4aa(0x179);default:return _0x18d4aa(0x151);}}[_0x52b250(0x174)](_0x22a6e1,_0x149e8f){const _0x4f49f8=_0x52b250,_0x5c812e=this[_0x4f49f8(0x165)],_0x50f08c=new _0x22a6e1(_0x5c812e[_0x4f49f8(0x15f)]),_0x3e7da0=_0x5c812e[_0x4f49f8(0x163)][_0x4f49f8(0x152)](_0x4f49f8(0x17d));return _0x50f08c[_0x4f49f8(0x140)](_0x4f49f8(0x16a))['to'](_0x3e7da0),_0x50f08c['on'](_0x4f49f8(0x178),()=>{const _0x402d28=_0x4f49f8;_0x3e7da0[_0x402d28(0x178)](_0x149e8f);}),_0x50f08c;}[_0x52b250(0x156)](_0x34483d){const _0x37ee3c=_0x52b250,{locale:_0x217004}=this[_0x37ee3c(0x165)],_0x4d2e0f=this[_0x37ee3c(0x165)][_0x37ee3c(0x181)][_0x37ee3c(0x152)](_0x37ee3c(0x166)),_0x33be25=_0x34483d[0x0],_0x1a9064=this[_0x37ee3c(0x174)](_0x9e3f58,_0x33be25[_0x37ee3c(0x154)]);return _0x1a9064[_0x37ee3c(0x14f)]=_0x33be25[_0x37ee3c(0x14f)],_0x1a9064[_0x37ee3c(0x140)](_0x37ee3c(0x17c))['to'](_0x4d2e0f,_0x37ee3c(0x180),_0x5e98d4=>_0x47ecfe(_0x217004,_0x33be25[_0x37ee3c(0x154)],_0x5e98d4?_0x37ee3c(0x15a):_0x37ee3c(0x14c))[_0x37ee3c(0x164)]),_0x1a9064[_0x37ee3c(0x134)]=!0x0,_0x1a9064;}[_0x52b250(0x17b)](_0x202592){const _0x529ee9=_0x52b250,{locale:_0x22721b}=this[_0x529ee9(0x165)],_0x5a3ab1=this[_0x529ee9(0x165)][_0x529ee9(0x181)][_0x529ee9(0x152)](_0x529ee9(0x166));return _0x202592[_0x529ee9(0x168)](_0x3bde81=>{const _0x32ef3e=_0x529ee9,_0x38d5fa=this[_0x32ef3e(0x174)](_0x9e3f58,_0x3bde81[_0x32ef3e(0x154)]);return _0x38d5fa[_0x32ef3e(0x142)]=!0x0,_0x38d5fa[_0x32ef3e(0x14f)]=_0x3bde81[_0x32ef3e(0x14f)],_0x38d5fa[_0x32ef3e(0x140)](_0x32ef3e(0x17c))['to'](_0x5a3ab1,_0x32ef3e(0x180),_0x1c6506=>_0x47ecfe(_0x22721b,_0x3bde81[_0x32ef3e(0x154)],_0x1c6506?_0x32ef3e(0x15a):_0x32ef3e(0x14c))[_0x32ef3e(0x164)]),_0x38d5fa;});}[_0x52b250(0x16b)](_0x349746){const _0x18bdf9=_0x52b250;return _0x349746[_0x18bdf9(0x168)](_0x14ac1a=>{const _0xb1c22c=_0x18bdf9,_0x4e4fe3=this[_0xb1c22c(0x174)](_0x17c3d3,_0x14ac1a[_0xb1c22c(0x154)]);return _0x4e4fe3[_0xb1c22c(0x14f)]=_0x14ac1a[_0xb1c22c(0x14f)],_0x4e4fe3[_0xb1c22c(0x17c)]=_0x14ac1a[_0xb1c22c(0x161)],_0x4e4fe3;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5b20c7}from'ckeditor5/src/core.js';import{FileRepository as _0x5c7b3f}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x37aebe}from'./uploadcareediting.js';import{UploadUtils as _0x419611}from'./utils/uploadutils.js';import{getImageUrls as _0x499ddf}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x5b20c7{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5c7b3f,_0x37aebe];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x54e6fb=this['editor'];if(!!!_0x54e6fb['config']['get']('uploadcare'))return;_0x54e6fb['plugins']['get'](_0x5c7b3f)['createUploadAdapter']=_0x5055d6=>new k(_0x5055d6,_0x54e6fb),_0x54e6fb['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x433e91,{imageElement:_0x2df404,data:_0x3f5484})=>{_0x54e6fb['model']['change'](_0x41441c=>{_0x41441c['setAttribute']('uploadcareImageId',_0x3f5484['uploadcareImageId'],_0x2df404);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5e8655,_0x13876b){this['loader']=_0x5e8655,this['editor']=_0x13876b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5be360=await this['loader']['file'];return _0x419611['upload']({'file':_0x5be360,'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':_0x294ec8=>{_0x294ec8&&_0x294ec8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x294ec8['value']);}})['then'](async _0x20c36a=>{const {imageFallbackUrl:_0x560f94,imageSources:_0x4925eb}=_0x499ddf(_0x20c36a['cdnUrl'],_0x20c36a['imageInfo']['width']);return{'uploadcareImageId':_0x20c36a['uuid'],'default':_0x560f94,'sources':_0x4925eb};})['catch'](()=>{const _0xae0c4c=t('Cannot\x20upload\x20file:')+('\x20'+_0x5be360['name']+'.');return Promise['reject'](_0xae0c4c);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x1db35b}from'../uploadcareconfig.js';export function getTranslation(_0x59009b,_0x4da58b,_0x4a38fa){const t=_0x59009b['t'],_0x37d5cc=_0x59009b['t'];switch(_0x4da58b){case _0x1db35b['Local']:return{'text':_0x37d5cc('Insert'===_0x4a38fa?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x37d5cc('From\x20computer')};case _0x1db35b['URL']:return{'text':'Insert'===_0x4a38fa?_0x37d5cc('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x37d5cc('Via\x20URL')};case _0x1db35b['Dropbox']:return{'text':t('Insert'===_0x4a38fa?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x1db35b['Facebook']:return{'text':t('Insert'===_0x4a38fa?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x1db35b['GDrive']:return{'text':t('Insert'===_0x4a38fa?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x1db35b['GPhotos']:return{'text':t('Insert'===_0x4a38fa?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x1db35b['OneDrive']:return{'text':t('Insert'===_0x4a38fa?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4da58b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x29b6(){var _0x2ea8f2=['focusCycler','4cVZDgs','bindTemplate','3275217uKVJhc','forwardCycle','200950JKuiPz','3068888ZZDqtT','16204rUnErA','fire','32499200RyHVKB','1835FRuQzn','24KaGFQl','getFocusableElement','div','2020277YFUjXk','focusTracker','644922WGlrWw','createCollection','true'];_0x29b6=function(){return _0x2ea8f2;};return _0x29b6();}var _0x3f2894=_0x4fe8;(function(_0x1780f3,_0x1bc5f2){var _0x3bda3b=_0x4fe8,_0x3f3cc2=_0x1780f3();while(!![]){try{var _0x4e35b3=-parseInt(_0x3bda3b(0x118))/0x1+-parseInt(_0x3bda3b(0x114))/0x2*(-parseInt(_0x3bda3b(0x110))/0x3)+parseInt(_0x3bda3b(0x11a))/0x4*(-parseInt(_0x3bda3b(0x11d))/0x5)+parseInt(_0x3bda3b(0x11e))/0x6*(-parseInt(_0x3bda3b(0x121))/0x7)+-parseInt(_0x3bda3b(0x119))/0x8+parseInt(_0x3bda3b(0x116))/0x9+parseInt(_0x3bda3b(0x11c))/0xa;if(_0x4e35b3===_0x1bc5f2)break;else _0x3f3cc2['push'](_0x3f3cc2['shift']());}catch(_0x2ace5b){_0x3f3cc2['push'](_0x3f3cc2['shift']());}}}(_0x29b6,0xc7b8b));import{FocusTracker as _0x2a9c58}from'ckeditor5/src/utils.js';function _0x4fe8(_0x56c8d6,_0x4013bf){var _0x29b66e=_0x29b6();return _0x4fe8=function(_0x4fe80d,_0x3a2871){_0x4fe80d=_0x4fe80d-0x110;var _0x506062=_0x29b66e[_0x4fe80d];return _0x506062;},_0x4fe8(_0x56c8d6,_0x4013bf);}import{View as _0x3bfcb4,FocusCycler as _0x5d5949}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3bfcb4{[_0x3f2894(0x122)];[_0x3f2894(0x113)];constructor(_0x1baff1){var _0x2ddd55=_0x3f2894;super(_0x1baff1),this[_0x2ddd55(0x122)]=new _0x2a9c58(),this[_0x2ddd55(0x113)]=new _0x5d5949({'focusables':this[_0x2ddd55(0x111)](),'focusTracker':this[_0x2ddd55(0x122)]});}[_0x3f2894(0x11f)](){var _0x472c38=_0x3f2894;return{'tag':_0x472c38(0x120),'attributes':{'aria-hidden':_0x472c38(0x112),'tabindex':'0'},'on':{'focus':this[_0x472c38(0x115)]['to'](()=>{var _0x1fd755=_0x472c38;this[_0x1fd755(0x113)][_0x1fd755(0x11b)](_0x1fd755(0x117));})}};}}
|