@ckeditor/ckeditor5-uploadcare 47.3.0-alpha.0 → 47.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2cadc5=_0x22b5;(function(_0x4ea3eb,_0x391e3c){const _0x5be28e=_0x22b5,_0x5c33ea=_0x4ea3eb();while(!![]){try{const _0x3f30c9=parseInt(_0x5be28e(0x13c))/0x1+parseInt(_0x5be28e(0x11a))/0x2+parseInt(_0x5be28e(0x13b))/0x3+parseInt(_0x5be28e(0x144))/0x4+parseInt(_0x5be28e(0x12d))/0x5+-parseInt(_0x5be28e(0x13f))/0x6*(parseInt(_0x5be28e(0x125))/0x7)+-parseInt(_0x5be28e(0x164))/0x8*(parseInt(_0x5be28e(0x135))/0x9);if(_0x3f30c9===_0x391e3c)break;else _0x5c33ea['push'](_0x5c33ea['shift']());}catch(_0x319a67){_0x5c33ea['push'](_0x5c33ea['shift']());}}}(_0x71ae,0x24396));import{Plugin as _0xe6a033}from'ckeditor5/src/core.js';import{Dialog as _0x5e8726}from'ckeditor5/src/ui.js';import{createElement as _0x5dcad5,global as _0x49267a,uid as _0x4cd041}from'ckeditor5/src/utils.js';function _0x71ae(){const _0x414ddd=['commands','uploader-','contentLanguage','pluginName','_initCtx','replaceImageSource','locale','execute','154819lfxQOy','listenTo','uploadcareImageReplace','render','insertImage','getSelectedElement','PictureEditing','_initSchema','324550LrhGEG','once','appendChild','uc-upload-ctx-provider','_configElement','document','uc-config','cleanupImage','152190kREyND','#uc-icon-arrow-down','closeMax','map','input[uploadcare-file-input]','uploadcare','693705asszrD','124783xEUfQL','removeAttribute','_initConfig','18HHvRPV','conversion','add','\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','imageBlock','1021952VhLWqB','editor','iconHrefResolver','fromCharCode','config','downcast','upcast','href','selection','isRegistered','attributeToAttribute','uploadcareImageId','getAttribute','elementToAttribute','_initConversion','imageInline','ctxElement','uploadcare.pubkey','requires','UploadcareEditing','afterInit','for','extend','isPremiumPlugin','remove','destroy','true','model','configElement','querySelector','ucContextId','editing','296CSEQok','schema','isOfficialPlugin','join','init','_initImageProcessingIndicator','view','get','uploadcare.uploader','body','327958xhlPPn','_ctxElement','data-uc-image-id'];_0x71ae=function(){return _0x414ddd;};return _0x71ae();}import{UploadcareCommand as _0x156e03}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x24224e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4e5b6d}from'./utils/editingutils.js';function _0x22b5(_0x2a35f4,_0x4db4f9){const _0x71aefc=_0x71ae();return _0x22b5=function(_0x22b5ec,_0x424135){_0x22b5ec=_0x22b5ec-0x11a;let _0x43b5ee=_0x71aefc[_0x22b5ec];return _0x43b5ee;},_0x22b5(_0x2a35f4,_0x4db4f9);}export class UploadcareEditing extends _0xe6a033{[_0x2cadc5(0x131)]=null;[_0x2cadc5(0x11b)]=null;static get[_0x2cadc5(0x120)](){const _0x2a7894=_0x2cadc5;return _0x2a7894(0x157);}static get[_0x2cadc5(0x156)](){const _0x146962=_0x2cadc5;return[_0x146962(0x12b),_0x24224e,_0x5e8726];}static get[_0x2cadc5(0x166)](){return!0x0;}static get[_0x2cadc5(0x15b)](){return!0x0;}[_0x2cadc5(0x162)];get[_0x2cadc5(0x160)](){const _0x194486=_0x2cadc5;return this[_0x194486(0x131)];}get[_0x2cadc5(0x154)](){const _0x4701c4=_0x2cadc5;return this[_0x4701c4(0x11b)];}constructor(_0x5111fd){const _0x3ead4d=_0x2cadc5;super(_0x5111fd),this[_0x3ead4d(0x162)]=_0x4cd041();}[_0x2cadc5(0x168)](){const _0x4042b1=_0x2cadc5,_0xd69250=this[_0x4042b1(0x145)];_0xd69250[_0x4042b1(0x11d)][_0x4042b1(0x141)](_0x4042b1(0x13a),new _0x156e03(_0xd69250));}[_0x2cadc5(0x158)](){const _0x12d3f8=_0x2cadc5;this[_0x12d3f8(0x12c)](),this[_0x12d3f8(0x152)](),this[_0x12d3f8(0x13e)](),this[_0x12d3f8(0x121)](),this[_0x12d3f8(0x169)](),this[_0x12d3f8(0x126)](this[_0x12d3f8(0x145)],_0x12d3f8(0x15d),()=>{const _0x5783e2=_0x12d3f8;this[_0x5783e2(0x131)]&&(this[_0x5783e2(0x131)][_0x5783e2(0x15c)](),this[_0x5783e2(0x131)]=null),this[_0x5783e2(0x11b)]&&(this[_0x5783e2(0x11b)][_0x5783e2(0x15c)](),this[_0x5783e2(0x11b)]=null);const _0x1e8290=_0x49267a[_0x5783e2(0x132)][_0x5783e2(0x161)](_0x5783e2(0x139));_0x1e8290&&_0x1e8290[_0x5783e2(0x15c)]();}),async function(_0x2a297f){const _0x3c1f04=_0x4c59cc([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1d840d=0x535f8c3a,_0x5b3f27=0x5358f60a^_0x1d840d,_0x125345=window[_0x4c59cc([0x44,0x61,0x74,0x65])][_0x4c59cc([0x6e,0x6f,0x77])](),_0x5be231=_0x2a297f[_0x4c59cc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x457d97=new window[(_0x4c59cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b4f78=>{_0x5be231[_0x4c59cc([0x6f,0x6e,0x63,0x65])](_0x4c59cc([0x72,0x65,0x61,0x64,0x79]),_0x4b4f78);}),_0x1e69ec={[_0x4c59cc([0x6b,0x74,0x79])]:_0x4c59cc([0x45,0x43]),[_0x4c59cc([0x75,0x73,0x65])]:_0x4c59cc([0x73,0x69,0x67]),[_0x4c59cc([0x63,0x72,0x76])]:_0x4c59cc([0x50,0x2d,0x32,0x35,0x36]),[_0x4c59cc([0x78])]:_0x4c59cc([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]),[_0x4c59cc([0x79])]:_0x4c59cc([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]),[_0x4c59cc([0x61,0x6c,0x67])]:_0x4c59cc([0x45,0x53,0x32,0x35,0x36])},_0x3b5ca0=_0x5be231[_0x4c59cc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c59cc([0x67,0x65,0x74])](_0x4c59cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27f00a(){let _0x3e7dbe,_0x16f879=null,_0xd1f20=null;try{if(_0x3b5ca0==_0x4c59cc([0x47,0x50,0x4c]))return _0x4c59cc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e7dbe=_0x54856c(),!_0x3e7dbe)return _0x4c59cc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e7dbe[_0x4c59cc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd1f20=_0x2ade7d(_0x3e7dbe[_0x4c59cc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e7dbe[_0x4c59cc([0x6a,0x74,0x69])])),await _0x52eb29()?_0x5b80eb()?_0x4da405()?_0x4c59cc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19b23d()?(_0x3e7dbe[_0x4c59cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c59cc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16f879=_0x3c286a(_0x4c59cc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e7dbe[_0x4c59cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c59cc([0x74,0x72,0x69,0x61,0x6c])&&(_0x16f879=_0x3c286a(_0x4c59cc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22a433()):_0x4c59cc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c59cc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c59cc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c59cc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4da405(){const _0x5a369f=[_0x4c59cc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c59cc([0x74,0x72,0x69,0x61,0x6c])][_0x4c59cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e7dbe[_0x4c59cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x125345/0x3e8:0xe10*_0x5b3f27;return _0x3e7dbe[_0x4c59cc([0x65,0x78,0x70])]<_0x5a369f;}function _0x5b80eb(){const _0x3adf32=_0x3e7dbe[_0x4c59cc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3adf32&&(!!_0x3adf32[_0x4c59cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c59cc([0x2a]))||!!_0x3adf32[_0x4c59cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c59cc([0x55,0x50,0x4c,0x43])));}function _0x19b23d(){const _0x2e30b6=_0x22b5,_0xfb25f3=_0x3e7dbe[_0x4c59cc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfb25f3||0x0==_0xfb25f3[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5349fb}=new URL(window[_0x4c59cc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2e30b6(0x14b)]);if(_0xfb25f3[_0x4c59cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5349fb))return!0x0;const _0x49bd04=_0x5349fb[_0x4c59cc([0x73,0x70,0x6c,0x69,0x74])](_0x4c59cc([0x2e]));return _0xfb25f3[_0x4c59cc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50babf=>_0x50babf[_0x4c59cc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c59cc([0x2a])))[_0x4c59cc([0x6d,0x61,0x70])](_0x5f213f=>_0x5f213f[_0x4c59cc([0x73,0x70,0x6c,0x69,0x74])](_0x4c59cc([0x2e])))[_0x4c59cc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b72b5=>_0x1b72b5[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49bd04[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c59cc([0x6d,0x61,0x70])](_0x1fc5c2=>Array(_0x49bd04[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1fc5c2[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c59cc([0x66,0x69,0x6c,0x6c])](_0x1fc5c2[0x0]===_0x4c59cc([0x2a])?_0x4c59cc([0x2a]):'')[_0x4c59cc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1fc5c2))[_0x4c59cc([0x73,0x6f,0x6d,0x65])](_0x534864=>_0x49bd04[_0x4c59cc([0x65,0x76,0x65,0x72,0x79])]((_0x4e5585,_0x723666)=>_0x534864[_0x723666]===_0x4e5585||_0x534864[_0x723666]===_0x4c59cc([0x2a])));}function _0x22a433(){return _0x16f879&&_0xd1f20?new window[(_0x4c59cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b4037,_0xc066f1)=>{_0x16f879[_0x4c59cc([0x74,0x68,0x65,0x6e])](_0x2b4037,_0xc066f1),_0xd1f20[_0x4c59cc([0x74,0x68,0x65,0x6e])](_0x23dc4e=>{_0x23dc4e!=_0x4c59cc([0x56,0x61,0x6c,0x69,0x64])&&_0x2b4037(_0x23dc4e);},_0xc066f1);}):_0x16f879||_0xd1f20||_0x4c59cc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ade7d(_0x388b25,_0x1d945c){return new window[(_0x4c59cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e0b85=>{if(_0x214dd8())return _0x4e0b85(_0x4c59cc([0x56,0x61,0x6c,0x69,0x64]));_0xee2030(),_0x5be231[_0x4c59cc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c59cc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xe53e71=!0x1;const _0x52a4c6=_0x4cd041();function _0x5f7450(_0xef061b){return!!_0xef061b&&(typeof _0xef061b===_0x4c59cc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xef061b===_0x4c59cc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xef061b[_0x4c59cc([0x74,0x68,0x65,0x6e])]===_0x4c59cc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xef061b[_0x4c59cc([0x63,0x61,0x74,0x63,0x68])]===_0x4c59cc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x344627(_0x2b39b0){_0x23b6f8(_0x2b39b0)[_0x4c59cc([0x74,0x68,0x65,0x6e])](_0x12cbda=>{if(!_0x12cbda||_0x12cbda[_0x4c59cc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c59cc([0x6f,0x6b]))return _0x4c59cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x319c98(_0x273f5b(_0x52a4c6+_0x1d945c))!=_0x12cbda[_0x4c59cc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c59cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c59cc([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c59cc([0x74,0x68,0x65,0x6e])](_0x545a46=>(_0x22f23a(),_0x545a46),()=>{const _0x576436=_0x1d1ac7();return null==_0x576436?(_0x22f23a(),_0x4c59cc([0x56,0x61,0x6c,0x69,0x64])):_0x4c59cc(_0x125345-_0x576436>(0x7753083a^_0x1d840d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c59cc([0x74,0x68,0x65,0x6e])](_0x4e0b85)[_0x4c59cc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e0b85(_0x4c59cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbae39c=0x536962ba^_0x1d840d;function _0x22f23a(){const _0x464044=_0x4c59cc([0x6c,0x6c,0x63,0x74,0x2d])+_0x319c98(_0x273f5b(_0x388b25)),_0xced0ef=_0x19887c(_0x319c98(window[_0x4c59cc([0x4d,0x61,0x74,0x68])][_0x4c59cc([0x63,0x65,0x69,0x6c])](_0x125345/_0xbae39c)));window[_0x4c59cc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c59cc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x464044,_0xced0ef);}function _0x1d1ac7(){const _0x11f197=_0x4c59cc([0x6c,0x6c,0x63,0x74,0x2d])+_0x319c98(_0x273f5b(_0x388b25)),_0x40730a=window[_0x4c59cc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c59cc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11f197);return _0x40730a?window[_0x4c59cc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19887c(_0x40730a),0x10)*_0xbae39c:null;}function _0x23b6f8(_0x10c1cf){return new window[(_0x4c59cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b543a,_0x454e73)=>{_0x10c1cf[_0x4c59cc([0x74,0x68,0x65,0x6e])](_0x3b543a,_0x454e73),window[_0x4c59cc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x454e73,0x535e58fa^_0x1d840d);});}}_0x5be231[_0x4c59cc([0x6f,0x6e])](_0x4c59cc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1900c5,_0x489ca9)=>{if(_0x489ca9[0x0]!=_0x388b25)return _0x4e0b85(_0x4c59cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x489ca9[0x1]={..._0x489ca9[0x1],[_0x4c59cc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52a4c6};},{[_0x4c59cc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c59cc([0x68,0x69,0x67,0x68])}),_0x5be231[_0x4c59cc([0x6f,0x6e])](_0x4c59cc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b050e=>{_0x5f7450(_0x5b050e[_0x4c59cc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xe53e71=!0x0,_0x344627(_0x5b050e[_0x4c59cc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c59cc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c59cc([0x6c,0x6f,0x77])}),_0x457d97[_0x4c59cc([0x74,0x68,0x65,0x6e])](()=>{_0xe53e71||_0x4e0b85(_0x4c59cc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x214dd8(){return _0x5be231[_0x4c59cc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c59cc([0x76,0x69,0x65,0x77])][_0x4c59cc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c59cc([0x61,0x75,0x74,0x6f]);}function _0xee2030(){_0x5be231[_0x4c59cc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c59cc([0x76,0x69,0x65,0x77])][_0x4c59cc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c59cc([0x61,0x75,0x74,0x6f]);}}function _0x3c286a(_0x311787){const _0x5ea8b4=[new window[(_0x4c59cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b763b=>setTimeout(_0x2b763b,0x5356b2f6^_0x1d840d)),_0x457d97[_0x4c59cc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c59cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35f84e=>{let _0x16f6b4=0x0;_0x5be231[_0x4c59cc([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c59cc([0x6f,0x6e])](_0x4c59cc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40cc1d,_0x364242)=>{_0x364242[0x0][_0x4c59cc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16f6b4++,_0x16f6b4==(0x535f8dc2^_0x1d840d)&&(_0x35f84e(),_0x40cc1d[_0x4c59cc([0x6f,0x66,0x66])]());});}))];return window[_0x4c59cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c59cc([0x72,0x61,0x63,0x65])](_0x5ea8b4)[_0x4c59cc([0x74,0x68,0x65,0x6e])](()=>_0x311787);}async function _0x8590ad(){await _0x457d97,_0x5be231[_0x4c59cc([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c59cc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a65bb,_0x5be231[_0x4c59cc([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c59cc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a65bb,_0x5be231[_0x4c59cc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c59cc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17efd3(_0xb49928){const _0xe37c91=_0x3bfbfb();_0x5be231[_0xe37c91]=_0x4c59cc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb49928,_0xb49928!=_0x4c59cc([0x56,0x61,0x6c,0x69,0x64])&&_0x8590ad();}function _0x3bfbfb(){const _0xea24ab=window[_0x4c59cc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c59cc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c59cc([0x6e,0x6f,0x77])]())[_0x4c59cc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c59cc([0x2e]),'');let _0x393fad=_0x4c59cc([0x68]);for(let _0x58b877=0x0;_0x58b877<_0xea24ab[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58b877+=0x2){let _0xaeae75=window[_0x4c59cc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xea24ab[_0x4c59cc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58b877,_0x58b877+0x2));_0xaeae75>=_0x3c1f04[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xaeae75-=_0x3c1f04[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x393fad+=_0x3c1f04[_0xaeae75];}return _0x393fad;}function _0x54856c(){const _0x479457=_0x3b5ca0[_0x4c59cc([0x73,0x70,0x6c,0x69,0x74])](_0x4c59cc([0x2e]));if(0x3!=_0x479457[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d6a5e(_0x479457[0x1]);function _0x3d6a5e(_0x26d325){const _0x1d6e93=_0x35bf62(_0x26d325);return _0x1d6e93&&_0x1e7ced()?_0x1d6e93:null;function _0x1e7ced(){const _0x8f46f2=_0x1d6e93[_0x4c59cc([0x6a,0x74,0x69])],_0x2ae75b=window[_0x4c59cc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8f46f2[_0x4c59cc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8f46f2[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58ac6d={..._0x1d6e93,[_0x4c59cc([0x6a,0x74,0x69])]:_0x8f46f2[_0x4c59cc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8f46f2[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58ac6d[_0x4c59cc([0x76,0x63])],_0x273f5b(_0x58ac6d)==_0x2ae75b;}}}async function _0x52eb29(){let _0x121657=!0x0;try{const _0x1a9420=_0x3b5ca0[_0x4c59cc([0x73,0x70,0x6c,0x69,0x74])](_0x4c59cc([0x2e])),[_0x3d158d,_0x364839,_0x4058bb]=_0x1a9420;return _0x3ca035(_0x3d158d),await _0x153666(_0x3d158d,_0x364839,_0x4058bb),_0x121657;}catch{return!0x1;}function _0x3ca035(_0xdd6a4f){const _0x1f7dcc=_0x35bf62(_0xdd6a4f);_0x1f7dcc&&_0x1f7dcc[_0x4c59cc([0x61,0x6c,0x67])]==_0x4c59cc([0x45,0x53,0x32,0x35,0x36])||(_0x121657=!0x1);}async function _0x153666(_0x6ba770,_0x30b541,_0x487c69){const _0x4f3590=window[_0x4c59cc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c59cc([0x66,0x72,0x6f,0x6d])](_0x593b3e(_0x487c69),_0x2b07be=>_0x2b07be[_0x4c59cc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57ce19=new window[(_0x4c59cc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c59cc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6ba770+_0x4c59cc([0x2e])+_0x30b541),_0x3e4485=window[_0x4c59cc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c59cc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3e4485)return;const _0x11d2c9=await _0x3e4485[_0x4c59cc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c59cc([0x6a,0x77,0x6b]),_0x1e69ec,{[_0x4c59cc([0x6e,0x61,0x6d,0x65])]:_0x4c59cc([0x45,0x43,0x44,0x53,0x41]),[_0x4c59cc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c59cc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c59cc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3e4485[_0x4c59cc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c59cc([0x6e,0x61,0x6d,0x65])]:_0x4c59cc([0x45,0x43,0x44,0x53,0x41]),[_0x4c59cc([0x68,0x61,0x73,0x68])]:{[_0x4c59cc([0x6e,0x61,0x6d,0x65])]:_0x4c59cc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11d2c9,_0x4f3590,_0x57ce19)||(_0x121657=!0x1);}}function _0x35bf62(_0x4a5bb4){return _0x4a5bb4[_0x4c59cc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c59cc([0x65,0x79]))?JSON[_0x4c59cc([0x70,0x61,0x72,0x73,0x65])](_0x593b3e(_0x4a5bb4)):null;}function _0x593b3e(_0x32c07c){return window[_0x4c59cc([0x61,0x74,0x6f,0x62])](_0x32c07c[_0x4c59cc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c59cc([0x2b]))[_0x4c59cc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c59cc([0x2f])));}function _0x273f5b(_0x5ddee6){let _0x2a442f=0x1505;function _0x12c70c(_0x1a6ce2){for(let _0x5df680=0x0;_0x5df680<_0x1a6ce2[_0x4c59cc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5df680++){const _0x4c6776=_0x1a6ce2[_0x4c59cc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5df680);_0x2a442f=(_0x2a442f<<0x5)+_0x2a442f+_0x4c6776,_0x2a442f&=_0x2a442f;}}function _0x4c938d(_0x599e83){Array[_0x4c59cc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x599e83)?_0x599e83[_0x4c59cc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c938d):_0x599e83&&typeof _0x599e83==_0x4c59cc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c59cc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x599e83)[_0x4c59cc([0x73,0x6f,0x72,0x74])]()[_0x4c59cc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39f546,_0x135239])=>{_0x12c70c(_0x39f546),_0x4c938d(_0x135239);}):_0x12c70c(window[_0x4c59cc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x599e83));}return _0x4c938d(_0x5ddee6),_0x2a442f>>>0x0;}function _0x319c98(_0x4b6964){return _0x4b6964[_0x4c59cc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c59cc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c59cc([0x30]));}function _0x19887c(_0x1d68b3){return _0x1d68b3[_0x4c59cc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c59cc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c59cc([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a65bb(){}function _0x4c59cc(_0x588184){const _0x1bd809=_0x22b5;return _0x588184[_0x1bd809(0x138)](_0x347f22=>String[_0x1bd809(0x147)](_0x347f22))[_0x1bd809(0x167)]('');}_0x17efd3(await _0x27f00a());}(this);}[_0x2cadc5(0x12c)](){const _0x5d210d=_0x2cadc5,_0x50697a=this[_0x5d210d(0x145)][_0x5d210d(0x15f)][_0x5d210d(0x165)];_0x50697a[_0x5d210d(0x14d)](_0x5d210d(0x143))&&_0x50697a[_0x5d210d(0x15a)](_0x5d210d(0x143),{'allowAttributes':[_0x5d210d(0x14f)]}),_0x50697a[_0x5d210d(0x14d)](_0x5d210d(0x153))&&_0x50697a[_0x5d210d(0x15a)](_0x5d210d(0x153),{'allowAttributes':[_0x5d210d(0x14f)]});}[_0x2cadc5(0x152)](){const _0x4c0db4=_0x2cadc5,_0x26b6fe=this[_0x4c0db4(0x145)];_0x26b6fe[_0x4c0db4(0x140)][_0x4c0db4(0x159)](_0x4c0db4(0x149))[_0x4c0db4(0x14e)]({'model':_0x4c0db4(0x14f),'view':_0x4c0db4(0x11c)}),_0x26b6fe[_0x4c0db4(0x140)][_0x4c0db4(0x159)](_0x4c0db4(0x14a))[_0x4c0db4(0x151)]({'model':{'key':_0x4c0db4(0x14f),'value':_0x5d8868=>_0x5d8868[_0x4c0db4(0x150)](_0x4c0db4(0x11c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x456559=_0x26b6fe[_0x4c0db4(0x11d)][_0x4c0db4(0x16b)](_0x4c0db4(0x122));_0x456559&&this[_0x4c0db4(0x126)](_0x456559,_0x4c0db4(0x134),(_0x55c761,[_0x1194bd,_0x160b83])=>{const _0x1b903e=_0x4c0db4;_0x1194bd[_0x1b903e(0x13d)](_0x1b903e(0x14f),_0x160b83);});}[_0x2cadc5(0x13e)](){const _0x2beeb9=_0x2cadc5,_0x36b6d2=this[_0x2beeb9(0x145)][_0x2beeb9(0x148)][_0x2beeb9(0x16b)](_0x2beeb9(0x16c))||{},_0x4b80ac=this[_0x2beeb9(0x145)][_0x2beeb9(0x148)][_0x2beeb9(0x16b)](_0x2beeb9(0x155))||'';this[_0x2beeb9(0x131)]=_0x5dcad5(_0x49267a[_0x2beeb9(0x132)],_0x2beeb9(0x133),{..._0x36b6d2,'pubkey':_0x4b80ac,'ctx-name':_0x2beeb9(0x11e)+this[_0x2beeb9(0x162)],'sourceList':'','imgOnly':_0x2beeb9(0x15e),'removeCopyright':_0x2beeb9(0x15e),'localeName':this[_0x2beeb9(0x145)][_0x2beeb9(0x123)][_0x2beeb9(0x11f)],'externalSourcesEmbedCss':_0x2beeb9(0x142)}),this[_0x2beeb9(0x131)][_0x2beeb9(0x146)]=_0x106dec=>{const _0x283e54=_0x2beeb9;if(_0x283e54(0x137)==_0x106dec)return _0x283e54(0x136);},_0x49267a[_0x2beeb9(0x132)][_0x2beeb9(0x16d)][_0x2beeb9(0x12f)](this[_0x2beeb9(0x131)]);}[_0x2cadc5(0x121)](){const _0x5557b9=_0x2cadc5;this[_0x5557b9(0x11b)]=_0x5dcad5(_0x49267a[_0x5557b9(0x132)],_0x5557b9(0x130),{'ctx-name':_0x5557b9(0x11e)+this[_0x5557b9(0x162)]}),_0x49267a[_0x5557b9(0x132)][_0x5557b9(0x16d)][_0x5557b9(0x12f)](this[_0x5557b9(0x11b)]);}[_0x2cadc5(0x169)](){const _0x15d649=_0x2cadc5,_0x4a7a2a=this[_0x15d649(0x145)][_0x15d649(0x11d)][_0x15d649(0x16b)](_0x15d649(0x129));_0x4a7a2a&&this[_0x15d649(0x126)](_0x4a7a2a,_0x15d649(0x124),()=>{const _0xcd9a7=_0x15d649,_0x5db892=this[_0xcd9a7(0x145)][_0xcd9a7(0x15f)][_0xcd9a7(0x132)][_0xcd9a7(0x14c)][_0xcd9a7(0x12a)]();_0x5db892&&_0x5db892[_0xcd9a7(0x150)](_0xcd9a7(0x14f))&&this[_0xcd9a7(0x145)][_0xcd9a7(0x163)][_0xcd9a7(0x16a)][_0xcd9a7(0x12e)](_0xcd9a7(0x128),()=>{const _0x5b15eb=_0xcd9a7;_0x4e5b6d(this[_0x5b15eb(0x145)],_0x5db892);});});const _0x614095=this[_0x15d649(0x145)][_0x15d649(0x11d)][_0x15d649(0x16b)](_0x15d649(0x127));_0x614095&&this[_0x15d649(0x126)](_0x614095,_0x15d649(0x124),()=>{const _0x1593cd=_0x15d649,_0x2807a0=this[_0x1593cd(0x145)][_0x1593cd(0x15f)][_0x1593cd(0x132)][_0x1593cd(0x14c)][_0x1593cd(0x12a)]();_0x2807a0&&_0x2807a0[_0x1593cd(0x150)](_0x1593cd(0x14f))&&this[_0x1593cd(0x145)][_0x1593cd(0x163)][_0x1593cd(0x16a)][_0x1593cd(0x12e)](_0x1593cd(0x128),()=>{const _0x3cc584=_0x1593cd;_0x4e5b6d(this[_0x3cc584(0x145)],_0x2807a0);});});}}
|
|
23
|
+
const _0x5373ef=_0x2fc5;(function(_0x4bee09,_0x2e39b5){const _0xf9d990=_0x2fc5,_0x5bb9c6=_0x4bee09();while(!![]){try{const _0x1db319=parseInt(_0xf9d990(0x1c1))/0x1+parseInt(_0xf9d990(0x1b3))/0x2+parseInt(_0xf9d990(0x1cd))/0x3+-parseInt(_0xf9d990(0x1ae))/0x4+-parseInt(_0xf9d990(0x19b))/0x5+-parseInt(_0xf9d990(0x1d6))/0x6+parseInt(_0xf9d990(0x1cc))/0x7;if(_0x1db319===_0x2e39b5)break;else _0x5bb9c6['push'](_0x5bb9c6['shift']());}catch(_0x56d1f6){_0x5bb9c6['push'](_0x5bb9c6['shift']());}}}(_0x53db,0x192a1));import{Plugin as _0x56c8a1}from'ckeditor5/src/core.js';function _0x2fc5(_0x33029e,_0x2a6948){const _0x53db6f=_0x53db();return _0x2fc5=function(_0x2fc5c9,_0x1ef88f){_0x2fc5c9=_0x2fc5c9-0x18a;let _0x5d9082=_0x53db6f[_0x2fc5c9];return _0x5d9082;},_0x2fc5(_0x33029e,_0x2a6948);}import{Dialog as _0x59b86d}from'ckeditor5/src/ui.js';import{createElement as _0x2dc6da,global as _0x5e4a69,uid as _0x56c389}from'ckeditor5/src/utils.js';function _0x53db(){const _0x3b6f3f=['getAttribute','href','get','PictureEditing','removeAttribute','requires','imageInline','ucContextId','conversion','body','remove','listenTo','508452XtGOPn','for','config','uc-upload-ctx-provider','editing','391118MCZIIo','uploadcare.pubkey','uc-config','isOfficialPlugin','_initSchema','join','init','uploadcare.uploader','fromCharCode','configElement','map','isRegistered','_ctxElement','upcast','53821RdJfjr','_initConfig','uploadcareImageId','_configElement','commands','uploadcare','uploader-','#uc-icon-arrow-down','view','render','elementToAttribute','1255184KXebhX','22698QzRvCA','schema','uploadcareImageReplace','contentLanguage','extend','insertImage','afterInit','_initImageProcessingIndicator','cleanupImage','860250DDsPAu','iconHrefResolver','appendChild','isPremiumPlugin','closeMax','_initCtx','ctxElement','attributeToAttribute','execute','input[uploadcare-file-input]','document','imageBlock','replaceImageSource','UploadcareEditing','add','getSelectedElement','pluginName','true','\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','downcast','querySelector','editor','model','313485MuJCAj','data-uc-image-id','_initConversion','once','locale','destroy','selection'];_0x53db=function(){return _0x3b6f3f;};return _0x53db();}import{UploadcareCommand as _0xb1e612}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1c79a}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5ef666}from'./utils/editingutils.js';export class UploadcareEditing extends _0x56c8a1{[_0x5373ef(0x1c4)]=null;[_0x5373ef(0x1bf)]=null;static get[_0x5373ef(0x194)](){const _0xe50fff=_0x5373ef;return _0xe50fff(0x191);}static get[_0x5373ef(0x1a7)](){const _0x20aace=_0x5373ef;return[_0x20aace(0x1a5),_0x1c79a,_0x59b86d];}static get[_0x5373ef(0x1b6)](){return!0x0;}static get[_0x5373ef(0x1d9)](){return!0x0;}[_0x5373ef(0x1a9)];get[_0x5373ef(0x1bc)](){const _0x288558=_0x5373ef;return this[_0x288558(0x1c4)];}get[_0x5373ef(0x18a)](){const _0x410c14=_0x5373ef;return this[_0x410c14(0x1bf)];}constructor(_0x5f7544){const _0x5329f9=_0x5373ef;super(_0x5f7544),this[_0x5329f9(0x1a9)]=_0x56c389();}[_0x5373ef(0x1b9)](){const _0x130fc7=_0x5373ef,_0x36c716=this[_0x130fc7(0x199)];_0x36c716[_0x130fc7(0x1c5)][_0x130fc7(0x192)](_0x130fc7(0x1c6),new _0xb1e612(_0x36c716));}[_0x5373ef(0x1d3)](){const _0x1ae3a3=_0x5373ef;this[_0x1ae3a3(0x1b7)](),this[_0x1ae3a3(0x19d)](),this[_0x1ae3a3(0x1c2)](),this[_0x1ae3a3(0x1db)](),this[_0x1ae3a3(0x1d4)](),this[_0x1ae3a3(0x1ad)](this[_0x1ae3a3(0x199)],_0x1ae3a3(0x1a0),()=>{const _0x166e3a=_0x1ae3a3;this[_0x166e3a(0x1c4)]&&(this[_0x166e3a(0x1c4)][_0x166e3a(0x1ac)](),this[_0x166e3a(0x1c4)]=null),this[_0x166e3a(0x1bf)]&&(this[_0x166e3a(0x1bf)][_0x166e3a(0x1ac)](),this[_0x166e3a(0x1bf)]=null);const _0x406d92=_0x5e4a69[_0x166e3a(0x18e)][_0x166e3a(0x198)](_0x166e3a(0x18d));_0x406d92&&_0x406d92[_0x166e3a(0x1ac)]();}),async function(_0x4c0447){const _0x156930=_0x5cce39([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1491bf=0x535f8c3a,_0x1fd4fa=0x5358f672^_0x1491bf,_0x2d70c7=window[_0x5cce39([0x44,0x61,0x74,0x65])][_0x5cce39([0x6e,0x6f,0x77])](),_0x179290=_0x4c0447[_0x5cce39([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ccb04=new window[(_0x5cce39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x585009=>{_0x179290[_0x5cce39([0x6f,0x6e,0x63,0x65])](_0x5cce39([0x72,0x65,0x61,0x64,0x79]),_0x585009);}),_0x543ad1={[_0x5cce39([0x6b,0x74,0x79])]:_0x5cce39([0x45,0x43]),[_0x5cce39([0x75,0x73,0x65])]:_0x5cce39([0x73,0x69,0x67]),[_0x5cce39([0x63,0x72,0x76])]:_0x5cce39([0x50,0x2d,0x32,0x35,0x36]),[_0x5cce39([0x78])]:_0x5cce39([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]),[_0x5cce39([0x79])]:_0x5cce39([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]),[_0x5cce39([0x61,0x6c,0x67])]:_0x5cce39([0x45,0x53,0x32,0x35,0x36])},_0x18aaff=_0x179290[_0x5cce39([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5cce39([0x67,0x65,0x74])](_0x5cce39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x178a5b(){let _0x105a1d,_0xebd982=null,_0x19b323=null;try{if(_0x18aaff==_0x5cce39([0x47,0x50,0x4c]))return _0x5cce39([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x105a1d=_0xe9d62f(),!_0x105a1d)return _0x5cce39([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x105a1d[_0x5cce39([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x19b323=_0x4ed178(_0x105a1d[_0x5cce39([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x105a1d[_0x5cce39([0x6a,0x74,0x69])])),await _0x46d33d()?_0x18d332()?_0x2b5650()?_0x5cce39([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5f4219()?(_0x105a1d[_0x5cce39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cce39([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xebd982=_0x8546b2(_0x5cce39([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x105a1d[_0x5cce39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cce39([0x74,0x72,0x69,0x61,0x6c])&&(_0xebd982=_0x8546b2(_0x5cce39([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20aad8()):_0x5cce39([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5cce39([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5cce39([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5cce39([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b5650(){const _0x107f0c=[_0x5cce39([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5cce39([0x74,0x72,0x69,0x61,0x6c])][_0x5cce39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x105a1d[_0x5cce39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d70c7/0x3e8:0xe10*_0x1fd4fa;return _0x105a1d[_0x5cce39([0x65,0x78,0x70])]<_0x107f0c;}function _0x18d332(){const _0x8eaf1f=_0x105a1d[_0x5cce39([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x8eaf1f&&(!!_0x8eaf1f[_0x5cce39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cce39([0x2a]))||!!_0x8eaf1f[_0x5cce39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cce39([0x55,0x50,0x4c,0x43])));}function _0x5f4219(){const _0x1f0b7a=_0x2fc5,_0x441a74=_0x105a1d[_0x5cce39([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x441a74||0x0==_0x441a74[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a337e}=new URL(window[_0x5cce39([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1f0b7a(0x1a3)]);if(_0x441a74[_0x5cce39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a337e))return!0x0;const _0x4c9f65=_0x2a337e[_0x5cce39([0x73,0x70,0x6c,0x69,0x74])](_0x5cce39([0x2e]));return _0x441a74[_0x5cce39([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52c343=>_0x52c343[_0x5cce39([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cce39([0x2a])))[_0x5cce39([0x6d,0x61,0x70])](_0x35789f=>_0x35789f[_0x5cce39([0x73,0x70,0x6c,0x69,0x74])](_0x5cce39([0x2e])))[_0x5cce39([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59c45d=>_0x59c45d[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c9f65[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cce39([0x6d,0x61,0x70])](_0x58ba3e=>Array(_0x4c9f65[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58ba3e[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cce39([0x66,0x69,0x6c,0x6c])](_0x58ba3e[0x0]===_0x5cce39([0x2a])?_0x5cce39([0x2a]):'')[_0x5cce39([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58ba3e))[_0x5cce39([0x73,0x6f,0x6d,0x65])](_0x10b4f3=>_0x4c9f65[_0x5cce39([0x65,0x76,0x65,0x72,0x79])]((_0x572742,_0x5d027f)=>_0x10b4f3[_0x5d027f]===_0x572742||_0x10b4f3[_0x5d027f]===_0x5cce39([0x2a])));}function _0x20aad8(){return _0xebd982&&_0x19b323?new window[(_0x5cce39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f2ae5,_0x126172)=>{_0xebd982[_0x5cce39([0x74,0x68,0x65,0x6e])](_0x1f2ae5,_0x126172),_0x19b323[_0x5cce39([0x74,0x68,0x65,0x6e])](_0x5ce019=>{_0x5ce019!=_0x5cce39([0x56,0x61,0x6c,0x69,0x64])&&_0x1f2ae5(_0x5ce019);},_0x126172);}):_0xebd982||_0x19b323||_0x5cce39([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ed178(_0x5f09b9,_0x3358ba){return new window[(_0x5cce39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10e948=>{if(_0xa6f82d())return _0x10e948(_0x5cce39([0x56,0x61,0x6c,0x69,0x64]));_0x47ed3f(),_0x179290[_0x5cce39([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5cce39([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x38b395=!0x1;const _0x1917ff=_0x56c389();function _0x4ef73b(_0x3fd4e5){return!!_0x3fd4e5&&(typeof _0x3fd4e5===_0x5cce39([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fd4e5===_0x5cce39([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fd4e5[_0x5cce39([0x74,0x68,0x65,0x6e])]===_0x5cce39([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fd4e5[_0x5cce39([0x63,0x61,0x74,0x63,0x68])]===_0x5cce39([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fa8bc(_0x452325){_0x1d34ff(_0x452325)[_0x5cce39([0x74,0x68,0x65,0x6e])](_0x194644=>{if(!_0x194644||_0x194644[_0x5cce39([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5cce39([0x6f,0x6b]))return _0x5cce39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31d08d(_0x1bbdda(_0x1917ff+_0x3358ba))!=_0x194644[_0x5cce39([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5cce39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5cce39([0x56,0x61,0x6c,0x69,0x64]);})[_0x5cce39([0x74,0x68,0x65,0x6e])](_0x1bbec9=>(_0x1ee58c(),_0x1bbec9),()=>{const _0x282a91=_0x3818d2();return null==_0x282a91?(_0x1ee58c(),_0x5cce39([0x56,0x61,0x6c,0x69,0x64])):_0x5cce39(_0x2d70c7-_0x282a91>(0x7753083a^_0x1491bf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5cce39([0x74,0x68,0x65,0x6e])](_0x10e948)[_0x5cce39([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10e948(_0x5cce39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x222520=0x536962ba^_0x1491bf;function _0x1ee58c(){const _0x3973fb=_0x5cce39([0x6c,0x6c,0x63,0x74,0x2d])+_0x31d08d(_0x1bbdda(_0x5f09b9)),_0x4f0de3=_0x5cdcfe(_0x31d08d(window[_0x5cce39([0x4d,0x61,0x74,0x68])][_0x5cce39([0x63,0x65,0x69,0x6c])](_0x2d70c7/_0x222520)));window[_0x5cce39([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cce39([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3973fb,_0x4f0de3);}function _0x3818d2(){const _0x3f2f52=_0x5cce39([0x6c,0x6c,0x63,0x74,0x2d])+_0x31d08d(_0x1bbdda(_0x5f09b9)),_0x4743be=window[_0x5cce39([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cce39([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f2f52);return _0x4743be?window[_0x5cce39([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cdcfe(_0x4743be),0x10)*_0x222520:null;}function _0x1d34ff(_0x556cfb){return new window[(_0x5cce39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d7b2b,_0x1af310)=>{_0x556cfb[_0x5cce39([0x74,0x68,0x65,0x6e])](_0x4d7b2b,_0x1af310),window[_0x5cce39([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1af310,0x535e58fa^_0x1491bf);});}}_0x179290[_0x5cce39([0x6f,0x6e])](_0x5cce39([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15714f,_0x447a85)=>{if(_0x447a85[0x0]!=_0x5f09b9)return _0x10e948(_0x5cce39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x447a85[0x1]={..._0x447a85[0x1],[_0x5cce39([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1917ff};},{[_0x5cce39([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cce39([0x68,0x69,0x67,0x68])}),_0x179290[_0x5cce39([0x6f,0x6e])](_0x5cce39([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45eca9=>{_0x4ef73b(_0x45eca9[_0x5cce39([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x38b395=!0x0,_0x1fa8bc(_0x45eca9[_0x5cce39([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5cce39([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cce39([0x6c,0x6f,0x77])}),_0x3ccb04[_0x5cce39([0x74,0x68,0x65,0x6e])](()=>{_0x38b395||_0x10e948(_0x5cce39([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa6f82d(){return _0x179290[_0x5cce39([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cce39([0x76,0x69,0x65,0x77])][_0x5cce39([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5cce39([0x61,0x75,0x74,0x6f]);}function _0x47ed3f(){_0x179290[_0x5cce39([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cce39([0x76,0x69,0x65,0x77])][_0x5cce39([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cce39([0x61,0x75,0x74,0x6f]);}}function _0x8546b2(_0x21cb63){const _0x9bfc29=[new window[(_0x5cce39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x545eab=>setTimeout(_0x545eab,0x5356b2f6^_0x1491bf)),_0x3ccb04[_0x5cce39([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5cce39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x352e63=>{let _0x57aa06=0x0;_0x179290[_0x5cce39([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cce39([0x6f,0x6e])](_0x5cce39([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x232f35,_0x5dc502)=>{_0x5dc502[0x0][_0x5cce39([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x57aa06++,_0x57aa06==(0x535f8dc2^_0x1491bf)&&(_0x352e63(),_0x232f35[_0x5cce39([0x6f,0x66,0x66])]());});}))];return window[_0x5cce39([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cce39([0x72,0x61,0x63,0x65])](_0x9bfc29)[_0x5cce39([0x74,0x68,0x65,0x6e])](()=>_0x21cb63);}async function _0x45d629(){await _0x3ccb04,_0x179290[_0x5cce39([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cce39([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4f4408,_0x179290[_0x5cce39([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cce39([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4f4408,_0x179290[_0x5cce39([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5cce39([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c72df(_0x4706cc){const _0x4e8e52=_0x2a85e1();_0x179290[_0x4e8e52]=_0x5cce39([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4706cc,_0x4706cc!=_0x5cce39([0x56,0x61,0x6c,0x69,0x64])&&_0x45d629();}function _0x2a85e1(){const _0x4f299f=window[_0x5cce39([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5cce39([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5cce39([0x6e,0x6f,0x77])]())[_0x5cce39([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5cce39([0x2e]),'');let _0x5be195=_0x5cce39([0x68]);for(let _0x37950b=0x0;_0x37950b<_0x4f299f[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37950b+=0x2){let _0x2eabaf=window[_0x5cce39([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f299f[_0x5cce39([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37950b,_0x37950b+0x2));_0x2eabaf>=_0x156930[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2eabaf-=_0x156930[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5be195+=_0x156930[_0x2eabaf];}return _0x5be195;}function _0xe9d62f(){const _0xd1133a=_0x18aaff[_0x5cce39([0x73,0x70,0x6c,0x69,0x74])](_0x5cce39([0x2e]));if(0x3!=_0xd1133a[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x367748(_0xd1133a[0x1]);function _0x367748(_0x1fc124){const _0x243613=_0x5a75bd(_0x1fc124);return _0x243613&&_0x550861()?_0x243613:null;function _0x550861(){const _0x1e972b=_0x243613[_0x5cce39([0x6a,0x74,0x69])],_0xd2d379=window[_0x5cce39([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e972b[_0x5cce39([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e972b[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53726f={..._0x243613,[_0x5cce39([0x6a,0x74,0x69])]:_0x1e972b[_0x5cce39([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e972b[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53726f[_0x5cce39([0x76,0x63])],_0x1bbdda(_0x53726f)==_0xd2d379;}}}async function _0x46d33d(){let _0x3c6871=!0x0;try{const _0x50c9bc=_0x18aaff[_0x5cce39([0x73,0x70,0x6c,0x69,0x74])](_0x5cce39([0x2e])),[_0x14fc2c,_0x4cc851,_0x34fe28]=_0x50c9bc;return _0x115502(_0x14fc2c),await _0x1b1721(_0x14fc2c,_0x4cc851,_0x34fe28),_0x3c6871;}catch{return!0x1;}function _0x115502(_0x4e1deb){const _0x53e56=_0x5a75bd(_0x4e1deb);_0x53e56&&_0x53e56[_0x5cce39([0x61,0x6c,0x67])]==_0x5cce39([0x45,0x53,0x32,0x35,0x36])||(_0x3c6871=!0x1);}async function _0x1b1721(_0x1267ba,_0x207f0e,_0xcc0080){const _0x3c5aa9=window[_0x5cce39([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5cce39([0x66,0x72,0x6f,0x6d])](_0x458ccf(_0xcc0080),_0x1f97e7=>_0x1f97e7[_0x5cce39([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57774e=new window[(_0x5cce39([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5cce39([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1267ba+_0x5cce39([0x2e])+_0x207f0e),_0x2313e1=window[_0x5cce39([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5cce39([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2313e1)return;const _0x17cbbc=await _0x2313e1[_0x5cce39([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5cce39([0x6a,0x77,0x6b]),_0x543ad1,{[_0x5cce39([0x6e,0x61,0x6d,0x65])]:_0x5cce39([0x45,0x43,0x44,0x53,0x41]),[_0x5cce39([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5cce39([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5cce39([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2313e1[_0x5cce39([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5cce39([0x6e,0x61,0x6d,0x65])]:_0x5cce39([0x45,0x43,0x44,0x53,0x41]),[_0x5cce39([0x68,0x61,0x73,0x68])]:{[_0x5cce39([0x6e,0x61,0x6d,0x65])]:_0x5cce39([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x17cbbc,_0x3c5aa9,_0x57774e)||(_0x3c6871=!0x1);}}function _0x5a75bd(_0x5e96b7){return _0x5e96b7[_0x5cce39([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5cce39([0x65,0x79]))?JSON[_0x5cce39([0x70,0x61,0x72,0x73,0x65])](_0x458ccf(_0x5e96b7)):null;}function _0x458ccf(_0x10276a){return window[_0x5cce39([0x61,0x74,0x6f,0x62])](_0x10276a[_0x5cce39([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5cce39([0x2b]))[_0x5cce39([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5cce39([0x2f])));}function _0x1bbdda(_0x8673a2){let _0x2860f7=0x1505;function _0x4d33a7(_0x4f5e9b){for(let _0x227310=0x0;_0x227310<_0x4f5e9b[_0x5cce39([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x227310++){const _0x126d64=_0x4f5e9b[_0x5cce39([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x227310);_0x2860f7=(_0x2860f7<<0x5)+_0x2860f7+_0x126d64,_0x2860f7&=_0x2860f7;}}function _0x560ad8(_0x2f9269){Array[_0x5cce39([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f9269)?_0x2f9269[_0x5cce39([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x560ad8):_0x2f9269&&typeof _0x2f9269==_0x5cce39([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5cce39([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f9269)[_0x5cce39([0x73,0x6f,0x72,0x74])]()[_0x5cce39([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16bcd3,_0x53a9ae])=>{_0x4d33a7(_0x16bcd3),_0x560ad8(_0x53a9ae);}):_0x4d33a7(window[_0x5cce39([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f9269));}return _0x560ad8(_0x8673a2),_0x2860f7>>>0x0;}function _0x31d08d(_0x45474b){return _0x45474b[_0x5cce39([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5cce39([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5cce39([0x30]));}function _0x5cdcfe(_0x502060){return _0x502060[_0x5cce39([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5cce39([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5cce39([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f4408(){}function _0x5cce39(_0x570549){const _0x335b21=_0x2fc5;return _0x570549[_0x335b21(0x1bd)](_0x2189ce=>String[_0x335b21(0x1bb)](_0x2189ce))[_0x335b21(0x1b8)]('');}_0x3c72df(await _0x178a5b());}(this);}[_0x5373ef(0x1b7)](){const _0x300dcc=_0x5373ef,_0x4d7b1c=this[_0x300dcc(0x199)][_0x300dcc(0x19a)][_0x300dcc(0x1ce)];_0x4d7b1c[_0x300dcc(0x1be)](_0x300dcc(0x18f))&&_0x4d7b1c[_0x300dcc(0x1d1)](_0x300dcc(0x18f),{'allowAttributes':[_0x300dcc(0x1c3)]}),_0x4d7b1c[_0x300dcc(0x1be)](_0x300dcc(0x1a8))&&_0x4d7b1c[_0x300dcc(0x1d1)](_0x300dcc(0x1a8),{'allowAttributes':[_0x300dcc(0x1c3)]});}[_0x5373ef(0x19d)](){const _0x5d7c61=_0x5373ef,_0x2e3c86=this[_0x5d7c61(0x199)];_0x2e3c86[_0x5d7c61(0x1aa)][_0x5d7c61(0x1af)](_0x5d7c61(0x197))[_0x5d7c61(0x18b)]({'model':_0x5d7c61(0x1c3),'view':_0x5d7c61(0x19c)}),_0x2e3c86[_0x5d7c61(0x1aa)][_0x5d7c61(0x1af)](_0x5d7c61(0x1c0))[_0x5d7c61(0x1cb)]({'model':{'key':_0x5d7c61(0x1c3),'value':_0x8eff3=>_0x8eff3[_0x5d7c61(0x1a2)](_0x5d7c61(0x19c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5a4bb5=_0x2e3c86[_0x5d7c61(0x1c5)][_0x5d7c61(0x1a4)](_0x5d7c61(0x190));_0x5a4bb5&&this[_0x5d7c61(0x1ad)](_0x5a4bb5,_0x5d7c61(0x1d5),(_0x38fa09,[_0x40a5fe,_0xaca5d6])=>{const _0x1a45fc=_0x5d7c61;_0x40a5fe[_0x1a45fc(0x1a6)](_0x1a45fc(0x1c3),_0xaca5d6);});}[_0x5373ef(0x1c2)](){const _0x1e83b9=_0x5373ef,_0x43a314=this[_0x1e83b9(0x199)][_0x1e83b9(0x1b0)][_0x1e83b9(0x1a4)](_0x1e83b9(0x1ba))||{},_0x2ba8bd=this[_0x1e83b9(0x199)][_0x1e83b9(0x1b0)][_0x1e83b9(0x1a4)](_0x1e83b9(0x1b4))||'';this[_0x1e83b9(0x1c4)]=_0x2dc6da(_0x5e4a69[_0x1e83b9(0x18e)],_0x1e83b9(0x1b5),{..._0x43a314,'pubkey':_0x2ba8bd,'ctx-name':_0x1e83b9(0x1c7)+this[_0x1e83b9(0x1a9)],'sourceList':'','imgOnly':_0x1e83b9(0x195),'removeCopyright':_0x1e83b9(0x195),'localeName':this[_0x1e83b9(0x199)][_0x1e83b9(0x19f)][_0x1e83b9(0x1d0)],'externalSourcesEmbedCss':_0x1e83b9(0x196)}),this[_0x1e83b9(0x1c4)][_0x1e83b9(0x1d7)]=_0x590f0c=>{const _0x3a5adf=_0x1e83b9;if(_0x3a5adf(0x1da)==_0x590f0c)return _0x3a5adf(0x1c8);},_0x5e4a69[_0x1e83b9(0x18e)][_0x1e83b9(0x1ab)][_0x1e83b9(0x1d8)](this[_0x1e83b9(0x1c4)]);}[_0x5373ef(0x1db)](){const _0x2beec2=_0x5373ef;this[_0x2beec2(0x1bf)]=_0x2dc6da(_0x5e4a69[_0x2beec2(0x18e)],_0x2beec2(0x1b1),{'ctx-name':_0x2beec2(0x1c7)+this[_0x2beec2(0x1a9)]}),_0x5e4a69[_0x2beec2(0x18e)][_0x2beec2(0x1ab)][_0x2beec2(0x1d8)](this[_0x2beec2(0x1bf)]);}[_0x5373ef(0x1d4)](){const _0x57e0a0=_0x5373ef,_0x3f038f=this[_0x57e0a0(0x199)][_0x57e0a0(0x1c5)][_0x57e0a0(0x1a4)](_0x57e0a0(0x1d2));_0x3f038f&&this[_0x57e0a0(0x1ad)](_0x3f038f,_0x57e0a0(0x18c),()=>{const _0x5708d6=_0x57e0a0,_0x200dc3=this[_0x5708d6(0x199)][_0x5708d6(0x19a)][_0x5708d6(0x18e)][_0x5708d6(0x1a1)][_0x5708d6(0x193)]();_0x200dc3&&_0x200dc3[_0x5708d6(0x1a2)](_0x5708d6(0x1c3))&&this[_0x5708d6(0x199)][_0x5708d6(0x1b2)][_0x5708d6(0x1c9)][_0x5708d6(0x19e)](_0x5708d6(0x1ca),()=>{const _0x2c9e12=_0x5708d6;_0x5ef666(this[_0x2c9e12(0x199)],_0x200dc3);});});const _0x5c50e9=this[_0x57e0a0(0x199)][_0x57e0a0(0x1c5)][_0x57e0a0(0x1a4)](_0x57e0a0(0x1cf));_0x5c50e9&&this[_0x57e0a0(0x1ad)](_0x5c50e9,_0x57e0a0(0x18c),()=>{const _0x32514c=_0x57e0a0,_0x43eaf4=this[_0x32514c(0x199)][_0x32514c(0x19a)][_0x32514c(0x18e)][_0x32514c(0x1a1)][_0x32514c(0x193)]();_0x43eaf4&&_0x43eaf4[_0x32514c(0x1a2)](_0x32514c(0x1c3))&&this[_0x32514c(0x199)][_0x32514c(0x1b2)][_0x32514c(0x1c9)][_0x32514c(0x19e)](_0x32514c(0x1ca),()=>{const _0x47373e=_0x32514c;_0x5ef666(this[_0x47373e(0x199)],_0x43eaf4);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4ce485,ObservableMixin as _0x3f803f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x308730}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x146fe7}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2b9227}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x55b16a}from'../../utils/uploadutils.js';import{getImageUrls as _0x2bdb1b,getImageDimension as _0x1a3a1c}from'../../utils/editingutils.js';import{isAncestor as _0x3810d8}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3f803f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3ce558,_0x509d56,_0x27a577){super(),this['_editor']=_0x3ce558,this['_dialog']=_0x509d56,this['_imageElement']=_0x27a577,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 _0x518801=this['_imageElement'],_0x5ecd08=_0x518801['getAttribute']('uploadcareImageId'),_0x6c1fac=_0x518801['getAttribute']('src');if(_0x5ecd08)await this['_loadImageInfo'](_0x5ecd08,_0x6c1fac);else{if(this['_imageCache']['has'](_0x6c1fac)){const _0x347b53=this['_imageCache']['get'](_0x6c1fac);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x347b53['url'],this['imageDimension']=_0x347b53['dimension'],this['imageId']=_0x347b53['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5060ca}=this['_editor'],t=_0x5060ca['t'],_0x3063bf=new _0x2b9227(_0x5060ca,this['imageStatus'],this['_attributes']);_0x3063bf['bind']('status')['to'](this,'imageStatus'),_0x3063bf['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3063bf['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3063bf['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3063bf,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x146fe7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3063bf,'position':_0x308730['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3063bf['focus']();},'onHide':()=>{_0x3063bf['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xacf854=>!_0x3810d8(_0xacf854,_0x3063bf['element'])}});}['_loadImageInfo'](_0x4d7048,_0x4be777){return _0x55b16a['getInfo'](_0x4d7048,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x635e31=>{const {width:_0x1ad750,height:_0x2a03b3}=_0x635e31['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4be777,this['imageDimension']={'width':_0x1ad750,'height':_0x2a03b3},this['imageId']=_0x4d7048;})['catch'](_0x433997=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x433997['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x59ac35,_0x452917){return this['_getImageAsFile'](_0x59ac35)['then'](_0x147088=>_0x55b16a['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':_0x452917['signal'],'file':_0x147088,'onProgress':_0x5df632=>{_0x5df632&&_0x5df632['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5df632['value']));}}))['then'](_0x346430=>{const {width:_0x54380a,height:_0x2a1148}=_0x346430['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x346430['cdnUrl'],this['imageDimension']={'width':_0x54380a,'height':_0x2a1148},this['imageId']=_0x346430['uuid'],this['imageUploadProgress']=null;const _0xea150e=_0x59ac35['getAttribute']('src');this['_imageCache']['set'](_0xea150e,{'id':_0x346430['uuid'],'url':_0x346430['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5baf21=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5baf21['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x15d26a,_0x4e7ec6){_0x15d26a['on']('apply',(_0x132e20,_0x3d80e9)=>{this['_replaceImage'](_0x4e7ec6,_0x3d80e9['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x15d26a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x15d26a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x62dc23,_0xe4e014,_0x1f8279){const _0x1636d8=this['_editor'],{width:_0x176e6c,height:_0x2fdd77}=_0x1a3a1c(_0xe4e014,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xd5b0e7,imageSources:_0x2a7bdf}=_0x2bdb1b(_0xe4e014,_0x176e6c);_0x1636d8['model']['change'](_0x401306=>{if('$graveyard'===_0x62dc23['root']['rootName']){_0x1636d8['execute']('insertImage',{'imageType':_0x62dc23['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x62dc23['getAttributes']()),'uploadcareImageId':_0x1f8279,'src':_0xd5b0e7,'sources':_0x2a7bdf,'width':_0x176e6c,'height':_0x2fdd77}});const _0x140145=_0x62dc23['getChildren']();_0x62dc23=_0x1636d8['model']['document']['selection']['getSelectedElement']();for(const _0x34f21e of _0x140145)_0x401306['append'](_0x401306['cloneElement'](_0x34f21e),_0x62dc23);}else _0x401306['setSelection'](_0x62dc23,'on'),_0x1636d8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x62dc23['getAttributes']()),'uploadcareImageId':_0x1f8279,'src':_0xd5b0e7,'sources':_0x2a7bdf,'width':_0x176e6c,'height':_0x2fdd77},_0x62dc23);_0x401306['setSelection'](_0x62dc23,'on');});}async['_getImageAsFile'](_0x3c78c8){const _0x6a8ba2=_0x4ce485['window'],_0x1972da=_0x4ce485['document']['location']['href'],_0x50dd88=new _0x6a8ba2['URL'](_0x3c78c8['getAttribute']('src'),_0x1972da);if('data:'===_0x50dd88['protocol']){const _0x20bad8=_0x50dd88['href']['split'](','),_0xdce2ba=_0x20bad8[0x0]['match'](/:(.*?);/)[0x1],_0x4e0a0e=_0xdce2ba['split']('/')[0x1],_0xc5704f=_0x6a8ba2['atob'](_0x20bad8[_0x20bad8['length']-0x1]);let _0x41b918=_0xc5704f['length'];const _0x55ab92=new _0x6a8ba2['Uint8Array'](_0x41b918);for(;_0x41b918--;)_0x55ab92[_0x41b918]=_0xc5704f['charCodeAt'](_0x41b918);return new _0x6a8ba2['File']([_0x55ab92],'image.'+_0x4e0a0e,{'type':_0xdce2ba});}const _0x4fc4aa=_0x50dd88['href']['split']('/'),_0x13e0c6=_0x4fc4aa[_0x4fc4aa['length']-0x1],_0x4d24c3=_0x13e0c6['split']('.')[0x1];return _0x6a8ba2['fetch'](_0x50dd88['href'])['then'](_0x13ba7a=>_0x13ba7a['clone']()['blob']())['then'](_0x3d2aae=>new _0x6a8ba2['File']([_0x3d2aae],_0x13e0c6,{'type':'image/'+_0x4d24c3}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4995(){const _0x196399=['46100bVjVhD','ck-uploadcare-theme','image-edit','28866FCjcmS','bindTemplate','485voOsAh','28bKgzmn','259sYzQGc','imageSrc','2477920RfeWrO','53455ZSPZCt','setTemplate','676874KWUdlq','uc-cloud-image-editor','set','450efNdtJ','456642syOHpG','uc-light','118TLDbGq'];_0x4995=function(){return _0x196399;};return _0x4995();}(function(_0x2361d5,_0x308ba5){const _0x4d2a0f=_0x5800,_0x7104c6=_0x2361d5();while(!![]){try{const _0x193fb3=-parseInt(_0x4d2a0f(0x1f2))/0x1*(parseInt(_0x4d2a0f(0x1ff))/0x2)+-parseInt(_0x4d2a0f(0x1fd))/0x3+parseInt(_0x4d2a0f(0x1f3))/0x4*(-parseInt(_0x4d2a0f(0x1f7))/0x5)+-parseInt(_0x4d2a0f(0x1f0))/0x6*(parseInt(_0x4d2a0f(0x1f4))/0x7)+parseInt(_0x4d2a0f(0x1f6))/0x8+-parseInt(_0x4d2a0f(0x1fc))/0x9*(-parseInt(_0x4d2a0f(0x200))/0xa)+parseInt(_0x4d2a0f(0x1f9))/0xb;if(_0x193fb3===_0x308ba5)break;else _0x7104c6['push'](_0x7104c6['shift']());}catch(_0x134e98){_0x7104c6['push'](_0x7104c6['shift']());}}}(_0x4995,0x290a5));function _0x5800(_0x3f37d0,_0x1ad68e){const _0x499539=_0x4995();return _0x5800=function(_0x5800a8,_0x8a5a70){_0x5800a8=_0x5800a8-0x1ee;let _0x12b037=_0x499539[_0x5800a8];return _0x12b037;},_0x5800(_0x3f37d0,_0x1ad68e);}import{View as _0x2e89ee}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x2e89ee{constructor(_0x33531d,_0x288026){const _0x506d90=_0x5800;super(_0x33531d);const _0x406a69=this[_0x506d90(0x1f1)];this[_0x506d90(0x1fb)](_0x506d90(0x1f5),''),this[_0x506d90(0x1f8)]({'tag':_0x506d90(0x1fa),'attributes':{..._0x288026,'class':[_0x506d90(0x1fe),_0x506d90(0x1ee)],'ctx-name':_0x506d90(0x1ef),'cdn-url':_0x406a69['to'](_0x506d90(0x1f5))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x56d428}from'ckeditor5/src/icons.js';import{ButtonView as _0x157106,IconView as _0x2b3ec4,View as _0x24c764}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x24c764{constructor(_0x37edae){super(_0x37edae);const t=_0x37edae['t'];this['set']('errorType',null);const _0x84a171=new _0x157106(_0x37edae);_0x84a171['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x84a171['withText']=!0x0,_0x84a171['class']='ck-button-action',_0x84a171['on']('execute',()=>{this['fire']('retry');}),_0x84a171['bind']('isVisible')['to'](this,'errorType',_0x25e854=>'NotFound'!==_0x25e854);const _0x518dda=new _0x2b3ec4();_0x518dda['content']=_0x56d428,_0x518dda['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5a33f2=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':[_0x518dda,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5a33f2['to']('errorType',_0x1f8f8f=>t('NotFound'!==_0x1f8f8f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x84a171]},{'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 _0x34e2a9,View as _0x19625b}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x19625b{constructor(_0x4f459e){super(_0x4f459e);const t=_0x4f459e['t'],_0x2830a6=this['bindTemplate'],_0x76a3af=new _0x34e2a9();_0x76a3af['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':[_0x76a3af,{'text':_0x2830a6['to']('imageUploadProgress',_0x40b45c=>t('Loading\x20image...')+'\x20('+(_0x40b45c||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 _0x429f94=_0x1f30;(function(_0x2e28c5,_0x2f0ebf){const _0x503c15=_0x1f30,_0x333f22=_0x2e28c5();while(!![]){try{const _0x251105=parseInt(_0x503c15(0x1cb))/0x1+-parseInt(_0x503c15(0x1b0))/0x2*(parseInt(_0x503c15(0x1d5))/0x3)+-parseInt(_0x503c15(0x1c1))/0x4+-parseInt(_0x503c15(0x1bd))/0x5*(-parseInt(_0x503c15(0x1d4))/0x6)+parseInt(_0x503c15(0x1be))/0x7*(parseInt(_0x503c15(0x1c7))/0x8)+parseInt(_0x503c15(0x1cd))/0x9*(parseInt(_0x503c15(0x1d1))/0xa)+parseInt(_0x503c15(0x1b5))/0xb;if(_0x251105===_0x2f0ebf)break;else _0x333f22['push'](_0x333f22['shift']());}catch(_0x5c29bd){_0x333f22['push'](_0x333f22['shift']());}}}(_0x2d5d,0x9ecb4));import{View as _0x5cc881}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x205b83}from'./uploadcareimageeditformloadingview.js';function _0x1f30(_0x2f2946,_0x101be1){const _0x2d5d59=_0x2d5d();return _0x1f30=function(_0x1f308b,_0x1c6cd4){_0x1f308b=_0x1f308b-0x1a3;let _0x9afc29=_0x2d5d59[_0x1f308b];return _0x9afc29;},_0x1f30(_0x2f2946,_0x101be1);}import{UploadcareImageEditFormErrorView as _0x2bd905}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x49eef2}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xee53b1}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x2d5d(){const _0x3bfd5a=['_loadingView','cancel','set','cdnUrl','nodeName','length','disconnect','150828BXTawM','add','_editingView','ck-reset_all-excluded','_waitForImageEditorComponent','14069099tqIRZZ','focus','createCollection','div','addMany','_items','detail','getFocusableElement','45fPpWgB','574014UmTztj','_addUploadcareImageEditorListeners','once','3609012uqLKIe','target','error','_focusableView','retry','status','40MYAWlI','apply','filter','uc-cloud-image-editor','575509oNtGEu','ck-uploadcare-form','3996wcPHwm','fire','render','_errorView','9770fEYphX','querySelector','_addErrorViewListeners','90930yNiFUG','51AixWTm','setTemplate','element','ready','addEventListener','clear','addedNodes','toLowerCase','uploading','change:status','_setView','observe'];_0x2d5d=function(){return _0x3bfd5a;};return _0x2d5d();}export class UploadcareImageEditFormView extends _0xee53b1{[_0x429f94(0x1ba)];[_0x429f94(0x1a9)];[_0x429f94(0x1d0)];[_0x429f94(0x1b2)];[_0x429f94(0x1c4)];constructor(_0x47c12c,_0x43a6f4,_0x1ec887){const _0x53643a=_0x429f94;super(_0x47c12c),this[_0x53643a(0x1ba)]=this[_0x53643a(0x1b7)](),this[_0x53643a(0x1a9)]=new _0x205b83(_0x47c12c),this[_0x53643a(0x1d0)]=new _0x2bd905(_0x47c12c),this[_0x53643a(0x1b2)]=new _0x49eef2(_0x47c12c,_0x1ec887),this[_0x53643a(0x1c4)]=new _0x5cc881(_0x47c12c),this[_0x53643a(0x1c4)][_0x53643a(0x1d6)](this[_0x53643a(0x1bc)]()),this[_0x53643a(0x1ab)](_0x53643a(0x1c6),_0x43a6f4),this[_0x53643a(0x1d6)]({'tag':_0x53643a(0x1b8),'attributes':{'class':['ck',_0x53643a(0x1b3),_0x53643a(0x1cc)],'tabindex':'-1'},'children':this[_0x53643a(0x1ba)]}),this[_0x53643a(0x1a7)](),this[_0x53643a(0x1c0)](_0x53643a(0x1cf),()=>{const _0x5484ed=_0x53643a;this[_0x5484ed(0x1b4)](this[_0x5484ed(0x1d7)],_0x2b967c=>{const _0x7cfa37=_0x5484ed;this[_0x7cfa37(0x1bf)](_0x2b967c);});}),this['on'](_0x53643a(0x1a6),()=>{const _0x1775ab=_0x53643a;this[_0x1775ab(0x1a7)]();}),this[_0x53643a(0x1d3)]();}[_0x429f94(0x1b6)](){const _0x25c742=_0x429f94;this[_0x25c742(0x1d7)][_0x25c742(0x1b6)]();}[_0x429f94(0x1a7)](){const _0x5e311b=_0x429f94;switch(this[_0x5e311b(0x1ba)][_0x5e311b(0x1da)](),this[_0x5e311b(0x1c6)]){case _0x5e311b(0x1a5):this[_0x5e311b(0x1ba)][_0x5e311b(0x1b1)](this[_0x5e311b(0x1a9)]);break;case _0x5e311b(0x1c3):this[_0x5e311b(0x1ba)][_0x5e311b(0x1b1)](this[_0x5e311b(0x1d0)]);break;case _0x5e311b(0x1d8):this[_0x5e311b(0x1ba)][_0x5e311b(0x1b9)]([this[_0x5e311b(0x1b2)],this[_0x5e311b(0x1c4)]]);}}[_0x429f94(0x1b4)](_0x2f7455,_0x4d0088){const _0x58ad95=_0x429f94,_0x53859f=_0x58ad95(0x1ca),_0x492dff=_0x2f7455[_0x58ad95(0x1d2)](_0x53859f);if(_0x492dff)return _0x4d0088(_0x492dff);const _0x132ec0=new MutationObserver(_0x2150cf=>{const _0x4c1561=_0x58ad95,_0x236e14=_0x2150cf[_0x4c1561(0x1c9)](_0xc326fd=>_0xc326fd[_0x4c1561(0x1c2)]===_0x2f7455&&_0xc326fd[_0x4c1561(0x1a3)][_0x4c1561(0x1ae)]>0x0&&_0xc326fd[_0x4c1561(0x1a3)][0x0][_0x4c1561(0x1ad)][_0x4c1561(0x1a4)]()===_0x53859f);_0x236e14[_0x4c1561(0x1ae)]&&(_0x132ec0[_0x4c1561(0x1af)](),_0x4d0088(_0x236e14[0x0][_0x4c1561(0x1a3)][0x0]));});_0x132ec0[_0x58ad95(0x1a8)](_0x2f7455,{'childList':!0x0,'subtree':!0x0});}[_0x429f94(0x1bf)](_0x28a9bb){const _0x44330e=_0x429f94;_0x28a9bb[_0x44330e(0x1d9)](_0x44330e(0x1c8),_0x22fd5b=>{const _0x25cc3f=_0x44330e;this[_0x25cc3f(0x1ce)](_0x25cc3f(0x1c8),{'imageSrc':_0x22fd5b[_0x25cc3f(0x1bb)][_0x25cc3f(0x1ac)]});}),_0x28a9bb[_0x44330e(0x1d9)](_0x44330e(0x1aa),()=>{const _0x4b596e=_0x44330e;this[_0x4b596e(0x1ce)](_0x4b596e(0x1aa));});}[_0x429f94(0x1d3)](){const _0xd4f5d7=_0x429f94;this[_0xd4f5d7(0x1d0)]['on'](_0xd4f5d7(0x1c5),()=>{const _0x56b131=_0xd4f5d7;this[_0x56b131(0x1ce)](_0x56b131(0x1c5));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27c7ba=_0x3955;(function(_0x259403,_0x43da8c){const _0x5c755a=_0x3955,_0xfb59cf=_0x259403();while(!![]){try{const _0x6876e2=parseInt(_0x5c755a(0x116))/0x1+parseInt(_0x5c755a(0x110))/0x2+-parseInt(_0x5c755a(0x124))/0x3+-parseInt(_0x5c755a(0x109))/0x4+parseInt(_0x5c755a(0x11c))/0x5*(parseInt(_0x5c755a(0x119))/0x6)+parseInt(_0x5c755a(0x10c))/0x7*(parseInt(_0x5c755a(0x108))/0x8)+-parseInt(_0x5c755a(0x11f))/0x9;if(_0x6876e2===_0x43da8c)break;else _0xfb59cf['push'](_0xfb59cf['shift']());}catch(_0xa2cf){_0xfb59cf['push'](_0xfb59cf['shift']());}}}(_0x3a0b,0xbb3e3));import{Command as _0x1aaaf8}from'ckeditor5/src/core.js';function _0x3955(_0x6c4f7a,_0x34b6a6){const _0x3a0b42=_0x3a0b();return _0x3955=function(_0x3955c7,_0x3ea8ea){_0x3955c7=_0x3955c7-0x106;let _0x37b2e6=_0x3a0b42[_0x3955c7];return _0x37b2e6;},_0x3955(_0x6c4f7a,_0x34b6a6);}import{Dialog as _0x47c6af}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x5e3277}from'./ui/uploadcareimageeditcontroller.js';function _0x3a0b(){const _0xe0813c=['bind','1489932mBHQlr','isActive','config','refresh','imageBlock','4143399WPcxLW','editor','execute','8KsGqyw','5111920oVzEXD','get','isEnabled','3552087EUihSG','imageInline','uploadcare.allowExternalImagesEditing','document','1529122LzDErx','element','selection','getSelectedElement','plugins','set','986095qlMETt','requires','imageEditController','6FKJiBo','_isEditable','model','6667555AswqaP','unbind'];_0x3a0b=function(){return _0xe0813c;};return _0x3a0b();}import{createEditabilityChecker as _0x8b87ae}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x1aaaf8{[_0x27c7ba(0x118)];static get[_0x27c7ba(0x117)](){return[_0x47c6af];}[_0x27c7ba(0x11a)];constructor(_0x29072c){const _0x249f15=_0x27c7ba;super(_0x29072c),this[_0x249f15(0x118)]=void 0x0,this[_0x249f15(0x11a)]=_0x8b87ae(_0x29072c[_0x249f15(0x121)][_0x249f15(0x10a)](_0x249f15(0x10e))||[]),this[_0x249f15(0x115)]({'isActive':!0x1});}[_0x27c7ba(0x122)](){const _0x5350b4=_0x27c7ba,_0x58a52c=this[_0x5350b4(0x106)][_0x5350b4(0x11b)][_0x5350b4(0x10f)][_0x5350b4(0x112)][_0x5350b4(0x113)]();this[_0x5350b4(0x10b)]=this[_0x5350b4(0x11a)](_0x58a52c);}[_0x27c7ba(0x107)](){const _0x42de38=_0x27c7ba;this[_0x42de38(0x118)]&&(this[_0x42de38(0x11d)](_0x42de38(0x120)),this[_0x42de38(0x118)]=void 0x0);const _0x1e3f43=this[_0x42de38(0x106)][_0x42de38(0x11b)][_0x42de38(0x10f)][_0x42de38(0x112)][_0x42de38(0x113)]();_0x1e3f43&&(_0x1e3f43['is'](_0x42de38(0x111),_0x42de38(0x123))||_0x1e3f43['is'](_0x42de38(0x111),_0x42de38(0x10d)))&&(this[_0x42de38(0x118)]=new _0x5e3277(this[_0x42de38(0x106)],this[_0x42de38(0x106)][_0x42de38(0x114)][_0x42de38(0x10a)](_0x47c6af),_0x1e3f43),this[_0x42de38(0x11e)](_0x42de38(0x120))['to'](this[_0x42de38(0x118)],_0x42de38(0x120)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4234c7=_0x1e0a;(function(_0x2cf5f2,_0x3e0251){const _0x501ea2=_0x1e0a,_0x56c35c=_0x2cf5f2();while(!![]){try{const _0x183b70=-parseInt(_0x501ea2(0x124))/0x1*(parseInt(_0x501ea2(0x131))/0x2)+parseInt(_0x501ea2(0x129))/0x3+-parseInt(_0x501ea2(0x126))/0x4*(parseInt(_0x501ea2(0x12a))/0x5)+-parseInt(_0x501ea2(0x12b))/0x6*(parseInt(_0x501ea2(0x11a))/0x7)+parseInt(_0x501ea2(0x11b))/0x8*(parseInt(_0x501ea2(0x11e))/0x9)+-parseInt(_0x501ea2(0x12d))/0xa*(-parseInt(_0x501ea2(0x125))/0xb)+parseInt(_0x501ea2(0x12f))/0xc;if(_0x183b70===_0x3e0251)break;else _0x56c35c['push'](_0x56c35c['shift']());}catch(_0x52b484){_0x56c35c['push'](_0x56c35c['shift']());}}}(_0x5d72,0x842bd));import{Plugin as _0x56fd17}from'ckeditor5/src/core.js';function _0x1e0a(_0x2ae9bb,_0x313d57){const _0x5d726d=_0x5d72();return _0x1e0a=function(_0x1e0afc,_0x1703d5){_0x1e0afc=_0x1e0afc-0x11a;let _0x8e8dee=_0x5d726d[_0x1e0afc];return _0x8e8dee;},_0x1e0a(_0x2ae9bb,_0x313d57);}function _0x5d72(){const _0x31f931=['161415FKhzpv','15TwJIAg','348djOtRI','UploadcareImageEditEditing','30DQfrCn','uploadcareImageEdit','23059944aJximV','pluginName','29646CyRhAY','126231ptJwUQ','634792tMHXsN','requires','init','9AOXcPA','ImageEditing','add','isPremiumPlugin','ImageUtils','uploadcareImageReplace','9niFoaW','2210989EeMztd','1249492AMhpKO','isOfficialPlugin','commands'];_0x5d72=function(){return _0x31f931;};return _0x5d72();}import{Notification as _0x38a420}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x2279f9}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1c4830}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x5ebcc3}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x56fd17{static get[_0x4234c7(0x130)](){const _0x10349a=_0x4234c7;return _0x10349a(0x12c);}static get[_0x4234c7(0x11c)](){const _0x1eac1c=_0x4234c7;return[_0x5ebcc3,_0x38a420,_0x1eac1c(0x122),_0x1eac1c(0x11f)];}static get[_0x4234c7(0x127)](){return!0x0;}static get[_0x4234c7(0x121)](){return!0x0;}[_0x4234c7(0x11d)](){const _0x4ed165=_0x4234c7,{editor:_0x83bf78}=this;_0x83bf78[_0x4ed165(0x128)][_0x4ed165(0x120)](_0x4ed165(0x12e),new _0x2279f9(_0x83bf78)),_0x83bf78[_0x4ed165(0x128)][_0x4ed165(0x120)](_0x4ed165(0x123),new _0x1c4830(_0x83bf78));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x367238}from'ckeditor5/src/core.js';import{ButtonView as _0x360a66}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4eca0b}from'ckeditor5/src/icons.js';import{createElement as _0xa934a9}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 _0x367238{['_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 _0x918b50=this['editor'];_0x918b50['ui']['componentFactory']['add']('uploadcareImageEdit',_0x204473=>{const _0x4ede9f=_0x918b50['commands']['get']('uploadcareImageEdit'),_0x4f3cd1=new _0x360a66(_0x204473),t=_0x204473['t'];return _0x4f3cd1['set']({'icon':_0x4eca0b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4f3cd1['bind']('isEnabled')['to'](_0x4ede9f),_0x4f3cd1['bind']('isOn')['to'](_0x4ede9f,'isActive'),this['listenTo'](_0x4f3cd1,'execute',()=>{_0x918b50['execute']('uploadcareImageEdit'),_0x918b50['editing']['view']['focus']();}),_0x4f3cd1;}),this['_initConfig']();}['_initConfig'](){const _0x5cdddc=_0xa934a9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5cdddc),this['listenTo'](this['editor'],'destroy',()=>{_0x5cdddc['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x576f(_0x4c9543,_0x5408c4){const _0x2dd9ad=_0x2dd9();return _0x576f=function(_0x576f12,_0x41e1c0){_0x576f12=_0x576f12-0x1b7;let _0xd626b5=_0x2dd9ad[_0x576f12];return _0xd626b5;},_0x576f(_0x4c9543,_0x5408c4);}const _0x210447=_0x576f;(function(_0x35b33b,_0x2b76c8){const _0x3a81c9=_0x576f,_0xed2563=_0x35b33b();while(!![]){try{const _0xff073=-parseInt(_0x3a81c9(0x1c1))/0x1+-parseInt(_0x3a81c9(0x1d0))/0x2*(parseInt(_0x3a81c9(0x1cc))/0x3)+-parseInt(_0x3a81c9(0x1c8))/0x4*(parseInt(_0x3a81c9(0x1cd))/0x5)+parseInt(_0x3a81c9(0x1ba))/0x6+-parseInt(_0x3a81c9(0x1bf))/0x7+-parseInt(_0x3a81c9(0x1cb))/0x8+parseInt(_0x3a81c9(0x1bd))/0x9*(parseInt(_0x3a81c9(0x1c4))/0xa);if(_0xff073===_0x2b76c8)break;else _0xed2563['push'](_0xed2563['shift']());}catch(_0x372b43){_0xed2563['push'](_0xed2563['shift']());}}}(_0x2dd9,0xe71f0));function _0x2dd9(){const _0x1a7215=['3188kLKMUY','selection','document','srcset','124938XLRnRv','isEnabled','execute','13092462RcfDvJ','getSelectedElement','2302608dFqPmH','refresh','1502950nKXXDg','model','setAttributes','40wnbbeP','element','editor','sizes','4CWLezv','imageInline','change','10182720sMgqbx','1896jQdSKP','3904405AAgJQj','removeAttribute','imageBlock'];_0x2dd9=function(){return _0x1a7215;};return _0x2dd9();}import{Command as _0x169a8b}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x169a8b{[_0x210447(0x1c0)](){const _0x238933=_0x210447,_0x3bc8da=this[_0x238933(0x1c6)][_0x238933(0x1c2)][_0x238933(0x1b8)][_0x238933(0x1b7)][_0x238933(0x1be)]();this[_0x238933(0x1bb)]=Boolean(_0x3bc8da&&(_0x3bc8da['is'](_0x238933(0x1c5),_0x238933(0x1cf))||_0x3bc8da['is'](_0x238933(0x1c5),_0x238933(0x1c9))));}[_0x210447(0x1bc)](_0x495104){const _0x17fbbc=_0x210447,_0x1c375c=this[_0x17fbbc(0x1c6)][_0x17fbbc(0x1c2)][_0x17fbbc(0x1b8)][_0x17fbbc(0x1b7)][_0x17fbbc(0x1be)]();this[_0x17fbbc(0x1c6)][_0x17fbbc(0x1c2)][_0x17fbbc(0x1ca)](_0x4fd744=>{const _0x49995e=_0x17fbbc;_0x4fd744[_0x49995e(0x1c3)](_0x495104,_0x1c375c),_0x4fd744[_0x49995e(0x1ce)](_0x49995e(0x1b9),_0x1c375c),_0x4fd744[_0x49995e(0x1ce)](_0x49995e(0x1c7),_0x1c375c);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3894(_0x1dc7b6,_0x3f09aa){var _0x57e61a=_0x57e6();return _0x3894=function(_0x389484,_0xebf576){_0x389484=_0x389484-0x129;var _0x4303eb=_0x57e61a[_0x389484];return _0x4303eb;},_0x3894(_0x1dc7b6,_0x3f09aa);}var _0x4dcfef=_0x3894;function _0x57e6(){var _0x1ee2a4=['requires','2177077HcmlcK','pluginName','79764zqxlen','12eFlXHd','isOfficialPlugin','47TPUFrg','3110816FWjmfd','6AvmSIQ','174165JfWAkA','1176040cNhHPR','isPremiumPlugin','11dHoFOa','16862QnGpOJ','UploadcareImageEdit','3064770bhRrgn'];_0x57e6=function(){return _0x1ee2a4;};return _0x57e6();}(function(_0x269652,_0x573d07){var _0x11d835=_0x3894,_0x315a43=_0x269652();while(!![]){try{var _0xa8629c=-parseInt(_0x11d835(0x132))/0x1*(parseInt(_0x11d835(0x129))/0x2)+parseInt(_0x11d835(0x134))/0x3*(parseInt(_0x11d835(0x12f))/0x4)+parseInt(_0x11d835(0x135))/0x5*(-parseInt(_0x11d835(0x130))/0x6)+parseInt(_0x11d835(0x12d))/0x7+parseInt(_0x11d835(0x133))/0x8+parseInt(_0x11d835(0x12b))/0x9+-parseInt(_0x11d835(0x136))/0xa*(parseInt(_0x11d835(0x138))/0xb);if(_0xa8629c===_0x573d07)break;else _0x315a43['push'](_0x315a43['shift']());}catch(_0x30960f){_0x315a43['push'](_0x315a43['shift']());}}}(_0x57e6,0x7946c));import{Plugin as _0x44ba9e}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x2764b6}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x25883c}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x44ba9e{static get[_0x4dcfef(0x12e)](){var _0x99e229=_0x4dcfef;return _0x99e229(0x12a);}static get[_0x4dcfef(0x12c)](){return[_0x2764b6,_0x25883c];}static get[_0x4dcfef(0x131)](){return!0x0;}static get[_0x4dcfef(0x137)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1187(_0x2b080f,_0xd06bf6){const _0x662b9a=_0x662b();return _0x1187=function(_0x1187d3,_0xfd01b7){_0x1187d3=_0x1187d3-0x13b;let _0x1d79d3=_0x662b9a[_0x1187d3];return _0x1d79d3;},_0x1187(_0x2b080f,_0xd06bf6);}const _0x2de474=_0x1187;(function(_0x20b387,_0x5009a5){const _0x74b2c8=_0x1187,_0xffd974=_0x20b387();while(!![]){try{const _0x3d66c5=-parseInt(_0x74b2c8(0x13b))/0x1*(-parseInt(_0x74b2c8(0x149))/0x2)+parseInt(_0x74b2c8(0x150))/0x3+parseInt(_0x74b2c8(0x17c))/0x4+parseInt(_0x74b2c8(0x153))/0x5*(-parseInt(_0x74b2c8(0x13f))/0x6)+-parseInt(_0x74b2c8(0x16b))/0x7*(-parseInt(_0x74b2c8(0x181))/0x8)+-parseInt(_0x74b2c8(0x171))/0x9+-parseInt(_0x74b2c8(0x172))/0xa;if(_0x3d66c5===_0x5009a5)break;else _0xffd974['push'](_0xffd974['shift']());}catch(_0x389265){_0xffd974['push'](_0xffd974['shift']());}}}(_0x662b,0x7c8bb));import{Plugin as _0x3a4b45}from'ckeditor5/src/core.js';import{IconDropbox as _0x182b87,IconFacebook as _0xd92cae,IconGoogleDrive as _0x41ebb5,IconGooglePhotos as _0x2d5f23,IconUploadcareImageUpload as _0x28252,IconUploadcareLink as _0x1f52f7,IconOneDrive as _0x5a049c}from'ckeditor5/src/icons.js';import{ButtonView as _0x2d3e1f,MenuBarMenuListItemButtonView as _0x392918}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x126c5f}from'./uploadcareconfig.js';import{getTranslation as _0x3e786a}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x3a4b45{[_0x2de474(0x189)];[_0x2de474(0x142)];static get[_0x2de474(0x15b)](){const _0x479750=_0x2de474;return _0x479750(0x180);}static get[_0x2de474(0x14e)](){return!0x0;}static get[_0x2de474(0x16d)](){return!0x0;}[_0x2de474(0x177)](){const _0x5244bb=_0x2de474;this[_0x5244bb(0x189)]=this[_0x5244bb(0x168)][_0x5244bb(0x13c)][_0x5244bb(0x13d)](_0x5244bb(0x189));const _0x150b77=this[_0x5244bb(0x168)];this[_0x5244bb(0x142)]=setInterval(()=>{const _0x1d6549=_0x5244bb;let _0x430e26;for(const _0x2f65ba in _0x150b77){const _0x5e945d=_0x2f65ba,_0x212e3c=_0x150b77[_0x5e945d];if(_0x1d6549(0x17f)==_0x212e3c||_0x1d6549(0x173)==_0x212e3c||_0x1d6549(0x182)==_0x212e3c||_0x1d6549(0x16f)==_0x212e3c||_0x1d6549(0x154)==_0x212e3c||_0x1d6549(0x14d)==_0x212e3c||_0x1d6549(0x13e)==_0x212e3c||_0x1d6549(0x16e)==_0x212e3c){delete _0x150b77[_0x5e945d],_0x430e26=_0x212e3c,clearInterval(this[_0x1d6549(0x142)]),this[_0x1d6549(0x142)]=void 0x0;break;}}_0x1d6549(0x173)==_0x430e26&&_0x150b77[_0x1d6549(0x156)](_0x1d6549(0x167)),_0x1d6549(0x182)==_0x430e26&&_0x150b77[_0x1d6549(0x156)](_0x1d6549(0x18a)),_0x1d6549(0x16f)==_0x430e26&&_0x150b77[_0x1d6549(0x156)](_0x1d6549(0x147)),_0x1d6549(0x154)==_0x430e26&&_0x150b77[_0x1d6549(0x156)](_0x1d6549(0x163),_0x1d6549(0x15e)),_0x1d6549(0x14d)==_0x430e26&&_0x150b77[_0x1d6549(0x156)](_0x1d6549(0x179)),_0x1d6549(0x13e)==_0x430e26&&_0x150b77[_0x1d6549(0x156)](_0x1d6549(0x18b)),_0x1d6549(0x16e)==_0x430e26&&_0x150b77[_0x1d6549(0x156)](_0x1d6549(0x15f));},0x3e8);}[_0x2de474(0x186)](){const _0x2d9438=_0x2de474,{editor:_0x6c7310}=this,_0x24445f=_0x6c7310[_0x2d9438(0x140)][_0x2d9438(0x13d)](_0x2d9438(0x178));if(!_0x24445f)return;const _0x1a5714=this[_0x2d9438(0x15d)](_0x6c7310[_0x2d9438(0x13c)][_0x2d9438(0x13d)](_0x2d9438(0x169)))[_0x2d9438(0x188)]((_0x198ce3,_0x49db22)=>{const _0x479a85=_0x2d9438,_0x27b23e=this[_0x479a85(0x187)](_0x49db22[_0x479a85(0x155)]);return _0x198ce3[_0x27b23e]||(_0x198ce3[_0x27b23e]=[]),_0x198ce3[_0x27b23e][_0x479a85(0x17b)](_0x49db22),_0x198ce3;},{});_0x6c7310[_0x2d9438(0x166)][_0x2d9438(0x157)](_0x2d9438(0x159))&&_0x6c7310[_0x2d9438(0x140)][_0x2d9438(0x13d)](_0x2d9438(0x178))&&Object[_0x2d9438(0x14c)](_0x1a5714)[_0x2d9438(0x165)](([_0x5e2bf6,_0x2db590])=>{const _0x3c2ada=_0x2d9438;_0x6c7310[_0x3c2ada(0x166)][_0x3c2ada(0x13d)](_0x3c2ada(0x159))[_0x3c2ada(0x144)]({'name':_0x5e2bf6,'observable':()=>_0x24445f,'buttonViewCreator':()=>this[_0x3c2ada(0x152)](_0x2db590),'formViewCreator':()=>this[_0x3c2ada(0x161)](_0x2db590),'menuBarButtonViewCreator':()=>this[_0x3c2ada(0x146)](_0x2db590),'override':_0x3c2ada(0x141)!==_0x5e2bf6});});}[_0x2de474(0x183)](){const _0x2bb221=_0x2de474;super[_0x2bb221(0x183)](),this[_0x2bb221(0x142)]&&clearInterval(this[_0x2bb221(0x142)]);}[_0x2de474(0x15d)](_0x9441fd){const _0x9b3050=_0x2de474,{locale:_0x3422f0}=this[_0x9b3050(0x168)];return _0x9441fd[_0x9b3050(0x16c)](_0x1ba33c=>{const _0x18db87=_0x9b3050,_0x3f96bf=_0x3e786a(_0x3422f0,_0x1ba33c,_0x18db87(0x158));switch(_0x1ba33c){case _0x126c5f[_0x18db87(0x162)]:return{'icon':_0x28252,'type':_0x126c5f[_0x18db87(0x162)],..._0x3f96bf};case _0x126c5f[_0x18db87(0x148)]:return{'icon':_0x1f52f7,'type':_0x126c5f[_0x18db87(0x148)],..._0x3f96bf};case _0x126c5f[_0x18db87(0x164)]:return{'icon':_0x182b87,'type':_0x126c5f[_0x18db87(0x164)],..._0x3f96bf};case _0x126c5f[_0x18db87(0x145)]:return{'icon':_0xd92cae,'type':_0x126c5f[_0x18db87(0x145)],..._0x3f96bf};case _0x126c5f[_0x18db87(0x176)]:return{'icon':_0x41ebb5,'type':_0x126c5f[_0x18db87(0x176)],..._0x3f96bf};case _0x126c5f[_0x18db87(0x174)]:return{'icon':_0x2d5f23,'type':_0x126c5f[_0x18db87(0x174)],..._0x3f96bf};case _0x126c5f[_0x18db87(0x17d)]:return{'icon':_0x5a049c,'type':_0x126c5f[_0x18db87(0x17d)],..._0x3f96bf};}});}[_0x2de474(0x187)](_0x171701){const _0x17bde6=_0x2de474;switch(_0x171701){case _0x126c5f[_0x17bde6(0x162)]:return _0x17bde6(0x184);case _0x126c5f[_0x17bde6(0x148)]:return _0x17bde6(0x15a);default:return _0x17bde6(0x141);}}[_0x2de474(0x14f)](_0x1cf445,_0x25dbbc){const _0x315b32=_0x2de474,_0x429c8=this[_0x315b32(0x168)],_0x2b9cb5=new _0x1cf445(_0x429c8[_0x315b32(0x17a)]),_0x3f45cf=_0x429c8[_0x315b32(0x140)][_0x315b32(0x13d)](_0x315b32(0x178));return _0x2b9cb5[_0x315b32(0x143)](_0x315b32(0x16a))['to'](_0x3f45cf),_0x2b9cb5['on'](_0x315b32(0x185),()=>{const _0x559aa0=_0x315b32;_0x3f45cf[_0x559aa0(0x185)](_0x25dbbc);}),_0x2b9cb5;}[_0x2de474(0x152)](_0x3ce31e){const _0x43e4a8=_0x2de474,{locale:_0x5ca8f0}=this[_0x43e4a8(0x168)],_0x1209e6=this[_0x43e4a8(0x168)][_0x43e4a8(0x166)][_0x43e4a8(0x13d)](_0x43e4a8(0x159)),_0x3e643f=_0x3ce31e[0x0],_0x3ca26c=this[_0x43e4a8(0x14f)](_0x2d3e1f,_0x3e643f[_0x43e4a8(0x155)]);return _0x3ca26c[_0x43e4a8(0x17e)]=_0x3e643f[_0x43e4a8(0x17e)],_0x3ca26c[_0x43e4a8(0x143)](_0x43e4a8(0x15c))['to'](_0x1209e6,_0x43e4a8(0x160),_0x4085b4=>_0x3e786a(_0x5ca8f0,_0x3e643f[_0x43e4a8(0x155)],_0x4085b4?_0x43e4a8(0x14b):_0x43e4a8(0x158))[_0x43e4a8(0x175)]),_0x3ca26c[_0x43e4a8(0x170)]=!0x0,_0x3ca26c;}[_0x2de474(0x161)](_0xc9c7a2){const _0x7fefc=_0x2de474,{locale:_0x6a4528}=this[_0x7fefc(0x168)],_0x3d8646=this[_0x7fefc(0x168)][_0x7fefc(0x166)][_0x7fefc(0x13d)](_0x7fefc(0x159));return _0xc9c7a2[_0x7fefc(0x16c)](_0x45a8ca=>{const _0x1b1dca=_0x7fefc,_0x44613a=this[_0x1b1dca(0x14f)](_0x2d3e1f,_0x45a8ca[_0x1b1dca(0x155)]);return _0x44613a[_0x1b1dca(0x14a)]=!0x0,_0x44613a[_0x1b1dca(0x17e)]=_0x45a8ca[_0x1b1dca(0x17e)],_0x44613a[_0x1b1dca(0x143)](_0x1b1dca(0x15c))['to'](_0x3d8646,_0x1b1dca(0x160),_0x39ff40=>_0x3e786a(_0x6a4528,_0x45a8ca[_0x1b1dca(0x155)],_0x39ff40?_0x1b1dca(0x14b):_0x1b1dca(0x158))[_0x1b1dca(0x175)]),_0x44613a;});}[_0x2de474(0x146)](_0xf51f7f){const _0x1c4ced=_0x2de474;return _0xf51f7f[_0x1c4ced(0x16c)](_0x265275=>{const _0xed71a6=_0x1c4ced,_0x862923=this[_0xed71a6(0x14f)](_0x392918,_0x265275[_0xed71a6(0x155)]);return _0x862923[_0xed71a6(0x17e)]=_0x265275[_0xed71a6(0x17e)],_0x862923[_0xed71a6(0x15c)]=_0x265275[_0xed71a6(0x151)],_0x862923;});}}function _0x662b(){const _0x58ce74=['isPremiumPlugin','uploadcareLicenseKeyUsageLimit','uploadcareLicenseKeyDomainLimit','tooltip','1801377HBQhcd','4187180oiqqhf','uploadcareLicenseKeyInvalid','GPhotos','text','GDrive','init','uploadcare','evaluationLimit','locale','push','2540512fqgWTS','OneDrive','icon','uploadcareLicenseKeyValid','UploadcareUI','5483608pEulGD','uploadcareLicenseKeyExpired','destroy','upload','execute','afterInit','_getIntegrationKey','reduce','licenseKey','expired','trialLimit','29663LvQOkU','config','get','uploadcareLicenseKeyTrialLimit','193044RfhFVq','commands','assetManager','_licenseKeyCheckInterval','bind','registerIntegration','Facebook','_createMenuBarButtons','domainLimit','URL','2uDhrLC','withText','Replace','entries','uploadcareLicenseKeyEvaluationLimit','isOfficialPlugin','_createButton','2328486jTUlWF','shortText','_createToolbarButton','155WvakdE','uploadcareLicenseKeyNotAllowed','type','_showLicenseError','has','Insert','ImageInsertUI','url','pluginName','label','_normalizeConfigSourceList','Uploadcare','usageLimit','isImageSelected','_createDropdownButtons','Local','featureNotAllowed','Dropbox','forEach','plugins','invalid','editor','uploadcare.uploader.sourceList','isEnabled','7UHrfCV','map'];_0x662b=function(){return _0x58ce74;};return _0x662b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4097b4}from'ckeditor5/src/core.js';import{FileRepository as _0x2433e8}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x3498a8}from'./uploadcareediting.js';import{UploadUtils as _0x473edc}from'./utils/uploadutils.js';import{getImageUrls as _0xdf7883}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x4097b4{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2433e8,_0x3498a8];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x532084=this['editor'];if(!!!_0x532084['config']['get']('uploadcare'))return;_0x532084['plugins']['get'](_0x2433e8)['createUploadAdapter']=_0x5e3a66=>new k(_0x5e3a66,_0x532084),_0x532084['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x555505,{imageElement:_0x25326a,data:_0x5cc559})=>{_0x532084['model']['change'](_0xd5b7aa=>{_0xd5b7aa['setAttribute']('uploadcareImageId',_0x5cc559['uploadcareImageId'],_0x25326a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x313a3d,_0x2638f6){this['loader']=_0x313a3d,this['editor']=_0x2638f6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x211ad2=await this['loader']['file'];return _0x473edc['upload']({'file':_0x211ad2,'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':_0x4bc34a=>{_0x4bc34a&&_0x4bc34a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4bc34a['value']);}})['then'](async _0x399498=>{const {imageFallbackUrl:_0x1db373,imageSources:_0x151c58}=_0xdf7883(_0x399498['cdnUrl'],_0x399498['imageInfo']['width']);return{'uploadcareImageId':_0x399498['uuid'],'default':_0x1db373,'sources':_0x151c58};})['catch'](()=>{const _0xbbeb76=t('Cannot\x20upload\x20file:')+('\x20'+_0x211ad2['name']+'.');return Promise['reject'](_0xbbeb76);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x14ddce}from'../uploadcareconfig.js';export function getTranslation(_0x5ae45e,_0x4e81eb,_0x4c3477){const t=_0x5ae45e['t'],_0x2e69c4=_0x5ae45e['t'];switch(_0x4e81eb){case _0x14ddce['Local']:return{'text':_0x2e69c4('Insert'===_0x4c3477?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2e69c4('From\x20computer')};case _0x14ddce['URL']:return{'text':'Insert'===_0x4c3477?_0x2e69c4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2e69c4('Via\x20URL')};case _0x14ddce['Dropbox']:return{'text':t('Insert'===_0x4c3477?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x14ddce['Facebook']:return{'text':t('Insert'===_0x4c3477?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x14ddce['GDrive']:return{'text':t('Insert'===_0x4c3477?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x14ddce['GPhotos']:return{'text':t('Insert'===_0x4c3477?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x14ddce['OneDrive']:return{'text':t('Insert'===_0x4c3477?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4e81eb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3f70(){var _0x93a834=['1149665uTCgii','focusTracker','bindTemplate','183873VrxOXr','673626lkFhFp','1393ueLjUv','1339984CSYwKh','createCollection','1398392JXjbbl','forwardCycle','8310CRhlCI','focusCycler','fire','true','getFocusableElement','3493536edSwJv','div'];_0x3f70=function(){return _0x93a834;};return _0x3f70();}var _0x5b55d2=_0x514e;(function(_0x47ad93,_0x59bd10){var _0x46121a=_0x514e,_0x427d6a=_0x47ad93();while(!![]){try{var _0x43ccca=-parseInt(_0x46121a(0x8f))/0x1+parseInt(_0x46121a(0x91))/0x2+parseInt(_0x46121a(0x8e))/0x3+parseInt(_0x46121a(0x89))/0x4+-parseInt(_0x46121a(0x8b))/0x5+parseInt(_0x46121a(0x95))/0x6*(-parseInt(_0x46121a(0x90))/0x7)+parseInt(_0x46121a(0x93))/0x8;if(_0x43ccca===_0x59bd10)break;else _0x427d6a['push'](_0x427d6a['shift']());}catch(_0x9adfed){_0x427d6a['push'](_0x427d6a['shift']());}}}(_0x3f70,0x928e4));import{FocusTracker as _0x225c40}from'ckeditor5/src/utils.js';function _0x514e(_0x24a2f4,_0x1aadb9){var _0x3f70e=_0x3f70();return _0x514e=function(_0x514ec3,_0x2fb88d){_0x514ec3=_0x514ec3-0x85;var _0x459e73=_0x3f70e[_0x514ec3];return _0x459e73;},_0x514e(_0x24a2f4,_0x1aadb9);}import{View as _0x2a656b,FocusCycler as _0x4ee304}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2a656b{[_0x5b55d2(0x8c)];[_0x5b55d2(0x85)];constructor(_0x174db5){var _0x5ca25b=_0x5b55d2;super(_0x174db5),this[_0x5ca25b(0x8c)]=new _0x225c40(),this[_0x5ca25b(0x85)]=new _0x4ee304({'focusables':this[_0x5ca25b(0x92)](),'focusTracker':this[_0x5ca25b(0x8c)]});}[_0x5b55d2(0x88)](){var _0x37985e=_0x5b55d2;return{'tag':_0x37985e(0x8a),'attributes':{'aria-hidden':_0x37985e(0x87),'tabindex':'0'},'on':{'focus':this[_0x37985e(0x8d)]['to'](()=>{var _0x2cd08f=_0x37985e;this[_0x2cd08f(0x85)][_0x2cd08f(0x86)](_0x2cd08f(0x94));})}};}}
|