@ckeditor/ckeditor5-uploadcare 47.7.3-alpha.0 → 47.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2277(_0x2a15fc,_0x3cf9cd){const _0x2e14b9=_0x2e14();return _0x2277=function(_0x22771a,_0x3effee){_0x22771a=_0x22771a-0x1d3;let _0x2418c3=_0x2e14b9[_0x22771a];return _0x2418c3;},_0x2277(_0x2a15fc,_0x3cf9cd);}const _0x57a505=_0x2277;function _0x2e14(){const _0x40e043=['pluginName','body','downcast','closeMax','_initConfig','view','28FoPqEZ','UploadcareEditing','482093axETwb','remove','_initSchema','_initCtx','4118103OuWpcI','document','2537478PzKeNn','#uc-icon-arrow-down','href','20cwCJUO','once','fromCharCode','commands','removeAttribute','true','appendChild','input[uploadcare-file-input]','selection','ucContextId','getAttribute','extend','render','1841052VgVMlc','destroy','replaceImageSource','PictureEditing','contentLanguage','execute','conversion','isRegistered','uc-upload-ctx-provider','uploadcare','elementToAttribute','isOfficialPlugin','uploadcare.pubkey','4SpvWgA','requires','isPremiumPlugin','_ctxElement','379256lbryKg','_initImageProcessingIndicator','join','data-uc-image-id','get','editor','ctxElement','\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','2962215zaBhuH','attributeToAttribute','uploader-','upcast','locale','71778plKZiW','uploadcare.uploader','imageInline','config','getSelectedElement','model','editing','iconHrefResolver','cleanupImage','insertImage','for','uc-config','configElement','imageBlock','4yXjlXy','init','add','map','uploadcareImageReplace','schema','afterInit','uploadcareImageId','querySelector','_initConversion','listenTo'];_0x2e14=function(){return _0x40e043;};return _0x2e14();}(function(_0x3cc20c,_0x3c51ee){const _0x404201=_0x2277,_0x28a38b=_0x3cc20c();while(!![]){try{const _0x3b3486=-parseInt(_0x404201(0x210))/0x1*(-parseInt(_0x404201(0x1fd))/0x2)+parseInt(_0x404201(0x226))/0x3*(parseInt(_0x404201(0x1dd))/0x4)+-parseInt(_0x404201(0x1ea))/0x5+parseInt(_0x404201(0x1ef))/0x6+-parseInt(_0x404201(0x20e))/0x7*(-parseInt(_0x404201(0x1e1))/0x8)+parseInt(_0x404201(0x216))/0x9+-parseInt(_0x404201(0x219))/0xa*(parseInt(_0x404201(0x214))/0xb);if(_0x3b3486===_0x3c51ee)break;else _0x28a38b['push'](_0x28a38b['shift']());}catch(_0x27793a){_0x28a38b['push'](_0x28a38b['shift']());}}}(_0x2e14,0xafd56));import{Plugin as _0x1010bf}from'ckeditor5/src/core.js';import{Dialog as _0x5df24d}from'ckeditor5/src/ui.js';import{createElement as _0x50509a,global as _0x42ff5e,uid as _0x1d2266}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x854ea4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2debdc}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4dee5d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1010bf{[_0x57a505(0x1e9)]=null;[_0x57a505(0x1e0)]=null;static get[_0x57a505(0x208)](){const _0x4fb889=_0x57a505;return _0x4fb889(0x20f);}static get[_0x57a505(0x1de)](){const _0x406810=_0x57a505;return[_0x406810(0x1d3),_0x2debdc,_0x5df24d];}static get[_0x57a505(0x1db)](){return!0x0;}static get[_0x57a505(0x1df)](){return!0x0;}[_0x57a505(0x222)];get[_0x57a505(0x1fb)](){const _0x55a68b=_0x57a505;return this[_0x55a68b(0x1e9)];}get[_0x57a505(0x1e7)](){const _0x5ebdbb=_0x57a505;return this[_0x5ebdbb(0x1e0)];}constructor(_0x2d57b8){const _0x1267ed=_0x57a505;super(_0x2d57b8),this[_0x1267ed(0x222)]=_0x1d2266();}[_0x57a505(0x1fe)](){const _0x4174b6=_0x57a505,_0x46c3e8=this[_0x4174b6(0x1e6)];_0x46c3e8[_0x4174b6(0x21c)][_0x4174b6(0x1ff)](_0x4174b6(0x1d9),new _0x854ea4(_0x46c3e8));}[_0x57a505(0x203)](){const _0x5dbba1=_0x57a505;this[_0x5dbba1(0x212)](),this[_0x5dbba1(0x206)](),this[_0x5dbba1(0x20c)](),this[_0x5dbba1(0x213)](),this[_0x5dbba1(0x1e2)](),this[_0x5dbba1(0x207)](this[_0x5dbba1(0x1e6)],_0x5dbba1(0x227),()=>{const _0x49f27e=_0x5dbba1;this[_0x49f27e(0x1e9)]&&(this[_0x49f27e(0x1e9)][_0x49f27e(0x211)](),this[_0x49f27e(0x1e9)]=null),this[_0x49f27e(0x1e0)]&&(this[_0x49f27e(0x1e0)][_0x49f27e(0x211)](),this[_0x49f27e(0x1e0)]=null);const _0x95efa5=_0x42ff5e[_0x49f27e(0x215)][_0x49f27e(0x205)](_0x49f27e(0x220));_0x95efa5&&_0x95efa5[_0x49f27e(0x211)]();}),async function(_0x1fb42){const _0x22f3c1=_0x2a4760([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]),_0x452d7b=0x535f8c3a,_0xfa0d5c=0x535803fa^_0x452d7b,_0x174240=window[_0x2a4760([0x44,0x61,0x74,0x65])][_0x2a4760([0x6e,0x6f,0x77])](),_0x2d02cc=_0x1fb42[_0x2a4760([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x24d512=new window[(_0x2a4760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a7e0e=>{_0x2d02cc[_0x2a4760([0x6f,0x6e,0x63,0x65])](_0x2a4760([0x72,0x65,0x61,0x64,0x79]),_0x1a7e0e);}),_0x5dc3ad={[_0x2a4760([0x6b,0x74,0x79])]:_0x2a4760([0x45,0x43]),[_0x2a4760([0x75,0x73,0x65])]:_0x2a4760([0x73,0x69,0x67]),[_0x2a4760([0x63,0x72,0x76])]:_0x2a4760([0x50,0x2d,0x32,0x35,0x36]),[_0x2a4760([0x78])]:_0x2a4760([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]),[_0x2a4760([0x79])]:_0x2a4760([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]),[_0x2a4760([0x61,0x6c,0x67])]:_0x2a4760([0x45,0x53,0x32,0x35,0x36])},_0x1fe6d7=_0x2d02cc[_0x2a4760([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2a4760([0x67,0x65,0x74])](_0x2a4760([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xdaeac9(){let _0xbb1a9c,_0x448660=null,_0x4333c=null;try{if(_0x1fe6d7==_0x2a4760([0x47,0x50,0x4c]))return _0x2a4760([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbb1a9c=_0x349ecb(),!_0xbb1a9c)return _0x2a4760([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbb1a9c[_0x2a4760([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4333c=_0x583959(_0xbb1a9c[_0x2a4760([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbb1a9c[_0x2a4760([0x6a,0x74,0x69])])),await _0x4541e7()?_0x4e5ca6()?_0x1fb5cc()?_0x2a4760([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc123a5()?(_0xbb1a9c[_0x2a4760([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a4760([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x448660=_0x384e31(_0x2a4760([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53352b()):_0x2a4760([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2a4760([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2a4760([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2a4760([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1fb5cc(){const _0x314b19=[_0x2a4760([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2a4760([0x74,0x72,0x69,0x61,0x6c])][_0x2a4760([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbb1a9c[_0x2a4760([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x174240/0x3e8:0xe10*_0xfa0d5c;return _0xbb1a9c[_0x2a4760([0x65,0x78,0x70])]<_0x314b19;}function _0x4e5ca6(){const _0x1a64d4=_0xbb1a9c[_0x2a4760([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1a64d4&&(!!_0x1a64d4[_0x2a4760([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a4760([0x2a]))||!!_0x1a64d4[_0x2a4760([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a4760([0x55,0x50,0x4c,0x43])));}function _0xc123a5(){const _0x2b5208=_0x2277,_0x492ee0=_0xbb1a9c[_0x2a4760([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x492ee0||0x0==_0x492ee0[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x40cacd}=new URL(window[_0x2a4760([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2b5208(0x218)]);if(_0x492ee0[_0x2a4760([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40cacd))return!0x0;const _0x4bc46d=_0x40cacd[_0x2a4760([0x73,0x70,0x6c,0x69,0x74])](_0x2a4760([0x2e]));return _0x492ee0[_0x2a4760([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe3e555=>_0xe3e555[_0x2a4760([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a4760([0x2a])))[_0x2a4760([0x6d,0x61,0x70])](_0x43b67f=>_0x43b67f[_0x2a4760([0x73,0x70,0x6c,0x69,0x74])](_0x2a4760([0x2e])))[_0x2a4760([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3663bc=>_0x3663bc[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4bc46d[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a4760([0x6d,0x61,0x70])](_0x11bb20=>Array(_0x4bc46d[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11bb20[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2a4760([0x66,0x69,0x6c,0x6c])](_0x11bb20[0x0]===_0x2a4760([0x2a])?_0x2a4760([0x2a]):'')[_0x2a4760([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11bb20))[_0x2a4760([0x73,0x6f,0x6d,0x65])](_0x317cbf=>_0x4bc46d[_0x2a4760([0x65,0x76,0x65,0x72,0x79])]((_0x5467d8,_0x17555f)=>_0x317cbf[_0x17555f]===_0x5467d8||_0x317cbf[_0x17555f]===_0x2a4760([0x2a])));}function _0x53352b(){return _0x448660&&_0x4333c?new window[(_0x2a4760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40393d,_0x105fed)=>{_0x448660[_0x2a4760([0x74,0x68,0x65,0x6e])](_0x40393d,_0x105fed),_0x4333c[_0x2a4760([0x74,0x68,0x65,0x6e])](_0x19dff2=>{_0x19dff2!=_0x2a4760([0x56,0x61,0x6c,0x69,0x64])&&_0x40393d(_0x19dff2);},_0x105fed);}):_0x448660||_0x4333c||_0x2a4760([0x56,0x61,0x6c,0x69,0x64]);}}function _0x583959(_0x3da491,_0x1e3ba9){return new window[(_0x2a4760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x993cda=>{if(_0x45eff6())return _0x993cda(_0x2a4760([0x56,0x61,0x6c,0x69,0x64]));_0x12cfb5(),_0x2d02cc[_0x2a4760([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2a4760([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x363024=!0x1;const _0x4540d3=_0x1d2266();function _0x590f0b(_0x50ac21){return!!_0x50ac21&&(typeof _0x50ac21===_0x2a4760([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x50ac21===_0x2a4760([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x50ac21[_0x2a4760([0x74,0x68,0x65,0x6e])]===_0x2a4760([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x50ac21[_0x2a4760([0x63,0x61,0x74,0x63,0x68])]===_0x2a4760([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a477c(_0x55252a){_0x174939(_0x55252a)[_0x2a4760([0x74,0x68,0x65,0x6e])](_0x49786e=>{if(!_0x49786e||_0x49786e[_0x2a4760([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2a4760([0x6f,0x6b]))return _0x2a4760([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x367251(_0x120402(_0x4540d3+_0x1e3ba9))!=_0x49786e[_0x2a4760([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2a4760([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2a4760([0x56,0x61,0x6c,0x69,0x64]);})[_0x2a4760([0x74,0x68,0x65,0x6e])](_0x13a37e=>(_0x3bbe13(),_0x13a37e),()=>{const _0x18fdf1=_0x25065c();return null==_0x18fdf1?(_0x3bbe13(),_0x2a4760([0x56,0x61,0x6c,0x69,0x64])):_0x2a4760(_0x174240-_0x18fdf1>(0x7753083a^_0x452d7b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2a4760([0x74,0x68,0x65,0x6e])](_0x993cda)[_0x2a4760([0x63,0x61,0x74,0x63,0x68])](()=>{_0x993cda(_0x2a4760([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf3675f=0x536962ba^_0x452d7b;function _0x3bbe13(){const _0x4e3d0a=_0x2a4760([0x6c,0x6c,0x63,0x74,0x2d])+_0x367251(_0x120402(_0x3da491)),_0x51cee5=_0x386103(_0x367251(window[_0x2a4760([0x4d,0x61,0x74,0x68])][_0x2a4760([0x63,0x65,0x69,0x6c])](_0x174240/_0xf3675f)));window[_0x2a4760([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a4760([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e3d0a,_0x51cee5);}function _0x25065c(){const _0x22d39a=_0x2a4760([0x6c,0x6c,0x63,0x74,0x2d])+_0x367251(_0x120402(_0x3da491)),_0x2c83d9=window[_0x2a4760([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a4760([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22d39a);return _0x2c83d9?window[_0x2a4760([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x386103(_0x2c83d9),0x10)*_0xf3675f:null;}function _0x174939(_0x396f18){return new window[(_0x2a4760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ed98c,_0x207c6f)=>{_0x396f18[_0x2a4760([0x74,0x68,0x65,0x6e])](_0x5ed98c,_0x207c6f),window[_0x2a4760([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x207c6f,0x535e58fa^_0x452d7b);});}}_0x2d02cc[_0x2a4760([0x6f,0x6e])](_0x2a4760([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xe4a930,_0x537940)=>{if(_0x537940[0x0]!=_0x3da491)return _0x993cda(_0x2a4760([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x537940[0x1]={..._0x537940[0x1],[_0x2a4760([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4540d3};},{[_0x2a4760([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a4760([0x68,0x69,0x67,0x68])}),_0x2d02cc[_0x2a4760([0x6f,0x6e])](_0x2a4760([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x546598=>{_0x590f0b(_0x546598[_0x2a4760([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x363024=!0x0,_0x2a477c(_0x546598[_0x2a4760([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2a4760([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a4760([0x6c,0x6f,0x77])}),_0x24d512[_0x2a4760([0x74,0x68,0x65,0x6e])](()=>{_0x363024||_0x993cda(_0x2a4760([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45eff6(){return _0x2d02cc[_0x2a4760([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a4760([0x76,0x69,0x65,0x77])][_0x2a4760([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2a4760([0x61,0x75,0x74,0x6f]);}function _0x12cfb5(){_0x2d02cc[_0x2a4760([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a4760([0x76,0x69,0x65,0x77])][_0x2a4760([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a4760([0x61,0x75,0x74,0x6f]);}}function _0x384e31(_0x7201e9){const _0x55df40=[new window[(_0x2a4760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1426b5=>setTimeout(_0x1426b5,0x5356b2f6^_0x452d7b)),_0x24d512[_0x2a4760([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2a4760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f8e6c=>{let _0x3e9038=0x0;_0x2d02cc[_0x2a4760([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a4760([0x6f,0x6e])](_0x2a4760([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c2769,_0x1658ab)=>{_0x1658ab[0x0][_0x2a4760([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e9038++,_0x3e9038==(0x535f89d2^_0x452d7b)&&(_0x1f8e6c(),_0x1c2769[_0x2a4760([0x6f,0x66,0x66])]());});}))];return window[_0x2a4760([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a4760([0x72,0x61,0x63,0x65])](_0x55df40)[_0x2a4760([0x74,0x68,0x65,0x6e])](()=>_0x7201e9);}async function _0x383032(){await _0x24d512,_0x2d02cc[_0x2a4760([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a4760([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2ecc9a,_0x2d02cc[_0x2a4760([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a4760([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2ecc9a,_0x2d02cc[_0x2a4760([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2a4760([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x240c12(_0x6185bf){const _0x4aa808=_0x147fca();_0x2d02cc[_0x4aa808]=_0x2a4760([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6185bf,_0x6185bf!=_0x2a4760([0x56,0x61,0x6c,0x69,0x64])&&_0x383032();}function _0x147fca(){const _0x18b73b=window[_0x2a4760([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2a4760([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2a4760([0x6e,0x6f,0x77])]())[_0x2a4760([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2a4760([0x2e]),'');let _0x13f380=_0x2a4760([0x68]);for(let _0x29831b=0x0;_0x29831b<_0x18b73b[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29831b+=0x2){let _0x2d091e=window[_0x2a4760([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18b73b[_0x2a4760([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29831b,_0x29831b+0x2));_0x2d091e>=_0x22f3c1[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d091e-=_0x22f3c1[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13f380+=_0x22f3c1[_0x2d091e];}return _0x13f380;}function _0x349ecb(){const _0x16fb41=_0x1fe6d7[_0x2a4760([0x73,0x70,0x6c,0x69,0x74])](_0x2a4760([0x2e]));if(0x3!=_0x16fb41[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24ea74(_0x16fb41[0x1]);function _0x24ea74(_0x4d3372){const _0x465cec=_0x29c67d(_0x4d3372);return _0x465cec&&_0x915791()?_0x465cec:null;function _0x915791(){const _0x3fbe22=_0x465cec[_0x2a4760([0x6a,0x74,0x69])],_0xd3e458=window[_0x2a4760([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fbe22[_0x2a4760([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fbe22[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x213091={..._0x465cec,[_0x2a4760([0x6a,0x74,0x69])]:_0x3fbe22[_0x2a4760([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3fbe22[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x213091[_0x2a4760([0x76,0x63])],_0x120402(_0x213091)==_0xd3e458;}}}async function _0x4541e7(){let _0xeccfe3=!0x0;try{const _0x2f823a=_0x1fe6d7[_0x2a4760([0x73,0x70,0x6c,0x69,0x74])](_0x2a4760([0x2e])),[_0x461877,_0x281046,_0x5e9a60]=_0x2f823a;return _0x49b813(_0x461877),await _0x285a64(_0x461877,_0x281046,_0x5e9a60),_0xeccfe3;}catch{return!0x1;}function _0x49b813(_0x28080d){const _0x14f0db=_0x29c67d(_0x28080d);_0x14f0db&&_0x14f0db[_0x2a4760([0x61,0x6c,0x67])]==_0x2a4760([0x45,0x53,0x32,0x35,0x36])||(_0xeccfe3=!0x1);}async function _0x285a64(_0x45da24,_0x2220a4,_0x123ffa){const _0x428891=window[_0x2a4760([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2a4760([0x66,0x72,0x6f,0x6d])](_0x3d4810(_0x123ffa),_0x465936=>_0x465936[_0x2a4760([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x575eb4=new window[(_0x2a4760([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2a4760([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45da24+_0x2a4760([0x2e])+_0x2220a4),_0x15e645=window[_0x2a4760([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2a4760([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15e645)return;const _0x508d5e=await _0x15e645[_0x2a4760([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2a4760([0x6a,0x77,0x6b]),_0x5dc3ad,{[_0x2a4760([0x6e,0x61,0x6d,0x65])]:_0x2a4760([0x45,0x43,0x44,0x53,0x41]),[_0x2a4760([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2a4760([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2a4760([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15e645[_0x2a4760([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2a4760([0x6e,0x61,0x6d,0x65])]:_0x2a4760([0x45,0x43,0x44,0x53,0x41]),[_0x2a4760([0x68,0x61,0x73,0x68])]:{[_0x2a4760([0x6e,0x61,0x6d,0x65])]:_0x2a4760([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x508d5e,_0x428891,_0x575eb4)||(_0xeccfe3=!0x1);}}function _0x29c67d(_0x189ff4){return _0x189ff4[_0x2a4760([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2a4760([0x65,0x79]))?JSON[_0x2a4760([0x70,0x61,0x72,0x73,0x65])](_0x3d4810(_0x189ff4)):null;}function _0x3d4810(_0x53c69c){return window[_0x2a4760([0x61,0x74,0x6f,0x62])](_0x53c69c[_0x2a4760([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2a4760([0x2b]))[_0x2a4760([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2a4760([0x2f])));}function _0x120402(_0x1e7496){let _0x373e78=0x1505;function _0x327a65(_0x551ddc){for(let _0x24afd8=0x0;_0x24afd8<_0x551ddc[_0x2a4760([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24afd8++){const _0x1a7c5d=_0x551ddc[_0x2a4760([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24afd8);_0x373e78=(_0x373e78<<0x5)+_0x373e78+_0x1a7c5d,_0x373e78&=_0x373e78;}}function _0x547769(_0x24ff2e){Array[_0x2a4760([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x24ff2e)?_0x24ff2e[_0x2a4760([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x547769):_0x24ff2e&&typeof _0x24ff2e==_0x2a4760([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2a4760([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x24ff2e)[_0x2a4760([0x73,0x6f,0x72,0x74])]()[_0x2a4760([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a51d7,_0x274927])=>{_0x327a65(_0x2a51d7),_0x547769(_0x274927);}):_0x327a65(window[_0x2a4760([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x24ff2e));}return _0x547769(_0x1e7496),_0x373e78>>>0x0;}function _0x367251(_0xaa958c){return _0xaa958c[_0x2a4760([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2a4760([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2a4760([0x30]));}function _0x386103(_0x3f0ee8){return _0x3f0ee8[_0x2a4760([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2a4760([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2a4760([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ecc9a(){}function _0x2a4760(_0x56dfa8){const _0x162d89=_0x2277;return _0x56dfa8[_0x162d89(0x200)](_0x130a60=>String[_0x162d89(0x21b)](_0x130a60))[_0x162d89(0x1e3)]('');}_0x240c12(await _0xdaeac9());}(this);}[_0x57a505(0x212)](){const _0x12b161=_0x57a505,_0x1d5249=this[_0x12b161(0x1e6)][_0x12b161(0x1f4)][_0x12b161(0x202)];_0x1d5249[_0x12b161(0x1d7)](_0x12b161(0x1fc))&&_0x1d5249[_0x12b161(0x224)](_0x12b161(0x1fc),{'allowAttributes':[_0x12b161(0x204)]}),_0x1d5249[_0x12b161(0x1d7)](_0x12b161(0x1f1))&&_0x1d5249[_0x12b161(0x224)](_0x12b161(0x1f1),{'allowAttributes':[_0x12b161(0x204)]});}[_0x57a505(0x206)](){const _0x1144fa=_0x57a505,_0x4fa560=this[_0x1144fa(0x1e6)];_0x4fa560[_0x1144fa(0x1d6)][_0x1144fa(0x1f9)](_0x1144fa(0x20a))[_0x1144fa(0x1eb)]({'model':_0x1144fa(0x204),'view':_0x1144fa(0x1e4)}),_0x4fa560[_0x1144fa(0x1d6)][_0x1144fa(0x1f9)](_0x1144fa(0x1ed))[_0x1144fa(0x1da)]({'model':{'key':_0x1144fa(0x204),'value':_0x2da91b=>_0x2da91b[_0x1144fa(0x223)](_0x1144fa(0x1e4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1cfd6d=_0x4fa560[_0x1144fa(0x21c)][_0x1144fa(0x1e5)](_0x1144fa(0x228));_0x1cfd6d&&this[_0x1144fa(0x207)](_0x1cfd6d,_0x1144fa(0x1f7),(_0x3ed640,[_0xf2405e,_0x278b75])=>{const _0x440b9a=_0x1144fa;_0xf2405e[_0x440b9a(0x21d)](_0x440b9a(0x204),_0x278b75);});}[_0x57a505(0x20c)](){const _0x381d97=_0x57a505,_0x2ba325=this[_0x381d97(0x1e6)][_0x381d97(0x1f2)][_0x381d97(0x1e5)](_0x381d97(0x1f0))||{},_0x30845e=this[_0x381d97(0x1e6)][_0x381d97(0x1f2)][_0x381d97(0x1e5)](_0x381d97(0x1dc))||'';this[_0x381d97(0x1e9)]=_0x50509a(_0x42ff5e[_0x381d97(0x215)],_0x381d97(0x1fa),{..._0x2ba325,'pubkey':_0x30845e,'ctx-name':_0x381d97(0x1ec)+this[_0x381d97(0x222)],'sourceList':'','imgOnly':_0x381d97(0x21e),'removeCopyright':_0x381d97(0x21e),'localeName':this[_0x381d97(0x1e6)][_0x381d97(0x1ee)][_0x381d97(0x1d4)],'externalSourcesEmbedCss':_0x381d97(0x1e8)}),this[_0x381d97(0x1e9)][_0x381d97(0x1f6)]=_0x2f3288=>{const _0x56c487=_0x381d97;if(_0x56c487(0x20b)==_0x2f3288)return _0x56c487(0x217);},_0x42ff5e[_0x381d97(0x215)][_0x381d97(0x209)][_0x381d97(0x21f)](this[_0x381d97(0x1e9)]);}[_0x57a505(0x213)](){const _0x20cdd4=_0x57a505;this[_0x20cdd4(0x1e0)]=_0x50509a(_0x42ff5e[_0x20cdd4(0x215)],_0x20cdd4(0x1d8),{'ctx-name':_0x20cdd4(0x1ec)+this[_0x20cdd4(0x222)]}),_0x42ff5e[_0x20cdd4(0x215)][_0x20cdd4(0x209)][_0x20cdd4(0x21f)](this[_0x20cdd4(0x1e0)]);}[_0x57a505(0x1e2)](){const _0x4c1a98=_0x57a505,_0x1fe7cb=this[_0x4c1a98(0x1e6)][_0x4c1a98(0x21c)][_0x4c1a98(0x1e5)](_0x4c1a98(0x1f8));_0x1fe7cb&&this[_0x4c1a98(0x207)](_0x1fe7cb,_0x4c1a98(0x1d5),()=>{const _0x1c523e=_0x4c1a98,_0x102348=this[_0x1c523e(0x1e6)][_0x1c523e(0x1f4)][_0x1c523e(0x215)][_0x1c523e(0x221)][_0x1c523e(0x1f3)]();_0x102348&&_0x102348[_0x1c523e(0x223)](_0x1c523e(0x204))&&this[_0x1c523e(0x1e6)][_0x1c523e(0x1f5)][_0x1c523e(0x20d)][_0x1c523e(0x21a)](_0x1c523e(0x225),()=>{const _0x5409af=_0x1c523e;_0x4dee5d(this[_0x5409af(0x1e6)],_0x102348);});});const _0x2ac4df=this[_0x4c1a98(0x1e6)][_0x4c1a98(0x21c)][_0x4c1a98(0x1e5)](_0x4c1a98(0x201));_0x2ac4df&&this[_0x4c1a98(0x207)](_0x2ac4df,_0x4c1a98(0x1d5),()=>{const _0x1d31d7=_0x4c1a98,_0x3bfd37=this[_0x1d31d7(0x1e6)][_0x1d31d7(0x1f4)][_0x1d31d7(0x215)][_0x1d31d7(0x221)][_0x1d31d7(0x1f3)]();_0x3bfd37&&_0x3bfd37[_0x1d31d7(0x223)](_0x1d31d7(0x204))&&this[_0x1d31d7(0x1e6)][_0x1d31d7(0x1f5)][_0x1d31d7(0x20d)][_0x1d31d7(0x21a)](_0x1d31d7(0x225),()=>{const _0x3e28bd=_0x1d31d7;_0x4dee5d(this[_0x3e28bd(0x1e6)],_0x3bfd37);});});}}
|
|
23
|
+
const _0x152e7d=_0x2308;function _0x8ddd(){const _0x2632c0=['downcast','once','init','_ctxElement','editor','for','\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','ucContextId','selection','#uc-icon-arrow-down','UploadcareEditing','querySelector','editing','document','render','afterInit','1316425UluQxH','77022AIflXM','insertImage','destroy','fromCharCode','true','getSelectedElement','5847984Jbqosu','1584168FXSAnJ','isPremiumPlugin','uc-upload-ctx-provider','cleanupImage','_initConversion','2901312uDQSvy','commands','isRegistered','getAttribute','_initConfig','input[uploadcare-file-input]','iconHrefResolver','uploadcare.pubkey','body','3cFfPQa','extend','uploadcare','_initSchema','uploader-','PictureEditing','pluginName','add','uploadcareImageReplace','replaceImageSource','execute','upcast','listenTo','join','href','98XGUgfy','_initCtx','configElement','schema','view','_configElement','uploadcareImageId','elementToAttribute','data-uc-image-id','uploadcare.uploader','requires','get','imageBlock','config','uc-config','ctxElement','contentLanguage','isOfficialPlugin','_initImageProcessingIndicator','remove','closeMax','locale','model','conversion','appendChild','141753yPzAPa','map','63374foqxqi','imageInline','removeAttribute','attributeToAttribute'];_0x8ddd=function(){return _0x2632c0;};return _0x8ddd();}(function(_0x4f625c,_0x2d1da5){const _0x1019d9=_0x2308,_0x267366=_0x4f625c();while(!![]){try{const _0x27d65d=parseInt(_0x1019d9(0x124))/0x1+-parseInt(_0x1019d9(0x126))/0x2*(-parseInt(_0x1019d9(0x150))/0x3)+parseInt(_0x1019d9(0x142))/0x4+-parseInt(_0x1019d9(0x13a))/0x5+parseInt(_0x1019d9(0x13b))/0x6*(parseInt(_0x1019d9(0x10b))/0x7)+parseInt(_0x1019d9(0x147))/0x8+-parseInt(_0x1019d9(0x141))/0x9;if(_0x27d65d===_0x2d1da5)break;else _0x267366['push'](_0x267366['shift']());}catch(_0x1a0599){_0x267366['push'](_0x267366['shift']());}}}(_0x8ddd,0x30893));import{Plugin as _0x59fea0}from'ckeditor5/src/core.js';import{Dialog as _0x1f9e9b}from'ckeditor5/src/ui.js';import{createElement as _0x15adb9,global as _0x371971,uid as _0x2b1e79}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xe85f3a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x49b046}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3f6323}from'./utils/editingutils.js';function _0x2308(_0x32e5f6,_0x4c0353){const _0x8ddd9d=_0x8ddd();return _0x2308=function(_0x230833,_0x4f1438){_0x230833=_0x230833-0x10b;let _0x5838f1=_0x8ddd9d[_0x230833];return _0x5838f1;},_0x2308(_0x32e5f6,_0x4c0353);}export class UploadcareEditing extends _0x59fea0{[_0x152e7d(0x110)]=null;[_0x152e7d(0x12d)]=null;static get[_0x152e7d(0x156)](){const _0x45fad1=_0x152e7d;return _0x45fad1(0x134);}static get[_0x152e7d(0x115)](){const _0x40203a=_0x152e7d;return[_0x40203a(0x155),_0x49b046,_0x1f9e9b];}static get[_0x152e7d(0x11c)](){return!0x0;}static get[_0x152e7d(0x143)](){return!0x0;}[_0x152e7d(0x131)];get[_0x152e7d(0x10d)](){const _0x104b50=_0x152e7d;return this[_0x104b50(0x110)];}get[_0x152e7d(0x11a)](){const _0x190dbb=_0x152e7d;return this[_0x190dbb(0x12d)];}constructor(_0x3bfd02){const _0x3e6bd6=_0x152e7d;super(_0x3bfd02),this[_0x3e6bd6(0x131)]=_0x2b1e79();}[_0x152e7d(0x12c)](){const _0xd4100=_0x152e7d,_0x4a3a53=this[_0xd4100(0x12e)];_0x4a3a53[_0xd4100(0x148)][_0xd4100(0x157)](_0xd4100(0x152),new _0xe85f3a(_0x4a3a53));}[_0x152e7d(0x139)](){const _0x5e3c01=_0x152e7d;this[_0x5e3c01(0x153)](),this[_0x5e3c01(0x146)](),this[_0x5e3c01(0x14b)](),this[_0x5e3c01(0x10c)](),this[_0x5e3c01(0x11d)](),this[_0x5e3c01(0x15c)](this[_0x5e3c01(0x12e)],_0x5e3c01(0x13d),()=>{const _0x46b6a5=_0x5e3c01;this[_0x46b6a5(0x110)]&&(this[_0x46b6a5(0x110)][_0x46b6a5(0x11e)](),this[_0x46b6a5(0x110)]=null),this[_0x46b6a5(0x12d)]&&(this[_0x46b6a5(0x12d)][_0x46b6a5(0x11e)](),this[_0x46b6a5(0x12d)]=null);const _0x15b080=_0x371971[_0x46b6a5(0x137)][_0x46b6a5(0x135)](_0x46b6a5(0x14c));_0x15b080&&_0x15b080[_0x46b6a5(0x11e)]();}),async function(_0x5a8484){const _0x25efeb=_0x8039e6([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]),_0x20cfee=0x535f8c3a,_0x5b3136=0x535819fa^_0x20cfee,_0x50d1d9=window[_0x8039e6([0x44,0x61,0x74,0x65])][_0x8039e6([0x6e,0x6f,0x77])](),_0x38bd8e=_0x5a8484[_0x8039e6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x135f98=new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ac78a=>{_0x38bd8e[_0x8039e6([0x6f,0x6e,0x63,0x65])](_0x8039e6([0x72,0x65,0x61,0x64,0x79]),_0x2ac78a);}),_0x350b9b={[_0x8039e6([0x6b,0x74,0x79])]:_0x8039e6([0x45,0x43]),[_0x8039e6([0x75,0x73,0x65])]:_0x8039e6([0x73,0x69,0x67]),[_0x8039e6([0x63,0x72,0x76])]:_0x8039e6([0x50,0x2d,0x32,0x35,0x36]),[_0x8039e6([0x78])]:_0x8039e6([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]),[_0x8039e6([0x79])]:_0x8039e6([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]),[_0x8039e6([0x61,0x6c,0x67])]:_0x8039e6([0x45,0x53,0x32,0x35,0x36])},_0x595ed0=_0x38bd8e[_0x8039e6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8039e6([0x67,0x65,0x74])](_0x8039e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x462739(){let _0x5a68d9,_0x53360a=null,_0x42a1ca=null;try{if(_0x595ed0==_0x8039e6([0x47,0x50,0x4c]))return _0x8039e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a68d9=_0x2a1677(),!_0x5a68d9)return _0x8039e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a68d9[_0x8039e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42a1ca=_0x6cc4fa(_0x5a68d9[_0x8039e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a68d9[_0x8039e6([0x6a,0x74,0x69])])),await _0x3a5a40()?_0x13a634()?_0x14ecbf()?_0x8039e6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ebe7a()?(_0x5a68d9[_0x8039e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8039e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53360a=_0x393cb1(_0x8039e6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b9f47()):_0x8039e6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8039e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8039e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8039e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14ecbf(){const _0x24e526=[_0x8039e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8039e6([0x74,0x72,0x69,0x61,0x6c])][_0x8039e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a68d9[_0x8039e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50d1d9/0x3e8:0xe10*_0x5b3136;return _0x5a68d9[_0x8039e6([0x65,0x78,0x70])]<_0x24e526;}function _0x13a634(){const _0x2a6d53=_0x5a68d9[_0x8039e6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a6d53&&(!!_0x2a6d53[_0x8039e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8039e6([0x2a]))||!!_0x2a6d53[_0x8039e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8039e6([0x55,0x50,0x4c,0x43])));}function _0x3ebe7a(){const _0xa6f223=_0x2308,_0x2b86af=_0x5a68d9[_0x8039e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b86af||0x0==_0x2b86af[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x466c9c}=new URL(window[_0x8039e6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xa6f223(0x15e)]);if(_0x2b86af[_0x8039e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x466c9c))return!0x0;const _0x53b2ce=_0x466c9c[_0x8039e6([0x73,0x70,0x6c,0x69,0x74])](_0x8039e6([0x2e]));return _0x2b86af[_0x8039e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c64ba=>_0x4c64ba[_0x8039e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8039e6([0x2a])))[_0x8039e6([0x6d,0x61,0x70])](_0x3b1954=>_0x3b1954[_0x8039e6([0x73,0x70,0x6c,0x69,0x74])](_0x8039e6([0x2e])))[_0x8039e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x861ec6=>_0x861ec6[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53b2ce[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8039e6([0x6d,0x61,0x70])](_0x3e9216=>Array(_0x53b2ce[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3e9216[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8039e6([0x66,0x69,0x6c,0x6c])](_0x3e9216[0x0]===_0x8039e6([0x2a])?_0x8039e6([0x2a]):'')[_0x8039e6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3e9216))[_0x8039e6([0x73,0x6f,0x6d,0x65])](_0xd3c2fe=>_0x53b2ce[_0x8039e6([0x65,0x76,0x65,0x72,0x79])]((_0x1428f,_0x153cd4)=>_0xd3c2fe[_0x153cd4]===_0x1428f||_0xd3c2fe[_0x153cd4]===_0x8039e6([0x2a])));}function _0x3b9f47(){return _0x53360a&&_0x42a1ca?new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47ac7c,_0x358961)=>{_0x53360a[_0x8039e6([0x74,0x68,0x65,0x6e])](_0x47ac7c,_0x358961),_0x42a1ca[_0x8039e6([0x74,0x68,0x65,0x6e])](_0x2f45f9=>{_0x2f45f9!=_0x8039e6([0x56,0x61,0x6c,0x69,0x64])&&_0x47ac7c(_0x2f45f9);},_0x358961);}):_0x53360a||_0x42a1ca||_0x8039e6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x6cc4fa(_0x4f7d82,_0x442a62){return new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x270fb0=>{if(_0xe06d46())return _0x270fb0(_0x8039e6([0x56,0x61,0x6c,0x69,0x64]));_0x56dcb8(),_0x38bd8e[_0x8039e6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8039e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f09ab=!0x1;const _0x39287a=_0x2b1e79();function _0x212372(_0x46f7d2){return!!_0x46f7d2&&(typeof _0x46f7d2===_0x8039e6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46f7d2===_0x8039e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46f7d2[_0x8039e6([0x74,0x68,0x65,0x6e])]===_0x8039e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46f7d2[_0x8039e6([0x63,0x61,0x74,0x63,0x68])]===_0x8039e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10ac91(_0x3f4aec){_0x146400(_0x3f4aec)[_0x8039e6([0x74,0x68,0x65,0x6e])](_0x26f864=>{if(!_0x26f864||_0x26f864[_0x8039e6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8039e6([0x6f,0x6b]))return _0x8039e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a9524(_0x4ebc93(_0x39287a+_0x442a62))!=_0x26f864[_0x8039e6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8039e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8039e6([0x56,0x61,0x6c,0x69,0x64]);})[_0x8039e6([0x74,0x68,0x65,0x6e])](_0xa3d2ac=>(_0x57d2e4(),_0xa3d2ac),()=>{const _0x1274bc=_0x2298c6();return null==_0x1274bc?(_0x57d2e4(),_0x8039e6([0x56,0x61,0x6c,0x69,0x64])):_0x8039e6(_0x50d1d9-_0x1274bc>(0x7753083a^_0x20cfee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8039e6([0x74,0x68,0x65,0x6e])](_0x270fb0)[_0x8039e6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x270fb0(_0x8039e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x217281=0x536962ba^_0x20cfee;function _0x57d2e4(){const _0x4b14ca=_0x8039e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9524(_0x4ebc93(_0x4f7d82)),_0x2a3c3b=_0xaedd(_0x2a9524(window[_0x8039e6([0x4d,0x61,0x74,0x68])][_0x8039e6([0x63,0x65,0x69,0x6c])](_0x50d1d9/_0x217281)));window[_0x8039e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8039e6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b14ca,_0x2a3c3b);}function _0x2298c6(){const _0x558698=_0x8039e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a9524(_0x4ebc93(_0x4f7d82)),_0x45e011=window[_0x8039e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8039e6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x558698);return _0x45e011?window[_0x8039e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaedd(_0x45e011),0x10)*_0x217281:null;}function _0x146400(_0x1d3939){return new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3418ea,_0x3359d5)=>{_0x1d3939[_0x8039e6([0x74,0x68,0x65,0x6e])](_0x3418ea,_0x3359d5),window[_0x8039e6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3359d5,0x535e58fa^_0x20cfee);});}}_0x38bd8e[_0x8039e6([0x6f,0x6e])](_0x8039e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc545c9,_0xa144c1)=>{if(_0xa144c1[0x0]!=_0x4f7d82)return _0x270fb0(_0x8039e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa144c1[0x1]={..._0xa144c1[0x1],[_0x8039e6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x39287a};},{[_0x8039e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8039e6([0x68,0x69,0x67,0x68])}),_0x38bd8e[_0x8039e6([0x6f,0x6e])](_0x8039e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a416e=>{_0x212372(_0x4a416e[_0x8039e6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f09ab=!0x0,_0x10ac91(_0x4a416e[_0x8039e6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8039e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8039e6([0x6c,0x6f,0x77])}),_0x135f98[_0x8039e6([0x74,0x68,0x65,0x6e])](()=>{_0x1f09ab||_0x270fb0(_0x8039e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe06d46(){return _0x38bd8e[_0x8039e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8039e6([0x76,0x69,0x65,0x77])][_0x8039e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8039e6([0x61,0x75,0x74,0x6f]);}function _0x56dcb8(){_0x38bd8e[_0x8039e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8039e6([0x76,0x69,0x65,0x77])][_0x8039e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8039e6([0x61,0x75,0x74,0x6f]);}}function _0x393cb1(_0x4b07ec){const _0x25c30e=[new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4230c5=>setTimeout(_0x4230c5,0x5356b2f6^_0x20cfee)),_0x135f98[_0x8039e6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b57e5=>{let _0x4b45c3=0x0;_0x38bd8e[_0x8039e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x8039e6([0x6f,0x6e])](_0x8039e6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4db3c5,_0x2057fa)=>{_0x2057fa[0x0][_0x8039e6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b45c3++,_0x4b45c3==(0x535f89d2^_0x20cfee)&&(_0x3b57e5(),_0x4db3c5[_0x8039e6([0x6f,0x66,0x66])]());});}))];return window[_0x8039e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8039e6([0x72,0x61,0x63,0x65])](_0x25c30e)[_0x8039e6([0x74,0x68,0x65,0x6e])](()=>_0x4b07ec);}async function _0x532652(){await _0x135f98,_0x38bd8e[_0x8039e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x8039e6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c1c52,_0x38bd8e[_0x8039e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x8039e6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c1c52,_0x38bd8e[_0x8039e6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8039e6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x336c91(_0x3bea8a){const _0x403813=_0xfbe2f7();_0x38bd8e[_0x403813]=_0x8039e6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3bea8a,_0x3bea8a!=_0x8039e6([0x56,0x61,0x6c,0x69,0x64])&&_0x532652();}function _0xfbe2f7(){const _0x4dbb86=window[_0x8039e6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8039e6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8039e6([0x6e,0x6f,0x77])]())[_0x8039e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8039e6([0x2e]),'');let _0x584cb4=_0x8039e6([0x68]);for(let _0x1c93e9=0x0;_0x1c93e9<_0x4dbb86[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c93e9+=0x2){let _0x15095f=window[_0x8039e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dbb86[_0x8039e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c93e9,_0x1c93e9+0x2));_0x15095f>=_0x25efeb[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15095f-=_0x25efeb[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x584cb4+=_0x25efeb[_0x15095f];}return _0x584cb4;}function _0x2a1677(){const _0x25b56e=_0x595ed0[_0x8039e6([0x73,0x70,0x6c,0x69,0x74])](_0x8039e6([0x2e]));if(0x3!=_0x25b56e[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e7c75(_0x25b56e[0x1]);function _0x2e7c75(_0x192ef3){const _0x10be8a=_0x4dc42d(_0x192ef3);return _0x10be8a&&_0x1854fd()?_0x10be8a:null;function _0x1854fd(){const _0x333e53=_0x10be8a[_0x8039e6([0x6a,0x74,0x69])],_0x4abf1f=window[_0x8039e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x333e53[_0x8039e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x333e53[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5dc770={..._0x10be8a,[_0x8039e6([0x6a,0x74,0x69])]:_0x333e53[_0x8039e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x333e53[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5dc770[_0x8039e6([0x76,0x63])],_0x4ebc93(_0x5dc770)==_0x4abf1f;}}}async function _0x3a5a40(){let _0x8f77fb=!0x0;try{const _0xa8054b=_0x595ed0[_0x8039e6([0x73,0x70,0x6c,0x69,0x74])](_0x8039e6([0x2e])),[_0x1d86c3,_0x136e67,_0x59ad34]=_0xa8054b;return _0x3efb95(_0x1d86c3),await _0xe05f41(_0x1d86c3,_0x136e67,_0x59ad34),_0x8f77fb;}catch{return!0x1;}function _0x3efb95(_0x416629){const _0x7b7bf4=_0x4dc42d(_0x416629);_0x7b7bf4&&_0x7b7bf4[_0x8039e6([0x61,0x6c,0x67])]==_0x8039e6([0x45,0x53,0x32,0x35,0x36])||(_0x8f77fb=!0x1);}async function _0xe05f41(_0x11be35,_0x4e0786,_0x2bb9d4){const _0x482599=window[_0x8039e6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8039e6([0x66,0x72,0x6f,0x6d])](_0x529766(_0x2bb9d4),_0x241a98=>_0x241a98[_0x8039e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd8f846=new window[(_0x8039e6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8039e6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11be35+_0x8039e6([0x2e])+_0x4e0786),_0x296c88=window[_0x8039e6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8039e6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x296c88)return;const _0x110d79=await _0x296c88[_0x8039e6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8039e6([0x6a,0x77,0x6b]),_0x350b9b,{[_0x8039e6([0x6e,0x61,0x6d,0x65])]:_0x8039e6([0x45,0x43,0x44,0x53,0x41]),[_0x8039e6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8039e6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8039e6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x296c88[_0x8039e6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8039e6([0x6e,0x61,0x6d,0x65])]:_0x8039e6([0x45,0x43,0x44,0x53,0x41]),[_0x8039e6([0x68,0x61,0x73,0x68])]:{[_0x8039e6([0x6e,0x61,0x6d,0x65])]:_0x8039e6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x110d79,_0x482599,_0xd8f846)||(_0x8f77fb=!0x1);}}function _0x4dc42d(_0x5bf95c){return _0x5bf95c[_0x8039e6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8039e6([0x65,0x79]))?JSON[_0x8039e6([0x70,0x61,0x72,0x73,0x65])](_0x529766(_0x5bf95c)):null;}function _0x529766(_0x228eb8){return window[_0x8039e6([0x61,0x74,0x6f,0x62])](_0x228eb8[_0x8039e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8039e6([0x2b]))[_0x8039e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8039e6([0x2f])));}function _0x4ebc93(_0x2496a9){let _0x24653e=0x1505;function _0x6f8a4e(_0x311a74){for(let _0x4e1b1d=0x0;_0x4e1b1d<_0x311a74[_0x8039e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e1b1d++){const _0xa36873=_0x311a74[_0x8039e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e1b1d);_0x24653e=(_0x24653e<<0x5)+_0x24653e+_0xa36873,_0x24653e&=_0x24653e;}}function _0xf2f862(_0x225656){Array[_0x8039e6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x225656)?_0x225656[_0x8039e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf2f862):_0x225656&&typeof _0x225656==_0x8039e6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8039e6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x225656)[_0x8039e6([0x73,0x6f,0x72,0x74])]()[_0x8039e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42144e,_0x96d9ba])=>{_0x6f8a4e(_0x42144e),_0xf2f862(_0x96d9ba);}):_0x6f8a4e(window[_0x8039e6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x225656));}return _0xf2f862(_0x2496a9),_0x24653e>>>0x0;}function _0x2a9524(_0x1ad308){return _0x1ad308[_0x8039e6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8039e6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8039e6([0x30]));}function _0xaedd(_0x1d71a5){return _0x1d71a5[_0x8039e6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8039e6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8039e6([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c1c52(){}function _0x8039e6(_0x1f9ef3){const _0x4546ac=_0x2308;return _0x1f9ef3[_0x4546ac(0x125)](_0x25776f=>String[_0x4546ac(0x13e)](_0x25776f))[_0x4546ac(0x15d)]('');}_0x336c91(await _0x462739());}(this);}[_0x152e7d(0x153)](){const _0x4df8c0=_0x152e7d,_0x59f9ab=this[_0x4df8c0(0x12e)][_0x4df8c0(0x121)][_0x4df8c0(0x10e)];_0x59f9ab[_0x4df8c0(0x149)](_0x4df8c0(0x117))&&_0x59f9ab[_0x4df8c0(0x151)](_0x4df8c0(0x117),{'allowAttributes':[_0x4df8c0(0x111)]}),_0x59f9ab[_0x4df8c0(0x149)](_0x4df8c0(0x127))&&_0x59f9ab[_0x4df8c0(0x151)](_0x4df8c0(0x127),{'allowAttributes':[_0x4df8c0(0x111)]});}[_0x152e7d(0x146)](){const _0xf3cd2=_0x152e7d,_0xfe9670=this[_0xf3cd2(0x12e)];_0xfe9670[_0xf3cd2(0x122)][_0xf3cd2(0x12f)](_0xf3cd2(0x12a))[_0xf3cd2(0x129)]({'model':_0xf3cd2(0x111),'view':_0xf3cd2(0x113)}),_0xfe9670[_0xf3cd2(0x122)][_0xf3cd2(0x12f)](_0xf3cd2(0x15b))[_0xf3cd2(0x112)]({'model':{'key':_0xf3cd2(0x111),'value':_0x338d33=>_0x338d33[_0xf3cd2(0x14a)](_0xf3cd2(0x113))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2e930f=_0xfe9670[_0xf3cd2(0x148)][_0xf3cd2(0x116)](_0xf3cd2(0x159));_0x2e930f&&this[_0xf3cd2(0x15c)](_0x2e930f,_0xf3cd2(0x145),(_0x75ae6b,[_0x1ec8f1,_0x244861])=>{const _0x22a83d=_0xf3cd2;_0x1ec8f1[_0x22a83d(0x128)](_0x22a83d(0x111),_0x244861);});}[_0x152e7d(0x14b)](){const _0x3616a6=_0x152e7d,_0x375107=this[_0x3616a6(0x12e)][_0x3616a6(0x118)][_0x3616a6(0x116)](_0x3616a6(0x114))||{},_0x4024e3=this[_0x3616a6(0x12e)][_0x3616a6(0x118)][_0x3616a6(0x116)](_0x3616a6(0x14e))||'';this[_0x3616a6(0x110)]=_0x15adb9(_0x371971[_0x3616a6(0x137)],_0x3616a6(0x119),{..._0x375107,'pubkey':_0x4024e3,'ctx-name':_0x3616a6(0x154)+this[_0x3616a6(0x131)],'sourceList':'','imgOnly':_0x3616a6(0x13f),'removeCopyright':_0x3616a6(0x13f),'localeName':this[_0x3616a6(0x12e)][_0x3616a6(0x120)][_0x3616a6(0x11b)],'externalSourcesEmbedCss':_0x3616a6(0x130)}),this[_0x3616a6(0x110)][_0x3616a6(0x14d)]=_0x34247b=>{const _0x513bc2=_0x3616a6;if(_0x513bc2(0x11f)==_0x34247b)return _0x513bc2(0x133);},_0x371971[_0x3616a6(0x137)][_0x3616a6(0x14f)][_0x3616a6(0x123)](this[_0x3616a6(0x110)]);}[_0x152e7d(0x10c)](){const _0x5b4d8f=_0x152e7d;this[_0x5b4d8f(0x12d)]=_0x15adb9(_0x371971[_0x5b4d8f(0x137)],_0x5b4d8f(0x144),{'ctx-name':_0x5b4d8f(0x154)+this[_0x5b4d8f(0x131)]}),_0x371971[_0x5b4d8f(0x137)][_0x5b4d8f(0x14f)][_0x5b4d8f(0x123)](this[_0x5b4d8f(0x12d)]);}[_0x152e7d(0x11d)](){const _0x1cd614=_0x152e7d,_0x15f5a4=this[_0x1cd614(0x12e)][_0x1cd614(0x148)][_0x1cd614(0x116)](_0x1cd614(0x13c));_0x15f5a4&&this[_0x1cd614(0x15c)](_0x15f5a4,_0x1cd614(0x15a),()=>{const _0x221896=_0x1cd614,_0x418394=this[_0x221896(0x12e)][_0x221896(0x121)][_0x221896(0x137)][_0x221896(0x132)][_0x221896(0x140)]();_0x418394&&_0x418394[_0x221896(0x14a)](_0x221896(0x111))&&this[_0x221896(0x12e)][_0x221896(0x136)][_0x221896(0x10f)][_0x221896(0x12b)](_0x221896(0x138),()=>{const _0x551230=_0x221896;_0x3f6323(this[_0x551230(0x12e)],_0x418394);});});const _0x3f0b57=this[_0x1cd614(0x12e)][_0x1cd614(0x148)][_0x1cd614(0x116)](_0x1cd614(0x158));_0x3f0b57&&this[_0x1cd614(0x15c)](_0x3f0b57,_0x1cd614(0x15a),()=>{const _0x4c14cd=_0x1cd614,_0x27950c=this[_0x4c14cd(0x12e)][_0x4c14cd(0x121)][_0x4c14cd(0x137)][_0x4c14cd(0x132)][_0x4c14cd(0x140)]();_0x27950c&&_0x27950c[_0x4c14cd(0x14a)](_0x4c14cd(0x111))&&this[_0x4c14cd(0x12e)][_0x4c14cd(0x136)][_0x4c14cd(0x10f)][_0x4c14cd(0x12b)](_0x4c14cd(0x138),()=>{const _0x3e8231=_0x4c14cd;_0x3f6323(this[_0x3e8231(0x12e)],_0x27950c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4cddcd,ObservableMixin as _0x5be303}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xb8c1ca}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3b9723}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4f817b}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x35eb5c}from'../../utils/uploadutils.js';import{getImageUrls as _0x12e452,getImageDimension as _0x4984a3}from'../../utils/editingutils.js';import{isAncestor as _0x4bd8be}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5be303(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x523ddf,_0x51ea5f,_0x4ce9c9){super(),this['_editor']=_0x523ddf,this['_dialog']=_0x51ea5f,this['_imageElement']=_0x4ce9c9,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 _0x3b2a0e=this['_imageElement'],_0x27284f=_0x3b2a0e['getAttribute']('uploadcareImageId'),_0x19aeff=_0x3b2a0e['getAttribute']('src');if(_0x27284f)await this['_loadImageInfo'](_0x27284f,_0x19aeff);else{if(this['_imageCache']['has'](_0x19aeff)){const _0x20606f=this['_imageCache']['get'](_0x19aeff);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x20606f['url'],this['imageDimension']=_0x20606f['dimension'],this['imageId']=_0x20606f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1aa5e5}=this['_editor'],t=_0x1aa5e5['t'],_0x413fef=new _0x4f817b(_0x1aa5e5,this['imageStatus'],this['_attributes']);_0x413fef['bind']('status')['to'](this,'imageStatus'),_0x413fef['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x413fef['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x413fef['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x413fef,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3b9723,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x413fef,'position':_0xb8c1ca['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x413fef['focus']();},'onHide':()=>{_0x413fef['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x283747=>!_0x4bd8be(_0x283747,_0x413fef['element'])}});}['_loadImageInfo'](_0x75039,_0x4f5829){return _0x35eb5c['getInfo'](_0x75039,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3383f1=>{const {width:_0x43f533,height:_0x78bf4e}=_0x3383f1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f5829,this['imageDimension']={'width':_0x43f533,'height':_0x78bf4e},this['imageId']=_0x75039;})['catch'](_0x277536=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x277536['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x503269,_0xf2aa33){return this['_getImageAsFile'](_0x503269)['then'](_0x1a3671=>_0x35eb5c['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':_0xf2aa33['signal'],'file':_0x1a3671,'onProgress':_0x4266a9=>{_0x4266a9&&_0x4266a9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4266a9['value']));}}))['then'](_0x4bd603=>{const {width:_0x43152c,height:_0x4327c5}=_0x4bd603['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4bd603['cdnUrl'],this['imageDimension']={'width':_0x43152c,'height':_0x4327c5},this['imageId']=_0x4bd603['uuid'],this['imageUploadProgress']=null;const _0x443640=_0x503269['getAttribute']('src');this['_imageCache']['set'](_0x443640,{'id':_0x4bd603['uuid'],'url':_0x4bd603['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2915a3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2915a3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1b7e9e,_0x508863){_0x1b7e9e['on']('apply',(_0x2fb10b,_0x322801)=>{this['_replaceImage'](_0x508863,_0x322801['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1b7e9e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1b7e9e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x41fcb6,_0x22363d,_0x2fd129){const _0xb93a00=this['_editor'],{width:_0x39ff49,height:_0x808c2c}=_0x4984a3(_0x22363d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x38447d,imageSources:_0x64d0f0}=_0x12e452(_0x22363d,_0x39ff49);_0xb93a00['model']['change'](_0x3e1c6e=>{if('$graveyard'===_0x41fcb6['root']['rootName']){_0xb93a00['execute']('insertImage',{'imageType':_0x41fcb6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x41fcb6['getAttributes']()),'uploadcareImageId':_0x2fd129,'src':_0x38447d,'sources':_0x64d0f0,'width':_0x39ff49,'height':_0x808c2c}});const _0x341530=_0x41fcb6['getChildren']();_0x41fcb6=_0xb93a00['model']['document']['selection']['getSelectedElement']();for(const _0x362763 of _0x341530)_0x3e1c6e['append'](_0x3e1c6e['cloneElement'](_0x362763),_0x41fcb6);}else _0x3e1c6e['setSelection'](_0x41fcb6,'on'),_0xb93a00['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x41fcb6['getAttributes']()),'uploadcareImageId':_0x2fd129,'src':_0x38447d,'sources':_0x64d0f0,'width':_0x39ff49,'height':_0x808c2c},_0x41fcb6);_0x3e1c6e['setSelection'](_0x41fcb6,'on');});}async['_getImageAsFile'](_0x264f1e){const _0x41b79e=_0x4cddcd['window'],_0x873051=_0x4cddcd['document']['location']['href'],_0x1dc14b=new _0x41b79e['URL'](_0x264f1e['getAttribute']('src'),_0x873051);if('data:'===_0x1dc14b['protocol']){const _0xaa9189=_0x1dc14b['href']['split'](','),_0x457ca1=_0xaa9189[0x0]['match'](/:(.*?);/)[0x1],_0x4d26bb=_0x457ca1['split']('/')[0x1],_0xfee0c2=_0x41b79e['atob'](_0xaa9189[_0xaa9189['length']-0x1]);let _0x2a345f=_0xfee0c2['length'];const _0x55367a=new _0x41b79e['Uint8Array'](_0x2a345f);for(;_0x2a345f--;)_0x55367a[_0x2a345f]=_0xfee0c2['charCodeAt'](_0x2a345f);return new _0x41b79e['File']([_0x55367a],'image.'+_0x4d26bb,{'type':_0x457ca1});}const _0x58f05e=_0x1dc14b['href']['split']('/'),_0x12b688=_0x58f05e[_0x58f05e['length']-0x1],_0x45f7ba=_0x12b688['split']('.')[0x1];return _0x41b79e['fetch'](_0x1dc14b['href'])['then'](_0xe6469b=>_0xe6469b['clone']()['blob']())['then'](_0x22bcfb=>new _0x41b79e['File']([_0x22bcfb],_0x12b688,{'type':'image/'+_0x45f7ba}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x6e97(_0x19005e,_0x301bbd){const _0x4f085e=_0x4f08();return _0x6e97=function(_0x6e97ce,_0x5b94f6){_0x6e97ce=_0x6e97ce-0x193;let _0x2dd279=_0x4f085e[_0x6e97ce];return _0x2dd279;},_0x6e97(_0x19005e,_0x301bbd);}(function(_0x4dea49,_0x4aa847){const _0x532e6d=_0x6e97,_0x3d3046=_0x4dea49();while(!![]){try{const _0x19acc6=parseInt(_0x532e6d(0x196))/0x1+parseInt(_0x532e6d(0x199))/0x2*(parseInt(_0x532e6d(0x1a1))/0x3)+parseInt(_0x532e6d(0x1a0))/0x4+-parseInt(_0x532e6d(0x19b))/0x5+parseInt(_0x532e6d(0x19a))/0x6+-parseInt(_0x532e6d(0x19d))/0x7*(parseInt(_0x532e6d(0x1a4))/0x8)+-parseInt(_0x532e6d(0x19f))/0x9*(-parseInt(_0x532e6d(0x194))/0xa);if(_0x19acc6===_0x4aa847)break;else _0x3d3046['push'](_0x3d3046['shift']());}catch(_0x550761){_0x3d3046['push'](_0x3d3046['shift']());}}}(_0x4f08,0xd6dd2));import{View as _0xbb972e}from'ckeditor5/src/ui.js';function _0x4f08(){const _0x2d356b=['imageSrc','77jjJOmz','bindTemplate','9FNzgZp','2454364jUzgPX','12gxxzcb','ck-uploadcare-theme','setTemplate','1067440YuzeCr','uc-light','14681550TnxyJF','uc-cloud-image-editor','1488601zVGdgz','image-edit','set','216598CQepZP','37878xwdRwM','8310220uLxdjg'];_0x4f08=function(){return _0x2d356b;};return _0x4f08();}export class UploadcareImageEditFormEditingView extends _0xbb972e{constructor(_0x4fd670,_0x438fad){const _0x51b602=_0x6e97;super(_0x4fd670);const _0x1931d8=this[_0x51b602(0x19e)];this[_0x51b602(0x198)](_0x51b602(0x19c),''),this[_0x51b602(0x1a3)]({'tag':_0x51b602(0x195),'attributes':{..._0x438fad,'class':[_0x51b602(0x193),_0x51b602(0x1a2)],'ctx-name':_0x51b602(0x197),'cdn-url':_0x1931d8['to'](_0x51b602(0x19c))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x26b3ae}from'ckeditor5/src/icons.js';import{ButtonView as _0x2a0721,IconView as _0x59dc08,View as _0x2e0088}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2e0088{constructor(_0x32c935){super(_0x32c935);const t=_0x32c935['t'];this['set']('errorType',null);const _0x42ca1c=new _0x2a0721(_0x32c935);_0x42ca1c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x42ca1c['withText']=!0x0,_0x42ca1c['class']='ck-button-action',_0x42ca1c['on']('execute',()=>{this['fire']('retry');}),_0x42ca1c['bind']('isVisible')['to'](this,'errorType',_0x38dcc6=>'NotFound'!==_0x38dcc6);const _0x4b8af7=new _0x59dc08();_0x4b8af7['content']=_0x26b3ae,_0x4b8af7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4857ce=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':[_0x4b8af7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4857ce['to']('errorType',_0x2d27f5=>t('NotFound'!==_0x2d27f5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x42ca1c]},{'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 _0x1d8fe8,View as _0xbb7257}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0xbb7257{constructor(_0x206262){super(_0x206262);const t=_0x206262['t'],_0x45dda9=this['bindTemplate'],_0x2895f2=new _0x1d8fe8();_0x2895f2['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':[_0x2895f2,{'text':_0x45dda9['to']('imageUploadProgress',_0x1dce88=>t('Loading\x20image...')+'\x20('+(_0x1dce88||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26be14=_0x4614;(function(_0x3bb954,_0x121f43){const _0x4f945e=_0x4614,_0x1b7a30=_0x3bb954();while(!![]){try{const _0x60e4ce=parseInt(_0x4f945e(0x1c6))/0x1*(-parseInt(_0x4f945e(0x1d7))/0x2)+-parseInt(_0x4f945e(0x1ef))/0x3*(parseInt(_0x4f945e(0x1f0))/0x4)+-parseInt(_0x4f945e(0x1c4))/0x5*(-parseInt(_0x4f945e(0x1d0))/0x6)+parseInt(_0x4f945e(0x1d8))/0x7+parseInt(_0x4f945e(0x1d9))/0x8*(-parseInt(_0x4f945e(0x1c0))/0x9)+parseInt(_0x4f945e(0x1bc))/0xa+-parseInt(_0x4f945e(0x1ed))/0xb*(-parseInt(_0x4f945e(0x1ee))/0xc);if(_0x60e4ce===_0x121f43)break;else _0x1b7a30['push'](_0x1b7a30['shift']());}catch(_0x2ecdc9){_0x1b7a30['push'](_0x1b7a30['shift']());}}}(_0x553f,0x9fef3));import{View as _0x1e4612}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x11ea84}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x21576d}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2217b4}from'./uploadcareimageeditformeditingview.js';function _0x553f(){const _0x54f5e7=['disconnect','once','ck-uploadcare-form','_setView','filter','change:status','cancel','108viqYbE','_waitForImageEditorComponent','_editingView','_addUploadcareImageEditorListeners','length','getFocusableElement','observe','2FlSiUA','1571269iuXaCm','24IEJOez','set','apply','clear','createCollection','addEventListener','render','_addErrorViewListeners','status','detail','ready','querySelector','addedNodes','target','element','error','_errorView','nodeName','_focusableView','fire','20473123OnuKgg','12LOmiHU','3MMxigz','1429828qVFbrV','toLowerCase','_items','setTemplate','div','4098230NgsZJM','ck-reset_all-excluded','retry','_loadingView','3823236oXmIda','focus','add','uc-cloud-image-editor','21690nLqQzP','addMany','286607XGAHiB','uploading','cdnUrl'];_0x553f=function(){return _0x54f5e7;};return _0x553f();}function _0x4614(_0x34bdfb,_0x25d5a4){const _0x553f8f=_0x553f();return _0x4614=function(_0x4614af,_0x5a0899){_0x4614af=_0x4614af-0x1ba;let _0x5512a2=_0x553f8f[_0x4614af];return _0x5512a2;},_0x4614(_0x34bdfb,_0x25d5a4);}import{DialogFocusManagerView as _0x56f3b3}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x56f3b3{[_0x26be14(0x1f2)];[_0x26be14(0x1bf)];[_0x26be14(0x1e9)];[_0x26be14(0x1d2)];[_0x26be14(0x1eb)];constructor(_0x1bd117,_0x29ef2b,_0x354a62){const _0x21b1bd=_0x26be14;super(_0x1bd117),this[_0x21b1bd(0x1f2)]=this[_0x21b1bd(0x1dd)](),this[_0x21b1bd(0x1bf)]=new _0x11ea84(_0x1bd117),this[_0x21b1bd(0x1e9)]=new _0x21576d(_0x1bd117),this[_0x21b1bd(0x1d2)]=new _0x2217b4(_0x1bd117,_0x354a62),this[_0x21b1bd(0x1eb)]=new _0x1e4612(_0x1bd117),this[_0x21b1bd(0x1eb)][_0x21b1bd(0x1ba)](this[_0x21b1bd(0x1d5)]()),this[_0x21b1bd(0x1da)](_0x21b1bd(0x1e1),_0x29ef2b),this[_0x21b1bd(0x1ba)]({'tag':_0x21b1bd(0x1bb),'attributes':{'class':['ck',_0x21b1bd(0x1bd),_0x21b1bd(0x1cb)],'tabindex':'-1'},'children':this[_0x21b1bd(0x1f2)]}),this[_0x21b1bd(0x1cc)](),this[_0x21b1bd(0x1ca)](_0x21b1bd(0x1df),()=>{const _0x45ea8f=_0x21b1bd;this[_0x45ea8f(0x1d1)](this[_0x45ea8f(0x1e7)],_0xf69da9=>{const _0xfc739=_0x45ea8f;this[_0xfc739(0x1d3)](_0xf69da9);});}),this['on'](_0x21b1bd(0x1ce),()=>{const _0x4d7e2d=_0x21b1bd;this[_0x4d7e2d(0x1cc)]();}),this[_0x21b1bd(0x1e0)]();}[_0x26be14(0x1c1)](){const _0x52b6f7=_0x26be14;this[_0x52b6f7(0x1e7)][_0x52b6f7(0x1c1)]();}[_0x26be14(0x1cc)](){const _0x281abb=_0x26be14;switch(this[_0x281abb(0x1f2)][_0x281abb(0x1dc)](),this[_0x281abb(0x1e1)]){case _0x281abb(0x1c7):this[_0x281abb(0x1f2)][_0x281abb(0x1c2)](this[_0x281abb(0x1bf)]);break;case _0x281abb(0x1e8):this[_0x281abb(0x1f2)][_0x281abb(0x1c2)](this[_0x281abb(0x1e9)]);break;case _0x281abb(0x1e3):this[_0x281abb(0x1f2)][_0x281abb(0x1c5)]([this[_0x281abb(0x1d2)],this[_0x281abb(0x1eb)]]);}}[_0x26be14(0x1d1)](_0x2706d4,_0x4e030f){const _0x16c718=_0x26be14,_0x2bfe9d=_0x16c718(0x1c3),_0x3a6c09=_0x2706d4[_0x16c718(0x1e4)](_0x2bfe9d);if(_0x3a6c09)return _0x4e030f(_0x3a6c09);const _0x11900b=new MutationObserver(_0xfef6d3=>{const _0x5b3214=_0x16c718,_0x5908ca=_0xfef6d3[_0x5b3214(0x1cd)](_0x35c705=>_0x35c705[_0x5b3214(0x1e6)]===_0x2706d4&&_0x35c705[_0x5b3214(0x1e5)][_0x5b3214(0x1d4)]>0x0&&_0x35c705[_0x5b3214(0x1e5)][0x0][_0x5b3214(0x1ea)][_0x5b3214(0x1f1)]()===_0x2bfe9d);_0x5908ca[_0x5b3214(0x1d4)]&&(_0x11900b[_0x5b3214(0x1c9)](),_0x4e030f(_0x5908ca[0x0][_0x5b3214(0x1e5)][0x0]));});_0x11900b[_0x16c718(0x1d6)](_0x2706d4,{'childList':!0x0,'subtree':!0x0});}[_0x26be14(0x1d3)](_0x13f8b1){const _0x1859d8=_0x26be14;_0x13f8b1[_0x1859d8(0x1de)](_0x1859d8(0x1db),_0xeb8e4a=>{const _0x280725=_0x1859d8;this[_0x280725(0x1ec)](_0x280725(0x1db),{'imageSrc':_0xeb8e4a[_0x280725(0x1e2)][_0x280725(0x1c8)]});}),_0x13f8b1[_0x1859d8(0x1de)](_0x1859d8(0x1cf),()=>{const _0x5e1028=_0x1859d8;this[_0x5e1028(0x1ec)](_0x5e1028(0x1cf));});}[_0x26be14(0x1e0)](){const _0x22b919=_0x26be14;this[_0x22b919(0x1e9)]['on'](_0x22b919(0x1be),()=>{const _0x4dd902=_0x22b919;this[_0x4dd902(0x1ec)](_0x4dd902(0x1be));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12026e=_0x351b;function _0x351b(_0x495a36,_0xf81441){const _0x5f56c6=_0x5f56();return _0x351b=function(_0x351bcf,_0x43542e){_0x351bcf=_0x351bcf-0x14a;let _0x106044=_0x5f56c6[_0x351bcf];return _0x106044;},_0x351b(_0x495a36,_0xf81441);}(function(_0x2b3f20,_0x729eed){const _0x8b79f4=_0x351b,_0xd3b68c=_0x2b3f20();while(!![]){try{const _0x35a851=parseInt(_0x8b79f4(0x14c))/0x1*(parseInt(_0x8b79f4(0x152))/0x2)+parseInt(_0x8b79f4(0x157))/0x3*(-parseInt(_0x8b79f4(0x168))/0x4)+-parseInt(_0x8b79f4(0x14e))/0x5+parseInt(_0x8b79f4(0x154))/0x6*(-parseInt(_0x8b79f4(0x15d))/0x7)+parseInt(_0x8b79f4(0x166))/0x8+parseInt(_0x8b79f4(0x15b))/0x9+-parseInt(_0x8b79f4(0x153))/0xa*(-parseInt(_0x8b79f4(0x156))/0xb);if(_0x35a851===_0x729eed)break;else _0xd3b68c['push'](_0xd3b68c['shift']());}catch(_0x4e9f9c){_0xd3b68c['push'](_0xd3b68c['shift']());}}}(_0x5f56,0xc4915));function _0x5f56(){const _0x5c8275=['181501OJeCwk','set','2047945jtvZca','refresh','model','execute','8hIuDTl','50eiZChp','2512668KDIFMw','isActive','218933WDnzOq','6WHyZVJ','uploadcare.allowExternalImagesEditing','selection','get','5906052UOGmmw','document','21ZJKnBw','imageBlock','editor','unbind','imageInline','_isEditable','config','getSelectedElement','requires','10366408GWncLT','plugins','612968nXRAlw','isEnabled','bind','imageEditController','element'];_0x5f56=function(){return _0x5c8275;};return _0x5f56();}import{Command as _0x2effe7}from'ckeditor5/src/core.js';import{Dialog as _0x44ad59}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x4aaa67}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x35e89b}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2effe7{[_0x12026e(0x14a)];static get[_0x12026e(0x165)](){return[_0x44ad59];}[_0x12026e(0x162)];constructor(_0x89093c){const _0x35ac11=_0x12026e;super(_0x89093c),this[_0x35ac11(0x14a)]=void 0x0,this[_0x35ac11(0x162)]=_0x35e89b(_0x89093c[_0x35ac11(0x163)][_0x35ac11(0x15a)](_0x35ac11(0x158))||[]),this[_0x35ac11(0x14d)]({'isActive':!0x1});}[_0x12026e(0x14f)](){const _0x26bb7e=_0x12026e,_0x3b43d5=this[_0x26bb7e(0x15f)][_0x26bb7e(0x150)][_0x26bb7e(0x15c)][_0x26bb7e(0x159)][_0x26bb7e(0x164)]();this[_0x26bb7e(0x169)]=this[_0x26bb7e(0x162)](_0x3b43d5);}[_0x12026e(0x151)](){const _0x49891c=_0x12026e;this[_0x49891c(0x14a)]&&(this[_0x49891c(0x160)](_0x49891c(0x155)),this[_0x49891c(0x14a)]=void 0x0);const _0x2a8d32=this[_0x49891c(0x15f)][_0x49891c(0x150)][_0x49891c(0x15c)][_0x49891c(0x159)][_0x49891c(0x164)]();_0x2a8d32&&(_0x2a8d32['is'](_0x49891c(0x14b),_0x49891c(0x15e))||_0x2a8d32['is'](_0x49891c(0x14b),_0x49891c(0x161)))&&(this[_0x49891c(0x14a)]=new _0x4aaa67(this[_0x49891c(0x15f)],this[_0x49891c(0x15f)][_0x49891c(0x167)][_0x49891c(0x15a)](_0x44ad59),_0x2a8d32),this[_0x49891c(0x16a)](_0x49891c(0x155))['to'](this[_0x49891c(0x14a)],_0x49891c(0x155)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15aa7e=_0x379c;(function(_0x2f62d7,_0x168713){const _0x4b83b7=_0x379c,_0x597645=_0x2f62d7();while(!![]){try{const _0x4237d7=-parseInt(_0x4b83b7(0x110))/0x1*(-parseInt(_0x4b83b7(0x100))/0x2)+-parseInt(_0x4b83b7(0x112))/0x3*(parseInt(_0x4b83b7(0x10d))/0x4)+parseInt(_0x4b83b7(0x10f))/0x5+parseInt(_0x4b83b7(0x101))/0x6+-parseInt(_0x4b83b7(0x105))/0x7+parseInt(_0x4b83b7(0x10a))/0x8*(-parseInt(_0x4b83b7(0x10e))/0x9)+-parseInt(_0x4b83b7(0x10c))/0xa*(-parseInt(_0x4b83b7(0x103))/0xb);if(_0x4237d7===_0x168713)break;else _0x597645['push'](_0x597645['shift']());}catch(_0xbced11){_0x597645['push'](_0x597645['shift']());}}}(_0x5612,0xd7adc));import{Plugin as _0x5971dd}from'ckeditor5/src/core.js';import{Notification as _0x10f4aa}from'ckeditor5/src/ui.js';function _0x379c(_0xc32302,_0x4797a8){const _0x5612a6=_0x5612();return _0x379c=function(_0x379c13,_0x2e3b90){_0x379c13=_0x379c13-0xfe;let _0x465066=_0x5612a6[_0x379c13];return _0x465066;},_0x379c(_0xc32302,_0x4797a8);}import{UploadcareImageEditCommand as _0x569915}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x26b11b}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x25cec2}from'../uploadcareediting.js';function _0x5612(){const _0x2db494=['isPremiumPlugin','ImageUtils','264mxFhDL','4334148otivpL','commands','8492AZXlEe','pluginName','2450812zCkFYL','UploadcareImageEditEditing','uploadcareImageEdit','ImageEditing','requires','5867088dXsfJA','init','18010SiqAGi','65864hGKddK','18obhQPw','6550430ZyeIhH','2011lfhoqN','isOfficialPlugin','180gYjeEk','uploadcareImageReplace','add'];_0x5612=function(){return _0x2db494;};return _0x5612();}export class UploadcareImageEditEditing extends _0x5971dd{static get[_0x15aa7e(0x104)](){const _0x16b511=_0x15aa7e;return _0x16b511(0x106);}static get[_0x15aa7e(0x109)](){const _0x52e91f=_0x15aa7e;return[_0x25cec2,_0x10f4aa,_0x52e91f(0xff),_0x52e91f(0x108)];}static get[_0x15aa7e(0x111)](){return!0x0;}static get[_0x15aa7e(0xfe)](){return!0x0;}[_0x15aa7e(0x10b)](){const _0x453bd9=_0x15aa7e,{editor:_0x3f777c}=this;_0x3f777c[_0x453bd9(0x102)][_0x453bd9(0x114)](_0x453bd9(0x107),new _0x569915(_0x3f777c)),_0x3f777c[_0x453bd9(0x102)][_0x453bd9(0x114)](_0x453bd9(0x113),new _0x26b11b(_0x3f777c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x54340a}from'ckeditor5/src/core.js';import{ButtonView as _0xc4f714}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3750e1}from'ckeditor5/src/icons.js';import{createElement as _0x524011}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 _0x54340a{['_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 _0x2e88af=this['editor'];_0x2e88af['ui']['componentFactory']['add']('uploadcareImageEdit',_0xa98ff7=>{const _0x18d549=_0x2e88af['commands']['get']('uploadcareImageEdit'),_0x244a06=new _0xc4f714(_0xa98ff7),t=_0xa98ff7['t'];return _0x244a06['set']({'icon':_0x3750e1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x244a06['bind']('isEnabled')['to'](_0x18d549),_0x244a06['bind']('isOn')['to'](_0x18d549,'isActive'),this['listenTo'](_0x244a06,'execute',()=>{_0x2e88af['execute']('uploadcareImageEdit'),_0x2e88af['editing']['view']['focus']();}),_0x244a06;}),this['_initConfig']();}['_initConfig'](){const _0x4b4e85=_0x524011(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4b4e85),this['listenTo'](this['editor'],'destroy',()=>{_0x4b4e85['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xb5f3b4=_0x1400;(function(_0x35bec5,_0xb12023){const _0x5240bb=_0x1400,_0x30b722=_0x35bec5();while(!![]){try{const _0x5bcc2a=parseInt(_0x5240bb(0x18f))/0x1+-parseInt(_0x5240bb(0x191))/0x2+parseInt(_0x5240bb(0x19d))/0x3*(-parseInt(_0x5240bb(0x1a6))/0x4)+-parseInt(_0x5240bb(0x19f))/0x5*(-parseInt(_0x5240bb(0x199))/0x6)+parseInt(_0x5240bb(0x196))/0x7*(-parseInt(_0x5240bb(0x194))/0x8)+-parseInt(_0x5240bb(0x19a))/0x9+parseInt(_0x5240bb(0x1a0))/0xa;if(_0x5bcc2a===_0xb12023)break;else _0x30b722['push'](_0x30b722['shift']());}catch(_0x2b3c41){_0x30b722['push'](_0x30b722['shift']());}}}(_0x52ee,0x4e441));function _0x52ee(){const _0x11e50b=['6ycWToH','sizes','307575vnGmrp','10318350wsZDTu','isEnabled','removeAttribute','editor','selection','imageInline','583820oOQBZE','getSelectedElement','change','340164xasvkt','document','829390rQxwQJ','srcset','setAttributes','24zugKZX','imageBlock','477309kempUp','refresh','element','6osQhCE','1815939XyFMyJ','execute','model'];_0x52ee=function(){return _0x11e50b;};return _0x52ee();}function _0x1400(_0x1b5bd2,_0x11bbe9){const _0x52eec9=_0x52ee();return _0x1400=function(_0x14000e,_0x4e50aa){_0x14000e=_0x14000e-0x18d;let _0x2503e3=_0x52eec9[_0x14000e];return _0x2503e3;},_0x1400(_0x1b5bd2,_0x11bbe9);}import{Command as _0x2acde6}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2acde6{[_0xb5f3b4(0x197)](){const _0x3a9627=_0xb5f3b4,_0x8ad435=this[_0x3a9627(0x1a3)][_0x3a9627(0x19c)][_0x3a9627(0x190)][_0x3a9627(0x1a4)][_0x3a9627(0x18d)]();this[_0x3a9627(0x1a1)]=Boolean(_0x8ad435&&(_0x8ad435['is'](_0x3a9627(0x198),_0x3a9627(0x195))||_0x8ad435['is'](_0x3a9627(0x198),_0x3a9627(0x1a5))));}[_0xb5f3b4(0x19b)](_0x3e0d56){const _0x52479d=_0xb5f3b4,_0x2c8b3b=this[_0x52479d(0x1a3)][_0x52479d(0x19c)][_0x52479d(0x190)][_0x52479d(0x1a4)][_0x52479d(0x18d)]();this[_0x52479d(0x1a3)][_0x52479d(0x19c)][_0x52479d(0x18e)](_0xcbe8ce=>{const _0x27d04e=_0x52479d;_0xcbe8ce[_0x27d04e(0x193)](_0x3e0d56,_0x2c8b3b),_0xcbe8ce[_0x27d04e(0x1a2)](_0x27d04e(0x192),_0x2c8b3b),_0xcbe8ce[_0x27d04e(0x1a2)](_0x27d04e(0x19e),_0x2c8b3b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xfb616e=_0x203c;function _0x203c(_0xe9a6ad,_0x2a98bd){var _0x4600df=_0x4600();return _0x203c=function(_0x203cb1,_0x49d0b3){_0x203cb1=_0x203cb1-0x100;var _0x60bdf5=_0x4600df[_0x203cb1];return _0x60bdf5;},_0x203c(_0xe9a6ad,_0x2a98bd);}function _0x4600(){var _0x5d7547=['50691972rUzEmd','5524464ywMqEo','12EFBnyX','28iSESkm','20ZoHnwh','30wtwziL','13PZRdQA','pluginName','UploadcareImageEdit','517257kqriFz','1422823NUAtyF','2583SZsiWO','requires','isOfficialPlugin','1173785zcNhST','28432LJYtgk','2334780ltoSPG','isPremiumPlugin'];_0x4600=function(){return _0x5d7547;};return _0x4600();}(function(_0x510518,_0xa3d9e9){var _0x3d75cf=_0x203c,_0x5eac39=_0x510518();while(!![]){try{var _0x4b2bea=-parseInt(_0x3d75cf(0x104))/0x1+parseInt(_0x3d75cf(0x110))/0x2*(parseInt(_0x3d75cf(0x103))/0x3)+-parseInt(_0x3d75cf(0x10e))/0x4*(-parseInt(_0x3d75cf(0x108))/0x5)+parseInt(_0x3d75cf(0x10a))/0x6*(parseInt(_0x3d75cf(0x10f))/0x7)+parseInt(_0x3d75cf(0x109))/0x8*(parseInt(_0x3d75cf(0x105))/0x9)+parseInt(_0x3d75cf(0x111))/0xa*(parseInt(_0x3d75cf(0x10d))/0xb)+-parseInt(_0x3d75cf(0x10c))/0xc*(parseInt(_0x3d75cf(0x100))/0xd);if(_0x4b2bea===_0xa3d9e9)break;else _0x5eac39['push'](_0x5eac39['shift']());}catch(_0x1c7617){_0x5eac39['push'](_0x5eac39['shift']());}}}(_0x4600,0xd30f1));import{Plugin as _0x53072a}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x500368}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x3fec37}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x53072a{static get[_0xfb616e(0x101)](){var _0x25ff49=_0xfb616e;return _0x25ff49(0x102);}static get[_0xfb616e(0x106)](){return[_0x500368,_0x3fec37];}static get[_0xfb616e(0x107)](){return!0x0;}static get[_0xfb616e(0x10b)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbc3c25=_0x1533;function _0x1533(_0x2d1d58,_0x239ee0){const _0x44cb16=_0x44cb();return _0x1533=function(_0x15338a,_0x554489){_0x15338a=_0x15338a-0x1d3;let _0xf4f1ae=_0x44cb16[_0x15338a];return _0xf4f1ae;},_0x1533(_0x2d1d58,_0x239ee0);}(function(_0x274942,_0x81531){const _0x370436=_0x1533,_0x5cb3ce=_0x274942();while(!![]){try{const _0xb87c5c=-parseInt(_0x370436(0x1e2))/0x1+parseInt(_0x370436(0x20a))/0x2+parseInt(_0x370436(0x21c))/0x3*(parseInt(_0x370436(0x1fe))/0x4)+-parseInt(_0x370436(0x20f))/0x5*(parseInt(_0x370436(0x206))/0x6)+-parseInt(_0x370436(0x1ff))/0x7+parseInt(_0x370436(0x200))/0x8+parseInt(_0x370436(0x1e5))/0x9;if(_0xb87c5c===_0x81531)break;else _0x5cb3ce['push'](_0x5cb3ce['shift']());}catch(_0x45ab2d){_0x5cb3ce['push'](_0x5cb3ce['shift']());}}}(_0x44cb,0xb4bbe));import{Plugin as _0x4534a7}from'ckeditor5/src/core.js';function _0x44cb(){const _0x3994be=['uploadcareLicenseKeyUsageLimit','withText','afterInit','4230498YmHWlz','isOfficialPlugin','Local','label','350972yDdYFK','init','type','isImageSelected','_getIntegrationKey','5sMwktd','_createButton','uploadcare.uploader.sourceList','text','Dropbox','commands','Facebook','featureNotAllowed','execute','_createDropdownButtons','icon','plugins','usageLimit','1789599UeNkqI','registerIntegration','UploadcareUI','pluginName','map','uploadcareLicenseKeyNotAllowed','url','_createMenuBarButtons','expired','_licenseKeyCheckInterval','domainLimit','uploadcareLicenseKeyExpired','destroy','isEnabled','evaluationLimit','get','Insert','push','tooltip','GPhotos','1321045GmXWzF','GDrive','config','24529077icSsie','Uploadcare','uploadcareLicenseKeyDomainLimit','isPremiumPlugin','URL','upload','reduce','_showLicenseError','invalid','assetManager','bind','has','forEach','licenseKey','entries','ImageInsertUI','uploadcareLicenseKeyEvaluationLimit','_createToolbarButton','uploadcareLicenseKeyValid','editor','uploadcare','OneDrive','uploadcareLicenseKeyInvalid','_normalizeConfigSourceList','Replace','4kHwGQB','7466543wEOnLG','2684728bNswSL','locale','shortText'];_0x44cb=function(){return _0x3994be;};return _0x44cb();}import{IconDropbox as _0x598d21,IconFacebook as _0x1d76d5,IconGoogleDrive as _0x2de966,IconGooglePhotos as _0x583634,IconUploadcareImageUpload as _0x38ba7b,IconUploadcareLink as _0x5b44d8,IconOneDrive as _0x33b9d8}from'ckeditor5/src/icons.js';import{ButtonView as _0x32a31d,MenuBarMenuListItemButtonView as _0x4d8455}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x325a6a}from'./uploadcareconfig.js';import{getTranslation as _0x148e6f}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 _0x4534a7{[_0xbc3c25(0x1f2)];[_0xbc3c25(0x1d7)];static get[_0xbc3c25(0x21f)](){const _0x79f9ec=_0xbc3c25;return _0x79f9ec(0x21e);}static get[_0xbc3c25(0x207)](){return!0x0;}static get[_0xbc3c25(0x1e8)](){return!0x0;}[_0xbc3c25(0x20b)](){const _0x2ba166=_0xbc3c25;this[_0x2ba166(0x1f2)]=this[_0x2ba166(0x1f8)][_0x2ba166(0x1e4)][_0x2ba166(0x1dd)](_0x2ba166(0x1f2));const _0x172891=this[_0x2ba166(0x1f8)];this[_0x2ba166(0x1d7)]=setInterval(()=>{const _0x391672=_0x2ba166;let _0x128238;for(const _0xe2e33b in _0x172891){const _0x36f45b=_0xe2e33b,_0x56ad87=_0x172891[_0x36f45b];if(_0x391672(0x1f7)==_0x56ad87||_0x391672(0x1fb)==_0x56ad87||_0x391672(0x1d9)==_0x56ad87||_0x391672(0x1e7)==_0x56ad87||_0x391672(0x1d3)==_0x56ad87||_0x391672(0x1f5)==_0x56ad87||_0x391672(0x203)==_0x56ad87){delete _0x172891[_0x36f45b],_0x128238=_0x56ad87,clearInterval(this[_0x391672(0x1d7)]),this[_0x391672(0x1d7)]=void 0x0;break;}}_0x391672(0x1fb)==_0x128238&&_0x172891[_0x391672(0x1ec)](_0x391672(0x1ed)),_0x391672(0x1d9)==_0x128238&&_0x172891[_0x391672(0x1ec)](_0x391672(0x1d6)),_0x391672(0x1e7)==_0x128238&&_0x172891[_0x391672(0x1ec)](_0x391672(0x1d8)),_0x391672(0x1d3)==_0x128238&&_0x172891[_0x391672(0x1ec)](_0x391672(0x216),_0x391672(0x1e6)),_0x391672(0x1f5)==_0x128238&&_0x172891[_0x391672(0x1ec)](_0x391672(0x1dc)),_0x391672(0x203)==_0x128238&&_0x172891[_0x391672(0x1ec)](_0x391672(0x21b));},0x3e8);}[_0xbc3c25(0x205)](){const _0x57194d=_0xbc3c25,{editor:_0x3f5a22}=this,_0x2693e8=_0x3f5a22[_0x57194d(0x214)][_0x57194d(0x1dd)](_0x57194d(0x1f9));if(!_0x2693e8)return;const _0x742537=this[_0x57194d(0x1fc)](_0x3f5a22[_0x57194d(0x1e4)][_0x57194d(0x1dd)](_0x57194d(0x211)))[_0x57194d(0x1eb)]((_0x42d326,_0x2815bd)=>{const _0x401526=_0x57194d,_0x111310=this[_0x401526(0x20e)](_0x2815bd[_0x401526(0x20c)]);return _0x42d326[_0x111310]||(_0x42d326[_0x111310]=[]),_0x42d326[_0x111310][_0x401526(0x1df)](_0x2815bd),_0x42d326;},{});_0x3f5a22[_0x57194d(0x21a)][_0x57194d(0x1f0)](_0x57194d(0x1f4))&&_0x3f5a22[_0x57194d(0x214)][_0x57194d(0x1dd)](_0x57194d(0x1f9))&&Object[_0x57194d(0x1f3)](_0x742537)[_0x57194d(0x1f1)](([_0x2236a7,_0x27cbe4])=>{const _0x17d237=_0x57194d;_0x3f5a22[_0x17d237(0x21a)][_0x17d237(0x1dd)](_0x17d237(0x1f4))[_0x17d237(0x21d)]({'name':_0x2236a7,'observable':()=>_0x2693e8,'buttonViewCreator':()=>this[_0x17d237(0x1f6)](_0x27cbe4),'formViewCreator':()=>this[_0x17d237(0x218)](_0x27cbe4),'menuBarButtonViewCreator':()=>this[_0x17d237(0x1d5)](_0x27cbe4),'override':_0x17d237(0x1ee)!==_0x2236a7});});}[_0xbc3c25(0x1da)](){const _0xd8fc08=_0xbc3c25;super[_0xd8fc08(0x1da)](),this[_0xd8fc08(0x1d7)]&&clearInterval(this[_0xd8fc08(0x1d7)]);}[_0xbc3c25(0x1fc)](_0x220b4a){const _0x367b9c=_0xbc3c25,{locale:_0x1dfb21}=this[_0x367b9c(0x1f8)];return _0x220b4a[_0x367b9c(0x220)](_0x521944=>{const _0x27bfe1=_0x367b9c,_0x58d527=_0x148e6f(_0x1dfb21,_0x521944,_0x27bfe1(0x1de));switch(_0x521944){case _0x325a6a[_0x27bfe1(0x208)]:return{'icon':_0x38ba7b,'type':_0x325a6a[_0x27bfe1(0x208)],..._0x58d527};case _0x325a6a[_0x27bfe1(0x1e9)]:return{'icon':_0x5b44d8,'type':_0x325a6a[_0x27bfe1(0x1e9)],..._0x58d527};case _0x325a6a[_0x27bfe1(0x213)]:return{'icon':_0x598d21,'type':_0x325a6a[_0x27bfe1(0x213)],..._0x58d527};case _0x325a6a[_0x27bfe1(0x215)]:return{'icon':_0x1d76d5,'type':_0x325a6a[_0x27bfe1(0x215)],..._0x58d527};case _0x325a6a[_0x27bfe1(0x1e3)]:return{'icon':_0x2de966,'type':_0x325a6a[_0x27bfe1(0x1e3)],..._0x58d527};case _0x325a6a[_0x27bfe1(0x1e1)]:return{'icon':_0x583634,'type':_0x325a6a[_0x27bfe1(0x1e1)],..._0x58d527};case _0x325a6a[_0x27bfe1(0x1fa)]:return{'icon':_0x33b9d8,'type':_0x325a6a[_0x27bfe1(0x1fa)],..._0x58d527};}});}[_0xbc3c25(0x20e)](_0x1fd1c7){const _0xbc99e3=_0xbc3c25;switch(_0x1fd1c7){case _0x325a6a[_0xbc99e3(0x208)]:return _0xbc99e3(0x1ea);case _0x325a6a[_0xbc99e3(0x1e9)]:return _0xbc99e3(0x1d4);default:return _0xbc99e3(0x1ee);}}[_0xbc3c25(0x210)](_0x2c4603,_0x2033bc){const _0x721b99=_0xbc3c25,_0x36daa2=this[_0x721b99(0x1f8)],_0x4e7dca=new _0x2c4603(_0x36daa2[_0x721b99(0x201)]),_0x244295=_0x36daa2[_0x721b99(0x214)][_0x721b99(0x1dd)](_0x721b99(0x1f9));return _0x4e7dca[_0x721b99(0x1ef)](_0x721b99(0x1db))['to'](_0x244295),_0x4e7dca['on'](_0x721b99(0x217),()=>{const _0x278f38=_0x721b99;_0x244295[_0x278f38(0x217)](_0x2033bc);}),_0x4e7dca;}[_0xbc3c25(0x1f6)](_0x52db92){const _0x1b85e0=_0xbc3c25,{locale:_0x1c3d2b}=this[_0x1b85e0(0x1f8)],_0x241eb9=this[_0x1b85e0(0x1f8)][_0x1b85e0(0x21a)][_0x1b85e0(0x1dd)](_0x1b85e0(0x1f4)),_0x1dcbe1=_0x52db92[0x0],_0x28c787=this[_0x1b85e0(0x210)](_0x32a31d,_0x1dcbe1[_0x1b85e0(0x20c)]);return _0x28c787[_0x1b85e0(0x219)]=_0x1dcbe1[_0x1b85e0(0x219)],_0x28c787[_0x1b85e0(0x1ef)](_0x1b85e0(0x209))['to'](_0x241eb9,_0x1b85e0(0x20d),_0x3fb71d=>_0x148e6f(_0x1c3d2b,_0x1dcbe1[_0x1b85e0(0x20c)],_0x3fb71d?_0x1b85e0(0x1fd):_0x1b85e0(0x1de))[_0x1b85e0(0x212)]),_0x28c787[_0x1b85e0(0x1e0)]=!0x0,_0x28c787;}[_0xbc3c25(0x218)](_0x4ba470){const _0x3b4a6a=_0xbc3c25,{locale:_0x4b64c1}=this[_0x3b4a6a(0x1f8)],_0x2ea803=this[_0x3b4a6a(0x1f8)][_0x3b4a6a(0x21a)][_0x3b4a6a(0x1dd)](_0x3b4a6a(0x1f4));return _0x4ba470[_0x3b4a6a(0x220)](_0x486234=>{const _0x31009a=_0x3b4a6a,_0x6fc2ba=this[_0x31009a(0x210)](_0x32a31d,_0x486234[_0x31009a(0x20c)]);return _0x6fc2ba[_0x31009a(0x204)]=!0x0,_0x6fc2ba[_0x31009a(0x219)]=_0x486234[_0x31009a(0x219)],_0x6fc2ba[_0x31009a(0x1ef)](_0x31009a(0x209))['to'](_0x2ea803,_0x31009a(0x20d),_0x5c4d8a=>_0x148e6f(_0x4b64c1,_0x486234[_0x31009a(0x20c)],_0x5c4d8a?_0x31009a(0x1fd):_0x31009a(0x1de))[_0x31009a(0x212)]),_0x6fc2ba;});}[_0xbc3c25(0x1d5)](_0x435752){const _0x9a23b1=_0xbc3c25;return _0x435752[_0x9a23b1(0x220)](_0x56fa81=>{const _0x405304=_0x9a23b1,_0x40d002=this[_0x405304(0x210)](_0x4d8455,_0x56fa81[_0x405304(0x20c)]);return _0x40d002[_0x405304(0x219)]=_0x56fa81[_0x405304(0x219)],_0x40d002[_0x405304(0x209)]=_0x56fa81[_0x405304(0x202)],_0x40d002;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x371561}from'ckeditor5/src/core.js';import{FileRepository as _0x592c9f}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x3c9b13}from'./uploadcareediting.js';import{UploadUtils as _0x3a9634}from'./utils/uploadutils.js';import{getImageUrls as _0x14ada6}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x371561{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x592c9f,_0x3c9b13];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x490eb4=this['editor'];if(!!!_0x490eb4['config']['get']('uploadcare'))return;_0x490eb4['plugins']['get'](_0x592c9f)['createUploadAdapter']=_0x1f201d=>new Adapter(_0x1f201d,_0x490eb4),_0x490eb4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3618d7,{imageElement:_0x5efb18,data:_0x2193da})=>{_0x490eb4['model']['change'](_0x29f386=>{_0x29f386['setAttribute']('uploadcareImageId',_0x2193da['uploadcareImageId'],_0x5efb18);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x20f6d5,_0x1bfa1b){this['loader']=_0x20f6d5,this['editor']=_0x1bfa1b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x53ade7=await this['loader']['file'];return _0x3a9634['upload']({'file':_0x53ade7,'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':_0x5a279a=>{_0x5a279a&&_0x5a279a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5a279a['value']);}})['then'](async _0xe3ad63=>{const {imageFallbackUrl:_0x209066,imageSources:_0x125aac}=_0x14ada6(_0xe3ad63['cdnUrl'],_0xe3ad63['imageInfo']['width']);return{'uploadcareImageId':_0xe3ad63['uuid'],'default':_0x209066,'sources':_0x125aac};})['catch'](()=>{const _0x2d106d=t('Cannot\x20upload\x20file:')+('\x20'+_0x53ade7['name']+'.');return Promise['reject'](_0x2d106d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x32c7be}from'../uploadcareconfig.js';export function getTranslation(_0x2dba86,_0x278010,_0x50e80b){const t=_0x2dba86['t'],_0x16fe90=_0x2dba86['t'];switch(_0x278010){case _0x32c7be['Local']:return{'text':_0x16fe90('Insert'===_0x50e80b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x16fe90('From\x20computer')};case _0x32c7be['URL']:return{'text':'Insert'===_0x50e80b?_0x16fe90('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x16fe90('Via\x20URL')};case _0x32c7be['Dropbox']:return{'text':t('Insert'===_0x50e80b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x32c7be['Facebook']:return{'text':t('Insert'===_0x50e80b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x32c7be['GDrive']:return{'text':t('Insert'===_0x50e80b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x32c7be['GPhotos']:return{'text':t('Insert'===_0x50e80b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x32c7be['OneDrive']:return{'text':t('Insert'===_0x50e80b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x278010;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4d3b3e=_0x47b0;(function(_0x2e1f20,_0x400e51){var _0x4e1ceb=_0x47b0,_0x447852=_0x2e1f20();while(!![]){try{var _0x3f11f0=parseInt(_0x4e1ceb(0x72))/0x1+parseInt(_0x4e1ceb(0x74))/0x2+parseInt(_0x4e1ceb(0x75))/0x3+-parseInt(_0x4e1ceb(0x70))/0x4*(-parseInt(_0x4e1ceb(0x6d))/0x5)+-parseInt(_0x4e1ceb(0x6a))/0x6*(-parseInt(_0x4e1ceb(0x67))/0x7)+parseInt(_0x4e1ceb(0x6e))/0x8+parseInt(_0x4e1ceb(0x77))/0x9*(-parseInt(_0x4e1ceb(0x6b))/0xa);if(_0x3f11f0===_0x400e51)break;else _0x447852['push'](_0x447852['shift']());}catch(_0x22415f){_0x447852['push'](_0x447852['shift']());}}}(_0x369e,0xa1db1));function _0x369e(){var _0x2846a1=['107191oGpqwq','focusTracker','div','270FYNvED','60iUgGfq','focusCycler','20PQzAvH','6410944QwHrwG','true','269740IHTJFv','fire','905426LaDWCc','createCollection','671192VlRaEe','1744272kmuGBS','forwardCycle','4379517QCUDug','bindTemplate','getFocusableElement'];_0x369e=function(){return _0x2846a1;};return _0x369e();}import{FocusTracker as _0x1d52a5}from'ckeditor5/src/utils.js';import{View as _0x36cec9,FocusCycler as _0x54cd60}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x47b0(_0x25ee20,_0x4c56d1){var _0x369ede=_0x369e();return _0x47b0=function(_0x47b08c,_0x1f4185){_0x47b08c=_0x47b08c-0x67;var _0x4b1235=_0x369ede[_0x47b08c];return _0x4b1235;},_0x47b0(_0x25ee20,_0x4c56d1);}export class DialogFocusManagerView extends _0x36cec9{[_0x4d3b3e(0x68)];[_0x4d3b3e(0x6c)];constructor(_0x3780d8){var _0x2d503b=_0x4d3b3e;super(_0x3780d8),this[_0x2d503b(0x68)]=new _0x1d52a5(),this[_0x2d503b(0x6c)]=new _0x54cd60({'focusables':this[_0x2d503b(0x73)](),'focusTracker':this[_0x2d503b(0x68)]});}[_0x4d3b3e(0x79)](){var _0x4b47c6=_0x4d3b3e;return{'tag':_0x4b47c6(0x69),'attributes':{'aria-hidden':_0x4b47c6(0x6f),'tabindex':'0'},'on':{'focus':this[_0x4b47c6(0x78)]['to'](()=>{var _0x2c3ed5=_0x4b47c6;this[_0x2c3ed5(0x6c)][_0x2c3ed5(0x71)](_0x2c3ed5(0x76));})}};}}
|