@ckeditor/ckeditor5-uploadcare 47.5.0 → 47.6.0-alpha.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
|
-
const _0x44ee9b=_0x1a3d;(function(_0x3e8900,_0x439e25){const _0xc22866=_0x1a3d,_0x431c3d=_0x3e8900();while(!![]){try{const _0x266d93=-parseInt(_0xc22866(0xc5))/0x1*(parseInt(_0xc22866(0xf9))/0x2)+parseInt(_0xc22866(0x107))/0x3*(parseInt(_0xc22866(0xe2))/0x4)+parseInt(_0xc22866(0x117))/0x5+parseInt(_0xc22866(0xf5))/0x6*(parseInt(_0xc22866(0xec))/0x7)+-parseInt(_0xc22866(0xe6))/0x8+-parseInt(_0xc22866(0xfd))/0x9*(-parseInt(_0xc22866(0x101))/0xa)+-parseInt(_0xc22866(0xce))/0xb;if(_0x266d93===_0x439e25)break;else _0x431c3d['push'](_0x431c3d['shift']());}catch(_0x2229a3){_0x431c3d['push'](_0x431c3d['shift']());}}}(_0x5bc3,0xccc23));import{Plugin as _0x1ff43a}from'ckeditor5/src/core.js';function _0x5bc3(){const _0x385921=['uploadcareImageReplace','PictureEditing','isOfficialPlugin','uc-upload-ctx-provider','7091jbhXgk','\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','configElement','fromCharCode','UploadcareEditing','href','uploadcareImageId','appendChild','once','7338kropOL','_initConversion','_initImageProcessingIndicator','getAttribute','4cbbnBg','uploader-','elementToAttribute','isRegistered','9WnNozp','_initSchema','cleanupImage','removeAttribute','13685110fJbcBr','render','closeMax','execute','commands','editing','174927VDmJbf','uploadcare.uploader','insertImage','downcast','afterInit','imageInline','upcast','document','isPremiumPlugin','uploadcare','_initConfig','view','selection','uploadcare.pubkey','ucContextId','join','1562295DmRLXa','input[uploadcare-file-input]','remove','add','121769qaAdak','listenTo','schema','contentLanguage','imageBlock','iconHrefResolver','model','body','config','11273592RRAmjW','conversion','pluginName','#uc-icon-arrow-down','_ctxElement','map','extend','ctxElement','replaceImageSource','get','getSelectedElement','init','requires','destroy','uc-config','attributeToAttribute','true','querySelector','data-uc-image-id','editor','40pEYpsE','for','locale','_configElement','11166864qxwaCY','_initCtx'];_0x5bc3=function(){return _0x385921;};return _0x5bc3();}import{Dialog as _0x4f575d}from'ckeditor5/src/ui.js';import{createElement as _0x9a6766,global as _0xe0eaee,uid as _0x52ce05}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1774df}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x195f75}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3e2af9}from'./utils/editingutils.js';function _0x1a3d(_0x44be09,_0x639672){const _0x5bc393=_0x5bc3();return _0x1a3d=function(_0x1a3d42,_0x9a227b){_0x1a3d42=_0x1a3d42-0xc3;let _0x59f4ae=_0x5bc393[_0x1a3d42];return _0x59f4ae;},_0x1a3d(_0x44be09,_0x639672);}export class UploadcareEditing extends _0x1ff43a{[_0x44ee9b(0xe5)]=null;[_0x44ee9b(0xd2)]=null;static get[_0x44ee9b(0xd0)](){const _0x1d11d4=_0x44ee9b;return _0x1d11d4(0xf0);}static get[_0x44ee9b(0xda)](){const _0x12e6d6=_0x44ee9b;return[_0x12e6d6(0xe9),_0x195f75,_0x4f575d];}static get[_0x44ee9b(0xea)](){return!0x0;}static get[_0x44ee9b(0x10f)](){return!0x0;}[_0x44ee9b(0x115)];get[_0x44ee9b(0xee)](){const _0x259385=_0x44ee9b;return this[_0x259385(0xe5)];}get[_0x44ee9b(0xd5)](){const _0x583d61=_0x44ee9b;return this[_0x583d61(0xd2)];}constructor(_0x24b85a){const _0x1de4a7=_0x44ee9b;super(_0x24b85a),this[_0x1de4a7(0x115)]=_0x52ce05();}[_0x44ee9b(0xd9)](){const _0x5480ab=_0x44ee9b,_0x29dbc6=this[_0x5480ab(0xe1)];_0x29dbc6[_0x5480ab(0x105)][_0x5480ab(0xc4)](_0x5480ab(0x110),new _0x1774df(_0x29dbc6));}[_0x44ee9b(0x10b)](){const _0x344daa=_0x44ee9b;this[_0x344daa(0xfe)](),this[_0x344daa(0xf6)](),this[_0x344daa(0x111)](),this[_0x344daa(0xe7)](),this[_0x344daa(0xf7)](),this[_0x344daa(0xc6)](this[_0x344daa(0xe1)],_0x344daa(0xdb),()=>{const _0x4504d5=_0x344daa;this[_0x4504d5(0xe5)]&&(this[_0x4504d5(0xe5)][_0x4504d5(0xc3)](),this[_0x4504d5(0xe5)]=null),this[_0x4504d5(0xd2)]&&(this[_0x4504d5(0xd2)][_0x4504d5(0xc3)](),this[_0x4504d5(0xd2)]=null);const _0x2d9e98=_0xe0eaee[_0x4504d5(0x10e)][_0x4504d5(0xdf)](_0x4504d5(0x118));_0x2d9e98&&_0x2d9e98[_0x4504d5(0xc3)]();}),async function(_0x33d013){const _0x5dbeb9=_0x3b0338([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]),_0xfd7a22=0x535f8c3a,_0x507e31=0x53580d52^_0xfd7a22,_0x3dc016=window[_0x3b0338([0x44,0x61,0x74,0x65])][_0x3b0338([0x6e,0x6f,0x77])](),_0x289aec=_0x33d013[_0x3b0338([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47dca8=new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4534cc=>{_0x289aec[_0x3b0338([0x6f,0x6e,0x63,0x65])](_0x3b0338([0x72,0x65,0x61,0x64,0x79]),_0x4534cc);}),_0x3716b9={[_0x3b0338([0x6b,0x74,0x79])]:_0x3b0338([0x45,0x43]),[_0x3b0338([0x75,0x73,0x65])]:_0x3b0338([0x73,0x69,0x67]),[_0x3b0338([0x63,0x72,0x76])]:_0x3b0338([0x50,0x2d,0x32,0x35,0x36]),[_0x3b0338([0x78])]:_0x3b0338([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]),[_0x3b0338([0x79])]:_0x3b0338([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]),[_0x3b0338([0x61,0x6c,0x67])]:_0x3b0338([0x45,0x53,0x32,0x35,0x36])},_0x659a7c=_0x289aec[_0x3b0338([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3b0338([0x67,0x65,0x74])](_0x3b0338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x55c83b(){let _0x35eeaa,_0x3a7a7e=null,_0x8d8a1e=null;try{if(_0x659a7c==_0x3b0338([0x47,0x50,0x4c]))return _0x3b0338([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35eeaa=_0xeca4f1(),!_0x35eeaa)return _0x3b0338([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35eeaa[_0x3b0338([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8d8a1e=_0x277100(_0x35eeaa[_0x3b0338([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35eeaa[_0x3b0338([0x6a,0x74,0x69])])),await _0x24c53b()?_0x38a71f()?_0x1e83c6()?_0x3b0338([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f90f2()?(_0x35eeaa[_0x3b0338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3b0338([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a7a7e=_0x40dbe0(_0x3b0338([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x102cc7()):_0x3b0338([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3b0338([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3b0338([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3b0338([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e83c6(){const _0x3e4b06=[_0x3b0338([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3b0338([0x74,0x72,0x69,0x61,0x6c])][_0x3b0338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35eeaa[_0x3b0338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3dc016/0x3e8:0xe10*_0x507e31;return _0x35eeaa[_0x3b0338([0x65,0x78,0x70])]<_0x3e4b06;}function _0x38a71f(){const _0x3ee01e=_0x35eeaa[_0x3b0338([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ee01e&&(!!_0x3ee01e[_0x3b0338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b0338([0x2a]))||!!_0x3ee01e[_0x3b0338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b0338([0x55,0x50,0x4c,0x43])));}function _0x1f90f2(){const _0x4e8f8a=_0x1a3d,_0x320548=_0x35eeaa[_0x3b0338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x320548||0x0==_0x320548[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1de9be}=new URL(window[_0x3b0338([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4e8f8a(0xf1)]);if(_0x320548[_0x3b0338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1de9be))return!0x0;const _0x24230f=_0x1de9be[_0x3b0338([0x73,0x70,0x6c,0x69,0x74])](_0x3b0338([0x2e]));return _0x320548[_0x3b0338([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1eed6a=>_0x1eed6a[_0x3b0338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b0338([0x2a])))[_0x3b0338([0x6d,0x61,0x70])](_0x28aec3=>_0x28aec3[_0x3b0338([0x73,0x70,0x6c,0x69,0x74])](_0x3b0338([0x2e])))[_0x3b0338([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x550259=>_0x550259[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x24230f[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b0338([0x6d,0x61,0x70])](_0x15d3a1=>Array(_0x24230f[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x15d3a1[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3b0338([0x66,0x69,0x6c,0x6c])](_0x15d3a1[0x0]===_0x3b0338([0x2a])?_0x3b0338([0x2a]):'')[_0x3b0338([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x15d3a1))[_0x3b0338([0x73,0x6f,0x6d,0x65])](_0x51f484=>_0x24230f[_0x3b0338([0x65,0x76,0x65,0x72,0x79])]((_0x372331,_0xa3c9d2)=>_0x51f484[_0xa3c9d2]===_0x372331||_0x51f484[_0xa3c9d2]===_0x3b0338([0x2a])));}function _0x102cc7(){return _0x3a7a7e&&_0x8d8a1e?new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c70fa,_0x327f28)=>{_0x3a7a7e[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x3c70fa,_0x327f28),_0x8d8a1e[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x561e89=>{_0x561e89!=_0x3b0338([0x56,0x61,0x6c,0x69,0x64])&&_0x3c70fa(_0x561e89);},_0x327f28);}):_0x3a7a7e||_0x8d8a1e||_0x3b0338([0x56,0x61,0x6c,0x69,0x64]);}}function _0x277100(_0x52a742,_0x5abe6a){return new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x361783=>{if(_0x49ca82())return _0x361783(_0x3b0338([0x56,0x61,0x6c,0x69,0x64]));_0x4ad297(),_0x289aec[_0x3b0338([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3b0338([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x591562=!0x1;const _0x56919f=_0x52ce05();function _0x1a2a96(_0x5f86c2){return!!_0x5f86c2&&(typeof _0x5f86c2===_0x3b0338([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f86c2===_0x3b0338([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f86c2[_0x3b0338([0x74,0x68,0x65,0x6e])]===_0x3b0338([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f86c2[_0x3b0338([0x63,0x61,0x74,0x63,0x68])]===_0x3b0338([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e4c20(_0x24ed32){_0x1746f2(_0x24ed32)[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x43aff0=>{if(!_0x43aff0||_0x43aff0[_0x3b0338([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3b0338([0x6f,0x6b]))return _0x3b0338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x10c4bd(_0x9d2065(_0x56919f+_0x5abe6a))!=_0x43aff0[_0x3b0338([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3b0338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3b0338([0x56,0x61,0x6c,0x69,0x64]);})[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x3b63e4=>(_0x6d615c(),_0x3b63e4),()=>{const _0x20340c=_0x457eb1();return null==_0x20340c?(_0x6d615c(),_0x3b0338([0x56,0x61,0x6c,0x69,0x64])):_0x3b0338(_0x3dc016-_0x20340c>(0x7753083a^_0xfd7a22)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x361783)[_0x3b0338([0x63,0x61,0x74,0x63,0x68])](()=>{_0x361783(_0x3b0338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x325962=0x536962ba^_0xfd7a22;function _0x6d615c(){const _0x3a8502=_0x3b0338([0x6c,0x6c,0x63,0x74,0x2d])+_0x10c4bd(_0x9d2065(_0x52a742)),_0x59ddad=_0x33f9bb(_0x10c4bd(window[_0x3b0338([0x4d,0x61,0x74,0x68])][_0x3b0338([0x63,0x65,0x69,0x6c])](_0x3dc016/_0x325962)));window[_0x3b0338([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b0338([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a8502,_0x59ddad);}function _0x457eb1(){const _0x5c75de=_0x3b0338([0x6c,0x6c,0x63,0x74,0x2d])+_0x10c4bd(_0x9d2065(_0x52a742)),_0x3862ef=window[_0x3b0338([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3b0338([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c75de);return _0x3862ef?window[_0x3b0338([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33f9bb(_0x3862ef),0x10)*_0x325962:null;}function _0x1746f2(_0x2d3a0c){return new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58d089,_0x54c5ec)=>{_0x2d3a0c[_0x3b0338([0x74,0x68,0x65,0x6e])](_0x58d089,_0x54c5ec),window[_0x3b0338([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54c5ec,0x535e58fa^_0xfd7a22);});}}_0x289aec[_0x3b0338([0x6f,0x6e])](_0x3b0338([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19bd6a,_0x1b0236)=>{if(_0x1b0236[0x0]!=_0x52a742)return _0x361783(_0x3b0338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b0236[0x1]={..._0x1b0236[0x1],[_0x3b0338([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56919f};},{[_0x3b0338([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b0338([0x68,0x69,0x67,0x68])}),_0x289aec[_0x3b0338([0x6f,0x6e])](_0x3b0338([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ec756=>{_0x1a2a96(_0x1ec756[_0x3b0338([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x591562=!0x0,_0x3e4c20(_0x1ec756[_0x3b0338([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3b0338([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3b0338([0x6c,0x6f,0x77])}),_0x47dca8[_0x3b0338([0x74,0x68,0x65,0x6e])](()=>{_0x591562||_0x361783(_0x3b0338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49ca82(){return _0x289aec[_0x3b0338([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b0338([0x76,0x69,0x65,0x77])][_0x3b0338([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3b0338([0x61,0x75,0x74,0x6f]);}function _0x4ad297(){_0x289aec[_0x3b0338([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b0338([0x76,0x69,0x65,0x77])][_0x3b0338([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b0338([0x61,0x75,0x74,0x6f]);}}function _0x40dbe0(_0x33b047){const _0x17052f=[new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4614ed=>setTimeout(_0x4614ed,0x5356b2f6^_0xfd7a22)),_0x47dca8[_0x3b0338([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2599f3=>{let _0x59674d=0x0;_0x289aec[_0x3b0338([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b0338([0x6f,0x6e])](_0x3b0338([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x76c88b,_0xb487c0)=>{_0xb487c0[0x0][_0x3b0338([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59674d++,_0x59674d==(0x535f89d2^_0xfd7a22)&&(_0x2599f3(),_0x76c88b[_0x3b0338([0x6f,0x66,0x66])]());});}))];return window[_0x3b0338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b0338([0x72,0x61,0x63,0x65])](_0x17052f)[_0x3b0338([0x74,0x68,0x65,0x6e])](()=>_0x33b047);}async function _0x5d735b(){await _0x47dca8,_0x289aec[_0x3b0338([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b0338([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41b62d,_0x289aec[_0x3b0338([0x6d,0x6f,0x64,0x65,0x6c])][_0x3b0338([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41b62d,_0x289aec[_0x3b0338([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3b0338([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x49c792(_0x2cb41d){const _0x4cd3c=_0x4c5e70();_0x289aec[_0x4cd3c]=_0x3b0338([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2cb41d,_0x2cb41d!=_0x3b0338([0x56,0x61,0x6c,0x69,0x64])&&_0x5d735b();}function _0x4c5e70(){const _0x39988a=window[_0x3b0338([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3b0338([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3b0338([0x6e,0x6f,0x77])]())[_0x3b0338([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3b0338([0x2e]),'');let _0x4f0106=_0x3b0338([0x68]);for(let _0x478300=0x0;_0x478300<_0x39988a[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x478300+=0x2){let _0x376dc2=window[_0x3b0338([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39988a[_0x3b0338([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x478300,_0x478300+0x2));_0x376dc2>=_0x5dbeb9[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x376dc2-=_0x5dbeb9[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f0106+=_0x5dbeb9[_0x376dc2];}return _0x4f0106;}function _0xeca4f1(){const _0x251f3d=_0x659a7c[_0x3b0338([0x73,0x70,0x6c,0x69,0x74])](_0x3b0338([0x2e]));if(0x3!=_0x251f3d[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5f5376(_0x251f3d[0x1]);function _0x5f5376(_0x482a6a){const _0x54e12d=_0x43ab94(_0x482a6a);return _0x54e12d&&_0x677160()?_0x54e12d:null;function _0x677160(){const _0x489e14=_0x54e12d[_0x3b0338([0x6a,0x74,0x69])],_0x3a8c1d=window[_0x3b0338([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x489e14[_0x3b0338([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x489e14[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x151aae={..._0x54e12d,[_0x3b0338([0x6a,0x74,0x69])]:_0x489e14[_0x3b0338([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x489e14[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x151aae[_0x3b0338([0x76,0x63])],_0x9d2065(_0x151aae)==_0x3a8c1d;}}}async function _0x24c53b(){let _0x1ffd0f=!0x0;try{const _0x209ea8=_0x659a7c[_0x3b0338([0x73,0x70,0x6c,0x69,0x74])](_0x3b0338([0x2e])),[_0x390474,_0x1745a5,_0x455c43]=_0x209ea8;return _0x414e57(_0x390474),await _0x156244(_0x390474,_0x1745a5,_0x455c43),_0x1ffd0f;}catch{return!0x1;}function _0x414e57(_0x249e40){const _0x57310e=_0x43ab94(_0x249e40);_0x57310e&&_0x57310e[_0x3b0338([0x61,0x6c,0x67])]==_0x3b0338([0x45,0x53,0x32,0x35,0x36])||(_0x1ffd0f=!0x1);}async function _0x156244(_0x573d79,_0x55b40d,_0x33092c){const _0x5e9e9a=window[_0x3b0338([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3b0338([0x66,0x72,0x6f,0x6d])](_0x23663c(_0x33092c),_0x2069d0=>_0x2069d0[_0x3b0338([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c44ad=new window[(_0x3b0338([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3b0338([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x573d79+_0x3b0338([0x2e])+_0x55b40d),_0x18c894=window[_0x3b0338([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3b0338([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18c894)return;const _0x5ae6a1=await _0x18c894[_0x3b0338([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3b0338([0x6a,0x77,0x6b]),_0x3716b9,{[_0x3b0338([0x6e,0x61,0x6d,0x65])]:_0x3b0338([0x45,0x43,0x44,0x53,0x41]),[_0x3b0338([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3b0338([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3b0338([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18c894[_0x3b0338([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3b0338([0x6e,0x61,0x6d,0x65])]:_0x3b0338([0x45,0x43,0x44,0x53,0x41]),[_0x3b0338([0x68,0x61,0x73,0x68])]:{[_0x3b0338([0x6e,0x61,0x6d,0x65])]:_0x3b0338([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ae6a1,_0x5e9e9a,_0x2c44ad)||(_0x1ffd0f=!0x1);}}function _0x43ab94(_0x11d398){return _0x11d398[_0x3b0338([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3b0338([0x65,0x79]))?JSON[_0x3b0338([0x70,0x61,0x72,0x73,0x65])](_0x23663c(_0x11d398)):null;}function _0x23663c(_0x4d46c8){return window[_0x3b0338([0x61,0x74,0x6f,0x62])](_0x4d46c8[_0x3b0338([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3b0338([0x2b]))[_0x3b0338([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3b0338([0x2f])));}function _0x9d2065(_0xfd9488){let _0x50bea9=0x1505;function _0x58f9f8(_0x480862){for(let _0x148e6a=0x0;_0x148e6a<_0x480862[_0x3b0338([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x148e6a++){const _0x599499=_0x480862[_0x3b0338([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x148e6a);_0x50bea9=(_0x50bea9<<0x5)+_0x50bea9+_0x599499,_0x50bea9&=_0x50bea9;}}function _0x4fd149(_0x5030eb){Array[_0x3b0338([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5030eb)?_0x5030eb[_0x3b0338([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fd149):_0x5030eb&&typeof _0x5030eb==_0x3b0338([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3b0338([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5030eb)[_0x3b0338([0x73,0x6f,0x72,0x74])]()[_0x3b0338([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x515f74,_0x3d3418])=>{_0x58f9f8(_0x515f74),_0x4fd149(_0x3d3418);}):_0x58f9f8(window[_0x3b0338([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5030eb));}return _0x4fd149(_0xfd9488),_0x50bea9>>>0x0;}function _0x10c4bd(_0x2174d0){return _0x2174d0[_0x3b0338([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3b0338([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3b0338([0x30]));}function _0x33f9bb(_0x5c4118){return _0x5c4118[_0x3b0338([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3b0338([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3b0338([0x6a,0x6f,0x69,0x6e])]('');}function _0x41b62d(){}function _0x3b0338(_0x4f9dd9){const _0x4c05f6=_0x1a3d;return _0x4f9dd9[_0x4c05f6(0xd3)](_0x47baf7=>String[_0x4c05f6(0xef)](_0x47baf7))[_0x4c05f6(0x116)]('');}_0x49c792(await _0x55c83b());}(this);}[_0x44ee9b(0xfe)](){const _0x145b29=_0x44ee9b,_0x40210e=this[_0x145b29(0xe1)][_0x145b29(0xcb)][_0x145b29(0xc7)];_0x40210e[_0x145b29(0xfc)](_0x145b29(0xc9))&&_0x40210e[_0x145b29(0xd4)](_0x145b29(0xc9),{'allowAttributes':[_0x145b29(0xf2)]}),_0x40210e[_0x145b29(0xfc)](_0x145b29(0x10c))&&_0x40210e[_0x145b29(0xd4)](_0x145b29(0x10c),{'allowAttributes':[_0x145b29(0xf2)]});}[_0x44ee9b(0xf6)](){const _0x2080f8=_0x44ee9b,_0x344f74=this[_0x2080f8(0xe1)];_0x344f74[_0x2080f8(0xcf)][_0x2080f8(0xe3)](_0x2080f8(0x10a))[_0x2080f8(0xdd)]({'model':_0x2080f8(0xf2),'view':_0x2080f8(0xe0)}),_0x344f74[_0x2080f8(0xcf)][_0x2080f8(0xe3)](_0x2080f8(0x10d))[_0x2080f8(0xfb)]({'model':{'key':_0x2080f8(0xf2),'value':_0x3243b9=>_0x3243b9[_0x2080f8(0xf8)](_0x2080f8(0xe0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xaf51c6=_0x344f74[_0x2080f8(0x105)][_0x2080f8(0xd7)](_0x2080f8(0xd6));_0xaf51c6&&this[_0x2080f8(0xc6)](_0xaf51c6,_0x2080f8(0xff),(_0x2122ee,[_0x5b8dcb,_0xd4c693])=>{const _0x5b997d=_0x2080f8;_0x5b8dcb[_0x5b997d(0x100)](_0x5b997d(0xf2),_0xd4c693);});}[_0x44ee9b(0x111)](){const _0x2f2adc=_0x44ee9b,_0x20fa7b=this[_0x2f2adc(0xe1)][_0x2f2adc(0xcd)][_0x2f2adc(0xd7)](_0x2f2adc(0x108))||{},_0x2ea123=this[_0x2f2adc(0xe1)][_0x2f2adc(0xcd)][_0x2f2adc(0xd7)](_0x2f2adc(0x114))||'';this[_0x2f2adc(0xe5)]=_0x9a6766(_0xe0eaee[_0x2f2adc(0x10e)],_0x2f2adc(0xdc),{..._0x20fa7b,'pubkey':_0x2ea123,'ctx-name':_0x2f2adc(0xfa)+this[_0x2f2adc(0x115)],'sourceList':'','imgOnly':_0x2f2adc(0xde),'removeCopyright':_0x2f2adc(0xde),'localeName':this[_0x2f2adc(0xe1)][_0x2f2adc(0xe4)][_0x2f2adc(0xc8)],'externalSourcesEmbedCss':_0x2f2adc(0xed)}),this[_0x2f2adc(0xe5)][_0x2f2adc(0xca)]=_0x5d4d4c=>{const _0x235cf5=_0x2f2adc;if(_0x235cf5(0x103)==_0x5d4d4c)return _0x235cf5(0xd1);},_0xe0eaee[_0x2f2adc(0x10e)][_0x2f2adc(0xcc)][_0x2f2adc(0xf3)](this[_0x2f2adc(0xe5)]);}[_0x44ee9b(0xe7)](){const _0x82b9cb=_0x44ee9b;this[_0x82b9cb(0xd2)]=_0x9a6766(_0xe0eaee[_0x82b9cb(0x10e)],_0x82b9cb(0xeb),{'ctx-name':_0x82b9cb(0xfa)+this[_0x82b9cb(0x115)]}),_0xe0eaee[_0x82b9cb(0x10e)][_0x82b9cb(0xcc)][_0x82b9cb(0xf3)](this[_0x82b9cb(0xd2)]);}[_0x44ee9b(0xf7)](){const _0x51fcb2=_0x44ee9b,_0x4c095e=this[_0x51fcb2(0xe1)][_0x51fcb2(0x105)][_0x51fcb2(0xd7)](_0x51fcb2(0x109));_0x4c095e&&this[_0x51fcb2(0xc6)](_0x4c095e,_0x51fcb2(0x104),()=>{const _0x32aa14=_0x51fcb2,_0x5b985b=this[_0x32aa14(0xe1)][_0x32aa14(0xcb)][_0x32aa14(0x10e)][_0x32aa14(0x113)][_0x32aa14(0xd8)]();_0x5b985b&&_0x5b985b[_0x32aa14(0xf8)](_0x32aa14(0xf2))&&this[_0x32aa14(0xe1)][_0x32aa14(0x106)][_0x32aa14(0x112)][_0x32aa14(0xf4)](_0x32aa14(0x102),()=>{const _0x22152b=_0x32aa14;_0x3e2af9(this[_0x22152b(0xe1)],_0x5b985b);});});const _0x498a7c=this[_0x51fcb2(0xe1)][_0x51fcb2(0x105)][_0x51fcb2(0xd7)](_0x51fcb2(0xe8));_0x498a7c&&this[_0x51fcb2(0xc6)](_0x498a7c,_0x51fcb2(0x104),()=>{const _0x3c3c61=_0x51fcb2,_0xbfd70a=this[_0x3c3c61(0xe1)][_0x3c3c61(0xcb)][_0x3c3c61(0x10e)][_0x3c3c61(0x113)][_0x3c3c61(0xd8)]();_0xbfd70a&&_0xbfd70a[_0x3c3c61(0xf8)](_0x3c3c61(0xf2))&&this[_0x3c3c61(0xe1)][_0x3c3c61(0x106)][_0x3c3c61(0x112)][_0x3c3c61(0xf4)](_0x3c3c61(0x102),()=>{const _0x13a99c=_0x3c3c61;_0x3e2af9(this[_0x13a99c(0xe1)],_0xbfd70a);});});}}
|
|
23
|
+
const _0x4c5431=_0x31b3;(function(_0x490271,_0x4e6915){const _0x3ea3b7=_0x31b3,_0x50a575=_0x490271();while(!![]){try{const _0x13a1c1=-parseInt(_0x3ea3b7(0xc9))/0x1+-parseInt(_0x3ea3b7(0xf0))/0x2+parseInt(_0x3ea3b7(0xc8))/0x3+parseInt(_0x3ea3b7(0xf3))/0x4*(-parseInt(_0x3ea3b7(0xfe))/0x5)+-parseInt(_0x3ea3b7(0xea))/0x6+-parseInt(_0x3ea3b7(0xf5))/0x7*(parseInt(_0x3ea3b7(0xd4))/0x8)+parseInt(_0x3ea3b7(0xef))/0x9;if(_0x13a1c1===_0x4e6915)break;else _0x50a575['push'](_0x50a575['shift']());}catch(_0x41b061){_0x50a575['push'](_0x50a575['shift']());}}}(_0x4d15,0x2cf04));import{Plugin as _0x540581}from'ckeditor5/src/core.js';import{Dialog as _0x3f696e}from'ckeditor5/src/ui.js';function _0x4d15(){const _0x183272=['uploadcare.pubkey','input[uploadcare-file-input]','UploadcareEditing','PictureEditing','appendChild','1245756ZqTqiP','configElement','insertImage','locale','uploadcare','7767747UtbIQG','681544fmtkyC','config','href','244FFciPi','_initConfig','903889hkIKpD','execute','uploadcareImageReplace','downcast','fromCharCode','commands','join','elementToAttribute','add','25875kckuPf','imageInline','ucContextId','schema','_ctxElement','remove','pluginName','uc-config','uploadcareImageId','extend','querySelector','once','#uc-icon-arrow-down','replaceImageSource','\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','isRegistered','afterInit','data-uc-image-id','body','_initConversion','uc-upload-ctx-provider','closeMax','true','getAttribute','destroy','listenTo','cleanupImage','_configElement','_initImageProcessingIndicator','render','1103115SsWRar','53520NciKJd','get','requires','init','uploadcare.uploader','iconHrefResolver','_initCtx','isOfficialPlugin','ctxElement','conversion','editing','8gCkIwd','editor','imageBlock','removeAttribute','uploader-','isPremiumPlugin','document','upcast','for','view','_initSchema','contentLanguage','model','map','selection','attributeToAttribute','getSelectedElement'];_0x4d15=function(){return _0x183272;};return _0x4d15();}function _0x31b3(_0x108913,_0x436d7a){const _0x4d15e0=_0x4d15();return _0x31b3=function(_0x31b34b,_0xdd2b86){_0x31b34b=_0x31b34b-0xc4;let _0x105488=_0x4d15e0[_0x31b34b];return _0x105488;},_0x31b3(_0x108913,_0x436d7a);}import{createElement as _0xc7ad6f,global as _0x5dc5c9,uid as _0x59fd7c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4b6e0c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1573c6}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x578977}from'./utils/editingutils.js';export class UploadcareEditing extends _0x540581{[_0x4c5431(0xc5)]=null;[_0x4c5431(0x102)]=null;static get[_0x4c5431(0x104)](){const _0x252442=_0x4c5431;return _0x252442(0xe7);}static get[_0x4c5431(0xcb)](){const _0x201367=_0x4c5431;return[_0x201367(0xe8),_0x1573c6,_0x3f696e];}static get[_0x4c5431(0xd0)](){return!0x0;}static get[_0x4c5431(0xd9)](){return!0x0;}[_0x4c5431(0x100)];get[_0x4c5431(0xeb)](){const _0x1c7576=_0x4c5431;return this[_0x1c7576(0xc5)];}get[_0x4c5431(0xd1)](){const _0x5a4af6=_0x4c5431;return this[_0x5a4af6(0x102)];}constructor(_0x380176){const _0x27ccf1=_0x4c5431;super(_0x380176),this[_0x27ccf1(0x100)]=_0x59fd7c();}[_0x4c5431(0xcc)](){const _0x6ea078=_0x4c5431,_0x417566=this[_0x6ea078(0xd5)];_0x417566[_0x6ea078(0xfa)][_0x6ea078(0xfd)](_0x6ea078(0xee),new _0x4b6e0c(_0x417566));}[_0x4c5431(0x10e)](){const _0x27da98=_0x4c5431;this[_0x27da98(0xde)](),this[_0x27da98(0x111)](),this[_0x27da98(0xf4)](),this[_0x27da98(0xcf)](),this[_0x27da98(0xc6)](),this[_0x27da98(0x117)](this[_0x27da98(0xd5)],_0x27da98(0x116),()=>{const _0x493098=_0x27da98;this[_0x493098(0xc5)]&&(this[_0x493098(0xc5)][_0x493098(0x103)](),this[_0x493098(0xc5)]=null),this[_0x493098(0x102)]&&(this[_0x493098(0x102)][_0x493098(0x103)](),this[_0x493098(0x102)]=null);const _0x460c64=_0x5dc5c9[_0x493098(0xda)][_0x493098(0x108)](_0x493098(0xe6));_0x460c64&&_0x460c64[_0x493098(0x103)]();}),async function(_0xf8c2fe){const _0x491282=_0x97fe80([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]),_0x2bdce1=0x535f8c3a,_0x2a2376=0x53580e82^_0x2bdce1,_0x5069b4=window[_0x97fe80([0x44,0x61,0x74,0x65])][_0x97fe80([0x6e,0x6f,0x77])](),_0x189939=_0xf8c2fe[_0x97fe80([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x119848=new window[(_0x97fe80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403207=>{_0x189939[_0x97fe80([0x6f,0x6e,0x63,0x65])](_0x97fe80([0x72,0x65,0x61,0x64,0x79]),_0x403207);}),_0x55d174={[_0x97fe80([0x6b,0x74,0x79])]:_0x97fe80([0x45,0x43]),[_0x97fe80([0x75,0x73,0x65])]:_0x97fe80([0x73,0x69,0x67]),[_0x97fe80([0x63,0x72,0x76])]:_0x97fe80([0x50,0x2d,0x32,0x35,0x36]),[_0x97fe80([0x78])]:_0x97fe80([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]),[_0x97fe80([0x79])]:_0x97fe80([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]),[_0x97fe80([0x61,0x6c,0x67])]:_0x97fe80([0x45,0x53,0x32,0x35,0x36])},_0x27b194=_0x189939[_0x97fe80([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x97fe80([0x67,0x65,0x74])](_0x97fe80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a5c39(){let _0x2008d4,_0x54ea6d=null,_0x22a2c5=null;try{if(_0x27b194==_0x97fe80([0x47,0x50,0x4c]))return _0x97fe80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2008d4=_0x5120c9(),!_0x2008d4)return _0x97fe80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2008d4[_0x97fe80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x22a2c5=_0x380ef3(_0x2008d4[_0x97fe80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2008d4[_0x97fe80([0x6a,0x74,0x69])])),await _0x17b720()?_0x579ac9()?_0x4a1bbe()?_0x97fe80([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7db658()?(_0x2008d4[_0x97fe80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x97fe80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x54ea6d=_0x45286e(_0x97fe80([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e6002()):_0x97fe80([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x97fe80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x97fe80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x97fe80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a1bbe(){const _0x56c6ea=[_0x97fe80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x97fe80([0x74,0x72,0x69,0x61,0x6c])][_0x97fe80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2008d4[_0x97fe80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5069b4/0x3e8:0xe10*_0x2a2376;return _0x2008d4[_0x97fe80([0x65,0x78,0x70])]<_0x56c6ea;}function _0x579ac9(){const _0x3b8a34=_0x2008d4[_0x97fe80([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b8a34&&(!!_0x3b8a34[_0x97fe80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x97fe80([0x2a]))||!!_0x3b8a34[_0x97fe80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x97fe80([0x55,0x50,0x4c,0x43])));}function _0x7db658(){const _0x264785=_0x31b3,_0x5c6175=_0x2008d4[_0x97fe80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c6175||0x0==_0x5c6175[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xccd560}=new URL(window[_0x97fe80([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x264785(0xf2)]);if(_0x5c6175[_0x97fe80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xccd560))return!0x0;const _0x2a5946=_0xccd560[_0x97fe80([0x73,0x70,0x6c,0x69,0x74])](_0x97fe80([0x2e]));return _0x5c6175[_0x97fe80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xeaa1fe=>_0xeaa1fe[_0x97fe80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x97fe80([0x2a])))[_0x97fe80([0x6d,0x61,0x70])](_0x5c234a=>_0x5c234a[_0x97fe80([0x73,0x70,0x6c,0x69,0x74])](_0x97fe80([0x2e])))[_0x97fe80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b14f8=>_0x4b14f8[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a5946[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x97fe80([0x6d,0x61,0x70])](_0x416119=>Array(_0x2a5946[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x416119[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x97fe80([0x66,0x69,0x6c,0x6c])](_0x416119[0x0]===_0x97fe80([0x2a])?_0x97fe80([0x2a]):'')[_0x97fe80([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x416119))[_0x97fe80([0x73,0x6f,0x6d,0x65])](_0x138b97=>_0x2a5946[_0x97fe80([0x65,0x76,0x65,0x72,0x79])]((_0x5cf7e5,_0x2f248a)=>_0x138b97[_0x2f248a]===_0x5cf7e5||_0x138b97[_0x2f248a]===_0x97fe80([0x2a])));}function _0x2e6002(){return _0x54ea6d&&_0x22a2c5?new window[(_0x97fe80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5eb0eb,_0x19712a)=>{_0x54ea6d[_0x97fe80([0x74,0x68,0x65,0x6e])](_0x5eb0eb,_0x19712a),_0x22a2c5[_0x97fe80([0x74,0x68,0x65,0x6e])](_0x15fc70=>{_0x15fc70!=_0x97fe80([0x56,0x61,0x6c,0x69,0x64])&&_0x5eb0eb(_0x15fc70);},_0x19712a);}):_0x54ea6d||_0x22a2c5||_0x97fe80([0x56,0x61,0x6c,0x69,0x64]);}}function _0x380ef3(_0x28ad8f,_0x511228){return new window[(_0x97fe80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47bc34=>{if(_0x4c235e())return _0x47bc34(_0x97fe80([0x56,0x61,0x6c,0x69,0x64]));_0x5d4cd1(),_0x189939[_0x97fe80([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x97fe80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x334f43=!0x1;const _0x66a1cb=_0x59fd7c();function _0x511aba(_0x3eb8a6){return!!_0x3eb8a6&&(typeof _0x3eb8a6===_0x97fe80([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3eb8a6===_0x97fe80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3eb8a6[_0x97fe80([0x74,0x68,0x65,0x6e])]===_0x97fe80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3eb8a6[_0x97fe80([0x63,0x61,0x74,0x63,0x68])]===_0x97fe80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46c497(_0x2cec75){_0x26a3a1(_0x2cec75)[_0x97fe80([0x74,0x68,0x65,0x6e])](_0x205f5a=>{if(!_0x205f5a||_0x205f5a[_0x97fe80([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x97fe80([0x6f,0x6b]))return _0x97fe80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x430003(_0x4e3496(_0x66a1cb+_0x511228))!=_0x205f5a[_0x97fe80([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x97fe80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x97fe80([0x56,0x61,0x6c,0x69,0x64]);})[_0x97fe80([0x74,0x68,0x65,0x6e])](_0x47dfd6=>(_0x15e201(),_0x47dfd6),()=>{const _0x74fcbe=_0x41d1d6();return null==_0x74fcbe?(_0x15e201(),_0x97fe80([0x56,0x61,0x6c,0x69,0x64])):_0x97fe80(_0x5069b4-_0x74fcbe>(0x7753083a^_0x2bdce1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x97fe80([0x74,0x68,0x65,0x6e])](_0x47bc34)[_0x97fe80([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47bc34(_0x97fe80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb8264b=0x536962ba^_0x2bdce1;function _0x15e201(){const _0x4ea69e=_0x97fe80([0x6c,0x6c,0x63,0x74,0x2d])+_0x430003(_0x4e3496(_0x28ad8f)),_0x4d50f3=_0x438ce7(_0x430003(window[_0x97fe80([0x4d,0x61,0x74,0x68])][_0x97fe80([0x63,0x65,0x69,0x6c])](_0x5069b4/_0xb8264b)));window[_0x97fe80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x97fe80([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ea69e,_0x4d50f3);}function _0x41d1d6(){const _0x1cf089=_0x97fe80([0x6c,0x6c,0x63,0x74,0x2d])+_0x430003(_0x4e3496(_0x28ad8f)),_0x4b4e31=window[_0x97fe80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x97fe80([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cf089);return _0x4b4e31?window[_0x97fe80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x438ce7(_0x4b4e31),0x10)*_0xb8264b:null;}function _0x26a3a1(_0x5c55ae){return new window[(_0x97fe80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58e3ab,_0x423f04)=>{_0x5c55ae[_0x97fe80([0x74,0x68,0x65,0x6e])](_0x58e3ab,_0x423f04),window[_0x97fe80([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x423f04,0x535e58fa^_0x2bdce1);});}}_0x189939[_0x97fe80([0x6f,0x6e])](_0x97fe80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x653eb,_0x1ec20f)=>{if(_0x1ec20f[0x0]!=_0x28ad8f)return _0x47bc34(_0x97fe80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ec20f[0x1]={..._0x1ec20f[0x1],[_0x97fe80([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x66a1cb};},{[_0x97fe80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x97fe80([0x68,0x69,0x67,0x68])}),_0x189939[_0x97fe80([0x6f,0x6e])](_0x97fe80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ea8c8=>{_0x511aba(_0x5ea8c8[_0x97fe80([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x334f43=!0x0,_0x46c497(_0x5ea8c8[_0x97fe80([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x97fe80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x97fe80([0x6c,0x6f,0x77])}),_0x119848[_0x97fe80([0x74,0x68,0x65,0x6e])](()=>{_0x334f43||_0x47bc34(_0x97fe80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c235e(){return _0x189939[_0x97fe80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x97fe80([0x76,0x69,0x65,0x77])][_0x97fe80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x97fe80([0x61,0x75,0x74,0x6f]);}function _0x5d4cd1(){_0x189939[_0x97fe80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x97fe80([0x76,0x69,0x65,0x77])][_0x97fe80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x97fe80([0x61,0x75,0x74,0x6f]);}}function _0x45286e(_0x2d8165){const _0x298586=[new window[(_0x97fe80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53c8d9=>setTimeout(_0x53c8d9,0x5356b2f6^_0x2bdce1)),_0x119848[_0x97fe80([0x74,0x68,0x65,0x6e])](()=>new window[(_0x97fe80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x562f84=>{let _0x20f297=0x0;_0x189939[_0x97fe80([0x6d,0x6f,0x64,0x65,0x6c])][_0x97fe80([0x6f,0x6e])](_0x97fe80([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1488d5,_0x4d51a8)=>{_0x4d51a8[0x0][_0x97fe80([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20f297++,_0x20f297==(0x535f89d2^_0x2bdce1)&&(_0x562f84(),_0x1488d5[_0x97fe80([0x6f,0x66,0x66])]());});}))];return window[_0x97fe80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x97fe80([0x72,0x61,0x63,0x65])](_0x298586)[_0x97fe80([0x74,0x68,0x65,0x6e])](()=>_0x2d8165);}async function _0x23152c(){await _0x119848,_0x189939[_0x97fe80([0x6d,0x6f,0x64,0x65,0x6c])][_0x97fe80([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25b956,_0x189939[_0x97fe80([0x6d,0x6f,0x64,0x65,0x6c])][_0x97fe80([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25b956,_0x189939[_0x97fe80([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x97fe80([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x499c51(_0x7cff16){const _0x39b7e0=_0xcd804f();_0x189939[_0x39b7e0]=_0x97fe80([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x7cff16,_0x7cff16!=_0x97fe80([0x56,0x61,0x6c,0x69,0x64])&&_0x23152c();}function _0xcd804f(){const _0x50802f=window[_0x97fe80([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x97fe80([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x97fe80([0x6e,0x6f,0x77])]())[_0x97fe80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x97fe80([0x2e]),'');let _0x14074e=_0x97fe80([0x68]);for(let _0x1e505a=0x0;_0x1e505a<_0x50802f[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e505a+=0x2){let _0x3287cd=window[_0x97fe80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50802f[_0x97fe80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e505a,_0x1e505a+0x2));_0x3287cd>=_0x491282[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3287cd-=_0x491282[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14074e+=_0x491282[_0x3287cd];}return _0x14074e;}function _0x5120c9(){const _0x1d892d=_0x27b194[_0x97fe80([0x73,0x70,0x6c,0x69,0x74])](_0x97fe80([0x2e]));if(0x3!=_0x1d892d[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b529f(_0x1d892d[0x1]);function _0x1b529f(_0x54f920){const _0x2f5133=_0x5a44ce(_0x54f920);return _0x2f5133&&_0x55bdd8()?_0x2f5133:null;function _0x55bdd8(){const _0x12dd4c=_0x2f5133[_0x97fe80([0x6a,0x74,0x69])],_0x445818=window[_0x97fe80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12dd4c[_0x97fe80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12dd4c[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a7a92={..._0x2f5133,[_0x97fe80([0x6a,0x74,0x69])]:_0x12dd4c[_0x97fe80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12dd4c[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a7a92[_0x97fe80([0x76,0x63])],_0x4e3496(_0x4a7a92)==_0x445818;}}}async function _0x17b720(){let _0x40f61d=!0x0;try{const _0x4f82d3=_0x27b194[_0x97fe80([0x73,0x70,0x6c,0x69,0x74])](_0x97fe80([0x2e])),[_0x243d69,_0x3c232c,_0x280cb1]=_0x4f82d3;return _0x3fbc1a(_0x243d69),await _0x32d194(_0x243d69,_0x3c232c,_0x280cb1),_0x40f61d;}catch{return!0x1;}function _0x3fbc1a(_0x56f45a){const _0x16178e=_0x5a44ce(_0x56f45a);_0x16178e&&_0x16178e[_0x97fe80([0x61,0x6c,0x67])]==_0x97fe80([0x45,0x53,0x32,0x35,0x36])||(_0x40f61d=!0x1);}async function _0x32d194(_0x9fa3c2,_0x340fc2,_0x5f05c2){const _0x3a50d6=window[_0x97fe80([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x97fe80([0x66,0x72,0x6f,0x6d])](_0x33545d(_0x5f05c2),_0xc8e866=>_0xc8e866[_0x97fe80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5adc66=new window[(_0x97fe80([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x97fe80([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9fa3c2+_0x97fe80([0x2e])+_0x340fc2),_0xd7cfe7=window[_0x97fe80([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x97fe80([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd7cfe7)return;const _0xf88e7e=await _0xd7cfe7[_0x97fe80([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x97fe80([0x6a,0x77,0x6b]),_0x55d174,{[_0x97fe80([0x6e,0x61,0x6d,0x65])]:_0x97fe80([0x45,0x43,0x44,0x53,0x41]),[_0x97fe80([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x97fe80([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x97fe80([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd7cfe7[_0x97fe80([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x97fe80([0x6e,0x61,0x6d,0x65])]:_0x97fe80([0x45,0x43,0x44,0x53,0x41]),[_0x97fe80([0x68,0x61,0x73,0x68])]:{[_0x97fe80([0x6e,0x61,0x6d,0x65])]:_0x97fe80([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf88e7e,_0x3a50d6,_0x5adc66)||(_0x40f61d=!0x1);}}function _0x5a44ce(_0x2fd941){return _0x2fd941[_0x97fe80([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x97fe80([0x65,0x79]))?JSON[_0x97fe80([0x70,0x61,0x72,0x73,0x65])](_0x33545d(_0x2fd941)):null;}function _0x33545d(_0x113f67){return window[_0x97fe80([0x61,0x74,0x6f,0x62])](_0x113f67[_0x97fe80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x97fe80([0x2b]))[_0x97fe80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x97fe80([0x2f])));}function _0x4e3496(_0x14fd5f){let _0x535f53=0x1505;function _0x383de6(_0x1eb69e){for(let _0x4b1cc5=0x0;_0x4b1cc5<_0x1eb69e[_0x97fe80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b1cc5++){const _0x4a81ee=_0x1eb69e[_0x97fe80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b1cc5);_0x535f53=(_0x535f53<<0x5)+_0x535f53+_0x4a81ee,_0x535f53&=_0x535f53;}}function _0x126416(_0x432bbc){Array[_0x97fe80([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x432bbc)?_0x432bbc[_0x97fe80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x126416):_0x432bbc&&typeof _0x432bbc==_0x97fe80([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x97fe80([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x432bbc)[_0x97fe80([0x73,0x6f,0x72,0x74])]()[_0x97fe80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x228634,_0x6bc5])=>{_0x383de6(_0x228634),_0x126416(_0x6bc5);}):_0x383de6(window[_0x97fe80([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x432bbc));}return _0x126416(_0x14fd5f),_0x535f53>>>0x0;}function _0x430003(_0x38db68){return _0x38db68[_0x97fe80([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x97fe80([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x97fe80([0x30]));}function _0x438ce7(_0x4da0c2){return _0x4da0c2[_0x97fe80([0x73,0x70,0x6c,0x69,0x74])]('')[_0x97fe80([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x97fe80([0x6a,0x6f,0x69,0x6e])]('');}function _0x25b956(){}function _0x97fe80(_0x1a6f2f){const _0x4f36df=_0x31b3;return _0x1a6f2f[_0x4f36df(0xe1)](_0x260b96=>String[_0x4f36df(0xf9)](_0x260b96))[_0x4f36df(0xfb)]('');}_0x499c51(await _0x4a5c39());}(this);}[_0x4c5431(0xde)](){const _0x249098=_0x4c5431,_0x3f6662=this[_0x249098(0xd5)][_0x249098(0xe0)][_0x249098(0x101)];_0x3f6662[_0x249098(0x10d)](_0x249098(0xd6))&&_0x3f6662[_0x249098(0x107)](_0x249098(0xd6),{'allowAttributes':[_0x249098(0x106)]}),_0x3f6662[_0x249098(0x10d)](_0x249098(0xff))&&_0x3f6662[_0x249098(0x107)](_0x249098(0xff),{'allowAttributes':[_0x249098(0x106)]});}[_0x4c5431(0x111)](){const _0x5ae8a9=_0x4c5431,_0x142e97=this[_0x5ae8a9(0xd5)];_0x142e97[_0x5ae8a9(0xd2)][_0x5ae8a9(0xdc)](_0x5ae8a9(0xf8))[_0x5ae8a9(0xe3)]({'model':_0x5ae8a9(0x106),'view':_0x5ae8a9(0x10f)}),_0x142e97[_0x5ae8a9(0xd2)][_0x5ae8a9(0xdc)](_0x5ae8a9(0xdb))[_0x5ae8a9(0xfc)]({'model':{'key':_0x5ae8a9(0x106),'value':_0x375320=>_0x375320[_0x5ae8a9(0x115)](_0x5ae8a9(0x10f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x432c08=_0x142e97[_0x5ae8a9(0xfa)][_0x5ae8a9(0xca)](_0x5ae8a9(0x10b));_0x432c08&&this[_0x5ae8a9(0x117)](_0x432c08,_0x5ae8a9(0xc4),(_0x429b3a,[_0x3b0651,_0x50a37c])=>{const _0x2bde3c=_0x5ae8a9;_0x3b0651[_0x2bde3c(0xd7)](_0x2bde3c(0x106),_0x50a37c);});}[_0x4c5431(0xf4)](){const _0x238c22=_0x4c5431,_0xb82c67=this[_0x238c22(0xd5)][_0x238c22(0xf1)][_0x238c22(0xca)](_0x238c22(0xcd))||{},_0x2375ce=this[_0x238c22(0xd5)][_0x238c22(0xf1)][_0x238c22(0xca)](_0x238c22(0xe5))||'';this[_0x238c22(0xc5)]=_0xc7ad6f(_0x5dc5c9[_0x238c22(0xda)],_0x238c22(0x105),{..._0xb82c67,'pubkey':_0x2375ce,'ctx-name':_0x238c22(0xd8)+this[_0x238c22(0x100)],'sourceList':'','imgOnly':_0x238c22(0x114),'removeCopyright':_0x238c22(0x114),'localeName':this[_0x238c22(0xd5)][_0x238c22(0xed)][_0x238c22(0xdf)],'externalSourcesEmbedCss':_0x238c22(0x10c)}),this[_0x238c22(0xc5)][_0x238c22(0xce)]=_0x2e1367=>{const _0xd5724c=_0x238c22;if(_0xd5724c(0x113)==_0x2e1367)return _0xd5724c(0x10a);},_0x5dc5c9[_0x238c22(0xda)][_0x238c22(0x110)][_0x238c22(0xe9)](this[_0x238c22(0xc5)]);}[_0x4c5431(0xcf)](){const _0x2e9e0e=_0x4c5431;this[_0x2e9e0e(0x102)]=_0xc7ad6f(_0x5dc5c9[_0x2e9e0e(0xda)],_0x2e9e0e(0x112),{'ctx-name':_0x2e9e0e(0xd8)+this[_0x2e9e0e(0x100)]}),_0x5dc5c9[_0x2e9e0e(0xda)][_0x2e9e0e(0x110)][_0x2e9e0e(0xe9)](this[_0x2e9e0e(0x102)]);}[_0x4c5431(0xc6)](){const _0x4b2710=_0x4c5431,_0x4cf72a=this[_0x4b2710(0xd5)][_0x4b2710(0xfa)][_0x4b2710(0xca)](_0x4b2710(0xec));_0x4cf72a&&this[_0x4b2710(0x117)](_0x4cf72a,_0x4b2710(0xf6),()=>{const _0x4f6d24=_0x4b2710,_0x175b2d=this[_0x4f6d24(0xd5)][_0x4f6d24(0xe0)][_0x4f6d24(0xda)][_0x4f6d24(0xe2)][_0x4f6d24(0xe4)]();_0x175b2d&&_0x175b2d[_0x4f6d24(0x115)](_0x4f6d24(0x106))&&this[_0x4f6d24(0xd5)][_0x4f6d24(0xd3)][_0x4f6d24(0xdd)][_0x4f6d24(0x109)](_0x4f6d24(0xc7),()=>{const _0x377a4d=_0x4f6d24;_0x578977(this[_0x377a4d(0xd5)],_0x175b2d);});});const _0x5cbedb=this[_0x4b2710(0xd5)][_0x4b2710(0xfa)][_0x4b2710(0xca)](_0x4b2710(0xf7));_0x5cbedb&&this[_0x4b2710(0x117)](_0x5cbedb,_0x4b2710(0xf6),()=>{const _0x69bb4e=_0x4b2710,_0x2d9db5=this[_0x69bb4e(0xd5)][_0x69bb4e(0xe0)][_0x69bb4e(0xda)][_0x69bb4e(0xe2)][_0x69bb4e(0xe4)]();_0x2d9db5&&_0x2d9db5[_0x69bb4e(0x115)](_0x69bb4e(0x106))&&this[_0x69bb4e(0xd5)][_0x69bb4e(0xd3)][_0x69bb4e(0xdd)][_0x69bb4e(0x109)](_0x69bb4e(0xc7),()=>{const _0xd1fe3d=_0x69bb4e;_0x578977(this[_0xd1fe3d(0xd5)],_0x2d9db5);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xaa8d85,ObservableMixin as _0x3ea8bb}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x323696}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x519e6b}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x58df5f}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x463de1}from'../../utils/uploadutils.js';import{getImageUrls as _0x499b8f,getImageDimension as _0x1d3519}from'../../utils/editingutils.js';import{isAncestor as _0x41ab21}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3ea8bb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1499c2,_0x12c449,_0x29bba3){super(),this['_editor']=_0x1499c2,this['_dialog']=_0x12c449,this['_imageElement']=_0x29bba3,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 _0x4b7324=this['_imageElement'],_0x2d6b9d=_0x4b7324['getAttribute']('uploadcareImageId'),_0x3c1d47=_0x4b7324['getAttribute']('src');if(_0x2d6b9d)await this['_loadImageInfo'](_0x2d6b9d,_0x3c1d47);else{if(this['_imageCache']['has'](_0x3c1d47)){const _0x195bf7=this['_imageCache']['get'](_0x3c1d47);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x195bf7['url'],this['imageDimension']=_0x195bf7['dimension'],this['imageId']=_0x195bf7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x53c8b0}=this['_editor'],t=_0x53c8b0['t'],_0x1f634a=new _0x58df5f(_0x53c8b0,this['imageStatus'],this['_attributes']);_0x1f634a['bind']('status')['to'](this,'imageStatus'),_0x1f634a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1f634a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1f634a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1f634a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x519e6b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1f634a,'position':_0x323696['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1f634a['focus']();},'onHide':()=>{_0x1f634a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2a22f4=>!_0x41ab21(_0x2a22f4,_0x1f634a['element'])}});}['_loadImageInfo'](_0x10b19f,_0x33fcdc){return _0x463de1['getInfo'](_0x10b19f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3ebc0f=>{const {width:_0x15e106,height:_0xab514c}=_0x3ebc0f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33fcdc,this['imageDimension']={'width':_0x15e106,'height':_0xab514c},this['imageId']=_0x10b19f;})['catch'](_0x17d617=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x17d617['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x190130,_0x36eb3f){return this['_getImageAsFile'](_0x190130)['then'](_0x47dd06=>_0x463de1['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':_0x36eb3f['signal'],'file':_0x47dd06,'onProgress':_0x3f8eb2=>{_0x3f8eb2&&_0x3f8eb2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3f8eb2['value']));}}))['then'](_0x43f9e3=>{const {width:_0xb1563,height:_0x598afb}=_0x43f9e3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43f9e3['cdnUrl'],this['imageDimension']={'width':_0xb1563,'height':_0x598afb},this['imageId']=_0x43f9e3['uuid'],this['imageUploadProgress']=null;const _0x34d5f3=_0x190130['getAttribute']('src');this['_imageCache']['set'](_0x34d5f3,{'id':_0x43f9e3['uuid'],'url':_0x43f9e3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3bd1fb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3bd1fb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x211e5a,_0x5e98e7){_0x211e5a['on']('apply',(_0x536dc0,_0x5eb34d)=>{this['_replaceImage'](_0x5e98e7,_0x5eb34d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x211e5a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x211e5a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x11433d,_0x201d64,_0x59dd9d){const _0x2cc839=this['_editor'],{width:_0x40dc74,height:_0x56cf53}=_0x1d3519(_0x201d64,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x417979,imageSources:_0x1a5e82}=_0x499b8f(_0x201d64,_0x40dc74);_0x2cc839['model']['change'](_0x2462d5=>{if('$graveyard'===_0x11433d['root']['rootName']){_0x2cc839['execute']('insertImage',{'imageType':_0x11433d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x11433d['getAttributes']()),'uploadcareImageId':_0x59dd9d,'src':_0x417979,'sources':_0x1a5e82,'width':_0x40dc74,'height':_0x56cf53}});const _0x47612c=_0x11433d['getChildren']();_0x11433d=_0x2cc839['model']['document']['selection']['getSelectedElement']();for(const _0x1f573c of _0x47612c)_0x2462d5['append'](_0x2462d5['cloneElement'](_0x1f573c),_0x11433d);}else _0x2462d5['setSelection'](_0x11433d,'on'),_0x2cc839['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x11433d['getAttributes']()),'uploadcareImageId':_0x59dd9d,'src':_0x417979,'sources':_0x1a5e82,'width':_0x40dc74,'height':_0x56cf53},_0x11433d);_0x2462d5['setSelection'](_0x11433d,'on');});}async['_getImageAsFile'](_0xf94904){const _0x1e6563=_0xaa8d85['window'],_0x5be52a=_0xaa8d85['document']['location']['href'],_0x13dea3=new _0x1e6563['URL'](_0xf94904['getAttribute']('src'),_0x5be52a);if('data:'===_0x13dea3['protocol']){const _0x3b4f1e=_0x13dea3['href']['split'](','),_0x49064c=_0x3b4f1e[0x0]['match'](/:(.*?);/)[0x1],_0x5b9956=_0x49064c['split']('/')[0x1],_0x5b00cd=_0x1e6563['atob'](_0x3b4f1e[_0x3b4f1e['length']-0x1]);let _0x2f2197=_0x5b00cd['length'];const _0x5461d4=new _0x1e6563['Uint8Array'](_0x2f2197);for(;_0x2f2197--;)_0x5461d4[_0x2f2197]=_0x5b00cd['charCodeAt'](_0x2f2197);return new _0x1e6563['File']([_0x5461d4],'image.'+_0x5b9956,{'type':_0x49064c});}const _0x47f39b=_0x13dea3['href']['split']('/'),_0x446264=_0x47f39b[_0x47f39b['length']-0x1],_0x11f5b5=_0x446264['split']('.')[0x1];return _0x1e6563['fetch'](_0x13dea3['href'])['then'](_0x26e7e5=>_0x26e7e5['clone']()['blob']())['then'](_0x39a3f8=>new _0x1e6563['File']([_0x39a3f8],_0x446264,{'type':'image/'+_0x11f5b5}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x6afa(){const _0x534514=['878946JHjRQf','35545aSAFbR','1796121dwjjdi','imageSrc','set','uc-cloud-image-editor','596UKcfCd','20MxVMKp','setTemplate','image-edit','bindTemplate','2176594dQmQRP','5667WiTLBW','ck-uploadcare-theme','10lbmFfE','1775816DKWUlb','uc-light','254970IDPckQ'];_0x6afa=function(){return _0x534514;};return _0x6afa();}function _0x32b9(_0x178d07,_0x1cca8a){const _0x6afa5b=_0x6afa();return _0x32b9=function(_0x32b9c8,_0x13ee3c){_0x32b9c8=_0x32b9c8-0x16a;let _0x4d100c=_0x6afa5b[_0x32b9c8];return _0x4d100c;},_0x32b9(_0x178d07,_0x1cca8a);}(function(_0x6425ba,_0x52236d){const _0x56699f=_0x32b9,_0x7f57e5=_0x6425ba();while(!![]){try{const _0x4a8d7c=parseInt(_0x56699f(0x177))/0x1+-parseInt(_0x56699f(0x175))/0x2+parseInt(_0x56699f(0x170))/0x3*(parseInt(_0x56699f(0x16a))/0x4)+-parseInt(_0x56699f(0x172))/0x5*(-parseInt(_0x56699f(0x176))/0x6)+parseInt(_0x56699f(0x16f))/0x7+-parseInt(_0x56699f(0x173))/0x8+parseInt(_0x56699f(0x178))/0x9*(-parseInt(_0x56699f(0x16b))/0xa);if(_0x4a8d7c===_0x52236d)break;else _0x7f57e5['push'](_0x7f57e5['shift']());}catch(_0x4d5686){_0x7f57e5['push'](_0x7f57e5['shift']());}}}(_0x6afa,0x2a12a));import{View as _0x4735c0}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x4735c0{constructor(_0x4afade,_0x5bd07d){const _0x599675=_0x32b9;super(_0x4afade);const _0x5001f2=this[_0x599675(0x16e)];this[_0x599675(0x17a)](_0x599675(0x179),''),this[_0x599675(0x16c)]({'tag':_0x599675(0x17b),'attributes':{..._0x5bd07d,'class':[_0x599675(0x174),_0x599675(0x171)],'ctx-name':_0x599675(0x16d),'cdn-url':_0x5001f2['to'](_0x599675(0x179))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x28cdb3}from'ckeditor5/src/icons.js';import{ButtonView as _0x32d1b0,IconView as _0x518bb7,View as _0x2e55aa}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2e55aa{constructor(_0x85da3a){super(_0x85da3a);const t=_0x85da3a['t'];this['set']('errorType',null);const _0x337498=new _0x32d1b0(_0x85da3a);_0x337498['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x337498['withText']=!0x0,_0x337498['class']='ck-button-action',_0x337498['on']('execute',()=>{this['fire']('retry');}),_0x337498['bind']('isVisible')['to'](this,'errorType',_0x4bb950=>'NotFound'!==_0x4bb950);const _0x1547eb=new _0x518bb7();_0x1547eb['content']=_0x28cdb3,_0x1547eb['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3e7f2e=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':[_0x1547eb,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3e7f2e['to']('errorType',_0x35f58c=>t('NotFound'!==_0x35f58c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x337498]},{'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 _0xec4b8d,View as _0x20107b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x20107b{constructor(_0xe1b7f6){super(_0xe1b7f6);const t=_0xe1b7f6['t'],_0x16af81=this['bindTemplate'],_0x51fbdf=new _0xec4b8d();_0x51fbdf['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':[_0x51fbdf,{'text':_0x16af81['to']('imageUploadProgress',_0x1f500a=>t('Loading\x20image...')+'\x20('+(_0x1f500a||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
|
-
|
|
23
|
+
const _0x5bf92b=_0x4b99;(function(_0xbb142e,_0x31cd96){const _0x50a801=_0x4b99,_0x544489=_0xbb142e();while(!![]){try{const _0x477e4d=-parseInt(_0x50a801(0x1d1))/0x1*(-parseInt(_0x50a801(0x1e4))/0x2)+-parseInt(_0x50a801(0x1d0))/0x3+-parseInt(_0x50a801(0x1cf))/0x4+parseInt(_0x50a801(0x1f1))/0x5+parseInt(_0x50a801(0x204))/0x6*(parseInt(_0x50a801(0x1e8))/0x7)+-parseInt(_0x50a801(0x1ea))/0x8*(parseInt(_0x50a801(0x1eb))/0x9)+-parseInt(_0x50a801(0x1e3))/0xa;if(_0x477e4d===_0x31cd96)break;else _0x544489['push'](_0x544489['shift']());}catch(_0x532a7){_0x544489['push'](_0x544489['shift']());}}}(_0x6f4f,0xcc0ae));import{View as _0x221b70}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x513f29}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2250cf}from'./uploadcareimageeditformerrorview.js';function _0x4b99(_0x53b1f2,_0x4da20c){const _0x6f4f23=_0x6f4f();return _0x4b99=function(_0x4b9948,_0x5db4ca){_0x4b9948=_0x4b9948-0x1cf;let _0x2acf01=_0x6f4f23[_0x4b9948];return _0x2acf01;},_0x4b99(_0x53b1f2,_0x4da20c);}import{UploadcareImageEditFormEditingView as _0xacf48b}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x210420}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x6f4f(){const _0x3938f9=['set','_addErrorViewListeners','fire','_addUploadcareImageEditorListeners','1041192mXZrlY','addEventListener','5989636vtayHI','3316722sERWst','1141dYMMlx','clear','cdnUrl','add','cancel','retry','getFocusableElement','detail','ck-uploadcare-form','_waitForImageEditorComponent','disconnect','_items','uc-cloud-image-editor','addedNodes','once','change:status','nodeName','_editingView','5622270wvPkpt','2566RSKFKS','_focusableView','status','_loadingView','56RcCfsF','_errorView','8ZYPXVK','1481931AOIfkS','target','observe','querySelector','_setView','setTemplate','6567340hvfHTw','filter','toLowerCase','error','element','apply','createCollection','render','uploading','focus','length','div','ready','addMany','ck-reset_all-excluded'];_0x6f4f=function(){return _0x3938f9;};return _0x6f4f();}export class UploadcareImageEditFormView extends _0x210420{[_0x5bf92b(0x1dc)];[_0x5bf92b(0x1e7)];[_0x5bf92b(0x1e9)];[_0x5bf92b(0x1e2)];[_0x5bf92b(0x1e5)];constructor(_0x38aa66,_0x31db93,_0x3acbd1){const _0x3df952=_0x5bf92b;super(_0x38aa66),this[_0x3df952(0x1dc)]=this[_0x3df952(0x1f7)](),this[_0x3df952(0x1e7)]=new _0x513f29(_0x38aa66),this[_0x3df952(0x1e9)]=new _0x2250cf(_0x38aa66),this[_0x3df952(0x1e2)]=new _0xacf48b(_0x38aa66,_0x3acbd1),this[_0x3df952(0x1e5)]=new _0x221b70(_0x38aa66),this[_0x3df952(0x1e5)][_0x3df952(0x1f0)](this[_0x3df952(0x1d7)]()),this[_0x3df952(0x200)](_0x3df952(0x1e6),_0x31db93),this[_0x3df952(0x1f0)]({'tag':_0x3df952(0x1fc),'attributes':{'class':['ck',_0x3df952(0x1ff),_0x3df952(0x1d9)],'tabindex':'-1'},'children':this[_0x3df952(0x1dc)]}),this[_0x3df952(0x1ef)](),this[_0x3df952(0x1df)](_0x3df952(0x1f8),()=>{const _0x5762e4=_0x3df952;this[_0x5762e4(0x1da)](this[_0x5762e4(0x1f5)],_0x5a9bcf=>{const _0x509f90=_0x5762e4;this[_0x509f90(0x203)](_0x5a9bcf);});}),this['on'](_0x3df952(0x1e0),()=>{const _0x3ff31b=_0x3df952;this[_0x3ff31b(0x1ef)]();}),this[_0x3df952(0x201)]();}[_0x5bf92b(0x1fa)](){const _0x3f44ba=_0x5bf92b;this[_0x3f44ba(0x1f5)][_0x3f44ba(0x1fa)]();}[_0x5bf92b(0x1ef)](){const _0x5591dc=_0x5bf92b;switch(this[_0x5591dc(0x1dc)][_0x5591dc(0x1d2)](),this[_0x5591dc(0x1e6)]){case _0x5591dc(0x1f9):this[_0x5591dc(0x1dc)][_0x5591dc(0x1d4)](this[_0x5591dc(0x1e7)]);break;case _0x5591dc(0x1f4):this[_0x5591dc(0x1dc)][_0x5591dc(0x1d4)](this[_0x5591dc(0x1e9)]);break;case _0x5591dc(0x1fd):this[_0x5591dc(0x1dc)][_0x5591dc(0x1fe)]([this[_0x5591dc(0x1e2)],this[_0x5591dc(0x1e5)]]);}}[_0x5bf92b(0x1da)](_0x588747,_0x14837f){const _0x1cf7d3=_0x5bf92b,_0x4f2cf6=_0x1cf7d3(0x1dd),_0x57d84e=_0x588747[_0x1cf7d3(0x1ee)](_0x4f2cf6);if(_0x57d84e)return _0x14837f(_0x57d84e);const _0x2cc2ef=new MutationObserver(_0xa1357f=>{const _0x2042ed=_0x1cf7d3,_0x514605=_0xa1357f[_0x2042ed(0x1f2)](_0x446f3c=>_0x446f3c[_0x2042ed(0x1ec)]===_0x588747&&_0x446f3c[_0x2042ed(0x1de)][_0x2042ed(0x1fb)]>0x0&&_0x446f3c[_0x2042ed(0x1de)][0x0][_0x2042ed(0x1e1)][_0x2042ed(0x1f3)]()===_0x4f2cf6);_0x514605[_0x2042ed(0x1fb)]&&(_0x2cc2ef[_0x2042ed(0x1db)](),_0x14837f(_0x514605[0x0][_0x2042ed(0x1de)][0x0]));});_0x2cc2ef[_0x1cf7d3(0x1ed)](_0x588747,{'childList':!0x0,'subtree':!0x0});}[_0x5bf92b(0x203)](_0x12813e){const _0x5b84ca=_0x5bf92b;_0x12813e[_0x5b84ca(0x205)](_0x5b84ca(0x1f6),_0xba565=>{const _0x13aa9f=_0x5b84ca;this[_0x13aa9f(0x202)](_0x13aa9f(0x1f6),{'imageSrc':_0xba565[_0x13aa9f(0x1d8)][_0x13aa9f(0x1d3)]});}),_0x12813e[_0x5b84ca(0x205)](_0x5b84ca(0x1d5),()=>{const _0x47b8a0=_0x5b84ca;this[_0x47b8a0(0x202)](_0x47b8a0(0x1d5));});}[_0x5bf92b(0x201)](){const _0x2b7bea=_0x5bf92b;this[_0x2b7bea(0x1e9)]['on'](_0x2b7bea(0x1d6),()=>{const _0x136678=_0x2b7bea;this[_0x136678(0x202)](_0x136678(0x1d6));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb38059=_0x3c57;(function(_0x2d3aa5,_0xbd1050){const _0x56387f=_0x3c57,_0x42a80e=_0x2d3aa5();while(!![]){try{const _0x27476a=parseInt(_0x56387f(0x1ed))/0x1+-parseInt(_0x56387f(0x1ee))/0x2*(-parseInt(_0x56387f(0x1db))/0x3)+parseInt(_0x56387f(0x1da))/0x4*(parseInt(_0x56387f(0x1ec))/0x5)+parseInt(_0x56387f(0x1de))/0x6*(-parseInt(_0x56387f(0x1e9))/0x7)+-parseInt(_0x56387f(0x1d9))/0x8*(parseInt(_0x56387f(0x1f6))/0x9)+-parseInt(_0x56387f(0x1ea))/0xa*(parseInt(_0x56387f(0x1e4))/0xb)+parseInt(_0x56387f(0x1f2))/0xc*(parseInt(_0x56387f(0x1f4))/0xd);if(_0x27476a===_0xbd1050)break;else _0x42a80e['push'](_0x42a80e['shift']());}catch(_0x26902a){_0x42a80e['push'](_0x42a80e['shift']());}}}(_0x5927,0x2924c));function _0x3c57(_0x13e61a,_0x394e69){const _0x59274a=_0x5927();return _0x3c57=function(_0x3c5775,_0x5e75ba){_0x3c5775=_0x3c5775-0x1d6;let _0x31eee6=_0x59274a[_0x3c5775];return _0x31eee6;},_0x3c57(_0x13e61a,_0x394e69);}import{Command as _0x5cce15}from'ckeditor5/src/core.js';import{Dialog as _0x6eddf1}from'ckeditor5/src/ui.js';function _0x5927(){const _0xf5cb1d=['304Higzvc','103384IiJtJK','177fFqcum','document','get','6WGZRQb','imageBlock','execute','set','element','isEnabled','44QYJbxb','plugins','unbind','bind','refresh','433027ajzcWs','704930coVgqT','_isEditable','35kTkHex','149686mxClSl','8378ZHvJma','getSelectedElement','config','selection','48QICIer','model','614770gljXNP','requires','60291Fhnqna','editor','uploadcare.allowExternalImagesEditing','imageInline','isActive','imageEditController'];_0x5927=function(){return _0xf5cb1d;};return _0x5927();}import{UploadcareImageEditController as _0xb108e5}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x55cc50}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x5cce15{[_0xb38059(0x1d8)];static get[_0xb38059(0x1f5)](){return[_0x6eddf1];}[_0xb38059(0x1eb)];constructor(_0x45d127){const _0x45951f=_0xb38059;super(_0x45d127),this[_0x45951f(0x1d8)]=void 0x0,this[_0x45951f(0x1eb)]=_0x55cc50(_0x45d127[_0x45951f(0x1f0)][_0x45951f(0x1dd)](_0x45951f(0x1f8))||[]),this[_0x45951f(0x1e1)]({'isActive':!0x1});}[_0xb38059(0x1e8)](){const _0x528721=_0xb38059,_0xe1f4c8=this[_0x528721(0x1f7)][_0x528721(0x1f3)][_0x528721(0x1dc)][_0x528721(0x1f1)][_0x528721(0x1ef)]();this[_0x528721(0x1e3)]=this[_0x528721(0x1eb)](_0xe1f4c8);}[_0xb38059(0x1e0)](){const _0x3801d4=_0xb38059;this[_0x3801d4(0x1d8)]&&(this[_0x3801d4(0x1e6)](_0x3801d4(0x1d7)),this[_0x3801d4(0x1d8)]=void 0x0);const _0x2133e4=this[_0x3801d4(0x1f7)][_0x3801d4(0x1f3)][_0x3801d4(0x1dc)][_0x3801d4(0x1f1)][_0x3801d4(0x1ef)]();_0x2133e4&&(_0x2133e4['is'](_0x3801d4(0x1e2),_0x3801d4(0x1df))||_0x2133e4['is'](_0x3801d4(0x1e2),_0x3801d4(0x1d6)))&&(this[_0x3801d4(0x1d8)]=new _0xb108e5(this[_0x3801d4(0x1f7)],this[_0x3801d4(0x1f7)][_0x3801d4(0x1e5)][_0x3801d4(0x1dd)](_0x6eddf1),_0x2133e4),this[_0x3801d4(0x1e7)](_0x3801d4(0x1d7))['to'](this[_0x3801d4(0x1d8)],_0x3801d4(0x1d7)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c5e57=_0x5953;function _0x3b51(){const _0x2ddd5c=['pluginName','commands','1358961GPtAqc','ImageUtils','uploadcareImageReplace','1812682XsXuhS','isOfficialPlugin','isPremiumPlugin','5387765yRZyBm','4922499EkwqNf','4xWexBe','1424NjbFoc','requires','12756393NokinO','ImageEditing','2754684kICJsZ','add','uploadcareImageEdit','UploadcareImageEditEditing','init','2723mLPgZh'];_0x3b51=function(){return _0x2ddd5c;};return _0x3b51();}(function(_0x10a101,_0x49da73){const _0x25ffb8=_0x5953,_0x41374a=_0x10a101();while(!![]){try{const _0x4f4010=parseInt(_0x25ffb8(0x87))/0x1+parseInt(_0x25ffb8(0x75))/0x2+parseInt(_0x25ffb8(0x79))/0x3+parseInt(_0x25ffb8(0x7a))/0x4*(-parseInt(_0x25ffb8(0x78))/0x5)+-parseInt(_0x25ffb8(0x7f))/0x6+parseInt(_0x25ffb8(0x84))/0x7*(-parseInt(_0x25ffb8(0x7b))/0x8)+-parseInt(_0x25ffb8(0x7d))/0x9;if(_0x4f4010===_0x49da73)break;else _0x41374a['push'](_0x41374a['shift']());}catch(_0x25e278){_0x41374a['push'](_0x41374a['shift']());}}}(_0x3b51,0xd78a1));function _0x5953(_0x36d518,_0x4c4a44){const _0x3b5111=_0x3b51();return _0x5953=function(_0x59530b,_0x47cc60){_0x59530b=_0x59530b-0x75;let _0x80a614=_0x3b5111[_0x59530b];return _0x80a614;},_0x5953(_0x36d518,_0x4c4a44);}import{Plugin as _0x593a65}from'ckeditor5/src/core.js';import{Notification as _0x5177ad}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x425307}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1a24f1}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2843d6}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x593a65{static get[_0x3c5e57(0x85)](){const _0x896b8d=_0x3c5e57;return _0x896b8d(0x82);}static get[_0x3c5e57(0x7c)](){const _0x4488d9=_0x3c5e57;return[_0x2843d6,_0x5177ad,_0x4488d9(0x88),_0x4488d9(0x7e)];}static get[_0x3c5e57(0x76)](){return!0x0;}static get[_0x3c5e57(0x77)](){return!0x0;}[_0x3c5e57(0x83)](){const _0x3d31a1=_0x3c5e57,{editor:_0x330e63}=this;_0x330e63[_0x3d31a1(0x86)][_0x3d31a1(0x80)](_0x3d31a1(0x81),new _0x425307(_0x330e63)),_0x330e63[_0x3d31a1(0x86)][_0x3d31a1(0x80)](_0x3d31a1(0x89),new _0x1a24f1(_0x330e63));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5630b4}from'ckeditor5/src/core.js';import{ButtonView as _0x43261e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3e5875}from'ckeditor5/src/icons.js';import{createElement as _0x38171e}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 _0x5630b4{['_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 _0x1aa38f=this['editor'];_0x1aa38f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x44b459=>{const _0x3b05e9=_0x1aa38f['commands']['get']('uploadcareImageEdit'),_0x2f5840=new _0x43261e(_0x44b459),t=_0x44b459['t'];return _0x2f5840['set']({'icon':_0x3e5875,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2f5840['bind']('isEnabled')['to'](_0x3b05e9),_0x2f5840['bind']('isOn')['to'](_0x3b05e9,'isActive'),this['listenTo'](_0x2f5840,'execute',()=>{_0x1aa38f['execute']('uploadcareImageEdit'),_0x1aa38f['editing']['view']['focus']();}),_0x2f5840;}),this['_initConfig']();}['_initConfig'](){const _0x51973f=_0x38171e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x51973f),this['listenTo'](this['editor'],'destroy',()=>{_0x51973f['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f1548=_0x3658;(function(_0x4c5bdc,_0xf5f1b9){const _0xba38f2=_0x3658,_0x3978b7=_0x4c5bdc();while(!![]){try{const _0x108b18=parseInt(_0xba38f2(0x187))/0x1*(parseInt(_0xba38f2(0x188))/0x2)+-parseInt(_0xba38f2(0x179))/0x3+-parseInt(_0xba38f2(0x182))/0x4+parseInt(_0xba38f2(0x186))/0x5*(-parseInt(_0xba38f2(0x183))/0x6)+parseInt(_0xba38f2(0x17c))/0x7*(parseInt(_0xba38f2(0x17e))/0x8)+-parseInt(_0xba38f2(0x17d))/0x9+-parseInt(_0xba38f2(0x172))/0xa*(-parseInt(_0xba38f2(0x178))/0xb);if(_0x108b18===_0xf5f1b9)break;else _0x3978b7['push'](_0x3978b7['shift']());}catch(_0x83e6e6){_0x3978b7['push'](_0x3978b7['shift']());}}}(_0x511b,0xf40ca));function _0x3658(_0x3541c3,_0x289737){const _0x511b0d=_0x511b();return _0x3658=function(_0x365829,_0x1fce3a){_0x365829=_0x365829-0x16f;let _0x4cdb8e=_0x511b0d[_0x365829];return _0x4cdb8e;},_0x3658(_0x3541c3,_0x289737);}function _0x511b(){const _0x5f07fb=['getSelectedElement','selection','editor','removeAttribute','sizes','1788545sJSydP','1298580KsWYQv','document','isEnabled','1130598GKMKEG','8942580ivmUzz','72fIGHHr','element','setAttributes','refresh','3516860EKXaDz','24hFxEte','imageBlock','change','1117405keThQW','113ZxmaDp','8306pDuRlL','imageInline','execute','srcset','model','140EVlKfW'];_0x511b=function(){return _0x5f07fb;};return _0x511b();}import{Command as _0x1e4427}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x1e4427{[_0x2f1548(0x181)](){const _0x256c5b=_0x2f1548,_0x161114=this[_0x256c5b(0x175)][_0x256c5b(0x171)][_0x256c5b(0x17a)][_0x256c5b(0x174)][_0x256c5b(0x173)]();this[_0x256c5b(0x17b)]=Boolean(_0x161114&&(_0x161114['is'](_0x256c5b(0x17f),_0x256c5b(0x184))||_0x161114['is'](_0x256c5b(0x17f),_0x256c5b(0x189))));}[_0x2f1548(0x16f)](_0x1ca775){const _0x259799=_0x2f1548,_0x187d29=this[_0x259799(0x175)][_0x259799(0x171)][_0x259799(0x17a)][_0x259799(0x174)][_0x259799(0x173)]();this[_0x259799(0x175)][_0x259799(0x171)][_0x259799(0x185)](_0x304153=>{const _0x3011a1=_0x259799;_0x304153[_0x3011a1(0x180)](_0x1ca775,_0x187d29),_0x304153[_0x3011a1(0x176)](_0x3011a1(0x170),_0x187d29),_0x304153[_0x3011a1(0x176)](_0x3011a1(0x177),_0x187d29);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x68ff4b=_0x1812;(function(_0x4674dc,_0x4b21c6){var _0x467340=_0x1812,_0x47c7d8=_0x4674dc();while(!![]){try{var _0x3fae3b=parseInt(_0x467340(0x1b5))/0x1+parseInt(_0x467340(0x1b1))/0x2*(parseInt(_0x467340(0x1aa))/0x3)+parseInt(_0x467340(0x1b7))/0x4+-parseInt(_0x467340(0x1b4))/0x5*(-parseInt(_0x467340(0x1ae))/0x6)+parseInt(_0x467340(0x1ad))/0x7*(-parseInt(_0x467340(0x1b3))/0x8)+parseInt(_0x467340(0x1b2))/0x9+-parseInt(_0x467340(0x1a9))/0xa;if(_0x3fae3b===_0x4b21c6)break;else _0x47c7d8['push'](_0x47c7d8['shift']());}catch(_0x256597){_0x47c7d8['push'](_0x47c7d8['shift']());}}}(_0x25b1,0x511a1));import{Plugin as _0x410dca}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x58e59a}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x1812(_0x5468ee,_0x2c6166){var _0x25b15d=_0x25b1();return _0x1812=function(_0x18127f,_0x531c64){_0x18127f=_0x18127f-0x1a9;var _0x59ebc3=_0x25b15d[_0x18127f];return _0x59ebc3;},_0x1812(_0x5468ee,_0x2c6166);}import{UploadcareImageEditUI as _0x5c7ff3}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x25b1(){var _0x1904a0=['pluginName','isPremiumPlugin','2149liSrtl','246HFQCyi','isOfficialPlugin','requires','10gcqYfA','5859aETgmj','4120CBckrK','65815IkVJbk','23469jyPeGu','UploadcareImageEdit','609376PANXrc','5462640NPncSa','192249tQaybb'];_0x25b1=function(){return _0x1904a0;};return _0x25b1();}export class UploadcareImageEdit extends _0x410dca{static get[_0x68ff4b(0x1ab)](){var _0x4ce5f6=_0x68ff4b;return _0x4ce5f6(0x1b6);}static get[_0x68ff4b(0x1b0)](){return[_0x58e59a,_0x5c7ff3];}static get[_0x68ff4b(0x1af)](){return!0x0;}static get[_0x68ff4b(0x1ac)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3abf6c=_0x5098;(function(_0x3dcad9,_0x119485){const _0x422652=_0x5098,_0x45cf72=_0x3dcad9();while(!![]){try{const _0x3d16a9=parseInt(_0x422652(0x1d7))/0x1*(parseInt(_0x422652(0x1dc))/0x2)+-parseInt(_0x422652(0x1c9))/0x3*(parseInt(_0x422652(0x1a8))/0x4)+parseInt(_0x422652(0x1b9))/0x5*(-parseInt(_0x422652(0x1be))/0x6)+-parseInt(_0x422652(0x1a6))/0x7+parseInt(_0x422652(0x1aa))/0x8+parseInt(_0x422652(0x1d5))/0x9*(parseInt(_0x422652(0x1b8))/0xa)+parseInt(_0x422652(0x1e1))/0xb;if(_0x3d16a9===_0x119485)break;else _0x45cf72['push'](_0x45cf72['shift']());}catch(_0xe0b4cf){_0x45cf72['push'](_0x45cf72['shift']());}}}(_0x2a57,0x593ce));import{Plugin as _0x360d90}from'ckeditor5/src/core.js';import{IconDropbox as _0xc2eabe,IconFacebook as _0x4a3561,IconGoogleDrive as _0x478922,IconGooglePhotos as _0x521a94,IconUploadcareImageUpload as _0x1291ab,IconUploadcareLink as _0x51ebcb,IconOneDrive as _0x341aa2}from'ckeditor5/src/icons.js';function _0x2a57(){const _0x268722=['_createButton','URL','Facebook','evaluationLimit','_showLicenseError','locale','forEach','url','licenseKey','reduce','isPremiumPlugin','GDrive','uploadcareLicenseKeyValid','bind','registerIntegration','label','has','uploadcare','2240658uUZmLb','isImageSelected','82480vMzBGZ','OneDrive','4145048hdwKTM','uploadcareLicenseKeyUsageLimit','GPhotos','Uploadcare','uploadcare.uploader.sourceList','uploadcareLicenseKeyExpired','destroy','Dropbox','_createMenuBarButtons','domainLimit','featureNotAllowed','get','editor','expired','480050emwJDE','10aHHGls','assetManager','push','icon','execute','1451382RveFsO','invalid','Replace','type','uploadcareLicenseKeyEvaluationLimit','isOfficialPlugin','tooltip','text','commands','afterInit','uploadcareLicenseKeyInvalid','30biHYqF','uploadcareLicenseKeyNotAllowed','pluginName','ImageInsertUI','shortText','UploadcareUI','uploadcareLicenseKeyDomainLimit','Insert','_normalizeConfigSourceList','usageLimit','map','plugins','45gIrnhN','_getIntegrationKey','1huXrmL','_createDropdownButtons','upload','withText','isEnabled','297594ZFPFFz','_createToolbarButton','config','entries','_licenseKeyCheckInterval','5155183TneNCC','init','Local'];_0x2a57=function(){return _0x268722;};return _0x2a57();}import{ButtonView as _0x3e774e,MenuBarMenuListItemButtonView as _0x1cb7c9}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x5c2e99}from'./uploadcareconfig.js';import{getTranslation as _0x50a4e8}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x5098(_0x472fed,_0x54a2fe){const _0x2a5775=_0x2a57();return _0x5098=function(_0x509889,_0xc14e70){_0x509889=_0x509889-0x1a2;let _0x3aaabf=_0x2a5775[_0x509889];return _0x3aaabf;},_0x5098(_0x472fed,_0x54a2fe);}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x360d90{[_0x3abf6c(0x1ec)];[_0x3abf6c(0x1e0)];static get[_0x3abf6c(0x1cb)](){const _0x5a8b53=_0x3abf6c;return _0x5a8b53(0x1ce);}static get[_0x3abf6c(0x1c3)](){return!0x0;}static get[_0x3abf6c(0x1ee)](){return!0x0;}[_0x3abf6c(0x1e2)](){const _0x346a22=_0x3abf6c;this[_0x346a22(0x1ec)]=this[_0x346a22(0x1b6)][_0x346a22(0x1de)][_0x346a22(0x1b5)](_0x346a22(0x1ec));const _0x278ba3=this[_0x346a22(0x1b6)];this[_0x346a22(0x1e0)]=setInterval(()=>{const _0x49a7a6=_0x346a22;let _0x5294ba;for(const _0x1b10ad in _0x278ba3){const _0x45d755=_0x1b10ad,_0x1080ba=_0x278ba3[_0x45d755];if(_0x49a7a6(0x1f0)==_0x1080ba||_0x49a7a6(0x1c8)==_0x1080ba||_0x49a7a6(0x1af)==_0x1080ba||_0x49a7a6(0x1cf)==_0x1080ba||_0x49a7a6(0x1ca)==_0x1080ba||_0x49a7a6(0x1c2)==_0x1080ba||_0x49a7a6(0x1ab)==_0x1080ba){delete _0x278ba3[_0x45d755],_0x5294ba=_0x1080ba,clearInterval(this[_0x49a7a6(0x1e0)]),this[_0x49a7a6(0x1e0)]=void 0x0;break;}}_0x49a7a6(0x1c8)==_0x5294ba&&_0x278ba3[_0x49a7a6(0x1e8)](_0x49a7a6(0x1bf)),_0x49a7a6(0x1af)==_0x5294ba&&_0x278ba3[_0x49a7a6(0x1e8)](_0x49a7a6(0x1b7)),_0x49a7a6(0x1cf)==_0x5294ba&&_0x278ba3[_0x49a7a6(0x1e8)](_0x49a7a6(0x1b3)),_0x49a7a6(0x1ca)==_0x5294ba&&_0x278ba3[_0x49a7a6(0x1e8)](_0x49a7a6(0x1b4),_0x49a7a6(0x1ad)),_0x49a7a6(0x1c2)==_0x5294ba&&_0x278ba3[_0x49a7a6(0x1e8)](_0x49a7a6(0x1e7)),_0x49a7a6(0x1ab)==_0x5294ba&&_0x278ba3[_0x49a7a6(0x1e8)](_0x49a7a6(0x1d2));},0x3e8);}[_0x3abf6c(0x1c7)](){const _0x471908=_0x3abf6c,{editor:_0x25853a}=this,_0x7c30b0=_0x25853a[_0x471908(0x1c6)][_0x471908(0x1b5)](_0x471908(0x1a5));if(!_0x7c30b0)return;const _0x3be2a8=this[_0x471908(0x1d1)](_0x25853a[_0x471908(0x1de)][_0x471908(0x1b5)](_0x471908(0x1ae)))[_0x471908(0x1ed)]((_0x16363e,_0x56d482)=>{const _0x2d908a=_0x471908,_0x5c39a7=this[_0x2d908a(0x1d6)](_0x56d482[_0x2d908a(0x1c1)]);return _0x16363e[_0x5c39a7]||(_0x16363e[_0x5c39a7]=[]),_0x16363e[_0x5c39a7][_0x2d908a(0x1bb)](_0x56d482),_0x16363e;},{});_0x25853a[_0x471908(0x1d4)][_0x471908(0x1a4)](_0x471908(0x1cc))&&_0x25853a[_0x471908(0x1c6)][_0x471908(0x1b5)](_0x471908(0x1a5))&&Object[_0x471908(0x1df)](_0x3be2a8)[_0x471908(0x1ea)](([_0x43c940,_0x2d1146])=>{const _0x1b5be7=_0x471908;_0x25853a[_0x1b5be7(0x1d4)][_0x1b5be7(0x1b5)](_0x1b5be7(0x1cc))[_0x1b5be7(0x1a2)]({'name':_0x43c940,'observable':()=>_0x7c30b0,'buttonViewCreator':()=>this[_0x1b5be7(0x1dd)](_0x2d1146),'formViewCreator':()=>this[_0x1b5be7(0x1d8)](_0x2d1146),'menuBarButtonViewCreator':()=>this[_0x1b5be7(0x1b2)](_0x2d1146),'override':_0x1b5be7(0x1ba)!==_0x43c940});});}[_0x3abf6c(0x1b0)](){const _0x408283=_0x3abf6c;super[_0x408283(0x1b0)](),this[_0x408283(0x1e0)]&&clearInterval(this[_0x408283(0x1e0)]);}[_0x3abf6c(0x1d1)](_0x726c4a){const _0x578b9c=_0x3abf6c,{locale:_0x54ee33}=this[_0x578b9c(0x1b6)];return _0x726c4a[_0x578b9c(0x1d3)](_0x59a22b=>{const _0x2729f8=_0x578b9c,_0x58a97a=_0x50a4e8(_0x54ee33,_0x59a22b,_0x2729f8(0x1d0));switch(_0x59a22b){case _0x5c2e99[_0x2729f8(0x1e3)]:return{'icon':_0x1291ab,'type':_0x5c2e99[_0x2729f8(0x1e3)],..._0x58a97a};case _0x5c2e99[_0x2729f8(0x1e5)]:return{'icon':_0x51ebcb,'type':_0x5c2e99[_0x2729f8(0x1e5)],..._0x58a97a};case _0x5c2e99[_0x2729f8(0x1b1)]:return{'icon':_0xc2eabe,'type':_0x5c2e99[_0x2729f8(0x1b1)],..._0x58a97a};case _0x5c2e99[_0x2729f8(0x1e6)]:return{'icon':_0x4a3561,'type':_0x5c2e99[_0x2729f8(0x1e6)],..._0x58a97a};case _0x5c2e99[_0x2729f8(0x1ef)]:return{'icon':_0x478922,'type':_0x5c2e99[_0x2729f8(0x1ef)],..._0x58a97a};case _0x5c2e99[_0x2729f8(0x1ac)]:return{'icon':_0x521a94,'type':_0x5c2e99[_0x2729f8(0x1ac)],..._0x58a97a};case _0x5c2e99[_0x2729f8(0x1a9)]:return{'icon':_0x341aa2,'type':_0x5c2e99[_0x2729f8(0x1a9)],..._0x58a97a};}});}[_0x3abf6c(0x1d6)](_0x4b525f){const _0x4c24c4=_0x3abf6c;switch(_0x4b525f){case _0x5c2e99[_0x4c24c4(0x1e3)]:return _0x4c24c4(0x1d9);case _0x5c2e99[_0x4c24c4(0x1e5)]:return _0x4c24c4(0x1eb);default:return _0x4c24c4(0x1ba);}}[_0x3abf6c(0x1e4)](_0x1cfbab,_0x1822bb){const _0x2cdef1=_0x3abf6c,_0x27659a=this[_0x2cdef1(0x1b6)],_0x34b109=new _0x1cfbab(_0x27659a[_0x2cdef1(0x1e9)]),_0x74d648=_0x27659a[_0x2cdef1(0x1c6)][_0x2cdef1(0x1b5)](_0x2cdef1(0x1a5));return _0x34b109[_0x2cdef1(0x1f1)](_0x2cdef1(0x1db))['to'](_0x74d648),_0x34b109['on'](_0x2cdef1(0x1bd),()=>{const _0x3ed7e5=_0x2cdef1;_0x74d648[_0x3ed7e5(0x1bd)](_0x1822bb);}),_0x34b109;}[_0x3abf6c(0x1dd)](_0x237ae1){const _0x107ac3=_0x3abf6c,{locale:_0x5097ad}=this[_0x107ac3(0x1b6)],_0x5493a9=this[_0x107ac3(0x1b6)][_0x107ac3(0x1d4)][_0x107ac3(0x1b5)](_0x107ac3(0x1cc)),_0x263c82=_0x237ae1[0x0],_0x36b54b=this[_0x107ac3(0x1e4)](_0x3e774e,_0x263c82[_0x107ac3(0x1c1)]);return _0x36b54b[_0x107ac3(0x1bc)]=_0x263c82[_0x107ac3(0x1bc)],_0x36b54b[_0x107ac3(0x1f1)](_0x107ac3(0x1a3))['to'](_0x5493a9,_0x107ac3(0x1a7),_0x58eb0f=>_0x50a4e8(_0x5097ad,_0x263c82[_0x107ac3(0x1c1)],_0x58eb0f?_0x107ac3(0x1c0):_0x107ac3(0x1d0))[_0x107ac3(0x1c5)]),_0x36b54b[_0x107ac3(0x1c4)]=!0x0,_0x36b54b;}[_0x3abf6c(0x1d8)](_0xd28020){const _0x182ff7=_0x3abf6c,{locale:_0x4697ed}=this[_0x182ff7(0x1b6)],_0x2bd7da=this[_0x182ff7(0x1b6)][_0x182ff7(0x1d4)][_0x182ff7(0x1b5)](_0x182ff7(0x1cc));return _0xd28020[_0x182ff7(0x1d3)](_0x37c33c=>{const _0x16c1b2=_0x182ff7,_0x1f4686=this[_0x16c1b2(0x1e4)](_0x3e774e,_0x37c33c[_0x16c1b2(0x1c1)]);return _0x1f4686[_0x16c1b2(0x1da)]=!0x0,_0x1f4686[_0x16c1b2(0x1bc)]=_0x37c33c[_0x16c1b2(0x1bc)],_0x1f4686[_0x16c1b2(0x1f1)](_0x16c1b2(0x1a3))['to'](_0x2bd7da,_0x16c1b2(0x1a7),_0x57f621=>_0x50a4e8(_0x4697ed,_0x37c33c[_0x16c1b2(0x1c1)],_0x57f621?_0x16c1b2(0x1c0):_0x16c1b2(0x1d0))[_0x16c1b2(0x1c5)]),_0x1f4686;});}[_0x3abf6c(0x1b2)](_0x190072){const _0x424fdb=_0x3abf6c;return _0x190072[_0x424fdb(0x1d3)](_0x15b07c=>{const _0x657392=_0x424fdb,_0x1e33a6=this[_0x657392(0x1e4)](_0x1cb7c9,_0x15b07c[_0x657392(0x1c1)]);return _0x1e33a6[_0x657392(0x1bc)]=_0x15b07c[_0x657392(0x1bc)],_0x1e33a6[_0x657392(0x1a3)]=_0x15b07c[_0x657392(0x1cd)],_0x1e33a6;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3edea6}from'ckeditor5/src/core.js';import{FileRepository as _0x2e09ce}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xc5aea6}from'./uploadcareediting.js';import{UploadUtils as _0x416f3b}from'./utils/uploadutils.js';import{getImageUrls as _0x40bb23}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3edea6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2e09ce,_0xc5aea6];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3701c9=this['editor'];if(!!!_0x3701c9['config']['get']('uploadcare'))return;_0x3701c9['plugins']['get'](_0x2e09ce)['createUploadAdapter']=_0x38de7d=>new k(_0x38de7d,_0x3701c9),_0x3701c9['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4751f6,{imageElement:_0x40ccd8,data:_0xa19b6c})=>{_0x3701c9['model']['change'](_0x3eb25e=>{_0x3eb25e['setAttribute']('uploadcareImageId',_0xa19b6c['uploadcareImageId'],_0x40ccd8);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4824a2,_0x4147be){this['loader']=_0x4824a2,this['editor']=_0x4147be,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3feb69=await this['loader']['file'];return _0x416f3b['upload']({'file':_0x3feb69,'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':_0xdc3863=>{_0xdc3863&&_0xdc3863['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xdc3863['value']);}})['then'](async _0x8380bd=>{const {imageFallbackUrl:_0x800521,imageSources:_0x25765e}=_0x40bb23(_0x8380bd['cdnUrl'],_0x8380bd['imageInfo']['width']);return{'uploadcareImageId':_0x8380bd['uuid'],'default':_0x800521,'sources':_0x25765e};})['catch'](()=>{const _0x4e2d55=t('Cannot\x20upload\x20file:')+('\x20'+_0x3feb69['name']+'.');return Promise['reject'](_0x4e2d55);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5866d4}from'../uploadcareconfig.js';export function getTranslation(_0x3dd3d8,_0x551779,_0x101af0){const t=_0x3dd3d8['t'],_0x1ffcef=_0x3dd3d8['t'];switch(_0x551779){case _0x5866d4['Local']:return{'text':_0x1ffcef('Insert'===_0x101af0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1ffcef('From\x20computer')};case _0x5866d4['URL']:return{'text':'Insert'===_0x101af0?_0x1ffcef('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1ffcef('Via\x20URL')};case _0x5866d4['Dropbox']:return{'text':t('Insert'===_0x101af0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5866d4['Facebook']:return{'text':t('Insert'===_0x101af0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5866d4['GDrive']:return{'text':t('Insert'===_0x101af0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5866d4['GPhotos']:return{'text':t('Insert'===_0x101af0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5866d4['OneDrive']:return{'text':t('Insert'===_0x101af0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x551779;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x477bc5=_0x2f4d;function _0x4d3d(){var _0x3ef921=['54625PPSrSM','26552cwYOlA','36QxHJqo','245889mltbcf','24onhTaZ','focusCycler','fire','div','276288PpaGEf','bindTemplate','206014uHyGGB','true','getFocusableElement','107102TdsfBC','6221402iKbUhC','1467taQRBh','forwardCycle','10IriqTF','focusTracker','12kSYNda','52WlSamL','createCollection'];_0x4d3d=function(){return _0x3ef921;};return _0x4d3d();}(function(_0x39f33f,_0x1575d3){var _0x112ecb=_0x2f4d,_0x3be99e=_0x39f33f();while(!![]){try{var _0x2453e0=-parseInt(_0x112ecb(0xe4))/0x1+parseInt(_0x112ecb(0xe1))/0x2*(parseInt(_0x112ecb(0xd4))/0x3)+-parseInt(_0x112ecb(0xdb))/0x4*(parseInt(_0x112ecb(0xd7))/0x5)+-parseInt(_0x112ecb(0xd9))/0x6*(-parseInt(_0x112ecb(0xda))/0x7)+parseInt(_0x112ecb(0xd8))/0x8*(parseInt(_0x112ecb(0xe6))/0x9)+-parseInt(_0x112ecb(0xe8))/0xa*(parseInt(_0x112ecb(0xe5))/0xb)+-parseInt(_0x112ecb(0xdf))/0xc*(parseInt(_0x112ecb(0xd5))/0xd);if(_0x2453e0===_0x1575d3)break;else _0x3be99e['push'](_0x3be99e['shift']());}catch(_0x314c7d){_0x3be99e['push'](_0x3be99e['shift']());}}}(_0x4d3d,0x51691));function _0x2f4d(_0x3e062b,_0x528712){var _0x4d3d69=_0x4d3d();return _0x2f4d=function(_0x2f4d8c,_0x475f7c){_0x2f4d8c=_0x2f4d8c-0xd3;var _0x1b33cd=_0x4d3d69[_0x2f4d8c];return _0x1b33cd;},_0x2f4d(_0x3e062b,_0x528712);}import{FocusTracker as _0x2be920}from'ckeditor5/src/utils.js';import{View as _0x5bb448,FocusCycler as _0xbe4df}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5bb448{[_0x477bc5(0xd3)];[_0x477bc5(0xdc)];constructor(_0x5734f9){var _0xa2ceb2=_0x477bc5;super(_0x5734f9),this[_0xa2ceb2(0xd3)]=new _0x2be920(),this[_0xa2ceb2(0xdc)]=new _0xbe4df({'focusables':this[_0xa2ceb2(0xd6)](),'focusTracker':this[_0xa2ceb2(0xd3)]});}[_0x477bc5(0xe3)](){var _0x2cd8a1=_0x477bc5;return{'tag':_0x2cd8a1(0xde),'attributes':{'aria-hidden':_0x2cd8a1(0xe2),'tabindex':'0'},'on':{'focus':this[_0x2cd8a1(0xe0)]['to'](()=>{var _0x44db78=_0x2cd8a1;this[_0x44db78(0xdc)][_0x44db78(0xdd)](_0x44db78(0xe7));})}};}}
|