@ckeditor/ckeditor5-uploadcare 47.0.0-alpha.0 → 47.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4523(){const _0x358d56=['listenTo','ucContextId','for','add','destroy','once','afterInit','downcast','editor','7WcIFod','uc-upload-ctx-provider','uploadcare','requires','3545544IGbybY','3657020GhmjhT','get','editing','uploadcareImageId','\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','9855784hPrlwk','join','_initConfig','uploader-','uc-config','isRegistered','cleanupImage','body','323922PaxcHS','_configElement','model','uploadcare.uploader','data-uc-image-id','_initSchema','init','_ctxElement','document','input[uploadcare-file-input]','view','isOfficialPlugin','_initImageProcessingIndicator','getSelectedElement','extend','7912341LoCDfz','UploadcareEditing','config','execute','removeAttribute','ctxElement','true','imageInline','uploadcare.pubkey','imageBlock','upcast','remove','645825nOkEaO','replaceImageSource','fromCharCode','95xkvbPM','commands','iconHrefResolver','schema','closeMax','conversion','appendChild','uploadcareImageReplace','render','211594FBVIBk','pluginName','elementToAttribute','_initCtx','getAttribute','_initConversion','locale','PictureEditing','attributeToAttribute','isPremiumPlugin','insertImage','querySelector','map','#uc-icon-arrow-down','contentLanguage','configElement','href','selection'];_0x4523=function(){return _0x358d56;};return _0x4523();}function _0x56b6(_0x40649a,_0x3752a3){const _0x4523f7=_0x4523();return _0x56b6=function(_0x56b6d4,_0x54d423){_0x56b6d4=_0x56b6d4-0x15f;let _0x15f167=_0x4523f7[_0x56b6d4];return _0x15f167;},_0x56b6(_0x40649a,_0x3752a3);}const _0x324857=_0x56b6;(function(_0xce32a,_0x194399){const _0x44e70e=_0x56b6,_0x4b60bf=_0xce32a();while(!![]){try{const _0x215b84=-parseInt(_0x44e70e(0x19c))/0x1+parseInt(_0x44e70e(0x1a8))/0x2+parseInt(_0x44e70e(0x173))/0x3+parseInt(_0x44e70e(0x174))/0x4+parseInt(_0x44e70e(0x19f))/0x5*(-parseInt(_0x44e70e(0x181))/0x6)+-parseInt(_0x44e70e(0x16f))/0x7*(-parseInt(_0x44e70e(0x179))/0x8)+-parseInt(_0x44e70e(0x190))/0x9;if(_0x215b84===_0x194399)break;else _0x4b60bf['push'](_0x4b60bf['shift']());}catch(_0x47788f){_0x4b60bf['push'](_0x4b60bf['shift']());}}}(_0x4523,0xd79ca));import{Plugin as _0x403774}from'ckeditor5/src/core.js';import{Dialog as _0x2b63ae}from'ckeditor5/src/ui.js';import{createElement as _0x2d6d5e,global as _0x4ca7e8,uid as _0x387999}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5be94c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x21ae50}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5caf40}from'./utils/editingutils.js';export class UploadcareEditing extends _0x403774{[_0x324857(0x182)]=null;[_0x324857(0x188)]=null;static get[_0x324857(0x1a9)](){const _0xcec2bb=_0x324857;return _0xcec2bb(0x191);}static get[_0x324857(0x172)](){const _0x155f86=_0x324857;return[_0x155f86(0x1af),_0x21ae50,_0x2b63ae];}static get[_0x324857(0x18c)](){return!0x0;}static get[_0x324857(0x1b1)](){return!0x0;}[_0x324857(0x167)];get[_0x324857(0x163)](){const _0x36bcfb=_0x324857;return this[_0x36bcfb(0x182)];}get[_0x324857(0x195)](){const _0x116fb7=_0x324857;return this[_0x116fb7(0x188)];}constructor(_0x3ea5c3){const _0x2c0608=_0x324857;super(_0x3ea5c3),this[_0x2c0608(0x167)]=_0x387999();}[_0x324857(0x187)](){const _0x1ae9b5=_0x324857,_0x2723da=this[_0x1ae9b5(0x16e)];_0x2723da[_0x1ae9b5(0x1a0)][_0x1ae9b5(0x169)](_0x1ae9b5(0x171),new _0x5be94c(_0x2723da));}[_0x324857(0x16c)](){const _0x467540=_0x324857;this[_0x467540(0x186)](),this[_0x467540(0x1ad)](),this[_0x467540(0x17b)](),this[_0x467540(0x1ab)](),this[_0x467540(0x18d)](),this[_0x467540(0x166)](this[_0x467540(0x16e)],_0x467540(0x16a),()=>{const _0x37e235=_0x467540;this[_0x37e235(0x182)]&&(this[_0x37e235(0x182)][_0x37e235(0x19b)](),this[_0x37e235(0x182)]=null),this[_0x37e235(0x188)]&&(this[_0x37e235(0x188)][_0x37e235(0x19b)](),this[_0x37e235(0x188)]=null);const _0x39dd36=_0x4ca7e8[_0x37e235(0x189)][_0x37e235(0x15f)](_0x37e235(0x18a));_0x39dd36&&_0x39dd36[_0x37e235(0x19b)]();}),async function(_0x3e976d){const _0x40a1ec=_0x2c4204([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x464349=0x3d8d0df,_0x36688f=0x3dfa497^_0x464349,_0x328970=window[_0x2c4204([0x44,0x61,0x74,0x65])][_0x2c4204([0x6e,0x6f,0x77])](),_0x4793fe=_0x3e976d[_0x2c4204([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x294b35=new window[(_0x2c4204([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20e453=>{_0x4793fe[_0x2c4204([0x6f,0x6e,0x63,0x65])](_0x2c4204([0x72,0x65,0x61,0x64,0x79]),_0x20e453);}),_0x4cf052={[_0x2c4204([0x6b,0x74,0x79])]:_0x2c4204([0x45,0x43]),[_0x2c4204([0x75,0x73,0x65])]:_0x2c4204([0x73,0x69,0x67]),[_0x2c4204([0x63,0x72,0x76])]:_0x2c4204([0x50,0x2d,0x32,0x35,0x36]),[_0x2c4204([0x78])]:_0x2c4204([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]),[_0x2c4204([0x79])]:_0x2c4204([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]),[_0x2c4204([0x61,0x6c,0x67])]:_0x2c4204([0x45,0x53,0x32,0x35,0x36])},_0x2e0a8c=_0x4793fe[_0x2c4204([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c4204([0x67,0x65,0x74])](_0x2c4204([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34d22e(){let _0x432fc1,_0x8a01e6=null,_0x155462=null;try{if(_0x2e0a8c==_0x2c4204([0x47,0x50,0x4c]))return _0x2c4204([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x432fc1=_0x12b62e(),!_0x432fc1)return _0x2c4204([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x432fc1[_0x2c4204([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x155462=_0x1f6e1b(_0x432fc1[_0x2c4204([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x432fc1[_0x2c4204([0x6a,0x74,0x69])])),await _0x4fc637()?_0x59a4a0()?_0x5b27b2()?_0x2c4204([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x56b6de()?(_0x432fc1[_0x2c4204([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c4204([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x8a01e6=_0x17d50a(_0x2c4204([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x432fc1[_0x2c4204([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c4204([0x74,0x72,0x69,0x61,0x6c])&&(_0x8a01e6=_0x17d50a(_0x2c4204([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9b3946()):_0x2c4204([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c4204([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c4204([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c4204([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b27b2(){const _0x440f00=[_0x2c4204([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c4204([0x74,0x72,0x69,0x61,0x6c])][_0x2c4204([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x432fc1[_0x2c4204([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x328970/0x3e8:0xe10*_0x36688f;return _0x432fc1[_0x2c4204([0x65,0x78,0x70])]<_0x440f00;}function _0x59a4a0(){const _0x35d13e=_0x432fc1[_0x2c4204([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x35d13e&&(!!_0x35d13e[_0x2c4204([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c4204([0x2a]))||!!_0x35d13e[_0x2c4204([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c4204([0x55,0x50,0x4c,0x43])));}function _0x56b6de(){const _0x260f24=_0x56b6,_0xf5cc8a=_0x432fc1[_0x2c4204([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf5cc8a||0x0==_0xf5cc8a[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35e7d3}=new URL(window[_0x2c4204([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x260f24(0x164)]);if(_0xf5cc8a[_0x2c4204([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35e7d3))return!0x0;const _0x204db3=_0x35e7d3[_0x2c4204([0x73,0x70,0x6c,0x69,0x74])](_0x2c4204([0x2e]));return _0xf5cc8a[_0x2c4204([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50d438=>_0x50d438[_0x2c4204([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c4204([0x2a])))[_0x2c4204([0x6d,0x61,0x70])](_0x46587a=>_0x46587a[_0x2c4204([0x73,0x70,0x6c,0x69,0x74])](_0x2c4204([0x2e])))[_0x2c4204([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34b3fd=>_0x34b3fd[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x204db3[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c4204([0x6d,0x61,0x70])](_0x534787=>Array(_0x204db3[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x534787[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c4204([0x66,0x69,0x6c,0x6c])](_0x534787[0x0]===_0x2c4204([0x2a])?_0x2c4204([0x2a]):'')[_0x2c4204([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x534787))[_0x2c4204([0x73,0x6f,0x6d,0x65])](_0x9579fb=>_0x204db3[_0x2c4204([0x65,0x76,0x65,0x72,0x79])]((_0x3a8689,_0x187366)=>_0x9579fb[_0x187366]===_0x3a8689||_0x9579fb[_0x187366]===_0x2c4204([0x2a])));}function _0x9b3946(){return _0x8a01e6&&_0x155462?new window[(_0x2c4204([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27a277,_0x197554)=>{_0x8a01e6[_0x2c4204([0x74,0x68,0x65,0x6e])](_0x27a277,_0x197554),_0x155462[_0x2c4204([0x74,0x68,0x65,0x6e])](_0x47fab5=>{_0x47fab5!=_0x2c4204([0x56,0x61,0x6c,0x69,0x64])&&_0x27a277(_0x47fab5);},_0x197554);}):_0x8a01e6||_0x155462||_0x2c4204([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f6e1b(_0x27e8bc,_0x97ed25){return new window[(_0x2c4204([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x303cdc=>{if(_0x2aa7d1())return _0x303cdc(_0x2c4204([0x56,0x61,0x6c,0x69,0x64]));_0x511094(),_0x4793fe[_0x2c4204([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c4204([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x53dd83=!0x1;const _0xfb1f3e=_0x387999();function _0x5eb775(_0x38e49f){return!!_0x38e49f&&(typeof _0x38e49f===_0x2c4204([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38e49f===_0x2c4204([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38e49f[_0x2c4204([0x74,0x68,0x65,0x6e])]===_0x2c4204([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38e49f[_0x2c4204([0x63,0x61,0x74,0x63,0x68])]===_0x2c4204([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32f25f(_0x324699){_0x1670a2(_0x324699)[_0x2c4204([0x74,0x68,0x65,0x6e])](_0x33dc5c=>{if(!_0x33dc5c||_0x33dc5c[_0x2c4204([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c4204([0x6f,0x6b]))return _0x2c4204([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31492b(_0x292975(_0xfb1f3e+_0x97ed25))!=_0x33dc5c[_0x2c4204([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c4204([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c4204([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c4204([0x74,0x68,0x65,0x6e])](_0x44c618=>(_0x160c9f(),_0x44c618),()=>{const _0x7fc495=_0x190a19();return null==_0x7fc495?(_0x160c9f(),_0x2c4204([0x56,0x61,0x6c,0x69,0x64])):_0x2c4204(_0x328970-_0x7fc495>(0x27d454df^_0x464349)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c4204([0x74,0x68,0x65,0x6e])](_0x303cdc)[_0x2c4204([0x63,0x61,0x74,0x63,0x68])](()=>{_0x303cdc(_0x2c4204([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1727f5=0x3ee3e5f^_0x464349;function _0x160c9f(){const _0xb48253=_0x2c4204([0x6c,0x6c,0x63,0x74,0x2d])+_0x31492b(_0x292975(_0x27e8bc)),_0x55a5fb=_0x546b69(_0x31492b(window[_0x2c4204([0x4d,0x61,0x74,0x68])][_0x2c4204([0x63,0x65,0x69,0x6c])](_0x328970/_0x1727f5)));window[_0x2c4204([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c4204([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb48253,_0x55a5fb);}function _0x190a19(){const _0x3262ca=_0x2c4204([0x6c,0x6c,0x63,0x74,0x2d])+_0x31492b(_0x292975(_0x27e8bc)),_0x4b676f=window[_0x2c4204([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c4204([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3262ca);return _0x4b676f?window[_0x2c4204([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x546b69(_0x4b676f),0x10)*_0x1727f5:null;}function _0x1670a2(_0x4f1dd2){return new window[(_0x2c4204([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2fe2c7,_0x260435)=>{_0x4f1dd2[_0x2c4204([0x74,0x68,0x65,0x6e])](_0x2fe2c7,_0x260435),window[_0x2c4204([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x260435,0x3d9041f^_0x464349);});}}_0x4793fe[_0x2c4204([0x6f,0x6e])](_0x2c4204([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x555970,_0x149591)=>{if(_0x149591[0x0]!=_0x27e8bc)return _0x303cdc(_0x2c4204([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x149591[0x1]={..._0x149591[0x1],[_0x2c4204([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfb1f3e};},{[_0x2c4204([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c4204([0x68,0x69,0x67,0x68])}),_0x4793fe[_0x2c4204([0x6f,0x6e])](_0x2c4204([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e2594=>{_0x5eb775(_0x4e2594[_0x2c4204([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x53dd83=!0x0,_0x32f25f(_0x4e2594[_0x2c4204([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c4204([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c4204([0x6c,0x6f,0x77])}),_0x294b35[_0x2c4204([0x74,0x68,0x65,0x6e])](()=>{_0x53dd83||_0x303cdc(_0x2c4204([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2aa7d1(){return _0x4793fe[_0x2c4204([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c4204([0x76,0x69,0x65,0x77])][_0x2c4204([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c4204([0x61,0x75,0x74,0x6f]);}function _0x511094(){_0x4793fe[_0x2c4204([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c4204([0x76,0x69,0x65,0x77])][_0x2c4204([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c4204([0x61,0x75,0x74,0x6f]);}}function _0x17d50a(_0xacee1d){const _0xdf6092=[new window[(_0x2c4204([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c1982=>setTimeout(_0x5c1982,0x3d1ee13^_0x464349)),_0x294b35[_0x2c4204([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c4204([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a829e=>{let _0xcf3df6=0x0;_0x4793fe[_0x2c4204([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c4204([0x6f,0x6e])](_0x2c4204([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x14611b,_0x40866d)=>{_0x40866d[0x0][_0x2c4204([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xcf3df6++,_0xcf3df6==(0x3d8d127^_0x464349)&&(_0x3a829e(),_0x14611b[_0x2c4204([0x6f,0x66,0x66])]());});}))];return window[_0x2c4204([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c4204([0x72,0x61,0x63,0x65])](_0xdf6092)[_0x2c4204([0x74,0x68,0x65,0x6e])](()=>_0xacee1d);}async function _0x14e2c8(){await _0x294b35,_0x4793fe[_0x2c4204([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c4204([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x152a89,_0x4793fe[_0x2c4204([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c4204([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x152a89,_0x4793fe[_0x2c4204([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c4204([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5eacec(_0x4d0ad3){const _0x3aee87=_0x1ce609();_0x4793fe[_0x3aee87]=_0x2c4204([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d0ad3,_0x4d0ad3!=_0x2c4204([0x56,0x61,0x6c,0x69,0x64])&&_0x14e2c8();}function _0x1ce609(){const _0x352b5d=window[_0x2c4204([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c4204([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c4204([0x6e,0x6f,0x77])]())[_0x2c4204([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c4204([0x2e]),'');let _0x2f42de=_0x2c4204([0x52]);for(let _0x278968=0x0;_0x278968<_0x352b5d[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x278968+=0x2){let _0x2f5557=window[_0x2c4204([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x352b5d[_0x2c4204([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x278968,_0x278968+0x2));_0x2f5557>=_0x40a1ec[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f5557-=_0x40a1ec[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f42de+=_0x40a1ec[_0x2f5557];}return _0x2f42de;}function _0x12b62e(){const _0x2a3b1f=_0x2e0a8c[_0x2c4204([0x73,0x70,0x6c,0x69,0x74])](_0x2c4204([0x2e]));if(0x3!=_0x2a3b1f[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3412c3(_0x2a3b1f[0x1]);function _0x3412c3(_0x1121a0){const _0x53c84b=_0x3541f4(_0x1121a0);return _0x53c84b&&_0x2428e2()?_0x53c84b:null;function _0x2428e2(){const _0x15496d=_0x53c84b[_0x2c4204([0x6a,0x74,0x69])],_0xf93afc=window[_0x2c4204([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15496d[_0x2c4204([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15496d[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32ddf9={..._0x53c84b,[_0x2c4204([0x6a,0x74,0x69])]:_0x15496d[_0x2c4204([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15496d[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32ddf9[_0x2c4204([0x76,0x63])],_0x292975(_0x32ddf9)==_0xf93afc;}}}async function _0x4fc637(){let _0x53e6c9=!0x0;try{const _0x3113b8=_0x2e0a8c[_0x2c4204([0x73,0x70,0x6c,0x69,0x74])](_0x2c4204([0x2e])),[_0x6dc4e3,_0x170418,_0x20527f]=_0x3113b8;return _0x12dca4(_0x6dc4e3),await _0x31f55c(_0x6dc4e3,_0x170418,_0x20527f),_0x53e6c9;}catch{return!0x1;}function _0x12dca4(_0x4a1d10){const _0x3299b6=_0x3541f4(_0x4a1d10);_0x3299b6&&_0x3299b6[_0x2c4204([0x61,0x6c,0x67])]==_0x2c4204([0x45,0x53,0x32,0x35,0x36])||(_0x53e6c9=!0x1);}async function _0x31f55c(_0x1dd1f7,_0x23dbdd,_0xa3d952){const _0x586b05=window[_0x2c4204([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c4204([0x66,0x72,0x6f,0x6d])](_0x2080ff(_0xa3d952),_0x29c125=>_0x29c125[_0x2c4204([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x589775=new window[(_0x2c4204([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c4204([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1dd1f7+_0x2c4204([0x2e])+_0x23dbdd),_0x2a08a5=window[_0x2c4204([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c4204([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a08a5)return;const _0x36df1e=await _0x2a08a5[_0x2c4204([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c4204([0x6a,0x77,0x6b]),_0x4cf052,{[_0x2c4204([0x6e,0x61,0x6d,0x65])]:_0x2c4204([0x45,0x43,0x44,0x53,0x41]),[_0x2c4204([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c4204([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c4204([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a08a5[_0x2c4204([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c4204([0x6e,0x61,0x6d,0x65])]:_0x2c4204([0x45,0x43,0x44,0x53,0x41]),[_0x2c4204([0x68,0x61,0x73,0x68])]:{[_0x2c4204([0x6e,0x61,0x6d,0x65])]:_0x2c4204([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x36df1e,_0x586b05,_0x589775)||(_0x53e6c9=!0x1);}}function _0x3541f4(_0xb2a6ea){return _0xb2a6ea[_0x2c4204([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c4204([0x65,0x79]))?JSON[_0x2c4204([0x70,0x61,0x72,0x73,0x65])](_0x2080ff(_0xb2a6ea)):null;}function _0x2080ff(_0xbca883){return window[_0x2c4204([0x61,0x74,0x6f,0x62])](_0xbca883[_0x2c4204([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c4204([0x2b]))[_0x2c4204([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c4204([0x2f])));}function _0x292975(_0xd0f1f7){let _0x4ed17a=0x1505;function _0x5b5622(_0x63727a){for(let _0x42fd22=0x0;_0x42fd22<_0x63727a[_0x2c4204([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42fd22++){const _0x18ce58=_0x63727a[_0x2c4204([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42fd22);_0x4ed17a=(_0x4ed17a<<0x5)+_0x4ed17a+_0x18ce58,_0x4ed17a&=_0x4ed17a;}}function _0x1b6989(_0x28c369){Array[_0x2c4204([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28c369)?_0x28c369[_0x2c4204([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b6989):_0x28c369&&typeof _0x28c369==_0x2c4204([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c4204([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28c369)[_0x2c4204([0x73,0x6f,0x72,0x74])]()[_0x2c4204([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5d8724,_0x3129db])=>{_0x5b5622(_0x5d8724),_0x1b6989(_0x3129db);}):_0x5b5622(window[_0x2c4204([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28c369));}return _0x1b6989(_0xd0f1f7),_0x4ed17a>>>0x0;}function _0x31492b(_0x189ef){return _0x189ef[_0x2c4204([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c4204([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c4204([0x30]));}function _0x546b69(_0x2cad13){return _0x2cad13[_0x2c4204([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c4204([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c4204([0x6a,0x6f,0x69,0x6e])]('');}function _0x152a89(){}function _0x2c4204(_0x1a0d30){const _0x454a86=_0x56b6;return _0x1a0d30[_0x454a86(0x160)](_0x5220e6=>String[_0x454a86(0x19e)](_0x5220e6))[_0x454a86(0x17a)]('');}_0x5eacec(await _0x34d22e());}(this);}[_0x324857(0x186)](){const _0x5d1a26=_0x324857,_0x447796=this[_0x5d1a26(0x16e)][_0x5d1a26(0x183)][_0x5d1a26(0x1a2)];_0x447796[_0x5d1a26(0x17e)](_0x5d1a26(0x199))&&_0x447796[_0x5d1a26(0x18f)](_0x5d1a26(0x199),{'allowAttributes':[_0x5d1a26(0x177)]}),_0x447796[_0x5d1a26(0x17e)](_0x5d1a26(0x197))&&_0x447796[_0x5d1a26(0x18f)](_0x5d1a26(0x197),{'allowAttributes':[_0x5d1a26(0x177)]});}[_0x324857(0x1ad)](){const _0x35576c=_0x324857,_0x839c57=this[_0x35576c(0x16e)];_0x839c57[_0x35576c(0x1a4)][_0x35576c(0x168)](_0x35576c(0x16d))[_0x35576c(0x1b0)]({'model':_0x35576c(0x177),'view':_0x35576c(0x185)}),_0x839c57[_0x35576c(0x1a4)][_0x35576c(0x168)](_0x35576c(0x19a))[_0x35576c(0x1aa)]({'model':{'key':_0x35576c(0x177),'value':_0x284f77=>_0x284f77[_0x35576c(0x1ac)](_0x35576c(0x185))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2040f0=_0x839c57[_0x35576c(0x1a0)][_0x35576c(0x175)](_0x35576c(0x19d));_0x2040f0&&this[_0x35576c(0x166)](_0x2040f0,_0x35576c(0x17f),(_0x1808e9,[_0x17e4de,_0x53e281])=>{const _0x2f85f4=_0x35576c;_0x17e4de[_0x2f85f4(0x194)](_0x2f85f4(0x177),_0x53e281);});}[_0x324857(0x17b)](){const _0x413ab8=_0x324857,_0x5a094e=this[_0x413ab8(0x16e)][_0x413ab8(0x192)][_0x413ab8(0x175)](_0x413ab8(0x184))||{},_0x46508d=this[_0x413ab8(0x16e)][_0x413ab8(0x192)][_0x413ab8(0x175)](_0x413ab8(0x198))||'';this[_0x413ab8(0x182)]=_0x2d6d5e(_0x4ca7e8[_0x413ab8(0x189)],_0x413ab8(0x17d),{..._0x5a094e,'pubkey':_0x46508d,'ctx-name':_0x413ab8(0x17c)+this[_0x413ab8(0x167)],'sourceList':'','imgOnly':_0x413ab8(0x196),'removeCopyright':_0x413ab8(0x196),'localeName':this[_0x413ab8(0x16e)][_0x413ab8(0x1ae)][_0x413ab8(0x162)],'externalSourcesEmbedCss':_0x413ab8(0x178)}),this[_0x413ab8(0x182)][_0x413ab8(0x1a1)]=_0x459f05=>{const _0x204e96=_0x413ab8;if(_0x204e96(0x1a3)==_0x459f05)return _0x204e96(0x161);},_0x4ca7e8[_0x413ab8(0x189)][_0x413ab8(0x180)][_0x413ab8(0x1a5)](this[_0x413ab8(0x182)]);}[_0x324857(0x1ab)](){const _0x58d935=_0x324857;this[_0x58d935(0x188)]=_0x2d6d5e(_0x4ca7e8[_0x58d935(0x189)],_0x58d935(0x170),{'ctx-name':_0x58d935(0x17c)+this[_0x58d935(0x167)]}),_0x4ca7e8[_0x58d935(0x189)][_0x58d935(0x180)][_0x58d935(0x1a5)](this[_0x58d935(0x188)]);}[_0x324857(0x18d)](){const _0x9f97f8=_0x324857,_0x4c5ef6=this[_0x9f97f8(0x16e)][_0x9f97f8(0x1a0)][_0x9f97f8(0x175)](_0x9f97f8(0x1b2));_0x4c5ef6&&this[_0x9f97f8(0x166)](_0x4c5ef6,_0x9f97f8(0x193),()=>{const _0x3a73ee=_0x9f97f8,_0x9e1baa=this[_0x3a73ee(0x16e)][_0x3a73ee(0x183)][_0x3a73ee(0x189)][_0x3a73ee(0x165)][_0x3a73ee(0x18e)]();_0x9e1baa&&_0x9e1baa[_0x3a73ee(0x1ac)](_0x3a73ee(0x177))&&this[_0x3a73ee(0x16e)][_0x3a73ee(0x176)][_0x3a73ee(0x18b)][_0x3a73ee(0x16b)](_0x3a73ee(0x1a7),()=>{const _0x4ea64a=_0x3a73ee;_0x5caf40(this[_0x4ea64a(0x16e)],_0x9e1baa);});});const _0x2ad1c0=this[_0x9f97f8(0x16e)][_0x9f97f8(0x1a0)][_0x9f97f8(0x175)](_0x9f97f8(0x1a6));_0x2ad1c0&&this[_0x9f97f8(0x166)](_0x2ad1c0,_0x9f97f8(0x193),()=>{const _0x435bed=_0x9f97f8,_0xc31f71=this[_0x435bed(0x16e)][_0x435bed(0x183)][_0x435bed(0x189)][_0x435bed(0x165)][_0x435bed(0x18e)]();_0xc31f71&&_0xc31f71[_0x435bed(0x1ac)](_0x435bed(0x177))&&this[_0x435bed(0x16e)][_0x435bed(0x176)][_0x435bed(0x18b)][_0x435bed(0x16b)](_0x435bed(0x1a7),()=>{const _0x1b32ab=_0x435bed;_0x5caf40(this[_0x1b32ab(0x16e)],_0xc31f71);});});}}
|
|
23
|
+
const _0x3e0ad0=_0x307d;function _0x307d(_0x203ec8,_0x493272){const _0x19d0f8=_0x19d0();return _0x307d=function(_0x307d07,_0x3c12d7){_0x307d07=_0x307d07-0x70;let _0x8dec79=_0x19d0f8[_0x307d07];return _0x8dec79;},_0x307d(_0x203ec8,_0x493272);}(function(_0x256897,_0x1fbd18){const _0x4aaaaa=_0x307d,_0x2125fb=_0x256897();while(!![]){try{const _0x8e4415=-parseInt(_0x4aaaaa(0xbd))/0x1*(-parseInt(_0x4aaaaa(0x8b))/0x2)+-parseInt(_0x4aaaaa(0x7d))/0x3*(-parseInt(_0x4aaaaa(0x83))/0x4)+parseInt(_0x4aaaaa(0x88))/0x5*(-parseInt(_0x4aaaaa(0xc2))/0x6)+parseInt(_0x4aaaaa(0x9c))/0x7+-parseInt(_0x4aaaaa(0x72))/0x8*(-parseInt(_0x4aaaaa(0xac))/0x9)+-parseInt(_0x4aaaaa(0xb1))/0xa*(-parseInt(_0x4aaaaa(0x8c))/0xb)+-parseInt(_0x4aaaaa(0xbb))/0xc*(parseInt(_0x4aaaaa(0x84))/0xd);if(_0x8e4415===_0x1fbd18)break;else _0x2125fb['push'](_0x2125fb['shift']());}catch(_0x107cb3){_0x2125fb['push'](_0x2125fb['shift']());}}}(_0x19d0,0x1f192));import{Plugin as _0x2f8dc4}from'ckeditor5/src/core.js';import{Dialog as _0x417a29}from'ckeditor5/src/ui.js';import{createElement as _0x2fc8b3,global as _0x74d615,uid as _0x349396}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x340858}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4c199f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2be4e0}from'./utils/editingutils.js';function _0x19d0(){const _0x44f56f=['uploadcare.pubkey','selection','2429930uHArWP','destroy','locale','PictureEditing','editing','_initImageProcessingIndicator','execute','_configElement','downcast','model','2712EIhcNJ','document','1MlmWOv','ucContextId','_initConfig','uploadcare','remove','253842HMZfTy','join','replaceImageSource','fromCharCode','_initCtx','once','map','isRegistered','56uxQWgM','\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','closeMax','listenTo','data-uc-image-id','view','afterInit','elementToAttribute','config','removeAttribute','requires','9RgzAvG','pluginName','input[uploadcare-file-input]','schema','querySelector','insertImage','45956naDEMV','26728dISOMw','ctxElement','get','contentLanguage','20LdKMOh','#uc-icon-arrow-down','href','437618pxJrxp','11ZPnXkb','uploadcare.uploader','true','upcast','appendChild','isPremiumPlugin','getSelectedElement','UploadcareEditing','_initSchema','conversion','editor','uc-config','uploader-','uc-upload-ctx-provider','_initConversion','_ctxElement','1310512MDCjIM','body','add','uploadcareImageId','for','imageBlock','isOfficialPlugin','extend','configElement','commands','getAttribute','cleanupImage','uploadcareImageReplace','init','iconHrefResolver','imageInline','99999HfyYnQ','attributeToAttribute','render'];_0x19d0=function(){return _0x44f56f;};return _0x19d0();}export class UploadcareEditing extends _0x2f8dc4{[_0x3e0ad0(0xb8)]=null;[_0x3e0ad0(0x9b)]=null;static get[_0x3e0ad0(0x7e)](){const _0x44a609=_0x3e0ad0;return _0x44a609(0x93);}static get[_0x3e0ad0(0x7c)](){const _0x309751=_0x3e0ad0;return[_0x309751(0xb4),_0x4c199f,_0x417a29];}static get[_0x3e0ad0(0xa2)](){return!0x0;}static get[_0x3e0ad0(0x91)](){return!0x0;}[_0x3e0ad0(0xbe)];get[_0x3e0ad0(0xa4)](){const _0xbb5b3=_0x3e0ad0;return this[_0xbb5b3(0xb8)];}get[_0x3e0ad0(0x85)](){const _0x3ce748=_0x3e0ad0;return this[_0x3ce748(0x9b)];}constructor(_0xaa9a60){const _0x14fb79=_0x3e0ad0;super(_0xaa9a60),this[_0x14fb79(0xbe)]=_0x349396();}[_0x3e0ad0(0xa9)](){const _0x33b5c1=_0x3e0ad0,_0x57ceea=this[_0x33b5c1(0x96)];_0x57ceea[_0x33b5c1(0xa5)][_0x33b5c1(0x9e)](_0x33b5c1(0xc0),new _0x340858(_0x57ceea));}[_0x3e0ad0(0x78)](){const _0x4d0f9d=_0x3e0ad0;this[_0x4d0f9d(0x94)](),this[_0x4d0f9d(0x9a)](),this[_0x4d0f9d(0xbf)](),this[_0x4d0f9d(0xc6)](),this[_0x4d0f9d(0xb6)](),this[_0x4d0f9d(0x75)](this[_0x4d0f9d(0x96)],_0x4d0f9d(0xb2),()=>{const _0x90d8f7=_0x4d0f9d;this[_0x90d8f7(0xb8)]&&(this[_0x90d8f7(0xb8)][_0x90d8f7(0xc1)](),this[_0x90d8f7(0xb8)]=null),this[_0x90d8f7(0x9b)]&&(this[_0x90d8f7(0x9b)][_0x90d8f7(0xc1)](),this[_0x90d8f7(0x9b)]=null);const _0x30decb=_0x74d615[_0x90d8f7(0xbc)][_0x90d8f7(0x81)](_0x90d8f7(0x7f));_0x30decb&&_0x30decb[_0x90d8f7(0xc1)]();}),async function(_0xec8f93){const _0x1f875d=_0xdc5843([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x33673f=0x3d8d0df,_0x649687=0x3dfa4bf^_0x33673f,_0x4a1fa7=window[_0xdc5843([0x44,0x61,0x74,0x65])][_0xdc5843([0x6e,0x6f,0x77])](),_0x8ed630=_0xec8f93[_0xdc5843([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x179508=new window[(_0xdc5843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c4ade=>{_0x8ed630[_0xdc5843([0x6f,0x6e,0x63,0x65])](_0xdc5843([0x72,0x65,0x61,0x64,0x79]),_0x5c4ade);}),_0x386060={[_0xdc5843([0x6b,0x74,0x79])]:_0xdc5843([0x45,0x43]),[_0xdc5843([0x75,0x73,0x65])]:_0xdc5843([0x73,0x69,0x67]),[_0xdc5843([0x63,0x72,0x76])]:_0xdc5843([0x50,0x2d,0x32,0x35,0x36]),[_0xdc5843([0x78])]:_0xdc5843([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]),[_0xdc5843([0x79])]:_0xdc5843([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]),[_0xdc5843([0x61,0x6c,0x67])]:_0xdc5843([0x45,0x53,0x32,0x35,0x36])},_0x19b7bd=_0x8ed630[_0xdc5843([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xdc5843([0x67,0x65,0x74])](_0xdc5843([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4464e6(){let _0x143167,_0xcdd62e=null,_0x3cb17a=null;try{if(_0x19b7bd==_0xdc5843([0x47,0x50,0x4c]))return _0xdc5843([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x143167=_0x43f2ae(),!_0x143167)return _0xdc5843([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x143167[_0xdc5843([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3cb17a=_0x5279be(_0x143167[_0xdc5843([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x143167[_0xdc5843([0x6a,0x74,0x69])])),await _0x6ad50c()?_0x4ec82d()?_0x6412a7()?_0xdc5843([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x177453()?(_0x143167[_0xdc5843([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xdc5843([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xcdd62e=_0x41e280(_0xdc5843([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x143167[_0xdc5843([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xdc5843([0x74,0x72,0x69,0x61,0x6c])&&(_0xcdd62e=_0x41e280(_0xdc5843([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d9fad()):_0xdc5843([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xdc5843([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xdc5843([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xdc5843([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6412a7(){const _0xeb23b6=[_0xdc5843([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xdc5843([0x74,0x72,0x69,0x61,0x6c])][_0xdc5843([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x143167[_0xdc5843([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a1fa7/0x3e8:0xe10*_0x649687;return _0x143167[_0xdc5843([0x65,0x78,0x70])]<_0xeb23b6;}function _0x4ec82d(){const _0x39bce7=_0x143167[_0xdc5843([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39bce7&&(!!_0x39bce7[_0xdc5843([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdc5843([0x2a]))||!!_0x39bce7[_0xdc5843([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdc5843([0x55,0x50,0x4c,0x43])));}function _0x177453(){const _0x25ea9d=_0x307d,_0x525ed1=_0x143167[_0xdc5843([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x525ed1||0x0==_0x525ed1[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x43c051}=new URL(window[_0xdc5843([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x25ea9d(0x8a)]);if(_0x525ed1[_0xdc5843([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43c051))return!0x0;const _0x4de11c=_0x43c051[_0xdc5843([0x73,0x70,0x6c,0x69,0x74])](_0xdc5843([0x2e]));return _0x525ed1[_0xdc5843([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x782f16=>_0x782f16[_0xdc5843([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdc5843([0x2a])))[_0xdc5843([0x6d,0x61,0x70])](_0x13119d=>_0x13119d[_0xdc5843([0x73,0x70,0x6c,0x69,0x74])](_0xdc5843([0x2e])))[_0xdc5843([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x540be6=>_0x540be6[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4de11c[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xdc5843([0x6d,0x61,0x70])](_0x5dea3c=>Array(_0x4de11c[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5dea3c[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xdc5843([0x66,0x69,0x6c,0x6c])](_0x5dea3c[0x0]===_0xdc5843([0x2a])?_0xdc5843([0x2a]):'')[_0xdc5843([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5dea3c))[_0xdc5843([0x73,0x6f,0x6d,0x65])](_0x14d1ee=>_0x4de11c[_0xdc5843([0x65,0x76,0x65,0x72,0x79])]((_0x2f28af,_0x5110a4)=>_0x14d1ee[_0x5110a4]===_0x2f28af||_0x14d1ee[_0x5110a4]===_0xdc5843([0x2a])));}function _0x4d9fad(){return _0xcdd62e&&_0x3cb17a?new window[(_0xdc5843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22f504,_0x3e0673)=>{_0xcdd62e[_0xdc5843([0x74,0x68,0x65,0x6e])](_0x22f504,_0x3e0673),_0x3cb17a[_0xdc5843([0x74,0x68,0x65,0x6e])](_0x34d9d5=>{_0x34d9d5!=_0xdc5843([0x56,0x61,0x6c,0x69,0x64])&&_0x22f504(_0x34d9d5);},_0x3e0673);}):_0xcdd62e||_0x3cb17a||_0xdc5843([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5279be(_0x6c5868,_0x1eb488){return new window[(_0xdc5843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ca747=>{if(_0x49bf78())return _0x2ca747(_0xdc5843([0x56,0x61,0x6c,0x69,0x64]));_0x3b327d(),_0x8ed630[_0xdc5843([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xdc5843([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1066eb=!0x1;const _0x506770=_0x349396();function _0x58a25f(_0x36203b){return!!_0x36203b&&(typeof _0x36203b===_0xdc5843([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x36203b===_0xdc5843([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x36203b[_0xdc5843([0x74,0x68,0x65,0x6e])]===_0xdc5843([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x36203b[_0xdc5843([0x63,0x61,0x74,0x63,0x68])]===_0xdc5843([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x514437(_0x264ee8){_0x8da0c9(_0x264ee8)[_0xdc5843([0x74,0x68,0x65,0x6e])](_0x1063f8=>{if(!_0x1063f8||_0x1063f8[_0xdc5843([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xdc5843([0x6f,0x6b]))return _0xdc5843([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47cd0c(_0xd77dea(_0x506770+_0x1eb488))!=_0x1063f8[_0xdc5843([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xdc5843([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xdc5843([0x56,0x61,0x6c,0x69,0x64]);})[_0xdc5843([0x74,0x68,0x65,0x6e])](_0x30c9d4=>(_0x39476a(),_0x30c9d4),()=>{const _0xede5a6=_0x1460d3();return null==_0xede5a6?(_0x39476a(),_0xdc5843([0x56,0x61,0x6c,0x69,0x64])):_0xdc5843(_0x4a1fa7-_0xede5a6>(0x27d454df^_0x33673f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xdc5843([0x74,0x68,0x65,0x6e])](_0x2ca747)[_0xdc5843([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ca747(_0xdc5843([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x281b3c=0x3ee3e5f^_0x33673f;function _0x39476a(){const _0x5753e3=_0xdc5843([0x6c,0x6c,0x63,0x74,0x2d])+_0x47cd0c(_0xd77dea(_0x6c5868)),_0x1723eb=_0x46f9b7(_0x47cd0c(window[_0xdc5843([0x4d,0x61,0x74,0x68])][_0xdc5843([0x63,0x65,0x69,0x6c])](_0x4a1fa7/_0x281b3c)));window[_0xdc5843([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdc5843([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5753e3,_0x1723eb);}function _0x1460d3(){const _0x4f0858=_0xdc5843([0x6c,0x6c,0x63,0x74,0x2d])+_0x47cd0c(_0xd77dea(_0x6c5868)),_0x249ddb=window[_0xdc5843([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdc5843([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f0858);return _0x249ddb?window[_0xdc5843([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46f9b7(_0x249ddb),0x10)*_0x281b3c:null;}function _0x8da0c9(_0x238c65){return new window[(_0xdc5843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54dcda,_0x162f56)=>{_0x238c65[_0xdc5843([0x74,0x68,0x65,0x6e])](_0x54dcda,_0x162f56),window[_0xdc5843([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x162f56,0x3d9041f^_0x33673f);});}}_0x8ed630[_0xdc5843([0x6f,0x6e])](_0xdc5843([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x445cfe,_0x411c11)=>{if(_0x411c11[0x0]!=_0x6c5868)return _0x2ca747(_0xdc5843([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x411c11[0x1]={..._0x411c11[0x1],[_0xdc5843([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x506770};},{[_0xdc5843([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdc5843([0x68,0x69,0x67,0x68])}),_0x8ed630[_0xdc5843([0x6f,0x6e])](_0xdc5843([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2e4752=>{_0x58a25f(_0x2e4752[_0xdc5843([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1066eb=!0x0,_0x514437(_0x2e4752[_0xdc5843([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xdc5843([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdc5843([0x6c,0x6f,0x77])}),_0x179508[_0xdc5843([0x74,0x68,0x65,0x6e])](()=>{_0x1066eb||_0x2ca747(_0xdc5843([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49bf78(){return _0x8ed630[_0xdc5843([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdc5843([0x76,0x69,0x65,0x77])][_0xdc5843([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xdc5843([0x61,0x75,0x74,0x6f]);}function _0x3b327d(){_0x8ed630[_0xdc5843([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdc5843([0x76,0x69,0x65,0x77])][_0xdc5843([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xdc5843([0x61,0x75,0x74,0x6f]);}}function _0x41e280(_0x5a3f91){const _0x3dd9e9=[new window[(_0xdc5843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfec9e3=>setTimeout(_0xfec9e3,0x3d1ee13^_0x33673f)),_0x179508[_0xdc5843([0x74,0x68,0x65,0x6e])](()=>new window[(_0xdc5843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49954b=>{let _0x5957de=0x0;_0x8ed630[_0xdc5843([0x6d,0x6f,0x64,0x65,0x6c])][_0xdc5843([0x6f,0x6e])](_0xdc5843([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4625e0,_0x443203)=>{_0x443203[0x0][_0xdc5843([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5957de++,_0x5957de==(0x3d8d127^_0x33673f)&&(_0x49954b(),_0x4625e0[_0xdc5843([0x6f,0x66,0x66])]());});}))];return window[_0xdc5843([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xdc5843([0x72,0x61,0x63,0x65])](_0x3dd9e9)[_0xdc5843([0x74,0x68,0x65,0x6e])](()=>_0x5a3f91);}async function _0x595748(){await _0x179508,_0x8ed630[_0xdc5843([0x6d,0x6f,0x64,0x65,0x6c])][_0xdc5843([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b9b13,_0x8ed630[_0xdc5843([0x6d,0x6f,0x64,0x65,0x6c])][_0xdc5843([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b9b13,_0x8ed630[_0xdc5843([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xdc5843([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x99264(_0x8d8a9b){const _0x25a13f=_0x3e64d2();_0x8ed630[_0x25a13f]=_0xdc5843([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8d8a9b,_0x8d8a9b!=_0xdc5843([0x56,0x61,0x6c,0x69,0x64])&&_0x595748();}function _0x3e64d2(){const _0x3cca76=window[_0xdc5843([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xdc5843([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xdc5843([0x6e,0x6f,0x77])]())[_0xdc5843([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xdc5843([0x2e]),'');let _0x509ec8=_0xdc5843([0x52]);for(let _0x1ff0f4=0x0;_0x1ff0f4<_0x3cca76[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ff0f4+=0x2){let _0x29d7a9=window[_0xdc5843([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cca76[_0xdc5843([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ff0f4,_0x1ff0f4+0x2));_0x29d7a9>=_0x1f875d[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29d7a9-=_0x1f875d[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x509ec8+=_0x1f875d[_0x29d7a9];}return _0x509ec8;}function _0x43f2ae(){const _0x1d02b3=_0x19b7bd[_0xdc5843([0x73,0x70,0x6c,0x69,0x74])](_0xdc5843([0x2e]));if(0x3!=_0x1d02b3[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28768b(_0x1d02b3[0x1]);function _0x28768b(_0xb9afe0){const _0x137e5f=_0x42fe38(_0xb9afe0);return _0x137e5f&&_0x5e45c9()?_0x137e5f:null;function _0x5e45c9(){const _0x588048=_0x137e5f[_0xdc5843([0x6a,0x74,0x69])],_0x59412a=window[_0xdc5843([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x588048[_0xdc5843([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x588048[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c0e8d={..._0x137e5f,[_0xdc5843([0x6a,0x74,0x69])]:_0x588048[_0xdc5843([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x588048[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c0e8d[_0xdc5843([0x76,0x63])],_0xd77dea(_0x1c0e8d)==_0x59412a;}}}async function _0x6ad50c(){let _0x5d1888=!0x0;try{const _0x1bbe21=_0x19b7bd[_0xdc5843([0x73,0x70,0x6c,0x69,0x74])](_0xdc5843([0x2e])),[_0x95043f,_0x1fc64b,_0x4f2b6b]=_0x1bbe21;return _0x5a009c(_0x95043f),await _0x3b7899(_0x95043f,_0x1fc64b,_0x4f2b6b),_0x5d1888;}catch{return!0x1;}function _0x5a009c(_0x3fb23a){const _0x11c1d7=_0x42fe38(_0x3fb23a);_0x11c1d7&&_0x11c1d7[_0xdc5843([0x61,0x6c,0x67])]==_0xdc5843([0x45,0x53,0x32,0x35,0x36])||(_0x5d1888=!0x1);}async function _0x3b7899(_0x4b8b71,_0xadccca,_0x59d1ae){const _0x36f0cf=window[_0xdc5843([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xdc5843([0x66,0x72,0x6f,0x6d])](_0x50fc94(_0x59d1ae),_0x5f47b1=>_0x5f47b1[_0xdc5843([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x100a79=new window[(_0xdc5843([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xdc5843([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b8b71+_0xdc5843([0x2e])+_0xadccca),_0x5dc853=window[_0xdc5843([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xdc5843([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5dc853)return;const _0x5706b7=await _0x5dc853[_0xdc5843([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xdc5843([0x6a,0x77,0x6b]),_0x386060,{[_0xdc5843([0x6e,0x61,0x6d,0x65])]:_0xdc5843([0x45,0x43,0x44,0x53,0x41]),[_0xdc5843([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xdc5843([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xdc5843([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5dc853[_0xdc5843([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xdc5843([0x6e,0x61,0x6d,0x65])]:_0xdc5843([0x45,0x43,0x44,0x53,0x41]),[_0xdc5843([0x68,0x61,0x73,0x68])]:{[_0xdc5843([0x6e,0x61,0x6d,0x65])]:_0xdc5843([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5706b7,_0x36f0cf,_0x100a79)||(_0x5d1888=!0x1);}}function _0x42fe38(_0x46abad){return _0x46abad[_0xdc5843([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xdc5843([0x65,0x79]))?JSON[_0xdc5843([0x70,0x61,0x72,0x73,0x65])](_0x50fc94(_0x46abad)):null;}function _0x50fc94(_0x50e296){return window[_0xdc5843([0x61,0x74,0x6f,0x62])](_0x50e296[_0xdc5843([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xdc5843([0x2b]))[_0xdc5843([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xdc5843([0x2f])));}function _0xd77dea(_0x41fc55){let _0x5e91fc=0x1505;function _0x61b76a(_0x3a6d75){for(let _0x431bea=0x0;_0x431bea<_0x3a6d75[_0xdc5843([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x431bea++){const _0xf8c1a3=_0x3a6d75[_0xdc5843([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x431bea);_0x5e91fc=(_0x5e91fc<<0x5)+_0x5e91fc+_0xf8c1a3,_0x5e91fc&=_0x5e91fc;}}function _0x32d653(_0xa9b371){Array[_0xdc5843([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa9b371)?_0xa9b371[_0xdc5843([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32d653):_0xa9b371&&typeof _0xa9b371==_0xdc5843([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xdc5843([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa9b371)[_0xdc5843([0x73,0x6f,0x72,0x74])]()[_0xdc5843([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29bb8c,_0x3d197b])=>{_0x61b76a(_0x29bb8c),_0x32d653(_0x3d197b);}):_0x61b76a(window[_0xdc5843([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa9b371));}return _0x32d653(_0x41fc55),_0x5e91fc>>>0x0;}function _0x47cd0c(_0x2bf701){return _0x2bf701[_0xdc5843([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xdc5843([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xdc5843([0x30]));}function _0x46f9b7(_0x11244c){return _0x11244c[_0xdc5843([0x73,0x70,0x6c,0x69,0x74])]('')[_0xdc5843([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xdc5843([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b9b13(){}function _0xdc5843(_0x494517){const _0x1ea9b9=_0x307d;return _0x494517[_0x1ea9b9(0x70)](_0x1fe1d5=>String[_0x1ea9b9(0xc5)](_0x1fe1d5))[_0x1ea9b9(0xc3)]('');}_0x99264(await _0x4464e6());}(this);}[_0x3e0ad0(0x94)](){const _0x1e1a90=_0x3e0ad0,_0x4ad1a4=this[_0x1e1a90(0x96)][_0x1e1a90(0xba)][_0x1e1a90(0x80)];_0x4ad1a4[_0x1e1a90(0x71)](_0x1e1a90(0xa1))&&_0x4ad1a4[_0x1e1a90(0xa3)](_0x1e1a90(0xa1),{'allowAttributes':[_0x1e1a90(0x9f)]}),_0x4ad1a4[_0x1e1a90(0x71)](_0x1e1a90(0xab))&&_0x4ad1a4[_0x1e1a90(0xa3)](_0x1e1a90(0xab),{'allowAttributes':[_0x1e1a90(0x9f)]});}[_0x3e0ad0(0x9a)](){const _0x246e69=_0x3e0ad0,_0x3ffd40=this[_0x246e69(0x96)];_0x3ffd40[_0x246e69(0x95)][_0x246e69(0xa0)](_0x246e69(0xb9))[_0x246e69(0xad)]({'model':_0x246e69(0x9f),'view':_0x246e69(0x76)}),_0x3ffd40[_0x246e69(0x95)][_0x246e69(0xa0)](_0x246e69(0x8f))[_0x246e69(0x79)]({'model':{'key':_0x246e69(0x9f),'value':_0x174ee3=>_0x174ee3[_0x246e69(0xa6)](_0x246e69(0x76))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x320238=_0x3ffd40[_0x246e69(0xa5)][_0x246e69(0x86)](_0x246e69(0xc4));_0x320238&&this[_0x246e69(0x75)](_0x320238,_0x246e69(0xa7),(_0xf2c86a,[_0x6e66e,_0x1cef05])=>{const _0x3f8362=_0x246e69;_0x6e66e[_0x3f8362(0x7b)](_0x3f8362(0x9f),_0x1cef05);});}[_0x3e0ad0(0xbf)](){const _0x28e5c5=_0x3e0ad0,_0x843c38=this[_0x28e5c5(0x96)][_0x28e5c5(0x7a)][_0x28e5c5(0x86)](_0x28e5c5(0x8d))||{},_0x2263e9=this[_0x28e5c5(0x96)][_0x28e5c5(0x7a)][_0x28e5c5(0x86)](_0x28e5c5(0xaf))||'';this[_0x28e5c5(0xb8)]=_0x2fc8b3(_0x74d615[_0x28e5c5(0xbc)],_0x28e5c5(0x97),{..._0x843c38,'pubkey':_0x2263e9,'ctx-name':_0x28e5c5(0x98)+this[_0x28e5c5(0xbe)],'sourceList':'','imgOnly':_0x28e5c5(0x8e),'removeCopyright':_0x28e5c5(0x8e),'localeName':this[_0x28e5c5(0x96)][_0x28e5c5(0xb3)][_0x28e5c5(0x87)],'externalSourcesEmbedCss':_0x28e5c5(0x73)}),this[_0x28e5c5(0xb8)][_0x28e5c5(0xaa)]=_0x2ee8c5=>{const _0x3651f0=_0x28e5c5;if(_0x3651f0(0x74)==_0x2ee8c5)return _0x3651f0(0x89);},_0x74d615[_0x28e5c5(0xbc)][_0x28e5c5(0x9d)][_0x28e5c5(0x90)](this[_0x28e5c5(0xb8)]);}[_0x3e0ad0(0xc6)](){const _0x33975a=_0x3e0ad0;this[_0x33975a(0x9b)]=_0x2fc8b3(_0x74d615[_0x33975a(0xbc)],_0x33975a(0x99),{'ctx-name':_0x33975a(0x98)+this[_0x33975a(0xbe)]}),_0x74d615[_0x33975a(0xbc)][_0x33975a(0x9d)][_0x33975a(0x90)](this[_0x33975a(0x9b)]);}[_0x3e0ad0(0xb6)](){const _0x9c6520=_0x3e0ad0,_0x460c03=this[_0x9c6520(0x96)][_0x9c6520(0xa5)][_0x9c6520(0x86)](_0x9c6520(0x82));_0x460c03&&this[_0x9c6520(0x75)](_0x460c03,_0x9c6520(0xb7),()=>{const _0x2a5abe=_0x9c6520,_0x2155af=this[_0x2a5abe(0x96)][_0x2a5abe(0xba)][_0x2a5abe(0xbc)][_0x2a5abe(0xb0)][_0x2a5abe(0x92)]();_0x2155af&&_0x2155af[_0x2a5abe(0xa6)](_0x2a5abe(0x9f))&&this[_0x2a5abe(0x96)][_0x2a5abe(0xb5)][_0x2a5abe(0x77)][_0x2a5abe(0xc7)](_0x2a5abe(0xae),()=>{const _0x5973a9=_0x2a5abe;_0x2be4e0(this[_0x5973a9(0x96)],_0x2155af);});});const _0x47d9a4=this[_0x9c6520(0x96)][_0x9c6520(0xa5)][_0x9c6520(0x86)](_0x9c6520(0xa8));_0x47d9a4&&this[_0x9c6520(0x75)](_0x47d9a4,_0x9c6520(0xb7),()=>{const _0x27f984=_0x9c6520,_0x546633=this[_0x27f984(0x96)][_0x27f984(0xba)][_0x27f984(0xbc)][_0x27f984(0xb0)][_0x27f984(0x92)]();_0x546633&&_0x546633[_0x27f984(0xa6)](_0x27f984(0x9f))&&this[_0x27f984(0x96)][_0x27f984(0xb5)][_0x27f984(0x77)][_0x27f984(0xc7)](_0x27f984(0xae),()=>{const _0x3aaa49=_0x27f984;_0x2be4e0(this[_0x3aaa49(0x96)],_0x546633);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5600bf,ObservableMixin as _0x354091}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5d339b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x576657}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1f08b9}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xf480b1}from'../../utils/uploadutils.js';import{getImageUrls as _0x54689e,getImageDimension as _0x2305b7}from'../../utils/editingutils.js';import{isAncestor as _0x32597e}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x354091(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1a27ba,_0x9b1f11,_0x220176){super(),this['_editor']=_0x1a27ba,this['_dialog']=_0x9b1f11,this['_imageElement']=_0x220176,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 _0x4a44b2=this['_imageElement'],_0x8ecbb4=_0x4a44b2['getAttribute']('uploadcareImageId'),_0x2c106a=_0x4a44b2['getAttribute']('src');if(_0x8ecbb4)await this['_loadImageInfo'](_0x8ecbb4,_0x2c106a);else{if(this['_imageCache']['has'](_0x2c106a)){const _0x1b4af8=this['_imageCache']['get'](_0x2c106a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b4af8['url'],this['imageDimension']=_0x1b4af8['dimension'],this['imageId']=_0x1b4af8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x39091e}=this['_editor'],t=_0x39091e['t'],_0x5aa28b=new _0x1f08b9(_0x39091e,this['imageStatus'],this['_attributes']);_0x5aa28b['bind']('status')['to'](this,'imageStatus'),_0x5aa28b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5aa28b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5aa28b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5aa28b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x576657,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5aa28b,'position':_0x5d339b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5aa28b['focus']();},'onHide':()=>{_0x5aa28b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x54ea9d=>!_0x32597e(_0x54ea9d,_0x5aa28b['element'])}});}['_loadImageInfo'](_0x30f137,_0x95a126){return _0xf480b1['getInfo'](_0x30f137,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2c6e73=>{const {width:_0x506825,height:_0x3cc2a8}=_0x2c6e73['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x95a126,this['imageDimension']={'width':_0x506825,'height':_0x3cc2a8},this['imageId']=_0x30f137;})['catch'](_0x58404f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x58404f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x33d9ee,_0x373e41){return this['_getImageAsFile'](_0x33d9ee)['then'](_0x562634=>_0xf480b1['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':_0x373e41['signal'],'file':_0x562634,'onProgress':_0x218ff8=>{_0x218ff8&&_0x218ff8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x218ff8['value']));}}))['then'](_0x474bbc=>{const {width:_0x3d36fd,height:_0x2749f5}=_0x474bbc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x474bbc['cdnUrl'],this['imageDimension']={'width':_0x3d36fd,'height':_0x2749f5},this['imageId']=_0x474bbc['uuid'],this['imageUploadProgress']=null;const _0x3cfec1=_0x33d9ee['getAttribute']('src');this['_imageCache']['set'](_0x3cfec1,{'id':_0x474bbc['uuid'],'url':_0x474bbc['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xada698=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xada698['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x133075,_0x109b9c){_0x133075['on']('apply',(_0x48f1ce,_0x1ef25d)=>{this['_replaceImage'](_0x109b9c,_0x1ef25d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x133075['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x133075['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x520c91,_0x2ea21a,_0x2d135e){const _0x577e43=this['_editor'],{width:_0x410581,height:_0x22f356}=_0x2305b7(_0x2ea21a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3a7bc7,imageSources:_0x9f773d}=_0x54689e(_0x2ea21a,_0x410581);_0x577e43['model']['change'](_0xd0b1bd=>{if('$graveyard'===_0x520c91['root']['rootName']){_0x577e43['execute']('insertImage',{'imageType':_0x520c91['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x520c91['getAttributes']()),'uploadcareImageId':_0x2d135e,'src':_0x3a7bc7,'sources':_0x9f773d,'width':_0x410581,'height':_0x22f356}});const _0x17d010=_0x520c91['getChildren']();_0x520c91=_0x577e43['model']['document']['selection']['getSelectedElement']();for(const _0x28eefe of _0x17d010)_0xd0b1bd['append'](_0xd0b1bd['cloneElement'](_0x28eefe),_0x520c91);}else _0xd0b1bd['setSelection'](_0x520c91,'on'),_0x577e43['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x520c91['getAttributes']()),'uploadcareImageId':_0x2d135e,'src':_0x3a7bc7,'sources':_0x9f773d,'width':_0x410581,'height':_0x22f356},_0x520c91);_0xd0b1bd['setSelection'](_0x520c91,'on');});}async['_getImageAsFile'](_0x2daf7f){const _0x3ced6d=_0x5600bf['window'],_0x3600f1=_0x5600bf['document']['location']['href'],_0x1284d0=new _0x3ced6d['URL'](_0x2daf7f['getAttribute']('src'),_0x3600f1);if('data:'===_0x1284d0['protocol']){const _0x3df347=_0x1284d0['href']['split'](','),_0x3f86a0=_0x3df347[0x0]['match'](/:(.*?);/)[0x1],_0x2545d7=_0x3f86a0['split']('/')[0x1],_0x3ecf3e=_0x3ced6d['atob'](_0x3df347[_0x3df347['length']-0x1]);let _0x33828f=_0x3ecf3e['length'];const _0x4431f0=new _0x3ced6d['Uint8Array'](_0x33828f);for(;_0x33828f--;)_0x4431f0[_0x33828f]=_0x3ecf3e['charCodeAt'](_0x33828f);return new _0x3ced6d['File']([_0x4431f0],'image.'+_0x2545d7,{'type':_0x3f86a0});}const _0x28038b=_0x1284d0['href']['split']('/'),_0x1ddbe9=_0x28038b[_0x28038b['length']-0x1],_0x2eecbc=_0x1ddbe9['split']('.')[0x1];return _0x3ced6d['fetch'](_0x1284d0['href'])['then'](_0x24a5d0=>_0x24a5d0['clone']()['blob']())['then'](_0x3b24cc=>new _0x3ced6d['File']([_0x3b24cc],_0x1ddbe9,{'type':'image/'+_0x2eecbc}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2d5120,_0x3e1f97){const _0x3026b8=_0x1abf,_0x115686=_0x2d5120();while(!![]){try{const _0x1953b6=parseInt(_0x3026b8(0xc2))/0x1+-parseInt(_0x3026b8(0xc7))/0x2*(parseInt(_0x3026b8(0xb7))/0x3)+parseInt(_0x3026b8(0xb6))/0x4*(-parseInt(_0x3026b8(0xc3))/0x5)+parseInt(_0x3026b8(0xbb))/0x6+-parseInt(_0x3026b8(0xbf))/0x7+-parseInt(_0x3026b8(0xc5))/0x8*(-parseInt(_0x3026b8(0xc4))/0x9)+-parseInt(_0x3026b8(0xc8))/0xa*(-parseInt(_0x3026b8(0xba))/0xb);if(_0x1953b6===_0x3e1f97)break;else _0x115686['push'](_0x115686['shift']());}catch(_0x168104){_0x115686['push'](_0x115686['shift']());}}}(_0x562f,0xb933d));import{View as _0x35dba6}from'ckeditor5/src/ui.js';function _0x1abf(_0x995f89,_0x150af1){const _0x562f43=_0x562f();return _0x1abf=function(_0x1abfee,_0x34a75b){_0x1abfee=_0x1abfee-0xb6;let _0x1ded5f=_0x562f43[_0x1abfee];return _0x1ded5f;},_0x1abf(_0x995f89,_0x150af1);}export class UploadcareImageEditFormEditingView extends _0x35dba6{constructor(_0x6c14d9,_0xd7dd95){const _0x5d856b=_0x1abf;super(_0x6c14d9);const _0x4833e8=this[_0x5d856b(0xbc)];this[_0x5d856b(0xb8)](_0x5d856b(0xc6),''),this[_0x5d856b(0xbe)]({'tag':_0x5d856b(0xb9),'attributes':{..._0xd7dd95,'class':[_0x5d856b(0xc0),_0x5d856b(0xbd)],'ctx-name':_0x5d856b(0xc1),'cdn-url':_0x4833e8['to'](_0x5d856b(0xc6))}});}}function _0x562f(){const _0x5245e4=['7005889XDbEQo','476160SDQhSO','bindTemplate','ck-uploadcare-theme','setTemplate','2893457bYMlcW','uc-light','image-edit','549877vobiJA','380115yGVKOl','9UYMYyV','9295976HgPugH','imageSrc','204xnsCrR','10lVdEiY','20uTJhIG','25767EkavOR','set','uc-cloud-image-editor'];_0x562f=function(){return _0x5245e4;};return _0x562f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x47f1e}from'ckeditor5/src/icons.js';import{ButtonView as _0x3f61b0,IconView as _0x46d689,View as _0x1a2b04}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1a2b04{constructor(_0x306421){super(_0x306421);const t=_0x306421['t'];this['set']('errorType',null);const _0x399646=new _0x3f61b0(_0x306421);_0x399646['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x399646['withText']=!0x0,_0x399646['class']='ck-button-action',_0x399646['on']('execute',()=>{this['fire']('retry');}),_0x399646['bind']('isVisible')['to'](this,'errorType',_0x4df494=>'NotFound'!==_0x4df494);const _0x1f7422=new _0x46d689();_0x1f7422['content']=_0x47f1e,_0x1f7422['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x590030=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':[_0x1f7422,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x590030['to']('errorType',_0x21d281=>t('NotFound'!==_0x21d281?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x399646]},{'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 _0x3b3528,View as _0x2d64d0}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x2d64d0{constructor(_0x17559e){super(_0x17559e);const t=_0x17559e['t'],_0x2d1e4b=this['bindTemplate'],_0x46045e=new _0x3b3528();_0x46045e['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':[_0x46045e,{'text':_0x2d1e4b['to']('imageUploadProgress',_0x2adf94=>t('Loading\x20image...')+'\x20('+(_0x2adf94||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0xc689(){const _0x59731d=['once','6594875QwDhTd','fire','cancel','apply','status','_waitForImageEditorComponent','filter','target','ck-uploadcare-form','addMany','change:status','disconnect','_focusableView','uc-cloud-image-editor','length','toLowerCase','focus','_editingView','error','821600PqYNCh','retry','uploading','set','cdnUrl','_errorView','ready','ck-reset_all-excluded','202360khnfxS','clear','7753852GREAZd','114GZivkV','_addErrorViewListeners','detail','createCollection','observe','addedNodes','element','render','1419195yUYtTs','8lakGdK','nodeName','setTemplate','12986361flugLT','_setView','getFocusableElement','_addUploadcareImageEditorListeners','div','querySelector','addEventListener','_items','_loadingView','add','1699624hqEOkI'];_0xc689=function(){return _0x59731d;};return _0xc689();}const _0x59cc94=_0x2888;(function(_0x5f5d4c,_0x30d705){const _0xfea17a=_0x2888,_0x52b116=_0x5f5d4c();while(!![]){try{const _0x2566cd=-parseInt(_0xfea17a(0x1fb))/0x1+-parseInt(_0xfea17a(0x210))/0x2+-parseInt(_0xfea17a(0x223))/0x3+parseInt(_0xfea17a(0x21a))/0x4+-parseInt(_0xfea17a(0x218))/0x5*(parseInt(_0xfea17a(0x21b))/0x6)+parseInt(_0xfea17a(0x1fd))/0x7*(parseInt(_0xfea17a(0x224))/0x8)+parseInt(_0xfea17a(0x1f1))/0x9;if(_0x2566cd===_0x30d705)break;else _0x52b116['push'](_0x52b116['shift']());}catch(_0x3b9dd0){_0x52b116['push'](_0x52b116['shift']());}}}(_0xc689,0xed134));import{View as _0x4d0c40}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x38df26}from'./uploadcareimageeditformloadingview.js';function _0x2888(_0x21d9c8,_0x18ffe4){const _0xc6893f=_0xc689();return _0x2888=function(_0x288883,_0x2b46a2){_0x288883=_0x288883-0x1f1;let _0x5d5e04=_0xc6893f[_0x288883];return _0x5d5e04;},_0x2888(_0x21d9c8,_0x18ffe4);}import{UploadcareImageEditFormErrorView as _0x28aff9}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x456ac0}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2f4ba5}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2f4ba5{[_0x59cc94(0x1f8)];[_0x59cc94(0x1f9)];[_0x59cc94(0x215)];[_0x59cc94(0x20e)];[_0x59cc94(0x209)];constructor(_0x2a1745,_0x2f73a2,_0x3b4cc6){const _0x21f5cd=_0x59cc94;super(_0x2a1745),this[_0x21f5cd(0x1f8)]=this[_0x21f5cd(0x21e)](),this[_0x21f5cd(0x1f9)]=new _0x38df26(_0x2a1745),this[_0x21f5cd(0x215)]=new _0x28aff9(_0x2a1745),this[_0x21f5cd(0x20e)]=new _0x456ac0(_0x2a1745,_0x3b4cc6),this[_0x21f5cd(0x209)]=new _0x4d0c40(_0x2a1745),this[_0x21f5cd(0x209)][_0x21f5cd(0x226)](this[_0x21f5cd(0x1f3)]()),this[_0x21f5cd(0x213)](_0x21f5cd(0x201),_0x2f73a2),this[_0x21f5cd(0x226)]({'tag':_0x21f5cd(0x1f5),'attributes':{'class':['ck',_0x21f5cd(0x217),_0x21f5cd(0x205)],'tabindex':'-1'},'children':this[_0x21f5cd(0x1f8)]}),this[_0x21f5cd(0x1f2)](),this[_0x21f5cd(0x1fc)](_0x21f5cd(0x222),()=>{const _0x1c7179=_0x21f5cd;this[_0x1c7179(0x202)](this[_0x1c7179(0x221)],_0x1ed9e2=>{const _0x5797ba=_0x1c7179;this[_0x5797ba(0x1f4)](_0x1ed9e2);});}),this['on'](_0x21f5cd(0x207),()=>{const _0x3a0aad=_0x21f5cd;this[_0x3a0aad(0x1f2)]();}),this[_0x21f5cd(0x21c)]();}[_0x59cc94(0x20d)](){const _0x1e74a2=_0x59cc94;this[_0x1e74a2(0x221)][_0x1e74a2(0x20d)]();}[_0x59cc94(0x1f2)](){const _0x44ad05=_0x59cc94;switch(this[_0x44ad05(0x1f8)][_0x44ad05(0x219)](),this[_0x44ad05(0x201)]){case _0x44ad05(0x212):this[_0x44ad05(0x1f8)][_0x44ad05(0x1fa)](this[_0x44ad05(0x1f9)]);break;case _0x44ad05(0x20f):this[_0x44ad05(0x1f8)][_0x44ad05(0x1fa)](this[_0x44ad05(0x215)]);break;case _0x44ad05(0x216):this[_0x44ad05(0x1f8)][_0x44ad05(0x206)]([this[_0x44ad05(0x20e)],this[_0x44ad05(0x209)]]);}}[_0x59cc94(0x202)](_0x308f47,_0x387b68){const _0x510d11=_0x59cc94,_0x529030=_0x510d11(0x20a),_0x1c6148=_0x308f47[_0x510d11(0x1f6)](_0x529030);if(_0x1c6148)return _0x387b68(_0x1c6148);const _0xcf36e8=new MutationObserver(_0x269606=>{const _0x34feb3=_0x510d11,_0x1b83ca=_0x269606[_0x34feb3(0x203)](_0x27169f=>_0x27169f[_0x34feb3(0x204)]===_0x308f47&&_0x27169f[_0x34feb3(0x220)][_0x34feb3(0x20b)]>0x0&&_0x27169f[_0x34feb3(0x220)][0x0][_0x34feb3(0x225)][_0x34feb3(0x20c)]()===_0x529030);_0x1b83ca[_0x34feb3(0x20b)]&&(_0xcf36e8[_0x34feb3(0x208)](),_0x387b68(_0x1b83ca[0x0][_0x34feb3(0x220)][0x0]));});_0xcf36e8[_0x510d11(0x21f)](_0x308f47,{'childList':!0x0,'subtree':!0x0});}[_0x59cc94(0x1f4)](_0x25cb90){const _0xe6034c=_0x59cc94;_0x25cb90[_0xe6034c(0x1f7)](_0xe6034c(0x200),_0x448670=>{const _0x158e65=_0xe6034c;this[_0x158e65(0x1fe)](_0x158e65(0x200),{'imageSrc':_0x448670[_0x158e65(0x21d)][_0x158e65(0x214)]});}),_0x25cb90[_0xe6034c(0x1f7)](_0xe6034c(0x1ff),()=>{const _0x486903=_0xe6034c;this[_0x486903(0x1fe)](_0x486903(0x1ff));});}[_0x59cc94(0x21c)](){const _0x32c801=_0x59cc94;this[_0x32c801(0x215)]['on'](_0x32c801(0x211),()=>{const _0x4eed88=_0x32c801;this[_0x4eed88(0x1fe)](_0x4eed88(0x211));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc93f19=_0x117e;(function(_0x354b67,_0x29a8bb){const _0x4a5797=_0x117e,_0x4edc7e=_0x354b67();while(!![]){try{const _0x37fb77=parseInt(_0x4a5797(0x7e))/0x1+-parseInt(_0x4a5797(0x74))/0x2*(-parseInt(_0x4a5797(0x83))/0x3)+-parseInt(_0x4a5797(0x8d))/0x4+-parseInt(_0x4a5797(0x7a))/0x5+parseInt(_0x4a5797(0x75))/0x6*(parseInt(_0x4a5797(0x79))/0x7)+-parseInt(_0x4a5797(0x72))/0x8*(parseInt(_0x4a5797(0x7b))/0x9)+-parseInt(_0x4a5797(0x80))/0xa;if(_0x37fb77===_0x29a8bb)break;else _0x4edc7e['push'](_0x4edc7e['shift']());}catch(_0x182f4a){_0x4edc7e['push'](_0x4edc7e['shift']());}}}(_0x58c5,0x891e1));import{Command as _0x4e7874}from'ckeditor5/src/core.js';import{Dialog as _0xc457a9}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3eee62}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x48c8ec}from'../utils/editingutils.js';function _0x58c5(){const _0x7fb851=['599868GyEIlw','imageBlock','2990300mGoQYM','_isEditable','get','135odzShr','plugins','isEnabled','requires','getSelectedElement','unbind','uploadcare.allowExternalImagesEditing','isActive','imageInline','imageEditController','3148172HeJmTz','element','refresh','execute','document','49120NovcbP','model','42722qvPZvd','6TErKuL','selection','editor','bind','3709853urfgtq','1971330EALyUA','72shndOq','set','config'];_0x58c5=function(){return _0x7fb851;};return _0x58c5();}function _0x117e(_0x5231e4,_0x57f2b5){const _0x58c5e5=_0x58c5();return _0x117e=function(_0x117e12,_0x594486){_0x117e12=_0x117e12-0x70;let _0x2e2c00=_0x58c5e5[_0x117e12];return _0x2e2c00;},_0x117e(_0x5231e4,_0x57f2b5);}export class UploadcareImageEditCommand extends _0x4e7874{[_0xc93f19(0x8c)];static get[_0xc93f19(0x86)](){return[_0xc457a9];}[_0xc93f19(0x81)];constructor(_0x7d7c4c){const _0x24ebd=_0xc93f19;super(_0x7d7c4c),this[_0x24ebd(0x8c)]=void 0x0,this[_0x24ebd(0x81)]=_0x48c8ec(_0x7d7c4c[_0x24ebd(0x7d)][_0x24ebd(0x82)](_0x24ebd(0x89))||[]),this[_0x24ebd(0x7c)]({'isActive':!0x1});}[_0xc93f19(0x8f)](){const _0x2b224=_0xc93f19,_0x56678d=this[_0x2b224(0x77)][_0x2b224(0x73)][_0x2b224(0x71)][_0x2b224(0x76)][_0x2b224(0x87)]();this[_0x2b224(0x85)]=this[_0x2b224(0x81)](_0x56678d);}[_0xc93f19(0x70)](){const _0x48a554=_0xc93f19;this[_0x48a554(0x8c)]&&(this[_0x48a554(0x88)](_0x48a554(0x8a)),this[_0x48a554(0x8c)]=void 0x0);const _0x47b6b2=this[_0x48a554(0x77)][_0x48a554(0x73)][_0x48a554(0x71)][_0x48a554(0x76)][_0x48a554(0x87)]();_0x47b6b2&&(_0x47b6b2['is'](_0x48a554(0x8e),_0x48a554(0x7f))||_0x47b6b2['is'](_0x48a554(0x8e),_0x48a554(0x8b)))&&(this[_0x48a554(0x8c)]=new _0x3eee62(this[_0x48a554(0x77)],this[_0x48a554(0x77)][_0x48a554(0x84)][_0x48a554(0x82)](_0xc457a9),_0x47b6b2),this[_0x48a554(0x78)](_0x48a554(0x8a))['to'](this[_0x48a554(0x8c)],_0x48a554(0x8a)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fe3b1=_0x4ce5;function _0x59b0(){const _0x4c7587=['init','commands','4408244ilaYqo','35lRPDcs','uploadcareImageEdit','pluginName','6510594hVBdFH','UploadcareImageEditEditing','isOfficialPlugin','4894xyTbTI','uploadcareImageReplace','isPremiumPlugin','ImageUtils','ImageEditing','2420286yURpnh','requires','5252985uJcIFG','28262160ivHGUq','add','284lkitDQ','860312rCJgtt'];_0x59b0=function(){return _0x4c7587;};return _0x59b0();}function _0x4ce5(_0x17b251,_0x2b68d9){const _0x59b023=_0x59b0();return _0x4ce5=function(_0x4ce585,_0x4a53d2){_0x4ce585=_0x4ce585-0x8e;let _0x188ea1=_0x59b023[_0x4ce585];return _0x188ea1;},_0x4ce5(_0x17b251,_0x2b68d9);}(function(_0x43785c,_0x38dab2){const _0x54ccd7=_0x4ce5,_0x39f317=_0x43785c();while(!![]){try{const _0x288f51=-parseInt(_0x54ccd7(0x8e))/0x1*(parseInt(_0x54ccd7(0x98))/0x2)+parseInt(_0x54ccd7(0x93))/0x3+-parseInt(_0x54ccd7(0x9c))/0x4+-parseInt(_0x54ccd7(0x95))/0x5+-parseInt(_0x54ccd7(0xa0))/0x6+-parseInt(_0x54ccd7(0x9d))/0x7*(-parseInt(_0x54ccd7(0x99))/0x8)+parseInt(_0x54ccd7(0x96))/0x9;if(_0x288f51===_0x38dab2)break;else _0x39f317['push'](_0x39f317['shift']());}catch(_0x33153b){_0x39f317['push'](_0x39f317['shift']());}}}(_0x59b0,0x86c38));import{Plugin as _0x626ab5}from'ckeditor5/src/core.js';import{Notification as _0x50014e}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x56e159}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x36889a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x11f123}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x626ab5{static get[_0x1fe3b1(0x9f)](){const _0x4dff1b=_0x1fe3b1;return _0x4dff1b(0xa1);}static get[_0x1fe3b1(0x94)](){const _0x24e5fd=_0x1fe3b1;return[_0x11f123,_0x50014e,_0x24e5fd(0x91),_0x24e5fd(0x92)];}static get[_0x1fe3b1(0xa2)](){return!0x0;}static get[_0x1fe3b1(0x90)](){return!0x0;}[_0x1fe3b1(0x9a)](){const _0x2fbe2c=_0x1fe3b1,{editor:_0x33c510}=this;_0x33c510[_0x2fbe2c(0x9b)][_0x2fbe2c(0x97)](_0x2fbe2c(0x9e),new _0x56e159(_0x33c510)),_0x33c510[_0x2fbe2c(0x9b)][_0x2fbe2c(0x97)](_0x2fbe2c(0x8f),new _0x36889a(_0x33c510));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1899be}from'ckeditor5/src/core.js';import{ButtonView as _0x162c09}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5eed17}from'ckeditor5/src/icons.js';import{createElement as _0x1af44c}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 _0x1899be{['_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 _0x38565a=this['editor'];_0x38565a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x764bdd=>{const _0x1d8691=_0x38565a['commands']['get']('uploadcareImageEdit'),_0x59b24c=new _0x162c09(_0x764bdd),t=_0x764bdd['t'];return _0x59b24c['set']({'icon':_0x5eed17,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x59b24c['bind']('isEnabled')['to'](_0x1d8691),_0x59b24c['bind']('isOn')['to'](_0x1d8691,'isActive'),this['listenTo'](_0x59b24c,'execute',()=>{_0x38565a['execute']('uploadcareImageEdit'),_0x38565a['editing']['view']['focus']();}),_0x59b24c;}),this['_initConfig']();}['_initConfig'](){const _0x12872f=_0x1af44c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x12872f),this['listenTo'](this['editor'],'destroy',()=>{_0x12872f['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x27cc(_0x2e9c23,_0x3890d3){const _0x167915=_0x1679();return _0x27cc=function(_0x27ccaf,_0x2037ca){_0x27ccaf=_0x27ccaf-0x1e3;let _0x386a85=_0x167915[_0x27ccaf];return _0x386a85;},_0x27cc(_0x2e9c23,_0x3890d3);}const _0x305c19=_0x27cc;(function(_0x21c920,_0x1d719d){const _0x51d0bb=_0x27cc,_0x21cd23=_0x21c920();while(!![]){try{const _0x23e521=parseInt(_0x51d0bb(0x1ec))/0x1+parseInt(_0x51d0bb(0x1e7))/0x2*(-parseInt(_0x51d0bb(0x1eb))/0x3)+-parseInt(_0x51d0bb(0x1f5))/0x4*(parseInt(_0x51d0bb(0x1e6))/0x5)+parseInt(_0x51d0bb(0x1e3))/0x6+-parseInt(_0x51d0bb(0x1f1))/0x7+parseInt(_0x51d0bb(0x1ea))/0x8+-parseInt(_0x51d0bb(0x1f3))/0x9*(parseInt(_0x51d0bb(0x1fc))/0xa);if(_0x23e521===_0x1d719d)break;else _0x21cd23['push'](_0x21cd23['shift']());}catch(_0x8911dd){_0x21cd23['push'](_0x21cd23['shift']());}}}(_0x1679,0x6a9ae));function _0x1679(){const _0x25b1c4=['selection','model','element','document','imageInline','editor','1464850ebAgdB','2164380vpAtkM','isEnabled','execute','66335rkoAOa','58oYaMsS','refresh','getSelectedElement','6967824sssDGT','111FmpIAk','324184uijBwa','setAttributes','imageBlock','srcset','sizes','1961064mnwdGM','removeAttribute','36MCrGmf','change','76KjUqUZ'];_0x1679=function(){return _0x25b1c4;};return _0x1679();}import{Command as _0x95f163}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x95f163{[_0x305c19(0x1e8)](){const _0x30c07a=_0x305c19,_0x3de588=this[_0x30c07a(0x1fb)][_0x30c07a(0x1f7)][_0x30c07a(0x1f9)][_0x30c07a(0x1f6)][_0x30c07a(0x1e9)]();this[_0x30c07a(0x1e4)]=Boolean(_0x3de588&&(_0x3de588['is'](_0x30c07a(0x1f8),_0x30c07a(0x1ee))||_0x3de588['is'](_0x30c07a(0x1f8),_0x30c07a(0x1fa))));}[_0x305c19(0x1e5)](_0x4d95a0){const _0x2e5c2c=_0x305c19,_0x415c73=this[_0x2e5c2c(0x1fb)][_0x2e5c2c(0x1f7)][_0x2e5c2c(0x1f9)][_0x2e5c2c(0x1f6)][_0x2e5c2c(0x1e9)]();this[_0x2e5c2c(0x1fb)][_0x2e5c2c(0x1f7)][_0x2e5c2c(0x1f4)](_0x34c8bc=>{const _0x1f6aa2=_0x2e5c2c;_0x34c8bc[_0x1f6aa2(0x1ed)](_0x4d95a0,_0x415c73),_0x34c8bc[_0x1f6aa2(0x1f2)](_0x1f6aa2(0x1ef),_0x415c73),_0x34c8bc[_0x1f6aa2(0x1f2)](_0x1f6aa2(0x1f0),_0x415c73);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3329cd=_0x3944;function _0x3944(_0x62af35,_0x3def45){var _0x396a89=_0x396a();return _0x3944=function(_0x3944bc,_0xd25243){_0x3944bc=_0x3944bc-0x171;var _0x19f6fc=_0x396a89[_0x3944bc];return _0x19f6fc;},_0x3944(_0x62af35,_0x3def45);}(function(_0x56f999,_0x5c7574){var _0x37d84c=_0x3944,_0x1c5db4=_0x56f999();while(!![]){try{var _0xc6944d=parseInt(_0x37d84c(0x17e))/0x1+-parseInt(_0x37d84c(0x177))/0x2+-parseInt(_0x37d84c(0x17d))/0x3+parseInt(_0x37d84c(0x178))/0x4*(-parseInt(_0x37d84c(0x17c))/0x5)+-parseInt(_0x37d84c(0x175))/0x6+parseInt(_0x37d84c(0x17a))/0x7*(-parseInt(_0x37d84c(0x172))/0x8)+parseInt(_0x37d84c(0x174))/0x9;if(_0xc6944d===_0x5c7574)break;else _0x1c5db4['push'](_0x1c5db4['shift']());}catch(_0x233431){_0x1c5db4['push'](_0x1c5db4['shift']());}}}(_0x396a,0xbebd4));import{Plugin as _0x122a02}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x30dd2b}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x396a(){var _0x591c7c=['58756YniBkg','4laCWNS','pluginName','35nRkWsS','UploadcareImageEdit','7117465wLlFzs','3314547tJRREw','666893WnxyzS','isPremiumPlugin','456296VAmKUd','requires','37638216fJtRhW','7348464anxgLG','isOfficialPlugin'];_0x396a=function(){return _0x591c7c;};return _0x396a();}import{UploadcareImageEditUI as _0x56b923}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x122a02{static get[_0x3329cd(0x179)](){var _0x217db3=_0x3329cd;return _0x217db3(0x17b);}static get[_0x3329cd(0x173)](){return[_0x30dd2b,_0x56b923];}static get[_0x3329cd(0x176)](){return!0x0;}static get[_0x3329cd(0x171)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1705ce=_0x3906;(function(_0x11cc3e,_0x2572a6){const _0x1cfbf8=_0x3906,_0xa11868=_0x11cc3e();while(!![]){try{const _0x53078d=-parseInt(_0x1cfbf8(0x1e8))/0x1+parseInt(_0x1cfbf8(0x1c3))/0x2+-parseInt(_0x1cfbf8(0x1fa))/0x3*(-parseInt(_0x1cfbf8(0x1e7))/0x4)+parseInt(_0x1cfbf8(0x1e9))/0x5+-parseInt(_0x1cfbf8(0x1f9))/0x6*(-parseInt(_0x1cfbf8(0x1cd))/0x7)+parseInt(_0x1cfbf8(0x1f0))/0x8*(-parseInt(_0x1cfbf8(0x1f7))/0x9)+-parseInt(_0x1cfbf8(0x1ce))/0xa;if(_0x53078d===_0x2572a6)break;else _0xa11868['push'](_0xa11868['shift']());}catch(_0xc61f5f){_0xa11868['push'](_0xa11868['shift']());}}}(_0x15f6,0x63e04));import{Plugin as _0x3164c2}from'ckeditor5/src/core.js';import{IconDropbox as _0x85600,IconFacebook as _0x5df5b5,IconGoogleDrive as _0xdb17cb,IconGooglePhotos as _0x48e5fa,IconUploadcareImageUpload as _0x4c16e9,IconUploadcareLink as _0x4a557c,IconOneDrive as _0x3dcf85}from'ckeditor5/src/icons.js';import{ButtonView as _0x10b3fe,MenuBarMenuListItemButtonView as _0x222abe}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x4d7397}from'./uploadcareconfig.js';function _0x3906(_0x15c27e,_0x4a944b){const _0x15f600=_0x15f6();return _0x3906=function(_0x390614,_0x5e73c8){_0x390614=_0x390614-0x1b4;let _0x52fb22=_0x15f600[_0x390614];return _0x52fb22;},_0x3906(_0x15c27e,_0x4a944b);}import{getTranslation as _0x3bfb60}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 _0x3164c2{[_0x1705ce(0x1ed)];[_0x1705ce(0x1fe)];static get[_0x1705ce(0x1eb)](){const _0x249b95=_0x1705ce;return _0x249b95(0x1f1);}static get[_0x1705ce(0x1b4)](){return!0x0;}static get[_0x1705ce(0x1d4)](){return!0x0;}[_0x1705ce(0x1d7)](){const _0x294368=_0x1705ce;this[_0x294368(0x1ed)]=this[_0x294368(0x1c9)][_0x294368(0x1e5)][_0x294368(0x1bf)](_0x294368(0x1ed));const _0x30bef1=this[_0x294368(0x1c9)];this[_0x294368(0x1fe)]=setInterval(()=>{const _0x3e60bf=_0x294368;let _0x288120;for(const _0x40ccc6 in _0x30bef1){const _0x381a93=_0x40ccc6,_0x22e855=_0x30bef1[_0x381a93];if(_0x3e60bf(0x1db)==_0x22e855||_0x3e60bf(0x1bc)==_0x22e855||_0x3e60bf(0x1ca)==_0x22e855||_0x3e60bf(0x1b6)==_0x22e855||_0x3e60bf(0x1cf)==_0x22e855||_0x3e60bf(0x1f4)==_0x22e855||_0x3e60bf(0x1cb)==_0x22e855||_0x3e60bf(0x1f5)==_0x22e855){delete _0x30bef1[_0x381a93],_0x288120=_0x22e855,clearInterval(this[_0x3e60bf(0x1fe)]),this[_0x3e60bf(0x1fe)]=void 0x0;break;}}_0x3e60bf(0x1bc)==_0x288120&&_0x30bef1[_0x3e60bf(0x1d0)](_0x3e60bf(0x1c7)),_0x3e60bf(0x1ca)==_0x288120&&_0x30bef1[_0x3e60bf(0x1d0)](_0x3e60bf(0x1c4)),_0x3e60bf(0x1b6)==_0x288120&&_0x30bef1[_0x3e60bf(0x1d0)](_0x3e60bf(0x1dc)),_0x3e60bf(0x1cf)==_0x288120&&_0x30bef1[_0x3e60bf(0x1d0)](_0x3e60bf(0x1fb),_0x3e60bf(0x1d2)),_0x3e60bf(0x1f4)==_0x288120&&_0x30bef1[_0x3e60bf(0x1d0)](_0x3e60bf(0x1c5)),_0x3e60bf(0x1cb)==_0x288120&&_0x30bef1[_0x3e60bf(0x1d0)](_0x3e60bf(0x1d6)),_0x3e60bf(0x1f5)==_0x288120&&_0x30bef1[_0x3e60bf(0x1d0)](_0x3e60bf(0x1f3));},0x3e8);}[_0x1705ce(0x1f2)](){const _0x240886=_0x1705ce,{editor:_0xcf3318}=this,_0x25b158=_0xcf3318[_0x240886(0x202)][_0x240886(0x1bf)](_0x240886(0x1b9));if(!_0x25b158)return;const _0x28b2bf=this[_0x240886(0x1e4)](_0xcf3318[_0x240886(0x1e5)][_0x240886(0x1bf)](_0x240886(0x1f6)))[_0x240886(0x1c6)]((_0x1e7b19,_0x30d06d)=>{const _0x5982de=_0x240886,_0x4d8d7c=this[_0x5982de(0x1cc)](_0x30d06d[_0x5982de(0x1ff)]);return _0x1e7b19[_0x4d8d7c]||(_0x1e7b19[_0x4d8d7c]=[]),_0x1e7b19[_0x4d8d7c][_0x5982de(0x1c2)](_0x30d06d),_0x1e7b19;},{});_0xcf3318[_0x240886(0x1da)][_0x240886(0x1bb)](_0x240886(0x1d9))&&_0xcf3318[_0x240886(0x202)][_0x240886(0x1bf)](_0x240886(0x1b9))&&Object[_0x240886(0x1d5)](_0x28b2bf)[_0x240886(0x1ef)](([_0x11c952,_0x20e560])=>{const _0x2e82f0=_0x240886;_0xcf3318[_0x2e82f0(0x1da)][_0x2e82f0(0x1bf)](_0x2e82f0(0x1d9))[_0x2e82f0(0x1c0)]({'name':_0x11c952,'observable':()=>_0x25b158,'buttonViewCreator':()=>this[_0x2e82f0(0x1d8)](_0x20e560),'formViewCreator':()=>this[_0x2e82f0(0x1b5)](_0x20e560),'menuBarButtonViewCreator':()=>this[_0x2e82f0(0x1fd)](_0x20e560),'override':_0x2e82f0(0x1e2)!==_0x11c952});});}[_0x1705ce(0x1b7)](){const _0x286eba=_0x1705ce;super[_0x286eba(0x1b7)](),this[_0x286eba(0x1fe)]&&clearInterval(this[_0x286eba(0x1fe)]);}[_0x1705ce(0x1e4)](_0xb4471b){const _0x40a95b=_0x1705ce,{locale:_0x3a7342}=this[_0x40a95b(0x1c9)];return _0xb4471b[_0x40a95b(0x1e3)](_0x1bd4ae=>{const _0x362938=_0x40a95b,_0x202376=_0x3bfb60(_0x3a7342,_0x1bd4ae,_0x362938(0x1be));switch(_0x1bd4ae){case _0x4d7397[_0x362938(0x1d3)]:return{'icon':_0x4c16e9,'type':_0x4d7397[_0x362938(0x1d3)],..._0x202376};case _0x4d7397[_0x362938(0x1e0)]:return{'icon':_0x4a557c,'type':_0x4d7397[_0x362938(0x1e0)],..._0x202376};case _0x4d7397[_0x362938(0x1c8)]:return{'icon':_0x85600,'type':_0x4d7397[_0x362938(0x1c8)],..._0x202376};case _0x4d7397[_0x362938(0x1dd)]:return{'icon':_0x5df5b5,'type':_0x4d7397[_0x362938(0x1dd)],..._0x202376};case _0x4d7397[_0x362938(0x1d1)]:return{'icon':_0xdb17cb,'type':_0x4d7397[_0x362938(0x1d1)],..._0x202376};case _0x4d7397[_0x362938(0x1ba)]:return{'icon':_0x48e5fa,'type':_0x4d7397[_0x362938(0x1ba)],..._0x202376};case _0x4d7397[_0x362938(0x201)]:return{'icon':_0x3dcf85,'type':_0x4d7397[_0x362938(0x201)],..._0x202376};}});}[_0x1705ce(0x1cc)](_0x48d375){const _0x44f132=_0x1705ce;switch(_0x48d375){case _0x4d7397[_0x44f132(0x1d3)]:return _0x44f132(0x1e6);case _0x4d7397[_0x44f132(0x1e0)]:return _0x44f132(0x1fc);default:return _0x44f132(0x1e2);}}[_0x1705ce(0x1e1)](_0x312171,_0x29afee){const _0x1b7193=_0x1705ce,_0x331a83=this[_0x1b7193(0x1c9)],_0x1914b8=new _0x312171(_0x331a83[_0x1b7193(0x1b8)]),_0x592ed0=_0x331a83[_0x1b7193(0x202)][_0x1b7193(0x1bf)](_0x1b7193(0x1b9));return _0x1914b8[_0x1b7193(0x1ee)](_0x1b7193(0x204))['to'](_0x592ed0),_0x1914b8['on'](_0x1b7193(0x200),()=>{const _0x251d85=_0x1b7193;_0x592ed0[_0x251d85(0x200)](_0x29afee);}),_0x1914b8;}[_0x1705ce(0x1d8)](_0x4ea502){const _0x3da294=_0x1705ce,{locale:_0x283cff}=this[_0x3da294(0x1c9)],_0x21a4b6=this[_0x3da294(0x1c9)][_0x3da294(0x1da)][_0x3da294(0x1bf)](_0x3da294(0x1d9)),_0x11588d=_0x4ea502[0x0],_0x540e2a=this[_0x3da294(0x1e1)](_0x10b3fe,_0x11588d[_0x3da294(0x1ff)]);return _0x540e2a[_0x3da294(0x1de)]=_0x11588d[_0x3da294(0x1de)],_0x540e2a[_0x3da294(0x1ee)](_0x3da294(0x1ea))['to'](_0x21a4b6,_0x3da294(0x1bd),_0x305b15=>_0x3bfb60(_0x283cff,_0x11588d[_0x3da294(0x1ff)],_0x305b15?_0x3da294(0x1f8):_0x3da294(0x1be))[_0x3da294(0x1c1)]),_0x540e2a[_0x3da294(0x1df)]=!0x0,_0x540e2a;}[_0x1705ce(0x1b5)](_0x240b47){const _0x4f3861=_0x1705ce,{locale:_0xb8023a}=this[_0x4f3861(0x1c9)],_0x21963d=this[_0x4f3861(0x1c9)][_0x4f3861(0x1da)][_0x4f3861(0x1bf)](_0x4f3861(0x1d9));return _0x240b47[_0x4f3861(0x1e3)](_0x51b447=>{const _0x1c78b3=_0x4f3861,_0x90f583=this[_0x1c78b3(0x1e1)](_0x10b3fe,_0x51b447[_0x1c78b3(0x1ff)]);return _0x90f583[_0x1c78b3(0x203)]=!0x0,_0x90f583[_0x1c78b3(0x1de)]=_0x51b447[_0x1c78b3(0x1de)],_0x90f583[_0x1c78b3(0x1ee)](_0x1c78b3(0x1ea))['to'](_0x21963d,_0x1c78b3(0x1bd),_0x51b92f=>_0x3bfb60(_0xb8023a,_0x51b447[_0x1c78b3(0x1ff)],_0x51b92f?_0x1c78b3(0x1f8):_0x1c78b3(0x1be))[_0x1c78b3(0x1c1)]),_0x90f583;});}[_0x1705ce(0x1fd)](_0x2d9897){const _0x19f338=_0x1705ce;return _0x2d9897[_0x19f338(0x1e3)](_0x25de86=>{const _0x3ed153=_0x19f338,_0x54b94a=this[_0x3ed153(0x1e1)](_0x222abe,_0x25de86[_0x3ed153(0x1ff)]);return _0x54b94a[_0x3ed153(0x1de)]=_0x25de86[_0x3ed153(0x1de)],_0x54b94a[_0x3ed153(0x1ea)]=_0x25de86[_0x3ed153(0x1ec)],_0x54b94a;});}}function _0x15f6(){const _0x584fa7=['Uploadcare','Local','isPremiumPlugin','entries','trialLimit','init','_createToolbarButton','ImageInsertUI','plugins','uploadcareLicenseKeyValid','domainLimit','Facebook','icon','tooltip','URL','_createButton','assetManager','map','_normalizeConfigSourceList','config','upload','4enRmUU','783899eeBcAv','3678835PinaCc','label','pluginName','shortText','licenseKey','bind','forEach','32ReYqSt','UploadcareUI','afterInit','usageLimit','uploadcareLicenseKeyEvaluationLimit','uploadcareLicenseKeyUsageLimit','uploadcare.uploader.sourceList','574011wuFvop','Replace','60222VJUBES','1301985JMAkKo','featureNotAllowed','url','_createMenuBarButtons','_licenseKeyCheckInterval','type','execute','OneDrive','commands','withText','isEnabled','isOfficialPlugin','_createDropdownButtons','uploadcareLicenseKeyDomainLimit','destroy','locale','uploadcare','GPhotos','has','uploadcareLicenseKeyInvalid','isImageSelected','Insert','get','registerIntegration','text','push','1523660mUFwpH','expired','evaluationLimit','reduce','invalid','Dropbox','editor','uploadcareLicenseKeyExpired','uploadcareLicenseKeyTrialLimit','_getIntegrationKey','126APYTaL','6641510TBuVuE','uploadcareLicenseKeyNotAllowed','_showLicenseError','GDrive'];_0x15f6=function(){return _0x584fa7;};return _0x15f6();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x52a594}from'ckeditor5/src/core.js';import{FileRepository as _0x2c994}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x5b6017}from'./uploadcareediting.js';import{UploadUtils as _0x55f4e7}from'./utils/uploadutils.js';import{getImageUrls as _0x333414}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x52a594{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2c994,_0x5b6017];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xe8dbc9=this['editor'];if(!!!_0xe8dbc9['config']['get']('uploadcare'))return;_0xe8dbc9['plugins']['get'](_0x2c994)['createUploadAdapter']=_0x3f5691=>new k(_0x3f5691,_0xe8dbc9),_0xe8dbc9['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1c523b,{imageElement:_0x270ed0,data:_0x2db8bc})=>{_0xe8dbc9['model']['change'](_0x28721e=>{_0x28721e['setAttribute']('uploadcareImageId',_0x2db8bc['uploadcareImageId'],_0x270ed0);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x32e285,_0x1c1c9a){this['loader']=_0x32e285,this['editor']=_0x1c1c9a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xd5675b=await this['loader']['file'];return _0x55f4e7['upload']({'file':_0xd5675b,'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':_0x443d16=>{_0x443d16&&_0x443d16['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x443d16['value']);}})['then'](async _0x444bd2=>{const {imageFallbackUrl:_0x35d06e,imageSources:_0x519e71}=_0x333414(_0x444bd2['cdnUrl'],_0x444bd2['imageInfo']['width']);return{'uploadcareImageId':_0x444bd2['uuid'],'default':_0x35d06e,'sources':_0x519e71};})['catch'](()=>{const _0xac4677=t('Cannot\x20upload\x20file:')+('\x20'+_0xd5675b['name']+'.');return Promise['reject'](_0xac4677);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xacc9c4}from'../uploadcareconfig.js';export function getTranslation(_0x4dd557,_0x5ab2f0,_0x5b459){const t=_0x4dd557['t'],_0x4fdf5c=_0x4dd557['t'];switch(_0x5ab2f0){case _0xacc9c4['Local']:return{'text':_0x4fdf5c('Insert'===_0x5b459?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4fdf5c('From\x20computer')};case _0xacc9c4['URL']:return{'text':'Insert'===_0x5b459?_0x4fdf5c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4fdf5c('Via\x20URL')};case _0xacc9c4['Dropbox']:return{'text':t('Insert'===_0x5b459?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xacc9c4['Facebook']:return{'text':t('Insert'===_0x5b459?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xacc9c4['GDrive']:return{'text':t('Insert'===_0x5b459?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xacc9c4['GPhotos']:return{'text':t('Insert'===_0x5b459?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xacc9c4['OneDrive']:return{'text':t('Insert'===_0x5b459?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5ab2f0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3522(){var _0x4fd3f3=['focusTracker','15210jYExNN','3224ZbwyRr','bindTemplate','true','focusCycler','forwardCycle','28845820YCbPWe','18648iMpURU','2947eYgclq','303EVeCoN','3250012MWjOSA','createCollection','3757240BTQses','getFocusableElement','4140JGLhtE','div','fire','378665TwCgzp'];_0x3522=function(){return _0x4fd3f3;};return _0x3522();}var _0x25b508=_0x1e47;function _0x1e47(_0x2c6ee9,_0x4508e0){var _0x35220d=_0x3522();return _0x1e47=function(_0x1e4710,_0x58bfdd){_0x1e4710=_0x1e4710-0xfb;var _0x31d713=_0x35220d[_0x1e4710];return _0x31d713;},_0x1e47(_0x2c6ee9,_0x4508e0);}(function(_0x2b8931,_0x41c20c){var _0x304f1f=_0x1e47,_0x4af85b=_0x2b8931();while(!![]){try{var _0x43f63b=-parseInt(_0x304f1f(0x103))/0x1+-parseInt(_0x304f1f(0x10c))/0x2*(parseInt(_0x304f1f(0xfb))/0x3)+parseInt(_0x304f1f(0xfc))/0x4+-parseInt(_0x304f1f(0xfe))/0x5+parseInt(_0x304f1f(0x100))/0x6*(-parseInt(_0x304f1f(0x10d))/0x7)+parseInt(_0x304f1f(0x106))/0x8*(-parseInt(_0x304f1f(0x105))/0x9)+parseInt(_0x304f1f(0x10b))/0xa;if(_0x43f63b===_0x41c20c)break;else _0x4af85b['push'](_0x4af85b['shift']());}catch(_0x4af0ac){_0x4af85b['push'](_0x4af85b['shift']());}}}(_0x3522,0x9f978));import{FocusTracker as _0x535d1a}from'ckeditor5/src/utils.js';import{View as _0x33c276,FocusCycler as _0x34700b}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x33c276{[_0x25b508(0x104)];[_0x25b508(0x109)];constructor(_0x1c61b1){var _0x5986c8=_0x25b508;super(_0x1c61b1),this[_0x5986c8(0x104)]=new _0x535d1a(),this[_0x5986c8(0x109)]=new _0x34700b({'focusables':this[_0x5986c8(0xfd)](),'focusTracker':this[_0x5986c8(0x104)]});}[_0x25b508(0xff)](){var _0x4b9dda=_0x25b508;return{'tag':_0x4b9dda(0x101),'attributes':{'aria-hidden':_0x4b9dda(0x108),'tabindex':'0'},'on':{'focus':this[_0x4b9dda(0x107)]['to'](()=>{var _0x59c1e1=_0x4b9dda;this[_0x59c1e1(0x109)][_0x59c1e1(0x102)](_0x59c1e1(0x10a));})}};}}
|