@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260104.0 → 0.0.0-nightly-next-20260104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x145464=_0x267c;(function(_0x37843b,_0x3ebc2f){const _0x278c5c=_0x267c,_0x3317aa=_0x37843b();while(!![]){try{const _0x527a13=parseInt(_0x278c5c(0xbf))/0x1*(-parseInt(_0x278c5c(0xdc))/0x2)+-parseInt(_0x278c5c(0xb3))/0x3+-parseInt(_0x278c5c(0xcb))/0x4+-parseInt(_0x278c5c(0xf0))/0x5*(parseInt(_0x278c5c(0x101))/0x6)+parseInt(_0x278c5c(0xdd))/0x7*(parseInt(_0x278c5c(0xb0))/0x8)+parseInt(_0x278c5c(0xee))/0x9+parseInt(_0x278c5c(0x100))/0xa*(parseInt(_0x278c5c(0xbc))/0xb);if(_0x527a13===_0x3ebc2f)break;else _0x3317aa['push'](_0x3317aa['shift']());}catch(_0x4fc469){_0x3317aa['push'](_0x3317aa['shift']());}}}(_0x3775,0x23156));import{Plugin as _0x12e2b9}from'ckeditor5/src/core.js';import{Dialog as _0x2c24d7}from'ckeditor5/src/ui.js';import{createElement as _0x571ef0,global as _0x3d7f3e,uid as _0x2105d5}from'ckeditor5/src/utils.js';function _0x3775(){const _0x548b5c=['downcast','\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','1723446oGacOe','replaceImageSource','597395pnisIl','afterInit','iconHrefResolver','editing','execute','isRegistered','uploadcare','getSelectedElement','schema','locale','imageInline','get','once','#uc-icon-arrow-down','conversion','querySelector','80hnXJmA','12egstdQ','render','contentLanguage','for','ucContextId','1064XmOboc','config','map','461787qeykwZ','commands','appendChild','editor','document','uploadcare.pubkey','_ctxElement','body','configElement','384626jGsOQq','view','uploadcare.uploader','108ajIVem','attributeToAttribute','_initCtx','elementToAttribute','selection','requires','href','removeAttribute','imageBlock','uc-config','_initConfig','uploadcareImageId','221800HaEZXC','ctxElement','uploadcareImageReplace','_configElement','cleanupImage','listenTo','remove','fromCharCode','UploadcareEditing','insertImage','isOfficialPlugin','uploader-','PictureEditing','_initImageProcessingIndicator','getAttribute','init','_initConversion','366LnocKW','7399fLKVAp','_initSchema','input[uploadcare-file-input]','upcast','uc-upload-ctx-provider','data-uc-image-id','extend','model','isPremiumPlugin','true','closeMax','add','pluginName','destroy','join'];_0x3775=function(){return _0x548b5c;};return _0x3775();}import{UploadcareCommand as _0xc62a35}from'./uploadcarecommand.js';function _0x267c(_0x35cce8,_0x4d756f){const _0x37750a=_0x3775();return _0x267c=function(_0x267c72,_0x21f1eb){_0x267c72=_0x267c72-0xad;let _0x54f4c1=_0x37750a[_0x267c72];return _0x54f4c1;},_0x267c(_0x35cce8,_0x4d756f);}import{UploadcareUploadAdapter as _0x588d05}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d5ba5}from'./utils/editingutils.js';export class UploadcareEditing extends _0x12e2b9{[_0x145464(0xce)]=null;[_0x145464(0xb9)]=null;static get[_0x145464(0xe9)](){const _0xfbfd30=_0x145464;return _0xfbfd30(0xd3);}static get[_0x145464(0xc4)](){const _0x1ea868=_0x145464;return[_0x1ea868(0xd7),_0x588d05,_0x2c24d7];}static get[_0x145464(0xd5)](){return!0x0;}static get[_0x145464(0xe5)](){return!0x0;}[_0x145464(0xaf)];get[_0x145464(0xbb)](){const _0x35c678=_0x145464;return this[_0x35c678(0xce)];}get[_0x145464(0xcc)](){const _0x471437=_0x145464;return this[_0x471437(0xb9)];}constructor(_0x3a0d8c){const _0x1120cb=_0x145464;super(_0x3a0d8c),this[_0x1120cb(0xaf)]=_0x2105d5();}[_0x145464(0xda)](){const _0x5283a8=_0x145464,_0x4d757e=this[_0x5283a8(0xb6)];_0x4d757e[_0x5283a8(0xb4)][_0x5283a8(0xe8)](_0x5283a8(0xf6),new _0xc62a35(_0x4d757e));}[_0x145464(0xf1)](){const _0x8a314e=_0x145464;this[_0x8a314e(0xde)](),this[_0x8a314e(0xdb)](),this[_0x8a314e(0xc9)](),this[_0x8a314e(0xc1)](),this[_0x8a314e(0xd8)](),this[_0x8a314e(0xd0)](this[_0x8a314e(0xb6)],_0x8a314e(0xea),()=>{const _0x6039e=_0x8a314e;this[_0x6039e(0xce)]&&(this[_0x6039e(0xce)][_0x6039e(0xd1)](),this[_0x6039e(0xce)]=null),this[_0x6039e(0xb9)]&&(this[_0x6039e(0xb9)][_0x6039e(0xd1)](),this[_0x6039e(0xb9)]=null);const _0x31efb0=_0x3d7f3e[_0x6039e(0xb7)][_0x6039e(0xff)](_0x6039e(0xdf));_0x31efb0&&_0x31efb0[_0x6039e(0xd1)]();}),async function(_0x1919d2){const _0x4a6be4=_0x154c71([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]),_0x4eb3cf=0x535f8c3a,_0x2afd57=0x5358f1e2^_0x4eb3cf,_0x21ec7c=window[_0x154c71([0x44,0x61,0x74,0x65])][_0x154c71([0x6e,0x6f,0x77])](),_0x308d43=_0x1919d2[_0x154c71([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x445198=new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18dee0=>{_0x308d43[_0x154c71([0x6f,0x6e,0x63,0x65])](_0x154c71([0x72,0x65,0x61,0x64,0x79]),_0x18dee0);}),_0x33f5b8={[_0x154c71([0x6b,0x74,0x79])]:_0x154c71([0x45,0x43]),[_0x154c71([0x75,0x73,0x65])]:_0x154c71([0x73,0x69,0x67]),[_0x154c71([0x63,0x72,0x76])]:_0x154c71([0x50,0x2d,0x32,0x35,0x36]),[_0x154c71([0x78])]:_0x154c71([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]),[_0x154c71([0x79])]:_0x154c71([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]),[_0x154c71([0x61,0x6c,0x67])]:_0x154c71([0x45,0x53,0x32,0x35,0x36])},_0x55ca0f=_0x308d43[_0x154c71([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x154c71([0x67,0x65,0x74])](_0x154c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30fa33(){let _0x24ffd3,_0x32208b=null,_0x20aecc=null;try{if(_0x55ca0f==_0x154c71([0x47,0x50,0x4c]))return _0x154c71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24ffd3=_0x1eac83(),!_0x24ffd3)return _0x154c71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24ffd3[_0x154c71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20aecc=_0x4d1b45(_0x24ffd3[_0x154c71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24ffd3[_0x154c71([0x6a,0x74,0x69])])),await _0xd00ef()?_0x4c34e2()?_0x62b083()?_0x154c71([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x43e573()?(_0x24ffd3[_0x154c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x154c71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32208b=_0x1071b8(_0x154c71([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24ffd3[_0x154c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x154c71([0x74,0x72,0x69,0x61,0x6c])&&(_0x32208b=_0x1071b8(_0x154c71([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x433de1()):_0x154c71([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x154c71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x154c71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x154c71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x62b083(){const _0x336364=[_0x154c71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x154c71([0x74,0x72,0x69,0x61,0x6c])][_0x154c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ffd3[_0x154c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21ec7c/0x3e8:0xe10*_0x2afd57;return _0x24ffd3[_0x154c71([0x65,0x78,0x70])]<_0x336364;}function _0x4c34e2(){const _0x2ed1a7=_0x24ffd3[_0x154c71([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ed1a7&&(!!_0x2ed1a7[_0x154c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154c71([0x2a]))||!!_0x2ed1a7[_0x154c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154c71([0x55,0x50,0x4c,0x43])));}function _0x43e573(){const _0x2498e3=_0x267c,_0x18329d=_0x24ffd3[_0x154c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18329d||0x0==_0x18329d[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xec318e}=new URL(window[_0x154c71([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2498e3(0xc5)]);if(_0x18329d[_0x154c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xec318e))return!0x0;const _0x22a813=_0xec318e[_0x154c71([0x73,0x70,0x6c,0x69,0x74])](_0x154c71([0x2e]));return _0x18329d[_0x154c71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ec9dc=>_0x5ec9dc[_0x154c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x154c71([0x2a])))[_0x154c71([0x6d,0x61,0x70])](_0x400e23=>_0x400e23[_0x154c71([0x73,0x70,0x6c,0x69,0x74])](_0x154c71([0x2e])))[_0x154c71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cf5d7=>_0x1cf5d7[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22a813[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x154c71([0x6d,0x61,0x70])](_0x4868f5=>Array(_0x22a813[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4868f5[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x154c71([0x66,0x69,0x6c,0x6c])](_0x4868f5[0x0]===_0x154c71([0x2a])?_0x154c71([0x2a]):'')[_0x154c71([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4868f5))[_0x154c71([0x73,0x6f,0x6d,0x65])](_0x6d0208=>_0x22a813[_0x154c71([0x65,0x76,0x65,0x72,0x79])]((_0x3a34bc,_0x8e2845)=>_0x6d0208[_0x8e2845]===_0x3a34bc||_0x6d0208[_0x8e2845]===_0x154c71([0x2a])));}function _0x433de1(){return _0x32208b&&_0x20aecc?new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x504efe,_0xf117d9)=>{_0x32208b[_0x154c71([0x74,0x68,0x65,0x6e])](_0x504efe,_0xf117d9),_0x20aecc[_0x154c71([0x74,0x68,0x65,0x6e])](_0x556a90=>{_0x556a90!=_0x154c71([0x56,0x61,0x6c,0x69,0x64])&&_0x504efe(_0x556a90);},_0xf117d9);}):_0x32208b||_0x20aecc||_0x154c71([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d1b45(_0x2424ac,_0xb73a16){return new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x579197=>{if(_0xffc3af())return _0x579197(_0x154c71([0x56,0x61,0x6c,0x69,0x64]));_0x2c0a28(),_0x308d43[_0x154c71([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x154c71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7afd49=!0x1;const _0x583cf7=_0x2105d5();function _0xe839c2(_0x24b459){return!!_0x24b459&&(typeof _0x24b459===_0x154c71([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x24b459===_0x154c71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x24b459[_0x154c71([0x74,0x68,0x65,0x6e])]===_0x154c71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x24b459[_0x154c71([0x63,0x61,0x74,0x63,0x68])]===_0x154c71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c972f(_0x43e75){_0x719636(_0x43e75)[_0x154c71([0x74,0x68,0x65,0x6e])](_0x60ad94=>{if(!_0x60ad94||_0x60ad94[_0x154c71([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x154c71([0x6f,0x6b]))return _0x154c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8a9fe(_0x4abb18(_0x583cf7+_0xb73a16))!=_0x60ad94[_0x154c71([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x154c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x154c71([0x56,0x61,0x6c,0x69,0x64]);})[_0x154c71([0x74,0x68,0x65,0x6e])](_0x3cf3e5=>(_0x417ca3(),_0x3cf3e5),()=>{const _0x26c60f=_0x2e064a();return null==_0x26c60f?(_0x417ca3(),_0x154c71([0x56,0x61,0x6c,0x69,0x64])):_0x154c71(_0x21ec7c-_0x26c60f>(0x7753083a^_0x4eb3cf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x154c71([0x74,0x68,0x65,0x6e])](_0x579197)[_0x154c71([0x63,0x61,0x74,0x63,0x68])](()=>{_0x579197(_0x154c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x296d0c=0x536962ba^_0x4eb3cf;function _0x417ca3(){const _0x1de784=_0x154c71([0x6c,0x6c,0x63,0x74,0x2d])+_0x8a9fe(_0x4abb18(_0x2424ac)),_0x4eb91f=_0x3fcd0d(_0x8a9fe(window[_0x154c71([0x4d,0x61,0x74,0x68])][_0x154c71([0x63,0x65,0x69,0x6c])](_0x21ec7c/_0x296d0c)));window[_0x154c71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x154c71([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1de784,_0x4eb91f);}function _0x2e064a(){const _0x21db3e=_0x154c71([0x6c,0x6c,0x63,0x74,0x2d])+_0x8a9fe(_0x4abb18(_0x2424ac)),_0x48805b=window[_0x154c71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x154c71([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21db3e);return _0x48805b?window[_0x154c71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fcd0d(_0x48805b),0x10)*_0x296d0c:null;}function _0x719636(_0x6b8c84){return new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x156034,_0x56c6db)=>{_0x6b8c84[_0x154c71([0x74,0x68,0x65,0x6e])](_0x156034,_0x56c6db),window[_0x154c71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56c6db,0x535e58fa^_0x4eb3cf);});}}_0x308d43[_0x154c71([0x6f,0x6e])](_0x154c71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f04e0,_0x3353c5)=>{if(_0x3353c5[0x0]!=_0x2424ac)return _0x579197(_0x154c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3353c5[0x1]={..._0x3353c5[0x1],[_0x154c71([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x583cf7};},{[_0x154c71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x154c71([0x68,0x69,0x67,0x68])}),_0x308d43[_0x154c71([0x6f,0x6e])](_0x154c71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x32f431=>{_0xe839c2(_0x32f431[_0x154c71([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7afd49=!0x0,_0x3c972f(_0x32f431[_0x154c71([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x154c71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x154c71([0x6c,0x6f,0x77])}),_0x445198[_0x154c71([0x74,0x68,0x65,0x6e])](()=>{_0x7afd49||_0x579197(_0x154c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xffc3af(){return _0x308d43[_0x154c71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x154c71([0x76,0x69,0x65,0x77])][_0x154c71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x154c71([0x61,0x75,0x74,0x6f]);}function _0x2c0a28(){_0x308d43[_0x154c71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x154c71([0x76,0x69,0x65,0x77])][_0x154c71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x154c71([0x61,0x75,0x74,0x6f]);}}function _0x1071b8(_0x3707fe){const _0x106d1e=[new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ecfb1=>setTimeout(_0x4ecfb1,0x5356b2f6^_0x4eb3cf)),_0x445198[_0x154c71([0x74,0x68,0x65,0x6e])](()=>new window[(_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x397cff=>{let _0xc825c4=0x0;_0x308d43[_0x154c71([0x6d,0x6f,0x64,0x65,0x6c])][_0x154c71([0x6f,0x6e])](_0x154c71([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4afb59,_0x6fde9a)=>{_0x6fde9a[0x0][_0x154c71([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc825c4++,_0xc825c4==(0x535f89d2^_0x4eb3cf)&&(_0x397cff(),_0x4afb59[_0x154c71([0x6f,0x66,0x66])]());});}))];return window[_0x154c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x154c71([0x72,0x61,0x63,0x65])](_0x106d1e)[_0x154c71([0x74,0x68,0x65,0x6e])](()=>_0x3707fe);}async function _0x52c7a8(){await _0x445198,_0x308d43[_0x154c71([0x6d,0x6f,0x64,0x65,0x6c])][_0x154c71([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc899d6,_0x308d43[_0x154c71([0x6d,0x6f,0x64,0x65,0x6c])][_0x154c71([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc899d6,_0x308d43[_0x154c71([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x154c71([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1fadb2(_0x542c64){const _0x50e3bc=_0x209882();_0x308d43[_0x50e3bc]=_0x154c71([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x542c64,_0x542c64!=_0x154c71([0x56,0x61,0x6c,0x69,0x64])&&_0x52c7a8();}function _0x209882(){const _0x530fa1=window[_0x154c71([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x154c71([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x154c71([0x6e,0x6f,0x77])]())[_0x154c71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x154c71([0x2e]),'');let _0x4c9bc7=_0x154c71([0x68]);for(let _0x15bb57=0x0;_0x15bb57<_0x530fa1[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15bb57+=0x2){let _0x4b3d98=window[_0x154c71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x530fa1[_0x154c71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15bb57,_0x15bb57+0x2));_0x4b3d98>=_0x4a6be4[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b3d98-=_0x4a6be4[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c9bc7+=_0x4a6be4[_0x4b3d98];}return _0x4c9bc7;}function _0x1eac83(){const _0x3dd300=_0x55ca0f[_0x154c71([0x73,0x70,0x6c,0x69,0x74])](_0x154c71([0x2e]));if(0x3!=_0x3dd300[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58ef5e(_0x3dd300[0x1]);function _0x58ef5e(_0x907395){const _0x36316b=_0x1f471c(_0x907395);return _0x36316b&&_0x1f7be6()?_0x36316b:null;function _0x1f7be6(){const _0x2047ba=_0x36316b[_0x154c71([0x6a,0x74,0x69])],_0x2e741d=window[_0x154c71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2047ba[_0x154c71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2047ba[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe92657={..._0x36316b,[_0x154c71([0x6a,0x74,0x69])]:_0x2047ba[_0x154c71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2047ba[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe92657[_0x154c71([0x76,0x63])],_0x4abb18(_0xe92657)==_0x2e741d;}}}async function _0xd00ef(){let _0x2ab95b=!0x0;try{const _0x50c7bb=_0x55ca0f[_0x154c71([0x73,0x70,0x6c,0x69,0x74])](_0x154c71([0x2e])),[_0x38f026,_0x5f0b41,_0x4b6db5]=_0x50c7bb;return _0x577d92(_0x38f026),await _0x501f7b(_0x38f026,_0x5f0b41,_0x4b6db5),_0x2ab95b;}catch{return!0x1;}function _0x577d92(_0x54df1b){const _0x5231b5=_0x1f471c(_0x54df1b);_0x5231b5&&_0x5231b5[_0x154c71([0x61,0x6c,0x67])]==_0x154c71([0x45,0x53,0x32,0x35,0x36])||(_0x2ab95b=!0x1);}async function _0x501f7b(_0x4e91d0,_0x44818a,_0x1d91fe){const _0x1508c1=window[_0x154c71([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x154c71([0x66,0x72,0x6f,0x6d])](_0x13cfb4(_0x1d91fe),_0x49d2e8=>_0x49d2e8[_0x154c71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc68ba5=new window[(_0x154c71([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x154c71([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e91d0+_0x154c71([0x2e])+_0x44818a),_0x15a3f7=window[_0x154c71([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x154c71([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15a3f7)return;const _0x1a2f93=await _0x15a3f7[_0x154c71([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x154c71([0x6a,0x77,0x6b]),_0x33f5b8,{[_0x154c71([0x6e,0x61,0x6d,0x65])]:_0x154c71([0x45,0x43,0x44,0x53,0x41]),[_0x154c71([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x154c71([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x154c71([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15a3f7[_0x154c71([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x154c71([0x6e,0x61,0x6d,0x65])]:_0x154c71([0x45,0x43,0x44,0x53,0x41]),[_0x154c71([0x68,0x61,0x73,0x68])]:{[_0x154c71([0x6e,0x61,0x6d,0x65])]:_0x154c71([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a2f93,_0x1508c1,_0xc68ba5)||(_0x2ab95b=!0x1);}}function _0x1f471c(_0x35b75e){return _0x35b75e[_0x154c71([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x154c71([0x65,0x79]))?JSON[_0x154c71([0x70,0x61,0x72,0x73,0x65])](_0x13cfb4(_0x35b75e)):null;}function _0x13cfb4(_0x39f85b){return window[_0x154c71([0x61,0x74,0x6f,0x62])](_0x39f85b[_0x154c71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x154c71([0x2b]))[_0x154c71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x154c71([0x2f])));}function _0x4abb18(_0x32f29b){let _0x21cb0c=0x1505;function _0x476c3d(_0x4ae7ce){for(let _0x5ccce4=0x0;_0x5ccce4<_0x4ae7ce[_0x154c71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ccce4++){const _0x19ac18=_0x4ae7ce[_0x154c71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ccce4);_0x21cb0c=(_0x21cb0c<<0x5)+_0x21cb0c+_0x19ac18,_0x21cb0c&=_0x21cb0c;}}function _0x3f4280(_0x23fe70){Array[_0x154c71([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23fe70)?_0x23fe70[_0x154c71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f4280):_0x23fe70&&typeof _0x23fe70==_0x154c71([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x154c71([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23fe70)[_0x154c71([0x73,0x6f,0x72,0x74])]()[_0x154c71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e3210,_0xe0a587])=>{_0x476c3d(_0x5e3210),_0x3f4280(_0xe0a587);}):_0x476c3d(window[_0x154c71([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23fe70));}return _0x3f4280(_0x32f29b),_0x21cb0c>>>0x0;}function _0x8a9fe(_0x422c4e){return _0x422c4e[_0x154c71([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x154c71([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x154c71([0x30]));}function _0x3fcd0d(_0x4ce00b){return _0x4ce00b[_0x154c71([0x73,0x70,0x6c,0x69,0x74])]('')[_0x154c71([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x154c71([0x6a,0x6f,0x69,0x6e])]('');}function _0xc899d6(){}function _0x154c71(_0x4b4ce2){const _0x4347fd=_0x267c;return _0x4b4ce2[_0x4347fd(0xb2)](_0x5534f5=>String[_0x4347fd(0xd2)](_0x5534f5))[_0x4347fd(0xeb)]('');}_0x1fadb2(await _0x30fa33());}(this);}[_0x145464(0xde)](){const _0x3021bc=_0x145464,_0x42f453=this[_0x3021bc(0xb6)][_0x3021bc(0xe4)][_0x3021bc(0xf8)];_0x42f453[_0x3021bc(0xf5)](_0x3021bc(0xc7))&&_0x42f453[_0x3021bc(0xe3)](_0x3021bc(0xc7),{'allowAttributes':[_0x3021bc(0xca)]}),_0x42f453[_0x3021bc(0xf5)](_0x3021bc(0xfa))&&_0x42f453[_0x3021bc(0xe3)](_0x3021bc(0xfa),{'allowAttributes':[_0x3021bc(0xca)]});}[_0x145464(0xdb)](){const _0x231010=_0x145464,_0x315017=this[_0x231010(0xb6)];_0x315017[_0x231010(0xfe)][_0x231010(0xae)](_0x231010(0xec))[_0x231010(0xc0)]({'model':_0x231010(0xca),'view':_0x231010(0xe2)}),_0x315017[_0x231010(0xfe)][_0x231010(0xae)](_0x231010(0xe0))[_0x231010(0xc2)]({'model':{'key':_0x231010(0xca),'value':_0x1826ae=>_0x1826ae[_0x231010(0xd9)](_0x231010(0xe2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ac901=_0x315017[_0x231010(0xb4)][_0x231010(0xfb)](_0x231010(0xef));_0x5ac901&&this[_0x231010(0xd0)](_0x5ac901,_0x231010(0xcf),(_0x23cd32,[_0x399523,_0x20cbd6])=>{const _0x2cc7e9=_0x231010;_0x399523[_0x2cc7e9(0xc6)](_0x2cc7e9(0xca),_0x20cbd6);});}[_0x145464(0xc9)](){const _0x547d29=_0x145464,_0x2baa47=this[_0x547d29(0xb6)][_0x547d29(0xb1)][_0x547d29(0xfb)](_0x547d29(0xbe))||{},_0x9cfe7d=this[_0x547d29(0xb6)][_0x547d29(0xb1)][_0x547d29(0xfb)](_0x547d29(0xb8))||'';this[_0x547d29(0xce)]=_0x571ef0(_0x3d7f3e[_0x547d29(0xb7)],_0x547d29(0xc8),{..._0x2baa47,'pubkey':_0x9cfe7d,'ctx-name':_0x547d29(0xd6)+this[_0x547d29(0xaf)],'sourceList':'','imgOnly':_0x547d29(0xe6),'removeCopyright':_0x547d29(0xe6),'localeName':this[_0x547d29(0xb6)][_0x547d29(0xf9)][_0x547d29(0xad)],'externalSourcesEmbedCss':_0x547d29(0xed)}),this[_0x547d29(0xce)][_0x547d29(0xf2)]=_0x3d3765=>{const _0x2c0fca=_0x547d29;if(_0x2c0fca(0xe7)==_0x3d3765)return _0x2c0fca(0xfd);},_0x3d7f3e[_0x547d29(0xb7)][_0x547d29(0xba)][_0x547d29(0xb5)](this[_0x547d29(0xce)]);}[_0x145464(0xc1)](){const _0x36a9d8=_0x145464;this[_0x36a9d8(0xb9)]=_0x571ef0(_0x3d7f3e[_0x36a9d8(0xb7)],_0x36a9d8(0xe1),{'ctx-name':_0x36a9d8(0xd6)+this[_0x36a9d8(0xaf)]}),_0x3d7f3e[_0x36a9d8(0xb7)][_0x36a9d8(0xba)][_0x36a9d8(0xb5)](this[_0x36a9d8(0xb9)]);}[_0x145464(0xd8)](){const _0x40e0a4=_0x145464,_0x1b6530=this[_0x40e0a4(0xb6)][_0x40e0a4(0xb4)][_0x40e0a4(0xfb)](_0x40e0a4(0xd4));_0x1b6530&&this[_0x40e0a4(0xd0)](_0x1b6530,_0x40e0a4(0xf4),()=>{const _0xd5953b=_0x40e0a4,_0x587c48=this[_0xd5953b(0xb6)][_0xd5953b(0xe4)][_0xd5953b(0xb7)][_0xd5953b(0xc3)][_0xd5953b(0xf7)]();_0x587c48&&_0x587c48[_0xd5953b(0xd9)](_0xd5953b(0xca))&&this[_0xd5953b(0xb6)][_0xd5953b(0xf3)][_0xd5953b(0xbd)][_0xd5953b(0xfc)](_0xd5953b(0x102),()=>{const _0x330692=_0xd5953b;_0x4d5ba5(this[_0x330692(0xb6)],_0x587c48);});});const _0xa6cce=this[_0x40e0a4(0xb6)][_0x40e0a4(0xb4)][_0x40e0a4(0xfb)](_0x40e0a4(0xcd));_0xa6cce&&this[_0x40e0a4(0xd0)](_0xa6cce,_0x40e0a4(0xf4),()=>{const _0x1d7f89=_0x40e0a4,_0x881251=this[_0x1d7f89(0xb6)][_0x1d7f89(0xe4)][_0x1d7f89(0xb7)][_0x1d7f89(0xc3)][_0x1d7f89(0xf7)]();_0x881251&&_0x881251[_0x1d7f89(0xd9)](_0x1d7f89(0xca))&&this[_0x1d7f89(0xb6)][_0x1d7f89(0xf3)][_0x1d7f89(0xbd)][_0x1d7f89(0xfc)](_0x1d7f89(0x102),()=>{const _0x5cd744=_0x1d7f89;_0x4d5ba5(this[_0x5cd744(0xb6)],_0x881251);});});}}
|
|
23
|
+
const _0x376094=_0x55aa;(function(_0x46e3fb,_0x257f7e){const _0x4c14c2=_0x55aa,_0x2d3a87=_0x46e3fb();while(!![]){try{const _0x301b0c=parseInt(_0x4c14c2(0x184))/0x1+parseInt(_0x4c14c2(0x16a))/0x2+parseInt(_0x4c14c2(0x167))/0x3+-parseInt(_0x4c14c2(0x19a))/0x4*(parseInt(_0x4c14c2(0x1b2))/0x5)+parseInt(_0x4c14c2(0x164))/0x6*(parseInt(_0x4c14c2(0x19f))/0x7)+parseInt(_0x4c14c2(0x199))/0x8*(-parseInt(_0x4c14c2(0x1a0))/0x9)+-parseInt(_0x4c14c2(0x162))/0xa*(parseInt(_0x4c14c2(0x17c))/0xb);if(_0x301b0c===_0x257f7e)break;else _0x2d3a87['push'](_0x2d3a87['shift']());}catch(_0x56462f){_0x2d3a87['push'](_0x2d3a87['shift']());}}}(_0x39f7,0x8c002));import{Plugin as _0x57a6fa}from'ckeditor5/src/core.js';import{Dialog as _0x35c0df}from'ckeditor5/src/ui.js';function _0x39f7(){const _0x3eb80c=['uc-config','_initSchema','selection','96341yTfrAs','9270sXynqx','appendChild','input[uploadcare-file-input]','isOfficialPlugin','for','commands','document','ucContextId','data-uc-image-id','config','once','conversion','locale','destroy','_initConversion','attributeToAttribute','uc-upload-ctx-provider','_configElement','12605tRzHhd','elementToAttribute','requires','replaceImageSource','join','map','7459060TIofLL','upcast','474UfbDHe','imageBlock','querySelector','3089109FFkodM','uploadcare.uploader','\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','1838436ptSJVj','add','render','ctxElement','fromCharCode','uploadcare.pubkey','true','_initConfig','remove','schema','listenTo','_initCtx','isPremiumPlugin','init','href','configElement','editor','get','22GcLUOv','afterInit','getSelectedElement','isRegistered','_initImageProcessingIndicator','uploadcareImageId','execute','uploadcare','340997bkCwuv','downcast','_ctxElement','iconHrefResolver','getAttribute','UploadcareEditing','#uc-icon-arrow-down','contentLanguage','view','editing','insertImage','body','closeMax','uploadcareImageReplace','pluginName','uploader-','PictureEditing','extend','cleanupImage','removeAttribute','imageInline','8408kutKeh','364ztpzOY','model'];_0x39f7=function(){return _0x3eb80c;};return _0x39f7();}import{createElement as _0x3be59a,global as _0x70ec66,uid as _0x4d65ff}from'ckeditor5/src/utils.js';function _0x55aa(_0x21d10b,_0x21161a){const _0x39f708=_0x39f7();return _0x55aa=function(_0x55aadb,_0x19e4a3){_0x55aadb=_0x55aadb-0x160;let _0xab0807=_0x39f708[_0x55aadb];return _0xab0807;},_0x55aa(_0x21d10b,_0x21161a);}import{UploadcareCommand as _0x4bcb60}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2ad8d3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4a2f34}from'./utils/editingutils.js';export class UploadcareEditing extends _0x57a6fa{[_0x376094(0x1b1)]=null;[_0x376094(0x186)]=null;static get[_0x376094(0x192)](){const _0x2b15a0=_0x376094;return _0x2b15a0(0x189);}static get[_0x376094(0x1b4)](){const _0xdc2a7c=_0x376094;return[_0xdc2a7c(0x194),_0x2ad8d3,_0x35c0df];}static get[_0x376094(0x1a3)](){return!0x0;}static get[_0x376094(0x176)](){return!0x0;}[_0x376094(0x1a7)];get[_0x376094(0x179)](){const _0x1ca3e0=_0x376094;return this[_0x1ca3e0(0x1b1)];}get[_0x376094(0x16d)](){const _0x14ded7=_0x376094;return this[_0x14ded7(0x186)];}constructor(_0x91767b){const _0x2fcdc7=_0x376094;super(_0x91767b),this[_0x2fcdc7(0x1a7)]=_0x4d65ff();}[_0x376094(0x177)](){const _0x3dd974=_0x376094,_0x1406ef=this[_0x3dd974(0x17a)];_0x1406ef[_0x3dd974(0x1a5)][_0x3dd974(0x16b)](_0x3dd974(0x183),new _0x4bcb60(_0x1406ef));}[_0x376094(0x17d)](){const _0x10d9b0=_0x376094;this[_0x10d9b0(0x19d)](),this[_0x10d9b0(0x1ae)](),this[_0x10d9b0(0x171)](),this[_0x10d9b0(0x175)](),this[_0x10d9b0(0x180)](),this[_0x10d9b0(0x174)](this[_0x10d9b0(0x17a)],_0x10d9b0(0x1ad),()=>{const _0x2b6253=_0x10d9b0;this[_0x2b6253(0x1b1)]&&(this[_0x2b6253(0x1b1)][_0x2b6253(0x172)](),this[_0x2b6253(0x1b1)]=null),this[_0x2b6253(0x186)]&&(this[_0x2b6253(0x186)][_0x2b6253(0x172)](),this[_0x2b6253(0x186)]=null);const _0x55d063=_0x70ec66[_0x2b6253(0x1a6)][_0x2b6253(0x166)](_0x2b6253(0x1a2));_0x55d063&&_0x55d063[_0x2b6253(0x172)]();}),async function(_0x38e05e){const _0x1d3690=_0x821afc([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]),_0x550aaa=0x535f8c3a,_0x2806a6=0x5358f1e2^_0x550aaa,_0x4ee221=window[_0x821afc([0x44,0x61,0x74,0x65])][_0x821afc([0x6e,0x6f,0x77])](),_0xc8ba29=_0x38e05e[_0x821afc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x512477=new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x572e9f=>{_0xc8ba29[_0x821afc([0x6f,0x6e,0x63,0x65])](_0x821afc([0x72,0x65,0x61,0x64,0x79]),_0x572e9f);}),_0x3d5f9b={[_0x821afc([0x6b,0x74,0x79])]:_0x821afc([0x45,0x43]),[_0x821afc([0x75,0x73,0x65])]:_0x821afc([0x73,0x69,0x67]),[_0x821afc([0x63,0x72,0x76])]:_0x821afc([0x50,0x2d,0x32,0x35,0x36]),[_0x821afc([0x78])]:_0x821afc([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]),[_0x821afc([0x79])]:_0x821afc([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]),[_0x821afc([0x61,0x6c,0x67])]:_0x821afc([0x45,0x53,0x32,0x35,0x36])},_0xa15b81=_0xc8ba29[_0x821afc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x821afc([0x67,0x65,0x74])](_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3967d4(){let _0x5232e4,_0x4034b1=null,_0x452393=null;try{if(_0xa15b81==_0x821afc([0x47,0x50,0x4c]))return _0x821afc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5232e4=_0x4fdd0b(),!_0x5232e4)return _0x821afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5232e4[_0x821afc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x452393=_0x15a3af(_0x5232e4[_0x821afc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5232e4[_0x821afc([0x6a,0x74,0x69])])),await _0x331965()?_0x5126ab()?_0x135613()?_0x821afc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38e7c5()?(_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x821afc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4034b1=_0x2bcf35(_0x821afc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x821afc([0x74,0x72,0x69,0x61,0x6c])&&(_0x4034b1=_0x2bcf35(_0x821afc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e8541()):_0x821afc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x821afc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x821afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x821afc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x135613(){const _0x52647a=[_0x821afc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x821afc([0x74,0x72,0x69,0x61,0x6c])][_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ee221/0x3e8:0xe10*_0x2806a6;return _0x5232e4[_0x821afc([0x65,0x78,0x70])]<_0x52647a;}function _0x5126ab(){const _0x289131=_0x5232e4[_0x821afc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x289131&&(!!_0x289131[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x821afc([0x2a]))||!!_0x289131[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x821afc([0x55,0x50,0x4c,0x43])));}function _0x38e7c5(){const _0x4719c9=_0x55aa,_0x5e563e=_0x5232e4[_0x821afc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e563e||0x0==_0x5e563e[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b4680}=new URL(window[_0x821afc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4719c9(0x178)]);if(_0x5e563e[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4680))return!0x0;const _0x4168b5=_0x2b4680[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e]));return _0x5e563e[_0x821afc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x756ae7=>_0x756ae7[_0x821afc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x821afc([0x2a])))[_0x821afc([0x6d,0x61,0x70])](_0xd5a3f9=>_0xd5a3f9[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e])))[_0x821afc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x410d55=>_0x410d55[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4168b5[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x821afc([0x6d,0x61,0x70])](_0x3295ac=>Array(_0x4168b5[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3295ac[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x821afc([0x66,0x69,0x6c,0x6c])](_0x3295ac[0x0]===_0x821afc([0x2a])?_0x821afc([0x2a]):'')[_0x821afc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3295ac))[_0x821afc([0x73,0x6f,0x6d,0x65])](_0xc2af84=>_0x4168b5[_0x821afc([0x65,0x76,0x65,0x72,0x79])]((_0x814bac,_0x46fef1)=>_0xc2af84[_0x46fef1]===_0x814bac||_0xc2af84[_0x46fef1]===_0x821afc([0x2a])));}function _0x4e8541(){return _0x4034b1&&_0x452393?new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x742172,_0x119867)=>{_0x4034b1[_0x821afc([0x74,0x68,0x65,0x6e])](_0x742172,_0x119867),_0x452393[_0x821afc([0x74,0x68,0x65,0x6e])](_0x3bc19f=>{_0x3bc19f!=_0x821afc([0x56,0x61,0x6c,0x69,0x64])&&_0x742172(_0x3bc19f);},_0x119867);}):_0x4034b1||_0x452393||_0x821afc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15a3af(_0x18e588,_0x69a7ce){return new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28847e=>{if(_0x4ba2ce())return _0x28847e(_0x821afc([0x56,0x61,0x6c,0x69,0x64]));_0x1f814a(),_0xc8ba29[_0x821afc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x821afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a7489=!0x1;const _0x440f1b=_0x4d65ff();function _0x4b0a08(_0x668c75){return!!_0x668c75&&(typeof _0x668c75===_0x821afc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x668c75===_0x821afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x668c75[_0x821afc([0x74,0x68,0x65,0x6e])]===_0x821afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x668c75[_0x821afc([0x63,0x61,0x74,0x63,0x68])]===_0x821afc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ff84c(_0x38daa1){_0x581e6b(_0x38daa1)[_0x821afc([0x74,0x68,0x65,0x6e])](_0x48291f=>{if(!_0x48291f||_0x48291f[_0x821afc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x821afc([0x6f,0x6b]))return _0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28e8f5(_0x239ba5(_0x440f1b+_0x69a7ce))!=_0x48291f[_0x821afc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x821afc([0x56,0x61,0x6c,0x69,0x64]);})[_0x821afc([0x74,0x68,0x65,0x6e])](_0x18f3ac=>(_0x8cf220(),_0x18f3ac),()=>{const _0x6ab554=_0x311e72();return null==_0x6ab554?(_0x8cf220(),_0x821afc([0x56,0x61,0x6c,0x69,0x64])):_0x821afc(_0x4ee221-_0x6ab554>(0x7753083a^_0x550aaa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x821afc([0x74,0x68,0x65,0x6e])](_0x28847e)[_0x821afc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x28847e(_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d64f9=0x536962ba^_0x550aaa;function _0x8cf220(){const _0x5f3d04=_0x821afc([0x6c,0x6c,0x63,0x74,0x2d])+_0x28e8f5(_0x239ba5(_0x18e588)),_0x28c74a=_0x1d30f0(_0x28e8f5(window[_0x821afc([0x4d,0x61,0x74,0x68])][_0x821afc([0x63,0x65,0x69,0x6c])](_0x4ee221/_0x5d64f9)));window[_0x821afc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x821afc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5f3d04,_0x28c74a);}function _0x311e72(){const _0x4f1b04=_0x821afc([0x6c,0x6c,0x63,0x74,0x2d])+_0x28e8f5(_0x239ba5(_0x18e588)),_0x5334b4=window[_0x821afc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x821afc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f1b04);return _0x5334b4?window[_0x821afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d30f0(_0x5334b4),0x10)*_0x5d64f9:null;}function _0x581e6b(_0x4d826d){return new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38dc7b,_0x4605ea)=>{_0x4d826d[_0x821afc([0x74,0x68,0x65,0x6e])](_0x38dc7b,_0x4605ea),window[_0x821afc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4605ea,0x535e58fa^_0x550aaa);});}}_0xc8ba29[_0x821afc([0x6f,0x6e])](_0x821afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb6b412,_0x4a0899)=>{if(_0x4a0899[0x0]!=_0x18e588)return _0x28847e(_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a0899[0x1]={..._0x4a0899[0x1],[_0x821afc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x440f1b};},{[_0x821afc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x821afc([0x68,0x69,0x67,0x68])}),_0xc8ba29[_0x821afc([0x6f,0x6e])](_0x821afc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4588b7=>{_0x4b0a08(_0x4588b7[_0x821afc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a7489=!0x0,_0x4ff84c(_0x4588b7[_0x821afc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x821afc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x821afc([0x6c,0x6f,0x77])}),_0x512477[_0x821afc([0x74,0x68,0x65,0x6e])](()=>{_0x3a7489||_0x28847e(_0x821afc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ba2ce(){return _0xc8ba29[_0x821afc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x821afc([0x76,0x69,0x65,0x77])][_0x821afc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x821afc([0x61,0x75,0x74,0x6f]);}function _0x1f814a(){_0xc8ba29[_0x821afc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x821afc([0x76,0x69,0x65,0x77])][_0x821afc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x821afc([0x61,0x75,0x74,0x6f]);}}function _0x2bcf35(_0x4979ac){const _0x5b3eed=[new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x131c5b=>setTimeout(_0x131c5b,0x5356b2f6^_0x550aaa)),_0x512477[_0x821afc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1833be=>{let _0x513bd1=0x0;_0xc8ba29[_0x821afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x821afc([0x6f,0x6e])](_0x821afc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a93e6,_0x596d90)=>{_0x596d90[0x0][_0x821afc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x513bd1++,_0x513bd1==(0x535f89d2^_0x550aaa)&&(_0x1833be(),_0x3a93e6[_0x821afc([0x6f,0x66,0x66])]());});}))];return window[_0x821afc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x821afc([0x72,0x61,0x63,0x65])](_0x5b3eed)[_0x821afc([0x74,0x68,0x65,0x6e])](()=>_0x4979ac);}async function _0x40247b(){await _0x512477,_0xc8ba29[_0x821afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x821afc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50ca84,_0xc8ba29[_0x821afc([0x6d,0x6f,0x64,0x65,0x6c])][_0x821afc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50ca84,_0xc8ba29[_0x821afc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x821afc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2979b4(_0x496432){const _0x5f2878=_0x5dfc2d();_0xc8ba29[_0x5f2878]=_0x821afc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x496432,_0x496432!=_0x821afc([0x56,0x61,0x6c,0x69,0x64])&&_0x40247b();}function _0x5dfc2d(){const _0x2cc63f=window[_0x821afc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x821afc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x821afc([0x6e,0x6f,0x77])]())[_0x821afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x821afc([0x2e]),'');let _0x4f4c6a=_0x821afc([0x68]);for(let _0x43669d=0x0;_0x43669d<_0x2cc63f[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43669d+=0x2){let _0x9ede59=window[_0x821afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cc63f[_0x821afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43669d,_0x43669d+0x2));_0x9ede59>=_0x1d3690[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9ede59-=_0x1d3690[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f4c6a+=_0x1d3690[_0x9ede59];}return _0x4f4c6a;}function _0x4fdd0b(){const _0x5468d0=_0xa15b81[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e]));if(0x3!=_0x5468d0[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x90b656(_0x5468d0[0x1]);function _0x90b656(_0x3f7d19){const _0x397bed=_0x5c6f34(_0x3f7d19);return _0x397bed&&_0x2e1d9a()?_0x397bed:null;function _0x2e1d9a(){const _0x480063=_0x397bed[_0x821afc([0x6a,0x74,0x69])],_0x22dada=window[_0x821afc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x480063[_0x821afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x480063[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xbc24a2={..._0x397bed,[_0x821afc([0x6a,0x74,0x69])]:_0x480063[_0x821afc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x480063[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xbc24a2[_0x821afc([0x76,0x63])],_0x239ba5(_0xbc24a2)==_0x22dada;}}}async function _0x331965(){let _0x30feb0=!0x0;try{const _0x236c82=_0xa15b81[_0x821afc([0x73,0x70,0x6c,0x69,0x74])](_0x821afc([0x2e])),[_0x25f77b,_0x3de70c,_0x58d512]=_0x236c82;return _0x40d5d3(_0x25f77b),await _0x195961(_0x25f77b,_0x3de70c,_0x58d512),_0x30feb0;}catch{return!0x1;}function _0x40d5d3(_0x1082a7){const _0x5eb68c=_0x5c6f34(_0x1082a7);_0x5eb68c&&_0x5eb68c[_0x821afc([0x61,0x6c,0x67])]==_0x821afc([0x45,0x53,0x32,0x35,0x36])||(_0x30feb0=!0x1);}async function _0x195961(_0xcfd2bd,_0x27e5b7,_0x287efa){const _0x14d432=window[_0x821afc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x821afc([0x66,0x72,0x6f,0x6d])](_0x14f775(_0x287efa),_0x4dec12=>_0x4dec12[_0x821afc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2aa179=new window[(_0x821afc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x821afc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcfd2bd+_0x821afc([0x2e])+_0x27e5b7),_0x4fd1a6=window[_0x821afc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x821afc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4fd1a6)return;const _0x4ec7c1=await _0x4fd1a6[_0x821afc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x821afc([0x6a,0x77,0x6b]),_0x3d5f9b,{[_0x821afc([0x6e,0x61,0x6d,0x65])]:_0x821afc([0x45,0x43,0x44,0x53,0x41]),[_0x821afc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x821afc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x821afc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4fd1a6[_0x821afc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x821afc([0x6e,0x61,0x6d,0x65])]:_0x821afc([0x45,0x43,0x44,0x53,0x41]),[_0x821afc([0x68,0x61,0x73,0x68])]:{[_0x821afc([0x6e,0x61,0x6d,0x65])]:_0x821afc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ec7c1,_0x14d432,_0x2aa179)||(_0x30feb0=!0x1);}}function _0x5c6f34(_0x2ac241){return _0x2ac241[_0x821afc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x821afc([0x65,0x79]))?JSON[_0x821afc([0x70,0x61,0x72,0x73,0x65])](_0x14f775(_0x2ac241)):null;}function _0x14f775(_0xf15433){return window[_0x821afc([0x61,0x74,0x6f,0x62])](_0xf15433[_0x821afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x821afc([0x2b]))[_0x821afc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x821afc([0x2f])));}function _0x239ba5(_0x1d8a1c){let _0x346f89=0x1505;function _0x5eff99(_0x40259f){for(let _0x253b4a=0x0;_0x253b4a<_0x40259f[_0x821afc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x253b4a++){const _0x4624ad=_0x40259f[_0x821afc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x253b4a);_0x346f89=(_0x346f89<<0x5)+_0x346f89+_0x4624ad,_0x346f89&=_0x346f89;}}function _0x25c6f9(_0x357541){Array[_0x821afc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x357541)?_0x357541[_0x821afc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25c6f9):_0x357541&&typeof _0x357541==_0x821afc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x821afc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x357541)[_0x821afc([0x73,0x6f,0x72,0x74])]()[_0x821afc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b868f,_0x347758])=>{_0x5eff99(_0x4b868f),_0x25c6f9(_0x347758);}):_0x5eff99(window[_0x821afc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x357541));}return _0x25c6f9(_0x1d8a1c),_0x346f89>>>0x0;}function _0x28e8f5(_0x59e828){return _0x59e828[_0x821afc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x821afc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x821afc([0x30]));}function _0x1d30f0(_0x4564f3){return _0x4564f3[_0x821afc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x821afc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x821afc([0x6a,0x6f,0x69,0x6e])]('');}function _0x50ca84(){}function _0x821afc(_0x41e636){const _0x27d05a=_0x55aa;return _0x41e636[_0x27d05a(0x161)](_0x58a858=>String[_0x27d05a(0x16e)](_0x58a858))[_0x27d05a(0x160)]('');}_0x2979b4(await _0x3967d4());}(this);}[_0x376094(0x19d)](){const _0x3d1dc6=_0x376094,_0x2cc32d=this[_0x3d1dc6(0x17a)][_0x3d1dc6(0x19b)][_0x3d1dc6(0x173)];_0x2cc32d[_0x3d1dc6(0x17f)](_0x3d1dc6(0x165))&&_0x2cc32d[_0x3d1dc6(0x195)](_0x3d1dc6(0x165),{'allowAttributes':[_0x3d1dc6(0x181)]}),_0x2cc32d[_0x3d1dc6(0x17f)](_0x3d1dc6(0x198))&&_0x2cc32d[_0x3d1dc6(0x195)](_0x3d1dc6(0x198),{'allowAttributes':[_0x3d1dc6(0x181)]});}[_0x376094(0x1ae)](){const _0x287bca=_0x376094,_0x574fac=this[_0x287bca(0x17a)];_0x574fac[_0x287bca(0x1ab)][_0x287bca(0x1a4)](_0x287bca(0x185))[_0x287bca(0x1af)]({'model':_0x287bca(0x181),'view':_0x287bca(0x1a8)}),_0x574fac[_0x287bca(0x1ab)][_0x287bca(0x1a4)](_0x287bca(0x163))[_0x287bca(0x1b3)]({'model':{'key':_0x287bca(0x181),'value':_0x370b50=>_0x370b50[_0x287bca(0x188)](_0x287bca(0x1a8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d102e=_0x574fac[_0x287bca(0x1a5)][_0x287bca(0x17b)](_0x287bca(0x1b5));_0x5d102e&&this[_0x287bca(0x174)](_0x5d102e,_0x287bca(0x196),(_0x43a5c4,[_0x4043f0,_0x3bde62])=>{const _0x4d68ac=_0x287bca;_0x4043f0[_0x4d68ac(0x197)](_0x4d68ac(0x181),_0x3bde62);});}[_0x376094(0x171)](){const _0x35d5c5=_0x376094,_0x25b522=this[_0x35d5c5(0x17a)][_0x35d5c5(0x1a9)][_0x35d5c5(0x17b)](_0x35d5c5(0x168))||{},_0x445cf5=this[_0x35d5c5(0x17a)][_0x35d5c5(0x1a9)][_0x35d5c5(0x17b)](_0x35d5c5(0x16f))||'';this[_0x35d5c5(0x1b1)]=_0x3be59a(_0x70ec66[_0x35d5c5(0x1a6)],_0x35d5c5(0x19c),{..._0x25b522,'pubkey':_0x445cf5,'ctx-name':_0x35d5c5(0x193)+this[_0x35d5c5(0x1a7)],'sourceList':'','imgOnly':_0x35d5c5(0x170),'removeCopyright':_0x35d5c5(0x170),'localeName':this[_0x35d5c5(0x17a)][_0x35d5c5(0x1ac)][_0x35d5c5(0x18b)],'externalSourcesEmbedCss':_0x35d5c5(0x169)}),this[_0x35d5c5(0x1b1)][_0x35d5c5(0x187)]=_0x20db24=>{const _0x3c49ae=_0x35d5c5;if(_0x3c49ae(0x190)==_0x20db24)return _0x3c49ae(0x18a);},_0x70ec66[_0x35d5c5(0x1a6)][_0x35d5c5(0x18f)][_0x35d5c5(0x1a1)](this[_0x35d5c5(0x1b1)]);}[_0x376094(0x175)](){const _0x1b6166=_0x376094;this[_0x1b6166(0x186)]=_0x3be59a(_0x70ec66[_0x1b6166(0x1a6)],_0x1b6166(0x1b0),{'ctx-name':_0x1b6166(0x193)+this[_0x1b6166(0x1a7)]}),_0x70ec66[_0x1b6166(0x1a6)][_0x1b6166(0x18f)][_0x1b6166(0x1a1)](this[_0x1b6166(0x186)]);}[_0x376094(0x180)](){const _0x26b056=_0x376094,_0x250476=this[_0x26b056(0x17a)][_0x26b056(0x1a5)][_0x26b056(0x17b)](_0x26b056(0x18e));_0x250476&&this[_0x26b056(0x174)](_0x250476,_0x26b056(0x182),()=>{const _0x283afa=_0x26b056,_0x147eac=this[_0x283afa(0x17a)][_0x283afa(0x19b)][_0x283afa(0x1a6)][_0x283afa(0x19e)][_0x283afa(0x17e)]();_0x147eac&&_0x147eac[_0x283afa(0x188)](_0x283afa(0x181))&&this[_0x283afa(0x17a)][_0x283afa(0x18d)][_0x283afa(0x18c)][_0x283afa(0x1aa)](_0x283afa(0x16c),()=>{const _0x20e3cd=_0x283afa;_0x4a2f34(this[_0x20e3cd(0x17a)],_0x147eac);});});const _0x53ad32=this[_0x26b056(0x17a)][_0x26b056(0x1a5)][_0x26b056(0x17b)](_0x26b056(0x191));_0x53ad32&&this[_0x26b056(0x174)](_0x53ad32,_0x26b056(0x182),()=>{const _0x41ce65=_0x26b056,_0x7bf69c=this[_0x41ce65(0x17a)][_0x41ce65(0x19b)][_0x41ce65(0x1a6)][_0x41ce65(0x19e)][_0x41ce65(0x17e)]();_0x7bf69c&&_0x7bf69c[_0x41ce65(0x188)](_0x41ce65(0x181))&&this[_0x41ce65(0x17a)][_0x41ce65(0x18d)][_0x41ce65(0x18c)][_0x41ce65(0x1aa)](_0x41ce65(0x16c),()=>{const _0x587724=_0x41ce65;_0x4a2f34(this[_0x587724(0x17a)],_0x7bf69c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4ff9e3,ObservableMixin as _0x1df00b}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x35cbb2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x29f055}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x3caa03}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x306019}from'../../utils/uploadutils.js';import{getImageUrls as _0x2a6451,getImageDimension as _0x5d59c0}from'../../utils/editingutils.js';import{isAncestor as _0x35c99d}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1df00b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1a6ea8,_0x4e0c36,_0x1af0d2){super(),this['_editor']=_0x1a6ea8,this['_dialog']=_0x4e0c36,this['_imageElement']=_0x1af0d2,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 _0x2c30b0=this['_imageElement'],_0x209c0e=_0x2c30b0['getAttribute']('uploadcareImageId'),_0x1add2e=_0x2c30b0['getAttribute']('src');if(_0x209c0e)await this['_loadImageInfo'](_0x209c0e,_0x1add2e);else{if(this['_imageCache']['has'](_0x1add2e)){const _0x2a770e=this['_imageCache']['get'](_0x1add2e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a770e['url'],this['imageDimension']=_0x2a770e['dimension'],this['imageId']=_0x2a770e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x47f6d2}=this['_editor'],t=_0x47f6d2['t'],_0xe0d592=new _0x3caa03(_0x47f6d2,this['imageStatus'],this['_attributes']);_0xe0d592['bind']('status')['to'](this,'imageStatus'),_0xe0d592['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe0d592['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe0d592['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe0d592,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x29f055,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe0d592,'position':_0x35cbb2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe0d592['focus']();},'onHide':()=>{_0xe0d592['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d9c7a=>!_0x35c99d(_0x3d9c7a,_0xe0d592['element'])}});}['_loadImageInfo'](_0x1fac67,_0x348908){return _0x306019['getInfo'](_0x1fac67,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xff52c2=>{const {width:_0x46f5d7,height:_0x5d0b05}=_0xff52c2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x348908,this['imageDimension']={'width':_0x46f5d7,'height':_0x5d0b05},this['imageId']=_0x1fac67;})['catch'](_0x456c24=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x456c24['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x154ad6,_0x380d78){return this['_getImageAsFile'](_0x154ad6)['then'](_0x480399=>_0x306019['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':_0x380d78['signal'],'file':_0x480399,'onProgress':_0x5a2e37=>{_0x5a2e37&&_0x5a2e37['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5a2e37['value']));}}))['then'](_0x583297=>{const {width:_0x13f86d,height:_0x1e0496}=_0x583297['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x583297['cdnUrl'],this['imageDimension']={'width':_0x13f86d,'height':_0x1e0496},this['imageId']=_0x583297['uuid'],this['imageUploadProgress']=null;const _0x228d63=_0x154ad6['getAttribute']('src');this['_imageCache']['set'](_0x228d63,{'id':_0x583297['uuid'],'url':_0x583297['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x38011f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x38011f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x24300a,_0x4a64ab){_0x24300a['on']('apply',(_0x238424,_0x30bd75)=>{this['_replaceImage'](_0x4a64ab,_0x30bd75['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x24300a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x24300a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x469c3f,_0x17d78b,_0x408dac){const _0x2d55a3=this['_editor'],{width:_0x86ea91,height:_0x428501}=_0x5d59c0(_0x17d78b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x8e0e1f,imageSources:_0x3343ae}=_0x2a6451(_0x17d78b,_0x86ea91);_0x2d55a3['model']['change'](_0x19de99=>{if('$graveyard'===_0x469c3f['root']['rootName']){_0x2d55a3['execute']('insertImage',{'imageType':_0x469c3f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x469c3f['getAttributes']()),'uploadcareImageId':_0x408dac,'src':_0x8e0e1f,'sources':_0x3343ae,'width':_0x86ea91,'height':_0x428501}});const _0x18ebbb=_0x469c3f['getChildren']();_0x469c3f=_0x2d55a3['model']['document']['selection']['getSelectedElement']();for(const _0x326b12 of _0x18ebbb)_0x19de99['append'](_0x19de99['cloneElement'](_0x326b12),_0x469c3f);}else _0x19de99['setSelection'](_0x469c3f,'on'),_0x2d55a3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x469c3f['getAttributes']()),'uploadcareImageId':_0x408dac,'src':_0x8e0e1f,'sources':_0x3343ae,'width':_0x86ea91,'height':_0x428501},_0x469c3f);_0x19de99['setSelection'](_0x469c3f,'on');});}async['_getImageAsFile'](_0xb2e0ee){const _0x305c11=_0x4ff9e3['window'],_0x7f27b6=_0x4ff9e3['document']['location']['href'],_0x11cf9f=new _0x305c11['URL'](_0xb2e0ee['getAttribute']('src'),_0x7f27b6);if('data:'===_0x11cf9f['protocol']){const _0x4a0c96=_0x11cf9f['href']['split'](','),_0x54075c=_0x4a0c96[0x0]['match'](/:(.*?);/)[0x1],_0x294d04=_0x54075c['split']('/')[0x1],_0x5d5e8a=_0x305c11['atob'](_0x4a0c96[_0x4a0c96['length']-0x1]);let _0x2677d4=_0x5d5e8a['length'];const _0x57d745=new _0x305c11['Uint8Array'](_0x2677d4);for(;_0x2677d4--;)_0x57d745[_0x2677d4]=_0x5d5e8a['charCodeAt'](_0x2677d4);return new _0x305c11['File']([_0x57d745],'image.'+_0x294d04,{'type':_0x54075c});}const _0x5c6ec7=_0x11cf9f['href']['split']('/'),_0x45691a=_0x5c6ec7[_0x5c6ec7['length']-0x1],_0x43a5a0=_0x45691a['split']('.')[0x1];return _0x305c11['fetch'](_0x11cf9f['href'])['then'](_0x4a9319=>_0x4a9319['clone']()['blob']())['then'](_0xcf6b85=>new _0x305c11['File']([_0xcf6b85],_0x45691a,{'type':'image/'+_0x43a5a0}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4bbb0a,_0x3fac90){const _0x374b0c=_0x7dd6,_0x1b4b7c=_0x4bbb0a();while(!![]){try{const _0x3bff0a=-parseInt(_0x374b0c(0x19c))/0x1+parseInt(_0x374b0c(0x1a4))/0x2*(-parseInt(_0x374b0c(0x19e))/0x3)+-parseInt(_0x374b0c(0x19d))/0x4*(parseInt(_0x374b0c(0x1a1))/0x5)+parseInt(_0x374b0c(0x197))/0x6+parseInt(_0x374b0c(0x1a8))/0x7+parseInt(_0x374b0c(0x19f))/0x8*(-parseInt(_0x374b0c(0x198))/0x9)+parseInt(_0x374b0c(0x1a2))/0xa*(parseInt(_0x374b0c(0x19a))/0xb);if(_0x3bff0a===_0x3fac90)break;else _0x1b4b7c['push'](_0x1b4b7c['shift']());}catch(_0xd58ee7){_0x1b4b7c['push'](_0x1b4b7c['shift']());}}}(_0x12fd,0xdeb75));import{View as _0x4ebdee}from'ckeditor5/src/ui.js';function _0x12fd(){const _0xdb109f=['ck-uploadcare-theme','setTemplate','10594367OkUHlu','bindTemplate','1439214vZFfpX','8389323GrlQPU','image-edit','22khJQUR','uc-light','581496jhfXrc','4eJAzIL','5007iGtqjT','8biWKph','uc-cloud-image-editor','7907705gUkMqA','13364990Qsxsur','imageSrc','502grQPdn','set'];_0x12fd=function(){return _0xdb109f;};return _0x12fd();}function _0x7dd6(_0x37d55d,_0x4b7110){const _0x12fd28=_0x12fd();return _0x7dd6=function(_0x7dd6b1,_0x1e52d1){_0x7dd6b1=_0x7dd6b1-0x197;let _0x5421ad=_0x12fd28[_0x7dd6b1];return _0x5421ad;},_0x7dd6(_0x37d55d,_0x4b7110);}export class UploadcareImageEditFormEditingView extends _0x4ebdee{constructor(_0x9686bf,_0x3d8b40){const _0x121fb1=_0x7dd6;super(_0x9686bf);const _0x136e9a=this[_0x121fb1(0x1a9)];this[_0x121fb1(0x1a5)](_0x121fb1(0x1a3),''),this[_0x121fb1(0x1a7)]({'tag':_0x121fb1(0x1a0),'attributes':{..._0x3d8b40,'class':[_0x121fb1(0x19b),_0x121fb1(0x1a6)],'ctx-name':_0x121fb1(0x199),'cdn-url':_0x136e9a['to'](_0x121fb1(0x1a3))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4024d6}from'ckeditor5/src/icons.js';import{ButtonView as _0x498d0d,IconView as _0x2f7568,View as _0x371cdf}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x371cdf{constructor(_0x4b4717){super(_0x4b4717);const t=_0x4b4717['t'];this['set']('errorType',null);const _0x2a5212=new _0x498d0d(_0x4b4717);_0x2a5212['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2a5212['withText']=!0x0,_0x2a5212['class']='ck-button-action',_0x2a5212['on']('execute',()=>{this['fire']('retry');}),_0x2a5212['bind']('isVisible')['to'](this,'errorType',_0x3ca368=>'NotFound'!==_0x3ca368);const _0x42ecec=new _0x2f7568();_0x42ecec['content']=_0x4024d6,_0x42ecec['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x47c708=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':[_0x42ecec,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x47c708['to']('errorType',_0x1b715f=>t('NotFound'!==_0x1b715f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2a5212]},{'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 _0x5cc079,View as _0x156c5e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x156c5e{constructor(_0x5d24af){super(_0x5d24af);const t=_0x5d24af['t'],_0x484c3d=this['bindTemplate'],_0x1d71a1=new _0x5cc079();_0x1d71a1['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':[_0x1d71a1,{'text':_0x484c3d['to']('imageUploadProgress',_0x1eda28=>t('Loading\x20image...')+'\x20('+(_0x1eda28||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 _0x5c7fc8=_0x4582;function _0x4582(_0x4283a6,_0x3c2772){const _0x5f2b75=_0x5f2b();return _0x4582=function(_0x45822b,_0x9e064d){_0x45822b=_0x45822b-0xb2;let _0x3d3642=_0x5f2b75[_0x45822b];return _0x3d3642;},_0x4582(_0x4283a6,_0x3c2772);}(function(_0x3bc2cc,_0x5659f3){const _0x3b2a37=_0x4582,_0x59ae03=_0x3bc2cc();while(!![]){try{const _0x490793=-parseInt(_0x3b2a37(0xb3))/0x1*(-parseInt(_0x3b2a37(0xde))/0x2)+parseInt(_0x3b2a37(0xb8))/0x3+-parseInt(_0x3b2a37(0xcc))/0x4*(parseInt(_0x3b2a37(0xbe))/0x5)+parseInt(_0x3b2a37(0xb4))/0x6+parseInt(_0x3b2a37(0xc4))/0x7+parseInt(_0x3b2a37(0xdf))/0x8+-parseInt(_0x3b2a37(0xdb))/0x9;if(_0x490793===_0x5659f3)break;else _0x59ae03['push'](_0x59ae03['shift']());}catch(_0x203ddb){_0x59ae03['push'](_0x59ae03['shift']());}}}(_0x5f2b,0xcd697));import{View as _0x4ad4e5}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x35dc36}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1e42b4}from'./uploadcareimageeditformerrorview.js';function _0x5f2b(){const _0x275ad2=['createCollection','querySelector','length','retry','fire','detail','clear','ck-uploadcare-form','12033144fMihMq','addMany','once','206782iJNSsd','5466968kcmhZH','ck-reset_all-excluded','toLowerCase','target','_errorView','add','_addUploadcareImageEditorListeners','_loadingView','disconnect','change:status','2wEdmIw','114282WYCDdx','element','uploading','filter','1931307AvGgYo','_items','render','_focusableView','nodeName','_addErrorViewListeners','20LlbWst','cdnUrl','focus','getFocusableElement','addEventListener','observe','6134450SMoujT','ready','apply','div','set','_waitForImageEditorComponent','cancel','error','250936PuDFWq','setTemplate','uc-cloud-image-editor','status','addedNodes','_editingView','_setView'];_0x5f2b=function(){return _0x275ad2;};return _0x5f2b();}import{UploadcareImageEditFormEditingView as _0x27b0f1}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x207b70}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x207b70{[_0x5c7fc8(0xb9)];[_0x5c7fc8(0xe6)];[_0x5c7fc8(0xe3)];[_0x5c7fc8(0xd1)];[_0x5c7fc8(0xbb)];constructor(_0x4ee652,_0x1a6dc7,_0x3e9434){const _0x1257c7=_0x5c7fc8;super(_0x4ee652),this[_0x1257c7(0xb9)]=this[_0x1257c7(0xd3)](),this[_0x1257c7(0xe6)]=new _0x35dc36(_0x4ee652),this[_0x1257c7(0xe3)]=new _0x1e42b4(_0x4ee652),this[_0x1257c7(0xd1)]=new _0x27b0f1(_0x4ee652,_0x3e9434),this[_0x1257c7(0xbb)]=new _0x4ad4e5(_0x4ee652),this[_0x1257c7(0xbb)][_0x1257c7(0xcd)](this[_0x1257c7(0xc1)]()),this[_0x1257c7(0xc8)](_0x1257c7(0xcf),_0x1a6dc7),this[_0x1257c7(0xcd)]({'tag':_0x1257c7(0xc7),'attributes':{'class':['ck',_0x1257c7(0xe0),_0x1257c7(0xda)],'tabindex':'-1'},'children':this[_0x1257c7(0xb9)]}),this[_0x1257c7(0xd2)](),this[_0x1257c7(0xdd)](_0x1257c7(0xba),()=>{const _0xbf7ac2=_0x1257c7;this[_0xbf7ac2(0xc9)](this[_0xbf7ac2(0xb5)],_0x1fbcbe=>{const _0xdeb763=_0xbf7ac2;this[_0xdeb763(0xe5)](_0x1fbcbe);});}),this['on'](_0x1257c7(0xb2),()=>{const _0x10c046=_0x1257c7;this[_0x10c046(0xd2)]();}),this[_0x1257c7(0xbd)]();}[_0x5c7fc8(0xc0)](){const _0x10592b=_0x5c7fc8;this[_0x10592b(0xb5)][_0x10592b(0xc0)]();}[_0x5c7fc8(0xd2)](){const _0x1a7934=_0x5c7fc8;switch(this[_0x1a7934(0xb9)][_0x1a7934(0xd9)](),this[_0x1a7934(0xcf)]){case _0x1a7934(0xb6):this[_0x1a7934(0xb9)][_0x1a7934(0xe4)](this[_0x1a7934(0xe6)]);break;case _0x1a7934(0xcb):this[_0x1a7934(0xb9)][_0x1a7934(0xe4)](this[_0x1a7934(0xe3)]);break;case _0x1a7934(0xc5):this[_0x1a7934(0xb9)][_0x1a7934(0xdc)]([this[_0x1a7934(0xd1)],this[_0x1a7934(0xbb)]]);}}[_0x5c7fc8(0xc9)](_0xb651dc,_0x31eb96){const _0x3bd257=_0x5c7fc8,_0x1c96b6=_0x3bd257(0xce),_0x2ceab4=_0xb651dc[_0x3bd257(0xd4)](_0x1c96b6);if(_0x2ceab4)return _0x31eb96(_0x2ceab4);const _0x433ec0=new MutationObserver(_0x1742b0=>{const _0x48b513=_0x3bd257,_0x475899=_0x1742b0[_0x48b513(0xb7)](_0x10cb15=>_0x10cb15[_0x48b513(0xe2)]===_0xb651dc&&_0x10cb15[_0x48b513(0xd0)][_0x48b513(0xd5)]>0x0&&_0x10cb15[_0x48b513(0xd0)][0x0][_0x48b513(0xbc)][_0x48b513(0xe1)]()===_0x1c96b6);_0x475899[_0x48b513(0xd5)]&&(_0x433ec0[_0x48b513(0xe7)](),_0x31eb96(_0x475899[0x0][_0x48b513(0xd0)][0x0]));});_0x433ec0[_0x3bd257(0xc3)](_0xb651dc,{'childList':!0x0,'subtree':!0x0});}[_0x5c7fc8(0xe5)](_0x182c85){const _0x37607a=_0x5c7fc8;_0x182c85[_0x37607a(0xc2)](_0x37607a(0xc6),_0x28cc04=>{const _0x218448=_0x37607a;this[_0x218448(0xd7)](_0x218448(0xc6),{'imageSrc':_0x28cc04[_0x218448(0xd8)][_0x218448(0xbf)]});}),_0x182c85[_0x37607a(0xc2)](_0x37607a(0xca),()=>{const _0x3889f4=_0x37607a;this[_0x3889f4(0xd7)](_0x3889f4(0xca));});}[_0x5c7fc8(0xbd)](){const _0x1152ff=_0x5c7fc8;this[_0x1152ff(0xe3)]['on'](_0x1152ff(0xd6),()=>{const _0x5a985b=_0x1152ff;this[_0x5a985b(0xd7)](_0x5a985b(0xd6));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33299a=_0x34d5;function _0x34d5(_0x5d9ea3,_0x47b49c){const _0x3c4fcc=_0x3c4f();return _0x34d5=function(_0x34d581,_0x2f6528){_0x34d581=_0x34d581-0x14d;let _0x32bf08=_0x3c4fcc[_0x34d581];return _0x32bf08;},_0x34d5(_0x5d9ea3,_0x47b49c);}(function(_0x1af174,_0x1c9093){const _0x2cf28f=_0x34d5,_0x4febb0=_0x1af174();while(!![]){try{const _0x577bd8=-parseInt(_0x2cf28f(0x16c))/0x1*(parseInt(_0x2cf28f(0x157))/0x2)+parseInt(_0x2cf28f(0x15d))/0x3*(-parseInt(_0x2cf28f(0x16d))/0x4)+parseInt(_0x2cf28f(0x168))/0x5+parseInt(_0x2cf28f(0x14d))/0x6+-parseInt(_0x2cf28f(0x156))/0x7*(parseInt(_0x2cf28f(0x164))/0x8)+-parseInt(_0x2cf28f(0x152))/0x9+parseInt(_0x2cf28f(0x15f))/0xa*(parseInt(_0x2cf28f(0x15a))/0xb);if(_0x577bd8===_0x1c9093)break;else _0x4febb0['push'](_0x4febb0['shift']());}catch(_0x2c07d6){_0x4febb0['push'](_0x4febb0['shift']());}}}(_0x3c4f,0xab77d));import{Command as _0x3c7419}from'ckeditor5/src/core.js';import{Dialog as _0x3e6dd9}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2c5cd0}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1199bb}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3c7419{[_0x33299a(0x166)];static get[_0x33299a(0x158)](){return[_0x3e6dd9];}[_0x33299a(0x160)];constructor(_0x46ee66){const _0x2c6806=_0x33299a;super(_0x46ee66),this[_0x2c6806(0x166)]=void 0x0,this[_0x2c6806(0x160)]=_0x1199bb(_0x46ee66[_0x2c6806(0x163)][_0x2c6806(0x14f)](_0x2c6806(0x155))||[]),this[_0x2c6806(0x159)]({'isActive':!0x1});}[_0x33299a(0x162)](){const _0x740beb=_0x33299a,_0x2eb0b4=this[_0x740beb(0x15b)][_0x740beb(0x169)][_0x740beb(0x153)][_0x740beb(0x154)][_0x740beb(0x161)]();this[_0x740beb(0x167)]=this[_0x740beb(0x160)](_0x2eb0b4);}[_0x33299a(0x15c)](){const _0x28b1dd=_0x33299a;this[_0x28b1dd(0x166)]&&(this[_0x28b1dd(0x14e)](_0x28b1dd(0x165)),this[_0x28b1dd(0x166)]=void 0x0);const _0x535a82=this[_0x28b1dd(0x15b)][_0x28b1dd(0x169)][_0x28b1dd(0x153)][_0x28b1dd(0x154)][_0x28b1dd(0x161)]();_0x535a82&&(_0x535a82['is'](_0x28b1dd(0x150),_0x28b1dd(0x16a))||_0x535a82['is'](_0x28b1dd(0x150),_0x28b1dd(0x151)))&&(this[_0x28b1dd(0x166)]=new _0x2c5cd0(this[_0x28b1dd(0x15b)],this[_0x28b1dd(0x15b)][_0x28b1dd(0x16b)][_0x28b1dd(0x14f)](_0x3e6dd9),_0x535a82),this[_0x28b1dd(0x15e)](_0x28b1dd(0x165))['to'](this[_0x28b1dd(0x166)],_0x28b1dd(0x165)));}}function _0x3c4f(){const _0x24e397=['209teEOUY','editor','execute','6SevXxy','bind','1360570YlrBop','_isEditable','getSelectedElement','refresh','config','9999256zZclRL','isActive','imageEditController','isEnabled','2366950QEOJgX','model','imageBlock','plugins','1341513QrsEvI','27276SjzhGU','3770358jcCNob','unbind','get','element','imageInline','3415275UTtgJV','document','selection','uploadcare.allowExternalImagesEditing','7qUBxnO','2PKvPvP','requires','set'];_0x3c4f=function(){return _0x24e397;};return _0x3c4f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x474784=_0x3299;function _0x392b(){const _0x13b965=['uploadcareImageReplace','ImageUtils','3773cJWoKh','uploadcareImageEdit','ImageEditing','pluginName','6FFnYtQ','commands','requires','725432nVlXOu','138534SvVZQy','init','31390AlIpuk','isOfficialPlugin','2825124EVuRqX','169721JdHSJh','9diTDCY','1817715koFpOs','4nuHvro','UploadcareImageEditEditing','2205728tiZYru','isPremiumPlugin','add'];_0x392b=function(){return _0x13b965;};return _0x392b();}function _0x3299(_0x3500ef,_0x5e5ff2){const _0x392bf0=_0x392b();return _0x3299=function(_0x329907,_0x3e807c){_0x329907=_0x329907-0x1d8;let _0x23fe6d=_0x392bf0[_0x329907];return _0x23fe6d;},_0x3299(_0x3500ef,_0x5e5ff2);}(function(_0x5c3dec,_0x1a7af1){const _0x52a5e5=_0x3299,_0x1bd9da=_0x5c3dec();while(!![]){try{const _0x149f7c=parseInt(_0x52a5e5(0x1dc))/0x1*(-parseInt(_0x52a5e5(0x1ea))/0x2)+-parseInt(_0x52a5e5(0x1ee))/0x3*(-parseInt(_0x52a5e5(0x1df))/0x4)+parseInt(_0x52a5e5(0x1de))/0x5+-parseInt(_0x52a5e5(0x1db))/0x6+-parseInt(_0x52a5e5(0x1e1))/0x7+parseInt(_0x52a5e5(0x1ed))/0x8*(parseInt(_0x52a5e5(0x1dd))/0x9)+parseInt(_0x52a5e5(0x1d9))/0xa*(parseInt(_0x52a5e5(0x1e6))/0xb);if(_0x149f7c===_0x1a7af1)break;else _0x1bd9da['push'](_0x1bd9da['shift']());}catch(_0x4eb8ed){_0x1bd9da['push'](_0x1bd9da['shift']());}}}(_0x392b,0x44d64));import{Plugin as _0x11fc82}from'ckeditor5/src/core.js';import{Notification as _0x210c1e}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x515f34}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x4ecbe3}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x4cfe84}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x11fc82{static get[_0x474784(0x1e9)](){const _0x1a6a9b=_0x474784;return _0x1a6a9b(0x1e0);}static get[_0x474784(0x1ec)](){const _0x22e0df=_0x474784;return[_0x4cfe84,_0x210c1e,_0x22e0df(0x1e5),_0x22e0df(0x1e8)];}static get[_0x474784(0x1da)](){return!0x0;}static get[_0x474784(0x1e2)](){return!0x0;}[_0x474784(0x1d8)](){const _0x46812b=_0x474784,{editor:_0x127d06}=this;_0x127d06[_0x46812b(0x1eb)][_0x46812b(0x1e3)](_0x46812b(0x1e7),new _0x515f34(_0x127d06)),_0x127d06[_0x46812b(0x1eb)][_0x46812b(0x1e3)](_0x46812b(0x1e4),new _0x4ecbe3(_0x127d06));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x35a06e}from'ckeditor5/src/core.js';import{ButtonView as _0x2830cf}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x203f36}from'ckeditor5/src/icons.js';import{createElement as _0x5f02ad}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 _0x35a06e{['_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 _0x817255=this['editor'];_0x817255['ui']['componentFactory']['add']('uploadcareImageEdit',_0x133388=>{const _0x1512cd=_0x817255['commands']['get']('uploadcareImageEdit'),_0x39b45a=new _0x2830cf(_0x133388),t=_0x133388['t'];return _0x39b45a['set']({'icon':_0x203f36,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x39b45a['bind']('isEnabled')['to'](_0x1512cd),_0x39b45a['bind']('isOn')['to'](_0x1512cd,'isActive'),this['listenTo'](_0x39b45a,'execute',()=>{_0x817255['execute']('uploadcareImageEdit'),_0x817255['editing']['view']['focus']();}),_0x39b45a;}),this['_initConfig']();}['_initConfig'](){const _0x154ed9=_0x5f02ad(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x154ed9),this['listenTo'](this['editor'],'destroy',()=>{_0x154ed9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ba63c=_0x5776;function _0x373f(){const _0x5e33e4=['5924216BPVFAB','sizes','srcset','editor','refresh','imageBlock','getSelectedElement','2yWWVEl','execute','45dnfqoi','change','imageInline','element','6200670KSDjXx','5343095vieweR','setAttributes','3003069QWswKz','document','removeAttribute','3440304dqKasz','274648meNSCM','4634334JpDEfD','model','isEnabled','selection'];_0x373f=function(){return _0x5e33e4;};return _0x373f();}(function(_0xac0807,_0x4c31c2){const _0x42de02=_0x5776,_0x2eaccd=_0xac0807();while(!![]){try{const _0x90181c=-parseInt(_0x42de02(0x1d7))/0x1+-parseInt(_0x42de02(0x1ca))/0x2*(parseInt(_0x42de02(0x1d3))/0x3)+parseInt(_0x42de02(0x1d6))/0x4+-parseInt(_0x42de02(0x1d1))/0x5+-parseInt(_0x42de02(0x1d8))/0x6+-parseInt(_0x42de02(0x1d0))/0x7+parseInt(_0x42de02(0x1dc))/0x8*(parseInt(_0x42de02(0x1cc))/0x9);if(_0x90181c===_0x4c31c2)break;else _0x2eaccd['push'](_0x2eaccd['shift']());}catch(_0x1911c2){_0x2eaccd['push'](_0x2eaccd['shift']());}}}(_0x373f,0x88c5e));import{Command as _0x3b5b9a}from'ckeditor5/src/core.js';function _0x5776(_0x370599,_0x17864c){const _0x373f71=_0x373f();return _0x5776=function(_0x577697,_0x510e9b){_0x577697=_0x577697-0x1c4;let _0x252c69=_0x373f71[_0x577697];return _0x252c69;},_0x5776(_0x370599,_0x17864c);}export class UploadcareImageReplaceCommand extends _0x3b5b9a{[_0x2ba63c(0x1c7)](){const _0x1e1020=_0x2ba63c,_0x1c9cce=this[_0x1e1020(0x1c6)][_0x1e1020(0x1d9)][_0x1e1020(0x1d4)][_0x1e1020(0x1db)][_0x1e1020(0x1c9)]();this[_0x1e1020(0x1da)]=Boolean(_0x1c9cce&&(_0x1c9cce['is'](_0x1e1020(0x1cf),_0x1e1020(0x1c8))||_0x1c9cce['is'](_0x1e1020(0x1cf),_0x1e1020(0x1ce))));}[_0x2ba63c(0x1cb)](_0x193b3a){const _0x23a299=_0x2ba63c,_0xd60872=this[_0x23a299(0x1c6)][_0x23a299(0x1d9)][_0x23a299(0x1d4)][_0x23a299(0x1db)][_0x23a299(0x1c9)]();this[_0x23a299(0x1c6)][_0x23a299(0x1d9)][_0x23a299(0x1cd)](_0x386872=>{const _0x2511f5=_0x23a299;_0x386872[_0x2511f5(0x1d2)](_0x193b3a,_0xd60872),_0x386872[_0x2511f5(0x1d5)](_0x2511f5(0x1c5),_0xd60872),_0x386872[_0x2511f5(0x1d5)](_0x2511f5(0x1c4),_0xd60872);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0xa1a5d8=_0x2780;function _0x21bc(){var _0x38962a=['pluginName','7xaticO','requires','3856670PuhEXG','1669242afagIU','4151720xfIYcK','UploadcareImageEdit','isPremiumPlugin','6568056AsFsal','549796QuYGdm','195742fuWNhx','15ZKQmXW','isOfficialPlugin','691856TzJKyl'];_0x21bc=function(){return _0x38962a;};return _0x21bc();}(function(_0xd2237a,_0x19229d){var _0x257227=_0x2780,_0x5df7e9=_0xd2237a();while(!![]){try{var _0x1a01fc=parseInt(_0x257227(0x141))/0x1+parseInt(_0x257227(0x142))/0x2*(-parseInt(_0x257227(0x143))/0x3)+-parseInt(_0x257227(0x145))/0x4+parseInt(_0x257227(0x13b))/0x5+parseInt(_0x257227(0x13c))/0x6+-parseInt(_0x257227(0x147))/0x7*(-parseInt(_0x257227(0x13d))/0x8)+-parseInt(_0x257227(0x140))/0x9;if(_0x1a01fc===_0x19229d)break;else _0x5df7e9['push'](_0x5df7e9['shift']());}catch(_0x9a681a){_0x5df7e9['push'](_0x5df7e9['shift']());}}}(_0x21bc,0xb14b7));import{Plugin as _0x514355}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x550f91}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x497439}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x2780(_0x21db61,_0x16cf54){var _0x21bc61=_0x21bc();return _0x2780=function(_0x2780c5,_0x5a6055){_0x2780c5=_0x2780c5-0x13a;var _0x238ed2=_0x21bc61[_0x2780c5];return _0x238ed2;},_0x2780(_0x21db61,_0x16cf54);}export class UploadcareImageEdit extends _0x514355{static get[_0xa1a5d8(0x146)](){var _0x33a61c=_0xa1a5d8;return _0x33a61c(0x13e);}static get[_0xa1a5d8(0x13a)](){return[_0x550f91,_0x497439];}static get[_0xa1a5d8(0x144)](){return!0x0;}static get[_0xa1a5d8(0x13f)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x25c3(){const _0x56623d=['_createButton','13mvEnke','trialLimit','Uploadcare','licenseKey','Local','destroy','uploadcareLicenseKeyTrialLimit','5641908FhKOQP','_createDropdownButtons','bind','text','isEnabled','has','featureNotAllowed','reduce','OneDrive','tooltip','Replace','1158681JrffHO','shortText','UploadcareUI','plugins','5MHJmqT','7TjFALS','Insert','_licenseKeyCheckInterval','upload','_showLicenseError','push','assetManager','editor','url','init','afterInit','ImageInsertUI','_createToolbarButton','execute','config','31390CBnyQo','_createMenuBarButtons','uploadcareLicenseKeyUsageLimit','_getIntegrationKey','icon','get','commands','31072PUtlad','902xBMUxd','GPhotos','uploadcareLicenseKeyNotAllowed','entries','type','uploadcareLicenseKeyValid','isOfficialPlugin','withText','Dropbox','uploadcareLicenseKeyInvalid','expired','registerIntegration','20669196jbRTZK','map','Facebook','forEach','uploadcareLicenseKeyDomainLimit','isPremiumPlugin','1cCRmEP','3481020wCtGRC','GDrive','domainLimit','3438UDbdDH','evaluationLimit','URL','1078694bLmDHi','locale','pluginName','usageLimit','uploadcareLicenseKeyExpired','isImageSelected','label','uploadcare','uploadcareLicenseKeyEvaluationLimit','_normalizeConfigSourceList','invalid','uploadcare.uploader.sourceList'];_0x25c3=function(){return _0x56623d;};return _0x25c3();}const _0x508bc5=_0x1d6d;(function(_0x2c9559,_0x4eb71b){const _0x561fb2=_0x1d6d,_0x2c83da=_0x2c9559();while(!![]){try{const _0x6b5ac3=parseInt(_0x561fb2(0x110))/0x1*(parseInt(_0x561fb2(0x117))/0x2)+parseInt(_0x561fb2(0x136))/0x3+parseInt(_0x561fb2(0x111))/0x4*(parseInt(_0x561fb2(0xe6))/0x5)+parseInt(_0x561fb2(0x12b))/0x6*(-parseInt(_0x561fb2(0xe7))/0x7)+-parseInt(_0x561fb2(0xfd))/0x8*(parseInt(_0x561fb2(0x114))/0x9)+parseInt(_0x561fb2(0xf6))/0xa*(-parseInt(_0x561fb2(0xfe))/0xb)+parseInt(_0x561fb2(0x10a))/0xc*(parseInt(_0x561fb2(0x124))/0xd);if(_0x6b5ac3===_0x4eb71b)break;else _0x2c83da['push'](_0x2c83da['shift']());}catch(_0x23cacc){_0x2c83da['push'](_0x2c83da['shift']());}}}(_0x25c3,0xcc4fa));function _0x1d6d(_0x297ab9,_0x568141){const _0x25c3b9=_0x25c3();return _0x1d6d=function(_0x1d6d9e,_0x4a3cb6){_0x1d6d9e=_0x1d6d9e-0xe6;let _0x5d5c63=_0x25c3b9[_0x1d6d9e];return _0x5d5c63;},_0x1d6d(_0x297ab9,_0x568141);}import{Plugin as _0x5d786f}from'ckeditor5/src/core.js';import{IconDropbox as _0x1e61f7,IconFacebook as _0x329e3e,IconGoogleDrive as _0x557fec,IconGooglePhotos as _0x291b77,IconUploadcareImageUpload as _0x3bdbdf,IconUploadcareLink as _0x867b0a,IconOneDrive as _0xa0bf20}from'ckeditor5/src/icons.js';import{ButtonView as _0x4b299b,MenuBarMenuListItemButtonView as _0x5778fc}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x25784f}from'./uploadcareconfig.js';import{getTranslation as _0x2164b5}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 _0x5d786f{[_0x508bc5(0x127)];[_0x508bc5(0xe9)];static get[_0x508bc5(0x119)](){const _0x59179a=_0x508bc5;return _0x59179a(0x138);}static get[_0x508bc5(0x104)](){return!0x0;}static get[_0x508bc5(0x10f)](){return!0x0;}[_0x508bc5(0xf0)](){const _0x45ed5d=_0x508bc5;this[_0x45ed5d(0x127)]=this[_0x45ed5d(0xee)][_0x45ed5d(0xf5)][_0x45ed5d(0xfb)](_0x45ed5d(0x127));const _0x4c301c=this[_0x45ed5d(0xee)];this[_0x45ed5d(0xe9)]=setInterval(()=>{const _0x138901=_0x45ed5d;let _0x8cbf5b;for(const _0x244c9d in _0x4c301c){const _0x3702f9=_0x244c9d,_0x437a12=_0x4c301c[_0x3702f9];if(_0x138901(0x103)==_0x437a12||_0x138901(0x107)==_0x437a12||_0x138901(0x11b)==_0x437a12||_0x138901(0x10e)==_0x437a12||_0x138901(0x100)==_0x437a12||_0x138901(0x11f)==_0x437a12||_0x138901(0x12a)==_0x437a12||_0x138901(0xf8)==_0x437a12){delete _0x4c301c[_0x3702f9],_0x8cbf5b=_0x437a12,clearInterval(this[_0x138901(0xe9)]),this[_0x138901(0xe9)]=void 0x0;break;}}_0x138901(0x107)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x121)),_0x138901(0x11b)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x108)),_0x138901(0x10e)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x113)),_0x138901(0x100)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x131),_0x138901(0x126)),_0x138901(0x11f)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x115)),_0x138901(0x12a)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x125)),_0x138901(0xf8)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x11a));},0x3e8);}[_0x508bc5(0xf1)](){const _0x2b602f=_0x508bc5,{editor:_0x497d9a}=this,_0x2daf2c=_0x497d9a[_0x2b602f(0xfc)][_0x2b602f(0xfb)](_0x2b602f(0x11e));if(!_0x2daf2c)return;const _0x3c5178=this[_0x2b602f(0x120)](_0x497d9a[_0x2b602f(0xf5)][_0x2b602f(0xfb)](_0x2b602f(0x122)))[_0x2b602f(0x132)]((_0x53b81c,_0x364365)=>{const _0x409c2c=_0x2b602f,_0x358ca0=this[_0x409c2c(0xf9)](_0x364365[_0x409c2c(0x102)]);return _0x53b81c[_0x358ca0]||(_0x53b81c[_0x358ca0]=[]),_0x53b81c[_0x358ca0][_0x409c2c(0xec)](_0x364365),_0x53b81c;},{});_0x497d9a[_0x2b602f(0x139)][_0x2b602f(0x130)](_0x2b602f(0xf2))&&_0x497d9a[_0x2b602f(0xfc)][_0x2b602f(0xfb)](_0x2b602f(0x11e))&&Object[_0x2b602f(0x101)](_0x3c5178)[_0x2b602f(0x10d)](([_0x176d0b,_0x440a2b])=>{const _0xb3db63=_0x2b602f;_0x497d9a[_0xb3db63(0x139)][_0xb3db63(0xfb)](_0xb3db63(0xf2))[_0xb3db63(0x109)]({'name':_0x176d0b,'observable':()=>_0x2daf2c,'buttonViewCreator':()=>this[_0xb3db63(0xf3)](_0x440a2b),'formViewCreator':()=>this[_0xb3db63(0x12c)](_0x440a2b),'menuBarButtonViewCreator':()=>this[_0xb3db63(0xf7)](_0x440a2b),'override':_0xb3db63(0xed)!==_0x176d0b});});}[_0x508bc5(0x129)](){const _0x41c21f=_0x508bc5;super[_0x41c21f(0x129)](),this[_0x41c21f(0xe9)]&&clearInterval(this[_0x41c21f(0xe9)]);}[_0x508bc5(0x120)](_0x3e2e74){const _0x3ea81b=_0x508bc5,{locale:_0x4cf9b3}=this[_0x3ea81b(0xee)];return _0x3e2e74[_0x3ea81b(0x10b)](_0x168d43=>{const _0x414954=_0x3ea81b,_0x20848f=_0x2164b5(_0x4cf9b3,_0x168d43,_0x414954(0xe8));switch(_0x168d43){case _0x25784f[_0x414954(0x128)]:return{'icon':_0x3bdbdf,'type':_0x25784f[_0x414954(0x128)],..._0x20848f};case _0x25784f[_0x414954(0x116)]:return{'icon':_0x867b0a,'type':_0x25784f[_0x414954(0x116)],..._0x20848f};case _0x25784f[_0x414954(0x106)]:return{'icon':_0x1e61f7,'type':_0x25784f[_0x414954(0x106)],..._0x20848f};case _0x25784f[_0x414954(0x10c)]:return{'icon':_0x329e3e,'type':_0x25784f[_0x414954(0x10c)],..._0x20848f};case _0x25784f[_0x414954(0x112)]:return{'icon':_0x557fec,'type':_0x25784f[_0x414954(0x112)],..._0x20848f};case _0x25784f[_0x414954(0xff)]:return{'icon':_0x291b77,'type':_0x25784f[_0x414954(0xff)],..._0x20848f};case _0x25784f[_0x414954(0x133)]:return{'icon':_0xa0bf20,'type':_0x25784f[_0x414954(0x133)],..._0x20848f};}});}[_0x508bc5(0xf9)](_0x32cd59){const _0x5c4e9f=_0x508bc5;switch(_0x32cd59){case _0x25784f[_0x5c4e9f(0x128)]:return _0x5c4e9f(0xea);case _0x25784f[_0x5c4e9f(0x116)]:return _0x5c4e9f(0xef);default:return _0x5c4e9f(0xed);}}[_0x508bc5(0x123)](_0x311c61,_0x1f708b){const _0xf6812f=_0x508bc5,_0x1ae5de=this[_0xf6812f(0xee)],_0x38e92f=new _0x311c61(_0x1ae5de[_0xf6812f(0x118)]),_0x2f2b78=_0x1ae5de[_0xf6812f(0xfc)][_0xf6812f(0xfb)](_0xf6812f(0x11e));return _0x38e92f[_0xf6812f(0x12d)](_0xf6812f(0x12f))['to'](_0x2f2b78),_0x38e92f['on'](_0xf6812f(0xf4),()=>{const _0x35d1e2=_0xf6812f;_0x2f2b78[_0x35d1e2(0xf4)](_0x1f708b);}),_0x38e92f;}[_0x508bc5(0xf3)](_0x2f6029){const _0x275cfd=_0x508bc5,{locale:_0x5c81d3}=this[_0x275cfd(0xee)],_0x91e9a6=this[_0x275cfd(0xee)][_0x275cfd(0x139)][_0x275cfd(0xfb)](_0x275cfd(0xf2)),_0x26008e=_0x2f6029[0x0],_0xf06b0d=this[_0x275cfd(0x123)](_0x4b299b,_0x26008e[_0x275cfd(0x102)]);return _0xf06b0d[_0x275cfd(0xfa)]=_0x26008e[_0x275cfd(0xfa)],_0xf06b0d[_0x275cfd(0x12d)](_0x275cfd(0x11d))['to'](_0x91e9a6,_0x275cfd(0x11c),_0x5b6385=>_0x2164b5(_0x5c81d3,_0x26008e[_0x275cfd(0x102)],_0x5b6385?_0x275cfd(0x135):_0x275cfd(0xe8))[_0x275cfd(0x12e)]),_0xf06b0d[_0x275cfd(0x134)]=!0x0,_0xf06b0d;}[_0x508bc5(0x12c)](_0x1019a9){const _0x14a1b6=_0x508bc5,{locale:_0x4d1d58}=this[_0x14a1b6(0xee)],_0xa7373c=this[_0x14a1b6(0xee)][_0x14a1b6(0x139)][_0x14a1b6(0xfb)](_0x14a1b6(0xf2));return _0x1019a9[_0x14a1b6(0x10b)](_0x55bd8b=>{const _0x388f1f=_0x14a1b6,_0x1ef5c7=this[_0x388f1f(0x123)](_0x4b299b,_0x55bd8b[_0x388f1f(0x102)]);return _0x1ef5c7[_0x388f1f(0x105)]=!0x0,_0x1ef5c7[_0x388f1f(0xfa)]=_0x55bd8b[_0x388f1f(0xfa)],_0x1ef5c7[_0x388f1f(0x12d)](_0x388f1f(0x11d))['to'](_0xa7373c,_0x388f1f(0x11c),_0x2ba888=>_0x2164b5(_0x4d1d58,_0x55bd8b[_0x388f1f(0x102)],_0x2ba888?_0x388f1f(0x135):_0x388f1f(0xe8))[_0x388f1f(0x12e)]),_0x1ef5c7;});}[_0x508bc5(0xf7)](_0x175453){const _0x5336f8=_0x508bc5;return _0x175453[_0x5336f8(0x10b)](_0xe82bff=>{const _0x37ce08=_0x5336f8,_0x5902a5=this[_0x37ce08(0x123)](_0x5778fc,_0xe82bff[_0x37ce08(0x102)]);return _0x5902a5[_0x37ce08(0xfa)]=_0xe82bff[_0x37ce08(0xfa)],_0x5902a5[_0x37ce08(0x11d)]=_0xe82bff[_0x37ce08(0x137)],_0x5902a5;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x23a851}from'ckeditor5/src/core.js';import{FileRepository as _0x2ca938}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x1ebfbb}from'./uploadcareediting.js';import{UploadUtils as _0x27b8f1}from'./utils/uploadutils.js';import{getImageUrls as _0x25d019}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x23a851{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2ca938,_0x1ebfbb];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5d98f6=this['editor'];if(!!!_0x5d98f6['config']['get']('uploadcare'))return;_0x5d98f6['plugins']['get'](_0x2ca938)['createUploadAdapter']=_0x5d2bd4=>new k(_0x5d2bd4,_0x5d98f6),_0x5d98f6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x393f7d,{imageElement:_0x1d7603,data:_0x3cd618})=>{_0x5d98f6['model']['change'](_0x308563=>{_0x308563['setAttribute']('uploadcareImageId',_0x3cd618['uploadcareImageId'],_0x1d7603);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3daeeb,_0x5f2ca7){this['loader']=_0x3daeeb,this['editor']=_0x5f2ca7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x443af8=await this['loader']['file'];return _0x27b8f1['upload']({'file':_0x443af8,'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':_0x236c39=>{_0x236c39&&_0x236c39['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x236c39['value']);}})['then'](async _0x2648c0=>{const {imageFallbackUrl:_0x4f5745,imageSources:_0x410ee3}=_0x25d019(_0x2648c0['cdnUrl'],_0x2648c0['imageInfo']['width']);return{'uploadcareImageId':_0x2648c0['uuid'],'default':_0x4f5745,'sources':_0x410ee3};})['catch'](()=>{const _0x400e5d=t('Cannot\x20upload\x20file:')+('\x20'+_0x443af8['name']+'.');return Promise['reject'](_0x400e5d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xc3d7ec}from'../uploadcareconfig.js';export function getTranslation(_0x49efac,_0x58d8f5,_0x391729){const t=_0x49efac['t'],_0x8960c4=_0x49efac['t'];switch(_0x58d8f5){case _0xc3d7ec['Local']:return{'text':_0x8960c4('Insert'===_0x391729?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x8960c4('From\x20computer')};case _0xc3d7ec['URL']:return{'text':'Insert'===_0x391729?_0x8960c4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x8960c4('Via\x20URL')};case _0xc3d7ec['Dropbox']:return{'text':t('Insert'===_0x391729?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xc3d7ec['Facebook']:return{'text':t('Insert'===_0x391729?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xc3d7ec['GDrive']:return{'text':t('Insert'===_0x391729?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xc3d7ec['GPhotos']:return{'text':t('Insert'===_0x391729?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xc3d7ec['OneDrive']:return{'text':t('Insert'===_0x391729?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x58d8f5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x199294=_0x410c;(function(_0x316388,_0x423a06){var _0x3ec6b4=_0x410c,_0x5a96f2=_0x316388();while(!![]){try{var _0x41e9c3=parseInt(_0x3ec6b4(0x1df))/0x1*(parseInt(_0x3ec6b4(0x1d1))/0x2)+parseInt(_0x3ec6b4(0x1dd))/0x3*(parseInt(_0x3ec6b4(0x1d3))/0x4)+-parseInt(_0x3ec6b4(0x1d9))/0x5+parseInt(_0x3ec6b4(0x1da))/0x6+parseInt(_0x3ec6b4(0x1db))/0x7+parseInt(_0x3ec6b4(0x1d6))/0x8*(-parseInt(_0x3ec6b4(0x1e2))/0x9)+-parseInt(_0x3ec6b4(0x1e1))/0xa;if(_0x41e9c3===_0x423a06)break;else _0x5a96f2['push'](_0x5a96f2['shift']());}catch(_0x44177d){_0x5a96f2['push'](_0x5a96f2['shift']());}}}(_0x340b,0x1be4e));function _0x340b(){var _0x2d9a7a=['139677YKEDhl','getFocusableElement','1078630BODjbX','48258ZaTKKf','focusTracker','2bccXMc','forwardCycle','2836snARrz','div','true','88QLgUiS','fire','focusCycler','921545IpPCRH','259578jEGLtO','820897IaksVI','bindTemplate','699YwhUmS','createCollection'];_0x340b=function(){return _0x2d9a7a;};return _0x340b();}import{FocusTracker as _0xa218eb}from'ckeditor5/src/utils.js';import{View as _0x467182,FocusCycler as _0x7f7e8c}from'ckeditor5/src/ui.js';function _0x410c(_0x45c439,_0x463693){var _0x340b9e=_0x340b();return _0x410c=function(_0x410cda,_0x52f306){_0x410cda=_0x410cda-0x1d1;var _0x127208=_0x340b9e[_0x410cda];return _0x127208;},_0x410c(_0x45c439,_0x463693);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x467182{[_0x199294(0x1e3)];[_0x199294(0x1d8)];constructor(_0x84973a){var _0x41fbca=_0x199294;super(_0x84973a),this[_0x41fbca(0x1e3)]=new _0xa218eb(),this[_0x41fbca(0x1d8)]=new _0x7f7e8c({'focusables':this[_0x41fbca(0x1de)](),'focusTracker':this[_0x41fbca(0x1e3)]});}[_0x199294(0x1e0)](){var _0x47fdad=_0x199294;return{'tag':_0x47fdad(0x1d4),'attributes':{'aria-hidden':_0x47fdad(0x1d5),'tabindex':'0'},'on':{'focus':this[_0x47fdad(0x1dc)]['to'](()=>{var _0x581a7f=_0x47fdad;this[_0x581a7f(0x1d8)][_0x581a7f(0x1d7)](_0x581a7f(0x1d2));})}};}}
|