@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.1 → 46.0.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x443b(_0x34dee4,_0x6ccdd8){const _0xe83fbd=_0xe83f();return _0x443b=function(_0x443b84,_0xbcbd0){_0x443b84=_0x443b84-0x79;let _0x173fc0=_0xe83fbd[_0x443b84];return _0x173fc0;},_0x443b(_0x34dee4,_0x6ccdd8);}const _0x523bb2=_0x443b;(function(_0x279453,_0x4a8d23){const _0x427e1b=_0x443b,_0x24369a=_0x279453();while(!![]){try{const _0x5001e5=-parseInt(_0x427e1b(0x92))/0x1*(parseInt(_0x427e1b(0x97))/0x2)+parseInt(_0x427e1b(0xa9))/0x3+parseInt(_0x427e1b(0x96))/0x4+-parseInt(_0x427e1b(0xa8))/0x5+parseInt(_0x427e1b(0xc5))/0x6+parseInt(_0x427e1b(0x85))/0x7*(parseInt(_0x427e1b(0xab))/0x8)+parseInt(_0x427e1b(0x8d))/0x9*(-parseInt(_0x427e1b(0x82))/0xa);if(_0x5001e5===_0x4a8d23)break;else _0x24369a['push'](_0x24369a['shift']());}catch(_0x5bb830){_0x24369a['push'](_0x24369a['shift']());}}}(_0xe83f,0xc7997));import{Plugin as _0x15b62f}from'ckeditor5/src/core.js';import{Dialog as _0x1bd23c}from'ckeditor5/src/ui.js';import{createElement as _0x1c7923,global as _0x1e2b07,uid as _0x4920e5}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x44d6f2}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2c1cb6}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x26baa6}from'./utils/editingutils.js';function _0xe83f(){const _0x425748=['extend','isOfficialPlugin','closeMax','view','8217OUnpiK','attributeToAttribute','elementToAttribute','execute','configElement','1UWUYPZ','editor','listenTo','_configElement','2726692ENhSvP','2084366NCHVnZ','getAttribute','uploadcare.uploader','replaceImageSource','uploadcare.pubkey','ucContextId','commands','locale','schema','destroy','document','_initConversion','uploadcareImageId','pluginName','getSelectedElement','uc-config','_initImageProcessingIndicator','116020uSZCPW','1947129AweGPB','PictureEditing','4002688VrreAo','_initCtx','editing','#uc-icon-arrow-down','href','add','isPremiumPlugin','contentLanguage','afterInit','isRegistered','uc-upload-ctx-provider','init','upcast','fromCharCode','_initSchema','render','map','uploadcareImageReplace','true','querySelector','removeAttribute','config','remove','\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','once','_ctxElement','6397422gisNAU','insertImage','uploader-','get','conversion','selection','model','imageInline','_initConfig','downcast','uploadcare','for','appendChild','imageBlock','requires','ctxElement','iconHrefResolver','input[uploadcare-file-input]','11110dXIAFn','body','data-uc-image-id','7FuLbFq','join','cleanupImage','UploadcareEditing'];_0xe83f=function(){return _0x425748;};return _0xe83f();}export class UploadcareEditing extends _0x15b62f{[_0x523bb2(0x95)]=null;[_0x523bb2(0xc4)]=null;static get[_0x523bb2(0xa4)](){const _0x532e33=_0x523bb2;return _0x532e33(0x88);}static get[_0x523bb2(0x7e)](){const _0x7e05d5=_0x523bb2;return[_0x7e05d5(0xaa),_0x2c1cb6,_0x1bd23c];}static get[_0x523bb2(0x8a)](){return!0x0;}static get[_0x523bb2(0xb1)](){return!0x0;}[_0x523bb2(0x9c)];get[_0x523bb2(0x91)](){const _0x160e4b=_0x523bb2;return this[_0x160e4b(0x95)];}get[_0x523bb2(0x7f)](){const _0x252d60=_0x523bb2;return this[_0x252d60(0xc4)];}constructor(_0x21c777){const _0x4fb011=_0x523bb2;super(_0x21c777),this[_0x4fb011(0x9c)]=_0x4920e5();}[_0x523bb2(0xb6)](){const _0x55f35e=_0x523bb2,_0x10b421=this[_0x55f35e(0x93)];_0x10b421[_0x55f35e(0x9d)][_0x55f35e(0xb0)](_0x55f35e(0x7a),new _0x44d6f2(_0x10b421));}[_0x523bb2(0xb3)](){const _0x2f4af9=_0x523bb2;this[_0x2f4af9(0xb9)](),this[_0x2f4af9(0xa2)](),this[_0x2f4af9(0xcd)](),this[_0x2f4af9(0xac)](),this[_0x2f4af9(0xa7)](),this[_0x2f4af9(0x94)](this[_0x2f4af9(0x93)],_0x2f4af9(0xa0),()=>{const _0x2af8e0=_0x2f4af9;this[_0x2af8e0(0x95)]&&(this[_0x2af8e0(0x95)][_0x2af8e0(0xc1)](),this[_0x2af8e0(0x95)]=null),this[_0x2af8e0(0xc4)]&&(this[_0x2af8e0(0xc4)][_0x2af8e0(0xc1)](),this[_0x2af8e0(0xc4)]=null);const _0x19b39e=_0x1e2b07[_0x2af8e0(0xa1)][_0x2af8e0(0xbe)](_0x2af8e0(0x81));_0x19b39e&&_0x19b39e[_0x2af8e0(0xc1)]();}),async function(_0x260a4c){const _0x421f29=_0x23359e([0x5a,0x4c,0x66,0x72,0x61,0x63,0x57,0x68,0x39,0x64,0x75,0x53,0x4b,0x77,0x4f,0x31,0x51,0x62,0x73,0x55,0x45,0x56,0x7a,0x30,0x58,0x49,0x35,0x54,0x38,0x50,0x59,0x76,0x69,0x79,0x41,0x4d,0x44,0x48,0x4e,0x32,0x6e,0x74,0x46,0x47,0x4a,0x67,0x43,0x6d,0x36,0x65,0x6c,0x70,0x78,0x6f,0x6b,0x34,0x52,0x37,0x33,0x42,0x6a,0x71]),_0x14934a=0x4ce62280,_0x5cd1c5=0x4ce14da0^_0x14934a,_0x3f3aa2=window[_0x23359e([0x44,0x61,0x74,0x65])][_0x23359e([0x6e,0x6f,0x77])](),_0x2c1994=_0x260a4c[_0x23359e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x539425=new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x379ce1=>{_0x2c1994[_0x23359e([0x6f,0x6e,0x63,0x65])](_0x23359e([0x72,0x65,0x61,0x64,0x79]),_0x379ce1);}),_0x394357={[_0x23359e([0x6b,0x74,0x79])]:_0x23359e([0x45,0x43]),[_0x23359e([0x75,0x73,0x65])]:_0x23359e([0x73,0x69,0x67]),[_0x23359e([0x63,0x72,0x76])]:_0x23359e([0x50,0x2d,0x32,0x35,0x36]),[_0x23359e([0x78])]:_0x23359e([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]),[_0x23359e([0x79])]:_0x23359e([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]),[_0x23359e([0x61,0x6c,0x67])]:_0x23359e([0x45,0x53,0x32,0x35,0x36])},_0x405ce2=_0x2c1994[_0x23359e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23359e([0x67,0x65,0x74])](_0x23359e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d13cf(){let _0x11d4ac,_0x2aea81=null,_0x2e2138=null;try{if(_0x405ce2==_0x23359e([0x47,0x50,0x4c]))return _0x23359e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11d4ac=_0x25c187(),!_0x11d4ac)return _0x23359e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11d4ac[_0x23359e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e2138=_0x23af6a(_0x11d4ac[_0x23359e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11d4ac[_0x23359e([0x6a,0x74,0x69])])),await _0x1edeec()?_0x3d2692()?_0xd725d()?_0x23359e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a6429()?(_0x11d4ac[_0x23359e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23359e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2aea81=_0x2f32c2(_0x23359e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11d4ac[_0x23359e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23359e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2aea81=_0x2f32c2(_0x23359e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a3929()):_0x23359e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23359e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23359e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23359e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd725d(){const _0x5e0b33=[_0x23359e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23359e([0x74,0x72,0x69,0x61,0x6c])][_0x23359e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11d4ac[_0x23359e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f3aa2/0x3e8:0xe10*_0x5cd1c5;return _0x11d4ac[_0x23359e([0x65,0x78,0x70])]<_0x5e0b33;}function _0x3d2692(){const _0x2a8dde=_0x11d4ac[_0x23359e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a8dde&&(!!_0x2a8dde[_0x23359e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23359e([0x2a]))||!!_0x2a8dde[_0x23359e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23359e([0x55,0x50,0x4c,0x43])));}function _0x5a6429(){const _0x4eb682=_0x443b,_0x170b07=_0x11d4ac[_0x23359e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x170b07||0x0==_0x170b07[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dd19e}=new URL(window[_0x23359e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4eb682(0xaf)]);if(_0x170b07[_0x23359e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dd19e))return!0x0;const _0x4af8d0=_0x5dd19e[_0x23359e([0x73,0x70,0x6c,0x69,0x74])](_0x23359e([0x2e]));return _0x170b07[_0x23359e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x484bcc=>_0x484bcc[_0x23359e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23359e([0x2a])))[_0x23359e([0x6d,0x61,0x70])](_0x227944=>_0x227944[_0x23359e([0x73,0x70,0x6c,0x69,0x74])](_0x23359e([0x2e])))[_0x23359e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xaccb86=>_0xaccb86[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4af8d0[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23359e([0x6d,0x61,0x70])](_0xf0f7e8=>Array(_0x4af8d0[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf0f7e8[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23359e([0x66,0x69,0x6c,0x6c])](_0xf0f7e8[0x0]===_0x23359e([0x2a])?_0x23359e([0x2a]):'')[_0x23359e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf0f7e8))[_0x23359e([0x73,0x6f,0x6d,0x65])](_0x4f85f0=>_0x4af8d0[_0x23359e([0x65,0x76,0x65,0x72,0x79])]((_0x52be47,_0x3bffbb)=>_0x4f85f0[_0x3bffbb]===_0x52be47||_0x4f85f0[_0x3bffbb]===_0x23359e([0x2a])));}function _0x2a3929(){return _0x2aea81&&_0x2e2138?new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f2790,_0x2b4890)=>{_0x2aea81[_0x23359e([0x74,0x68,0x65,0x6e])](_0x2f2790,_0x2b4890),_0x2e2138[_0x23359e([0x74,0x68,0x65,0x6e])](_0x3de807=>{_0x3de807!=_0x23359e([0x56,0x61,0x6c,0x69,0x64])&&_0x2f2790(_0x3de807);},_0x2b4890);}):_0x2aea81||_0x2e2138||_0x23359e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23af6a(_0x53943c,_0x1e28e3){return new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x586fde=>{if(_0x4be59e())return _0x586fde(_0x23359e([0x56,0x61,0x6c,0x69,0x64]));_0x32cd45(),_0x2c1994[_0x23359e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23359e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x8f52d=!0x1;const _0x105394=_0x4920e5();function _0x5a2f0d(_0x57fdf7){return!!_0x57fdf7&&(typeof _0x57fdf7===_0x23359e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57fdf7===_0x23359e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57fdf7[_0x23359e([0x74,0x68,0x65,0x6e])]===_0x23359e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57fdf7[_0x23359e([0x63,0x61,0x74,0x63,0x68])]===_0x23359e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bbe6b(_0x27e7fd){_0x1922fe(_0x27e7fd)[_0x23359e([0x74,0x68,0x65,0x6e])](_0x2109ef=>{if(!_0x2109ef||_0x2109ef[_0x23359e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23359e([0x6f,0x6b]))return _0x23359e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30cd1b(_0x44ca2f(_0x105394+_0x1e28e3))!=_0x2109ef[_0x23359e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23359e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23359e([0x56,0x61,0x6c,0x69,0x64]);})[_0x23359e([0x74,0x68,0x65,0x6e])](_0x5ac17f=>(_0x59acac(),_0x5ac17f),()=>{const _0x57092b=_0x2f8b95();return null==_0x57092b?(_0x59acac(),_0x23359e([0x56,0x61,0x6c,0x69,0x64])):_0x23359e(_0x3f3aa2-_0x57092b>(0x68eaa680^_0x14934a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23359e([0x74,0x68,0x65,0x6e])](_0x586fde)[_0x23359e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x586fde(_0x23359e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11f177=0x4cd0cc00^_0x14934a;function _0x59acac(){const _0x1116a9=_0x23359e([0x6c,0x6c,0x63,0x74,0x2d])+_0x30cd1b(_0x44ca2f(_0x53943c)),_0x3589ee=_0x3bc9e4(_0x30cd1b(window[_0x23359e([0x4d,0x61,0x74,0x68])][_0x23359e([0x63,0x65,0x69,0x6c])](_0x3f3aa2/_0x11f177)));window[_0x23359e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23359e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1116a9,_0x3589ee);}function _0x2f8b95(){const _0x37fdf8=_0x23359e([0x6c,0x6c,0x63,0x74,0x2d])+_0x30cd1b(_0x44ca2f(_0x53943c)),_0x344220=window[_0x23359e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23359e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37fdf8);return _0x344220?window[_0x23359e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bc9e4(_0x344220),0x10)*_0x11f177:null;}function _0x1922fe(_0x5ce967){return new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x508ff6,_0x1b5459)=>{_0x5ce967[_0x23359e([0x74,0x68,0x65,0x6e])](_0x508ff6,_0x1b5459),window[_0x23359e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b5459,0x4ce7f640^_0x14934a);});}}_0x2c1994[_0x23359e([0x6f,0x6e])](_0x23359e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52b01d,_0x4d85c1)=>{if(_0x4d85c1[0x0]!=_0x53943c)return _0x586fde(_0x23359e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d85c1[0x1]={..._0x4d85c1[0x1],[_0x23359e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x105394};},{[_0x23359e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23359e([0x68,0x69,0x67,0x68])}),_0x2c1994[_0x23359e([0x6f,0x6e])](_0x23359e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2cb0d2=>{_0x5a2f0d(_0x2cb0d2[_0x23359e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x8f52d=!0x0,_0x3bbe6b(_0x2cb0d2[_0x23359e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23359e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23359e([0x6c,0x6f,0x77])}),_0x539425[_0x23359e([0x74,0x68,0x65,0x6e])](()=>{_0x8f52d||_0x586fde(_0x23359e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4be59e(){return _0x2c1994[_0x23359e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23359e([0x76,0x69,0x65,0x77])][_0x23359e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23359e([0x61,0x75,0x74,0x6f]);}function _0x32cd45(){_0x2c1994[_0x23359e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23359e([0x76,0x69,0x65,0x77])][_0x23359e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23359e([0x61,0x75,0x74,0x6f]);}}function _0x2f32c2(_0x311b46){const _0x386a20=[new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ddc7c=>setTimeout(_0x5ddc7c,0x4cef1c4c^_0x14934a)),_0x539425[_0x23359e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11d99a=>{let _0x47d562=0x0;_0x2c1994[_0x23359e([0x6d,0x6f,0x64,0x65,0x6c])][_0x23359e([0x6f,0x6e])](_0x23359e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ddd86,_0x298fe1)=>{_0x298fe1[0x0][_0x23359e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47d562++,_0x47d562==(0x4ce62378^_0x14934a)&&(_0x11d99a(),_0x1ddd86[_0x23359e([0x6f,0x66,0x66])]());});}))];return window[_0x23359e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23359e([0x72,0x61,0x63,0x65])](_0x386a20)[_0x23359e([0x74,0x68,0x65,0x6e])](()=>_0x311b46);}async function _0x837203(){await _0x539425,_0x2c1994[_0x23359e([0x6d,0x6f,0x64,0x65,0x6c])][_0x23359e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xccca6,_0x2c1994[_0x23359e([0x6d,0x6f,0x64,0x65,0x6c])][_0x23359e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xccca6,_0x2c1994[_0x23359e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23359e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58094e(_0xb90764){const _0x9a3b90=_0x2507ff();_0x2c1994[_0x9a3b90]=_0x23359e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb90764,_0xb90764!=_0x23359e([0x56,0x61,0x6c,0x69,0x64])&&_0x837203();}function _0x2507ff(){const _0x2d5f8f=window[_0x23359e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23359e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23359e([0x6e,0x6f,0x77])]())[_0x23359e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23359e([0x2e]),'');let _0xff1c1d=_0x23359e([0x5a]);for(let _0x31b002=0x0;_0x31b002<_0x2d5f8f[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31b002+=0x2){let _0x3f3db5=window[_0x23359e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d5f8f[_0x23359e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31b002,_0x31b002+0x2));_0x3f3db5>=_0x421f29[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f3db5-=_0x421f29[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xff1c1d+=_0x421f29[_0x3f3db5];}return _0xff1c1d;}function _0x25c187(){const _0x3f5bcf=_0x405ce2[_0x23359e([0x73,0x70,0x6c,0x69,0x74])](_0x23359e([0x2e]));if(0x3!=_0x3f5bcf[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x445550(_0x3f5bcf[0x1]);function _0x445550(_0x1a168a){const _0x926208=_0x3d552c(_0x1a168a);return _0x926208&&_0x512e21()?_0x926208:null;function _0x512e21(){const _0x2d9b1c=_0x926208[_0x23359e([0x6a,0x74,0x69])],_0x415220=window[_0x23359e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d9b1c[_0x23359e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d9b1c[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16f047={..._0x926208,[_0x23359e([0x6a,0x74,0x69])]:_0x2d9b1c[_0x23359e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d9b1c[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16f047[_0x23359e([0x76,0x63])],_0x44ca2f(_0x16f047)==_0x415220;}}}async function _0x1edeec(){let _0x5df918=!0x0;try{const _0x43aff7=_0x405ce2[_0x23359e([0x73,0x70,0x6c,0x69,0x74])](_0x23359e([0x2e])),[_0x6fdac2,_0x498210,_0x1ecb5f]=_0x43aff7;return _0x4ff307(_0x6fdac2),await _0x50af0e(_0x6fdac2,_0x498210,_0x1ecb5f),_0x5df918;}catch{return!0x1;}function _0x4ff307(_0x414f49){const _0x37e65b=_0x3d552c(_0x414f49);_0x37e65b&&_0x37e65b[_0x23359e([0x61,0x6c,0x67])]==_0x23359e([0x45,0x53,0x32,0x35,0x36])||(_0x5df918=!0x1);}async function _0x50af0e(_0x50084c,_0x45be99,_0x4c46c4){const _0x38d73d=window[_0x23359e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23359e([0x66,0x72,0x6f,0x6d])](_0x4de233(_0x4c46c4),_0xbec1de=>_0xbec1de[_0x23359e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ceaf1=new window[(_0x23359e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23359e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50084c+_0x23359e([0x2e])+_0x45be99),_0x9ce83c=window[_0x23359e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23359e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9ce83c)return;const _0x18a0d8=await _0x9ce83c[_0x23359e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23359e([0x6a,0x77,0x6b]),_0x394357,{[_0x23359e([0x6e,0x61,0x6d,0x65])]:_0x23359e([0x45,0x43,0x44,0x53,0x41]),[_0x23359e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23359e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23359e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9ce83c[_0x23359e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23359e([0x6e,0x61,0x6d,0x65])]:_0x23359e([0x45,0x43,0x44,0x53,0x41]),[_0x23359e([0x68,0x61,0x73,0x68])]:{[_0x23359e([0x6e,0x61,0x6d,0x65])]:_0x23359e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18a0d8,_0x38d73d,_0x4ceaf1)||(_0x5df918=!0x1);}}function _0x3d552c(_0x31db44){return _0x31db44[_0x23359e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23359e([0x65,0x79]))?JSON[_0x23359e([0x70,0x61,0x72,0x73,0x65])](_0x4de233(_0x31db44)):null;}function _0x4de233(_0x18479a){return window[_0x23359e([0x61,0x74,0x6f,0x62])](_0x18479a[_0x23359e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23359e([0x2b]))[_0x23359e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23359e([0x2f])));}function _0x44ca2f(_0x3be326){let _0x3132a0=0x1505;function _0xccd13c(_0x224105){for(let _0x3b4615=0x0;_0x3b4615<_0x224105[_0x23359e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b4615++){const _0x2aba5f=_0x224105[_0x23359e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b4615);_0x3132a0=(_0x3132a0<<0x5)+_0x3132a0+_0x2aba5f,_0x3132a0&=_0x3132a0;}}function _0x45336a(_0x32dd50){Array[_0x23359e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32dd50)?_0x32dd50[_0x23359e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45336a):_0x32dd50&&typeof _0x32dd50==_0x23359e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23359e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32dd50)[_0x23359e([0x73,0x6f,0x72,0x74])]()[_0x23359e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f67de,_0x13183a])=>{_0xccd13c(_0x1f67de),_0x45336a(_0x13183a);}):_0xccd13c(window[_0x23359e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32dd50));}return _0x45336a(_0x3be326),_0x3132a0>>>0x0;}function _0x30cd1b(_0x3e42c3){return _0x3e42c3[_0x23359e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23359e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23359e([0x30]));}function _0x3bc9e4(_0x188cef){return _0x188cef[_0x23359e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23359e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23359e([0x6a,0x6f,0x69,0x6e])]('');}function _0xccca6(){}function _0x23359e(_0x55559c){const _0x16d02a=_0x443b;return _0x55559c[_0x16d02a(0xbb)](_0x2b9df2=>String[_0x16d02a(0xb8)](_0x2b9df2))[_0x16d02a(0x86)]('');}_0x58094e(await _0x1d13cf());}(this);}[_0x523bb2(0xb9)](){const _0x1e4079=_0x523bb2,_0x1ef62b=this[_0x1e4079(0x93)][_0x1e4079(0xcb)][_0x1e4079(0x9f)];_0x1ef62b[_0x1e4079(0xb4)](_0x1e4079(0x7d))&&_0x1ef62b[_0x1e4079(0x89)](_0x1e4079(0x7d),{'allowAttributes':[_0x1e4079(0xa3)]}),_0x1ef62b[_0x1e4079(0xb4)](_0x1e4079(0xcc))&&_0x1ef62b[_0x1e4079(0x89)](_0x1e4079(0xcc),{'allowAttributes':[_0x1e4079(0xa3)]});}[_0x523bb2(0xa2)](){const _0x34ebe4=_0x523bb2,_0x1d8798=this[_0x34ebe4(0x93)];_0x1d8798[_0x34ebe4(0xc9)][_0x34ebe4(0x7b)](_0x34ebe4(0x79))[_0x34ebe4(0x8e)]({'model':_0x34ebe4(0xa3),'view':_0x34ebe4(0x84)}),_0x1d8798[_0x34ebe4(0xc9)][_0x34ebe4(0x7b)](_0x34ebe4(0xb7))[_0x34ebe4(0x8f)]({'model':{'key':_0x34ebe4(0xa3),'value':_0x1adda3=>_0x1adda3[_0x34ebe4(0x98)](_0x34ebe4(0x84))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3789e1=_0x1d8798[_0x34ebe4(0x9d)][_0x34ebe4(0xc8)](_0x34ebe4(0x9a));_0x3789e1&&this[_0x34ebe4(0x94)](_0x3789e1,_0x34ebe4(0x87),(_0x5c586c,[_0x46fbfa,_0x40cc7d])=>{const _0x214b5e=_0x34ebe4;_0x46fbfa[_0x214b5e(0xbf)](_0x214b5e(0xa3),_0x40cc7d);});}[_0x523bb2(0xcd)](){const _0x1bccfe=_0x523bb2,_0x2abb41=this[_0x1bccfe(0x93)][_0x1bccfe(0xc0)][_0x1bccfe(0xc8)](_0x1bccfe(0x99))||{},_0x1df151=this[_0x1bccfe(0x93)][_0x1bccfe(0xc0)][_0x1bccfe(0xc8)](_0x1bccfe(0x9b))||'';this[_0x1bccfe(0x95)]=_0x1c7923(_0x1e2b07[_0x1bccfe(0xa1)],_0x1bccfe(0xa6),{..._0x2abb41,'pubkey':_0x1df151,'ctx-name':_0x1bccfe(0xc7)+this[_0x1bccfe(0x9c)],'sourceList':'','imgOnly':_0x1bccfe(0xbd),'removeCopyright':_0x1bccfe(0xbd),'localeName':this[_0x1bccfe(0x93)][_0x1bccfe(0x9e)][_0x1bccfe(0xb2)],'externalSourcesEmbedCss':_0x1bccfe(0xc2)}),this[_0x1bccfe(0x95)][_0x1bccfe(0x80)]=_0x24fe4c=>{const _0x5aeb8c=_0x1bccfe;if(_0x5aeb8c(0x8b)==_0x24fe4c)return _0x5aeb8c(0xae);},_0x1e2b07[_0x1bccfe(0xa1)][_0x1bccfe(0x83)][_0x1bccfe(0x7c)](this[_0x1bccfe(0x95)]);}[_0x523bb2(0xac)](){const _0x1139db=_0x523bb2;this[_0x1139db(0xc4)]=_0x1c7923(_0x1e2b07[_0x1139db(0xa1)],_0x1139db(0xb5),{'ctx-name':_0x1139db(0xc7)+this[_0x1139db(0x9c)]}),_0x1e2b07[_0x1139db(0xa1)][_0x1139db(0x83)][_0x1139db(0x7c)](this[_0x1139db(0xc4)]);}[_0x523bb2(0xa7)](){const _0x28f94d=_0x523bb2,_0x4eed15=this[_0x28f94d(0x93)][_0x28f94d(0x9d)][_0x28f94d(0xc8)](_0x28f94d(0xc6));_0x4eed15&&this[_0x28f94d(0x94)](_0x4eed15,_0x28f94d(0x90),()=>{const _0x4b8f22=_0x28f94d,_0x41ca01=this[_0x4b8f22(0x93)][_0x4b8f22(0xcb)][_0x4b8f22(0xa1)][_0x4b8f22(0xca)][_0x4b8f22(0xa5)]();_0x41ca01&&_0x41ca01[_0x4b8f22(0x98)](_0x4b8f22(0xa3))&&this[_0x4b8f22(0x93)][_0x4b8f22(0xad)][_0x4b8f22(0x8c)][_0x4b8f22(0xc3)](_0x4b8f22(0xba),()=>{const _0x57f231=_0x4b8f22;_0x26baa6(this[_0x57f231(0x93)],_0x41ca01);});});const _0x385d28=this[_0x28f94d(0x93)][_0x28f94d(0x9d)][_0x28f94d(0xc8)](_0x28f94d(0xbc));_0x385d28&&this[_0x28f94d(0x94)](_0x385d28,_0x28f94d(0x90),()=>{const _0x44be49=_0x28f94d,_0x156b4e=this[_0x44be49(0x93)][_0x44be49(0xcb)][_0x44be49(0xa1)][_0x44be49(0xca)][_0x44be49(0xa5)]();_0x156b4e&&_0x156b4e[_0x44be49(0x98)](_0x44be49(0xa3))&&this[_0x44be49(0x93)][_0x44be49(0xad)][_0x44be49(0x8c)][_0x44be49(0xc3)](_0x44be49(0xba),()=>{const _0x5b481d=_0x44be49;_0x26baa6(this[_0x5b481d(0x93)],_0x156b4e);});});}}
|
|
23
|
+
function _0x441a(){const _0x3b233b=['locale','uploadcareImageReplace','_initCtx','uploadcare','execute','uploadcareImageId','destroy','fromCharCode','1271413dxHKrl','insertImage','\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','2128458xNpQSZ','8336846WuvAQT','3170292ZlWEgS','6186orAnkH','afterInit','input[uploadcare-file-input]','view','closeMax','config','iconHrefResolver','uc-upload-ctx-provider','_initConversion','join','configElement','map','downcast','uploadcare.uploader','isOfficialPlugin','schema','_initConfig','ctxElement','add','remove','get','#uc-icon-arrow-down','body','document','listenTo','extend','uc-config','querySelector','appendChild','data-uc-image-id','_initImageProcessingIndicator','imageInline','href','72jQXKOU','isRegistered','init','3398310OpthVC','editing','conversion','commands','ucContextId','getAttribute','elementToAttribute','editor','attributeToAttribute','uploadcare.pubkey','cleanupImage','PictureEditing','_configElement','8CInLLm','contentLanguage','pluginName','uploader-','_initSchema','removeAttribute','model','getSelectedElement','_ctxElement','selection','for','imageBlock','upcast','requires','once','UploadcareEditing','true','render','351963qtbIOk','isPremiumPlugin','replaceImageSource'];_0x441a=function(){return _0x3b233b;};return _0x441a();}const _0x4404fd=_0x4894;function _0x4894(_0x3260a0,_0x35ba6f){const _0x441ae1=_0x441a();return _0x4894=function(_0x489434,_0x413536){_0x489434=_0x489434-0xd7;let _0x420af9=_0x441ae1[_0x489434];return _0x420af9;},_0x4894(_0x3260a0,_0x35ba6f);}(function(_0x164b4c,_0xcd7188){const _0x2cc1e2=_0x4894,_0x106bf8=_0x164b4c();while(!![]){try{const _0x455718=parseInt(_0x2cc1e2(0xdb))/0x1+parseInt(_0x2cc1e2(0x102))/0x2*(parseInt(_0x2cc1e2(0xe1))/0x3)+parseInt(_0x2cc1e2(0xe0))/0x4+-parseInt(_0x2cc1e2(0x105))/0x5+parseInt(_0x2cc1e2(0xde))/0x6+parseInt(_0x2cc1e2(0xdf))/0x7*(-parseInt(_0x2cc1e2(0x112))/0x8)+parseInt(_0x2cc1e2(0x124))/0x9;if(_0x455718===_0xcd7188)break;else _0x106bf8['push'](_0x106bf8['shift']());}catch(_0x32329e){_0x106bf8['push'](_0x106bf8['shift']());}}}(_0x441a,0xa17b4));import{Plugin as _0x1d81d9}from'ckeditor5/src/core.js';import{Dialog as _0x1d1c61}from'ckeditor5/src/ui.js';import{createElement as _0x200d44,global as _0x4e4db6,uid as _0x2a4209}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x306f1f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5b8a33}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2e8bc0}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1d81d9{[_0x4404fd(0x111)]=null;[_0x4404fd(0x11a)]=null;static get[_0x4404fd(0x114)](){const _0x2aa16a=_0x4404fd;return _0x2aa16a(0x121);}static get[_0x4404fd(0x11f)](){const _0x40791d=_0x4404fd;return[_0x40791d(0x110),_0x5b8a33,_0x1d1c61];}static get[_0x4404fd(0xef)](){return!0x0;}static get[_0x4404fd(0x125)](){return!0x0;}[_0x4404fd(0x109)];get[_0x4404fd(0xeb)](){const _0x1a45e8=_0x4404fd;return this[_0x1a45e8(0x111)];}get[_0x4404fd(0xf2)](){const _0x53d7d9=_0x4404fd;return this[_0x53d7d9(0x11a)];}constructor(_0x3468c3){const _0x30ac32=_0x4404fd;super(_0x3468c3),this[_0x30ac32(0x109)]=_0x2a4209();}[_0x4404fd(0x104)](){const _0x1051a7=_0x4404fd,_0x3e07ca=this[_0x1051a7(0x10c)];_0x3e07ca[_0x1051a7(0x108)][_0x1051a7(0xf3)](_0x1051a7(0x12a),new _0x306f1f(_0x3e07ca));}[_0x4404fd(0xe2)](){const _0x43626d=_0x4404fd;this[_0x43626d(0x116)](),this[_0x43626d(0xe9)](),this[_0x43626d(0xf1)](),this[_0x43626d(0x129)](),this[_0x43626d(0xff)](),this[_0x43626d(0xf9)](this[_0x43626d(0x10c)],_0x43626d(0xd9),()=>{const _0x4df8e7=_0x43626d;this[_0x4df8e7(0x111)]&&(this[_0x4df8e7(0x111)][_0x4df8e7(0xf4)](),this[_0x4df8e7(0x111)]=null),this[_0x4df8e7(0x11a)]&&(this[_0x4df8e7(0x11a)][_0x4df8e7(0xf4)](),this[_0x4df8e7(0x11a)]=null);const _0x33cfef=_0x4e4db6[_0x4df8e7(0xf8)][_0x4df8e7(0xfc)](_0x4df8e7(0xe3));_0x33cfef&&_0x33cfef[_0x4df8e7(0xf4)]();}),async function(_0x17c066){const _0x20fa56=_0x53e55d([0x72,0x51,0x4d,0x64,0x61,0x78,0x4f,0x77,0x33,0x6e,0x65,0x6a,0x39,0x52,0x63,0x71,0x30,0x57,0x43,0x4e,0x38,0x42,0x7a,0x34,0x70,0x68,0x73,0x79,0x4a,0x5a,0x6d,0x67,0x6f,0x36,0x4b,0x54,0x50,0x55,0x35,0x48,0x66,0x56,0x31,0x58,0x69,0x75,0x4c,0x53,0x6b,0x76,0x41,0x37,0x6c,0x62,0x74,0x32,0x49,0x46,0x47,0x44,0x45,0x59]),_0x514a0c=0x3f6883ea,_0x23b847=0x3f6fecba^_0x514a0c,_0x5bccfa=window[_0x53e55d([0x44,0x61,0x74,0x65])][_0x53e55d([0x6e,0x6f,0x77])](),_0x42ee44=_0x17c066[_0x53e55d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x494148=new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x179f81=>{_0x42ee44[_0x53e55d([0x6f,0x6e,0x63,0x65])](_0x53e55d([0x72,0x65,0x61,0x64,0x79]),_0x179f81);}),_0xd57589={[_0x53e55d([0x6b,0x74,0x79])]:_0x53e55d([0x45,0x43]),[_0x53e55d([0x75,0x73,0x65])]:_0x53e55d([0x73,0x69,0x67]),[_0x53e55d([0x63,0x72,0x76])]:_0x53e55d([0x50,0x2d,0x32,0x35,0x36]),[_0x53e55d([0x78])]:_0x53e55d([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]),[_0x53e55d([0x79])]:_0x53e55d([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]),[_0x53e55d([0x61,0x6c,0x67])]:_0x53e55d([0x45,0x53,0x32,0x35,0x36])},_0x540f58=_0x42ee44[_0x53e55d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53e55d([0x67,0x65,0x74])](_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x55f508(){let _0x20adb4,_0x227131=null,_0x2ea83f=null;try{if(_0x540f58==_0x53e55d([0x47,0x50,0x4c]))return _0x53e55d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20adb4=_0xe3b7b(),!_0x20adb4)return _0x53e55d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20adb4[_0x53e55d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ea83f=_0x503ecd(_0x20adb4[_0x53e55d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20adb4[_0x53e55d([0x6a,0x74,0x69])])),await _0x1eeb0c()?_0x19aefe()?_0x4aa36f()?_0x53e55d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ac17b()?(_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53e55d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x227131=_0x5afc24(_0x53e55d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53e55d([0x74,0x72,0x69,0x61,0x6c])&&(_0x227131=_0x5afc24(_0x53e55d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e4b21()):_0x53e55d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53e55d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53e55d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53e55d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4aa36f(){const _0x4b27c1=[_0x53e55d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53e55d([0x74,0x72,0x69,0x61,0x6c])][_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bccfa/0x3e8:0xe10*_0x23b847;return _0x20adb4[_0x53e55d([0x65,0x78,0x70])]<_0x4b27c1;}function _0x19aefe(){const _0x1b21f7=_0x20adb4[_0x53e55d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b21f7&&(!!_0x1b21f7[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e55d([0x2a]))||!!_0x1b21f7[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e55d([0x55,0x50,0x4c,0x43])));}function _0x1ac17b(){const _0xb91ed1=_0x4894,_0x13ccc6=_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13ccc6||0x0==_0x13ccc6[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c2214}=new URL(window[_0x53e55d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xb91ed1(0x101)]);if(_0x13ccc6[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c2214))return!0x0;const _0x239ec6=_0x5c2214[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e]));return _0x13ccc6[_0x53e55d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x208fa2=>_0x208fa2[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e55d([0x2a])))[_0x53e55d([0x6d,0x61,0x70])](_0x32d1db=>_0x32d1db[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e])))[_0x53e55d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6037e0=>_0x6037e0[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x239ec6[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53e55d([0x6d,0x61,0x70])](_0x4e259b=>Array(_0x239ec6[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4e259b[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53e55d([0x66,0x69,0x6c,0x6c])](_0x4e259b[0x0]===_0x53e55d([0x2a])?_0x53e55d([0x2a]):'')[_0x53e55d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4e259b))[_0x53e55d([0x73,0x6f,0x6d,0x65])](_0x23c131=>_0x239ec6[_0x53e55d([0x65,0x76,0x65,0x72,0x79])]((_0x4484d5,_0x6f3a)=>_0x23c131[_0x6f3a]===_0x4484d5||_0x23c131[_0x6f3a]===_0x53e55d([0x2a])));}function _0x2e4b21(){return _0x227131&&_0x2ea83f?new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47dfa7,_0x2b0604)=>{_0x227131[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x47dfa7,_0x2b0604),_0x2ea83f[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x218d84=>{_0x218d84!=_0x53e55d([0x56,0x61,0x6c,0x69,0x64])&&_0x47dfa7(_0x218d84);},_0x2b0604);}):_0x227131||_0x2ea83f||_0x53e55d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x503ecd(_0x590d8f,_0x34df80){return new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x332773=>{if(_0xe4d444())return _0x332773(_0x53e55d([0x56,0x61,0x6c,0x69,0x64]));_0x30301a(),_0x42ee44[_0x53e55d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53e55d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10bf83=!0x1;const _0x499e2d=_0x2a4209();function _0x4a1d37(_0x19df08){return!!_0x19df08&&(typeof _0x19df08===_0x53e55d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19df08===_0x53e55d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19df08[_0x53e55d([0x74,0x68,0x65,0x6e])]===_0x53e55d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19df08[_0x53e55d([0x63,0x61,0x74,0x63,0x68])]===_0x53e55d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12d7c5(_0x16c148){_0x23d53d(_0x16c148)[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x230d5b=>{if(!_0x230d5b||_0x230d5b[_0x53e55d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53e55d([0x6f,0x6b]))return _0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x446aea(_0x3839cf(_0x499e2d+_0x34df80))!=_0x230d5b[_0x53e55d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53e55d([0x56,0x61,0x6c,0x69,0x64]);})[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x1995bb=>(_0x5e35ef(),_0x1995bb),()=>{const _0x38b4b4=_0x292013();return null==_0x38b4b4?(_0x5e35ef(),_0x53e55d([0x56,0x61,0x6c,0x69,0x64])):_0x53e55d(_0x5bccfa-_0x38b4b4>(0x1b6407ea^_0x514a0c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x332773)[_0x53e55d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x332773(_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a9c95=0x3f5e6d6a^_0x514a0c;function _0x5e35ef(){const _0x285b29=_0x53e55d([0x6c,0x6c,0x63,0x74,0x2d])+_0x446aea(_0x3839cf(_0x590d8f)),_0x594eff=_0x65e589(_0x446aea(window[_0x53e55d([0x4d,0x61,0x74,0x68])][_0x53e55d([0x63,0x65,0x69,0x6c])](_0x5bccfa/_0x5a9c95)));window[_0x53e55d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53e55d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x285b29,_0x594eff);}function _0x292013(){const _0x46ce08=_0x53e55d([0x6c,0x6c,0x63,0x74,0x2d])+_0x446aea(_0x3839cf(_0x590d8f)),_0x54f447=window[_0x53e55d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53e55d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46ce08);return _0x54f447?window[_0x53e55d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x65e589(_0x54f447),0x10)*_0x5a9c95:null;}function _0x23d53d(_0x5456cc){return new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa4ab3b,_0x390514)=>{_0x5456cc[_0x53e55d([0x74,0x68,0x65,0x6e])](_0xa4ab3b,_0x390514),window[_0x53e55d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x390514,0x3f69572a^_0x514a0c);});}}_0x42ee44[_0x53e55d([0x6f,0x6e])](_0x53e55d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a2a04,_0x45777f)=>{if(_0x45777f[0x0]!=_0x590d8f)return _0x332773(_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45777f[0x1]={..._0x45777f[0x1],[_0x53e55d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x499e2d};},{[_0x53e55d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53e55d([0x68,0x69,0x67,0x68])}),_0x42ee44[_0x53e55d([0x6f,0x6e])](_0x53e55d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f7e74=>{_0x4a1d37(_0x2f7e74[_0x53e55d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10bf83=!0x0,_0x12d7c5(_0x2f7e74[_0x53e55d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53e55d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53e55d([0x6c,0x6f,0x77])}),_0x494148[_0x53e55d([0x74,0x68,0x65,0x6e])](()=>{_0x10bf83||_0x332773(_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe4d444(){return _0x42ee44[_0x53e55d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53e55d([0x76,0x69,0x65,0x77])][_0x53e55d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53e55d([0x61,0x75,0x74,0x6f]);}function _0x30301a(){_0x42ee44[_0x53e55d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53e55d([0x76,0x69,0x65,0x77])][_0x53e55d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53e55d([0x61,0x75,0x74,0x6f]);}}function _0x5afc24(_0x5e456a){const _0x4d967f=[new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf0abae=>setTimeout(_0xf0abae,0x3f61bd26^_0x514a0c)),_0x494148[_0x53e55d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d91c0=>{let _0x475cf4=0x0;_0x42ee44[_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e55d([0x6f,0x6e])](_0x53e55d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1fb018,_0xbc359c)=>{_0xbc359c[0x0][_0x53e55d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x475cf4++,_0x475cf4==(0x3f688212^_0x514a0c)&&(_0x5d91c0(),_0x1fb018[_0x53e55d([0x6f,0x66,0x66])]());});}))];return window[_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53e55d([0x72,0x61,0x63,0x65])](_0x4d967f)[_0x53e55d([0x74,0x68,0x65,0x6e])](()=>_0x5e456a);}async function _0x523cef(){await _0x494148,_0x42ee44[_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e55d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x567023,_0x42ee44[_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e55d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x567023,_0x42ee44[_0x53e55d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x143412(_0x559f59){const _0x225be1=_0x1a8f00();_0x42ee44[_0x225be1]=_0x53e55d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x559f59,_0x559f59!=_0x53e55d([0x56,0x61,0x6c,0x69,0x64])&&_0x523cef();}function _0x1a8f00(){const _0x5684c2=window[_0x53e55d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53e55d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53e55d([0x6e,0x6f,0x77])]())[_0x53e55d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53e55d([0x2e]),'');let _0x562fe5=_0x53e55d([0x72]);for(let _0x5b13f8=0x0;_0x5b13f8<_0x5684c2[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b13f8+=0x2){let _0x53ad73=window[_0x53e55d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5684c2[_0x53e55d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b13f8,_0x5b13f8+0x2));_0x53ad73>=_0x20fa56[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53ad73-=_0x20fa56[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x562fe5+=_0x20fa56[_0x53ad73];}return _0x562fe5;}function _0xe3b7b(){const _0x1f82f8=_0x540f58[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e]));if(0x3!=_0x1f82f8[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x545718(_0x1f82f8[0x1]);function _0x545718(_0x3723c8){const _0x4e8215=_0x118f4f(_0x3723c8);return _0x4e8215&&_0x357922()?_0x4e8215:null;function _0x357922(){const _0x4a7518=_0x4e8215[_0x53e55d([0x6a,0x74,0x69])],_0x4cf968=window[_0x53e55d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a7518[_0x53e55d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a7518[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27944c={..._0x4e8215,[_0x53e55d([0x6a,0x74,0x69])]:_0x4a7518[_0x53e55d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a7518[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27944c[_0x53e55d([0x76,0x63])],_0x3839cf(_0x27944c)==_0x4cf968;}}}async function _0x1eeb0c(){let _0x57ca57=!0x0;try{const _0x15f5d5=_0x540f58[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e])),[_0x3657b5,_0x3df25d,_0x2247bb]=_0x15f5d5;return _0xd6e75b(_0x3657b5),await _0x24e966(_0x3657b5,_0x3df25d,_0x2247bb),_0x57ca57;}catch{return!0x1;}function _0xd6e75b(_0x3d01b8){const _0x149d66=_0x118f4f(_0x3d01b8);_0x149d66&&_0x149d66[_0x53e55d([0x61,0x6c,0x67])]==_0x53e55d([0x45,0x53,0x32,0x35,0x36])||(_0x57ca57=!0x1);}async function _0x24e966(_0x5aeb7b,_0x42ef7f,_0xfea089){const _0x242e1a=window[_0x53e55d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53e55d([0x66,0x72,0x6f,0x6d])](_0x36acf4(_0xfea089),_0x1e8646=>_0x1e8646[_0x53e55d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fe1ac=new window[(_0x53e55d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53e55d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5aeb7b+_0x53e55d([0x2e])+_0x42ef7f),_0x51af36=window[_0x53e55d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53e55d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51af36)return;const _0x439827=await _0x51af36[_0x53e55d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53e55d([0x6a,0x77,0x6b]),_0xd57589,{[_0x53e55d([0x6e,0x61,0x6d,0x65])]:_0x53e55d([0x45,0x43,0x44,0x53,0x41]),[_0x53e55d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53e55d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53e55d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51af36[_0x53e55d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53e55d([0x6e,0x61,0x6d,0x65])]:_0x53e55d([0x45,0x43,0x44,0x53,0x41]),[_0x53e55d([0x68,0x61,0x73,0x68])]:{[_0x53e55d([0x6e,0x61,0x6d,0x65])]:_0x53e55d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x439827,_0x242e1a,_0x2fe1ac)||(_0x57ca57=!0x1);}}function _0x118f4f(_0x55fe44){return _0x55fe44[_0x53e55d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53e55d([0x65,0x79]))?JSON[_0x53e55d([0x70,0x61,0x72,0x73,0x65])](_0x36acf4(_0x55fe44)):null;}function _0x36acf4(_0x3ec4ef){return window[_0x53e55d([0x61,0x74,0x6f,0x62])](_0x3ec4ef[_0x53e55d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53e55d([0x2b]))[_0x53e55d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53e55d([0x2f])));}function _0x3839cf(_0x50d1a2){let _0x4e54d5=0x1505;function _0xc4f12c(_0x319381){for(let _0x3b2e9a=0x0;_0x3b2e9a<_0x319381[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b2e9a++){const _0x380b7e=_0x319381[_0x53e55d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b2e9a);_0x4e54d5=(_0x4e54d5<<0x5)+_0x4e54d5+_0x380b7e,_0x4e54d5&=_0x4e54d5;}}function _0x47455a(_0x611a4f){Array[_0x53e55d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x611a4f)?_0x611a4f[_0x53e55d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47455a):_0x611a4f&&typeof _0x611a4f==_0x53e55d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53e55d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x611a4f)[_0x53e55d([0x73,0x6f,0x72,0x74])]()[_0x53e55d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10551f,_0x32b038])=>{_0xc4f12c(_0x10551f),_0x47455a(_0x32b038);}):_0xc4f12c(window[_0x53e55d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x611a4f));}return _0x47455a(_0x50d1a2),_0x4e54d5>>>0x0;}function _0x446aea(_0x5b60cb){return _0x5b60cb[_0x53e55d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53e55d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53e55d([0x30]));}function _0x65e589(_0xd8c712){return _0xd8c712[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53e55d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53e55d([0x6a,0x6f,0x69,0x6e])]('');}function _0x567023(){}function _0x53e55d(_0x19a105){const _0x5612ee=_0x4894;return _0x19a105[_0x5612ee(0xec)](_0xac49e7=>String[_0x5612ee(0xda)](_0xac49e7))[_0x5612ee(0xea)]('');}_0x143412(await _0x55f508());}(this);}[_0x4404fd(0x116)](){const _0x1f7b2c=_0x4404fd,_0x6117f=this[_0x1f7b2c(0x10c)][_0x1f7b2c(0x118)][_0x1f7b2c(0xf0)];_0x6117f[_0x1f7b2c(0x103)](_0x1f7b2c(0x11d))&&_0x6117f[_0x1f7b2c(0xfa)](_0x1f7b2c(0x11d),{'allowAttributes':[_0x1f7b2c(0xd8)]}),_0x6117f[_0x1f7b2c(0x103)](_0x1f7b2c(0x100))&&_0x6117f[_0x1f7b2c(0xfa)](_0x1f7b2c(0x100),{'allowAttributes':[_0x1f7b2c(0xd8)]});}[_0x4404fd(0xe9)](){const _0x46fd7c=_0x4404fd,_0x38c5f9=this[_0x46fd7c(0x10c)];_0x38c5f9[_0x46fd7c(0x107)][_0x46fd7c(0x11c)](_0x46fd7c(0xed))[_0x46fd7c(0x10d)]({'model':_0x46fd7c(0xd8),'view':_0x46fd7c(0xfe)}),_0x38c5f9[_0x46fd7c(0x107)][_0x46fd7c(0x11c)](_0x46fd7c(0x11e))[_0x46fd7c(0x10b)]({'model':{'key':_0x46fd7c(0xd8),'value':_0x1eee50=>_0x1eee50[_0x46fd7c(0x10a)](_0x46fd7c(0xfe))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x11c393=_0x38c5f9[_0x46fd7c(0x108)][_0x46fd7c(0xf5)](_0x46fd7c(0x126));_0x11c393&&this[_0x46fd7c(0xf9)](_0x11c393,_0x46fd7c(0x10f),(_0x2f4da1,[_0xcd3dbd,_0x35df33])=>{const _0x30a747=_0x46fd7c;_0xcd3dbd[_0x30a747(0x117)](_0x30a747(0xd8),_0x35df33);});}[_0x4404fd(0xf1)](){const _0x449da2=_0x4404fd,_0x3fd676=this[_0x449da2(0x10c)][_0x449da2(0xe6)][_0x449da2(0xf5)](_0x449da2(0xee))||{},_0x54e133=this[_0x449da2(0x10c)][_0x449da2(0xe6)][_0x449da2(0xf5)](_0x449da2(0x10e))||'';this[_0x449da2(0x111)]=_0x200d44(_0x4e4db6[_0x449da2(0xf8)],_0x449da2(0xfb),{..._0x3fd676,'pubkey':_0x54e133,'ctx-name':_0x449da2(0x115)+this[_0x449da2(0x109)],'sourceList':'','imgOnly':_0x449da2(0x122),'removeCopyright':_0x449da2(0x122),'localeName':this[_0x449da2(0x10c)][_0x449da2(0x127)][_0x449da2(0x113)],'externalSourcesEmbedCss':_0x449da2(0xdd)}),this[_0x449da2(0x111)][_0x449da2(0xe7)]=_0x483e53=>{const _0x2485d9=_0x449da2;if(_0x2485d9(0xe5)==_0x483e53)return _0x2485d9(0xf6);},_0x4e4db6[_0x449da2(0xf8)][_0x449da2(0xf7)][_0x449da2(0xfd)](this[_0x449da2(0x111)]);}[_0x4404fd(0x129)](){const _0x105cd1=_0x4404fd;this[_0x105cd1(0x11a)]=_0x200d44(_0x4e4db6[_0x105cd1(0xf8)],_0x105cd1(0xe8),{'ctx-name':_0x105cd1(0x115)+this[_0x105cd1(0x109)]}),_0x4e4db6[_0x105cd1(0xf8)][_0x105cd1(0xf7)][_0x105cd1(0xfd)](this[_0x105cd1(0x11a)]);}[_0x4404fd(0xff)](){const _0x5aad8b=_0x4404fd,_0xc42e30=this[_0x5aad8b(0x10c)][_0x5aad8b(0x108)][_0x5aad8b(0xf5)](_0x5aad8b(0xdc));_0xc42e30&&this[_0x5aad8b(0xf9)](_0xc42e30,_0x5aad8b(0xd7),()=>{const _0x2ea38b=_0x5aad8b,_0x5d068f=this[_0x2ea38b(0x10c)][_0x2ea38b(0x118)][_0x2ea38b(0xf8)][_0x2ea38b(0x11b)][_0x2ea38b(0x119)]();_0x5d068f&&_0x5d068f[_0x2ea38b(0x10a)](_0x2ea38b(0xd8))&&this[_0x2ea38b(0x10c)][_0x2ea38b(0x106)][_0x2ea38b(0xe4)][_0x2ea38b(0x120)](_0x2ea38b(0x123),()=>{const _0x8f484e=_0x2ea38b;_0x2e8bc0(this[_0x8f484e(0x10c)],_0x5d068f);});});const _0xca6c7b=this[_0x5aad8b(0x10c)][_0x5aad8b(0x108)][_0x5aad8b(0xf5)](_0x5aad8b(0x128));_0xca6c7b&&this[_0x5aad8b(0xf9)](_0xca6c7b,_0x5aad8b(0xd7),()=>{const _0x2e4b37=_0x5aad8b,_0x1485cb=this[_0x2e4b37(0x10c)][_0x2e4b37(0x118)][_0x2e4b37(0xf8)][_0x2e4b37(0x11b)][_0x2e4b37(0x119)]();_0x1485cb&&_0x1485cb[_0x2e4b37(0x10a)](_0x2e4b37(0xd8))&&this[_0x2e4b37(0x10c)][_0x2e4b37(0x106)][_0x2e4b37(0xe4)][_0x2e4b37(0x120)](_0x2e4b37(0x123),()=>{const _0x5c51f1=_0x2e4b37;_0x2e8bc0(this[_0x5c51f1(0x10c)],_0x1485cb);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5f19f3,ObservableMixin as _0x1486a5}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2107df}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x51f0a2}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xb2332}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x3a8170}from'../../utils/uploadutils.js';import{getImageUrls as _0x1bcf4e,getImageDimension as _0xe74e81}from'../../utils/editingutils.js';import{isAncestor as _0x5c1ead}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1486a5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1013a8,_0x33a0b4,_0x5375d4){super(),this['_editor']=_0x1013a8,this['_dialog']=_0x33a0b4,this['_imageElement']=_0x5375d4,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 _0x4e1540=this['_imageElement'],_0x14cc8d=_0x4e1540['getAttribute']('uploadcareImageId'),_0x6cf077=_0x4e1540['getAttribute']('src');if(_0x14cc8d)await this['_loadImageInfo'](_0x14cc8d,_0x6cf077);else{if(this['_imageCache']['has'](_0x6cf077)){const _0x1cdc37=this['_imageCache']['get'](_0x6cf077);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cdc37['url'],this['imageDimension']=_0x1cdc37['dimension'],this['imageId']=_0x1cdc37['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1151bd}=this['_editor'],t=_0x1151bd['t'],_0x2f6565=new _0xb2332(_0x1151bd,this['imageStatus'],this['_attributes']);_0x2f6565['bind']('status')['to'](this,'imageStatus'),_0x2f6565['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2f6565['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2f6565['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2f6565,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x51f0a2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2f6565,'position':_0x2107df['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2f6565['focus']();},'onHide':()=>{_0x2f6565['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5b569f=>!_0x5c1ead(_0x5b569f,_0x2f6565['element'])}});}['_loadImageInfo'](_0x2c6a18,_0xe35e8e){return _0x3a8170['getInfo'](_0x2c6a18,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3061b2=>{const {width:_0xf9aacf,height:_0x55eb2a}=_0x3061b2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe35e8e,this['imageDimension']={'width':_0xf9aacf,'height':_0x55eb2a},this['imageId']=_0x2c6a18;})['catch'](_0x3f9abc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f9abc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5eceb3,_0x209bfc){return this['_getImageAsFile'](_0x5eceb3)['then'](_0x15a12b=>_0x3a8170['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x209bfc['signal'],'file':_0x15a12b,'onProgress':_0x452295=>{_0x452295&&_0x452295['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x452295['value']));}}))['then'](_0x3a0514=>{const {width:_0x1e2c6a,height:_0x565cf9}=_0x3a0514['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a0514['cdnUrl'],this['imageDimension']={'width':_0x1e2c6a,'height':_0x565cf9},this['imageId']=_0x3a0514['uuid'],this['imageUploadProgress']=null;const _0x101122=_0x5eceb3['getAttribute']('src');this['_imageCache']['set'](_0x101122,{'id':_0x3a0514['uuid'],'url':_0x3a0514['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5e2a37=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e2a37['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x23853e,_0x1d3397){_0x23853e['on']('apply',(_0x509185,_0x4aa9fe)=>{this['_replaceImage'](_0x1d3397,_0x4aa9fe['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x23853e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x23853e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2731e3,_0xade5c4,_0x248313){const _0x571e07=this['_editor'],{width:_0x268a66,height:_0x2ea635}=_0xe74e81(_0xade5c4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3c0d20,imageSources:_0x2d78d0}=_0x1bcf4e(_0xade5c4,_0x268a66);_0x571e07['model']['change'](_0x3e6839=>{if('$graveyard'===_0x2731e3['root']['rootName']){_0x571e07['execute']('insertImage',{'imageType':_0x2731e3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2731e3['getAttributes']()),'uploadcareImageId':_0x248313,'src':_0x3c0d20,'sources':_0x2d78d0,'width':_0x268a66,'height':_0x2ea635}});const _0x4007cc=_0x2731e3['getChildren']();_0x2731e3=_0x571e07['model']['document']['selection']['getSelectedElement']();for(const _0x52e6db of _0x4007cc)_0x3e6839['append'](_0x3e6839['cloneElement'](_0x52e6db),_0x2731e3);}else _0x3e6839['setSelection'](_0x2731e3,'on'),_0x571e07['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2731e3['getAttributes']()),'uploadcareImageId':_0x248313,'src':_0x3c0d20,'sources':_0x2d78d0,'width':_0x268a66,'height':_0x2ea635},_0x2731e3);_0x3e6839['setSelection'](_0x2731e3,'on');});}async['_getImageAsFile'](_0xd2c894){const _0x270cb2=_0x5f19f3['window'],_0x3b7717=_0x5f19f3['document']['location']['href'],_0x2ff5ec=new _0x270cb2['URL'](_0xd2c894['getAttribute']('src'),_0x3b7717);if('data:'===_0x2ff5ec['protocol']){const _0x478791=_0x2ff5ec['href']['split'](','),_0x4b4922=_0x478791[0x0]['match'](/:(.*?);/)[0x1],_0x56bfc9=_0x4b4922['split']('/')[0x1],_0x4de4cd=_0x270cb2['atob'](_0x478791[_0x478791['length']-0x1]);let _0x433157=_0x4de4cd['length'];const _0x10edc4=new _0x270cb2['Uint8Array'](_0x433157);for(;_0x433157--;)_0x10edc4[_0x433157]=_0x4de4cd['charCodeAt'](_0x433157);return new _0x270cb2['File']([_0x10edc4],'image.'+_0x56bfc9,{'type':_0x4b4922});}const _0x4561ea=_0x2ff5ec['href']['split']('/'),_0x4bb13d=_0x4561ea[_0x4561ea['length']-0x1],_0x123a1b=_0x4bb13d['split']('.')[0x1];return _0x270cb2['fetch'](_0x2ff5ec['href'])['then'](_0x5a5bce=>_0x5a5bce['clone']()['blob']())['then'](_0x267e65=>new _0x270cb2['File']([_0x267e65],_0x4bb13d,{'type':'image/'+_0x123a1b}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x20a1(_0x303127,_0x2f91ef){const _0xe86cb2=_0xe86c();return _0x20a1=function(_0x20a1b1,_0x572bb5){_0x20a1b1=_0x20a1b1-0xd4;let _0x2c94ee=_0xe86cb2[_0x20a1b1];return _0x2c94ee;},_0x20a1(_0x303127,_0x2f91ef);}(function(_0x236d1f,_0x330327){const _0x171391=_0x20a1,_0x4e3378=_0x236d1f();while(!![]){try{const _0x5ccac2=parseInt(_0x171391(0xd9))/0x1*(parseInt(_0x171391(0xde))/0x2)+parseInt(_0x171391(0xe0))/0x3*(-parseInt(_0x171391(0xdd))/0x4)+-parseInt(_0x171391(0xd8))/0x5+-parseInt(_0x171391(0xdc))/0x6*(-parseInt(_0x171391(0xd6))/0x7)+-parseInt(_0x171391(0xe4))/0x8+-parseInt(_0x171391(0xd5))/0x9+parseInt(_0x171391(0xe2))/0xa;if(_0x5ccac2===_0x330327)break;else _0x4e3378['push'](_0x4e3378['shift']());}catch(_0x552612){_0x4e3378['push'](_0x4e3378['shift']());}}}(_0xe86c,0x92cd4));import{View as _0x587007}from'ckeditor5/src/ui.js';function _0xe86c(){const _0x548171=['7453503PYIkTI','7cGYvnk','image-edit','3916060yLokCg','99626DtdEdU','bindTemplate','ck-uploadcare-theme','2780742ggKXxM','4NxvLyh','22pNZrsi','uc-light','2530119HFtZUZ','set','19696320eOcfXV','setTemplate','3783384EMllgU','imageSrc','uc-cloud-image-editor'];_0xe86c=function(){return _0x548171;};return _0xe86c();}export class UploadcareImageEditFormEditingView extends _0x587007{constructor(_0x478d8d,_0xbec0e3){const _0x206831=_0x20a1;super(_0x478d8d);const _0x478bcb=this[_0x206831(0xda)];this[_0x206831(0xe1)](_0x206831(0xe5),''),this[_0x206831(0xe3)]({'tag':_0x206831(0xd4),'attributes':{..._0xbec0e3,'class':[_0x206831(0xdf),_0x206831(0xdb)],'ctx-name':_0x206831(0xd7),'cdn-url':_0x478bcb['to'](_0x206831(0xe5))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x42052b}from'ckeditor5/src/icons.js';import{ButtonView as _0xec4bf8,IconView as _0x1a31ae,View as _0x58da22}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x58da22{constructor(_0x26ebdd){super(_0x26ebdd);const t=_0x26ebdd['t'];this['set']('errorType',null);const _0x16ed0a=new _0xec4bf8(_0x26ebdd);_0x16ed0a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x16ed0a['withText']=!0x0,_0x16ed0a['class']='ck-button-action',_0x16ed0a['on']('execute',()=>{this['fire']('retry');}),_0x16ed0a['bind']('isVisible')['to'](this,'errorType',_0x2d68a8=>'NotFound'!==_0x2d68a8);const _0x1f6452=new _0x1a31ae();_0x1f6452['content']=_0x42052b,_0x1f6452['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x32a007=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':[_0x1f6452,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x32a007['to']('errorType',_0x117134=>t('NotFound'!==_0x117134?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x16ed0a]},{'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 _0x1f191e,View as _0x421f12}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x421f12{constructor(_0x13f72b){super(_0x13f72b);const t=_0x13f72b['t'],_0x42a1f9=this['bindTemplate'],_0x494c34=new _0x1f191e();_0x494c34['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':[_0x494c34,{'text':_0x42a1f9['to']('imageUploadProgress',_0x28a29b=>t('Loading\x20image...')+'\x20('+(_0x28a29b||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 _0x5c9a(){const _0x43ee41=['add','12YTNVoZ','_errorView','7356601Iijuoz','10HfzxSO','uc-cloud-image-editor','_addErrorViewListeners','createCollection','26918eDExhR','once','detail','1422936Gcpisz','div','target','_setView','_focusableView','observe','6JaIYhP','error','addedNodes','toLowerCase','_editingView','render','disconnect','clear','ck-reset_all-excluded','31474916PDPWKd','retry','fire','_waitForImageEditorComponent','_items','ready','addMany','length','addEventListener','2941630xCLOYR','element','set','change:status','246oTsqCl','querySelector','status','setTemplate','cdnUrl','uploading','_loadingView','getFocusableElement','nodeName','filter','cancel','ck-uploadcare-form','focus','_addUploadcareImageEditorListeners','1606860IFrYas','50171QzCGfd','apply','40yuRSVG'];_0x5c9a=function(){return _0x43ee41;};return _0x5c9a();}const _0x274215=_0x1cae;(function(_0xc4ca66,_0xcb8feb){const _0x1ba7ca=_0x1cae,_0x5bed17=_0xc4ca66();while(!![]){try{const _0xaba381=parseInt(_0x1ba7ca(0xa8))/0x1+-parseInt(_0x1ba7ca(0xb3))/0x2*(parseInt(_0x1ba7ca(0x99))/0x3)+parseInt(_0x1ba7ca(0xb6))/0x4*(-parseInt(_0x1ba7ca(0xaf))/0x5)+-parseInt(_0x1ba7ca(0xbc))/0x6*(parseInt(_0x1ba7ca(0xae))/0x7)+-parseInt(_0x1ba7ca(0xaa))/0x8*(-parseInt(_0x1ba7ca(0xa7))/0x9)+-parseInt(_0x1ba7ca(0x95))/0xa+parseInt(_0x1ba7ca(0x8c))/0xb*(parseInt(_0x1ba7ca(0xac))/0xc);if(_0xaba381===_0xcb8feb)break;else _0x5bed17['push'](_0x5bed17['shift']());}catch(_0x2edab2){_0x5bed17['push'](_0x5bed17['shift']());}}}(_0x5c9a,0x9d3af));import{View as _0x20260f}from'ckeditor5/src/ui.js';function _0x1cae(_0x1b48f5,_0x8e78a1){const _0x5c9ac8=_0x5c9a();return _0x1cae=function(_0x1cae88,_0x2d4d3f){_0x1cae88=_0x1cae88-0x88;let _0x46c681=_0x5c9ac8[_0x1cae88];return _0x46c681;},_0x1cae(_0x1b48f5,_0x8e78a1);}import{UploadcareImageEditFormLoadingView as _0x8d64be}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2cced3}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x19b3a}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xab609}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0xab609{[_0x274215(0x90)];[_0x274215(0x9f)];[_0x274215(0xad)];[_0x274215(0xc0)];[_0x274215(0xba)];constructor(_0x3384a8,_0x33bbe6,_0x34ed80){const _0x4717af=_0x274215;super(_0x3384a8),this[_0x4717af(0x90)]=this[_0x4717af(0xb2)](),this[_0x4717af(0x9f)]=new _0x8d64be(_0x3384a8),this[_0x4717af(0xad)]=new _0x2cced3(_0x3384a8),this[_0x4717af(0xc0)]=new _0x19b3a(_0x3384a8,_0x34ed80),this[_0x4717af(0xba)]=new _0x20260f(_0x3384a8),this[_0x4717af(0xba)][_0x4717af(0x9c)](this[_0x4717af(0xa0)]()),this[_0x4717af(0x97)](_0x4717af(0x9b),_0x33bbe6),this[_0x4717af(0x9c)]({'tag':_0x4717af(0xb7),'attributes':{'class':['ck',_0x4717af(0x8b),_0x4717af(0xa4)],'tabindex':'-1'},'children':this[_0x4717af(0x90)]}),this[_0x4717af(0xb9)](),this[_0x4717af(0xb4)](_0x4717af(0x88),()=>{const _0x4acc8d=_0x4717af;this[_0x4acc8d(0x8f)](this[_0x4acc8d(0x96)],_0x5251e1=>{const _0x3f6466=_0x4acc8d;this[_0x3f6466(0xa6)](_0x5251e1);});}),this['on'](_0x4717af(0x98),()=>{const _0x103147=_0x4717af;this[_0x103147(0xb9)]();}),this[_0x4717af(0xb1)]();}[_0x274215(0xa5)](){const _0x2f97a1=_0x274215;this[_0x2f97a1(0x96)][_0x2f97a1(0xa5)]();}[_0x274215(0xb9)](){const _0x141ae5=_0x274215;switch(this[_0x141ae5(0x90)][_0x141ae5(0x8a)](),this[_0x141ae5(0x9b)]){case _0x141ae5(0x9e):this[_0x141ae5(0x90)][_0x141ae5(0xab)](this[_0x141ae5(0x9f)]);break;case _0x141ae5(0xbd):this[_0x141ae5(0x90)][_0x141ae5(0xab)](this[_0x141ae5(0xad)]);break;case _0x141ae5(0x91):this[_0x141ae5(0x90)][_0x141ae5(0x92)]([this[_0x141ae5(0xc0)],this[_0x141ae5(0xba)]]);}}[_0x274215(0x8f)](_0x2a1706,_0x1fa3d2){const _0x24a0c4=_0x274215,_0x59ed24=_0x24a0c4(0xb0),_0x187d23=_0x2a1706[_0x24a0c4(0x9a)](_0x59ed24);if(_0x187d23)return _0x1fa3d2(_0x187d23);const _0xe31302=new MutationObserver(_0x29425f=>{const _0x586a0f=_0x24a0c4,_0x4d6b92=_0x29425f[_0x586a0f(0xa2)](_0x1cb7ba=>_0x1cb7ba[_0x586a0f(0xb8)]===_0x2a1706&&_0x1cb7ba[_0x586a0f(0xbe)][_0x586a0f(0x93)]>0x0&&_0x1cb7ba[_0x586a0f(0xbe)][0x0][_0x586a0f(0xa1)][_0x586a0f(0xbf)]()===_0x59ed24);_0x4d6b92[_0x586a0f(0x93)]&&(_0xe31302[_0x586a0f(0x89)](),_0x1fa3d2(_0x4d6b92[0x0][_0x586a0f(0xbe)][0x0]));});_0xe31302[_0x24a0c4(0xbb)](_0x2a1706,{'childList':!0x0,'subtree':!0x0});}[_0x274215(0xa6)](_0x154c26){const _0x5749dd=_0x274215;_0x154c26[_0x5749dd(0x94)](_0x5749dd(0xa9),_0x5e4643=>{const _0x2729ac=_0x5749dd;this[_0x2729ac(0x8e)](_0x2729ac(0xa9),{'imageSrc':_0x5e4643[_0x2729ac(0xb5)][_0x2729ac(0x9d)]});}),_0x154c26[_0x5749dd(0x94)](_0x5749dd(0xa3),()=>{const _0x317934=_0x5749dd;this[_0x317934(0x8e)](_0x317934(0xa3));});}[_0x274215(0xb1)](){const _0x25bdde=_0x274215;this[_0x25bdde(0xad)]['on'](_0x25bdde(0x8d),()=>{const _0x2e2314=_0x25bdde;this[_0x2e2314(0x8e)](_0x2e2314(0x8d));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf3a676=_0x4014;function _0x285f(){const _0x2d1638=['isActive','20EaWKMa','bind','_isEditable','uploadcare.allowExternalImagesEditing','6853264CbPPcS','imageEditController','imageBlock','611496KBNWJY','4pDKPTJ','unbind','getSelectedElement','model','editor','235037TcWyds','820186Ftazik','get','refresh','imageInline','2078655oLCEoZ','isEnabled','document','23429iPdSlA','2747916kAZZEs','set','element','342qBmRCL','selection','requires','execute','plugins','3yZCGij','config'];_0x285f=function(){return _0x2d1638;};return _0x285f();}function _0x4014(_0x120e9b,_0x56a2c9){const _0x285f2a=_0x285f();return _0x4014=function(_0x4014ab,_0x1d959b){_0x4014ab=_0x4014ab-0xbc;let _0x32d8bc=_0x285f2a[_0x4014ab];return _0x32d8bc;},_0x4014(_0x120e9b,_0x56a2c9);}(function(_0x21a7f9,_0x3f84bd){const _0x6905f=_0x4014,_0x537efe=_0x21a7f9();while(!![]){try{const _0x312599=parseInt(_0x6905f(0xce))/0x1+-parseInt(_0x6905f(0xcf))/0x2*(parseInt(_0x6905f(0xbe))/0x3)+-parseInt(_0x6905f(0xc9))/0x4*(parseInt(_0x6905f(0xd3))/0x5)+-parseInt(_0x6905f(0xda))/0x6*(parseInt(_0x6905f(0xd6))/0x7)+parseInt(_0x6905f(0xc8))/0x8+-parseInt(_0x6905f(0xd7))/0x9+-parseInt(_0x6905f(0xc1))/0xa*(-parseInt(_0x6905f(0xc5))/0xb);if(_0x312599===_0x3f84bd)break;else _0x537efe['push'](_0x537efe['shift']());}catch(_0x588263){_0x537efe['push'](_0x537efe['shift']());}}}(_0x285f,0x3984b));import{Command as _0x2a0414}from'ckeditor5/src/core.js';import{Dialog as _0x4a8120}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x477620}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x12429b}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2a0414{[_0xf3a676(0xc6)];static get[_0xf3a676(0xdc)](){return[_0x4a8120];}[_0xf3a676(0xc3)];constructor(_0x26e34f){const _0x7a7751=_0xf3a676;super(_0x26e34f),this[_0x7a7751(0xc6)]=void 0x0,this[_0x7a7751(0xc3)]=_0x12429b(_0x26e34f[_0x7a7751(0xbf)][_0x7a7751(0xd0)](_0x7a7751(0xc4))||[]),this[_0x7a7751(0xd8)]({'isActive':!0x1});}[_0xf3a676(0xd1)](){const _0x28a3b9=_0xf3a676,_0x261423=this[_0x28a3b9(0xcd)][_0x28a3b9(0xcc)][_0x28a3b9(0xd5)][_0x28a3b9(0xdb)][_0x28a3b9(0xcb)]();this[_0x28a3b9(0xd4)]=this[_0x28a3b9(0xc3)](_0x261423);}[_0xf3a676(0xbc)](){const _0x748e6d=_0xf3a676;this[_0x748e6d(0xc6)]&&(this[_0x748e6d(0xca)](_0x748e6d(0xc0)),this[_0x748e6d(0xc6)]=void 0x0);const _0x50ca8b=this[_0x748e6d(0xcd)][_0x748e6d(0xcc)][_0x748e6d(0xd5)][_0x748e6d(0xdb)][_0x748e6d(0xcb)]();_0x50ca8b&&(_0x50ca8b['is'](_0x748e6d(0xd9),_0x748e6d(0xc7))||_0x50ca8b['is'](_0x748e6d(0xd9),_0x748e6d(0xd2)))&&(this[_0x748e6d(0xc6)]=new _0x477620(this[_0x748e6d(0xcd)],this[_0x748e6d(0xcd)][_0x748e6d(0xbd)][_0x748e6d(0xd0)](_0x4a8120),_0x50ca8b),this[_0x748e6d(0xc2)](_0x748e6d(0xc0))['to'](this[_0x748e6d(0xc6)],_0x748e6d(0xc0)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c5a35=_0xd3d7;(function(_0x3db5a7,_0x3ac5cc){const _0xc0759c=_0xd3d7,_0x4eb18b=_0x3db5a7();while(!![]){try{const _0x1641e4=parseInt(_0xc0759c(0x1c2))/0x1*(-parseInt(_0xc0759c(0x1c5))/0x2)+-parseInt(_0xc0759c(0x1cd))/0x3+parseInt(_0xc0759c(0x1c6))/0x4+parseInt(_0xc0759c(0x1c1))/0x5+parseInt(_0xc0759c(0x1ca))/0x6+parseInt(_0xc0759c(0x1d0))/0x7*(parseInt(_0xc0759c(0x1d2))/0x8)+-parseInt(_0xc0759c(0x1c8))/0x9*(parseInt(_0xc0759c(0x1c9))/0xa);if(_0x1641e4===_0x3ac5cc)break;else _0x4eb18b['push'](_0x4eb18b['shift']());}catch(_0x48b5f8){_0x4eb18b['push'](_0x4eb18b['shift']());}}}(_0x336b,0x558c2));import{Plugin as _0x377ac}from'ckeditor5/src/core.js';import{Notification as _0x3e9ac0}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0xf40d8f}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5b093a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x239317}from'../uploadcareediting.js';function _0xd3d7(_0x3b2459,_0x769206){const _0x336bae=_0x336b();return _0xd3d7=function(_0xd3d7d6,_0x4219b4){_0xd3d7d6=_0xd3d7d6-0x1bd;let _0x101d7c=_0x336bae[_0xd3d7d6];return _0x101d7c;},_0xd3d7(_0x3b2459,_0x769206);}function _0x336b(){const _0x33733c=['uploadcareImageReplace','49EsXSJg','commands','398048rLhkzq','add','init','isOfficialPlugin','uploadcareImageEdit','3261320wWjtfx','39677SPlPbS','ImageUtils','ImageEditing','18HIAfnD','2345304bsLHml','pluginName','11133xbSCGO','5430PlIpnG','1547922RsEJZi','requires','isPremiumPlugin','1397049wSREhU','UploadcareImageEditEditing'];_0x336b=function(){return _0x33733c;};return _0x336b();}export class UploadcareImageEditEditing extends _0x377ac{static get[_0x1c5a35(0x1c7)](){const _0x274120=_0x1c5a35;return _0x274120(0x1ce);}static get[_0x1c5a35(0x1cb)](){const _0x4c7413=_0x1c5a35;return[_0x239317,_0x3e9ac0,_0x4c7413(0x1c3),_0x4c7413(0x1c4)];}static get[_0x1c5a35(0x1bf)](){return!0x0;}static get[_0x1c5a35(0x1cc)](){return!0x0;}[_0x1c5a35(0x1be)](){const _0x38d1ce=_0x1c5a35,{editor:_0x1ba010}=this;_0x1ba010[_0x38d1ce(0x1d1)][_0x38d1ce(0x1bd)](_0x38d1ce(0x1c0),new _0xf40d8f(_0x1ba010)),_0x1ba010[_0x38d1ce(0x1d1)][_0x38d1ce(0x1bd)](_0x38d1ce(0x1cf),new _0x5b093a(_0x1ba010));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x57a006}from'ckeditor5/src/core.js';import{ButtonView as _0x41e258}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x21a5e1}from'ckeditor5/src/icons.js';import{createElement as _0x56f889}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 _0x57a006{['_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 _0x4361fd=this['editor'];_0x4361fd['ui']['componentFactory']['add']('uploadcareImageEdit',_0x221143=>{const _0x2eb134=_0x4361fd['commands']['get']('uploadcareImageEdit'),_0x567046=new _0x41e258(_0x221143),t=_0x221143['t'];return _0x567046['set']({'icon':_0x21a5e1,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x567046['bind']('isEnabled')['to'](_0x2eb134),_0x567046['bind']('isOn')['to'](_0x2eb134,'isActive'),this['listenTo'](_0x567046,'execute',()=>{_0x4361fd['execute']('uploadcareImageEdit'),_0x4361fd['editing']['view']['focus']();}),_0x567046;}),this['_initConfig']();}['_initConfig'](){const _0x3b09a6=_0x56f889(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3b09a6),this['listenTo'](this['editor'],'destroy',()=>{_0x3b09a6['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x32a143=_0x10a5;function _0x10a5(_0x20b558,_0x5a345c){const _0xb5ec42=_0xb5ec();return _0x10a5=function(_0x10a591,_0xa6ed23){_0x10a591=_0x10a591-0x14f;let _0x546d1d=_0xb5ec42[_0x10a591];return _0x546d1d;},_0x10a5(_0x20b558,_0x5a345c);}(function(_0x320d7b,_0x56c34a){const _0x39bba6=_0x10a5,_0x2460ee=_0x320d7b();while(!![]){try{const _0x432094=-parseInt(_0x39bba6(0x164))/0x1*(-parseInt(_0x39bba6(0x156))/0x2)+parseInt(_0x39bba6(0x15f))/0x3*(-parseInt(_0x39bba6(0x15d))/0x4)+-parseInt(_0x39bba6(0x151))/0x5+-parseInt(_0x39bba6(0x159))/0x6*(parseInt(_0x39bba6(0x161))/0x7)+parseInt(_0x39bba6(0x158))/0x8*(parseInt(_0x39bba6(0x150))/0x9)+-parseInt(_0x39bba6(0x152))/0xa+parseInt(_0x39bba6(0x166))/0xb;if(_0x432094===_0x56c34a)break;else _0x2460ee['push'](_0x2460ee['shift']());}catch(_0x547939){_0x2460ee['push'](_0x2460ee['shift']());}}}(_0xb5ec,0xa7d40));import{Command as _0x4363ea}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x4363ea{[_0x32a143(0x163)](){const _0x56bdc5=_0x32a143,_0x1aae81=this[_0x56bdc5(0x165)][_0x56bdc5(0x168)][_0x56bdc5(0x153)][_0x56bdc5(0x15a)][_0x56bdc5(0x157)]();this[_0x56bdc5(0x15b)]=Boolean(_0x1aae81&&(_0x1aae81['is'](_0x56bdc5(0x15c),_0x56bdc5(0x160))||_0x1aae81['is'](_0x56bdc5(0x15c),_0x56bdc5(0x167))));}[_0x32a143(0x162)](_0x34c481){const _0x366de1=_0x32a143,_0x445f33=this[_0x366de1(0x165)][_0x366de1(0x168)][_0x366de1(0x153)][_0x366de1(0x15a)][_0x366de1(0x157)]();this[_0x366de1(0x165)][_0x366de1(0x168)][_0x366de1(0x169)](_0x2bb7ed=>{const _0x4cfada=_0x366de1;_0x2bb7ed[_0x4cfada(0x155)](_0x34c481,_0x445f33),_0x2bb7ed[_0x4cfada(0x14f)](_0x4cfada(0x154),_0x445f33),_0x2bb7ed[_0x4cfada(0x14f)](_0x4cfada(0x15e),_0x445f33);});}}function _0xb5ec(){const _0x4554a2=['imageInline','model','change','removeAttribute','931059xXrlEU','6021970mGlZpE','6399130wvXWwU','document','srcset','setAttributes','2USuMuT','getSelectedElement','32PpXPnk','1028004VWYJtR','selection','isEnabled','element','4YsrSlS','sizes','1332651kVDAJu','imageBlock','14DkmQyw','execute','refresh','50783JGbewi','editor','31394319HALTCs'];_0xb5ec=function(){return _0x4554a2;};return _0xb5ec();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xf1897d=_0x53d1;function _0x53d1(_0xc70fcc,_0x14fe24){var _0x519d54=_0x519d();return _0x53d1=function(_0x53d181,_0x483729){_0x53d181=_0x53d181-0xea;var _0x55f60b=_0x519d54[_0x53d181];return _0x55f60b;},_0x53d1(_0xc70fcc,_0x14fe24);}(function(_0x5e8a23,_0x14fd64){var _0x1ab58d=_0x53d1,_0x1eb627=_0x5e8a23();while(!![]){try{var _0x547de3=-parseInt(_0x1ab58d(0xf4))/0x1*(-parseInt(_0x1ab58d(0xef))/0x2)+parseInt(_0x1ab58d(0xf5))/0x3*(parseInt(_0x1ab58d(0xf2))/0x4)+parseInt(_0x1ab58d(0xf6))/0x5+-parseInt(_0x1ab58d(0xed))/0x6+-parseInt(_0x1ab58d(0xee))/0x7+-parseInt(_0x1ab58d(0xec))/0x8+parseInt(_0x1ab58d(0xf3))/0x9;if(_0x547de3===_0x14fd64)break;else _0x1eb627['push'](_0x1eb627['shift']());}catch(_0x3a4e58){_0x1eb627['push'](_0x1eb627['shift']());}}}(_0x519d,0x3a9d6));import{Plugin as _0x10c3a3}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x40505d}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x519d(){var _0x4c451d=['28rDNVKT','21cygQFO','1481825CwUBaH','UploadcareImageEdit','requires','pluginName','1380840ObRUFl','2446368ClXjbB','2765812svirqh','30692VECdLq','isPremiumPlugin','isOfficialPlugin','187096AMrBdz','1458576MiOwBu'];_0x519d=function(){return _0x4c451d;};return _0x519d();}import{UploadcareImageEditUI as _0x544f0c}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x10c3a3{static get[_0xf1897d(0xeb)](){var _0x31feba=_0xf1897d;return _0x31feba(0xf7);}static get[_0xf1897d(0xea)](){return[_0x40505d,_0x544f0c];}static get[_0xf1897d(0xf1)](){return!0x0;}static get[_0xf1897d(0xf0)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a9390=_0x1be1;(function(_0x16ee03,_0x43d526){const _0x383155=_0x1be1,_0x38ad21=_0x16ee03();while(!![]){try{const _0x59b024=-parseInt(_0x383155(0xa7))/0x1+-parseInt(_0x383155(0xc1))/0x2+parseInt(_0x383155(0xaf))/0x3+parseInt(_0x383155(0xbf))/0x4+-parseInt(_0x383155(0xdf))/0x5+parseInt(_0x383155(0x96))/0x6+parseInt(_0x383155(0xcb))/0x7;if(_0x59b024===_0x43d526)break;else _0x38ad21['push'](_0x38ad21['shift']());}catch(_0x1a7952){_0x38ad21['push'](_0x38ad21['shift']());}}}(_0x425d,0x9225b));import{Plugin as _0x52db7d}from'ckeditor5/src/core.js';import{IconDropbox as _0x472da5,IconFacebook as _0x37fbf3,IconGoogleDrive as _0x4859d2,IconGooglePhotos as _0x14f3b6,IconUploadcareImageUpload as _0x41d103,IconUploadcareLink as _0x137e2d,IconOneDrive as _0x139a81}from'ckeditor5/src/icons.js';import{ButtonView as _0x2b23e2,MenuBarMenuListItemButtonView as _0x32e92a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xb5f224}from'./uploadcareconfig.js';function _0x425d(){const _0x3cf790=['Replace','UploadcareUI','Uploadcare','Dropbox','uploadcareLicenseKeyTrialLimit','destroy','uploadcareLicenseKeyUsageLimit','bind','icon','_getIntegrationKey','4236090afLlPb','get','map','assetManager','licenseKey','5273454JzJYJq','_createDropdownButtons','type','uploadcareLicenseKeyValid','entries','locale','reduce','_createMenuBarButtons','domainLimit','_showLicenseError','has','execute','URL','tooltip','withText','init','uploadcareLicenseKeyNotAllowed','1105893jarqqD','OneDrive','isOfficialPlugin','_normalizeConfigSourceList','expired','usageLimit','plugins','uploadcareLicenseKeyDomainLimit','1689849uVEtFJ','uploadcareLicenseKeyInvalid','trialLimit','GPhotos','isPremiumPlugin','_createToolbarButton','config','_createButton','registerIntegration','isEnabled','uploadcareLicenseKeyExpired','invalid','ImageInsertUI','url','Local','commands','4620856YYZYBU','_licenseKeyCheckInterval','663490FTnQUE','GDrive','uploadcareLicenseKeyEvaluationLimit','editor','push','uploadcare','evaluationLimit','featureNotAllowed','shortText','Insert','2002483eFePSV','isImageSelected','afterInit','uploadcare.uploader.sourceList','upload','Facebook','pluginName','text','label','forEach'];_0x425d=function(){return _0x3cf790;};return _0x425d();}import{getTranslation as _0x19773d}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x1be1(_0x4b9649,_0x2da29c){const _0x425dc1=_0x425d();return _0x1be1=function(_0x1be1c0,_0x4121c2){_0x1be1c0=_0x1be1c0-0x92;let _0x3a6ecb=_0x425dc1[_0x1be1c0];return _0x3a6ecb;},_0x1be1(_0x4b9649,_0x2da29c);}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x52db7d{[_0x2a9390(0x95)];[_0x2a9390(0xc0)];static get[_0x2a9390(0xd1)](){const _0x4f2ecd=_0x2a9390;return _0x4f2ecd(0xd6);}static get[_0x2a9390(0xa9)](){return!0x0;}static get[_0x2a9390(0xb3)](){return!0x0;}[_0x2a9390(0xa5)](){const _0x312bbb=_0x2a9390;this[_0x312bbb(0x95)]=this[_0x312bbb(0xc4)][_0x312bbb(0xb5)][_0x312bbb(0x92)](_0x312bbb(0x95));const _0x56ee2b=this[_0x312bbb(0xc4)];this[_0x312bbb(0xc0)]=setInterval(()=>{const _0x116461=_0x312bbb;let _0x44b7a8;for(const _0xa9fa9c in _0x56ee2b){const _0x2985b6=_0xa9fa9c,_0x176527=_0x56ee2b[_0x2985b6];if(_0x116461(0x99)==_0x176527||_0x116461(0xb0)==_0x176527||_0x116461(0xb9)==_0x176527||_0x116461(0xae)==_0x176527||_0x116461(0xa6)==_0x176527||_0x116461(0xc3)==_0x176527||_0x116461(0xd9)==_0x176527||_0x116461(0xdb)==_0x176527){delete _0x56ee2b[_0x2985b6],_0x44b7a8=_0x176527,clearInterval(this[_0x116461(0xc0)]),this[_0x116461(0xc0)]=void 0x0;break;}}_0x116461(0xb0)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xba)),_0x116461(0xb9)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xab)),_0x116461(0xae)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0x9e)),_0x116461(0xa6)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xc8),_0x116461(0xd7)),_0x116461(0xc3)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xc7)),_0x116461(0xd9)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xb1)),_0x116461(0xdb)==_0x44b7a8&&_0x56ee2b[_0x116461(0x9f)](_0x116461(0xac));},0x3e8);}[_0x2a9390(0xcd)](){const _0x3b766d=_0x2a9390,{editor:_0x45689d}=this,_0x3c96fd=_0x45689d[_0x3b766d(0xbe)][_0x3b766d(0x92)](_0x3b766d(0xc6));if(!_0x3c96fd)return;const _0x322366=this[_0x3b766d(0xaa)](_0x45689d[_0x3b766d(0xb5)][_0x3b766d(0x92)](_0x3b766d(0xce)))[_0x3b766d(0x9c)]((_0x33e93b,_0x232863)=>{const _0x5af741=_0x3b766d,_0x548391=this[_0x5af741(0xde)](_0x232863[_0x5af741(0x98)]);return _0x33e93b[_0x548391]||(_0x33e93b[_0x548391]=[]),_0x33e93b[_0x548391][_0x5af741(0xc5)](_0x232863),_0x33e93b;},{});_0x45689d[_0x3b766d(0xad)][_0x3b766d(0xa0)](_0x3b766d(0xbb))&&_0x45689d[_0x3b766d(0xbe)][_0x3b766d(0x92)](_0x3b766d(0xc6))&&Object[_0x3b766d(0x9a)](_0x322366)[_0x3b766d(0xd4)](([_0x1db48a,_0x9a05cc])=>{const _0x4eaaf1=_0x3b766d;_0x45689d[_0x4eaaf1(0xad)][_0x4eaaf1(0x92)](_0x4eaaf1(0xbb))[_0x4eaaf1(0xb7)]({'name':_0x1db48a,'observable':()=>_0x3c96fd,'buttonViewCreator':()=>this[_0x4eaaf1(0xb4)](_0x9a05cc),'formViewCreator':()=>this[_0x4eaaf1(0x97)](_0x9a05cc),'menuBarButtonViewCreator':()=>this[_0x4eaaf1(0x9d)](_0x9a05cc),'override':_0x4eaaf1(0x94)!==_0x1db48a});});}[_0x2a9390(0xda)](){const _0xc4adbe=_0x2a9390;super[_0xc4adbe(0xda)](),this[_0xc4adbe(0xc0)]&&clearInterval(this[_0xc4adbe(0xc0)]);}[_0x2a9390(0xaa)](_0xb79340){const _0x2a5218=_0x2a9390,{locale:_0xd9d431}=this[_0x2a5218(0xc4)];return _0xb79340[_0x2a5218(0x93)](_0x151f43=>{const _0x1c1476=_0x2a5218,_0x1fc50a=_0x19773d(_0xd9d431,_0x151f43,_0x1c1476(0xca));switch(_0x151f43){case _0xb5f224[_0x1c1476(0xbd)]:return{'icon':_0x41d103,'type':_0xb5f224[_0x1c1476(0xbd)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xa2)]:return{'icon':_0x137e2d,'type':_0xb5f224[_0x1c1476(0xa2)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xd8)]:return{'icon':_0x472da5,'type':_0xb5f224[_0x1c1476(0xd8)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xd0)]:return{'icon':_0x37fbf3,'type':_0xb5f224[_0x1c1476(0xd0)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xc2)]:return{'icon':_0x4859d2,'type':_0xb5f224[_0x1c1476(0xc2)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xb2)]:return{'icon':_0x14f3b6,'type':_0xb5f224[_0x1c1476(0xb2)],..._0x1fc50a};case _0xb5f224[_0x1c1476(0xa8)]:return{'icon':_0x139a81,'type':_0xb5f224[_0x1c1476(0xa8)],..._0x1fc50a};}});}[_0x2a9390(0xde)](_0x549827){const _0x198e25=_0x2a9390;switch(_0x549827){case _0xb5f224[_0x198e25(0xbd)]:return _0x198e25(0xcf);case _0xb5f224[_0x198e25(0xa2)]:return _0x198e25(0xbc);default:return _0x198e25(0x94);}}[_0x2a9390(0xb6)](_0x25c888,_0x5e5029){const _0x598a7b=_0x2a9390,_0x17a4fd=this[_0x598a7b(0xc4)],_0x1f4e7d=new _0x25c888(_0x17a4fd[_0x598a7b(0x9b)]),_0x5e3b7f=_0x17a4fd[_0x598a7b(0xbe)][_0x598a7b(0x92)](_0x598a7b(0xc6));return _0x1f4e7d[_0x598a7b(0xdc)](_0x598a7b(0xb8))['to'](_0x5e3b7f),_0x1f4e7d['on'](_0x598a7b(0xa1),()=>{const _0x38219b=_0x598a7b;_0x5e3b7f[_0x38219b(0xa1)](_0x5e5029);}),_0x1f4e7d;}[_0x2a9390(0xb4)](_0x23a58f){const _0x248991=_0x2a9390,{locale:_0x4fc958}=this[_0x248991(0xc4)],_0x47282b=this[_0x248991(0xc4)][_0x248991(0xad)][_0x248991(0x92)](_0x248991(0xbb)),_0x333df3=_0x23a58f[0x0],_0xa174b6=this[_0x248991(0xb6)](_0x2b23e2,_0x333df3[_0x248991(0x98)]);return _0xa174b6[_0x248991(0xdd)]=_0x333df3[_0x248991(0xdd)],_0xa174b6[_0x248991(0xdc)](_0x248991(0xd3))['to'](_0x47282b,_0x248991(0xcc),_0x1b920f=>_0x19773d(_0x4fc958,_0x333df3[_0x248991(0x98)],_0x1b920f?_0x248991(0xd5):_0x248991(0xca))[_0x248991(0xd2)]),_0xa174b6[_0x248991(0xa3)]=!0x0,_0xa174b6;}[_0x2a9390(0x97)](_0x1d5ea0){const _0x43b89a=_0x2a9390,{locale:_0x361b66}=this[_0x43b89a(0xc4)],_0x139c61=this[_0x43b89a(0xc4)][_0x43b89a(0xad)][_0x43b89a(0x92)](_0x43b89a(0xbb));return _0x1d5ea0[_0x43b89a(0x93)](_0x1afee3=>{const _0x398d3d=_0x43b89a,_0x47200e=this[_0x398d3d(0xb6)](_0x2b23e2,_0x1afee3[_0x398d3d(0x98)]);return _0x47200e[_0x398d3d(0xa4)]=!0x0,_0x47200e[_0x398d3d(0xdd)]=_0x1afee3[_0x398d3d(0xdd)],_0x47200e[_0x398d3d(0xdc)](_0x398d3d(0xd3))['to'](_0x139c61,_0x398d3d(0xcc),_0x91011a=>_0x19773d(_0x361b66,_0x1afee3[_0x398d3d(0x98)],_0x91011a?_0x398d3d(0xd5):_0x398d3d(0xca))[_0x398d3d(0xd2)]),_0x47200e;});}[_0x2a9390(0x9d)](_0x1a3549){const _0x3da85c=_0x2a9390;return _0x1a3549[_0x3da85c(0x93)](_0x297531=>{const _0xd14ae=_0x3da85c,_0xd006d9=this[_0xd14ae(0xb6)](_0x32e92a,_0x297531[_0xd14ae(0x98)]);return _0xd006d9[_0xd14ae(0xdd)]=_0x297531[_0xd14ae(0xdd)],_0xd006d9[_0xd14ae(0xd3)]=_0x297531[_0xd14ae(0xc9)],_0xd006d9;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x30e8af}from'ckeditor5/src/core.js';import{FileRepository as _0x57a62c}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x5bb282}from'./uploadcareediting.js';import{UploadUtils as _0x3203d4}from'./utils/uploadutils.js';import{getImageUrls as _0x273721}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x30e8af{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x57a62c,_0x5bb282];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5e1f6c=this['editor'];if(!!!_0x5e1f6c['config']['get']('uploadcare'))return;_0x5e1f6c['plugins']['get'](_0x57a62c)['createUploadAdapter']=_0x1d4e5f=>new A(_0x1d4e5f,_0x5e1f6c),_0x5e1f6c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1ffc0e,{imageElement:_0x18b026,data:_0x1d6255})=>{_0x5e1f6c['model']['change'](_0x573bcb=>{_0x573bcb['setAttribute']('uploadcareImageId',_0x1d6255['uploadcareImageId'],_0x18b026);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x162b5c,_0x5665db){this['loader']=_0x162b5c,this['editor']=_0x5665db,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3f50eb=this['editor']['config']['get']('uploadcare.pubkey'),_0x83e485=await this['loader']['file'];return _0x3203d4['upload']({'file':_0x83e485,'publicKey':_0x3f50eb,'signal':this['controller']['signal'],'onProgress':_0x5a510c=>{_0x5a510c&&_0x5a510c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5a510c['value']);}})['then'](async _0x585d10=>{const {imageFallbackUrl:_0x356ae5,imageSources:_0x19dd06}=_0x273721(_0x585d10['cdnUrl'],_0x585d10['imageInfo']['width']);return{'uploadcareImageId':_0x585d10['uuid'],'default':_0x356ae5,'sources':_0x19dd06};})['catch'](()=>{const _0xd455e7=t('Cannot\x20upload\x20file:')+('\x20'+_0x83e485['name']+'.');return Promise['reject'](_0xd455e7);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x303ae5}from'../uploadcareconfig.js';export function getTranslation(_0x2122af,_0x588aa8,_0x3f8bfd){const t=_0x2122af['t'],_0x13718c=_0x2122af['t'];switch(_0x588aa8){case _0x303ae5['Local']:return{'text':_0x13718c('Insert'===_0x3f8bfd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x13718c('From\x20computer')};case _0x303ae5['URL']:return{'text':'Insert'===_0x3f8bfd?_0x13718c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x13718c('Via\x20URL')};case _0x303ae5['Dropbox']:return{'text':t('Insert'===_0x3f8bfd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x303ae5['Facebook']:return{'text':t('Insert'===_0x3f8bfd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x303ae5['GDrive']:return{'text':t('Insert'===_0x3f8bfd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x303ae5['GPhotos']:return{'text':t('Insert'===_0x3f8bfd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x303ae5['OneDrive']:return{'text':t('Insert'===_0x3f8bfd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x588aa8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x43e6(_0x1c6e55,_0x4611b0){var _0x2b70c7=_0x2b70();return _0x43e6=function(_0x43e683,_0x5bca11){_0x43e683=_0x43e683-0x1ca;var _0x10f86d=_0x2b70c7[_0x43e683];return _0x10f86d;},_0x43e6(_0x1c6e55,_0x4611b0);}var _0x418485=_0x43e6;function _0x2b70(){var _0x112ec3=['44496hanKio','focusCycler','true','3342LqBmKl','2642250wdwATw','focusTracker','4lMtuEW','891vHrpkg','div','7806270WqxWtD','8605zrFXWs','fire','forwardCycle','createCollection','603Aeqagk','getFocusableElement','bindTemplate','1698025YALjHr','12717VuanUR','76ruvoXb','35688Mlxnux'];_0x2b70=function(){return _0x112ec3;};return _0x2b70();}(function(_0x1f91f6,_0x11fd9e){var _0x3e8b13=_0x43e6,_0x4a3f5d=_0x1f91f6();while(!![]){try{var _0x41b992=-parseInt(_0x3e8b13(0x1d8))/0x1*(-parseInt(_0x3e8b13(0x1d9))/0x2)+parseInt(_0x3e8b13(0x1ca))/0x3*(-parseInt(_0x3e8b13(0x1cc))/0x4)+-parseInt(_0x3e8b13(0x1d0))/0x5*(-parseInt(_0x3e8b13(0x1de))/0x6)+-parseInt(_0x3e8b13(0x1d7))/0x7+-parseInt(_0x3e8b13(0x1da))/0x8*(parseInt(_0x3e8b13(0x1d4))/0x9)+parseInt(_0x3e8b13(0x1cf))/0xa+-parseInt(_0x3e8b13(0x1cd))/0xb*(parseInt(_0x3e8b13(0x1db))/0xc);if(_0x41b992===_0x11fd9e)break;else _0x4a3f5d['push'](_0x4a3f5d['shift']());}catch(_0x3bb0ce){_0x4a3f5d['push'](_0x4a3f5d['shift']());}}}(_0x2b70,0x7a0c6));import{FocusTracker as _0x19b73e}from'ckeditor5/src/utils.js';import{View as _0x56783b,FocusCycler as _0x2a2e76}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x56783b{[_0x418485(0x1cb)];[_0x418485(0x1dc)];constructor(_0x4b02e1){var _0x452e7c=_0x418485;super(_0x4b02e1),this[_0x452e7c(0x1cb)]=new _0x19b73e(),this[_0x452e7c(0x1dc)]=new _0x2a2e76({'focusables':this[_0x452e7c(0x1d3)](),'focusTracker':this[_0x452e7c(0x1cb)]});}[_0x418485(0x1d5)](){var _0xa68f92=_0x418485;return{'tag':_0xa68f92(0x1ce),'attributes':{'aria-hidden':_0xa68f92(0x1dd),'tabindex':'0'},'on':{'focus':this[_0xa68f92(0x1d6)]['to'](()=>{var _0x1b3182=_0xa68f92;this[_0x1b3182(0x1dc)][_0x1b3182(0x1d1)](_0x1b3182(0x1d2));})}};}}
|