@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251217.0 → 0.0.0-nightly-next-20251217.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 _0x3a23(_0x4c5458,_0x3bde42){const _0x543e07=_0x543e();return _0x3a23=function(_0x3a2384,_0x510268){_0x3a2384=_0x3a2384-0x1f2;let _0x5c8110=_0x543e07[_0x3a2384];return _0x5c8110;},_0x3a23(_0x4c5458,_0x3bde42);}const _0x15a2d6=_0x3a23;(function(_0x73a32d,_0x48355e){const _0x441452=_0x3a23,_0x184f9f=_0x73a32d();while(!![]){try{const _0x9229b9=-parseInt(_0x441452(0x23d))/0x1*(-parseInt(_0x441452(0x23c))/0x2)+parseInt(_0x441452(0x218))/0x3+parseInt(_0x441452(0x228))/0x4+parseInt(_0x441452(0x222))/0x5*(-parseInt(_0x441452(0x1fb))/0x6)+-parseInt(_0x441452(0x1f5))/0x7+-parseInt(_0x441452(0x226))/0x8*(parseInt(_0x441452(0x220))/0x9)+parseInt(_0x441452(0x238))/0xa;if(_0x9229b9===_0x48355e)break;else _0x184f9f['push'](_0x184f9f['shift']());}catch(_0x3ae3f0){_0x184f9f['push'](_0x184f9f['shift']());}}}(_0x543e,0x50b1f));import{Plugin as _0x15ee47}from'ckeditor5/src/core.js';import{Dialog as _0x212b11}from'ckeditor5/src/ui.js';function _0x543e(){const _0xf03322=['appendChild','configElement','_initConfig','input[uploadcare-file-input]','requires','commands','1779757wmhkDl','document','uploadcareImageReplace','model','cleanupImage','afterInit','4398fSPfzr','isRegistered','listenTo','upcast','_ctxElement','schema','removeAttribute','execute','get','uploadcare.pubkey','data-uc-image-id','_configElement','locale','init','uploadcareImageId','isPremiumPlugin','config','PictureEditing','getAttribute','#uc-icon-arrow-down','insertImage','querySelector','closeMax','_initCtx','ctxElement','ucContextId','view','uc-config','fromCharCode','1009908nneMDQ','editor','editing','uploadcare.uploader','uc-upload-ctx-provider','getSelectedElement','uploadcare','uploader-','9iUDtsY','iconHrefResolver','3545StCJza','destroy','add','_initConversion','3808216UCkEyG','contentLanguage','2164756EaLZrx','\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','downcast','_initSchema','replaceImageSource','body','true','isOfficialPlugin','UploadcareEditing','selection','imageInline','once','extend','remove','attributeToAttribute','imageBlock','2161970YVljFk','render','for','href','194592KXJopI','5lUTuhy','join','elementToAttribute','conversion','map','pluginName','_initImageProcessingIndicator'];_0x543e=function(){return _0xf03322;};return _0x543e();}import{createElement as _0x204251,global as _0x35b181,uid as _0x43f44a}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1f6595}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4c67bd}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x59f036}from'./utils/editingutils.js';export class UploadcareEditing extends _0x15ee47{[_0x15a2d6(0x206)]=null;[_0x15a2d6(0x1ff)]=null;static get[_0x15a2d6(0x242)](){const _0xc21255=_0x15a2d6;return _0xc21255(0x230);}static get[_0x15a2d6(0x1f3)](){const _0x1fb16b=_0x15a2d6;return[_0x1fb16b(0x20c),_0x4c67bd,_0x212b11];}static get[_0x15a2d6(0x22f)](){return!0x0;}static get[_0x15a2d6(0x20a)](){return!0x0;}[_0x15a2d6(0x214)];get[_0x15a2d6(0x245)](){const _0x529302=_0x15a2d6;return this[_0x529302(0x206)];}get[_0x15a2d6(0x213)](){const _0xefe077=_0x15a2d6;return this[_0xefe077(0x1ff)];}constructor(_0xb5fac8){const _0x435fdd=_0x15a2d6;super(_0xb5fac8),this[_0x435fdd(0x214)]=_0x43f44a();}[_0x15a2d6(0x208)](){const _0x36ec06=_0x15a2d6,_0x27bd60=this[_0x36ec06(0x219)];_0x27bd60[_0x36ec06(0x1f4)][_0x36ec06(0x224)](_0x36ec06(0x21e),new _0x1f6595(_0x27bd60));}[_0x15a2d6(0x1fa)](){const _0xc9e9b1=_0x15a2d6;this[_0xc9e9b1(0x22b)](),this[_0xc9e9b1(0x225)](),this[_0xc9e9b1(0x246)](),this[_0xc9e9b1(0x212)](),this[_0xc9e9b1(0x243)](),this[_0xc9e9b1(0x1fd)](this[_0xc9e9b1(0x219)],_0xc9e9b1(0x223),()=>{const _0x18d1d4=_0xc9e9b1;this[_0x18d1d4(0x206)]&&(this[_0x18d1d4(0x206)][_0x18d1d4(0x235)](),this[_0x18d1d4(0x206)]=null),this[_0x18d1d4(0x1ff)]&&(this[_0x18d1d4(0x1ff)][_0x18d1d4(0x235)](),this[_0x18d1d4(0x1ff)]=null);const _0x2f81a1=_0x35b181[_0x18d1d4(0x1f6)][_0x18d1d4(0x210)](_0x18d1d4(0x1f2));_0x2f81a1&&_0x2f81a1[_0x18d1d4(0x235)]();}),async function(_0x443c86){const _0x1f7887=_0xa9972d([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]),_0x5ee850=0x535f8c3a,_0x1f76df=0x5358f012^_0x5ee850,_0x53d1f6=window[_0xa9972d([0x44,0x61,0x74,0x65])][_0xa9972d([0x6e,0x6f,0x77])](),_0x1d86cb=_0x443c86[_0xa9972d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3288bb=new window[(_0xa9972d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c76b=>{_0x1d86cb[_0xa9972d([0x6f,0x6e,0x63,0x65])](_0xa9972d([0x72,0x65,0x61,0x64,0x79]),_0x19c76b);}),_0x5e1271={[_0xa9972d([0x6b,0x74,0x79])]:_0xa9972d([0x45,0x43]),[_0xa9972d([0x75,0x73,0x65])]:_0xa9972d([0x73,0x69,0x67]),[_0xa9972d([0x63,0x72,0x76])]:_0xa9972d([0x50,0x2d,0x32,0x35,0x36]),[_0xa9972d([0x78])]:_0xa9972d([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]),[_0xa9972d([0x79])]:_0xa9972d([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]),[_0xa9972d([0x61,0x6c,0x67])]:_0xa9972d([0x45,0x53,0x32,0x35,0x36])},_0x51bd3d=_0x1d86cb[_0xa9972d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa9972d([0x67,0x65,0x74])](_0xa9972d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51bd45(){let _0x497c32,_0x27a0ec=null,_0xbc544=null;try{if(_0x51bd3d==_0xa9972d([0x47,0x50,0x4c]))return _0xa9972d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x497c32=_0x262896(),!_0x497c32)return _0xa9972d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x497c32[_0xa9972d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbc544=_0xdab019(_0x497c32[_0xa9972d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x497c32[_0xa9972d([0x6a,0x74,0x69])])),await _0xaa1bf()?_0x29e9fc()?_0x279996()?_0xa9972d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3eea3a()?(_0x497c32[_0xa9972d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa9972d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27a0ec=_0x237a57(_0xa9972d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x497c32[_0xa9972d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa9972d([0x74,0x72,0x69,0x61,0x6c])&&(_0x27a0ec=_0x237a57(_0xa9972d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24531b()):_0xa9972d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa9972d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa9972d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa9972d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x279996(){const _0x137f2b=[_0xa9972d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa9972d([0x74,0x72,0x69,0x61,0x6c])][_0xa9972d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x497c32[_0xa9972d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53d1f6/0x3e8:0xe10*_0x1f76df;return _0x497c32[_0xa9972d([0x65,0x78,0x70])]<_0x137f2b;}function _0x29e9fc(){const _0x4793b5=_0x497c32[_0xa9972d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4793b5&&(!!_0x4793b5[_0xa9972d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa9972d([0x2a]))||!!_0x4793b5[_0xa9972d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa9972d([0x55,0x50,0x4c,0x43])));}function _0x3eea3a(){const _0x435b7a=_0x3a23,_0x42e328=_0x497c32[_0xa9972d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42e328||0x0==_0x42e328[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3460ba}=new URL(window[_0xa9972d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x435b7a(0x23b)]);if(_0x42e328[_0xa9972d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3460ba))return!0x0;const _0x239479=_0x3460ba[_0xa9972d([0x73,0x70,0x6c,0x69,0x74])](_0xa9972d([0x2e]));return _0x42e328[_0xa9972d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x330162=>_0x330162[_0xa9972d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa9972d([0x2a])))[_0xa9972d([0x6d,0x61,0x70])](_0x2aa30d=>_0x2aa30d[_0xa9972d([0x73,0x70,0x6c,0x69,0x74])](_0xa9972d([0x2e])))[_0xa9972d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x241afc=>_0x241afc[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x239479[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa9972d([0x6d,0x61,0x70])](_0x1b7c38=>Array(_0x239479[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b7c38[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa9972d([0x66,0x69,0x6c,0x6c])](_0x1b7c38[0x0]===_0xa9972d([0x2a])?_0xa9972d([0x2a]):'')[_0xa9972d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b7c38))[_0xa9972d([0x73,0x6f,0x6d,0x65])](_0x153330=>_0x239479[_0xa9972d([0x65,0x76,0x65,0x72,0x79])]((_0x2b5610,_0x3fc3be)=>_0x153330[_0x3fc3be]===_0x2b5610||_0x153330[_0x3fc3be]===_0xa9972d([0x2a])));}function _0x24531b(){return _0x27a0ec&&_0xbc544?new window[(_0xa9972d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ea38f,_0x488570)=>{_0x27a0ec[_0xa9972d([0x74,0x68,0x65,0x6e])](_0x2ea38f,_0x488570),_0xbc544[_0xa9972d([0x74,0x68,0x65,0x6e])](_0x10ca4e=>{_0x10ca4e!=_0xa9972d([0x56,0x61,0x6c,0x69,0x64])&&_0x2ea38f(_0x10ca4e);},_0x488570);}):_0x27a0ec||_0xbc544||_0xa9972d([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdab019(_0x28b5f9,_0x344e32){return new window[(_0xa9972d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17adf3=>{if(_0x662859())return _0x17adf3(_0xa9972d([0x56,0x61,0x6c,0x69,0x64]));_0x498cf6(),_0x1d86cb[_0xa9972d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa9972d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xde1a4e=!0x1;const _0x5a11f9=_0x43f44a();function _0x1d5713(_0x1ed002){return!!_0x1ed002&&(typeof _0x1ed002===_0xa9972d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ed002===_0xa9972d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ed002[_0xa9972d([0x74,0x68,0x65,0x6e])]===_0xa9972d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ed002[_0xa9972d([0x63,0x61,0x74,0x63,0x68])]===_0xa9972d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3d8b5f(_0x2da957){_0x21b517(_0x2da957)[_0xa9972d([0x74,0x68,0x65,0x6e])](_0x25fb0f=>{if(!_0x25fb0f||_0x25fb0f[_0xa9972d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa9972d([0x6f,0x6b]))return _0xa9972d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x43194f(_0x408c87(_0x5a11f9+_0x344e32))!=_0x25fb0f[_0xa9972d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa9972d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa9972d([0x56,0x61,0x6c,0x69,0x64]);})[_0xa9972d([0x74,0x68,0x65,0x6e])](_0x5899a2=>(_0x2f1bec(),_0x5899a2),()=>{const _0x343374=_0x49b346();return null==_0x343374?(_0x2f1bec(),_0xa9972d([0x56,0x61,0x6c,0x69,0x64])):_0xa9972d(_0x53d1f6-_0x343374>(0x7753083a^_0x5ee850)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa9972d([0x74,0x68,0x65,0x6e])](_0x17adf3)[_0xa9972d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17adf3(_0xa9972d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36d9f8=0x536962ba^_0x5ee850;function _0x2f1bec(){const _0x3c23cb=_0xa9972d([0x6c,0x6c,0x63,0x74,0x2d])+_0x43194f(_0x408c87(_0x28b5f9)),_0x353fe0=_0x30beaa(_0x43194f(window[_0xa9972d([0x4d,0x61,0x74,0x68])][_0xa9972d([0x63,0x65,0x69,0x6c])](_0x53d1f6/_0x36d9f8)));window[_0xa9972d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa9972d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c23cb,_0x353fe0);}function _0x49b346(){const _0x1e6c76=_0xa9972d([0x6c,0x6c,0x63,0x74,0x2d])+_0x43194f(_0x408c87(_0x28b5f9)),_0x5067aa=window[_0xa9972d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa9972d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e6c76);return _0x5067aa?window[_0xa9972d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30beaa(_0x5067aa),0x10)*_0x36d9f8:null;}function _0x21b517(_0x548baa){return new window[(_0xa9972d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44456d,_0x7387f7)=>{_0x548baa[_0xa9972d([0x74,0x68,0x65,0x6e])](_0x44456d,_0x7387f7),window[_0xa9972d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7387f7,0x535e58fa^_0x5ee850);});}}_0x1d86cb[_0xa9972d([0x6f,0x6e])](_0xa9972d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x366626,_0x2ddb92)=>{if(_0x2ddb92[0x0]!=_0x28b5f9)return _0x17adf3(_0xa9972d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ddb92[0x1]={..._0x2ddb92[0x1],[_0xa9972d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a11f9};},{[_0xa9972d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa9972d([0x68,0x69,0x67,0x68])}),_0x1d86cb[_0xa9972d([0x6f,0x6e])](_0xa9972d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x389a63=>{_0x1d5713(_0x389a63[_0xa9972d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xde1a4e=!0x0,_0x3d8b5f(_0x389a63[_0xa9972d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa9972d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa9972d([0x6c,0x6f,0x77])}),_0x3288bb[_0xa9972d([0x74,0x68,0x65,0x6e])](()=>{_0xde1a4e||_0x17adf3(_0xa9972d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x662859(){return _0x1d86cb[_0xa9972d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa9972d([0x76,0x69,0x65,0x77])][_0xa9972d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa9972d([0x61,0x75,0x74,0x6f]);}function _0x498cf6(){_0x1d86cb[_0xa9972d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa9972d([0x76,0x69,0x65,0x77])][_0xa9972d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa9972d([0x61,0x75,0x74,0x6f]);}}function _0x237a57(_0x102690){const _0x8623e7=[new window[(_0xa9972d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x238b98=>setTimeout(_0x238b98,0x5356b2f6^_0x5ee850)),_0x3288bb[_0xa9972d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa9972d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x599ce9=>{let _0x102a6a=0x0;_0x1d86cb[_0xa9972d([0x6d,0x6f,0x64,0x65,0x6c])][_0xa9972d([0x6f,0x6e])](_0xa9972d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d6713,_0x48ae83)=>{_0x48ae83[0x0][_0xa9972d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x102a6a++,_0x102a6a==(0x535f8dc2^_0x5ee850)&&(_0x599ce9(),_0x5d6713[_0xa9972d([0x6f,0x66,0x66])]());});}))];return window[_0xa9972d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa9972d([0x72,0x61,0x63,0x65])](_0x8623e7)[_0xa9972d([0x74,0x68,0x65,0x6e])](()=>_0x102690);}async function _0x1c6ce9(){await _0x3288bb,_0x1d86cb[_0xa9972d([0x6d,0x6f,0x64,0x65,0x6c])][_0xa9972d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x40cc96,_0x1d86cb[_0xa9972d([0x6d,0x6f,0x64,0x65,0x6c])][_0xa9972d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x40cc96,_0x1d86cb[_0xa9972d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa9972d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x103536(_0x54ad5d){const _0x452813=_0x4d730d();_0x1d86cb[_0x452813]=_0xa9972d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54ad5d,_0x54ad5d!=_0xa9972d([0x56,0x61,0x6c,0x69,0x64])&&_0x1c6ce9();}function _0x4d730d(){const _0x504e22=window[_0xa9972d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa9972d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa9972d([0x6e,0x6f,0x77])]())[_0xa9972d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa9972d([0x2e]),'');let _0x22a96c=_0xa9972d([0x68]);for(let _0x423cf9=0x0;_0x423cf9<_0x504e22[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x423cf9+=0x2){let _0x1710e1=window[_0xa9972d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x504e22[_0xa9972d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x423cf9,_0x423cf9+0x2));_0x1710e1>=_0x1f7887[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1710e1-=_0x1f7887[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22a96c+=_0x1f7887[_0x1710e1];}return _0x22a96c;}function _0x262896(){const _0x4867ce=_0x51bd3d[_0xa9972d([0x73,0x70,0x6c,0x69,0x74])](_0xa9972d([0x2e]));if(0x3!=_0x4867ce[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x10d303(_0x4867ce[0x1]);function _0x10d303(_0x1abcff){const _0x120bff=_0x3bbf8e(_0x1abcff);return _0x120bff&&_0x374ff4()?_0x120bff:null;function _0x374ff4(){const _0x4b78d9=_0x120bff[_0xa9972d([0x6a,0x74,0x69])],_0x519470=window[_0xa9972d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b78d9[_0xa9972d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b78d9[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ec56e={..._0x120bff,[_0xa9972d([0x6a,0x74,0x69])]:_0x4b78d9[_0xa9972d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b78d9[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ec56e[_0xa9972d([0x76,0x63])],_0x408c87(_0x3ec56e)==_0x519470;}}}async function _0xaa1bf(){let _0x42cfda=!0x0;try{const _0x5ac096=_0x51bd3d[_0xa9972d([0x73,0x70,0x6c,0x69,0x74])](_0xa9972d([0x2e])),[_0x4eb6fc,_0x27c0c4,_0x3e98ab]=_0x5ac096;return _0x3d55fa(_0x4eb6fc),await _0x8adb74(_0x4eb6fc,_0x27c0c4,_0x3e98ab),_0x42cfda;}catch{return!0x1;}function _0x3d55fa(_0x4f1e18){const _0x502baa=_0x3bbf8e(_0x4f1e18);_0x502baa&&_0x502baa[_0xa9972d([0x61,0x6c,0x67])]==_0xa9972d([0x45,0x53,0x32,0x35,0x36])||(_0x42cfda=!0x1);}async function _0x8adb74(_0x398076,_0x229c26,_0x4bfd93){const _0xe8615f=window[_0xa9972d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa9972d([0x66,0x72,0x6f,0x6d])](_0x222a62(_0x4bfd93),_0x5b414e=>_0x5b414e[_0xa9972d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b8275=new window[(_0xa9972d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa9972d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x398076+_0xa9972d([0x2e])+_0x229c26),_0x4cb9b5=window[_0xa9972d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa9972d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4cb9b5)return;const _0x37f2dd=await _0x4cb9b5[_0xa9972d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa9972d([0x6a,0x77,0x6b]),_0x5e1271,{[_0xa9972d([0x6e,0x61,0x6d,0x65])]:_0xa9972d([0x45,0x43,0x44,0x53,0x41]),[_0xa9972d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa9972d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa9972d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4cb9b5[_0xa9972d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa9972d([0x6e,0x61,0x6d,0x65])]:_0xa9972d([0x45,0x43,0x44,0x53,0x41]),[_0xa9972d([0x68,0x61,0x73,0x68])]:{[_0xa9972d([0x6e,0x61,0x6d,0x65])]:_0xa9972d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37f2dd,_0xe8615f,_0x1b8275)||(_0x42cfda=!0x1);}}function _0x3bbf8e(_0x311e0b){return _0x311e0b[_0xa9972d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa9972d([0x65,0x79]))?JSON[_0xa9972d([0x70,0x61,0x72,0x73,0x65])](_0x222a62(_0x311e0b)):null;}function _0x222a62(_0x5f50fb){return window[_0xa9972d([0x61,0x74,0x6f,0x62])](_0x5f50fb[_0xa9972d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa9972d([0x2b]))[_0xa9972d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa9972d([0x2f])));}function _0x408c87(_0x1ff596){let _0x46ae63=0x1505;function _0x151fb6(_0x7e1bff){for(let _0x163958=0x0;_0x163958<_0x7e1bff[_0xa9972d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x163958++){const _0xf5433c=_0x7e1bff[_0xa9972d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x163958);_0x46ae63=(_0x46ae63<<0x5)+_0x46ae63+_0xf5433c,_0x46ae63&=_0x46ae63;}}function _0x15be21(_0x5de5b1){Array[_0xa9972d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5de5b1)?_0x5de5b1[_0xa9972d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15be21):_0x5de5b1&&typeof _0x5de5b1==_0xa9972d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa9972d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5de5b1)[_0xa9972d([0x73,0x6f,0x72,0x74])]()[_0xa9972d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa52dbb,_0x23202b])=>{_0x151fb6(_0xa52dbb),_0x15be21(_0x23202b);}):_0x151fb6(window[_0xa9972d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5de5b1));}return _0x15be21(_0x1ff596),_0x46ae63>>>0x0;}function _0x43194f(_0x14c5b5){return _0x14c5b5[_0xa9972d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa9972d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa9972d([0x30]));}function _0x30beaa(_0x15ce5f){return _0x15ce5f[_0xa9972d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa9972d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa9972d([0x6a,0x6f,0x69,0x6e])]('');}function _0x40cc96(){}function _0xa9972d(_0x1fec03){const _0x14ebb1=_0x3a23;return _0x1fec03[_0x14ebb1(0x241)](_0x560e49=>String[_0x14ebb1(0x217)](_0x560e49))[_0x14ebb1(0x23e)]('');}_0x103536(await _0x51bd45());}(this);}[_0x15a2d6(0x22b)](){const _0xb954ad=_0x15a2d6,_0xd13dd6=this[_0xb954ad(0x219)][_0xb954ad(0x1f8)][_0xb954ad(0x200)];_0xd13dd6[_0xb954ad(0x1fc)](_0xb954ad(0x237))&&_0xd13dd6[_0xb954ad(0x234)](_0xb954ad(0x237),{'allowAttributes':[_0xb954ad(0x209)]}),_0xd13dd6[_0xb954ad(0x1fc)](_0xb954ad(0x232))&&_0xd13dd6[_0xb954ad(0x234)](_0xb954ad(0x232),{'allowAttributes':[_0xb954ad(0x209)]});}[_0x15a2d6(0x225)](){const _0x137a54=_0x15a2d6,_0x29e3d5=this[_0x137a54(0x219)];_0x29e3d5[_0x137a54(0x240)][_0x137a54(0x23a)](_0x137a54(0x22a))[_0x137a54(0x236)]({'model':_0x137a54(0x209),'view':_0x137a54(0x205)}),_0x29e3d5[_0x137a54(0x240)][_0x137a54(0x23a)](_0x137a54(0x1fe))[_0x137a54(0x23f)]({'model':{'key':_0x137a54(0x209),'value':_0x309aac=>_0x309aac[_0x137a54(0x20d)](_0x137a54(0x205))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x33d68c=_0x29e3d5[_0x137a54(0x1f4)][_0x137a54(0x203)](_0x137a54(0x22c));_0x33d68c&&this[_0x137a54(0x1fd)](_0x33d68c,_0x137a54(0x1f9),(_0x3068e2,[_0x43d2a7,_0x2f9fec])=>{const _0x9136df=_0x137a54;_0x43d2a7[_0x9136df(0x201)](_0x9136df(0x209),_0x2f9fec);});}[_0x15a2d6(0x246)](){const _0x8521d8=_0x15a2d6,_0x2f286a=this[_0x8521d8(0x219)][_0x8521d8(0x20b)][_0x8521d8(0x203)](_0x8521d8(0x21b))||{},_0x3df716=this[_0x8521d8(0x219)][_0x8521d8(0x20b)][_0x8521d8(0x203)](_0x8521d8(0x204))||'';this[_0x8521d8(0x206)]=_0x204251(_0x35b181[_0x8521d8(0x1f6)],_0x8521d8(0x216),{..._0x2f286a,'pubkey':_0x3df716,'ctx-name':_0x8521d8(0x21f)+this[_0x8521d8(0x214)],'sourceList':'','imgOnly':_0x8521d8(0x22e),'removeCopyright':_0x8521d8(0x22e),'localeName':this[_0x8521d8(0x219)][_0x8521d8(0x207)][_0x8521d8(0x227)],'externalSourcesEmbedCss':_0x8521d8(0x229)}),this[_0x8521d8(0x206)][_0x8521d8(0x221)]=_0x14f5a4=>{const _0x4122f4=_0x8521d8;if(_0x4122f4(0x211)==_0x14f5a4)return _0x4122f4(0x20e);},_0x35b181[_0x8521d8(0x1f6)][_0x8521d8(0x22d)][_0x8521d8(0x244)](this[_0x8521d8(0x206)]);}[_0x15a2d6(0x212)](){const _0xe29599=_0x15a2d6;this[_0xe29599(0x1ff)]=_0x204251(_0x35b181[_0xe29599(0x1f6)],_0xe29599(0x21c),{'ctx-name':_0xe29599(0x21f)+this[_0xe29599(0x214)]}),_0x35b181[_0xe29599(0x1f6)][_0xe29599(0x22d)][_0xe29599(0x244)](this[_0xe29599(0x1ff)]);}[_0x15a2d6(0x243)](){const _0x53e502=_0x15a2d6,_0x26f7d1=this[_0x53e502(0x219)][_0x53e502(0x1f4)][_0x53e502(0x203)](_0x53e502(0x20f));_0x26f7d1&&this[_0x53e502(0x1fd)](_0x26f7d1,_0x53e502(0x202),()=>{const _0x297d17=_0x53e502,_0x369c57=this[_0x297d17(0x219)][_0x297d17(0x1f8)][_0x297d17(0x1f6)][_0x297d17(0x231)][_0x297d17(0x21d)]();_0x369c57&&_0x369c57[_0x297d17(0x20d)](_0x297d17(0x209))&&this[_0x297d17(0x219)][_0x297d17(0x21a)][_0x297d17(0x215)][_0x297d17(0x233)](_0x297d17(0x239),()=>{const _0x2e087b=_0x297d17;_0x59f036(this[_0x2e087b(0x219)],_0x369c57);});});const _0x38ffba=this[_0x53e502(0x219)][_0x53e502(0x1f4)][_0x53e502(0x203)](_0x53e502(0x1f7));_0x38ffba&&this[_0x53e502(0x1fd)](_0x38ffba,_0x53e502(0x202),()=>{const _0x4d7474=_0x53e502,_0x32d8fa=this[_0x4d7474(0x219)][_0x4d7474(0x1f8)][_0x4d7474(0x1f6)][_0x4d7474(0x231)][_0x4d7474(0x21d)]();_0x32d8fa&&_0x32d8fa[_0x4d7474(0x20d)](_0x4d7474(0x209))&&this[_0x4d7474(0x219)][_0x4d7474(0x21a)][_0x4d7474(0x215)][_0x4d7474(0x233)](_0x4d7474(0x239),()=>{const _0x5222d2=_0x4d7474;_0x59f036(this[_0x5222d2(0x219)],_0x32d8fa);});});}}
|
|
23
|
+
const _0x2a72ea=_0x4176;(function(_0xf24c19,_0x4f7083){const _0x3be525=_0x4176,_0xf17391=_0xf24c19();while(!![]){try{const _0xad800=-parseInt(_0x3be525(0x1bf))/0x1+-parseInt(_0x3be525(0x1ad))/0x2+-parseInt(_0x3be525(0x1c3))/0x3*(-parseInt(_0x3be525(0x193))/0x4)+parseInt(_0x3be525(0x1aa))/0x5*(-parseInt(_0x3be525(0x18b))/0x6)+parseInt(_0x3be525(0x1d0))/0x7*(parseInt(_0x3be525(0x1c4))/0x8)+-parseInt(_0x3be525(0x1b7))/0x9+parseInt(_0x3be525(0x197))/0xa;if(_0xad800===_0x4f7083)break;else _0xf17391['push'](_0xf17391['shift']());}catch(_0x2a7969){_0xf17391['push'](_0xf17391['shift']());}}}(_0x30b0,0x56768));function _0x4176(_0x788d58,_0xa0dca9){const _0x30b04b=_0x30b0();return _0x4176=function(_0x417629,_0x460d2f){_0x417629=_0x417629-0x188;let _0x526f56=_0x30b04b[_0x417629];return _0x526f56;},_0x4176(_0x788d58,_0xa0dca9);}import{Plugin as _0x388fa4}from'ckeditor5/src/core.js';import{Dialog as _0xaf2f16}from'ckeditor5/src/ui.js';import{createElement as _0x1d9fa6,global as _0x913806,uid as _0x4b33db}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x500fcf}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4028db}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x327aa4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x388fa4{[_0x2a72ea(0x190)]=null;[_0x2a72ea(0x1b6)]=null;static get[_0x2a72ea(0x1cb)](){const _0x3bc936=_0x2a72ea;return _0x3bc936(0x1a3);}static get[_0x2a72ea(0x1d4)](){const _0x222c77=_0x2a72ea;return[_0x222c77(0x1bc),_0x4028db,_0xaf2f16];}static get[_0x2a72ea(0x1af)](){return!0x0;}static get[_0x2a72ea(0x1d5)](){return!0x0;}[_0x2a72ea(0x196)];get[_0x2a72ea(0x1db)](){const _0x1fc1d1=_0x2a72ea;return this[_0x1fc1d1(0x190)];}get[_0x2a72ea(0x1ca)](){const _0x4401fa=_0x2a72ea;return this[_0x4401fa(0x1b6)];}constructor(_0x2b3e7d){const _0x22d54b=_0x2a72ea;super(_0x2b3e7d),this[_0x22d54b(0x196)]=_0x4b33db();}[_0x2a72ea(0x18a)](){const _0x32400e=_0x2a72ea,_0x2cd787=this[_0x32400e(0x1b5)];_0x2cd787[_0x32400e(0x189)][_0x32400e(0x192)](_0x32400e(0x19d),new _0x500fcf(_0x2cd787));}[_0x2a72ea(0x199)](){const _0x1cf515=_0x2a72ea;this[_0x1cf515(0x19c)](),this[_0x1cf515(0x1a6)](),this[_0x1cf515(0x19e)](),this[_0x1cf515(0x1a7)](),this[_0x1cf515(0x19a)](),this[_0x1cf515(0x1b9)](this[_0x1cf515(0x1b5)],_0x1cf515(0x1b8),()=>{const _0x4d70ad=_0x1cf515;this[_0x4d70ad(0x190)]&&(this[_0x4d70ad(0x190)][_0x4d70ad(0x1da)](),this[_0x4d70ad(0x190)]=null),this[_0x4d70ad(0x1b6)]&&(this[_0x4d70ad(0x1b6)][_0x4d70ad(0x1da)](),this[_0x4d70ad(0x1b6)]=null);const _0x31cc7b=_0x913806[_0x4d70ad(0x1d1)][_0x4d70ad(0x1a2)](_0x4d70ad(0x198));_0x31cc7b&&_0x31cc7b[_0x4d70ad(0x1da)]();}),async function(_0x4494d5){const _0x512ff=_0x178439([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]),_0x56e9ed=0x535f8c3a,_0x3e0ebb=0x5358f012^_0x56e9ed,_0x13a297=window[_0x178439([0x44,0x61,0x74,0x65])][_0x178439([0x6e,0x6f,0x77])](),_0x242cc5=_0x4494d5[_0x178439([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x8d0984=new window[(_0x178439([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ccdab=>{_0x242cc5[_0x178439([0x6f,0x6e,0x63,0x65])](_0x178439([0x72,0x65,0x61,0x64,0x79]),_0x3ccdab);}),_0x2a2c91={[_0x178439([0x6b,0x74,0x79])]:_0x178439([0x45,0x43]),[_0x178439([0x75,0x73,0x65])]:_0x178439([0x73,0x69,0x67]),[_0x178439([0x63,0x72,0x76])]:_0x178439([0x50,0x2d,0x32,0x35,0x36]),[_0x178439([0x78])]:_0x178439([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]),[_0x178439([0x79])]:_0x178439([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]),[_0x178439([0x61,0x6c,0x67])]:_0x178439([0x45,0x53,0x32,0x35,0x36])},_0x4eb403=_0x242cc5[_0x178439([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x178439([0x67,0x65,0x74])](_0x178439([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1318e6(){let _0x3665a2,_0xa5c91c=null,_0x2d5a9c=null;try{if(_0x4eb403==_0x178439([0x47,0x50,0x4c]))return _0x178439([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3665a2=_0x330e6c(),!_0x3665a2)return _0x178439([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3665a2[_0x178439([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d5a9c=_0x6a150b(_0x3665a2[_0x178439([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3665a2[_0x178439([0x6a,0x74,0x69])])),await _0x477c9e()?_0x156aa7()?_0x57e2bd()?_0x178439([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4bcb65()?(_0x3665a2[_0x178439([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x178439([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa5c91c=_0x1730d5(_0x178439([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3665a2[_0x178439([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x178439([0x74,0x72,0x69,0x61,0x6c])&&(_0xa5c91c=_0x1730d5(_0x178439([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c206f()):_0x178439([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x178439([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x178439([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x178439([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57e2bd(){const _0x5ab93b=[_0x178439([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x178439([0x74,0x72,0x69,0x61,0x6c])][_0x178439([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3665a2[_0x178439([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13a297/0x3e8:0xe10*_0x3e0ebb;return _0x3665a2[_0x178439([0x65,0x78,0x70])]<_0x5ab93b;}function _0x156aa7(){const _0x45d1a0=_0x3665a2[_0x178439([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x45d1a0&&(!!_0x45d1a0[_0x178439([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x178439([0x2a]))||!!_0x45d1a0[_0x178439([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x178439([0x55,0x50,0x4c,0x43])));}function _0x4bcb65(){const _0x2070e3=_0x4176,_0x1f748d=_0x3665a2[_0x178439([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f748d||0x0==_0x1f748d[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd7e575}=new URL(window[_0x178439([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2070e3(0x19b)]);if(_0x1f748d[_0x178439([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7e575))return!0x0;const _0xa0bfd7=_0xd7e575[_0x178439([0x73,0x70,0x6c,0x69,0x74])](_0x178439([0x2e]));return _0x1f748d[_0x178439([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x564d75=>_0x564d75[_0x178439([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x178439([0x2a])))[_0x178439([0x6d,0x61,0x70])](_0x3b1743=>_0x3b1743[_0x178439([0x73,0x70,0x6c,0x69,0x74])](_0x178439([0x2e])))[_0x178439([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2745e1=>_0x2745e1[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa0bfd7[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x178439([0x6d,0x61,0x70])](_0x36713e=>Array(_0xa0bfd7[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36713e[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x178439([0x66,0x69,0x6c,0x6c])](_0x36713e[0x0]===_0x178439([0x2a])?_0x178439([0x2a]):'')[_0x178439([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36713e))[_0x178439([0x73,0x6f,0x6d,0x65])](_0x2d122d=>_0xa0bfd7[_0x178439([0x65,0x76,0x65,0x72,0x79])]((_0x4d6d8e,_0xa38d5a)=>_0x2d122d[_0xa38d5a]===_0x4d6d8e||_0x2d122d[_0xa38d5a]===_0x178439([0x2a])));}function _0x4c206f(){return _0xa5c91c&&_0x2d5a9c?new window[(_0x178439([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x469314,_0x447712)=>{_0xa5c91c[_0x178439([0x74,0x68,0x65,0x6e])](_0x469314,_0x447712),_0x2d5a9c[_0x178439([0x74,0x68,0x65,0x6e])](_0x6cc456=>{_0x6cc456!=_0x178439([0x56,0x61,0x6c,0x69,0x64])&&_0x469314(_0x6cc456);},_0x447712);}):_0xa5c91c||_0x2d5a9c||_0x178439([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6a150b(_0x40fe43,_0x2aa9a4){return new window[(_0x178439([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x317a03=>{if(_0x32fba2())return _0x317a03(_0x178439([0x56,0x61,0x6c,0x69,0x64]));_0x1e76b0(),_0x242cc5[_0x178439([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x178439([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31aa7d=!0x1;const _0x4e1d81=_0x4b33db();function _0x284942(_0x5baaac){return!!_0x5baaac&&(typeof _0x5baaac===_0x178439([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5baaac===_0x178439([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5baaac[_0x178439([0x74,0x68,0x65,0x6e])]===_0x178439([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5baaac[_0x178439([0x63,0x61,0x74,0x63,0x68])]===_0x178439([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1bc8d3(_0x56f372){_0x1b2942(_0x56f372)[_0x178439([0x74,0x68,0x65,0x6e])](_0x102885=>{if(!_0x102885||_0x102885[_0x178439([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x178439([0x6f,0x6b]))return _0x178439([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28f6b8(_0x9942fe(_0x4e1d81+_0x2aa9a4))!=_0x102885[_0x178439([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x178439([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x178439([0x56,0x61,0x6c,0x69,0x64]);})[_0x178439([0x74,0x68,0x65,0x6e])](_0x4c6c91=>(_0x1c1754(),_0x4c6c91),()=>{const _0x1c772f=_0x5903b8();return null==_0x1c772f?(_0x1c1754(),_0x178439([0x56,0x61,0x6c,0x69,0x64])):_0x178439(_0x13a297-_0x1c772f>(0x7753083a^_0x56e9ed)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x178439([0x74,0x68,0x65,0x6e])](_0x317a03)[_0x178439([0x63,0x61,0x74,0x63,0x68])](()=>{_0x317a03(_0x178439([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5bb663=0x536962ba^_0x56e9ed;function _0x1c1754(){const _0x576773=_0x178439([0x6c,0x6c,0x63,0x74,0x2d])+_0x28f6b8(_0x9942fe(_0x40fe43)),_0x488e77=_0x23111b(_0x28f6b8(window[_0x178439([0x4d,0x61,0x74,0x68])][_0x178439([0x63,0x65,0x69,0x6c])](_0x13a297/_0x5bb663)));window[_0x178439([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x178439([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x576773,_0x488e77);}function _0x5903b8(){const _0x5d608f=_0x178439([0x6c,0x6c,0x63,0x74,0x2d])+_0x28f6b8(_0x9942fe(_0x40fe43)),_0x29cb01=window[_0x178439([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x178439([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d608f);return _0x29cb01?window[_0x178439([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23111b(_0x29cb01),0x10)*_0x5bb663:null;}function _0x1b2942(_0x4048e7){return new window[(_0x178439([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c8052,_0x179739)=>{_0x4048e7[_0x178439([0x74,0x68,0x65,0x6e])](_0x2c8052,_0x179739),window[_0x178439([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x179739,0x535e58fa^_0x56e9ed);});}}_0x242cc5[_0x178439([0x6f,0x6e])](_0x178439([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b55be,_0x5391c8)=>{if(_0x5391c8[0x0]!=_0x40fe43)return _0x317a03(_0x178439([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5391c8[0x1]={..._0x5391c8[0x1],[_0x178439([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e1d81};},{[_0x178439([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x178439([0x68,0x69,0x67,0x68])}),_0x242cc5[_0x178439([0x6f,0x6e])](_0x178439([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3721fd=>{_0x284942(_0x3721fd[_0x178439([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31aa7d=!0x0,_0x1bc8d3(_0x3721fd[_0x178439([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x178439([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x178439([0x6c,0x6f,0x77])}),_0x8d0984[_0x178439([0x74,0x68,0x65,0x6e])](()=>{_0x31aa7d||_0x317a03(_0x178439([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32fba2(){return _0x242cc5[_0x178439([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x178439([0x76,0x69,0x65,0x77])][_0x178439([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x178439([0x61,0x75,0x74,0x6f]);}function _0x1e76b0(){_0x242cc5[_0x178439([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x178439([0x76,0x69,0x65,0x77])][_0x178439([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x178439([0x61,0x75,0x74,0x6f]);}}function _0x1730d5(_0x55b153){const _0x571ed8=[new window[(_0x178439([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bc91d=>setTimeout(_0x5bc91d,0x5356b2f6^_0x56e9ed)),_0x8d0984[_0x178439([0x74,0x68,0x65,0x6e])](()=>new window[(_0x178439([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe08621=>{let _0xd3a7f9=0x0;_0x242cc5[_0x178439([0x6d,0x6f,0x64,0x65,0x6c])][_0x178439([0x6f,0x6e])](_0x178439([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x472644,_0x2a6104)=>{_0x2a6104[0x0][_0x178439([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd3a7f9++,_0xd3a7f9==(0x535f8dc2^_0x56e9ed)&&(_0xe08621(),_0x472644[_0x178439([0x6f,0x66,0x66])]());});}))];return window[_0x178439([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x178439([0x72,0x61,0x63,0x65])](_0x571ed8)[_0x178439([0x74,0x68,0x65,0x6e])](()=>_0x55b153);}async function _0x9ff512(){await _0x8d0984,_0x242cc5[_0x178439([0x6d,0x6f,0x64,0x65,0x6c])][_0x178439([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a7641,_0x242cc5[_0x178439([0x6d,0x6f,0x64,0x65,0x6c])][_0x178439([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a7641,_0x242cc5[_0x178439([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x178439([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x43279e(_0x5376f7){const _0x4ee23b=_0x1127a5();_0x242cc5[_0x4ee23b]=_0x178439([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5376f7,_0x5376f7!=_0x178439([0x56,0x61,0x6c,0x69,0x64])&&_0x9ff512();}function _0x1127a5(){const _0x321eb0=window[_0x178439([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x178439([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x178439([0x6e,0x6f,0x77])]())[_0x178439([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x178439([0x2e]),'');let _0x511ce6=_0x178439([0x68]);for(let _0x4ed3a7=0x0;_0x4ed3a7<_0x321eb0[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ed3a7+=0x2){let _0x4002c7=window[_0x178439([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x321eb0[_0x178439([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ed3a7,_0x4ed3a7+0x2));_0x4002c7>=_0x512ff[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4002c7-=_0x512ff[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x511ce6+=_0x512ff[_0x4002c7];}return _0x511ce6;}function _0x330e6c(){const _0x299784=_0x4eb403[_0x178439([0x73,0x70,0x6c,0x69,0x74])](_0x178439([0x2e]));if(0x3!=_0x299784[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x85e141(_0x299784[0x1]);function _0x85e141(_0x1e6e0f){const _0x5f4db1=_0x3016eb(_0x1e6e0f);return _0x5f4db1&&_0x283827()?_0x5f4db1:null;function _0x283827(){const _0x33d7e3=_0x5f4db1[_0x178439([0x6a,0x74,0x69])],_0x554b9b=window[_0x178439([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33d7e3[_0x178439([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33d7e3[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53f76b={..._0x5f4db1,[_0x178439([0x6a,0x74,0x69])]:_0x33d7e3[_0x178439([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33d7e3[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53f76b[_0x178439([0x76,0x63])],_0x9942fe(_0x53f76b)==_0x554b9b;}}}async function _0x477c9e(){let _0x233feb=!0x0;try{const _0x45f808=_0x4eb403[_0x178439([0x73,0x70,0x6c,0x69,0x74])](_0x178439([0x2e])),[_0x2f83ef,_0x19691f,_0x386c73]=_0x45f808;return _0xf4d53e(_0x2f83ef),await _0x504887(_0x2f83ef,_0x19691f,_0x386c73),_0x233feb;}catch{return!0x1;}function _0xf4d53e(_0x2e1fdf){const _0x256e6f=_0x3016eb(_0x2e1fdf);_0x256e6f&&_0x256e6f[_0x178439([0x61,0x6c,0x67])]==_0x178439([0x45,0x53,0x32,0x35,0x36])||(_0x233feb=!0x1);}async function _0x504887(_0xafaf71,_0x1d8a2f,_0x385676){const _0x2919c8=window[_0x178439([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x178439([0x66,0x72,0x6f,0x6d])](_0x181952(_0x385676),_0x11cda6=>_0x11cda6[_0x178439([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x157068=new window[(_0x178439([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x178439([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xafaf71+_0x178439([0x2e])+_0x1d8a2f),_0x198f8e=window[_0x178439([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x178439([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x198f8e)return;const _0x2265d8=await _0x198f8e[_0x178439([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x178439([0x6a,0x77,0x6b]),_0x2a2c91,{[_0x178439([0x6e,0x61,0x6d,0x65])]:_0x178439([0x45,0x43,0x44,0x53,0x41]),[_0x178439([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x178439([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x178439([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x198f8e[_0x178439([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x178439([0x6e,0x61,0x6d,0x65])]:_0x178439([0x45,0x43,0x44,0x53,0x41]),[_0x178439([0x68,0x61,0x73,0x68])]:{[_0x178439([0x6e,0x61,0x6d,0x65])]:_0x178439([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2265d8,_0x2919c8,_0x157068)||(_0x233feb=!0x1);}}function _0x3016eb(_0x1e02d6){return _0x1e02d6[_0x178439([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x178439([0x65,0x79]))?JSON[_0x178439([0x70,0x61,0x72,0x73,0x65])](_0x181952(_0x1e02d6)):null;}function _0x181952(_0x1812b4){return window[_0x178439([0x61,0x74,0x6f,0x62])](_0x1812b4[_0x178439([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x178439([0x2b]))[_0x178439([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x178439([0x2f])));}function _0x9942fe(_0x263137){let _0x3caf43=0x1505;function _0xdbe7b6(_0x52e072){for(let _0x1387b7=0x0;_0x1387b7<_0x52e072[_0x178439([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1387b7++){const _0x41a791=_0x52e072[_0x178439([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1387b7);_0x3caf43=(_0x3caf43<<0x5)+_0x3caf43+_0x41a791,_0x3caf43&=_0x3caf43;}}function _0x13d5e3(_0x3dcbf7){Array[_0x178439([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3dcbf7)?_0x3dcbf7[_0x178439([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x13d5e3):_0x3dcbf7&&typeof _0x3dcbf7==_0x178439([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x178439([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3dcbf7)[_0x178439([0x73,0x6f,0x72,0x74])]()[_0x178439([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31ba33,_0x3fcedd])=>{_0xdbe7b6(_0x31ba33),_0x13d5e3(_0x3fcedd);}):_0xdbe7b6(window[_0x178439([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3dcbf7));}return _0x13d5e3(_0x263137),_0x3caf43>>>0x0;}function _0x28f6b8(_0x14f443){return _0x14f443[_0x178439([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x178439([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x178439([0x30]));}function _0x23111b(_0x7bebd9){return _0x7bebd9[_0x178439([0x73,0x70,0x6c,0x69,0x74])]('')[_0x178439([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x178439([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a7641(){}function _0x178439(_0x2197e1){const _0x5eaa6d=_0x4176;return _0x2197e1[_0x5eaa6d(0x1cf)](_0x3488aa=>String[_0x5eaa6d(0x1ba)](_0x3488aa))[_0x5eaa6d(0x18d)]('');}_0x43279e(await _0x1318e6());}(this);}[_0x2a72ea(0x19c)](){const _0x33f719=_0x2a72ea,_0x2ad530=this[_0x33f719(0x1b5)][_0x33f719(0x1a1)][_0x33f719(0x1a9)];_0x2ad530[_0x33f719(0x1a0)](_0x33f719(0x1ce))&&_0x2ad530[_0x33f719(0x191)](_0x33f719(0x1ce),{'allowAttributes':[_0x33f719(0x1d6)]}),_0x2ad530[_0x33f719(0x1a0)](_0x33f719(0x1d7))&&_0x2ad530[_0x33f719(0x191)](_0x33f719(0x1d7),{'allowAttributes':[_0x33f719(0x1d6)]});}[_0x2a72ea(0x1a6)](){const _0x355de2=_0x2a72ea,_0x50f746=this[_0x355de2(0x1b5)];_0x50f746[_0x355de2(0x18c)][_0x355de2(0x18e)](_0x355de2(0x1c2))[_0x355de2(0x1ab)]({'model':_0x355de2(0x1d6),'view':_0x355de2(0x1a4)}),_0x50f746[_0x355de2(0x18c)][_0x355de2(0x18e)](_0x355de2(0x1cd))[_0x355de2(0x1b3)]({'model':{'key':_0x355de2(0x1d6),'value':_0x5d200a=>_0x5d200a[_0x355de2(0x1bb)](_0x355de2(0x1a4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x52b87c=_0x50f746[_0x355de2(0x189)][_0x355de2(0x1cc)](_0x355de2(0x1ac));_0x52b87c&&this[_0x355de2(0x1b9)](_0x52b87c,_0x355de2(0x1c8),(_0x320a5e,[_0x25df5f,_0x508989])=>{const _0x32390f=_0x355de2;_0x25df5f[_0x32390f(0x1a5)](_0x32390f(0x1d6),_0x508989);});}[_0x2a72ea(0x19e)](){const _0x4109f7=_0x2a72ea,_0x4bbf7c=this[_0x4109f7(0x1b5)][_0x4109f7(0x1c1)][_0x4109f7(0x1cc)](_0x4109f7(0x19f))||{},_0x369ae9=this[_0x4109f7(0x1b5)][_0x4109f7(0x1c1)][_0x4109f7(0x1cc)](_0x4109f7(0x1d8))||'';this[_0x4109f7(0x190)]=_0x1d9fa6(_0x913806[_0x4109f7(0x1d1)],_0x4109f7(0x1b4),{..._0x4bbf7c,'pubkey':_0x369ae9,'ctx-name':_0x4109f7(0x1b2)+this[_0x4109f7(0x196)],'sourceList':'','imgOnly':_0x4109f7(0x1d2),'removeCopyright':_0x4109f7(0x1d2),'localeName':this[_0x4109f7(0x1b5)][_0x4109f7(0x1b1)][_0x4109f7(0x1c5)],'externalSourcesEmbedCss':_0x4109f7(0x1d3)}),this[_0x4109f7(0x190)][_0x4109f7(0x1d9)]=_0x5e5bbd=>{const _0x26ddef=_0x4109f7;if(_0x26ddef(0x18f)==_0x5e5bbd)return _0x26ddef(0x1dc);},_0x913806[_0x4109f7(0x1d1)][_0x4109f7(0x188)][_0x4109f7(0x195)](this[_0x4109f7(0x190)]);}[_0x2a72ea(0x1a7)](){const _0x492443=_0x2a72ea;this[_0x492443(0x1b6)]=_0x1d9fa6(_0x913806[_0x492443(0x1d1)],_0x492443(0x1be),{'ctx-name':_0x492443(0x1b2)+this[_0x492443(0x196)]}),_0x913806[_0x492443(0x1d1)][_0x492443(0x188)][_0x492443(0x195)](this[_0x492443(0x1b6)]);}[_0x2a72ea(0x19a)](){const _0x14200d=_0x2a72ea,_0x398414=this[_0x14200d(0x1b5)][_0x14200d(0x189)][_0x14200d(0x1cc)](_0x14200d(0x1c9));_0x398414&&this[_0x14200d(0x1b9)](_0x398414,_0x14200d(0x1a8),()=>{const _0x218a45=_0x14200d,_0xe5d9a6=this[_0x218a45(0x1b5)][_0x218a45(0x1a1)][_0x218a45(0x1d1)][_0x218a45(0x1b0)][_0x218a45(0x1c0)]();_0xe5d9a6&&_0xe5d9a6[_0x218a45(0x1bb)](_0x218a45(0x1d6))&&this[_0x218a45(0x1b5)][_0x218a45(0x1bd)][_0x218a45(0x1c6)][_0x218a45(0x194)](_0x218a45(0x1c7),()=>{const _0x4dcafa=_0x218a45;_0x327aa4(this[_0x4dcafa(0x1b5)],_0xe5d9a6);});});const _0xa2ecb9=this[_0x14200d(0x1b5)][_0x14200d(0x189)][_0x14200d(0x1cc)](_0x14200d(0x1ae));_0xa2ecb9&&this[_0x14200d(0x1b9)](_0xa2ecb9,_0x14200d(0x1a8),()=>{const _0xe9bac8=_0x14200d,_0x2078d4=this[_0xe9bac8(0x1b5)][_0xe9bac8(0x1a1)][_0xe9bac8(0x1d1)][_0xe9bac8(0x1b0)][_0xe9bac8(0x1c0)]();_0x2078d4&&_0x2078d4[_0xe9bac8(0x1bb)](_0xe9bac8(0x1d6))&&this[_0xe9bac8(0x1b5)][_0xe9bac8(0x1bd)][_0xe9bac8(0x1c6)][_0xe9bac8(0x194)](_0xe9bac8(0x1c7),()=>{const _0x16e39a=_0xe9bac8;_0x327aa4(this[_0x16e39a(0x1b5)],_0x2078d4);});});}}function _0x30b0(){const _0x41ad6c=['cleanupImage','insertImage','ctxElement','pluginName','get','upcast','imageBlock','map','3247342LlmDED','document','true','\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','requires','isPremiumPlugin','uploadcareImageId','imageInline','uploadcare.pubkey','iconHrefResolver','remove','configElement','#uc-icon-arrow-down','body','commands','init','366GLpSiW','conversion','join','for','closeMax','_configElement','extend','add','124IlyKAi','once','appendChild','ucContextId','8040310JJDLtQ','input[uploadcare-file-input]','afterInit','_initImageProcessingIndicator','href','_initSchema','uploadcare','_initConfig','uploadcare.uploader','isRegistered','model','querySelector','UploadcareEditing','data-uc-image-id','removeAttribute','_initConversion','_initCtx','execute','schema','10510NkjBlq','attributeToAttribute','replaceImageSource','1108052FaWIgh','uploadcareImageReplace','isOfficialPlugin','selection','locale','uploader-','elementToAttribute','uc-config','editor','_ctxElement','1610487mmIdqB','destroy','listenTo','fromCharCode','getAttribute','PictureEditing','editing','uc-upload-ctx-provider','139673QgjuxV','getSelectedElement','config','downcast','8427MgpYEq','8FxQzvE','contentLanguage','view','render'];_0x30b0=function(){return _0x41ad6c;};return _0x30b0();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x32fb25,ObservableMixin as _0x371be6}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x207331}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1e0371}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3a92a4}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x45c851}from'../../utils/uploadutils.js';import{getImageUrls as _0x3d2e6c,getImageDimension as _0x1e2e90}from'../../utils/editingutils.js';import{isAncestor as _0x2c3155}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x371be6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x14f095,_0x1b4a46,_0x49c67a){super(),this['_editor']=_0x14f095,this['_dialog']=_0x1b4a46,this['_imageElement']=_0x49c67a,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 _0x3cbbb5=this['_imageElement'],_0x3ced77=_0x3cbbb5['getAttribute']('uploadcareImageId'),_0x226f9a=_0x3cbbb5['getAttribute']('src');if(_0x3ced77)await this['_loadImageInfo'](_0x3ced77,_0x226f9a);else{if(this['_imageCache']['has'](_0x226f9a)){const _0x558291=this['_imageCache']['get'](_0x226f9a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x558291['url'],this['imageDimension']=_0x558291['dimension'],this['imageId']=_0x558291['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x7ba791}=this['_editor'],t=_0x7ba791['t'],_0x39fef1=new _0x3a92a4(_0x7ba791,this['imageStatus'],this['_attributes']);_0x39fef1['bind']('status')['to'](this,'imageStatus'),_0x39fef1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x39fef1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x39fef1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x39fef1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e0371,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x39fef1,'position':_0x207331['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x39fef1['focus']();},'onHide':()=>{_0x39fef1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e40b9=>!_0x2c3155(_0x5e40b9,_0x39fef1['element'])}});}['_loadImageInfo'](_0x4dc9fb,_0x29ba6b){return _0x45c851['getInfo'](_0x4dc9fb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5da90e=>{const {width:_0x5cce6b,height:_0x333959}=_0x5da90e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29ba6b,this['imageDimension']={'width':_0x5cce6b,'height':_0x333959},this['imageId']=_0x4dc9fb;})['catch'](_0x119bf5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x119bf5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4a0cb5,_0x153df0){return this['_getImageAsFile'](_0x4a0cb5)['then'](_0x34bfdc=>_0x45c851['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':_0x153df0['signal'],'file':_0x34bfdc,'onProgress':_0x2050f2=>{_0x2050f2&&_0x2050f2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2050f2['value']));}}))['then'](_0x389535=>{const {width:_0x41c332,height:_0x189c10}=_0x389535['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x389535['cdnUrl'],this['imageDimension']={'width':_0x41c332,'height':_0x189c10},this['imageId']=_0x389535['uuid'],this['imageUploadProgress']=null;const _0x4dd7ea=_0x4a0cb5['getAttribute']('src');this['_imageCache']['set'](_0x4dd7ea,{'id':_0x389535['uuid'],'url':_0x389535['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x86f381=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x86f381['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x573bf1,_0x2db354){_0x573bf1['on']('apply',(_0x324138,_0xb81915)=>{this['_replaceImage'](_0x2db354,_0xb81915['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x573bf1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x573bf1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ef9f7,_0x5f5b27,_0xe50524){const _0x4a4433=this['_editor'],{width:_0x1ad33d,height:_0x4b0888}=_0x1e2e90(_0x5f5b27,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x14c248,imageSources:_0x5cc4a7}=_0x3d2e6c(_0x5f5b27,_0x1ad33d);_0x4a4433['model']['change'](_0x5bc7b9=>{if('$graveyard'===_0x4ef9f7['root']['rootName']){_0x4a4433['execute']('insertImage',{'imageType':_0x4ef9f7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ef9f7['getAttributes']()),'uploadcareImageId':_0xe50524,'src':_0x14c248,'sources':_0x5cc4a7,'width':_0x1ad33d,'height':_0x4b0888}});const _0x276ed2=_0x4ef9f7['getChildren']();_0x4ef9f7=_0x4a4433['model']['document']['selection']['getSelectedElement']();for(const _0x37e5e8 of _0x276ed2)_0x5bc7b9['append'](_0x5bc7b9['cloneElement'](_0x37e5e8),_0x4ef9f7);}else _0x5bc7b9['setSelection'](_0x4ef9f7,'on'),_0x4a4433['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ef9f7['getAttributes']()),'uploadcareImageId':_0xe50524,'src':_0x14c248,'sources':_0x5cc4a7,'width':_0x1ad33d,'height':_0x4b0888},_0x4ef9f7);_0x5bc7b9['setSelection'](_0x4ef9f7,'on');});}async['_getImageAsFile'](_0x1912b3){const _0x5ac4d7=_0x32fb25['window'],_0x198536=_0x32fb25['document']['location']['href'],_0x5c3b91=new _0x5ac4d7['URL'](_0x1912b3['getAttribute']('src'),_0x198536);if('data:'===_0x5c3b91['protocol']){const _0x577df5=_0x5c3b91['href']['split'](','),_0x2fe67a=_0x577df5[0x0]['match'](/:(.*?);/)[0x1],_0xa8bd1c=_0x2fe67a['split']('/')[0x1],_0x192320=_0x5ac4d7['atob'](_0x577df5[_0x577df5['length']-0x1]);let _0x5ad73d=_0x192320['length'];const _0x367011=new _0x5ac4d7['Uint8Array'](_0x5ad73d);for(;_0x5ad73d--;)_0x367011[_0x5ad73d]=_0x192320['charCodeAt'](_0x5ad73d);return new _0x5ac4d7['File']([_0x367011],'image.'+_0xa8bd1c,{'type':_0x2fe67a});}const _0x4f9644=_0x5c3b91['href']['split']('/'),_0x46d442=_0x4f9644[_0x4f9644['length']-0x1],_0x4b3e35=_0x46d442['split']('.')[0x1];return _0x5ac4d7['fetch'](_0x5c3b91['href'])['then'](_0x2dc642=>_0x2dc642['clone']()['blob']())['then'](_0x19681e=>new _0x5ac4d7['File']([_0x19681e],_0x46d442,{'type':'image/'+_0x4b3e35}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4bed(){const _0x298837=['uc-light','8083350zxOjRl','3323386hzGodH','image-edit','1260262vChyqX','8vDLtCr','ck-uploadcare-theme','imageSrc','1132611QLCEbv','setTemplate','585784PEcNYi','uc-cloud-image-editor','bindTemplate','set','4299148PDEJLE','965100DPkvON'];_0x4bed=function(){return _0x298837;};return _0x4bed();}(function(_0xc376be,_0x56cb6c){const _0x940984=_0x5603,_0x483ca6=_0xc376be();while(!![]){try{const _0x582a07=parseInt(_0x940984(0xf6))/0x1+-parseInt(_0x940984(0xf4))/0x2+-parseInt(_0x940984(0xfa))/0x3*(-parseInt(_0x940984(0xf7))/0x4)+-parseInt(_0x940984(0xf1))/0x5+parseInt(_0x940984(0xf3))/0x6+-parseInt(_0x940984(0xf0))/0x7+parseInt(_0x940984(0xec))/0x8;if(_0x582a07===_0x56cb6c)break;else _0x483ca6['push'](_0x483ca6['shift']());}catch(_0x12c2dd){_0x483ca6['push'](_0x483ca6['shift']());}}}(_0x4bed,0xec0fb));function _0x5603(_0x4748ea,_0x3b4363){const _0x4bed19=_0x4bed();return _0x5603=function(_0x5603aa,_0x829ff6){_0x5603aa=_0x5603aa-0xeb;let _0x446cfd=_0x4bed19[_0x5603aa];return _0x446cfd;},_0x5603(_0x4748ea,_0x3b4363);}import{View as _0x5b6d8c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x5b6d8c{constructor(_0x21750a,_0x52eea1){const _0x118090=_0x5603;super(_0x21750a);const _0x4f60a5=this[_0x118090(0xee)];this[_0x118090(0xef)](_0x118090(0xf9),''),this[_0x118090(0xeb)]({'tag':_0x118090(0xed),'attributes':{..._0x52eea1,'class':[_0x118090(0xf2),_0x118090(0xf8)],'ctx-name':_0x118090(0xf5),'cdn-url':_0x4f60a5['to'](_0x118090(0xf9))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x335774}from'ckeditor5/src/icons.js';import{ButtonView as _0x8b7b86,IconView as _0x4ffb50,View as _0x42b7c0}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x42b7c0{constructor(_0x2cb157){super(_0x2cb157);const t=_0x2cb157['t'];this['set']('errorType',null);const _0xc7b4a4=new _0x8b7b86(_0x2cb157);_0xc7b4a4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xc7b4a4['withText']=!0x0,_0xc7b4a4['class']='ck-button-action',_0xc7b4a4['on']('execute',()=>{this['fire']('retry');}),_0xc7b4a4['bind']('isVisible')['to'](this,'errorType',_0x3842e1=>'NotFound'!==_0x3842e1);const _0x373fdc=new _0x4ffb50();_0x373fdc['content']=_0x335774,_0x373fdc['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x56d34a=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':[_0x373fdc,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x56d34a['to']('errorType',_0x5e5994=>t('NotFound'!==_0x5e5994?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xc7b4a4]},{'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 _0x4be45e,View as _0x3041c9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3041c9{constructor(_0x53aed8){super(_0x53aed8);const t=_0x53aed8['t'],_0x37fd5d=this['bindTemplate'],_0x19ce0a=new _0x4be45e();_0x19ce0a['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':[_0x19ce0a,{'text':_0x37fd5d['to']('imageUploadProgress',_0x2010b5=>t('Loading\x20image...')+'\x20('+(_0x2010b5||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 _0x2f4a0e=_0x43a9;(function(_0x16b0c2,_0x560bab){const _0x31fdd8=_0x43a9,_0x1d40e2=_0x16b0c2();while(!![]){try{const _0x16d46b=parseInt(_0x31fdd8(0x88))/0x1*(parseInt(_0x31fdd8(0x93))/0x2)+-parseInt(_0x31fdd8(0xb0))/0x3+-parseInt(_0x31fdd8(0x87))/0x4*(parseInt(_0x31fdd8(0xae))/0x5)+parseInt(_0x31fdd8(0xbb))/0x6+parseInt(_0x31fdd8(0x96))/0x7*(parseInt(_0x31fdd8(0x8f))/0x8)+-parseInt(_0x31fdd8(0xb4))/0x9+parseInt(_0x31fdd8(0xb2))/0xa;if(_0x16d46b===_0x560bab)break;else _0x1d40e2['push'](_0x1d40e2['shift']());}catch(_0xf22a4a){_0x1d40e2['push'](_0x1d40e2['shift']());}}}(_0x1fee,0xa0ccd));function _0x1fee(){const _0x580a94=['add','addEventListener','status','ready','30aiTHfT','_errorView','3000432tfRaCh','observe','10894860EIyUvt','change:status','7546545TeosRD','_focusableView','filter','render','once','uploading','fire','74304IlhgFE','cdnUrl','_addUploadcareImageEditorListeners','474288YsBJfO','21339ytWaoc','_setView','set','nodeName','element','focus','addedNodes','1823728SPtgLK','_loadingView','uc-cloud-image-editor','getFocusableElement','112vhmolh','toLowerCase','_items','28MdUoLd','length','target','cancel','ck-reset_all-excluded','_waitForImageEditorComponent','retry','apply','div','addMany','querySelector','detail','ck-uploadcare-form','setTemplate','disconnect','clear','createCollection','_editingView','error','_addErrorViewListeners'];_0x1fee=function(){return _0x580a94;};return _0x1fee();}import{View as _0x5f0a78}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5490e7}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x4180e4}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3a1d76}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3d5258}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x43a9(_0x262db8,_0x5f1791){const _0x1feef6=_0x1fee();return _0x43a9=function(_0x43a921,_0x436489){_0x43a921=_0x43a921-0x86;let _0x5a94d8=_0x1feef6[_0x43a921];return _0x5a94d8;},_0x43a9(_0x262db8,_0x5f1791);}export class UploadcareImageEditFormView extends _0x3d5258{[_0x2f4a0e(0x95)];[_0x2f4a0e(0x90)];[_0x2f4a0e(0xaf)];[_0x2f4a0e(0xa7)];[_0x2f4a0e(0xb5)];constructor(_0x11f355,_0x11f326,_0x5ad52f){const _0x410cb5=_0x2f4a0e;super(_0x11f355),this[_0x410cb5(0x95)]=this[_0x410cb5(0xa6)](),this[_0x410cb5(0x90)]=new _0x5490e7(_0x11f355),this[_0x410cb5(0xaf)]=new _0x4180e4(_0x11f355),this[_0x410cb5(0xa7)]=new _0x3a1d76(_0x11f355,_0x5ad52f),this[_0x410cb5(0xb5)]=new _0x5f0a78(_0x11f355),this[_0x410cb5(0xb5)][_0x410cb5(0xa3)](this[_0x410cb5(0x92)]()),this[_0x410cb5(0x8a)](_0x410cb5(0xac),_0x11f326),this[_0x410cb5(0xa3)]({'tag':_0x410cb5(0x9e),'attributes':{'class':['ck',_0x410cb5(0x9a),_0x410cb5(0xa2)],'tabindex':'-1'},'children':this[_0x410cb5(0x95)]}),this[_0x410cb5(0x89)](),this[_0x410cb5(0xb8)](_0x410cb5(0xb7),()=>{const _0x3ae300=_0x410cb5;this[_0x3ae300(0x9b)](this[_0x3ae300(0x8c)],_0x5a10d5=>{const _0x21492d=_0x3ae300;this[_0x21492d(0x86)](_0x5a10d5);});}),this['on'](_0x410cb5(0xb3),()=>{const _0x5bef14=_0x410cb5;this[_0x5bef14(0x89)]();}),this[_0x410cb5(0xa9)]();}[_0x2f4a0e(0x8d)](){const _0x5b5e25=_0x2f4a0e;this[_0x5b5e25(0x8c)][_0x5b5e25(0x8d)]();}[_0x2f4a0e(0x89)](){const _0x40bdee=_0x2f4a0e;switch(this[_0x40bdee(0x95)][_0x40bdee(0xa5)](),this[_0x40bdee(0xac)]){case _0x40bdee(0xb9):this[_0x40bdee(0x95)][_0x40bdee(0xaa)](this[_0x40bdee(0x90)]);break;case _0x40bdee(0xa8):this[_0x40bdee(0x95)][_0x40bdee(0xaa)](this[_0x40bdee(0xaf)]);break;case _0x40bdee(0xad):this[_0x40bdee(0x95)][_0x40bdee(0x9f)]([this[_0x40bdee(0xa7)],this[_0x40bdee(0xb5)]]);}}[_0x2f4a0e(0x9b)](_0x4b5095,_0x357b25){const _0x5d84cf=_0x2f4a0e,_0x53bb81=_0x5d84cf(0x91),_0x224631=_0x4b5095[_0x5d84cf(0xa0)](_0x53bb81);if(_0x224631)return _0x357b25(_0x224631);const _0x5515a7=new MutationObserver(_0x5babe4=>{const _0x125eb2=_0x5d84cf,_0x290c3a=_0x5babe4[_0x125eb2(0xb6)](_0x4ac3f1=>_0x4ac3f1[_0x125eb2(0x98)]===_0x4b5095&&_0x4ac3f1[_0x125eb2(0x8e)][_0x125eb2(0x97)]>0x0&&_0x4ac3f1[_0x125eb2(0x8e)][0x0][_0x125eb2(0x8b)][_0x125eb2(0x94)]()===_0x53bb81);_0x290c3a[_0x125eb2(0x97)]&&(_0x5515a7[_0x125eb2(0xa4)](),_0x357b25(_0x290c3a[0x0][_0x125eb2(0x8e)][0x0]));});_0x5515a7[_0x5d84cf(0xb1)](_0x4b5095,{'childList':!0x0,'subtree':!0x0});}[_0x2f4a0e(0x86)](_0x161800){const _0x21710b=_0x2f4a0e;_0x161800[_0x21710b(0xab)](_0x21710b(0x9d),_0x347922=>{const _0x127274=_0x21710b;this[_0x127274(0xba)](_0x127274(0x9d),{'imageSrc':_0x347922[_0x127274(0xa1)][_0x127274(0xbc)]});}),_0x161800[_0x21710b(0xab)](_0x21710b(0x99),()=>{const _0x22b30c=_0x21710b;this[_0x22b30c(0xba)](_0x22b30c(0x99));});}[_0x2f4a0e(0xa9)](){const _0x1a5ef7=_0x2f4a0e;this[_0x1a5ef7(0xaf)]['on'](_0x1a5ef7(0x9c),()=>{const _0x2a57e5=_0x1a5ef7;this[_0x2a57e5(0xba)](_0x2a57e5(0x9c));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xbc3bd3=_0x3d96;(function(_0x3b22d3,_0x2b76b8){const _0x582641=_0x3d96,_0x24b526=_0x3b22d3();while(!![]){try{const _0x112114=parseInt(_0x582641(0x16f))/0x1+parseInt(_0x582641(0x16a))/0x2*(-parseInt(_0x582641(0x174))/0x3)+parseInt(_0x582641(0x171))/0x4*(-parseInt(_0x582641(0x172))/0x5)+-parseInt(_0x582641(0x169))/0x6*(parseInt(_0x582641(0x162))/0x7)+parseInt(_0x582641(0x176))/0x8*(-parseInt(_0x582641(0x160))/0x9)+-parseInt(_0x582641(0x15e))/0xa*(parseInt(_0x582641(0x17e))/0xb)+parseInt(_0x582641(0x170))/0xc;if(_0x112114===_0x2b76b8)break;else _0x24b526['push'](_0x24b526['shift']());}catch(_0x18ce20){_0x24b526['push'](_0x24b526['shift']());}}}(_0x4ac4,0x50c1c));import{Command as _0x2038ff}from'ckeditor5/src/core.js';import{Dialog as _0x473329}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x269562}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x99145e}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2038ff{[_0xbc3bd3(0x168)];static get[_0xbc3bd3(0x17d)](){return[_0x473329];}[_0xbc3bd3(0x16c)];constructor(_0x216e49){const _0xbdf00b=_0xbc3bd3;super(_0x216e49),this[_0xbdf00b(0x168)]=void 0x0,this[_0xbdf00b(0x16c)]=_0x99145e(_0x216e49[_0xbdf00b(0x17b)][_0xbdf00b(0x164)](_0xbdf00b(0x166))||[]),this[_0xbdf00b(0x163)]({'isActive':!0x1});}[_0xbc3bd3(0x178)](){const _0x3e932f=_0xbc3bd3,_0x5c7263=this[_0x3e932f(0x17a)][_0x3e932f(0x16d)][_0x3e932f(0x173)][_0x3e932f(0x175)][_0x3e932f(0x167)]();this[_0x3e932f(0x177)]=this[_0x3e932f(0x16c)](_0x5c7263);}[_0xbc3bd3(0x17f)](){const _0x3d142=_0xbc3bd3;this[_0x3d142(0x168)]&&(this[_0x3d142(0x161)](_0x3d142(0x16b)),this[_0x3d142(0x168)]=void 0x0);const _0x51913a=this[_0x3d142(0x17a)][_0x3d142(0x16d)][_0x3d142(0x173)][_0x3d142(0x175)][_0x3d142(0x167)]();_0x51913a&&(_0x51913a['is'](_0x3d142(0x16e),_0x3d142(0x15f))||_0x51913a['is'](_0x3d142(0x16e),_0x3d142(0x165)))&&(this[_0x3d142(0x168)]=new _0x269562(this[_0x3d142(0x17a)],this[_0x3d142(0x17a)][_0x3d142(0x17c)][_0x3d142(0x164)](_0x473329),_0x51913a),this[_0x3d142(0x179)](_0x3d142(0x16b))['to'](this[_0x3d142(0x168)],_0x3d142(0x16b)));}}function _0x3d96(_0x1062b5,_0x48d254){const _0x4ac490=_0x4ac4();return _0x3d96=function(_0x3d96bc,_0x1dd294){_0x3d96bc=_0x3d96bc-0x15e;let _0x3a9b68=_0x4ac490[_0x3d96bc];return _0x3a9b68;},_0x3d96(_0x1062b5,_0x48d254);}function _0x4ac4(){const _0xace8d9=['refresh','bind','editor','config','plugins','requires','957qdlIdI','execute','46580vPADvL','imageBlock','1824318ZkfFtk','unbind','7dwiMiL','set','get','imageInline','uploadcare.allowExternalImagesEditing','getSelectedElement','imageEditController','1744602eNJFcq','407254MdiaNQ','isActive','_isEditable','model','element','423099AyJfRi','19586136BzrHoe','4kerOUj','1074505nUzsFu','document','9dXRSeh','selection','8icEXxg','isEnabled'];_0x4ac4=function(){return _0xace8d9;};return _0x4ac4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2244de=_0x345b;(function(_0x9ebd5c,_0x1a1d4a){const _0x54f223=_0x345b,_0x374d06=_0x9ebd5c();while(!![]){try{const _0x4d8522=parseInt(_0x54f223(0xd6))/0x1*(parseInt(_0x54f223(0xd0))/0x2)+parseInt(_0x54f223(0xcd))/0x3*(parseInt(_0x54f223(0xd2))/0x4)+parseInt(_0x54f223(0xc4))/0x5*(-parseInt(_0x54f223(0xcb))/0x6)+parseInt(_0x54f223(0xd5))/0x7*(-parseInt(_0x54f223(0xce))/0x8)+parseInt(_0x54f223(0xcf))/0x9+-parseInt(_0x54f223(0xc6))/0xa*(-parseInt(_0x54f223(0xc2))/0xb)+-parseInt(_0x54f223(0xc1))/0xc*(parseInt(_0x54f223(0xc7))/0xd);if(_0x4d8522===_0x1a1d4a)break;else _0x374d06['push'](_0x374d06['shift']());}catch(_0x247572){_0x374d06['push'](_0x374d06['shift']());}}}(_0x166c,0x7adb9));import{Plugin as _0x3a955d}from'ckeditor5/src/core.js';import{Notification as _0x3640b3}from'ckeditor5/src/ui.js';function _0x345b(_0x3d05f3,_0xbeb961){const _0x166cf4=_0x166c();return _0x345b=function(_0x345b7e,_0x55c934){_0x345b7e=_0x345b7e-0xc1;let _0x1141aa=_0x166cf4[_0x345b7e];return _0x1141aa;},_0x345b(_0x3d05f3,_0xbeb961);}import{UploadcareImageEditCommand as _0xb11f72}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2f209d}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x5242cc}from'../uploadcareediting.js';function _0x166c(){const _0x2bb88f=['728895PXDDsb','add','420170ankSsU','91EJOVFt','ImageEditing','pluginName','uploadcareImageReplace','12qiqQrZ','init','354174mIOjFU','368LufFoH','1815786LdvoCq','12202MZsUsJ','ImageUtils','24bsmWoo','UploadcareImageEditEditing','requires','111811VyremA','134DCvBWA','isOfficialPlugin','commands','uploadcareImageEdit','627708Wodbhn','44pYakjW','isPremiumPlugin'];_0x166c=function(){return _0x2bb88f;};return _0x166c();}export class UploadcareImageEditEditing extends _0x3a955d{static get[_0x2244de(0xc9)](){const _0x24f155=_0x2244de;return _0x24f155(0xd3);}static get[_0x2244de(0xd4)](){const _0x384bb3=_0x2244de;return[_0x5242cc,_0x3640b3,_0x384bb3(0xd1),_0x384bb3(0xc8)];}static get[_0x2244de(0xd7)](){return!0x0;}static get[_0x2244de(0xc3)](){return!0x0;}[_0x2244de(0xcc)](){const _0x29572a=_0x2244de,{editor:_0x4f2c13}=this;_0x4f2c13[_0x29572a(0xd8)][_0x29572a(0xc5)](_0x29572a(0xd9),new _0xb11f72(_0x4f2c13)),_0x4f2c13[_0x29572a(0xd8)][_0x29572a(0xc5)](_0x29572a(0xca),new _0x2f209d(_0x4f2c13));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x236928}from'ckeditor5/src/core.js';import{ButtonView as _0xdbe52c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x330b5b}from'ckeditor5/src/icons.js';import{createElement as _0x1ced73}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 _0x236928{['_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 _0x41d4ac=this['editor'];_0x41d4ac['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3f15a8=>{const _0x518ba0=_0x41d4ac['commands']['get']('uploadcareImageEdit'),_0x47ad72=new _0xdbe52c(_0x3f15a8),t=_0x3f15a8['t'];return _0x47ad72['set']({'icon':_0x330b5b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x47ad72['bind']('isEnabled')['to'](_0x518ba0),_0x47ad72['bind']('isOn')['to'](_0x518ba0,'isActive'),this['listenTo'](_0x47ad72,'execute',()=>{_0x41d4ac['execute']('uploadcareImageEdit'),_0x41d4ac['editing']['view']['focus']();}),_0x47ad72;}),this['_initConfig']();}['_initConfig'](){const _0x5aa0ca=_0x1ced73(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5aa0ca),this['listenTo'](this['editor'],'destroy',()=>{_0x5aa0ca['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4726(_0xf2aaca,_0x2d20b2){const _0x4a7c98=_0x4a7c();return _0x4726=function(_0x4726a2,_0x1f5355){_0x4726a2=_0x4726a2-0x1bb;let _0x3fab31=_0x4a7c98[_0x4726a2];return _0x3fab31;},_0x4726(_0xf2aaca,_0x2d20b2);}const _0x205fd6=_0x4726;(function(_0x50829a,_0x42ae7c){const _0x544a49=_0x4726,_0x2b90eb=_0x50829a();while(!![]){try{const _0x22e09f=-parseInt(_0x544a49(0x1c8))/0x1*(-parseInt(_0x544a49(0x1cc))/0x2)+parseInt(_0x544a49(0x1cb))/0x3*(parseInt(_0x544a49(0x1ce))/0x4)+parseInt(_0x544a49(0x1cf))/0x5*(parseInt(_0x544a49(0x1ca))/0x6)+parseInt(_0x544a49(0x1c5))/0x7*(-parseInt(_0x544a49(0x1c0))/0x8)+parseInt(_0x544a49(0x1d6))/0x9*(parseInt(_0x544a49(0x1c1))/0xa)+parseInt(_0x544a49(0x1d8))/0xb*(-parseInt(_0x544a49(0x1d4))/0xc)+parseInt(_0x544a49(0x1bd))/0xd*(-parseInt(_0x544a49(0x1c3))/0xe);if(_0x22e09f===_0x42ae7c)break;else _0x2b90eb['push'](_0x2b90eb['shift']());}catch(_0x5e092b){_0x2b90eb['push'](_0x2b90eb['shift']());}}}(_0x4a7c,0x52725));import{Command as _0x2ed3f1}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2ed3f1{[_0x205fd6(0x1bb)](){const _0x131284=_0x205fd6,_0x49fb92=this[_0x131284(0x1c2)][_0x131284(0x1d2)][_0x131284(0x1d5)][_0x131284(0x1d0)][_0x131284(0x1c6)]();this[_0x131284(0x1c7)]=Boolean(_0x49fb92&&(_0x49fb92['is'](_0x131284(0x1c9),_0x131284(0x1d3))||_0x49fb92['is'](_0x131284(0x1c9),_0x131284(0x1be))));}[_0x205fd6(0x1d1)](_0x2a9dd6){const _0x313a16=_0x205fd6,_0x48aadf=this[_0x313a16(0x1c2)][_0x313a16(0x1d2)][_0x313a16(0x1d5)][_0x313a16(0x1d0)][_0x313a16(0x1c6)]();this[_0x313a16(0x1c2)][_0x313a16(0x1d2)][_0x313a16(0x1d7)](_0x30d033=>{const _0x2044e3=_0x313a16;_0x30d033[_0x2044e3(0x1cd)](_0x2a9dd6,_0x48aadf),_0x30d033[_0x2044e3(0x1bc)](_0x2044e3(0x1c4),_0x48aadf),_0x30d033[_0x2044e3(0x1bc)](_0x2044e3(0x1bf),_0x48aadf);});}}function _0x4a7c(){const _0x29a7fa=['8635uzcFpL','refresh','removeAttribute','13JNmizD','imageInline','sizes','326464emEnLc','1454580KivIuq','editor','15687098UmpmRk','srcset','7EKmVph','getSelectedElement','isEnabled','1CZsrgo','element','637110lTOUZB','3pQCPGB','577228gKrZkq','setAttributes','1145020JeFEVa','20pdfNRc','selection','execute','model','imageBlock','1260TxSsHH','document','36zjrmsU','change'];_0x4a7c=function(){return _0x29a7fa;};return _0x4a7c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4eec77=_0x49e8;(function(_0x3bd1f5,_0x6b4dd2){var _0x113d19=_0x49e8,_0xbf3844=_0x3bd1f5();while(!![]){try{var _0x368bc7=parseInt(_0x113d19(0x1a2))/0x1+parseInt(_0x113d19(0x194))/0x2*(parseInt(_0x113d19(0x19a))/0x3)+-parseInt(_0x113d19(0x19d))/0x4*(parseInt(_0x113d19(0x19f))/0x5)+parseInt(_0x113d19(0x1a1))/0x6*(parseInt(_0x113d19(0x196))/0x7)+parseInt(_0x113d19(0x198))/0x8+-parseInt(_0x113d19(0x19b))/0x9+parseInt(_0x113d19(0x19e))/0xa*(-parseInt(_0x113d19(0x199))/0xb);if(_0x368bc7===_0x6b4dd2)break;else _0xbf3844['push'](_0xbf3844['shift']());}catch(_0x211bdc){_0xbf3844['push'](_0xbf3844['shift']());}}}(_0x58b6,0x228c6));import{Plugin as _0x51626a}from'ckeditor5/src/core.js';function _0x58b6(){var _0x1ba252=['201146urFWbM','296157tRGEju','1321119RXqniP','isPremiumPlugin','5228XfOqaS','210xXiAiR','485WkBTxu','UploadcareImageEdit','148494zblQSt','252493UXQNgS','requires','4sMEjdM','pluginName','21VZjLdn','isOfficialPlugin','2199264jJhGFm'];_0x58b6=function(){return _0x1ba252;};return _0x58b6();}function _0x49e8(_0x163128,_0x4f0308){var _0x58b68a=_0x58b6();return _0x49e8=function(_0x49e89b,_0x38d0c0){_0x49e89b=_0x49e89b-0x194;var _0x201e20=_0x58b68a[_0x49e89b];return _0x201e20;},_0x49e8(_0x163128,_0x4f0308);}import{UploadcareImageEditEditing as _0x606817}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5c8564}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x51626a{static get[_0x4eec77(0x195)](){var _0x509a5b=_0x4eec77;return _0x509a5b(0x1a0);}static get[_0x4eec77(0x1a3)](){return[_0x606817,_0x5c8564];}static get[_0x4eec77(0x197)](){return!0x0;}static get[_0x4eec77(0x19c)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a7004=_0x41a5;(function(_0x4d7fa7,_0x117e8b){const _0x1b60ab=_0x41a5,_0x1966d1=_0x4d7fa7();while(!![]){try{const _0x5b1ee0=-parseInt(_0x1b60ab(0xb5))/0x1*(-parseInt(_0x1b60ab(0xd7))/0x2)+-parseInt(_0x1b60ab(0xb0))/0x3+parseInt(_0x1b60ab(0xd0))/0x4*(parseInt(_0x1b60ab(0xca))/0x5)+parseInt(_0x1b60ab(0x8f))/0x6*(parseInt(_0x1b60ab(0xc6))/0x7)+-parseInt(_0x1b60ab(0x99))/0x8+parseInt(_0x1b60ab(0xbf))/0x9*(-parseInt(_0x1b60ab(0xc7))/0xa)+-parseInt(_0x1b60ab(0x9a))/0xb*(-parseInt(_0x1b60ab(0xa4))/0xc);if(_0x5b1ee0===_0x117e8b)break;else _0x1966d1['push'](_0x1966d1['shift']());}catch(_0x33b287){_0x1966d1['push'](_0x1966d1['shift']());}}}(_0x2dbd,0x24aaa));function _0x41a5(_0x20ab07,_0x151ba6){const _0x2dbd43=_0x2dbd();return _0x41a5=function(_0x41a5ff,_0x562bf4){_0x41a5ff=_0x41a5ff-0x89;let _0x16ba4b=_0x2dbd43[_0x41a5ff];return _0x16ba4b;},_0x41a5(_0x20ab07,_0x151ba6);}function _0x2dbd(){const _0x208b0b=['registerIntegration','forEach','uploadcareLicenseKeyDomainLimit','31EPBraj','type','uploadcareLicenseKeyNotAllowed','GPhotos','url','isOfficialPlugin','execute','_getIntegrationKey','upload','isPremiumPlugin','207CXBfwS','Uploadcare','push','uploadcareLicenseKeyExpired','uploadcareLicenseKeyEvaluationLimit','_normalizeConfigSourceList','uploadcareLicenseKeyInvalid','91ppuyTC','13330ZkJlBa','_createToolbarButton','isEnabled','705COjMdo','licenseKey','withText','config','assetManager','plugins','2172UjdvHP','featureNotAllowed','locale','UploadcareUI','entries','URL','GDrive','16716fvNKHy','Local','Dropbox','get','destroy','afterInit','_createButton','bind','domainLimit','map','ImageInsertUI','89118Vordch','label','init','has','Insert','OneDrive','usageLimit','_licenseKeyCheckInterval','uploadcareLicenseKeyTrialLimit','text','1843544zJKtav','7711YaYTjy','Facebook','editor','uploadcare.uploader.sourceList','Replace','trialLimit','commands','shortText','_showLicenseError','uploadcareLicenseKeyValid','1128XOsQBU','isImageSelected','reduce','tooltip','_createDropdownButtons','evaluationLimit','uploadcare','_createMenuBarButtons','uploadcareLicenseKeyUsageLimit','invalid','expired','pluginName','550068fEoPnE','icon'];_0x2dbd=function(){return _0x208b0b;};return _0x2dbd();}import{Plugin as _0x2e3f4f}from'ckeditor5/src/core.js';import{IconDropbox as _0x2ea2bd,IconFacebook as _0x1c4116,IconGoogleDrive as _0x3cec15,IconGooglePhotos as _0x33d10c,IconUploadcareImageUpload as _0x30e098,IconUploadcareLink as _0x409484,IconOneDrive as _0x162a87}from'ckeditor5/src/icons.js';import{ButtonView as _0x1e3b37,MenuBarMenuListItemButtonView as _0x10719e}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xf3e4b5}from'./uploadcareconfig.js';import{getTranslation as _0x5908b1}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x2e3f4f{[_0x4a7004(0xcb)];[_0x4a7004(0x96)];static get[_0x4a7004(0xaf)](){const _0x5b3c2c=_0x4a7004;return _0x5b3c2c(0xd3);}static get[_0x4a7004(0xba)](){return!0x0;}static get[_0x4a7004(0xbe)](){return!0x0;}[_0x4a7004(0x91)](){const _0x54bed0=_0x4a7004;this[_0x54bed0(0xcb)]=this[_0x54bed0(0x9c)][_0x54bed0(0xcd)][_0x54bed0(0xda)](_0x54bed0(0xcb));const _0x2164d8=this[_0x54bed0(0x9c)];this[_0x54bed0(0x96)]=setInterval(()=>{const _0x267e6e=_0x54bed0;let _0x1e64e4;for(const _0x4eea60 in _0x2164d8){const _0x339a3d=_0x4eea60,_0x54dd43=_0x2164d8[_0x339a3d];if(_0x267e6e(0xa3)==_0x54dd43||_0x267e6e(0xc5)==_0x54dd43||_0x267e6e(0xc2)==_0x54dd43||_0x267e6e(0xb4)==_0x54dd43||_0x267e6e(0xb7)==_0x54dd43||_0x267e6e(0xc3)==_0x54dd43||_0x267e6e(0x97)==_0x54dd43||_0x267e6e(0xac)==_0x54dd43){delete _0x2164d8[_0x339a3d],_0x1e64e4=_0x54dd43,clearInterval(this[_0x267e6e(0x96)]),this[_0x267e6e(0x96)]=void 0x0;break;}}_0x267e6e(0xc5)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0xad)),_0x267e6e(0xc2)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0xae)),_0x267e6e(0xb4)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0x8c)),_0x267e6e(0xb7)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0xd1),_0x267e6e(0xc0)),_0x267e6e(0xc3)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0xa9)),_0x267e6e(0x97)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0x9f)),_0x267e6e(0xac)==_0x1e64e4&&_0x2164d8[_0x267e6e(0xa2)](_0x267e6e(0x95));},0x3e8);}[_0x4a7004(0x89)](){const _0x268bd0=_0x4a7004,{editor:_0x123b2f}=this,_0x3694a3=_0x123b2f[_0x268bd0(0xa0)][_0x268bd0(0xda)](_0x268bd0(0xaa));if(!_0x3694a3)return;const _0x725a05=this[_0x268bd0(0xc4)](_0x123b2f[_0x268bd0(0xcd)][_0x268bd0(0xda)](_0x268bd0(0x9d)))[_0x268bd0(0xa6)]((_0xbc86eb,_0x1413e3)=>{const _0x4defb5=_0x268bd0,_0x13e2cf=this[_0x4defb5(0xbc)](_0x1413e3[_0x4defb5(0xb6)]);return _0xbc86eb[_0x13e2cf]||(_0xbc86eb[_0x13e2cf]=[]),_0xbc86eb[_0x13e2cf][_0x4defb5(0xc1)](_0x1413e3),_0xbc86eb;},{});_0x123b2f[_0x268bd0(0xcf)][_0x268bd0(0x92)](_0x268bd0(0x8e))&&_0x123b2f[_0x268bd0(0xa0)][_0x268bd0(0xda)](_0x268bd0(0xaa))&&Object[_0x268bd0(0xd4)](_0x725a05)[_0x268bd0(0xb3)](([_0x3109f4,_0x47d961])=>{const _0x3bd2c2=_0x268bd0;_0x123b2f[_0x3bd2c2(0xcf)][_0x3bd2c2(0xda)](_0x3bd2c2(0x8e))[_0x3bd2c2(0xb2)]({'name':_0x3109f4,'observable':()=>_0x3694a3,'buttonViewCreator':()=>this[_0x3bd2c2(0xc8)](_0x47d961),'formViewCreator':()=>this[_0x3bd2c2(0xa8)](_0x47d961),'menuBarButtonViewCreator':()=>this[_0x3bd2c2(0xab)](_0x47d961),'override':_0x3bd2c2(0xce)!==_0x3109f4});});}[_0x4a7004(0xdb)](){const _0x4c0fb5=_0x4a7004;super[_0x4c0fb5(0xdb)](),this[_0x4c0fb5(0x96)]&&clearInterval(this[_0x4c0fb5(0x96)]);}[_0x4a7004(0xc4)](_0x1ef3a9){const _0x277661=_0x4a7004,{locale:_0x1a5595}=this[_0x277661(0x9c)];return _0x1ef3a9[_0x277661(0x8d)](_0xf5ef16=>{const _0x23cdc1=_0x277661,_0x41e378=_0x5908b1(_0x1a5595,_0xf5ef16,_0x23cdc1(0x93));switch(_0xf5ef16){case _0xf3e4b5[_0x23cdc1(0xd8)]:return{'icon':_0x30e098,'type':_0xf3e4b5[_0x23cdc1(0xd8)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0xd5)]:return{'icon':_0x409484,'type':_0xf3e4b5[_0x23cdc1(0xd5)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0xd9)]:return{'icon':_0x2ea2bd,'type':_0xf3e4b5[_0x23cdc1(0xd9)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0x9b)]:return{'icon':_0x1c4116,'type':_0xf3e4b5[_0x23cdc1(0x9b)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0xd6)]:return{'icon':_0x3cec15,'type':_0xf3e4b5[_0x23cdc1(0xd6)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0xb8)]:return{'icon':_0x33d10c,'type':_0xf3e4b5[_0x23cdc1(0xb8)],..._0x41e378};case _0xf3e4b5[_0x23cdc1(0x94)]:return{'icon':_0x162a87,'type':_0xf3e4b5[_0x23cdc1(0x94)],..._0x41e378};}});}[_0x4a7004(0xbc)](_0x1f8779){const _0x2d7a4e=_0x4a7004;switch(_0x1f8779){case _0xf3e4b5[_0x2d7a4e(0xd8)]:return _0x2d7a4e(0xbd);case _0xf3e4b5[_0x2d7a4e(0xd5)]:return _0x2d7a4e(0xb9);default:return _0x2d7a4e(0xce);}}[_0x4a7004(0x8a)](_0x2e15fe,_0x162420){const _0x4104fc=_0x4a7004,_0x58aae3=this[_0x4104fc(0x9c)],_0x3f65dc=new _0x2e15fe(_0x58aae3[_0x4104fc(0xd2)]),_0x326b48=_0x58aae3[_0x4104fc(0xa0)][_0x4104fc(0xda)](_0x4104fc(0xaa));return _0x3f65dc[_0x4104fc(0x8b)](_0x4104fc(0xc9))['to'](_0x326b48),_0x3f65dc['on'](_0x4104fc(0xbb),()=>{const _0x166bbe=_0x4104fc;_0x326b48[_0x166bbe(0xbb)](_0x162420);}),_0x3f65dc;}[_0x4a7004(0xc8)](_0x30a9f5){const _0x44f0c6=_0x4a7004,{locale:_0x2b1f5b}=this[_0x44f0c6(0x9c)],_0x3f09f5=this[_0x44f0c6(0x9c)][_0x44f0c6(0xcf)][_0x44f0c6(0xda)](_0x44f0c6(0x8e)),_0x4eb8ce=_0x30a9f5[0x0],_0x4cafb5=this[_0x44f0c6(0x8a)](_0x1e3b37,_0x4eb8ce[_0x44f0c6(0xb6)]);return _0x4cafb5[_0x44f0c6(0xb1)]=_0x4eb8ce[_0x44f0c6(0xb1)],_0x4cafb5[_0x44f0c6(0x8b)](_0x44f0c6(0x90))['to'](_0x3f09f5,_0x44f0c6(0xa5),_0x197239=>_0x5908b1(_0x2b1f5b,_0x4eb8ce[_0x44f0c6(0xb6)],_0x197239?_0x44f0c6(0x9e):_0x44f0c6(0x93))[_0x44f0c6(0x98)]),_0x4cafb5[_0x44f0c6(0xa7)]=!0x0,_0x4cafb5;}[_0x4a7004(0xa8)](_0x49982b){const _0x3e8157=_0x4a7004,{locale:_0x5c0bd2}=this[_0x3e8157(0x9c)],_0x372664=this[_0x3e8157(0x9c)][_0x3e8157(0xcf)][_0x3e8157(0xda)](_0x3e8157(0x8e));return _0x49982b[_0x3e8157(0x8d)](_0x65ba50=>{const _0x333f57=_0x3e8157,_0x48802c=this[_0x333f57(0x8a)](_0x1e3b37,_0x65ba50[_0x333f57(0xb6)]);return _0x48802c[_0x333f57(0xcc)]=!0x0,_0x48802c[_0x333f57(0xb1)]=_0x65ba50[_0x333f57(0xb1)],_0x48802c[_0x333f57(0x8b)](_0x333f57(0x90))['to'](_0x372664,_0x333f57(0xa5),_0x4cee0d=>_0x5908b1(_0x5c0bd2,_0x65ba50[_0x333f57(0xb6)],_0x4cee0d?_0x333f57(0x9e):_0x333f57(0x93))[_0x333f57(0x98)]),_0x48802c;});}[_0x4a7004(0xab)](_0x165cb3){const _0x10c401=_0x4a7004;return _0x165cb3[_0x10c401(0x8d)](_0x564759=>{const _0x3183f2=_0x10c401,_0x23b012=this[_0x3183f2(0x8a)](_0x10719e,_0x564759[_0x3183f2(0xb6)]);return _0x23b012[_0x3183f2(0xb1)]=_0x564759[_0x3183f2(0xb1)],_0x23b012[_0x3183f2(0x90)]=_0x564759[_0x3183f2(0xa1)],_0x23b012;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x276509}from'ckeditor5/src/core.js';import{FileRepository as _0x323524}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x1e232c}from'./uploadcareediting.js';import{UploadUtils as _0x33c479}from'./utils/uploadutils.js';import{getImageUrls as _0xea1893}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x276509{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x323524,_0x1e232c];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4628c7=this['editor'];if(!!!_0x4628c7['config']['get']('uploadcare'))return;_0x4628c7['plugins']['get'](_0x323524)['createUploadAdapter']=_0x98bb46=>new k(_0x98bb46,_0x4628c7),_0x4628c7['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x39b992,{imageElement:_0x5a48a8,data:_0xc7d821})=>{_0x4628c7['model']['change'](_0x545a9c=>{_0x545a9c['setAttribute']('uploadcareImageId',_0xc7d821['uploadcareImageId'],_0x5a48a8);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x135a2f,_0x7976db){this['loader']=_0x135a2f,this['editor']=_0x7976db,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x44b4de=await this['loader']['file'];return _0x33c479['upload']({'file':_0x44b4de,'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':_0x23b856=>{_0x23b856&&_0x23b856['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x23b856['value']);}})['then'](async _0x2c6ec0=>{const {imageFallbackUrl:_0x129539,imageSources:_0x2ba458}=_0xea1893(_0x2c6ec0['cdnUrl'],_0x2c6ec0['imageInfo']['width']);return{'uploadcareImageId':_0x2c6ec0['uuid'],'default':_0x129539,'sources':_0x2ba458};})['catch'](()=>{const _0x1eaae1=t('Cannot\x20upload\x20file:')+('\x20'+_0x44b4de['name']+'.');return Promise['reject'](_0x1eaae1);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x56f3f6}from'../uploadcareconfig.js';export function getTranslation(_0x5a2120,_0x5d354d,_0x2b9d22){const t=_0x5a2120['t'],_0x1d0120=_0x5a2120['t'];switch(_0x5d354d){case _0x56f3f6['Local']:return{'text':_0x1d0120('Insert'===_0x2b9d22?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1d0120('From\x20computer')};case _0x56f3f6['URL']:return{'text':'Insert'===_0x2b9d22?_0x1d0120('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1d0120('Via\x20URL')};case _0x56f3f6['Dropbox']:return{'text':t('Insert'===_0x2b9d22?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x56f3f6['Facebook']:return{'text':t('Insert'===_0x2b9d22?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x56f3f6['GDrive']:return{'text':t('Insert'===_0x2b9d22?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x56f3f6['GPhotos']:return{'text':t('Insert'===_0x2b9d22?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x56f3f6['OneDrive']:return{'text':t('Insert'===_0x2b9d22?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5d354d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x79aa81=_0x3414;(function(_0x32341e,_0x2a7073){var _0x50c8e0=_0x3414,_0x462f13=_0x32341e();while(!![]){try{var _0x3a602d=parseInt(_0x50c8e0(0x74))/0x1+-parseInt(_0x50c8e0(0x7c))/0x2*(-parseInt(_0x50c8e0(0x7b))/0x3)+-parseInt(_0x50c8e0(0x73))/0x4+-parseInt(_0x50c8e0(0x6e))/0x5+-parseInt(_0x50c8e0(0x77))/0x6+-parseInt(_0x50c8e0(0x72))/0x7*(-parseInt(_0x50c8e0(0x7f))/0x8)+-parseInt(_0x50c8e0(0x7a))/0x9*(-parseInt(_0x50c8e0(0x6d))/0xa);if(_0x3a602d===_0x2a7073)break;else _0x462f13['push'](_0x462f13['shift']());}catch(_0x1e2870){_0x462f13['push'](_0x462f13['shift']());}}}(_0x4bf7,0x3198e));function _0x4bf7(){var _0x382020=['focusCycler','456aBgPAM','4990NEVVlW','814575DbXIiF','focusTracker','fire','true','44786fKDhqJ','1244064kgQFxV','70370jevMqN','createCollection','forwardCycle','1456458WzNseW','bindTemplate','div','8262mIFWWj','33BsFsxL','4852RSyyGf','getFocusableElement'];_0x4bf7=function(){return _0x382020;};return _0x4bf7();}import{FocusTracker as _0x50c4bf}from'ckeditor5/src/utils.js';import{View as _0xbab881,FocusCycler as _0x3f2408}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x3414(_0x3f355f,_0x11f7fc){var _0x4bf715=_0x4bf7();return _0x3414=function(_0x3414c9,_0x1f186d){_0x3414c9=_0x3414c9-0x6d;var _0x2cc445=_0x4bf715[_0x3414c9];return _0x2cc445;},_0x3414(_0x3f355f,_0x11f7fc);}export class DialogFocusManagerView extends _0xbab881{[_0x79aa81(0x6f)];[_0x79aa81(0x7e)];constructor(_0x1e5c1d){var _0x92e83b=_0x79aa81;super(_0x1e5c1d),this[_0x92e83b(0x6f)]=new _0x50c4bf(),this[_0x92e83b(0x7e)]=new _0x3f2408({'focusables':this[_0x92e83b(0x75)](),'focusTracker':this[_0x92e83b(0x6f)]});}[_0x79aa81(0x7d)](){var _0x497090=_0x79aa81;return{'tag':_0x497090(0x79),'attributes':{'aria-hidden':_0x497090(0x71),'tabindex':'0'},'on':{'focus':this[_0x497090(0x78)]['to'](()=>{var _0x304922=_0x497090;this[_0x304922(0x7e)][_0x304922(0x70)](_0x304922(0x76));})}};}}
|