@ckeditor/ckeditor5-uploadcare 47.0.0-alpha.1 → 47.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _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);});});}}
|
|
23
|
+
const _0x277779=_0x417d;(function(_0x427db9,_0x52a03a){const _0x5d7679=_0x417d,_0x5618b9=_0x427db9();while(!![]){try{const _0x435f64=parseInt(_0x5d7679(0x20a))/0x1*(parseInt(_0x5d7679(0x1c3))/0x2)+-parseInt(_0x5d7679(0x1f5))/0x3+parseInt(_0x5d7679(0x1b7))/0x4*(-parseInt(_0x5d7679(0x20b))/0x5)+-parseInt(_0x5d7679(0x1c8))/0x6+-parseInt(_0x5d7679(0x1f6))/0x7*(-parseInt(_0x5d7679(0x1c5))/0x8)+-parseInt(_0x5d7679(0x1c6))/0x9+-parseInt(_0x5d7679(0x1e8))/0xa*(-parseInt(_0x5d7679(0x1fc))/0xb);if(_0x435f64===_0x52a03a)break;else _0x5618b9['push'](_0x5618b9['shift']());}catch(_0xfc16c){_0x5618b9['push'](_0x5618b9['shift']());}}}(_0x373e,0x75adf));import{Plugin as _0x3ba9d0}from'ckeditor5/src/core.js';function _0x417d(_0x1dfb79,_0x3b64b1){const _0x373e8e=_0x373e();return _0x417d=function(_0x417df9,_0x3f2456){_0x417df9=_0x417df9-0x1b7;let _0x24d9e1=_0x373e8e[_0x417df9];return _0x24d9e1;},_0x417d(_0x1dfb79,_0x3b64b1);}import{Dialog as _0x243dd5}from'ckeditor5/src/ui.js';import{createElement as _0xb6087e,global as _0x273790,uid as _0x28a8c5}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x129648}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xfab70f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5638ee}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3ba9d0{[_0x277779(0x1db)]=null;[_0x277779(0x205)]=null;static get[_0x277779(0x208)](){const _0x13e0e3=_0x277779;return _0x13e0e3(0x1d7);}static get[_0x277779(0x1f4)](){const _0x48f4a1=_0x277779;return[_0x48f4a1(0x1e5),_0xfab70f,_0x243dd5];}static get[_0x277779(0x1d6)](){return!0x0;}static get[_0x277779(0x1de)](){return!0x0;}[_0x277779(0x1cd)];get[_0x277779(0x1bc)](){const _0x1936e7=_0x277779;return this[_0x1936e7(0x1db)];}get[_0x277779(0x1ba)](){const _0x244289=_0x277779;return this[_0x244289(0x205)];}constructor(_0x183d29){const _0x11e012=_0x277779;super(_0x183d29),this[_0x11e012(0x1cd)]=_0x28a8c5();}[_0x277779(0x1b9)](){const _0x507ff7=_0x277779,_0x11bf36=this[_0x507ff7(0x1bb)];_0x11bf36[_0x507ff7(0x1c0)][_0x507ff7(0x203)](_0x507ff7(0x1e4),new _0x129648(_0x11bf36));}[_0x277779(0x1c4)](){const _0x5e8f7e=_0x277779;this[_0x5e8f7e(0x202)](),this[_0x5e8f7e(0x1fe)](),this[_0x5e8f7e(0x209)](),this[_0x5e8f7e(0x1d0)](),this[_0x5e8f7e(0x1ef)](),this[_0x5e8f7e(0x207)](this[_0x5e8f7e(0x1bb)],_0x5e8f7e(0x1eb),()=>{const _0x50f644=_0x5e8f7e;this[_0x50f644(0x1db)]&&(this[_0x50f644(0x1db)][_0x50f644(0x1f0)](),this[_0x50f644(0x1db)]=null),this[_0x50f644(0x205)]&&(this[_0x50f644(0x205)][_0x50f644(0x1f0)](),this[_0x50f644(0x205)]=null);const _0xa75d6c=_0x273790[_0x50f644(0x1b8)][_0x50f644(0x1f1)](_0x50f644(0x1e9));_0xa75d6c&&_0xa75d6c[_0x50f644(0x1f0)]();}),async function(_0x52ab35){const _0x1a3d01=_0x4dc539([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]),_0x3089a9=0x3d8d0df,_0x241219=0x3dfa4a7^_0x3089a9,_0x58763c=window[_0x4dc539([0x44,0x61,0x74,0x65])][_0x4dc539([0x6e,0x6f,0x77])](),_0x4f529d=_0x52ab35[_0x4dc539([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5786f8=new window[(_0x4dc539([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ba7df=>{_0x4f529d[_0x4dc539([0x6f,0x6e,0x63,0x65])](_0x4dc539([0x72,0x65,0x61,0x64,0x79]),_0x2ba7df);}),_0x88066c={[_0x4dc539([0x6b,0x74,0x79])]:_0x4dc539([0x45,0x43]),[_0x4dc539([0x75,0x73,0x65])]:_0x4dc539([0x73,0x69,0x67]),[_0x4dc539([0x63,0x72,0x76])]:_0x4dc539([0x50,0x2d,0x32,0x35,0x36]),[_0x4dc539([0x78])]:_0x4dc539([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]),[_0x4dc539([0x79])]:_0x4dc539([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]),[_0x4dc539([0x61,0x6c,0x67])]:_0x4dc539([0x45,0x53,0x32,0x35,0x36])},_0x2241f2=_0x4f529d[_0x4dc539([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4dc539([0x67,0x65,0x74])](_0x4dc539([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c98c2(){let _0x2e6246,_0x578d14=null,_0x23bcd8=null;try{if(_0x2241f2==_0x4dc539([0x47,0x50,0x4c]))return _0x4dc539([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e6246=_0x4aded8(),!_0x2e6246)return _0x4dc539([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e6246[_0x4dc539([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23bcd8=_0x1f8614(_0x2e6246[_0x4dc539([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e6246[_0x4dc539([0x6a,0x74,0x69])])),await _0x2a332c()?_0x21a9dc()?_0x32a372()?_0x4dc539([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5eab46()?(_0x2e6246[_0x4dc539([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4dc539([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x578d14=_0x53114d(_0x4dc539([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e6246[_0x4dc539([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4dc539([0x74,0x72,0x69,0x61,0x6c])&&(_0x578d14=_0x53114d(_0x4dc539([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x158e6a()):_0x4dc539([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4dc539([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4dc539([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4dc539([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32a372(){const _0x30ed39=[_0x4dc539([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4dc539([0x74,0x72,0x69,0x61,0x6c])][_0x4dc539([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e6246[_0x4dc539([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58763c/0x3e8:0xe10*_0x241219;return _0x2e6246[_0x4dc539([0x65,0x78,0x70])]<_0x30ed39;}function _0x21a9dc(){const _0x96979d=_0x2e6246[_0x4dc539([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x96979d&&(!!_0x96979d[_0x4dc539([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dc539([0x2a]))||!!_0x96979d[_0x4dc539([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dc539([0x55,0x50,0x4c,0x43])));}function _0x5eab46(){const _0x384557=_0x417d,_0x5acb35=_0x2e6246[_0x4dc539([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5acb35||0x0==_0x5acb35[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b38ee}=new URL(window[_0x4dc539([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x384557(0x1d1)]);if(_0x5acb35[_0x4dc539([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b38ee))return!0x0;const _0x185842=_0x5b38ee[_0x4dc539([0x73,0x70,0x6c,0x69,0x74])](_0x4dc539([0x2e]));return _0x5acb35[_0x4dc539([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x560b61=>_0x560b61[_0x4dc539([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dc539([0x2a])))[_0x4dc539([0x6d,0x61,0x70])](_0xfe33cf=>_0xfe33cf[_0x4dc539([0x73,0x70,0x6c,0x69,0x74])](_0x4dc539([0x2e])))[_0x4dc539([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ba62a=>_0x3ba62a[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x185842[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4dc539([0x6d,0x61,0x70])](_0x43dc16=>Array(_0x185842[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x43dc16[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4dc539([0x66,0x69,0x6c,0x6c])](_0x43dc16[0x0]===_0x4dc539([0x2a])?_0x4dc539([0x2a]):'')[_0x4dc539([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x43dc16))[_0x4dc539([0x73,0x6f,0x6d,0x65])](_0x4d944b=>_0x185842[_0x4dc539([0x65,0x76,0x65,0x72,0x79])]((_0x1dac84,_0x43c662)=>_0x4d944b[_0x43c662]===_0x1dac84||_0x4d944b[_0x43c662]===_0x4dc539([0x2a])));}function _0x158e6a(){return _0x578d14&&_0x23bcd8?new window[(_0x4dc539([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28abb4,_0x302141)=>{_0x578d14[_0x4dc539([0x74,0x68,0x65,0x6e])](_0x28abb4,_0x302141),_0x23bcd8[_0x4dc539([0x74,0x68,0x65,0x6e])](_0x2d266a=>{_0x2d266a!=_0x4dc539([0x56,0x61,0x6c,0x69,0x64])&&_0x28abb4(_0x2d266a);},_0x302141);}):_0x578d14||_0x23bcd8||_0x4dc539([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f8614(_0x139918,_0x39222d){return new window[(_0x4dc539([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54cb6e=>{if(_0x5e7e38())return _0x54cb6e(_0x4dc539([0x56,0x61,0x6c,0x69,0x64]));_0x4b7c8e(),_0x4f529d[_0x4dc539([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4dc539([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28e0e1=!0x1;const _0x3eb242=_0x28a8c5();function _0x32b4c9(_0x1c0f99){return!!_0x1c0f99&&(typeof _0x1c0f99===_0x4dc539([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c0f99===_0x4dc539([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c0f99[_0x4dc539([0x74,0x68,0x65,0x6e])]===_0x4dc539([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c0f99[_0x4dc539([0x63,0x61,0x74,0x63,0x68])]===_0x4dc539([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40e395(_0x171ce2){_0x331089(_0x171ce2)[_0x4dc539([0x74,0x68,0x65,0x6e])](_0x32cae3=>{if(!_0x32cae3||_0x32cae3[_0x4dc539([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4dc539([0x6f,0x6b]))return _0x4dc539([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x133212(_0x1b8829(_0x3eb242+_0x39222d))!=_0x32cae3[_0x4dc539([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4dc539([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4dc539([0x56,0x61,0x6c,0x69,0x64]);})[_0x4dc539([0x74,0x68,0x65,0x6e])](_0x10531a=>(_0x2998fa(),_0x10531a),()=>{const _0x395313=_0x1a3981();return null==_0x395313?(_0x2998fa(),_0x4dc539([0x56,0x61,0x6c,0x69,0x64])):_0x4dc539(_0x58763c-_0x395313>(0x27d454df^_0x3089a9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4dc539([0x74,0x68,0x65,0x6e])](_0x54cb6e)[_0x4dc539([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54cb6e(_0x4dc539([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x58d394=0x3ee3e5f^_0x3089a9;function _0x2998fa(){const _0x4a9d17=_0x4dc539([0x6c,0x6c,0x63,0x74,0x2d])+_0x133212(_0x1b8829(_0x139918)),_0x4c4dfa=_0x21715f(_0x133212(window[_0x4dc539([0x4d,0x61,0x74,0x68])][_0x4dc539([0x63,0x65,0x69,0x6c])](_0x58763c/_0x58d394)));window[_0x4dc539([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4dc539([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a9d17,_0x4c4dfa);}function _0x1a3981(){const _0x32c128=_0x4dc539([0x6c,0x6c,0x63,0x74,0x2d])+_0x133212(_0x1b8829(_0x139918)),_0x13db01=window[_0x4dc539([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4dc539([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32c128);return _0x13db01?window[_0x4dc539([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21715f(_0x13db01),0x10)*_0x58d394:null;}function _0x331089(_0x528b92){return new window[(_0x4dc539([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5bbffc,_0x8a2c7b)=>{_0x528b92[_0x4dc539([0x74,0x68,0x65,0x6e])](_0x5bbffc,_0x8a2c7b),window[_0x4dc539([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8a2c7b,0x3d9041f^_0x3089a9);});}}_0x4f529d[_0x4dc539([0x6f,0x6e])](_0x4dc539([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4847a9,_0x23189f)=>{if(_0x23189f[0x0]!=_0x139918)return _0x54cb6e(_0x4dc539([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23189f[0x1]={..._0x23189f[0x1],[_0x4dc539([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3eb242};},{[_0x4dc539([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4dc539([0x68,0x69,0x67,0x68])}),_0x4f529d[_0x4dc539([0x6f,0x6e])](_0x4dc539([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ea403=>{_0x32b4c9(_0x1ea403[_0x4dc539([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28e0e1=!0x0,_0x40e395(_0x1ea403[_0x4dc539([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4dc539([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4dc539([0x6c,0x6f,0x77])}),_0x5786f8[_0x4dc539([0x74,0x68,0x65,0x6e])](()=>{_0x28e0e1||_0x54cb6e(_0x4dc539([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e7e38(){return _0x4f529d[_0x4dc539([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4dc539([0x76,0x69,0x65,0x77])][_0x4dc539([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4dc539([0x61,0x75,0x74,0x6f]);}function _0x4b7c8e(){_0x4f529d[_0x4dc539([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4dc539([0x76,0x69,0x65,0x77])][_0x4dc539([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4dc539([0x61,0x75,0x74,0x6f]);}}function _0x53114d(_0x477b5e){const _0x4b2f73=[new window[(_0x4dc539([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c6eda=>setTimeout(_0x2c6eda,0x3d1ee13^_0x3089a9)),_0x5786f8[_0x4dc539([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4dc539([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e3db4=>{let _0x58438f=0x0;_0x4f529d[_0x4dc539([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dc539([0x6f,0x6e])](_0x4dc539([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x12f92f,_0x1e2e90)=>{_0x1e2e90[0x0][_0x4dc539([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x58438f++,_0x58438f==(0x3d8d127^_0x3089a9)&&(_0x5e3db4(),_0x12f92f[_0x4dc539([0x6f,0x66,0x66])]());});}))];return window[_0x4dc539([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4dc539([0x72,0x61,0x63,0x65])](_0x4b2f73)[_0x4dc539([0x74,0x68,0x65,0x6e])](()=>_0x477b5e);}async function _0x4b5f81(){await _0x5786f8,_0x4f529d[_0x4dc539([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dc539([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x577723,_0x4f529d[_0x4dc539([0x6d,0x6f,0x64,0x65,0x6c])][_0x4dc539([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x577723,_0x4f529d[_0x4dc539([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4dc539([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ce966(_0x23300f){const _0x245577=_0x359df7();_0x4f529d[_0x245577]=_0x4dc539([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23300f,_0x23300f!=_0x4dc539([0x56,0x61,0x6c,0x69,0x64])&&_0x4b5f81();}function _0x359df7(){const _0x565316=window[_0x4dc539([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4dc539([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4dc539([0x6e,0x6f,0x77])]())[_0x4dc539([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4dc539([0x2e]),'');let _0x41f188=_0x4dc539([0x52]);for(let _0x529a4f=0x0;_0x529a4f<_0x565316[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x529a4f+=0x2){let _0x1aca14=window[_0x4dc539([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x565316[_0x4dc539([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x529a4f,_0x529a4f+0x2));_0x1aca14>=_0x1a3d01[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aca14-=_0x1a3d01[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41f188+=_0x1a3d01[_0x1aca14];}return _0x41f188;}function _0x4aded8(){const _0x4ee922=_0x2241f2[_0x4dc539([0x73,0x70,0x6c,0x69,0x74])](_0x4dc539([0x2e]));if(0x3!=_0x4ee922[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45920e(_0x4ee922[0x1]);function _0x45920e(_0x2a2b85){const _0x34ded0=_0x3b57bf(_0x2a2b85);return _0x34ded0&&_0x34ec6b()?_0x34ded0:null;function _0x34ec6b(){const _0x296495=_0x34ded0[_0x4dc539([0x6a,0x74,0x69])],_0x144328=window[_0x4dc539([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x296495[_0x4dc539([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x296495[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f32ef={..._0x34ded0,[_0x4dc539([0x6a,0x74,0x69])]:_0x296495[_0x4dc539([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x296495[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f32ef[_0x4dc539([0x76,0x63])],_0x1b8829(_0x3f32ef)==_0x144328;}}}async function _0x2a332c(){let _0x58c452=!0x0;try{const _0x251cda=_0x2241f2[_0x4dc539([0x73,0x70,0x6c,0x69,0x74])](_0x4dc539([0x2e])),[_0x50723c,_0x48e927,_0x507a35]=_0x251cda;return _0x57f35c(_0x50723c),await _0x5e5cb8(_0x50723c,_0x48e927,_0x507a35),_0x58c452;}catch{return!0x1;}function _0x57f35c(_0x376abb){const _0x2fade7=_0x3b57bf(_0x376abb);_0x2fade7&&_0x2fade7[_0x4dc539([0x61,0x6c,0x67])]==_0x4dc539([0x45,0x53,0x32,0x35,0x36])||(_0x58c452=!0x1);}async function _0x5e5cb8(_0xbe577e,_0x81e384,_0x284d1e){const _0x2da822=window[_0x4dc539([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4dc539([0x66,0x72,0x6f,0x6d])](_0x3c3081(_0x284d1e),_0x4c05de=>_0x4c05de[_0x4dc539([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1da558=new window[(_0x4dc539([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4dc539([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xbe577e+_0x4dc539([0x2e])+_0x81e384),_0x2fe9c1=window[_0x4dc539([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4dc539([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fe9c1)return;const _0x9199cd=await _0x2fe9c1[_0x4dc539([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4dc539([0x6a,0x77,0x6b]),_0x88066c,{[_0x4dc539([0x6e,0x61,0x6d,0x65])]:_0x4dc539([0x45,0x43,0x44,0x53,0x41]),[_0x4dc539([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4dc539([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4dc539([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fe9c1[_0x4dc539([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4dc539([0x6e,0x61,0x6d,0x65])]:_0x4dc539([0x45,0x43,0x44,0x53,0x41]),[_0x4dc539([0x68,0x61,0x73,0x68])]:{[_0x4dc539([0x6e,0x61,0x6d,0x65])]:_0x4dc539([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9199cd,_0x2da822,_0x1da558)||(_0x58c452=!0x1);}}function _0x3b57bf(_0x573f87){return _0x573f87[_0x4dc539([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4dc539([0x65,0x79]))?JSON[_0x4dc539([0x70,0x61,0x72,0x73,0x65])](_0x3c3081(_0x573f87)):null;}function _0x3c3081(_0x4053e0){return window[_0x4dc539([0x61,0x74,0x6f,0x62])](_0x4053e0[_0x4dc539([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4dc539([0x2b]))[_0x4dc539([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4dc539([0x2f])));}function _0x1b8829(_0x201871){let _0x5f496d=0x1505;function _0x542f4c(_0xf4df6c){for(let _0x55050d=0x0;_0x55050d<_0xf4df6c[_0x4dc539([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55050d++){const _0xab0e7c=_0xf4df6c[_0x4dc539([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55050d);_0x5f496d=(_0x5f496d<<0x5)+_0x5f496d+_0xab0e7c,_0x5f496d&=_0x5f496d;}}function _0x61f72(_0x5b792e){Array[_0x4dc539([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b792e)?_0x5b792e[_0x4dc539([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x61f72):_0x5b792e&&typeof _0x5b792e==_0x4dc539([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4dc539([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b792e)[_0x4dc539([0x73,0x6f,0x72,0x74])]()[_0x4dc539([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x503ed7,_0x3c8065])=>{_0x542f4c(_0x503ed7),_0x61f72(_0x3c8065);}):_0x542f4c(window[_0x4dc539([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b792e));}return _0x61f72(_0x201871),_0x5f496d>>>0x0;}function _0x133212(_0x4ba1cd){return _0x4ba1cd[_0x4dc539([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4dc539([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4dc539([0x30]));}function _0x21715f(_0x3b2a72){return _0x3b2a72[_0x4dc539([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4dc539([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4dc539([0x6a,0x6f,0x69,0x6e])]('');}function _0x577723(){}function _0x4dc539(_0x2edbf9){const _0x5038f3=_0x417d;return _0x2edbf9[_0x5038f3(0x1cb)](_0x5a458e=>String[_0x5038f3(0x1fa)](_0x5a458e))[_0x5038f3(0x1be)]('');}_0x2ce966(await _0x1c98c2());}(this);}[_0x277779(0x202)](){const _0x43eba3=_0x277779,_0x4e6f75=this[_0x43eba3(0x1bb)][_0x43eba3(0x1ed)][_0x43eba3(0x200)];_0x4e6f75[_0x43eba3(0x1d8)](_0x43eba3(0x1ce))&&_0x4e6f75[_0x43eba3(0x1cf)](_0x43eba3(0x1ce),{'allowAttributes':[_0x43eba3(0x204)]}),_0x4e6f75[_0x43eba3(0x1d8)](_0x43eba3(0x1fd))&&_0x4e6f75[_0x43eba3(0x1cf)](_0x43eba3(0x1fd),{'allowAttributes':[_0x43eba3(0x204)]});}[_0x277779(0x1fe)](){const _0x37efe2=_0x277779,_0x3d695b=this[_0x37efe2(0x1bb)];_0x3d695b[_0x37efe2(0x1bf)][_0x37efe2(0x1d3)](_0x37efe2(0x1df))[_0x37efe2(0x206)]({'model':_0x37efe2(0x204),'view':_0x37efe2(0x1e7)}),_0x3d695b[_0x37efe2(0x1bf)][_0x37efe2(0x1d3)](_0x37efe2(0x1cc))[_0x37efe2(0x1f8)]({'model':{'key':_0x37efe2(0x204),'value':_0x36fcaa=>_0x36fcaa[_0x37efe2(0x1d9)](_0x37efe2(0x1e7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3a49ac=_0x3d695b[_0x37efe2(0x1c0)][_0x37efe2(0x1ea)](_0x37efe2(0x1ee));_0x3a49ac&&this[_0x37efe2(0x207)](_0x3a49ac,_0x37efe2(0x1d4),(_0x4f8974,[_0x4797e0,_0x13579d])=>{const _0x152dc4=_0x37efe2;_0x4797e0[_0x152dc4(0x1f9)](_0x152dc4(0x204),_0x13579d);});}[_0x277779(0x209)](){const _0x47b4f7=_0x277779,_0x3bf33b=this[_0x47b4f7(0x1bb)][_0x47b4f7(0x1fb)][_0x47b4f7(0x1ea)](_0x47b4f7(0x1e1))||{},_0x301c15=this[_0x47b4f7(0x1bb)][_0x47b4f7(0x1fb)][_0x47b4f7(0x1ea)](_0x47b4f7(0x1c2))||'';this[_0x47b4f7(0x1db)]=_0xb6087e(_0x273790[_0x47b4f7(0x1b8)],_0x47b4f7(0x1c7),{..._0x3bf33b,'pubkey':_0x301c15,'ctx-name':_0x47b4f7(0x1ca)+this[_0x47b4f7(0x1cd)],'sourceList':'','imgOnly':_0x47b4f7(0x1e3),'removeCopyright':_0x47b4f7(0x1e3),'localeName':this[_0x47b4f7(0x1bb)][_0x47b4f7(0x1e0)][_0x47b4f7(0x1bd)],'externalSourcesEmbedCss':_0x47b4f7(0x1dd)}),this[_0x47b4f7(0x1db)][_0x47b4f7(0x1e2)]=_0x5e95c2=>{const _0x199b9e=_0x47b4f7;if(_0x199b9e(0x1d2)==_0x5e95c2)return _0x199b9e(0x1e6);},_0x273790[_0x47b4f7(0x1b8)][_0x47b4f7(0x1dc)][_0x47b4f7(0x1f7)](this[_0x47b4f7(0x1db)]);}[_0x277779(0x1d0)](){const _0x1d9e0=_0x277779;this[_0x1d9e0(0x205)]=_0xb6087e(_0x273790[_0x1d9e0(0x1b8)],_0x1d9e0(0x1ec),{'ctx-name':_0x1d9e0(0x1ca)+this[_0x1d9e0(0x1cd)]}),_0x273790[_0x1d9e0(0x1b8)][_0x1d9e0(0x1dc)][_0x1d9e0(0x1f7)](this[_0x1d9e0(0x205)]);}[_0x277779(0x1ef)](){const _0x48750c=_0x277779,_0x50b9dd=this[_0x48750c(0x1bb)][_0x48750c(0x1c0)][_0x48750c(0x1ea)](_0x48750c(0x20c));_0x50b9dd&&this[_0x48750c(0x207)](_0x50b9dd,_0x48750c(0x1c1),()=>{const _0x463a1e=_0x48750c,_0x3e184d=this[_0x463a1e(0x1bb)][_0x463a1e(0x1ed)][_0x463a1e(0x1b8)][_0x463a1e(0x201)][_0x463a1e(0x1c9)]();_0x3e184d&&_0x3e184d[_0x463a1e(0x1d9)](_0x463a1e(0x204))&&this[_0x463a1e(0x1bb)][_0x463a1e(0x1d5)][_0x463a1e(0x1f3)][_0x463a1e(0x1f2)](_0x463a1e(0x1ff),()=>{const _0x234eaa=_0x463a1e;_0x5638ee(this[_0x234eaa(0x1bb)],_0x3e184d);});});const _0x104f0c=this[_0x48750c(0x1bb)][_0x48750c(0x1c0)][_0x48750c(0x1ea)](_0x48750c(0x1da));_0x104f0c&&this[_0x48750c(0x207)](_0x104f0c,_0x48750c(0x1c1),()=>{const _0xa29b41=_0x48750c,_0x5420aa=this[_0xa29b41(0x1bb)][_0xa29b41(0x1ed)][_0xa29b41(0x1b8)][_0xa29b41(0x201)][_0xa29b41(0x1c9)]();_0x5420aa&&_0x5420aa[_0xa29b41(0x1d9)](_0xa29b41(0x204))&&this[_0xa29b41(0x1bb)][_0xa29b41(0x1d5)][_0xa29b41(0x1f3)][_0xa29b41(0x1f2)](_0xa29b41(0x1ff),()=>{const _0x16e8a5=_0xa29b41;_0x5638ee(this[_0x16e8a5(0x1bb)],_0x5420aa);});});}}function _0x373e(){const _0xa4707b=['elementToAttribute','removeAttribute','fromCharCode','config','22396462HIxKaM','imageInline','_initConversion','render','schema','selection','_initSchema','add','uploadcareImageId','_ctxElement','attributeToAttribute','listenTo','pluginName','_initConfig','6592eCcYCH','829065RPCCDS','insertImage','20YDbBRm','document','init','ctxElement','editor','configElement','contentLanguage','join','conversion','commands','execute','uploadcare.pubkey','6AAFQdn','afterInit','2263672POCWsh','3125763jvbhBG','uc-config','2349150PVpwWJ','getSelectedElement','uploader-','map','upcast','ucContextId','imageBlock','extend','_initCtx','href','closeMax','for','cleanupImage','editing','isOfficialPlugin','UploadcareEditing','isRegistered','getAttribute','uploadcareImageReplace','_configElement','body','\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','isPremiumPlugin','downcast','locale','uploadcare.uploader','iconHrefResolver','true','uploadcare','PictureEditing','#uc-icon-arrow-down','data-uc-image-id','10kumJlO','input[uploadcare-file-input]','get','destroy','uc-upload-ctx-provider','model','replaceImageSource','_initImageProcessingIndicator','remove','querySelector','once','view','requires','866595nPxnoo','7YFVzvl','appendChild'];_0x373e=function(){return _0xa4707b;};return _0x373e();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x19ad79,ObservableMixin as _0x54b207}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1a4c37}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x305d30}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x118a33}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xa1ff92}from'../../utils/uploadutils.js';import{getImageUrls as _0x572748,getImageDimension as _0x56f3d8}from'../../utils/editingutils.js';import{isAncestor as _0x4f06b6}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x54b207(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x264d6f,_0x3c37,_0x48924b){super(),this['_editor']=_0x264d6f,this['_dialog']=_0x3c37,this['_imageElement']=_0x48924b,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 _0x409c0a=this['_imageElement'],_0x4260b9=_0x409c0a['getAttribute']('uploadcareImageId'),_0x6a0855=_0x409c0a['getAttribute']('src');if(_0x4260b9)await this['_loadImageInfo'](_0x4260b9,_0x6a0855);else{if(this['_imageCache']['has'](_0x6a0855)){const _0x3bc443=this['_imageCache']['get'](_0x6a0855);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3bc443['url'],this['imageDimension']=_0x3bc443['dimension'],this['imageId']=_0x3bc443['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2e842d}=this['_editor'],t=_0x2e842d['t'],_0x2ff0c3=new _0x118a33(_0x2e842d,this['imageStatus'],this['_attributes']);_0x2ff0c3['bind']('status')['to'](this,'imageStatus'),_0x2ff0c3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2ff0c3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2ff0c3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2ff0c3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x305d30,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2ff0c3,'position':_0x1a4c37['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2ff0c3['focus']();},'onHide':()=>{_0x2ff0c3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x144f50=>!_0x4f06b6(_0x144f50,_0x2ff0c3['element'])}});}['_loadImageInfo'](_0x453177,_0x1b31bd){return _0xa1ff92['getInfo'](_0x453177,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4915b5=>{const {width:_0x4a60bc,height:_0x2ec686}=_0x4915b5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b31bd,this['imageDimension']={'width':_0x4a60bc,'height':_0x2ec686},this['imageId']=_0x453177;})['catch'](_0x1a5276=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a5276['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x220ffc,_0x203ee2){return this['_getImageAsFile'](_0x220ffc)['then'](_0x251232=>_0xa1ff92['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':_0x203ee2['signal'],'file':_0x251232,'onProgress':_0x43065b=>{_0x43065b&&_0x43065b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x43065b['value']));}}))['then'](_0x3a89ef=>{const {width:_0x7fdc9f,height:_0x522b51}=_0x3a89ef['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a89ef['cdnUrl'],this['imageDimension']={'width':_0x7fdc9f,'height':_0x522b51},this['imageId']=_0x3a89ef['uuid'],this['imageUploadProgress']=null;const _0x2c9914=_0x220ffc['getAttribute']('src');this['_imageCache']['set'](_0x2c9914,{'id':_0x3a89ef['uuid'],'url':_0x3a89ef['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x10e075=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x10e075['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x498cd4,_0x2cb80e){_0x498cd4['on']('apply',(_0x3a1c6c,_0x4d7124)=>{this['_replaceImage'](_0x2cb80e,_0x4d7124['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x498cd4['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x498cd4['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4fc2af,_0x4e21c3,_0x4533f9){const _0xc94429=this['_editor'],{width:_0x221122,height:_0x3e959f}=_0x56f3d8(_0x4e21c3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3dd483,imageSources:_0x5e3fec}=_0x572748(_0x4e21c3,_0x221122);_0xc94429['model']['change'](_0x3a202b=>{if('$graveyard'===_0x4fc2af['root']['rootName']){_0xc94429['execute']('insertImage',{'imageType':_0x4fc2af['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4fc2af['getAttributes']()),'uploadcareImageId':_0x4533f9,'src':_0x3dd483,'sources':_0x5e3fec,'width':_0x221122,'height':_0x3e959f}});const _0x3c473e=_0x4fc2af['getChildren']();_0x4fc2af=_0xc94429['model']['document']['selection']['getSelectedElement']();for(const _0xa31a5f of _0x3c473e)_0x3a202b['append'](_0x3a202b['cloneElement'](_0xa31a5f),_0x4fc2af);}else _0x3a202b['setSelection'](_0x4fc2af,'on'),_0xc94429['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4fc2af['getAttributes']()),'uploadcareImageId':_0x4533f9,'src':_0x3dd483,'sources':_0x5e3fec,'width':_0x221122,'height':_0x3e959f},_0x4fc2af);_0x3a202b['setSelection'](_0x4fc2af,'on');});}async['_getImageAsFile'](_0x1e4fc9){const _0x518003=_0x19ad79['window'],_0x232893=_0x19ad79['document']['location']['href'],_0x46eb41=new _0x518003['URL'](_0x1e4fc9['getAttribute']('src'),_0x232893);if('data:'===_0x46eb41['protocol']){const _0xaaca66=_0x46eb41['href']['split'](','),_0x207cbe=_0xaaca66[0x0]['match'](/:(.*?);/)[0x1],_0x3b5b20=_0x207cbe['split']('/')[0x1],_0x1c75f0=_0x518003['atob'](_0xaaca66[_0xaaca66['length']-0x1]);let _0x5b10b9=_0x1c75f0['length'];const _0x202a31=new _0x518003['Uint8Array'](_0x5b10b9);for(;_0x5b10b9--;)_0x202a31[_0x5b10b9]=_0x1c75f0['charCodeAt'](_0x5b10b9);return new _0x518003['File']([_0x202a31],'image.'+_0x3b5b20,{'type':_0x207cbe});}const _0x2b556a=_0x46eb41['href']['split']('/'),_0x19cb68=_0x2b556a[_0x2b556a['length']-0x1],_0x362e89=_0x19cb68['split']('.')[0x1];return _0x518003['fetch'](_0x46eb41['href'])['then'](_0x5a3521=>_0x5a3521['clone']()['blob']())['then'](_0x2d425e=>new _0x518003['File']([_0x2d425e],_0x19cb68,{'type':'image/'+_0x362e89}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x473444,_0x1e891e){const _0x484ca2=_0x5a4d,_0xe42c06=_0x473444();while(!![]){try{const _0x373af9=parseInt(_0x484ca2(0x121))/0x1+parseInt(_0x484ca2(0x124))/0x2+-parseInt(_0x484ca2(0x112))/0x3*(parseInt(_0x484ca2(0x118))/0x4)+-parseInt(_0x484ca2(0x123))/0x5+-parseInt(_0x484ca2(0x11c))/0x6*(parseInt(_0x484ca2(0x11b))/0x7)+-parseInt(_0x484ca2(0x113))/0x8*(parseInt(_0x484ca2(0x119))/0x9)+-parseInt(_0x484ca2(0x115))/0xa*(-parseInt(_0x484ca2(0x114))/0xb);if(_0x373af9===_0x1e891e)break;else _0xe42c06['push'](_0xe42c06['shift']());}catch(_0x36b9dc){_0xe42c06['push'](_0xe42c06['shift']());}}}(_0x3fc7,0x1cc50));function _0x5a4d(_0x4c0dd0,_0x169b13){const _0x3fc7a0=_0x3fc7();return _0x5a4d=function(_0x5a4dfd,_0x404326){_0x5a4dfd=_0x5a4dfd-0x112;let _0x3deda2=_0x3fc7a0[_0x5a4dfd];return _0x3deda2;},_0x5a4d(_0x4c0dd0,_0x169b13);}import{View as _0x4653f8}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x4653f8{constructor(_0x5d2930,_0x4196ed){const _0x2158f4=_0x5a4d;super(_0x5d2930);const _0x5a021f=this[_0x2158f4(0x120)];this[_0x2158f4(0x116)](_0x2158f4(0x11a),''),this[_0x2158f4(0x11e)]({'tag':_0x2158f4(0x11f),'attributes':{..._0x4196ed,'class':[_0x2158f4(0x11d),_0x2158f4(0x122)],'ctx-name':_0x2158f4(0x117),'cdn-url':_0x5a021f['to'](_0x2158f4(0x11a))}});}}function _0x3fc7(){const _0x3ea1c2=['ck-uploadcare-theme','855810GkedUr','228088viomYX','1452ZaKIrs','40tTVmoL','33374SuHsgN','820MoOdsk','set','image-edit','132ibCQXz','233262MzmFUc','imageSrc','7agmPBx','442896MkzRRm','uc-light','setTemplate','uc-cloud-image-editor','bindTemplate','145548WvHUwA'];_0x3fc7=function(){return _0x3ea1c2;};return _0x3fc7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x32f63a}from'ckeditor5/src/icons.js';import{ButtonView as _0xfa5091,IconView as _0x3c57d2,View as _0x12b7e5}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x12b7e5{constructor(_0x4f9261){super(_0x4f9261);const t=_0x4f9261['t'];this['set']('errorType',null);const _0x2cfcf4=new _0xfa5091(_0x4f9261);_0x2cfcf4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2cfcf4['withText']=!0x0,_0x2cfcf4['class']='ck-button-action',_0x2cfcf4['on']('execute',()=>{this['fire']('retry');}),_0x2cfcf4['bind']('isVisible')['to'](this,'errorType',_0x489559=>'NotFound'!==_0x489559);const _0x4e390c=new _0x3c57d2();_0x4e390c['content']=_0x32f63a,_0x4e390c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x202c4c=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':[_0x4e390c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x202c4c['to']('errorType',_0x513137=>t('NotFound'!==_0x513137?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2cfcf4]},{'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 _0x3e5145,View as _0x5b23b6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5b23b6{constructor(_0x54f56f){super(_0x54f56f);const t=_0x54f56f['t'],_0x39bb8c=this['bindTemplate'],_0x335b93=new _0x3e5145();_0x335b93['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':[_0x335b93,{'text':_0x39bb8c['to']('imageUploadProgress',_0x313408=>t('Loading\x20image...')+'\x20('+(_0x313408||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xe8f5e=_0x5564;(function(_0x48ec2a,_0x4cab78){const _0x4f623c=_0x5564,_0x2dff5a=_0x48ec2a();while(!![]){try{const _0x4329aa=parseInt(_0x4f623c(0x91))/0x1+-parseInt(_0x4f623c(0x8a))/0x2*(parseInt(_0x4f623c(0x86))/0x3)+-parseInt(_0x4f623c(0x89))/0x4+parseInt(_0x4f623c(0x70))/0x5+parseInt(_0x4f623c(0x88))/0x6+parseInt(_0x4f623c(0x7c))/0x7+parseInt(_0x4f623c(0x7e))/0x8;if(_0x4329aa===_0x4cab78)break;else _0x2dff5a['push'](_0x2dff5a['shift']());}catch(_0x44bdfe){_0x2dff5a['push'](_0x2dff5a['shift']());}}}(_0x451e,0x97874));function _0x451e(){const _0x390643=['error','addEventListener','once','_waitForImageEditorComponent','ready','_errorView','_addErrorViewListeners','add','uc-cloud-image-editor','_focusableView','_setView','823319MEvdgp','toLowerCase','4237304fRXYhw','status','apply','retry','setTemplate','fire','change:status','ck-uploadcare-form','11244nohZUN','_addUploadcareImageEditorListeners','2471784oHuVLv','903120divhse','550DoIfnt','addMany','nodeName','disconnect','length','_editingView','uploading','183270yWjouo','cdnUrl','cancel','detail','ck-reset_all-excluded','createCollection','_items','target','_loadingView','div','addedNodes','clear','element','querySelector','set','focus','render','observe','filter','getFocusableElement','3173130QzZvrw'];_0x451e=function(){return _0x390643;};return _0x451e();}import{View as _0x3b4ba2}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4ea944}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x17facc}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2b1428}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x528f4d}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x5564(_0xc2022a,_0x23e080){const _0x451e2a=_0x451e();return _0x5564=function(_0x556450,_0x4d3f73){_0x556450=_0x556450-0x67;let _0x161f21=_0x451e2a[_0x556450];return _0x161f21;},_0x5564(_0xc2022a,_0x23e080);}export class UploadcareImageEditFormView extends _0x528f4d{[_0xe8f5e(0x97)];[_0xe8f5e(0x99)];[_0xe8f5e(0x76)];[_0xe8f5e(0x8f)];[_0xe8f5e(0x7a)];constructor(_0x39f960,_0x400c09,_0x1043d2){const _0x5cba86=_0xe8f5e;super(_0x39f960),this[_0x5cba86(0x97)]=this[_0x5cba86(0x96)](),this[_0x5cba86(0x99)]=new _0x4ea944(_0x39f960),this[_0x5cba86(0x76)]=new _0x17facc(_0x39f960),this[_0x5cba86(0x8f)]=new _0x2b1428(_0x39f960,_0x1043d2),this[_0x5cba86(0x7a)]=new _0x3b4ba2(_0x39f960),this[_0x5cba86(0x7a)][_0x5cba86(0x82)](this[_0x5cba86(0x6f)]()),this[_0x5cba86(0x6a)](_0x5cba86(0x7f),_0x400c09),this[_0x5cba86(0x82)]({'tag':_0x5cba86(0x9a),'attributes':{'class':['ck',_0x5cba86(0x95),_0x5cba86(0x85)],'tabindex':'-1'},'children':this[_0x5cba86(0x97)]}),this[_0x5cba86(0x7b)](),this[_0x5cba86(0x73)](_0x5cba86(0x6c),()=>{const _0x81cd86=_0x5cba86;this[_0x81cd86(0x74)](this[_0x81cd86(0x68)],_0x4e4cde=>{const _0x4fc630=_0x81cd86;this[_0x4fc630(0x87)](_0x4e4cde);});}),this['on'](_0x5cba86(0x84),()=>{const _0xa1bc5=_0x5cba86;this[_0xa1bc5(0x7b)]();}),this[_0x5cba86(0x77)]();}[_0xe8f5e(0x6b)](){const _0x34f7c0=_0xe8f5e;this[_0x34f7c0(0x68)][_0x34f7c0(0x6b)]();}[_0xe8f5e(0x7b)](){const _0x4d453b=_0xe8f5e;switch(this[_0x4d453b(0x97)][_0x4d453b(0x67)](),this[_0x4d453b(0x7f)]){case _0x4d453b(0x90):this[_0x4d453b(0x97)][_0x4d453b(0x78)](this[_0x4d453b(0x99)]);break;case _0x4d453b(0x71):this[_0x4d453b(0x97)][_0x4d453b(0x78)](this[_0x4d453b(0x76)]);break;case _0x4d453b(0x75):this[_0x4d453b(0x97)][_0x4d453b(0x8b)]([this[_0x4d453b(0x8f)],this[_0x4d453b(0x7a)]]);}}[_0xe8f5e(0x74)](_0x5d57f4,_0x701bf9){const _0x26c0b2=_0xe8f5e,_0x4270cb=_0x26c0b2(0x79),_0x2635c9=_0x5d57f4[_0x26c0b2(0x69)](_0x4270cb);if(_0x2635c9)return _0x701bf9(_0x2635c9);const _0x163a8d=new MutationObserver(_0x541880=>{const _0x4adceb=_0x26c0b2,_0x4726db=_0x541880[_0x4adceb(0x6e)](_0x500533=>_0x500533[_0x4adceb(0x98)]===_0x5d57f4&&_0x500533[_0x4adceb(0x9b)][_0x4adceb(0x8e)]>0x0&&_0x500533[_0x4adceb(0x9b)][0x0][_0x4adceb(0x8c)][_0x4adceb(0x7d)]()===_0x4270cb);_0x4726db[_0x4adceb(0x8e)]&&(_0x163a8d[_0x4adceb(0x8d)](),_0x701bf9(_0x4726db[0x0][_0x4adceb(0x9b)][0x0]));});_0x163a8d[_0x26c0b2(0x6d)](_0x5d57f4,{'childList':!0x0,'subtree':!0x0});}[_0xe8f5e(0x87)](_0x134807){const _0xd3941=_0xe8f5e;_0x134807[_0xd3941(0x72)](_0xd3941(0x80),_0x3ee16b=>{const _0x10c717=_0xd3941;this[_0x10c717(0x83)](_0x10c717(0x80),{'imageSrc':_0x3ee16b[_0x10c717(0x94)][_0x10c717(0x92)]});}),_0x134807[_0xd3941(0x72)](_0xd3941(0x93),()=>{const _0x54c5d3=_0xd3941;this[_0x54c5d3(0x83)](_0x54c5d3(0x93));});}[_0xe8f5e(0x77)](){const _0x3242dd=_0xe8f5e;this[_0x3242dd(0x76)]['on'](_0x3242dd(0x81),()=>{const _0x4739e3=_0x3242dd;this[_0x4739e3(0x83)](_0x4739e3(0x81));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21c0a0=_0x55b1;(function(_0x15644b,_0x46e6bd){const _0x3c01b1=_0x55b1,_0x356bff=_0x15644b();while(!![]){try{const _0x21cef9=parseInt(_0x3c01b1(0xf2))/0x1+-parseInt(_0x3c01b1(0xf3))/0x2+-parseInt(_0x3c01b1(0x110))/0x3*(parseInt(_0x3c01b1(0x10c))/0x4)+-parseInt(_0x3c01b1(0x10a))/0x5*(parseInt(_0x3c01b1(0x10e))/0x6)+-parseInt(_0x3c01b1(0x107))/0x7+-parseInt(_0x3c01b1(0x10d))/0x8*(-parseInt(_0x3c01b1(0xf1))/0x9)+parseInt(_0x3c01b1(0xfe))/0xa*(parseInt(_0x3c01b1(0x104))/0xb);if(_0x21cef9===_0x46e6bd)break;else _0x356bff['push'](_0x356bff['shift']());}catch(_0x10f00e){_0x356bff['push'](_0x356bff['shift']());}}}(_0x385a,0x9bef6));import{Command as _0xd9f19a}from'ckeditor5/src/core.js';import{Dialog as _0x4c9751}from'ckeditor5/src/ui.js';function _0x55b1(_0xf1f395,_0x1aba16){const _0x385abf=_0x385a();return _0x55b1=function(_0x55b1b1,_0x19572d){_0x55b1b1=_0x55b1b1-0xf0;let _0xac1c7c=_0x385abf[_0x55b1b1];return _0xac1c7c;},_0x55b1(_0xf1f395,_0x1aba16);}import{UploadcareImageEditController as _0x2fdc68}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x232a2c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xd9f19a{[_0x21c0a0(0xfd)];static get[_0x21c0a0(0x10f)](){return[_0x4c9751];}[_0x21c0a0(0xf4)];constructor(_0x511626){const _0x14b7a5=_0x21c0a0;super(_0x511626),this[_0x14b7a5(0xfd)]=void 0x0,this[_0x14b7a5(0xf4)]=_0x232a2c(_0x511626[_0x14b7a5(0xfa)][_0x14b7a5(0x101)](_0x14b7a5(0xfc))||[]),this[_0x14b7a5(0xf9)]({'isActive':!0x1});}[_0x21c0a0(0x106)](){const _0x3f03a0=_0x21c0a0,_0x560426=this[_0x3f03a0(0x102)][_0x3f03a0(0x105)][_0x3f03a0(0x103)][_0x3f03a0(0xf8)][_0x3f03a0(0x109)]();this[_0x3f03a0(0xf0)]=this[_0x3f03a0(0xf4)](_0x560426);}[_0x21c0a0(0xff)](){const _0x245611=_0x21c0a0;this[_0x245611(0xfd)]&&(this[_0x245611(0xf6)](_0x245611(0x10b)),this[_0x245611(0xfd)]=void 0x0);const _0x17ab27=this[_0x245611(0x102)][_0x245611(0x105)][_0x245611(0x103)][_0x245611(0xf8)][_0x245611(0x109)]();_0x17ab27&&(_0x17ab27['is'](_0x245611(0xf7),_0x245611(0xfb))||_0x17ab27['is'](_0x245611(0xf7),_0x245611(0x100)))&&(this[_0x245611(0xfd)]=new _0x2fdc68(this[_0x245611(0x102)],this[_0x245611(0x102)][_0x245611(0x108)][_0x245611(0x101)](_0x4c9751),_0x17ab27),this[_0x245611(0xf5)](_0x245611(0x10b))['to'](this[_0x245611(0xfd)],_0x245611(0x10b)));}}function _0x385a(){const _0x35ae00=['978654iXfUNj','requires','573cgTmqB','isEnabled','72ngcxHA','1187666FNNELN','2529890VgfKmD','_isEditable','bind','unbind','element','selection','set','config','imageBlock','uploadcare.allowExternalImagesEditing','imageEditController','11744710OohfOg','execute','imageInline','get','editor','document','22zjkDEf','model','refresh','4570377zLZIUe','plugins','getSelectedElement','35AMsefK','isActive','1636ugPLRW','239840jiEkAF'];_0x385a=function(){return _0x35ae00;};return _0x385a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2849(){const _0x3f9a00=['UploadcareImageEditEditing','7sbJNpe','6YFGTbJ','17562PlNcOJ','uploadcareImageReplace','ImageEditing','uploadcareImageEdit','pluginName','60971qVeQeX','508456NhZHaT','requires','commands','isOfficialPlugin','649590CVNfcK','init','add','2582268femGxH','isPremiumPlugin','ImageUtils','8553447epvaAi','1976435FZkpBj'];_0x2849=function(){return _0x3f9a00;};return _0x2849();}const _0x5d1c18=_0x18e6;(function(_0x111256,_0x23016e){const _0x6f845b=_0x18e6,_0x285d1f=_0x111256();while(!![]){try{const _0x34fa2e=-parseInt(_0x6f845b(0x179))/0x1+-parseInt(_0x6f845b(0x17e))/0x2+parseInt(_0x6f845b(0x189))/0x3+-parseInt(_0x6f845b(0x181))/0x4+parseInt(_0x6f845b(0x185))/0x5*(parseInt(_0x6f845b(0x188))/0x6)+-parseInt(_0x6f845b(0x187))/0x7*(-parseInt(_0x6f845b(0x17a))/0x8)+parseInt(_0x6f845b(0x184))/0x9;if(_0x34fa2e===_0x23016e)break;else _0x285d1f['push'](_0x285d1f['shift']());}catch(_0xb79e74){_0x285d1f['push'](_0x285d1f['shift']());}}}(_0x2849,0x5db04));import{Plugin as _0x2c9338}from'ckeditor5/src/core.js';import{Notification as _0x50b224}from'ckeditor5/src/ui.js';function _0x18e6(_0x597ffe,_0x556f4d){const _0x2849fd=_0x2849();return _0x18e6=function(_0x18e635,_0x70a206){_0x18e635=_0x18e635-0x178;let _0x42ac72=_0x2849fd[_0x18e635];return _0x42ac72;},_0x18e6(_0x597ffe,_0x556f4d);}import{UploadcareImageEditCommand as _0x5f51b7}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x50ed2b}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x227a38}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x2c9338{static get[_0x5d1c18(0x178)](){const _0x48ee5a=_0x5d1c18;return _0x48ee5a(0x186);}static get[_0x5d1c18(0x17b)](){const _0x57a209=_0x5d1c18;return[_0x227a38,_0x50b224,_0x57a209(0x183),_0x57a209(0x18b)];}static get[_0x5d1c18(0x17d)](){return!0x0;}static get[_0x5d1c18(0x182)](){return!0x0;}[_0x5d1c18(0x17f)](){const _0x8f0624=_0x5d1c18,{editor:_0x496c3f}=this;_0x496c3f[_0x8f0624(0x17c)][_0x8f0624(0x180)](_0x8f0624(0x18c),new _0x5f51b7(_0x496c3f)),_0x496c3f[_0x8f0624(0x17c)][_0x8f0624(0x180)](_0x8f0624(0x18a),new _0x50ed2b(_0x496c3f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1706af}from'ckeditor5/src/core.js';import{ButtonView as _0xb81b7}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x24a764}from'ckeditor5/src/icons.js';import{createElement as _0x27f59a}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 _0x1706af{['_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 _0x30d543=this['editor'];_0x30d543['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3ae9de=>{const _0x3c7071=_0x30d543['commands']['get']('uploadcareImageEdit'),_0x2642dc=new _0xb81b7(_0x3ae9de),t=_0x3ae9de['t'];return _0x2642dc['set']({'icon':_0x24a764,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2642dc['bind']('isEnabled')['to'](_0x3c7071),_0x2642dc['bind']('isOn')['to'](_0x3c7071,'isActive'),this['listenTo'](_0x2642dc,'execute',()=>{_0x30d543['execute']('uploadcareImageEdit'),_0x30d543['editing']['view']['focus']();}),_0x2642dc;}),this['_initConfig']();}['_initConfig'](){const _0x48fddf=_0x27f59a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x48fddf),this['listenTo'](this['editor'],'destroy',()=>{_0x48fddf['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3daa(){const _0xf9e667=['72116BXGkqo','imageInline','change','576HPxoPr','model','setAttributes','element','5718ASvGaY','execute','830515CvfQKj','199860BBmfoK','document','getSelectedElement','isEnabled','45qESMFD','srcset','sizes','refresh','5348916SmNTfL','editor','imageBlock','2660jPdksO','370tETGxQ','removeAttribute','selection','51592HDFkNa','678piGGzJ','5262ZZXgWu'];_0x3daa=function(){return _0xf9e667;};return _0x3daa();}function _0x1961(_0x513e11,_0x1b5db0){const _0x3daaef=_0x3daa();return _0x1961=function(_0x1961b2,_0x2fe515){_0x1961b2=_0x1961b2-0x9f;let _0x409710=_0x3daaef[_0x1961b2];return _0x409710;},_0x1961(_0x513e11,_0x1b5db0);}const _0x3c6075=_0x1961;(function(_0x199b4f,_0x53312d){const _0x438961=_0x1961,_0x2b2711=_0x199b4f();while(!![]){try{const _0x16e680=-parseInt(_0x438961(0xa6))/0x1+parseInt(_0x438961(0xb7))/0x2*(parseInt(_0x438961(0xb8))/0x3)+-parseInt(_0x438961(0xa7))/0x4*(-parseInt(_0x438961(0xab))/0x5)+-parseInt(_0x438961(0xa4))/0x6*(parseInt(_0x438961(0xb2))/0x7)+parseInt(_0x438961(0xb6))/0x8*(parseInt(_0x438961(0xa0))/0x9)+parseInt(_0x438961(0xb3))/0xa*(-parseInt(_0x438961(0xb9))/0xb)+parseInt(_0x438961(0xaf))/0xc;if(_0x16e680===_0x53312d)break;else _0x2b2711['push'](_0x2b2711['shift']());}catch(_0x777de3){_0x2b2711['push'](_0x2b2711['shift']());}}}(_0x3daa,0x72257));import{Command as _0x3ff81b}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x3ff81b{[_0x3c6075(0xae)](){const _0x537607=_0x3c6075,_0xb11bb2=this[_0x537607(0xb0)][_0x537607(0xa1)][_0x537607(0xa8)][_0x537607(0xb5)][_0x537607(0xa9)]();this[_0x537607(0xaa)]=Boolean(_0xb11bb2&&(_0xb11bb2['is'](_0x537607(0xa3),_0x537607(0xb1))||_0xb11bb2['is'](_0x537607(0xa3),_0x537607(0xba))));}[_0x3c6075(0xa5)](_0x76dca9){const _0x2e6307=_0x3c6075,_0x2160d5=this[_0x2e6307(0xb0)][_0x2e6307(0xa1)][_0x2e6307(0xa8)][_0x2e6307(0xb5)][_0x2e6307(0xa9)]();this[_0x2e6307(0xb0)][_0x2e6307(0xa1)][_0x2e6307(0x9f)](_0x482c6f=>{const _0x469d78=_0x2e6307;_0x482c6f[_0x469d78(0xa2)](_0x76dca9,_0x2160d5),_0x482c6f[_0x469d78(0xb4)](_0x469d78(0xac),_0x2160d5),_0x482c6f[_0x469d78(0xb4)](_0x469d78(0xad),_0x2160d5);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1dbc(){var _0x486d08=['2CWPKcB','3936630PJilqt','isPremiumPlugin','requires','211540TcyqWO','isOfficialPlugin','424928CcUqCH','174816vlhAEP','2786693nwhYsN','593397SaQNVV','48YLDuqw','pluginName','UploadcareImageEdit','30gvNNMR','162190qfVCkT'];_0x1dbc=function(){return _0x486d08;};return _0x1dbc();}var _0x28f911=_0x2aec;(function(_0x379b49,_0x30b7a6){var _0xe1b1d0=_0x2aec,_0x1701cc=_0x379b49();while(!![]){try{var _0x5d1afd=-parseInt(_0xe1b1d0(0x82))/0x1*(-parseInt(_0xe1b1d0(0x7e))/0x2)+parseInt(_0xe1b1d0(0x78))/0x3+-parseInt(_0xe1b1d0(0x84))/0x4+-parseInt(_0xe1b1d0(0x7d))/0x5*(parseInt(_0xe1b1d0(0x7c))/0x6)+parseInt(_0xe1b1d0(0x77))/0x7+parseInt(_0xe1b1d0(0x79))/0x8*(parseInt(_0xe1b1d0(0x76))/0x9)+-parseInt(_0xe1b1d0(0x7f))/0xa;if(_0x5d1afd===_0x30b7a6)break;else _0x1701cc['push'](_0x1701cc['shift']());}catch(_0x56aa5d){_0x1701cc['push'](_0x1701cc['shift']());}}}(_0x1dbc,0x3ff09));import{Plugin as _0x4adca9}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0xf2d2d0}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x2aec(_0x355ba4,_0x4fdca0){var _0x1dbc57=_0x1dbc();return _0x2aec=function(_0x2aec51,_0x5a99b0){_0x2aec51=_0x2aec51-0x76;var _0x131799=_0x1dbc57[_0x2aec51];return _0x131799;},_0x2aec(_0x355ba4,_0x4fdca0);}import{UploadcareImageEditUI as _0x3c13e9}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x4adca9{static get[_0x28f911(0x7a)](){var _0x55467f=_0x28f911;return _0x55467f(0x7b);}static get[_0x28f911(0x81)](){return[_0xf2d2d0,_0x3c13e9];}static get[_0x28f911(0x83)](){return!0x0;}static get[_0x28f911(0x80)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc9f227=_0x100e;(function(_0x5096bd,_0x43d245){const _0x2df012=_0x100e,_0xa5deb7=_0x5096bd();while(!![]){try{const _0x1a5b5b=parseInt(_0x2df012(0x164))/0x1+-parseInt(_0x2df012(0x16d))/0x2*(parseInt(_0x2df012(0x161))/0x3)+-parseInt(_0x2df012(0x145))/0x4*(parseInt(_0x2df012(0x15c))/0x5)+-parseInt(_0x2df012(0x15d))/0x6*(-parseInt(_0x2df012(0x132))/0x7)+-parseInt(_0x2df012(0x173))/0x8*(-parseInt(_0x2df012(0x144))/0x9)+-parseInt(_0x2df012(0x155))/0xa+parseInt(_0x2df012(0x14f))/0xb*(parseInt(_0x2df012(0x178))/0xc);if(_0x1a5b5b===_0x43d245)break;else _0xa5deb7['push'](_0xa5deb7['shift']());}catch(_0x22fd14){_0xa5deb7['push'](_0xa5deb7['shift']());}}}(_0x1ca4,0x6581c));import{Plugin as _0x5c4198}from'ckeditor5/src/core.js';import{IconDropbox as _0x3acb00,IconFacebook as _0x1f4921,IconGoogleDrive as _0x1781c2,IconGooglePhotos as _0x198bb2,IconUploadcareImageUpload as _0x52b1b8,IconUploadcareLink as _0x216cbf,IconOneDrive as _0x35ddd6}from'ckeditor5/src/icons.js';import{ButtonView as _0x376b0a,MenuBarMenuListItemButtonView as _0x53e76e}from'ckeditor5/src/ui.js';function _0x100e(_0x6f1231,_0x39bb91){const _0x1ca4e1=_0x1ca4();return _0x100e=function(_0x100e93,_0x6e0b9f){_0x100e93=_0x100e93-0x131;let _0x5af94d=_0x1ca4e1[_0x100e93];return _0x5af94d;},_0x100e(_0x6f1231,_0x39bb91);}import{UploadcareSource as _0x5d96ff}from'./uploadcareconfig.js';import{getTranslation as _0x354436}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 _0x5c4198{[_0xc9f227(0x13e)];[_0xc9f227(0x143)];static get[_0xc9f227(0x15e)](){const _0x39fed1=_0xc9f227;return _0x39fed1(0x183);}static get[_0xc9f227(0x17c)](){return!0x0;}static get[_0xc9f227(0x181)](){return!0x0;}[_0xc9f227(0x151)](){const _0x3d3487=_0xc9f227;this[_0x3d3487(0x13e)]=this[_0x3d3487(0x167)][_0x3d3487(0x148)][_0x3d3487(0x15a)](_0x3d3487(0x13e));const _0xff9c52=this[_0x3d3487(0x167)];this[_0x3d3487(0x143)]=setInterval(()=>{const _0x32671c=_0x3d3487;let _0x3a08c9;for(const _0x3d9478 in _0xff9c52){const _0x4a3003=_0x3d9478,_0x1a48b3=_0xff9c52[_0x4a3003];if(_0x32671c(0x179)==_0x1a48b3||_0x32671c(0x156)==_0x1a48b3||_0x32671c(0x162)==_0x1a48b3||_0x32671c(0x138)==_0x1a48b3||_0x32671c(0x13d)==_0x1a48b3||_0x32671c(0x14d)==_0x1a48b3||_0x32671c(0x163)==_0x1a48b3||_0x32671c(0x139)==_0x1a48b3){delete _0xff9c52[_0x4a3003],_0x3a08c9=_0x1a48b3,clearInterval(this[_0x32671c(0x143)]),this[_0x32671c(0x143)]=void 0x0;break;}}_0x32671c(0x156)==_0x3a08c9&&_0xff9c52[_0x32671c(0x134)](_0x32671c(0x16a)),_0x32671c(0x162)==_0x3a08c9&&_0xff9c52[_0x32671c(0x134)](_0x32671c(0x15b)),_0x32671c(0x138)==_0x3a08c9&&_0xff9c52[_0x32671c(0x134)](_0x32671c(0x137)),_0x32671c(0x13d)==_0x3a08c9&&_0xff9c52[_0x32671c(0x134)](_0x32671c(0x177),_0x32671c(0x152)),_0x32671c(0x14d)==_0x3a08c9&&_0xff9c52[_0x32671c(0x134)](_0x32671c(0x16c)),_0x32671c(0x163)==_0x3a08c9&&_0xff9c52[_0x32671c(0x134)](_0x32671c(0x14a)),_0x32671c(0x139)==_0x3a08c9&&_0xff9c52[_0x32671c(0x134)](_0x32671c(0x168));},0x3e8);}[_0xc9f227(0x166)](){const _0x383f93=_0xc9f227,{editor:_0x147f5c}=this,_0x20fd22=_0x147f5c[_0x383f93(0x142)][_0x383f93(0x15a)](_0x383f93(0x174));if(!_0x20fd22)return;const _0x1fcd0b=this[_0x383f93(0x165)](_0x147f5c[_0x383f93(0x148)][_0x383f93(0x15a)](_0x383f93(0x16e)))[_0x383f93(0x147)]((_0x4a7ff7,_0x5cb88c)=>{const _0x4461bb=_0x383f93,_0x216bcb=this[_0x4461bb(0x158)](_0x5cb88c[_0x4461bb(0x13c)]);return _0x4a7ff7[_0x216bcb]||(_0x4a7ff7[_0x216bcb]=[]),_0x4a7ff7[_0x216bcb][_0x4461bb(0x172)](_0x5cb88c),_0x4a7ff7;},{});_0x147f5c[_0x383f93(0x182)][_0x383f93(0x175)](_0x383f93(0x153))&&_0x147f5c[_0x383f93(0x142)][_0x383f93(0x15a)](_0x383f93(0x174))&&Object[_0x383f93(0x140)](_0x1fcd0b)[_0x383f93(0x171)](([_0x58b1c0,_0x4747a5])=>{const _0x2e3552=_0x383f93;_0x147f5c[_0x2e3552(0x182)][_0x2e3552(0x15a)](_0x2e3552(0x153))[_0x2e3552(0x13f)]({'name':_0x58b1c0,'observable':()=>_0x20fd22,'buttonViewCreator':()=>this[_0x2e3552(0x159)](_0x4747a5),'formViewCreator':()=>this[_0x2e3552(0x13b)](_0x4747a5),'menuBarButtonViewCreator':()=>this[_0x2e3552(0x157)](_0x4747a5),'override':_0x2e3552(0x133)!==_0x58b1c0});});}[_0xc9f227(0x14c)](){const _0x4f5b83=_0xc9f227;super[_0x4f5b83(0x14c)](),this[_0x4f5b83(0x143)]&&clearInterval(this[_0x4f5b83(0x143)]);}[_0xc9f227(0x165)](_0x4bd757){const _0x55a18d=_0xc9f227,{locale:_0x46ddcd}=this[_0x55a18d(0x167)];return _0x4bd757[_0x55a18d(0x14e)](_0x4283da=>{const _0x14fbd5=_0x55a18d,_0x251d98=_0x354436(_0x46ddcd,_0x4283da,_0x14fbd5(0x13a));switch(_0x4283da){case _0x5d96ff[_0x14fbd5(0x170)]:return{'icon':_0x52b1b8,'type':_0x5d96ff[_0x14fbd5(0x170)],..._0x251d98};case _0x5d96ff[_0x14fbd5(0x17f)]:return{'icon':_0x216cbf,'type':_0x5d96ff[_0x14fbd5(0x17f)],..._0x251d98};case _0x5d96ff[_0x14fbd5(0x146)]:return{'icon':_0x3acb00,'type':_0x5d96ff[_0x14fbd5(0x146)],..._0x251d98};case _0x5d96ff[_0x14fbd5(0x150)]:return{'icon':_0x1f4921,'type':_0x5d96ff[_0x14fbd5(0x150)],..._0x251d98};case _0x5d96ff[_0x14fbd5(0x180)]:return{'icon':_0x1781c2,'type':_0x5d96ff[_0x14fbd5(0x180)],..._0x251d98};case _0x5d96ff[_0x14fbd5(0x17b)]:return{'icon':_0x198bb2,'type':_0x5d96ff[_0x14fbd5(0x17b)],..._0x251d98};case _0x5d96ff[_0x14fbd5(0x16f)]:return{'icon':_0x35ddd6,'type':_0x5d96ff[_0x14fbd5(0x16f)],..._0x251d98};}});}[_0xc9f227(0x158)](_0x1c0174){const _0xfec181=_0xc9f227;switch(_0x1c0174){case _0x5d96ff[_0xfec181(0x170)]:return _0xfec181(0x141);case _0x5d96ff[_0xfec181(0x17f)]:return _0xfec181(0x135);default:return _0xfec181(0x133);}}[_0xc9f227(0x136)](_0x36e3cc,_0x521759){const _0x484b89=_0xc9f227,_0x367bb0=this[_0x484b89(0x167)],_0x27d592=new _0x36e3cc(_0x367bb0[_0x484b89(0x131)]),_0x43691e=_0x367bb0[_0x484b89(0x142)][_0x484b89(0x15a)](_0x484b89(0x174));return _0x27d592[_0x484b89(0x169)](_0x484b89(0x17a))['to'](_0x43691e),_0x27d592['on'](_0x484b89(0x176),()=>{const _0x5eee87=_0x484b89;_0x43691e[_0x5eee87(0x176)](_0x521759);}),_0x27d592;}[_0xc9f227(0x159)](_0x1e2ad5){const _0x42272f=_0xc9f227,{locale:_0x595ade}=this[_0x42272f(0x167)],_0x5415d5=this[_0x42272f(0x167)][_0x42272f(0x182)][_0x42272f(0x15a)](_0x42272f(0x153)),_0xf60c01=_0x1e2ad5[0x0],_0x4fdc15=this[_0x42272f(0x136)](_0x376b0a,_0xf60c01[_0x42272f(0x13c)]);return _0x4fdc15[_0x42272f(0x160)]=_0xf60c01[_0x42272f(0x160)],_0x4fdc15[_0x42272f(0x169)](_0x42272f(0x16b))['to'](_0x5415d5,_0x42272f(0x14b),_0x16f26a=>_0x354436(_0x595ade,_0xf60c01[_0x42272f(0x13c)],_0x16f26a?_0x42272f(0x17e):_0x42272f(0x13a))[_0x42272f(0x15f)]),_0x4fdc15[_0x42272f(0x149)]=!0x0,_0x4fdc15;}[_0xc9f227(0x13b)](_0x1fea20){const _0x48d721=_0xc9f227,{locale:_0x54aa8f}=this[_0x48d721(0x167)],_0x483eae=this[_0x48d721(0x167)][_0x48d721(0x182)][_0x48d721(0x15a)](_0x48d721(0x153));return _0x1fea20[_0x48d721(0x14e)](_0x3f5d29=>{const _0x17cabb=_0x48d721,_0x387583=this[_0x17cabb(0x136)](_0x376b0a,_0x3f5d29[_0x17cabb(0x13c)]);return _0x387583[_0x17cabb(0x154)]=!0x0,_0x387583[_0x17cabb(0x160)]=_0x3f5d29[_0x17cabb(0x160)],_0x387583[_0x17cabb(0x169)](_0x17cabb(0x16b))['to'](_0x483eae,_0x17cabb(0x14b),_0x307e1d=>_0x354436(_0x54aa8f,_0x3f5d29[_0x17cabb(0x13c)],_0x307e1d?_0x17cabb(0x17e):_0x17cabb(0x13a))[_0x17cabb(0x15f)]),_0x387583;});}[_0xc9f227(0x157)](_0x27ada1){const _0x349ac5=_0xc9f227;return _0x27ada1[_0x349ac5(0x14e)](_0x5c5692=>{const _0x23542f=_0x349ac5,_0x547684=this[_0x23542f(0x136)](_0x53e76e,_0x5c5692[_0x23542f(0x13c)]);return _0x547684[_0x23542f(0x160)]=_0x5c5692[_0x23542f(0x160)],_0x547684[_0x23542f(0x16b)]=_0x5c5692[_0x23542f(0x17d)],_0x547684;});}}function _0x1ca4(){const _0x5d39f8=['322125vDjPAx','uploadcareLicenseKeyExpired','uploadcareLicenseKeyTrialLimit','551616klHYzZ','_normalizeConfigSourceList','afterInit','editor','usageLimit','bind','invalid','label','evaluationLimit','12qUKpRm','uploadcare.uploader.sourceList','OneDrive','Local','forEach','push','6360SdmbrW','uploadcare','has','execute','featureNotAllowed','12JtOJVP','uploadcareLicenseKeyValid','isEnabled','GPhotos','isOfficialPlugin','shortText','Replace','URL','GDrive','isPremiumPlugin','plugins','UploadcareUI','locale','816837mBNGEG','assetManager','_showLicenseError','url','_createButton','domainLimit','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyUsageLimit','Insert','_createDropdownButtons','type','uploadcareLicenseKeyNotAllowed','licenseKey','registerIntegration','entries','upload','commands','_licenseKeyCheckInterval','2151DvhelQ','4DyoSHs','Dropbox','reduce','config','tooltip','trialLimit','isImageSelected','destroy','uploadcareLicenseKeyEvaluationLimit','map','5344097kNyxzy','Facebook','init','Uploadcare','ImageInsertUI','withText','1642510dfQwKg','uploadcareLicenseKeyInvalid','_createMenuBarButtons','_getIntegrationKey','_createToolbarButton','get','expired','1182785SNFirJ','12XVawJI','pluginName','text','icon'];_0x1ca4=function(){return _0x5d39f8;};return _0x1ca4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x47374b}from'ckeditor5/src/core.js';import{FileRepository as _0x157103}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x37190d}from'./uploadcareediting.js';import{UploadUtils as _0x1bbeb0}from'./utils/uploadutils.js';import{getImageUrls as _0x101187}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x47374b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x157103,_0x37190d];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1eb8dc=this['editor'];if(!!!_0x1eb8dc['config']['get']('uploadcare'))return;_0x1eb8dc['plugins']['get'](_0x157103)['createUploadAdapter']=_0x376201=>new k(_0x376201,_0x1eb8dc),_0x1eb8dc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x26a449,{imageElement:_0x17bfb0,data:_0x45e0be})=>{_0x1eb8dc['model']['change'](_0x5c7819=>{_0x5c7819['setAttribute']('uploadcareImageId',_0x45e0be['uploadcareImageId'],_0x17bfb0);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x11885f,_0x55b28f){this['loader']=_0x11885f,this['editor']=_0x55b28f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4809ac=await this['loader']['file'];return _0x1bbeb0['upload']({'file':_0x4809ac,'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':_0x2765d9=>{_0x2765d9&&_0x2765d9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2765d9['value']);}})['then'](async _0x33ede0=>{const {imageFallbackUrl:_0x69d01,imageSources:_0x1728ff}=_0x101187(_0x33ede0['cdnUrl'],_0x33ede0['imageInfo']['width']);return{'uploadcareImageId':_0x33ede0['uuid'],'default':_0x69d01,'sources':_0x1728ff};})['catch'](()=>{const _0x3a585e=t('Cannot\x20upload\x20file:')+('\x20'+_0x4809ac['name']+'.');return Promise['reject'](_0x3a585e);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x35c8c0}from'../uploadcareconfig.js';export function getTranslation(_0x5dfaf2,_0x65416c,_0x4b6823){const t=_0x5dfaf2['t'],_0x391853=_0x5dfaf2['t'];switch(_0x65416c){case _0x35c8c0['Local']:return{'text':_0x391853('Insert'===_0x4b6823?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x391853('From\x20computer')};case _0x35c8c0['URL']:return{'text':'Insert'===_0x4b6823?_0x391853('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x391853('Via\x20URL')};case _0x35c8c0['Dropbox']:return{'text':t('Insert'===_0x4b6823?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x35c8c0['Facebook']:return{'text':t('Insert'===_0x4b6823?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x35c8c0['GDrive']:return{'text':t('Insert'===_0x4b6823?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x35c8c0['GPhotos']:return{'text':t('Insert'===_0x4b6823?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x35c8c0['OneDrive']:return{'text':t('Insert'===_0x4b6823?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x65416c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x70814e=_0x15bb;(function(_0x4413b4,_0xe01445){var _0x344ed3=_0x15bb,_0x324662=_0x4413b4();while(!![]){try{var _0x3b10c7=parseInt(_0x344ed3(0x1df))/0x1+parseInt(_0x344ed3(0x1d8))/0x2+-parseInt(_0x344ed3(0x1e1))/0x3+-parseInt(_0x344ed3(0x1de))/0x4+-parseInt(_0x344ed3(0x1db))/0x5*(-parseInt(_0x344ed3(0x1dd))/0x6)+parseInt(_0x344ed3(0x1d9))/0x7*(-parseInt(_0x344ed3(0x1d3))/0x8)+parseInt(_0x344ed3(0x1d1))/0x9;if(_0x3b10c7===_0xe01445)break;else _0x324662['push'](_0x324662['shift']());}catch(_0x4cedb6){_0x324662['push'](_0x324662['shift']());}}}(_0x27dc,0xe3ea1));import{FocusTracker as _0x2afe9c}from'ckeditor5/src/utils.js';import{View as _0x3015cd,FocusCycler as _0x1fcb92}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x15bb(_0x3ccd4b,_0x30037d){var _0x27dc98=_0x27dc();return _0x15bb=function(_0x15bbf9,_0x4b6c65){_0x15bbf9=_0x15bbf9-0x1d0;var _0x5a4b91=_0x27dc98[_0x15bbf9];return _0x5a4b91;},_0x15bb(_0x3ccd4b,_0x30037d);}export class DialogFocusManagerView extends _0x3015cd{[_0x70814e(0x1d7)];[_0x70814e(0x1d5)];constructor(_0x4564f2){var _0x517abe=_0x70814e;super(_0x4564f2),this[_0x517abe(0x1d7)]=new _0x2afe9c(),this[_0x517abe(0x1d5)]=new _0x1fcb92({'focusables':this[_0x517abe(0x1d2)](),'focusTracker':this[_0x517abe(0x1d7)]});}[_0x70814e(0x1d0)](){var _0x71e222=_0x70814e;return{'tag':_0x71e222(0x1d6),'attributes':{'aria-hidden':_0x71e222(0x1e0),'tabindex':'0'},'on':{'focus':this[_0x71e222(0x1d4)]['to'](()=>{var _0x435da4=_0x71e222;this[_0x435da4(0x1d5)][_0x435da4(0x1dc)](_0x435da4(0x1da));})}};}}function _0x27dc(){var _0x2bdf78=['1667089MRdYez','true','3260520dNofYM','getFocusableElement','1772982KJadUE','createCollection','326056QjLypT','bindTemplate','focusCycler','div','focusTracker','1170900lcOdAx','42kbHNvY','forwardCycle','30GzggdH','fire','1274874XJZOgF','5837968SKanHo'];_0x27dc=function(){return _0x2bdf78;};return _0x27dc();}
|