@ckeditor/ckeditor5-uploadcare 47.5.0 → 47.6.0-alpha.1
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 _0x264073=_0x30a5;(function(_0x53728d,_0x4c6e0a){const _0x3d1bc1=_0x30a5,_0x54b82f=_0x53728d();while(!![]){try{const _0x5a62f3=parseInt(_0x3d1bc1(0x114))/0x1*(parseInt(_0x3d1bc1(0xf8))/0x2)+-parseInt(_0x3d1bc1(0x105))/0x3*(-parseInt(_0x3d1bc1(0x12a))/0x4)+-parseInt(_0x3d1bc1(0x126))/0x5*(parseInt(_0x3d1bc1(0x12c))/0x6)+parseInt(_0x3d1bc1(0x104))/0x7+parseInt(_0x3d1bc1(0xec))/0x8+-parseInt(_0x3d1bc1(0x121))/0x9*(parseInt(_0x3d1bc1(0x124))/0xa)+parseInt(_0x3d1bc1(0xf9))/0xb;if(_0x5a62f3===_0x4c6e0a)break;else _0x54b82f['push'](_0x54b82f['shift']());}catch(_0x142cf6){_0x54b82f['push'](_0x54b82f['shift']());}}}(_0x5da0,0xbb629));function _0x30a5(_0x7032b7,_0x42934a){const _0x5da03e=_0x5da0();return _0x30a5=function(_0x30a5e4,_0x3b6261){_0x30a5e4=_0x30a5e4-0xe1;let _0x4acd02=_0x5da03e[_0x30a5e4];return _0x4acd02;},_0x30a5(_0x7032b7,_0x42934a);}import{Plugin as _0x119aa6}from'ckeditor5/src/core.js';import{Dialog as _0x3fcebb}from'ckeditor5/src/ui.js';import{createElement as _0x5be50b,global as _0x26d713,uid as _0x353dc3}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5f4d57}from'./uploadcarecommand.js';function _0x5da0(){const _0x44c589=['getSelectedElement','990359XsAPte','uploadcareImageId','contentLanguage','_initImageProcessingIndicator','init','ctxElement','attributeToAttribute','appendChild','data-uc-image-id','true','replaceImageSource','uploadcareImageReplace','querySelector','2630106FuCFxI','listenTo','uc-config','50bkVnrp','conversion','355ktXTOr','document','join','uploader-','272ROJSKr','_ctxElement','47406YtNnVG','_configElement','afterInit','href','cleanupImage','closeMax','body','removeAttribute','\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','#uc-icon-arrow-down','_initSchema','PictureEditing','getAttribute','imageBlock','downcast','extend','input[uploadcare-file-input]','schema','imageInline','requires','for','upcast','595016BoKjzy','uc-upload-ctx-provider','pluginName','model','once','uploadcare.pubkey','ucContextId','get','fromCharCode','_initCtx','configElement','config','2XxJggu','12159147cCnDXJ','editor','remove','selection','execute','UploadcareEditing','map','editing','isOfficialPlugin','commands','locale','3459155IknOCp','5532hWcVgG','isRegistered','_initConversion','add','insertImage','view','uploadcare','iconHrefResolver','uploadcare.uploader','elementToAttribute','destroy','_initConfig','isPremiumPlugin','render'];_0x5da0=function(){return _0x44c589;};return _0x5da0();}import{UploadcareUploadAdapter as _0xbac162}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4cdb8b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x119aa6{[_0x264073(0x12d)]=null;[_0x264073(0x12b)]=null;static get[_0x264073(0xee)](){const _0x2fe5c7=_0x264073;return _0x2fe5c7(0xfe);}static get[_0x264073(0xe9)](){const _0x268ed4=_0x264073;return[_0x268ed4(0xe1),_0xbac162,_0x3fcebb];}static get[_0x264073(0x101)](){return!0x0;}static get[_0x264073(0x111)](){return!0x0;}[_0x264073(0xf2)];get[_0x264073(0xf6)](){const _0x26eb0c=_0x264073;return this[_0x26eb0c(0x12d)];}get[_0x264073(0x119)](){const _0x52a6de=_0x264073;return this[_0x52a6de(0x12b)];}constructor(_0x35daa5){const _0x36b2b2=_0x264073;super(_0x35daa5),this[_0x36b2b2(0xf2)]=_0x353dc3();}[_0x264073(0x118)](){const _0x12fb41=_0x264073,_0x1b08ed=this[_0x12fb41(0xfa)];_0x1b08ed[_0x12fb41(0x102)][_0x12fb41(0x108)](_0x12fb41(0x10b),new _0x5f4d57(_0x1b08ed));}[_0x264073(0x12e)](){const _0x3aee4f=_0x264073;this[_0x3aee4f(0x136)](),this[_0x3aee4f(0x107)](),this[_0x3aee4f(0x110)](),this[_0x3aee4f(0xf5)](),this[_0x3aee4f(0x117)](),this[_0x3aee4f(0x122)](this[_0x3aee4f(0xfa)],_0x3aee4f(0x10f),()=>{const _0x41b67d=_0x3aee4f;this[_0x41b67d(0x12d)]&&(this[_0x41b67d(0x12d)][_0x41b67d(0xfb)](),this[_0x41b67d(0x12d)]=null),this[_0x41b67d(0x12b)]&&(this[_0x41b67d(0x12b)][_0x41b67d(0xfb)](),this[_0x41b67d(0x12b)]=null);const _0x452557=_0x26d713[_0x41b67d(0x127)][_0x41b67d(0x120)](_0x41b67d(0xe6));_0x452557&&_0x452557[_0x41b67d(0xfb)]();}),async function(_0x5be2a3){const _0x4a8e92=_0x3c0da6([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]),_0x42104c=0x535f8c3a,_0x45bb7a=0x53580eea^_0x42104c,_0x516cab=window[_0x3c0da6([0x44,0x61,0x74,0x65])][_0x3c0da6([0x6e,0x6f,0x77])](),_0x1a7a64=_0x5be2a3[_0x3c0da6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x249f4e=new window[(_0x3c0da6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32575c=>{_0x1a7a64[_0x3c0da6([0x6f,0x6e,0x63,0x65])](_0x3c0da6([0x72,0x65,0x61,0x64,0x79]),_0x32575c);}),_0x168365={[_0x3c0da6([0x6b,0x74,0x79])]:_0x3c0da6([0x45,0x43]),[_0x3c0da6([0x75,0x73,0x65])]:_0x3c0da6([0x73,0x69,0x67]),[_0x3c0da6([0x63,0x72,0x76])]:_0x3c0da6([0x50,0x2d,0x32,0x35,0x36]),[_0x3c0da6([0x78])]:_0x3c0da6([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]),[_0x3c0da6([0x79])]:_0x3c0da6([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]),[_0x3c0da6([0x61,0x6c,0x67])]:_0x3c0da6([0x45,0x53,0x32,0x35,0x36])},_0x535df4=_0x1a7a64[_0x3c0da6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c0da6([0x67,0x65,0x74])](_0x3c0da6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54937b(){let _0x6b1950,_0x499472=null,_0x12857d=null;try{if(_0x535df4==_0x3c0da6([0x47,0x50,0x4c]))return _0x3c0da6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6b1950=_0x42bab4(),!_0x6b1950)return _0x3c0da6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6b1950[_0x3c0da6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12857d=_0x2f169c(_0x6b1950[_0x3c0da6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6b1950[_0x3c0da6([0x6a,0x74,0x69])])),await _0x20d0d1()?_0x39536c()?_0x554a94()?_0x3c0da6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3da2a7()?(_0x6b1950[_0x3c0da6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c0da6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x499472=_0x4543c9(_0x3c0da6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f72b5()):_0x3c0da6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c0da6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c0da6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c0da6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x554a94(){const _0x59f5b3=[_0x3c0da6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c0da6([0x74,0x72,0x69,0x61,0x6c])][_0x3c0da6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6b1950[_0x3c0da6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x516cab/0x3e8:0xe10*_0x45bb7a;return _0x6b1950[_0x3c0da6([0x65,0x78,0x70])]<_0x59f5b3;}function _0x39536c(){const _0x2d2a73=_0x6b1950[_0x3c0da6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d2a73&&(!!_0x2d2a73[_0x3c0da6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c0da6([0x2a]))||!!_0x2d2a73[_0x3c0da6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c0da6([0x55,0x50,0x4c,0x43])));}function _0x3da2a7(){const _0x2788b7=_0x30a5,_0x350b4a=_0x6b1950[_0x3c0da6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x350b4a||0x0==_0x350b4a[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf66eac}=new URL(window[_0x3c0da6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2788b7(0x12f)]);if(_0x350b4a[_0x3c0da6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf66eac))return!0x0;const _0x25639d=_0xf66eac[_0x3c0da6([0x73,0x70,0x6c,0x69,0x74])](_0x3c0da6([0x2e]));return _0x350b4a[_0x3c0da6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ad023=>_0x2ad023[_0x3c0da6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c0da6([0x2a])))[_0x3c0da6([0x6d,0x61,0x70])](_0x57f98c=>_0x57f98c[_0x3c0da6([0x73,0x70,0x6c,0x69,0x74])](_0x3c0da6([0x2e])))[_0x3c0da6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa8d7ac=>_0xa8d7ac[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x25639d[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c0da6([0x6d,0x61,0x70])](_0x244c6c=>Array(_0x25639d[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x244c6c[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c0da6([0x66,0x69,0x6c,0x6c])](_0x244c6c[0x0]===_0x3c0da6([0x2a])?_0x3c0da6([0x2a]):'')[_0x3c0da6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x244c6c))[_0x3c0da6([0x73,0x6f,0x6d,0x65])](_0x23e530=>_0x25639d[_0x3c0da6([0x65,0x76,0x65,0x72,0x79])]((_0xf1fa9d,_0x397e08)=>_0x23e530[_0x397e08]===_0xf1fa9d||_0x23e530[_0x397e08]===_0x3c0da6([0x2a])));}function _0x5f72b5(){return _0x499472&&_0x12857d?new window[(_0x3c0da6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5336ee,_0x13b9af)=>{_0x499472[_0x3c0da6([0x74,0x68,0x65,0x6e])](_0x5336ee,_0x13b9af),_0x12857d[_0x3c0da6([0x74,0x68,0x65,0x6e])](_0x7ca5d1=>{_0x7ca5d1!=_0x3c0da6([0x56,0x61,0x6c,0x69,0x64])&&_0x5336ee(_0x7ca5d1);},_0x13b9af);}):_0x499472||_0x12857d||_0x3c0da6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f169c(_0x226ae7,_0x2bc4a7){return new window[(_0x3c0da6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d6dc0=>{if(_0x4dd26f())return _0x3d6dc0(_0x3c0da6([0x56,0x61,0x6c,0x69,0x64]));_0x107481(),_0x1a7a64[_0x3c0da6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c0da6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b1c20=!0x1;const _0x4fa3c3=_0x353dc3();function _0x398d2c(_0x5020cb){return!!_0x5020cb&&(typeof _0x5020cb===_0x3c0da6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5020cb===_0x3c0da6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5020cb[_0x3c0da6([0x74,0x68,0x65,0x6e])]===_0x3c0da6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5020cb[_0x3c0da6([0x63,0x61,0x74,0x63,0x68])]===_0x3c0da6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52bebf(_0x54ffcb){_0x8453c(_0x54ffcb)[_0x3c0da6([0x74,0x68,0x65,0x6e])](_0x1ef9a5=>{if(!_0x1ef9a5||_0x1ef9a5[_0x3c0da6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c0da6([0x6f,0x6b]))return _0x3c0da6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x112a9c(_0x146ff6(_0x4fa3c3+_0x2bc4a7))!=_0x1ef9a5[_0x3c0da6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c0da6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c0da6([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c0da6([0x74,0x68,0x65,0x6e])](_0x2a6a63=>(_0x7e4a(),_0x2a6a63),()=>{const _0x3355a5=_0x379209();return null==_0x3355a5?(_0x7e4a(),_0x3c0da6([0x56,0x61,0x6c,0x69,0x64])):_0x3c0da6(_0x516cab-_0x3355a5>(0x7753083a^_0x42104c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c0da6([0x74,0x68,0x65,0x6e])](_0x3d6dc0)[_0x3c0da6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d6dc0(_0x3c0da6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7468f3=0x536962ba^_0x42104c;function _0x7e4a(){const _0x21ff8d=_0x3c0da6([0x6c,0x6c,0x63,0x74,0x2d])+_0x112a9c(_0x146ff6(_0x226ae7)),_0x424c08=_0xaf335a(_0x112a9c(window[_0x3c0da6([0x4d,0x61,0x74,0x68])][_0x3c0da6([0x63,0x65,0x69,0x6c])](_0x516cab/_0x7468f3)));window[_0x3c0da6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c0da6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21ff8d,_0x424c08);}function _0x379209(){const _0xa9c4a1=_0x3c0da6([0x6c,0x6c,0x63,0x74,0x2d])+_0x112a9c(_0x146ff6(_0x226ae7)),_0xa888d7=window[_0x3c0da6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c0da6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa9c4a1);return _0xa888d7?window[_0x3c0da6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaf335a(_0xa888d7),0x10)*_0x7468f3:null;}function _0x8453c(_0x117488){return new window[(_0x3c0da6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x197d94,_0x1df95e)=>{_0x117488[_0x3c0da6([0x74,0x68,0x65,0x6e])](_0x197d94,_0x1df95e),window[_0x3c0da6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1df95e,0x535e58fa^_0x42104c);});}}_0x1a7a64[_0x3c0da6([0x6f,0x6e])](_0x3c0da6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x32047c,_0x3ee959)=>{if(_0x3ee959[0x0]!=_0x226ae7)return _0x3d6dc0(_0x3c0da6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ee959[0x1]={..._0x3ee959[0x1],[_0x3c0da6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4fa3c3};},{[_0x3c0da6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c0da6([0x68,0x69,0x67,0x68])}),_0x1a7a64[_0x3c0da6([0x6f,0x6e])](_0x3c0da6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x22b611=>{_0x398d2c(_0x22b611[_0x3c0da6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b1c20=!0x0,_0x52bebf(_0x22b611[_0x3c0da6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c0da6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c0da6([0x6c,0x6f,0x77])}),_0x249f4e[_0x3c0da6([0x74,0x68,0x65,0x6e])](()=>{_0x2b1c20||_0x3d6dc0(_0x3c0da6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4dd26f(){return _0x1a7a64[_0x3c0da6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c0da6([0x76,0x69,0x65,0x77])][_0x3c0da6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c0da6([0x61,0x75,0x74,0x6f]);}function _0x107481(){_0x1a7a64[_0x3c0da6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c0da6([0x76,0x69,0x65,0x77])][_0x3c0da6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c0da6([0x61,0x75,0x74,0x6f]);}}function _0x4543c9(_0x58c9bf){const _0x9f659b=[new window[(_0x3c0da6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46110b=>setTimeout(_0x46110b,0x5356b2f6^_0x42104c)),_0x249f4e[_0x3c0da6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c0da6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18b411=>{let _0x506435=0x0;_0x1a7a64[_0x3c0da6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c0da6([0x6f,0x6e])](_0x3c0da6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e6f2d,_0x1a1968)=>{_0x1a1968[0x0][_0x3c0da6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x506435++,_0x506435==(0x535f89d2^_0x42104c)&&(_0x18b411(),_0x3e6f2d[_0x3c0da6([0x6f,0x66,0x66])]());});}))];return window[_0x3c0da6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c0da6([0x72,0x61,0x63,0x65])](_0x9f659b)[_0x3c0da6([0x74,0x68,0x65,0x6e])](()=>_0x58c9bf);}async function _0x5022de(){await _0x249f4e,_0x1a7a64[_0x3c0da6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c0da6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57188b,_0x1a7a64[_0x3c0da6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c0da6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57188b,_0x1a7a64[_0x3c0da6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c0da6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x195ed6(_0xc97da2){const _0x4b452a=_0x412369();_0x1a7a64[_0x4b452a]=_0x3c0da6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc97da2,_0xc97da2!=_0x3c0da6([0x56,0x61,0x6c,0x69,0x64])&&_0x5022de();}function _0x412369(){const _0x304b2e=window[_0x3c0da6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c0da6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c0da6([0x6e,0x6f,0x77])]())[_0x3c0da6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c0da6([0x2e]),'');let _0x240b0e=_0x3c0da6([0x68]);for(let _0x2fa190=0x0;_0x2fa190<_0x304b2e[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2fa190+=0x2){let _0x7d340a=window[_0x3c0da6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x304b2e[_0x3c0da6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2fa190,_0x2fa190+0x2));_0x7d340a>=_0x4a8e92[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x7d340a-=_0x4a8e92[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x240b0e+=_0x4a8e92[_0x7d340a];}return _0x240b0e;}function _0x42bab4(){const _0x2722ee=_0x535df4[_0x3c0da6([0x73,0x70,0x6c,0x69,0x74])](_0x3c0da6([0x2e]));if(0x3!=_0x2722ee[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47deab(_0x2722ee[0x1]);function _0x47deab(_0x5cdeda){const _0x4c3945=_0x50903d(_0x5cdeda);return _0x4c3945&&_0xc87859()?_0x4c3945:null;function _0xc87859(){const _0x9f7dee=_0x4c3945[_0x3c0da6([0x6a,0x74,0x69])],_0xa0e81=window[_0x3c0da6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9f7dee[_0x3c0da6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9f7dee[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x376cfe={..._0x4c3945,[_0x3c0da6([0x6a,0x74,0x69])]:_0x9f7dee[_0x3c0da6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x9f7dee[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x376cfe[_0x3c0da6([0x76,0x63])],_0x146ff6(_0x376cfe)==_0xa0e81;}}}async function _0x20d0d1(){let _0x17e37f=!0x0;try{const _0x54e349=_0x535df4[_0x3c0da6([0x73,0x70,0x6c,0x69,0x74])](_0x3c0da6([0x2e])),[_0x280c26,_0x3d4506,_0x35d765]=_0x54e349;return _0x5f2459(_0x280c26),await _0x2e51e2(_0x280c26,_0x3d4506,_0x35d765),_0x17e37f;}catch{return!0x1;}function _0x5f2459(_0x3b9f69){const _0x93cb0e=_0x50903d(_0x3b9f69);_0x93cb0e&&_0x93cb0e[_0x3c0da6([0x61,0x6c,0x67])]==_0x3c0da6([0x45,0x53,0x32,0x35,0x36])||(_0x17e37f=!0x1);}async function _0x2e51e2(_0x1d4ccd,_0x37950e,_0x3810c8){const _0x17e678=window[_0x3c0da6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c0da6([0x66,0x72,0x6f,0x6d])](_0x48d66e(_0x3810c8),_0x1e42f3=>_0x1e42f3[_0x3c0da6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x338287=new window[(_0x3c0da6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c0da6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d4ccd+_0x3c0da6([0x2e])+_0x37950e),_0x18987d=window[_0x3c0da6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c0da6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18987d)return;const _0x45a9e4=await _0x18987d[_0x3c0da6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c0da6([0x6a,0x77,0x6b]),_0x168365,{[_0x3c0da6([0x6e,0x61,0x6d,0x65])]:_0x3c0da6([0x45,0x43,0x44,0x53,0x41]),[_0x3c0da6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c0da6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c0da6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18987d[_0x3c0da6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c0da6([0x6e,0x61,0x6d,0x65])]:_0x3c0da6([0x45,0x43,0x44,0x53,0x41]),[_0x3c0da6([0x68,0x61,0x73,0x68])]:{[_0x3c0da6([0x6e,0x61,0x6d,0x65])]:_0x3c0da6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x45a9e4,_0x17e678,_0x338287)||(_0x17e37f=!0x1);}}function _0x50903d(_0x55f803){return _0x55f803[_0x3c0da6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c0da6([0x65,0x79]))?JSON[_0x3c0da6([0x70,0x61,0x72,0x73,0x65])](_0x48d66e(_0x55f803)):null;}function _0x48d66e(_0x435ed6){return window[_0x3c0da6([0x61,0x74,0x6f,0x62])](_0x435ed6[_0x3c0da6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c0da6([0x2b]))[_0x3c0da6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c0da6([0x2f])));}function _0x146ff6(_0x206d0c){let _0x3a6193=0x1505;function _0x33787d(_0x37dca7){for(let _0x54c12c=0x0;_0x54c12c<_0x37dca7[_0x3c0da6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54c12c++){const _0x587253=_0x37dca7[_0x3c0da6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54c12c);_0x3a6193=(_0x3a6193<<0x5)+_0x3a6193+_0x587253,_0x3a6193&=_0x3a6193;}}function _0x23077e(_0xdfcbd6){Array[_0x3c0da6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdfcbd6)?_0xdfcbd6[_0x3c0da6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23077e):_0xdfcbd6&&typeof _0xdfcbd6==_0x3c0da6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c0da6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdfcbd6)[_0x3c0da6([0x73,0x6f,0x72,0x74])]()[_0x3c0da6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5308fb,_0x33a22b])=>{_0x33787d(_0x5308fb),_0x23077e(_0x33a22b);}):_0x33787d(window[_0x3c0da6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdfcbd6));}return _0x23077e(_0x206d0c),_0x3a6193>>>0x0;}function _0x112a9c(_0x84c646){return _0x84c646[_0x3c0da6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c0da6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c0da6([0x30]));}function _0xaf335a(_0x135401){return _0x135401[_0x3c0da6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c0da6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c0da6([0x6a,0x6f,0x69,0x6e])]('');}function _0x57188b(){}function _0x3c0da6(_0x2d9a98){const _0x339a19=_0x30a5;return _0x2d9a98[_0x339a19(0xff)](_0x2ddfca=>String[_0x339a19(0xf4)](_0x2ddfca))[_0x339a19(0x128)]('');}_0x195ed6(await _0x54937b());}(this);}[_0x264073(0x136)](){const _0x7a5ab2=_0x264073,_0x23bd5a=this[_0x7a5ab2(0xfa)][_0x7a5ab2(0xef)][_0x7a5ab2(0xe7)];_0x23bd5a[_0x7a5ab2(0x106)](_0x7a5ab2(0xe3))&&_0x23bd5a[_0x7a5ab2(0xe5)](_0x7a5ab2(0xe3),{'allowAttributes':[_0x7a5ab2(0x115)]}),_0x23bd5a[_0x7a5ab2(0x106)](_0x7a5ab2(0xe8))&&_0x23bd5a[_0x7a5ab2(0xe5)](_0x7a5ab2(0xe8),{'allowAttributes':[_0x7a5ab2(0x115)]});}[_0x264073(0x107)](){const _0x395c10=_0x264073,_0x331b0e=this[_0x395c10(0xfa)];_0x331b0e[_0x395c10(0x125)][_0x395c10(0xea)](_0x395c10(0xe4))[_0x395c10(0x11a)]({'model':_0x395c10(0x115),'view':_0x395c10(0x11c)}),_0x331b0e[_0x395c10(0x125)][_0x395c10(0xea)](_0x395c10(0xeb))[_0x395c10(0x10e)]({'model':{'key':_0x395c10(0x115),'value':_0x64bb13=>_0x64bb13[_0x395c10(0xe2)](_0x395c10(0x11c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x59b0b6=_0x331b0e[_0x395c10(0x102)][_0x395c10(0xf3)](_0x395c10(0x11e));_0x59b0b6&&this[_0x395c10(0x122)](_0x59b0b6,_0x395c10(0x130),(_0x4ae061,[_0x4e2901,_0x50d60e])=>{const _0x5e004f=_0x395c10;_0x4e2901[_0x5e004f(0x133)](_0x5e004f(0x115),_0x50d60e);});}[_0x264073(0x110)](){const _0x698988=_0x264073,_0x574b3c=this[_0x698988(0xfa)][_0x698988(0xf7)][_0x698988(0xf3)](_0x698988(0x10d))||{},_0x24bad9=this[_0x698988(0xfa)][_0x698988(0xf7)][_0x698988(0xf3)](_0x698988(0xf1))||'';this[_0x698988(0x12d)]=_0x5be50b(_0x26d713[_0x698988(0x127)],_0x698988(0x123),{..._0x574b3c,'pubkey':_0x24bad9,'ctx-name':_0x698988(0x129)+this[_0x698988(0xf2)],'sourceList':'','imgOnly':_0x698988(0x11d),'removeCopyright':_0x698988(0x11d),'localeName':this[_0x698988(0xfa)][_0x698988(0x103)][_0x698988(0x116)],'externalSourcesEmbedCss':_0x698988(0x134)}),this[_0x698988(0x12d)][_0x698988(0x10c)]=_0x5ca3a1=>{const _0x3b290a=_0x698988;if(_0x3b290a(0x131)==_0x5ca3a1)return _0x3b290a(0x135);},_0x26d713[_0x698988(0x127)][_0x698988(0x132)][_0x698988(0x11b)](this[_0x698988(0x12d)]);}[_0x264073(0xf5)](){const _0x4d8beb=_0x264073;this[_0x4d8beb(0x12b)]=_0x5be50b(_0x26d713[_0x4d8beb(0x127)],_0x4d8beb(0xed),{'ctx-name':_0x4d8beb(0x129)+this[_0x4d8beb(0xf2)]}),_0x26d713[_0x4d8beb(0x127)][_0x4d8beb(0x132)][_0x4d8beb(0x11b)](this[_0x4d8beb(0x12b)]);}[_0x264073(0x117)](){const _0x567637=_0x264073,_0x2f603d=this[_0x567637(0xfa)][_0x567637(0x102)][_0x567637(0xf3)](_0x567637(0x109));_0x2f603d&&this[_0x567637(0x122)](_0x2f603d,_0x567637(0xfd),()=>{const _0x3cc5c6=_0x567637,_0x1aac35=this[_0x3cc5c6(0xfa)][_0x3cc5c6(0xef)][_0x3cc5c6(0x127)][_0x3cc5c6(0xfc)][_0x3cc5c6(0x113)]();_0x1aac35&&_0x1aac35[_0x3cc5c6(0xe2)](_0x3cc5c6(0x115))&&this[_0x3cc5c6(0xfa)][_0x3cc5c6(0x100)][_0x3cc5c6(0x10a)][_0x3cc5c6(0xf0)](_0x3cc5c6(0x112),()=>{const _0x3ebcdf=_0x3cc5c6;_0x4cdb8b(this[_0x3ebcdf(0xfa)],_0x1aac35);});});const _0x386e14=this[_0x567637(0xfa)][_0x567637(0x102)][_0x567637(0xf3)](_0x567637(0x11f));_0x386e14&&this[_0x567637(0x122)](_0x386e14,_0x567637(0xfd),()=>{const _0x376752=_0x567637,_0x49c30e=this[_0x376752(0xfa)][_0x376752(0xef)][_0x376752(0x127)][_0x376752(0xfc)][_0x376752(0x113)]();_0x49c30e&&_0x49c30e[_0x376752(0xe2)](_0x376752(0x115))&&this[_0x376752(0xfa)][_0x376752(0x100)][_0x376752(0x10a)][_0x376752(0xf0)](_0x376752(0x112),()=>{const _0x1ffc20=_0x376752;_0x4cdb8b(this[_0x1ffc20(0xfa)],_0x49c30e);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x307f79,ObservableMixin as _0x5df7c1}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x36c4a4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5588fd}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x26a277}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x763a2c}from'../../utils/uploadutils.js';import{getImageUrls as _0x432996,getImageDimension as _0x174e96}from'../../utils/editingutils.js';import{isAncestor as _0x416544}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5df7c1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x383b9b,_0x2b2372,_0x317809){super(),this['_editor']=_0x383b9b,this['_dialog']=_0x2b2372,this['_imageElement']=_0x317809,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 _0x1d45da=this['_imageElement'],_0x41a302=_0x1d45da['getAttribute']('uploadcareImageId'),_0x2d71a4=_0x1d45da['getAttribute']('src');if(_0x41a302)await this['_loadImageInfo'](_0x41a302,_0x2d71a4);else{if(this['_imageCache']['has'](_0x2d71a4)){const _0x7cf546=this['_imageCache']['get'](_0x2d71a4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7cf546['url'],this['imageDimension']=_0x7cf546['dimension'],this['imageId']=_0x7cf546['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x371d1c}=this['_editor'],t=_0x371d1c['t'],_0x55d189=new _0x26a277(_0x371d1c,this['imageStatus'],this['_attributes']);_0x55d189['bind']('status')['to'](this,'imageStatus'),_0x55d189['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x55d189['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x55d189['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x55d189,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5588fd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x55d189,'position':_0x36c4a4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x55d189['focus']();},'onHide':()=>{_0x55d189['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x332bc0=>!_0x416544(_0x332bc0,_0x55d189['element'])}});}['_loadImageInfo'](_0x4a1fa1,_0x1d8485){return _0x763a2c['getInfo'](_0x4a1fa1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4f8ec5=>{const {width:_0x809066,height:_0x333ff9}=_0x4f8ec5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d8485,this['imageDimension']={'width':_0x809066,'height':_0x333ff9},this['imageId']=_0x4a1fa1;})['catch'](_0x514d46=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x514d46['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x176a0d,_0x401c19){return this['_getImageAsFile'](_0x176a0d)['then'](_0x4cf3f0=>_0x763a2c['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':_0x401c19['signal'],'file':_0x4cf3f0,'onProgress':_0x5b7273=>{_0x5b7273&&_0x5b7273['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5b7273['value']));}}))['then'](_0x49dbb7=>{const {width:_0x173e36,height:_0x42374d}=_0x49dbb7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49dbb7['cdnUrl'],this['imageDimension']={'width':_0x173e36,'height':_0x42374d},this['imageId']=_0x49dbb7['uuid'],this['imageUploadProgress']=null;const _0x898675=_0x176a0d['getAttribute']('src');this['_imageCache']['set'](_0x898675,{'id':_0x49dbb7['uuid'],'url':_0x49dbb7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x103dc1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x103dc1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1f3760,_0x152e41){_0x1f3760['on']('apply',(_0x518123,_0x9a793d)=>{this['_replaceImage'](_0x152e41,_0x9a793d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1f3760['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1f3760['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4f50c8,_0x482acf,_0x13773c){const _0x26e43c=this['_editor'],{width:_0x17e681,height:_0x7d081c}=_0x174e96(_0x482acf,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xd89ccc,imageSources:_0x3cb2c7}=_0x432996(_0x482acf,_0x17e681);_0x26e43c['model']['change'](_0x10c24c=>{if('$graveyard'===_0x4f50c8['root']['rootName']){_0x26e43c['execute']('insertImage',{'imageType':_0x4f50c8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4f50c8['getAttributes']()),'uploadcareImageId':_0x13773c,'src':_0xd89ccc,'sources':_0x3cb2c7,'width':_0x17e681,'height':_0x7d081c}});const _0x29289b=_0x4f50c8['getChildren']();_0x4f50c8=_0x26e43c['model']['document']['selection']['getSelectedElement']();for(const _0x1bc275 of _0x29289b)_0x10c24c['append'](_0x10c24c['cloneElement'](_0x1bc275),_0x4f50c8);}else _0x10c24c['setSelection'](_0x4f50c8,'on'),_0x26e43c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4f50c8['getAttributes']()),'uploadcareImageId':_0x13773c,'src':_0xd89ccc,'sources':_0x3cb2c7,'width':_0x17e681,'height':_0x7d081c},_0x4f50c8);_0x10c24c['setSelection'](_0x4f50c8,'on');});}async['_getImageAsFile'](_0x3764e4){const _0x35b6fc=_0x307f79['window'],_0x5350df=_0x307f79['document']['location']['href'],_0x47eabf=new _0x35b6fc['URL'](_0x3764e4['getAttribute']('src'),_0x5350df);if('data:'===_0x47eabf['protocol']){const _0x2974cd=_0x47eabf['href']['split'](','),_0x1a757f=_0x2974cd[0x0]['match'](/:(.*?);/)[0x1],_0x2ef506=_0x1a757f['split']('/')[0x1],_0x5b32e1=_0x35b6fc['atob'](_0x2974cd[_0x2974cd['length']-0x1]);let _0x1ffe52=_0x5b32e1['length'];const _0x1b75d5=new _0x35b6fc['Uint8Array'](_0x1ffe52);for(;_0x1ffe52--;)_0x1b75d5[_0x1ffe52]=_0x5b32e1['charCodeAt'](_0x1ffe52);return new _0x35b6fc['File']([_0x1b75d5],'image.'+_0x2ef506,{'type':_0x1a757f});}const _0x28da6f=_0x47eabf['href']['split']('/'),_0x1efa4f=_0x28da6f[_0x28da6f['length']-0x1],_0x248d27=_0x1efa4f['split']('.')[0x1];return _0x35b6fc['fetch'](_0x47eabf['href'])['then'](_0x187970=>_0x187970['clone']()['blob']())['then'](_0x3056a3=>new _0x35b6fc['File']([_0x3056a3],_0x1efa4f,{'type':'image/'+_0x248d27}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3ae5a7,_0x3846b3){const _0x5b54ca=_0x22de,_0x48a3d5=_0x3ae5a7();while(!![]){try{const _0xe13469=parseInt(_0x5b54ca(0x186))/0x1*(-parseInt(_0x5b54ca(0x18a))/0x2)+parseInt(_0x5b54ca(0x17f))/0x3*(parseInt(_0x5b54ca(0x185))/0x4)+-parseInt(_0x5b54ca(0x183))/0x5*(-parseInt(_0x5b54ca(0x17c))/0x6)+-parseInt(_0x5b54ca(0x187))/0x7+-parseInt(_0x5b54ca(0x17d))/0x8+-parseInt(_0x5b54ca(0x17e))/0x9+parseInt(_0x5b54ca(0x18b))/0xa;if(_0xe13469===_0x3846b3)break;else _0x48a3d5['push'](_0x48a3d5['shift']());}catch(_0x5426ce){_0x48a3d5['push'](_0x48a3d5['shift']());}}}(_0xaee7,0x71afb));import{View as _0x26b4ee}from'ckeditor5/src/ui.js';function _0x22de(_0x106eb3,_0x138407){const _0xaee7f5=_0xaee7();return _0x22de=function(_0x22dea2,_0x4a3c16){_0x22dea2=_0x22dea2-0x17a;let _0x5d9c9c=_0xaee7f5[_0x22dea2];return _0x5d9c9c;},_0x22de(_0x106eb3,_0x138407);}export class UploadcareImageEditFormEditingView extends _0x26b4ee{constructor(_0x36414c,_0x3035d9){const _0xa5dd97=_0x22de;super(_0x36414c);const _0x208258=this[_0xa5dd97(0x181)];this[_0xa5dd97(0x184)](_0xa5dd97(0x180),''),this[_0xa5dd97(0x189)]({'tag':_0xa5dd97(0x188),'attributes':{..._0x3035d9,'class':[_0xa5dd97(0x17b),_0xa5dd97(0x17a)],'ctx-name':_0xa5dd97(0x182),'cdn-url':_0x208258['to'](_0xa5dd97(0x180))}});}}function _0xaee7(){const _0x5e1777=['4fQawju','911YUoAAj','2632798OjjorR','uc-cloud-image-editor','setTemplate','906PnEong','13644580zEhppZ','ck-uploadcare-theme','uc-light','330mUmZGc','1165096vbnXmN','5732856xJGzqs','1868202hhLFFK','imageSrc','bindTemplate','image-edit','4535IcLIuW','set'];_0xaee7=function(){return _0x5e1777;};return _0xaee7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x278982}from'ckeditor5/src/icons.js';import{ButtonView as _0x34fa42,IconView as _0x2ed258,View as _0x21188e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x21188e{constructor(_0x48d30a){super(_0x48d30a);const t=_0x48d30a['t'];this['set']('errorType',null);const _0x37f44b=new _0x34fa42(_0x48d30a);_0x37f44b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x37f44b['withText']=!0x0,_0x37f44b['class']='ck-button-action',_0x37f44b['on']('execute',()=>{this['fire']('retry');}),_0x37f44b['bind']('isVisible')['to'](this,'errorType',_0x55d3d0=>'NotFound'!==_0x55d3d0);const _0x44339f=new _0x2ed258();_0x44339f['content']=_0x278982,_0x44339f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x128c37=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':[_0x44339f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x128c37['to']('errorType',_0x3fcd62=>t('NotFound'!==_0x3fcd62?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x37f44b]},{'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 _0x17ab3e,View as _0x16b4b6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x16b4b6{constructor(_0x262e45){super(_0x262e45);const t=_0x262e45['t'],_0x5345db=this['bindTemplate'],_0x57254e=new _0x17ab3e();_0x57254e['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':[_0x57254e,{'text':_0x5345db['to']('imageUploadProgress',_0x376353=>t('Loading\x20image...')+'\x20('+(_0x376353||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
|
-
function
|
|
23
|
+
function _0xeace(){const _0x336607=['294lIakqb','cancel','fire','_items','_addUploadcareImageEditorListeners','21105vyZOpH','471774fGuyDf','575952BhgJeJ','disconnect','_focusableView','add','target','addedNodes','cdnUrl','render','change:status','ck-uploadcare-form','_loadingView','getFocusableElement','setTemplate','699772atxTEk','retry','_waitForImageEditorComponent','addMany','728JILudd','length','_editingView','set','detail','createCollection','div','element','toLowerCase','apply','1676798hxsXzl','nodeName','_addErrorViewListeners','_setView','observe','_errorView','uploading','querySelector','415WnCyyJ','error','clear','filter','ck-reset_all-excluded','once','27102hQKDJV','addEventListener','status','focus','ready','uc-cloud-image-editor','5260ElSjnk'];_0xeace=function(){return _0x336607;};return _0xeace();}const _0x51b107=_0xb93f;(function(_0x2fc6b0,_0x24fceb){const _0x305ce8=_0xb93f,_0x43f2fe=_0x2fc6b0();while(!![]){try{const _0x2cf4ef=parseInt(_0x305ce8(0x86))/0x1+parseInt(_0x305ce8(0xa2))/0x2+-parseInt(_0x305ce8(0x87))/0x3+parseInt(_0x305ce8(0x94))/0x4+parseInt(_0x305ce8(0xaa))/0x5*(parseInt(_0x305ce8(0x79))/0x6)+-parseInt(_0x305ce8(0x80))/0x7*(-parseInt(_0x305ce8(0x98))/0x8)+-parseInt(_0x305ce8(0x85))/0x9*(parseInt(_0x305ce8(0x7f))/0xa);if(_0x2cf4ef===_0x24fceb)break;else _0x43f2fe['push'](_0x43f2fe['shift']());}catch(_0x39691f){_0x43f2fe['push'](_0x43f2fe['shift']());}}}(_0xeace,0x6b07b));import{View as _0x2490e6}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x23fd3b}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2a9d67}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x440f78}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5f2cf0}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0xb93f(_0x4a4128,_0x5de082){const _0xeacea7=_0xeace();return _0xb93f=function(_0xb93ff7,_0x17b88d){_0xb93ff7=_0xb93ff7-0x77;let _0xe96500=_0xeacea7[_0xb93ff7];return _0xe96500;},_0xb93f(_0x4a4128,_0x5de082);}export class UploadcareImageEditFormView extends _0x5f2cf0{[_0x51b107(0x83)];[_0x51b107(0x91)];[_0x51b107(0xa7)];[_0x51b107(0x9a)];[_0x51b107(0x89)];constructor(_0x410bff,_0x5c0bda,_0x1cb949){const _0x3cb259=_0x51b107;super(_0x410bff),this[_0x3cb259(0x83)]=this[_0x3cb259(0x9d)](),this[_0x3cb259(0x91)]=new _0x23fd3b(_0x410bff),this[_0x3cb259(0xa7)]=new _0x2a9d67(_0x410bff),this[_0x3cb259(0x9a)]=new _0x440f78(_0x410bff,_0x1cb949),this[_0x3cb259(0x89)]=new _0x2490e6(_0x410bff),this[_0x3cb259(0x89)][_0x3cb259(0x93)](this[_0x3cb259(0x92)]()),this[_0x3cb259(0x9b)](_0x3cb259(0x7b),_0x5c0bda),this[_0x3cb259(0x93)]({'tag':_0x3cb259(0x9e),'attributes':{'class':['ck',_0x3cb259(0x77),_0x3cb259(0x90)],'tabindex':'-1'},'children':this[_0x3cb259(0x83)]}),this[_0x3cb259(0xa5)](),this[_0x3cb259(0x78)](_0x3cb259(0x8e),()=>{const _0x479ae4=_0x3cb259;this[_0x479ae4(0x96)](this[_0x479ae4(0x9f)],_0x419eaa=>{const _0x1d3ea5=_0x479ae4;this[_0x1d3ea5(0x84)](_0x419eaa);});}),this['on'](_0x3cb259(0x8f),()=>{const _0x41aad8=_0x3cb259;this[_0x41aad8(0xa5)]();}),this[_0x3cb259(0xa4)]();}[_0x51b107(0x7c)](){const _0x1e69cd=_0x51b107;this[_0x1e69cd(0x9f)][_0x1e69cd(0x7c)]();}[_0x51b107(0xa5)](){const _0xa15215=_0x51b107;switch(this[_0xa15215(0x83)][_0xa15215(0xac)](),this[_0xa15215(0x7b)]){case _0xa15215(0xa8):this[_0xa15215(0x83)][_0xa15215(0x8a)](this[_0xa15215(0x91)]);break;case _0xa15215(0xab):this[_0xa15215(0x83)][_0xa15215(0x8a)](this[_0xa15215(0xa7)]);break;case _0xa15215(0x7d):this[_0xa15215(0x83)][_0xa15215(0x97)]([this[_0xa15215(0x9a)],this[_0xa15215(0x89)]]);}}[_0x51b107(0x96)](_0x469d5c,_0x19dcfc){const _0x32dab0=_0x51b107,_0x1a6e2b=_0x32dab0(0x7e),_0x499693=_0x469d5c[_0x32dab0(0xa9)](_0x1a6e2b);if(_0x499693)return _0x19dcfc(_0x499693);const _0x40acc2=new MutationObserver(_0x46a4b2=>{const _0x1d4078=_0x32dab0,_0x3c39f7=_0x46a4b2[_0x1d4078(0xad)](_0x5430bd=>_0x5430bd[_0x1d4078(0x8b)]===_0x469d5c&&_0x5430bd[_0x1d4078(0x8c)][_0x1d4078(0x99)]>0x0&&_0x5430bd[_0x1d4078(0x8c)][0x0][_0x1d4078(0xa3)][_0x1d4078(0xa0)]()===_0x1a6e2b);_0x3c39f7[_0x1d4078(0x99)]&&(_0x40acc2[_0x1d4078(0x88)](),_0x19dcfc(_0x3c39f7[0x0][_0x1d4078(0x8c)][0x0]));});_0x40acc2[_0x32dab0(0xa6)](_0x469d5c,{'childList':!0x0,'subtree':!0x0});}[_0x51b107(0x84)](_0xfae54d){const _0xfaeb18=_0x51b107;_0xfae54d[_0xfaeb18(0x7a)](_0xfaeb18(0xa1),_0x1e45ad=>{const _0x92b8ca=_0xfaeb18;this[_0x92b8ca(0x82)](_0x92b8ca(0xa1),{'imageSrc':_0x1e45ad[_0x92b8ca(0x9c)][_0x92b8ca(0x8d)]});}),_0xfae54d[_0xfaeb18(0x7a)](_0xfaeb18(0x81),()=>{const _0x5e44c6=_0xfaeb18;this[_0x5e44c6(0x82)](_0x5e44c6(0x81));});}[_0x51b107(0xa4)](){const _0x4d2f95=_0x51b107;this[_0x4d2f95(0xa7)]['on'](_0x4d2f95(0x95),()=>{const _0x1c0f92=_0x4d2f95;this[_0x1c0f92(0x82)](_0x1c0f92(0x95));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xde37(){const _0x4cbf14=['826256BfQVdm','unbind','imageEditController','document','bind','451218NQrcKm','105545TMFtXA','editor','selection','model','isActive','86JsSsoo','566676nxLnuK','config','set','requires','element','execute','110596kAVDAr','isEnabled','4817LmGcrz','965237KYqwFx','plugins','_isEditable','refresh','get','uploadcare.allowExternalImagesEditing','imageInline','imageBlock','getSelectedElement'];_0xde37=function(){return _0x4cbf14;};return _0xde37();}const _0x331205=_0x76ca;(function(_0x22d53d,_0x1d7fd0){const _0x22899f=_0x76ca,_0x53f34c=_0x22d53d();while(!![]){try{const _0x436bef=-parseInt(_0x22899f(0x79))/0x1*(parseInt(_0x22899f(0x8e))/0x2)+parseInt(_0x22899f(0x8f))/0x3+parseInt(_0x22899f(0x77))/0x4+-parseInt(_0x22899f(0x89))/0x5+-parseInt(_0x22899f(0x88))/0x6+parseInt(_0x22899f(0x7a))/0x7+parseInt(_0x22899f(0x83))/0x8;if(_0x436bef===_0x1d7fd0)break;else _0x53f34c['push'](_0x53f34c['shift']());}catch(_0x21a282){_0x53f34c['push'](_0x53f34c['shift']());}}}(_0xde37,0x25a9f));import{Command as _0x5a77f1}from'ckeditor5/src/core.js';import{Dialog as _0x1ec8c4}from'ckeditor5/src/ui.js';function _0x76ca(_0x499659,_0x5c6cbd){const _0xde37a6=_0xde37();return _0x76ca=function(_0x76ca7c,_0x5dc926){_0x76ca7c=_0x76ca7c-0x75;let _0x121550=_0xde37a6[_0x76ca7c];return _0x121550;},_0x76ca(_0x499659,_0x5c6cbd);}import{UploadcareImageEditController as _0x47c57a}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x29a5d2}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x5a77f1{[_0x331205(0x85)];static get[_0x331205(0x92)](){return[_0x1ec8c4];}[_0x331205(0x7c)];constructor(_0x1c35a2){const _0x63e770=_0x331205;super(_0x1c35a2),this[_0x63e770(0x85)]=void 0x0,this[_0x63e770(0x7c)]=_0x29a5d2(_0x1c35a2[_0x63e770(0x90)][_0x63e770(0x7e)](_0x63e770(0x7f))||[]),this[_0x63e770(0x91)]({'isActive':!0x1});}[_0x331205(0x7d)](){const _0x48ab82=_0x331205,_0x454cd6=this[_0x48ab82(0x8a)][_0x48ab82(0x8c)][_0x48ab82(0x86)][_0x48ab82(0x8b)][_0x48ab82(0x82)]();this[_0x48ab82(0x78)]=this[_0x48ab82(0x7c)](_0x454cd6);}[_0x331205(0x76)](){const _0x21fa46=_0x331205;this[_0x21fa46(0x85)]&&(this[_0x21fa46(0x84)](_0x21fa46(0x8d)),this[_0x21fa46(0x85)]=void 0x0);const _0x505be7=this[_0x21fa46(0x8a)][_0x21fa46(0x8c)][_0x21fa46(0x86)][_0x21fa46(0x8b)][_0x21fa46(0x82)]();_0x505be7&&(_0x505be7['is'](_0x21fa46(0x75),_0x21fa46(0x81))||_0x505be7['is'](_0x21fa46(0x75),_0x21fa46(0x80)))&&(this[_0x21fa46(0x85)]=new _0x47c57a(this[_0x21fa46(0x8a)],this[_0x21fa46(0x8a)][_0x21fa46(0x7b)][_0x21fa46(0x7e)](_0x1ec8c4),_0x505be7),this[_0x21fa46(0x87)](_0x21fa46(0x8d))['to'](this[_0x21fa46(0x85)],_0x21fa46(0x8d)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x599287=_0x1c5d;(function(_0x3d786d,_0x383c28){const _0x28ff57=_0x1c5d,_0x4269c8=_0x3d786d();while(!![]){try{const _0x4919cd=-parseInt(_0x28ff57(0x9b))/0x1*(-parseInt(_0x28ff57(0x94))/0x2)+-parseInt(_0x28ff57(0x99))/0x3+parseInt(_0x28ff57(0x93))/0x4+parseInt(_0x28ff57(0x9c))/0x5+parseInt(_0x28ff57(0xa5))/0x6+parseInt(_0x28ff57(0xa1))/0x7*(-parseInt(_0x28ff57(0x98))/0x8)+-parseInt(_0x28ff57(0xa2))/0x9;if(_0x4919cd===_0x383c28)break;else _0x4269c8['push'](_0x4269c8['shift']());}catch(_0x20f734){_0x4269c8['push'](_0x4269c8['shift']());}}}(_0x1715,0x85787));import{Plugin as _0x1aec21}from'ckeditor5/src/core.js';import{Notification as _0xb0623f}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x30a30a}from'./uploadcareimageeditcommand.js';function _0x1c5d(_0x40c3b5,_0x4e399b){const _0x17158b=_0x1715();return _0x1c5d=function(_0x1c5d55,_0x3acfd8){_0x1c5d55=_0x1c5d55-0x93;let _0x28457b=_0x17158b[_0x1c5d55];return _0x28457b;},_0x1c5d(_0x40c3b5,_0x4e399b);}function _0x1715(){const _0x595a6c=['5512WMnuDf','2666187zhAFIC','init','112780aohVox','1891230oWvYWA','requires','ImageEditing','uploadcareImageReplace','isPremiumPlugin','91nuyhFh','1735425VYAIqF','uploadcareImageEdit','pluginName','1141218erBSRq','commands','isOfficialPlugin','1117188MMLZjl','14zkFQMk','UploadcareImageEditEditing','ImageUtils','add'];_0x1715=function(){return _0x595a6c;};return _0x1715();}import{UploadcareImageReplaceCommand as _0x936b15}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xc493a}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1aec21{static get[_0x599287(0xa4)](){const _0x4f504e=_0x599287;return _0x4f504e(0x95);}static get[_0x599287(0x9d)](){const _0x319328=_0x599287;return[_0xc493a,_0xb0623f,_0x319328(0x96),_0x319328(0x9e)];}static get[_0x599287(0xa7)](){return!0x0;}static get[_0x599287(0xa0)](){return!0x0;}[_0x599287(0x9a)](){const _0x3d2d36=_0x599287,{editor:_0x457eac}=this;_0x457eac[_0x3d2d36(0xa6)][_0x3d2d36(0x97)](_0x3d2d36(0xa3),new _0x30a30a(_0x457eac)),_0x457eac[_0x3d2d36(0xa6)][_0x3d2d36(0x97)](_0x3d2d36(0x9f),new _0x936b15(_0x457eac));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x7f65ce}from'ckeditor5/src/core.js';import{ButtonView as _0x1981aa}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x52f19e}from'ckeditor5/src/icons.js';import{createElement as _0x17ef83}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 _0x7f65ce{['_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 _0x4c312b=this['editor'];_0x4c312b['ui']['componentFactory']['add']('uploadcareImageEdit',_0xba43de=>{const _0x15de87=_0x4c312b['commands']['get']('uploadcareImageEdit'),_0x4087a0=new _0x1981aa(_0xba43de),t=_0xba43de['t'];return _0x4087a0['set']({'icon':_0x52f19e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4087a0['bind']('isEnabled')['to'](_0x15de87),_0x4087a0['bind']('isOn')['to'](_0x15de87,'isActive'),this['listenTo'](_0x4087a0,'execute',()=>{_0x4c312b['execute']('uploadcareImageEdit'),_0x4c312b['editing']['view']['focus']();}),_0x4087a0;}),this['_initConfig']();}['_initConfig'](){const _0x5ba39f=_0x17ef83(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5ba39f),this['listenTo'](this['editor'],'destroy',()=>{_0x5ba39f['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5491(){const _0x57a8c1=['sizes','srcset','document','1893brFCUu','change','editor','3104532fAfgnQ','model','23849RPLVpW','3967150Fisybf','removeAttribute','2534250kYjYfp','selection','imageBlock','execute','3044ThVZtF','refresh','getSelectedElement','element','1760pMzdrz','setAttributes','1609272qhKJtN','imageInline','isEnabled','697950gUfjFl'];_0x5491=function(){return _0x57a8c1;};return _0x5491();}const _0x1428e5=_0x40ac;function _0x40ac(_0x238c25,_0x3a673a){const _0x5491fb=_0x5491();return _0x40ac=function(_0x40ac3c,_0x12d2a9){_0x40ac3c=_0x40ac3c-0xb2;let _0x30c5d2=_0x5491fb[_0x40ac3c];return _0x30c5d2;},_0x40ac(_0x238c25,_0x3a673a);}(function(_0x1bb401,_0x193c27){const _0x4b2025=_0x40ac,_0x3584c7=_0x1bb401();while(!![]){try{const _0x1ebd99=parseInt(_0x4b2025(0xc7))/0x1+-parseInt(_0x4b2025(0xc4))/0x2+parseInt(_0x4b2025(0xb2))/0x3*(parseInt(_0x4b2025(0xbe))/0x4)+-parseInt(_0x4b2025(0xb8))/0x5+parseInt(_0x4b2025(0xba))/0x6+parseInt(_0x4b2025(0xb7))/0x7*(parseInt(_0x4b2025(0xc2))/0x8)+-parseInt(_0x4b2025(0xb5))/0x9;if(_0x1ebd99===_0x193c27)break;else _0x3584c7['push'](_0x3584c7['shift']());}catch(_0x4c1dcf){_0x3584c7['push'](_0x3584c7['shift']());}}}(_0x5491,0x63602));import{Command as _0x41335d}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x41335d{[_0x1428e5(0xbf)](){const _0x15c7cc=_0x1428e5,_0x30a8a3=this[_0x15c7cc(0xb4)][_0x15c7cc(0xb6)][_0x15c7cc(0xca)][_0x15c7cc(0xbb)][_0x15c7cc(0xc0)]();this[_0x15c7cc(0xc6)]=Boolean(_0x30a8a3&&(_0x30a8a3['is'](_0x15c7cc(0xc1),_0x15c7cc(0xbc))||_0x30a8a3['is'](_0x15c7cc(0xc1),_0x15c7cc(0xc5))));}[_0x1428e5(0xbd)](_0x43275e){const _0x82339a=_0x1428e5,_0x337e71=this[_0x82339a(0xb4)][_0x82339a(0xb6)][_0x82339a(0xca)][_0x82339a(0xbb)][_0x82339a(0xc0)]();this[_0x82339a(0xb4)][_0x82339a(0xb6)][_0x82339a(0xb3)](_0xa2e1ef=>{const _0x11bbfb=_0x82339a;_0xa2e1ef[_0x11bbfb(0xc3)](_0x43275e,_0x337e71),_0xa2e1ef[_0x11bbfb(0xb9)](_0x11bbfb(0xc9),_0x337e71),_0xa2e1ef[_0x11bbfb(0xb9)](_0x11bbfb(0xc8),_0x337e71);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2f24(_0x582d75,_0x38c8d3){var _0x949b92=_0x949b();return _0x2f24=function(_0x2f24da,_0x524ee9){_0x2f24da=_0x2f24da-0xaf;var _0x3e1476=_0x949b92[_0x2f24da];return _0x3e1476;},_0x2f24(_0x582d75,_0x38c8d3);}var _0x4cc981=_0x2f24;(function(_0x5884bf,_0x4915d0){var _0x5bb314=_0x2f24,_0x33b209=_0x5884bf();while(!![]){try{var _0x1a3742=-parseInt(_0x5bb314(0xaf))/0x1+-parseInt(_0x5bb314(0xb3))/0x2*(parseInt(_0x5bb314(0xb7))/0x3)+-parseInt(_0x5bb314(0xb4))/0x4+-parseInt(_0x5bb314(0xb6))/0x5+-parseInt(_0x5bb314(0xb0))/0x6*(-parseInt(_0x5bb314(0xbb))/0x7)+-parseInt(_0x5bb314(0xb9))/0x8+parseInt(_0x5bb314(0xb1))/0x9;if(_0x1a3742===_0x4915d0)break;else _0x33b209['push'](_0x33b209['shift']());}catch(_0x1fee0d){_0x33b209['push'](_0x33b209['shift']());}}}(_0x949b,0xed825));import{Plugin as _0x1d382c}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x4b3c39}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5c13b5}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x949b(){var _0x3ffced=['UploadcareImageEdit','2112439awsIuF','isPremiumPlugin','208050CsVYkh','36KFReJN','19229823aKAoez','isOfficialPlugin','2DUQhPE','1754912MlymeW','pluginName','913235FgTsYO','3209979lXAQOL','requires','8600432LDrQta'];_0x949b=function(){return _0x3ffced;};return _0x949b();}export class UploadcareImageEdit extends _0x1d382c{static get[_0x4cc981(0xb5)](){var _0x64bf26=_0x4cc981;return _0x64bf26(0xba);}static get[_0x4cc981(0xb8)](){return[_0x4b3c39,_0x5c13b5];}static get[_0x4cc981(0xb2)](){return!0x0;}static get[_0x4cc981(0xbc)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x40a2(){const _0x4d6cf9=['map','editor','registerIntegration','uploadcareLicenseKeyUsageLimit','Local','4261338mtZPDx','_createDropdownButtons','UploadcareUI','isOfficialPlugin','licenseKey','execute','uploadcareLicenseKeyValid','evaluationLimit','_createButton','isEnabled','uploadcareLicenseKeyNotAllowed','8919599pylCzZ','_createToolbarButton','init','icon','afterInit','isImageSelected','url','_normalizeConfigSourceList','36zRffHV','8ekLKTh','uploadcareLicenseKeyEvaluationLimit','text','plugins','featureNotAllowed','commands','3826805CCyAGG','_licenseKeyCheckInterval','Facebook','tooltip','shortText','uploadcareLicenseKeyInvalid','push','_showLicenseError','invalid','668QEjlJK','config','forEach','label','14001erMlgh','expired','Uploadcare','Dropbox','_getIntegrationKey','withText','get','assetManager','usageLimit','Replace','domainLimit','uploadcareLicenseKeyDomainLimit','3308739WHUODG','pluginName','URL','entries','ImageInsertUI','uploadcareLicenseKeyExpired','uploadcare.uploader.sourceList','1xSNXaS','GDrive','GPhotos','_createMenuBarButtons','224059UuOlLk','upload','510788lYMoOE','Insert','OneDrive','locale','reduce','50UitYrH','bind','destroy','isPremiumPlugin','has','uploadcare','type','12VMWDqV'];_0x40a2=function(){return _0x4d6cf9;};return _0x40a2();}const _0x1821ae=_0x59ce;(function(_0x25a822,_0x29e464){const _0x4cef35=_0x59ce,_0x4ade75=_0x25a822();while(!![]){try{const _0x5bd322=-parseInt(_0x4cef35(0x19f))/0x1*(parseInt(_0x4cef35(0x1a5))/0x2)+parseInt(_0x4cef35(0x18c))/0x3*(parseInt(_0x4cef35(0x188))/0x4)+parseInt(_0x4cef35(0x17f))/0x5+parseInt(_0x4cef35(0x1b1))/0x6*(parseInt(_0x4cef35(0x198))/0x7)+-parseInt(_0x4cef35(0x1cb))/0x8*(-parseInt(_0x4cef35(0x1b7))/0x9)+parseInt(_0x4cef35(0x1aa))/0xa*(parseInt(_0x4cef35(0x1a3))/0xb)+-parseInt(_0x4cef35(0x1ca))/0xc*(parseInt(_0x4cef35(0x1c2))/0xd);if(_0x5bd322===_0x29e464)break;else _0x4ade75['push'](_0x4ade75['shift']());}catch(_0x9e32d1){_0x4ade75['push'](_0x4ade75['shift']());}}}(_0x40a2,0xb7834));import{Plugin as _0x2de0ec}from'ckeditor5/src/core.js';import{IconDropbox as _0x21c617,IconFacebook as _0x93cfe4,IconGoogleDrive as _0x5ccf5d,IconGooglePhotos as _0x2c7651,IconUploadcareImageUpload as _0x1e5332,IconUploadcareLink as _0x592aae,IconOneDrive as _0x300c01}from'ckeditor5/src/icons.js';function _0x59ce(_0x384c50,_0x46adb4){const _0x40a2c6=_0x40a2();return _0x59ce=function(_0x59ce86,_0x2f04b2){_0x59ce86=_0x59ce86-0x17e;let _0xf2d3db=_0x40a2c6[_0x59ce86];return _0xf2d3db;},_0x59ce(_0x384c50,_0x46adb4);}import{ButtonView as _0x390ba6,MenuBarMenuListItemButtonView as _0x4c0755}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x5928e7}from'./uploadcareconfig.js';import{getTranslation as _0x5a8a04}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x2de0ec{[_0x1821ae(0x1bb)];[_0x1821ae(0x180)];static get[_0x1821ae(0x199)](){const _0x115f0a=_0x1821ae;return _0x115f0a(0x1b9);}static get[_0x1821ae(0x1ba)](){return!0x0;}static get[_0x1821ae(0x1ad)](){return!0x0;}[_0x1821ae(0x1c4)](){const _0x1535da=_0x1821ae;this[_0x1535da(0x1bb)]=this[_0x1535da(0x1b3)][_0x1535da(0x189)][_0x1535da(0x192)](_0x1535da(0x1bb));const _0x9ee57f=this[_0x1535da(0x1b3)];this[_0x1535da(0x180)]=setInterval(()=>{const _0x47eb7b=_0x1535da;let _0x3c9922;for(const _0x3a2726 in _0x9ee57f){const _0x38bacb=_0x3a2726,_0x58f9f8=_0x9ee57f[_0x38bacb];if(_0x47eb7b(0x1bd)==_0x58f9f8||_0x47eb7b(0x184)==_0x58f9f8||_0x47eb7b(0x19d)==_0x58f9f8||_0x47eb7b(0x197)==_0x58f9f8||_0x47eb7b(0x1c1)==_0x58f9f8||_0x47eb7b(0x1cc)==_0x58f9f8||_0x47eb7b(0x1b5)==_0x58f9f8){delete _0x9ee57f[_0x38bacb],_0x3c9922=_0x58f9f8,clearInterval(this[_0x47eb7b(0x180)]),this[_0x47eb7b(0x180)]=void 0x0;break;}}_0x47eb7b(0x184)==_0x3c9922&&_0x9ee57f[_0x47eb7b(0x186)](_0x47eb7b(0x187)),_0x47eb7b(0x19d)==_0x3c9922&&_0x9ee57f[_0x47eb7b(0x186)](_0x47eb7b(0x18d)),_0x47eb7b(0x197)==_0x3c9922&&_0x9ee57f[_0x47eb7b(0x186)](_0x47eb7b(0x196)),_0x47eb7b(0x1c1)==_0x3c9922&&_0x9ee57f[_0x47eb7b(0x186)](_0x47eb7b(0x1cf),_0x47eb7b(0x18e)),_0x47eb7b(0x1cc)==_0x3c9922&&_0x9ee57f[_0x47eb7b(0x186)](_0x47eb7b(0x1be)),_0x47eb7b(0x1b5)==_0x3c9922&&_0x9ee57f[_0x47eb7b(0x186)](_0x47eb7b(0x194));},0x3e8);}[_0x1821ae(0x1c6)](){const _0xbf2f09=_0x1821ae,{editor:_0x327a1d}=this,_0x35a803=_0x327a1d[_0xbf2f09(0x17e)][_0xbf2f09(0x192)](_0xbf2f09(0x1af));if(!_0x35a803)return;const _0x1767d3=this[_0xbf2f09(0x1c9)](_0x327a1d[_0xbf2f09(0x189)][_0xbf2f09(0x192)](_0xbf2f09(0x19e)))[_0xbf2f09(0x1a9)]((_0x50009d,_0x4eae99)=>{const _0x1c7cbf=_0xbf2f09,_0x3802f8=this[_0x1c7cbf(0x190)](_0x4eae99[_0x1c7cbf(0x1b0)]);return _0x50009d[_0x3802f8]||(_0x50009d[_0x3802f8]=[]),_0x50009d[_0x3802f8][_0x1c7cbf(0x185)](_0x4eae99),_0x50009d;},{});_0x327a1d[_0xbf2f09(0x1ce)][_0xbf2f09(0x1ae)](_0xbf2f09(0x19c))&&_0x327a1d[_0xbf2f09(0x17e)][_0xbf2f09(0x192)](_0xbf2f09(0x1af))&&Object[_0xbf2f09(0x19b)](_0x1767d3)[_0xbf2f09(0x18a)](([_0x54b884,_0x131e27])=>{const _0x5db874=_0xbf2f09;_0x327a1d[_0x5db874(0x1ce)][_0x5db874(0x192)](_0x5db874(0x19c))[_0x5db874(0x1b4)]({'name':_0x54b884,'observable':()=>_0x35a803,'buttonViewCreator':()=>this[_0x5db874(0x1c3)](_0x131e27),'formViewCreator':()=>this[_0x5db874(0x1b8)](_0x131e27),'menuBarButtonViewCreator':()=>this[_0x5db874(0x1a2)](_0x131e27),'override':_0x5db874(0x193)!==_0x54b884});});}[_0x1821ae(0x1ac)](){const _0xfd934=_0x1821ae;super[_0xfd934(0x1ac)](),this[_0xfd934(0x180)]&&clearInterval(this[_0xfd934(0x180)]);}[_0x1821ae(0x1c9)](_0x581f30){const _0x13fe17=_0x1821ae,{locale:_0x2e116a}=this[_0x13fe17(0x1b3)];return _0x581f30[_0x13fe17(0x1b2)](_0xe86dc6=>{const _0x12f5f1=_0x13fe17,_0x3fb296=_0x5a8a04(_0x2e116a,_0xe86dc6,_0x12f5f1(0x1a6));switch(_0xe86dc6){case _0x5928e7[_0x12f5f1(0x1b6)]:return{'icon':_0x1e5332,'type':_0x5928e7[_0x12f5f1(0x1b6)],..._0x3fb296};case _0x5928e7[_0x12f5f1(0x19a)]:return{'icon':_0x592aae,'type':_0x5928e7[_0x12f5f1(0x19a)],..._0x3fb296};case _0x5928e7[_0x12f5f1(0x18f)]:return{'icon':_0x21c617,'type':_0x5928e7[_0x12f5f1(0x18f)],..._0x3fb296};case _0x5928e7[_0x12f5f1(0x181)]:return{'icon':_0x93cfe4,'type':_0x5928e7[_0x12f5f1(0x181)],..._0x3fb296};case _0x5928e7[_0x12f5f1(0x1a0)]:return{'icon':_0x5ccf5d,'type':_0x5928e7[_0x12f5f1(0x1a0)],..._0x3fb296};case _0x5928e7[_0x12f5f1(0x1a1)]:return{'icon':_0x2c7651,'type':_0x5928e7[_0x12f5f1(0x1a1)],..._0x3fb296};case _0x5928e7[_0x12f5f1(0x1a7)]:return{'icon':_0x300c01,'type':_0x5928e7[_0x12f5f1(0x1a7)],..._0x3fb296};}});}[_0x1821ae(0x190)](_0x589e68){const _0xc4be2c=_0x1821ae;switch(_0x589e68){case _0x5928e7[_0xc4be2c(0x1b6)]:return _0xc4be2c(0x1a4);case _0x5928e7[_0xc4be2c(0x19a)]:return _0xc4be2c(0x1c8);default:return _0xc4be2c(0x193);}}[_0x1821ae(0x1bf)](_0x3abf6f,_0x2bd639){const _0x20a540=_0x1821ae,_0x1f77fb=this[_0x20a540(0x1b3)],_0x1c5ffe=new _0x3abf6f(_0x1f77fb[_0x20a540(0x1a8)]),_0x16f493=_0x1f77fb[_0x20a540(0x17e)][_0x20a540(0x192)](_0x20a540(0x1af));return _0x1c5ffe[_0x20a540(0x1ab)](_0x20a540(0x1c0))['to'](_0x16f493),_0x1c5ffe['on'](_0x20a540(0x1bc),()=>{const _0x464dff=_0x20a540;_0x16f493[_0x464dff(0x1bc)](_0x2bd639);}),_0x1c5ffe;}[_0x1821ae(0x1c3)](_0x3f53){const _0x3bb5ac=_0x1821ae,{locale:_0xf1c29d}=this[_0x3bb5ac(0x1b3)],_0x46555a=this[_0x3bb5ac(0x1b3)][_0x3bb5ac(0x1ce)][_0x3bb5ac(0x192)](_0x3bb5ac(0x19c)),_0x35eb7d=_0x3f53[0x0],_0x3b4595=this[_0x3bb5ac(0x1bf)](_0x390ba6,_0x35eb7d[_0x3bb5ac(0x1b0)]);return _0x3b4595[_0x3bb5ac(0x1c5)]=_0x35eb7d[_0x3bb5ac(0x1c5)],_0x3b4595[_0x3bb5ac(0x1ab)](_0x3bb5ac(0x18b))['to'](_0x46555a,_0x3bb5ac(0x1c7),_0x6c2913=>_0x5a8a04(_0xf1c29d,_0x35eb7d[_0x3bb5ac(0x1b0)],_0x6c2913?_0x3bb5ac(0x195):_0x3bb5ac(0x1a6))[_0x3bb5ac(0x1cd)]),_0x3b4595[_0x3bb5ac(0x182)]=!0x0,_0x3b4595;}[_0x1821ae(0x1b8)](_0x2ef820){const _0x5afeae=_0x1821ae,{locale:_0x2740a1}=this[_0x5afeae(0x1b3)],_0x4ce97f=this[_0x5afeae(0x1b3)][_0x5afeae(0x1ce)][_0x5afeae(0x192)](_0x5afeae(0x19c));return _0x2ef820[_0x5afeae(0x1b2)](_0x15066e=>{const _0x3b7f19=_0x5afeae,_0x1a7c2e=this[_0x3b7f19(0x1bf)](_0x390ba6,_0x15066e[_0x3b7f19(0x1b0)]);return _0x1a7c2e[_0x3b7f19(0x191)]=!0x0,_0x1a7c2e[_0x3b7f19(0x1c5)]=_0x15066e[_0x3b7f19(0x1c5)],_0x1a7c2e[_0x3b7f19(0x1ab)](_0x3b7f19(0x18b))['to'](_0x4ce97f,_0x3b7f19(0x1c7),_0x5849a4=>_0x5a8a04(_0x2740a1,_0x15066e[_0x3b7f19(0x1b0)],_0x5849a4?_0x3b7f19(0x195):_0x3b7f19(0x1a6))[_0x3b7f19(0x1cd)]),_0x1a7c2e;});}[_0x1821ae(0x1a2)](_0x897066){const _0x870d4a=_0x1821ae;return _0x897066[_0x870d4a(0x1b2)](_0x5db33f=>{const _0x108f99=_0x870d4a,_0x1e0d6d=this[_0x108f99(0x1bf)](_0x4c0755,_0x5db33f[_0x108f99(0x1b0)]);return _0x1e0d6d[_0x108f99(0x1c5)]=_0x5db33f[_0x108f99(0x1c5)],_0x1e0d6d[_0x108f99(0x18b)]=_0x5db33f[_0x108f99(0x183)],_0x1e0d6d;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3c48de}from'ckeditor5/src/core.js';import{FileRepository as _0x28467b}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x4741d7}from'./uploadcareediting.js';import{UploadUtils as _0x47b775}from'./utils/uploadutils.js';import{getImageUrls as _0x59f42c}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3c48de{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x28467b,_0x4741d7];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x36f43e=this['editor'];if(!!!_0x36f43e['config']['get']('uploadcare'))return;_0x36f43e['plugins']['get'](_0x28467b)['createUploadAdapter']=_0x15e420=>new k(_0x15e420,_0x36f43e),_0x36f43e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x49cc45,{imageElement:_0x31d6a6,data:_0x24a4fb})=>{_0x36f43e['model']['change'](_0x9ec6e8=>{_0x9ec6e8['setAttribute']('uploadcareImageId',_0x24a4fb['uploadcareImageId'],_0x31d6a6);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x22c0f4,_0x2cf451){this['loader']=_0x22c0f4,this['editor']=_0x2cf451,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x16dbe0=await this['loader']['file'];return _0x47b775['upload']({'file':_0x16dbe0,'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':_0x7d1b91=>{_0x7d1b91&&_0x7d1b91['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x7d1b91['value']);}})['then'](async _0x430bf1=>{const {imageFallbackUrl:_0x1dd3fa,imageSources:_0x30208b}=_0x59f42c(_0x430bf1['cdnUrl'],_0x430bf1['imageInfo']['width']);return{'uploadcareImageId':_0x430bf1['uuid'],'default':_0x1dd3fa,'sources':_0x30208b};})['catch'](()=>{const _0x474759=t('Cannot\x20upload\x20file:')+('\x20'+_0x16dbe0['name']+'.');return Promise['reject'](_0x474759);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x4d8988}from'../uploadcareconfig.js';export function getTranslation(_0x6435e7,_0x36dbd2,_0x1ff590){const t=_0x6435e7['t'],_0x4b8683=_0x6435e7['t'];switch(_0x36dbd2){case _0x4d8988['Local']:return{'text':_0x4b8683('Insert'===_0x1ff590?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4b8683('From\x20computer')};case _0x4d8988['URL']:return{'text':'Insert'===_0x1ff590?_0x4b8683('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4b8683('Via\x20URL')};case _0x4d8988['Dropbox']:return{'text':t('Insert'===_0x1ff590?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x4d8988['Facebook']:return{'text':t('Insert'===_0x1ff590?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x4d8988['GDrive']:return{'text':t('Insert'===_0x1ff590?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x4d8988['GPhotos']:return{'text':t('Insert'===_0x1ff590?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x4d8988['OneDrive']:return{'text':t('Insert'===_0x1ff590?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x36dbd2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1038f4=_0x5867;function _0x5867(_0x61ecb8,_0x232834){var _0x95131e=_0x9513();return _0x5867=function(_0x586732,_0x21c9ee){_0x586732=_0x586732-0xb8;var _0x3cdcef=_0x95131e[_0x586732];return _0x3cdcef;},_0x5867(_0x61ecb8,_0x232834);}(function(_0x27f42f,_0x25a123){var _0xf8ce74=_0x5867,_0x2ee3cc=_0x27f42f();while(!![]){try{var _0x14dbd8=parseInt(_0xf8ce74(0xb9))/0x1*(parseInt(_0xf8ce74(0xc1))/0x2)+-parseInt(_0xf8ce74(0xc2))/0x3+-parseInt(_0xf8ce74(0xc5))/0x4+-parseInt(_0xf8ce74(0xb8))/0x5+-parseInt(_0xf8ce74(0xbd))/0x6*(parseInt(_0xf8ce74(0xcb))/0x7)+-parseInt(_0xf8ce74(0xca))/0x8*(-parseInt(_0xf8ce74(0xc7))/0x9)+parseInt(_0xf8ce74(0xbc))/0xa*(parseInt(_0xf8ce74(0xc0))/0xb);if(_0x14dbd8===_0x25a123)break;else _0x2ee3cc['push'](_0x2ee3cc['shift']());}catch(_0x9c4399){_0x2ee3cc['push'](_0x2ee3cc['shift']());}}}(_0x9513,0x3ea51));import{FocusTracker as _0x286368}from'ckeditor5/src/utils.js';import{View as _0x434fae,FocusCycler as _0x278e3a}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x9513(){var _0x22af12=['focusCycler','1201068fwErMk','fire','45666nrJOPn','forwardCycle','true','8yRmfUS','2246545glpTzM','838925uyiytO','2StQmvY','div','createCollection','50pXipYr','6EDKLtb','getFocusableElement','focusTracker','1769845UhcIJv','487246KfFvot','753645yrxGRm','bindTemplate'];_0x9513=function(){return _0x22af12;};return _0x9513();}export class DialogFocusManagerView extends _0x434fae{[_0x1038f4(0xbf)];[_0x1038f4(0xc4)];constructor(_0x308a89){var _0x16a03c=_0x1038f4;super(_0x308a89),this[_0x16a03c(0xbf)]=new _0x286368(),this[_0x16a03c(0xc4)]=new _0x278e3a({'focusables':this[_0x16a03c(0xbb)](),'focusTracker':this[_0x16a03c(0xbf)]});}[_0x1038f4(0xbe)](){var _0x3ae1cd=_0x1038f4;return{'tag':_0x3ae1cd(0xba),'attributes':{'aria-hidden':_0x3ae1cd(0xc9),'tabindex':'0'},'on':{'focus':this[_0x3ae1cd(0xc3)]['to'](()=>{var _0x28cb65=_0x3ae1cd;this[_0x28cb65(0xc4)][_0x28cb65(0xc6)](_0x28cb65(0xc8));})}};}}
|