@ckeditor/ckeditor5-uploadcare 47.0.0-alpha.7 → 47.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4461d4=_0x32e1;(function(_0x4844da,_0x166614){const _0x9537f8=_0x32e1,_0xd292e9=_0x4844da();while(!![]){try{const _0x4334e4=-parseInt(_0x9537f8(0xd0))/0x1*(-parseInt(_0x9537f8(0xa6))/0x2)+-parseInt(_0x9537f8(0xd9))/0x3*(-parseInt(_0x9537f8(0xc3))/0x4)+parseInt(_0x9537f8(0xbc))/0x5*(-parseInt(_0x9537f8(0xad))/0x6)+parseInt(_0x9537f8(0x9f))/0x7+parseInt(_0x9537f8(0xc6))/0x8+-parseInt(_0x9537f8(0xc2))/0x9*(-parseInt(_0x9537f8(0xc0))/0xa)+parseInt(_0x9537f8(0xc8))/0xb*(-parseInt(_0x9537f8(0xb9))/0xc);if(_0x4334e4===_0x166614)break;else _0xd292e9['push'](_0xd292e9['shift']());}catch(_0x491ee9){_0xd292e9['push'](_0xd292e9['shift']());}}}(_0x2408,0x9557b));import{Plugin as _0x4d872e}from'ckeditor5/src/core.js';import{Dialog as _0x570a5c}from'ckeditor5/src/ui.js';import{createElement as _0xe7745b,global as _0x27f4b0,uid as _0x136ca4}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2b4dcc}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x28a492}from'./uploadcareuploadadapter.js';function _0x32e1(_0xfe025e,_0xab7ebb){const _0x24081b=_0x2408();return _0x32e1=function(_0x32e122,_0x26e24e){_0x32e122=_0x32e122-0x8e;let _0x4301a4=_0x24081b[_0x32e122];return _0x4301a4;},_0x32e1(_0xfe025e,_0xab7ebb);}import{showImageProcessingIndicator as _0x20ca05}from'./utils/editingutils.js';function _0x2408(){const _0x5cada9=['imageBlock','afterInit','schema','_initConversion','removeAttribute','editing','config','_initImageProcessingIndicator','upcast','isPremiumPlugin','execute','map','appendChild','uploadcare.uploader','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploader-','fromCharCode','render','selection','7975072Bbhknu','ucContextId','getAttribute','init','pluginName','_initCtx','view','38FphufE','get','body','isOfficialPlugin','input[uploadcare-file-input]','model','elementToAttribute','6CCFXIx','uploadcare','uploadcare.pubkey','replaceImageSource','data-uc-image-id','downcast','destroy','conversion','cleanupImage','_ctxElement','_configElement','commands','379284joHGCC','remove','UploadcareEditing','2823370YJmqwZ','#uc-icon-arrow-down','imageInline','uploadcareImageId','1449670NMleLY','uploadcareImageReplace','27OYQsFO','884724LLfFqE','document','_initConfig','3864144TxmQpq','getSelectedElement','539ezMdgy','href','closeMax','true','uc-config','querySelector','once','uc-upload-ctx-provider','23512lIUfiW','configElement','editor','ctxElement','insertImage','add','requires','_initSchema','listenTo','3XtsgLg','join','contentLanguage','attributeToAttribute','isRegistered','iconHrefResolver','extend','locale','PictureEditing','for'];_0x2408=function(){return _0x5cada9;};return _0x2408();}export class UploadcareEditing extends _0x4d872e{[_0x4461d4(0xb7)]=null;[_0x4461d4(0xb6)]=null;static get[_0x4461d4(0xa3)](){const _0x286901=_0x4461d4;return _0x286901(0xbb);}static get[_0x4461d4(0xd6)](){const _0x3167df=_0x4461d4;return[_0x3167df(0xe1),_0x28a492,_0x570a5c];}static get[_0x4461d4(0xa9)](){return!0x0;}static get[_0x4461d4(0x95)](){return!0x0;}[_0x4461d4(0xa0)];get[_0x4461d4(0xd1)](){const _0x151842=_0x4461d4;return this[_0x151842(0xb7)];}get[_0x4461d4(0xd3)](){const _0x2a881f=_0x4461d4;return this[_0x2a881f(0xb6)];}constructor(_0x49958d){const _0xcaed52=_0x4461d4;super(_0x49958d),this[_0xcaed52(0xa0)]=_0x136ca4();}[_0x4461d4(0xa2)](){const _0x576a4f=_0x4461d4,_0xbdc1d6=this[_0x576a4f(0xd2)];_0xbdc1d6[_0x576a4f(0xb8)][_0x576a4f(0xd5)](_0x576a4f(0xae),new _0x2b4dcc(_0xbdc1d6));}[_0x4461d4(0xe4)](){const _0x5afcd6=_0x4461d4;this[_0x5afcd6(0xd7)](),this[_0x5afcd6(0x8f)](),this[_0x5afcd6(0xc5)](),this[_0x5afcd6(0xa4)](),this[_0x5afcd6(0x93)](),this[_0x5afcd6(0xd8)](this[_0x5afcd6(0xd2)],_0x5afcd6(0xb3),()=>{const _0x22e77a=_0x5afcd6;this[_0x22e77a(0xb7)]&&(this[_0x22e77a(0xb7)][_0x22e77a(0xba)](),this[_0x22e77a(0xb7)]=null),this[_0x22e77a(0xb6)]&&(this[_0x22e77a(0xb6)][_0x22e77a(0xba)](),this[_0x22e77a(0xb6)]=null);const _0x1c50a9=_0x27f4b0[_0x22e77a(0xc4)][_0x22e77a(0xcd)](_0x22e77a(0xaa));_0x1c50a9&&_0x1c50a9[_0x22e77a(0xba)]();}),async function(_0x3456b9){const _0x41ebc6=_0x4c9353([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x19e202=0x3d8d0df,_0x230e99=0x3dfa407^_0x19e202,_0x30580b=window[_0x4c9353([0x44,0x61,0x74,0x65])][_0x4c9353([0x6e,0x6f,0x77])](),_0x227133=_0x3456b9[_0x4c9353([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15cbe6=new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ed33c=>{_0x227133[_0x4c9353([0x6f,0x6e,0x63,0x65])](_0x4c9353([0x72,0x65,0x61,0x64,0x79]),_0x4ed33c);}),_0x1cea16={[_0x4c9353([0x6b,0x74,0x79])]:_0x4c9353([0x45,0x43]),[_0x4c9353([0x75,0x73,0x65])]:_0x4c9353([0x73,0x69,0x67]),[_0x4c9353([0x63,0x72,0x76])]:_0x4c9353([0x50,0x2d,0x32,0x35,0x36]),[_0x4c9353([0x78])]:_0x4c9353([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]),[_0x4c9353([0x79])]:_0x4c9353([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]),[_0x4c9353([0x61,0x6c,0x67])]:_0x4c9353([0x45,0x53,0x32,0x35,0x36])},_0x713bd8=_0x227133[_0x4c9353([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c9353([0x67,0x65,0x74])](_0x4c9353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x593b78(){let _0x18f2b5,_0x3f04bd=null,_0x3832e8=null;try{if(_0x713bd8==_0x4c9353([0x47,0x50,0x4c]))return _0x4c9353([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18f2b5=_0x5be9d6(),!_0x18f2b5)return _0x4c9353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18f2b5[_0x4c9353([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3832e8=_0xf6d29(_0x18f2b5[_0x4c9353([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18f2b5[_0x4c9353([0x6a,0x74,0x69])])),await _0x5a1568()?_0xaff0c0()?_0x4a0619()?_0x4c9353([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45e801()?(_0x18f2b5[_0x4c9353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c9353([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3f04bd=_0x414024(_0x4c9353([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x18f2b5[_0x4c9353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c9353([0x74,0x72,0x69,0x61,0x6c])&&(_0x3f04bd=_0x414024(_0x4c9353([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34b345()):_0x4c9353([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c9353([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c9353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c9353([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a0619(){const _0x3dcb41=[_0x4c9353([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c9353([0x74,0x72,0x69,0x61,0x6c])][_0x4c9353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18f2b5[_0x4c9353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30580b/0x3e8:0xe10*_0x230e99;return _0x18f2b5[_0x4c9353([0x65,0x78,0x70])]<_0x3dcb41;}function _0xaff0c0(){const _0x59683c=_0x18f2b5[_0x4c9353([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x59683c&&(!!_0x59683c[_0x4c9353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9353([0x2a]))||!!_0x59683c[_0x4c9353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9353([0x55,0x50,0x4c,0x43])));}function _0x45e801(){const _0x5d91c6=_0x32e1,_0x55fce7=_0x18f2b5[_0x4c9353([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x55fce7||0x0==_0x55fce7[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b372b}=new URL(window[_0x4c9353([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5d91c6(0xc9)]);if(_0x55fce7[_0x4c9353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b372b))return!0x0;const _0x528285=_0x2b372b[_0x4c9353([0x73,0x70,0x6c,0x69,0x74])](_0x4c9353([0x2e]));return _0x55fce7[_0x4c9353([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x482801=>_0x482801[_0x4c9353([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9353([0x2a])))[_0x4c9353([0x6d,0x61,0x70])](_0x4549c4=>_0x4549c4[_0x4c9353([0x73,0x70,0x6c,0x69,0x74])](_0x4c9353([0x2e])))[_0x4c9353([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10210b=>_0x10210b[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x528285[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c9353([0x6d,0x61,0x70])](_0x888d7f=>Array(_0x528285[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x888d7f[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c9353([0x66,0x69,0x6c,0x6c])](_0x888d7f[0x0]===_0x4c9353([0x2a])?_0x4c9353([0x2a]):'')[_0x4c9353([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x888d7f))[_0x4c9353([0x73,0x6f,0x6d,0x65])](_0x11821d=>_0x528285[_0x4c9353([0x65,0x76,0x65,0x72,0x79])]((_0x22e4b0,_0x48014a)=>_0x11821d[_0x48014a]===_0x22e4b0||_0x11821d[_0x48014a]===_0x4c9353([0x2a])));}function _0x34b345(){return _0x3f04bd&&_0x3832e8?new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57eb06,_0x5259eb)=>{_0x3f04bd[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x57eb06,_0x5259eb),_0x3832e8[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x34de09=>{_0x34de09!=_0x4c9353([0x56,0x61,0x6c,0x69,0x64])&&_0x57eb06(_0x34de09);},_0x5259eb);}):_0x3f04bd||_0x3832e8||_0x4c9353([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf6d29(_0x41fd54,_0x436920){return new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16031f=>{if(_0x562084())return _0x16031f(_0x4c9353([0x56,0x61,0x6c,0x69,0x64]));_0x4be951(),_0x227133[_0x4c9353([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c9353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd0cd80=!0x1;const _0x12ebb2=_0x136ca4();function _0x1dc695(_0x5a6d99){return!!_0x5a6d99&&(typeof _0x5a6d99===_0x4c9353([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a6d99===_0x4c9353([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a6d99[_0x4c9353([0x74,0x68,0x65,0x6e])]===_0x4c9353([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a6d99[_0x4c9353([0x63,0x61,0x74,0x63,0x68])]===_0x4c9353([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x315aa8(_0x2c7d16){_0x13e714(_0x2c7d16)[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x12f370=>{if(!_0x12f370||_0x12f370[_0x4c9353([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c9353([0x6f,0x6b]))return _0x4c9353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24fd14(_0x1fd0ec(_0x12ebb2+_0x436920))!=_0x12f370[_0x4c9353([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c9353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c9353([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x3570db=>(_0x2d0b37(),_0x3570db),()=>{const _0x5c6872=_0x255174();return null==_0x5c6872?(_0x2d0b37(),_0x4c9353([0x56,0x61,0x6c,0x69,0x64])):_0x4c9353(_0x30580b-_0x5c6872>(0x27d454df^_0x19e202)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x16031f)[_0x4c9353([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16031f(_0x4c9353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13e159=0x3ee3e5f^_0x19e202;function _0x2d0b37(){const _0x3ec274=_0x4c9353([0x6c,0x6c,0x63,0x74,0x2d])+_0x24fd14(_0x1fd0ec(_0x41fd54)),_0x1353ca=_0x894fc6(_0x24fd14(window[_0x4c9353([0x4d,0x61,0x74,0x68])][_0x4c9353([0x63,0x65,0x69,0x6c])](_0x30580b/_0x13e159)));window[_0x4c9353([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c9353([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ec274,_0x1353ca);}function _0x255174(){const _0x52cfb4=_0x4c9353([0x6c,0x6c,0x63,0x74,0x2d])+_0x24fd14(_0x1fd0ec(_0x41fd54)),_0x319c7b=window[_0x4c9353([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c9353([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52cfb4);return _0x319c7b?window[_0x4c9353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x894fc6(_0x319c7b),0x10)*_0x13e159:null;}function _0x13e714(_0x8297da){return new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6d1637,_0x5ca641)=>{_0x8297da[_0x4c9353([0x74,0x68,0x65,0x6e])](_0x6d1637,_0x5ca641),window[_0x4c9353([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ca641,0x3d9041f^_0x19e202);});}}_0x227133[_0x4c9353([0x6f,0x6e])](_0x4c9353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12ad59,_0x1b3310)=>{if(_0x1b3310[0x0]!=_0x41fd54)return _0x16031f(_0x4c9353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b3310[0x1]={..._0x1b3310[0x1],[_0x4c9353([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12ebb2};},{[_0x4c9353([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c9353([0x68,0x69,0x67,0x68])}),_0x227133[_0x4c9353([0x6f,0x6e])](_0x4c9353([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x190129=>{_0x1dc695(_0x190129[_0x4c9353([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd0cd80=!0x0,_0x315aa8(_0x190129[_0x4c9353([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c9353([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c9353([0x6c,0x6f,0x77])}),_0x15cbe6[_0x4c9353([0x74,0x68,0x65,0x6e])](()=>{_0xd0cd80||_0x16031f(_0x4c9353([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x562084(){return _0x227133[_0x4c9353([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c9353([0x76,0x69,0x65,0x77])][_0x4c9353([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c9353([0x61,0x75,0x74,0x6f]);}function _0x4be951(){_0x227133[_0x4c9353([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c9353([0x76,0x69,0x65,0x77])][_0x4c9353([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c9353([0x61,0x75,0x74,0x6f]);}}function _0x414024(_0x4f77ef){const _0x5b0d2f=[new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39768f=>setTimeout(_0x39768f,0x3d1ee13^_0x19e202)),_0x15cbe6[_0x4c9353([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x419140=>{let _0xa574c4=0x0;_0x227133[_0x4c9353([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9353([0x6f,0x6e])](_0x4c9353([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4393da,_0x57cc48)=>{_0x57cc48[0x0][_0x4c9353([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa574c4++,_0xa574c4==(0x3d8d127^_0x19e202)&&(_0x419140(),_0x4393da[_0x4c9353([0x6f,0x66,0x66])]());});}))];return window[_0x4c9353([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c9353([0x72,0x61,0x63,0x65])](_0x5b0d2f)[_0x4c9353([0x74,0x68,0x65,0x6e])](()=>_0x4f77ef);}async function _0x19284a(){await _0x15cbe6,_0x227133[_0x4c9353([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9353([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x249cb0,_0x227133[_0x4c9353([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c9353([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x249cb0,_0x227133[_0x4c9353([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c9353([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x577f69(_0x55a17e){const _0x36560c=_0x5101fd();_0x227133[_0x36560c]=_0x4c9353([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55a17e,_0x55a17e!=_0x4c9353([0x56,0x61,0x6c,0x69,0x64])&&_0x19284a();}function _0x5101fd(){const _0x13f54f=window[_0x4c9353([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c9353([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c9353([0x6e,0x6f,0x77])]())[_0x4c9353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c9353([0x2e]),'');let _0x53ae4e=_0x4c9353([0x52]);for(let _0x37f322=0x0;_0x37f322<_0x13f54f[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37f322+=0x2){let _0x5f1487=window[_0x4c9353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13f54f[_0x4c9353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37f322,_0x37f322+0x2));_0x5f1487>=_0x41ebc6[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f1487-=_0x41ebc6[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53ae4e+=_0x41ebc6[_0x5f1487];}return _0x53ae4e;}function _0x5be9d6(){const _0x222af3=_0x713bd8[_0x4c9353([0x73,0x70,0x6c,0x69,0x74])](_0x4c9353([0x2e]));if(0x3!=_0x222af3[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c5424(_0x222af3[0x1]);function _0x5c5424(_0xcc6717){const _0x479b09=_0x199ee5(_0xcc6717);return _0x479b09&&_0x39b82b()?_0x479b09:null;function _0x39b82b(){const _0x4a31e2=_0x479b09[_0x4c9353([0x6a,0x74,0x69])],_0x55e4e2=window[_0x4c9353([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a31e2[_0x4c9353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a31e2[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f9e9a={..._0x479b09,[_0x4c9353([0x6a,0x74,0x69])]:_0x4a31e2[_0x4c9353([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a31e2[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f9e9a[_0x4c9353([0x76,0x63])],_0x1fd0ec(_0x3f9e9a)==_0x55e4e2;}}}async function _0x5a1568(){let _0x4d671a=!0x0;try{const _0x1d995c=_0x713bd8[_0x4c9353([0x73,0x70,0x6c,0x69,0x74])](_0x4c9353([0x2e])),[_0x530c06,_0x37e7d4,_0x33f595]=_0x1d995c;return _0x17a732(_0x530c06),await _0x110e53(_0x530c06,_0x37e7d4,_0x33f595),_0x4d671a;}catch{return!0x1;}function _0x17a732(_0x4ce57e){const _0x56d933=_0x199ee5(_0x4ce57e);_0x56d933&&_0x56d933[_0x4c9353([0x61,0x6c,0x67])]==_0x4c9353([0x45,0x53,0x32,0x35,0x36])||(_0x4d671a=!0x1);}async function _0x110e53(_0x579213,_0x468076,_0x2ecfd9){const _0x1bf8ad=window[_0x4c9353([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c9353([0x66,0x72,0x6f,0x6d])](_0x391a46(_0x2ecfd9),_0x3e97fa=>_0x3e97fa[_0x4c9353([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x899f0b=new window[(_0x4c9353([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c9353([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x579213+_0x4c9353([0x2e])+_0x468076),_0x14891f=window[_0x4c9353([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c9353([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14891f)return;const _0xb52e08=await _0x14891f[_0x4c9353([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c9353([0x6a,0x77,0x6b]),_0x1cea16,{[_0x4c9353([0x6e,0x61,0x6d,0x65])]:_0x4c9353([0x45,0x43,0x44,0x53,0x41]),[_0x4c9353([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c9353([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c9353([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14891f[_0x4c9353([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c9353([0x6e,0x61,0x6d,0x65])]:_0x4c9353([0x45,0x43,0x44,0x53,0x41]),[_0x4c9353([0x68,0x61,0x73,0x68])]:{[_0x4c9353([0x6e,0x61,0x6d,0x65])]:_0x4c9353([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb52e08,_0x1bf8ad,_0x899f0b)||(_0x4d671a=!0x1);}}function _0x199ee5(_0x5f3a59){return _0x5f3a59[_0x4c9353([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c9353([0x65,0x79]))?JSON[_0x4c9353([0x70,0x61,0x72,0x73,0x65])](_0x391a46(_0x5f3a59)):null;}function _0x391a46(_0x18bac0){return window[_0x4c9353([0x61,0x74,0x6f,0x62])](_0x18bac0[_0x4c9353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c9353([0x2b]))[_0x4c9353([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c9353([0x2f])));}function _0x1fd0ec(_0x97c093){let _0x7cfdae=0x1505;function _0xdb1ca1(_0x1f3386){for(let _0x4f7abd=0x0;_0x4f7abd<_0x1f3386[_0x4c9353([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f7abd++){const _0xcc74cd=_0x1f3386[_0x4c9353([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f7abd);_0x7cfdae=(_0x7cfdae<<0x5)+_0x7cfdae+_0xcc74cd,_0x7cfdae&=_0x7cfdae;}}function _0x45225a(_0x4f35dd){Array[_0x4c9353([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f35dd)?_0x4f35dd[_0x4c9353([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45225a):_0x4f35dd&&typeof _0x4f35dd==_0x4c9353([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c9353([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f35dd)[_0x4c9353([0x73,0x6f,0x72,0x74])]()[_0x4c9353([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5f0c9b,_0x20efaa])=>{_0xdb1ca1(_0x5f0c9b),_0x45225a(_0x20efaa);}):_0xdb1ca1(window[_0x4c9353([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f35dd));}return _0x45225a(_0x97c093),_0x7cfdae>>>0x0;}function _0x24fd14(_0x3cec17){return _0x3cec17[_0x4c9353([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c9353([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c9353([0x30]));}function _0x894fc6(_0x4b9660){return _0x4b9660[_0x4c9353([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c9353([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c9353([0x6a,0x6f,0x69,0x6e])]('');}function _0x249cb0(){}function _0x4c9353(_0xb415eb){const _0x51a53b=_0x32e1;return _0xb415eb[_0x51a53b(0x97)](_0x422fa9=>String[_0x51a53b(0x9c)](_0x422fa9))[_0x51a53b(0xda)]('');}_0x577f69(await _0x593b78());}(this);}[_0x4461d4(0xd7)](){const _0xbe541e=_0x4461d4,_0x548fb2=this[_0xbe541e(0xd2)][_0xbe541e(0xab)][_0xbe541e(0x8e)];_0x548fb2[_0xbe541e(0xdd)](_0xbe541e(0xe3))&&_0x548fb2[_0xbe541e(0xdf)](_0xbe541e(0xe3),{'allowAttributes':[_0xbe541e(0xbf)]}),_0x548fb2[_0xbe541e(0xdd)](_0xbe541e(0xbe))&&_0x548fb2[_0xbe541e(0xdf)](_0xbe541e(0xbe),{'allowAttributes':[_0xbe541e(0xbf)]});}[_0x4461d4(0x8f)](){const _0x5c3612=_0x4461d4,_0x10f34d=this[_0x5c3612(0xd2)];_0x10f34d[_0x5c3612(0xb4)][_0x5c3612(0xe2)](_0x5c3612(0xb2))[_0x5c3612(0xdc)]({'model':_0x5c3612(0xbf),'view':_0x5c3612(0xb1)}),_0x10f34d[_0x5c3612(0xb4)][_0x5c3612(0xe2)](_0x5c3612(0x94))[_0x5c3612(0xac)]({'model':{'key':_0x5c3612(0xbf),'value':_0x556ee6=>_0x556ee6[_0x5c3612(0xa1)](_0x5c3612(0xb1))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x529ef9=_0x10f34d[_0x5c3612(0xb8)][_0x5c3612(0xa7)](_0x5c3612(0xb0));_0x529ef9&&this[_0x5c3612(0xd8)](_0x529ef9,_0x5c3612(0xb5),(_0x352f89,[_0x471db2,_0x8b2e2d])=>{const _0x287734=_0x5c3612;_0x471db2[_0x287734(0x90)](_0x287734(0xbf),_0x8b2e2d);});}[_0x4461d4(0xc5)](){const _0x549b63=_0x4461d4,_0x3cfba3=this[_0x549b63(0xd2)][_0x549b63(0x92)][_0x549b63(0xa7)](_0x549b63(0x99))||{},_0x4e3a42=this[_0x549b63(0xd2)][_0x549b63(0x92)][_0x549b63(0xa7)](_0x549b63(0xaf))||'';this[_0x549b63(0xb7)]=_0xe7745b(_0x27f4b0[_0x549b63(0xc4)],_0x549b63(0xcc),{..._0x3cfba3,'pubkey':_0x4e3a42,'ctx-name':_0x549b63(0x9b)+this[_0x549b63(0xa0)],'sourceList':'','imgOnly':_0x549b63(0xcb),'removeCopyright':_0x549b63(0xcb),'localeName':this[_0x549b63(0xd2)][_0x549b63(0xe0)][_0x549b63(0xdb)],'externalSourcesEmbedCss':_0x549b63(0x9a)}),this[_0x549b63(0xb7)][_0x549b63(0xde)]=_0x2eb1d8=>{const _0x5404a3=_0x549b63;if(_0x5404a3(0xca)==_0x2eb1d8)return _0x5404a3(0xbd);},_0x27f4b0[_0x549b63(0xc4)][_0x549b63(0xa8)][_0x549b63(0x98)](this[_0x549b63(0xb7)]);}[_0x4461d4(0xa4)](){const _0x5bc98f=_0x4461d4;this[_0x5bc98f(0xb6)]=_0xe7745b(_0x27f4b0[_0x5bc98f(0xc4)],_0x5bc98f(0xcf),{'ctx-name':_0x5bc98f(0x9b)+this[_0x5bc98f(0xa0)]}),_0x27f4b0[_0x5bc98f(0xc4)][_0x5bc98f(0xa8)][_0x5bc98f(0x98)](this[_0x5bc98f(0xb6)]);}[_0x4461d4(0x93)](){const _0x444f02=_0x4461d4,_0x5e919c=this[_0x444f02(0xd2)][_0x444f02(0xb8)][_0x444f02(0xa7)](_0x444f02(0xd4));_0x5e919c&&this[_0x444f02(0xd8)](_0x5e919c,_0x444f02(0x96),()=>{const _0xcd5564=_0x444f02,_0x25f79d=this[_0xcd5564(0xd2)][_0xcd5564(0xab)][_0xcd5564(0xc4)][_0xcd5564(0x9e)][_0xcd5564(0xc7)]();_0x25f79d&&_0x25f79d[_0xcd5564(0xa1)](_0xcd5564(0xbf))&&this[_0xcd5564(0xd2)][_0xcd5564(0x91)][_0xcd5564(0xa5)][_0xcd5564(0xce)](_0xcd5564(0x9d),()=>{const _0x4492ef=_0xcd5564;_0x20ca05(this[_0x4492ef(0xd2)],_0x25f79d);});});const _0x5ab52a=this[_0x444f02(0xd2)][_0x444f02(0xb8)][_0x444f02(0xa7)](_0x444f02(0xc1));_0x5ab52a&&this[_0x444f02(0xd8)](_0x5ab52a,_0x444f02(0x96),()=>{const _0x499abe=_0x444f02,_0x43c1fc=this[_0x499abe(0xd2)][_0x499abe(0xab)][_0x499abe(0xc4)][_0x499abe(0x9e)][_0x499abe(0xc7)]();_0x43c1fc&&_0x43c1fc[_0x499abe(0xa1)](_0x499abe(0xbf))&&this[_0x499abe(0xd2)][_0x499abe(0x91)][_0x499abe(0xa5)][_0x499abe(0xce)](_0x499abe(0x9d),()=>{const _0x478030=_0x499abe;_0x20ca05(this[_0x478030(0xd2)],_0x43c1fc);});});}}
|
|
23
|
+
const _0x289d00=_0x41f3;(function(_0x4a7160,_0x24141b){const _0x4f66b0=_0x41f3,_0x50ae44=_0x4a7160();while(!![]){try{const _0x453d1a=-parseInt(_0x4f66b0(0x116))/0x1*(-parseInt(_0x4f66b0(0x122))/0x2)+parseInt(_0x4f66b0(0xf9))/0x3*(parseInt(_0x4f66b0(0x11b))/0x4)+-parseInt(_0x4f66b0(0x128))/0x5+-parseInt(_0x4f66b0(0x129))/0x6*(-parseInt(_0x4f66b0(0x110))/0x7)+-parseInt(_0x4f66b0(0x12c))/0x8*(-parseInt(_0x4f66b0(0xf6))/0x9)+-parseInt(_0x4f66b0(0x130))/0xa*(parseInt(_0x4f66b0(0x145))/0xb)+-parseInt(_0x4f66b0(0x121))/0xc;if(_0x453d1a===_0x24141b)break;else _0x50ae44['push'](_0x50ae44['shift']());}catch(_0xee6b78){_0x50ae44['push'](_0x50ae44['shift']());}}}(_0x3656,0x59e0a));import{Plugin as _0x4175f3}from'ckeditor5/src/core.js';import{Dialog as _0x297fa6}from'ckeditor5/src/ui.js';import{createElement as _0x156951,global as _0x341d9a,uid as _0x3d2901}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x204db7}from'./uploadcarecommand.js';function _0x41f3(_0x3e1945,_0x395adc){const _0x3656ba=_0x3656();return _0x41f3=function(_0x41f3d9,_0x524a6e){_0x41f3d9=_0x41f3d9-0xf0;let _0x1e6369=_0x3656ba[_0x41f3d9];return _0x1e6369;},_0x41f3(_0x3e1945,_0x395adc);}import{UploadcareUploadAdapter as _0x4f6467}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2040c0}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4175f3{[_0x289d00(0x136)]=null;[_0x289d00(0x117)]=null;static get[_0x289d00(0x102)](){const _0x525e0e=_0x289d00;return _0x525e0e(0x12e);}static get[_0x289d00(0x11c)](){const _0x2733bf=_0x289d00;return[_0x2733bf(0xf1),_0x4f6467,_0x297fa6];}static get[_0x289d00(0x125)](){return!0x0;}static get[_0x289d00(0x12d)](){return!0x0;}[_0x289d00(0xf2)];get[_0x289d00(0xfb)](){const _0x30f8d5=_0x289d00;return this[_0x30f8d5(0x136)];}get[_0x289d00(0x12a)](){const _0x1b0221=_0x289d00;return this[_0x1b0221(0x117)];}constructor(_0x43e0a4){const _0x1688dd=_0x289d00;super(_0x43e0a4),this[_0x1688dd(0xf2)]=_0x3d2901();}[_0x289d00(0x111)](){const _0xd5b101=_0x289d00,_0x45e17f=this[_0xd5b101(0x10c)];_0x45e17f[_0xd5b101(0x105)][_0xd5b101(0x120)](_0xd5b101(0x138),new _0x204db7(_0x45e17f));}[_0x289d00(0x131)](){const _0xda26ea=_0x289d00;this[_0xda26ea(0x13c)](),this[_0xda26ea(0x104)](),this[_0xda26ea(0xfd)](),this[_0xda26ea(0x140)](),this[_0xda26ea(0xfc)](),this[_0xda26ea(0x13e)](this[_0xda26ea(0x10c)],_0xda26ea(0xfa),()=>{const _0x4ecb49=_0xda26ea;this[_0x4ecb49(0x136)]&&(this[_0x4ecb49(0x136)][_0x4ecb49(0xff)](),this[_0x4ecb49(0x136)]=null),this[_0x4ecb49(0x117)]&&(this[_0x4ecb49(0x117)][_0x4ecb49(0xff)](),this[_0x4ecb49(0x117)]=null);const _0x2efeba=_0x341d9a[_0x4ecb49(0x137)][_0x4ecb49(0x124)](_0x4ecb49(0xf3));_0x2efeba&&_0x2efeba[_0x4ecb49(0xff)]();}),async function(_0x2a5728){const _0x46655d=_0x571271([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xc84625=0x3d8d0df,_0x4ebd3b=0x3dfa42f^_0xc84625,_0x537cc8=window[_0x571271([0x44,0x61,0x74,0x65])][_0x571271([0x6e,0x6f,0x77])](),_0x1e010e=_0x2a5728[_0x571271([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d79b9=new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b59ca=>{_0x1e010e[_0x571271([0x6f,0x6e,0x63,0x65])](_0x571271([0x72,0x65,0x61,0x64,0x79]),_0x4b59ca);}),_0x58583e={[_0x571271([0x6b,0x74,0x79])]:_0x571271([0x45,0x43]),[_0x571271([0x75,0x73,0x65])]:_0x571271([0x73,0x69,0x67]),[_0x571271([0x63,0x72,0x76])]:_0x571271([0x50,0x2d,0x32,0x35,0x36]),[_0x571271([0x78])]:_0x571271([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]),[_0x571271([0x79])]:_0x571271([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]),[_0x571271([0x61,0x6c,0x67])]:_0x571271([0x45,0x53,0x32,0x35,0x36])},_0x7d0328=_0x1e010e[_0x571271([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x571271([0x67,0x65,0x74])](_0x571271([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39aed0(){let _0x164015,_0x5704a3=null,_0x532c91=null;try{if(_0x7d0328==_0x571271([0x47,0x50,0x4c]))return _0x571271([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x164015=_0x54f53f(),!_0x164015)return _0x571271([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x164015[_0x571271([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x532c91=_0x34526e(_0x164015[_0x571271([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x164015[_0x571271([0x6a,0x74,0x69])])),await _0x4381ff()?_0x1c53e4()?_0xe181b()?_0x571271([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x570a52()?(_0x164015[_0x571271([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x571271([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5704a3=_0x4a02a3(_0x571271([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x164015[_0x571271([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x571271([0x74,0x72,0x69,0x61,0x6c])&&(_0x5704a3=_0x4a02a3(_0x571271([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f0286()):_0x571271([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x571271([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x571271([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x571271([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe181b(){const _0x2def29=[_0x571271([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x571271([0x74,0x72,0x69,0x61,0x6c])][_0x571271([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164015[_0x571271([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x537cc8/0x3e8:0xe10*_0x4ebd3b;return _0x164015[_0x571271([0x65,0x78,0x70])]<_0x2def29;}function _0x1c53e4(){const _0x44c841=_0x164015[_0x571271([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x44c841&&(!!_0x44c841[_0x571271([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571271([0x2a]))||!!_0x44c841[_0x571271([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571271([0x55,0x50,0x4c,0x43])));}function _0x570a52(){const _0x372b08=_0x41f3,_0x3e23e3=_0x164015[_0x571271([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e23e3||0x0==_0x3e23e3[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20eb29}=new URL(window[_0x571271([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x372b08(0x126)]);if(_0x3e23e3[_0x571271([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20eb29))return!0x0;const _0x47dfc9=_0x20eb29[_0x571271([0x73,0x70,0x6c,0x69,0x74])](_0x571271([0x2e]));return _0x3e23e3[_0x571271([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49d374=>_0x49d374[_0x571271([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571271([0x2a])))[_0x571271([0x6d,0x61,0x70])](_0x27acb4=>_0x27acb4[_0x571271([0x73,0x70,0x6c,0x69,0x74])](_0x571271([0x2e])))[_0x571271([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x471251=>_0x471251[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47dfc9[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x571271([0x6d,0x61,0x70])](_0x4c48c9=>Array(_0x47dfc9[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c48c9[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x571271([0x66,0x69,0x6c,0x6c])](_0x4c48c9[0x0]===_0x571271([0x2a])?_0x571271([0x2a]):'')[_0x571271([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c48c9))[_0x571271([0x73,0x6f,0x6d,0x65])](_0x556327=>_0x47dfc9[_0x571271([0x65,0x76,0x65,0x72,0x79])]((_0x1b9a35,_0x4915dd)=>_0x556327[_0x4915dd]===_0x1b9a35||_0x556327[_0x4915dd]===_0x571271([0x2a])));}function _0x5f0286(){return _0x5704a3&&_0x532c91?new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e0115,_0x44ecb6)=>{_0x5704a3[_0x571271([0x74,0x68,0x65,0x6e])](_0x1e0115,_0x44ecb6),_0x532c91[_0x571271([0x74,0x68,0x65,0x6e])](_0x3529cc=>{_0x3529cc!=_0x571271([0x56,0x61,0x6c,0x69,0x64])&&_0x1e0115(_0x3529cc);},_0x44ecb6);}):_0x5704a3||_0x532c91||_0x571271([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34526e(_0x3fd9e0,_0x2d00c3){return new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45a335=>{if(_0x4c1849())return _0x45a335(_0x571271([0x56,0x61,0x6c,0x69,0x64]));_0x325882(),_0x1e010e[_0x571271([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x571271([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bdcb8=!0x1;const _0x5d936a=_0x3d2901();function _0x345192(_0x4e74a2){return!!_0x4e74a2&&(typeof _0x4e74a2===_0x571271([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e74a2===_0x571271([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e74a2[_0x571271([0x74,0x68,0x65,0x6e])]===_0x571271([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e74a2[_0x571271([0x63,0x61,0x74,0x63,0x68])]===_0x571271([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1038a8(_0x5c2b70){_0x208af1(_0x5c2b70)[_0x571271([0x74,0x68,0x65,0x6e])](_0x2d3578=>{if(!_0x2d3578||_0x2d3578[_0x571271([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x571271([0x6f,0x6b]))return _0x571271([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x176864(_0x441d83(_0x5d936a+_0x2d00c3))!=_0x2d3578[_0x571271([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x571271([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x571271([0x56,0x61,0x6c,0x69,0x64]);})[_0x571271([0x74,0x68,0x65,0x6e])](_0x2febd3=>(_0x507c89(),_0x2febd3),()=>{const _0x2b47b0=_0x2bc2d2();return null==_0x2b47b0?(_0x507c89(),_0x571271([0x56,0x61,0x6c,0x69,0x64])):_0x571271(_0x537cc8-_0x2b47b0>(0x27d454df^_0xc84625)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x571271([0x74,0x68,0x65,0x6e])](_0x45a335)[_0x571271([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45a335(_0x571271([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e176f=0x3ee3e5f^_0xc84625;function _0x507c89(){const _0x3170e3=_0x571271([0x6c,0x6c,0x63,0x74,0x2d])+_0x176864(_0x441d83(_0x3fd9e0)),_0xbde3df=_0x2d20d0(_0x176864(window[_0x571271([0x4d,0x61,0x74,0x68])][_0x571271([0x63,0x65,0x69,0x6c])](_0x537cc8/_0x3e176f)));window[_0x571271([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x571271([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3170e3,_0xbde3df);}function _0x2bc2d2(){const _0xc040b3=_0x571271([0x6c,0x6c,0x63,0x74,0x2d])+_0x176864(_0x441d83(_0x3fd9e0)),_0x3b3b83=window[_0x571271([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x571271([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc040b3);return _0x3b3b83?window[_0x571271([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d20d0(_0x3b3b83),0x10)*_0x3e176f:null;}function _0x208af1(_0x2a8354){return new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1310de,_0x48996b)=>{_0x2a8354[_0x571271([0x74,0x68,0x65,0x6e])](_0x1310de,_0x48996b),window[_0x571271([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48996b,0x3d9041f^_0xc84625);});}}_0x1e010e[_0x571271([0x6f,0x6e])](_0x571271([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e7fd9,_0x472f80)=>{if(_0x472f80[0x0]!=_0x3fd9e0)return _0x45a335(_0x571271([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x472f80[0x1]={..._0x472f80[0x1],[_0x571271([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d936a};},{[_0x571271([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x571271([0x68,0x69,0x67,0x68])}),_0x1e010e[_0x571271([0x6f,0x6e])](_0x571271([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x248bdc=>{_0x345192(_0x248bdc[_0x571271([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bdcb8=!0x0,_0x1038a8(_0x248bdc[_0x571271([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x571271([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x571271([0x6c,0x6f,0x77])}),_0x4d79b9[_0x571271([0x74,0x68,0x65,0x6e])](()=>{_0x4bdcb8||_0x45a335(_0x571271([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c1849(){return _0x1e010e[_0x571271([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x571271([0x76,0x69,0x65,0x77])][_0x571271([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x571271([0x61,0x75,0x74,0x6f]);}function _0x325882(){_0x1e010e[_0x571271([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x571271([0x76,0x69,0x65,0x77])][_0x571271([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x571271([0x61,0x75,0x74,0x6f]);}}function _0x4a02a3(_0x4be557){const _0x11b957=[new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x138cbd=>setTimeout(_0x138cbd,0x3d1ee13^_0xc84625)),_0x4d79b9[_0x571271([0x74,0x68,0x65,0x6e])](()=>new window[(_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x474258=>{let _0xe25b90=0x0;_0x1e010e[_0x571271([0x6d,0x6f,0x64,0x65,0x6c])][_0x571271([0x6f,0x6e])](_0x571271([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x202380,_0x5c36b3)=>{_0x5c36b3[0x0][_0x571271([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe25b90++,_0xe25b90==(0x3d8d127^_0xc84625)&&(_0x474258(),_0x202380[_0x571271([0x6f,0x66,0x66])]());});}))];return window[_0x571271([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x571271([0x72,0x61,0x63,0x65])](_0x11b957)[_0x571271([0x74,0x68,0x65,0x6e])](()=>_0x4be557);}async function _0x475b37(){await _0x4d79b9,_0x1e010e[_0x571271([0x6d,0x6f,0x64,0x65,0x6c])][_0x571271([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a7bfd,_0x1e010e[_0x571271([0x6d,0x6f,0x64,0x65,0x6c])][_0x571271([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a7bfd,_0x1e010e[_0x571271([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x571271([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x440c86(_0x1d6710){const _0x3a1105=_0x4d92a9();_0x1e010e[_0x3a1105]=_0x571271([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d6710,_0x1d6710!=_0x571271([0x56,0x61,0x6c,0x69,0x64])&&_0x475b37();}function _0x4d92a9(){const _0x56958f=window[_0x571271([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x571271([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x571271([0x6e,0x6f,0x77])]())[_0x571271([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x571271([0x2e]),'');let _0x9bcb72=_0x571271([0x52]);for(let _0x3f8674=0x0;_0x3f8674<_0x56958f[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f8674+=0x2){let _0x574867=window[_0x571271([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56958f[_0x571271([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f8674,_0x3f8674+0x2));_0x574867>=_0x46655d[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x574867-=_0x46655d[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9bcb72+=_0x46655d[_0x574867];}return _0x9bcb72;}function _0x54f53f(){const _0x16c8de=_0x7d0328[_0x571271([0x73,0x70,0x6c,0x69,0x74])](_0x571271([0x2e]));if(0x3!=_0x16c8de[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bc43f(_0x16c8de[0x1]);function _0x1bc43f(_0x2462bd){const _0x1d3477=_0x82d163(_0x2462bd);return _0x1d3477&&_0x174815()?_0x1d3477:null;function _0x174815(){const _0x49b48c=_0x1d3477[_0x571271([0x6a,0x74,0x69])],_0x25d232=window[_0x571271([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49b48c[_0x571271([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49b48c[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a10b7={..._0x1d3477,[_0x571271([0x6a,0x74,0x69])]:_0x49b48c[_0x571271([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49b48c[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a10b7[_0x571271([0x76,0x63])],_0x441d83(_0x5a10b7)==_0x25d232;}}}async function _0x4381ff(){let _0xdf8ac=!0x0;try{const _0x123322=_0x7d0328[_0x571271([0x73,0x70,0x6c,0x69,0x74])](_0x571271([0x2e])),[_0x5a043a,_0x50b3c6,_0x487488]=_0x123322;return _0x32f85d(_0x5a043a),await _0x220722(_0x5a043a,_0x50b3c6,_0x487488),_0xdf8ac;}catch{return!0x1;}function _0x32f85d(_0x35a182){const _0x386f37=_0x82d163(_0x35a182);_0x386f37&&_0x386f37[_0x571271([0x61,0x6c,0x67])]==_0x571271([0x45,0x53,0x32,0x35,0x36])||(_0xdf8ac=!0x1);}async function _0x220722(_0x3f2063,_0x5e8883,_0x59c70b){const _0x412019=window[_0x571271([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x571271([0x66,0x72,0x6f,0x6d])](_0x3ba05b(_0x59c70b),_0x24d982=>_0x24d982[_0x571271([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f5c29=new window[(_0x571271([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x571271([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f2063+_0x571271([0x2e])+_0x5e8883),_0x14704a=window[_0x571271([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x571271([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14704a)return;const _0x5e6051=await _0x14704a[_0x571271([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x571271([0x6a,0x77,0x6b]),_0x58583e,{[_0x571271([0x6e,0x61,0x6d,0x65])]:_0x571271([0x45,0x43,0x44,0x53,0x41]),[_0x571271([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x571271([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x571271([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14704a[_0x571271([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x571271([0x6e,0x61,0x6d,0x65])]:_0x571271([0x45,0x43,0x44,0x53,0x41]),[_0x571271([0x68,0x61,0x73,0x68])]:{[_0x571271([0x6e,0x61,0x6d,0x65])]:_0x571271([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e6051,_0x412019,_0x2f5c29)||(_0xdf8ac=!0x1);}}function _0x82d163(_0x392f5b){return _0x392f5b[_0x571271([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x571271([0x65,0x79]))?JSON[_0x571271([0x70,0x61,0x72,0x73,0x65])](_0x3ba05b(_0x392f5b)):null;}function _0x3ba05b(_0x488a2f){return window[_0x571271([0x61,0x74,0x6f,0x62])](_0x488a2f[_0x571271([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x571271([0x2b]))[_0x571271([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x571271([0x2f])));}function _0x441d83(_0x3a2d71){let _0x232e85=0x1505;function _0xa11cba(_0x268efa){for(let _0x175c44=0x0;_0x175c44<_0x268efa[_0x571271([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x175c44++){const _0x198054=_0x268efa[_0x571271([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x175c44);_0x232e85=(_0x232e85<<0x5)+_0x232e85+_0x198054,_0x232e85&=_0x232e85;}}function _0x294e2f(_0x198adf){Array[_0x571271([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x198adf)?_0x198adf[_0x571271([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x294e2f):_0x198adf&&typeof _0x198adf==_0x571271([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x571271([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x198adf)[_0x571271([0x73,0x6f,0x72,0x74])]()[_0x571271([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57601c,_0xa29367])=>{_0xa11cba(_0x57601c),_0x294e2f(_0xa29367);}):_0xa11cba(window[_0x571271([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x198adf));}return _0x294e2f(_0x3a2d71),_0x232e85>>>0x0;}function _0x176864(_0x11c14d){return _0x11c14d[_0x571271([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x571271([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x571271([0x30]));}function _0x2d20d0(_0x448c34){return _0x448c34[_0x571271([0x73,0x70,0x6c,0x69,0x74])]('')[_0x571271([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x571271([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a7bfd(){}function _0x571271(_0x47c740){const _0x5ef0f6=_0x41f3;return _0x47c740[_0x5ef0f6(0x119)](_0x3456cd=>String[_0x5ef0f6(0x10b)](_0x3456cd))[_0x5ef0f6(0x11d)]('');}_0x440c86(await _0x39aed0());}(this);}[_0x289d00(0x13c)](){const _0x5b2e12=_0x289d00,_0x3ddb48=this[_0x5b2e12(0x10c)][_0x5b2e12(0x10f)][_0x5b2e12(0x127)];_0x3ddb48[_0x5b2e12(0x101)](_0x5b2e12(0xf0))&&_0x3ddb48[_0x5b2e12(0x108)](_0x5b2e12(0xf0),{'allowAttributes':[_0x5b2e12(0x133)]}),_0x3ddb48[_0x5b2e12(0x101)](_0x5b2e12(0x115))&&_0x3ddb48[_0x5b2e12(0x108)](_0x5b2e12(0x115),{'allowAttributes':[_0x5b2e12(0x133)]});}[_0x289d00(0x104)](){const _0x157b08=_0x289d00,_0xf11c92=this[_0x157b08(0x10c)];_0xf11c92[_0x157b08(0x12b)][_0x157b08(0x146)](_0x157b08(0x142))[_0x157b08(0xf7)]({'model':_0x157b08(0x133),'view':_0x157b08(0x109)}),_0xf11c92[_0x157b08(0x12b)][_0x157b08(0x146)](_0x157b08(0x123))[_0x157b08(0x13f)]({'model':{'key':_0x157b08(0x133),'value':_0x12c1b1=>_0x12c1b1[_0x157b08(0x132)](_0x157b08(0x109))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x238a86=_0xf11c92[_0x157b08(0x105)][_0x157b08(0x13a)](_0x157b08(0xf5));_0x238a86&&this[_0x157b08(0x13e)](_0x238a86,_0x157b08(0x139),(_0x41bab8,[_0x15d10b,_0x5d8e79])=>{const _0x138926=_0x157b08;_0x15d10b[_0x138926(0x100)](_0x138926(0x133),_0x5d8e79);});}[_0x289d00(0xfd)](){const _0x43a008=_0x289d00,_0x2f65cc=this[_0x43a008(0x10c)][_0x43a008(0x13d)][_0x43a008(0x13a)](_0x43a008(0x134))||{},_0x19b999=this[_0x43a008(0x10c)][_0x43a008(0x13d)][_0x43a008(0x13a)](_0x43a008(0x143))||'';this[_0x43a008(0x136)]=_0x156951(_0x341d9a[_0x43a008(0x137)],_0x43a008(0x112),{..._0x2f65cc,'pubkey':_0x19b999,'ctx-name':_0x43a008(0xf4)+this[_0x43a008(0xf2)],'sourceList':'','imgOnly':_0x43a008(0x13b),'removeCopyright':_0x43a008(0x13b),'localeName':this[_0x43a008(0x10c)][_0x43a008(0x141)][_0x43a008(0x118)],'externalSourcesEmbedCss':_0x43a008(0x11a)}),this[_0x43a008(0x136)][_0x43a008(0x107)]=_0x12a094=>{const _0x782481=_0x43a008;if(_0x782481(0x10a)==_0x12a094)return _0x782481(0x10d);},_0x341d9a[_0x43a008(0x137)][_0x43a008(0x144)][_0x43a008(0x12f)](this[_0x43a008(0x136)]);}[_0x289d00(0x140)](){const _0x1165d7=_0x289d00;this[_0x1165d7(0x117)]=_0x156951(_0x341d9a[_0x1165d7(0x137)],_0x1165d7(0x135),{'ctx-name':_0x1165d7(0xf4)+this[_0x1165d7(0xf2)]}),_0x341d9a[_0x1165d7(0x137)][_0x1165d7(0x144)][_0x1165d7(0x12f)](this[_0x1165d7(0x117)]);}[_0x289d00(0xfc)](){const _0x5ee546=_0x289d00,_0x53db64=this[_0x5ee546(0x10c)][_0x5ee546(0x105)][_0x5ee546(0x13a)](_0x5ee546(0x103));_0x53db64&&this[_0x5ee546(0x13e)](_0x53db64,_0x5ee546(0x11e),()=>{const _0x3e4593=_0x5ee546,_0x59094a=this[_0x3e4593(0x10c)][_0x3e4593(0x10f)][_0x3e4593(0x137)][_0x3e4593(0x11f)][_0x3e4593(0xfe)]();_0x59094a&&_0x59094a[_0x3e4593(0x132)](_0x3e4593(0x133))&&this[_0x3e4593(0x10c)][_0x3e4593(0x113)][_0x3e4593(0x114)][_0x3e4593(0x106)](_0x3e4593(0x10e),()=>{const _0x41c3b1=_0x3e4593;_0x2040c0(this[_0x41c3b1(0x10c)],_0x59094a);});});const _0x350fa4=this[_0x5ee546(0x10c)][_0x5ee546(0x105)][_0x5ee546(0x13a)](_0x5ee546(0xf8));_0x350fa4&&this[_0x5ee546(0x13e)](_0x350fa4,_0x5ee546(0x11e),()=>{const _0x1c8b4a=_0x5ee546,_0x65a22b=this[_0x1c8b4a(0x10c)][_0x1c8b4a(0x10f)][_0x1c8b4a(0x137)][_0x1c8b4a(0x11f)][_0x1c8b4a(0xfe)]();_0x65a22b&&_0x65a22b[_0x1c8b4a(0x132)](_0x1c8b4a(0x133))&&this[_0x1c8b4a(0x10c)][_0x1c8b4a(0x113)][_0x1c8b4a(0x114)][_0x1c8b4a(0x106)](_0x1c8b4a(0x10e),()=>{const _0x1549b9=_0x1c8b4a;_0x2040c0(this[_0x1549b9(0x10c)],_0x65a22b);});});}}function _0x3656(){const _0x34b264=['PictureEditing','ucContextId','input[uploadcare-file-input]','uploader-','replaceImageSource','92403crzbdg','attributeToAttribute','uploadcareImageReplace','2186907ndJaPP','destroy','configElement','_initImageProcessingIndicator','_initConfig','getSelectedElement','remove','removeAttribute','isRegistered','pluginName','insertImage','_initConversion','commands','once','iconHrefResolver','extend','data-uc-image-id','closeMax','fromCharCode','editor','#uc-icon-arrow-down','render','model','158095pMjtSC','init','uc-config','editing','view','imageInline','127526nQeMcV','_ctxElement','contentLanguage','map','\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','4FkPHDR','requires','join','execute','selection','add','666984lsJYdQ','2Lyziye','upcast','querySelector','isOfficialPlugin','href','schema','2153675xmsoHH','48uvuEWQ','ctxElement','conversion','8GKJxtE','isPremiumPlugin','UploadcareEditing','appendChild','30XVfrgm','afterInit','getAttribute','uploadcareImageId','uploadcare.uploader','uc-upload-ctx-provider','_configElement','document','uploadcare','cleanupImage','get','true','_initSchema','config','listenTo','elementToAttribute','_initCtx','locale','downcast','uploadcare.pubkey','body','707619koczVe','for','imageBlock'];_0x3656=function(){return _0x34b264;};return _0x3656();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x31c554,ObservableMixin as _0x1ab794}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x580e07}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2af319}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1fd4de}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x38d90a}from'../../utils/uploadutils.js';import{getImageUrls as _0x15b655,getImageDimension as _0x97b18d}from'../../utils/editingutils.js';import{isAncestor as _0x40f622}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1ab794(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x357816,_0x4797f3,_0x3e3208){super(),this['_editor']=_0x357816,this['_dialog']=_0x4797f3,this['_imageElement']=_0x3e3208,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 _0x3649b2=this['_imageElement'],_0x1b2e39=_0x3649b2['getAttribute']('uploadcareImageId'),_0x2dffca=_0x3649b2['getAttribute']('src');if(_0x1b2e39)await this['_loadImageInfo'](_0x1b2e39,_0x2dffca);else{if(this['_imageCache']['has'](_0x2dffca)){const _0x18d7c5=this['_imageCache']['get'](_0x2dffca);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x18d7c5['url'],this['imageDimension']=_0x18d7c5['dimension'],this['imageId']=_0x18d7c5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4eb82e}=this['_editor'],t=_0x4eb82e['t'],_0x3670e3=new _0x1fd4de(_0x4eb82e,this['imageStatus'],this['_attributes']);_0x3670e3['bind']('status')['to'](this,'imageStatus'),_0x3670e3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3670e3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3670e3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3670e3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2af319,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3670e3,'position':_0x580e07['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3670e3['focus']();},'onHide':()=>{_0x3670e3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4263fe=>!_0x40f622(_0x4263fe,_0x3670e3['element'])}});}['_loadImageInfo'](_0x54ea93,_0x312be0){return _0x38d90a['getInfo'](_0x54ea93,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x53da18=>{const {width:_0x3ed6de,height:_0xdeb8fc}=_0x53da18['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x312be0,this['imageDimension']={'width':_0x3ed6de,'height':_0xdeb8fc},this['imageId']=_0x54ea93;})['catch'](_0x563d95=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x563d95['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x10f498,_0x1b2802){return this['_getImageAsFile'](_0x10f498)['then'](_0x38927f=>_0x38d90a['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1b2802['signal'],'file':_0x38927f,'onProgress':_0x13d9e6=>{_0x13d9e6&&_0x13d9e6['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x13d9e6['value']));}}))['then'](_0x97b6b9=>{const {width:_0x16fc38,height:_0x59fa5d}=_0x97b6b9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x97b6b9['cdnUrl'],this['imageDimension']={'width':_0x16fc38,'height':_0x59fa5d},this['imageId']=_0x97b6b9['uuid'],this['imageUploadProgress']=null;const _0x5598f3=_0x10f498['getAttribute']('src');this['_imageCache']['set'](_0x5598f3,{'id':_0x97b6b9['uuid'],'url':_0x97b6b9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x216136=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x216136['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1510c9,_0x592afb){_0x1510c9['on']('apply',(_0x4f06e5,_0x505d9e)=>{this['_replaceImage'](_0x592afb,_0x505d9e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1510c9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1510c9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x512e1a,_0x35c5f2,_0x1bdd65){const _0x1b082c=this['_editor'],{width:_0x5a1374,height:_0xdc9c5d}=_0x97b18d(_0x35c5f2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x357f24,imageSources:_0x175c8c}=_0x15b655(_0x35c5f2,_0x5a1374);_0x1b082c['model']['change'](_0xdd6d1f=>{if('$graveyard'===_0x512e1a['root']['rootName']){_0x1b082c['execute']('insertImage',{'imageType':_0x512e1a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x512e1a['getAttributes']()),'uploadcareImageId':_0x1bdd65,'src':_0x357f24,'sources':_0x175c8c,'width':_0x5a1374,'height':_0xdc9c5d}});const _0x1386c5=_0x512e1a['getChildren']();_0x512e1a=_0x1b082c['model']['document']['selection']['getSelectedElement']();for(const _0x137eb4 of _0x1386c5)_0xdd6d1f['append'](_0xdd6d1f['cloneElement'](_0x137eb4),_0x512e1a);}else _0xdd6d1f['setSelection'](_0x512e1a,'on'),_0x1b082c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x512e1a['getAttributes']()),'uploadcareImageId':_0x1bdd65,'src':_0x357f24,'sources':_0x175c8c,'width':_0x5a1374,'height':_0xdc9c5d},_0x512e1a);_0xdd6d1f['setSelection'](_0x512e1a,'on');});}async['_getImageAsFile'](_0x2f35f9){const _0x134d98=_0x31c554['window'],_0x34b4f3=_0x31c554['document']['location']['href'],_0x47d511=new _0x134d98['URL'](_0x2f35f9['getAttribute']('src'),_0x34b4f3);if('data:'===_0x47d511['protocol']){const _0xbb44c9=_0x47d511['href']['split'](','),_0x3e62b4=_0xbb44c9[0x0]['match'](/:(.*?);/)[0x1],_0xbf564d=_0x3e62b4['split']('/')[0x1],_0x13bd93=_0x134d98['atob'](_0xbb44c9[_0xbb44c9['length']-0x1]);let _0x16c530=_0x13bd93['length'];const _0x594f59=new _0x134d98['Uint8Array'](_0x16c530);for(;_0x16c530--;)_0x594f59[_0x16c530]=_0x13bd93['charCodeAt'](_0x16c530);return new _0x134d98['File']([_0x594f59],'image.'+_0xbf564d,{'type':_0x3e62b4});}const _0x159613=_0x47d511['href']['split']('/'),_0x55845c=_0x159613[_0x159613['length']-0x1],_0x28af0e=_0x55845c['split']('.')[0x1];return _0x134d98['fetch'](_0x47d511['href'])['then'](_0x475cda=>_0x475cda['clone']()['blob']())['then'](_0x239a8b=>new _0x134d98['File']([_0x239a8b],_0x55845c,{'type':'image/'+_0x28af0e}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x3533ea,_0x4cbee0){const _0x39df23=_0x380d,_0x399c8e=_0x3533ea();while(!![]){try{const _0x381b30=-parseInt(_0x39df23(0x70))/0x1*(-parseInt(_0x39df23(0x74))/0x2)+-parseInt(_0x39df23(0x7a))/0x3*(-parseInt(_0x39df23(0x6b))/0x4)+-parseInt(_0x39df23(0x69))/0x5*(parseInt(_0x39df23(0x6e))/0x6)+parseInt(_0x39df23(0x6c))/0x7+parseInt(_0x39df23(0x78))/0x8+parseInt(_0x39df23(0x76))/0x9*(-parseInt(_0x39df23(0x6a))/0xa)+-parseInt(_0x39df23(0x72))/0xb;if(_0x381b30===_0x4cbee0)break;else _0x399c8e['push'](_0x399c8e['shift']());}catch(_0x1a46d7){_0x399c8e['push'](_0x399c8e['shift']());}}}(_0x5566,0x66912));function _0x380d(_0x1a8e7c,_0x3ea859){const _0x55660c=_0x5566();return _0x380d=function(_0x380d32,_0x504b91){_0x380d32=_0x380d32-0x68;let _0x14c512=_0x55660c[_0x380d32];return _0x14c512;},_0x380d(_0x1a8e7c,_0x3ea859);}import{View as _0x1a57b4}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x1a57b4{constructor(_0x4a7688,_0x1a3a18){const _0x3c5beb=_0x380d;super(_0x4a7688);const _0x253b2b=this[_0x3c5beb(0x75)];this[_0x3c5beb(0x68)](_0x3c5beb(0x71),''),this[_0x3c5beb(0x73)]({'tag':_0x3c5beb(0x6d),'attributes':{..._0x1a3a18,'class':[_0x3c5beb(0x6f),_0x3c5beb(0x79)],'ctx-name':_0x3c5beb(0x77),'cdn-url':_0x253b2b['to'](_0x3c5beb(0x71))}});}}function _0x5566(){const _0x480ce5=['2822765qykYbl','setTemplate','24162RmdYdk','bindTemplate','58095uTlMnz','image-edit','485128epLqSc','ck-uploadcare-theme','158883kgpSnY','set','50515ScZNkH','10fgyMQT','20UEBcZG','1775228ptLuNw','uc-cloud-image-editor','96RlqhTB','uc-light','22BhtZsf','imageSrc'];_0x5566=function(){return _0x480ce5;};return _0x5566();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x42dffc}from'ckeditor5/src/icons.js';import{ButtonView as _0x3b1188,IconView as _0x4a69f1,View as _0xd82f8c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0xd82f8c{constructor(_0x742f7e){super(_0x742f7e);const t=_0x742f7e['t'];this['set']('errorType',null);const _0x226390=new _0x3b1188(_0x742f7e);_0x226390['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x226390['withText']=!0x0,_0x226390['class']='ck-button-action',_0x226390['on']('execute',()=>{this['fire']('retry');}),_0x226390['bind']('isVisible')['to'](this,'errorType',_0x1e5a30=>'NotFound'!==_0x1e5a30);const _0x592d04=new _0x4a69f1();_0x592d04['content']=_0x42dffc,_0x592d04['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe8982f=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':[_0x592d04,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe8982f['to']('errorType',_0xdfb079=>t('NotFound'!==_0xdfb079?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x226390]},{'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 _0x2d3a2c,View as _0x10194f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x10194f{constructor(_0x15140e){super(_0x15140e);const t=_0x15140e['t'],_0x2b221d=this['bindTemplate'],_0x40d47b=new _0x2d3a2c();_0x40d47b['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':[_0x40d47b,{'text':_0x2b221d['to']('imageUploadProgress',_0x427d76=>t('Loading\x20image...')+'\x20('+(_0x427d76||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ae0ca=_0x44a8;(function(_0x213e53,_0x2ed80e){const _0x3fd169=_0x44a8,_0x20bc0f=_0x213e53();while(!![]){try{const _0x151d8b=parseInt(_0x3fd169(0x14b))/0x1+-parseInt(_0x3fd169(0x146))/0x2*(parseInt(_0x3fd169(0x153))/0x3)+-parseInt(_0x3fd169(0x157))/0x4*(parseInt(_0x3fd169(0x13f))/0x5)+-parseInt(_0x3fd169(0x161))/0x6+parseInt(_0x3fd169(0x159))/0x7*(parseInt(_0x3fd169(0x137))/0x8)+parseInt(_0x3fd169(0x150))/0x9+parseInt(_0x3fd169(0x160))/0xa;if(_0x151d8b===_0x2ed80e)break;else _0x20bc0f['push'](_0x20bc0f['shift']());}catch(_0x29612d){_0x20bc0f['push'](_0x20bc0f['shift']());}}}(_0x4df0,0x9fbe2));import{View as _0x5534ea}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x262bff}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3d2932}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3e826d}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x366a4a}from'../../utils/dialogfocusmanagerview.js';function _0x44a8(_0x1b67ab,_0x1a179a){const _0x4df0df=_0x4df0();return _0x44a8=function(_0x44a899,_0x4960f1){_0x44a899=_0x44a899-0x12c;let _0x3bd81f=_0x4df0df[_0x44a899];return _0x3bd81f;},_0x44a8(_0x1b67ab,_0x1a179a);}function _0x4df0(){const _0x4af5ac=['getFocusableElement','disconnect','190278hAeEJf','addedNodes','ck-reset_all-excluded','28773yVNDdN','error','uc-cloud-image-editor','toLowerCase','16QBpGCw','_addErrorViewListeners','128891YTavYR','cancel','fire','_focusableView','observe','_editingView','change:status','20740140hgnKlV','5575830urgUXw','once','uploading','add','focus','_waitForImageEditorComponent','createCollection','ready','status','_errorView','length','_items','_loadingView','144RnbFnc','cdnUrl','_setView','apply','set','ck-uploadcare-form','target','nodeName','826870OjhHFz','element','retry','render','clear','detail','addMany','196ZJqHxP','_addUploadcareImageEditorListeners','addEventListener','filter','setTemplate','758435lnKTub','div','querySelector'];_0x4df0=function(){return _0x4af5ac;};return _0x4df0();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x366a4a{[_0x3ae0ca(0x135)];[_0x3ae0ca(0x136)];[_0x3ae0ca(0x133)];[_0x3ae0ca(0x15e)];[_0x3ae0ca(0x15c)];constructor(_0x275857,_0x47285a,_0x2008eb){const _0x24aea8=_0x3ae0ca;super(_0x275857),this[_0x24aea8(0x135)]=this[_0x24aea8(0x130)](),this[_0x24aea8(0x136)]=new _0x262bff(_0x275857),this[_0x24aea8(0x133)]=new _0x3d2932(_0x275857),this[_0x24aea8(0x15e)]=new _0x3e826d(_0x275857,_0x2008eb),this[_0x24aea8(0x15c)]=new _0x5534ea(_0x275857),this[_0x24aea8(0x15c)][_0x24aea8(0x14a)](this[_0x24aea8(0x14e)]()),this[_0x24aea8(0x13b)](_0x24aea8(0x132),_0x47285a),this[_0x24aea8(0x14a)]({'tag':_0x24aea8(0x14c),'attributes':{'class':['ck',_0x24aea8(0x152),_0x24aea8(0x13c)],'tabindex':'-1'},'children':this[_0x24aea8(0x135)]}),this[_0x24aea8(0x139)](),this[_0x24aea8(0x162)](_0x24aea8(0x142),()=>{const _0x1ba409=_0x24aea8;this[_0x1ba409(0x12f)](this[_0x1ba409(0x140)],_0x1666c0=>{const _0x3bafdb=_0x1ba409;this[_0x3bafdb(0x147)](_0x1666c0);});}),this['on'](_0x24aea8(0x15f),()=>{const _0x4d9a0c=_0x24aea8;this[_0x4d9a0c(0x139)]();}),this[_0x24aea8(0x158)]();}[_0x3ae0ca(0x12e)](){const _0x121d25=_0x3ae0ca;this[_0x121d25(0x140)][_0x121d25(0x12e)]();}[_0x3ae0ca(0x139)](){const _0x5cde6d=_0x3ae0ca;switch(this[_0x5cde6d(0x135)][_0x5cde6d(0x143)](),this[_0x5cde6d(0x132)]){case _0x5cde6d(0x12c):this[_0x5cde6d(0x135)][_0x5cde6d(0x12d)](this[_0x5cde6d(0x136)]);break;case _0x5cde6d(0x154):this[_0x5cde6d(0x135)][_0x5cde6d(0x12d)](this[_0x5cde6d(0x133)]);break;case _0x5cde6d(0x131):this[_0x5cde6d(0x135)][_0x5cde6d(0x145)]([this[_0x5cde6d(0x15e)],this[_0x5cde6d(0x15c)]]);}}[_0x3ae0ca(0x12f)](_0x12c23f,_0x374715){const _0x4c7b7b=_0x3ae0ca,_0x27fe88=_0x4c7b7b(0x155),_0x326653=_0x12c23f[_0x4c7b7b(0x14d)](_0x27fe88);if(_0x326653)return _0x374715(_0x326653);const _0x321d76=new MutationObserver(_0x1d052a=>{const _0x3d0542=_0x4c7b7b,_0x349b0f=_0x1d052a[_0x3d0542(0x149)](_0x4c6d35=>_0x4c6d35[_0x3d0542(0x13d)]===_0x12c23f&&_0x4c6d35[_0x3d0542(0x151)][_0x3d0542(0x134)]>0x0&&_0x4c6d35[_0x3d0542(0x151)][0x0][_0x3d0542(0x13e)][_0x3d0542(0x156)]()===_0x27fe88);_0x349b0f[_0x3d0542(0x134)]&&(_0x321d76[_0x3d0542(0x14f)](),_0x374715(_0x349b0f[0x0][_0x3d0542(0x151)][0x0]));});_0x321d76[_0x4c7b7b(0x15d)](_0x12c23f,{'childList':!0x0,'subtree':!0x0});}[_0x3ae0ca(0x147)](_0xfb0783){const _0xfc7264=_0x3ae0ca;_0xfb0783[_0xfc7264(0x148)](_0xfc7264(0x13a),_0x2ed569=>{const _0x2dfbd0=_0xfc7264;this[_0x2dfbd0(0x15b)](_0x2dfbd0(0x13a),{'imageSrc':_0x2ed569[_0x2dfbd0(0x144)][_0x2dfbd0(0x138)]});}),_0xfb0783[_0xfc7264(0x148)](_0xfc7264(0x15a),()=>{const _0x1daf00=_0xfc7264;this[_0x1daf00(0x15b)](_0x1daf00(0x15a));});}[_0x3ae0ca(0x158)](){const _0x4a0df5=_0x3ae0ca;this[_0x4a0df5(0x133)]['on'](_0x4a0df5(0x141),()=>{const _0x35c820=_0x4a0df5;this[_0x35c820(0x15b)](_0x35c820(0x141));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2a790c=_0x1069;(function(_0x364b73,_0xc3a00d){const _0x24c3ec=_0x1069,_0x56d7de=_0x364b73();while(!![]){try{const _0x3a15c3=-parseInt(_0x24c3ec(0x163))/0x1+parseInt(_0x24c3ec(0x162))/0x2*(parseInt(_0x24c3ec(0x155))/0x3)+parseInt(_0x24c3ec(0x15f))/0x4+-parseInt(_0x24c3ec(0x15b))/0x5+parseInt(_0x24c3ec(0x150))/0x6+-parseInt(_0x24c3ec(0x16c))/0x7*(parseInt(_0x24c3ec(0x16b))/0x8)+-parseInt(_0x24c3ec(0x15c))/0x9;if(_0x3a15c3===_0xc3a00d)break;else _0x56d7de['push'](_0x56d7de['shift']());}catch(_0x299608){_0x56d7de['push'](_0x56d7de['shift']());}}}(_0x28c4,0x7e9ef));function _0x1069(_0x33e0f1,_0x1ff283){const _0x28c402=_0x28c4();return _0x1069=function(_0x106944,_0xbfe159){_0x106944=_0x106944-0x14f;let _0x30753a=_0x28c402[_0x106944];return _0x30753a;},_0x1069(_0x33e0f1,_0x1ff283);}function _0x28c4(){const _0x1f6e33=['5597370kwXrEE','plugins','_isEditable','isEnabled','config','3kpggvk','bind','document','refresh','get','requires','4524950RoaojC','6348438pqXHeJ','imageInline','model','3015908ioKgbV','imageBlock','selection','2003970FVZmZp','227874lFOTpN','unbind','element','execute','uploadcare.allowExternalImagesEditing','imageEditController','set','isActive','16NXtCXa','1161902GDOJjH','getSelectedElement','editor'];_0x28c4=function(){return _0x1f6e33;};return _0x28c4();}import{Command as _0x38c1c9}from'ckeditor5/src/core.js';import{Dialog as _0x4bba42}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1a3608}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x7a7415}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x38c1c9{[_0x2a790c(0x168)];static get[_0x2a790c(0x15a)](){return[_0x4bba42];}[_0x2a790c(0x152)];constructor(_0x2ec827){const _0xe53d1c=_0x2a790c;super(_0x2ec827),this[_0xe53d1c(0x168)]=void 0x0,this[_0xe53d1c(0x152)]=_0x7a7415(_0x2ec827[_0xe53d1c(0x154)][_0xe53d1c(0x159)](_0xe53d1c(0x167))||[]),this[_0xe53d1c(0x169)]({'isActive':!0x1});}[_0x2a790c(0x158)](){const _0x2726b2=_0x2a790c,_0x5d84b6=this[_0x2726b2(0x14f)][_0x2726b2(0x15e)][_0x2726b2(0x157)][_0x2726b2(0x161)][_0x2726b2(0x16d)]();this[_0x2726b2(0x153)]=this[_0x2726b2(0x152)](_0x5d84b6);}[_0x2a790c(0x166)](){const _0x428baa=_0x2a790c;this[_0x428baa(0x168)]&&(this[_0x428baa(0x164)](_0x428baa(0x16a)),this[_0x428baa(0x168)]=void 0x0);const _0x212527=this[_0x428baa(0x14f)][_0x428baa(0x15e)][_0x428baa(0x157)][_0x428baa(0x161)][_0x428baa(0x16d)]();_0x212527&&(_0x212527['is'](_0x428baa(0x165),_0x428baa(0x160))||_0x212527['is'](_0x428baa(0x165),_0x428baa(0x15d)))&&(this[_0x428baa(0x168)]=new _0x1a3608(this[_0x428baa(0x14f)],this[_0x428baa(0x14f)][_0x428baa(0x151)][_0x428baa(0x159)](_0x4bba42),_0x212527),this[_0x428baa(0x156)](_0x428baa(0x16a))['to'](this[_0x428baa(0x168)],_0x428baa(0x16a)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x57fabd=_0x271a;(function(_0xfb02e2,_0x5a971a){const _0x5ab30b=_0x271a,_0xb416c6=_0xfb02e2();while(!![]){try{const _0x4d62aa=-parseInt(_0x5ab30b(0x87))/0x1+parseInt(_0x5ab30b(0x75))/0x2*(parseInt(_0x5ab30b(0x78))/0x3)+parseInt(_0x5ab30b(0x77))/0x4*(-parseInt(_0x5ab30b(0x7c))/0x5)+-parseInt(_0x5ab30b(0x84))/0x6+-parseInt(_0x5ab30b(0x85))/0x7*(parseInt(_0x5ab30b(0x89))/0x8)+-parseInt(_0x5ab30b(0x7d))/0x9+parseInt(_0x5ab30b(0x80))/0xa;if(_0x4d62aa===_0x5a971a)break;else _0xb416c6['push'](_0xb416c6['shift']());}catch(_0x1c2d45){_0xb416c6['push'](_0xb416c6['shift']());}}}(_0x4765,0xe21b7));import{Plugin as _0x4bf867}from'ckeditor5/src/core.js';function _0x271a(_0x3d68e8,_0x509941){const _0x4765f7=_0x4765();return _0x271a=function(_0x271afe,_0x853f8a){_0x271afe=_0x271afe-0x74;let _0x3abcdf=_0x4765f7[_0x271afe];return _0x3abcdf;},_0x271a(_0x3d68e8,_0x509941);}import{Notification as _0x27a5b2}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x2e4636}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x4fad84}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x13e31d}from'../uploadcareediting.js';function _0x4765(){const _0x598de3=['12NgiPYp','isOfficialPlugin','429224WIFYjG','877794zNJPKg','ImageEditing','isPremiumPlugin','uploadcareImageEdit','25lvvHmq','15574707ucXRFv','requires','UploadcareImageEditEditing','49585420Ylquxr','ImageUtils','uploadcareImageReplace','init','10613814jvmqIr','7mCTfuo','commands','1309632ydAPYy','add','3538728tGGPMy','pluginName'];_0x4765=function(){return _0x598de3;};return _0x4765();}export class UploadcareImageEditEditing extends _0x4bf867{static get[_0x57fabd(0x74)](){const _0x1cc718=_0x57fabd;return _0x1cc718(0x7f);}static get[_0x57fabd(0x7e)](){const _0x675e0=_0x57fabd;return[_0x13e31d,_0x27a5b2,_0x675e0(0x81),_0x675e0(0x79)];}static get[_0x57fabd(0x76)](){return!0x0;}static get[_0x57fabd(0x7a)](){return!0x0;}[_0x57fabd(0x83)](){const _0x9785f7=_0x57fabd,{editor:_0x44de0d}=this;_0x44de0d[_0x9785f7(0x86)][_0x9785f7(0x88)](_0x9785f7(0x7b),new _0x2e4636(_0x44de0d)),_0x44de0d[_0x9785f7(0x86)][_0x9785f7(0x88)](_0x9785f7(0x82),new _0x4fad84(_0x44de0d));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xf446ad}from'ckeditor5/src/core.js';import{ButtonView as _0x6e4c63}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4a82fc}from'ckeditor5/src/icons.js';import{createElement as _0x3d96d7}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 _0xf446ad{['_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 _0x269771=this['editor'];_0x269771['ui']['componentFactory']['add']('uploadcareImageEdit',_0x428347=>{const _0x309dbb=_0x269771['commands']['get']('uploadcareImageEdit'),_0xe4961d=new _0x6e4c63(_0x428347),t=_0x428347['t'];return _0xe4961d['set']({'icon':_0x4a82fc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xe4961d['bind']('isEnabled')['to'](_0x309dbb),_0xe4961d['bind']('isOn')['to'](_0x309dbb,'isActive'),this['listenTo'](_0xe4961d,'execute',()=>{_0x269771['execute']('uploadcareImageEdit'),_0x269771['editing']['view']['focus']();}),_0xe4961d;}),this['_initConfig']();}['_initConfig'](){const _0x274674=_0x3d96d7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x274674),this['listenTo'](this['editor'],'destroy',()=>{_0x274674['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5b9c(_0x1b64e1,_0x432e54){const _0x91021e=_0x9102();return _0x5b9c=function(_0x5b9c52,_0x2eefe3){_0x5b9c52=_0x5b9c52-0x159;let _0x34c317=_0x91021e[_0x5b9c52];return _0x34c317;},_0x5b9c(_0x1b64e1,_0x432e54);}function _0x9102(){const _0x402537=['5439kRFOLF','1uMOnDu','change','208628HTOZcg','removeAttribute','element','refresh','selection','485054zCkgjC','660336nFmAgV','setAttributes','784150zqJxUl','2380XtFubi','execute','46925BhzwNv','document','imageInline','44cOlytl','498wLVGQk','52UHEFDh','599580sLTAzD','model','getSelectedElement','sizes','srcset','8uGVsKG','editor','isEnabled','imageBlock'];_0x9102=function(){return _0x402537;};return _0x9102();}const _0x4739ec=_0x5b9c;(function(_0x64e2bf,_0x1f7418){const _0x52707a=_0x5b9c,_0x2626f5=_0x64e2bf();while(!![]){try{const _0x353d4e=-parseInt(_0x52707a(0x16b))/0x1*(-parseInt(_0x52707a(0x172))/0x2)+parseInt(_0x52707a(0x16a))/0x3*(-parseInt(_0x52707a(0x159))/0x4)+-parseInt(_0x52707a(0x15b))/0x5*(-parseInt(_0x52707a(0x15f))/0x6)+-parseInt(_0x52707a(0x16d))/0x7*(-parseInt(_0x52707a(0x166))/0x8)+parseInt(_0x52707a(0x161))/0x9+parseInt(_0x52707a(0x175))/0xa*(parseInt(_0x52707a(0x15e))/0xb)+-parseInt(_0x52707a(0x173))/0xc*(-parseInt(_0x52707a(0x160))/0xd);if(_0x353d4e===_0x1f7418)break;else _0x2626f5['push'](_0x2626f5['shift']());}catch(_0x336560){_0x2626f5['push'](_0x2626f5['shift']());}}}(_0x9102,0x8be0f));import{Command as _0x7f52e9}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x7f52e9{[_0x4739ec(0x170)](){const _0x1e07db=_0x4739ec,_0x2e53e2=this[_0x1e07db(0x167)][_0x1e07db(0x162)][_0x1e07db(0x15c)][_0x1e07db(0x171)][_0x1e07db(0x163)]();this[_0x1e07db(0x168)]=Boolean(_0x2e53e2&&(_0x2e53e2['is'](_0x1e07db(0x16f),_0x1e07db(0x169))||_0x2e53e2['is'](_0x1e07db(0x16f),_0x1e07db(0x15d))));}[_0x4739ec(0x15a)](_0x3a09f7){const _0x5f50fc=_0x4739ec,_0x4aef16=this[_0x5f50fc(0x167)][_0x5f50fc(0x162)][_0x5f50fc(0x15c)][_0x5f50fc(0x171)][_0x5f50fc(0x163)]();this[_0x5f50fc(0x167)][_0x5f50fc(0x162)][_0x5f50fc(0x16c)](_0x1a3175=>{const _0x2548f3=_0x5f50fc;_0x1a3175[_0x2548f3(0x174)](_0x3a09f7,_0x4aef16),_0x1a3175[_0x2548f3(0x16e)](_0x2548f3(0x165),_0x4aef16),_0x1a3175[_0x2548f3(0x16e)](_0x2548f3(0x164),_0x4aef16);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4983d4=_0x3dd8;(function(_0x187649,_0x536de3){var _0x3878d7=_0x3dd8,_0x588d43=_0x187649();while(!![]){try{var _0x56fb4b=-parseInt(_0x3878d7(0xe0))/0x1+-parseInt(_0x3878d7(0xea))/0x2+-parseInt(_0x3878d7(0xe9))/0x3*(parseInt(_0x3878d7(0xe3))/0x4)+parseInt(_0x3878d7(0xec))/0x5+parseInt(_0x3878d7(0xe2))/0x6*(parseInt(_0x3878d7(0xed))/0x7)+-parseInt(_0x3878d7(0xe1))/0x8+-parseInt(_0x3878d7(0xe5))/0x9*(-parseInt(_0x3878d7(0xe7))/0xa);if(_0x56fb4b===_0x536de3)break;else _0x588d43['push'](_0x588d43['shift']());}catch(_0x471b06){_0x588d43['push'](_0x588d43['shift']());}}}(_0x8d92,0x1c006));function _0x3dd8(_0x29d322,_0x3eabfc){var _0x8d92f=_0x8d92();return _0x3dd8=function(_0x3dd81c,_0xb01b52){_0x3dd81c=_0x3dd81c-0xe0;var _0x10ca7b=_0x8d92f[_0x3dd81c];return _0x10ca7b;},_0x3dd8(_0x29d322,_0x3eabfc);}import{Plugin as _0x469ca6}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x1b320b}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5eac7b}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x8d92(){var _0x43a924=['1765737BUfWmB','isOfficialPlugin','10pNkjxK','pluginName','110010WoDPpp','166146DciGSt','UploadcareImageEdit','657995GqssQr','7VThkGp','requires','123394JmsvHw','445536TeRYmH','954426yXVYwW','12uUDcIV','isPremiumPlugin'];_0x8d92=function(){return _0x43a924;};return _0x8d92();}export class UploadcareImageEdit extends _0x469ca6{static get[_0x4983d4(0xe8)](){var _0x1a1d83=_0x4983d4;return _0x1a1d83(0xeb);}static get[_0x4983d4(0xee)](){return[_0x1b320b,_0x5eac7b];}static get[_0x4983d4(0xe6)](){return!0x0;}static get[_0x4983d4(0xe4)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40c24a=_0x592b;(function(_0x2dd7a2,_0x4c7e18){const _0x3de14c=_0x592b,_0x53ac42=_0x2dd7a2();while(!![]){try{const _0xcec7be=parseInt(_0x3de14c(0x14f))/0x1+parseInt(_0x3de14c(0x110))/0x2*(-parseInt(_0x3de14c(0x122))/0x3)+parseInt(_0x3de14c(0x145))/0x4*(parseInt(_0x3de14c(0x123))/0x5)+-parseInt(_0x3de14c(0x151))/0x6+-parseInt(_0x3de14c(0x137))/0x7*(parseInt(_0x3de14c(0x132))/0x8)+-parseInt(_0x3de14c(0x10e))/0x9+parseInt(_0x3de14c(0x13e))/0xa;if(_0xcec7be===_0x4c7e18)break;else _0x53ac42['push'](_0x53ac42['shift']());}catch(_0x476879){_0x53ac42['push'](_0x53ac42['shift']());}}}(_0x3e35,0x2e84c));import{Plugin as _0x2ad4aa}from'ckeditor5/src/core.js';import{IconDropbox as _0x59d5dc,IconFacebook as _0x572751,IconGoogleDrive as _0x3ef324,IconGooglePhotos as _0x1c9203,IconUploadcareImageUpload as _0x1ed8b1,IconUploadcareLink as _0x3c969b,IconOneDrive as _0x1b4499}from'ckeditor5/src/icons.js';import{ButtonView as _0xa499aa,MenuBarMenuListItemButtonView as _0x54d8a4}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x51a862}from'./uploadcareconfig.js';import{getTranslation as _0x2557b4}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x3e35(){const _0x20b2e2=['5RafAQP','tooltip','isPremiumPlugin','afterInit','licenseKey','_licenseKeyCheckInterval','Replace','pluginName','featureNotAllowed','Dropbox','trialLimit','Facebook','uploadcare.uploader.sourceList','reduce','isOfficialPlugin','38520UjZOIF','invalid','_normalizeConfigSourceList','GDrive','_createButton','189oIRJNu','registerIntegration','uploadcareLicenseKeyExpired','ImageInsertUI','_showLicenseError','icon','push','5202750RYSoKU','_createMenuBarButtons','has','uploadcare','config','locale','map','321676ywulSl','isEnabled','uploadcareLicenseKeyUsageLimit','entries','editor','get','_createDropdownButtons','label','Insert','type','236824uWWlLk','uploadcareLicenseKeyNotAllowed','2208708dqQJaL','isImageSelected','commands','_createToolbarButton','shortText','uploadcareLicenseKeyTrialLimit','withText','upload','forEach','url','usageLimit','init','OneDrive','evaluationLimit','263124dzBplI','assetManager','79746PWwAKU','text','GPhotos','uploadcareLicenseKeyInvalid','_getIntegrationKey','uploadcareLicenseKeyDomainLimit','destroy','domainLimit','uploadcareLicenseKeyEvaluationLimit','Uploadcare','expired','bind','uploadcareLicenseKeyValid','URL','execute','UploadcareUI','Local','plugins','9ZWGHqz'];_0x3e35=function(){return _0x20b2e2;};return _0x3e35();}import'../theme/uploadcareimageedit.css';function _0x592b(_0x3bfcf3,_0x16c02d){const _0x3e35c7=_0x3e35();return _0x592b=function(_0x592bb2,_0x1cae83){_0x592bb2=_0x592bb2-0x104;let _0x3bfb0a=_0x3e35c7[_0x592bb2];return _0x3bfb0a;},_0x592b(_0x3bfcf3,_0x16c02d);}export class UploadcareUI extends _0x2ad4aa{[_0x40c24a(0x127)];[_0x40c24a(0x128)];static get[_0x40c24a(0x12a)](){const _0x14047b=_0x40c24a;return _0x14047b(0x11f);}static get[_0x40c24a(0x131)](){return!0x0;}static get[_0x40c24a(0x125)](){return!0x0;}[_0x40c24a(0x10b)](){const _0x4dc3b3=_0x40c24a;this[_0x4dc3b3(0x127)]=this[_0x4dc3b3(0x149)][_0x4dc3b3(0x142)][_0x4dc3b3(0x14a)](_0x4dc3b3(0x127));const _0x8b24ad=this[_0x4dc3b3(0x149)];this[_0x4dc3b3(0x128)]=setInterval(()=>{const _0xd793fe=_0x4dc3b3;let _0x2381eb;for(const _0x366519 in _0x8b24ad){const _0x5a72d5=_0x366519,_0xa59ef6=_0x8b24ad[_0x5a72d5];if(_0xd793fe(0x11c)==_0xa59ef6||_0xd793fe(0x113)==_0xa59ef6||_0xd793fe(0x139)==_0xa59ef6||_0xd793fe(0x115)==_0xa59ef6||_0xd793fe(0x150)==_0xa59ef6||_0xd793fe(0x118)==_0xa59ef6||_0xd793fe(0x105)==_0xa59ef6||_0xd793fe(0x147)==_0xa59ef6){delete _0x8b24ad[_0x5a72d5],_0x2381eb=_0xa59ef6,clearInterval(this[_0xd793fe(0x128)]),this[_0xd793fe(0x128)]=void 0x0;break;}}_0xd793fe(0x113)==_0x2381eb&&_0x8b24ad[_0xd793fe(0x13b)](_0xd793fe(0x133)),_0xd793fe(0x139)==_0x2381eb&&_0x8b24ad[_0xd793fe(0x13b)](_0xd793fe(0x11a)),_0xd793fe(0x115)==_0x2381eb&&_0x8b24ad[_0xd793fe(0x13b)](_0xd793fe(0x117)),_0xd793fe(0x150)==_0x2381eb&&_0x8b24ad[_0xd793fe(0x13b)](_0xd793fe(0x12b),_0xd793fe(0x119)),_0xd793fe(0x118)==_0x2381eb&&_0x8b24ad[_0xd793fe(0x13b)](_0xd793fe(0x10d)),_0xd793fe(0x105)==_0x2381eb&&_0x8b24ad[_0xd793fe(0x13b)](_0xd793fe(0x12d)),_0xd793fe(0x147)==_0x2381eb&&_0x8b24ad[_0xd793fe(0x13b)](_0xd793fe(0x10a));},0x3e8);}[_0x40c24a(0x126)](){const _0x34b126=_0x40c24a,{editor:_0x3df7ed}=this,_0xdf80c1=_0x3df7ed[_0x34b126(0x153)][_0x34b126(0x14a)](_0x34b126(0x141));if(!_0xdf80c1)return;const _0x3af9bd=this[_0x34b126(0x134)](_0x3df7ed[_0x34b126(0x142)][_0x34b126(0x14a)](_0x34b126(0x12f)))[_0x34b126(0x130)]((_0x227adb,_0x1e2627)=>{const _0xe87f70=_0x34b126,_0x43739f=this[_0xe87f70(0x114)](_0x1e2627[_0xe87f70(0x14e)]);return _0x227adb[_0x43739f]||(_0x227adb[_0x43739f]=[]),_0x227adb[_0x43739f][_0xe87f70(0x13d)](_0x1e2627),_0x227adb;},{});_0x3df7ed[_0x34b126(0x121)][_0x34b126(0x140)](_0x34b126(0x13a))&&_0x3df7ed[_0x34b126(0x153)][_0x34b126(0x14a)](_0x34b126(0x141))&&Object[_0x34b126(0x148)](_0x3af9bd)[_0x34b126(0x108)](([_0x33f289,_0x5b5a52])=>{const _0x80b4f1=_0x34b126;_0x3df7ed[_0x80b4f1(0x121)][_0x80b4f1(0x14a)](_0x80b4f1(0x13a))[_0x80b4f1(0x138)]({'name':_0x33f289,'observable':()=>_0xdf80c1,'buttonViewCreator':()=>this[_0x80b4f1(0x154)](_0x5b5a52),'formViewCreator':()=>this[_0x80b4f1(0x14b)](_0x5b5a52),'menuBarButtonViewCreator':()=>this[_0x80b4f1(0x13f)](_0x5b5a52),'override':_0x80b4f1(0x10f)!==_0x33f289});});}[_0x40c24a(0x116)](){const _0x548f76=_0x40c24a;super[_0x548f76(0x116)](),this[_0x548f76(0x128)]&&clearInterval(this[_0x548f76(0x128)]);}[_0x40c24a(0x134)](_0x3a81ac){const _0x3a3783=_0x40c24a,{locale:_0x3d518f}=this[_0x3a3783(0x149)];return _0x3a81ac[_0x3a3783(0x144)](_0x4013b5=>{const _0x1c4df8=_0x3a3783,_0x18bddf=_0x2557b4(_0x3d518f,_0x4013b5,_0x1c4df8(0x14d));switch(_0x4013b5){case _0x51a862[_0x1c4df8(0x120)]:return{'icon':_0x1ed8b1,'type':_0x51a862[_0x1c4df8(0x120)],..._0x18bddf};case _0x51a862[_0x1c4df8(0x11d)]:return{'icon':_0x3c969b,'type':_0x51a862[_0x1c4df8(0x11d)],..._0x18bddf};case _0x51a862[_0x1c4df8(0x12c)]:return{'icon':_0x59d5dc,'type':_0x51a862[_0x1c4df8(0x12c)],..._0x18bddf};case _0x51a862[_0x1c4df8(0x12e)]:return{'icon':_0x572751,'type':_0x51a862[_0x1c4df8(0x12e)],..._0x18bddf};case _0x51a862[_0x1c4df8(0x135)]:return{'icon':_0x3ef324,'type':_0x51a862[_0x1c4df8(0x135)],..._0x18bddf};case _0x51a862[_0x1c4df8(0x112)]:return{'icon':_0x1c9203,'type':_0x51a862[_0x1c4df8(0x112)],..._0x18bddf};case _0x51a862[_0x1c4df8(0x10c)]:return{'icon':_0x1b4499,'type':_0x51a862[_0x1c4df8(0x10c)],..._0x18bddf};}});}[_0x40c24a(0x114)](_0x353bf8){const _0x571cd4=_0x40c24a;switch(_0x353bf8){case _0x51a862[_0x571cd4(0x120)]:return _0x571cd4(0x107);case _0x51a862[_0x571cd4(0x11d)]:return _0x571cd4(0x109);default:return _0x571cd4(0x10f);}}[_0x40c24a(0x136)](_0x1d6c30,_0x2320b3){const _0x453828=_0x40c24a,_0x15e526=this[_0x453828(0x149)],_0x21a4e5=new _0x1d6c30(_0x15e526[_0x453828(0x143)]),_0x4a9ae2=_0x15e526[_0x453828(0x153)][_0x453828(0x14a)](_0x453828(0x141));return _0x21a4e5[_0x453828(0x11b)](_0x453828(0x146))['to'](_0x4a9ae2),_0x21a4e5['on'](_0x453828(0x11e),()=>{const _0x49b41f=_0x453828;_0x4a9ae2[_0x49b41f(0x11e)](_0x2320b3);}),_0x21a4e5;}[_0x40c24a(0x154)](_0x137a4c){const _0x27e54d=_0x40c24a,{locale:_0x225763}=this[_0x27e54d(0x149)],_0x142db3=this[_0x27e54d(0x149)][_0x27e54d(0x121)][_0x27e54d(0x14a)](_0x27e54d(0x13a)),_0x4f965a=_0x137a4c[0x0],_0x327fe6=this[_0x27e54d(0x136)](_0xa499aa,_0x4f965a[_0x27e54d(0x14e)]);return _0x327fe6[_0x27e54d(0x13c)]=_0x4f965a[_0x27e54d(0x13c)],_0x327fe6[_0x27e54d(0x11b)](_0x27e54d(0x14c))['to'](_0x142db3,_0x27e54d(0x152),_0x5a3464=>_0x2557b4(_0x225763,_0x4f965a[_0x27e54d(0x14e)],_0x5a3464?_0x27e54d(0x129):_0x27e54d(0x14d))[_0x27e54d(0x111)]),_0x327fe6[_0x27e54d(0x124)]=!0x0,_0x327fe6;}[_0x40c24a(0x14b)](_0x18a22a){const _0x51c822=_0x40c24a,{locale:_0x4de079}=this[_0x51c822(0x149)],_0xe98e85=this[_0x51c822(0x149)][_0x51c822(0x121)][_0x51c822(0x14a)](_0x51c822(0x13a));return _0x18a22a[_0x51c822(0x144)](_0x203b01=>{const _0x4ff110=_0x51c822,_0xd24ea0=this[_0x4ff110(0x136)](_0xa499aa,_0x203b01[_0x4ff110(0x14e)]);return _0xd24ea0[_0x4ff110(0x106)]=!0x0,_0xd24ea0[_0x4ff110(0x13c)]=_0x203b01[_0x4ff110(0x13c)],_0xd24ea0[_0x4ff110(0x11b)](_0x4ff110(0x14c))['to'](_0xe98e85,_0x4ff110(0x152),_0x4118b8=>_0x2557b4(_0x4de079,_0x203b01[_0x4ff110(0x14e)],_0x4118b8?_0x4ff110(0x129):_0x4ff110(0x14d))[_0x4ff110(0x111)]),_0xd24ea0;});}[_0x40c24a(0x13f)](_0x3b7553){const _0x3713c1=_0x40c24a;return _0x3b7553[_0x3713c1(0x144)](_0x4bfa33=>{const _0x1bac05=_0x3713c1,_0x45d4c3=this[_0x1bac05(0x136)](_0x54d8a4,_0x4bfa33[_0x1bac05(0x14e)]);return _0x45d4c3[_0x1bac05(0x13c)]=_0x4bfa33[_0x1bac05(0x13c)],_0x45d4c3[_0x1bac05(0x14c)]=_0x4bfa33[_0x1bac05(0x104)],_0x45d4c3;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x9a6575}from'ckeditor5/src/core.js';import{FileRepository as _0x17a203}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x4df17b}from'./uploadcareediting.js';import{UploadUtils as _0x54ca4e}from'./utils/uploadutils.js';import{getImageUrls as _0x370d9e}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x9a6575{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x17a203,_0x4df17b];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3de604=this['editor'];if(!!!_0x3de604['config']['get']('uploadcare'))return;_0x3de604['plugins']['get'](_0x17a203)['createUploadAdapter']=_0x36e393=>new k(_0x36e393,_0x3de604),_0x3de604['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xc4ae49,{imageElement:_0x1361e8,data:_0x3a9043})=>{_0x3de604['model']['change'](_0x50c3dd=>{_0x50c3dd['setAttribute']('uploadcareImageId',_0x3a9043['uploadcareImageId'],_0x1361e8);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x910ac5,_0x1e8a2d){this['loader']=_0x910ac5,this['editor']=_0x1e8a2d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x190a0f=await this['loader']['file'];return _0x54ca4e['upload']({'file':_0x190a0f,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x44c373=>{_0x44c373&&_0x44c373['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x44c373['value']);}})['then'](async _0x38d7da=>{const {imageFallbackUrl:_0x560c8d,imageSources:_0x2eeea1}=_0x370d9e(_0x38d7da['cdnUrl'],_0x38d7da['imageInfo']['width']);return{'uploadcareImageId':_0x38d7da['uuid'],'default':_0x560c8d,'sources':_0x2eeea1};})['catch'](()=>{const _0xbea1f4=t('Cannot\x20upload\x20file:')+('\x20'+_0x190a0f['name']+'.');return Promise['reject'](_0xbea1f4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x375951}from'../uploadcareconfig.js';export function getTranslation(_0x5bac28,_0x156d53,_0x2f2a34){const t=_0x5bac28['t'],_0x4832e9=_0x5bac28['t'];switch(_0x156d53){case _0x375951['Local']:return{'text':_0x4832e9('Insert'===_0x2f2a34?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4832e9('From\x20computer')};case _0x375951['URL']:return{'text':'Insert'===_0x2f2a34?_0x4832e9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4832e9('Via\x20URL')};case _0x375951['Dropbox']:return{'text':t('Insert'===_0x2f2a34?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x375951['Facebook']:return{'text':t('Insert'===_0x2f2a34?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x375951['GDrive']:return{'text':t('Insert'===_0x2f2a34?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x375951['GPhotos']:return{'text':t('Insert'===_0x2f2a34?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x375951['OneDrive']:return{'text':t('Insert'===_0x2f2a34?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x156d53;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x1922(_0x504760,_0x98351c){var _0x215bb1=_0x215b();return _0x1922=function(_0x1922b1,_0x2eb07d){_0x1922b1=_0x1922b1-0x150;var _0x48e4df=_0x215bb1[_0x1922b1];return _0x48e4df;},_0x1922(_0x504760,_0x98351c);}var _0x415d2e=_0x1922;(function(_0x2ac4b5,_0x14b2e7){var _0x499f01=_0x1922,_0x4da8b3=_0x2ac4b5();while(!![]){try{var _0x40e4d1=-parseInt(_0x499f01(0x161))/0x1*(parseInt(_0x499f01(0x155))/0x2)+parseInt(_0x499f01(0x15f))/0x3+-parseInt(_0x499f01(0x151))/0x4+-parseInt(_0x499f01(0x15c))/0x5*(-parseInt(_0x499f01(0x160))/0x6)+-parseInt(_0x499f01(0x152))/0x7+-parseInt(_0x499f01(0x156))/0x8+-parseInt(_0x499f01(0x15a))/0x9*(-parseInt(_0x499f01(0x15d))/0xa);if(_0x40e4d1===_0x14b2e7)break;else _0x4da8b3['push'](_0x4da8b3['shift']());}catch(_0x4751d8){_0x4da8b3['push'](_0x4da8b3['shift']());}}}(_0x215b,0xcaa2f));import{FocusTracker as _0x3f3335}from'ckeditor5/src/utils.js';function _0x215b(){var _0x141308=['11538BiRFWh','focusTracker','126245kWacHo','11090fBIPbd','fire','1658481YQyYaf','132KhLqmk','4rZeHPp','getFocusableElement','bindTemplate','3844112krbZBG','823438cYMWjm','forwardCycle','div','37284XtyWkV','4374512OObqTI','focusCycler','true','createCollection'];_0x215b=function(){return _0x141308;};return _0x215b();}import{View as _0x2e04da,FocusCycler as _0x15ca41}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2e04da{[_0x415d2e(0x15b)];[_0x415d2e(0x157)];constructor(_0xb57dc5){var _0x66d0b7=_0x415d2e;super(_0xb57dc5),this[_0x66d0b7(0x15b)]=new _0x3f3335(),this[_0x66d0b7(0x157)]=new _0x15ca41({'focusables':this[_0x66d0b7(0x159)](),'focusTracker':this[_0x66d0b7(0x15b)]});}[_0x415d2e(0x162)](){var _0x1ccdad=_0x415d2e;return{'tag':_0x1ccdad(0x154),'attributes':{'aria-hidden':_0x1ccdad(0x158),'tabindex':'0'},'on':{'focus':this[_0x1ccdad(0x150)]['to'](()=>{var _0x1da486=_0x1ccdad;this[_0x1da486(0x157)][_0x1da486(0x15e)](_0x1da486(0x153));})}};}}
|