@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251225.0 → 0.0.0-nightly-20251226.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x462c(){const _0xc6342b=['uploadcareImageId','once','document','body','uploadcareImageReplace','extend','uc-upload-ctx-provider','href','listenTo','ctxElement','replaceImageSource','_ctxElement','pluginName','\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','imageInline','cleanupImage','_initConversion','189976dZoMbN','downcast','12PHDQMY','isOfficialPlugin','imageBlock','model','destroy','conversion','1371318lcyxaE','uploader-','contentLanguage','uc-config','configElement','editing','for','_configElement','config','getAttribute','schema','uploadcare.pubkey','15105563CgCEkr','_initConfig','render','insertImage','execute','540PvWnlm','add','view','27990VKmmPU','uploadcare','255kWJGsm','afterInit','4132356KGDsgp','removeAttribute','getSelectedElement','init','elementToAttribute','selection','editor','iconHrefResolver','10432lSMQMM','ucContextId','attributeToAttribute','map','closeMax','true','commands','1437adTFcO','join','remove','UploadcareEditing','133WqURev','appendChild','isPremiumPlugin','get','input[uploadcare-file-input]','fromCharCode','uploadcare.uploader','140papZmZ','upcast','querySelector','_initCtx','_initSchema','requires','PictureEditing','_initImageProcessingIndicator','isRegistered','locale','#uc-icon-arrow-down','data-uc-image-id'];_0x462c=function(){return _0xc6342b;};return _0x462c();}const _0x3f5545=_0x2df7;(function(_0x3153cf,_0x334661){const _0x2e9dc3=_0x2df7,_0x22e1c5=_0x3153cf();while(!![]){try{const _0x5ef820=parseInt(_0x2e9dc3(0x195))/0x1*(-parseInt(_0x2e9dc3(0x1d6))/0x2)+parseInt(_0x2e9dc3(0x1c5))/0x3+-parseInt(_0x2e9dc3(0x18e))/0x4*(-parseInt(_0x2e9dc3(0x1db))/0x5)+-parseInt(_0x2e9dc3(0x1dd))/0x6+parseInt(_0x2e9dc3(0x199))/0x7*(-parseInt(_0x2e9dc3(0x1bd))/0x8)+-parseInt(_0x2e9dc3(0x1d9))/0x9*(parseInt(_0x2e9dc3(0x1a0))/0xa)+-parseInt(_0x2e9dc3(0x1d1))/0xb*(-parseInt(_0x2e9dc3(0x1bf))/0xc);if(_0x5ef820===_0x334661)break;else _0x22e1c5['push'](_0x22e1c5['shift']());}catch(_0x187d82){_0x22e1c5['push'](_0x22e1c5['shift']());}}}(_0x462c,0x5fada));import{Plugin as _0x17f35f}from'ckeditor5/src/core.js';import{Dialog as _0x57aa6d}from'ckeditor5/src/ui.js';function _0x2df7(_0x4cbee8,_0x24fbee){const _0x462ca6=_0x462c();return _0x2df7=function(_0x2df7b5,_0x75750e){_0x2df7b5=_0x2df7b5-0x189;let _0x4561e4=_0x462ca6[_0x2df7b5];return _0x4561e4;},_0x2df7(_0x4cbee8,_0x24fbee);}import{createElement as _0x385452,global as _0x2cbc25,uid as _0xcb86d6}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x7ddb97}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xaff9d2}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2462c4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x17f35f{[_0x3f5545(0x1cc)]=null;[_0x3f5545(0x1b7)]=null;static get[_0x3f5545(0x1b8)](){const _0x567c12=_0x3f5545;return _0x567c12(0x198);}static get[_0x3f5545(0x1a5)](){const _0x3752bd=_0x3f5545;return[_0x3752bd(0x1a6),_0xaff9d2,_0x57aa6d];}static get[_0x3f5545(0x1c0)](){return!0x0;}static get[_0x3f5545(0x19b)](){return!0x0;}[_0x3f5545(0x18f)];get[_0x3f5545(0x1c9)](){const _0x38ea05=_0x3f5545;return this[_0x38ea05(0x1cc)];}get[_0x3f5545(0x1b5)](){const _0x312aaf=_0x3f5545;return this[_0x312aaf(0x1b7)];}constructor(_0x496c0f){const _0x25ab2f=_0x3f5545;super(_0x496c0f),this[_0x25ab2f(0x18f)]=_0xcb86d6();}[_0x3f5545(0x189)](){const _0x175acb=_0x3f5545,_0x55df07=this[_0x175acb(0x18c)];_0x55df07[_0x175acb(0x194)][_0x175acb(0x1d7)](_0x175acb(0x1da),new _0x7ddb97(_0x55df07));}[_0x3f5545(0x1dc)](){const _0x1187fb=_0x3f5545;this[_0x1187fb(0x1a4)](),this[_0x1187fb(0x1bc)](),this[_0x1187fb(0x1d2)](),this[_0x1187fb(0x1a3)](),this[_0x1187fb(0x1a7)](),this[_0x1187fb(0x1b4)](this[_0x1187fb(0x18c)],_0x1187fb(0x1c3),()=>{const _0x46d16d=_0x1187fb;this[_0x46d16d(0x1cc)]&&(this[_0x46d16d(0x1cc)][_0x46d16d(0x197)](),this[_0x46d16d(0x1cc)]=null),this[_0x46d16d(0x1b7)]&&(this[_0x46d16d(0x1b7)][_0x46d16d(0x197)](),this[_0x46d16d(0x1b7)]=null);const _0x1c9dbe=_0x2cbc25[_0x46d16d(0x1ae)][_0x46d16d(0x1a2)](_0x46d16d(0x19d));_0x1c9dbe&&_0x1c9dbe[_0x46d16d(0x197)]();}),async function(_0x5bd8e3){const _0x2caa21=_0x31c845([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x58a8ea=0x535f8c3a,_0x293c32=0x5358f0d2^_0x58a8ea,_0xcb98ba=window[_0x31c845([0x44,0x61,0x74,0x65])][_0x31c845([0x6e,0x6f,0x77])](),_0x20f9ef=_0x5bd8e3[_0x31c845([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x487e94=new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x104138=>{_0x20f9ef[_0x31c845([0x6f,0x6e,0x63,0x65])](_0x31c845([0x72,0x65,0x61,0x64,0x79]),_0x104138);}),_0x12f359={[_0x31c845([0x6b,0x74,0x79])]:_0x31c845([0x45,0x43]),[_0x31c845([0x75,0x73,0x65])]:_0x31c845([0x73,0x69,0x67]),[_0x31c845([0x63,0x72,0x76])]:_0x31c845([0x50,0x2d,0x32,0x35,0x36]),[_0x31c845([0x78])]:_0x31c845([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]),[_0x31c845([0x79])]:_0x31c845([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]),[_0x31c845([0x61,0x6c,0x67])]:_0x31c845([0x45,0x53,0x32,0x35,0x36])},_0x16184d=_0x20f9ef[_0x31c845([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31c845([0x67,0x65,0x74])](_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e4250(){let _0x524c5f,_0xe7f86e=null,_0x14409c=null;try{if(_0x16184d==_0x31c845([0x47,0x50,0x4c]))return _0x31c845([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x524c5f=_0x13eb38(),!_0x524c5f)return _0x31c845([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x524c5f[_0x31c845([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14409c=_0x349ae1(_0x524c5f[_0x31c845([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x524c5f[_0x31c845([0x6a,0x74,0x69])])),await _0x163566()?_0x18e58c()?_0x5c0e00()?_0x31c845([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x450daf()?(_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31c845([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe7f86e=_0x442b63(_0x31c845([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31c845([0x74,0x72,0x69,0x61,0x6c])&&(_0xe7f86e=_0x442b63(_0x31c845([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30ec14()):_0x31c845([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31c845([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31c845([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x31c845([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c0e00(){const _0xa4bbbb=[_0x31c845([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31c845([0x74,0x72,0x69,0x61,0x6c])][_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcb98ba/0x3e8:0xe10*_0x293c32;return _0x524c5f[_0x31c845([0x65,0x78,0x70])]<_0xa4bbbb;}function _0x18e58c(){const _0x33c799=_0x524c5f[_0x31c845([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x33c799&&(!!_0x33c799[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c845([0x2a]))||!!_0x33c799[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c845([0x55,0x50,0x4c,0x43])));}function _0x450daf(){const _0x23f460=_0x2df7,_0x198ff2=_0x524c5f[_0x31c845([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x198ff2||0x0==_0x198ff2[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ab7b9}=new URL(window[_0x31c845([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x23f460(0x1b3)]);if(_0x198ff2[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ab7b9))return!0x0;const _0x10dca5=_0x5ab7b9[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e]));return _0x198ff2[_0x31c845([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4845bd=>_0x4845bd[_0x31c845([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31c845([0x2a])))[_0x31c845([0x6d,0x61,0x70])](_0x9262b0=>_0x9262b0[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e])))[_0x31c845([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5670d7=>_0x5670d7[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10dca5[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c845([0x6d,0x61,0x70])](_0xc17d20=>Array(_0x10dca5[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc17d20[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31c845([0x66,0x69,0x6c,0x6c])](_0xc17d20[0x0]===_0x31c845([0x2a])?_0x31c845([0x2a]):'')[_0x31c845([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc17d20))[_0x31c845([0x73,0x6f,0x6d,0x65])](_0x4436b6=>_0x10dca5[_0x31c845([0x65,0x76,0x65,0x72,0x79])]((_0x523b4c,_0x23c6cb)=>_0x4436b6[_0x23c6cb]===_0x523b4c||_0x4436b6[_0x23c6cb]===_0x31c845([0x2a])));}function _0x30ec14(){return _0xe7f86e&&_0x14409c?new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d845b,_0x59a16c)=>{_0xe7f86e[_0x31c845([0x74,0x68,0x65,0x6e])](_0x5d845b,_0x59a16c),_0x14409c[_0x31c845([0x74,0x68,0x65,0x6e])](_0x4d6145=>{_0x4d6145!=_0x31c845([0x56,0x61,0x6c,0x69,0x64])&&_0x5d845b(_0x4d6145);},_0x59a16c);}):_0xe7f86e||_0x14409c||_0x31c845([0x56,0x61,0x6c,0x69,0x64]);}}function _0x349ae1(_0x9bbcaa,_0x315788){return new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfc13cd=>{if(_0x23b707())return _0xfc13cd(_0x31c845([0x56,0x61,0x6c,0x69,0x64]));_0x23ff91(),_0x20f9ef[_0x31c845([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31c845([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3cb5e2=!0x1;const _0x5c2d57=_0xcb86d6();function _0x5348c5(_0x7ed96f){return!!_0x7ed96f&&(typeof _0x7ed96f===_0x31c845([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7ed96f===_0x31c845([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7ed96f[_0x31c845([0x74,0x68,0x65,0x6e])]===_0x31c845([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7ed96f[_0x31c845([0x63,0x61,0x74,0x63,0x68])]===_0x31c845([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16865a(_0x427109){_0x29cbb3(_0x427109)[_0x31c845([0x74,0x68,0x65,0x6e])](_0x300fc8=>{if(!_0x300fc8||_0x300fc8[_0x31c845([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31c845([0x6f,0x6b]))return _0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2acdc8(_0x4e612e(_0x5c2d57+_0x315788))!=_0x300fc8[_0x31c845([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31c845([0x56,0x61,0x6c,0x69,0x64]);})[_0x31c845([0x74,0x68,0x65,0x6e])](_0xfaaa26=>(_0x1ac05a(),_0xfaaa26),()=>{const _0x1db39c=_0x146a77();return null==_0x1db39c?(_0x1ac05a(),_0x31c845([0x56,0x61,0x6c,0x69,0x64])):_0x31c845(_0xcb98ba-_0x1db39c>(0x7753083a^_0x58a8ea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31c845([0x74,0x68,0x65,0x6e])](_0xfc13cd)[_0x31c845([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfc13cd(_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1247f1=0x536962ba^_0x58a8ea;function _0x1ac05a(){const _0x6e7c3e=_0x31c845([0x6c,0x6c,0x63,0x74,0x2d])+_0x2acdc8(_0x4e612e(_0x9bbcaa)),_0x27d1db=_0x43b36(_0x2acdc8(window[_0x31c845([0x4d,0x61,0x74,0x68])][_0x31c845([0x63,0x65,0x69,0x6c])](_0xcb98ba/_0x1247f1)));window[_0x31c845([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c845([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6e7c3e,_0x27d1db);}function _0x146a77(){const _0x21aeac=_0x31c845([0x6c,0x6c,0x63,0x74,0x2d])+_0x2acdc8(_0x4e612e(_0x9bbcaa)),_0x3e67bd=window[_0x31c845([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31c845([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21aeac);return _0x3e67bd?window[_0x31c845([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43b36(_0x3e67bd),0x10)*_0x1247f1:null;}function _0x29cbb3(_0x2033df){return new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55e6b4,_0x302d17)=>{_0x2033df[_0x31c845([0x74,0x68,0x65,0x6e])](_0x55e6b4,_0x302d17),window[_0x31c845([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x302d17,0x535e58fa^_0x58a8ea);});}}_0x20f9ef[_0x31c845([0x6f,0x6e])](_0x31c845([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f770c,_0x24c734)=>{if(_0x24c734[0x0]!=_0x9bbcaa)return _0xfc13cd(_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x24c734[0x1]={..._0x24c734[0x1],[_0x31c845([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c2d57};},{[_0x31c845([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c845([0x68,0x69,0x67,0x68])}),_0x20f9ef[_0x31c845([0x6f,0x6e])](_0x31c845([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45abd4=>{_0x5348c5(_0x45abd4[_0x31c845([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3cb5e2=!0x0,_0x16865a(_0x45abd4[_0x31c845([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31c845([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31c845([0x6c,0x6f,0x77])}),_0x487e94[_0x31c845([0x74,0x68,0x65,0x6e])](()=>{_0x3cb5e2||_0xfc13cd(_0x31c845([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23b707(){return _0x20f9ef[_0x31c845([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c845([0x76,0x69,0x65,0x77])][_0x31c845([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31c845([0x61,0x75,0x74,0x6f]);}function _0x23ff91(){_0x20f9ef[_0x31c845([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31c845([0x76,0x69,0x65,0x77])][_0x31c845([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31c845([0x61,0x75,0x74,0x6f]);}}function _0x442b63(_0x3d5273){const _0x51d943=[new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x496464=>setTimeout(_0x496464,0x5356b2f6^_0x58a8ea)),_0x487e94[_0x31c845([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f405=>{let _0x4cbcf3=0x0;_0x20f9ef[_0x31c845([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c845([0x6f,0x6e])](_0x31c845([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a0033,_0x589b3b)=>{_0x589b3b[0x0][_0x31c845([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4cbcf3++,_0x4cbcf3==(0x535f89d2^_0x58a8ea)&&(_0x57f405(),_0x4a0033[_0x31c845([0x6f,0x66,0x66])]());});}))];return window[_0x31c845([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31c845([0x72,0x61,0x63,0x65])](_0x51d943)[_0x31c845([0x74,0x68,0x65,0x6e])](()=>_0x3d5273);}async function _0x5d6af3(){await _0x487e94,_0x20f9ef[_0x31c845([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c845([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4bc321,_0x20f9ef[_0x31c845([0x6d,0x6f,0x64,0x65,0x6c])][_0x31c845([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4bc321,_0x20f9ef[_0x31c845([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31c845([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c274d(_0x2eae11){const _0x358de7=_0x1b2ba8();_0x20f9ef[_0x358de7]=_0x31c845([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2eae11,_0x2eae11!=_0x31c845([0x56,0x61,0x6c,0x69,0x64])&&_0x5d6af3();}function _0x1b2ba8(){const _0x2d3870=window[_0x31c845([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31c845([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31c845([0x6e,0x6f,0x77])]())[_0x31c845([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31c845([0x2e]),'');let _0x949d1e=_0x31c845([0x68]);for(let _0x2bdfa0=0x0;_0x2bdfa0<_0x2d3870[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bdfa0+=0x2){let _0x5af6a1=window[_0x31c845([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d3870[_0x31c845([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bdfa0,_0x2bdfa0+0x2));_0x5af6a1>=_0x2caa21[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5af6a1-=_0x2caa21[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x949d1e+=_0x2caa21[_0x5af6a1];}return _0x949d1e;}function _0x13eb38(){const _0x431dd8=_0x16184d[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e]));if(0x3!=_0x431dd8[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x195cf7(_0x431dd8[0x1]);function _0x195cf7(_0x4cf1dd){const _0xe9abac=_0x522104(_0x4cf1dd);return _0xe9abac&&_0x179c6a()?_0xe9abac:null;function _0x179c6a(){const _0x1a14cb=_0xe9abac[_0x31c845([0x6a,0x74,0x69])],_0x2caf19=window[_0x31c845([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a14cb[_0x31c845([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a14cb[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3efe36={..._0xe9abac,[_0x31c845([0x6a,0x74,0x69])]:_0x1a14cb[_0x31c845([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a14cb[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3efe36[_0x31c845([0x76,0x63])],_0x4e612e(_0x3efe36)==_0x2caf19;}}}async function _0x163566(){let _0x1dab26=!0x0;try{const _0x3c00d1=_0x16184d[_0x31c845([0x73,0x70,0x6c,0x69,0x74])](_0x31c845([0x2e])),[_0x29c3d5,_0x56e7d0,_0x272c19]=_0x3c00d1;return _0xf65da5(_0x29c3d5),await _0x5c585e(_0x29c3d5,_0x56e7d0,_0x272c19),_0x1dab26;}catch{return!0x1;}function _0xf65da5(_0x57e8c8){const _0x3f4697=_0x522104(_0x57e8c8);_0x3f4697&&_0x3f4697[_0x31c845([0x61,0x6c,0x67])]==_0x31c845([0x45,0x53,0x32,0x35,0x36])||(_0x1dab26=!0x1);}async function _0x5c585e(_0x59f540,_0x1345b3,_0x14ae59){const _0x5044f5=window[_0x31c845([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31c845([0x66,0x72,0x6f,0x6d])](_0x1c30ff(_0x14ae59),_0x3b64b5=>_0x3b64b5[_0x31c845([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x46e755=new window[(_0x31c845([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31c845([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59f540+_0x31c845([0x2e])+_0x1345b3),_0x2acaa3=window[_0x31c845([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31c845([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2acaa3)return;const _0x199b21=await _0x2acaa3[_0x31c845([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31c845([0x6a,0x77,0x6b]),_0x12f359,{[_0x31c845([0x6e,0x61,0x6d,0x65])]:_0x31c845([0x45,0x43,0x44,0x53,0x41]),[_0x31c845([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31c845([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31c845([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2acaa3[_0x31c845([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31c845([0x6e,0x61,0x6d,0x65])]:_0x31c845([0x45,0x43,0x44,0x53,0x41]),[_0x31c845([0x68,0x61,0x73,0x68])]:{[_0x31c845([0x6e,0x61,0x6d,0x65])]:_0x31c845([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x199b21,_0x5044f5,_0x46e755)||(_0x1dab26=!0x1);}}function _0x522104(_0x4fcb24){return _0x4fcb24[_0x31c845([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31c845([0x65,0x79]))?JSON[_0x31c845([0x70,0x61,0x72,0x73,0x65])](_0x1c30ff(_0x4fcb24)):null;}function _0x1c30ff(_0x5656f6){return window[_0x31c845([0x61,0x74,0x6f,0x62])](_0x5656f6[_0x31c845([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31c845([0x2b]))[_0x31c845([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31c845([0x2f])));}function _0x4e612e(_0x5315fd){let _0x2bf5a1=0x1505;function _0x3cb841(_0x5c0ff5){for(let _0x4f5dfe=0x0;_0x4f5dfe<_0x5c0ff5[_0x31c845([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f5dfe++){const _0x31fae7=_0x5c0ff5[_0x31c845([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f5dfe);_0x2bf5a1=(_0x2bf5a1<<0x5)+_0x2bf5a1+_0x31fae7,_0x2bf5a1&=_0x2bf5a1;}}function _0x4fe44a(_0x434241){Array[_0x31c845([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x434241)?_0x434241[_0x31c845([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fe44a):_0x434241&&typeof _0x434241==_0x31c845([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31c845([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x434241)[_0x31c845([0x73,0x6f,0x72,0x74])]()[_0x31c845([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41402b,_0x37a4c7])=>{_0x3cb841(_0x41402b),_0x4fe44a(_0x37a4c7);}):_0x3cb841(window[_0x31c845([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x434241));}return _0x4fe44a(_0x5315fd),_0x2bf5a1>>>0x0;}function _0x2acdc8(_0x180933){return _0x180933[_0x31c845([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31c845([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31c845([0x30]));}function _0x43b36(_0x372903){return _0x372903[_0x31c845([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31c845([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31c845([0x6a,0x6f,0x69,0x6e])]('');}function _0x4bc321(){}function _0x31c845(_0x44ddd3){const _0x28914e=_0x2df7;return _0x44ddd3[_0x28914e(0x191)](_0x524044=>String[_0x28914e(0x19e)](_0x524044))[_0x28914e(0x196)]('');}_0x5c274d(await _0x2e4250());}(this);}[_0x3f5545(0x1a4)](){const _0x2286ce=_0x3f5545,_0x4f47f5=this[_0x2286ce(0x18c)][_0x2286ce(0x1c2)][_0x2286ce(0x1cf)];_0x4f47f5[_0x2286ce(0x1a8)](_0x2286ce(0x1c1))&&_0x4f47f5[_0x2286ce(0x1b1)](_0x2286ce(0x1c1),{'allowAttributes':[_0x2286ce(0x1ac)]}),_0x4f47f5[_0x2286ce(0x1a8)](_0x2286ce(0x1ba))&&_0x4f47f5[_0x2286ce(0x1b1)](_0x2286ce(0x1ba),{'allowAttributes':[_0x2286ce(0x1ac)]});}[_0x3f5545(0x1bc)](){const _0x3b71f7=_0x3f5545,_0x5d2de0=this[_0x3b71f7(0x18c)];_0x5d2de0[_0x3b71f7(0x1c4)][_0x3b71f7(0x1cb)](_0x3b71f7(0x1be))[_0x3b71f7(0x190)]({'model':_0x3b71f7(0x1ac),'view':_0x3b71f7(0x1ab)}),_0x5d2de0[_0x3b71f7(0x1c4)][_0x3b71f7(0x1cb)](_0x3b71f7(0x1a1))[_0x3b71f7(0x18a)]({'model':{'key':_0x3b71f7(0x1ac),'value':_0x40fe58=>_0x40fe58[_0x3b71f7(0x1ce)](_0x3b71f7(0x1ab))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1b82fd=_0x5d2de0[_0x3b71f7(0x194)][_0x3b71f7(0x19c)](_0x3b71f7(0x1b6));_0x1b82fd&&this[_0x3b71f7(0x1b4)](_0x1b82fd,_0x3b71f7(0x1bb),(_0x460262,[_0x14e88f,_0xb25810])=>{const _0x42cb21=_0x3b71f7;_0x14e88f[_0x42cb21(0x1de)](_0x42cb21(0x1ac),_0xb25810);});}[_0x3f5545(0x1d2)](){const _0x3e0f85=_0x3f5545,_0x1ab5d0=this[_0x3e0f85(0x18c)][_0x3e0f85(0x1cd)][_0x3e0f85(0x19c)](_0x3e0f85(0x19f))||{},_0x38c083=this[_0x3e0f85(0x18c)][_0x3e0f85(0x1cd)][_0x3e0f85(0x19c)](_0x3e0f85(0x1d0))||'';this[_0x3e0f85(0x1cc)]=_0x385452(_0x2cbc25[_0x3e0f85(0x1ae)],_0x3e0f85(0x1c8),{..._0x1ab5d0,'pubkey':_0x38c083,'ctx-name':_0x3e0f85(0x1c6)+this[_0x3e0f85(0x18f)],'sourceList':'','imgOnly':_0x3e0f85(0x193),'removeCopyright':_0x3e0f85(0x193),'localeName':this[_0x3e0f85(0x18c)][_0x3e0f85(0x1a9)][_0x3e0f85(0x1c7)],'externalSourcesEmbedCss':_0x3e0f85(0x1b9)}),this[_0x3e0f85(0x1cc)][_0x3e0f85(0x18d)]=_0x59518b=>{const _0x2949b2=_0x3e0f85;if(_0x2949b2(0x192)==_0x59518b)return _0x2949b2(0x1aa);},_0x2cbc25[_0x3e0f85(0x1ae)][_0x3e0f85(0x1af)][_0x3e0f85(0x19a)](this[_0x3e0f85(0x1cc)]);}[_0x3f5545(0x1a3)](){const _0x575b0d=_0x3f5545;this[_0x575b0d(0x1b7)]=_0x385452(_0x2cbc25[_0x575b0d(0x1ae)],_0x575b0d(0x1b2),{'ctx-name':_0x575b0d(0x1c6)+this[_0x575b0d(0x18f)]}),_0x2cbc25[_0x575b0d(0x1ae)][_0x575b0d(0x1af)][_0x575b0d(0x19a)](this[_0x575b0d(0x1b7)]);}[_0x3f5545(0x1a7)](){const _0x454c2b=_0x3f5545,_0x4477c5=this[_0x454c2b(0x18c)][_0x454c2b(0x194)][_0x454c2b(0x19c)](_0x454c2b(0x1d4));_0x4477c5&&this[_0x454c2b(0x1b4)](_0x4477c5,_0x454c2b(0x1d5),()=>{const _0x420118=_0x454c2b,_0x1c5aa8=this[_0x420118(0x18c)][_0x420118(0x1c2)][_0x420118(0x1ae)][_0x420118(0x18b)][_0x420118(0x1df)]();_0x1c5aa8&&_0x1c5aa8[_0x420118(0x1ce)](_0x420118(0x1ac))&&this[_0x420118(0x18c)][_0x420118(0x1ca)][_0x420118(0x1d8)][_0x420118(0x1ad)](_0x420118(0x1d3),()=>{const _0x30b34a=_0x420118;_0x2462c4(this[_0x30b34a(0x18c)],_0x1c5aa8);});});const _0x51bf8a=this[_0x454c2b(0x18c)][_0x454c2b(0x194)][_0x454c2b(0x19c)](_0x454c2b(0x1b0));_0x51bf8a&&this[_0x454c2b(0x1b4)](_0x51bf8a,_0x454c2b(0x1d5),()=>{const _0x292d8b=_0x454c2b,_0x1b679b=this[_0x292d8b(0x18c)][_0x292d8b(0x1c2)][_0x292d8b(0x1ae)][_0x292d8b(0x18b)][_0x292d8b(0x1df)]();_0x1b679b&&_0x1b679b[_0x292d8b(0x1ce)](_0x292d8b(0x1ac))&&this[_0x292d8b(0x18c)][_0x292d8b(0x1ca)][_0x292d8b(0x1d8)][_0x292d8b(0x1ad)](_0x292d8b(0x1d3),()=>{const _0x4df8f6=_0x292d8b;_0x2462c4(this[_0x4df8f6(0x18c)],_0x1b679b);});});}}
|
|
23
|
+
const _0x3d47d0=_0x1166;(function(_0x25efa6,_0x1aa0d2){const _0xccb4c3=_0x1166,_0x11b0d4=_0x25efa6();while(!![]){try{const _0x378e40=-parseInt(_0xccb4c3(0x213))/0x1+parseInt(_0xccb4c3(0x1d7))/0x2+-parseInt(_0xccb4c3(0x211))/0x3+parseInt(_0xccb4c3(0x204))/0x4+parseInt(_0xccb4c3(0x21a))/0x5+-parseInt(_0xccb4c3(0x1fa))/0x6+parseInt(_0xccb4c3(0x1f6))/0x7*(parseInt(_0xccb4c3(0x219))/0x8);if(_0x378e40===_0x1aa0d2)break;else _0x11b0d4['push'](_0x11b0d4['shift']());}catch(_0x1049cf){_0x11b0d4['push'](_0x11b0d4['shift']());}}}(_0x3cdc,0xbce1c));import{Plugin as _0x2081f6}from'ckeditor5/src/core.js';function _0x1166(_0xc395a8,_0x3bc64f){const _0x3cdc41=_0x3cdc();return _0x1166=function(_0x11667c,_0x13d488){_0x11667c=_0x11667c-0x1c9;let _0x3f3ff5=_0x3cdc41[_0x11667c];return _0x3f3ff5;},_0x1166(_0xc395a8,_0x3bc64f);}function _0x3cdc(){const _0x5b12e2=['uploadcare','upcast','editing','execute','uploadcareImageReplace','ucContextId','for','requires','isRegistered','imageInline','removeAttribute','getSelectedElement','configElement','listenTo','extend','closeMax','uc-upload-ctx-provider','commands','\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','attributeToAttribute','uploadcare.pubkey','config','selection','href','document','6411412tqiSUJ','fromCharCode','uploadcare.uploader','true','5914104AHQtPn','insertImage','contentLanguage','init','get','data-uc-image-id','cleanupImage','once','view','editor','5060400AdqCON','imageBlock','body','getAttribute','isOfficialPlugin','uploadcareImageId','schema','conversion','map','afterInit','isPremiumPlugin','input[uploadcare-file-input]','pluginName','4589877AqTXTQ','querySelector','1438429dqxhen','downcast','uploader-','PictureEditing','locale','ctxElement','24JUCbrN','637065vAGvJS','_initConversion','join','_configElement','#uc-icon-arrow-down','elementToAttribute','_initSchema','destroy','add','_initImageProcessingIndicator','UploadcareEditing','iconHrefResolver','remove','render','uc-config','model','1174942APYuyK','_initConfig','_initCtx','appendChild','replaceImageSource','_ctxElement'];_0x3cdc=function(){return _0x5b12e2;};return _0x3cdc();}import{Dialog as _0x573430}from'ckeditor5/src/ui.js';import{createElement as _0x1187ac,global as _0xc0482c,uid as _0x3faca2}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x517856}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x44d873}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4673bf}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2081f6{[_0x3d47d0(0x1ca)]=null;[_0x3d47d0(0x1dc)]=null;static get[_0x3d47d0(0x210)](){const _0x46c27e=_0x3d47d0;return _0x46c27e(0x1d1);}static get[_0x3d47d0(0x1e4)](){const _0x240c8e=_0x3d47d0;return[_0x240c8e(0x216),_0x44d873,_0x573430];}static get[_0x3d47d0(0x208)](){return!0x0;}static get[_0x3d47d0(0x20e)](){return!0x0;}[_0x3d47d0(0x1e2)];get[_0x3d47d0(0x1e9)](){const _0x1c7d39=_0x3d47d0;return this[_0x1c7d39(0x1ca)];}get[_0x3d47d0(0x218)](){const _0x42320f=_0x3d47d0;return this[_0x42320f(0x1dc)];}constructor(_0x336eed){const _0x40a6b3=_0x3d47d0;super(_0x336eed),this[_0x40a6b3(0x1e2)]=_0x3faca2();}[_0x3d47d0(0x1fd)](){const _0x23f78e=_0x3d47d0,_0x3918f0=this[_0x23f78e(0x203)];_0x3918f0[_0x23f78e(0x1ee)][_0x23f78e(0x1cf)](_0x23f78e(0x1dd),new _0x517856(_0x3918f0));}[_0x3d47d0(0x20d)](){const _0x4d14cd=_0x3d47d0;this[_0x4d14cd(0x1cd)](),this[_0x4d14cd(0x21b)](),this[_0x4d14cd(0x1d8)](),this[_0x4d14cd(0x1d9)](),this[_0x4d14cd(0x1d0)](),this[_0x4d14cd(0x1ea)](this[_0x4d14cd(0x203)],_0x4d14cd(0x1ce),()=>{const _0x296721=_0x4d14cd;this[_0x296721(0x1ca)]&&(this[_0x296721(0x1ca)][_0x296721(0x1d3)](),this[_0x296721(0x1ca)]=null),this[_0x296721(0x1dc)]&&(this[_0x296721(0x1dc)][_0x296721(0x1d3)](),this[_0x296721(0x1dc)]=null);const _0x25276d=_0xc0482c[_0x296721(0x1f5)][_0x296721(0x212)](_0x296721(0x20f));_0x25276d&&_0x25276d[_0x296721(0x1d3)]();}),async function(_0x34743a){const _0x51229d=_0x5cc309([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xe0310d=0x535f8c3a,_0x51504d=0x5358f13a^_0xe0310d,_0x29278d=window[_0x5cc309([0x44,0x61,0x74,0x65])][_0x5cc309([0x6e,0x6f,0x77])](),_0x56723b=_0x34743a[_0x5cc309([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x127791=new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f5dc4=>{_0x56723b[_0x5cc309([0x6f,0x6e,0x63,0x65])](_0x5cc309([0x72,0x65,0x61,0x64,0x79]),_0x5f5dc4);}),_0x173f21={[_0x5cc309([0x6b,0x74,0x79])]:_0x5cc309([0x45,0x43]),[_0x5cc309([0x75,0x73,0x65])]:_0x5cc309([0x73,0x69,0x67]),[_0x5cc309([0x63,0x72,0x76])]:_0x5cc309([0x50,0x2d,0x32,0x35,0x36]),[_0x5cc309([0x78])]:_0x5cc309([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]),[_0x5cc309([0x79])]:_0x5cc309([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]),[_0x5cc309([0x61,0x6c,0x67])]:_0x5cc309([0x45,0x53,0x32,0x35,0x36])},_0x276c5c=_0x56723b[_0x5cc309([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5cc309([0x67,0x65,0x74])](_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b318e(){let _0x9f4039,_0x3e82b0=null,_0x4c4b42=null;try{if(_0x276c5c==_0x5cc309([0x47,0x50,0x4c]))return _0x5cc309([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9f4039=_0x5d5ff5(),!_0x9f4039)return _0x5cc309([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9f4039[_0x5cc309([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c4b42=_0x1443d5(_0x9f4039[_0x5cc309([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9f4039[_0x5cc309([0x6a,0x74,0x69])])),await _0x18e2cf()?_0x5649f1()?_0x508679()?_0x5cc309([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22dd8a()?(_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cc309([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e82b0=_0x3280ab(_0x5cc309([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cc309([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e82b0=_0x3280ab(_0x5cc309([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8376d9()):_0x5cc309([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5cc309([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5cc309([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5cc309([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x508679(){const _0x3902e2=[_0x5cc309([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5cc309([0x74,0x72,0x69,0x61,0x6c])][_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29278d/0x3e8:0xe10*_0x51504d;return _0x9f4039[_0x5cc309([0x65,0x78,0x70])]<_0x3902e2;}function _0x5649f1(){const _0x22586b=_0x9f4039[_0x5cc309([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x22586b&&(!!_0x22586b[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cc309([0x2a]))||!!_0x22586b[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cc309([0x55,0x50,0x4c,0x43])));}function _0x22dd8a(){const _0x19369d=_0x1166,_0x14c61a=_0x9f4039[_0x5cc309([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14c61a||0x0==_0x14c61a[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2670fa}=new URL(window[_0x5cc309([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x19369d(0x1f4)]);if(_0x14c61a[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2670fa))return!0x0;const _0x84f0ac=_0x2670fa[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e]));return _0x14c61a[_0x5cc309([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x498a91=>_0x498a91[_0x5cc309([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cc309([0x2a])))[_0x5cc309([0x6d,0x61,0x70])](_0x7a3be5=>_0x7a3be5[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e])))[_0x5cc309([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a67f2=>_0x3a67f2[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x84f0ac[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cc309([0x6d,0x61,0x70])](_0x1bfdb5=>Array(_0x84f0ac[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1bfdb5[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cc309([0x66,0x69,0x6c,0x6c])](_0x1bfdb5[0x0]===_0x5cc309([0x2a])?_0x5cc309([0x2a]):'')[_0x5cc309([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1bfdb5))[_0x5cc309([0x73,0x6f,0x6d,0x65])](_0x3c7b5c=>_0x84f0ac[_0x5cc309([0x65,0x76,0x65,0x72,0x79])]((_0x1bb701,_0x4ddf1c)=>_0x3c7b5c[_0x4ddf1c]===_0x1bb701||_0x3c7b5c[_0x4ddf1c]===_0x5cc309([0x2a])));}function _0x8376d9(){return _0x3e82b0&&_0x4c4b42?new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37c3d5,_0x45940e)=>{_0x3e82b0[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x37c3d5,_0x45940e),_0x4c4b42[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x52405c=>{_0x52405c!=_0x5cc309([0x56,0x61,0x6c,0x69,0x64])&&_0x37c3d5(_0x52405c);},_0x45940e);}):_0x3e82b0||_0x4c4b42||_0x5cc309([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1443d5(_0x194b4c,_0x1186a2){return new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fac8b=>{if(_0x483f5f())return _0x3fac8b(_0x5cc309([0x56,0x61,0x6c,0x69,0x64]));_0x4be9ed(),_0x56723b[_0x5cc309([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5cc309([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x120ae=!0x1;const _0x70629=_0x3faca2();function _0x19e460(_0x2d1f76){return!!_0x2d1f76&&(typeof _0x2d1f76===_0x5cc309([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d1f76===_0x5cc309([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d1f76[_0x5cc309([0x74,0x68,0x65,0x6e])]===_0x5cc309([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d1f76[_0x5cc309([0x63,0x61,0x74,0x63,0x68])]===_0x5cc309([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17fd0e(_0x27d948){_0x42b42b(_0x27d948)[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x9d5e92=>{if(!_0x9d5e92||_0x9d5e92[_0x5cc309([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5cc309([0x6f,0x6b]))return _0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d4667(_0xd9d69e(_0x70629+_0x1186a2))!=_0x9d5e92[_0x5cc309([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5cc309([0x56,0x61,0x6c,0x69,0x64]);})[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x2cc5d5=>(_0x27d81d(),_0x2cc5d5),()=>{const _0x3310f2=_0x3ee056();return null==_0x3310f2?(_0x27d81d(),_0x5cc309([0x56,0x61,0x6c,0x69,0x64])):_0x5cc309(_0x29278d-_0x3310f2>(0x7753083a^_0xe0310d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x3fac8b)[_0x5cc309([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3fac8b(_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41578c=0x536962ba^_0xe0310d;function _0x27d81d(){const _0x1e701c=_0x5cc309([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d4667(_0xd9d69e(_0x194b4c)),_0x2f0c08=_0x3e7ac1(_0x3d4667(window[_0x5cc309([0x4d,0x61,0x74,0x68])][_0x5cc309([0x63,0x65,0x69,0x6c])](_0x29278d/_0x41578c)));window[_0x5cc309([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cc309([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e701c,_0x2f0c08);}function _0x3ee056(){const _0x27f7dc=_0x5cc309([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d4667(_0xd9d69e(_0x194b4c)),_0x5f500f=window[_0x5cc309([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cc309([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27f7dc);return _0x5f500f?window[_0x5cc309([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e7ac1(_0x5f500f),0x10)*_0x41578c:null;}function _0x42b42b(_0x53abc5){return new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42cd1d,_0x8ea0a5)=>{_0x53abc5[_0x5cc309([0x74,0x68,0x65,0x6e])](_0x42cd1d,_0x8ea0a5),window[_0x5cc309([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8ea0a5,0x535e58fa^_0xe0310d);});}}_0x56723b[_0x5cc309([0x6f,0x6e])](_0x5cc309([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20f5d0,_0x1751b9)=>{if(_0x1751b9[0x0]!=_0x194b4c)return _0x3fac8b(_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1751b9[0x1]={..._0x1751b9[0x1],[_0x5cc309([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x70629};},{[_0x5cc309([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cc309([0x68,0x69,0x67,0x68])}),_0x56723b[_0x5cc309([0x6f,0x6e])](_0x5cc309([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x81753a=>{_0x19e460(_0x81753a[_0x5cc309([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x120ae=!0x0,_0x17fd0e(_0x81753a[_0x5cc309([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5cc309([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cc309([0x6c,0x6f,0x77])}),_0x127791[_0x5cc309([0x74,0x68,0x65,0x6e])](()=>{_0x120ae||_0x3fac8b(_0x5cc309([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x483f5f(){return _0x56723b[_0x5cc309([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cc309([0x76,0x69,0x65,0x77])][_0x5cc309([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5cc309([0x61,0x75,0x74,0x6f]);}function _0x4be9ed(){_0x56723b[_0x5cc309([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cc309([0x76,0x69,0x65,0x77])][_0x5cc309([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cc309([0x61,0x75,0x74,0x6f]);}}function _0x3280ab(_0x3e5565){const _0x252d63=[new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26a615=>setTimeout(_0x26a615,0x5356b2f6^_0xe0310d)),_0x127791[_0x5cc309([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1523=>{let _0x4274e5=0x0;_0x56723b[_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cc309([0x6f,0x6e])](_0x5cc309([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4bd1ce,_0x23a293)=>{_0x23a293[0x0][_0x5cc309([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4274e5++,_0x4274e5==(0x535f89d2^_0xe0310d)&&(_0x4a1523(),_0x4bd1ce[_0x5cc309([0x6f,0x66,0x66])]());});}))];return window[_0x5cc309([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cc309([0x72,0x61,0x63,0x65])](_0x252d63)[_0x5cc309([0x74,0x68,0x65,0x6e])](()=>_0x3e5565);}async function _0x481b6c(){await _0x127791,_0x56723b[_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cc309([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x315679,_0x56723b[_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cc309([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x315679,_0x56723b[_0x5cc309([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5cc309([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x12fceb(_0x497ac7){const _0x4691e0=_0x2023e6();_0x56723b[_0x4691e0]=_0x5cc309([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x497ac7,_0x497ac7!=_0x5cc309([0x56,0x61,0x6c,0x69,0x64])&&_0x481b6c();}function _0x2023e6(){const _0x5479b9=window[_0x5cc309([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5cc309([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5cc309([0x6e,0x6f,0x77])]())[_0x5cc309([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5cc309([0x2e]),'');let _0x2aad8b=_0x5cc309([0x68]);for(let _0x52e016=0x0;_0x52e016<_0x5479b9[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52e016+=0x2){let _0x35cc80=window[_0x5cc309([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5479b9[_0x5cc309([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52e016,_0x52e016+0x2));_0x35cc80>=_0x51229d[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35cc80-=_0x51229d[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2aad8b+=_0x51229d[_0x35cc80];}return _0x2aad8b;}function _0x5d5ff5(){const _0x28ab18=_0x276c5c[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e]));if(0x3!=_0x28ab18[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e2f1b(_0x28ab18[0x1]);function _0x1e2f1b(_0x2c0701){const _0x444654=_0x140949(_0x2c0701);return _0x444654&&_0x37a983()?_0x444654:null;function _0x37a983(){const _0x431fbb=_0x444654[_0x5cc309([0x6a,0x74,0x69])],_0x1609fd=window[_0x5cc309([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x431fbb[_0x5cc309([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x431fbb[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6da828={..._0x444654,[_0x5cc309([0x6a,0x74,0x69])]:_0x431fbb[_0x5cc309([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x431fbb[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6da828[_0x5cc309([0x76,0x63])],_0xd9d69e(_0x6da828)==_0x1609fd;}}}async function _0x18e2cf(){let _0x3241c2=!0x0;try{const _0x12625d=_0x276c5c[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])](_0x5cc309([0x2e])),[_0x1a7942,_0x61b48e,_0x2d8995]=_0x12625d;return _0x3d8ed4(_0x1a7942),await _0x17ff8a(_0x1a7942,_0x61b48e,_0x2d8995),_0x3241c2;}catch{return!0x1;}function _0x3d8ed4(_0xba370c){const _0x58566e=_0x140949(_0xba370c);_0x58566e&&_0x58566e[_0x5cc309([0x61,0x6c,0x67])]==_0x5cc309([0x45,0x53,0x32,0x35,0x36])||(_0x3241c2=!0x1);}async function _0x17ff8a(_0x2f7a85,_0x993856,_0x54cab1){const _0x3ee82c=window[_0x5cc309([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5cc309([0x66,0x72,0x6f,0x6d])](_0x2438b8(_0x54cab1),_0x344edc=>_0x344edc[_0x5cc309([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e3333=new window[(_0x5cc309([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5cc309([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f7a85+_0x5cc309([0x2e])+_0x993856),_0x56684f=window[_0x5cc309([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5cc309([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x56684f)return;const _0x31773e=await _0x56684f[_0x5cc309([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5cc309([0x6a,0x77,0x6b]),_0x173f21,{[_0x5cc309([0x6e,0x61,0x6d,0x65])]:_0x5cc309([0x45,0x43,0x44,0x53,0x41]),[_0x5cc309([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5cc309([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5cc309([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x56684f[_0x5cc309([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5cc309([0x6e,0x61,0x6d,0x65])]:_0x5cc309([0x45,0x43,0x44,0x53,0x41]),[_0x5cc309([0x68,0x61,0x73,0x68])]:{[_0x5cc309([0x6e,0x61,0x6d,0x65])]:_0x5cc309([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31773e,_0x3ee82c,_0x3e3333)||(_0x3241c2=!0x1);}}function _0x140949(_0x190c5f){return _0x190c5f[_0x5cc309([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5cc309([0x65,0x79]))?JSON[_0x5cc309([0x70,0x61,0x72,0x73,0x65])](_0x2438b8(_0x190c5f)):null;}function _0x2438b8(_0x65bb27){return window[_0x5cc309([0x61,0x74,0x6f,0x62])](_0x65bb27[_0x5cc309([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5cc309([0x2b]))[_0x5cc309([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5cc309([0x2f])));}function _0xd9d69e(_0xf5102a){let _0x5712b3=0x1505;function _0x138e65(_0xa2f071){for(let _0x1de940=0x0;_0x1de940<_0xa2f071[_0x5cc309([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1de940++){const _0xd89b31=_0xa2f071[_0x5cc309([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1de940);_0x5712b3=(_0x5712b3<<0x5)+_0x5712b3+_0xd89b31,_0x5712b3&=_0x5712b3;}}function _0x50cb55(_0x2a7a59){Array[_0x5cc309([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a7a59)?_0x2a7a59[_0x5cc309([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50cb55):_0x2a7a59&&typeof _0x2a7a59==_0x5cc309([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5cc309([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a7a59)[_0x5cc309([0x73,0x6f,0x72,0x74])]()[_0x5cc309([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13cc2c,_0x37b8fc])=>{_0x138e65(_0x13cc2c),_0x50cb55(_0x37b8fc);}):_0x138e65(window[_0x5cc309([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a7a59));}return _0x50cb55(_0xf5102a),_0x5712b3>>>0x0;}function _0x3d4667(_0x931cc4){return _0x931cc4[_0x5cc309([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5cc309([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5cc309([0x30]));}function _0x3e7ac1(_0x4f251b){return _0x4f251b[_0x5cc309([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5cc309([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5cc309([0x6a,0x6f,0x69,0x6e])]('');}function _0x315679(){}function _0x5cc309(_0x2bbfe7){const _0x68f2f8=_0x1166;return _0x2bbfe7[_0x68f2f8(0x20c)](_0x310260=>String[_0x68f2f8(0x1f7)](_0x310260))[_0x68f2f8(0x1c9)]('');}_0x12fceb(await _0x4b318e());}(this);}[_0x3d47d0(0x1cd)](){const _0x164fda=_0x3d47d0,_0x81b0ba=this[_0x164fda(0x203)][_0x164fda(0x1d6)][_0x164fda(0x20a)];_0x81b0ba[_0x164fda(0x1e5)](_0x164fda(0x205))&&_0x81b0ba[_0x164fda(0x1eb)](_0x164fda(0x205),{'allowAttributes':[_0x164fda(0x209)]}),_0x81b0ba[_0x164fda(0x1e5)](_0x164fda(0x1e6))&&_0x81b0ba[_0x164fda(0x1eb)](_0x164fda(0x1e6),{'allowAttributes':[_0x164fda(0x209)]});}[_0x3d47d0(0x21b)](){const _0x5712b4=_0x3d47d0,_0x48c043=this[_0x5712b4(0x203)];_0x48c043[_0x5712b4(0x20b)][_0x5712b4(0x1e3)](_0x5712b4(0x214))[_0x5712b4(0x1f0)]({'model':_0x5712b4(0x209),'view':_0x5712b4(0x1ff)}),_0x48c043[_0x5712b4(0x20b)][_0x5712b4(0x1e3)](_0x5712b4(0x1de))[_0x5712b4(0x1cc)]({'model':{'key':_0x5712b4(0x209),'value':_0x5b0c88=>_0x5b0c88[_0x5712b4(0x207)](_0x5712b4(0x1ff))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3a404c=_0x48c043[_0x5712b4(0x1ee)][_0x5712b4(0x1fe)](_0x5712b4(0x1db));_0x3a404c&&this[_0x5712b4(0x1ea)](_0x3a404c,_0x5712b4(0x200),(_0x93d003,[_0x6f0ed6,_0x2b4efa])=>{const _0x221cd9=_0x5712b4;_0x6f0ed6[_0x221cd9(0x1e7)](_0x221cd9(0x209),_0x2b4efa);});}[_0x3d47d0(0x1d8)](){const _0x10dc23=_0x3d47d0,_0x2aa72e=this[_0x10dc23(0x203)][_0x10dc23(0x1f2)][_0x10dc23(0x1fe)](_0x10dc23(0x1f8))||{},_0x502b99=this[_0x10dc23(0x203)][_0x10dc23(0x1f2)][_0x10dc23(0x1fe)](_0x10dc23(0x1f1))||'';this[_0x10dc23(0x1ca)]=_0x1187ac(_0xc0482c[_0x10dc23(0x1f5)],_0x10dc23(0x1d5),{..._0x2aa72e,'pubkey':_0x502b99,'ctx-name':_0x10dc23(0x215)+this[_0x10dc23(0x1e2)],'sourceList':'','imgOnly':_0x10dc23(0x1f9),'removeCopyright':_0x10dc23(0x1f9),'localeName':this[_0x10dc23(0x203)][_0x10dc23(0x217)][_0x10dc23(0x1fc)],'externalSourcesEmbedCss':_0x10dc23(0x1ef)}),this[_0x10dc23(0x1ca)][_0x10dc23(0x1d2)]=_0x21c26c=>{const _0x45cc16=_0x10dc23;if(_0x45cc16(0x1ec)==_0x21c26c)return _0x45cc16(0x1cb);},_0xc0482c[_0x10dc23(0x1f5)][_0x10dc23(0x206)][_0x10dc23(0x1da)](this[_0x10dc23(0x1ca)]);}[_0x3d47d0(0x1d9)](){const _0x37303d=_0x3d47d0;this[_0x37303d(0x1dc)]=_0x1187ac(_0xc0482c[_0x37303d(0x1f5)],_0x37303d(0x1ed),{'ctx-name':_0x37303d(0x215)+this[_0x37303d(0x1e2)]}),_0xc0482c[_0x37303d(0x1f5)][_0x37303d(0x206)][_0x37303d(0x1da)](this[_0x37303d(0x1dc)]);}[_0x3d47d0(0x1d0)](){const _0x5ed43b=_0x3d47d0,_0x4dcbec=this[_0x5ed43b(0x203)][_0x5ed43b(0x1ee)][_0x5ed43b(0x1fe)](_0x5ed43b(0x1fb));_0x4dcbec&&this[_0x5ed43b(0x1ea)](_0x4dcbec,_0x5ed43b(0x1e0),()=>{const _0x355625=_0x5ed43b,_0xacccd7=this[_0x355625(0x203)][_0x355625(0x1d6)][_0x355625(0x1f5)][_0x355625(0x1f3)][_0x355625(0x1e8)]();_0xacccd7&&_0xacccd7[_0x355625(0x207)](_0x355625(0x209))&&this[_0x355625(0x203)][_0x355625(0x1df)][_0x355625(0x202)][_0x355625(0x201)](_0x355625(0x1d4),()=>{const _0x18c1bb=_0x355625;_0x4673bf(this[_0x18c1bb(0x203)],_0xacccd7);});});const _0xb0056a=this[_0x5ed43b(0x203)][_0x5ed43b(0x1ee)][_0x5ed43b(0x1fe)](_0x5ed43b(0x1e1));_0xb0056a&&this[_0x5ed43b(0x1ea)](_0xb0056a,_0x5ed43b(0x1e0),()=>{const _0x223d2d=_0x5ed43b,_0x33c0a1=this[_0x223d2d(0x203)][_0x223d2d(0x1d6)][_0x223d2d(0x1f5)][_0x223d2d(0x1f3)][_0x223d2d(0x1e8)]();_0x33c0a1&&_0x33c0a1[_0x223d2d(0x207)](_0x223d2d(0x209))&&this[_0x223d2d(0x203)][_0x223d2d(0x1df)][_0x223d2d(0x202)][_0x223d2d(0x201)](_0x223d2d(0x1d4),()=>{const _0x25ec13=_0x223d2d;_0x4673bf(this[_0x25ec13(0x203)],_0x33c0a1);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x512580,ObservableMixin as _0x44de94}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x118bde}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4facdd}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1eb74a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x3b54de}from'../../utils/uploadutils.js';import{getImageUrls as _0x4de195,getImageDimension as _0x13d4ec}from'../../utils/editingutils.js';import{isAncestor as _0x30846e}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x44de94(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x304e59,_0x54bda0,_0x521566){super(),this['_editor']=_0x304e59,this['_dialog']=_0x54bda0,this['_imageElement']=_0x521566,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 _0x384a11=this['_imageElement'],_0x914666=_0x384a11['getAttribute']('uploadcareImageId'),_0x2ac35a=_0x384a11['getAttribute']('src');if(_0x914666)await this['_loadImageInfo'](_0x914666,_0x2ac35a);else{if(this['_imageCache']['has'](_0x2ac35a)){const _0x2ea720=this['_imageCache']['get'](_0x2ac35a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ea720['url'],this['imageDimension']=_0x2ea720['dimension'],this['imageId']=_0x2ea720['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5299bb}=this['_editor'],t=_0x5299bb['t'],_0x3c1171=new _0x1eb74a(_0x5299bb,this['imageStatus'],this['_attributes']);_0x3c1171['bind']('status')['to'](this,'imageStatus'),_0x3c1171['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3c1171['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3c1171['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3c1171,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4facdd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3c1171,'position':_0x118bde['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3c1171['focus']();},'onHide':()=>{_0x3c1171['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e69f4=>!_0x30846e(_0x4e69f4,_0x3c1171['element'])}});}['_loadImageInfo'](_0x3896fa,_0x558853){return _0x3b54de['getInfo'](_0x3896fa,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4a8aa4=>{const {width:_0xcb874f,height:_0x1f5454}=_0x4a8aa4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x558853,this['imageDimension']={'width':_0xcb874f,'height':_0x1f5454},this['imageId']=_0x3896fa;})['catch'](_0x1f0027=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f0027['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x24667c,_0xfee29f){return this['_getImageAsFile'](_0x24667c)['then'](_0x35ef76=>_0x3b54de['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':_0xfee29f['signal'],'file':_0x35ef76,'onProgress':_0xa681aa=>{_0xa681aa&&_0xa681aa['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xa681aa['value']));}}))['then'](_0x42cabd=>{const {width:_0x4d15f2,height:_0x29225e}=_0x42cabd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x42cabd['cdnUrl'],this['imageDimension']={'width':_0x4d15f2,'height':_0x29225e},this['imageId']=_0x42cabd['uuid'],this['imageUploadProgress']=null;const _0x4f90b4=_0x24667c['getAttribute']('src');this['_imageCache']['set'](_0x4f90b4,{'id':_0x42cabd['uuid'],'url':_0x42cabd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5a8604=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a8604['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4cbf85,_0x105501){_0x4cbf85['on']('apply',(_0x34b6d5,_0x5a1b98)=>{this['_replaceImage'](_0x105501,_0x5a1b98['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4cbf85['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4cbf85['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3c9f3c,_0x3467cc,_0x6e7c3a){const _0x1c0a7f=this['_editor'],{width:_0x19d499,height:_0x5c82a8}=_0x13d4ec(_0x3467cc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x459941,imageSources:_0x2c5310}=_0x4de195(_0x3467cc,_0x19d499);_0x1c0a7f['model']['change'](_0x1bb536=>{if('$graveyard'===_0x3c9f3c['root']['rootName']){_0x1c0a7f['execute']('insertImage',{'imageType':_0x3c9f3c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3c9f3c['getAttributes']()),'uploadcareImageId':_0x6e7c3a,'src':_0x459941,'sources':_0x2c5310,'width':_0x19d499,'height':_0x5c82a8}});const _0x50a9f5=_0x3c9f3c['getChildren']();_0x3c9f3c=_0x1c0a7f['model']['document']['selection']['getSelectedElement']();for(const _0x15144f of _0x50a9f5)_0x1bb536['append'](_0x1bb536['cloneElement'](_0x15144f),_0x3c9f3c);}else _0x1bb536['setSelection'](_0x3c9f3c,'on'),_0x1c0a7f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3c9f3c['getAttributes']()),'uploadcareImageId':_0x6e7c3a,'src':_0x459941,'sources':_0x2c5310,'width':_0x19d499,'height':_0x5c82a8},_0x3c9f3c);_0x1bb536['setSelection'](_0x3c9f3c,'on');});}async['_getImageAsFile'](_0x3d702b){const _0x1fb36d=_0x512580['window'],_0x5515c6=_0x512580['document']['location']['href'],_0x5f1785=new _0x1fb36d['URL'](_0x3d702b['getAttribute']('src'),_0x5515c6);if('data:'===_0x5f1785['protocol']){const _0x3129f9=_0x5f1785['href']['split'](','),_0x5de92e=_0x3129f9[0x0]['match'](/:(.*?);/)[0x1],_0xb629a4=_0x5de92e['split']('/')[0x1],_0x9695d9=_0x1fb36d['atob'](_0x3129f9[_0x3129f9['length']-0x1]);let _0x6f1ae9=_0x9695d9['length'];const _0x3ad5d8=new _0x1fb36d['Uint8Array'](_0x6f1ae9);for(;_0x6f1ae9--;)_0x3ad5d8[_0x6f1ae9]=_0x9695d9['charCodeAt'](_0x6f1ae9);return new _0x1fb36d['File']([_0x3ad5d8],'image.'+_0xb629a4,{'type':_0x5de92e});}const _0x2ace37=_0x5f1785['href']['split']('/'),_0x59d32f=_0x2ace37[_0x2ace37['length']-0x1],_0x3ef7c6=_0x59d32f['split']('.')[0x1];return _0x1fb36d['fetch'](_0x5f1785['href'])['then'](_0x369a69=>_0x369a69['clone']()['blob']())['then'](_0x36fb3f=>new _0x1fb36d['File']([_0x36fb3f],_0x59d32f,{'type':'image/'+_0x3ef7c6}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x22fcab,_0xaab7e9){const _0x3dbd37=_0x5b10,_0x25177f=_0x22fcab();while(!![]){try{const _0x4203bd=-parseInt(_0x3dbd37(0xd7))/0x1+-parseInt(_0x3dbd37(0xdb))/0x2+-parseInt(_0x3dbd37(0xe0))/0x3+-parseInt(_0x3dbd37(0xdf))/0x4*(-parseInt(_0x3dbd37(0xd0))/0x5)+-parseInt(_0x3dbd37(0xd5))/0x6+parseInt(_0x3dbd37(0xd3))/0x7*(parseInt(_0x3dbd37(0xd9))/0x8)+parseInt(_0x3dbd37(0xda))/0x9;if(_0x4203bd===_0xaab7e9)break;else _0x25177f['push'](_0x25177f['shift']());}catch(_0x6e07d){_0x25177f['push'](_0x25177f['shift']());}}}(_0x2c03,0x7f84c));function _0x2c03(){const _0x5a1285=['2032930slepXP','set','imageSrc','setTemplate','282868LAqDci','594345FHLQUR','30RfChJF','uc-light','bindTemplate','7FsZVkA','uc-cloud-image-editor','280200BoqaLL','ck-uploadcare-theme','770864OYdFlU','image-edit','6340136QsmKnD','12038769oOAYEC'];_0x2c03=function(){return _0x5a1285;};return _0x2c03();}function _0x5b10(_0x2e89a6,_0x449cf){const _0x2c036f=_0x2c03();return _0x5b10=function(_0x5b1077,_0x408822){_0x5b1077=_0x5b1077-0xd0;let _0x20b96b=_0x2c036f[_0x5b1077];return _0x20b96b;},_0x5b10(_0x2e89a6,_0x449cf);}import{View as _0x572cce}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x572cce{constructor(_0x358650,_0x46b012){const _0x260968=_0x5b10;super(_0x358650);const _0x5923fa=this[_0x260968(0xd2)];this[_0x260968(0xdc)](_0x260968(0xdd),''),this[_0x260968(0xde)]({'tag':_0x260968(0xd4),'attributes':{..._0x46b012,'class':[_0x260968(0xd1),_0x260968(0xd6)],'ctx-name':_0x260968(0xd8),'cdn-url':_0x5923fa['to'](_0x260968(0xdd))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x3fb6cc}from'ckeditor5/src/icons.js';import{ButtonView as _0x282890,IconView as _0x3075dc,View as _0x145c69}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x145c69{constructor(_0x9cd1ae){super(_0x9cd1ae);const t=_0x9cd1ae['t'];this['set']('errorType',null);const _0x3ac43d=new _0x282890(_0x9cd1ae);_0x3ac43d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3ac43d['withText']=!0x0,_0x3ac43d['class']='ck-button-action',_0x3ac43d['on']('execute',()=>{this['fire']('retry');}),_0x3ac43d['bind']('isVisible')['to'](this,'errorType',_0x32c9ac=>'NotFound'!==_0x32c9ac);const _0x3d7d1c=new _0x3075dc();_0x3d7d1c['content']=_0x3fb6cc,_0x3d7d1c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3f422=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':[_0x3d7d1c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3f422['to']('errorType',_0x3585b8=>t('NotFound'!==_0x3585b8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3ac43d]},{'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 _0x5b342a,View as _0xf6a849}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0xf6a849{constructor(_0x40ae9b){super(_0x40ae9b);const t=_0x40ae9b['t'],_0x5dbce9=this['bindTemplate'],_0x155fff=new _0x5b342a();_0x155fff['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':[_0x155fff,{'text':_0x5dbce9['to']('imageUploadProgress',_0x5010cb=>t('Loading\x20image...')+'\x20('+(_0x5010cb||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ab506=_0x5afc;(function(_0x51f11c,_0x5e4c98){const _0x69ef5b=_0x5afc,_0x5eb31f=_0x51f11c();while(!![]){try{const _0x1297bf=-parseInt(_0x69ef5b(0xe5))/0x1+-parseInt(_0x69ef5b(0xbd))/0x2*(-parseInt(_0x69ef5b(0xdb))/0x3)+parseInt(_0x69ef5b(0xe8))/0x4+-parseInt(_0x69ef5b(0xc7))/0x5+parseInt(_0x69ef5b(0xb8))/0x6*(parseInt(_0x69ef5b(0xe4))/0x7)+parseInt(_0x69ef5b(0xd8))/0x8+-parseInt(_0x69ef5b(0xde))/0x9*(parseInt(_0x69ef5b(0xdd))/0xa);if(_0x1297bf===_0x5e4c98)break;else _0x5eb31f['push'](_0x5eb31f['shift']());}catch(_0x171b44){_0x5eb31f['push'](_0x5eb31f['shift']());}}}(_0x3501,0x2db34));import{View as _0x46fcd0}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x18220f}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x4a6a36}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1e8267}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x52bf73}from'../../utils/dialogfocusmanagerview.js';function _0x3501(){const _0x20ba9f=['_editingView','nodeName','_focusableView','div','length','2103376AObKZh','ck-reset_all-excluded','uploading','754833lvyWLJ','_loadingView','32920qxIpNQ','36VwKFHF','focus','filter','clear','addEventListener','_items','10423eRzJMI','345013YHstXF','add','cancel','536180VCxmiN','_setView','setTemplate','error','toLowerCase','querySelector','retry','726ZSkOLj','element','detail','target','render','2GflhUr','_addErrorViewListeners','cdnUrl','getFocusableElement','set','addMany','fire','change:status','status','_addUploadcareImageEditorListeners','1416890mPFPGB','ck-uploadcare-form','observe','createCollection','uc-cloud-image-editor','_errorView','apply','_waitForImageEditorComponent','addedNodes','ready','once','disconnect'];_0x3501=function(){return _0x20ba9f;};return _0x3501();}import'../../../theme/uploadcare-form.css';function _0x5afc(_0x5ac121,_0x45a4ac){const _0x350166=_0x3501();return _0x5afc=function(_0x5afce2,_0x4e6b99){_0x5afce2=_0x5afce2-0xb2;let _0x247717=_0x350166[_0x5afce2];return _0x247717;},_0x5afc(_0x5ac121,_0x45a4ac);}export class UploadcareImageEditFormView extends _0x52bf73{[_0x2ab506(0xe3)];[_0x2ab506(0xdc)];[_0x2ab506(0xcc)];[_0x2ab506(0xd3)];[_0x2ab506(0xd5)];constructor(_0x3f3993,_0xf36e19,_0x5705ba){const _0xa9aba1=_0x2ab506;super(_0x3f3993),this[_0xa9aba1(0xe3)]=this[_0xa9aba1(0xca)](),this[_0xa9aba1(0xdc)]=new _0x18220f(_0x3f3993),this[_0xa9aba1(0xcc)]=new _0x4a6a36(_0x3f3993),this[_0xa9aba1(0xd3)]=new _0x1e8267(_0x3f3993,_0x5705ba),this[_0xa9aba1(0xd5)]=new _0x46fcd0(_0x3f3993),this[_0xa9aba1(0xd5)][_0xa9aba1(0xb3)](this[_0xa9aba1(0xc0)]()),this[_0xa9aba1(0xc1)](_0xa9aba1(0xc5),_0xf36e19),this[_0xa9aba1(0xb3)]({'tag':_0xa9aba1(0xd6),'attributes':{'class':['ck',_0xa9aba1(0xd9),_0xa9aba1(0xc8)],'tabindex':'-1'},'children':this[_0xa9aba1(0xe3)]}),this[_0xa9aba1(0xb2)](),this[_0xa9aba1(0xd1)](_0xa9aba1(0xbc),()=>{const _0x1ccd84=_0xa9aba1;this[_0x1ccd84(0xce)](this[_0x1ccd84(0xb9)],_0x437dd0=>{const _0x53097b=_0x1ccd84;this[_0x53097b(0xc6)](_0x437dd0);});}),this['on'](_0xa9aba1(0xc4),()=>{const _0x1097a3=_0xa9aba1;this[_0x1097a3(0xb2)]();}),this[_0xa9aba1(0xbe)]();}[_0x2ab506(0xdf)](){const _0x4bca32=_0x2ab506;this[_0x4bca32(0xb9)][_0x4bca32(0xdf)]();}[_0x2ab506(0xb2)](){const _0x1c162f=_0x2ab506;switch(this[_0x1c162f(0xe3)][_0x1c162f(0xe1)](),this[_0x1c162f(0xc5)]){case _0x1c162f(0xda):this[_0x1c162f(0xe3)][_0x1c162f(0xe6)](this[_0x1c162f(0xdc)]);break;case _0x1c162f(0xb4):this[_0x1c162f(0xe3)][_0x1c162f(0xe6)](this[_0x1c162f(0xcc)]);break;case _0x1c162f(0xd0):this[_0x1c162f(0xe3)][_0x1c162f(0xc2)]([this[_0x1c162f(0xd3)],this[_0x1c162f(0xd5)]]);}}[_0x2ab506(0xce)](_0x44f7c6,_0x566bc5){const _0x4177e1=_0x2ab506,_0x4de960=_0x4177e1(0xcb),_0x85aa4d=_0x44f7c6[_0x4177e1(0xb6)](_0x4de960);if(_0x85aa4d)return _0x566bc5(_0x85aa4d);const _0x4c9353=new MutationObserver(_0x4640e5=>{const _0x22fb84=_0x4177e1,_0x2b01c6=_0x4640e5[_0x22fb84(0xe0)](_0x5d3bbf=>_0x5d3bbf[_0x22fb84(0xbb)]===_0x44f7c6&&_0x5d3bbf[_0x22fb84(0xcf)][_0x22fb84(0xd7)]>0x0&&_0x5d3bbf[_0x22fb84(0xcf)][0x0][_0x22fb84(0xd4)][_0x22fb84(0xb5)]()===_0x4de960);_0x2b01c6[_0x22fb84(0xd7)]&&(_0x4c9353[_0x22fb84(0xd2)](),_0x566bc5(_0x2b01c6[0x0][_0x22fb84(0xcf)][0x0]));});_0x4c9353[_0x4177e1(0xc9)](_0x44f7c6,{'childList':!0x0,'subtree':!0x0});}[_0x2ab506(0xc6)](_0x2366c3){const _0x7d11fb=_0x2ab506;_0x2366c3[_0x7d11fb(0xe2)](_0x7d11fb(0xcd),_0x16a9da=>{const _0x115be0=_0x7d11fb;this[_0x115be0(0xc3)](_0x115be0(0xcd),{'imageSrc':_0x16a9da[_0x115be0(0xba)][_0x115be0(0xbf)]});}),_0x2366c3[_0x7d11fb(0xe2)](_0x7d11fb(0xe7),()=>{const _0x2ccde2=_0x7d11fb;this[_0x2ccde2(0xc3)](_0x2ccde2(0xe7));});}[_0x2ab506(0xbe)](){const _0x117c7c=_0x2ab506;this[_0x117c7c(0xcc)]['on'](_0x117c7c(0xb7),()=>{const _0x7d7705=_0x117c7c;this[_0x7d7705(0xc3)](_0x7d7705(0xb7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1f1b(_0x22f58e,_0x16100d){const _0x4f8394=_0x4f83();return _0x1f1b=function(_0x1f1bfe,_0x683828){_0x1f1bfe=_0x1f1bfe-0x140;let _0x36b4b1=_0x4f8394[_0x1f1bfe];return _0x36b4b1;},_0x1f1b(_0x22f58e,_0x16100d);}const _0x5cd9b1=_0x1f1b;(function(_0x2de81c,_0x259f17){const _0x3d0edc=_0x1f1b,_0x34518f=_0x2de81c();while(!![]){try{const _0x43ad9d=parseInt(_0x3d0edc(0x155))/0x1*(parseInt(_0x3d0edc(0x148))/0x2)+parseInt(_0x3d0edc(0x15b))/0x3+-parseInt(_0x3d0edc(0x145))/0x4+-parseInt(_0x3d0edc(0x14c))/0x5*(-parseInt(_0x3d0edc(0x143))/0x6)+parseInt(_0x3d0edc(0x147))/0x7*(parseInt(_0x3d0edc(0x14e))/0x8)+-parseInt(_0x3d0edc(0x15e))/0x9*(-parseInt(_0x3d0edc(0x15c))/0xa)+-parseInt(_0x3d0edc(0x15f))/0xb;if(_0x43ad9d===_0x259f17)break;else _0x34518f['push'](_0x34518f['shift']());}catch(_0x5f2348){_0x34518f['push'](_0x34518f['shift']());}}}(_0x4f83,0xced0b));import{Command as _0x22787f}from'ckeditor5/src/core.js';function _0x4f83(){const _0x2257e0=['_isEditable','3463428PAIFjr','isActive','63zmkuZD','2uPImPm','get','document','element','55wXFqZZ','getSelectedElement','830728zfQNyY','bind','unbind','plugins','imageBlock','imageInline','model','1075532JMFnls','imageEditController','selection','uploadcare.allowExternalImagesEditing','execute','editor','1599774XhYIBH','27570SXmevc','set','3807VYJYec','25424993BYcGdj','requires','isEnabled','config','refresh','171690XsMIKK'];_0x4f83=function(){return _0x2257e0;};return _0x4f83();}import{Dialog as _0x5f0c45}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x22455f}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x133855}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x22787f{[_0x5cd9b1(0x156)];static get[_0x5cd9b1(0x160)](){return[_0x5f0c45];}[_0x5cd9b1(0x144)];constructor(_0x4b7255){const _0x169134=_0x5cd9b1;super(_0x4b7255),this[_0x169134(0x156)]=void 0x0,this[_0x169134(0x144)]=_0x133855(_0x4b7255[_0x169134(0x141)][_0x169134(0x149)](_0x169134(0x158))||[]),this[_0x169134(0x15d)]({'isActive':!0x1});}[_0x5cd9b1(0x142)](){const _0x4485af=_0x5cd9b1,_0xa9cb10=this[_0x4485af(0x15a)][_0x4485af(0x154)][_0x4485af(0x14a)][_0x4485af(0x157)][_0x4485af(0x14d)]();this[_0x4485af(0x140)]=this[_0x4485af(0x144)](_0xa9cb10);}[_0x5cd9b1(0x159)](){const _0x5b52a6=_0x5cd9b1;this[_0x5b52a6(0x156)]&&(this[_0x5b52a6(0x150)](_0x5b52a6(0x146)),this[_0x5b52a6(0x156)]=void 0x0);const _0x293bc4=this[_0x5b52a6(0x15a)][_0x5b52a6(0x154)][_0x5b52a6(0x14a)][_0x5b52a6(0x157)][_0x5b52a6(0x14d)]();_0x293bc4&&(_0x293bc4['is'](_0x5b52a6(0x14b),_0x5b52a6(0x152))||_0x293bc4['is'](_0x5b52a6(0x14b),_0x5b52a6(0x153)))&&(this[_0x5b52a6(0x156)]=new _0x22455f(this[_0x5b52a6(0x15a)],this[_0x5b52a6(0x15a)][_0x5b52a6(0x151)][_0x5b52a6(0x149)](_0x5f0c45),_0x293bc4),this[_0x5b52a6(0x14f)](_0x5b52a6(0x146))['to'](this[_0x5b52a6(0x156)],_0x5b52a6(0x146)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ab476=_0x3768;(function(_0x9343c,_0x24b1f8){const _0x4f6f86=_0x3768,_0x50e244=_0x9343c();while(!![]){try{const _0x24763e=-parseInt(_0x4f6f86(0x157))/0x1*(-parseInt(_0x4f6f86(0x155))/0x2)+parseInt(_0x4f6f86(0x15d))/0x3+-parseInt(_0x4f6f86(0x164))/0x4+-parseInt(_0x4f6f86(0x160))/0x5+parseInt(_0x4f6f86(0x15a))/0x6*(parseInt(_0x4f6f86(0x163))/0x7)+parseInt(_0x4f6f86(0x167))/0x8*(-parseInt(_0x4f6f86(0x159))/0x9)+parseInt(_0x4f6f86(0x166))/0xa*(parseInt(_0x4f6f86(0x156))/0xb);if(_0x24763e===_0x24b1f8)break;else _0x50e244['push'](_0x50e244['shift']());}catch(_0x5be7f5){_0x50e244['push'](_0x50e244['shift']());}}}(_0x51b2,0xf4180));import{Plugin as _0x951d02}from'ckeditor5/src/core.js';import{Notification as _0x417c2f}from'ckeditor5/src/ui.js';function _0x3768(_0x3740f8,_0x49492a){const _0x51b2b2=_0x51b2();return _0x3768=function(_0x37681c,_0x2de311){_0x37681c=_0x37681c-0x151;let _0x3bed88=_0x51b2b2[_0x37681c];return _0x3bed88;},_0x3768(_0x3740f8,_0x49492a);}import{UploadcareImageEditCommand as _0x486761}from'./uploadcareimageeditcommand.js';function _0x51b2(){const _0x5182e9=['UploadcareImageEditEditing','4018815zLFBun','isOfficialPlugin','add','7383800GiwCjd','ImageUtils','isPremiumPlugin','2350999UbpnPS','5339368voNerG','commands','670KPMFpd','8xRfzFf','uploadcareImageEdit','init','uploadcareImageReplace','requires','534wHWmOf','202565QOcyBw','5457IIEjeK','ImageEditing','11039310NwUxwx','18NhDyAf','pluginName'];_0x51b2=function(){return _0x5182e9;};return _0x51b2();}import{UploadcareImageReplaceCommand as _0x204438}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3a3cf5}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x951d02{static get[_0x3ab476(0x15b)](){const _0x1e9d07=_0x3ab476;return _0x1e9d07(0x15c);}static get[_0x3ab476(0x154)](){const _0x5181b4=_0x3ab476;return[_0x3a3cf5,_0x417c2f,_0x5181b4(0x161),_0x5181b4(0x158)];}static get[_0x3ab476(0x15e)](){return!0x0;}static get[_0x3ab476(0x162)](){return!0x0;}[_0x3ab476(0x152)](){const _0x40003a=_0x3ab476,{editor:_0x62b908}=this;_0x62b908[_0x40003a(0x165)][_0x40003a(0x15f)](_0x40003a(0x151),new _0x486761(_0x62b908)),_0x62b908[_0x40003a(0x165)][_0x40003a(0x15f)](_0x40003a(0x153),new _0x204438(_0x62b908));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2fd047}from'ckeditor5/src/core.js';import{ButtonView as _0x305f67}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2ff329}from'ckeditor5/src/icons.js';import{createElement as _0x20fd8c}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 _0x2fd047{['_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 _0x44a5f2=this['editor'];_0x44a5f2['ui']['componentFactory']['add']('uploadcareImageEdit',_0xb61d32=>{const _0x3c717c=_0x44a5f2['commands']['get']('uploadcareImageEdit'),_0x4c8d86=new _0x305f67(_0xb61d32),t=_0xb61d32['t'];return _0x4c8d86['set']({'icon':_0x2ff329,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4c8d86['bind']('isEnabled')['to'](_0x3c717c),_0x4c8d86['bind']('isOn')['to'](_0x3c717c,'isActive'),this['listenTo'](_0x4c8d86,'execute',()=>{_0x44a5f2['execute']('uploadcareImageEdit'),_0x44a5f2['editing']['view']['focus']();}),_0x4c8d86;}),this['_initConfig']();}['_initConfig'](){const _0x1f84f9=_0x20fd8c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f84f9),this['listenTo'](this['editor'],'destroy',()=>{_0x1f84f9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3a5f(){const _0x3a2fdb=['getSelectedElement','4xsyMrP','100dEufgn','element','2574565eWHRjf','imageBlock','imageInline','setAttributes','isEnabled','123111FyeNTk','editor','selection','2685140KOUdPH','8329849hdjRhL','removeAttribute','model','128XbTnGG','change','563KHNclo','4954944SxtNSU','558399CcGCui','sizes','document','srcset','refresh','5AwPTjS','execute'];_0x3a5f=function(){return _0x3a2fdb;};return _0x3a5f();}const _0x4931d3=_0x21eb;function _0x21eb(_0x4293f1,_0x367efc){const _0x3a5f8d=_0x3a5f();return _0x21eb=function(_0x21ebd2,_0x3a4df5){_0x21ebd2=_0x21ebd2-0xfa;let _0x59fbba=_0x3a5f8d[_0x21ebd2];return _0x59fbba;},_0x21eb(_0x4293f1,_0x367efc);}(function(_0x21f523,_0x85007f){const _0x319ec8=_0x21eb,_0x475ccf=_0x21f523();while(!![]){try{const _0x3e0909=-parseInt(_0x319ec8(0x110))/0x1*(parseInt(_0x319ec8(0x100))/0x2)+-parseInt(_0x319ec8(0x112))/0x3*(parseInt(_0x319ec8(0xff))/0x4)+parseInt(_0x319ec8(0xfc))/0x5*(parseInt(_0x319ec8(0x111))/0x6)+parseInt(_0x319ec8(0x102))/0x7+-parseInt(_0x319ec8(0x10e))/0x8*(-parseInt(_0x319ec8(0x107))/0x9)+parseInt(_0x319ec8(0x10a))/0xa+-parseInt(_0x319ec8(0x10b))/0xb;if(_0x3e0909===_0x85007f)break;else _0x475ccf['push'](_0x475ccf['shift']());}catch(_0x5b09b8){_0x475ccf['push'](_0x475ccf['shift']());}}}(_0x3a5f,0xad34f));import{Command as _0x21d66c}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x21d66c{[_0x4931d3(0xfb)](){const _0x4cea2=_0x4931d3,_0x160900=this[_0x4cea2(0x108)][_0x4cea2(0x10d)][_0x4cea2(0x114)][_0x4cea2(0x109)][_0x4cea2(0xfe)]();this[_0x4cea2(0x106)]=Boolean(_0x160900&&(_0x160900['is'](_0x4cea2(0x101),_0x4cea2(0x103))||_0x160900['is'](_0x4cea2(0x101),_0x4cea2(0x104))));}[_0x4931d3(0xfd)](_0x5f4a8a){const _0x1d314f=_0x4931d3,_0x49a8d2=this[_0x1d314f(0x108)][_0x1d314f(0x10d)][_0x1d314f(0x114)][_0x1d314f(0x109)][_0x1d314f(0xfe)]();this[_0x1d314f(0x108)][_0x1d314f(0x10d)][_0x1d314f(0x10f)](_0x4430af=>{const _0x194ffe=_0x1d314f;_0x4430af[_0x194ffe(0x105)](_0x5f4a8a,_0x49a8d2),_0x4430af[_0x194ffe(0x10c)](_0x194ffe(0xfa),_0x49a8d2),_0x4430af[_0x194ffe(0x10c)](_0x194ffe(0x113),_0x49a8d2);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3f4bf9=_0x3d02;(function(_0x437f9c,_0x30af8d){var _0x5d3d23=_0x3d02,_0x1e4d74=_0x437f9c();while(!![]){try{var _0x317859=-parseInt(_0x5d3d23(0x10e))/0x1*(parseInt(_0x5d3d23(0x105))/0x2)+-parseInt(_0x5d3d23(0x102))/0x3+parseInt(_0x5d3d23(0x110))/0x4+-parseInt(_0x5d3d23(0x10d))/0x5*(parseInt(_0x5d3d23(0x104))/0x6)+parseInt(_0x5d3d23(0x10c))/0x7*(parseInt(_0x5d3d23(0x103))/0x8)+parseInt(_0x5d3d23(0x10f))/0x9*(-parseInt(_0x5d3d23(0x109))/0xa)+parseInt(_0x5d3d23(0x10b))/0xb;if(_0x317859===_0x30af8d)break;else _0x1e4d74['push'](_0x1e4d74['shift']());}catch(_0x4e7ef1){_0x1e4d74['push'](_0x1e4d74['shift']());}}}(_0x24c1,0x39e0c));import{Plugin as _0x2b75e2}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x57385b}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x24c1(){var _0x5482d4=['12313oAggbJ','55WXZrDj','3FLfmFQ','228645wuBTLR','1842936xliJNB','requires','851643NMLGvp','640UKOeqh','224082FQSCGd','3772PaQaiP','pluginName','UploadcareImageEdit','isPremiumPlugin','150ywiItU','isOfficialPlugin','7887495TIyeje'];_0x24c1=function(){return _0x5482d4;};return _0x24c1();}function _0x3d02(_0x548d02,_0xcabe8a){var _0x24c1a6=_0x24c1();return _0x3d02=function(_0x3d0210,_0x53a07e){_0x3d0210=_0x3d0210-0x102;var _0x498c2f=_0x24c1a6[_0x3d0210];return _0x498c2f;},_0x3d02(_0x548d02,_0xcabe8a);}import{UploadcareImageEditUI as _0x3dc993}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2b75e2{static get[_0x3f4bf9(0x106)](){var _0x364fd4=_0x3f4bf9;return _0x364fd4(0x107);}static get[_0x3f4bf9(0x111)](){return[_0x57385b,_0x3dc993];}static get[_0x3f4bf9(0x10a)](){return!0x0;}static get[_0x3f4bf9(0x108)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5f2f49=_0x91c9;(function(_0x554957,_0x4cacb3){const _0x200920=_0x91c9,_0x29dece=_0x554957();while(!![]){try{const _0x40ab38=-parseInt(_0x200920(0x1a0))/0x1*(-parseInt(_0x200920(0x1c1))/0x2)+-parseInt(_0x200920(0x1dd))/0x3*(-parseInt(_0x200920(0x1b7))/0x4)+-parseInt(_0x200920(0x1ae))/0x5+parseInt(_0x200920(0x1e2))/0x6*(-parseInt(_0x200920(0x1d2))/0x7)+-parseInt(_0x200920(0x1ac))/0x8+parseInt(_0x200920(0x1bb))/0x9+parseInt(_0x200920(0x1c4))/0xa;if(_0x40ab38===_0x4cacb3)break;else _0x29dece['push'](_0x29dece['shift']());}catch(_0x5c348d){_0x29dece['push'](_0x29dece['shift']());}}}(_0x3d67,0x7ee32));import{Plugin as _0x2af71d}from'ckeditor5/src/core.js';import{IconDropbox as _0x1b80dc,IconFacebook as _0x5a8e0f,IconGoogleDrive as _0x245d3a,IconGooglePhotos as _0x3db27f,IconUploadcareImageUpload as _0x1355f6,IconUploadcareLink as _0x461b2c,IconOneDrive as _0x95db3c}from'ckeditor5/src/icons.js';import{ButtonView as _0x26a325,MenuBarMenuListItemButtonView as _0x2f1a59}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x30dae6}from'./uploadcareconfig.js';function _0x91c9(_0x5e9ea9,_0x2208cd){const _0x3d6785=_0x3d67();return _0x91c9=function(_0x91c94a,_0x521be7){_0x91c94a=_0x91c94a-0x19d;let _0x3081ee=_0x3d6785[_0x91c94a];return _0x3081ee;},_0x91c9(_0x5e9ea9,_0x2208cd);}import{getTranslation as _0x36aa82}from'./utils/common-translations.js';function _0x3d67(){const _0x57c847=['upload','get','reduce','_createButton','entries','withText','ImageInsertUI','isImageSelected','_createDropdownButtons','582KtReqk','uploadcareLicenseKeyEvaluationLimit','init','trialLimit','forEach','715314OsxzMB','uploadcareLicenseKeyUsageLimit','_showLicenseError','plugins','GDrive','URL','isOfficialPlugin','UploadcareUI','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyValid','featureNotAllowed','execute','GPhotos','editor','config','42eeOyKp','bind','_getIntegrationKey','text','domainLimit','isPremiumPlugin','invalid','uploadcare','evaluationLimit','usageLimit','Facebook','expired','5209512VEKZMS','Dropbox','4642955DkkcZj','tooltip','isEnabled','shortText','uploadcareLicenseKeyTrialLimit','map','uploadcareLicenseKeyDomainLimit','_createMenuBarButtons','assetManager','15364dMPwyV','uploadcareLicenseKeyExpired','registerIntegration','Insert','1674108UcvnvQ','locale','_normalizeConfigSourceList','pluginName','push','commands','30436XZTymn','uploadcareLicenseKeyNotAllowed','Local','7676260OsYpet','label','licenseKey','has','icon','url','Uploadcare','OneDrive','Replace','afterInit','uploadcare.uploader.sourceList','type','destroy','_createToolbarButton','14aHYoSF','_licenseKeyCheckInterval'];_0x3d67=function(){return _0x57c847;};return _0x3d67();}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x2af71d{[_0x5f2f49(0x1c6)];[_0x5f2f49(0x1d3)];static get[_0x5f2f49(0x1be)](){const _0x3d63e6=_0x5f2f49;return _0x3d63e6(0x1e9);}static get[_0x5f2f49(0x1e8)](){return!0x0;}static get[_0x5f2f49(0x1a5)](){return!0x0;}[_0x5f2f49(0x1df)](){const _0x5e7896=_0x5f2f49;this[_0x5e7896(0x1c6)]=this[_0x5e7896(0x19e)][_0x5e7896(0x19f)][_0x5e7896(0x1d5)](_0x5e7896(0x1c6));const _0x23a988=this[_0x5e7896(0x19e)];this[_0x5e7896(0x1d3)]=setInterval(()=>{const _0x84acd2=_0x5e7896;let _0x292dda;for(const _0x4bc77b in _0x23a988){const _0x478d94=_0x4bc77b,_0x2af4d9=_0x23a988[_0x478d94];if(_0x84acd2(0x1eb)==_0x2af4d9||_0x84acd2(0x1ea)==_0x2af4d9||_0x84acd2(0x1b8)==_0x2af4d9||_0x84acd2(0x1b4)==_0x2af4d9||_0x84acd2(0x1c2)==_0x2af4d9||_0x84acd2(0x1de)==_0x2af4d9||_0x84acd2(0x1b2)==_0x2af4d9||_0x84acd2(0x1e3)==_0x2af4d9){delete _0x23a988[_0x478d94],_0x292dda=_0x2af4d9,clearInterval(this[_0x84acd2(0x1d3)]),this[_0x84acd2(0x1d3)]=void 0x0;break;}}_0x84acd2(0x1ea)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a6)),_0x84acd2(0x1b8)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1ab)),_0x84acd2(0x1b4)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a4)),_0x84acd2(0x1c2)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1ec),_0x84acd2(0x1ca)),_0x84acd2(0x1de)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a8)),_0x84acd2(0x1b2)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1e0)),_0x84acd2(0x1e3)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a9));},0x3e8);}[_0x5f2f49(0x1cd)](){const _0x2599ae=_0x5f2f49,{editor:_0x2b9965}=this,_0x3a3730=_0x2b9965[_0x2599ae(0x1c0)][_0x2599ae(0x1d5)](_0x2599ae(0x1a7));if(!_0x3a3730)return;const _0x2a8bab=this[_0x2599ae(0x1bd)](_0x2b9965[_0x2599ae(0x19f)][_0x2599ae(0x1d5)](_0x2599ae(0x1ce)))[_0x2599ae(0x1d6)]((_0x3cdffa,_0x4de9f9)=>{const _0x590c52=_0x2599ae,_0x3411bc=this[_0x590c52(0x1a2)](_0x4de9f9[_0x590c52(0x1cf)]);return _0x3cdffa[_0x3411bc]||(_0x3cdffa[_0x3411bc]=[]),_0x3cdffa[_0x3411bc][_0x590c52(0x1bf)](_0x4de9f9),_0x3cdffa;},{});_0x2b9965[_0x2599ae(0x1e5)][_0x2599ae(0x1c7)](_0x2599ae(0x1da))&&_0x2b9965[_0x2599ae(0x1c0)][_0x2599ae(0x1d5)](_0x2599ae(0x1a7))&&Object[_0x2599ae(0x1d8)](_0x2a8bab)[_0x2599ae(0x1e1)](([_0x5caa32,_0x51a5eb])=>{const _0x20b704=_0x2599ae;_0x2b9965[_0x20b704(0x1e5)][_0x20b704(0x1d5)](_0x20b704(0x1da))[_0x20b704(0x1b9)]({'name':_0x5caa32,'observable':()=>_0x3a3730,'buttonViewCreator':()=>this[_0x20b704(0x1d1)](_0x51a5eb),'formViewCreator':()=>this[_0x20b704(0x1dc)](_0x51a5eb),'menuBarButtonViewCreator':()=>this[_0x20b704(0x1b5)](_0x51a5eb),'override':_0x20b704(0x1b6)!==_0x5caa32});});}[_0x5f2f49(0x1d0)](){const _0x22b0df=_0x5f2f49;super[_0x22b0df(0x1d0)](),this[_0x22b0df(0x1d3)]&&clearInterval(this[_0x22b0df(0x1d3)]);}[_0x5f2f49(0x1bd)](_0x5c469d){const _0x5076dd=_0x5f2f49,{locale:_0x5581d6}=this[_0x5076dd(0x19e)];return _0x5c469d[_0x5076dd(0x1b3)](_0x550e7a=>{const _0x31793b=_0x5076dd,_0x31c9ec=_0x36aa82(_0x5581d6,_0x550e7a,_0x31793b(0x1ba));switch(_0x550e7a){case _0x30dae6[_0x31793b(0x1c3)]:return{'icon':_0x1355f6,'type':_0x30dae6[_0x31793b(0x1c3)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1e7)]:return{'icon':_0x461b2c,'type':_0x30dae6[_0x31793b(0x1e7)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1ad)]:return{'icon':_0x1b80dc,'type':_0x30dae6[_0x31793b(0x1ad)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1aa)]:return{'icon':_0x5a8e0f,'type':_0x30dae6[_0x31793b(0x1aa)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1e6)]:return{'icon':_0x245d3a,'type':_0x30dae6[_0x31793b(0x1e6)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x19d)]:return{'icon':_0x3db27f,'type':_0x30dae6[_0x31793b(0x19d)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1cb)]:return{'icon':_0x95db3c,'type':_0x30dae6[_0x31793b(0x1cb)],..._0x31c9ec};}});}[_0x5f2f49(0x1a2)](_0x3eaa99){const _0x16aa15=_0x5f2f49;switch(_0x3eaa99){case _0x30dae6[_0x16aa15(0x1c3)]:return _0x16aa15(0x1d4);case _0x30dae6[_0x16aa15(0x1e7)]:return _0x16aa15(0x1c9);default:return _0x16aa15(0x1b6);}}[_0x5f2f49(0x1d7)](_0x3231e0,_0x5ae4eb){const _0x2b2016=_0x5f2f49,_0x2ba857=this[_0x2b2016(0x19e)],_0x2b8e18=new _0x3231e0(_0x2ba857[_0x2b2016(0x1bc)]),_0x29a62c=_0x2ba857[_0x2b2016(0x1c0)][_0x2b2016(0x1d5)](_0x2b2016(0x1a7));return _0x2b8e18[_0x2b2016(0x1a1)](_0x2b2016(0x1b0))['to'](_0x29a62c),_0x2b8e18['on'](_0x2b2016(0x1ed),()=>{const _0xfd79ef=_0x2b2016;_0x29a62c[_0xfd79ef(0x1ed)](_0x5ae4eb);}),_0x2b8e18;}[_0x5f2f49(0x1d1)](_0x1056b7){const _0x52d637=_0x5f2f49,{locale:_0x32fe61}=this[_0x52d637(0x19e)],_0x4cfc7b=this[_0x52d637(0x19e)][_0x52d637(0x1e5)][_0x52d637(0x1d5)](_0x52d637(0x1da)),_0x511f84=_0x1056b7[0x0],_0x22c2ce=this[_0x52d637(0x1d7)](_0x26a325,_0x511f84[_0x52d637(0x1cf)]);return _0x22c2ce[_0x52d637(0x1c8)]=_0x511f84[_0x52d637(0x1c8)],_0x22c2ce[_0x52d637(0x1a1)](_0x52d637(0x1c5))['to'](_0x4cfc7b,_0x52d637(0x1db),_0x210f68=>_0x36aa82(_0x32fe61,_0x511f84[_0x52d637(0x1cf)],_0x210f68?_0x52d637(0x1cc):_0x52d637(0x1ba))[_0x52d637(0x1a3)]),_0x22c2ce[_0x52d637(0x1af)]=!0x0,_0x22c2ce;}[_0x5f2f49(0x1dc)](_0x3af4ae){const _0x276e2c=_0x5f2f49,{locale:_0x4360f6}=this[_0x276e2c(0x19e)],_0x1041e2=this[_0x276e2c(0x19e)][_0x276e2c(0x1e5)][_0x276e2c(0x1d5)](_0x276e2c(0x1da));return _0x3af4ae[_0x276e2c(0x1b3)](_0x44da42=>{const _0x1ed72b=_0x276e2c,_0x4825d9=this[_0x1ed72b(0x1d7)](_0x26a325,_0x44da42[_0x1ed72b(0x1cf)]);return _0x4825d9[_0x1ed72b(0x1d9)]=!0x0,_0x4825d9[_0x1ed72b(0x1c8)]=_0x44da42[_0x1ed72b(0x1c8)],_0x4825d9[_0x1ed72b(0x1a1)](_0x1ed72b(0x1c5))['to'](_0x1041e2,_0x1ed72b(0x1db),_0x4d3e05=>_0x36aa82(_0x4360f6,_0x44da42[_0x1ed72b(0x1cf)],_0x4d3e05?_0x1ed72b(0x1cc):_0x1ed72b(0x1ba))[_0x1ed72b(0x1a3)]),_0x4825d9;});}[_0x5f2f49(0x1b5)](_0x1b7f63){const _0x45a252=_0x5f2f49;return _0x1b7f63[_0x45a252(0x1b3)](_0x294f6d=>{const _0x418ba3=_0x45a252,_0x4c71f7=this[_0x418ba3(0x1d7)](_0x2f1a59,_0x294f6d[_0x418ba3(0x1cf)]);return _0x4c71f7[_0x418ba3(0x1c8)]=_0x294f6d[_0x418ba3(0x1c8)],_0x4c71f7[_0x418ba3(0x1c5)]=_0x294f6d[_0x418ba3(0x1b1)],_0x4c71f7;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x300b66}from'ckeditor5/src/core.js';import{FileRepository as _0x1ff5c2}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x80ff36}from'./uploadcareediting.js';import{UploadUtils as _0x3b85ae}from'./utils/uploadutils.js';import{getImageUrls as _0x186642}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x300b66{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1ff5c2,_0x80ff36];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x19e91e=this['editor'];if(!!!_0x19e91e['config']['get']('uploadcare'))return;_0x19e91e['plugins']['get'](_0x1ff5c2)['createUploadAdapter']=_0x5f3d0a=>new k(_0x5f3d0a,_0x19e91e),_0x19e91e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x54a68e,{imageElement:_0x46502d,data:_0x45416e})=>{_0x19e91e['model']['change'](_0x14cc0d=>{_0x14cc0d['setAttribute']('uploadcareImageId',_0x45416e['uploadcareImageId'],_0x46502d);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5ee5c5,_0x4dc1c6){this['loader']=_0x5ee5c5,this['editor']=_0x4dc1c6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x36cf4d=await this['loader']['file'];return _0x3b85ae['upload']({'file':_0x36cf4d,'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':_0x3a3abe=>{_0x3a3abe&&_0x3a3abe['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a3abe['value']);}})['then'](async _0x2e8818=>{const {imageFallbackUrl:_0x362aa3,imageSources:_0x3be0e4}=_0x186642(_0x2e8818['cdnUrl'],_0x2e8818['imageInfo']['width']);return{'uploadcareImageId':_0x2e8818['uuid'],'default':_0x362aa3,'sources':_0x3be0e4};})['catch'](()=>{const _0x54ac86=t('Cannot\x20upload\x20file:')+('\x20'+_0x36cf4d['name']+'.');return Promise['reject'](_0x54ac86);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x405392}from'../uploadcareconfig.js';export function getTranslation(_0x1f06f7,_0x78f089,_0x50b700){const t=_0x1f06f7['t'],_0x53081d=_0x1f06f7['t'];switch(_0x78f089){case _0x405392['Local']:return{'text':_0x53081d('Insert'===_0x50b700?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x53081d('From\x20computer')};case _0x405392['URL']:return{'text':'Insert'===_0x50b700?_0x53081d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x53081d('Via\x20URL')};case _0x405392['Dropbox']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x405392['Facebook']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x405392['GDrive']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x405392['GPhotos']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x405392['OneDrive']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x78f089;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5912ed=_0x3e3a;(function(_0x598035,_0x4c37c6){var _0x890234=_0x3e3a,_0x1cd559=_0x598035();while(!![]){try{var _0x5ad688=-parseInt(_0x890234(0xb9))/0x1*(-parseInt(_0x890234(0xb8))/0x2)+-parseInt(_0x890234(0xbe))/0x3+parseInt(_0x890234(0xc3))/0x4*(parseInt(_0x890234(0xc1))/0x5)+parseInt(_0x890234(0xc6))/0x6*(parseInt(_0x890234(0xb6))/0x7)+-parseInt(_0x890234(0xc5))/0x8*(parseInt(_0x890234(0xc7))/0x9)+-parseInt(_0x890234(0xba))/0xa+-parseInt(_0x890234(0xc8))/0xb;if(_0x5ad688===_0x4c37c6)break;else _0x1cd559['push'](_0x1cd559['shift']());}catch(_0x50bf16){_0x1cd559['push'](_0x1cd559['shift']());}}}(_0x30a4,0x58e84));function _0x30a4(){var _0xe7d302=['232dmYavf','focusTracker','16792srjFSe','30iBvwiP','45RfNQTv','7634638JrEIwO','bindTemplate','749623wdVXCE','true','2dWTKLD','586238GQQVQO','2950370EqxioZ','forwardCycle','focusCycler','getFocusableElement','205731OQgvJw','div','fire','26780KFbpkJ','createCollection'];_0x30a4=function(){return _0xe7d302;};return _0x30a4();}import{FocusTracker as _0x4fd0ef}from'ckeditor5/src/utils.js';function _0x3e3a(_0x5b8f3e,_0x12f815){var _0x30a46e=_0x30a4();return _0x3e3a=function(_0x3e3a03,_0x157b43){_0x3e3a03=_0x3e3a03-0xb5;var _0x18b053=_0x30a46e[_0x3e3a03];return _0x18b053;},_0x3e3a(_0x5b8f3e,_0x12f815);}import{View as _0x1400c1,FocusCycler as _0x393623}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1400c1{[_0x5912ed(0xc4)];[_0x5912ed(0xbc)];constructor(_0x142270){var _0x5066a9=_0x5912ed;super(_0x142270),this[_0x5066a9(0xc4)]=new _0x4fd0ef(),this[_0x5066a9(0xbc)]=new _0x393623({'focusables':this[_0x5066a9(0xc2)](),'focusTracker':this[_0x5066a9(0xc4)]});}[_0x5912ed(0xbd)](){var _0x1af17c=_0x5912ed;return{'tag':_0x1af17c(0xbf),'attributes':{'aria-hidden':_0x1af17c(0xb7),'tabindex':'0'},'on':{'focus':this[_0x1af17c(0xb5)]['to'](()=>{var _0x436dbd=_0x1af17c;this[_0x436dbd(0xbc)][_0x436dbd(0xc0)](_0x436dbd(0xbb));})}};}}
|