@ckeditor/ckeditor5-uploadcare 47.0.0-alpha.1 → 47.0.0-alpha.3
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 _0x185b52=_0x463a;(function(_0x4a4a2b,_0x28120a){const _0x4fb0cb=_0x463a,_0x12d4bb=_0x4a4a2b();while(!![]){try{const _0x404926=parseInt(_0x4fb0cb(0x18e))/0x1*(-parseInt(_0x4fb0cb(0x194))/0x2)+-parseInt(_0x4fb0cb(0x17b))/0x3+-parseInt(_0x4fb0cb(0x149))/0x4*(parseInt(_0x4fb0cb(0x171))/0x5)+parseInt(_0x4fb0cb(0x180))/0x6*(-parseInt(_0x4fb0cb(0x14e))/0x7)+parseInt(_0x4fb0cb(0x166))/0x8*(parseInt(_0x4fb0cb(0x159))/0x9)+-parseInt(_0x4fb0cb(0x187))/0xa*(-parseInt(_0x4fb0cb(0x145))/0xb)+parseInt(_0x4fb0cb(0x16c))/0xc*(parseInt(_0x4fb0cb(0x14c))/0xd);if(_0x404926===_0x28120a)break;else _0x12d4bb['push'](_0x12d4bb['shift']());}catch(_0x644c19){_0x12d4bb['push'](_0x12d4bb['shift']());}}}(_0x5c40,0x923fb));import{Plugin as _0x56c916}from'ckeditor5/src/core.js';import{Dialog as _0x3b4442}from'ckeditor5/src/ui.js';import{createElement as _0x48a536,global as _0x46d330,uid as _0x41eb71}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3f928c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x53683d}from'./uploadcareuploadadapter.js';function _0x463a(_0x12e646,_0x249e48){const _0x5c40af=_0x5c40();return _0x463a=function(_0x463a47,_0x43809a){_0x463a47=_0x463a47-0x141;let _0xd4f941=_0x5c40af[_0x463a47];return _0xd4f941;},_0x463a(_0x12e646,_0x249e48);}import{showImageProcessingIndicator as _0x59f880}from'./utils/editingutils.js';function _0x5c40(){const _0x5bd969=['ucContextId','1896wMPNGu','requires','_initConversion','afterInit','uploadcare','36745VdFTtf','iconHrefResolver','href','input[uploadcare-file-input]','getAttribute','map','uploadcare.pubkey','querySelector','editing','imageInline','3043821TvGuXb','conversion','uploadcareImageReplace','isPremiumPlugin','listenTo','12bZdYQH','true','_initConfig','upcast','model','for','downcast','3800TMAKXu','destroy','replaceImageSource','config','_initImageProcessingIndicator','uploadcare.uploader','selection','852439vSTzte','ctxElement','removeAttribute','remove','body','join','2TpTeMQ','attributeToAttribute','_initCtx','document','#uc-icon-arrow-down','\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','commands','elementToAttribute','_configElement','25003xuskUN','PictureEditing','locale','uc-upload-ctx-provider','244YTInSa','imageBlock','_ctxElement','121381OvggAF','once','1500422vkzHLu','uc-config','isRegistered','closeMax','data-uc-image-id','getSelectedElement','view','UploadcareEditing','_initSchema','uploadcareImageId','insertImage','4518342SSevoM','editor','cleanupImage','contentLanguage','get','extend','configElement','isOfficialPlugin','pluginName','schema','execute','uploader-','fromCharCode','16alMqPM','add','init','render','appendChild'];_0x5c40=function(){return _0x5bd969;};return _0x5c40();}export class UploadcareEditing extends _0x56c916{[_0x185b52(0x144)]=null;[_0x185b52(0x14b)]=null;static get[_0x185b52(0x161)](){const _0x3f880e=_0x185b52;return _0x3f880e(0x155);}static get[_0x185b52(0x16d)](){const _0x3fd18b=_0x185b52;return[_0x3fd18b(0x146),_0x53683d,_0x3b4442];}static get[_0x185b52(0x160)](){return!0x0;}static get[_0x185b52(0x17e)](){return!0x0;}[_0x185b52(0x16b)];get[_0x185b52(0x15f)](){const _0x159b4f=_0x185b52;return this[_0x159b4f(0x144)];}get[_0x185b52(0x18f)](){const _0x5f5293=_0x185b52;return this[_0x5f5293(0x14b)];}constructor(_0x5b4d3a){const _0x2a5038=_0x185b52;super(_0x5b4d3a),this[_0x2a5038(0x16b)]=_0x41eb71();}[_0x185b52(0x168)](){const _0x539109=_0x185b52,_0x2bbe5b=this[_0x539109(0x15a)];_0x2bbe5b[_0x539109(0x142)][_0x539109(0x167)](_0x539109(0x170),new _0x3f928c(_0x2bbe5b));}[_0x185b52(0x16f)](){const _0x36a984=_0x185b52;this[_0x36a984(0x156)](),this[_0x36a984(0x16e)](),this[_0x36a984(0x182)](),this[_0x36a984(0x196)](),this[_0x36a984(0x18b)](),this[_0x36a984(0x17f)](this[_0x36a984(0x15a)],_0x36a984(0x188),()=>{const _0x43e53f=_0x36a984;this[_0x43e53f(0x144)]&&(this[_0x43e53f(0x144)][_0x43e53f(0x191)](),this[_0x43e53f(0x144)]=null),this[_0x43e53f(0x14b)]&&(this[_0x43e53f(0x14b)][_0x43e53f(0x191)](),this[_0x43e53f(0x14b)]=null);const _0x46ca17=_0x46d330[_0x43e53f(0x197)][_0x43e53f(0x178)](_0x43e53f(0x174));_0x46ca17&&_0x46ca17[_0x43e53f(0x191)]();}),async function(_0x4746d5){const _0xf444=_0x51ded4([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]),_0x3f1da6=0x3d8d0df,_0x359670=0x3dfa44f^_0x3f1da6,_0x57a745=window[_0x51ded4([0x44,0x61,0x74,0x65])][_0x51ded4([0x6e,0x6f,0x77])](),_0x595166=_0x4746d5[_0x51ded4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b3d1d=new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32ba1b=>{_0x595166[_0x51ded4([0x6f,0x6e,0x63,0x65])](_0x51ded4([0x72,0x65,0x61,0x64,0x79]),_0x32ba1b);}),_0x24c4c5={[_0x51ded4([0x6b,0x74,0x79])]:_0x51ded4([0x45,0x43]),[_0x51ded4([0x75,0x73,0x65])]:_0x51ded4([0x73,0x69,0x67]),[_0x51ded4([0x63,0x72,0x76])]:_0x51ded4([0x50,0x2d,0x32,0x35,0x36]),[_0x51ded4([0x78])]:_0x51ded4([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]),[_0x51ded4([0x79])]:_0x51ded4([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]),[_0x51ded4([0x61,0x6c,0x67])]:_0x51ded4([0x45,0x53,0x32,0x35,0x36])},_0x4b69a3=_0x595166[_0x51ded4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51ded4([0x67,0x65,0x74])](_0x51ded4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3aba8a(){let _0x1cc363,_0xc30ebd=null,_0x1d5f88=null;try{if(_0x4b69a3==_0x51ded4([0x47,0x50,0x4c]))return _0x51ded4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cc363=_0x596f9d(),!_0x1cc363)return _0x51ded4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cc363[_0x51ded4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d5f88=_0x5c340a(_0x1cc363[_0x51ded4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cc363[_0x51ded4([0x6a,0x74,0x69])])),await _0x965574()?_0x5f1d9b()?_0x5dbf49()?_0x51ded4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fbccc()?(_0x1cc363[_0x51ded4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51ded4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc30ebd=_0x2c6d43(_0x51ded4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cc363[_0x51ded4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51ded4([0x74,0x72,0x69,0x61,0x6c])&&(_0xc30ebd=_0x2c6d43(_0x51ded4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ca829()):_0x51ded4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51ded4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51ded4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51ded4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5dbf49(){const _0x7e6e00=[_0x51ded4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51ded4([0x74,0x72,0x69,0x61,0x6c])][_0x51ded4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cc363[_0x51ded4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57a745/0x3e8:0xe10*_0x359670;return _0x1cc363[_0x51ded4([0x65,0x78,0x70])]<_0x7e6e00;}function _0x5f1d9b(){const _0x31198b=_0x1cc363[_0x51ded4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31198b&&(!!_0x31198b[_0x51ded4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ded4([0x2a]))||!!_0x31198b[_0x51ded4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ded4([0x55,0x50,0x4c,0x43])));}function _0x3fbccc(){const _0x213f77=_0x463a,_0x20b060=_0x1cc363[_0x51ded4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20b060||0x0==_0x20b060[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f8c53}=new URL(window[_0x51ded4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x213f77(0x173)]);if(_0x20b060[_0x51ded4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f8c53))return!0x0;const _0x42068e=_0x4f8c53[_0x51ded4([0x73,0x70,0x6c,0x69,0x74])](_0x51ded4([0x2e]));return _0x20b060[_0x51ded4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1937cf=>_0x1937cf[_0x51ded4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ded4([0x2a])))[_0x51ded4([0x6d,0x61,0x70])](_0x3c519b=>_0x3c519b[_0x51ded4([0x73,0x70,0x6c,0x69,0x74])](_0x51ded4([0x2e])))[_0x51ded4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a6b83=>_0x3a6b83[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x42068e[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51ded4([0x6d,0x61,0x70])](_0x2a0621=>Array(_0x42068e[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a0621[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51ded4([0x66,0x69,0x6c,0x6c])](_0x2a0621[0x0]===_0x51ded4([0x2a])?_0x51ded4([0x2a]):'')[_0x51ded4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a0621))[_0x51ded4([0x73,0x6f,0x6d,0x65])](_0x241faf=>_0x42068e[_0x51ded4([0x65,0x76,0x65,0x72,0x79])]((_0x54744a,_0x41a6df)=>_0x241faf[_0x41a6df]===_0x54744a||_0x241faf[_0x41a6df]===_0x51ded4([0x2a])));}function _0x5ca829(){return _0xc30ebd&&_0x1d5f88?new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53d69d,_0x25489e)=>{_0xc30ebd[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x53d69d,_0x25489e),_0x1d5f88[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x1bd11d=>{_0x1bd11d!=_0x51ded4([0x56,0x61,0x6c,0x69,0x64])&&_0x53d69d(_0x1bd11d);},_0x25489e);}):_0xc30ebd||_0x1d5f88||_0x51ded4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c340a(_0x10245f,_0x20bcb1){return new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58da02=>{if(_0x59eac0())return _0x58da02(_0x51ded4([0x56,0x61,0x6c,0x69,0x64]));_0xd01a64(),_0x595166[_0x51ded4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51ded4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cafa4=!0x1;const _0x18d24b=_0x41eb71();function _0x3063f0(_0x6951f5){return!!_0x6951f5&&(typeof _0x6951f5===_0x51ded4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6951f5===_0x51ded4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6951f5[_0x51ded4([0x74,0x68,0x65,0x6e])]===_0x51ded4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6951f5[_0x51ded4([0x63,0x61,0x74,0x63,0x68])]===_0x51ded4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46288f(_0xd0690){_0x391a45(_0xd0690)[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x531ae0=>{if(!_0x531ae0||_0x531ae0[_0x51ded4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51ded4([0x6f,0x6b]))return _0x51ded4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x444aa1(_0x397f6f(_0x18d24b+_0x20bcb1))!=_0x531ae0[_0x51ded4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51ded4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51ded4([0x56,0x61,0x6c,0x69,0x64]);})[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x44a59d=>(_0x11dce5(),_0x44a59d),()=>{const _0x36ebf6=_0x7715b9();return null==_0x36ebf6?(_0x11dce5(),_0x51ded4([0x56,0x61,0x6c,0x69,0x64])):_0x51ded4(_0x57a745-_0x36ebf6>(0x27d454df^_0x3f1da6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x58da02)[_0x51ded4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58da02(_0x51ded4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1bf3df=0x3ee3e5f^_0x3f1da6;function _0x11dce5(){const _0x1853f0=_0x51ded4([0x6c,0x6c,0x63,0x74,0x2d])+_0x444aa1(_0x397f6f(_0x10245f)),_0x4ff53c=_0xdb64cf(_0x444aa1(window[_0x51ded4([0x4d,0x61,0x74,0x68])][_0x51ded4([0x63,0x65,0x69,0x6c])](_0x57a745/_0x1bf3df)));window[_0x51ded4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51ded4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1853f0,_0x4ff53c);}function _0x7715b9(){const _0x587b7a=_0x51ded4([0x6c,0x6c,0x63,0x74,0x2d])+_0x444aa1(_0x397f6f(_0x10245f)),_0x359b55=window[_0x51ded4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51ded4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x587b7a);return _0x359b55?window[_0x51ded4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdb64cf(_0x359b55),0x10)*_0x1bf3df:null;}function _0x391a45(_0x1f108d){return new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bf131,_0x106d6e)=>{_0x1f108d[_0x51ded4([0x74,0x68,0x65,0x6e])](_0x2bf131,_0x106d6e),window[_0x51ded4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x106d6e,0x3d9041f^_0x3f1da6);});}}_0x595166[_0x51ded4([0x6f,0x6e])](_0x51ded4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e937d,_0x4f3806)=>{if(_0x4f3806[0x0]!=_0x10245f)return _0x58da02(_0x51ded4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f3806[0x1]={..._0x4f3806[0x1],[_0x51ded4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18d24b};},{[_0x51ded4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51ded4([0x68,0x69,0x67,0x68])}),_0x595166[_0x51ded4([0x6f,0x6e])](_0x51ded4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27655b=>{_0x3063f0(_0x27655b[_0x51ded4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cafa4=!0x0,_0x46288f(_0x27655b[_0x51ded4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51ded4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51ded4([0x6c,0x6f,0x77])}),_0x4b3d1d[_0x51ded4([0x74,0x68,0x65,0x6e])](()=>{_0x5cafa4||_0x58da02(_0x51ded4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59eac0(){return _0x595166[_0x51ded4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51ded4([0x76,0x69,0x65,0x77])][_0x51ded4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51ded4([0x61,0x75,0x74,0x6f]);}function _0xd01a64(){_0x595166[_0x51ded4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51ded4([0x76,0x69,0x65,0x77])][_0x51ded4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51ded4([0x61,0x75,0x74,0x6f]);}}function _0x2c6d43(_0x56360){const _0x4645cb=[new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49713e=>setTimeout(_0x49713e,0x3d1ee13^_0x3f1da6)),_0x4b3d1d[_0x51ded4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bf3a9=>{let _0xb1429d=0x0;_0x595166[_0x51ded4([0x6d,0x6f,0x64,0x65,0x6c])][_0x51ded4([0x6f,0x6e])](_0x51ded4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ced7f,_0x46a293)=>{_0x46a293[0x0][_0x51ded4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb1429d++,_0xb1429d==(0x3d8d127^_0x3f1da6)&&(_0x4bf3a9(),_0x5ced7f[_0x51ded4([0x6f,0x66,0x66])]());});}))];return window[_0x51ded4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51ded4([0x72,0x61,0x63,0x65])](_0x4645cb)[_0x51ded4([0x74,0x68,0x65,0x6e])](()=>_0x56360);}async function _0xf7f50a(){await _0x4b3d1d,_0x595166[_0x51ded4([0x6d,0x6f,0x64,0x65,0x6c])][_0x51ded4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x465d0f,_0x595166[_0x51ded4([0x6d,0x6f,0x64,0x65,0x6c])][_0x51ded4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x465d0f,_0x595166[_0x51ded4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51ded4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2ea7f0(_0x4f48f6){const _0x159750=_0x1de330();_0x595166[_0x159750]=_0x51ded4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f48f6,_0x4f48f6!=_0x51ded4([0x56,0x61,0x6c,0x69,0x64])&&_0xf7f50a();}function _0x1de330(){const _0x537f8c=window[_0x51ded4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51ded4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51ded4([0x6e,0x6f,0x77])]())[_0x51ded4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51ded4([0x2e]),'');let _0x1b36ff=_0x51ded4([0x52]);for(let _0x3c9ffb=0x0;_0x3c9ffb<_0x537f8c[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c9ffb+=0x2){let _0x46fc42=window[_0x51ded4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x537f8c[_0x51ded4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c9ffb,_0x3c9ffb+0x2));_0x46fc42>=_0xf444[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46fc42-=_0xf444[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b36ff+=_0xf444[_0x46fc42];}return _0x1b36ff;}function _0x596f9d(){const _0xfd0b29=_0x4b69a3[_0x51ded4([0x73,0x70,0x6c,0x69,0x74])](_0x51ded4([0x2e]));if(0x3!=_0xfd0b29[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4901aa(_0xfd0b29[0x1]);function _0x4901aa(_0x4404ed){const _0x4f8675=_0x4cdc55(_0x4404ed);return _0x4f8675&&_0x438745()?_0x4f8675:null;function _0x438745(){const _0x30eb40=_0x4f8675[_0x51ded4([0x6a,0x74,0x69])],_0x3423f5=window[_0x51ded4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30eb40[_0x51ded4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30eb40[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x454b66={..._0x4f8675,[_0x51ded4([0x6a,0x74,0x69])]:_0x30eb40[_0x51ded4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30eb40[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x454b66[_0x51ded4([0x76,0x63])],_0x397f6f(_0x454b66)==_0x3423f5;}}}async function _0x965574(){let _0x570f0c=!0x0;try{const _0xc85f8f=_0x4b69a3[_0x51ded4([0x73,0x70,0x6c,0x69,0x74])](_0x51ded4([0x2e])),[_0x46cbd5,_0x146cbd,_0x574ef6]=_0xc85f8f;return _0xc809ed(_0x46cbd5),await _0x2e2003(_0x46cbd5,_0x146cbd,_0x574ef6),_0x570f0c;}catch{return!0x1;}function _0xc809ed(_0x44d820){const _0x30c96d=_0x4cdc55(_0x44d820);_0x30c96d&&_0x30c96d[_0x51ded4([0x61,0x6c,0x67])]==_0x51ded4([0x45,0x53,0x32,0x35,0x36])||(_0x570f0c=!0x1);}async function _0x2e2003(_0xafe4f7,_0xfa635,_0x51c50e){const _0x1e7ff0=window[_0x51ded4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51ded4([0x66,0x72,0x6f,0x6d])](_0x56566f(_0x51c50e),_0x328e1b=>_0x328e1b[_0x51ded4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1da65c=new window[(_0x51ded4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51ded4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xafe4f7+_0x51ded4([0x2e])+_0xfa635),_0x55b95c=window[_0x51ded4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51ded4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55b95c)return;const _0x4fa9c8=await _0x55b95c[_0x51ded4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51ded4([0x6a,0x77,0x6b]),_0x24c4c5,{[_0x51ded4([0x6e,0x61,0x6d,0x65])]:_0x51ded4([0x45,0x43,0x44,0x53,0x41]),[_0x51ded4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51ded4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51ded4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55b95c[_0x51ded4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51ded4([0x6e,0x61,0x6d,0x65])]:_0x51ded4([0x45,0x43,0x44,0x53,0x41]),[_0x51ded4([0x68,0x61,0x73,0x68])]:{[_0x51ded4([0x6e,0x61,0x6d,0x65])]:_0x51ded4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fa9c8,_0x1e7ff0,_0x1da65c)||(_0x570f0c=!0x1);}}function _0x4cdc55(_0x5b4b5e){return _0x5b4b5e[_0x51ded4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51ded4([0x65,0x79]))?JSON[_0x51ded4([0x70,0x61,0x72,0x73,0x65])](_0x56566f(_0x5b4b5e)):null;}function _0x56566f(_0x20ff98){return window[_0x51ded4([0x61,0x74,0x6f,0x62])](_0x20ff98[_0x51ded4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51ded4([0x2b]))[_0x51ded4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51ded4([0x2f])));}function _0x397f6f(_0x535a87){let _0x45582a=0x1505;function _0x4a7c70(_0x30b976){for(let _0x2e577a=0x0;_0x2e577a<_0x30b976[_0x51ded4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e577a++){const _0x452564=_0x30b976[_0x51ded4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e577a);_0x45582a=(_0x45582a<<0x5)+_0x45582a+_0x452564,_0x45582a&=_0x45582a;}}function _0x1739ed(_0x4413d6){Array[_0x51ded4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4413d6)?_0x4413d6[_0x51ded4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1739ed):_0x4413d6&&typeof _0x4413d6==_0x51ded4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51ded4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4413d6)[_0x51ded4([0x73,0x6f,0x72,0x74])]()[_0x51ded4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a6be6,_0x1c6de6])=>{_0x4a7c70(_0x1a6be6),_0x1739ed(_0x1c6de6);}):_0x4a7c70(window[_0x51ded4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4413d6));}return _0x1739ed(_0x535a87),_0x45582a>>>0x0;}function _0x444aa1(_0x2ae040){return _0x2ae040[_0x51ded4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51ded4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51ded4([0x30]));}function _0xdb64cf(_0x229e5e){return _0x229e5e[_0x51ded4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51ded4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51ded4([0x6a,0x6f,0x69,0x6e])]('');}function _0x465d0f(){}function _0x51ded4(_0x5c778d){const _0x5c8ce6=_0x463a;return _0x5c778d[_0x5c8ce6(0x176)](_0x4f95d8=>String[_0x5c8ce6(0x165)](_0x4f95d8))[_0x5c8ce6(0x193)]('');}_0x2ea7f0(await _0x3aba8a());}(this);}[_0x185b52(0x156)](){const _0x16aad8=_0x185b52,_0x52e68c=this[_0x16aad8(0x15a)][_0x16aad8(0x184)][_0x16aad8(0x162)];_0x52e68c[_0x16aad8(0x150)](_0x16aad8(0x14a))&&_0x52e68c[_0x16aad8(0x15e)](_0x16aad8(0x14a),{'allowAttributes':[_0x16aad8(0x157)]}),_0x52e68c[_0x16aad8(0x150)](_0x16aad8(0x17a))&&_0x52e68c[_0x16aad8(0x15e)](_0x16aad8(0x17a),{'allowAttributes':[_0x16aad8(0x157)]});}[_0x185b52(0x16e)](){const _0x508aea=_0x185b52,_0x4af02b=this[_0x508aea(0x15a)];_0x4af02b[_0x508aea(0x17c)][_0x508aea(0x185)](_0x508aea(0x186))[_0x508aea(0x195)]({'model':_0x508aea(0x157),'view':_0x508aea(0x152)}),_0x4af02b[_0x508aea(0x17c)][_0x508aea(0x185)](_0x508aea(0x183))[_0x508aea(0x143)]({'model':{'key':_0x508aea(0x157),'value':_0x3d88b6=>_0x3d88b6[_0x508aea(0x175)](_0x508aea(0x152))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x31ace8=_0x4af02b[_0x508aea(0x142)][_0x508aea(0x15d)](_0x508aea(0x189));_0x31ace8&&this[_0x508aea(0x17f)](_0x31ace8,_0x508aea(0x15b),(_0xa5052a,[_0x5bacc6,_0x51453e])=>{const _0x51c162=_0x508aea;_0x5bacc6[_0x51c162(0x190)](_0x51c162(0x157),_0x51453e);});}[_0x185b52(0x182)](){const _0x2703a3=_0x185b52,_0x2ace13=this[_0x2703a3(0x15a)][_0x2703a3(0x18a)][_0x2703a3(0x15d)](_0x2703a3(0x18c))||{},_0x582983=this[_0x2703a3(0x15a)][_0x2703a3(0x18a)][_0x2703a3(0x15d)](_0x2703a3(0x177))||'';this[_0x2703a3(0x144)]=_0x48a536(_0x46d330[_0x2703a3(0x197)],_0x2703a3(0x14f),{..._0x2ace13,'pubkey':_0x582983,'ctx-name':_0x2703a3(0x164)+this[_0x2703a3(0x16b)],'sourceList':'','imgOnly':_0x2703a3(0x181),'removeCopyright':_0x2703a3(0x181),'localeName':this[_0x2703a3(0x15a)][_0x2703a3(0x147)][_0x2703a3(0x15c)],'externalSourcesEmbedCss':_0x2703a3(0x141)}),this[_0x2703a3(0x144)][_0x2703a3(0x172)]=_0x28e80a=>{const _0x4589d4=_0x2703a3;if(_0x4589d4(0x151)==_0x28e80a)return _0x4589d4(0x198);},_0x46d330[_0x2703a3(0x197)][_0x2703a3(0x192)][_0x2703a3(0x16a)](this[_0x2703a3(0x144)]);}[_0x185b52(0x196)](){const _0x23294b=_0x185b52;this[_0x23294b(0x14b)]=_0x48a536(_0x46d330[_0x23294b(0x197)],_0x23294b(0x148),{'ctx-name':_0x23294b(0x164)+this[_0x23294b(0x16b)]}),_0x46d330[_0x23294b(0x197)][_0x23294b(0x192)][_0x23294b(0x16a)](this[_0x23294b(0x14b)]);}[_0x185b52(0x18b)](){const _0x3d6bcf=_0x185b52,_0x4e67e2=this[_0x3d6bcf(0x15a)][_0x3d6bcf(0x142)][_0x3d6bcf(0x15d)](_0x3d6bcf(0x158));_0x4e67e2&&this[_0x3d6bcf(0x17f)](_0x4e67e2,_0x3d6bcf(0x163),()=>{const _0x35fa8b=_0x3d6bcf,_0x4d9ed2=this[_0x35fa8b(0x15a)][_0x35fa8b(0x184)][_0x35fa8b(0x197)][_0x35fa8b(0x18d)][_0x35fa8b(0x153)]();_0x4d9ed2&&_0x4d9ed2[_0x35fa8b(0x175)](_0x35fa8b(0x157))&&this[_0x35fa8b(0x15a)][_0x35fa8b(0x179)][_0x35fa8b(0x154)][_0x35fa8b(0x14d)](_0x35fa8b(0x169),()=>{const _0x1e527b=_0x35fa8b;_0x59f880(this[_0x1e527b(0x15a)],_0x4d9ed2);});});const _0x1f5351=this[_0x3d6bcf(0x15a)][_0x3d6bcf(0x142)][_0x3d6bcf(0x15d)](_0x3d6bcf(0x17d));_0x1f5351&&this[_0x3d6bcf(0x17f)](_0x1f5351,_0x3d6bcf(0x163),()=>{const _0x32cf92=_0x3d6bcf,_0x905fe2=this[_0x32cf92(0x15a)][_0x32cf92(0x184)][_0x32cf92(0x197)][_0x32cf92(0x18d)][_0x32cf92(0x153)]();_0x905fe2&&_0x905fe2[_0x32cf92(0x175)](_0x32cf92(0x157))&&this[_0x32cf92(0x15a)][_0x32cf92(0x179)][_0x32cf92(0x154)][_0x32cf92(0x14d)](_0x32cf92(0x169),()=>{const _0x9686fc=_0x32cf92;_0x59f880(this[_0x9686fc(0x15a)],_0x905fe2);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x12586e,ObservableMixin as _0x3bbdfe}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5e4a4d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5c420f}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x92d073}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x20c943}from'../../utils/uploadutils.js';import{getImageUrls as _0x1f0d97,getImageDimension as _0x16b8d3}from'../../utils/editingutils.js';import{isAncestor as _0x2a791b}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3bbdfe(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2e150b,_0x1d40b0,_0x264ed1){super(),this['_editor']=_0x2e150b,this['_dialog']=_0x1d40b0,this['_imageElement']=_0x264ed1,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 _0x267296=this['_imageElement'],_0x1a91fb=_0x267296['getAttribute']('uploadcareImageId'),_0x2151df=_0x267296['getAttribute']('src');if(_0x1a91fb)await this['_loadImageInfo'](_0x1a91fb,_0x2151df);else{if(this['_imageCache']['has'](_0x2151df)){const _0x15b71a=this['_imageCache']['get'](_0x2151df);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x15b71a['url'],this['imageDimension']=_0x15b71a['dimension'],this['imageId']=_0x15b71a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4689b8}=this['_editor'],t=_0x4689b8['t'],_0x46dad1=new _0x92d073(_0x4689b8,this['imageStatus'],this['_attributes']);_0x46dad1['bind']('status')['to'](this,'imageStatus'),_0x46dad1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x46dad1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x46dad1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x46dad1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5c420f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x46dad1,'position':_0x5e4a4d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x46dad1['focus']();},'onHide':()=>{_0x46dad1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36e8db=>!_0x2a791b(_0x36e8db,_0x46dad1['element'])}});}['_loadImageInfo'](_0x3455b3,_0x5edda5){return _0x20c943['getInfo'](_0x3455b3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x19b2ea=>{const {width:_0x5a4525,height:_0x3d1d97}=_0x19b2ea['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5edda5,this['imageDimension']={'width':_0x5a4525,'height':_0x3d1d97},this['imageId']=_0x3455b3;})['catch'](_0x344f35=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x344f35['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xb11703,_0x96cd2b){return this['_getImageAsFile'](_0xb11703)['then'](_0x5b1f70=>_0x20c943['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':_0x96cd2b['signal'],'file':_0x5b1f70,'onProgress':_0x40cf4d=>{_0x40cf4d&&_0x40cf4d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x40cf4d['value']));}}))['then'](_0x43fffe=>{const {width:_0x43e447,height:_0x1586ce}=_0x43fffe['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43fffe['cdnUrl'],this['imageDimension']={'width':_0x43e447,'height':_0x1586ce},this['imageId']=_0x43fffe['uuid'],this['imageUploadProgress']=null;const _0x29025d=_0xb11703['getAttribute']('src');this['_imageCache']['set'](_0x29025d,{'id':_0x43fffe['uuid'],'url':_0x43fffe['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3bb533=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3bb533['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x21e993,_0x309c80){_0x21e993['on']('apply',(_0x407b97,_0x2c9bec)=>{this['_replaceImage'](_0x309c80,_0x2c9bec['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x21e993['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x21e993['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x23ca00,_0x54ad29,_0x3357e0){const _0x1f66da=this['_editor'],{width:_0x5cee5a,height:_0x20b2af}=_0x16b8d3(_0x54ad29,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x57d286,imageSources:_0x57fa65}=_0x1f0d97(_0x54ad29,_0x5cee5a);_0x1f66da['model']['change'](_0x2313c2=>{if('$graveyard'===_0x23ca00['root']['rootName']){_0x1f66da['execute']('insertImage',{'imageType':_0x23ca00['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x23ca00['getAttributes']()),'uploadcareImageId':_0x3357e0,'src':_0x57d286,'sources':_0x57fa65,'width':_0x5cee5a,'height':_0x20b2af}});const _0xa37216=_0x23ca00['getChildren']();_0x23ca00=_0x1f66da['model']['document']['selection']['getSelectedElement']();for(const _0x308c98 of _0xa37216)_0x2313c2['append'](_0x2313c2['cloneElement'](_0x308c98),_0x23ca00);}else _0x2313c2['setSelection'](_0x23ca00,'on'),_0x1f66da['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x23ca00['getAttributes']()),'uploadcareImageId':_0x3357e0,'src':_0x57d286,'sources':_0x57fa65,'width':_0x5cee5a,'height':_0x20b2af},_0x23ca00);_0x2313c2['setSelection'](_0x23ca00,'on');});}async['_getImageAsFile'](_0xdaab7){const _0xacda8d=_0x12586e['window'],_0x4f2b53=_0x12586e['document']['location']['href'],_0x1e8270=new _0xacda8d['URL'](_0xdaab7['getAttribute']('src'),_0x4f2b53);if('data:'===_0x1e8270['protocol']){const _0x15e09d=_0x1e8270['href']['split'](','),_0x2122a5=_0x15e09d[0x0]['match'](/:(.*?);/)[0x1],_0x19c639=_0x2122a5['split']('/')[0x1],_0x4fcb75=_0xacda8d['atob'](_0x15e09d[_0x15e09d['length']-0x1]);let _0x5a6dc2=_0x4fcb75['length'];const _0x246694=new _0xacda8d['Uint8Array'](_0x5a6dc2);for(;_0x5a6dc2--;)_0x246694[_0x5a6dc2]=_0x4fcb75['charCodeAt'](_0x5a6dc2);return new _0xacda8d['File']([_0x246694],'image.'+_0x19c639,{'type':_0x2122a5});}const _0x209ff5=_0x1e8270['href']['split']('/'),_0x341513=_0x209ff5[_0x209ff5['length']-0x1],_0x31dfdf=_0x341513['split']('.')[0x1];return _0xacda8d['fetch'](_0x1e8270['href'])['then'](_0x4a1906=>_0x4a1906['clone']()['blob']())['then'](_0x2092d5=>new _0xacda8d['File']([_0x2092d5],_0x341513,{'type':'image/'+_0x31dfdf}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x53a4(){const _0x10bd90=['187759EzQTdZ','83877qQNIKi','484304RjcgEI','72QZiCSi','2259370LiuIml','530lycVhC','48TFvmCa','765948PScuGN','3WVsveL','ck-uploadcare-theme','bindTemplate','set','251310hPjJrb','setTemplate','imageSrc','3005590bXrggd','uc-light','image-edit','uc-cloud-image-editor'];_0x53a4=function(){return _0x10bd90;};return _0x53a4();}function _0x4837(_0x4cde79,_0x3c8096){const _0x53a43d=_0x53a4();return _0x4837=function(_0x483708,_0x36e4db){_0x483708=_0x483708-0xa6;let _0x2bbbd4=_0x53a43d[_0x483708];return _0x2bbbd4;},_0x4837(_0x4cde79,_0x3c8096);}(function(_0x45bdc1,_0x4667e3){const _0x330d9c=_0x4837,_0xe47d0c=_0x45bdc1();while(!![]){try{const _0x2be2cb=-parseInt(_0x330d9c(0xb6))/0x1*(-parseInt(_0x330d9c(0xa7))/0x2)+parseInt(_0x330d9c(0xaf))/0x3*(-parseInt(_0x330d9c(0xb4))/0x4)+-parseInt(_0x330d9c(0xb2))/0x5+-parseInt(_0x330d9c(0xb5))/0x6+parseInt(_0x330d9c(0xaa))/0x7+parseInt(_0x330d9c(0xb0))/0x8*(-parseInt(_0x330d9c(0xb1))/0x9)+parseInt(_0x330d9c(0xb3))/0xa*(parseInt(_0x330d9c(0xae))/0xb);if(_0x2be2cb===_0x4667e3)break;else _0xe47d0c['push'](_0xe47d0c['shift']());}catch(_0x531e4f){_0xe47d0c['push'](_0xe47d0c['shift']());}}}(_0x53a4,0x4c160));import{View as _0x2829b0}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x2829b0{constructor(_0x1b572d,_0x2626f8){const _0x115a53=_0x4837;super(_0x1b572d);const _0x214f45=this[_0x115a53(0xb8)];this[_0x115a53(0xa6)](_0x115a53(0xa9),''),this[_0x115a53(0xa8)]({'tag':_0x115a53(0xad),'attributes':{..._0x2626f8,'class':[_0x115a53(0xab),_0x115a53(0xb7)],'ctx-name':_0x115a53(0xac),'cdn-url':_0x214f45['to'](_0x115a53(0xa9))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x146e1c}from'ckeditor5/src/icons.js';import{ButtonView as _0x5c30a4,IconView as _0x3de47,View as _0x1978f9}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1978f9{constructor(_0x4483bf){super(_0x4483bf);const t=_0x4483bf['t'];this['set']('errorType',null);const _0x1c4e5e=new _0x5c30a4(_0x4483bf);_0x1c4e5e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1c4e5e['withText']=!0x0,_0x1c4e5e['class']='ck-button-action',_0x1c4e5e['on']('execute',()=>{this['fire']('retry');}),_0x1c4e5e['bind']('isVisible')['to'](this,'errorType',_0x46aafe=>'NotFound'!==_0x46aafe);const _0x515731=new _0x3de47();_0x515731['content']=_0x146e1c,_0x515731['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1c4ad4=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':[_0x515731,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1c4ad4['to']('errorType',_0x57516d=>t('NotFound'!==_0x57516d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1c4e5e]},{'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 _0x1c2557,View as _0x336181}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x336181{constructor(_0x578036){super(_0x578036);const t=_0x578036['t'],_0x47885f=this['bindTemplate'],_0x3699e1=new _0x1c2557();_0x3699e1['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':[_0x3699e1,{'text':_0x47885f['to']('imageUploadProgress',_0x250fbd=>t('Loading\x20image...')+'\x20('+(_0x250fbd||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x296e78=_0x1f1a;(function(_0x278e5e,_0x39d0b5){const _0x33dd26=_0x1f1a,_0x2fb189=_0x278e5e();while(!![]){try{const _0x47c6ef=parseInt(_0x33dd26(0x1ee))/0x1+-parseInt(_0x33dd26(0x1ef))/0x2+-parseInt(_0x33dd26(0x205))/0x3+-parseInt(_0x33dd26(0x203))/0x4+-parseInt(_0x33dd26(0x212))/0x5+parseInt(_0x33dd26(0x202))/0x6+-parseInt(_0x33dd26(0x1eb))/0x7*(-parseInt(_0x33dd26(0x1e6))/0x8);if(_0x47c6ef===_0x39d0b5)break;else _0x2fb189['push'](_0x2fb189['shift']());}catch(_0x286105){_0x2fb189['push'](_0x2fb189['shift']());}}}(_0x1a9f,0xe56b5));import{View as _0x1a9c96}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x102188}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x5b788c}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x57757b}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4746e1}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x1f1a(_0x5322be,_0x355609){const _0x1a9f19=_0x1a9f();return _0x1f1a=function(_0x1f1afd,_0xfe438b){_0x1f1afd=_0x1f1afd-0x1e1;let _0x173b66=_0x1a9f19[_0x1f1afd];return _0x173b66;},_0x1f1a(_0x5322be,_0x355609);}export class UploadcareImageEditFormView extends _0x4746e1{[_0x296e78(0x20b)];[_0x296e78(0x1f0)];[_0x296e78(0x214)];[_0x296e78(0x207)];[_0x296e78(0x200)];constructor(_0x239ef5,_0x53c58c,_0x5a8aff){const _0x492fc9=_0x296e78;super(_0x239ef5),this[_0x492fc9(0x20b)]=this[_0x492fc9(0x208)](),this[_0x492fc9(0x1f0)]=new _0x102188(_0x239ef5),this[_0x492fc9(0x214)]=new _0x5b788c(_0x239ef5),this[_0x492fc9(0x207)]=new _0x57757b(_0x239ef5,_0x5a8aff),this[_0x492fc9(0x200)]=new _0x1a9c96(_0x239ef5),this[_0x492fc9(0x200)][_0x492fc9(0x1ed)](this[_0x492fc9(0x210)]()),this[_0x492fc9(0x20f)](_0x492fc9(0x1ff),_0x53c58c),this[_0x492fc9(0x1ed)]({'tag':_0x492fc9(0x1fd),'attributes':{'class':['ck',_0x492fc9(0x1f1),_0x492fc9(0x206)],'tabindex':'-1'},'children':this[_0x492fc9(0x20b)]}),this[_0x492fc9(0x1f4)](),this[_0x492fc9(0x1e9)](_0x492fc9(0x1fa),()=>{const _0x17f630=_0x492fc9;this[_0x17f630(0x1e7)](this[_0x17f630(0x1ec)],_0x5950e9=>{const _0x17ff97=_0x17f630;this[_0x17ff97(0x1e3)](_0x5950e9);});}),this['on'](_0x492fc9(0x1e1),()=>{const _0x165ff6=_0x492fc9;this[_0x165ff6(0x1f4)]();}),this[_0x492fc9(0x1fb)]();}[_0x296e78(0x1fe)](){const _0x104dda=_0x296e78;this[_0x104dda(0x1ec)][_0x104dda(0x1fe)]();}[_0x296e78(0x1f4)](){const _0x338510=_0x296e78;switch(this[_0x338510(0x20b)][_0x338510(0x215)](),this[_0x338510(0x1ff)]){case _0x338510(0x20e):this[_0x338510(0x20b)][_0x338510(0x20c)](this[_0x338510(0x1f0)]);break;case _0x338510(0x1f3):this[_0x338510(0x20b)][_0x338510(0x20c)](this[_0x338510(0x214)]);break;case _0x338510(0x1f8):this[_0x338510(0x20b)][_0x338510(0x209)]([this[_0x338510(0x207)],this[_0x338510(0x200)]]);}}[_0x296e78(0x1e7)](_0x2d2a1d,_0x4b22ea){const _0x4ac2b3=_0x296e78,_0x57b201=_0x4ac2b3(0x211),_0x37b5a2=_0x2d2a1d[_0x4ac2b3(0x1e8)](_0x57b201);if(_0x37b5a2)return _0x4b22ea(_0x37b5a2);const _0x353be6=new MutationObserver(_0x37f5b5=>{const _0x8b1985=_0x4ac2b3,_0x1f929b=_0x37f5b5[_0x8b1985(0x1e4)](_0x732390=>_0x732390[_0x8b1985(0x1f9)]===_0x2d2a1d&&_0x732390[_0x8b1985(0x1e2)][_0x8b1985(0x1f2)]>0x0&&_0x732390[_0x8b1985(0x1e2)][0x0][_0x8b1985(0x1fc)][_0x8b1985(0x20d)]()===_0x57b201);_0x1f929b[_0x8b1985(0x1f2)]&&(_0x353be6[_0x8b1985(0x213)](),_0x4b22ea(_0x1f929b[0x0][_0x8b1985(0x1e2)][0x0]));});_0x353be6[_0x4ac2b3(0x1e5)](_0x2d2a1d,{'childList':!0x0,'subtree':!0x0});}[_0x296e78(0x1e3)](_0x32ae7b){const _0x11c15c=_0x296e78;_0x32ae7b[_0x11c15c(0x1f5)](_0x11c15c(0x20a),_0x3208f0=>{const _0x54b320=_0x11c15c;this[_0x54b320(0x201)](_0x54b320(0x20a),{'imageSrc':_0x3208f0[_0x54b320(0x1ea)][_0x54b320(0x204)]});}),_0x32ae7b[_0x11c15c(0x1f5)](_0x11c15c(0x1f7),()=>{const _0x26d0c4=_0x11c15c;this[_0x26d0c4(0x201)](_0x26d0c4(0x1f7));});}[_0x296e78(0x1fb)](){const _0x3729b9=_0x296e78;this[_0x3729b9(0x214)]['on'](_0x3729b9(0x1f6),()=>{const _0x3b1247=_0x3729b9;this[_0x3b1247(0x201)](_0x3b1247(0x1f6));});}}function _0x1a9f(){const _0x25a03a=['observe','808OvTOOn','_waitForImageEditorComponent','querySelector','once','detail','224420xptGXy','element','setTemplate','1800190BBhohv','2523538NNcoMs','_loadingView','ck-reset_all-excluded','length','error','_setView','addEventListener','retry','cancel','ready','target','render','_addErrorViewListeners','nodeName','div','focus','status','_focusableView','fire','4051236pzsufL','6157996COHuSl','cdnUrl','1687725REsIZj','ck-uploadcare-form','_editingView','createCollection','addMany','apply','_items','add','toLowerCase','uploading','set','getFocusableElement','uc-cloud-image-editor','7049560Tbytby','disconnect','_errorView','clear','change:status','addedNodes','_addUploadcareImageEditorListeners','filter'];_0x1a9f=function(){return _0x25a03a;};return _0x1a9f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x34af(){const _0x3e58ac=['requires','719134uVktdt','plugins','2693454VIQIZE','628VnYVpE','_isEditable','imageInline','5683580SxeJcE','getSelectedElement','refresh','unbind','editor','isEnabled','uploadcare.allowExternalImagesEditing','bind','imageEditController','get','9178880fQKiHu','model','977916tJiSOU','selection','isActive','document','imageBlock','execute','config','16065lhhTdG','337650qhGWSg','set','element'];_0x34af=function(){return _0x3e58ac;};return _0x34af();}const _0x14ba7d=_0x348f;(function(_0x801c60,_0xd3e1ea){const _0x3a7941=_0x348f,_0x256c09=_0x801c60();while(!![]){try{const _0x574e48=-parseInt(_0x3a7941(0x91))/0x1+parseInt(_0x3a7941(0x8d))/0x2+parseInt(_0x3a7941(0x93))/0x3+parseInt(_0x3a7941(0x94))/0x4*(parseInt(_0x3a7941(0x8c))/0x5)+parseInt(_0x3a7941(0x85))/0x6+parseInt(_0x3a7941(0x79))/0x7+-parseInt(_0x3a7941(0x83))/0x8;if(_0x574e48===_0xd3e1ea)break;else _0x256c09['push'](_0x256c09['shift']());}catch(_0x1754fd){_0x256c09['push'](_0x256c09['shift']());}}}(_0x34af,0xa5e5c));import{Command as _0x28f3bb}from'ckeditor5/src/core.js';import{Dialog as _0x25df9f}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x140165}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x25c18b}from'../utils/editingutils.js';function _0x348f(_0x450ad4,_0x3cd426){const _0x34af8d=_0x34af();return _0x348f=function(_0x348fa9,_0x21fbc4){_0x348fa9=_0x348fa9-0x77;let _0x1a2ccb=_0x34af8d[_0x348fa9];return _0x1a2ccb;},_0x348f(_0x450ad4,_0x3cd426);}export class UploadcareImageEditCommand extends _0x28f3bb{[_0x14ba7d(0x81)];static get[_0x14ba7d(0x90)](){return[_0x25df9f];}[_0x14ba7d(0x77)];constructor(_0x3cc677){const _0x538f57=_0x14ba7d;super(_0x3cc677),this[_0x538f57(0x81)]=void 0x0,this[_0x538f57(0x77)]=_0x25c18b(_0x3cc677[_0x538f57(0x8b)][_0x538f57(0x82)](_0x538f57(0x7f))||[]),this[_0x538f57(0x8e)]({'isActive':!0x1});}[_0x14ba7d(0x7b)](){const _0x19bb6f=_0x14ba7d,_0x30a959=this[_0x19bb6f(0x7d)][_0x19bb6f(0x84)][_0x19bb6f(0x88)][_0x19bb6f(0x86)][_0x19bb6f(0x7a)]();this[_0x19bb6f(0x7e)]=this[_0x19bb6f(0x77)](_0x30a959);}[_0x14ba7d(0x8a)](){const _0x24fb32=_0x14ba7d;this[_0x24fb32(0x81)]&&(this[_0x24fb32(0x7c)](_0x24fb32(0x87)),this[_0x24fb32(0x81)]=void 0x0);const _0x3cf059=this[_0x24fb32(0x7d)][_0x24fb32(0x84)][_0x24fb32(0x88)][_0x24fb32(0x86)][_0x24fb32(0x7a)]();_0x3cf059&&(_0x3cf059['is'](_0x24fb32(0x8f),_0x24fb32(0x89))||_0x3cf059['is'](_0x24fb32(0x8f),_0x24fb32(0x78)))&&(this[_0x24fb32(0x81)]=new _0x140165(this[_0x24fb32(0x7d)],this[_0x24fb32(0x7d)][_0x24fb32(0x92)][_0x24fb32(0x82)](_0x25df9f),_0x3cf059),this[_0x24fb32(0x80)](_0x24fb32(0x87))['to'](this[_0x24fb32(0x81)],_0x24fb32(0x87)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1de5b7=_0x395a;(function(_0x420997,_0x5b7d04){const _0x18fede=_0x395a,_0x367195=_0x420997();while(!![]){try{const _0x428dfe=parseInt(_0x18fede(0x151))/0x1*(parseInt(_0x18fede(0x157))/0x2)+-parseInt(_0x18fede(0x145))/0x3*(-parseInt(_0x18fede(0x154))/0x4)+-parseInt(_0x18fede(0x146))/0x5*(parseInt(_0x18fede(0x150))/0x6)+-parseInt(_0x18fede(0x141))/0x7*(parseInt(_0x18fede(0x158))/0x8)+-parseInt(_0x18fede(0x14d))/0x9*(parseInt(_0x18fede(0x14a))/0xa)+-parseInt(_0x18fede(0x14e))/0xb+parseInt(_0x18fede(0x14f))/0xc*(parseInt(_0x18fede(0x152))/0xd);if(_0x428dfe===_0x5b7d04)break;else _0x367195['push'](_0x367195['shift']());}catch(_0x308760){_0x367195['push'](_0x367195['shift']());}}}(_0x13c4,0xd6b22));import{Plugin as _0x4d17f7}from'ckeditor5/src/core.js';import{Notification as _0x479cd4}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x271cfa}from'./uploadcareimageeditcommand.js';function _0x13c4(){const _0x13a3c1=['UploadcareImageEditEditing','isOfficialPlugin','495AZAZQT','3869536gYsRJb','27750540DRYlve','198rhIWGN','4luHlJm','13GPJzUp','uploadcareImageReplace','4jdjKrH','commands','isPremiumPlugin','752932iwvPcM','474376obhYIY','add','42gZbYfA','init','pluginName','ImageEditing','1435047resVWj','255785uOlNOZ','ImageUtils','requires','uploadcareImageEdit','185750lxzRCF'];_0x13c4=function(){return _0x13a3c1;};return _0x13c4();}import{UploadcareImageReplaceCommand as _0x25d9af}from'./uploadcareimagereplacecommand.js';function _0x395a(_0x49c7c8,_0x32b9be){const _0x13c408=_0x13c4();return _0x395a=function(_0x395a84,_0x4effc8){_0x395a84=_0x395a84-0x140;let _0x10bf4e=_0x13c408[_0x395a84];return _0x10bf4e;},_0x395a(_0x49c7c8,_0x32b9be);}import{UploadcareEditing as _0x2b4751}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4d17f7{static get[_0x1de5b7(0x143)](){const _0xb0cac5=_0x1de5b7;return _0xb0cac5(0x14b);}static get[_0x1de5b7(0x148)](){const _0x41f88=_0x1de5b7;return[_0x2b4751,_0x479cd4,_0x41f88(0x147),_0x41f88(0x144)];}static get[_0x1de5b7(0x14c)](){return!0x0;}static get[_0x1de5b7(0x156)](){return!0x0;}[_0x1de5b7(0x142)](){const _0xa3ce3f=_0x1de5b7,{editor:_0x7e7286}=this;_0x7e7286[_0xa3ce3f(0x155)][_0xa3ce3f(0x140)](_0xa3ce3f(0x149),new _0x271cfa(_0x7e7286)),_0x7e7286[_0xa3ce3f(0x155)][_0xa3ce3f(0x140)](_0xa3ce3f(0x153),new _0x25d9af(_0x7e7286));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3d2ad2}from'ckeditor5/src/core.js';import{ButtonView as _0x2efbca}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x35102b}from'ckeditor5/src/icons.js';import{createElement as _0x14fc71}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 _0x3d2ad2{['_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 _0x1cadeb=this['editor'];_0x1cadeb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5e0f7a=>{const _0x489ac2=_0x1cadeb['commands']['get']('uploadcareImageEdit'),_0xd99408=new _0x2efbca(_0x5e0f7a),t=_0x5e0f7a['t'];return _0xd99408['set']({'icon':_0x35102b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xd99408['bind']('isEnabled')['to'](_0x489ac2),_0xd99408['bind']('isOn')['to'](_0x489ac2,'isActive'),this['listenTo'](_0xd99408,'execute',()=>{_0x1cadeb['execute']('uploadcareImageEdit'),_0x1cadeb['editing']['view']['focus']();}),_0xd99408;}),this['_initConfig']();}['_initConfig'](){const _0x19d73a=_0x14fc71(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x19d73a),this['listenTo'](this['editor'],'destroy',()=>{_0x19d73a['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3d623e=_0x1e39;function _0x1e39(_0x207c63,_0x3ba4d5){const _0x4d8d15=_0x4d8d();return _0x1e39=function(_0x1e3900,_0x4f7c47){_0x1e3900=_0x1e3900-0x7c;let _0x5e9510=_0x4d8d15[_0x1e3900];return _0x5e9510;},_0x1e39(_0x207c63,_0x3ba4d5);}(function(_0x4993c3,_0x17966d){const _0x250e07=_0x1e39,_0x323d93=_0x4993c3();while(!![]){try{const _0x401949=parseInt(_0x250e07(0x94))/0x1+-parseInt(_0x250e07(0x8c))/0x2*(parseInt(_0x250e07(0x8b))/0x3)+parseInt(_0x250e07(0x90))/0x4*(-parseInt(_0x250e07(0x82))/0x5)+-parseInt(_0x250e07(0x7d))/0x6+-parseInt(_0x250e07(0x84))/0x7*(parseInt(_0x250e07(0x91))/0x8)+-parseInt(_0x250e07(0x7e))/0x9+parseInt(_0x250e07(0x8a))/0xa;if(_0x401949===_0x17966d)break;else _0x323d93['push'](_0x323d93['shift']());}catch(_0x27ee8a){_0x323d93['push'](_0x323d93['shift']());}}}(_0x4d8d,0x9a0ef));function _0x4d8d(){const _0x57fd80=['sizes','getSelectedElement','962384bnTcDI','40RLMcWu','removeAttribute','model','214575fAhZWT','imageInline','setAttributes','3790248bePGJw','10162494SXizOq','element','document','editor','20Ltavbo','srcset','332031JZuSvt','refresh','selection','imageBlock','isEnabled','execute','40231280VKJOsb','3aWqFOp','1292514YTiJgx','change'];_0x4d8d=function(){return _0x57fd80;};return _0x4d8d();}import{Command as _0x3c95b1}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x3c95b1{[_0x3d623e(0x85)](){const _0x6728f=_0x3d623e,_0x518f8d=this[_0x6728f(0x81)][_0x6728f(0x93)][_0x6728f(0x80)][_0x6728f(0x86)][_0x6728f(0x8f)]();this[_0x6728f(0x88)]=Boolean(_0x518f8d&&(_0x518f8d['is'](_0x6728f(0x7f),_0x6728f(0x87))||_0x518f8d['is'](_0x6728f(0x7f),_0x6728f(0x95))));}[_0x3d623e(0x89)](_0x3a623a){const _0x3f51e4=_0x3d623e,_0x5c07bb=this[_0x3f51e4(0x81)][_0x3f51e4(0x93)][_0x3f51e4(0x80)][_0x3f51e4(0x86)][_0x3f51e4(0x8f)]();this[_0x3f51e4(0x81)][_0x3f51e4(0x93)][_0x3f51e4(0x8d)](_0x59ed42=>{const _0x4f01a5=_0x3f51e4;_0x59ed42[_0x4f01a5(0x7c)](_0x3a623a,_0x5c07bb),_0x59ed42[_0x4f01a5(0x92)](_0x4f01a5(0x83),_0x5c07bb),_0x59ed42[_0x4f01a5(0x92)](_0x4f01a5(0x8e),_0x5c07bb);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2a0af7=_0x2254;(function(_0x45128e,_0x48d893){var _0x3a8e51=_0x2254,_0x146daf=_0x45128e();while(!![]){try{var _0x19e59b=-parseInt(_0x3a8e51(0x80))/0x1*(-parseInt(_0x3a8e51(0x82))/0x2)+-parseInt(_0x3a8e51(0x85))/0x3*(parseInt(_0x3a8e51(0x7b))/0x4)+parseInt(_0x3a8e51(0x7f))/0x5*(parseInt(_0x3a8e51(0x7d))/0x6)+parseInt(_0x3a8e51(0x77))/0x7*(-parseInt(_0x3a8e51(0x86))/0x8)+-parseInt(_0x3a8e51(0x78))/0x9*(-parseInt(_0x3a8e51(0x7e))/0xa)+parseInt(_0x3a8e51(0x76))/0xb*(parseInt(_0x3a8e51(0x79))/0xc)+parseInt(_0x3a8e51(0x87))/0xd*(-parseInt(_0x3a8e51(0x81))/0xe);if(_0x19e59b===_0x48d893)break;else _0x146daf['push'](_0x146daf['shift']());}catch(_0xdc5d9a){_0x146daf['push'](_0x146daf['shift']());}}}(_0x4f95,0x49936));import{Plugin as _0x52951b}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x17398d}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x343083}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x4f95(){var _0x32e63d=['isOfficialPlugin','743022bgFBDY','20848mHOdpc','70265nZyaHm','requires','5000028zMdYvt','413ZkPWyj','9aozVUB','12zyfoDi','isPremiumPlugin','4AfDlJh','pluginName','1518xbFdKM','5009030UFzNrn','5165YKHtIr','226479TtsEcl','1918mPxgCh','2MDVjus','UploadcareImageEdit'];_0x4f95=function(){return _0x32e63d;};return _0x4f95();}function _0x2254(_0xce1299,_0x7428a2){var _0x4f951d=_0x4f95();return _0x2254=function(_0x2254b3,_0x2eeaca){_0x2254b3=_0x2254b3-0x76;var _0x34bfae=_0x4f951d[_0x2254b3];return _0x34bfae;},_0x2254(_0xce1299,_0x7428a2);}export class UploadcareImageEdit extends _0x52951b{static get[_0x2a0af7(0x7c)](){var _0xd091ed=_0x2a0af7;return _0xd091ed(0x83);}static get[_0x2a0af7(0x88)](){return[_0x17398d,_0x343083];}static get[_0x2a0af7(0x84)](){return!0x0;}static get[_0x2a0af7(0x7a)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x454c47=_0x222b;function _0x334e(){const _0xd8d99a=['text','GDrive','12JCzYdv','shortText','tooltip','map','18hWKlGK','Replace','trialLimit','536ExAfyJ','1768554oHiPIN','editor','uploadcareLicenseKeyInvalid','isImageSelected','domainLimit','push','uploadcareLicenseKeyEvaluationLimit','2026395mXhebI','_createToolbarButton','destroy','13574gJlJiS','withText','config','featureNotAllowed','uploadcareLicenseKeyExpired','_showLicenseError','forEach','isEnabled','uploadcareLicenseKeyTrialLimit','init','evaluationLimit','4oThxak','_createDropdownButtons','get','UploadcareUI','62UHcmAP','Uploadcare','_licenseKeyCheckInterval','type','Local','GPhotos','commands','22769219CDIlPO','URL','uploadcare.uploader.sourceList','url','OneDrive','_createMenuBarButtons','licenseKey','usageLimit','reduce','uploadcareLicenseKeyValid','plugins','1836260kCmUyo','Insert','pluginName','assetManager','execute','entries','uploadcareLicenseKeyUsageLimit','upload','ImageInsertUI','isPremiumPlugin','_normalizeConfigSourceList','uploadcareLicenseKeyNotAllowed','label','isOfficialPlugin','bind','Facebook','has','40551gDfvIY','1361643pFjlLl','uploadcareLicenseKeyDomainLimit','afterInit','invalid','Dropbox','icon','_createButton','locale','expired','_getIntegrationKey','uploadcare','registerIntegration'];_0x334e=function(){return _0xd8d99a;};return _0x334e();}function _0x222b(_0xcff54a,_0x36df29){const _0x334ea3=_0x334e();return _0x222b=function(_0x222bb6,_0x4f89b0){_0x222bb6=_0x222bb6-0xbb;let _0x254513=_0x334ea3[_0x222bb6];return _0x254513;},_0x222b(_0xcff54a,_0x36df29);}(function(_0xab6fea,_0x4a242c){const _0x53ac24=_0x222b,_0x3bd794=_0xab6fea();while(!![]){try{const _0x4265a7=-parseInt(_0x53ac24(0xf8))/0x1*(parseInt(_0x53ac24(0xe9))/0x2)+parseInt(_0x53ac24(0xc9))/0x3*(-parseInt(_0x53ac24(0xf4))/0x4)+parseInt(_0x53ac24(0xe6))/0x5+-parseInt(_0x53ac24(0xdf))/0x6+parseInt(_0x53ac24(0xc8))/0x7*(-parseInt(_0x53ac24(0xde))/0x8)+parseInt(_0x53ac24(0xdb))/0x9*(-parseInt(_0x53ac24(0x10a))/0xa)+parseInt(_0x53ac24(0xff))/0xb*(parseInt(_0x53ac24(0xd7))/0xc);if(_0x4265a7===_0x4a242c)break;else _0x3bd794['push'](_0x3bd794['shift']());}catch(_0x2e03a9){_0x3bd794['push'](_0x3bd794['shift']());}}}(_0x334e,0x865f7));import{Plugin as _0xc8e67b}from'ckeditor5/src/core.js';import{IconDropbox as _0x1cb79c,IconFacebook as _0x3c8c55,IconGoogleDrive as _0x5dfc8e,IconGooglePhotos as _0x26ab60,IconUploadcareImageUpload as _0x33a3ef,IconUploadcareLink as _0x25624f,IconOneDrive as _0x148df0}from'ckeditor5/src/icons.js';import{ButtonView as _0x517dfb,MenuBarMenuListItemButtonView as _0x3a3958}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x3e46ec}from'./uploadcareconfig.js';import{getTranslation as _0x2e37b1}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 _0xc8e67b{[_0x454c47(0x105)];[_0x454c47(0xfa)];static get[_0x454c47(0x10c)](){const _0x1865da=_0x454c47;return _0x1865da(0xf7);}static get[_0x454c47(0xc4)](){return!0x0;}static get[_0x454c47(0xc0)](){return!0x0;}[_0x454c47(0xf2)](){const _0xb1614=_0x454c47;this[_0xb1614(0x105)]=this[_0xb1614(0xe0)][_0xb1614(0xeb)][_0xb1614(0xf6)](_0xb1614(0x105));const _0x56d1cf=this[_0xb1614(0xe0)];this[_0xb1614(0xfa)]=setInterval(()=>{const _0xaf67f6=_0xb1614;let _0x21131e;for(const _0x465d42 in _0x56d1cf){const _0x7a2cb2=_0x465d42,_0x523379=_0x56d1cf[_0x7a2cb2];if(_0xaf67f6(0x108)==_0x523379||_0xaf67f6(0xe1)==_0x523379||_0xaf67f6(0xed)==_0x523379||_0xaf67f6(0xca)==_0x523379||_0xaf67f6(0xc2)==_0x523379||_0xaf67f6(0xe5)==_0x523379||_0xaf67f6(0xf1)==_0x523379||_0xaf67f6(0xbd)==_0x523379){delete _0x56d1cf[_0x7a2cb2],_0x21131e=_0x523379,clearInterval(this[_0xaf67f6(0xfa)]),this[_0xaf67f6(0xfa)]=void 0x0;break;}}_0xaf67f6(0xe1)==_0x21131e&&_0x56d1cf[_0xaf67f6(0xee)](_0xaf67f6(0xcc)),_0xaf67f6(0xed)==_0x21131e&&_0x56d1cf[_0xaf67f6(0xee)](_0xaf67f6(0xd1)),_0xaf67f6(0xca)==_0x21131e&&_0x56d1cf[_0xaf67f6(0xee)](_0xaf67f6(0xe3)),_0xaf67f6(0xc2)==_0x21131e&&_0x56d1cf[_0xaf67f6(0xee)](_0xaf67f6(0xec),_0xaf67f6(0xf9)),_0xaf67f6(0xe5)==_0x21131e&&_0x56d1cf[_0xaf67f6(0xee)](_0xaf67f6(0xf3)),_0xaf67f6(0xf1)==_0x21131e&&_0x56d1cf[_0xaf67f6(0xee)](_0xaf67f6(0xdd)),_0xaf67f6(0xbd)==_0x21131e&&_0x56d1cf[_0xaf67f6(0xee)](_0xaf67f6(0x106));},0x3e8);}[_0x454c47(0xcb)](){const _0x4eba47=_0x454c47,{editor:_0x5b5fb7}=this,_0x33ac3b=_0x5b5fb7[_0x4eba47(0xfe)][_0x4eba47(0xf6)](_0x4eba47(0xd3));if(!_0x33ac3b)return;const _0x1780f9=this[_0x4eba47(0xc1)](_0x5b5fb7[_0x4eba47(0xeb)][_0x4eba47(0xf6)](_0x4eba47(0x101)))[_0x4eba47(0x107)]((_0x18e00c,_0x474730)=>{const _0x35bbc3=_0x4eba47,_0x69c878=this[_0x35bbc3(0xd2)](_0x474730[_0x35bbc3(0xfb)]);return _0x18e00c[_0x69c878]||(_0x18e00c[_0x69c878]=[]),_0x18e00c[_0x69c878][_0x35bbc3(0xe4)](_0x474730),_0x18e00c;},{});_0x5b5fb7[_0x4eba47(0x109)][_0x4eba47(0xc7)](_0x4eba47(0xbf))&&_0x5b5fb7[_0x4eba47(0xfe)][_0x4eba47(0xf6)](_0x4eba47(0xd3))&&Object[_0x4eba47(0xbc)](_0x1780f9)[_0x4eba47(0xef)](([_0x5f3b13,_0x1ff172])=>{const _0x3e3145=_0x4eba47;_0x5b5fb7[_0x3e3145(0x109)][_0x3e3145(0xf6)](_0x3e3145(0xbf))[_0x3e3145(0xd4)]({'name':_0x5f3b13,'observable':()=>_0x33ac3b,'buttonViewCreator':()=>this[_0x3e3145(0xe7)](_0x1ff172),'formViewCreator':()=>this[_0x3e3145(0xf5)](_0x1ff172),'menuBarButtonViewCreator':()=>this[_0x3e3145(0x104)](_0x1ff172),'override':_0x3e3145(0x10d)!==_0x5f3b13});});}[_0x454c47(0xe8)](){const _0x50ac01=_0x454c47;super[_0x50ac01(0xe8)](),this[_0x50ac01(0xfa)]&&clearInterval(this[_0x50ac01(0xfa)]);}[_0x454c47(0xc1)](_0x3d67c6){const _0x3909bb=_0x454c47,{locale:_0x1146c1}=this[_0x3909bb(0xe0)];return _0x3d67c6[_0x3909bb(0xda)](_0x2f4eaa=>{const _0x276dff=_0x3909bb,_0x4ab0ef=_0x2e37b1(_0x1146c1,_0x2f4eaa,_0x276dff(0x10b));switch(_0x2f4eaa){case _0x3e46ec[_0x276dff(0xfc)]:return{'icon':_0x33a3ef,'type':_0x3e46ec[_0x276dff(0xfc)],..._0x4ab0ef};case _0x3e46ec[_0x276dff(0x100)]:return{'icon':_0x25624f,'type':_0x3e46ec[_0x276dff(0x100)],..._0x4ab0ef};case _0x3e46ec[_0x276dff(0xcd)]:return{'icon':_0x1cb79c,'type':_0x3e46ec[_0x276dff(0xcd)],..._0x4ab0ef};case _0x3e46ec[_0x276dff(0xc6)]:return{'icon':_0x3c8c55,'type':_0x3e46ec[_0x276dff(0xc6)],..._0x4ab0ef};case _0x3e46ec[_0x276dff(0xd6)]:return{'icon':_0x5dfc8e,'type':_0x3e46ec[_0x276dff(0xd6)],..._0x4ab0ef};case _0x3e46ec[_0x276dff(0xfd)]:return{'icon':_0x26ab60,'type':_0x3e46ec[_0x276dff(0xfd)],..._0x4ab0ef};case _0x3e46ec[_0x276dff(0x103)]:return{'icon':_0x148df0,'type':_0x3e46ec[_0x276dff(0x103)],..._0x4ab0ef};}});}[_0x454c47(0xd2)](_0x22d0b6){const _0x163b37=_0x454c47;switch(_0x22d0b6){case _0x3e46ec[_0x163b37(0xfc)]:return _0x163b37(0xbe);case _0x3e46ec[_0x163b37(0x100)]:return _0x163b37(0x102);default:return _0x163b37(0x10d);}}[_0x454c47(0xcf)](_0x47f8f8,_0x524149){const _0x4b6a54=_0x454c47,_0x464d17=this[_0x4b6a54(0xe0)],_0x18c18f=new _0x47f8f8(_0x464d17[_0x4b6a54(0xd0)]),_0x392bd0=_0x464d17[_0x4b6a54(0xfe)][_0x4b6a54(0xf6)](_0x4b6a54(0xd3));return _0x18c18f[_0x4b6a54(0xc5)](_0x4b6a54(0xf0))['to'](_0x392bd0),_0x18c18f['on'](_0x4b6a54(0xbb),()=>{const _0x4e77f5=_0x4b6a54;_0x392bd0[_0x4e77f5(0xbb)](_0x524149);}),_0x18c18f;}[_0x454c47(0xe7)](_0x5453e4){const _0x1bf004=_0x454c47,{locale:_0x36aa4e}=this[_0x1bf004(0xe0)],_0x4608de=this[_0x1bf004(0xe0)][_0x1bf004(0x109)][_0x1bf004(0xf6)](_0x1bf004(0xbf)),_0x5857e6=_0x5453e4[0x0],_0x261da2=this[_0x1bf004(0xcf)](_0x517dfb,_0x5857e6[_0x1bf004(0xfb)]);return _0x261da2[_0x1bf004(0xce)]=_0x5857e6[_0x1bf004(0xce)],_0x261da2[_0x1bf004(0xc5)](_0x1bf004(0xc3))['to'](_0x4608de,_0x1bf004(0xe2),_0x6a89d2=>_0x2e37b1(_0x36aa4e,_0x5857e6[_0x1bf004(0xfb)],_0x6a89d2?_0x1bf004(0xdc):_0x1bf004(0x10b))[_0x1bf004(0xd5)]),_0x261da2[_0x1bf004(0xd9)]=!0x0,_0x261da2;}[_0x454c47(0xf5)](_0x6a815a){const _0x54372d=_0x454c47,{locale:_0x1f86eb}=this[_0x54372d(0xe0)],_0x190b36=this[_0x54372d(0xe0)][_0x54372d(0x109)][_0x54372d(0xf6)](_0x54372d(0xbf));return _0x6a815a[_0x54372d(0xda)](_0x16fcd1=>{const _0x4e44a4=_0x54372d,_0x358c50=this[_0x4e44a4(0xcf)](_0x517dfb,_0x16fcd1[_0x4e44a4(0xfb)]);return _0x358c50[_0x4e44a4(0xea)]=!0x0,_0x358c50[_0x4e44a4(0xce)]=_0x16fcd1[_0x4e44a4(0xce)],_0x358c50[_0x4e44a4(0xc5)](_0x4e44a4(0xc3))['to'](_0x190b36,_0x4e44a4(0xe2),_0x354a2a=>_0x2e37b1(_0x1f86eb,_0x16fcd1[_0x4e44a4(0xfb)],_0x354a2a?_0x4e44a4(0xdc):_0x4e44a4(0x10b))[_0x4e44a4(0xd5)]),_0x358c50;});}[_0x454c47(0x104)](_0x4b8df4){const _0x5e30e0=_0x454c47;return _0x4b8df4[_0x5e30e0(0xda)](_0x2dc4ea=>{const _0x53cb39=_0x5e30e0,_0xe34803=this[_0x53cb39(0xcf)](_0x3a3958,_0x2dc4ea[_0x53cb39(0xfb)]);return _0xe34803[_0x53cb39(0xce)]=_0x2dc4ea[_0x53cb39(0xce)],_0xe34803[_0x53cb39(0xc3)]=_0x2dc4ea[_0x53cb39(0xd8)],_0xe34803;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x544c05}from'ckeditor5/src/core.js';import{FileRepository as _0x54cf71}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x4e0602}from'./uploadcareediting.js';import{UploadUtils as _0x3b069e}from'./utils/uploadutils.js';import{getImageUrls as _0x121118}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x544c05{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x54cf71,_0x4e0602];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x359022=this['editor'];if(!!!_0x359022['config']['get']('uploadcare'))return;_0x359022['plugins']['get'](_0x54cf71)['createUploadAdapter']=_0x54ad4d=>new k(_0x54ad4d,_0x359022),_0x359022['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xefbaa2,{imageElement:_0x1c1829,data:_0x4f12b6})=>{_0x359022['model']['change'](_0x517bd5=>{_0x517bd5['setAttribute']('uploadcareImageId',_0x4f12b6['uploadcareImageId'],_0x1c1829);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5a8285,_0x24e088){this['loader']=_0x5a8285,this['editor']=_0x24e088,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5a8b01=await this['loader']['file'];return _0x3b069e['upload']({'file':_0x5a8b01,'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':_0x2ce52e=>{_0x2ce52e&&_0x2ce52e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2ce52e['value']);}})['then'](async _0x3ce104=>{const {imageFallbackUrl:_0xa982e6,imageSources:_0x38e612}=_0x121118(_0x3ce104['cdnUrl'],_0x3ce104['imageInfo']['width']);return{'uploadcareImageId':_0x3ce104['uuid'],'default':_0xa982e6,'sources':_0x38e612};})['catch'](()=>{const _0x162dcd=t('Cannot\x20upload\x20file:')+('\x20'+_0x5a8b01['name']+'.');return Promise['reject'](_0x162dcd);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x2ef4a4}from'../uploadcareconfig.js';export function getTranslation(_0x37ab38,_0x39e24c,_0x4c87ec){const t=_0x37ab38['t'],_0xd35236=_0x37ab38['t'];switch(_0x39e24c){case _0x2ef4a4['Local']:return{'text':_0xd35236('Insert'===_0x4c87ec?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xd35236('From\x20computer')};case _0x2ef4a4['URL']:return{'text':'Insert'===_0x4c87ec?_0xd35236('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xd35236('Via\x20URL')};case _0x2ef4a4['Dropbox']:return{'text':t('Insert'===_0x4c87ec?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x2ef4a4['Facebook']:return{'text':t('Insert'===_0x4c87ec?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x2ef4a4['GDrive']:return{'text':t('Insert'===_0x4c87ec?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x2ef4a4['GPhotos']:return{'text':t('Insert'===_0x4c87ec?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x2ef4a4['OneDrive']:return{'text':t('Insert'===_0x4c87ec?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x39e24c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x393160=_0x1cc1;function _0x1cc1(_0x12786e,_0x4c559d){var _0x3876cf=_0x3876();return _0x1cc1=function(_0x1cc1c8,_0x30be10){_0x1cc1c8=_0x1cc1c8-0x18d;var _0x3ee6cc=_0x3876cf[_0x1cc1c8];return _0x3ee6cc;},_0x1cc1(_0x12786e,_0x4c559d);}(function(_0x4c19ad,_0x483964){var _0x1875d7=_0x1cc1,_0x1dd081=_0x4c19ad();while(!![]){try{var _0x3b1e78=-parseInt(_0x1875d7(0x1a0))/0x1*(parseInt(_0x1875d7(0x19f))/0x2)+-parseInt(_0x1875d7(0x193))/0x3+-parseInt(_0x1875d7(0x196))/0x4*(-parseInt(_0x1875d7(0x19a))/0x5)+-parseInt(_0x1875d7(0x195))/0x6+parseInt(_0x1875d7(0x18d))/0x7*(parseInt(_0x1875d7(0x197))/0x8)+-parseInt(_0x1875d7(0x198))/0x9*(-parseInt(_0x1875d7(0x19e))/0xa)+-parseInt(_0x1875d7(0x199))/0xb;if(_0x3b1e78===_0x483964)break;else _0x1dd081['push'](_0x1dd081['shift']());}catch(_0x25138a){_0x1dd081['push'](_0x1dd081['shift']());}}}(_0x3876,0x1b857));import{FocusTracker as _0x57d8e1}from'ckeditor5/src/utils.js';import{View as _0x264d20,FocusCycler as _0xdc61d7}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x3876(){var _0x22e25e=['585906KhEtdZ','601948zewTWK','14496KttjIB','8514EeZVOW','710347rCNMbI','5LpNwkw','forwardCycle','getFocusableElement','focusCycler','2360ArFEWG','2OBoDQF','118682LGNlRY','238VKJJPW','bindTemplate','true','div','fire','createCollection','125142HoOCZO','focusTracker'];_0x3876=function(){return _0x22e25e;};return _0x3876();}export class DialogFocusManagerView extends _0x264d20{[_0x393160(0x194)];[_0x393160(0x19d)];constructor(_0x4c75e9){var _0x5ee02a=_0x393160;super(_0x4c75e9),this[_0x5ee02a(0x194)]=new _0x57d8e1(),this[_0x5ee02a(0x19d)]=new _0xdc61d7({'focusables':this[_0x5ee02a(0x192)](),'focusTracker':this[_0x5ee02a(0x194)]});}[_0x393160(0x19c)](){var _0x4f3e4d=_0x393160;return{'tag':_0x4f3e4d(0x190),'attributes':{'aria-hidden':_0x4f3e4d(0x18f),'tabindex':'0'},'on':{'focus':this[_0x4f3e4d(0x18e)]['to'](()=>{var _0x1c8254=_0x4f3e4d;this[_0x1c8254(0x19d)][_0x1c8254(0x191)](_0x1c8254(0x19b));})}};}}
|