@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251229.0 → 0.0.0-nightly-next-20251229.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 _0x2a8722=_0x31ff;(function(_0x174a1a,_0x10b1bc){const _0x2f5da0=_0x31ff,_0x31b9d9=_0x174a1a();while(!![]){try{const _0x11e9ab=parseInt(_0x2f5da0(0xa7))/0x1*(-parseInt(_0x2f5da0(0xd1))/0x2)+parseInt(_0x2f5da0(0xa2))/0x3+-parseInt(_0x2f5da0(0x99))/0x4+parseInt(_0x2f5da0(0x98))/0x5+parseInt(_0x2f5da0(0xa6))/0x6+parseInt(_0x2f5da0(0xd7))/0x7*(-parseInt(_0x2f5da0(0xd6))/0x8)+-parseInt(_0x2f5da0(0xd9))/0x9*(-parseInt(_0x2f5da0(0xaf))/0xa);if(_0x11e9ab===_0x10b1bc)break;else _0x31b9d9['push'](_0x31b9d9['shift']());}catch(_0x2c272c){_0x31b9d9['push'](_0x31b9d9['shift']());}}}(_0x1b54,0x5dd5f));import{Plugin as _0x228d9}from'ckeditor5/src/core.js';import{Dialog as _0x3a49a0}from'ckeditor5/src/ui.js';import{createElement as _0x5ad123,global as _0x2fc513,uid as _0x370fff}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x482e1d}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3c3759}from'./uploadcareuploadadapter.js';function _0x31ff(_0x2df9d0,_0xc1a558){const _0x1b541d=_0x1b54();return _0x31ff=function(_0x31ff83,_0xcaf5dc){_0x31ff83=_0x31ff83-0x96;let _0x187ce9=_0x1b541d[_0x31ff83];return _0x187ce9;},_0x31ff(_0x2df9d0,_0xc1a558);}function _0x1b54(){const _0x4b5bb5=['632KcuxFu','add','destroy','configElement','isOfficialPlugin','_initConversion','listenTo','fromCharCode','1874450dneuah','join','querySelector','_ctxElement','upcast','href','requires','once','closeMax','body','_configElement','uc-upload-ctx-provider','_initConfig','imageInline','uploader-','document','_initSchema','render','input[uploadcare-file-input]','data-uc-image-id','removeAttribute','uploadcareImageReplace','remove','view','schema','_initCtx','map','editor','replaceImageSource','conversion','insertImage','getSelectedElement','getAttribute','commands','1236MLUFZw','appendChild','uploadcareImageId','extend','true','287288PlVVol','7hrgtKw','\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','9cBtQdy','_initImageProcessingIndicator','PictureEditing','#uc-icon-arrow-down','uploadcare.pubkey','uc-config','init','imageBlock','contentLanguage','execute','attributeToAttribute','uploadcare','UploadcareEditing','for','iconHrefResolver','editing','downcast','selection','config','ucContextId','2473465WHLdLs','1995700sBwKEc','isRegistered','locale','elementToAttribute','isPremiumPlugin','pluginName','get','uploadcare.uploader','afterInit','1471506NxSLYc','ctxElement','cleanupImage','model','822738sbJLJC'];_0x1b54=function(){return _0x4b5bb5;};return _0x1b54();}import{showImageProcessingIndicator as _0x44e825}from'./utils/editingutils.js';export class UploadcareEditing extends _0x228d9{[_0x2a8722(0xb9)]=null;[_0x2a8722(0xb2)]=null;static get[_0x2a8722(0x9e)](){const _0x2252a6=_0x2a8722;return _0x2252a6(0xe5);}static get[_0x2a8722(0xb5)](){const _0x4cd723=_0x2a8722;return[_0x4cd723(0xdb),_0x3c3759,_0x3a49a0];}static get[_0x2a8722(0xab)](){return!0x0;}static get[_0x2a8722(0x9d)](){return!0x0;}[_0x2a8722(0x97)];get[_0x2a8722(0xaa)](){const _0x4ab894=_0x2a8722;return this[_0x4ab894(0xb9)];}get[_0x2a8722(0xa3)](){const _0x15bd48=_0x2a8722;return this[_0x15bd48(0xb2)];}constructor(_0x1ae9ce){const _0x4014da=_0x2a8722;super(_0x1ae9ce),this[_0x4014da(0x97)]=_0x370fff();}[_0x2a8722(0xdf)](){const _0x264f27=_0x2a8722,_0x23d0f0=this[_0x264f27(0xca)];_0x23d0f0[_0x264f27(0xd0)][_0x264f27(0xa8)](_0x264f27(0xe4),new _0x482e1d(_0x23d0f0));}[_0x2a8722(0xa1)](){const _0x23e71b=_0x2a8722;this[_0x23e71b(0xbf)](),this[_0x23e71b(0xac)](),this[_0x23e71b(0xbb)](),this[_0x23e71b(0xc8)](),this[_0x23e71b(0xda)](),this[_0x23e71b(0xad)](this[_0x23e71b(0xca)],_0x23e71b(0xa9),()=>{const _0x4d6b4c=_0x23e71b;this[_0x4d6b4c(0xb9)]&&(this[_0x4d6b4c(0xb9)][_0x4d6b4c(0xc5)](),this[_0x4d6b4c(0xb9)]=null),this[_0x4d6b4c(0xb2)]&&(this[_0x4d6b4c(0xb2)][_0x4d6b4c(0xc5)](),this[_0x4d6b4c(0xb2)]=null);const _0x47d9db=_0x2fc513[_0x4d6b4c(0xbe)][_0x4d6b4c(0xb1)](_0x4d6b4c(0xc1));_0x47d9db&&_0x47d9db[_0x4d6b4c(0xc5)]();}),async function(_0x49946f){const _0x23b62e=_0x139f47([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]),_0xd52bf9=0x535f8c3a,_0x25d6e9=0x5358f172^_0xd52bf9,_0x564cfc=window[_0x139f47([0x44,0x61,0x74,0x65])][_0x139f47([0x6e,0x6f,0x77])](),_0x16bc14=_0x49946f[_0x139f47([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2be2d4=new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19cda5=>{_0x16bc14[_0x139f47([0x6f,0x6e,0x63,0x65])](_0x139f47([0x72,0x65,0x61,0x64,0x79]),_0x19cda5);}),_0x12a1d5={[_0x139f47([0x6b,0x74,0x79])]:_0x139f47([0x45,0x43]),[_0x139f47([0x75,0x73,0x65])]:_0x139f47([0x73,0x69,0x67]),[_0x139f47([0x63,0x72,0x76])]:_0x139f47([0x50,0x2d,0x32,0x35,0x36]),[_0x139f47([0x78])]:_0x139f47([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]),[_0x139f47([0x79])]:_0x139f47([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]),[_0x139f47([0x61,0x6c,0x67])]:_0x139f47([0x45,0x53,0x32,0x35,0x36])},_0x43c384=_0x16bc14[_0x139f47([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x139f47([0x67,0x65,0x74])](_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28837f(){let _0x42b418,_0xe3d349=null,_0x3b8262=null;try{if(_0x43c384==_0x139f47([0x47,0x50,0x4c]))return _0x139f47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42b418=_0x553b0f(),!_0x42b418)return _0x139f47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42b418[_0x139f47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b8262=_0x9a63c4(_0x42b418[_0x139f47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42b418[_0x139f47([0x6a,0x74,0x69])])),await _0x1399c3()?_0xe06dd6()?_0x1d15e5()?_0x139f47([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x24ec6e()?(_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x139f47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe3d349=_0x2c8ff5(_0x139f47([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x139f47([0x74,0x72,0x69,0x61,0x6c])&&(_0xe3d349=_0x2c8ff5(_0x139f47([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18fd3d()):_0x139f47([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x139f47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x139f47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x139f47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d15e5(){const _0x2b17f2=[_0x139f47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x139f47([0x74,0x72,0x69,0x61,0x6c])][_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x564cfc/0x3e8:0xe10*_0x25d6e9;return _0x42b418[_0x139f47([0x65,0x78,0x70])]<_0x2b17f2;}function _0xe06dd6(){const _0x4e0927=_0x42b418[_0x139f47([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e0927&&(!!_0x4e0927[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139f47([0x2a]))||!!_0x4e0927[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139f47([0x55,0x50,0x4c,0x43])));}function _0x24ec6e(){const _0x1bfe48=_0x31ff,_0x2549f9=_0x42b418[_0x139f47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2549f9||0x0==_0x2549f9[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x54aca6}=new URL(window[_0x139f47([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1bfe48(0xb4)]);if(_0x2549f9[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54aca6))return!0x0;const _0x515888=_0x54aca6[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e]));return _0x2549f9[_0x139f47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb08259=>_0xb08259[_0x139f47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139f47([0x2a])))[_0x139f47([0x6d,0x61,0x70])](_0x38d133=>_0x38d133[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e])))[_0x139f47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x463d16=>_0x463d16[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x515888[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x139f47([0x6d,0x61,0x70])](_0x5dfaeb=>Array(_0x515888[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5dfaeb[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x139f47([0x66,0x69,0x6c,0x6c])](_0x5dfaeb[0x0]===_0x139f47([0x2a])?_0x139f47([0x2a]):'')[_0x139f47([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5dfaeb))[_0x139f47([0x73,0x6f,0x6d,0x65])](_0x3c838e=>_0x515888[_0x139f47([0x65,0x76,0x65,0x72,0x79])]((_0x4b81d4,_0x35d53c)=>_0x3c838e[_0x35d53c]===_0x4b81d4||_0x3c838e[_0x35d53c]===_0x139f47([0x2a])));}function _0x18fd3d(){return _0xe3d349&&_0x3b8262?new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d3fa9,_0x5707b5)=>{_0xe3d349[_0x139f47([0x74,0x68,0x65,0x6e])](_0x4d3fa9,_0x5707b5),_0x3b8262[_0x139f47([0x74,0x68,0x65,0x6e])](_0xf6ab9=>{_0xf6ab9!=_0x139f47([0x56,0x61,0x6c,0x69,0x64])&&_0x4d3fa9(_0xf6ab9);},_0x5707b5);}):_0xe3d349||_0x3b8262||_0x139f47([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9a63c4(_0x5a5116,_0x34d5a5){return new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3732=>{if(_0x17b127())return _0x5c3732(_0x139f47([0x56,0x61,0x6c,0x69,0x64]));_0x5ad6dc(),_0x16bc14[_0x139f47([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x139f47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x418744=!0x1;const _0x5d2f18=_0x370fff();function _0x26fd91(_0x47b429){return!!_0x47b429&&(typeof _0x47b429===_0x139f47([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47b429===_0x139f47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47b429[_0x139f47([0x74,0x68,0x65,0x6e])]===_0x139f47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47b429[_0x139f47([0x63,0x61,0x74,0x63,0x68])]===_0x139f47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46440f(_0x206454){_0x3cd096(_0x206454)[_0x139f47([0x74,0x68,0x65,0x6e])](_0x3cd370=>{if(!_0x3cd370||_0x3cd370[_0x139f47([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x139f47([0x6f,0x6b]))return _0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x237113(_0x5176fe(_0x5d2f18+_0x34d5a5))!=_0x3cd370[_0x139f47([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x139f47([0x56,0x61,0x6c,0x69,0x64]);})[_0x139f47([0x74,0x68,0x65,0x6e])](_0x410311=>(_0x29682b(),_0x410311),()=>{const _0x240a10=_0x5f7d56();return null==_0x240a10?(_0x29682b(),_0x139f47([0x56,0x61,0x6c,0x69,0x64])):_0x139f47(_0x564cfc-_0x240a10>(0x7753083a^_0xd52bf9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x139f47([0x74,0x68,0x65,0x6e])](_0x5c3732)[_0x139f47([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c3732(_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d3c0c=0x536962ba^_0xd52bf9;function _0x29682b(){const _0x305510=_0x139f47([0x6c,0x6c,0x63,0x74,0x2d])+_0x237113(_0x5176fe(_0x5a5116)),_0x212893=_0x14fe39(_0x237113(window[_0x139f47([0x4d,0x61,0x74,0x68])][_0x139f47([0x63,0x65,0x69,0x6c])](_0x564cfc/_0x1d3c0c)));window[_0x139f47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x139f47([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x305510,_0x212893);}function _0x5f7d56(){const _0x4aaa54=_0x139f47([0x6c,0x6c,0x63,0x74,0x2d])+_0x237113(_0x5176fe(_0x5a5116)),_0x215cf=window[_0x139f47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x139f47([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4aaa54);return _0x215cf?window[_0x139f47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14fe39(_0x215cf),0x10)*_0x1d3c0c:null;}function _0x3cd096(_0x1c6b03){return new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57ae61,_0x1cc9e2)=>{_0x1c6b03[_0x139f47([0x74,0x68,0x65,0x6e])](_0x57ae61,_0x1cc9e2),window[_0x139f47([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cc9e2,0x535e58fa^_0xd52bf9);});}}_0x16bc14[_0x139f47([0x6f,0x6e])](_0x139f47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x25efb4,_0x36e505)=>{if(_0x36e505[0x0]!=_0x5a5116)return _0x5c3732(_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36e505[0x1]={..._0x36e505[0x1],[_0x139f47([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d2f18};},{[_0x139f47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x139f47([0x68,0x69,0x67,0x68])}),_0x16bc14[_0x139f47([0x6f,0x6e])](_0x139f47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a8857=>{_0x26fd91(_0x2a8857[_0x139f47([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x418744=!0x0,_0x46440f(_0x2a8857[_0x139f47([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x139f47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x139f47([0x6c,0x6f,0x77])}),_0x2be2d4[_0x139f47([0x74,0x68,0x65,0x6e])](()=>{_0x418744||_0x5c3732(_0x139f47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x17b127(){return _0x16bc14[_0x139f47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x139f47([0x76,0x69,0x65,0x77])][_0x139f47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x139f47([0x61,0x75,0x74,0x6f]);}function _0x5ad6dc(){_0x16bc14[_0x139f47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x139f47([0x76,0x69,0x65,0x77])][_0x139f47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x139f47([0x61,0x75,0x74,0x6f]);}}function _0x2c8ff5(_0x53534b){const _0x3ccce4=[new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26fd1e=>setTimeout(_0x26fd1e,0x5356b2f6^_0xd52bf9)),_0x2be2d4[_0x139f47([0x74,0x68,0x65,0x6e])](()=>new window[(_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d7805=>{let _0x1921e6=0x0;_0x16bc14[_0x139f47([0x6d,0x6f,0x64,0x65,0x6c])][_0x139f47([0x6f,0x6e])](_0x139f47([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x524c40,_0x396940)=>{_0x396940[0x0][_0x139f47([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1921e6++,_0x1921e6==(0x535f89d2^_0xd52bf9)&&(_0x4d7805(),_0x524c40[_0x139f47([0x6f,0x66,0x66])]());});}))];return window[_0x139f47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x139f47([0x72,0x61,0x63,0x65])](_0x3ccce4)[_0x139f47([0x74,0x68,0x65,0x6e])](()=>_0x53534b);}async function _0x326101(){await _0x2be2d4,_0x16bc14[_0x139f47([0x6d,0x6f,0x64,0x65,0x6c])][_0x139f47([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37cc56,_0x16bc14[_0x139f47([0x6d,0x6f,0x64,0x65,0x6c])][_0x139f47([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37cc56,_0x16bc14[_0x139f47([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x139f47([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x230e17(_0xa86dbe){const _0x111c17=_0x3ddfdf();_0x16bc14[_0x111c17]=_0x139f47([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa86dbe,_0xa86dbe!=_0x139f47([0x56,0x61,0x6c,0x69,0x64])&&_0x326101();}function _0x3ddfdf(){const _0x419f5e=window[_0x139f47([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x139f47([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x139f47([0x6e,0x6f,0x77])]())[_0x139f47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x139f47([0x2e]),'');let _0x5e2f64=_0x139f47([0x68]);for(let _0x2c2e14=0x0;_0x2c2e14<_0x419f5e[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c2e14+=0x2){let _0x3348d6=window[_0x139f47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x419f5e[_0x139f47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c2e14,_0x2c2e14+0x2));_0x3348d6>=_0x23b62e[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3348d6-=_0x23b62e[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e2f64+=_0x23b62e[_0x3348d6];}return _0x5e2f64;}function _0x553b0f(){const _0x12a947=_0x43c384[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e]));if(0x3!=_0x12a947[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b103f(_0x12a947[0x1]);function _0x2b103f(_0x39bd4c){const _0xe2591=_0x1ef025(_0x39bd4c);return _0xe2591&&_0x2b8f96()?_0xe2591:null;function _0x2b8f96(){const _0x5a108f=_0xe2591[_0x139f47([0x6a,0x74,0x69])],_0x84a22e=window[_0x139f47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a108f[_0x139f47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a108f[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b27d7={..._0xe2591,[_0x139f47([0x6a,0x74,0x69])]:_0x5a108f[_0x139f47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a108f[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b27d7[_0x139f47([0x76,0x63])],_0x5176fe(_0x4b27d7)==_0x84a22e;}}}async function _0x1399c3(){let _0x4879c1=!0x0;try{const _0x14f25f=_0x43c384[_0x139f47([0x73,0x70,0x6c,0x69,0x74])](_0x139f47([0x2e])),[_0x1867aa,_0x4e67ba,_0x4d6612]=_0x14f25f;return _0x21945a(_0x1867aa),await _0x1dab3e(_0x1867aa,_0x4e67ba,_0x4d6612),_0x4879c1;}catch{return!0x1;}function _0x21945a(_0x1f446c){const _0x92317c=_0x1ef025(_0x1f446c);_0x92317c&&_0x92317c[_0x139f47([0x61,0x6c,0x67])]==_0x139f47([0x45,0x53,0x32,0x35,0x36])||(_0x4879c1=!0x1);}async function _0x1dab3e(_0x2132f7,_0x3cacfe,_0x2fba04){const _0x9e255a=window[_0x139f47([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x139f47([0x66,0x72,0x6f,0x6d])](_0x22379a(_0x2fba04),_0x1229ca=>_0x1229ca[_0x139f47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ba6df=new window[(_0x139f47([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x139f47([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2132f7+_0x139f47([0x2e])+_0x3cacfe),_0x654a52=window[_0x139f47([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x139f47([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x654a52)return;const _0x5825e3=await _0x654a52[_0x139f47([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x139f47([0x6a,0x77,0x6b]),_0x12a1d5,{[_0x139f47([0x6e,0x61,0x6d,0x65])]:_0x139f47([0x45,0x43,0x44,0x53,0x41]),[_0x139f47([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x139f47([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x139f47([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x654a52[_0x139f47([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x139f47([0x6e,0x61,0x6d,0x65])]:_0x139f47([0x45,0x43,0x44,0x53,0x41]),[_0x139f47([0x68,0x61,0x73,0x68])]:{[_0x139f47([0x6e,0x61,0x6d,0x65])]:_0x139f47([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5825e3,_0x9e255a,_0x3ba6df)||(_0x4879c1=!0x1);}}function _0x1ef025(_0x2f73bc){return _0x2f73bc[_0x139f47([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x139f47([0x65,0x79]))?JSON[_0x139f47([0x70,0x61,0x72,0x73,0x65])](_0x22379a(_0x2f73bc)):null;}function _0x22379a(_0x4ea456){return window[_0x139f47([0x61,0x74,0x6f,0x62])](_0x4ea456[_0x139f47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x139f47([0x2b]))[_0x139f47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x139f47([0x2f])));}function _0x5176fe(_0x5884c1){let _0x202930=0x1505;function _0x47a780(_0x589e80){for(let _0xed4387=0x0;_0xed4387<_0x589e80[_0x139f47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xed4387++){const _0xa3dc51=_0x589e80[_0x139f47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xed4387);_0x202930=(_0x202930<<0x5)+_0x202930+_0xa3dc51,_0x202930&=_0x202930;}}function _0x58f258(_0x443c88){Array[_0x139f47([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x443c88)?_0x443c88[_0x139f47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58f258):_0x443c88&&typeof _0x443c88==_0x139f47([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x139f47([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x443c88)[_0x139f47([0x73,0x6f,0x72,0x74])]()[_0x139f47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f1828,_0x58f5b0])=>{_0x47a780(_0x3f1828),_0x58f258(_0x58f5b0);}):_0x47a780(window[_0x139f47([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x443c88));}return _0x58f258(_0x5884c1),_0x202930>>>0x0;}function _0x237113(_0xc5e91d){return _0xc5e91d[_0x139f47([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x139f47([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x139f47([0x30]));}function _0x14fe39(_0x16e187){return _0x16e187[_0x139f47([0x73,0x70,0x6c,0x69,0x74])]('')[_0x139f47([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x139f47([0x6a,0x6f,0x69,0x6e])]('');}function _0x37cc56(){}function _0x139f47(_0xd1b792){const _0x51c72e=_0x31ff;return _0xd1b792[_0x51c72e(0xc9)](_0x39b1d6=>String[_0x51c72e(0xae)](_0x39b1d6))[_0x51c72e(0xb0)]('');}_0x230e17(await _0x28837f());}(this);}[_0x2a8722(0xbf)](){const _0x2da0e2=_0x2a8722,_0x359c30=this[_0x2da0e2(0xca)][_0x2da0e2(0xa5)][_0x2da0e2(0xc7)];_0x359c30[_0x2da0e2(0x9a)](_0x2da0e2(0xe0))&&_0x359c30[_0x2da0e2(0xd4)](_0x2da0e2(0xe0),{'allowAttributes':[_0x2da0e2(0xd3)]}),_0x359c30[_0x2da0e2(0x9a)](_0x2da0e2(0xbc))&&_0x359c30[_0x2da0e2(0xd4)](_0x2da0e2(0xbc),{'allowAttributes':[_0x2da0e2(0xd3)]});}[_0x2a8722(0xac)](){const _0x1db3bc=_0x2a8722,_0x45a204=this[_0x1db3bc(0xca)];_0x45a204[_0x1db3bc(0xcc)][_0x1db3bc(0xe6)](_0x1db3bc(0xe9))[_0x1db3bc(0xe3)]({'model':_0x1db3bc(0xd3),'view':_0x1db3bc(0xc2)}),_0x45a204[_0x1db3bc(0xcc)][_0x1db3bc(0xe6)](_0x1db3bc(0xb3))[_0x1db3bc(0x9c)]({'model':{'key':_0x1db3bc(0xd3),'value':_0x3ec508=>_0x3ec508[_0x1db3bc(0xcf)](_0x1db3bc(0xc2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1e4ef8=_0x45a204[_0x1db3bc(0xd0)][_0x1db3bc(0x9f)](_0x1db3bc(0xcb));_0x1e4ef8&&this[_0x1db3bc(0xad)](_0x1e4ef8,_0x1db3bc(0xa4),(_0x2a6c5e,[_0xb97017,_0x2c0d51])=>{const _0x34a2b0=_0x1db3bc;_0xb97017[_0x34a2b0(0xc3)](_0x34a2b0(0xd3),_0x2c0d51);});}[_0x2a8722(0xbb)](){const _0x224547=_0x2a8722,_0x43d5e0=this[_0x224547(0xca)][_0x224547(0x96)][_0x224547(0x9f)](_0x224547(0xa0))||{},_0x54a662=this[_0x224547(0xca)][_0x224547(0x96)][_0x224547(0x9f)](_0x224547(0xdd))||'';this[_0x224547(0xb9)]=_0x5ad123(_0x2fc513[_0x224547(0xbe)],_0x224547(0xde),{..._0x43d5e0,'pubkey':_0x54a662,'ctx-name':_0x224547(0xbd)+this[_0x224547(0x97)],'sourceList':'','imgOnly':_0x224547(0xd5),'removeCopyright':_0x224547(0xd5),'localeName':this[_0x224547(0xca)][_0x224547(0x9b)][_0x224547(0xe1)],'externalSourcesEmbedCss':_0x224547(0xd8)}),this[_0x224547(0xb9)][_0x224547(0xe7)]=_0x6c45a9=>{const _0x5351df=_0x224547;if(_0x5351df(0xb7)==_0x6c45a9)return _0x5351df(0xdc);},_0x2fc513[_0x224547(0xbe)][_0x224547(0xb8)][_0x224547(0xd2)](this[_0x224547(0xb9)]);}[_0x2a8722(0xc8)](){const _0x344c6f=_0x2a8722;this[_0x344c6f(0xb2)]=_0x5ad123(_0x2fc513[_0x344c6f(0xbe)],_0x344c6f(0xba),{'ctx-name':_0x344c6f(0xbd)+this[_0x344c6f(0x97)]}),_0x2fc513[_0x344c6f(0xbe)][_0x344c6f(0xb8)][_0x344c6f(0xd2)](this[_0x344c6f(0xb2)]);}[_0x2a8722(0xda)](){const _0x31b052=_0x2a8722,_0x95eb4b=this[_0x31b052(0xca)][_0x31b052(0xd0)][_0x31b052(0x9f)](_0x31b052(0xcd));_0x95eb4b&&this[_0x31b052(0xad)](_0x95eb4b,_0x31b052(0xe2),()=>{const _0x807da9=_0x31b052,_0x3fcf3e=this[_0x807da9(0xca)][_0x807da9(0xa5)][_0x807da9(0xbe)][_0x807da9(0xea)][_0x807da9(0xce)]();_0x3fcf3e&&_0x3fcf3e[_0x807da9(0xcf)](_0x807da9(0xd3))&&this[_0x807da9(0xca)][_0x807da9(0xe8)][_0x807da9(0xc6)][_0x807da9(0xb6)](_0x807da9(0xc0),()=>{const _0x1c388f=_0x807da9;_0x44e825(this[_0x1c388f(0xca)],_0x3fcf3e);});});const _0x400aea=this[_0x31b052(0xca)][_0x31b052(0xd0)][_0x31b052(0x9f)](_0x31b052(0xc4));_0x400aea&&this[_0x31b052(0xad)](_0x400aea,_0x31b052(0xe2),()=>{const _0x24272f=_0x31b052,_0xa843cd=this[_0x24272f(0xca)][_0x24272f(0xa5)][_0x24272f(0xbe)][_0x24272f(0xea)][_0x24272f(0xce)]();_0xa843cd&&_0xa843cd[_0x24272f(0xcf)](_0x24272f(0xd3))&&this[_0x24272f(0xca)][_0x24272f(0xe8)][_0x24272f(0xc6)][_0x24272f(0xb6)](_0x24272f(0xc0),()=>{const _0x3a6db7=_0x24272f;_0x44e825(this[_0x3a6db7(0xca)],_0xa843cd);});});}}
|
|
23
|
+
const _0x42737b=_0x4248;function _0x5960(){const _0x1328f8=['data-uc-image-id','init','map','cleanupImage','20oZqnPM','querySelector','selection','config','\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','add','document','uploadcareImageReplace','render','listenTo','join','ctxElement','getAttribute','uploadcare.uploader','imageBlock','configElement','ucContextId','#uc-icon-arrow-down','once','editor','1976425OGvUBk','removeAttribute','remove','downcast','schema','iconHrefResolver','10683CqpjNt','href','757666jlHhdy','elementToAttribute','closeMax','isRegistered','fromCharCode','uploader-','contentLanguage','_initConfig','model','269626BGfmen','_initConversion','afterInit','editing','uc-upload-ctx-provider','1zDwdFD','execute','input[uploadcare-file-input]','isOfficialPlugin','_initSchema','_initCtx','isPremiumPlugin','for','23847JTnTlm','appendChild','conversion','uploadcare','getSelectedElement','commands','insertImage','1862848uNChxh','get','PictureEditing','18xmfbkg','pluginName','UploadcareEditing','12LdUIOE','view','body','uploadcare.pubkey','locale','true','_initImageProcessingIndicator','destroy','extend','_ctxElement','_configElement','uc-config','uploadcareImageId','upcast','2230TNXqlE','requires','38590KPnuXf','attributeToAttribute','imageInline','replaceImageSource'];_0x5960=function(){return _0x1328f8;};return _0x5960();}(function(_0x5385f6,_0x4a18d9){const _0x5a292e=_0x4248,_0x2cf4e5=_0x5385f6();while(!![]){try{const _0x4dbb5b=-parseInt(_0x5a292e(0x148))/0x1*(parseInt(_0x5a292e(0x143))/0x2)+parseInt(_0x5a292e(0x150))/0x3+-parseInt(_0x5a292e(0x175))/0x4*(parseInt(_0x5a292e(0x16d))/0x5)+parseInt(_0x5a292e(0x15a))/0x6*(-parseInt(_0x5a292e(0x13a))/0x7)+parseInt(_0x5a292e(0x157))/0x8+parseInt(_0x5a292e(0x138))/0x9*(parseInt(_0x5a292e(0x16b))/0xa)+-parseInt(_0x5a292e(0x132))/0xb*(-parseInt(_0x5a292e(0x15d))/0xc);if(_0x4dbb5b===_0x4a18d9)break;else _0x2cf4e5['push'](_0x2cf4e5['shift']());}catch(_0x506384){_0x2cf4e5['push'](_0x2cf4e5['shift']());}}}(_0x5960,0x2dab8));import{Plugin as _0x502b9d}from'ckeditor5/src/core.js';import{Dialog as _0x4c1db8}from'ckeditor5/src/ui.js';import{createElement as _0x3acaa4,global as _0x136663,uid as _0x2f991c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x42beaa}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x212f19}from'./uploadcareuploadadapter.js';function _0x4248(_0x3f800c,_0x27e317){const _0x5960de=_0x5960();return _0x4248=function(_0x424831,_0x3da5cf){_0x424831=_0x424831-0x121;let _0x39aa21=_0x5960de[_0x424831];return _0x39aa21;},_0x4248(_0x3f800c,_0x27e317);}import{showImageProcessingIndicator as _0xdb9c06}from'./utils/editingutils.js';export class UploadcareEditing extends _0x502b9d{[_0x42737b(0x167)]=null;[_0x42737b(0x166)]=null;static get[_0x42737b(0x15b)](){const _0x34afa7=_0x42737b;return _0x34afa7(0x15c);}static get[_0x42737b(0x16c)](){const _0x29524f=_0x42737b;return[_0x29524f(0x159),_0x212f19,_0x4c1db8];}static get[_0x42737b(0x14b)](){return!0x0;}static get[_0x42737b(0x14e)](){return!0x0;}[_0x42737b(0x12e)];get[_0x42737b(0x12d)](){const _0x2fb466=_0x42737b;return this[_0x2fb466(0x167)];}get[_0x42737b(0x129)](){const _0x2f1bfd=_0x42737b;return this[_0x2f1bfd(0x166)];}constructor(_0x452b90){const _0x20238f=_0x42737b;super(_0x452b90),this[_0x20238f(0x12e)]=_0x2f991c();}[_0x42737b(0x172)](){const _0x32aee6=_0x42737b,_0x43b9d0=this[_0x32aee6(0x131)];_0x43b9d0[_0x32aee6(0x155)][_0x32aee6(0x123)](_0x32aee6(0x153),new _0x42beaa(_0x43b9d0));}[_0x42737b(0x145)](){const _0x4febee=_0x42737b;this[_0x4febee(0x14c)](),this[_0x4febee(0x144)](),this[_0x4febee(0x141)](),this[_0x4febee(0x14d)](),this[_0x4febee(0x163)](),this[_0x4febee(0x127)](this[_0x4febee(0x131)],_0x4febee(0x164),()=>{const _0x4c61f6=_0x4febee;this[_0x4c61f6(0x167)]&&(this[_0x4c61f6(0x167)][_0x4c61f6(0x134)](),this[_0x4c61f6(0x167)]=null),this[_0x4c61f6(0x166)]&&(this[_0x4c61f6(0x166)][_0x4c61f6(0x134)](),this[_0x4c61f6(0x166)]=null);const _0xeced1=_0x136663[_0x4c61f6(0x124)][_0x4c61f6(0x176)](_0x4c61f6(0x14a));_0xeced1&&_0xeced1[_0x4c61f6(0x134)]();}),async function(_0x1bcb80){const _0x5736f1=_0x50f9c6([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]),_0x114259=0x535f8c3a,_0x23656d=0x5358f172^_0x114259,_0x4bc636=window[_0x50f9c6([0x44,0x61,0x74,0x65])][_0x50f9c6([0x6e,0x6f,0x77])](),_0x5603c9=_0x1bcb80[_0x50f9c6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a6a23=new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3342a7=>{_0x5603c9[_0x50f9c6([0x6f,0x6e,0x63,0x65])](_0x50f9c6([0x72,0x65,0x61,0x64,0x79]),_0x3342a7);}),_0x291e51={[_0x50f9c6([0x6b,0x74,0x79])]:_0x50f9c6([0x45,0x43]),[_0x50f9c6([0x75,0x73,0x65])]:_0x50f9c6([0x73,0x69,0x67]),[_0x50f9c6([0x63,0x72,0x76])]:_0x50f9c6([0x50,0x2d,0x32,0x35,0x36]),[_0x50f9c6([0x78])]:_0x50f9c6([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]),[_0x50f9c6([0x79])]:_0x50f9c6([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]),[_0x50f9c6([0x61,0x6c,0x67])]:_0x50f9c6([0x45,0x53,0x32,0x35,0x36])},_0x543ec4=_0x5603c9[_0x50f9c6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x50f9c6([0x67,0x65,0x74])](_0x50f9c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d3195(){let _0x42a5e9,_0x58f0a0=null,_0x3e7542=null;try{if(_0x543ec4==_0x50f9c6([0x47,0x50,0x4c]))return _0x50f9c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42a5e9=_0x3458a9(),!_0x42a5e9)return _0x50f9c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42a5e9[_0x50f9c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e7542=_0x503e76(_0x42a5e9[_0x50f9c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42a5e9[_0x50f9c6([0x6a,0x74,0x69])])),await _0x59bd59()?_0x1cb4d9()?_0x135a9c()?_0x50f9c6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x234332()?(_0x42a5e9[_0x50f9c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50f9c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58f0a0=_0x34ecc9(_0x50f9c6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42a5e9[_0x50f9c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x50f9c6([0x74,0x72,0x69,0x61,0x6c])&&(_0x58f0a0=_0x34ecc9(_0x50f9c6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e3348()):_0x50f9c6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x50f9c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x50f9c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x50f9c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x135a9c(){const _0xe1b6a=[_0x50f9c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x50f9c6([0x74,0x72,0x69,0x61,0x6c])][_0x50f9c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42a5e9[_0x50f9c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4bc636/0x3e8:0xe10*_0x23656d;return _0x42a5e9[_0x50f9c6([0x65,0x78,0x70])]<_0xe1b6a;}function _0x1cb4d9(){const _0x17e19d=_0x42a5e9[_0x50f9c6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17e19d&&(!!_0x17e19d[_0x50f9c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f9c6([0x2a]))||!!_0x17e19d[_0x50f9c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f9c6([0x55,0x50,0x4c,0x43])));}function _0x234332(){const _0x24518b=_0x4248,_0x4046b4=_0x42a5e9[_0x50f9c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4046b4||0x0==_0x4046b4[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x592046}=new URL(window[_0x50f9c6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x24518b(0x139)]);if(_0x4046b4[_0x50f9c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x592046))return!0x0;const _0x46f7a0=_0x592046[_0x50f9c6([0x73,0x70,0x6c,0x69,0x74])](_0x50f9c6([0x2e]));return _0x4046b4[_0x50f9c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x467818=>_0x467818[_0x50f9c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f9c6([0x2a])))[_0x50f9c6([0x6d,0x61,0x70])](_0x4cb0bf=>_0x4cb0bf[_0x50f9c6([0x73,0x70,0x6c,0x69,0x74])](_0x50f9c6([0x2e])))[_0x50f9c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x281e26=>_0x281e26[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46f7a0[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50f9c6([0x6d,0x61,0x70])](_0x2a35d5=>Array(_0x46f7a0[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a35d5[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x50f9c6([0x66,0x69,0x6c,0x6c])](_0x2a35d5[0x0]===_0x50f9c6([0x2a])?_0x50f9c6([0x2a]):'')[_0x50f9c6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a35d5))[_0x50f9c6([0x73,0x6f,0x6d,0x65])](_0x22eb0a=>_0x46f7a0[_0x50f9c6([0x65,0x76,0x65,0x72,0x79])]((_0x39acf7,_0x16be81)=>_0x22eb0a[_0x16be81]===_0x39acf7||_0x22eb0a[_0x16be81]===_0x50f9c6([0x2a])));}function _0x1e3348(){return _0x58f0a0&&_0x3e7542?new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d7e33,_0x15fa4f)=>{_0x58f0a0[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0x4d7e33,_0x15fa4f),_0x3e7542[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0x3a59bb=>{_0x3a59bb!=_0x50f9c6([0x56,0x61,0x6c,0x69,0x64])&&_0x4d7e33(_0x3a59bb);},_0x15fa4f);}):_0x58f0a0||_0x3e7542||_0x50f9c6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x503e76(_0x33db2e,_0x423763){return new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1027d3=>{if(_0x558cf7())return _0x1027d3(_0x50f9c6([0x56,0x61,0x6c,0x69,0x64]));_0x264e01(),_0x5603c9[_0x50f9c6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x50f9c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4da3ef=!0x1;const _0x16e192=_0x2f991c();function _0x3d20d7(_0x3cc712){return!!_0x3cc712&&(typeof _0x3cc712===_0x50f9c6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3cc712===_0x50f9c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3cc712[_0x50f9c6([0x74,0x68,0x65,0x6e])]===_0x50f9c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3cc712[_0x50f9c6([0x63,0x61,0x74,0x63,0x68])]===_0x50f9c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x235c93(_0x520fe8){_0x165b42(_0x520fe8)[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0x2db21a=>{if(!_0x2db21a||_0x2db21a[_0x50f9c6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x50f9c6([0x6f,0x6b]))return _0x50f9c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x599bc(_0x52ad5e(_0x16e192+_0x423763))!=_0x2db21a[_0x50f9c6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x50f9c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x50f9c6([0x56,0x61,0x6c,0x69,0x64]);})[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0xb22df=>(_0xd0e2ed(),_0xb22df),()=>{const _0x3fd95d=_0x4049d6();return null==_0x3fd95d?(_0xd0e2ed(),_0x50f9c6([0x56,0x61,0x6c,0x69,0x64])):_0x50f9c6(_0x4bc636-_0x3fd95d>(0x7753083a^_0x114259)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0x1027d3)[_0x50f9c6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1027d3(_0x50f9c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x377636=0x536962ba^_0x114259;function _0xd0e2ed(){const _0x3b5e53=_0x50f9c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x599bc(_0x52ad5e(_0x33db2e)),_0x4438fe=_0x2c1487(_0x599bc(window[_0x50f9c6([0x4d,0x61,0x74,0x68])][_0x50f9c6([0x63,0x65,0x69,0x6c])](_0x4bc636/_0x377636)));window[_0x50f9c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50f9c6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b5e53,_0x4438fe);}function _0x4049d6(){const _0x249b9d=_0x50f9c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x599bc(_0x52ad5e(_0x33db2e)),_0x33947a=window[_0x50f9c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x50f9c6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x249b9d);return _0x33947a?window[_0x50f9c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1487(_0x33947a),0x10)*_0x377636:null;}function _0x165b42(_0x5c0fab){return new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfa5609,_0x3512ce)=>{_0x5c0fab[_0x50f9c6([0x74,0x68,0x65,0x6e])](_0xfa5609,_0x3512ce),window[_0x50f9c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3512ce,0x535e58fa^_0x114259);});}}_0x5603c9[_0x50f9c6([0x6f,0x6e])](_0x50f9c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53e4c2,_0x50cd04)=>{if(_0x50cd04[0x0]!=_0x33db2e)return _0x1027d3(_0x50f9c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50cd04[0x1]={..._0x50cd04[0x1],[_0x50f9c6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16e192};},{[_0x50f9c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50f9c6([0x68,0x69,0x67,0x68])}),_0x5603c9[_0x50f9c6([0x6f,0x6e])](_0x50f9c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xc15d78=>{_0x3d20d7(_0xc15d78[_0x50f9c6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4da3ef=!0x0,_0x235c93(_0xc15d78[_0x50f9c6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x50f9c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x50f9c6([0x6c,0x6f,0x77])}),_0x5a6a23[_0x50f9c6([0x74,0x68,0x65,0x6e])](()=>{_0x4da3ef||_0x1027d3(_0x50f9c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x558cf7(){return _0x5603c9[_0x50f9c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50f9c6([0x76,0x69,0x65,0x77])][_0x50f9c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x50f9c6([0x61,0x75,0x74,0x6f]);}function _0x264e01(){_0x5603c9[_0x50f9c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x50f9c6([0x76,0x69,0x65,0x77])][_0x50f9c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x50f9c6([0x61,0x75,0x74,0x6f]);}}function _0x34ecc9(_0x938c59){const _0x5753a3=[new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x411e2a=>setTimeout(_0x411e2a,0x5356b2f6^_0x114259)),_0x5a6a23[_0x50f9c6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x250e26=>{let _0x38ba03=0x0;_0x5603c9[_0x50f9c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x50f9c6([0x6f,0x6e])](_0x50f9c6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x45f183,_0x17a192)=>{_0x17a192[0x0][_0x50f9c6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38ba03++,_0x38ba03==(0x535f89d2^_0x114259)&&(_0x250e26(),_0x45f183[_0x50f9c6([0x6f,0x66,0x66])]());});}))];return window[_0x50f9c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x50f9c6([0x72,0x61,0x63,0x65])](_0x5753a3)[_0x50f9c6([0x74,0x68,0x65,0x6e])](()=>_0x938c59);}async function _0x5a1d5d(){await _0x5a6a23,_0x5603c9[_0x50f9c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x50f9c6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c6f42,_0x5603c9[_0x50f9c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x50f9c6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c6f42,_0x5603c9[_0x50f9c6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x50f9c6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58d50f(_0x5bd0e){const _0x4489b0=_0x50f26e();_0x5603c9[_0x4489b0]=_0x50f9c6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5bd0e,_0x5bd0e!=_0x50f9c6([0x56,0x61,0x6c,0x69,0x64])&&_0x5a1d5d();}function _0x50f26e(){const _0x194d44=window[_0x50f9c6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x50f9c6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x50f9c6([0x6e,0x6f,0x77])]())[_0x50f9c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x50f9c6([0x2e]),'');let _0x5a2c93=_0x50f9c6([0x68]);for(let _0x193887=0x0;_0x193887<_0x194d44[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x193887+=0x2){let _0x1ec4a5=window[_0x50f9c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x194d44[_0x50f9c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x193887,_0x193887+0x2));_0x1ec4a5>=_0x5736f1[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ec4a5-=_0x5736f1[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a2c93+=_0x5736f1[_0x1ec4a5];}return _0x5a2c93;}function _0x3458a9(){const _0x5c80c5=_0x543ec4[_0x50f9c6([0x73,0x70,0x6c,0x69,0x74])](_0x50f9c6([0x2e]));if(0x3!=_0x5c80c5[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x329309(_0x5c80c5[0x1]);function _0x329309(_0x322dc6){const _0x305acc=_0x385eb2(_0x322dc6);return _0x305acc&&_0x7b4cbd()?_0x305acc:null;function _0x7b4cbd(){const _0x24ed14=_0x305acc[_0x50f9c6([0x6a,0x74,0x69])],_0x1fa513=window[_0x50f9c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24ed14[_0x50f9c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24ed14[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5aff13={..._0x305acc,[_0x50f9c6([0x6a,0x74,0x69])]:_0x24ed14[_0x50f9c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24ed14[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5aff13[_0x50f9c6([0x76,0x63])],_0x52ad5e(_0x5aff13)==_0x1fa513;}}}async function _0x59bd59(){let _0x353bf7=!0x0;try{const _0x1209e2=_0x543ec4[_0x50f9c6([0x73,0x70,0x6c,0x69,0x74])](_0x50f9c6([0x2e])),[_0x337555,_0x1f83ed,_0x5dcb90]=_0x1209e2;return _0x18b721(_0x337555),await _0x42d2c5(_0x337555,_0x1f83ed,_0x5dcb90),_0x353bf7;}catch{return!0x1;}function _0x18b721(_0x346f91){const _0x162121=_0x385eb2(_0x346f91);_0x162121&&_0x162121[_0x50f9c6([0x61,0x6c,0x67])]==_0x50f9c6([0x45,0x53,0x32,0x35,0x36])||(_0x353bf7=!0x1);}async function _0x42d2c5(_0x14f6a3,_0x25f03f,_0x133838){const _0x5cb6f0=window[_0x50f9c6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x50f9c6([0x66,0x72,0x6f,0x6d])](_0x2bb835(_0x133838),_0x4ab70a=>_0x4ab70a[_0x50f9c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcffe50=new window[(_0x50f9c6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x50f9c6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14f6a3+_0x50f9c6([0x2e])+_0x25f03f),_0x4d8aba=window[_0x50f9c6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x50f9c6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d8aba)return;const _0x2f152a=await _0x4d8aba[_0x50f9c6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x50f9c6([0x6a,0x77,0x6b]),_0x291e51,{[_0x50f9c6([0x6e,0x61,0x6d,0x65])]:_0x50f9c6([0x45,0x43,0x44,0x53,0x41]),[_0x50f9c6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x50f9c6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x50f9c6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d8aba[_0x50f9c6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x50f9c6([0x6e,0x61,0x6d,0x65])]:_0x50f9c6([0x45,0x43,0x44,0x53,0x41]),[_0x50f9c6([0x68,0x61,0x73,0x68])]:{[_0x50f9c6([0x6e,0x61,0x6d,0x65])]:_0x50f9c6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f152a,_0x5cb6f0,_0xcffe50)||(_0x353bf7=!0x1);}}function _0x385eb2(_0x5420b0){return _0x5420b0[_0x50f9c6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x50f9c6([0x65,0x79]))?JSON[_0x50f9c6([0x70,0x61,0x72,0x73,0x65])](_0x2bb835(_0x5420b0)):null;}function _0x2bb835(_0x3b9bb4){return window[_0x50f9c6([0x61,0x74,0x6f,0x62])](_0x3b9bb4[_0x50f9c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x50f9c6([0x2b]))[_0x50f9c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x50f9c6([0x2f])));}function _0x52ad5e(_0x1b767f){let _0x39a893=0x1505;function _0x4db34a(_0x2182d7){for(let _0x56a0b7=0x0;_0x56a0b7<_0x2182d7[_0x50f9c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56a0b7++){const _0x51ebd6=_0x2182d7[_0x50f9c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56a0b7);_0x39a893=(_0x39a893<<0x5)+_0x39a893+_0x51ebd6,_0x39a893&=_0x39a893;}}function _0xd8b1c8(_0x4837d7){Array[_0x50f9c6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4837d7)?_0x4837d7[_0x50f9c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd8b1c8):_0x4837d7&&typeof _0x4837d7==_0x50f9c6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x50f9c6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4837d7)[_0x50f9c6([0x73,0x6f,0x72,0x74])]()[_0x50f9c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3348ca,_0x4b8304])=>{_0x4db34a(_0x3348ca),_0xd8b1c8(_0x4b8304);}):_0x4db34a(window[_0x50f9c6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4837d7));}return _0xd8b1c8(_0x1b767f),_0x39a893>>>0x0;}function _0x599bc(_0x21edf0){return _0x21edf0[_0x50f9c6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x50f9c6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x50f9c6([0x30]));}function _0x2c1487(_0x1be674){return _0x1be674[_0x50f9c6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x50f9c6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x50f9c6([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c6f42(){}function _0x50f9c6(_0x5a2500){const _0x5d6552=_0x4248;return _0x5a2500[_0x5d6552(0x173)](_0x4df24a=>String[_0x5d6552(0x13e)](_0x4df24a))[_0x5d6552(0x128)]('');}_0x58d50f(await _0x1d3195());}(this);}[_0x42737b(0x14c)](){const _0x478978=_0x42737b,_0x1870a9=this[_0x478978(0x131)][_0x478978(0x142)][_0x478978(0x136)];_0x1870a9[_0x478978(0x13d)](_0x478978(0x12c))&&_0x1870a9[_0x478978(0x165)](_0x478978(0x12c),{'allowAttributes':[_0x478978(0x169)]}),_0x1870a9[_0x478978(0x13d)](_0x478978(0x16f))&&_0x1870a9[_0x478978(0x165)](_0x478978(0x16f),{'allowAttributes':[_0x478978(0x169)]});}[_0x42737b(0x144)](){const _0x15ea96=_0x42737b,_0x397885=this[_0x15ea96(0x131)];_0x397885[_0x15ea96(0x152)][_0x15ea96(0x14f)](_0x15ea96(0x135))[_0x15ea96(0x16e)]({'model':_0x15ea96(0x169),'view':_0x15ea96(0x171)}),_0x397885[_0x15ea96(0x152)][_0x15ea96(0x14f)](_0x15ea96(0x16a))[_0x15ea96(0x13b)]({'model':{'key':_0x15ea96(0x169),'value':_0x54bf3d=>_0x54bf3d[_0x15ea96(0x12a)](_0x15ea96(0x171))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x261383=_0x397885[_0x15ea96(0x155)][_0x15ea96(0x158)](_0x15ea96(0x170));_0x261383&&this[_0x15ea96(0x127)](_0x261383,_0x15ea96(0x174),(_0x2743c0,[_0x2a3911,_0x220239])=>{const _0x488a8f=_0x15ea96;_0x2a3911[_0x488a8f(0x133)](_0x488a8f(0x169),_0x220239);});}[_0x42737b(0x141)](){const _0x6b9b94=_0x42737b,_0x23bbaf=this[_0x6b9b94(0x131)][_0x6b9b94(0x121)][_0x6b9b94(0x158)](_0x6b9b94(0x12b))||{},_0x233454=this[_0x6b9b94(0x131)][_0x6b9b94(0x121)][_0x6b9b94(0x158)](_0x6b9b94(0x160))||'';this[_0x6b9b94(0x167)]=_0x3acaa4(_0x136663[_0x6b9b94(0x124)],_0x6b9b94(0x168),{..._0x23bbaf,'pubkey':_0x233454,'ctx-name':_0x6b9b94(0x13f)+this[_0x6b9b94(0x12e)],'sourceList':'','imgOnly':_0x6b9b94(0x162),'removeCopyright':_0x6b9b94(0x162),'localeName':this[_0x6b9b94(0x131)][_0x6b9b94(0x161)][_0x6b9b94(0x140)],'externalSourcesEmbedCss':_0x6b9b94(0x122)}),this[_0x6b9b94(0x167)][_0x6b9b94(0x137)]=_0x1d7c22=>{const _0x568d92=_0x6b9b94;if(_0x568d92(0x13c)==_0x1d7c22)return _0x568d92(0x12f);},_0x136663[_0x6b9b94(0x124)][_0x6b9b94(0x15f)][_0x6b9b94(0x151)](this[_0x6b9b94(0x167)]);}[_0x42737b(0x14d)](){const _0x26ee48=_0x42737b;this[_0x26ee48(0x166)]=_0x3acaa4(_0x136663[_0x26ee48(0x124)],_0x26ee48(0x147),{'ctx-name':_0x26ee48(0x13f)+this[_0x26ee48(0x12e)]}),_0x136663[_0x26ee48(0x124)][_0x26ee48(0x15f)][_0x26ee48(0x151)](this[_0x26ee48(0x166)]);}[_0x42737b(0x163)](){const _0x3af21b=_0x42737b,_0x1259c8=this[_0x3af21b(0x131)][_0x3af21b(0x155)][_0x3af21b(0x158)](_0x3af21b(0x156));_0x1259c8&&this[_0x3af21b(0x127)](_0x1259c8,_0x3af21b(0x149),()=>{const _0x4b41b8=_0x3af21b,_0x2c6b1d=this[_0x4b41b8(0x131)][_0x4b41b8(0x142)][_0x4b41b8(0x124)][_0x4b41b8(0x177)][_0x4b41b8(0x154)]();_0x2c6b1d&&_0x2c6b1d[_0x4b41b8(0x12a)](_0x4b41b8(0x169))&&this[_0x4b41b8(0x131)][_0x4b41b8(0x146)][_0x4b41b8(0x15e)][_0x4b41b8(0x130)](_0x4b41b8(0x126),()=>{const _0x509979=_0x4b41b8;_0xdb9c06(this[_0x509979(0x131)],_0x2c6b1d);});});const _0x4df17a=this[_0x3af21b(0x131)][_0x3af21b(0x155)][_0x3af21b(0x158)](_0x3af21b(0x125));_0x4df17a&&this[_0x3af21b(0x127)](_0x4df17a,_0x3af21b(0x149),()=>{const _0x6d86ea=_0x3af21b,_0x287de4=this[_0x6d86ea(0x131)][_0x6d86ea(0x142)][_0x6d86ea(0x124)][_0x6d86ea(0x177)][_0x6d86ea(0x154)]();_0x287de4&&_0x287de4[_0x6d86ea(0x12a)](_0x6d86ea(0x169))&&this[_0x6d86ea(0x131)][_0x6d86ea(0x146)][_0x6d86ea(0x15e)][_0x6d86ea(0x130)](_0x6d86ea(0x126),()=>{const _0x34fee6=_0x6d86ea;_0xdb9c06(this[_0x34fee6(0x131)],_0x287de4);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x578f15,ObservableMixin as _0x55b63b}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1d3c98}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4a88c6}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x35b362}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1124fb}from'../../utils/uploadutils.js';import{getImageUrls as _0x582b1c,getImageDimension as _0x2da0f0}from'../../utils/editingutils.js';import{isAncestor as _0x5f2585}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x55b63b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3a8997,_0x1fe145,_0x284a97){super(),this['_editor']=_0x3a8997,this['_dialog']=_0x1fe145,this['_imageElement']=_0x284a97,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 _0x411643=this['_imageElement'],_0x3c5d6b=_0x411643['getAttribute']('uploadcareImageId'),_0x1b546d=_0x411643['getAttribute']('src');if(_0x3c5d6b)await this['_loadImageInfo'](_0x3c5d6b,_0x1b546d);else{if(this['_imageCache']['has'](_0x1b546d)){const _0xbccfec=this['_imageCache']['get'](_0x1b546d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbccfec['url'],this['imageDimension']=_0xbccfec['dimension'],this['imageId']=_0xbccfec['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5125e6}=this['_editor'],t=_0x5125e6['t'],_0x5a5539=new _0x35b362(_0x5125e6,this['imageStatus'],this['_attributes']);_0x5a5539['bind']('status')['to'](this,'imageStatus'),_0x5a5539['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5a5539['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5a5539['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5a5539,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4a88c6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5a5539,'position':_0x1d3c98['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5a5539['focus']();},'onHide':()=>{_0x5a5539['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ca10b=>!_0x5f2585(_0x2ca10b,_0x5a5539['element'])}});}['_loadImageInfo'](_0x31b57c,_0x1b4372){return _0x1124fb['getInfo'](_0x31b57c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x44ba32=>{const {width:_0x521d1e,height:_0x2d7d99}=_0x44ba32['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b4372,this['imageDimension']={'width':_0x521d1e,'height':_0x2d7d99},this['imageId']=_0x31b57c;})['catch'](_0x1a4b20=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a4b20['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x134d32,_0x33f0a5){return this['_getImageAsFile'](_0x134d32)['then'](_0x5c12d6=>_0x1124fb['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':_0x33f0a5['signal'],'file':_0x5c12d6,'onProgress':_0x5bd552=>{_0x5bd552&&_0x5bd552['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5bd552['value']));}}))['then'](_0x53c2d9=>{const {width:_0x29d6ee,height:_0x38f38a}=_0x53c2d9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53c2d9['cdnUrl'],this['imageDimension']={'width':_0x29d6ee,'height':_0x38f38a},this['imageId']=_0x53c2d9['uuid'],this['imageUploadProgress']=null;const _0x4318f6=_0x134d32['getAttribute']('src');this['_imageCache']['set'](_0x4318f6,{'id':_0x53c2d9['uuid'],'url':_0x53c2d9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x36f4e1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x36f4e1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x49fd4f,_0x4452ef){_0x49fd4f['on']('apply',(_0x4a9dc4,_0x2d6e70)=>{this['_replaceImage'](_0x4452ef,_0x2d6e70['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x49fd4f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x49fd4f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x25e13f,_0x3eb574,_0x309d28){const _0x23fc05=this['_editor'],{width:_0x4cf1bd,height:_0x1da2cf}=_0x2da0f0(_0x3eb574,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x33a24f,imageSources:_0x515304}=_0x582b1c(_0x3eb574,_0x4cf1bd);_0x23fc05['model']['change'](_0x3b1672=>{if('$graveyard'===_0x25e13f['root']['rootName']){_0x23fc05['execute']('insertImage',{'imageType':_0x25e13f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x25e13f['getAttributes']()),'uploadcareImageId':_0x309d28,'src':_0x33a24f,'sources':_0x515304,'width':_0x4cf1bd,'height':_0x1da2cf}});const _0x45483d=_0x25e13f['getChildren']();_0x25e13f=_0x23fc05['model']['document']['selection']['getSelectedElement']();for(const _0x45834f of _0x45483d)_0x3b1672['append'](_0x3b1672['cloneElement'](_0x45834f),_0x25e13f);}else _0x3b1672['setSelection'](_0x25e13f,'on'),_0x23fc05['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x25e13f['getAttributes']()),'uploadcareImageId':_0x309d28,'src':_0x33a24f,'sources':_0x515304,'width':_0x4cf1bd,'height':_0x1da2cf},_0x25e13f);_0x3b1672['setSelection'](_0x25e13f,'on');});}async['_getImageAsFile'](_0x4dc935){const _0x357f77=_0x578f15['window'],_0x17ee99=_0x578f15['document']['location']['href'],_0xfc90d1=new _0x357f77['URL'](_0x4dc935['getAttribute']('src'),_0x17ee99);if('data:'===_0xfc90d1['protocol']){const _0x570e86=_0xfc90d1['href']['split'](','),_0x31c99c=_0x570e86[0x0]['match'](/:(.*?);/)[0x1],_0x5959b3=_0x31c99c['split']('/')[0x1],_0x11be0f=_0x357f77['atob'](_0x570e86[_0x570e86['length']-0x1]);let _0x98436e=_0x11be0f['length'];const _0x45de6f=new _0x357f77['Uint8Array'](_0x98436e);for(;_0x98436e--;)_0x45de6f[_0x98436e]=_0x11be0f['charCodeAt'](_0x98436e);return new _0x357f77['File']([_0x45de6f],'image.'+_0x5959b3,{'type':_0x31c99c});}const _0x3b79c3=_0xfc90d1['href']['split']('/'),_0x3e2e8e=_0x3b79c3[_0x3b79c3['length']-0x1],_0x75c9d8=_0x3e2e8e['split']('.')[0x1];return _0x357f77['fetch'](_0xfc90d1['href'])['then'](_0x5d788c=>_0x5d788c['clone']()['blob']())['then'](_0x41fbd2=>new _0x357f77['File']([_0x41fbd2],_0x3e2e8e,{'type':'image/'+_0x75c9d8}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xe702(){const _0x4cfc2d=['97520gpvfZo','ck-uploadcare-theme','setTemplate','image-edit','set','imageSrc','uc-light','21086lRNvks','385168KguYXF','200730izMOST','uc-cloud-image-editor','14tULsze','4186500yDcgFE','90YJjbll','bindTemplate','588VHovFI','40345mASUMj','84sPdUwe'];_0xe702=function(){return _0x4cfc2d;};return _0xe702();}function _0x57e2(_0x38c31a,_0x21398b){const _0xe70224=_0xe702();return _0x57e2=function(_0x57e2ab,_0x263221){_0x57e2ab=_0x57e2ab-0x88;let _0x3921e3=_0xe70224[_0x57e2ab];return _0x3921e3;},_0x57e2(_0x38c31a,_0x21398b);}(function(_0x209e0a,_0x3541d5){const _0x213d4e=_0x57e2,_0x160e99=_0x209e0a();while(!![]){try{const _0x56114a=parseInt(_0x213d4e(0x93))/0x1*(parseInt(_0x213d4e(0x8f))/0x2)+-parseInt(_0x213d4e(0x91))/0x3+-parseInt(_0x213d4e(0x99))/0x4*(parseInt(_0x213d4e(0x98))/0x5)+-parseInt(_0x213d4e(0x97))/0x6+-parseInt(_0x213d4e(0x90))/0x7+parseInt(_0x213d4e(0x88))/0x8*(-parseInt(_0x213d4e(0x95))/0x9)+parseInt(_0x213d4e(0x94))/0xa;if(_0x56114a===_0x3541d5)break;else _0x160e99['push'](_0x160e99['shift']());}catch(_0x5322bb){_0x160e99['push'](_0x160e99['shift']());}}}(_0xe702,0x25527));import{View as _0x5a9686}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x5a9686{constructor(_0x488aef,_0x4e8ad4){const _0x507c59=_0x57e2;super(_0x488aef);const _0x3a4d06=this[_0x507c59(0x96)];this[_0x507c59(0x8c)](_0x507c59(0x8d),''),this[_0x507c59(0x8a)]({'tag':_0x507c59(0x92),'attributes':{..._0x4e8ad4,'class':[_0x507c59(0x8e),_0x507c59(0x89)],'ctx-name':_0x507c59(0x8b),'cdn-url':_0x3a4d06['to'](_0x507c59(0x8d))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4e52b}from'ckeditor5/src/icons.js';import{ButtonView as _0x3a33d0,IconView as _0x2eea9e,View as _0xff7b49}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0xff7b49{constructor(_0xc4354c){super(_0xc4354c);const t=_0xc4354c['t'];this['set']('errorType',null);const _0x193ff6=new _0x3a33d0(_0xc4354c);_0x193ff6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x193ff6['withText']=!0x0,_0x193ff6['class']='ck-button-action',_0x193ff6['on']('execute',()=>{this['fire']('retry');}),_0x193ff6['bind']('isVisible')['to'](this,'errorType',_0x5cc8bd=>'NotFound'!==_0x5cc8bd);const _0x376603=new _0x2eea9e();_0x376603['content']=_0x4e52b,_0x376603['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x6801ee=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':[_0x376603,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x6801ee['to']('errorType',_0x198fdc=>t('NotFound'!==_0x198fdc?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x193ff6]},{'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 _0x1c6f0e,View as _0x597ccc}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x597ccc{constructor(_0x3f6149){super(_0x3f6149);const t=_0x3f6149['t'],_0x54913d=this['bindTemplate'],_0xf63bf3=new _0x1c6f0e();_0xf63bf3['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':[_0xf63bf3,{'text':_0x54913d['to']('imageUploadProgress',_0x138d61=>t('Loading\x20image...')+'\x20('+(_0x138d61||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
|
-
function
|
|
23
|
+
function _0x19d5(){const _0x26f952=['disconnect','2lmDrrl','filter','focus','error','823562ahAGLW','element','uploading','apply','change:status','createCollection','_loadingView','retry','3ZPvkRm','status','getFocusableElement','observe','div','add','3297413vDfBxW','1620012yUOwsa','clear','querySelector','addEventListener','_editingView','_addErrorViewListeners','setTemplate','detail','_setView','length','toLowerCase','_errorView','2419640DkxbbH','cdnUrl','3159240EILXoi','cancel','9252imgnvr','ck-reset_all-excluded','target','ck-uploadcare-form','once','nodeName','_items','1279496LomBeC','addMany','render','addedNodes','ready','set','fire','uc-cloud-image-editor','_addUploadcareImageEditorListeners','_waitForImageEditorComponent','_focusableView','16180NDkEkE'];_0x19d5=function(){return _0x26f952;};return _0x19d5();}const _0x24e62c=_0x1f1e;function _0x1f1e(_0x2c0793,_0x4f1836){const _0x19d53c=_0x19d5();return _0x1f1e=function(_0x1f1ef2,_0xdf796){_0x1f1ef2=_0x1f1ef2-0x168;let _0x4022ec=_0x19d53c[_0x1f1ef2];return _0x4022ec;},_0x1f1e(_0x2c0793,_0x4f1836);}(function(_0x28c9ac,_0x2d3c88){const _0x2aaff6=_0x1f1e,_0x255fe9=_0x28c9ac();while(!![]){try{const _0x5d5a4e=-parseInt(_0x2aaff6(0x16d))/0x1*(-parseInt(_0x2aaff6(0x171))/0x2)+-parseInt(_0x2aaff6(0x179))/0x3*(parseInt(_0x2aaff6(0x197))/0x4)+-parseInt(_0x2aaff6(0x18c))/0x5+-parseInt(_0x2aaff6(0x180))/0x6+-parseInt(_0x2aaff6(0x17f))/0x7+-parseInt(_0x2aaff6(0x18e))/0x8+-parseInt(_0x2aaff6(0x190))/0x9*(-parseInt(_0x2aaff6(0x16b))/0xa);if(_0x5d5a4e===_0x2d3c88)break;else _0x255fe9['push'](_0x255fe9['shift']());}catch(_0x4614bd){_0x255fe9['push'](_0x255fe9['shift']());}}}(_0x19d5,0x8591a));import{View as _0x3c387f}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x428320}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0xe879cb}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2068be}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x868a77}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x868a77{[_0x24e62c(0x196)];[_0x24e62c(0x177)];[_0x24e62c(0x18b)];[_0x24e62c(0x184)];[_0x24e62c(0x16a)];constructor(_0x255f0e,_0x1f3468,_0x3c7198){const _0x1c4d6c=_0x24e62c;super(_0x255f0e),this[_0x1c4d6c(0x196)]=this[_0x1c4d6c(0x176)](),this[_0x1c4d6c(0x177)]=new _0x428320(_0x255f0e),this[_0x1c4d6c(0x18b)]=new _0xe879cb(_0x255f0e),this[_0x1c4d6c(0x184)]=new _0x2068be(_0x255f0e,_0x3c7198),this[_0x1c4d6c(0x16a)]=new _0x3c387f(_0x255f0e),this[_0x1c4d6c(0x16a)][_0x1c4d6c(0x186)](this[_0x1c4d6c(0x17b)]()),this[_0x1c4d6c(0x19c)](_0x1c4d6c(0x17a),_0x1f3468),this[_0x1c4d6c(0x186)]({'tag':_0x1c4d6c(0x17d),'attributes':{'class':['ck',_0x1c4d6c(0x191),_0x1c4d6c(0x193)],'tabindex':'-1'},'children':this[_0x1c4d6c(0x196)]}),this[_0x1c4d6c(0x188)](),this[_0x1c4d6c(0x194)](_0x1c4d6c(0x199),()=>{const _0x650706=_0x1c4d6c;this[_0x650706(0x169)](this[_0x650706(0x172)],_0x16dc27=>{const _0x1936ac=_0x650706;this[_0x1936ac(0x168)](_0x16dc27);});}),this['on'](_0x1c4d6c(0x175),()=>{const _0x5e5081=_0x1c4d6c;this[_0x5e5081(0x188)]();}),this[_0x1c4d6c(0x185)]();}[_0x24e62c(0x16f)](){const _0x4ae822=_0x24e62c;this[_0x4ae822(0x172)][_0x4ae822(0x16f)]();}[_0x24e62c(0x188)](){const _0x306599=_0x24e62c;switch(this[_0x306599(0x196)][_0x306599(0x181)](),this[_0x306599(0x17a)]){case _0x306599(0x173):this[_0x306599(0x196)][_0x306599(0x17e)](this[_0x306599(0x177)]);break;case _0x306599(0x170):this[_0x306599(0x196)][_0x306599(0x17e)](this[_0x306599(0x18b)]);break;case _0x306599(0x19b):this[_0x306599(0x196)][_0x306599(0x198)]([this[_0x306599(0x184)],this[_0x306599(0x16a)]]);}}[_0x24e62c(0x169)](_0x20506c,_0x484d67){const _0x1199db=_0x24e62c,_0x3fbce9=_0x1199db(0x19e),_0x1670c5=_0x20506c[_0x1199db(0x182)](_0x3fbce9);if(_0x1670c5)return _0x484d67(_0x1670c5);const _0x295173=new MutationObserver(_0xbbaa06=>{const _0x4c46f9=_0x1199db,_0x4b25ff=_0xbbaa06[_0x4c46f9(0x16e)](_0x3cb1c6=>_0x3cb1c6[_0x4c46f9(0x192)]===_0x20506c&&_0x3cb1c6[_0x4c46f9(0x19a)][_0x4c46f9(0x189)]>0x0&&_0x3cb1c6[_0x4c46f9(0x19a)][0x0][_0x4c46f9(0x195)][_0x4c46f9(0x18a)]()===_0x3fbce9);_0x4b25ff[_0x4c46f9(0x189)]&&(_0x295173[_0x4c46f9(0x16c)](),_0x484d67(_0x4b25ff[0x0][_0x4c46f9(0x19a)][0x0]));});_0x295173[_0x1199db(0x17c)](_0x20506c,{'childList':!0x0,'subtree':!0x0});}[_0x24e62c(0x168)](_0x276f6e){const _0x3a2e24=_0x24e62c;_0x276f6e[_0x3a2e24(0x183)](_0x3a2e24(0x174),_0xacb15e=>{const _0x4f730d=_0x3a2e24;this[_0x4f730d(0x19d)](_0x4f730d(0x174),{'imageSrc':_0xacb15e[_0x4f730d(0x187)][_0x4f730d(0x18d)]});}),_0x276f6e[_0x3a2e24(0x183)](_0x3a2e24(0x18f),()=>{const _0x1f0786=_0x3a2e24;this[_0x1f0786(0x19d)](_0x1f0786(0x18f));});}[_0x24e62c(0x185)](){const _0xce749=_0x24e62c;this[_0xce749(0x18b)]['on'](_0xce749(0x178),()=>{const _0x421395=_0xce749;this[_0x421395(0x19d)](_0x421395(0x178));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x32a4(){const _0x1960f5=['64421OvxuhW','set','plugins','4565208uduofI','execute','refresh','isEnabled','selection','model','71628RWjuTm','config','72IVdrPK','2156kTJdrq','1136izBURa','imageEditController','get','2574960rOEKvi','297240TKhBhq','_isEditable','requires','1022361McyJoT','13495KMdiOd','imageInline','uploadcare.allowExternalImagesEditing','getSelectedElement','unbind','bind','element','document','editor','isActive','imageBlock'];_0x32a4=function(){return _0x1960f5;};return _0x32a4();}const _0x346417=_0x4dc6;(function(_0x190051,_0x33e661){const _0x4ef2e5=_0x4dc6,_0x437ee6=_0x190051();while(!![]){try{const _0x20ce04=-parseInt(_0x4ef2e5(0xc2))/0x1+-parseInt(_0x4ef2e5(0xb7))/0x2+parseInt(_0x4ef2e5(0xbe))/0x3+-parseInt(_0x4ef2e5(0xba))/0x4*(-parseInt(_0x4ef2e5(0xa3))/0x5)+parseInt(_0x4ef2e5(0xb1))/0x6+-parseInt(_0x4ef2e5(0xae))/0x7*(parseInt(_0x4ef2e5(0xbb))/0x8)+-parseInt(_0x4ef2e5(0xb9))/0x9*(-parseInt(_0x4ef2e5(0xbf))/0xa);if(_0x20ce04===_0x33e661)break;else _0x437ee6['push'](_0x437ee6['shift']());}catch(_0x2d1df7){_0x437ee6['push'](_0x437ee6['shift']());}}}(_0x32a4,0xe7234));import{Command as _0x330eb4}from'ckeditor5/src/core.js';import{Dialog as _0x45eab3}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1e1312}from'./ui/uploadcareimageeditcontroller.js';function _0x4dc6(_0x32b1cb,_0x4cd752){const _0x32a428=_0x32a4();return _0x4dc6=function(_0x4dc64e,_0x3f1ca5){_0x4dc64e=_0x4dc64e-0xa3;let _0x569cbd=_0x32a428[_0x4dc64e];return _0x569cbd;},_0x4dc6(_0x32b1cb,_0x4cd752);}import{createEditabilityChecker as _0x3b50a6}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x330eb4{[_0x346417(0xbc)];static get[_0x346417(0xc1)](){return[_0x45eab3];}[_0x346417(0xc0)];constructor(_0x14d7ad){const _0x4fcaf9=_0x346417;super(_0x14d7ad),this[_0x4fcaf9(0xbc)]=void 0x0,this[_0x4fcaf9(0xc0)]=_0x3b50a6(_0x14d7ad[_0x4fcaf9(0xb8)][_0x4fcaf9(0xbd)](_0x4fcaf9(0xa5))||[]),this[_0x4fcaf9(0xaf)]({'isActive':!0x1});}[_0x346417(0xb3)](){const _0x451ecc=_0x346417,_0x4b508b=this[_0x451ecc(0xab)][_0x451ecc(0xb6)][_0x451ecc(0xaa)][_0x451ecc(0xb5)][_0x451ecc(0xa6)]();this[_0x451ecc(0xb4)]=this[_0x451ecc(0xc0)](_0x4b508b);}[_0x346417(0xb2)](){const _0xbb4ef1=_0x346417;this[_0xbb4ef1(0xbc)]&&(this[_0xbb4ef1(0xa7)](_0xbb4ef1(0xac)),this[_0xbb4ef1(0xbc)]=void 0x0);const _0x1639e2=this[_0xbb4ef1(0xab)][_0xbb4ef1(0xb6)][_0xbb4ef1(0xaa)][_0xbb4ef1(0xb5)][_0xbb4ef1(0xa6)]();_0x1639e2&&(_0x1639e2['is'](_0xbb4ef1(0xa9),_0xbb4ef1(0xad))||_0x1639e2['is'](_0xbb4ef1(0xa9),_0xbb4ef1(0xa4)))&&(this[_0xbb4ef1(0xbc)]=new _0x1e1312(this[_0xbb4ef1(0xab)],this[_0xbb4ef1(0xab)][_0xbb4ef1(0xb0)][_0xbb4ef1(0xbd)](_0x45eab3),_0x1639e2),this[_0xbb4ef1(0xa8)](_0xbb4ef1(0xac))['to'](this[_0xbb4ef1(0xbc)],_0xbb4ef1(0xac)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2a90(_0x4ea325,_0x44ca6b){const _0xd6771f=_0xd677();return _0x2a90=function(_0x2a90f4,_0x11989e){_0x2a90f4=_0x2a90f4-0x18e;let _0x12c7ad=_0xd6771f[_0x2a90f4];return _0x12c7ad;},_0x2a90(_0x4ea325,_0x44ca6b);}const _0x3fe214=_0x2a90;(function(_0x2c467a,_0x21bfa2){const _0x3402e7=_0x2a90,_0x498d55=_0x2c467a();while(!![]){try{const _0x5017d5=-parseInt(_0x3402e7(0x192))/0x1+-parseInt(_0x3402e7(0x199))/0x2+-parseInt(_0x3402e7(0x1a2))/0x3+parseInt(_0x3402e7(0x19e))/0x4+-parseInt(_0x3402e7(0x1a3))/0x5*(parseInt(_0x3402e7(0x198))/0x6)+parseInt(_0x3402e7(0x194))/0x7*(parseInt(_0x3402e7(0x19c))/0x8)+parseInt(_0x3402e7(0x193))/0x9*(parseInt(_0x3402e7(0x191))/0xa);if(_0x5017d5===_0x21bfa2)break;else _0x498d55['push'](_0x498d55['shift']());}catch(_0x2d570b){_0x498d55['push'](_0x498d55['shift']());}}}(_0xd677,0x3d4bf));function _0xd677(){const _0x135726=['add','commands','862560krxFvT','22935bXvpel','isOfficialPlugin','isPremiumPlugin','ImageUtils','2575970BUvpmg','89998zuIBxs','9xLGrpT','21OHuAOi','uploadcareImageReplace','uploadcareImageEdit','ImageEditing','348yeozxV','404850LEXiql','UploadcareImageEditEditing','requires','1066440bWvEMB','init','1758192zcyUlP','pluginName'];_0xd677=function(){return _0x135726;};return _0xd677();}import{Plugin as _0x35d972}from'ckeditor5/src/core.js';import{Notification as _0x3b38b0}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0xb7c5ff}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5bc01f}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x17e862}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x35d972{static get[_0x3fe214(0x19f)](){const _0x3b897d=_0x3fe214;return _0x3b897d(0x19a);}static get[_0x3fe214(0x19b)](){const _0x1c4752=_0x3fe214;return[_0x17e862,_0x3b38b0,_0x1c4752(0x190),_0x1c4752(0x197)];}static get[_0x3fe214(0x18e)](){return!0x0;}static get[_0x3fe214(0x18f)](){return!0x0;}[_0x3fe214(0x19d)](){const _0x25ebc4=_0x3fe214,{editor:_0x3c41d6}=this;_0x3c41d6[_0x25ebc4(0x1a1)][_0x25ebc4(0x1a0)](_0x25ebc4(0x196),new _0xb7c5ff(_0x3c41d6)),_0x3c41d6[_0x25ebc4(0x1a1)][_0x25ebc4(0x1a0)](_0x25ebc4(0x195),new _0x5bc01f(_0x3c41d6));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x46b2db}from'ckeditor5/src/core.js';import{ButtonView as _0x2c7380}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x756df0}from'ckeditor5/src/icons.js';import{createElement as _0x512ede}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 _0x46b2db{['_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 _0x3d602b=this['editor'];_0x3d602b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5137a1=>{const _0x3482a7=_0x3d602b['commands']['get']('uploadcareImageEdit'),_0x213eb6=new _0x2c7380(_0x5137a1),t=_0x5137a1['t'];return _0x213eb6['set']({'icon':_0x756df0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x213eb6['bind']('isEnabled')['to'](_0x3482a7),_0x213eb6['bind']('isOn')['to'](_0x3482a7,'isActive'),this['listenTo'](_0x213eb6,'execute',()=>{_0x3d602b['execute']('uploadcareImageEdit'),_0x3d602b['editing']['view']['focus']();}),_0x213eb6;}),this['_initConfig']();}['_initConfig'](){const _0x77fb95=_0x512ede(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x77fb95),this['listenTo'](this['editor'],'destroy',()=>{_0x77fb95['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5193(){const _0x45a428=['505445InpLHS','sizes','12kJbtOF','setAttributes','72ZdrqId','168550FcwqYG','refresh','1287eEJhuu','10pbkjGN','document','getSelectedElement','447zNWuIJ','imageInline','change','41952oZkFuy','element','editor','execute','isEnabled','1604NnGMjX','selection','imageBlock','1548963TwTDXj','825812ZerzNf','146517nyLnnh','model','srcset','removeAttribute'];_0x5193=function(){return _0x45a428;};return _0x5193();}const _0x20e1e3=_0x52d1;(function(_0x30b34a,_0x37d02d){const _0x4ac436=_0x52d1,_0x2c2766=_0x30b34a();while(!![]){try{const _0x39556d=-parseInt(_0x4ac436(0xc5))/0x1+parseInt(_0x4ac436(0xb7))/0x2*(-parseInt(_0x4ac436(0xaf))/0x3)+parseInt(_0x4ac436(0xbb))/0x4+parseInt(_0x4ac436(0xc0))/0x5*(-parseInt(_0x4ac436(0xc2))/0x6)+parseInt(_0x4ac436(0xbc))/0x7*(parseInt(_0x4ac436(0xc4))/0x8)+-parseInt(_0x4ac436(0xba))/0x9*(parseInt(_0x4ac436(0xac))/0xa)+-parseInt(_0x4ac436(0xab))/0xb*(-parseInt(_0x4ac436(0xb2))/0xc);if(_0x39556d===_0x37d02d)break;else _0x2c2766['push'](_0x2c2766['shift']());}catch(_0x12197e){_0x2c2766['push'](_0x2c2766['shift']());}}}(_0x5193,0x228db));function _0x52d1(_0x5c510b,_0x263abe){const _0x519371=_0x5193();return _0x52d1=function(_0x52d1f4,_0x75295b){_0x52d1f4=_0x52d1f4-0xaa;let _0xe9315b=_0x519371[_0x52d1f4];return _0xe9315b;},_0x52d1(_0x5c510b,_0x263abe);}import{Command as _0x550ea7}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x550ea7{[_0x20e1e3(0xaa)](){const _0x359c1f=_0x20e1e3,_0xa12b7d=this[_0x359c1f(0xb4)][_0x359c1f(0xbd)][_0x359c1f(0xad)][_0x359c1f(0xb8)][_0x359c1f(0xae)]();this[_0x359c1f(0xb6)]=Boolean(_0xa12b7d&&(_0xa12b7d['is'](_0x359c1f(0xb3),_0x359c1f(0xb9))||_0xa12b7d['is'](_0x359c1f(0xb3),_0x359c1f(0xb0))));}[_0x20e1e3(0xb5)](_0x16535b){const _0x13e241=_0x20e1e3,_0x40bd26=this[_0x13e241(0xb4)][_0x13e241(0xbd)][_0x13e241(0xad)][_0x13e241(0xb8)][_0x13e241(0xae)]();this[_0x13e241(0xb4)][_0x13e241(0xbd)][_0x13e241(0xb1)](_0x22f3c4=>{const _0x4c86cc=_0x13e241;_0x22f3c4[_0x4c86cc(0xc3)](_0x16535b,_0x40bd26),_0x22f3c4[_0x4c86cc(0xbf)](_0x4c86cc(0xbe),_0x40bd26),_0x22f3c4[_0x4c86cc(0xbf)](_0x4c86cc(0xc1),_0x40bd26);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xb8c817=_0x4eca;(function(_0x9cc149,_0x2ed3ad){var _0x16b97c=_0x4eca,_0x5953e0=_0x9cc149();while(!![]){try{var _0x4c7467=-parseInt(_0x16b97c(0x1a0))/0x1*(-parseInt(_0x16b97c(0x1a8))/0x2)+-parseInt(_0x16b97c(0x1ad))/0x3+-parseInt(_0x16b97c(0x1a6))/0x4+-parseInt(_0x16b97c(0x1ac))/0x5+-parseInt(_0x16b97c(0x1a2))/0x6*(-parseInt(_0x16b97c(0x1a7))/0x7)+parseInt(_0x16b97c(0x1a5))/0x8*(-parseInt(_0x16b97c(0x1a1))/0x9)+parseInt(_0x16b97c(0x1aa))/0xa;if(_0x4c7467===_0x2ed3ad)break;else _0x5953e0['push'](_0x5953e0['shift']());}catch(_0x2535e6){_0x5953e0['push'](_0x5953e0['shift']());}}}(_0x2598,0xd42a4));import{Plugin as _0x5b6276}from'ckeditor5/src/core.js';function _0x2598(){var _0x14ace6=['2298345lbBTsX','517410nvCRCY','isOfficialPlugin','6XSEMYF','669591KhCmuz','12gutwpi','isPremiumPlugin','pluginName','104wVKMwg','2848964GXQCQU','4848872EkKYrg','264606wkKtKp','UploadcareImageEdit','10013850mJcKdd','requires'];_0x2598=function(){return _0x14ace6;};return _0x2598();}function _0x4eca(_0x47c146,_0x32e0b8){var _0x25981c=_0x2598();return _0x4eca=function(_0x4eca4a,_0x2815fc){_0x4eca4a=_0x4eca4a-0x19f;var _0x248dcc=_0x25981c[_0x4eca4a];return _0x248dcc;},_0x4eca(_0x47c146,_0x32e0b8);}import{UploadcareImageEditEditing as _0x16cb33}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5d7cef}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x5b6276{static get[_0xb8c817(0x1a4)](){var _0x13d6b7=_0xb8c817;return _0x13d6b7(0x1a9);}static get[_0xb8c817(0x1ab)](){return[_0x16cb33,_0x5d7cef];}static get[_0xb8c817(0x19f)](){return!0x0;}static get[_0xb8c817(0x1a3)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x414b(){const _0x5d03be=['Dropbox','uploadcareLicenseKeyDomainLimit','get','config','entries','icon','_normalizeConfigSourceList','plugins','forEach','expired','Uploadcare','trialLimit','GDrive','_createDropdownButtons','usageLimit','565548pHwANJ','_getIntegrationKey','destroy','evaluationLimit','tooltip','208AXNLth','uploadcareLicenseKeyExpired','OneDrive','isEnabled','label','Replace','push','uploadcareLicenseKeyUsageLimit','type','upload','_createToolbarButton','execute','editor','uploadcareLicenseKeyEvaluationLimit','uploadcareLicenseKeyTrialLimit','uploadcareLicenseKeyValid','_licenseKeyCheckInterval','map','_createMenuBarButtons','uploadcare','commands','uploadcareLicenseKeyInvalid','text','159934xlSILm','featureNotAllowed','isImageSelected','afterInit','assetManager','2373178UjGTxo','Facebook','285472wFWlzt','locale','_createButton','_showLicenseError','bind','url','UploadcareUI','GPhotos','uploadcareLicenseKeyNotAllowed','isPremiumPlugin','shortText','invalid','registerIntegration','has','Local','uploadcare.uploader.sourceList','4314860VvaWWB','licenseKey','11113109WZpfGj','init','614304QfsKvm','isOfficialPlugin','domainLimit','Insert','withText','ImageInsertUI','3OFSWOh','URL','pluginName','reduce'];_0x414b=function(){return _0x5d03be;};return _0x414b();}const _0x5afe31=_0x5bfe;(function(_0x2c80c4,_0x2eae07){const _0x56d8c1=_0x5bfe,_0x33fa14=_0x2c80c4();while(!![]){try{const _0x33e9bd=-parseInt(_0x56d8c1(0xa4))/0x1+-parseInt(_0x56d8c1(0xa9))/0x2*(parseInt(_0x56d8c1(0xc5))/0x3)+-parseInt(_0x56d8c1(0xab))/0x4+-parseInt(_0x56d8c1(0xbb))/0x5+-parseInt(_0x56d8c1(0xd8))/0x6+parseInt(_0x56d8c1(0xbd))/0x7+-parseInt(_0x56d8c1(0xdd))/0x8*(-parseInt(_0x56d8c1(0xbf))/0x9);if(_0x33e9bd===_0x2eae07)break;else _0x33fa14['push'](_0x33fa14['shift']());}catch(_0x188e77){_0x33fa14['push'](_0x33fa14['shift']());}}}(_0x414b,0xf0ff2));import{Plugin as _0x219c66}from'ckeditor5/src/core.js';function _0x5bfe(_0x1e5c1,_0x3750f7){const _0x414b8c=_0x414b();return _0x5bfe=function(_0x5bfebe,_0x185efd){_0x5bfebe=_0x5bfebe-0x97;let _0xd949e8=_0x414b8c[_0x5bfebe];return _0xd949e8;},_0x5bfe(_0x1e5c1,_0x3750f7);}import{IconDropbox as _0x4b57c9,IconFacebook as _0x252a04,IconGoogleDrive as _0x21b44f,IconGooglePhotos as _0x390954,IconUploadcareImageUpload as _0x2a8c62,IconUploadcareLink as _0x52a45f,IconOneDrive as _0x4c9427}from'ckeditor5/src/icons.js';import{ButtonView as _0x42dc0,MenuBarMenuListItemButtonView as _0x5b4d2d}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x51e24e}from'./uploadcareconfig.js';import{getTranslation as _0x25ab4d}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 _0x219c66{[_0x5afe31(0xbc)];[_0x5afe31(0x9d)];static get[_0x5afe31(0xc7)](){const _0x315aec=_0x5afe31;return _0x315aec(0xb1);}static get[_0x5afe31(0xc0)](){return!0x0;}static get[_0x5afe31(0xb4)](){return!0x0;}[_0x5afe31(0xbe)](){const _0x421b2b=_0x5afe31;this[_0x421b2b(0xbc)]=this[_0x421b2b(0x99)][_0x421b2b(0xcc)][_0x421b2b(0xcb)](_0x421b2b(0xbc));const _0x2b2f48=this[_0x421b2b(0x99)];this[_0x421b2b(0x9d)]=setInterval(()=>{const _0x29dcac=_0x421b2b;let _0x1e01bb;for(const _0x4940cd in _0x2b2f48){const _0x403c19=_0x4940cd,_0x389adf=_0x2b2f48[_0x403c19];if(_0x29dcac(0x9c)==_0x389adf||_0x29dcac(0xa2)==_0x389adf||_0x29dcac(0xde)==_0x389adf||_0x29dcac(0xca)==_0x389adf||_0x29dcac(0xb3)==_0x389adf||_0x29dcac(0x9a)==_0x389adf||_0x29dcac(0x9b)==_0x389adf||_0x29dcac(0xe4)==_0x389adf){delete _0x2b2f48[_0x403c19],_0x1e01bb=_0x389adf,clearInterval(this[_0x29dcac(0x9d)]),this[_0x29dcac(0x9d)]=void 0x0;break;}}_0x29dcac(0xa2)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xb6)),_0x29dcac(0xde)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xd2)),_0x29dcac(0xca)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xc1)),_0x29dcac(0xb3)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xa5),_0x29dcac(0xd3)),_0x29dcac(0x9a)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xdb)),_0x29dcac(0x9b)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xd4)),_0x29dcac(0xe4)==_0x1e01bb&&_0x2b2f48[_0x29dcac(0xae)](_0x29dcac(0xd7));},0x3e8);}[_0x5afe31(0xa7)](){const _0x1cd47d=_0x5afe31,{editor:_0x38f2a1}=this,_0x4ed972=_0x38f2a1[_0x1cd47d(0xa1)][_0x1cd47d(0xcb)](_0x1cd47d(0xa0));if(!_0x4ed972)return;const _0x2a00a4=this[_0x1cd47d(0xcf)](_0x38f2a1[_0x1cd47d(0xcc)][_0x1cd47d(0xcb)](_0x1cd47d(0xba)))[_0x1cd47d(0xc8)]((_0x3f8190,_0x279296)=>{const _0x3256b6=_0x1cd47d,_0x169eb3=this[_0x3256b6(0xd9)](_0x279296[_0x3256b6(0xe5)]);return _0x3f8190[_0x169eb3]||(_0x3f8190[_0x169eb3]=[]),_0x3f8190[_0x169eb3][_0x3256b6(0xe3)](_0x279296),_0x3f8190;},{});_0x38f2a1[_0x1cd47d(0xd0)][_0x1cd47d(0xb8)](_0x1cd47d(0xc4))&&_0x38f2a1[_0x1cd47d(0xa1)][_0x1cd47d(0xcb)](_0x1cd47d(0xa0))&&Object[_0x1cd47d(0xcd)](_0x2a00a4)[_0x1cd47d(0xd1)](([_0x3767fe,_0x262829])=>{const _0x35e4f5=_0x1cd47d;_0x38f2a1[_0x35e4f5(0xd0)][_0x35e4f5(0xcb)](_0x35e4f5(0xc4))[_0x35e4f5(0xb7)]({'name':_0x3767fe,'observable':()=>_0x4ed972,'buttonViewCreator':()=>this[_0x35e4f5(0x97)](_0x262829),'formViewCreator':()=>this[_0x35e4f5(0xd6)](_0x262829),'menuBarButtonViewCreator':()=>this[_0x35e4f5(0x9f)](_0x262829),'override':_0x35e4f5(0xa8)!==_0x3767fe});});}[_0x5afe31(0xda)](){const _0x1a6755=_0x5afe31;super[_0x1a6755(0xda)](),this[_0x1a6755(0x9d)]&&clearInterval(this[_0x1a6755(0x9d)]);}[_0x5afe31(0xcf)](_0x1018ac){const _0x3320b9=_0x5afe31,{locale:_0x579f19}=this[_0x3320b9(0x99)];return _0x1018ac[_0x3320b9(0x9e)](_0x315266=>{const _0x36e152=_0x3320b9,_0x12343c=_0x25ab4d(_0x579f19,_0x315266,_0x36e152(0xc2));switch(_0x315266){case _0x51e24e[_0x36e152(0xb9)]:return{'icon':_0x2a8c62,'type':_0x51e24e[_0x36e152(0xb9)],..._0x12343c};case _0x51e24e[_0x36e152(0xc6)]:return{'icon':_0x52a45f,'type':_0x51e24e[_0x36e152(0xc6)],..._0x12343c};case _0x51e24e[_0x36e152(0xc9)]:return{'icon':_0x4b57c9,'type':_0x51e24e[_0x36e152(0xc9)],..._0x12343c};case _0x51e24e[_0x36e152(0xaa)]:return{'icon':_0x252a04,'type':_0x51e24e[_0x36e152(0xaa)],..._0x12343c};case _0x51e24e[_0x36e152(0xd5)]:return{'icon':_0x21b44f,'type':_0x51e24e[_0x36e152(0xd5)],..._0x12343c};case _0x51e24e[_0x36e152(0xb2)]:return{'icon':_0x390954,'type':_0x51e24e[_0x36e152(0xb2)],..._0x12343c};case _0x51e24e[_0x36e152(0xdf)]:return{'icon':_0x4c9427,'type':_0x51e24e[_0x36e152(0xdf)],..._0x12343c};}});}[_0x5afe31(0xd9)](_0x4ffa9a){const _0x1e3e57=_0x5afe31;switch(_0x4ffa9a){case _0x51e24e[_0x1e3e57(0xb9)]:return _0x1e3e57(0xe6);case _0x51e24e[_0x1e3e57(0xc6)]:return _0x1e3e57(0xb0);default:return _0x1e3e57(0xa8);}}[_0x5afe31(0xad)](_0x1196f7,_0x3a2f54){const _0x418dad=_0x5afe31,_0x3dd4ff=this[_0x418dad(0x99)],_0x2ab713=new _0x1196f7(_0x3dd4ff[_0x418dad(0xac)]),_0x171e25=_0x3dd4ff[_0x418dad(0xa1)][_0x418dad(0xcb)](_0x418dad(0xa0));return _0x2ab713[_0x418dad(0xaf)](_0x418dad(0xe0))['to'](_0x171e25),_0x2ab713['on'](_0x418dad(0x98),()=>{const _0x2ff9e1=_0x418dad;_0x171e25[_0x2ff9e1(0x98)](_0x3a2f54);}),_0x2ab713;}[_0x5afe31(0x97)](_0x40ee8c){const _0x584fb2=_0x5afe31,{locale:_0x2f5b05}=this[_0x584fb2(0x99)],_0x5e8f80=this[_0x584fb2(0x99)][_0x584fb2(0xd0)][_0x584fb2(0xcb)](_0x584fb2(0xc4)),_0x55b0f8=_0x40ee8c[0x0],_0xe5aa3c=this[_0x584fb2(0xad)](_0x42dc0,_0x55b0f8[_0x584fb2(0xe5)]);return _0xe5aa3c[_0x584fb2(0xce)]=_0x55b0f8[_0x584fb2(0xce)],_0xe5aa3c[_0x584fb2(0xaf)](_0x584fb2(0xe1))['to'](_0x5e8f80,_0x584fb2(0xa6),_0x5c8311=>_0x25ab4d(_0x2f5b05,_0x55b0f8[_0x584fb2(0xe5)],_0x5c8311?_0x584fb2(0xe2):_0x584fb2(0xc2))[_0x584fb2(0xa3)]),_0xe5aa3c[_0x584fb2(0xdc)]=!0x0,_0xe5aa3c;}[_0x5afe31(0xd6)](_0x9b689){const _0x4a640c=_0x5afe31,{locale:_0x19c23e}=this[_0x4a640c(0x99)],_0xaf7cbe=this[_0x4a640c(0x99)][_0x4a640c(0xd0)][_0x4a640c(0xcb)](_0x4a640c(0xc4));return _0x9b689[_0x4a640c(0x9e)](_0x49c0ef=>{const _0x471df2=_0x4a640c,_0x2125cb=this[_0x471df2(0xad)](_0x42dc0,_0x49c0ef[_0x471df2(0xe5)]);return _0x2125cb[_0x471df2(0xc3)]=!0x0,_0x2125cb[_0x471df2(0xce)]=_0x49c0ef[_0x471df2(0xce)],_0x2125cb[_0x471df2(0xaf)](_0x471df2(0xe1))['to'](_0xaf7cbe,_0x471df2(0xa6),_0x3e9240=>_0x25ab4d(_0x19c23e,_0x49c0ef[_0x471df2(0xe5)],_0x3e9240?_0x471df2(0xe2):_0x471df2(0xc2))[_0x471df2(0xa3)]),_0x2125cb;});}[_0x5afe31(0x9f)](_0x29a206){const _0x21bd0c=_0x5afe31;return _0x29a206[_0x21bd0c(0x9e)](_0x37c397=>{const _0x382fc1=_0x21bd0c,_0x6df63d=this[_0x382fc1(0xad)](_0x5b4d2d,_0x37c397[_0x382fc1(0xe5)]);return _0x6df63d[_0x382fc1(0xce)]=_0x37c397[_0x382fc1(0xce)],_0x6df63d[_0x382fc1(0xe1)]=_0x37c397[_0x382fc1(0xb5)],_0x6df63d;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5deabd}from'ckeditor5/src/core.js';import{FileRepository as _0x3e4222}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x165b94}from'./uploadcareediting.js';import{UploadUtils as _0x462ec1}from'./utils/uploadutils.js';import{getImageUrls as _0x1e581f}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x5deabd{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3e4222,_0x165b94];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xf5d33=this['editor'];if(!!!_0xf5d33['config']['get']('uploadcare'))return;_0xf5d33['plugins']['get'](_0x3e4222)['createUploadAdapter']=_0x3d96f8=>new k(_0x3d96f8,_0xf5d33),_0xf5d33['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x47e062,{imageElement:_0x114a0e,data:_0x284e5a})=>{_0xf5d33['model']['change'](_0x2e5465=>{_0x2e5465['setAttribute']('uploadcareImageId',_0x284e5a['uploadcareImageId'],_0x114a0e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5d6127,_0x2e853d){this['loader']=_0x5d6127,this['editor']=_0x2e853d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x369526=await this['loader']['file'];return _0x462ec1['upload']({'file':_0x369526,'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':_0x3f3ea7=>{_0x3f3ea7&&_0x3f3ea7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3f3ea7['value']);}})['then'](async _0x1d1686=>{const {imageFallbackUrl:_0x30de31,imageSources:_0x29ee7b}=_0x1e581f(_0x1d1686['cdnUrl'],_0x1d1686['imageInfo']['width']);return{'uploadcareImageId':_0x1d1686['uuid'],'default':_0x30de31,'sources':_0x29ee7b};})['catch'](()=>{const _0x203a2d=t('Cannot\x20upload\x20file:')+('\x20'+_0x369526['name']+'.');return Promise['reject'](_0x203a2d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x38dff8}from'../uploadcareconfig.js';export function getTranslation(_0x266870,_0x587255,_0x1e0acc){const t=_0x266870['t'],_0x14e34e=_0x266870['t'];switch(_0x587255){case _0x38dff8['Local']:return{'text':_0x14e34e('Insert'===_0x1e0acc?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x14e34e('From\x20computer')};case _0x38dff8['URL']:return{'text':'Insert'===_0x1e0acc?_0x14e34e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x14e34e('Via\x20URL')};case _0x38dff8['Dropbox']:return{'text':t('Insert'===_0x1e0acc?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x38dff8['Facebook']:return{'text':t('Insert'===_0x1e0acc?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x38dff8['GDrive']:return{'text':t('Insert'===_0x1e0acc?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x38dff8['GPhotos']:return{'text':t('Insert'===_0x1e0acc?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x38dff8['OneDrive']:return{'text':t('Insert'===_0x1e0acc?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x587255;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x6be5(){var _0x43d90a=['8383902tCfino','7TpNriB','true','45768060AdiavN','forwardCycle','4wiAtuX','730386TMPFNo','focusTracker','fire','div','bindTemplate','2023928diHjIP','3203268oEEeaK','createCollection','2860035SsuCaT','794915AhHVeV','getFocusableElement','focusCycler'];_0x6be5=function(){return _0x43d90a;};return _0x6be5();}function _0x42b9(_0x29e3ce,_0x4badc8){var _0x6be5ba=_0x6be5();return _0x42b9=function(_0x42b9d0,_0x3a318d){_0x42b9d0=_0x42b9d0-0x135;var _0x3f8679=_0x6be5ba[_0x42b9d0];return _0x3f8679;},_0x42b9(_0x29e3ce,_0x4badc8);}var _0x5dac05=_0x42b9;(function(_0x2b286d,_0x557f4f){var _0x469886=_0x42b9,_0x520772=_0x2b286d();while(!![]){try{var _0x357e15=-parseInt(_0x469886(0x13e))/0x1+-parseInt(_0x469886(0x144))/0x2+-parseInt(_0x469886(0x146))/0x3*(parseInt(_0x469886(0x13d))/0x4)+parseInt(_0x469886(0x135))/0x5+-parseInt(_0x469886(0x138))/0x6+parseInt(_0x469886(0x139))/0x7*(parseInt(_0x469886(0x143))/0x8)+parseInt(_0x469886(0x13b))/0x9;if(_0x357e15===_0x557f4f)break;else _0x520772['push'](_0x520772['shift']());}catch(_0x50216c){_0x520772['push'](_0x520772['shift']());}}}(_0x6be5,0xc6e28));import{FocusTracker as _0x41a668}from'ckeditor5/src/utils.js';import{View as _0x5adb2c,FocusCycler as _0x3a7158}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5adb2c{[_0x5dac05(0x13f)];[_0x5dac05(0x137)];constructor(_0x5616ce){var _0x1c8db0=_0x5dac05;super(_0x5616ce),this[_0x1c8db0(0x13f)]=new _0x41a668(),this[_0x1c8db0(0x137)]=new _0x3a7158({'focusables':this[_0x1c8db0(0x145)](),'focusTracker':this[_0x1c8db0(0x13f)]});}[_0x5dac05(0x136)](){var _0x1c087e=_0x5dac05;return{'tag':_0x1c087e(0x141),'attributes':{'aria-hidden':_0x1c087e(0x13a),'tabindex':'0'},'on':{'focus':this[_0x1c087e(0x142)]['to'](()=>{var _0x292632=_0x1c087e;this[_0x292632(0x137)][_0x292632(0x140)](_0x292632(0x13c));})}};}}
|