@ckeditor/ckeditor5-uploadcare 47.1.0-alpha.1 → 47.1.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 _0x3bcf(_0x11acef,_0x4ea330){const _0x4d3c02=_0x4d3c();return _0x3bcf=function(_0x3bcffa,_0x1f74d6){_0x3bcffa=_0x3bcffa-0x1ed;let _0x3ed8c6=_0x4d3c02[_0x3bcffa];return _0x3ed8c6;},_0x3bcf(_0x11acef,_0x4ea330);}const _0x48d92a=_0x3bcf;function _0x4d3c(){const _0x35ee9c=['closeMax','60CqOpyZ','getSelectedElement','listenTo','join','218977zLXdrL','href','editing','extend','commands','1436104ySMvWl','63ZCfTLK','configElement','selection','destroy','downcast','962036ORGSDj','3cRFzCk','252330bsxtBF','ctxElement','uploadcareImageId','_initCtx','execute','conversion','_initSchema','model','uploadcareImageReplace','getAttribute','UploadcareEditing','elementToAttribute','add','body','init','_initImageProcessingIndicator','locale','_ctxElement','uploadcare.uploader','isRegistered','3BdHSAE','view','isPremiumPlugin','document','imageInline','get','pluginName','input[uploadcare-file-input]','appendChild','PictureEditing','replaceImageSource','querySelector','upcast','cleanupImage','\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','fromCharCode','editor','map','543599XyizsI','removeAttribute','889040JPcutG','isOfficialPlugin','uc-upload-ctx-provider','afterInit','573406KYAdGa','imageBlock','render','contentLanguage','data-uc-image-id','uploadcare','66CtRgEa','attributeToAttribute','uploadcare.pubkey','_initConfig','requires','true','_initConversion','remove','schema','uc-config','#uc-icon-arrow-down','_configElement','uploader-','insertImage','iconHrefResolver','once','for','config','ucContextId'];_0x4d3c=function(){return _0x35ee9c;};return _0x4d3c();}(function(_0xffa4a5,_0x19b6bf){const _0x54acff=_0x3bcf,_0x149b84=_0xffa4a5();while(!![]){try{const _0x11a6f8=parseInt(_0x54acff(0x242))/0x1*(parseInt(_0x54acff(0x203))/0x2)+-parseInt(_0x54acff(0x22d))/0x3*(parseInt(_0x54acff(0x22c))/0x4)+-parseInt(_0x54acff(0x22e))/0x5+-parseInt(_0x54acff(0x209))/0x6*(parseInt(_0x54acff(0x1fd))/0x7)+-parseInt(_0x54acff(0x226))/0x8*(-parseInt(_0x54acff(0x227))/0x9)+-parseInt(_0x54acff(0x1ff))/0xa+-parseInt(_0x54acff(0x221))/0xb*(parseInt(_0x54acff(0x21d))/0xc);if(_0x11a6f8===_0x19b6bf)break;else _0x149b84['push'](_0x149b84['shift']());}catch(_0x22bd82){_0x149b84['push'](_0x149b84['shift']());}}}(_0x4d3c,0xbf2d3));import{Plugin as _0x417a02}from'ckeditor5/src/core.js';import{Dialog as _0x11ef10}from'ckeditor5/src/ui.js';import{createElement as _0x42f7a9,global as _0x2f2af0,uid as _0x4e3ef1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0xb15221}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x276c07}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x38bdf5}from'./utils/editingutils.js';export class UploadcareEditing extends _0x417a02{[_0x48d92a(0x214)]=null;[_0x48d92a(0x23f)]=null;static get[_0x48d92a(0x1f1)](){const _0x549549=_0x48d92a;return _0x549549(0x238);}static get[_0x48d92a(0x20d)](){const _0xf59e97=_0x48d92a;return[_0xf59e97(0x1f4),_0x276c07,_0x11ef10];}static get[_0x48d92a(0x200)](){return!0x0;}static get[_0x48d92a(0x1ed)](){return!0x0;}[_0x48d92a(0x21b)];get[_0x48d92a(0x228)](){const _0x2837de=_0x48d92a;return this[_0x2837de(0x214)];}get[_0x48d92a(0x22f)](){const _0x2ebcf3=_0x48d92a;return this[_0x2ebcf3(0x23f)];}constructor(_0x2489d9){const _0x31ddb7=_0x48d92a;super(_0x2489d9),this[_0x31ddb7(0x21b)]=_0x4e3ef1();}[_0x48d92a(0x23c)](){const _0x2d28f7=_0x48d92a,_0x504980=this[_0x2d28f7(0x1fb)];_0x504980[_0x2d28f7(0x225)][_0x2d28f7(0x23a)](_0x2d28f7(0x208),new _0xb15221(_0x504980));}[_0x48d92a(0x202)](){const _0x593b6c=_0x48d92a;this[_0x593b6c(0x234)](),this[_0x593b6c(0x20f)](),this[_0x593b6c(0x20c)](),this[_0x593b6c(0x231)](),this[_0x593b6c(0x23d)](),this[_0x593b6c(0x21f)](this[_0x593b6c(0x1fb)],_0x593b6c(0x22a),()=>{const _0x2bdf63=_0x593b6c;this[_0x2bdf63(0x214)]&&(this[_0x2bdf63(0x214)][_0x2bdf63(0x210)](),this[_0x2bdf63(0x214)]=null),this[_0x2bdf63(0x23f)]&&(this[_0x2bdf63(0x23f)][_0x2bdf63(0x210)](),this[_0x2bdf63(0x23f)]=null);const _0x76b726=_0x2f2af0[_0x2bdf63(0x1ee)][_0x2bdf63(0x1f6)](_0x2bdf63(0x1f2));_0x76b726&&_0x76b726[_0x2bdf63(0x210)]();}),async function(_0x369b11){const _0x1fc7df=_0x535881([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x104856=0x3d8d0df,_0x1d42cb=0x3dfa69f^_0x104856,_0x3f9845=window[_0x535881([0x44,0x61,0x74,0x65])][_0x535881([0x6e,0x6f,0x77])](),_0x2ec0ca=_0x369b11[_0x535881([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x404846=new window[(_0x535881([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b19ab=>{_0x2ec0ca[_0x535881([0x6f,0x6e,0x63,0x65])](_0x535881([0x72,0x65,0x61,0x64,0x79]),_0x1b19ab);}),_0x22773b={[_0x535881([0x6b,0x74,0x79])]:_0x535881([0x45,0x43]),[_0x535881([0x75,0x73,0x65])]:_0x535881([0x73,0x69,0x67]),[_0x535881([0x63,0x72,0x76])]:_0x535881([0x50,0x2d,0x32,0x35,0x36]),[_0x535881([0x78])]:_0x535881([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]),[_0x535881([0x79])]:_0x535881([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]),[_0x535881([0x61,0x6c,0x67])]:_0x535881([0x45,0x53,0x32,0x35,0x36])},_0x5497f1=_0x2ec0ca[_0x535881([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x535881([0x67,0x65,0x74])](_0x535881([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x19859e(){let _0x2cbd4d,_0x1e447c=null,_0x579044=null;try{if(_0x5497f1==_0x535881([0x47,0x50,0x4c]))return _0x535881([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2cbd4d=_0x5befb5(),!_0x2cbd4d)return _0x535881([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2cbd4d[_0x535881([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x579044=_0x3d00ae(_0x2cbd4d[_0x535881([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2cbd4d[_0x535881([0x6a,0x74,0x69])])),await _0x40ca5f()?_0x5832b0()?_0xb43e24()?_0x535881([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4feffd()?(_0x2cbd4d[_0x535881([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x535881([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e447c=_0x451810(_0x535881([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2cbd4d[_0x535881([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x535881([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e447c=_0x451810(_0x535881([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2bd18b()):_0x535881([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x535881([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x535881([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x535881([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb43e24(){const _0x125af4=[_0x535881([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x535881([0x74,0x72,0x69,0x61,0x6c])][_0x535881([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cbd4d[_0x535881([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f9845/0x3e8:0xe10*_0x1d42cb;return _0x2cbd4d[_0x535881([0x65,0x78,0x70])]<_0x125af4;}function _0x5832b0(){const _0x32f6cf=_0x2cbd4d[_0x535881([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x32f6cf&&(!!_0x32f6cf[_0x535881([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x535881([0x2a]))||!!_0x32f6cf[_0x535881([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x535881([0x55,0x50,0x4c,0x43])));}function _0x4feffd(){const _0x4083ea=_0x3bcf,_0x4a05fd=_0x2cbd4d[_0x535881([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a05fd||0x0==_0x4a05fd[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2703ec}=new URL(window[_0x535881([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4083ea(0x222)]);if(_0x4a05fd[_0x535881([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2703ec))return!0x0;const _0x58b91a=_0x2703ec[_0x535881([0x73,0x70,0x6c,0x69,0x74])](_0x535881([0x2e]));return _0x4a05fd[_0x535881([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13e801=>_0x13e801[_0x535881([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x535881([0x2a])))[_0x535881([0x6d,0x61,0x70])](_0xfb5256=>_0xfb5256[_0x535881([0x73,0x70,0x6c,0x69,0x74])](_0x535881([0x2e])))[_0x535881([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4300ec=>_0x4300ec[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x58b91a[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x535881([0x6d,0x61,0x70])](_0x483294=>Array(_0x58b91a[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x483294[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x535881([0x66,0x69,0x6c,0x6c])](_0x483294[0x0]===_0x535881([0x2a])?_0x535881([0x2a]):'')[_0x535881([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x483294))[_0x535881([0x73,0x6f,0x6d,0x65])](_0x38addf=>_0x58b91a[_0x535881([0x65,0x76,0x65,0x72,0x79])]((_0x59ec15,_0x26c996)=>_0x38addf[_0x26c996]===_0x59ec15||_0x38addf[_0x26c996]===_0x535881([0x2a])));}function _0x2bd18b(){return _0x1e447c&&_0x579044?new window[(_0x535881([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ffbe7,_0x375991)=>{_0x1e447c[_0x535881([0x74,0x68,0x65,0x6e])](_0x3ffbe7,_0x375991),_0x579044[_0x535881([0x74,0x68,0x65,0x6e])](_0x2833ed=>{_0x2833ed!=_0x535881([0x56,0x61,0x6c,0x69,0x64])&&_0x3ffbe7(_0x2833ed);},_0x375991);}):_0x1e447c||_0x579044||_0x535881([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d00ae(_0x428fa2,_0x2e3a29){return new window[(_0x535881([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b1c19=>{if(_0x4d3311())return _0x1b1c19(_0x535881([0x56,0x61,0x6c,0x69,0x64]));_0x2e0f6a(),_0x2ec0ca[_0x535881([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x535881([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cda76=!0x1;const _0x65103d=_0x4e3ef1();function _0x1c7757(_0x5333f6){return!!_0x5333f6&&(typeof _0x5333f6===_0x535881([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5333f6===_0x535881([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5333f6[_0x535881([0x74,0x68,0x65,0x6e])]===_0x535881([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5333f6[_0x535881([0x63,0x61,0x74,0x63,0x68])]===_0x535881([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53fb3c(_0xb25901){_0x49e05b(_0xb25901)[_0x535881([0x74,0x68,0x65,0x6e])](_0x1c4171=>{if(!_0x1c4171||_0x1c4171[_0x535881([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x535881([0x6f,0x6b]))return _0x535881([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e5658(_0x4d88e4(_0x65103d+_0x2e3a29))!=_0x1c4171[_0x535881([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x535881([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x535881([0x56,0x61,0x6c,0x69,0x64]);})[_0x535881([0x74,0x68,0x65,0x6e])](_0x3a7498=>(_0x105d6e(),_0x3a7498),()=>{const _0x50d24a=_0x34ad7c();return null==_0x50d24a?(_0x105d6e(),_0x535881([0x56,0x61,0x6c,0x69,0x64])):_0x535881(_0x3f9845-_0x50d24a>(0x27d454df^_0x104856)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x535881([0x74,0x68,0x65,0x6e])](_0x1b1c19)[_0x535881([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b1c19(_0x535881([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44bb50=0x3ee3e5f^_0x104856;function _0x105d6e(){const _0xd1f9bd=_0x535881([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e5658(_0x4d88e4(_0x428fa2)),_0x1ac039=_0x3a7d7a(_0x5e5658(window[_0x535881([0x4d,0x61,0x74,0x68])][_0x535881([0x63,0x65,0x69,0x6c])](_0x3f9845/_0x44bb50)));window[_0x535881([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x535881([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd1f9bd,_0x1ac039);}function _0x34ad7c(){const _0x32f3db=_0x535881([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e5658(_0x4d88e4(_0x428fa2)),_0x32793d=window[_0x535881([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x535881([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32f3db);return _0x32793d?window[_0x535881([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a7d7a(_0x32793d),0x10)*_0x44bb50:null;}function _0x49e05b(_0x3278e){return new window[(_0x535881([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40a460,_0x371194)=>{_0x3278e[_0x535881([0x74,0x68,0x65,0x6e])](_0x40a460,_0x371194),window[_0x535881([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x371194,0x3d9041f^_0x104856);});}}_0x2ec0ca[_0x535881([0x6f,0x6e])](_0x535881([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcc7f1f,_0x32d414)=>{if(_0x32d414[0x0]!=_0x428fa2)return _0x1b1c19(_0x535881([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32d414[0x1]={..._0x32d414[0x1],[_0x535881([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x65103d};},{[_0x535881([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x535881([0x68,0x69,0x67,0x68])}),_0x2ec0ca[_0x535881([0x6f,0x6e])](_0x535881([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x266582=>{_0x1c7757(_0x266582[_0x535881([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cda76=!0x0,_0x53fb3c(_0x266582[_0x535881([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x535881([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x535881([0x6c,0x6f,0x77])}),_0x404846[_0x535881([0x74,0x68,0x65,0x6e])](()=>{_0x4cda76||_0x1b1c19(_0x535881([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d3311(){return _0x2ec0ca[_0x535881([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x535881([0x76,0x69,0x65,0x77])][_0x535881([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x535881([0x61,0x75,0x74,0x6f]);}function _0x2e0f6a(){_0x2ec0ca[_0x535881([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x535881([0x76,0x69,0x65,0x77])][_0x535881([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x535881([0x61,0x75,0x74,0x6f]);}}function _0x451810(_0x38825e){const _0xcc1d15=[new window[(_0x535881([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11e036=>setTimeout(_0x11e036,0x3d1ee13^_0x104856)),_0x404846[_0x535881([0x74,0x68,0x65,0x6e])](()=>new window[(_0x535881([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55221e=>{let _0x1df8c7=0x0;_0x2ec0ca[_0x535881([0x6d,0x6f,0x64,0x65,0x6c])][_0x535881([0x6f,0x6e])](_0x535881([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f27ce,_0x2e1b04)=>{_0x2e1b04[0x0][_0x535881([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1df8c7++,_0x1df8c7==(0x3d8d127^_0x104856)&&(_0x55221e(),_0x5f27ce[_0x535881([0x6f,0x66,0x66])]());});}))];return window[_0x535881([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x535881([0x72,0x61,0x63,0x65])](_0xcc1d15)[_0x535881([0x74,0x68,0x65,0x6e])](()=>_0x38825e);}async function _0x1d56a9(){await _0x404846,_0x2ec0ca[_0x535881([0x6d,0x6f,0x64,0x65,0x6c])][_0x535881([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xdb2574,_0x2ec0ca[_0x535881([0x6d,0x6f,0x64,0x65,0x6c])][_0x535881([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xdb2574,_0x2ec0ca[_0x535881([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x535881([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x151dec(_0x252a82){const _0x12c3e9=_0x2e9ef0();_0x2ec0ca[_0x12c3e9]=_0x535881([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x252a82,_0x252a82!=_0x535881([0x56,0x61,0x6c,0x69,0x64])&&_0x1d56a9();}function _0x2e9ef0(){const _0x3347af=window[_0x535881([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x535881([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x535881([0x6e,0x6f,0x77])]())[_0x535881([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x535881([0x2e]),'');let _0x45637c=_0x535881([0x52]);for(let _0x5df58d=0x0;_0x5df58d<_0x3347af[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5df58d+=0x2){let _0x1b08f3=window[_0x535881([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3347af[_0x535881([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5df58d,_0x5df58d+0x2));_0x1b08f3>=_0x1fc7df[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b08f3-=_0x1fc7df[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45637c+=_0x1fc7df[_0x1b08f3];}return _0x45637c;}function _0x5befb5(){const _0x3d5ce1=_0x5497f1[_0x535881([0x73,0x70,0x6c,0x69,0x74])](_0x535881([0x2e]));if(0x3!=_0x3d5ce1[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xcbd58(_0x3d5ce1[0x1]);function _0xcbd58(_0x3a9ee0){const _0x5aa340=_0x39552e(_0x3a9ee0);return _0x5aa340&&_0x3215b3()?_0x5aa340:null;function _0x3215b3(){const _0x32aa7f=_0x5aa340[_0x535881([0x6a,0x74,0x69])],_0x5ad5b3=window[_0x535881([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32aa7f[_0x535881([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32aa7f[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53791b={..._0x5aa340,[_0x535881([0x6a,0x74,0x69])]:_0x32aa7f[_0x535881([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32aa7f[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53791b[_0x535881([0x76,0x63])],_0x4d88e4(_0x53791b)==_0x5ad5b3;}}}async function _0x40ca5f(){let _0x114b44=!0x0;try{const _0x339c0b=_0x5497f1[_0x535881([0x73,0x70,0x6c,0x69,0x74])](_0x535881([0x2e])),[_0x18f47e,_0x14604e,_0x572210]=_0x339c0b;return _0x79df60(_0x18f47e),await _0x6b0dde(_0x18f47e,_0x14604e,_0x572210),_0x114b44;}catch{return!0x1;}function _0x79df60(_0x5108ba){const _0x4f85c0=_0x39552e(_0x5108ba);_0x4f85c0&&_0x4f85c0[_0x535881([0x61,0x6c,0x67])]==_0x535881([0x45,0x53,0x32,0x35,0x36])||(_0x114b44=!0x1);}async function _0x6b0dde(_0x48200f,_0x2d1530,_0x34f3e9){const _0x576428=window[_0x535881([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x535881([0x66,0x72,0x6f,0x6d])](_0x4b2255(_0x34f3e9),_0x38abe2=>_0x38abe2[_0x535881([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fb72b=new window[(_0x535881([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x535881([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48200f+_0x535881([0x2e])+_0x2d1530),_0x18feb5=window[_0x535881([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x535881([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18feb5)return;const _0x442149=await _0x18feb5[_0x535881([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x535881([0x6a,0x77,0x6b]),_0x22773b,{[_0x535881([0x6e,0x61,0x6d,0x65])]:_0x535881([0x45,0x43,0x44,0x53,0x41]),[_0x535881([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x535881([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x535881([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18feb5[_0x535881([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x535881([0x6e,0x61,0x6d,0x65])]:_0x535881([0x45,0x43,0x44,0x53,0x41]),[_0x535881([0x68,0x61,0x73,0x68])]:{[_0x535881([0x6e,0x61,0x6d,0x65])]:_0x535881([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x442149,_0x576428,_0x2fb72b)||(_0x114b44=!0x1);}}function _0x39552e(_0x174017){return _0x174017[_0x535881([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x535881([0x65,0x79]))?JSON[_0x535881([0x70,0x61,0x72,0x73,0x65])](_0x4b2255(_0x174017)):null;}function _0x4b2255(_0x5b5884){return window[_0x535881([0x61,0x74,0x6f,0x62])](_0x5b5884[_0x535881([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x535881([0x2b]))[_0x535881([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x535881([0x2f])));}function _0x4d88e4(_0x5655fb){let _0x2529f2=0x1505;function _0x1b7804(_0x26b312){for(let _0x2c46bf=0x0;_0x2c46bf<_0x26b312[_0x535881([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c46bf++){const _0xbed91a=_0x26b312[_0x535881([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c46bf);_0x2529f2=(_0x2529f2<<0x5)+_0x2529f2+_0xbed91a,_0x2529f2&=_0x2529f2;}}function _0x1c3f8b(_0x36d923){Array[_0x535881([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36d923)?_0x36d923[_0x535881([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c3f8b):_0x36d923&&typeof _0x36d923==_0x535881([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x535881([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36d923)[_0x535881([0x73,0x6f,0x72,0x74])]()[_0x535881([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b3545,_0x476047])=>{_0x1b7804(_0x2b3545),_0x1c3f8b(_0x476047);}):_0x1b7804(window[_0x535881([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36d923));}return _0x1c3f8b(_0x5655fb),_0x2529f2>>>0x0;}function _0x5e5658(_0xfbaac7){return _0xfbaac7[_0x535881([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x535881([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x535881([0x30]));}function _0x3a7d7a(_0x535b75){return _0x535b75[_0x535881([0x73,0x70,0x6c,0x69,0x74])]('')[_0x535881([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x535881([0x6a,0x6f,0x69,0x6e])]('');}function _0xdb2574(){}function _0x535881(_0x559f3e){const _0x50ff3c=_0x3bcf;return _0x559f3e[_0x50ff3c(0x1fc)](_0x2acefe=>String[_0x50ff3c(0x1fa)](_0x2acefe))[_0x50ff3c(0x220)]('');}_0x151dec(await _0x19859e());}(this);}[_0x48d92a(0x234)](){const _0x596d72=_0x48d92a,_0x5db31=this[_0x596d72(0x1fb)][_0x596d72(0x235)][_0x596d72(0x211)];_0x5db31[_0x596d72(0x241)](_0x596d72(0x204))&&_0x5db31[_0x596d72(0x224)](_0x596d72(0x204),{'allowAttributes':[_0x596d72(0x230)]}),_0x5db31[_0x596d72(0x241)](_0x596d72(0x1ef))&&_0x5db31[_0x596d72(0x224)](_0x596d72(0x1ef),{'allowAttributes':[_0x596d72(0x230)]});}[_0x48d92a(0x20f)](){const _0x161598=_0x48d92a,_0x556958=this[_0x161598(0x1fb)];_0x556958[_0x161598(0x233)][_0x161598(0x219)](_0x161598(0x22b))[_0x161598(0x20a)]({'model':_0x161598(0x230),'view':_0x161598(0x207)}),_0x556958[_0x161598(0x233)][_0x161598(0x219)](_0x161598(0x1f7))[_0x161598(0x239)]({'model':{'key':_0x161598(0x230),'value':_0xe40b81=>_0xe40b81[_0x161598(0x237)](_0x161598(0x207))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30be38=_0x556958[_0x161598(0x225)][_0x161598(0x1f0)](_0x161598(0x1f5));_0x30be38&&this[_0x161598(0x21f)](_0x30be38,_0x161598(0x1f8),(_0x4bf062,[_0x573a5e,_0x40472a])=>{const _0x317321=_0x161598;_0x573a5e[_0x317321(0x1fe)](_0x317321(0x230),_0x40472a);});}[_0x48d92a(0x20c)](){const _0x4f82a6=_0x48d92a,_0x24d4d2=this[_0x4f82a6(0x1fb)][_0x4f82a6(0x21a)][_0x4f82a6(0x1f0)](_0x4f82a6(0x240))||{},_0x3c19c9=this[_0x4f82a6(0x1fb)][_0x4f82a6(0x21a)][_0x4f82a6(0x1f0)](_0x4f82a6(0x20b))||'';this[_0x4f82a6(0x214)]=_0x42f7a9(_0x2f2af0[_0x4f82a6(0x1ee)],_0x4f82a6(0x212),{..._0x24d4d2,'pubkey':_0x3c19c9,'ctx-name':_0x4f82a6(0x215)+this[_0x4f82a6(0x21b)],'sourceList':'','imgOnly':_0x4f82a6(0x20e),'removeCopyright':_0x4f82a6(0x20e),'localeName':this[_0x4f82a6(0x1fb)][_0x4f82a6(0x23e)][_0x4f82a6(0x206)],'externalSourcesEmbedCss':_0x4f82a6(0x1f9)}),this[_0x4f82a6(0x214)][_0x4f82a6(0x217)]=_0x2a25ec=>{const _0x3a822d=_0x4f82a6;if(_0x3a822d(0x21c)==_0x2a25ec)return _0x3a822d(0x213);},_0x2f2af0[_0x4f82a6(0x1ee)][_0x4f82a6(0x23b)][_0x4f82a6(0x1f3)](this[_0x4f82a6(0x214)]);}[_0x48d92a(0x231)](){const _0x25e85b=_0x48d92a;this[_0x25e85b(0x23f)]=_0x42f7a9(_0x2f2af0[_0x25e85b(0x1ee)],_0x25e85b(0x201),{'ctx-name':_0x25e85b(0x215)+this[_0x25e85b(0x21b)]}),_0x2f2af0[_0x25e85b(0x1ee)][_0x25e85b(0x23b)][_0x25e85b(0x1f3)](this[_0x25e85b(0x23f)]);}[_0x48d92a(0x23d)](){const _0x7a8cd6=_0x48d92a,_0x331e7=this[_0x7a8cd6(0x1fb)][_0x7a8cd6(0x225)][_0x7a8cd6(0x1f0)](_0x7a8cd6(0x216));_0x331e7&&this[_0x7a8cd6(0x21f)](_0x331e7,_0x7a8cd6(0x232),()=>{const _0x13db81=_0x7a8cd6,_0x28c863=this[_0x13db81(0x1fb)][_0x13db81(0x235)][_0x13db81(0x1ee)][_0x13db81(0x229)][_0x13db81(0x21e)]();_0x28c863&&_0x28c863[_0x13db81(0x237)](_0x13db81(0x230))&&this[_0x13db81(0x1fb)][_0x13db81(0x223)][_0x13db81(0x243)][_0x13db81(0x218)](_0x13db81(0x205),()=>{const _0x1dcab2=_0x13db81;_0x38bdf5(this[_0x1dcab2(0x1fb)],_0x28c863);});});const _0x369ffa=this[_0x7a8cd6(0x1fb)][_0x7a8cd6(0x225)][_0x7a8cd6(0x1f0)](_0x7a8cd6(0x236));_0x369ffa&&this[_0x7a8cd6(0x21f)](_0x369ffa,_0x7a8cd6(0x232),()=>{const _0x50d22b=_0x7a8cd6,_0x240735=this[_0x50d22b(0x1fb)][_0x50d22b(0x235)][_0x50d22b(0x1ee)][_0x50d22b(0x229)][_0x50d22b(0x21e)]();_0x240735&&_0x240735[_0x50d22b(0x237)](_0x50d22b(0x230))&&this[_0x50d22b(0x1fb)][_0x50d22b(0x223)][_0x50d22b(0x243)][_0x50d22b(0x218)](_0x50d22b(0x205),()=>{const _0x531abc=_0x50d22b;_0x38bdf5(this[_0x531abc(0x1fb)],_0x240735);});});}}
|
|
23
|
+
const _0x1e87da=_0xd6ac;(function(_0x150ed0,_0x5c4d31){const _0x13e3ab=_0xd6ac,_0x43d531=_0x150ed0();while(!![]){try{const _0x53337a=-parseInt(_0x13e3ab(0xd5))/0x1*(parseInt(_0x13e3ab(0xbc))/0x2)+parseInt(_0x13e3ab(0xca))/0x3*(parseInt(_0x13e3ab(0xf8))/0x4)+-parseInt(_0x13e3ab(0xf9))/0x5*(parseInt(_0x13e3ab(0xe8))/0x6)+-parseInt(_0x13e3ab(0xf2))/0x7+parseInt(_0x13e3ab(0xf4))/0x8+-parseInt(_0x13e3ab(0xd6))/0x9+parseInt(_0x13e3ab(0xdc))/0xa*(parseInt(_0x13e3ab(0xc3))/0xb);if(_0x53337a===_0x5c4d31)break;else _0x43d531['push'](_0x43d531['shift']());}catch(_0x1a658c){_0x43d531['push'](_0x43d531['shift']());}}}(_0x14e6,0x47ef0));function _0xd6ac(_0x48d08b,_0x433cf5){const _0x14e64f=_0x14e6();return _0xd6ac=function(_0xd6ac64,_0x235e3e){_0xd6ac64=_0xd6ac64-0xa4;let _0x4d767f=_0x14e64f[_0xd6ac64];return _0x4d767f;},_0xd6ac(_0x48d08b,_0x433cf5);}function _0x14e6(){const _0x487acb=['editing','configElement','uploader-','598SFIPlV','4628115KHARnj','href','querySelector','UploadcareEditing','isRegistered','true','340VEbupS','schema','uploadcareImageId','config','listenTo','model','uploadcare.pubkey','fromCharCode','imageInline','_initSchema','_ctxElement','uploadcareImageReplace','1748382SnjiqY','commands','attributeToAttribute','data-uc-image-id','ctxElement','destroy','_initConfig','appendChild','selection','upcast','2358104BkfjiZ','_initImageProcessingIndicator','902328aihneW','extend','isOfficialPlugin','afterInit','32684AqsGaf','5xHGkBU','locale','insertImage','removeAttribute','uploadcare.uploader','init','editor','getSelectedElement','once','pluginName','downcast','_configElement','get','_initCtx','map','uc-upload-ctx-provider','\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','uploadcare','elementToAttribute','getAttribute','replaceImageSource','requires','body','isPremiumPlugin','for','372RgFCAc','iconHrefResolver','imageBlock','conversion','input[uploadcare-file-input]','closeMax','view','366641bVwMsf','_initConversion','document','PictureEditing','contentLanguage','remove','join','111zkmqbQ','cleanupImage','ucContextId','execute','uc-config','render','add','#uc-icon-arrow-down'];_0x14e6=function(){return _0x487acb;};return _0x14e6();}import{Plugin as _0x55f996}from'ckeditor5/src/core.js';import{Dialog as _0x14e42b}from'ckeditor5/src/ui.js';import{createElement as _0x526dea,global as _0x2bda02,uid as _0x19b02b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5e1eb4}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x46acec}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x462b0c}from'./utils/editingutils.js';export class UploadcareEditing extends _0x55f996{[_0x1e87da(0xae)]=null;[_0x1e87da(0xe6)]=null;static get[_0x1e87da(0xac)](){const _0x5c717d=_0x1e87da;return _0x5c717d(0xd9);}static get[_0x1e87da(0xb8)](){const _0x488f02=_0x1e87da;return[_0x488f02(0xc6),_0x46acec,_0x14e42b];}static get[_0x1e87da(0xf6)](){return!0x0;}static get[_0x1e87da(0xba)](){return!0x0;}[_0x1e87da(0xcc)];get[_0x1e87da(0xd3)](){const _0x48a095=_0x1e87da;return this[_0x48a095(0xae)];}get[_0x1e87da(0xec)](){const _0x1717e2=_0x1e87da;return this[_0x1717e2(0xe6)];}constructor(_0x2d97ca){const _0x173b3c=_0x1e87da;super(_0x2d97ca),this[_0x173b3c(0xcc)]=_0x19b02b();}[_0x1e87da(0xa8)](){const _0x48ad6d=_0x1e87da,_0x2a765a=this[_0x48ad6d(0xa9)];_0x2a765a[_0x48ad6d(0xe9)][_0x48ad6d(0xd0)](_0x48ad6d(0xb4),new _0x5e1eb4(_0x2a765a));}[_0x1e87da(0xf7)](){const _0x22c7ac=_0x1e87da;this[_0x22c7ac(0xe5)](),this[_0x22c7ac(0xc4)](),this[_0x22c7ac(0xee)](),this[_0x22c7ac(0xb0)](),this[_0x22c7ac(0xf3)](),this[_0x22c7ac(0xe0)](this[_0x22c7ac(0xa9)],_0x22c7ac(0xed),()=>{const _0x53712f=_0x22c7ac;this[_0x53712f(0xae)]&&(this[_0x53712f(0xae)][_0x53712f(0xc8)](),this[_0x53712f(0xae)]=null),this[_0x53712f(0xe6)]&&(this[_0x53712f(0xe6)][_0x53712f(0xc8)](),this[_0x53712f(0xe6)]=null);const _0x55b1db=_0x2bda02[_0x53712f(0xc5)][_0x53712f(0xd8)](_0x53712f(0xc0));_0x55b1db&&_0x55b1db[_0x53712f(0xc8)]();}),async function(_0x50b746){const _0x5e573b=_0x5c30a7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x279432=0x3d8d0df,_0x53f1d4=0x3dfa687^_0x279432,_0x30776f=window[_0x5c30a7([0x44,0x61,0x74,0x65])][_0x5c30a7([0x6e,0x6f,0x77])](),_0xf4123a=_0x50b746[_0x5c30a7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4da084=new window[(_0x5c30a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36dac1=>{_0xf4123a[_0x5c30a7([0x6f,0x6e,0x63,0x65])](_0x5c30a7([0x72,0x65,0x61,0x64,0x79]),_0x36dac1);}),_0x435f22={[_0x5c30a7([0x6b,0x74,0x79])]:_0x5c30a7([0x45,0x43]),[_0x5c30a7([0x75,0x73,0x65])]:_0x5c30a7([0x73,0x69,0x67]),[_0x5c30a7([0x63,0x72,0x76])]:_0x5c30a7([0x50,0x2d,0x32,0x35,0x36]),[_0x5c30a7([0x78])]:_0x5c30a7([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]),[_0x5c30a7([0x79])]:_0x5c30a7([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]),[_0x5c30a7([0x61,0x6c,0x67])]:_0x5c30a7([0x45,0x53,0x32,0x35,0x36])},_0x101bb7=_0xf4123a[_0x5c30a7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c30a7([0x67,0x65,0x74])](_0x5c30a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c80c8(){let _0x47967c,_0x322c8a=null,_0x4000d8=null;try{if(_0x101bb7==_0x5c30a7([0x47,0x50,0x4c]))return _0x5c30a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47967c=_0x16832b(),!_0x47967c)return _0x5c30a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47967c[_0x5c30a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4000d8=_0x578b2b(_0x47967c[_0x5c30a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47967c[_0x5c30a7([0x6a,0x74,0x69])])),await _0x1c63df()?_0x54753d()?_0x4d062d()?_0x5c30a7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x517e6b()?(_0x47967c[_0x5c30a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c30a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x322c8a=_0x4f28ed(_0x5c30a7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47967c[_0x5c30a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c30a7([0x74,0x72,0x69,0x61,0x6c])&&(_0x322c8a=_0x4f28ed(_0x5c30a7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x8a6e6b()):_0x5c30a7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c30a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c30a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c30a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d062d(){const _0x12b888=[_0x5c30a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c30a7([0x74,0x72,0x69,0x61,0x6c])][_0x5c30a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47967c[_0x5c30a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30776f/0x3e8:0xe10*_0x53f1d4;return _0x47967c[_0x5c30a7([0x65,0x78,0x70])]<_0x12b888;}function _0x54753d(){const _0x199d6b=_0x47967c[_0x5c30a7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x199d6b&&(!!_0x199d6b[_0x5c30a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c30a7([0x2a]))||!!_0x199d6b[_0x5c30a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c30a7([0x55,0x50,0x4c,0x43])));}function _0x517e6b(){const _0x35f0a8=_0xd6ac,_0x3486b6=_0x47967c[_0x5c30a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3486b6||0x0==_0x3486b6[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bf3ec}=new URL(window[_0x5c30a7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x35f0a8(0xd7)]);if(_0x3486b6[_0x5c30a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf3ec))return!0x0;const _0x49764c=_0x5bf3ec[_0x5c30a7([0x73,0x70,0x6c,0x69,0x74])](_0x5c30a7([0x2e]));return _0x3486b6[_0x5c30a7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ec21d=>_0x3ec21d[_0x5c30a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c30a7([0x2a])))[_0x5c30a7([0x6d,0x61,0x70])](_0x45f7c4=>_0x45f7c4[_0x5c30a7([0x73,0x70,0x6c,0x69,0x74])](_0x5c30a7([0x2e])))[_0x5c30a7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd57049=>_0xd57049[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49764c[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c30a7([0x6d,0x61,0x70])](_0x2d477c=>Array(_0x49764c[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d477c[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c30a7([0x66,0x69,0x6c,0x6c])](_0x2d477c[0x0]===_0x5c30a7([0x2a])?_0x5c30a7([0x2a]):'')[_0x5c30a7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d477c))[_0x5c30a7([0x73,0x6f,0x6d,0x65])](_0x482d59=>_0x49764c[_0x5c30a7([0x65,0x76,0x65,0x72,0x79])]((_0x12fdb1,_0x14f83d)=>_0x482d59[_0x14f83d]===_0x12fdb1||_0x482d59[_0x14f83d]===_0x5c30a7([0x2a])));}function _0x8a6e6b(){return _0x322c8a&&_0x4000d8?new window[(_0x5c30a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x355311,_0x412618)=>{_0x322c8a[_0x5c30a7([0x74,0x68,0x65,0x6e])](_0x355311,_0x412618),_0x4000d8[_0x5c30a7([0x74,0x68,0x65,0x6e])](_0x15fbcd=>{_0x15fbcd!=_0x5c30a7([0x56,0x61,0x6c,0x69,0x64])&&_0x355311(_0x15fbcd);},_0x412618);}):_0x322c8a||_0x4000d8||_0x5c30a7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x578b2b(_0x39c01a,_0x472803){return new window[(_0x5c30a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x241d5b=>{if(_0x3a0973())return _0x241d5b(_0x5c30a7([0x56,0x61,0x6c,0x69,0x64]));_0xb9c60c(),_0xf4123a[_0x5c30a7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c30a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x71b29b=!0x1;const _0x2f7d43=_0x19b02b();function _0x99fc28(_0x179af2){return!!_0x179af2&&(typeof _0x179af2===_0x5c30a7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x179af2===_0x5c30a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x179af2[_0x5c30a7([0x74,0x68,0x65,0x6e])]===_0x5c30a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x179af2[_0x5c30a7([0x63,0x61,0x74,0x63,0x68])]===_0x5c30a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24b112(_0xc52b6e){_0x482104(_0xc52b6e)[_0x5c30a7([0x74,0x68,0x65,0x6e])](_0x1b6838=>{if(!_0x1b6838||_0x1b6838[_0x5c30a7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c30a7([0x6f,0x6b]))return _0x5c30a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x536de0(_0x4a2d3a(_0x2f7d43+_0x472803))!=_0x1b6838[_0x5c30a7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c30a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c30a7([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c30a7([0x74,0x68,0x65,0x6e])](_0x1a374d=>(_0x571015(),_0x1a374d),()=>{const _0xc25b96=_0xc1b354();return null==_0xc25b96?(_0x571015(),_0x5c30a7([0x56,0x61,0x6c,0x69,0x64])):_0x5c30a7(_0x30776f-_0xc25b96>(0x27d454df^_0x279432)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c30a7([0x74,0x68,0x65,0x6e])](_0x241d5b)[_0x5c30a7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x241d5b(_0x5c30a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x560c5c=0x3ee3e5f^_0x279432;function _0x571015(){const _0x833d00=_0x5c30a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x536de0(_0x4a2d3a(_0x39c01a)),_0x422eff=_0x37e3f6(_0x536de0(window[_0x5c30a7([0x4d,0x61,0x74,0x68])][_0x5c30a7([0x63,0x65,0x69,0x6c])](_0x30776f/_0x560c5c)));window[_0x5c30a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c30a7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x833d00,_0x422eff);}function _0xc1b354(){const _0x32d210=_0x5c30a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x536de0(_0x4a2d3a(_0x39c01a)),_0x28017d=window[_0x5c30a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c30a7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32d210);return _0x28017d?window[_0x5c30a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37e3f6(_0x28017d),0x10)*_0x560c5c:null;}function _0x482104(_0x54cc96){return new window[(_0x5c30a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x354851,_0x18889e)=>{_0x54cc96[_0x5c30a7([0x74,0x68,0x65,0x6e])](_0x354851,_0x18889e),window[_0x5c30a7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18889e,0x3d9041f^_0x279432);});}}_0xf4123a[_0x5c30a7([0x6f,0x6e])](_0x5c30a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44e08c,_0x7de3fe)=>{if(_0x7de3fe[0x0]!=_0x39c01a)return _0x241d5b(_0x5c30a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x7de3fe[0x1]={..._0x7de3fe[0x1],[_0x5c30a7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f7d43};},{[_0x5c30a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c30a7([0x68,0x69,0x67,0x68])}),_0xf4123a[_0x5c30a7([0x6f,0x6e])](_0x5c30a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x160d62=>{_0x99fc28(_0x160d62[_0x5c30a7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x71b29b=!0x0,_0x24b112(_0x160d62[_0x5c30a7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c30a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c30a7([0x6c,0x6f,0x77])}),_0x4da084[_0x5c30a7([0x74,0x68,0x65,0x6e])](()=>{_0x71b29b||_0x241d5b(_0x5c30a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a0973(){return _0xf4123a[_0x5c30a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c30a7([0x76,0x69,0x65,0x77])][_0x5c30a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c30a7([0x61,0x75,0x74,0x6f]);}function _0xb9c60c(){_0xf4123a[_0x5c30a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c30a7([0x76,0x69,0x65,0x77])][_0x5c30a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c30a7([0x61,0x75,0x74,0x6f]);}}function _0x4f28ed(_0x10fffd){const _0x40345a=[new window[(_0x5c30a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2048ad=>setTimeout(_0x2048ad,0x3d1ee13^_0x279432)),_0x4da084[_0x5c30a7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c30a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56009b=>{let _0x3e9208=0x0;_0xf4123a[_0x5c30a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c30a7([0x6f,0x6e])](_0x5c30a7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c6bc3,_0x2d287a)=>{_0x2d287a[0x0][_0x5c30a7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3e9208++,_0x3e9208==(0x3d8d127^_0x279432)&&(_0x56009b(),_0x4c6bc3[_0x5c30a7([0x6f,0x66,0x66])]());});}))];return window[_0x5c30a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c30a7([0x72,0x61,0x63,0x65])](_0x40345a)[_0x5c30a7([0x74,0x68,0x65,0x6e])](()=>_0x10fffd);}async function _0x216e22(){await _0x4da084,_0xf4123a[_0x5c30a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c30a7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b3e4f,_0xf4123a[_0x5c30a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c30a7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b3e4f,_0xf4123a[_0x5c30a7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c30a7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf8b02b(_0xdb56b3){const _0x27871f=_0x102ca1();_0xf4123a[_0x27871f]=_0x5c30a7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xdb56b3,_0xdb56b3!=_0x5c30a7([0x56,0x61,0x6c,0x69,0x64])&&_0x216e22();}function _0x102ca1(){const _0x58d632=window[_0x5c30a7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c30a7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c30a7([0x6e,0x6f,0x77])]())[_0x5c30a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c30a7([0x2e]),'');let _0x4115cf=_0x5c30a7([0x52]);for(let _0x2ea2b0=0x0;_0x2ea2b0<_0x58d632[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ea2b0+=0x2){let _0x4e2164=window[_0x5c30a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58d632[_0x5c30a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ea2b0,_0x2ea2b0+0x2));_0x4e2164>=_0x5e573b[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e2164-=_0x5e573b[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4115cf+=_0x5e573b[_0x4e2164];}return _0x4115cf;}function _0x16832b(){const _0x1dcf48=_0x101bb7[_0x5c30a7([0x73,0x70,0x6c,0x69,0x74])](_0x5c30a7([0x2e]));if(0x3!=_0x1dcf48[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd7b038(_0x1dcf48[0x1]);function _0xd7b038(_0x41f13b){const _0xb19d62=_0x454140(_0x41f13b);return _0xb19d62&&_0x413752()?_0xb19d62:null;function _0x413752(){const _0x46906a=_0xb19d62[_0x5c30a7([0x6a,0x74,0x69])],_0x3d8918=window[_0x5c30a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46906a[_0x5c30a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46906a[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39f445={..._0xb19d62,[_0x5c30a7([0x6a,0x74,0x69])]:_0x46906a[_0x5c30a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46906a[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39f445[_0x5c30a7([0x76,0x63])],_0x4a2d3a(_0x39f445)==_0x3d8918;}}}async function _0x1c63df(){let _0x1d9b16=!0x0;try{const _0x5d8fa7=_0x101bb7[_0x5c30a7([0x73,0x70,0x6c,0x69,0x74])](_0x5c30a7([0x2e])),[_0xa143e8,_0x4de0e6,_0x6226e2]=_0x5d8fa7;return _0x422592(_0xa143e8),await _0x156e53(_0xa143e8,_0x4de0e6,_0x6226e2),_0x1d9b16;}catch{return!0x1;}function _0x422592(_0x273a29){const _0x5d64ce=_0x454140(_0x273a29);_0x5d64ce&&_0x5d64ce[_0x5c30a7([0x61,0x6c,0x67])]==_0x5c30a7([0x45,0x53,0x32,0x35,0x36])||(_0x1d9b16=!0x1);}async function _0x156e53(_0x1209be,_0x1dfaf9,_0x572822){const _0x2ab251=window[_0x5c30a7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c30a7([0x66,0x72,0x6f,0x6d])](_0x33e189(_0x572822),_0x1086c4=>_0x1086c4[_0x5c30a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32c600=new window[(_0x5c30a7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c30a7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1209be+_0x5c30a7([0x2e])+_0x1dfaf9),_0x5aeb50=window[_0x5c30a7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c30a7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5aeb50)return;const _0x25edc5=await _0x5aeb50[_0x5c30a7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c30a7([0x6a,0x77,0x6b]),_0x435f22,{[_0x5c30a7([0x6e,0x61,0x6d,0x65])]:_0x5c30a7([0x45,0x43,0x44,0x53,0x41]),[_0x5c30a7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c30a7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c30a7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5aeb50[_0x5c30a7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c30a7([0x6e,0x61,0x6d,0x65])]:_0x5c30a7([0x45,0x43,0x44,0x53,0x41]),[_0x5c30a7([0x68,0x61,0x73,0x68])]:{[_0x5c30a7([0x6e,0x61,0x6d,0x65])]:_0x5c30a7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25edc5,_0x2ab251,_0x32c600)||(_0x1d9b16=!0x1);}}function _0x454140(_0x4a4f06){return _0x4a4f06[_0x5c30a7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c30a7([0x65,0x79]))?JSON[_0x5c30a7([0x70,0x61,0x72,0x73,0x65])](_0x33e189(_0x4a4f06)):null;}function _0x33e189(_0x25e8a1){return window[_0x5c30a7([0x61,0x74,0x6f,0x62])](_0x25e8a1[_0x5c30a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c30a7([0x2b]))[_0x5c30a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c30a7([0x2f])));}function _0x4a2d3a(_0x4af91c){let _0x47c22e=0x1505;function _0x2ab769(_0x12ffbe){for(let _0x131593=0x0;_0x131593<_0x12ffbe[_0x5c30a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x131593++){const _0x499ad1=_0x12ffbe[_0x5c30a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x131593);_0x47c22e=(_0x47c22e<<0x5)+_0x47c22e+_0x499ad1,_0x47c22e&=_0x47c22e;}}function _0x1fd66c(_0x21ba3f){Array[_0x5c30a7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21ba3f)?_0x21ba3f[_0x5c30a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fd66c):_0x21ba3f&&typeof _0x21ba3f==_0x5c30a7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c30a7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21ba3f)[_0x5c30a7([0x73,0x6f,0x72,0x74])]()[_0x5c30a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c43c4,_0x111a67])=>{_0x2ab769(_0x1c43c4),_0x1fd66c(_0x111a67);}):_0x2ab769(window[_0x5c30a7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21ba3f));}return _0x1fd66c(_0x4af91c),_0x47c22e>>>0x0;}function _0x536de0(_0x594b31){return _0x594b31[_0x5c30a7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c30a7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c30a7([0x30]));}function _0x37e3f6(_0x187b3b){return _0x187b3b[_0x5c30a7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c30a7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c30a7([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b3e4f(){}function _0x5c30a7(_0xa38c4a){const _0x53b185=_0xd6ac;return _0xa38c4a[_0x53b185(0xb1)](_0x431f2f=>String[_0x53b185(0xe3)](_0x431f2f))[_0x53b185(0xc9)]('');}_0xf8b02b(await _0x4c80c8());}(this);}[_0x1e87da(0xe5)](){const _0x556e55=_0x1e87da,_0x49a97c=this[_0x556e55(0xa9)][_0x556e55(0xe1)][_0x556e55(0xdd)];_0x49a97c[_0x556e55(0xda)](_0x556e55(0xbe))&&_0x49a97c[_0x556e55(0xf5)](_0x556e55(0xbe),{'allowAttributes':[_0x556e55(0xde)]}),_0x49a97c[_0x556e55(0xda)](_0x556e55(0xe4))&&_0x49a97c[_0x556e55(0xf5)](_0x556e55(0xe4),{'allowAttributes':[_0x556e55(0xde)]});}[_0x1e87da(0xc4)](){const _0x3044aa=_0x1e87da,_0x326591=this[_0x3044aa(0xa9)];_0x326591[_0x3044aa(0xbf)][_0x3044aa(0xbb)](_0x3044aa(0xad))[_0x3044aa(0xea)]({'model':_0x3044aa(0xde),'view':_0x3044aa(0xeb)}),_0x326591[_0x3044aa(0xbf)][_0x3044aa(0xbb)](_0x3044aa(0xf1))[_0x3044aa(0xb5)]({'model':{'key':_0x3044aa(0xde),'value':_0x503a8c=>_0x503a8c[_0x3044aa(0xb6)](_0x3044aa(0xeb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5c3e72=_0x326591[_0x3044aa(0xe9)][_0x3044aa(0xaf)](_0x3044aa(0xb7));_0x5c3e72&&this[_0x3044aa(0xe0)](_0x5c3e72,_0x3044aa(0xcb),(_0x3da7d8,[_0x3ba95f,_0x107d8f])=>{const _0x319e7e=_0x3044aa;_0x3ba95f[_0x319e7e(0xa6)](_0x319e7e(0xde),_0x107d8f);});}[_0x1e87da(0xee)](){const _0x2534ae=_0x1e87da,_0x304ce5=this[_0x2534ae(0xa9)][_0x2534ae(0xdf)][_0x2534ae(0xaf)](_0x2534ae(0xa7))||{},_0x2e28ef=this[_0x2534ae(0xa9)][_0x2534ae(0xdf)][_0x2534ae(0xaf)](_0x2534ae(0xe2))||'';this[_0x2534ae(0xae)]=_0x526dea(_0x2bda02[_0x2534ae(0xc5)],_0x2534ae(0xce),{..._0x304ce5,'pubkey':_0x2e28ef,'ctx-name':_0x2534ae(0xd4)+this[_0x2534ae(0xcc)],'sourceList':'','imgOnly':_0x2534ae(0xdb),'removeCopyright':_0x2534ae(0xdb),'localeName':this[_0x2534ae(0xa9)][_0x2534ae(0xa4)][_0x2534ae(0xc7)],'externalSourcesEmbedCss':_0x2534ae(0xb3)}),this[_0x2534ae(0xae)][_0x2534ae(0xbd)]=_0x259575=>{const _0x43303f=_0x2534ae;if(_0x43303f(0xc1)==_0x259575)return _0x43303f(0xd1);},_0x2bda02[_0x2534ae(0xc5)][_0x2534ae(0xb9)][_0x2534ae(0xef)](this[_0x2534ae(0xae)]);}[_0x1e87da(0xb0)](){const _0x5c247e=_0x1e87da;this[_0x5c247e(0xe6)]=_0x526dea(_0x2bda02[_0x5c247e(0xc5)],_0x5c247e(0xb2),{'ctx-name':_0x5c247e(0xd4)+this[_0x5c247e(0xcc)]}),_0x2bda02[_0x5c247e(0xc5)][_0x5c247e(0xb9)][_0x5c247e(0xef)](this[_0x5c247e(0xe6)]);}[_0x1e87da(0xf3)](){const _0x2e84ff=_0x1e87da,_0x21712b=this[_0x2e84ff(0xa9)][_0x2e84ff(0xe9)][_0x2e84ff(0xaf)](_0x2e84ff(0xa5));_0x21712b&&this[_0x2e84ff(0xe0)](_0x21712b,_0x2e84ff(0xcd),()=>{const _0x2757f2=_0x2e84ff,_0x47db9a=this[_0x2757f2(0xa9)][_0x2757f2(0xe1)][_0x2757f2(0xc5)][_0x2757f2(0xf0)][_0x2757f2(0xaa)]();_0x47db9a&&_0x47db9a[_0x2757f2(0xb6)](_0x2757f2(0xde))&&this[_0x2757f2(0xa9)][_0x2757f2(0xd2)][_0x2757f2(0xc2)][_0x2757f2(0xab)](_0x2757f2(0xcf),()=>{const _0x24a157=_0x2757f2;_0x462b0c(this[_0x24a157(0xa9)],_0x47db9a);});});const _0x286c8c=this[_0x2e84ff(0xa9)][_0x2e84ff(0xe9)][_0x2e84ff(0xaf)](_0x2e84ff(0xe7));_0x286c8c&&this[_0x2e84ff(0xe0)](_0x286c8c,_0x2e84ff(0xcd),()=>{const _0x41b639=_0x2e84ff,_0x24208e=this[_0x41b639(0xa9)][_0x41b639(0xe1)][_0x41b639(0xc5)][_0x41b639(0xf0)][_0x41b639(0xaa)]();_0x24208e&&_0x24208e[_0x41b639(0xb6)](_0x41b639(0xde))&&this[_0x41b639(0xa9)][_0x41b639(0xd2)][_0x41b639(0xc2)][_0x41b639(0xab)](_0x41b639(0xcf),()=>{const _0x566868=_0x41b639;_0x462b0c(this[_0x566868(0xa9)],_0x24208e);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x455f0d,ObservableMixin as _0x32a2bc}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4f6f13}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x53bccf}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4e6c70}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x5ba7de}from'../../utils/uploadutils.js';import{getImageUrls as _0x1c96d6,getImageDimension as _0x217787}from'../../utils/editingutils.js';import{isAncestor as _0x3d2e46}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x32a2bc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xc2835f,_0x10d53e,_0x52bb7c){super(),this['_editor']=_0xc2835f,this['_dialog']=_0x10d53e,this['_imageElement']=_0x52bb7c,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 _0x50fdbf=this['_imageElement'],_0x35dcfd=_0x50fdbf['getAttribute']('uploadcareImageId'),_0xe60aee=_0x50fdbf['getAttribute']('src');if(_0x35dcfd)await this['_loadImageInfo'](_0x35dcfd,_0xe60aee);else{if(this['_imageCache']['has'](_0xe60aee)){const _0x1963db=this['_imageCache']['get'](_0xe60aee);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1963db['url'],this['imageDimension']=_0x1963db['dimension'],this['imageId']=_0x1963db['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3f6028}=this['_editor'],t=_0x3f6028['t'],_0x57a23a=new _0x4e6c70(_0x3f6028,this['imageStatus'],this['_attributes']);_0x57a23a['bind']('status')['to'](this,'imageStatus'),_0x57a23a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x57a23a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x57a23a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x57a23a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x53bccf,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x57a23a,'position':_0x4f6f13['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x57a23a['focus']();},'onHide':()=>{_0x57a23a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x13cac9=>!_0x3d2e46(_0x13cac9,_0x57a23a['element'])}});}['_loadImageInfo'](_0x5491a2,_0xde80bc){return _0x5ba7de['getInfo'](_0x5491a2,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x393d94=>{const {width:_0x50bd74,height:_0x4c13a6}=_0x393d94['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xde80bc,this['imageDimension']={'width':_0x50bd74,'height':_0x4c13a6},this['imageId']=_0x5491a2;})['catch'](_0x1e9bd0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e9bd0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x59b06f,_0x488727){return this['_getImageAsFile'](_0x59b06f)['then'](_0x2ad8bb=>_0x5ba7de['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':_0x488727['signal'],'file':_0x2ad8bb,'onProgress':_0x29c854=>{_0x29c854&&_0x29c854['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x29c854['value']));}}))['then'](_0x25d7f5=>{const {width:_0x17c63d,height:_0x193e0b}=_0x25d7f5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x25d7f5['cdnUrl'],this['imageDimension']={'width':_0x17c63d,'height':_0x193e0b},this['imageId']=_0x25d7f5['uuid'],this['imageUploadProgress']=null;const _0x210066=_0x59b06f['getAttribute']('src');this['_imageCache']['set'](_0x210066,{'id':_0x25d7f5['uuid'],'url':_0x25d7f5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4057e8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4057e8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xee081c,_0x3a8717){_0xee081c['on']('apply',(_0x588d56,_0x4cb1e2)=>{this['_replaceImage'](_0x3a8717,_0x4cb1e2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xee081c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xee081c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xb5ff33,_0x59a48b,_0xd1237b){const _0x486f49=this['_editor'],{width:_0x2bf41b,height:_0x3a14df}=_0x217787(_0x59a48b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xbf234c,imageSources:_0x4546c8}=_0x1c96d6(_0x59a48b,_0x2bf41b);_0x486f49['model']['change'](_0x511e8c=>{if('$graveyard'===_0xb5ff33['root']['rootName']){_0x486f49['execute']('insertImage',{'imageType':_0xb5ff33['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xb5ff33['getAttributes']()),'uploadcareImageId':_0xd1237b,'src':_0xbf234c,'sources':_0x4546c8,'width':_0x2bf41b,'height':_0x3a14df}});const _0x4fbea4=_0xb5ff33['getChildren']();_0xb5ff33=_0x486f49['model']['document']['selection']['getSelectedElement']();for(const _0x2a59b7 of _0x4fbea4)_0x511e8c['append'](_0x511e8c['cloneElement'](_0x2a59b7),_0xb5ff33);}else _0x511e8c['setSelection'](_0xb5ff33,'on'),_0x486f49['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xb5ff33['getAttributes']()),'uploadcareImageId':_0xd1237b,'src':_0xbf234c,'sources':_0x4546c8,'width':_0x2bf41b,'height':_0x3a14df},_0xb5ff33);_0x511e8c['setSelection'](_0xb5ff33,'on');});}async['_getImageAsFile'](_0x5d21bf){const _0x3a1deb=_0x455f0d['window'],_0x36c0ba=_0x455f0d['document']['location']['href'],_0x3d566c=new _0x3a1deb['URL'](_0x5d21bf['getAttribute']('src'),_0x36c0ba);if('data:'===_0x3d566c['protocol']){const _0x2fec95=_0x3d566c['href']['split'](','),_0x3fcff8=_0x2fec95[0x0]['match'](/:(.*?);/)[0x1],_0x433333=_0x3fcff8['split']('/')[0x1],_0x2f9f8f=_0x3a1deb['atob'](_0x2fec95[_0x2fec95['length']-0x1]);let _0x3d15f6=_0x2f9f8f['length'];const _0x364981=new _0x3a1deb['Uint8Array'](_0x3d15f6);for(;_0x3d15f6--;)_0x364981[_0x3d15f6]=_0x2f9f8f['charCodeAt'](_0x3d15f6);return new _0x3a1deb['File']([_0x364981],'image.'+_0x433333,{'type':_0x3fcff8});}const _0xb02eff=_0x3d566c['href']['split']('/'),_0x49c831=_0xb02eff[_0xb02eff['length']-0x1],_0xd400c8=_0x49c831['split']('.')[0x1];return _0x3a1deb['fetch'](_0x3d566c['href'])['then'](_0x7e1cce=>_0x7e1cce['clone']()['blob']())['then'](_0x162514=>new _0x3a1deb['File']([_0x162514],_0x49c831,{'type':'image/'+_0xd400c8}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4146b1,_0x372b61){const _0x2be772=_0x5a18,_0x22985e=_0x4146b1();while(!![]){try{const _0x420a7a=-parseInt(_0x2be772(0x11b))/0x1*(parseInt(_0x2be772(0x11f))/0x2)+-parseInt(_0x2be772(0x127))/0x3*(-parseInt(_0x2be772(0x119))/0x4)+-parseInt(_0x2be772(0x124))/0x5*(parseInt(_0x2be772(0x12b))/0x6)+parseInt(_0x2be772(0x126))/0x7+-parseInt(_0x2be772(0x129))/0x8*(parseInt(_0x2be772(0x120))/0x9)+-parseInt(_0x2be772(0x12a))/0xa*(-parseInt(_0x2be772(0x122))/0xb)+-parseInt(_0x2be772(0x11c))/0xc*(-parseInt(_0x2be772(0x123))/0xd);if(_0x420a7a===_0x372b61)break;else _0x22985e['push'](_0x22985e['shift']());}catch(_0x527169){_0x22985e['push'](_0x22985e['shift']());}}}(_0x2977,0xb3b9c));import{View as _0x28b6cc}from'ckeditor5/src/ui.js';function _0x5a18(_0x96016d,_0x51bbf6){const _0x297708=_0x2977();return _0x5a18=function(_0x5a1890,_0x28a65d){_0x5a1890=_0x5a1890-0x118;let _0x142535=_0x297708[_0x5a1890];return _0x142535;},_0x5a18(_0x96016d,_0x51bbf6);}export class UploadcareImageEditFormEditingView extends _0x28b6cc{constructor(_0xdd8faf,_0x362f83){const _0x234864=_0x5a18;super(_0xdd8faf);const _0x42dc07=this[_0x234864(0x128)];this[_0x234864(0x118)](_0x234864(0x11d),''),this[_0x234864(0x12c)]({'tag':_0x234864(0x125),'attributes':{..._0x362f83,'class':[_0x234864(0x121),_0x234864(0x11a)],'ctx-name':_0x234864(0x11e),'cdn-url':_0x42dc07['to'](_0x234864(0x11d))}});}}function _0x2977(){const _0x532957=['7716NJYRVu','ck-uploadcare-theme','1zuveJl','107724UduDny','imageSrc','image-edit','2451692hrHSOa','144IYEBAG','uc-light','517451hHmbIm','1651WhujUL','15hbiFRJ','uc-cloud-image-editor','1982596iurxvg','1779unBAEC','bindTemplate','106256akSsjR','70qgNkYW','1443954zpNWzL','setTemplate','set'];_0x2977=function(){return _0x532957;};return _0x2977();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x23d039}from'ckeditor5/src/icons.js';import{ButtonView as _0x30b260,IconView as _0x57050a,View as _0x518090}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x518090{constructor(_0x5a3305){super(_0x5a3305);const t=_0x5a3305['t'];this['set']('errorType',null);const _0x5e0e35=new _0x30b260(_0x5a3305);_0x5e0e35['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5e0e35['withText']=!0x0,_0x5e0e35['class']='ck-button-action',_0x5e0e35['on']('execute',()=>{this['fire']('retry');}),_0x5e0e35['bind']('isVisible')['to'](this,'errorType',_0x1b765a=>'NotFound'!==_0x1b765a);const _0xf8e5b0=new _0x57050a();_0xf8e5b0['content']=_0x23d039,_0xf8e5b0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x455c59=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':[_0xf8e5b0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x455c59['to']('errorType',_0x43a2e7=>t('NotFound'!==_0x43a2e7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5e0e35]},{'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 _0x226304,View as _0xb3f867}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0xb3f867{constructor(_0x20ebb6){super(_0x20ebb6);const t=_0x20ebb6['t'],_0x5b022c=this['bindTemplate'],_0x2ffbcc=new _0x226304();_0x2ffbcc['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':[_0x2ffbcc,{'text':_0x5b022c['to']('imageUploadProgress',_0x42e7c0=>t('Loading\x20image...')+'\x20('+(_0x42e7c0||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 _0x211163=_0x1863;(function(_0x32108c,_0x331fa6){const _0x2c5282=_0x1863,_0x428110=_0x32108c();while(!![]){try{const _0x20d9b2=parseInt(_0x2c5282(0xa5))/0x1+-parseInt(_0x2c5282(0x9a))/0x2*(-parseInt(_0x2c5282(0x78))/0x3)+-parseInt(_0x2c5282(0x9b))/0x4*(-parseInt(_0x2c5282(0xb1))/0x5)+parseInt(_0x2c5282(0xa6))/0x6*(parseInt(_0x2c5282(0xad))/0x7)+-parseInt(_0x2c5282(0x79))/0x8*(parseInt(_0x2c5282(0x99))/0x9)+parseInt(_0x2c5282(0x92))/0xa*(-parseInt(_0x2c5282(0xa8))/0xb)+-parseInt(_0x2c5282(0x84))/0xc*(-parseInt(_0x2c5282(0xaf))/0xd);if(_0x20d9b2===_0x331fa6)break;else _0x428110['push'](_0x428110['shift']());}catch(_0xd9c6e9){_0x428110['push'](_0x428110['shift']());}}}(_0x3b6c,0xae80f));import{View as _0x2b8972}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0xf9efa3}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x46dbbc}from'./uploadcareimageeditformerrorview.js';function _0x1863(_0x1e1d57,_0x428800){const _0x3b6c31=_0x3b6c();return _0x1863=function(_0x18638b,_0x5e51a1){_0x18638b=_0x18638b-0x78;let _0x47657e=_0x3b6c31[_0x18638b];return _0x47657e;},_0x1863(_0x1e1d57,_0x428800);}function _0x3b6c(){const _0x110552=['_waitForImageEditorComponent','1722SGhZMT','_addErrorViewListeners','52fETLIe','uc-cloud-image-editor','1963260DeZLHr','669tCVGyc','264BnnKyA','error','addMany','_focusableView','detail','_editingView','fire','_loadingView','clear','_errorView','querySelector','236724vCMmGk','change:status','target','_addUploadcareImageEditorListeners','addEventListener','status','filter','element','length','ck-uploadcare-form','focus','ready','once','createCollection','10gwUPmh','div','_items','apply','render','cdnUrl','getFocusableElement','142605COqfTJ','5560RiSoWA','4oCukrY','disconnect','ck-reset_all-excluded','add','setTemplate','nodeName','set','_setView','cancel','observe','1217096olVgHy','7332yUIQbH','addedNodes','15087116gexgyM','toLowerCase','uploading','retry'];_0x3b6c=function(){return _0x110552;};return _0x3b6c();}import{UploadcareImageEditFormEditingView as _0x595b34}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5a001e}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5a001e{[_0x211163(0x94)];[_0x211163(0x80)];[_0x211163(0x82)];[_0x211163(0x7e)];[_0x211163(0x7c)];constructor(_0x531736,_0x5bb237,_0x3056e2){const _0x5df76b=_0x211163;super(_0x531736),this[_0x5df76b(0x94)]=this[_0x5df76b(0x91)](),this[_0x5df76b(0x80)]=new _0xf9efa3(_0x531736),this[_0x5df76b(0x82)]=new _0x46dbbc(_0x531736),this[_0x5df76b(0x7e)]=new _0x595b34(_0x531736,_0x3056e2),this[_0x5df76b(0x7c)]=new _0x2b8972(_0x531736),this[_0x5df76b(0x7c)][_0x5df76b(0x9f)](this[_0x5df76b(0x98)]()),this[_0x5df76b(0xa1)](_0x5df76b(0x89),_0x5bb237),this[_0x5df76b(0x9f)]({'tag':_0x5df76b(0x93),'attributes':{'class':['ck',_0x5df76b(0x9d),_0x5df76b(0x8d)],'tabindex':'-1'},'children':this[_0x5df76b(0x94)]}),this[_0x5df76b(0xa2)](),this[_0x5df76b(0x90)](_0x5df76b(0x96),()=>{const _0x6b644a=_0x5df76b;this[_0x6b644a(0xac)](this[_0x6b644a(0x8b)],_0x46cfe1=>{const _0x529bd9=_0x6b644a;this[_0x529bd9(0x87)](_0x46cfe1);});}),this['on'](_0x5df76b(0x85),()=>{const _0x2e661e=_0x5df76b;this[_0x2e661e(0xa2)]();}),this[_0x5df76b(0xae)]();}[_0x211163(0x8e)](){const _0x39db3d=_0x211163;this[_0x39db3d(0x8b)][_0x39db3d(0x8e)]();}[_0x211163(0xa2)](){const _0x571bdf=_0x211163;switch(this[_0x571bdf(0x94)][_0x571bdf(0x81)](),this[_0x571bdf(0x89)]){case _0x571bdf(0xaa):this[_0x571bdf(0x94)][_0x571bdf(0x9e)](this[_0x571bdf(0x80)]);break;case _0x571bdf(0x7a):this[_0x571bdf(0x94)][_0x571bdf(0x9e)](this[_0x571bdf(0x82)]);break;case _0x571bdf(0x8f):this[_0x571bdf(0x94)][_0x571bdf(0x7b)]([this[_0x571bdf(0x7e)],this[_0x571bdf(0x7c)]]);}}[_0x211163(0xac)](_0x47c2b6,_0x4dd7d1){const _0x105311=_0x211163,_0x3b192c=_0x105311(0xb0),_0x25beff=_0x47c2b6[_0x105311(0x83)](_0x3b192c);if(_0x25beff)return _0x4dd7d1(_0x25beff);const _0x65b958=new MutationObserver(_0x1aec6e=>{const _0x1a25eb=_0x105311,_0x2b65b8=_0x1aec6e[_0x1a25eb(0x8a)](_0x1cf803=>_0x1cf803[_0x1a25eb(0x86)]===_0x47c2b6&&_0x1cf803[_0x1a25eb(0xa7)][_0x1a25eb(0x8c)]>0x0&&_0x1cf803[_0x1a25eb(0xa7)][0x0][_0x1a25eb(0xa0)][_0x1a25eb(0xa9)]()===_0x3b192c);_0x2b65b8[_0x1a25eb(0x8c)]&&(_0x65b958[_0x1a25eb(0x9c)](),_0x4dd7d1(_0x2b65b8[0x0][_0x1a25eb(0xa7)][0x0]));});_0x65b958[_0x105311(0xa4)](_0x47c2b6,{'childList':!0x0,'subtree':!0x0});}[_0x211163(0x87)](_0x115f6e){const _0x347b66=_0x211163;_0x115f6e[_0x347b66(0x88)](_0x347b66(0x95),_0x44c488=>{const _0xfa7574=_0x347b66;this[_0xfa7574(0x7f)](_0xfa7574(0x95),{'imageSrc':_0x44c488[_0xfa7574(0x7d)][_0xfa7574(0x97)]});}),_0x115f6e[_0x347b66(0x88)](_0x347b66(0xa3),()=>{const _0x4afc69=_0x347b66;this[_0x4afc69(0x7f)](_0x4afc69(0xa3));});}[_0x211163(0xae)](){const _0x445fe7=_0x211163;this[_0x445fe7(0x82)]['on'](_0x445fe7(0xab),()=>{const _0x4d4b8e=_0x445fe7;this[_0x4d4b8e(0x7f)](_0x4d4b8e(0xab));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x375b6f=_0x56aa;(function(_0x1eacd8,_0x3f37fb){const _0x15aae1=_0x56aa,_0x965168=_0x1eacd8();while(!![]){try{const _0x40674e=parseInt(_0x15aae1(0x1cd))/0x1*(parseInt(_0x15aae1(0x1d4))/0x2)+-parseInt(_0x15aae1(0x1c3))/0x3*(-parseInt(_0x15aae1(0x1d3))/0x4)+parseInt(_0x15aae1(0x1cb))/0x5*(-parseInt(_0x15aae1(0x1db))/0x6)+parseInt(_0x15aae1(0x1c6))/0x7+-parseInt(_0x15aae1(0x1c2))/0x8+parseInt(_0x15aae1(0x1e1))/0x9*(-parseInt(_0x15aae1(0x1dc))/0xa)+parseInt(_0x15aae1(0x1c9))/0xb;if(_0x40674e===_0x3f37fb)break;else _0x965168['push'](_0x965168['shift']());}catch(_0x20bf3c){_0x965168['push'](_0x965168['shift']());}}}(_0x435e,0xd339d));import{Command as _0x12f394}from'ckeditor5/src/core.js';function _0x435e(){const _0x403298=['selection','4jeapeA','requires','plugins','imageBlock','model','unbind','596WazQyG','45920MGABki','element','_isEditable','editor','imageInline','execute','refresh','150zbAlcI','10cpDsKC','getSelectedElement','get','imageEditController','set','14996844XbbXsd','bind','346216DJGSLF','1014oAsroW','isEnabled','config','1452339xeDIag','uploadcare.allowExternalImagesEditing','isActive','39133270aYvMBL','document','266495RDHwlk'];_0x435e=function(){return _0x403298;};return _0x435e();}import{Dialog as _0x3273b2}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x41997e}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x382346}from'../utils/editingutils.js';function _0x56aa(_0x2acfb1,_0x8766a2){const _0x435e53=_0x435e();return _0x56aa=function(_0x56aa3d,_0x3c3d35){_0x56aa3d=_0x56aa3d-0x1c1;let _0x1fc677=_0x435e53[_0x56aa3d];return _0x1fc677;},_0x56aa(_0x2acfb1,_0x8766a2);}export class UploadcareImageEditCommand extends _0x12f394{[_0x375b6f(0x1df)];static get[_0x375b6f(0x1ce)](){return[_0x3273b2];}[_0x375b6f(0x1d6)];constructor(_0x14f35d){const _0x2a8cf5=_0x375b6f;super(_0x14f35d),this[_0x2a8cf5(0x1df)]=void 0x0,this[_0x2a8cf5(0x1d6)]=_0x382346(_0x14f35d[_0x2a8cf5(0x1c5)][_0x2a8cf5(0x1de)](_0x2a8cf5(0x1c7))||[]),this[_0x2a8cf5(0x1e0)]({'isActive':!0x1});}[_0x375b6f(0x1da)](){const _0x2bcba0=_0x375b6f,_0x345d7e=this[_0x2bcba0(0x1d7)][_0x2bcba0(0x1d1)][_0x2bcba0(0x1ca)][_0x2bcba0(0x1cc)][_0x2bcba0(0x1dd)]();this[_0x2bcba0(0x1c4)]=this[_0x2bcba0(0x1d6)](_0x345d7e);}[_0x375b6f(0x1d9)](){const _0x41e919=_0x375b6f;this[_0x41e919(0x1df)]&&(this[_0x41e919(0x1d2)](_0x41e919(0x1c8)),this[_0x41e919(0x1df)]=void 0x0);const _0x40f1a9=this[_0x41e919(0x1d7)][_0x41e919(0x1d1)][_0x41e919(0x1ca)][_0x41e919(0x1cc)][_0x41e919(0x1dd)]();_0x40f1a9&&(_0x40f1a9['is'](_0x41e919(0x1d5),_0x41e919(0x1d0))||_0x40f1a9['is'](_0x41e919(0x1d5),_0x41e919(0x1d8)))&&(this[_0x41e919(0x1df)]=new _0x41997e(this[_0x41e919(0x1d7)],this[_0x41e919(0x1d7)][_0x41e919(0x1cf)][_0x41e919(0x1de)](_0x3273b2),_0x40f1a9),this[_0x41e919(0x1c1)](_0x41e919(0x1c8))['to'](this[_0x41e919(0x1df)],_0x41e919(0x1c8)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4f78(){const _0x7eff30=['1142120iPQBjO','11740yjmGJN','765vuCURY','isOfficialPlugin','ImageUtils','ImageEditing','UploadcareImageEditEditing','3BljCVJ','222116TInGXs','286lnXynB','10zwGqIa','uploadcareImageEdit','3177216FlkwAa','18QlAGhS','requires','102529oQZoPK','pluginName','add','isPremiumPlugin','commands','1497060heREMs','2625362tuBKWq','init','uploadcareImageReplace'];_0x4f78=function(){return _0x7eff30;};return _0x4f78();}const _0x319a5a=_0x3419;(function(_0x59f13a,_0x23fbbb){const _0x3002e1=_0x3419,_0x50ad0d=_0x59f13a();while(!![]){try{const _0x2f45d3=-parseInt(_0x3002e1(0x1b8))/0x1+-parseInt(_0x3002e1(0x1c5))/0x2*(parseInt(_0x3002e1(0x1b7))/0x3)+-parseInt(_0x3002e1(0x1b1))/0x4*(parseInt(_0x3002e1(0x1b2))/0x5)+parseInt(_0x3002e1(0x1bd))/0x6*(parseInt(_0x3002e1(0x1bf))/0x7)+-parseInt(_0x3002e1(0x1b0))/0x8+parseInt(_0x3002e1(0x1bc))/0x9*(-parseInt(_0x3002e1(0x1ba))/0xa)+-parseInt(_0x3002e1(0x1b9))/0xb*(-parseInt(_0x3002e1(0x1c4))/0xc);if(_0x2f45d3===_0x23fbbb)break;else _0x50ad0d['push'](_0x50ad0d['shift']());}catch(_0x2ee01d){_0x50ad0d['push'](_0x50ad0d['shift']());}}}(_0x4f78,0xc53fa));import{Plugin as _0x179301}from'ckeditor5/src/core.js';function _0x3419(_0x439fd9,_0x1573da){const _0x4f7844=_0x4f78();return _0x3419=function(_0x341977,_0x36e639){_0x341977=_0x341977-0x1b0;let _0x20e81d=_0x4f7844[_0x341977];return _0x20e81d;},_0x3419(_0x439fd9,_0x1573da);}import{Notification as _0x42ab7d}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x52ae07}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x4eb0fd}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x595e1b}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x179301{static get[_0x319a5a(0x1c0)](){const _0x5ea3b5=_0x319a5a;return _0x5ea3b5(0x1b6);}static get[_0x319a5a(0x1be)](){const _0x10e3fa=_0x319a5a;return[_0x595e1b,_0x42ab7d,_0x10e3fa(0x1b4),_0x10e3fa(0x1b5)];}static get[_0x319a5a(0x1b3)](){return!0x0;}static get[_0x319a5a(0x1c2)](){return!0x0;}[_0x319a5a(0x1c6)](){const _0x9c78ed=_0x319a5a,{editor:_0x2e63dd}=this;_0x2e63dd[_0x9c78ed(0x1c3)][_0x9c78ed(0x1c1)](_0x9c78ed(0x1bb),new _0x52ae07(_0x2e63dd)),_0x2e63dd[_0x9c78ed(0x1c3)][_0x9c78ed(0x1c1)](_0x9c78ed(0x1c7),new _0x4eb0fd(_0x2e63dd));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5d4a6d}from'ckeditor5/src/core.js';import{ButtonView as _0x34b8ca}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x398b9d}from'ckeditor5/src/icons.js';import{createElement as _0x58c9e0}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 _0x5d4a6d{['_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 _0x1e8259=this['editor'];_0x1e8259['ui']['componentFactory']['add']('uploadcareImageEdit',_0x27cc79=>{const _0x5b279b=_0x1e8259['commands']['get']('uploadcareImageEdit'),_0x53d46a=new _0x34b8ca(_0x27cc79),t=_0x27cc79['t'];return _0x53d46a['set']({'icon':_0x398b9d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x53d46a['bind']('isEnabled')['to'](_0x5b279b),_0x53d46a['bind']('isOn')['to'](_0x5b279b,'isActive'),this['listenTo'](_0x53d46a,'execute',()=>{_0x1e8259['execute']('uploadcareImageEdit'),_0x1e8259['editing']['view']['focus']();}),_0x53d46a;}),this['_initConfig']();}['_initConfig'](){const _0x5543b9=_0x58c9e0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5543b9),this['listenTo'](this['editor'],'destroy',()=>{_0x5543b9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x36de(){const _0x14e38a=['298319TYlEeb','removeAttribute','33875040WuAIkN','79911sHvMGA','1061305DaJRbB','isEnabled','2502730FEWMVc','getSelectedElement','editor','change','74TIobBH','imageInline','srcset','document','refresh','selection','element','sizes','62547NADKkm','setAttributes','model','execute','33VfOcAU','20qkdNEY','1960884FAQVww','16JoHZBr','6UfhOIl','imageBlock'];_0x36de=function(){return _0x14e38a;};return _0x36de();}const _0x2bbabf=_0x5eac;(function(_0x57793d,_0x1c0bb2){const _0x58e787=_0x5eac,_0x431963=_0x57793d();while(!![]){try{const _0xa67b7e=parseInt(_0x58e787(0x193))/0x1+parseInt(_0x58e787(0x18b))/0x2*(-parseInt(_0x58e787(0x1a0))/0x3)+-parseInt(_0x58e787(0x198))/0x4*(parseInt(_0x58e787(0x1a1))/0x5)+-parseInt(_0x58e787(0x19b))/0x6*(-parseInt(_0x58e787(0x19d))/0x7)+-parseInt(_0x58e787(0x19a))/0x8*(-parseInt(_0x58e787(0x199))/0x9)+-parseInt(_0x58e787(0x187))/0xa*(parseInt(_0x58e787(0x197))/0xb)+parseInt(_0x58e787(0x19f))/0xc;if(_0xa67b7e===_0x1c0bb2)break;else _0x431963['push'](_0x431963['shift']());}catch(_0x56d832){_0x431963['push'](_0x431963['shift']());}}}(_0x36de,0x8a37f));function _0x5eac(_0x4e496e,_0x5128c1){const _0x36de14=_0x36de();return _0x5eac=function(_0x5eacb1,_0x1c2019){_0x5eacb1=_0x5eacb1-0x186;let _0x3d4f6c=_0x36de14[_0x5eacb1];return _0x3d4f6c;},_0x5eac(_0x4e496e,_0x5128c1);}import{Command as _0x473d95}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x473d95{[_0x2bbabf(0x18f)](){const _0x41dc62=_0x2bbabf,_0x48b484=this[_0x41dc62(0x189)][_0x41dc62(0x195)][_0x41dc62(0x18e)][_0x41dc62(0x190)][_0x41dc62(0x188)]();this[_0x41dc62(0x186)]=Boolean(_0x48b484&&(_0x48b484['is'](_0x41dc62(0x191),_0x41dc62(0x19c))||_0x48b484['is'](_0x41dc62(0x191),_0x41dc62(0x18c))));}[_0x2bbabf(0x196)](_0x512a75){const _0x58f431=_0x2bbabf,_0x5c0cfe=this[_0x58f431(0x189)][_0x58f431(0x195)][_0x58f431(0x18e)][_0x58f431(0x190)][_0x58f431(0x188)]();this[_0x58f431(0x189)][_0x58f431(0x195)][_0x58f431(0x18a)](_0x39dfa6=>{const _0x1b2840=_0x58f431;_0x39dfa6[_0x1b2840(0x194)](_0x512a75,_0x5c0cfe),_0x39dfa6[_0x1b2840(0x19e)](_0x1b2840(0x18d),_0x5c0cfe),_0x39dfa6[_0x1b2840(0x19e)](_0x1b2840(0x192),_0x5c0cfe);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x47747d=_0x42ce;(function(_0x196588,_0x178fde){var _0x1fb613=_0x42ce,_0x41d4d4=_0x196588();while(!![]){try{var _0x507063=-parseInt(_0x1fb613(0x192))/0x1*(parseInt(_0x1fb613(0x198))/0x2)+parseInt(_0x1fb613(0x195))/0x3*(parseInt(_0x1fb613(0x194))/0x4)+-parseInt(_0x1fb613(0x191))/0x5+parseInt(_0x1fb613(0x19b))/0x6*(parseInt(_0x1fb613(0x197))/0x7)+parseInt(_0x1fb613(0x19e))/0x8*(parseInt(_0x1fb613(0x19d))/0x9)+-parseInt(_0x1fb613(0x18f))/0xa*(-parseInt(_0x1fb613(0x199))/0xb)+parseInt(_0x1fb613(0x19c))/0xc*(-parseInt(_0x1fb613(0x196))/0xd);if(_0x507063===_0x178fde)break;else _0x41d4d4['push'](_0x41d4d4['shift']());}catch(_0x5455a0){_0x41d4d4['push'](_0x41d4d4['shift']());}}}(_0x5ed3,0xcd7d1));function _0x5ed3(){var _0x19cc02=['5183reAUZK','isOfficialPlugin','4DvyclK','801714nLDCMv','73606UjpPta','6600307EkdTFF','8JdTdjT','2122318FIhsgn','UploadcareImageEdit','6ZYOVCJ','4704YlUTYu','8109rjhZnQ','14664wLaZwU','isPremiumPlugin','requires','30IWyfBw','pluginName','1792845niNBdt'];_0x5ed3=function(){return _0x19cc02;};return _0x5ed3();}import{Plugin as _0x5c5504}from'ckeditor5/src/core.js';function _0x42ce(_0x46b4ce,_0xb77118){var _0x5ed369=_0x5ed3();return _0x42ce=function(_0x42ce7e,_0xa1a77e){_0x42ce7e=_0x42ce7e-0x18d;var _0x311601=_0x5ed369[_0x42ce7e];return _0x311601;},_0x42ce(_0x46b4ce,_0xb77118);}import{UploadcareImageEditEditing as _0x1953cb}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x1fece4}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x5c5504{static get[_0x47747d(0x190)](){var _0xcd162d=_0x47747d;return _0xcd162d(0x19a);}static get[_0x47747d(0x18e)](){return[_0x1953cb,_0x1fece4];}static get[_0x47747d(0x193)](){return!0x0;}static get[_0x47747d(0x18d)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ae335=_0x397e;(function(_0xc780ab,_0x144455){const _0x2ded55=_0x397e,_0x25a435=_0xc780ab();while(!![]){try{const _0x3459f5=-parseInt(_0x2ded55(0x11c))/0x1+-parseInt(_0x2ded55(0x122))/0x2+-parseInt(_0x2ded55(0x126))/0x3+-parseInt(_0x2ded55(0x11e))/0x4*(-parseInt(_0x2ded55(0x11b))/0x5)+parseInt(_0x2ded55(0x106))/0x6*(-parseInt(_0x2ded55(0x139))/0x7)+-parseInt(_0x2ded55(0x113))/0x8+parseInt(_0x2ded55(0x109))/0x9;if(_0x3459f5===_0x144455)break;else _0x25a435['push'](_0x25a435['shift']());}catch(_0x185e6a){_0x25a435['push'](_0x25a435['shift']());}}}(_0x2acb,0xc6def));function _0x2acb(){const _0xa8e5c9=['expired','Dropbox','commands','pluginName','featureNotAllowed','uploadcareLicenseKeyValid','isPremiumPlugin','Insert','OneDrive','7oNXmOf','URL','uploadcareLicenseKeyExpired','Uploadcare','uploadcare','type','config','locale','map','uploadcareLicenseKeyNotAllowed','GPhotos','execute','forEach','tooltip','_createToolbarButton','editor','usageLimit','assetManager','licenseKey','uploadcareLicenseKeyEvaluationLimit','url','push','init','_showLicenseError','uploadcareLicenseKeyInvalid','Local','label','shortText','invalid','5114748uvhnve','bind','_licenseKeyCheckInterval','53069166wgBRMh','isEnabled','reduce','trialLimit','_createMenuBarButtons','text','afterInit','ImageInsertUI','has','uploadcare.uploader.sourceList','11606360YxFXqv','GDrive','isImageSelected','uploadcareLicenseKeyUsageLimit','isOfficialPlugin','withText','domainLimit','UploadcareUI','5keRHcU','1517426wsXZvJ','upload','238460pOhBRh','_createDropdownButtons','_getIntegrationKey','evaluationLimit','898850lzjTlY','entries','Replace','_normalizeConfigSourceList','2614530yPSwVq','get','registerIntegration','uploadcareLicenseKeyTrialLimit','destroy','uploadcareLicenseKeyDomainLimit','Facebook','icon','_createButton','plugins'];_0x2acb=function(){return _0xa8e5c9;};return _0x2acb();}import{Plugin as _0x599a3b}from'ckeditor5/src/core.js';import{IconDropbox as _0x4152cf,IconFacebook as _0x4bde76,IconGoogleDrive as _0x48b854,IconGooglePhotos as _0xc4a2a6,IconUploadcareImageUpload as _0x4dcdc6,IconUploadcareLink as _0x465cb5,IconOneDrive as _0x1a9d4d}from'ckeditor5/src/icons.js';import{ButtonView as _0x427979,MenuBarMenuListItemButtonView as _0x5902c0}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x51dd86}from'./uploadcareconfig.js';import{getTranslation as _0x1520c0}from'./utils/common-translations.js';function _0x397e(_0x235025,_0x2c1112){const _0x2acb88=_0x2acb();return _0x397e=function(_0x397ebd,_0x331931){_0x397ebd=_0x397ebd-0xf3;let _0xe30140=_0x2acb88[_0x397ebd];return _0xe30140;},_0x397e(_0x235025,_0x2c1112);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x599a3b{[_0x3ae335(0xfb)];[_0x3ae335(0x108)];static get[_0x3ae335(0x133)](){const _0xdce446=_0x3ae335;return _0xdce446(0x11a);}static get[_0x3ae335(0x117)](){return!0x0;}static get[_0x3ae335(0x136)](){return!0x0;}[_0x3ae335(0xff)](){const _0x2959d6=_0x3ae335;this[_0x2959d6(0xfb)]=this[_0x2959d6(0xf8)][_0x2959d6(0x13f)][_0x2959d6(0x127)](_0x2959d6(0xfb));const _0x54b044=this[_0x2959d6(0xf8)];this[_0x2959d6(0x108)]=setInterval(()=>{const _0x2032fb=_0x2959d6;let _0x334061;for(const _0x2119b7 in _0x54b044){const _0xcaadab=_0x2119b7,_0xcf74e3=_0x54b044[_0xcaadab];if(_0x2032fb(0x135)==_0xcf74e3||_0x2032fb(0x101)==_0xcf74e3||_0x2032fb(0x13b)==_0xcf74e3||_0x2032fb(0x12b)==_0xcf74e3||_0x2032fb(0x142)==_0xcf74e3||_0x2032fb(0xfc)==_0xcf74e3||_0x2032fb(0x129)==_0xcf74e3||_0x2032fb(0x116)==_0xcf74e3){delete _0x54b044[_0xcaadab],_0x334061=_0xcf74e3,clearInterval(this[_0x2032fb(0x108)]),this[_0x2032fb(0x108)]=void 0x0;break;}}_0x2032fb(0x101)==_0x334061&&_0x54b044[_0x2032fb(0x100)](_0x2032fb(0x105)),_0x2032fb(0x13b)==_0x334061&&_0x54b044[_0x2032fb(0x100)](_0x2032fb(0x130)),_0x2032fb(0x12b)==_0x334061&&_0x54b044[_0x2032fb(0x100)](_0x2032fb(0x119)),_0x2032fb(0x142)==_0x334061&&_0x54b044[_0x2032fb(0x100)](_0x2032fb(0x134),_0x2032fb(0x13c)),_0x2032fb(0xfc)==_0x334061&&_0x54b044[_0x2032fb(0x100)](_0x2032fb(0x121)),_0x2032fb(0x129)==_0x334061&&_0x54b044[_0x2032fb(0x100)](_0x2032fb(0x10c)),_0x2032fb(0x116)==_0x334061&&_0x54b044[_0x2032fb(0x100)](_0x2032fb(0xf9));},0x3e8);}[_0x3ae335(0x10f)](){const _0x54c740=_0x3ae335,{editor:_0x53dcd9}=this,_0x269dc4=_0x53dcd9[_0x54c740(0x132)][_0x54c740(0x127)](_0x54c740(0x13d));if(!_0x269dc4)return;const _0x44a52c=this[_0x54c740(0x125)](_0x53dcd9[_0x54c740(0x13f)][_0x54c740(0x127)](_0x54c740(0x112)))[_0x54c740(0x10b)]((_0x454aad,_0x5a29f4)=>{const _0x291aca=_0x54c740,_0x6b144d=this[_0x291aca(0x120)](_0x5a29f4[_0x291aca(0x13e)]);return _0x454aad[_0x6b144d]||(_0x454aad[_0x6b144d]=[]),_0x454aad[_0x6b144d][_0x291aca(0xfe)](_0x5a29f4),_0x454aad;},{});_0x53dcd9[_0x54c740(0x12f)][_0x54c740(0x111)](_0x54c740(0x110))&&_0x53dcd9[_0x54c740(0x132)][_0x54c740(0x127)](_0x54c740(0x13d))&&Object[_0x54c740(0x123)](_0x44a52c)[_0x54c740(0xf5)](([_0x357801,_0x5d6903])=>{const _0x284215=_0x54c740;_0x53dcd9[_0x284215(0x12f)][_0x284215(0x127)](_0x284215(0x110))[_0x284215(0x128)]({'name':_0x357801,'observable':()=>_0x269dc4,'buttonViewCreator':()=>this[_0x284215(0xf7)](_0x5d6903),'formViewCreator':()=>this[_0x284215(0x11f)](_0x5d6903),'menuBarButtonViewCreator':()=>this[_0x284215(0x10d)](_0x5d6903),'override':_0x284215(0xfa)!==_0x357801});});}[_0x3ae335(0x12a)](){const _0x40fc31=_0x3ae335;super[_0x40fc31(0x12a)](),this[_0x40fc31(0x108)]&&clearInterval(this[_0x40fc31(0x108)]);}[_0x3ae335(0x125)](_0x583c00){const _0x15b289=_0x3ae335,{locale:_0x5bba94}=this[_0x15b289(0xf8)];return _0x583c00[_0x15b289(0x141)](_0x412b59=>{const _0x1ded97=_0x15b289,_0x3c104d=_0x1520c0(_0x5bba94,_0x412b59,_0x1ded97(0x137));switch(_0x412b59){case _0x51dd86[_0x1ded97(0x102)]:return{'icon':_0x4dcdc6,'type':_0x51dd86[_0x1ded97(0x102)],..._0x3c104d};case _0x51dd86[_0x1ded97(0x13a)]:return{'icon':_0x465cb5,'type':_0x51dd86[_0x1ded97(0x13a)],..._0x3c104d};case _0x51dd86[_0x1ded97(0x131)]:return{'icon':_0x4152cf,'type':_0x51dd86[_0x1ded97(0x131)],..._0x3c104d};case _0x51dd86[_0x1ded97(0x12c)]:return{'icon':_0x4bde76,'type':_0x51dd86[_0x1ded97(0x12c)],..._0x3c104d};case _0x51dd86[_0x1ded97(0x114)]:return{'icon':_0x48b854,'type':_0x51dd86[_0x1ded97(0x114)],..._0x3c104d};case _0x51dd86[_0x1ded97(0xf3)]:return{'icon':_0xc4a2a6,'type':_0x51dd86[_0x1ded97(0xf3)],..._0x3c104d};case _0x51dd86[_0x1ded97(0x138)]:return{'icon':_0x1a9d4d,'type':_0x51dd86[_0x1ded97(0x138)],..._0x3c104d};}});}[_0x3ae335(0x120)](_0x497f28){const _0x32dd75=_0x3ae335;switch(_0x497f28){case _0x51dd86[_0x32dd75(0x102)]:return _0x32dd75(0x11d);case _0x51dd86[_0x32dd75(0x13a)]:return _0x32dd75(0xfd);default:return _0x32dd75(0xfa);}}[_0x3ae335(0x12e)](_0x242fb4,_0x157638){const _0x389320=_0x3ae335,_0x15c2c1=this[_0x389320(0xf8)],_0x3327c8=new _0x242fb4(_0x15c2c1[_0x389320(0x140)]),_0x15248a=_0x15c2c1[_0x389320(0x132)][_0x389320(0x127)](_0x389320(0x13d));return _0x3327c8[_0x389320(0x107)](_0x389320(0x10a))['to'](_0x15248a),_0x3327c8['on'](_0x389320(0xf4),()=>{const _0x936ca2=_0x389320;_0x15248a[_0x936ca2(0xf4)](_0x157638);}),_0x3327c8;}[_0x3ae335(0xf7)](_0x4e35ce){const _0x1b2fd1=_0x3ae335,{locale:_0x25bb47}=this[_0x1b2fd1(0xf8)],_0x3cc7cb=this[_0x1b2fd1(0xf8)][_0x1b2fd1(0x12f)][_0x1b2fd1(0x127)](_0x1b2fd1(0x110)),_0x45a249=_0x4e35ce[0x0],_0x398321=this[_0x1b2fd1(0x12e)](_0x427979,_0x45a249[_0x1b2fd1(0x13e)]);return _0x398321[_0x1b2fd1(0x12d)]=_0x45a249[_0x1b2fd1(0x12d)],_0x398321[_0x1b2fd1(0x107)](_0x1b2fd1(0x103))['to'](_0x3cc7cb,_0x1b2fd1(0x115),_0x204aee=>_0x1520c0(_0x25bb47,_0x45a249[_0x1b2fd1(0x13e)],_0x204aee?_0x1b2fd1(0x124):_0x1b2fd1(0x137))[_0x1b2fd1(0x10e)]),_0x398321[_0x1b2fd1(0xf6)]=!0x0,_0x398321;}[_0x3ae335(0x11f)](_0x461c49){const _0x42609b=_0x3ae335,{locale:_0x45f541}=this[_0x42609b(0xf8)],_0x30236d=this[_0x42609b(0xf8)][_0x42609b(0x12f)][_0x42609b(0x127)](_0x42609b(0x110));return _0x461c49[_0x42609b(0x141)](_0x5005b0=>{const _0x3fea63=_0x42609b,_0x14aadc=this[_0x3fea63(0x12e)](_0x427979,_0x5005b0[_0x3fea63(0x13e)]);return _0x14aadc[_0x3fea63(0x118)]=!0x0,_0x14aadc[_0x3fea63(0x12d)]=_0x5005b0[_0x3fea63(0x12d)],_0x14aadc[_0x3fea63(0x107)](_0x3fea63(0x103))['to'](_0x30236d,_0x3fea63(0x115),_0x48d526=>_0x1520c0(_0x45f541,_0x5005b0[_0x3fea63(0x13e)],_0x48d526?_0x3fea63(0x124):_0x3fea63(0x137))[_0x3fea63(0x10e)]),_0x14aadc;});}[_0x3ae335(0x10d)](_0x958248){const _0x5127c5=_0x3ae335;return _0x958248[_0x5127c5(0x141)](_0x198fa9=>{const _0x506be2=_0x5127c5,_0x5ec4bc=this[_0x506be2(0x12e)](_0x5902c0,_0x198fa9[_0x506be2(0x13e)]);return _0x5ec4bc[_0x506be2(0x12d)]=_0x198fa9[_0x506be2(0x12d)],_0x5ec4bc[_0x506be2(0x103)]=_0x198fa9[_0x506be2(0x104)],_0x5ec4bc;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3a12e4}from'ckeditor5/src/core.js';import{FileRepository as _0x3dd152}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x508652}from'./uploadcareediting.js';import{UploadUtils as _0x5c0340}from'./utils/uploadutils.js';import{getImageUrls as _0x2f393e}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3a12e4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3dd152,_0x508652];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1a8a92=this['editor'];if(!!!_0x1a8a92['config']['get']('uploadcare'))return;_0x1a8a92['plugins']['get'](_0x3dd152)['createUploadAdapter']=_0x5f284c=>new k(_0x5f284c,_0x1a8a92),_0x1a8a92['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1c99d0,{imageElement:_0x56e6ed,data:_0x13172d})=>{_0x1a8a92['model']['change'](_0x38dc77=>{_0x38dc77['setAttribute']('uploadcareImageId',_0x13172d['uploadcareImageId'],_0x56e6ed);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x486e13,_0xa859b1){this['loader']=_0x486e13,this['editor']=_0xa859b1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x37d731=await this['loader']['file'];return _0x5c0340['upload']({'file':_0x37d731,'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':_0x35de96=>{_0x35de96&&_0x35de96['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x35de96['value']);}})['then'](async _0xe6a64d=>{const {imageFallbackUrl:_0x29e119,imageSources:_0x2dc0d3}=_0x2f393e(_0xe6a64d['cdnUrl'],_0xe6a64d['imageInfo']['width']);return{'uploadcareImageId':_0xe6a64d['uuid'],'default':_0x29e119,'sources':_0x2dc0d3};})['catch'](()=>{const _0x2ebcda=t('Cannot\x20upload\x20file:')+('\x20'+_0x37d731['name']+'.');return Promise['reject'](_0x2ebcda);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5cb199}from'../uploadcareconfig.js';export function getTranslation(_0x487265,_0x4d1d97,_0x1c954f){const t=_0x487265['t'],_0x19e2e3=_0x487265['t'];switch(_0x4d1d97){case _0x5cb199['Local']:return{'text':_0x19e2e3('Insert'===_0x1c954f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x19e2e3('From\x20computer')};case _0x5cb199['URL']:return{'text':'Insert'===_0x1c954f?_0x19e2e3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x19e2e3('Via\x20URL')};case _0x5cb199['Dropbox']:return{'text':t('Insert'===_0x1c954f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5cb199['Facebook']:return{'text':t('Insert'===_0x1c954f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5cb199['GDrive']:return{'text':t('Insert'===_0x1c954f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5cb199['GPhotos']:return{'text':t('Insert'===_0x1c954f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5cb199['OneDrive']:return{'text':t('Insert'===_0x1c954f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4d1d97;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2606(_0x48a873,_0x6830a6){var _0x1acde4=_0x1acd();return _0x2606=function(_0x260665,_0x2519be){_0x260665=_0x260665-0x13f;var _0x699757=_0x1acde4[_0x260665];return _0x699757;},_0x2606(_0x48a873,_0x6830a6);}var _0x581512=_0x2606;(function(_0x42894b,_0x4a2ca6){var _0x2e972e=_0x2606,_0x45eba2=_0x42894b();while(!![]){try{var _0x2899c8=parseInt(_0x2e972e(0x146))/0x1+-parseInt(_0x2e972e(0x14c))/0x2+parseInt(_0x2e972e(0x14a))/0x3*(-parseInt(_0x2e972e(0x144))/0x4)+-parseInt(_0x2e972e(0x140))/0x5*(-parseInt(_0x2e972e(0x14e))/0x6)+-parseInt(_0x2e972e(0x14d))/0x7+parseInt(_0x2e972e(0x14f))/0x8+parseInt(_0x2e972e(0x150))/0x9;if(_0x2899c8===_0x4a2ca6)break;else _0x45eba2['push'](_0x45eba2['shift']());}catch(_0x4cfb71){_0x45eba2['push'](_0x45eba2['shift']());}}}(_0x1acd,0xdcf5d));import{FocusTracker as _0x3d6736}from'ckeditor5/src/utils.js';function _0x1acd(){var _0x2f1907=['focusTracker','128622zaShJL','forwardCycle','getFocusableElement','createCollection','768903eDHVvi','focusCycler','2464722lYNXyw','12198662mFtWpy','810RlmjZZ','11753944SwrPPh','32102064GGxXOD','true','9375NrogRi','fire','div','bindTemplate','24XDIXcv'];_0x1acd=function(){return _0x2f1907;};return _0x1acd();}import{View as _0x2f9310,FocusCycler as _0x4e8d9c}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2f9310{[_0x581512(0x145)];[_0x581512(0x14b)];constructor(_0x53d456){var _0x1238bf=_0x581512;super(_0x53d456),this[_0x1238bf(0x145)]=new _0x3d6736(),this[_0x1238bf(0x14b)]=new _0x4e8d9c({'focusables':this[_0x1238bf(0x149)](),'focusTracker':this[_0x1238bf(0x145)]});}[_0x581512(0x148)](){var _0x20a0d5=_0x581512;return{'tag':_0x20a0d5(0x142),'attributes':{'aria-hidden':_0x20a0d5(0x13f),'tabindex':'0'},'on':{'focus':this[_0x20a0d5(0x143)]['to'](()=>{var _0x4c6196=_0x20a0d5;this[_0x4c6196(0x14b)][_0x4c6196(0x141)](_0x4c6196(0x147));})}};}}
|