@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.1 → 46.0.1-alpha.11
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
|
+
const _0x44c891=_0x5a90;(function(_0xe19174,_0x2751bf){const _0x2c4763=_0x5a90,_0xf8ca63=_0xe19174();while(!![]){try{const _0x296c04=parseInt(_0x2c4763(0x15c))/0x1+-parseInt(_0x2c4763(0x167))/0x2+parseInt(_0x2c4763(0x161))/0x3+parseInt(_0x2c4763(0x1a1))/0x4+-parseInt(_0x2c4763(0x194))/0x5+-parseInt(_0x2c4763(0x18e))/0x6*(-parseInt(_0x2c4763(0x17f))/0x7)+-parseInt(_0x2c4763(0x185))/0x8;if(_0x296c04===_0x2751bf)break;else _0xf8ca63['push'](_0xf8ca63['shift']());}catch(_0x3314ea){_0xf8ca63['push'](_0xf8ca63['shift']());}}}(_0x1167,0xa9981));import{Plugin as _0x35a118}from'ckeditor5/src/core.js';import{Dialog as _0x4f2df3}from'ckeditor5/src/ui.js';function _0x1167(){const _0x5193a2=['isRegistered','7mAoNNd','ctxElement','map','uploadcare','upcast','schema','11972360WvcmGL','render','configElement','_ctxElement','PictureEditing','init','true','replaceImageSource','pluginName','2341176wBqOpt','document','UploadcareEditing','\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','for','add','2732500XsSrzl','uploader-','appendChild','href','ucContextId','uploadcare.uploader','uploadcare.pubkey','_initConfig','model','uc-config','iconHrefResolver','imageBlock','input[uploadcare-file-input]','2527352dcfecg','cleanupImage','editing','body','locale','afterInit','remove','getSelectedElement','imageInline','_initSchema','attributeToAttribute','downcast','uc-upload-ctx-provider','uploadcareImageReplace','1328678IijmSL','closeMax','removeAttribute','get','editor','3604980YehNjE','conversion','elementToAttribute','once','selection','querySelector','1629340rPLIwL','isOfficialPlugin','getAttribute','fromCharCode','listenTo','_initImageProcessingIndicator','config','uploadcareImageId','isPremiumPlugin','view','requires','destroy','execute','_initCtx','join','_configElement','_initConversion','commands','extend','contentLanguage','data-uc-image-id','#uc-icon-arrow-down','insertImage'];_0x1167=function(){return _0x5193a2;};return _0x1167();}import{createElement as _0x3c89c9,global as _0x3b939a,uid as _0x5d22c6}from'ckeditor5/src/utils.js';function _0x5a90(_0x51e3a2,_0x4bd2f8){const _0x116755=_0x1167();return _0x5a90=function(_0x5a904c,_0x33f66b){_0x5a904c=_0x5a904c-0x153;let _0x52822e=_0x116755[_0x5a904c];return _0x52822e;},_0x5a90(_0x51e3a2,_0x4bd2f8);}import{UploadcareCommand as _0x56d449}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x408fdf}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x453ac8}from'./utils/editingutils.js';export class UploadcareEditing extends _0x35a118{[_0x44c891(0x176)]=null;[_0x44c891(0x188)]=null;static get[_0x44c891(0x18d)](){const _0x5b58a6=_0x44c891;return _0x5b58a6(0x190);}static get[_0x44c891(0x171)](){const _0x592e36=_0x44c891;return[_0x592e36(0x189),_0x408fdf,_0x4f2df3];}static get[_0x44c891(0x168)](){return!0x0;}static get[_0x44c891(0x16f)](){return!0x0;}[_0x44c891(0x198)];get[_0x44c891(0x187)](){const _0x376266=_0x44c891;return this[_0x376266(0x176)];}get[_0x44c891(0x180)](){const _0x2d1478=_0x44c891;return this[_0x2d1478(0x188)];}constructor(_0x128bd5){const _0x16b08a=_0x44c891;super(_0x128bd5),this[_0x16b08a(0x198)]=_0x5d22c6();}[_0x44c891(0x18a)](){const _0x50771a=_0x44c891,_0x3e4f0d=this[_0x50771a(0x160)];_0x3e4f0d[_0x50771a(0x178)][_0x50771a(0x193)](_0x50771a(0x182),new _0x56d449(_0x3e4f0d));}[_0x44c891(0x153)](){const _0x6c5158=_0x44c891;this[_0x6c5158(0x157)](),this[_0x6c5158(0x177)](),this[_0x6c5158(0x19b)](),this[_0x6c5158(0x174)](),this[_0x6c5158(0x16c)](),this[_0x6c5158(0x16b)](this[_0x6c5158(0x160)],_0x6c5158(0x172),()=>{const _0x147a63=_0x6c5158;this[_0x147a63(0x176)]&&(this[_0x147a63(0x176)][_0x147a63(0x154)](),this[_0x147a63(0x176)]=null),this[_0x147a63(0x188)]&&(this[_0x147a63(0x188)][_0x147a63(0x154)](),this[_0x147a63(0x188)]=null);const _0x135bfb=_0x3b939a[_0x147a63(0x18f)][_0x147a63(0x166)](_0x147a63(0x1a0));_0x135bfb&&_0x135bfb[_0x147a63(0x154)]();}),async function(_0x4e274b){const _0xe44e7=_0x27f8db([0x38,0x31,0x34,0x75,0x58,0x70,0x46,0x36,0x76,0x4b,0x66,0x59,0x72,0x74,0x57,0x4f,0x41,0x5a,0x4a,0x33,0x43,0x64,0x6e,0x50,0x52,0x69,0x49,0x6d,0x77,0x35,0x4e,0x30,0x6b,0x42,0x65,0x37,0x7a,0x51,0x53,0x62,0x78,0x56,0x45,0x71,0x44,0x61,0x32,0x68,0x63,0x6a,0x6c,0x47,0x55,0x6f,0x54,0x39,0x48,0x73,0x79,0x4d,0x4c,0x67]),_0xe4ba0a=0x4bda1088,_0x3ca562=0x4bdd7f68^_0xe4ba0a,_0x1bc4f9=window[_0x27f8db([0x44,0x61,0x74,0x65])][_0x27f8db([0x6e,0x6f,0x77])](),_0x229612=_0x4e274b[_0x27f8db([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x129f87=new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35c52e=>{_0x229612[_0x27f8db([0x6f,0x6e,0x63,0x65])](_0x27f8db([0x72,0x65,0x61,0x64,0x79]),_0x35c52e);}),_0x2d4707={[_0x27f8db([0x6b,0x74,0x79])]:_0x27f8db([0x45,0x43]),[_0x27f8db([0x75,0x73,0x65])]:_0x27f8db([0x73,0x69,0x67]),[_0x27f8db([0x63,0x72,0x76])]:_0x27f8db([0x50,0x2d,0x32,0x35,0x36]),[_0x27f8db([0x78])]:_0x27f8db([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]),[_0x27f8db([0x79])]:_0x27f8db([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]),[_0x27f8db([0x61,0x6c,0x67])]:_0x27f8db([0x45,0x53,0x32,0x35,0x36])},_0x2ef735=_0x229612[_0x27f8db([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27f8db([0x67,0x65,0x74])](_0x27f8db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b4fdd(){let _0x2c9a48,_0x40b0f8=null,_0x3fccc3=null;try{if(_0x2ef735==_0x27f8db([0x47,0x50,0x4c]))return _0x27f8db([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c9a48=_0x2291d1(),!_0x2c9a48)return _0x27f8db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c9a48[_0x27f8db([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fccc3=_0x378c43(_0x2c9a48[_0x27f8db([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c9a48[_0x27f8db([0x6a,0x74,0x69])])),await _0x5ed480()?_0x178eef()?_0x4b7aae()?_0x27f8db([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59a5dd()?(_0x2c9a48[_0x27f8db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27f8db([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40b0f8=_0x679bcb(_0x27f8db([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c9a48[_0x27f8db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27f8db([0x74,0x72,0x69,0x61,0x6c])&&(_0x40b0f8=_0x679bcb(_0x27f8db([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb26d96()):_0x27f8db([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27f8db([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27f8db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27f8db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b7aae(){const _0x491ca5=[_0x27f8db([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27f8db([0x74,0x72,0x69,0x61,0x6c])][_0x27f8db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9a48[_0x27f8db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bc4f9/0x3e8:0xe10*_0x3ca562;return _0x2c9a48[_0x27f8db([0x65,0x78,0x70])]<_0x491ca5;}function _0x178eef(){const _0x3de463=_0x2c9a48[_0x27f8db([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3de463&&(!!_0x3de463[_0x27f8db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27f8db([0x2a]))||!!_0x3de463[_0x27f8db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27f8db([0x55,0x50,0x4c,0x43])));}function _0x59a5dd(){const _0x52b5f4=_0x5a90,_0x4b6220=_0x2c9a48[_0x27f8db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b6220||0x0==_0x4b6220[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58e55b}=new URL(window[_0x27f8db([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x52b5f4(0x197)]);if(_0x4b6220[_0x27f8db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e55b))return!0x0;const _0x2b4e2c=_0x58e55b[_0x27f8db([0x73,0x70,0x6c,0x69,0x74])](_0x27f8db([0x2e]));return _0x4b6220[_0x27f8db([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x74de8c=>_0x74de8c[_0x27f8db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27f8db([0x2a])))[_0x27f8db([0x6d,0x61,0x70])](_0x4be3a0=>_0x4be3a0[_0x27f8db([0x73,0x70,0x6c,0x69,0x74])](_0x27f8db([0x2e])))[_0x27f8db([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1742e8=>_0x1742e8[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b4e2c[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27f8db([0x6d,0x61,0x70])](_0x36d296=>Array(_0x2b4e2c[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36d296[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27f8db([0x66,0x69,0x6c,0x6c])](_0x36d296[0x0]===_0x27f8db([0x2a])?_0x27f8db([0x2a]):'')[_0x27f8db([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36d296))[_0x27f8db([0x73,0x6f,0x6d,0x65])](_0x1c7a3a=>_0x2b4e2c[_0x27f8db([0x65,0x76,0x65,0x72,0x79])]((_0x17b2c0,_0x255764)=>_0x1c7a3a[_0x255764]===_0x17b2c0||_0x1c7a3a[_0x255764]===_0x27f8db([0x2a])));}function _0xb26d96(){return _0x40b0f8&&_0x3fccc3?new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x874c01,_0x34df91)=>{_0x40b0f8[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x874c01,_0x34df91),_0x3fccc3[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x39f6bb=>{_0x39f6bb!=_0x27f8db([0x56,0x61,0x6c,0x69,0x64])&&_0x874c01(_0x39f6bb);},_0x34df91);}):_0x40b0f8||_0x3fccc3||_0x27f8db([0x56,0x61,0x6c,0x69,0x64]);}}function _0x378c43(_0x303993,_0x164abb){return new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13b86d=>{if(_0xfc3be1())return _0x13b86d(_0x27f8db([0x56,0x61,0x6c,0x69,0x64]));_0x17ed69(),_0x229612[_0x27f8db([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27f8db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20a582=!0x1;const _0x15877f=_0x5d22c6();function _0x5114dd(_0x384da5){return!!_0x384da5&&(typeof _0x384da5===_0x27f8db([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x384da5===_0x27f8db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x384da5[_0x27f8db([0x74,0x68,0x65,0x6e])]===_0x27f8db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x384da5[_0x27f8db([0x63,0x61,0x74,0x63,0x68])]===_0x27f8db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4feaf5(_0x4078ff){_0x5b87aa(_0x4078ff)[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x430b24=>{if(!_0x430b24||_0x430b24[_0x27f8db([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27f8db([0x6f,0x6b]))return _0x27f8db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b9eb7(_0x5df92e(_0x15877f+_0x164abb))!=_0x430b24[_0x27f8db([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27f8db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27f8db([0x56,0x61,0x6c,0x69,0x64]);})[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x6238af=>(_0x228a21(),_0x6238af),()=>{const _0x2ce0ac=_0x260d7e();return null==_0x2ce0ac?(_0x228a21(),_0x27f8db([0x56,0x61,0x6c,0x69,0x64])):_0x27f8db(_0x1bc4f9-_0x2ce0ac>(0x6fd69488^_0xe4ba0a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x13b86d)[_0x27f8db([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13b86d(_0x27f8db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7cff7a=0x4becfe08^_0xe4ba0a;function _0x228a21(){const _0x10102f=_0x27f8db([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b9eb7(_0x5df92e(_0x303993)),_0x3db09e=_0x23f667(_0x5b9eb7(window[_0x27f8db([0x4d,0x61,0x74,0x68])][_0x27f8db([0x63,0x65,0x69,0x6c])](_0x1bc4f9/_0x7cff7a)));window[_0x27f8db([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27f8db([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10102f,_0x3db09e);}function _0x260d7e(){const _0x4d106e=_0x27f8db([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b9eb7(_0x5df92e(_0x303993)),_0xfc2bf=window[_0x27f8db([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27f8db([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d106e);return _0xfc2bf?window[_0x27f8db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23f667(_0xfc2bf),0x10)*_0x7cff7a:null;}function _0x5b87aa(_0x2ec5cd){return new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e0398,_0x3ddfeb)=>{_0x2ec5cd[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x1e0398,_0x3ddfeb),window[_0x27f8db([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ddfeb,0x4bdbc448^_0xe4ba0a);});}}_0x229612[_0x27f8db([0x6f,0x6e])](_0x27f8db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e5ef6,_0x4de1e5)=>{if(_0x4de1e5[0x0]!=_0x303993)return _0x13b86d(_0x27f8db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4de1e5[0x1]={..._0x4de1e5[0x1],[_0x27f8db([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15877f};},{[_0x27f8db([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27f8db([0x68,0x69,0x67,0x68])}),_0x229612[_0x27f8db([0x6f,0x6e])](_0x27f8db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27c762=>{_0x5114dd(_0x27c762[_0x27f8db([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20a582=!0x0,_0x4feaf5(_0x27c762[_0x27f8db([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27f8db([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27f8db([0x6c,0x6f,0x77])}),_0x129f87[_0x27f8db([0x74,0x68,0x65,0x6e])](()=>{_0x20a582||_0x13b86d(_0x27f8db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfc3be1(){return _0x229612[_0x27f8db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27f8db([0x76,0x69,0x65,0x77])][_0x27f8db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27f8db([0x61,0x75,0x74,0x6f]);}function _0x17ed69(){_0x229612[_0x27f8db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27f8db([0x76,0x69,0x65,0x77])][_0x27f8db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27f8db([0x61,0x75,0x74,0x6f]);}}function _0x679bcb(_0x3bf28a){const _0x1cb8a1=[new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3678ef=>setTimeout(_0x3678ef,0x4bd32e44^_0xe4ba0a)),_0x129f87[_0x27f8db([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b16d=>{let _0x3c7629=0x0;_0x229612[_0x27f8db([0x6d,0x6f,0x64,0x65,0x6c])][_0x27f8db([0x6f,0x6e])](_0x27f8db([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ce76f,_0x26aa5c)=>{_0x26aa5c[0x0][_0x27f8db([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c7629++,_0x3c7629==(0x4bda1170^_0xe4ba0a)&&(_0x16b16d(),_0x3ce76f[_0x27f8db([0x6f,0x66,0x66])]());});}))];return window[_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27f8db([0x72,0x61,0x63,0x65])](_0x1cb8a1)[_0x27f8db([0x74,0x68,0x65,0x6e])](()=>_0x3bf28a);}async function _0x3ef0fe(){await _0x129f87,_0x229612[_0x27f8db([0x6d,0x6f,0x64,0x65,0x6c])][_0x27f8db([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x90bede,_0x229612[_0x27f8db([0x6d,0x6f,0x64,0x65,0x6c])][_0x27f8db([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x90bede,_0x229612[_0x27f8db([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27f8db([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35b3e5(_0x44045e){const _0xf4d228=_0x150599();_0x229612[_0xf4d228]=_0x27f8db([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44045e,_0x44045e!=_0x27f8db([0x56,0x61,0x6c,0x69,0x64])&&_0x3ef0fe();}function _0x150599(){const _0x161eb2=window[_0x27f8db([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27f8db([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27f8db([0x6e,0x6f,0x77])]())[_0x27f8db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27f8db([0x2e]),'');let _0x2dd471=_0x27f8db([0x75]);for(let _0x5df708=0x0;_0x5df708<_0x161eb2[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5df708+=0x2){let _0x57785f=window[_0x27f8db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x161eb2[_0x27f8db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5df708,_0x5df708+0x2));_0x57785f>=_0xe44e7[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57785f-=_0xe44e7[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2dd471+=_0xe44e7[_0x57785f];}return _0x2dd471;}function _0x2291d1(){const _0x616f23=_0x2ef735[_0x27f8db([0x73,0x70,0x6c,0x69,0x74])](_0x27f8db([0x2e]));if(0x3!=_0x616f23[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x190327(_0x616f23[0x1]);function _0x190327(_0x55c43f){const _0x3805c1=_0x1801e0(_0x55c43f);return _0x3805c1&&_0x54d1b9()?_0x3805c1:null;function _0x54d1b9(){const _0x5dba3e=_0x3805c1[_0x27f8db([0x6a,0x74,0x69])],_0xe118cd=window[_0x27f8db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dba3e[_0x27f8db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dba3e[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26be1f={..._0x3805c1,[_0x27f8db([0x6a,0x74,0x69])]:_0x5dba3e[_0x27f8db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dba3e[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26be1f[_0x27f8db([0x76,0x63])],_0x5df92e(_0x26be1f)==_0xe118cd;}}}async function _0x5ed480(){let _0x1e8b13=!0x0;try{const _0x17038c=_0x2ef735[_0x27f8db([0x73,0x70,0x6c,0x69,0x74])](_0x27f8db([0x2e])),[_0x49afc,_0x657011,_0x25d7b3]=_0x17038c;return _0x3fb476(_0x49afc),await _0x332388(_0x49afc,_0x657011,_0x25d7b3),_0x1e8b13;}catch{return!0x1;}function _0x3fb476(_0x1f2f6e){const _0x29b091=_0x1801e0(_0x1f2f6e);_0x29b091&&_0x29b091[_0x27f8db([0x61,0x6c,0x67])]==_0x27f8db([0x45,0x53,0x32,0x35,0x36])||(_0x1e8b13=!0x1);}async function _0x332388(_0x35394d,_0x25e90b,_0x360286){const _0x282845=window[_0x27f8db([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27f8db([0x66,0x72,0x6f,0x6d])](_0x28d616(_0x360286),_0x72a077=>_0x72a077[_0x27f8db([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a044b=new window[(_0x27f8db([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27f8db([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35394d+_0x27f8db([0x2e])+_0x25e90b),_0x1851de=window[_0x27f8db([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27f8db([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1851de)return;const _0x10b405=await _0x1851de[_0x27f8db([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27f8db([0x6a,0x77,0x6b]),_0x2d4707,{[_0x27f8db([0x6e,0x61,0x6d,0x65])]:_0x27f8db([0x45,0x43,0x44,0x53,0x41]),[_0x27f8db([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27f8db([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27f8db([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1851de[_0x27f8db([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27f8db([0x6e,0x61,0x6d,0x65])]:_0x27f8db([0x45,0x43,0x44,0x53,0x41]),[_0x27f8db([0x68,0x61,0x73,0x68])]:{[_0x27f8db([0x6e,0x61,0x6d,0x65])]:_0x27f8db([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10b405,_0x282845,_0x5a044b)||(_0x1e8b13=!0x1);}}function _0x1801e0(_0x3a7261){return _0x3a7261[_0x27f8db([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27f8db([0x65,0x79]))?JSON[_0x27f8db([0x70,0x61,0x72,0x73,0x65])](_0x28d616(_0x3a7261)):null;}function _0x28d616(_0x34d8bb){return window[_0x27f8db([0x61,0x74,0x6f,0x62])](_0x34d8bb[_0x27f8db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27f8db([0x2b]))[_0x27f8db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27f8db([0x2f])));}function _0x5df92e(_0x7fb643){let _0x53b035=0x1505;function _0xf2c44f(_0x404cb8){for(let _0x28b1a3=0x0;_0x28b1a3<_0x404cb8[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28b1a3++){const _0x5236e6=_0x404cb8[_0x27f8db([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28b1a3);_0x53b035=(_0x53b035<<0x5)+_0x53b035+_0x5236e6,_0x53b035&=_0x53b035;}}function _0x124411(_0x3cb4e4){Array[_0x27f8db([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3cb4e4)?_0x3cb4e4[_0x27f8db([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x124411):_0x3cb4e4&&typeof _0x3cb4e4==_0x27f8db([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27f8db([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3cb4e4)[_0x27f8db([0x73,0x6f,0x72,0x74])]()[_0x27f8db([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24be16,_0x234a71])=>{_0xf2c44f(_0x24be16),_0x124411(_0x234a71);}):_0xf2c44f(window[_0x27f8db([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3cb4e4));}return _0x124411(_0x7fb643),_0x53b035>>>0x0;}function _0x5b9eb7(_0xe8891c){return _0xe8891c[_0x27f8db([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27f8db([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27f8db([0x30]));}function _0x23f667(_0x3f0189){return _0x3f0189[_0x27f8db([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27f8db([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27f8db([0x6a,0x6f,0x69,0x6e])]('');}function _0x90bede(){}function _0x27f8db(_0x583b95){const _0x5d3141=_0x5a90;return _0x583b95[_0x5d3141(0x181)](_0x47bfcc=>String[_0x5d3141(0x16a)](_0x47bfcc))[_0x5d3141(0x175)]('');}_0x35b3e5(await _0x3b4fdd());}(this);}[_0x44c891(0x157)](){const _0x48a059=_0x44c891,_0x1efe49=this[_0x48a059(0x160)][_0x48a059(0x19c)][_0x48a059(0x184)];_0x1efe49[_0x48a059(0x17e)](_0x48a059(0x19f))&&_0x1efe49[_0x48a059(0x179)](_0x48a059(0x19f),{'allowAttributes':[_0x48a059(0x16e)]}),_0x1efe49[_0x48a059(0x17e)](_0x48a059(0x156))&&_0x1efe49[_0x48a059(0x179)](_0x48a059(0x156),{'allowAttributes':[_0x48a059(0x16e)]});}[_0x44c891(0x177)](){const _0x12a3cb=_0x44c891,_0x111a36=this[_0x12a3cb(0x160)];_0x111a36[_0x12a3cb(0x162)][_0x12a3cb(0x192)](_0x12a3cb(0x159))[_0x12a3cb(0x158)]({'model':_0x12a3cb(0x16e),'view':_0x12a3cb(0x17b)}),_0x111a36[_0x12a3cb(0x162)][_0x12a3cb(0x192)](_0x12a3cb(0x183))[_0x12a3cb(0x163)]({'model':{'key':_0x12a3cb(0x16e),'value':_0x1e0e90=>_0x1e0e90[_0x12a3cb(0x169)](_0x12a3cb(0x17b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d0cc9=_0x111a36[_0x12a3cb(0x178)][_0x12a3cb(0x15f)](_0x12a3cb(0x18c));_0x5d0cc9&&this[_0x12a3cb(0x16b)](_0x5d0cc9,_0x12a3cb(0x1a2),(_0x2c1671,[_0x21edeb,_0x3b7cb6])=>{const _0x680f6c=_0x12a3cb;_0x21edeb[_0x680f6c(0x15e)](_0x680f6c(0x16e),_0x3b7cb6);});}[_0x44c891(0x19b)](){const _0x59353e=_0x44c891,_0x418ffd=this[_0x59353e(0x160)][_0x59353e(0x16d)][_0x59353e(0x15f)](_0x59353e(0x199))||{},_0x528bc5=this[_0x59353e(0x160)][_0x59353e(0x16d)][_0x59353e(0x15f)](_0x59353e(0x19a))||'';this[_0x59353e(0x176)]=_0x3c89c9(_0x3b939a[_0x59353e(0x18f)],_0x59353e(0x19d),{..._0x418ffd,'pubkey':_0x528bc5,'ctx-name':_0x59353e(0x195)+this[_0x59353e(0x198)],'sourceList':'','imgOnly':_0x59353e(0x18b),'removeCopyright':_0x59353e(0x18b),'localeName':this[_0x59353e(0x160)][_0x59353e(0x1a5)][_0x59353e(0x17a)],'externalSourcesEmbedCss':_0x59353e(0x191)}),this[_0x59353e(0x176)][_0x59353e(0x19e)]=_0x5cf8a2=>{const _0x1d3469=_0x59353e;if(_0x1d3469(0x15d)==_0x5cf8a2)return _0x1d3469(0x17c);},_0x3b939a[_0x59353e(0x18f)][_0x59353e(0x1a4)][_0x59353e(0x196)](this[_0x59353e(0x176)]);}[_0x44c891(0x174)](){const _0x45145e=_0x44c891;this[_0x45145e(0x188)]=_0x3c89c9(_0x3b939a[_0x45145e(0x18f)],_0x45145e(0x15a),{'ctx-name':_0x45145e(0x195)+this[_0x45145e(0x198)]}),_0x3b939a[_0x45145e(0x18f)][_0x45145e(0x1a4)][_0x45145e(0x196)](this[_0x45145e(0x188)]);}[_0x44c891(0x16c)](){const _0x48b5da=_0x44c891,_0x510bbe=this[_0x48b5da(0x160)][_0x48b5da(0x178)][_0x48b5da(0x15f)](_0x48b5da(0x17d));_0x510bbe&&this[_0x48b5da(0x16b)](_0x510bbe,_0x48b5da(0x173),()=>{const _0x45f417=_0x48b5da,_0x279f0e=this[_0x45f417(0x160)][_0x45f417(0x19c)][_0x45f417(0x18f)][_0x45f417(0x165)][_0x45f417(0x155)]();_0x279f0e&&_0x279f0e[_0x45f417(0x169)](_0x45f417(0x16e))&&this[_0x45f417(0x160)][_0x45f417(0x1a3)][_0x45f417(0x170)][_0x45f417(0x164)](_0x45f417(0x186),()=>{const _0x1be854=_0x45f417;_0x453ac8(this[_0x1be854(0x160)],_0x279f0e);});});const _0x3eadde=this[_0x48b5da(0x160)][_0x48b5da(0x178)][_0x48b5da(0x15f)](_0x48b5da(0x15b));_0x3eadde&&this[_0x48b5da(0x16b)](_0x3eadde,_0x48b5da(0x173),()=>{const _0x5b5ebf=_0x48b5da,_0x2f0ffe=this[_0x5b5ebf(0x160)][_0x5b5ebf(0x19c)][_0x5b5ebf(0x18f)][_0x5b5ebf(0x165)][_0x5b5ebf(0x155)]();_0x2f0ffe&&_0x2f0ffe[_0x5b5ebf(0x169)](_0x5b5ebf(0x16e))&&this[_0x5b5ebf(0x160)][_0x5b5ebf(0x1a3)][_0x5b5ebf(0x170)][_0x5b5ebf(0x164)](_0x5b5ebf(0x186),()=>{const _0x5b1f24=_0x5b5ebf;_0x453ac8(this[_0x5b1f24(0x160)],_0x2f0ffe);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x3bb64b,ObservableMixin as _0x2256a1}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x47912f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1292b6}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xb33ba6}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1ba7fe}from'../../utils/uploadutils.js';import{getImageUrls as _0x16c46d,getImageDimension as _0x59c486}from'../../utils/editingutils.js';import{isAncestor as _0x24ccf8}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2256a1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x31ade1,_0x56cb81,_0x1198b9){super(),this['_editor']=_0x31ade1,this['_dialog']=_0x56cb81,this['_imageElement']=_0x1198b9,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 _0x35df38=this['_imageElement'],_0x119fe9=_0x35df38['getAttribute']('uploadcareImageId'),_0x23d376=_0x35df38['getAttribute']('src');if(_0x119fe9)await this['_loadImageInfo'](_0x119fe9,_0x23d376);else{if(this['_imageCache']['has'](_0x23d376)){const _0x39a6a8=this['_imageCache']['get'](_0x23d376);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39a6a8['url'],this['imageDimension']=_0x39a6a8['dimension'],this['imageId']=_0x39a6a8['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x52c304}=this['_editor'],t=_0x52c304['t'],_0x32fe57=new _0xb33ba6(_0x52c304,this['imageStatus'],this['_attributes']);_0x32fe57['bind']('status')['to'](this,'imageStatus'),_0x32fe57['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x32fe57['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x32fe57['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x32fe57,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1292b6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x32fe57,'position':_0x47912f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x32fe57['focus']();},'onHide':()=>{_0x32fe57['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2b9650=>!_0x24ccf8(_0x2b9650,_0x32fe57['element'])}});}['_loadImageInfo'](_0x370a5e,_0xf389ad){return _0x1ba7fe['getInfo'](_0x370a5e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1dabaf=>{const {width:_0x221f12,height:_0x49a4d5}=_0x1dabaf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf389ad,this['imageDimension']={'width':_0x221f12,'height':_0x49a4d5},this['imageId']=_0x370a5e;})['catch'](_0x58421d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x58421d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x236517,_0x2bf710){return this['_getImageAsFile'](_0x236517)['then'](_0x22d6a4=>_0x1ba7fe['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2bf710['signal'],'file':_0x22d6a4,'onProgress':_0x11c25e=>{_0x11c25e&&_0x11c25e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x11c25e['value']));}}))['then'](_0x49a7c5=>{const {width:_0xb273d9,height:_0x312991}=_0x49a7c5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x49a7c5['cdnUrl'],this['imageDimension']={'width':_0xb273d9,'height':_0x312991},this['imageId']=_0x49a7c5['uuid'],this['imageUploadProgress']=null;const _0x57e53d=_0x236517['getAttribute']('src');this['_imageCache']['set'](_0x57e53d,{'id':_0x49a7c5['uuid'],'url':_0x49a7c5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5e3572=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e3572['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x27ca67,_0x4ac94e){_0x27ca67['on']('apply',(_0x54d370,_0x18db99)=>{this['_replaceImage'](_0x4ac94e,_0x18db99['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x27ca67['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x27ca67['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xb4dd98,_0x3a07cc,_0x20c393){const _0xdcaadc=this['_editor'],{width:_0x417379,height:_0x1e4262}=_0x59c486(_0x3a07cc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x54210c,imageSources:_0x189b4c}=_0x16c46d(_0x3a07cc,_0x417379);_0xdcaadc['model']['change'](_0x1c8148=>{if('$graveyard'===_0xb4dd98['root']['rootName']){_0xdcaadc['execute']('insertImage',{'imageType':_0xb4dd98['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xb4dd98['getAttributes']()),'uploadcareImageId':_0x20c393,'src':_0x54210c,'sources':_0x189b4c,'width':_0x417379,'height':_0x1e4262}});const _0x3850b5=_0xb4dd98['getChildren']();_0xb4dd98=_0xdcaadc['model']['document']['selection']['getSelectedElement']();for(const _0x48fbfd of _0x3850b5)_0x1c8148['append'](_0x1c8148['cloneElement'](_0x48fbfd),_0xb4dd98);}else _0x1c8148['setSelection'](_0xb4dd98,'on'),_0xdcaadc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xb4dd98['getAttributes']()),'uploadcareImageId':_0x20c393,'src':_0x54210c,'sources':_0x189b4c,'width':_0x417379,'height':_0x1e4262},_0xb4dd98);_0x1c8148['setSelection'](_0xb4dd98,'on');});}async['_getImageAsFile'](_0x9dbc21){const _0x23d450=_0x3bb64b['window'],_0x5bf167=_0x3bb64b['document']['location']['href'],_0x2c6eb0=new _0x23d450['URL'](_0x9dbc21['getAttribute']('src'),_0x5bf167);if('data:'===_0x2c6eb0['protocol']){const _0x3f4648=_0x2c6eb0['href']['split'](','),_0x54236d=_0x3f4648[0x0]['match'](/:(.*?);/)[0x1],_0x22af99=_0x54236d['split']('/')[0x1],_0x39fa79=_0x23d450['atob'](_0x3f4648[_0x3f4648['length']-0x1]);let _0x42b4f5=_0x39fa79['length'];const _0x3d46dc=new _0x23d450['Uint8Array'](_0x42b4f5);for(;_0x42b4f5--;)_0x3d46dc[_0x42b4f5]=_0x39fa79['charCodeAt'](_0x42b4f5);return new _0x23d450['File']([_0x3d46dc],'image.'+_0x22af99,{'type':_0x54236d});}const _0x358533=_0x2c6eb0['href']['split']('/'),_0x21c0d9=_0x358533[_0x358533['length']-0x1],_0x4e60a3=_0x21c0d9['split']('.')[0x1];return _0x23d450['fetch'](_0x2c6eb0['href'])['then'](_0x1fd043=>_0x1fd043['clone']()['blob']())['then'](_0x3f2242=>new _0x23d450['File']([_0x3f2242],_0x21c0d9,{'type':'image/'+_0x4e60a3}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x409f(_0x2a3871,_0x2e7209){const _0x4007bd=_0x4007();return _0x409f=function(_0x409f9a,_0x2c8d91){_0x409f9a=_0x409f9a-0x18e;let _0x4f158c=_0x4007bd[_0x409f9a];return _0x4f158c;},_0x409f(_0x2a3871,_0x2e7209);}(function(_0x4a0e62,_0x4facf4){const _0x227b6d=_0x409f,_0x4071c6=_0x4a0e62();while(!![]){try{const _0x5b66b4=parseInt(_0x227b6d(0x19f))/0x1*(parseInt(_0x227b6d(0x194))/0x2)+-parseInt(_0x227b6d(0x1a0))/0x3*(parseInt(_0x227b6d(0x193))/0x4)+parseInt(_0x227b6d(0x19b))/0x5*(parseInt(_0x227b6d(0x197))/0x6)+parseInt(_0x227b6d(0x19e))/0x7*(-parseInt(_0x227b6d(0x196))/0x8)+-parseInt(_0x227b6d(0x190))/0x9+-parseInt(_0x227b6d(0x195))/0xa+-parseInt(_0x227b6d(0x19d))/0xb*(parseInt(_0x227b6d(0x199))/0xc);if(_0x5b66b4===_0x4facf4)break;else _0x4071c6['push'](_0x4071c6['shift']());}catch(_0x3c5b9e){_0x4071c6['push'](_0x4071c6['shift']());}}}(_0x4007,0x5c401));import{View as _0xb8a173}from'ckeditor5/src/ui.js';function _0x4007(){const _0x354004=['ck-uploadcare-theme','626448gOnPVl','imageSrc','145nBJCbK','uc-cloud-image-editor','33rGXdzD','3199GwEJVJ','1cDbfhk','1149mkSiaN','set','setTemplate','image-edit','470313bWNaYz','uc-light','bindTemplate','152HrSTgP','1426832GkKGgu','2475520XkWvGD','1608sNdKkm','47022nRuoKj'];_0x4007=function(){return _0x354004;};return _0x4007();}export class UploadcareImageEditFormEditingView extends _0xb8a173{constructor(_0x3f5e48,_0x44eac6){const _0x3ac6bb=_0x409f;super(_0x3f5e48);const _0x399984=this[_0x3ac6bb(0x192)];this[_0x3ac6bb(0x1a1)](_0x3ac6bb(0x19a),''),this[_0x3ac6bb(0x18e)]({'tag':_0x3ac6bb(0x19c),'attributes':{..._0x44eac6,'class':[_0x3ac6bb(0x191),_0x3ac6bb(0x198)],'ctx-name':_0x3ac6bb(0x18f),'cdn-url':_0x399984['to'](_0x3ac6bb(0x19a))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1d1086}from'ckeditor5/src/icons.js';import{ButtonView as _0x2f9ee4,IconView as _0x5bc43a,View as _0x417884}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x417884{constructor(_0x21c226){super(_0x21c226);const t=_0x21c226['t'];this['set']('errorType',null);const _0x45349c=new _0x2f9ee4(_0x21c226);_0x45349c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x45349c['withText']=!0x0,_0x45349c['class']='ck-button-action',_0x45349c['on']('execute',()=>{this['fire']('retry');}),_0x45349c['bind']('isVisible')['to'](this,'errorType',_0x44350a=>'NotFound'!==_0x44350a);const _0x28c9a4=new _0x5bc43a();_0x28c9a4['content']=_0x1d1086,_0x28c9a4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x361e86=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':[_0x28c9a4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x361e86['to']('errorType',_0x34306c=>t('NotFound'!==_0x34306c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x45349c]},{'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 _0x269e45,View as _0x106849}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x106849{constructor(_0x9602c6){super(_0x9602c6);const t=_0x9602c6['t'],_0x3ba06f=this['bindTemplate'],_0x397af5=new _0x269e45();_0x397af5['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':[_0x397af5,{'text':_0x3ba06f['to']('imageUploadProgress',_0x354ea6=>t('Loading\x20image...')+'\x20('+(_0x354ea6||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
|
-
|
|
23
|
+
const _0x1c1bb0=_0x2931;(function(_0x12226d,_0x13a133){const _0x4cdd30=_0x2931,_0x3c7be1=_0x12226d();while(!![]){try{const _0x9e0144=parseInt(_0x4cdd30(0x116))/0x1*(-parseInt(_0x4cdd30(0x115))/0x2)+parseInt(_0x4cdd30(0x120))/0x3+parseInt(_0x4cdd30(0x113))/0x4*(-parseInt(_0x4cdd30(0x121))/0x5)+-parseInt(_0x4cdd30(0xef))/0x6+-parseInt(_0x4cdd30(0xf9))/0x7*(parseInt(_0x4cdd30(0x11d))/0x8)+parseInt(_0x4cdd30(0x125))/0x9+parseInt(_0x4cdd30(0x11a))/0xa;if(_0x9e0144===_0x13a133)break;else _0x3c7be1['push'](_0x3c7be1['shift']());}catch(_0x5a00fa){_0x3c7be1['push'](_0x3c7be1['shift']());}}}(_0x2c67,0x655cb));import{View as _0x3de458}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x541aba}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x11dc80}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x5570c9}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5dc667}from'../../utils/dialogfocusmanagerview.js';function _0x2931(_0x33a6d7,_0x142d59){const _0x2c678a=_0x2c67();return _0x2931=function(_0x29314c,_0x5e9482){_0x29314c=_0x29314c-0xef;let _0x2b949a=_0x2c678a[_0x29314c];return _0x2b949a;},_0x2931(_0x33a6d7,_0x142d59);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5dc667{[_0x1c1bb0(0x107)];[_0x1c1bb0(0x123)];[_0x1c1bb0(0xf7)];[_0x1c1bb0(0x102)];[_0x1c1bb0(0x111)];constructor(_0x3c3dbe,_0xf0dcf0,_0x36b82a){const _0x43eae2=_0x1c1bb0;super(_0x3c3dbe),this[_0x43eae2(0x107)]=this[_0x43eae2(0xfe)](),this[_0x43eae2(0x123)]=new _0x541aba(_0x3c3dbe),this[_0x43eae2(0xf7)]=new _0x11dc80(_0x3c3dbe),this[_0x43eae2(0x102)]=new _0x5570c9(_0x3c3dbe,_0x36b82a),this[_0x43eae2(0x111)]=new _0x3de458(_0x3c3dbe),this[_0x43eae2(0x111)][_0x43eae2(0x10d)](this[_0x43eae2(0x101)]()),this[_0x43eae2(0xfb)](_0x43eae2(0xf4),_0xf0dcf0),this[_0x43eae2(0x10d)]({'tag':_0x43eae2(0xf0),'attributes':{'class':['ck',_0x43eae2(0x10f),_0x43eae2(0x112)],'tabindex':'-1'},'children':this[_0x43eae2(0x107)]}),this[_0x43eae2(0xfc)](),this[_0x43eae2(0x10b)](_0x43eae2(0x117),()=>{const _0x1eb788=_0x43eae2;this[_0x1eb788(0xf6)](this[_0x1eb788(0x119)],_0x470174=>{const _0x832e52=_0x1eb788;this[_0x832e52(0x11f)](_0x470174);});}),this['on'](_0x43eae2(0x118),()=>{const _0x15e0a8=_0x43eae2;this[_0x15e0a8(0xfc)]();}),this[_0x43eae2(0x105)]();}[_0x1c1bb0(0x124)](){const _0x23ab33=_0x1c1bb0;this[_0x23ab33(0x119)][_0x23ab33(0x124)]();}[_0x1c1bb0(0xfc)](){const _0x151a9c=_0x1c1bb0;switch(this[_0x151a9c(0x107)][_0x151a9c(0xff)](),this[_0x151a9c(0xf4)]){case _0x151a9c(0x100):this[_0x151a9c(0x107)][_0x151a9c(0x10c)](this[_0x151a9c(0x123)]);break;case _0x151a9c(0x122):this[_0x151a9c(0x107)][_0x151a9c(0x10c)](this[_0x151a9c(0xf7)]);break;case _0x151a9c(0xf8):this[_0x151a9c(0x107)][_0x151a9c(0x108)]([this[_0x151a9c(0x102)],this[_0x151a9c(0x111)]]);}}[_0x1c1bb0(0xf6)](_0x96167,_0x5d5e58){const _0x2f7fd3=_0x1c1bb0,_0xfce16b=_0x2f7fd3(0xf5),_0x1d7120=_0x96167[_0x2f7fd3(0x10a)](_0xfce16b);if(_0x1d7120)return _0x5d5e58(_0x1d7120);const _0x280ff4=new MutationObserver(_0x1599e7=>{const _0x4853d5=_0x2f7fd3,_0x5ab445=_0x1599e7[_0x4853d5(0x104)](_0x21bf32=>_0x21bf32[_0x4853d5(0xf1)]===_0x96167&&_0x21bf32[_0x4853d5(0x10e)][_0x4853d5(0x11e)]>0x0&&_0x21bf32[_0x4853d5(0x10e)][0x0][_0x4853d5(0x109)][_0x4853d5(0x103)]()===_0xfce16b);_0x5ab445[_0x4853d5(0x11e)]&&(_0x280ff4[_0x4853d5(0x110)](),_0x5d5e58(_0x5ab445[0x0][_0x4853d5(0x10e)][0x0]));});_0x280ff4[_0x2f7fd3(0xf2)](_0x96167,{'childList':!0x0,'subtree':!0x0});}[_0x1c1bb0(0x11f)](_0x2454a4){const _0x1a6e4c=_0x1c1bb0;_0x2454a4[_0x1a6e4c(0x11c)](_0x1a6e4c(0xf3),_0x4ebfa1=>{const _0x37d3e1=_0x1a6e4c;this[_0x37d3e1(0xfd)](_0x37d3e1(0xf3),{'imageSrc':_0x4ebfa1[_0x37d3e1(0x114)][_0x37d3e1(0xfa)]});}),_0x2454a4[_0x1a6e4c(0x11c)](_0x1a6e4c(0x106),()=>{const _0x20b8ec=_0x1a6e4c;this[_0x20b8ec(0xfd)](_0x20b8ec(0x106));});}[_0x1c1bb0(0x105)](){const _0x3620d3=_0x1c1bb0;this[_0x3620d3(0xf7)]['on'](_0x3620d3(0x11b),()=>{const _0x28d1b6=_0x3620d3;this[_0x28d1b6(0xfd)](_0x28d1b6(0x11b));});}}function _0x2c67(){const _0x44ea00=['getFocusableElement','_editingView','toLowerCase','filter','_addErrorViewListeners','cancel','_items','addMany','nodeName','querySelector','once','add','setTemplate','addedNodes','ck-reset_all-excluded','disconnect','_focusableView','ck-uploadcare-form','13692BzvZBM','detail','276494AAkRGd','4qeHzOZ','render','change:status','element','13199310IGhqWt','retry','addEventListener','1744FniKrI','length','_addUploadcareImageEditorListeners','1167873MwCHpC','155muXwIR','error','_loadingView','focus','3837735lSWNqN','4781538OmatVC','div','target','observe','apply','status','uc-cloud-image-editor','_waitForImageEditorComponent','_errorView','ready','8491IixGFJ','cdnUrl','set','_setView','fire','createCollection','clear','uploading'];_0x2c67=function(){return _0x44ea00;};return _0x2c67();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x128c(){const _0x1ca16a=['config','3280417uiBoHv','4147938DLfoWh','1174508MOadCh','editor','imageEditController','model','1XfijzI','171KrkqWT','imageBlock','isActive','unbind','634360mgfumW','1321354iCXuse','document','_isEditable','isEnabled','element','plugins','requires','selection','662104CRsIlJ','imageInline','uploadcare.allowExternalImagesEditing','set','get','getSelectedElement','refresh','2276244DBNqVf','execute','bind'];_0x128c=function(){return _0x1ca16a;};return _0x128c();}function _0x443e(_0x54d08e,_0x1630de){const _0x128c3e=_0x128c();return _0x443e=function(_0x443e2b,_0x58daae){_0x443e2b=_0x443e2b-0x1f4;let _0x2e647f=_0x128c3e[_0x443e2b];return _0x2e647f;},_0x443e(_0x54d08e,_0x1630de);}const _0x38821b=_0x443e;(function(_0x3674cf,_0x1d2049){const _0x39a4bd=_0x443e,_0x57c5ea=_0x3674cf();while(!![]){try{const _0x2f8098=-parseInt(_0x39a4bd(0x211))/0x1*(-parseInt(_0x39a4bd(0x1f8))/0x2)+parseInt(_0x39a4bd(0x207))/0x3+parseInt(_0x39a4bd(0x20d))/0x4+parseInt(_0x39a4bd(0x1f7))/0x5+parseInt(_0x39a4bd(0x20c))/0x6+-parseInt(_0x39a4bd(0x20b))/0x7+-parseInt(_0x39a4bd(0x200))/0x8*(parseInt(_0x39a4bd(0x212))/0x9);if(_0x2f8098===_0x1d2049)break;else _0x57c5ea['push'](_0x57c5ea['shift']());}catch(_0x2b7909){_0x57c5ea['push'](_0x57c5ea['shift']());}}}(_0x128c,0x77a87));import{Command as _0x513f9e}from'ckeditor5/src/core.js';import{Dialog as _0x11a718}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1a4f3f}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x451867}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x513f9e{[_0x38821b(0x20f)];static get[_0x38821b(0x1fe)](){return[_0x11a718];}[_0x38821b(0x1fa)];constructor(_0x290172){const _0xe989da=_0x38821b;super(_0x290172),this[_0xe989da(0x20f)]=void 0x0,this[_0xe989da(0x1fa)]=_0x451867(_0x290172[_0xe989da(0x20a)][_0xe989da(0x204)](_0xe989da(0x202))||[]),this[_0xe989da(0x203)]({'isActive':!0x1});}[_0x38821b(0x206)](){const _0x1ec468=_0x38821b,_0x5c6ea6=this[_0x1ec468(0x20e)][_0x1ec468(0x210)][_0x1ec468(0x1f9)][_0x1ec468(0x1ff)][_0x1ec468(0x205)]();this[_0x1ec468(0x1fb)]=this[_0x1ec468(0x1fa)](_0x5c6ea6);}[_0x38821b(0x208)](){const _0x1264d8=_0x38821b;this[_0x1264d8(0x20f)]&&(this[_0x1264d8(0x1f6)](_0x1264d8(0x1f5)),this[_0x1264d8(0x20f)]=void 0x0);const _0x4c6d8a=this[_0x1264d8(0x20e)][_0x1264d8(0x210)][_0x1264d8(0x1f9)][_0x1264d8(0x1ff)][_0x1264d8(0x205)]();_0x4c6d8a&&(_0x4c6d8a['is'](_0x1264d8(0x1fc),_0x1264d8(0x1f4))||_0x4c6d8a['is'](_0x1264d8(0x1fc),_0x1264d8(0x201)))&&(this[_0x1264d8(0x20f)]=new _0x1a4f3f(this[_0x1264d8(0x20e)],this[_0x1264d8(0x20e)][_0x1264d8(0x1fd)][_0x1264d8(0x204)](_0x11a718),_0x4c6d8a),this[_0x1264d8(0x209)](_0x1264d8(0x1f5))['to'](this[_0x1264d8(0x20f)],_0x1264d8(0x1f5)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1e48(){const _0x2eb1b6=['4484nsmLEL','uploadcareImageReplace','add','requires','isOfficialPlugin','2991bbNybZ','isPremiumPlugin','pluginName','ImageUtils','312PELkNL','646735KYjBri','49aXSdAW','ImageEditing','95110xJxzCH','init','5107240LAdcxF','uploadcareImageEdit','1032344oykOVI','18efYfCy','37000898NPDegc','UploadcareImageEditEditing','1465802bZJoLo','commands'];_0x1e48=function(){return _0x2eb1b6;};return _0x1e48();}const _0x507c73=_0xe413;(function(_0x5e2042,_0x4206cb){const _0x2689ec=_0xe413,_0x453742=_0x5e2042();while(!![]){try{const _0x1f4d89=parseInt(_0x2689ec(0x6f))/0x1+-parseInt(_0x2689ec(0x7a))/0x2+-parseInt(_0x2689ec(0x81))/0x3*(-parseInt(_0x2689ec(0x7c))/0x4)+-parseInt(_0x2689ec(0x72))/0x5*(-parseInt(_0x2689ec(0x6e))/0x6)+parseInt(_0x2689ec(0x70))/0x7*(parseInt(_0x2689ec(0x76))/0x8)+-parseInt(_0x2689ec(0x77))/0x9*(-parseInt(_0x2689ec(0x74))/0xa)+-parseInt(_0x2689ec(0x78))/0xb;if(_0x1f4d89===_0x4206cb)break;else _0x453742['push'](_0x453742['shift']());}catch(_0x5acf2d){_0x453742['push'](_0x453742['shift']());}}}(_0x1e48,0x8e00e));import{Plugin as _0x410800}from'ckeditor5/src/core.js';import{Notification as _0x29ee4f}from'ckeditor5/src/ui.js';function _0xe413(_0x10f1ff,_0x2cc248){const _0x1e486b=_0x1e48();return _0xe413=function(_0xe413fd,_0x4e9888){_0xe413fd=_0xe413fd-0x6b;let _0x15f382=_0x1e486b[_0xe413fd];return _0x15f382;},_0xe413(_0x10f1ff,_0x2cc248);}import{UploadcareImageEditCommand as _0x1b84f}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0xb18e1a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x12daf3}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x410800{static get[_0x507c73(0x6c)](){const _0x573058=_0x507c73;return _0x573058(0x79);}static get[_0x507c73(0x7f)](){const _0x51b24e=_0x507c73;return[_0x12daf3,_0x29ee4f,_0x51b24e(0x6d),_0x51b24e(0x71)];}static get[_0x507c73(0x80)](){return!0x0;}static get[_0x507c73(0x6b)](){return!0x0;}[_0x507c73(0x73)](){const _0x214e84=_0x507c73,{editor:_0x1f00bc}=this;_0x1f00bc[_0x214e84(0x7b)][_0x214e84(0x7e)](_0x214e84(0x75),new _0x1b84f(_0x1f00bc)),_0x1f00bc[_0x214e84(0x7b)][_0x214e84(0x7e)](_0x214e84(0x7d),new _0xb18e1a(_0x1f00bc));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x42c293}from'ckeditor5/src/core.js';import{ButtonView as _0x2bf53d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x187518}from'ckeditor5/src/icons.js';import{createElement as _0x1367e8}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 _0x42c293{['_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 _0x58df79=this['editor'];_0x58df79['ui']['componentFactory']['add']('uploadcareImageEdit',_0x323d1c=>{const _0x41f749=_0x58df79['commands']['get']('uploadcareImageEdit'),_0x22535d=new _0x2bf53d(_0x323d1c),t=_0x323d1c['t'];return _0x22535d['set']({'icon':_0x187518,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x22535d['bind']('isEnabled')['to'](_0x41f749),_0x22535d['bind']('isOn')['to'](_0x41f749,'isActive'),this['listenTo'](_0x22535d,'execute',()=>{_0x58df79['execute']('uploadcareImageEdit'),_0x58df79['editing']['view']['focus']();}),_0x22535d;}),this['_initConfig']();}['_initConfig'](){const _0x50ea13=_0x1367e8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x50ea13),this['listenTo'](this['editor'],'destroy',()=>{_0x50ea13['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2b709d=_0x3b62;(function(_0x814692,_0x3b0e36){const _0x59236a=_0x3b62,_0x54e52c=_0x814692();while(!![]){try{const _0x3821f3=parseInt(_0x59236a(0x185))/0x1+parseInt(_0x59236a(0x184))/0x2+-parseInt(_0x59236a(0x17a))/0x3+parseInt(_0x59236a(0x183))/0x4+-parseInt(_0x59236a(0x17e))/0x5+-parseInt(_0x59236a(0x188))/0x6+parseInt(_0x59236a(0x17c))/0x7;if(_0x3821f3===_0x3b0e36)break;else _0x54e52c['push'](_0x54e52c['shift']());}catch(_0x1b78c4){_0x54e52c['push'](_0x54e52c['shift']());}}}(_0x4eb2,0x2e9f3));import{Command as _0x2a6939}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2a6939{[_0x2b709d(0x17f)](){const _0x3dd159=_0x2b709d,_0x39c215=this[_0x3dd159(0x17b)][_0x3dd159(0x182)][_0x3dd159(0x17d)][_0x3dd159(0x181)][_0x3dd159(0x18b)]();this[_0x3dd159(0x187)]=Boolean(_0x39c215&&(_0x39c215['is'](_0x3dd159(0x18e),_0x3dd159(0x18a))||_0x39c215['is'](_0x3dd159(0x18e),_0x3dd159(0x179))));}[_0x2b709d(0x18f)](_0x461fab){const _0x3035a3=_0x2b709d,_0x12784a=this[_0x3035a3(0x17b)][_0x3035a3(0x182)][_0x3035a3(0x17d)][_0x3035a3(0x181)][_0x3035a3(0x18b)]();this[_0x3035a3(0x17b)][_0x3035a3(0x182)][_0x3035a3(0x186)](_0x33d34a=>{const _0x36d656=_0x3035a3;_0x33d34a[_0x36d656(0x189)](_0x461fab,_0x12784a),_0x33d34a[_0x36d656(0x18d)](_0x36d656(0x180),_0x12784a),_0x33d34a[_0x36d656(0x18d)](_0x36d656(0x18c),_0x12784a);});}}function _0x3b62(_0x232c10,_0x1f0d9a){const _0x4eb2c0=_0x4eb2();return _0x3b62=function(_0x3b62dd,_0x3c347f){_0x3b62dd=_0x3b62dd-0x179;let _0x199b75=_0x4eb2c0[_0x3b62dd];return _0x199b75;},_0x3b62(_0x232c10,_0x1f0d9a);}function _0x4eb2(){const _0x4bac2b=['1236048xhpFht','9790cIZVAl','218242sZJZOh','change','isEnabled','294942GkKarr','setAttributes','imageBlock','getSelectedElement','sizes','removeAttribute','element','execute','imageInline','808686SIIwzN','editor','1495837dZKEsh','document','1180790sVOXoi','refresh','srcset','selection','model'];_0x4eb2=function(){return _0x4bac2b;};return _0x4eb2();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1d53ed=_0x5227;function _0x5227(_0xe0a09,_0x145303){var _0x563e54=_0x563e();return _0x5227=function(_0x5227ae,_0x32498f){_0x5227ae=_0x5227ae-0x10f;var _0x5becf0=_0x563e54[_0x5227ae];return _0x5becf0;},_0x5227(_0xe0a09,_0x145303);}(function(_0x46438a,_0x127747){var _0x54ccad=_0x5227,_0x13f1dc=_0x46438a();while(!![]){try{var _0x264c51=-parseInt(_0x54ccad(0x111))/0x1+parseInt(_0x54ccad(0x119))/0x2+-parseInt(_0x54ccad(0x11d))/0x3*(parseInt(_0x54ccad(0x114))/0x4)+parseInt(_0x54ccad(0x11e))/0x5*(-parseInt(_0x54ccad(0x117))/0x6)+-parseInt(_0x54ccad(0x11c))/0x7+-parseInt(_0x54ccad(0x11a))/0x8*(-parseInt(_0x54ccad(0x11b))/0x9)+parseInt(_0x54ccad(0x10f))/0xa*(parseInt(_0x54ccad(0x116))/0xb);if(_0x264c51===_0x127747)break;else _0x13f1dc['push'](_0x13f1dc['shift']());}catch(_0x910fb3){_0x13f1dc['push'](_0x13f1dc['shift']());}}}(_0x563e,0x39fac));import{Plugin as _0x2d670c}from'ckeditor5/src/core.js';function _0x563e(){var _0x2c6a65=['1682387ZeRSTf','183DHeCwO','5qbbLIn','224470YfOOXi','isOfficialPlugin','158573pelYBD','UploadcareImageEdit','isPremiumPlugin','11600FCTTvW','requires','275JFHSkT','1180362qCepRg','pluginName','264264NXRQgH','1266872Krvduy','18qrnGsI'];_0x563e=function(){return _0x2c6a65;};return _0x563e();}import{UploadcareImageEditEditing as _0x539359}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x4533e8}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2d670c{static get[_0x1d53ed(0x118)](){var _0x29bb68=_0x1d53ed;return _0x29bb68(0x112);}static get[_0x1d53ed(0x115)](){return[_0x539359,_0x4533e8];}static get[_0x1d53ed(0x110)](){return!0x0;}static get[_0x1d53ed(0x113)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46fcac=_0x1828;(function(_0x465d9c,_0x3bebc7){const _0xd2945f=_0x1828,_0x56f92d=_0x465d9c();while(!![]){try{const _0x2c26bc=-parseInt(_0xd2945f(0x1fa))/0x1*(parseInt(_0xd2945f(0x1c7))/0x2)+-parseInt(_0xd2945f(0x1af))/0x3+parseInt(_0xd2945f(0x1d6))/0x4+parseInt(_0xd2945f(0x1c8))/0x5*(-parseInt(_0xd2945f(0x1d1))/0x6)+parseInt(_0xd2945f(0x1da))/0x7+parseInt(_0xd2945f(0x1d8))/0x8*(-parseInt(_0xd2945f(0x1b3))/0x9)+parseInt(_0xd2945f(0x1c9))/0xa;if(_0x2c26bc===_0x3bebc7)break;else _0x56f92d['push'](_0x56f92d['shift']());}catch(_0x4563a6){_0x56f92d['push'](_0x56f92d['shift']());}}}(_0xf41f,0x8ba75));import{Plugin as _0x11ae2c}from'ckeditor5/src/core.js';import{IconDropbox as _0x29ecd1,IconFacebook as _0x29a10e,IconGoogleDrive as _0x216bfe,IconGooglePhotos as _0x414ee7,IconUploadcareImageUpload as _0x25e061,IconUploadcareLink as _0x1a6497,IconOneDrive as _0x1a23e4}from'ckeditor5/src/icons.js';import{ButtonView as _0x2325fb,MenuBarMenuListItemButtonView as _0x18c360}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x5c16ad}from'./uploadcareconfig.js';import{getTranslation as _0x33b5d9}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x1828(_0x48e989,_0x25b3fc){const _0xf41fe5=_0xf41f();return _0x1828=function(_0x182844,_0x5ceb87){_0x182844=_0x182844-0x1af;let _0xd076d5=_0xf41fe5[_0x182844];return _0xd076d5;},_0x1828(_0x48e989,_0x25b3fc);}function _0xf41f(){const _0x4f3fa5=['upload','_getIntegrationKey','URL','forEach','isOfficialPlugin','_normalizeConfigSourceList','bind','execute','GPhotos','UploadcareUI','3359ArDNCS','pluginName','Uploadcare','entries','evaluationLimit','reduce','2395617TegmGD','isEnabled','uploadcare.uploader.sourceList','_showLicenseError','117QNlLlV','url','withText','expired','domainLimit','get','uploadcareLicenseKeyInvalid','assetManager','editor','locale','uploadcareLicenseKeyUsageLimit','usageLimit','Replace','uploadcareLicenseKeyValid','label','has','tooltip','commands','text','uploadcareLicenseKeyExpired','626KpZBZM','5VwaNmd','19576800pfcBxU','destroy','ImageInsertUI','Facebook','registerIntegration','trialLimit','Dropbox','uploadcareLicenseKeyTrialLimit','3924318nCKooq','featureNotAllowed','GDrive','icon','init','3611236oZRXUn','uploadcareLicenseKeyNotAllowed','383896PcAhcT','plugins','5875254tSgjqg','push','_createMenuBarButtons','map','licenseKey','uploadcareLicenseKeyDomainLimit','shortText','type','isPremiumPlugin','_createToolbarButton','Insert','afterInit','_licenseKeyCheckInterval','invalid','_createButton','uploadcare','isImageSelected','config','OneDrive','Local','uploadcareLicenseKeyEvaluationLimit','_createDropdownButtons'];_0xf41f=function(){return _0x4f3fa5;};return _0xf41f();}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x11ae2c{[_0x46fcac(0x1de)];[_0x46fcac(0x1e6)];static get[_0x46fcac(0x1fb)](){const _0x5b2348=_0x46fcac;return _0x5b2348(0x1f9);}static get[_0x46fcac(0x1f4)](){return!0x0;}static get[_0x46fcac(0x1e2)](){return!0x0;}[_0x46fcac(0x1d5)](){const _0x19cf6b=_0x46fcac;this[_0x19cf6b(0x1de)]=this[_0x19cf6b(0x1bb)][_0x19cf6b(0x1eb)][_0x19cf6b(0x1b8)](_0x19cf6b(0x1de));const _0x4b4518=this[_0x19cf6b(0x1bb)];this[_0x19cf6b(0x1e6)]=setInterval(()=>{const _0x4c3513=_0x19cf6b;let _0x112d37;for(const _0xbf9f65 in _0x4b4518){const _0x212b04=_0xbf9f65,_0x13aa98=_0x4b4518[_0x212b04];if(_0x4c3513(0x1c0)==_0x13aa98||_0x4c3513(0x1b9)==_0x13aa98||_0x4c3513(0x1c6)==_0x13aa98||_0x4c3513(0x1df)==_0x13aa98||_0x4c3513(0x1d7)==_0x13aa98||_0x4c3513(0x1ee)==_0x13aa98||_0x4c3513(0x1d0)==_0x13aa98||_0x4c3513(0x1bd)==_0x13aa98){delete _0x4b4518[_0x212b04],_0x112d37=_0x13aa98,clearInterval(this[_0x4c3513(0x1e6)]),this[_0x4c3513(0x1e6)]=void 0x0;break;}}_0x4c3513(0x1b9)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1e7)),_0x4c3513(0x1c6)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1b6)),_0x4c3513(0x1df)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1b7)),_0x4c3513(0x1d7)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1d2),_0x4c3513(0x1fc)),_0x4c3513(0x1ee)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1fe)),_0x4c3513(0x1d0)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1ce)),_0x4c3513(0x1bd)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1be));},0x3e8);}[_0x46fcac(0x1e5)](){const _0x1bc4c7=_0x46fcac,{editor:_0x4da783}=this,_0x52ddbb=_0x4da783[_0x1bc4c7(0x1c4)][_0x1bc4c7(0x1b8)](_0x1bc4c7(0x1e9));if(!_0x52ddbb)return;const _0x4b8a6a=this[_0x1bc4c7(0x1f5)](_0x4da783[_0x1bc4c7(0x1eb)][_0x1bc4c7(0x1b8)](_0x1bc4c7(0x1b1)))[_0x1bc4c7(0x1ff)]((_0x21d67c,_0x53df37)=>{const _0x56accc=_0x1bc4c7,_0x4ac99b=this[_0x56accc(0x1f1)](_0x53df37[_0x56accc(0x1e1)]);return _0x21d67c[_0x4ac99b]||(_0x21d67c[_0x4ac99b]=[]),_0x21d67c[_0x4ac99b][_0x56accc(0x1db)](_0x53df37),_0x21d67c;},{});_0x4da783[_0x1bc4c7(0x1d9)][_0x1bc4c7(0x1c2)](_0x1bc4c7(0x1cb))&&_0x4da783[_0x1bc4c7(0x1c4)][_0x1bc4c7(0x1b8)](_0x1bc4c7(0x1e9))&&Object[_0x1bc4c7(0x1fd)](_0x4b8a6a)[_0x1bc4c7(0x1f3)](([_0x52d388,_0x37cde2])=>{const _0x52c0a9=_0x1bc4c7;_0x4da783[_0x52c0a9(0x1d9)][_0x52c0a9(0x1b8)](_0x52c0a9(0x1cb))[_0x52c0a9(0x1cd)]({'name':_0x52d388,'observable':()=>_0x52ddbb,'buttonViewCreator':()=>this[_0x52c0a9(0x1e3)](_0x37cde2),'formViewCreator':()=>this[_0x52c0a9(0x1ef)](_0x37cde2),'menuBarButtonViewCreator':()=>this[_0x52c0a9(0x1dc)](_0x37cde2),'override':_0x52c0a9(0x1ba)!==_0x52d388});});}[_0x46fcac(0x1ca)](){const _0x12faca=_0x46fcac;super[_0x12faca(0x1ca)](),this[_0x12faca(0x1e6)]&&clearInterval(this[_0x12faca(0x1e6)]);}[_0x46fcac(0x1f5)](_0x45e47e){const _0x280cc3=_0x46fcac,{locale:_0x256c5f}=this[_0x280cc3(0x1bb)];return _0x45e47e[_0x280cc3(0x1dd)](_0x516fbf=>{const _0x24e398=_0x280cc3,_0x42dcec=_0x33b5d9(_0x256c5f,_0x516fbf,_0x24e398(0x1e4));switch(_0x516fbf){case _0x5c16ad[_0x24e398(0x1ed)]:return{'icon':_0x25e061,'type':_0x5c16ad[_0x24e398(0x1ed)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1f2)]:return{'icon':_0x1a6497,'type':_0x5c16ad[_0x24e398(0x1f2)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1cf)]:return{'icon':_0x29ecd1,'type':_0x5c16ad[_0x24e398(0x1cf)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1cc)]:return{'icon':_0x29a10e,'type':_0x5c16ad[_0x24e398(0x1cc)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1d3)]:return{'icon':_0x216bfe,'type':_0x5c16ad[_0x24e398(0x1d3)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1f8)]:return{'icon':_0x414ee7,'type':_0x5c16ad[_0x24e398(0x1f8)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1ec)]:return{'icon':_0x1a23e4,'type':_0x5c16ad[_0x24e398(0x1ec)],..._0x42dcec};}});}[_0x46fcac(0x1f1)](_0xb573cf){const _0x19b1a9=_0x46fcac;switch(_0xb573cf){case _0x5c16ad[_0x19b1a9(0x1ed)]:return _0x19b1a9(0x1f0);case _0x5c16ad[_0x19b1a9(0x1f2)]:return _0x19b1a9(0x1b4);default:return _0x19b1a9(0x1ba);}}[_0x46fcac(0x1e8)](_0x5c499f,_0x5aa0a6){const _0x4dc54d=_0x46fcac,_0x1f74d=this[_0x4dc54d(0x1bb)],_0x1fe32e=new _0x5c499f(_0x1f74d[_0x4dc54d(0x1bc)]),_0x257456=_0x1f74d[_0x4dc54d(0x1c4)][_0x4dc54d(0x1b8)](_0x4dc54d(0x1e9));return _0x1fe32e[_0x4dc54d(0x1f6)](_0x4dc54d(0x1b0))['to'](_0x257456),_0x1fe32e['on'](_0x4dc54d(0x1f7),()=>{const _0x74af31=_0x4dc54d;_0x257456[_0x74af31(0x1f7)](_0x5aa0a6);}),_0x1fe32e;}[_0x46fcac(0x1e3)](_0x1bd43d){const _0x16d6a4=_0x46fcac,{locale:_0x58e974}=this[_0x16d6a4(0x1bb)],_0x365479=this[_0x16d6a4(0x1bb)][_0x16d6a4(0x1d9)][_0x16d6a4(0x1b8)](_0x16d6a4(0x1cb)),_0x5e935d=_0x1bd43d[0x0],_0x38f064=this[_0x16d6a4(0x1e8)](_0x2325fb,_0x5e935d[_0x16d6a4(0x1e1)]);return _0x38f064[_0x16d6a4(0x1d4)]=_0x5e935d[_0x16d6a4(0x1d4)],_0x38f064[_0x16d6a4(0x1f6)](_0x16d6a4(0x1c1))['to'](_0x365479,_0x16d6a4(0x1ea),_0x57ddf7=>_0x33b5d9(_0x58e974,_0x5e935d[_0x16d6a4(0x1e1)],_0x57ddf7?_0x16d6a4(0x1bf):_0x16d6a4(0x1e4))[_0x16d6a4(0x1c5)]),_0x38f064[_0x16d6a4(0x1c3)]=!0x0,_0x38f064;}[_0x46fcac(0x1ef)](_0x5c0a2a){const _0x31df17=_0x46fcac,{locale:_0x70a688}=this[_0x31df17(0x1bb)],_0x2f7026=this[_0x31df17(0x1bb)][_0x31df17(0x1d9)][_0x31df17(0x1b8)](_0x31df17(0x1cb));return _0x5c0a2a[_0x31df17(0x1dd)](_0x338469=>{const _0x3ef48f=_0x31df17,_0x1398dd=this[_0x3ef48f(0x1e8)](_0x2325fb,_0x338469[_0x3ef48f(0x1e1)]);return _0x1398dd[_0x3ef48f(0x1b5)]=!0x0,_0x1398dd[_0x3ef48f(0x1d4)]=_0x338469[_0x3ef48f(0x1d4)],_0x1398dd[_0x3ef48f(0x1f6)](_0x3ef48f(0x1c1))['to'](_0x2f7026,_0x3ef48f(0x1ea),_0x1882ff=>_0x33b5d9(_0x70a688,_0x338469[_0x3ef48f(0x1e1)],_0x1882ff?_0x3ef48f(0x1bf):_0x3ef48f(0x1e4))[_0x3ef48f(0x1c5)]),_0x1398dd;});}[_0x46fcac(0x1dc)](_0x1fffdb){const _0x17407e=_0x46fcac;return _0x1fffdb[_0x17407e(0x1dd)](_0xf5004=>{const _0x30df55=_0x17407e,_0x50ec3e=this[_0x30df55(0x1e8)](_0x18c360,_0xf5004[_0x30df55(0x1e1)]);return _0x50ec3e[_0x30df55(0x1d4)]=_0xf5004[_0x30df55(0x1d4)],_0x50ec3e[_0x30df55(0x1c1)]=_0xf5004[_0x30df55(0x1e0)],_0x50ec3e;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x438d43}from'ckeditor5/src/core.js';import{FileRepository as _0x45079a}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x45a6e5}from'./uploadcareediting.js';import{UploadUtils as _0x39b3ea}from'./utils/uploadutils.js';import{getImageUrls as _0x65a0dc}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x438d43{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x45079a,_0x45a6e5];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x8a5fd2=this['editor'];if(!!!_0x8a5fd2['config']['get']('uploadcare'))return;_0x8a5fd2['plugins']['get'](_0x45079a)['createUploadAdapter']=_0x4617f4=>new A(_0x4617f4,_0x8a5fd2),_0x8a5fd2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3c92aa,{imageElement:_0x212291,data:_0x336138})=>{_0x8a5fd2['model']['change'](_0x1f8661=>{_0x1f8661['setAttribute']('uploadcareImageId',_0x336138['uploadcareImageId'],_0x212291);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x5d4f19,_0x33fb19){this['loader']=_0x5d4f19,this['editor']=_0x33fb19,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4c8d97=this['editor']['config']['get']('uploadcare.pubkey'),_0x122573=await this['loader']['file'];return _0x39b3ea['upload']({'file':_0x122573,'publicKey':_0x4c8d97,'signal':this['controller']['signal'],'onProgress':_0x256f64=>{_0x256f64&&_0x256f64['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x256f64['value']);}})['then'](async _0x55bd8b=>{const {imageFallbackUrl:_0x492425,imageSources:_0x21b047}=_0x65a0dc(_0x55bd8b['cdnUrl'],_0x55bd8b['imageInfo']['width']);return{'uploadcareImageId':_0x55bd8b['uuid'],'default':_0x492425,'sources':_0x21b047};})['catch'](()=>{const _0x59cbbd=t('Cannot\x20upload\x20file:')+('\x20'+_0x122573['name']+'.');return Promise['reject'](_0x59cbbd);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x450d07}from'../uploadcareconfig.js';export function getTranslation(_0xe158b6,_0x484b72,_0x543122){const t=_0xe158b6['t'],_0x2b2617=_0xe158b6['t'];switch(_0x484b72){case _0x450d07['Local']:return{'text':_0x2b2617('Insert'===_0x543122?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2b2617('From\x20computer')};case _0x450d07['URL']:return{'text':'Insert'===_0x543122?_0x2b2617('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2b2617('Via\x20URL')};case _0x450d07['Dropbox']:return{'text':t('Insert'===_0x543122?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x450d07['Facebook']:return{'text':t('Insert'===_0x543122?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x450d07['GDrive']:return{'text':t('Insert'===_0x543122?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x450d07['GPhotos']:return{'text':t('Insert'===_0x543122?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x450d07['OneDrive']:return{'text':t('Insert'===_0x543122?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x484b72;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5530a7=_0x3caa;(function(_0x40672b,_0x5d05ec){var _0x5b1d91=_0x3caa,_0x419fb8=_0x40672b();while(!![]){try{var _0x2b0cd7=-parseInt(_0x5b1d91(0x16c))/0x1+parseInt(_0x5b1d91(0x163))/0x2+parseInt(_0x5b1d91(0x16e))/0x3+parseInt(_0x5b1d91(0x170))/0x4*(-parseInt(_0x5b1d91(0x172))/0x5)+parseInt(_0x5b1d91(0x166))/0x6+-parseInt(_0x5b1d91(0x16b))/0x7+-parseInt(_0x5b1d91(0x167))/0x8*(parseInt(_0x5b1d91(0x16f))/0x9);if(_0x2b0cd7===_0x5d05ec)break;else _0x419fb8['push'](_0x419fb8['shift']());}catch(_0x5112de){_0x419fb8['push'](_0x419fb8['shift']());}}}(_0xd211,0xad18a));import{FocusTracker as _0x356a20}from'ckeditor5/src/utils.js';function _0xd211(){var _0x40d9db=['3377814WcdkHI','297JqCEZl','32FxHykJ','createCollection','600790KvOVIp','focusCycler','focusTracker','2509738SIpYsV','getFocusableElement','div','4467702iNoxDx','131128kAWsnZ','fire','bindTemplate','true','963557wwIzlp','776604gCMMpZ','forwardCycle'];_0xd211=function(){return _0x40d9db;};return _0xd211();}function _0x3caa(_0x3b820f,_0x30abcd){var _0xd211b=_0xd211();return _0x3caa=function(_0x3caa90,_0x4a3a57){_0x3caa90=_0x3caa90-0x162;var _0x33962c=_0xd211b[_0x3caa90];return _0x33962c;},_0x3caa(_0x3b820f,_0x30abcd);}import{View as _0x1ab7e2,FocusCycler as _0x229efa}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1ab7e2{[_0x5530a7(0x162)];[_0x5530a7(0x173)];constructor(_0x2c0304){var _0x9cd920=_0x5530a7;super(_0x2c0304),this[_0x9cd920(0x162)]=new _0x356a20(),this[_0x9cd920(0x173)]=new _0x229efa({'focusables':this[_0x9cd920(0x171)](),'focusTracker':this[_0x9cd920(0x162)]});}[_0x5530a7(0x164)](){var _0x4a683c=_0x5530a7;return{'tag':_0x4a683c(0x165),'attributes':{'aria-hidden':_0x4a683c(0x16a),'tabindex':'0'},'on':{'focus':this[_0x4a683c(0x169)]['to'](()=>{var _0x49b57a=_0x4a683c;this[_0x49b57a(0x173)][_0x49b57a(0x168)](_0x49b57a(0x16d));})}};}}
|