@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.9 → 45.2.2
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 _0x5c218b=_0x3876;(function(_0x1ca953,_0x3fde8d){const _0xeaafc5=_0x3876,_0x353fb9=_0x1ca953();while(!![]){try{const _0x55f39b=-parseInt(_0xeaafc5(0xd2))/0x1*(-parseInt(_0xeaafc5(0xf6))/0x2)+parseInt(_0xeaafc5(0xdd))/0x3*(-parseInt(_0xeaafc5(0xd7))/0x4)+parseInt(_0xeaafc5(0xe2))/0x5*(-parseInt(_0xeaafc5(0xd0))/0x6)+parseInt(_0xeaafc5(0xef))/0x7+-parseInt(_0xeaafc5(0xf3))/0x8*(parseInt(_0xeaafc5(0xd6))/0x9)+-parseInt(_0xeaafc5(0xd4))/0xa+parseInt(_0xeaafc5(0xb6))/0xb;if(_0x55f39b===_0x3fde8d)break;else _0x353fb9['push'](_0x353fb9['shift']());}catch(_0x273573){_0x353fb9['push'](_0x353fb9['shift']());}}}(_0x3f26,0x6b551));import{Plugin as _0x46bc52}from'ckeditor5/src/core.js';import{Dialog as _0x3e2561}from'ckeditor5/src/ui.js';function _0x3876(_0x16a2fb,_0xe4810b){const _0x3f2612=_0x3f26();return _0x3876=function(_0x38760b,_0x1a2aad){_0x38760b=_0x38760b-0xab;let _0x3603b0=_0x3f2612[_0x38760b];return _0x3603b0;},_0x3876(_0x16a2fb,_0xe4810b);}import{createElement as _0x6ffd63,global as _0x1f2948,uid as _0x5570cf}from'ckeditor5/src/utils.js';import _0xa9c9da from'./uploadcarecommand.js';function _0x3f26(){const _0x3d0316=['schema','remove','commands','model','execute','_ctxElement','_initCtx','PictureEditing','render','add','isOfficialPlugin','config','211841ruYiOF','uploadcareImageId','uc-upload-ctx-provider','closeMax','317648TzWtlM','destroy','pluginName','2AHFwxb','configElement','_configElement','removeAttribute','body','uploadcare.pubkey','selection','imageBlock','requires','true','get','_initConfig','iconHrefResolver','listenTo','_initConversion','uploader','downcast','uc-config','contentLanguage','getAttribute','getSelectedElement','27450489IYtzTO','init','cleanupImage','querySelector','href','conversion','isRegistered','afterInit','view','once','isPremiumPlugin','for','imageInline','uploadcare','appendChild','input[uploadcare-file-input]','_initImageProcessingIndicator','UploadcareEditing','attributeToAttribute','locale','\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','join','#uc-icon-arrow-down','uploadcareImageReplace','map','uploadcare.uploader','2994zkmskd','editing','68564OmqJyl','data-uc-image-id','771180bScpHF','elementToAttribute','198wjPRrL','48NXcuVq','editor','document','fromCharCode','upcast','insertImage','191106AYVcSp','replaceImageSource','ctxElement','_initSchema','extend','4405EIxTHE'];_0x3f26=function(){return _0x3d0316;};return _0x3f26();}import _0x13cc8f from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x9d1c68}from'./utils/editingutils.js';export default class i extends _0x46bc52{[_0x5c218b(0xf8)]=null;[_0x5c218b(0xe8)]=null;static get[_0x5c218b(0xf5)](){const _0x1c27c2=_0x5c218b;return _0x1c27c2(0xc7);}static get[_0x5c218b(0xfe)](){const _0x2a8229=_0x5c218b;return[_0x2a8229(0xea),_0x13cc8f,_0x3e2561];}static get[_0x5c218b(0xed)](){return!0x0;}static get[_0x5c218b(0xc0)](){return!0x0;}get[_0x5c218b(0xf7)](){const _0x2442cd=_0x5c218b;return this[_0x2442cd(0xf8)];}get[_0x5c218b(0xdf)](){const _0x10880e=_0x5c218b;return this[_0x10880e(0xe8)];}[_0x5c218b(0xb7)](){const _0x3c64c8=_0x5c218b,_0x19c2e3=this[_0x3c64c8(0xd8)];_0x19c2e3[_0x3c64c8(0xe5)][_0x3c64c8(0xec)](_0x3c64c8(0xc3),new _0xa9c9da(_0x19c2e3));}[_0x5c218b(0xbd)](){const _0x2b065a=_0x5c218b;this[_0x2b065a(0xe0)](),this[_0x2b065a(0xaf)](),this[_0x2b065a(0xac)](),this[_0x2b065a(0xe9)](),this[_0x2b065a(0xc6)](),this[_0x2b065a(0xae)](this[_0x2b065a(0xd8)],_0x2b065a(0xf4),()=>{const _0x4e33ec=_0x2b065a;this[_0x4e33ec(0xf8)]&&(this[_0x4e33ec(0xf8)][_0x4e33ec(0xe4)](),this[_0x4e33ec(0xf8)]=null),this[_0x4e33ec(0xe8)]&&(this[_0x4e33ec(0xe8)][_0x4e33ec(0xe4)](),this[_0x4e33ec(0xe8)]=null);const _0x4bbe2d=_0x1f2948[_0x4e33ec(0xd9)][_0x4e33ec(0xb9)](_0x4e33ec(0xc5));_0x4bbe2d&&_0x4bbe2d[_0x4e33ec(0xe4)]();}),async function(_0x36761a){const _0x99339e=_0x40ba17([0x53,0x65,0x38,0x43,0x4e,0x75,0x42,0x58,0x71,0x4a,0x31,0x77,0x66,0x70,0x78,0x72,0x6c,0x6e,0x52,0x45,0x48,0x35,0x6a,0x68,0x73,0x64,0x74,0x39,0x5a,0x69,0x59,0x61,0x4c,0x76,0x30,0x55,0x57,0x6b,0x4f,0x41,0x79,0x47,0x56,0x51,0x36,0x62,0x6d,0x4d,0x67,0x50,0x7a,0x32,0x54,0x44,0x37,0x49,0x46,0x6f,0x33,0x63,0x4b,0x34]),_0x26971f=0x59d118f7,_0x484d08=0x59d67367^_0x26971f,_0x10c3be=window[_0x40ba17([0x44,0x61,0x74,0x65])][_0x40ba17([0x6e,0x6f,0x77])](),_0x2ef73d=_0x36761a[_0x40ba17([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2756ac=new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1d4b=>{_0x2ef73d[_0x40ba17([0x6f,0x6e,0x63,0x65])](_0x40ba17([0x72,0x65,0x61,0x64,0x79]),_0x2a1d4b);}),_0x170b75={[_0x40ba17([0x6b,0x74,0x79])]:_0x40ba17([0x45,0x43]),[_0x40ba17([0x75,0x73,0x65])]:_0x40ba17([0x73,0x69,0x67]),[_0x40ba17([0x63,0x72,0x76])]:_0x40ba17([0x50,0x2d,0x32,0x35,0x36]),[_0x40ba17([0x78])]:_0x40ba17([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]),[_0x40ba17([0x79])]:_0x40ba17([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]),[_0x40ba17([0x61,0x6c,0x67])]:_0x40ba17([0x45,0x53,0x32,0x35,0x36])},_0x3829e0=_0x2ef73d[_0x40ba17([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40ba17([0x67,0x65,0x74])](_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4470d4(){let _0xd2149b,_0x3a918b=null,_0x198544=null;try{if(_0x3829e0==_0x40ba17([0x47,0x50,0x4c]))return _0x40ba17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd2149b=_0x49c763(),!_0xd2149b)return _0x40ba17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd2149b[_0x40ba17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x198544=_0x3b2038(_0xd2149b[_0x40ba17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd2149b[_0x40ba17([0x6a,0x74,0x69])])),await _0x44af14()?_0x3be89c()?_0x4a0aec()?_0x40ba17([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a4be4()?(_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ba17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a918b=_0x38adef(_0x40ba17([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ba17([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a918b=_0x38adef(_0x40ba17([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x506e15()):_0x40ba17([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40ba17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40ba17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40ba17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a0aec(){const _0x726df3=[_0x40ba17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40ba17([0x74,0x72,0x69,0x61,0x6c])][_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10c3be/0x3e8:0xe10*_0x484d08;return _0xd2149b[_0x40ba17([0x65,0x78,0x70])]<_0x726df3;}function _0x3be89c(){const _0x2529b0=_0xd2149b[_0x40ba17([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2529b0&&(!!_0x2529b0[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ba17([0x2a]))||!!_0x2529b0[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ba17([0x55,0x50,0x4c,0x43])));}function _0x2a4be4(){const _0x5ddd4f=_0x3876,_0x546941=_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x546941||0x0==_0x546941[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59cc71}=new URL(window[_0x40ba17([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5ddd4f(0xba)]);if(_0x546941[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59cc71))return!0x0;const _0x15de61=_0x59cc71[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e]));return _0x546941[_0x40ba17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x249e40=>_0x249e40[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ba17([0x2a])))[_0x40ba17([0x6d,0x61,0x70])](_0x274a45=>_0x274a45[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e])))[_0x40ba17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39dc23=>_0x39dc23[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x15de61[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ba17([0x6d,0x61,0x70])](_0x1cd062=>Array(_0x15de61[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cd062[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ba17([0x66,0x69,0x6c,0x6c])](_0x1cd062[0x0]===_0x40ba17([0x2a])?_0x40ba17([0x2a]):'')[_0x40ba17([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cd062))[_0x40ba17([0x73,0x6f,0x6d,0x65])](_0x31613e=>_0x15de61[_0x40ba17([0x65,0x76,0x65,0x72,0x79])]((_0x415bb2,_0x1d0079)=>_0x31613e[_0x1d0079]===_0x415bb2||_0x31613e[_0x1d0079]===_0x40ba17([0x2a])));}function _0x506e15(){return _0x3a918b&&_0x198544?new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4436d6,_0x57ef98)=>{_0x3a918b[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x4436d6,_0x57ef98),_0x198544[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x5d1d15=>{_0x5d1d15!=_0x40ba17([0x56,0x61,0x6c,0x69,0x64])&&_0x4436d6(_0x5d1d15);},_0x57ef98);}):_0x3a918b||_0x198544||_0x40ba17([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b2038(_0x4e1a26,_0x54ba1f){return new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f18e6=>{if(_0x559896())return _0x5f18e6(_0x40ba17([0x56,0x61,0x6c,0x69,0x64]));_0x163399(),_0x2ef73d[_0x40ba17([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40ba17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e9a90=!0x1;const _0x394877=_0x5570cf();function _0x400b28(_0x1b5674){return!!_0x1b5674&&(typeof _0x1b5674===_0x40ba17([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b5674===_0x40ba17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b5674[_0x40ba17([0x74,0x68,0x65,0x6e])]===_0x40ba17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b5674[_0x40ba17([0x63,0x61,0x74,0x63,0x68])]===_0x40ba17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4df129(_0x413d69){_0x1d7afb(_0x413d69)[_0x40ba17([0x74,0x68,0x65,0x6e])](_0xbd213f=>{if(!_0xbd213f||_0xbd213f[_0x40ba17([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40ba17([0x6f,0x6b]))return _0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7da9f0(_0x46f726(_0x394877+_0x54ba1f))!=_0xbd213f[_0x40ba17([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40ba17([0x56,0x61,0x6c,0x69,0x64]);})[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x25c1d8=>(_0x277236(),_0x25c1d8),()=>{const _0xff2bc2=_0x2c9c6a();return null==_0xff2bc2?(_0x277236(),_0x40ba17([0x56,0x61,0x6c,0x69,0x64])):_0x40ba17(_0x10c3be-_0xff2bc2>(0x7ddd9cf7^_0x26971f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x5f18e6)[_0x40ba17([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f18e6(_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x76d933=0x59e7f677^_0x26971f;function _0x277236(){const _0x22f6ad=_0x40ba17([0x6c,0x6c,0x63,0x74,0x2d])+_0x7da9f0(_0x46f726(_0x4e1a26)),_0x11f548=_0x9a9105(_0x7da9f0(window[_0x40ba17([0x4d,0x61,0x74,0x68])][_0x40ba17([0x63,0x65,0x69,0x6c])](_0x10c3be/_0x76d933)));window[_0x40ba17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ba17([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22f6ad,_0x11f548);}function _0x2c9c6a(){const _0x1e5d63=_0x40ba17([0x6c,0x6c,0x63,0x74,0x2d])+_0x7da9f0(_0x46f726(_0x4e1a26)),_0x17fcd4=window[_0x40ba17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ba17([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e5d63);return _0x17fcd4?window[_0x40ba17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9a9105(_0x17fcd4),0x10)*_0x76d933:null;}function _0x1d7afb(_0x49f7){return new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a6fa6,_0x21e9dd)=>{_0x49f7[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x4a6fa6,_0x21e9dd),window[_0x40ba17([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21e9dd,0x59d0cc37^_0x26971f);});}}_0x2ef73d[_0x40ba17([0x6f,0x6e])](_0x40ba17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b759d,_0x1c7942)=>{if(_0x1c7942[0x0]!=_0x4e1a26)return _0x5f18e6(_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c7942[0x1]={..._0x1c7942[0x1],[_0x40ba17([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x394877};},{[_0x40ba17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ba17([0x68,0x69,0x67,0x68])}),_0x2ef73d[_0x40ba17([0x6f,0x6e])](_0x40ba17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x641440=>{_0x400b28(_0x641440[_0x40ba17([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e9a90=!0x0,_0x4df129(_0x641440[_0x40ba17([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40ba17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ba17([0x6c,0x6f,0x77])}),_0x2756ac[_0x40ba17([0x74,0x68,0x65,0x6e])](()=>{_0x1e9a90||_0x5f18e6(_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x559896(){return _0x2ef73d[_0x40ba17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ba17([0x76,0x69,0x65,0x77])][_0x40ba17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40ba17([0x61,0x75,0x74,0x6f]);}function _0x163399(){_0x2ef73d[_0x40ba17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ba17([0x76,0x69,0x65,0x77])][_0x40ba17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40ba17([0x61,0x75,0x74,0x6f]);}}function _0x38adef(_0x2b956a){const _0x4413f9=[new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119e8f=>setTimeout(_0x119e8f,0x59d8263b^_0x26971f)),_0x2756ac[_0x40ba17([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2900c0=>{let _0x5c3cd1=0x0;_0x2ef73d[_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ba17([0x6f,0x6e])](_0x40ba17([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b2744,_0x2889aa)=>{_0x2889aa[0x0][_0x40ba17([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c3cd1++,_0x5c3cd1==(0x59d1190f^_0x26971f)&&(_0x2900c0(),_0x5b2744[_0x40ba17([0x6f,0x66,0x66])]());});}))];return window[_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40ba17([0x72,0x61,0x63,0x65])](_0x4413f9)[_0x40ba17([0x74,0x68,0x65,0x6e])](()=>_0x2b956a);}async function _0x383811(){await _0x2756ac,_0x2ef73d[_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ba17([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b437c,_0x2ef73d[_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ba17([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b437c,_0x2ef73d[_0x40ba17([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x483483(_0x25a3c0){const _0x1eb74d=_0x3d9781();_0x2ef73d[_0x1eb74d]=_0x40ba17([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25a3c0,_0x25a3c0!=_0x40ba17([0x56,0x61,0x6c,0x69,0x64])&&_0x383811();}function _0x3d9781(){const _0x5b6935=window[_0x40ba17([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40ba17([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40ba17([0x6e,0x6f,0x77])]())[_0x40ba17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40ba17([0x2e]),'');let _0xca49e3=_0x40ba17([0x53]);for(let _0x482dfd=0x0;_0x482dfd<_0x5b6935[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x482dfd+=0x2){let _0x453a81=window[_0x40ba17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b6935[_0x40ba17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x482dfd,_0x482dfd+0x2));_0x453a81>=_0x99339e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x453a81-=_0x99339e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xca49e3+=_0x99339e[_0x453a81];}return _0xca49e3;}function _0x49c763(){const _0x4f2777=_0x3829e0[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e]));if(0x3!=_0x4f2777[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x44fa7f(_0x4f2777[0x1]);function _0x44fa7f(_0x433b36){const _0x268a7c=_0x40a168(_0x433b36);return _0x268a7c&&_0x43ac64()?_0x268a7c:null;function _0x43ac64(){const _0x1ab63e=_0x268a7c[_0x40ba17([0x6a,0x74,0x69])],_0x5da9c2=window[_0x40ba17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ab63e[_0x40ba17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ab63e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5616cf={..._0x268a7c,[_0x40ba17([0x6a,0x74,0x69])]:_0x1ab63e[_0x40ba17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ab63e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5616cf[_0x40ba17([0x76,0x63])],_0x46f726(_0x5616cf)==_0x5da9c2;}}}async function _0x44af14(){let _0x4815f5=!0x0;try{const _0x1b89dd=_0x3829e0[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e])),[_0x431ca5,_0x2e87a5,_0x283314]=_0x1b89dd;return _0x50c810(_0x431ca5),await _0x4e06d0(_0x431ca5,_0x2e87a5,_0x283314),_0x4815f5;}catch{return!0x1;}function _0x50c810(_0x11f0f6){const _0x184529=_0x40a168(_0x11f0f6);_0x184529&&_0x184529[_0x40ba17([0x61,0x6c,0x67])]==_0x40ba17([0x45,0x53,0x32,0x35,0x36])||(_0x4815f5=!0x1);}async function _0x4e06d0(_0x1f5a06,_0x1e4226,_0x54d1da){const _0x48abf3=window[_0x40ba17([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40ba17([0x66,0x72,0x6f,0x6d])](_0x5de067(_0x54d1da),_0x16694a=>_0x16694a[_0x40ba17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ae8ed=new window[(_0x40ba17([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40ba17([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f5a06+_0x40ba17([0x2e])+_0x1e4226),_0x24564d=window[_0x40ba17([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40ba17([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24564d)return;const _0x82cf82=await _0x24564d[_0x40ba17([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40ba17([0x6a,0x77,0x6b]),_0x170b75,{[_0x40ba17([0x6e,0x61,0x6d,0x65])]:_0x40ba17([0x45,0x43,0x44,0x53,0x41]),[_0x40ba17([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40ba17([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40ba17([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24564d[_0x40ba17([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40ba17([0x6e,0x61,0x6d,0x65])]:_0x40ba17([0x45,0x43,0x44,0x53,0x41]),[_0x40ba17([0x68,0x61,0x73,0x68])]:{[_0x40ba17([0x6e,0x61,0x6d,0x65])]:_0x40ba17([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x82cf82,_0x48abf3,_0x1ae8ed)||(_0x4815f5=!0x1);}}function _0x40a168(_0x59093d){return _0x59093d[_0x40ba17([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40ba17([0x65,0x79]))?JSON[_0x40ba17([0x70,0x61,0x72,0x73,0x65])](_0x5de067(_0x59093d)):null;}function _0x5de067(_0x3f1c55){return window[_0x40ba17([0x61,0x74,0x6f,0x62])](_0x3f1c55[_0x40ba17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40ba17([0x2b]))[_0x40ba17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40ba17([0x2f])));}function _0x46f726(_0x157d06){let _0x1d246c=0x1505;function _0x5e3d6f(_0x44c94d){for(let _0x3e4f5f=0x0;_0x3e4f5f<_0x44c94d[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e4f5f++){const _0x140c67=_0x44c94d[_0x40ba17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e4f5f);_0x1d246c=(_0x1d246c<<0x5)+_0x1d246c+_0x140c67,_0x1d246c&=_0x1d246c;}}function _0x43dde3(_0x132103){Array[_0x40ba17([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x132103)?_0x132103[_0x40ba17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43dde3):_0x132103&&typeof _0x132103==_0x40ba17([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40ba17([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x132103)[_0x40ba17([0x73,0x6f,0x72,0x74])]()[_0x40ba17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc22775,_0x49d325])=>{_0x5e3d6f(_0xc22775),_0x43dde3(_0x49d325);}):_0x5e3d6f(window[_0x40ba17([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x132103));}return _0x43dde3(_0x157d06),_0x1d246c>>>0x0;}function _0x7da9f0(_0x226d06){return _0x226d06[_0x40ba17([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40ba17([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40ba17([0x30]));}function _0x9a9105(_0x276ad4){return _0x276ad4[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40ba17([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40ba17([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b437c(){}function _0x40ba17(_0x4760f7){const _0x172410=_0x3876;return _0x4760f7[_0x172410(0xce)](_0x36f5f2=>String[_0x172410(0xda)](_0x36f5f2))[_0x172410(0xcb)]('');}_0x483483(await _0x4470d4());}(this);}[_0x5c218b(0xe0)](){const _0x1c2233=_0x5c218b,_0x4589b7=this[_0x1c2233(0xd8)][_0x1c2233(0xe6)][_0x1c2233(0xe3)];_0x4589b7[_0x1c2233(0xbc)](_0x1c2233(0xfd))&&_0x4589b7[_0x1c2233(0xe1)](_0x1c2233(0xfd),{'allowAttributes':[_0x1c2233(0xf0)]}),_0x4589b7[_0x1c2233(0xbc)](_0x1c2233(0xc2))&&_0x4589b7[_0x1c2233(0xe1)](_0x1c2233(0xc2),{'allowAttributes':[_0x1c2233(0xf0)]});}[_0x5c218b(0xaf)](){const _0x1fa72d=_0x5c218b,_0x31d931=this[_0x1fa72d(0xd8)];_0x31d931[_0x1fa72d(0xbb)][_0x1fa72d(0xc1)](_0x1fa72d(0xb1))[_0x1fa72d(0xc8)]({'model':_0x1fa72d(0xf0),'view':_0x1fa72d(0xd3)}),_0x31d931[_0x1fa72d(0xbb)][_0x1fa72d(0xc1)](_0x1fa72d(0xdb))[_0x1fa72d(0xd5)]({'model':{'key':_0x1fa72d(0xf0),'value':_0x3bdc4c=>_0x3bdc4c[_0x1fa72d(0xb4)](_0x1fa72d(0xd3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x576c6f=_0x31d931[_0x1fa72d(0xe5)][_0x1fa72d(0xab)](_0x1fa72d(0xde));_0x576c6f&&this[_0x1fa72d(0xae)](_0x576c6f,_0x1fa72d(0xb8),(_0x23a3a3,[_0x5f3f04,_0x2e7689])=>{const _0x5897a6=_0x1fa72d;_0x5f3f04[_0x5897a6(0xf9)](_0x5897a6(0xf0),_0x2e7689);});}[_0x5c218b(0xac)](){const _0x28185e=_0x5c218b,_0x3c0b1d=this[_0x28185e(0xd8)][_0x28185e(0xee)][_0x28185e(0xab)](_0x28185e(0xcf))||{},_0x53a0a6=this[_0x28185e(0xd8)][_0x28185e(0xee)][_0x28185e(0xab)](_0x28185e(0xfb))||'';this[_0x28185e(0xf8)]=_0x6ffd63(_0x1f2948[_0x28185e(0xd9)],_0x28185e(0xb2),{..._0x3c0b1d,'pubkey':_0x53a0a6,'ctx-name':_0x28185e(0xb0),'sourceList':'','imgOnly':_0x28185e(0xff),'removeCopyright':_0x28185e(0xff),'localeName':this[_0x28185e(0xd8)][_0x28185e(0xc9)][_0x28185e(0xb3)],'externalSourcesEmbedCss':_0x28185e(0xca)}),this[_0x28185e(0xf8)][_0x28185e(0xad)]=_0x5c137c=>{const _0x306024=_0x28185e;if(_0x306024(0xf2)==_0x5c137c)return _0x306024(0xcc);},_0x1f2948[_0x28185e(0xd9)][_0x28185e(0xfa)][_0x28185e(0xc4)](this[_0x28185e(0xf8)]);}[_0x5c218b(0xe9)](){const _0xc07f92=_0x5c218b;this[_0xc07f92(0xe8)]=_0x6ffd63(_0x1f2948[_0xc07f92(0xd9)],_0xc07f92(0xf1),{'ctx-name':_0xc07f92(0xb0)}),_0x1f2948[_0xc07f92(0xd9)][_0xc07f92(0xfa)][_0xc07f92(0xc4)](this[_0xc07f92(0xe8)]);}[_0x5c218b(0xc6)](){const _0x5512df=_0x5c218b,_0x2d7e1e=this[_0x5512df(0xd8)][_0x5512df(0xe5)][_0x5512df(0xab)](_0x5512df(0xdc));_0x2d7e1e&&this[_0x5512df(0xae)](_0x2d7e1e,_0x5512df(0xe7),()=>{const _0x51d81e=_0x5512df,_0x3506d0=this[_0x51d81e(0xd8)][_0x51d81e(0xe6)][_0x51d81e(0xd9)][_0x51d81e(0xfc)][_0x51d81e(0xb5)]();_0x3506d0&&_0x3506d0[_0x51d81e(0xb4)](_0x51d81e(0xf0))&&this[_0x51d81e(0xd8)][_0x51d81e(0xd1)][_0x51d81e(0xbe)][_0x51d81e(0xbf)](_0x51d81e(0xeb),()=>{const _0x5fe06d=_0x51d81e;_0x9d1c68(this[_0x5fe06d(0xd8)],_0x3506d0);});});const _0x32182f=this[_0x5512df(0xd8)][_0x5512df(0xe5)][_0x5512df(0xab)](_0x5512df(0xcd));_0x32182f&&this[_0x5512df(0xae)](_0x32182f,_0x5512df(0xe7),()=>{const _0x5cd857=_0x5512df,_0x6fea49=this[_0x5cd857(0xd8)][_0x5cd857(0xe6)][_0x5cd857(0xd9)][_0x5cd857(0xfc)][_0x5cd857(0xb5)]();_0x6fea49&&_0x6fea49[_0x5cd857(0xb4)](_0x5cd857(0xf0))&&this[_0x5cd857(0xd8)][_0x5cd857(0xd1)][_0x5cd857(0xbe)][_0x5cd857(0xbf)](_0x5cd857(0xeb),()=>{const _0x3b9b0c=_0x5cd857;_0x9d1c68(this[_0x3b9b0c(0xd8)],_0x6fea49);});});}}
|
|
23
|
+
const _0x37af0e=_0x546d;(function(_0x398ce2,_0x1dbe3f){const _0x1cb6f3=_0x546d,_0x2c5557=_0x398ce2();while(!![]){try{const _0x4f2d50=-parseInt(_0x1cb6f3(0x15c))/0x1+-parseInt(_0x1cb6f3(0x153))/0x2+-parseInt(_0x1cb6f3(0x126))/0x3*(-parseInt(_0x1cb6f3(0x163))/0x4)+parseInt(_0x1cb6f3(0x147))/0x5+-parseInt(_0x1cb6f3(0x14c))/0x6*(parseInt(_0x1cb6f3(0x12a))/0x7)+-parseInt(_0x1cb6f3(0x128))/0x8+parseInt(_0x1cb6f3(0x162))/0x9;if(_0x4f2d50===_0x1dbe3f)break;else _0x2c5557['push'](_0x2c5557['shift']());}catch(_0x678c9){_0x2c5557['push'](_0x2c5557['shift']());}}}(_0x1bff,0xba038));import{Plugin as _0x3229f9}from'ckeditor5/src/core.js';import{Dialog as _0x4b55d2}from'ckeditor5/src/ui.js';import{createElement as _0x1dffb4,global as _0x5437ec,uid as _0x231b46}from'ckeditor5/src/utils.js';import _0x2fcd93 from'./uploadcarecommand.js';import _0x196de4 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4e161c}from'./utils/editingutils.js';function _0x546d(_0x24bbf6,_0xe38ff){const _0x1bff3b=_0x1bff();return _0x546d=function(_0x546d43,_0x27d80a){_0x546d43=_0x546d43-0x116;let _0x2d1cc0=_0x1bff3b[_0x546d43];return _0x2d1cc0;},_0x546d(_0x24bbf6,_0xe38ff);}export default class i extends _0x3229f9{[_0x37af0e(0x12d)]=null;[_0x37af0e(0x15e)]=null;static get[_0x37af0e(0x149)](){const _0x5d8fd8=_0x37af0e;return _0x5d8fd8(0x145);}static get[_0x37af0e(0x168)](){const _0x2d25b7=_0x37af0e;return[_0x2d25b7(0x13c),_0x196de4,_0x4b55d2];}static get[_0x37af0e(0x146)](){return!0x0;}static get[_0x37af0e(0x155)](){return!0x0;}get[_0x37af0e(0x12b)](){const _0x576403=_0x37af0e;return this[_0x576403(0x12d)];}get[_0x37af0e(0x156)](){const _0x140bf0=_0x37af0e;return this[_0x140bf0(0x15e)];}[_0x37af0e(0x122)](){const _0x4cc691=_0x37af0e,_0x1ea6dc=this[_0x4cc691(0x165)];_0x1ea6dc[_0x4cc691(0x139)][_0x4cc691(0x167)](_0x4cc691(0x152),new _0x2fcd93(_0x1ea6dc));}[_0x37af0e(0x140)](){const _0x3cfab2=_0x37af0e;this[_0x3cfab2(0x123)](),this[_0x3cfab2(0x116)](),this[_0x3cfab2(0x121)](),this[_0x3cfab2(0x166)](),this[_0x3cfab2(0x144)](),this[_0x3cfab2(0x14d)](this[_0x3cfab2(0x165)],_0x3cfab2(0x14a),()=>{const _0x253164=_0x3cfab2;this[_0x253164(0x12d)]&&(this[_0x253164(0x12d)][_0x253164(0x151)](),this[_0x253164(0x12d)]=null),this[_0x253164(0x15e)]&&(this[_0x253164(0x15e)][_0x253164(0x151)](),this[_0x253164(0x15e)]=null);const _0x14b978=_0x5437ec[_0x253164(0x118)][_0x253164(0x143)](_0x253164(0x142));_0x14b978&&_0x14b978[_0x253164(0x151)]();}),async function(_0x5d8df9){const _0x4b6497=_0xf7ec4b([0x49,0x6f,0x79,0x6b,0x41,0x4b,0x72,0x53,0x30,0x46,0x5a,0x39,0x38,0x35,0x6a,0x4a,0x66,0x78,0x44,0x7a,0x62,0x43,0x33,0x6c,0x65,0x64,0x57,0x32,0x77,0x50,0x4d,0x63,0x74,0x37,0x55,0x69,0x4c,0x59,0x51,0x4f,0x70,0x31,0x48,0x73,0x54,0x34,0x71,0x61,0x68,0x47,0x42,0x45,0x6d,0x75,0x6e,0x56,0x36,0x4e,0x76,0x67,0x58,0x52]),_0x19d9af=0x5d5422a1,_0x1c3057=0x5d5350f1^_0x19d9af,_0x49e0cd=window[_0xf7ec4b([0x44,0x61,0x74,0x65])][_0xf7ec4b([0x6e,0x6f,0x77])](),_0x3b464f=_0x5d8df9[_0xf7ec4b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a9ecb=new window[(_0xf7ec4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ecfdf=>{_0x3b464f[_0xf7ec4b([0x6f,0x6e,0x63,0x65])](_0xf7ec4b([0x72,0x65,0x61,0x64,0x79]),_0x3ecfdf);}),_0x16c829={[_0xf7ec4b([0x6b,0x74,0x79])]:_0xf7ec4b([0x45,0x43]),[_0xf7ec4b([0x75,0x73,0x65])]:_0xf7ec4b([0x73,0x69,0x67]),[_0xf7ec4b([0x63,0x72,0x76])]:_0xf7ec4b([0x50,0x2d,0x32,0x35,0x36]),[_0xf7ec4b([0x78])]:_0xf7ec4b([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]),[_0xf7ec4b([0x79])]:_0xf7ec4b([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]),[_0xf7ec4b([0x61,0x6c,0x67])]:_0xf7ec4b([0x45,0x53,0x32,0x35,0x36])},_0x5ea926=_0x3b464f[_0xf7ec4b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf7ec4b([0x67,0x65,0x74])](_0xf7ec4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f0e41(){let _0x4b655d,_0x1c332e=null,_0x37de7b=null;try{if(_0x5ea926==_0xf7ec4b([0x47,0x50,0x4c]))return _0xf7ec4b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b655d=_0x136d44(),!_0x4b655d)return _0xf7ec4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b655d[_0xf7ec4b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37de7b=_0x297c3f(_0x4b655d[_0xf7ec4b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b655d[_0xf7ec4b([0x6a,0x74,0x69])])),await _0x4004c8()?_0x35b86d()?_0x4a322f()?_0xf7ec4b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3df33c()?(_0x4b655d[_0xf7ec4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf7ec4b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c332e=_0xf6dd87(_0xf7ec4b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b655d[_0xf7ec4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf7ec4b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c332e=_0xf6dd87(_0xf7ec4b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d5d3c()):_0xf7ec4b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf7ec4b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf7ec4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf7ec4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a322f(){const _0x194d23=[_0xf7ec4b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf7ec4b([0x74,0x72,0x69,0x61,0x6c])][_0xf7ec4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b655d[_0xf7ec4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49e0cd/0x3e8:0xe10*_0x1c3057;return _0x4b655d[_0xf7ec4b([0x65,0x78,0x70])]<_0x194d23;}function _0x35b86d(){const _0x4b7ec2=_0x4b655d[_0xf7ec4b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4b7ec2&&(!!_0x4b7ec2[_0xf7ec4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf7ec4b([0x2a]))||!!_0x4b7ec2[_0xf7ec4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf7ec4b([0x55,0x50,0x4c,0x43])));}function _0x3df33c(){const _0x2ba075=_0x546d,_0x2e5431=_0x4b655d[_0xf7ec4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e5431||0x0==_0x2e5431[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ca31b}=new URL(window[_0xf7ec4b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2ba075(0x117)]);if(_0x2e5431[_0xf7ec4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ca31b))return!0x0;const _0x4e8dc9=_0x3ca31b[_0xf7ec4b([0x73,0x70,0x6c,0x69,0x74])](_0xf7ec4b([0x2e]));return _0x2e5431[_0xf7ec4b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c2162=>_0x5c2162[_0xf7ec4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf7ec4b([0x2a])))[_0xf7ec4b([0x6d,0x61,0x70])](_0x135083=>_0x135083[_0xf7ec4b([0x73,0x70,0x6c,0x69,0x74])](_0xf7ec4b([0x2e])))[_0xf7ec4b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1556da=>_0x1556da[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e8dc9[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf7ec4b([0x6d,0x61,0x70])](_0x533250=>Array(_0x4e8dc9[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x533250[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf7ec4b([0x66,0x69,0x6c,0x6c])](_0x533250[0x0]===_0xf7ec4b([0x2a])?_0xf7ec4b([0x2a]):'')[_0xf7ec4b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x533250))[_0xf7ec4b([0x73,0x6f,0x6d,0x65])](_0x1e0103=>_0x4e8dc9[_0xf7ec4b([0x65,0x76,0x65,0x72,0x79])]((_0x49cfc6,_0xc33e2a)=>_0x1e0103[_0xc33e2a]===_0x49cfc6||_0x1e0103[_0xc33e2a]===_0xf7ec4b([0x2a])));}function _0x5d5d3c(){return _0x1c332e&&_0x37de7b?new window[(_0xf7ec4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ad51f,_0x52d22b)=>{_0x1c332e[_0xf7ec4b([0x74,0x68,0x65,0x6e])](_0x3ad51f,_0x52d22b),_0x37de7b[_0xf7ec4b([0x74,0x68,0x65,0x6e])](_0x16ed8b=>{_0x16ed8b!=_0xf7ec4b([0x56,0x61,0x6c,0x69,0x64])&&_0x3ad51f(_0x16ed8b);},_0x52d22b);}):_0x1c332e||_0x37de7b||_0xf7ec4b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x297c3f(_0x5bd538,_0x221bec){return new window[(_0xf7ec4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10a355=>{if(_0x4bee5b())return _0x10a355(_0xf7ec4b([0x56,0x61,0x6c,0x69,0x64]));_0x2dd064(),_0x3b464f[_0xf7ec4b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf7ec4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27cb0e=!0x1;const _0x30e4ad=_0x231b46();function _0x191778(_0xee9cf5){return!!_0xee9cf5&&(typeof _0xee9cf5===_0xf7ec4b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xee9cf5===_0xf7ec4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xee9cf5[_0xf7ec4b([0x74,0x68,0x65,0x6e])]===_0xf7ec4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xee9cf5[_0xf7ec4b([0x63,0x61,0x74,0x63,0x68])]===_0xf7ec4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xde1177(_0x55eb45){_0x3e6aed(_0x55eb45)[_0xf7ec4b([0x74,0x68,0x65,0x6e])](_0x9cef3=>{if(!_0x9cef3||_0x9cef3[_0xf7ec4b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf7ec4b([0x6f,0x6b]))return _0xf7ec4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e144b(_0x3e32aa(_0x30e4ad+_0x221bec))!=_0x9cef3[_0xf7ec4b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf7ec4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf7ec4b([0x56,0x61,0x6c,0x69,0x64]);})[_0xf7ec4b([0x74,0x68,0x65,0x6e])](_0x465007=>(_0x59c794(),_0x465007),()=>{const _0x5c7062=_0x34a031();return null==_0x5c7062?(_0x59c794(),_0xf7ec4b([0x56,0x61,0x6c,0x69,0x64])):_0xf7ec4b(_0x49e0cd-_0x5c7062>(0x7958a6a1^_0x19d9af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf7ec4b([0x74,0x68,0x65,0x6e])](_0x10a355)[_0xf7ec4b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10a355(_0xf7ec4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4644ab=0x5d62cc21^_0x19d9af;function _0x59c794(){const _0x1704d9=_0xf7ec4b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e144b(_0x3e32aa(_0x5bd538)),_0x5f36a3=_0x2b49e6(_0x3e144b(window[_0xf7ec4b([0x4d,0x61,0x74,0x68])][_0xf7ec4b([0x63,0x65,0x69,0x6c])](_0x49e0cd/_0x4644ab)));window[_0xf7ec4b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf7ec4b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1704d9,_0x5f36a3);}function _0x34a031(){const _0x2640ef=_0xf7ec4b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e144b(_0x3e32aa(_0x5bd538)),_0x14c49d=window[_0xf7ec4b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf7ec4b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2640ef);return _0x14c49d?window[_0xf7ec4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b49e6(_0x14c49d),0x10)*_0x4644ab:null;}function _0x3e6aed(_0x27be6c){return new window[(_0xf7ec4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a3392,_0x14291a)=>{_0x27be6c[_0xf7ec4b([0x74,0x68,0x65,0x6e])](_0x1a3392,_0x14291a),window[_0xf7ec4b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14291a,0x5d55f661^_0x19d9af);});}}_0x3b464f[_0xf7ec4b([0x6f,0x6e])](_0xf7ec4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x391cbb,_0x32b56c)=>{if(_0x32b56c[0x0]!=_0x5bd538)return _0x10a355(_0xf7ec4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32b56c[0x1]={..._0x32b56c[0x1],[_0xf7ec4b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30e4ad};},{[_0xf7ec4b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf7ec4b([0x68,0x69,0x67,0x68])}),_0x3b464f[_0xf7ec4b([0x6f,0x6e])](_0xf7ec4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15bc3c=>{_0x191778(_0x15bc3c[_0xf7ec4b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27cb0e=!0x0,_0xde1177(_0x15bc3c[_0xf7ec4b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf7ec4b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf7ec4b([0x6c,0x6f,0x77])}),_0x3a9ecb[_0xf7ec4b([0x74,0x68,0x65,0x6e])](()=>{_0x27cb0e||_0x10a355(_0xf7ec4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4bee5b(){return _0x3b464f[_0xf7ec4b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf7ec4b([0x76,0x69,0x65,0x77])][_0xf7ec4b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf7ec4b([0x61,0x75,0x74,0x6f]);}function _0x2dd064(){_0x3b464f[_0xf7ec4b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf7ec4b([0x76,0x69,0x65,0x77])][_0xf7ec4b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf7ec4b([0x61,0x75,0x74,0x6f]);}}function _0xf6dd87(_0x17f22a){const _0x3d2fa2=[new window[(_0xf7ec4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x543fb0=>setTimeout(_0x543fb0,0x5d5d1c6d^_0x19d9af)),_0x3a9ecb[_0xf7ec4b([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf7ec4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25b6aa=>{let _0xcc0028=0x0;_0x3b464f[_0xf7ec4b([0x6d,0x6f,0x64,0x65,0x6c])][_0xf7ec4b([0x6f,0x6e])](_0xf7ec4b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x562775,_0x758dd)=>{_0x758dd[0x0][_0xf7ec4b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xcc0028++,_0xcc0028==(0x5d542359^_0x19d9af)&&(_0x25b6aa(),_0x562775[_0xf7ec4b([0x6f,0x66,0x66])]());});}))];return window[_0xf7ec4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf7ec4b([0x72,0x61,0x63,0x65])](_0x3d2fa2)[_0xf7ec4b([0x74,0x68,0x65,0x6e])](()=>_0x17f22a);}async function _0x2f793f(){await _0x3a9ecb,_0x3b464f[_0xf7ec4b([0x6d,0x6f,0x64,0x65,0x6c])][_0xf7ec4b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x571b7,_0x3b464f[_0xf7ec4b([0x6d,0x6f,0x64,0x65,0x6c])][_0xf7ec4b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x571b7,_0x3b464f[_0xf7ec4b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf7ec4b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x354068(_0x312c5d){const _0x14dd47=_0x30cf6d();_0x3b464f[_0x14dd47]=_0xf7ec4b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x312c5d,_0x312c5d!=_0xf7ec4b([0x56,0x61,0x6c,0x69,0x64])&&_0x2f793f();}function _0x30cf6d(){const _0x26b5d2=window[_0xf7ec4b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf7ec4b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf7ec4b([0x6e,0x6f,0x77])]())[_0xf7ec4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf7ec4b([0x2e]),'');let _0x49cf20=_0xf7ec4b([0x49]);for(let _0x37bca1=0x0;_0x37bca1<_0x26b5d2[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37bca1+=0x2){let _0x26b73d=window[_0xf7ec4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26b5d2[_0xf7ec4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37bca1,_0x37bca1+0x2));_0x26b73d>=_0x4b6497[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26b73d-=_0x4b6497[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x49cf20+=_0x4b6497[_0x26b73d];}return _0x49cf20;}function _0x136d44(){const _0x3030b9=_0x5ea926[_0xf7ec4b([0x73,0x70,0x6c,0x69,0x74])](_0xf7ec4b([0x2e]));if(0x3!=_0x3030b9[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59afbb(_0x3030b9[0x1]);function _0x59afbb(_0x4a65e4){const _0x2fe8d3=_0x493ccb(_0x4a65e4);return _0x2fe8d3&&_0x2cb549()?_0x2fe8d3:null;function _0x2cb549(){const _0x3f5878=_0x2fe8d3[_0xf7ec4b([0x6a,0x74,0x69])],_0x1d802a=window[_0xf7ec4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f5878[_0xf7ec4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f5878[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23c0f0={..._0x2fe8d3,[_0xf7ec4b([0x6a,0x74,0x69])]:_0x3f5878[_0xf7ec4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f5878[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23c0f0[_0xf7ec4b([0x76,0x63])],_0x3e32aa(_0x23c0f0)==_0x1d802a;}}}async function _0x4004c8(){let _0x4797d8=!0x0;try{const _0x55a797=_0x5ea926[_0xf7ec4b([0x73,0x70,0x6c,0x69,0x74])](_0xf7ec4b([0x2e])),[_0x2ef6cd,_0x10c304,_0x37d5f7]=_0x55a797;return _0x53c0b0(_0x2ef6cd),await _0x378545(_0x2ef6cd,_0x10c304,_0x37d5f7),_0x4797d8;}catch{return!0x1;}function _0x53c0b0(_0xe0978d){const _0xc23747=_0x493ccb(_0xe0978d);_0xc23747&&_0xc23747[_0xf7ec4b([0x61,0x6c,0x67])]==_0xf7ec4b([0x45,0x53,0x32,0x35,0x36])||(_0x4797d8=!0x1);}async function _0x378545(_0xe44e32,_0x1e34ea,_0x3e7945){const _0x3eb931=window[_0xf7ec4b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf7ec4b([0x66,0x72,0x6f,0x6d])](_0x1bde06(_0x3e7945),_0x1930e4=>_0x1930e4[_0xf7ec4b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2efb1b=new window[(_0xf7ec4b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf7ec4b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xe44e32+_0xf7ec4b([0x2e])+_0x1e34ea),_0x266d2d=window[_0xf7ec4b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf7ec4b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x266d2d)return;const _0x2ad82b=await _0x266d2d[_0xf7ec4b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf7ec4b([0x6a,0x77,0x6b]),_0x16c829,{[_0xf7ec4b([0x6e,0x61,0x6d,0x65])]:_0xf7ec4b([0x45,0x43,0x44,0x53,0x41]),[_0xf7ec4b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf7ec4b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf7ec4b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x266d2d[_0xf7ec4b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf7ec4b([0x6e,0x61,0x6d,0x65])]:_0xf7ec4b([0x45,0x43,0x44,0x53,0x41]),[_0xf7ec4b([0x68,0x61,0x73,0x68])]:{[_0xf7ec4b([0x6e,0x61,0x6d,0x65])]:_0xf7ec4b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ad82b,_0x3eb931,_0x2efb1b)||(_0x4797d8=!0x1);}}function _0x493ccb(_0x622d3f){return _0x622d3f[_0xf7ec4b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf7ec4b([0x65,0x79]))?JSON[_0xf7ec4b([0x70,0x61,0x72,0x73,0x65])](_0x1bde06(_0x622d3f)):null;}function _0x1bde06(_0x5500c2){return window[_0xf7ec4b([0x61,0x74,0x6f,0x62])](_0x5500c2[_0xf7ec4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf7ec4b([0x2b]))[_0xf7ec4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf7ec4b([0x2f])));}function _0x3e32aa(_0x504dfb){let _0x5926b5=0x1505;function _0x541396(_0xab6261){for(let _0x285fc4=0x0;_0x285fc4<_0xab6261[_0xf7ec4b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x285fc4++){const _0x2839d9=_0xab6261[_0xf7ec4b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x285fc4);_0x5926b5=(_0x5926b5<<0x5)+_0x5926b5+_0x2839d9,_0x5926b5&=_0x5926b5;}}function _0x1aae55(_0x1cadcf){Array[_0xf7ec4b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1cadcf)?_0x1cadcf[_0xf7ec4b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1aae55):_0x1cadcf&&typeof _0x1cadcf==_0xf7ec4b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf7ec4b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1cadcf)[_0xf7ec4b([0x73,0x6f,0x72,0x74])]()[_0xf7ec4b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x157f33,_0x3f184f])=>{_0x541396(_0x157f33),_0x1aae55(_0x3f184f);}):_0x541396(window[_0xf7ec4b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1cadcf));}return _0x1aae55(_0x504dfb),_0x5926b5>>>0x0;}function _0x3e144b(_0x514eb6){return _0x514eb6[_0xf7ec4b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf7ec4b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf7ec4b([0x30]));}function _0x2b49e6(_0x3bebeb){return _0x3bebeb[_0xf7ec4b([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf7ec4b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf7ec4b([0x6a,0x6f,0x69,0x6e])]('');}function _0x571b7(){}function _0xf7ec4b(_0x249a64){const _0x2e14b4=_0x546d;return _0x249a64[_0x2e14b4(0x13e)](_0x17225c=>String[_0x2e14b4(0x135)](_0x17225c))[_0x2e14b4(0x132)]('');}_0x354068(await _0x3f0e41());}(this);}[_0x37af0e(0x123)](){const _0x3d2a37=_0x37af0e,_0x11baf6=this[_0x3d2a37(0x165)][_0x3d2a37(0x159)][_0x3d2a37(0x154)];_0x11baf6[_0x3d2a37(0x136)](_0x3d2a37(0x157))&&_0x11baf6[_0x3d2a37(0x15b)](_0x3d2a37(0x157),{'allowAttributes':[_0x3d2a37(0x127)]}),_0x11baf6[_0x3d2a37(0x136)](_0x3d2a37(0x130))&&_0x11baf6[_0x3d2a37(0x15b)](_0x3d2a37(0x130),{'allowAttributes':[_0x3d2a37(0x127)]});}[_0x37af0e(0x116)](){const _0x1e15fa=_0x37af0e,_0x479c7e=this[_0x1e15fa(0x165)];_0x479c7e[_0x1e15fa(0x161)][_0x1e15fa(0x158)](_0x1e15fa(0x13d))[_0x1e15fa(0x15a)]({'model':_0x1e15fa(0x127),'view':_0x1e15fa(0x141)}),_0x479c7e[_0x1e15fa(0x161)][_0x1e15fa(0x158)](_0x1e15fa(0x11f))[_0x1e15fa(0x119)]({'model':{'key':_0x1e15fa(0x127),'value':_0x1cdb39=>_0x1cdb39[_0x1e15fa(0x148)](_0x1e15fa(0x141))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xd58a72=_0x479c7e[_0x1e15fa(0x139)][_0x1e15fa(0x164)](_0x1e15fa(0x14f));_0xd58a72&&this[_0x1e15fa(0x14d)](_0xd58a72,_0x1e15fa(0x160),(_0x51376f,[_0x1c017f,_0x3df654])=>{const _0x2b2acf=_0x1e15fa;_0x1c017f[_0x2b2acf(0x11e)](_0x2b2acf(0x127),_0x3df654);});}[_0x37af0e(0x121)](){const _0x12bc87=_0x37af0e,_0x58c7ab=this[_0x12bc87(0x165)][_0x12bc87(0x129)][_0x12bc87(0x164)](_0x12bc87(0x138))||{},_0x28d95e=this[_0x12bc87(0x165)][_0x12bc87(0x129)][_0x12bc87(0x164)](_0x12bc87(0x137))||'';this[_0x12bc87(0x12d)]=_0x1dffb4(_0x5437ec[_0x12bc87(0x118)],_0x12bc87(0x11b),{..._0x58c7ab,'pubkey':_0x28d95e,'ctx-name':_0x12bc87(0x11d),'sourceList':'','imgOnly':_0x12bc87(0x14e),'removeCopyright':_0x12bc87(0x14e),'localeName':this[_0x12bc87(0x165)][_0x12bc87(0x120)][_0x12bc87(0x13a)],'externalSourcesEmbedCss':_0x12bc87(0x124)}),this[_0x12bc87(0x12d)][_0x12bc87(0x131)]=_0x102171=>{const _0x2e7e18=_0x12bc87;if(_0x2e7e18(0x125)==_0x102171)return _0x2e7e18(0x12f);},_0x5437ec[_0x12bc87(0x118)][_0x12bc87(0x150)][_0x12bc87(0x13b)](this[_0x12bc87(0x12d)]);}[_0x37af0e(0x166)](){const _0x2b61bb=_0x37af0e;this[_0x2b61bb(0x15e)]=_0x1dffb4(_0x5437ec[_0x2b61bb(0x118)],_0x2b61bb(0x13f),{'ctx-name':_0x2b61bb(0x11d)}),_0x5437ec[_0x2b61bb(0x118)][_0x2b61bb(0x150)][_0x2b61bb(0x13b)](this[_0x2b61bb(0x15e)]);}[_0x37af0e(0x144)](){const _0x53eb48=_0x37af0e,_0x4cb53e=this[_0x53eb48(0x165)][_0x53eb48(0x139)][_0x53eb48(0x164)](_0x53eb48(0x11a));_0x4cb53e&&this[_0x53eb48(0x14d)](_0x4cb53e,_0x53eb48(0x12e),()=>{const _0x14a698=_0x53eb48,_0x25b849=this[_0x14a698(0x165)][_0x14a698(0x159)][_0x14a698(0x118)][_0x14a698(0x14b)][_0x14a698(0x15d)]();_0x25b849&&_0x25b849[_0x14a698(0x148)](_0x14a698(0x127))&&this[_0x14a698(0x165)][_0x14a698(0x15f)][_0x14a698(0x12c)][_0x14a698(0x133)](_0x14a698(0x11c),()=>{const _0x43e37a=_0x14a698;_0x4e161c(this[_0x43e37a(0x165)],_0x25b849);});});const _0x2f6706=this[_0x53eb48(0x165)][_0x53eb48(0x139)][_0x53eb48(0x164)](_0x53eb48(0x134));_0x2f6706&&this[_0x53eb48(0x14d)](_0x2f6706,_0x53eb48(0x12e),()=>{const _0x550b35=_0x53eb48,_0x2aef75=this[_0x550b35(0x165)][_0x550b35(0x159)][_0x550b35(0x118)][_0x550b35(0x14b)][_0x550b35(0x15d)]();_0x2aef75&&_0x2aef75[_0x550b35(0x148)](_0x550b35(0x127))&&this[_0x550b35(0x165)][_0x550b35(0x15f)][_0x550b35(0x12c)][_0x550b35(0x133)](_0x550b35(0x11c),()=>{const _0x1bb1b4=_0x550b35;_0x4e161c(this[_0x1bb1b4(0x165)],_0x2aef75);});});}}function _0x1bff(){const _0x37c367=['destroy','selection','2694kgrBtB','listenTo','true','replaceImageSource','body','remove','uploadcare','2182214gRKDaY','schema','isPremiumPlugin','ctxElement','imageBlock','for','model','attributeToAttribute','extend','311514LGEPAT','getSelectedElement','_ctxElement','editing','cleanupImage','conversion','14638257DDtQRi','5053276drTkMz','get','editor','_initCtx','add','requires','_initConversion','href','document','elementToAttribute','insertImage','uc-config','render','uploader','removeAttribute','upcast','locale','_initConfig','init','_initSchema','\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','closeMax','3HgfQen','uploadcareImageId','4426792kQDyHc','config','22918ePyLQH','configElement','view','_configElement','execute','#uc-icon-arrow-down','imageInline','iconHrefResolver','join','once','uploadcareImageReplace','fromCharCode','isRegistered','uploadcare.pubkey','uploadcare.uploader','commands','contentLanguage','appendChild','PictureEditing','downcast','map','uc-upload-ctx-provider','afterInit','data-uc-image-id','input[uploadcare-file-input]','querySelector','_initImageProcessingIndicator','UploadcareEditing','isOfficialPlugin','6490580uHfDJM','getAttribute','pluginName'];_0x1bff=function(){return _0x37c367;};return _0x1bff();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x54f38a,ObservableMixin as _0x379aef}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x57f573}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4b1763}from'ckeditor5/src/icons.js';import _0x17efa8 from'./uploadcareimageeditformview.js';import _0x402e55 from'../../utils/uploadutils.js';import{getImageUrls as _0x54cd26,getImageDimension as _0x5ee1fe}from'../../utils/editingutils.js';import{isAncestor as _0x37d51a}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x379aef(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x57a26d,_0x43690e,_0x3107e3){super(),this['_editor']=_0x57a26d,this['_dialog']=_0x43690e,this['_imageElement']=_0x3107e3,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 _0x1f6cea=this['_imageElement'],_0x301936=_0x1f6cea['getAttribute']('uploadcareImageId'),_0x17e063=_0x1f6cea['getAttribute']('src');if(_0x301936)await this['_loadImageInfo'](_0x301936,_0x17e063);else{if(this['_imageCache']['has'](_0x17e063)){const _0x220eee=this['_imageCache']['get'](_0x17e063);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x220eee['url'],this['imageDimension']=_0x220eee['dimension'],this['imageId']=_0x220eee['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x636a41}=this['_editor'],t=_0x636a41['t'],_0x162ae1=new _0x17efa8(_0x636a41,this['imageStatus'],this['_attributes']);_0x162ae1['bind']('status')['to'](this,'imageStatus'),_0x162ae1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x162ae1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x162ae1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x162ae1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4b1763,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x162ae1,'position':_0x57f573['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x162ae1['focus']();},'onHide':()=>{_0x162ae1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x145689=>!_0x37d51a(_0x145689,_0x162ae1['element'])}});}['_loadImageInfo'](_0x1a09c7,_0x3d7e1c){return _0x402e55['getInfo'](_0x1a09c7,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x114390=>{const {width:_0x56010a,height:_0x3848f4}=_0x114390['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d7e1c,this['imageDimension']={'width':_0x56010a,'height':_0x3848f4},this['imageId']=_0x1a09c7;})['catch'](_0x28bfaf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x28bfaf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4e4564,_0xe2ba3e){return this['_getImageAsFile'](_0x4e4564)['then'](_0x27785a=>_0x402e55['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xe2ba3e['signal'],'file':_0x27785a,'onProgress':_0x1dc3ac=>{_0x1dc3ac&&_0x1dc3ac['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1dc3ac['value']));}}))['then'](_0x92e6e6=>{const {width:_0x26e576,height:_0x5eea1c}=_0x92e6e6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x92e6e6['cdnUrl'],this['imageDimension']={'width':_0x26e576,'height':_0x5eea1c},this['imageId']=_0x92e6e6['uuid'],this['imageUploadProgress']=null;const _0x369445=_0x4e4564['getAttribute']('src');this['_imageCache']['set'](_0x369445,{'id':_0x92e6e6['uuid'],'url':_0x92e6e6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5dc3d4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5dc3d4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1226c1,_0x2dc6a1){_0x1226c1['on']('apply',(_0x501d68,_0x48eb4d)=>{this['_replaceImage'](_0x2dc6a1,_0x48eb4d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1226c1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1226c1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x454d7d,_0x48f408,_0x2fb774){const _0x380d1d=this['_editor'],{width:_0x79b451,height:_0x28dc87}=_0x5ee1fe(_0x48f408,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2b92e4,imageSources:_0x20b02b}=_0x54cd26(_0x48f408,_0x79b451);_0x380d1d['model']['change'](_0xd5fc3e=>{if('$graveyard'===_0x454d7d['root']['rootName']){_0x380d1d['execute']('insertImage',{'imageType':_0x454d7d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x454d7d['getAttributes']()),'uploadcareImageId':_0x2fb774,'src':_0x2b92e4,'sources':_0x20b02b,'width':_0x79b451,'height':_0x28dc87}});const _0x32dca5=_0x454d7d['getChildren']();_0x454d7d=_0x380d1d['model']['document']['selection']['getSelectedElement']();for(const _0x3370fa of _0x32dca5)_0xd5fc3e['append'](_0xd5fc3e['cloneElement'](_0x3370fa),_0x454d7d);}else _0xd5fc3e['setSelection'](_0x454d7d,'on'),_0x380d1d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x454d7d['getAttributes']()),'uploadcareImageId':_0x2fb774,'src':_0x2b92e4,'sources':_0x20b02b,'width':_0x79b451,'height':_0x28dc87},_0x454d7d);_0xd5fc3e['setSelection'](_0x454d7d,'on');});}async['_getImageAsFile'](_0x308302){const _0x50c5e0=_0x54f38a['window'],_0x1e4f95=_0x54f38a['document']['location']['href'],_0x9da8a7=new _0x50c5e0['URL'](_0x308302['getAttribute']('src'),_0x1e4f95);if('data:'===_0x9da8a7['protocol']){const _0x1e0233=_0x9da8a7['href']['split'](','),_0x630620=_0x1e0233[0x0]['match'](/:(.*?);/)[0x1],_0x48008e=_0x630620['split']('/')[0x1],_0x18ff48=_0x50c5e0['atob'](_0x1e0233[_0x1e0233['length']-0x1]);let _0x45653f=_0x18ff48['length'];const _0x406e4f=new _0x50c5e0['Uint8Array'](_0x45653f);for(;_0x45653f--;)_0x406e4f[_0x45653f]=_0x18ff48['charCodeAt'](_0x45653f);return new _0x50c5e0['File']([_0x406e4f],'image.'+_0x48008e,{'type':_0x630620});}const _0x58ac33=_0x9da8a7['href']['split']('/'),_0x223cad=_0x58ac33[_0x58ac33['length']-0x1],_0x1bac00=_0x223cad['split']('.')[0x1];return _0x50c5e0['fetch'](_0x9da8a7['href'])['then'](_0x4407c1=>_0x4407c1['clone']()['blob']())['then'](_0x5cc8ad=>new _0x50c5e0['File']([_0x5cc8ad],_0x223cad,{'type':'image/'+_0x1bac00}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4357(_0x2c5742,_0x260d87){const _0x2e6376=_0x2e63();return _0x4357=function(_0x435764,_0x36672c){_0x435764=_0x435764-0xd7;let _0x5d4179=_0x2e6376[_0x435764];return _0x5d4179;},_0x4357(_0x2c5742,_0x260d87);}(function(_0x32cdad,_0xf8b388){const _0x1d25b6=_0x4357,_0x325195=_0x32cdad();while(!![]){try{const _0x2d05d1=parseInt(_0x1d25b6(0xd8))/0x1*(parseInt(_0x1d25b6(0xe6))/0x2)+-parseInt(_0x1d25b6(0xe5))/0x3*(-parseInt(_0x1d25b6(0xe4))/0x4)+-parseInt(_0x1d25b6(0xe0))/0x5+parseInt(_0x1d25b6(0xe1))/0x6+-parseInt(_0x1d25b6(0xe2))/0x7*(-parseInt(_0x1d25b6(0xdf))/0x8)+parseInt(_0x1d25b6(0xe3))/0x9+parseInt(_0x1d25b6(0xe7))/0xa*(-parseInt(_0x1d25b6(0xda))/0xb);if(_0x2d05d1===_0xf8b388)break;else _0x325195['push'](_0x325195['shift']());}catch(_0x4843ef){_0x325195['push'](_0x325195['shift']());}}}(_0x2e63,0xe53c6));import{View as _0x6aaaf6}from'ckeditor5/src/ui.js';function _0x2e63(){const _0x43c856=['10939788ZiQHzi','1057lwWCmX','10277766gkCCFh','532444LmdeIo','39WPpuRY','174jzKUjL','10MokIcU','bindTemplate','uc-cloud-image-editor','setTemplate','10907LgaGpq','ck-uploadcare-theme','63817171gatEMl','set','imageSrc','image-edit','uc-light','64744gNaajo','630780eSkMvY'];_0x2e63=function(){return _0x43c856;};return _0x2e63();}export default class tt extends _0x6aaaf6{constructor(_0x2d1b7c,_0x3c9b61){const _0x266047=_0x4357;super(_0x2d1b7c);const _0x456045=this[_0x266047(0xe8)];this[_0x266047(0xdb)](_0x266047(0xdc),''),this[_0x266047(0xd7)]({'tag':_0x266047(0xe9),'attributes':{..._0x3c9b61,'class':[_0x266047(0xde),_0x266047(0xd9)],'ctx-name':_0x266047(0xdd),'cdn-url':_0x456045['to'](_0x266047(0xdc))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x382daa,IconView as at,View as _0x3b20a6}from'ckeditor5/src/ui.js';export default class rt extends _0x3b20a6{constructor(_0xf682c2){super(_0xf682c2);const t=_0xf682c2['t'];this['set']('errorType',null);const _0x3100c7=new _0x382daa(_0xf682c2);_0x3100c7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3100c7['withText']=!0x0,_0x3100c7['class']='ck-button-action',_0x3100c7['on']('execute',()=>{this['fire']('retry');}),_0x3100c7['bind']('isVisible')['to'](this,'errorType',_0x2101bb=>'NotFound'!==_0x2101bb);const _0x4d44d6=new at();_0x4d44d6['content']=et,_0x4d44d6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x298fd1=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':[_0x4d44d6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x298fd1['to']('errorType',_0x3a4272=>t('NotFound'!==_0x3a4272?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3100c7]},{'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 _0x312beb,View as _0x2ddf73}from'ckeditor5/src/ui.js';export default class ta extends _0x2ddf73{constructor(_0x4fa8c4){super(_0x4fa8c4);const t=_0x4fa8c4['t'],_0x1a4d5d=this['bindTemplate'],_0x182a0e=new _0x312beb();_0x182a0e['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':[_0x182a0e,{'text':_0x1a4d5d['to']('imageUploadProgress',_0x3e0cfa=>t('Loading\x20image...')+'\x20('+(_0x3e0cfa||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 _0x1bc129=_0x5db5;(function(_0x303f4d,_0x52cf47){const _0x558436=_0x5db5,_0x5aa967=_0x303f4d();while(!![]){try{const _0x1b0e5b=-parseInt(_0x558436(0xc5))/0x1*(parseInt(_0x558436(0xc4))/0x2)+-parseInt(_0x558436(0xcb))/0x3+parseInt(_0x558436(0xdb))/0x4+parseInt(_0x558436(0xdc))/0x5+parseInt(_0x558436(0xb2))/0x6*(parseInt(_0x558436(0xaa))/0x7)+parseInt(_0x558436(0xd3))/0x8*(-parseInt(_0x558436(0xd1))/0x9)+-parseInt(_0x558436(0xb4))/0xa*(-parseInt(_0x558436(0xbe))/0xb);if(_0x1b0e5b===_0x52cf47)break;else _0x5aa967['push'](_0x5aa967['shift']());}catch(_0x4136df){_0x5aa967['push'](_0x5aa967['shift']());}}}(_0x2289,0x9393e));import{View as _0x43cee5}from'ckeditor5/src/ui.js';import _0x7154f8 from'./uploadcareimageeditformloadingview.js';function _0x5db5(_0x329026,_0x3911e1){const _0x228914=_0x2289();return _0x5db5=function(_0x5db56b,_0x5dcafa){_0x5db56b=_0x5db56b-0xa5;let _0x12ddc7=_0x228914[_0x5db56b];return _0x12ddc7;},_0x5db5(_0x329026,_0x3911e1);}import _0x55baa2 from'./uploadcareimageeditformerrorview.js';import _0x288098 from'./uploadcareimageeditformeditingview.js';import _0xe5bf02 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x2289(){const _0xdb959f=['target','ck-uploadcare-form','_setView','disconnect','addEventListener','observe','4222559hRgqxF','element','uploading','focus','ready','_items','413778CoyWKU','5UyTZDb','retry','_addUploadcareImageEditorListeners','render','change:status','error','803802vJvdif','_loadingView','querySelector','_errorView','setTemplate','_focusableView','36vIbGFC','createCollection','552584SJmtbl','length','addedNodes','addMany','ck-reset_all-excluded','once','detail','fire','2183208skPSXc','2023280udTeSG','status','_editingView','uc-cloud-image-editor','nodeName','cancel','609IkYqvF','_waitForImageEditorComponent','div','getFocusableElement','set','_addErrorViewListeners','apply','cdnUrl','5592pEEzUR','filter','30ONWhdk','add','toLowerCase','clear'];_0x2289=function(){return _0xdb959f;};return _0x2289();}export default class Z extends _0xe5bf02{[_0x1bc129(0xc3)];[_0x1bc129(0xcc)];[_0x1bc129(0xce)];[_0x1bc129(0xa6)];[_0x1bc129(0xd0)];constructor(_0x29d14d,_0x37c781,_0x3e10ad){const _0x202fd9=_0x1bc129;super(_0x29d14d),this[_0x202fd9(0xc3)]=this[_0x202fd9(0xd2)](),this[_0x202fd9(0xcc)]=new _0x7154f8(_0x29d14d),this[_0x202fd9(0xce)]=new _0x55baa2(_0x29d14d),this[_0x202fd9(0xa6)]=new _0x288098(_0x29d14d,_0x3e10ad),this[_0x202fd9(0xd0)]=new _0x43cee5(_0x29d14d),this[_0x202fd9(0xd0)][_0x202fd9(0xcf)](this[_0x202fd9(0xad)]()),this[_0x202fd9(0xae)](_0x202fd9(0xa5),_0x37c781),this[_0x202fd9(0xcf)]({'tag':_0x202fd9(0xac),'attributes':{'class':['ck',_0x202fd9(0xd7),_0x202fd9(0xb9)],'tabindex':'-1'},'children':this[_0x202fd9(0xc3)]}),this[_0x202fd9(0xba)](),this[_0x202fd9(0xd8)](_0x202fd9(0xc8),()=>{const _0x428cb9=_0x202fd9;this[_0x428cb9(0xab)](this[_0x428cb9(0xbf)],_0x36f33c=>{const _0x5e43bb=_0x428cb9;this[_0x5e43bb(0xc7)](_0x36f33c);});}),this['on'](_0x202fd9(0xc9),()=>{const _0x40581a=_0x202fd9;this[_0x40581a(0xba)]();}),this[_0x202fd9(0xaf)]();}[_0x1bc129(0xc1)](){const _0x1e9c9d=_0x1bc129;this[_0x1e9c9d(0xbf)][_0x1e9c9d(0xc1)]();}[_0x1bc129(0xba)](){const _0x49fdaa=_0x1bc129;switch(this[_0x49fdaa(0xc3)][_0x49fdaa(0xb7)](),this[_0x49fdaa(0xa5)]){case _0x49fdaa(0xc0):this[_0x49fdaa(0xc3)][_0x49fdaa(0xb5)](this[_0x49fdaa(0xcc)]);break;case _0x49fdaa(0xca):this[_0x49fdaa(0xc3)][_0x49fdaa(0xb5)](this[_0x49fdaa(0xce)]);break;case _0x49fdaa(0xc2):this[_0x49fdaa(0xc3)][_0x49fdaa(0xd6)]([this[_0x49fdaa(0xa6)],this[_0x49fdaa(0xd0)]]);}}[_0x1bc129(0xab)](_0x15a795,_0x4577bd){const _0x53b2bb=_0x1bc129,_0x54260a=_0x53b2bb(0xa7),_0x46ac75=_0x15a795[_0x53b2bb(0xcd)](_0x54260a);if(_0x46ac75)return _0x4577bd(_0x46ac75);const _0x4b47f7=new MutationObserver(_0x212bbb=>{const _0x2dbf4b=_0x53b2bb,_0x16f88b=_0x212bbb[_0x2dbf4b(0xb3)](_0x1939de=>_0x1939de[_0x2dbf4b(0xb8)]===_0x15a795&&_0x1939de[_0x2dbf4b(0xd5)][_0x2dbf4b(0xd4)]>0x0&&_0x1939de[_0x2dbf4b(0xd5)][0x0][_0x2dbf4b(0xa8)][_0x2dbf4b(0xb6)]()===_0x54260a);_0x16f88b[_0x2dbf4b(0xd4)]&&(_0x4b47f7[_0x2dbf4b(0xbb)](),_0x4577bd(_0x16f88b[0x0][_0x2dbf4b(0xd5)][0x0]));});_0x4b47f7[_0x53b2bb(0xbd)](_0x15a795,{'childList':!0x0,'subtree':!0x0});}[_0x1bc129(0xc7)](_0x3a328f){const _0x3a0991=_0x1bc129;_0x3a328f[_0x3a0991(0xbc)](_0x3a0991(0xb0),_0x5e4159=>{const _0xcccce8=_0x3a0991;this[_0xcccce8(0xda)](_0xcccce8(0xb0),{'imageSrc':_0x5e4159[_0xcccce8(0xd9)][_0xcccce8(0xb1)]});}),_0x3a328f[_0x3a0991(0xbc)](_0x3a0991(0xa9),()=>{const _0x36eaa5=_0x3a0991;this[_0x36eaa5(0xda)](_0x36eaa5(0xa9));});}[_0x1bc129(0xaf)](){const _0x32a1fd=_0x1bc129;this[_0x32a1fd(0xce)]['on'](_0x32a1fd(0xc6),()=>{const _0x2beb53=_0x32a1fd;this[_0x2beb53(0xda)](_0x2beb53(0xc6));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5350(_0xc78a74,_0x2766fa){const _0x42c012=_0x42c0();return _0x5350=function(_0x53506c,_0x470a01){_0x53506c=_0x53506c-0x13a;let _0x17e9a1=_0x42c012[_0x53506c];return _0x17e9a1;},_0x5350(_0xc78a74,_0x2766fa);}function _0x42c0(){const _0x54afb9=['6300445ztwdFv','model','document','imageEditController','uploadcare.allowExternalImagesEditing','isActive','editor','refresh','isEnabled','4PqonPF','getSelectedElement','plugins','2793405RJvdnO','element','346254lZSmIL','8JMPaDY','_isEditable','unbind','execute','get','config','7IesjEn','3645930UlHyoq','3840363BFtJGb','requires','imageBlock','selection','bind','2YhPYJA','set','imageInline','3764695JQjVyl','459219VgrUlk'];_0x42c0=function(){return _0x54afb9;};return _0x42c0();}const _0x55af3b=_0x5350;(function(_0x310f69,_0x2625e5){const _0x43b19f=_0x5350,_0x47908d=_0x310f69();while(!![]){try{const _0x4dd64a=-parseInt(_0x43b19f(0x145))/0x1*(-parseInt(_0x43b19f(0x141))/0x2)+-parseInt(_0x43b19f(0x152))/0x3*(-parseInt(_0x43b19f(0x14f))/0x4)+-parseInt(_0x43b19f(0x146))/0x5+parseInt(_0x43b19f(0x154))/0x6*(parseInt(_0x43b19f(0x13a))/0x7)+parseInt(_0x43b19f(0x155))/0x8*(parseInt(_0x43b19f(0x13c))/0x9)+parseInt(_0x43b19f(0x13b))/0xa+-parseInt(_0x43b19f(0x144))/0xb;if(_0x4dd64a===_0x2625e5)break;else _0x47908d['push'](_0x47908d['shift']());}catch(_0x169461){_0x47908d['push'](_0x47908d['shift']());}}}(_0x42c0,0x9b865));import{Command as _0x1f6420}from'ckeditor5/src/core.js';import{Dialog as _0x1d4a59}from'ckeditor5/src/ui.js';import _0x1a5d25 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x406376}from'../utils/editingutils.js';export default class J extends _0x1f6420{[_0x55af3b(0x149)];static get[_0x55af3b(0x13d)](){return[_0x1d4a59];}[_0x55af3b(0x156)];constructor(_0x54bb93){const _0x2251ce=_0x55af3b;super(_0x54bb93),this[_0x2251ce(0x149)]=void 0x0,this[_0x2251ce(0x156)]=_0x406376(_0x54bb93[_0x2251ce(0x15a)][_0x2251ce(0x159)](_0x2251ce(0x14a))||[]),this[_0x2251ce(0x142)]({'isActive':!0x1});}[_0x55af3b(0x14d)](){const _0x1fb26f=_0x55af3b,_0x434416=this[_0x1fb26f(0x14c)][_0x1fb26f(0x147)][_0x1fb26f(0x148)][_0x1fb26f(0x13f)][_0x1fb26f(0x150)]();this[_0x1fb26f(0x14e)]=this[_0x1fb26f(0x156)](_0x434416);}[_0x55af3b(0x158)](){const _0x35eb6f=_0x55af3b;this[_0x35eb6f(0x149)]&&(this[_0x35eb6f(0x157)](_0x35eb6f(0x14b)),this[_0x35eb6f(0x149)]=void 0x0);const _0x54bb7b=this[_0x35eb6f(0x14c)][_0x35eb6f(0x147)][_0x35eb6f(0x148)][_0x35eb6f(0x13f)][_0x35eb6f(0x150)]();_0x54bb7b&&(_0x54bb7b['is'](_0x35eb6f(0x153),_0x35eb6f(0x13e))||_0x54bb7b['is'](_0x35eb6f(0x153),_0x35eb6f(0x143)))&&(this[_0x35eb6f(0x149)]=new _0x1a5d25(this[_0x35eb6f(0x14c)],this[_0x35eb6f(0x14c)][_0x35eb6f(0x151)][_0x35eb6f(0x159)](_0x1d4a59),_0x54bb7b),this[_0x35eb6f(0x140)](_0x35eb6f(0x14b))['to'](this[_0x35eb6f(0x149)],_0x35eb6f(0x14b)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42b8f4=_0x1fdf;(function(_0x306bd1,_0x1c2dd9){const _0x4a0f86=_0x1fdf,_0x5a8b01=_0x306bd1();while(!![]){try{const _0x31b3ee=-parseInt(_0x4a0f86(0xe3))/0x1+parseInt(_0x4a0f86(0xe1))/0x2*(parseInt(_0x4a0f86(0xef))/0x3)+parseInt(_0x4a0f86(0xe2))/0x4*(parseInt(_0x4a0f86(0xdf))/0x5)+-parseInt(_0x4a0f86(0xed))/0x6+-parseInt(_0x4a0f86(0xe7))/0x7*(-parseInt(_0x4a0f86(0xe5))/0x8)+-parseInt(_0x4a0f86(0xf0))/0x9+parseInt(_0x4a0f86(0xea))/0xa*(parseInt(_0x4a0f86(0xeb))/0xb);if(_0x31b3ee===_0x1c2dd9)break;else _0x5a8b01['push'](_0x5a8b01['shift']());}catch(_0x107d9c){_0x5a8b01['push'](_0x5a8b01['shift']());}}}(_0x48c6,0xa829f));import{Plugin as _0x4d2771}from'ckeditor5/src/core.js';import{Notification as _0x572977}from'ckeditor5/src/ui.js';import _0x3ba2dc from'./uploadcareimageeditcommand.js';function _0x48c6(){const _0xd74806=['init','12910AYXVTK','116692svSSwj','996388KjRSfl','requires','8ykRZXE','ImageUtils','1612163lYzvbE','ImageEditing','UploadcareImageEditEditing','10IXlyok','6433735KEkIkM','commands','346728tVJzor','pluginName','132qwmMrX','244962tayAFO','add','isPremiumPlugin','uploadcareImageReplace','uploadcareImageEdit','isOfficialPlugin','115GfWMDB'];_0x48c6=function(){return _0xd74806;};return _0x48c6();}import _0x3a7c07 from'./uploadcareimagereplacecommand.js';import _0x538bdf from'../uploadcareediting.js';function _0x1fdf(_0x2a7423,_0x491fb7){const _0x48c689=_0x48c6();return _0x1fdf=function(_0x1fdf92,_0x4390ad){_0x1fdf92=_0x1fdf92-0xda;let _0x44dc70=_0x48c689[_0x1fdf92];return _0x44dc70;},_0x1fdf(_0x2a7423,_0x491fb7);}export default class g extends _0x4d2771{static get[_0x42b8f4(0xee)](){const _0x51a069=_0x42b8f4;return _0x51a069(0xe9);}static get[_0x42b8f4(0xe4)](){const _0x1edafa=_0x42b8f4;return[_0x538bdf,_0x572977,_0x1edafa(0xe6),_0x1edafa(0xe8)];}static get[_0x42b8f4(0xde)](){return!0x0;}static get[_0x42b8f4(0xdb)](){return!0x0;}[_0x42b8f4(0xe0)](){const _0x33115f=_0x42b8f4,{editor:_0x37d35d}=this;_0x37d35d[_0x33115f(0xec)][_0x33115f(0xda)](_0x33115f(0xdd),new _0x3ba2dc(_0x37d35d)),_0x37d35d[_0x33115f(0xec)][_0x33115f(0xda)](_0x33115f(0xdc),new _0x3a7c07(_0x37d35d));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x522241}from'ckeditor5/src/core.js';import{ButtonView as _0x21770b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x49c9f7}from'ckeditor5/src/icons.js';import{createElement as _0x2cca9c}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x522241{['_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 _0x4ca6e3=this['editor'];_0x4ca6e3['ui']['componentFactory']['add']('uploadcareImageEdit',_0x550af0=>{const _0x1c83d4=_0x4ca6e3['commands']['get']('uploadcareImageEdit'),_0x1f734f=new _0x21770b(_0x550af0),t=_0x550af0['t'];return _0x1f734f['set']({'icon':_0x49c9f7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1f734f['bind']('isEnabled')['to'](_0x1c83d4),_0x1f734f['bind']('isOn')['to'](_0x1c83d4,'isActive'),this['listenTo'](_0x1f734f,'execute',()=>{_0x4ca6e3['execute']('uploadcareImageEdit'),_0x4ca6e3['editing']['view']['focus']();}),_0x1f734f;}),this['_initConfig']();}['_initConfig'](){const _0x2afddf=_0x2cca9c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2afddf),this['listenTo'](this['editor'],'destroy',()=>{_0x2afddf['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x522e91=_0x5817;function _0x5817(_0x361be0,_0x870e3b){const _0x3dd6f2=_0x3dd6();return _0x5817=function(_0x581768,_0x3f3f35){_0x581768=_0x581768-0x7c;let _0x5efd66=_0x3dd6f2[_0x581768];return _0x5efd66;},_0x5817(_0x361be0,_0x870e3b);}function _0x3dd6(){const _0x32d1aa=['1259040ywDHNO','23896wRjqls','setAttributes','model','refresh','imageInline','element','307137UsmpMd','2544549NfsGBl','637726drCFfU','srcset','isEnabled','sizes','selection','execute','change','imageBlock','getSelectedElement','removeAttribute','606580aYYhlQ','editor','690275Cybnhl','document'];_0x3dd6=function(){return _0x32d1aa;};return _0x3dd6();}(function(_0x2aed48,_0x5630bc){const _0x57fb6a=_0x5817,_0x276a6f=_0x2aed48();while(!![]){try{const _0x4afeed=parseInt(_0x57fb6a(0x86))/0x1+-parseInt(_0x57fb6a(0x8e))/0x2+-parseInt(_0x57fb6a(0x8c))/0x3+-parseInt(_0x57fb6a(0x81))/0x4+parseInt(_0x57fb6a(0x83))/0x5+parseInt(_0x57fb6a(0x85))/0x6+parseInt(_0x57fb6a(0x8d))/0x7;if(_0x4afeed===_0x5630bc)break;else _0x276a6f['push'](_0x276a6f['shift']());}catch(_0x250171){_0x276a6f['push'](_0x276a6f['shift']());}}}(_0x3dd6,0x27a6b));import{Command as _0x148717}from'ckeditor5/src/core.js';export default class O extends _0x148717{[_0x522e91(0x89)](){const _0x5f4d56=_0x522e91,_0x4a977b=this[_0x5f4d56(0x82)][_0x5f4d56(0x88)][_0x5f4d56(0x84)][_0x5f4d56(0x92)][_0x5f4d56(0x7f)]();this[_0x5f4d56(0x90)]=Boolean(_0x4a977b&&(_0x4a977b['is'](_0x5f4d56(0x8b),_0x5f4d56(0x7e))||_0x4a977b['is'](_0x5f4d56(0x8b),_0x5f4d56(0x8a))));}[_0x522e91(0x7c)](_0x1d1eb8){const _0x1f519a=_0x522e91,_0x1347f8=this[_0x1f519a(0x82)][_0x1f519a(0x88)][_0x1f519a(0x84)][_0x1f519a(0x92)][_0x1f519a(0x7f)]();this[_0x1f519a(0x82)][_0x1f519a(0x88)][_0x1f519a(0x7d)](_0x233c8d=>{const _0x3499fc=_0x1f519a;_0x233c8d[_0x3499fc(0x87)](_0x1d1eb8,_0x1347f8),_0x233c8d[_0x3499fc(0x80)](_0x3499fc(0x8f),_0x1347f8),_0x233c8d[_0x3499fc(0x80)](_0x3499fc(0x91),_0x1347f8);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xe10326=_0x4d37;(function(_0x4f4bcf,_0x3c563d){var _0xba1fb2=_0x4d37,_0x30f907=_0x4f4bcf();while(!![]){try{var _0x35372e=-parseInt(_0xba1fb2(0x15e))/0x1+-parseInt(_0xba1fb2(0x168))/0x2*(parseInt(_0xba1fb2(0x163))/0x3)+parseInt(_0xba1fb2(0x166))/0x4+parseInt(_0xba1fb2(0x162))/0x5*(-parseInt(_0xba1fb2(0x161))/0x6)+parseInt(_0xba1fb2(0x16a))/0x7*(-parseInt(_0xba1fb2(0x169))/0x8)+parseInt(_0xba1fb2(0x167))/0x9+-parseInt(_0xba1fb2(0x16d))/0xa*(-parseInt(_0xba1fb2(0x160))/0xb);if(_0x35372e===_0x3c563d)break;else _0x30f907['push'](_0x30f907['shift']());}catch(_0x3475a1){_0x30f907['push'](_0x30f907['shift']());}}}(_0x2ba7,0x91f9c));import{Plugin as _0x43d8cc}from'ckeditor5/src/core.js';import _0x541a4f from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x4d37(_0x1944a7,_0x39a861){var _0x2ba729=_0x2ba7();return _0x4d37=function(_0x4d3768,_0x1f858a){_0x4d3768=_0x4d3768-0x15e;var _0x438de4=_0x2ba729[_0x4d3768];return _0x438de4;},_0x4d37(_0x1944a7,_0x39a861);}import _0x158b0b from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x2ba7(){var _0x1329cc=['300368iYupUJ','21HPKMaw','pluginName','UploadcareImageEdit','10SusGJS','768740tcsXCQ','isPremiumPlugin','17420403MivCDE','12336HidKWa','395pYpsEo','22140YrQEhR','requires','isOfficialPlugin','66772YtaSIi','8475408OevatU','244VLQWIf'];_0x2ba7=function(){return _0x1329cc;};return _0x2ba7();}export default class P extends _0x43d8cc{static get[_0xe10326(0x16b)](){var _0x4681ed=_0xe10326;return _0x4681ed(0x16c);}static get[_0xe10326(0x164)](){return[_0x541a4f,_0x158b0b];}static get[_0xe10326(0x165)](){return!0x0;}static get[_0xe10326(0x15f)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x488f0f=_0x2478;(function(_0x4eefd6,_0x4fd10e){const _0x53e5ab=_0x2478,_0x15424a=_0x4eefd6();while(!![]){try{const _0x556a57=-parseInt(_0x53e5ab(0xf1))/0x1*(parseInt(_0x53e5ab(0x108))/0x2)+parseInt(_0x53e5ab(0x12b))/0x3*(parseInt(_0x53e5ab(0x121))/0x4)+-parseInt(_0x53e5ab(0xff))/0x5*(parseInt(_0x53e5ab(0x11b))/0x6)+parseInt(_0x53e5ab(0x106))/0x7*(-parseInt(_0x53e5ab(0xdb))/0x8)+parseInt(_0x53e5ab(0x11f))/0x9+parseInt(_0x53e5ab(0xfa))/0xa+parseInt(_0x53e5ab(0xe2))/0xb*(parseInt(_0x53e5ab(0x10d))/0xc);if(_0x556a57===_0x4fd10e)break;else _0x15424a['push'](_0x15424a['shift']());}catch(_0x2057c2){_0x15424a['push'](_0x15424a['shift']());}}}(_0x14a6,0x53f03));function _0x2478(_0x42d928,_0x4b06e5){const _0x14a6f5=_0x14a6();return _0x2478=function(_0x24780d,_0x5dba25){_0x24780d=_0x24780d-0xdb;let _0x19f4c9=_0x14a6f5[_0x24780d];return _0x19f4c9;},_0x2478(_0x42d928,_0x4b06e5);}import{Plugin as _0x401ac9}from'ckeditor5/src/core.js';import{IconDropbox as _0x5c75ae,IconFacebook as _0x27d81a,IconGoogleDrive as _0x52ecc1,IconGooglePhotos as _0x35acb7,IconUploadcareImageUpload as _0x32561d,IconUploadcareLink as _0x2a89b0,IconOneDrive as _0xbc23ba}from'ckeditor5/src/icons.js';import{ButtonView as _0x967075,MenuBarMenuListItemButtonView as _0x21882f}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xd71354}from'./uploadcareconfig.js';function _0x14a6(){const _0x2f95dc=['_createToolbarButton','uploadcareLicenseKeyInvalid','7RSuIiI','afterInit','6DPzUMn','reduce','GDrive','icon','commands','12VTEdGg','uploadcare','domainLimit','bind','locale','_showLicenseError','ImageInsertUI','_createMenuBarButtons','invalid','execute','push','Uploadcare','registerIntegration','uploadcareLicenseKeyTrialLimit','12MSQCrk','uploadcareLicenseKeyExpired','plugins','_licenseKeyCheckInterval','265275zejLlr','usageLimit','47636yjPmpR','UploadcareUI','uploadcareLicenseKeyUsageLimit','entries','featureNotAllowed','withText','Dropbox','uploadcare.uploader.sourceList','isEnabled','pluginName','105eYWVsd','map','GPhotos','2003208GvxyoS','trialLimit','url','get','_normalizeConfigSourceList','config','has','3800819eVaTGU','tooltip','expired','label','URL','isPremiumPlugin','Insert','_createButton','Facebook','uploadcareLicenseKeyValid','forEach','destroy','assetManager','OneDrive','Local','39631IPDhXA','uploadcareLicenseKeyNotAllowed','editor','licenseKey','shortText','uploadcareLicenseKeyDomainLimit','isOfficialPlugin','upload','uploadcareLicenseKeyEvaluationLimit','4050500nifbcU','_createDropdownButtons','_getIntegrationKey','type','text','1209410Miomye','evaluationLimit','Replace','isImageSelected','init'];_0x14a6=function(){return _0x2f95dc;};return _0x14a6();}import{getTranslation as _0x50675d}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x401ac9{[_0x488f0f(0xf4)];[_0x488f0f(0x11e)];static get[_0x488f0f(0x12a)](){const _0x44fa7e=_0x488f0f;return _0x44fa7e(0x122);}static get[_0x488f0f(0xf7)](){return!0x0;}static get[_0x488f0f(0xe7)](){return!0x0;}[_0x488f0f(0x103)](){const _0x96c818=_0x488f0f;this[_0x96c818(0xf4)]=this[_0x96c818(0xf3)][_0x96c818(0xe0)][_0x96c818(0xde)](_0x96c818(0xf4));const _0x19e8eb=this[_0x96c818(0xf3)];this[_0x96c818(0x11e)]=setInterval(()=>{const _0x3acc87=_0x96c818;let _0x300a6c;for(const _0x25a6c1 in _0x19e8eb){const _0x1f455a=_0x25a6c1,_0x5c4db8=_0x19e8eb[_0x1f455a];if(_0x3acc87(0xeb)==_0x5c4db8||_0x3acc87(0x105)==_0x5c4db8||_0x3acc87(0x11c)==_0x5c4db8||_0x3acc87(0xf6)==_0x5c4db8||_0x3acc87(0xf2)==_0x5c4db8||_0x3acc87(0xf9)==_0x5c4db8||_0x3acc87(0x11a)==_0x5c4db8||_0x3acc87(0x123)==_0x5c4db8){delete _0x19e8eb[_0x1f455a],_0x300a6c=_0x5c4db8,clearInterval(this[_0x3acc87(0x11e)]),this[_0x3acc87(0x11e)]=void 0x0;break;}}_0x3acc87(0x105)==_0x300a6c&&_0x19e8eb[_0x3acc87(0x112)](_0x3acc87(0x115)),_0x3acc87(0x11c)==_0x300a6c&&_0x19e8eb[_0x3acc87(0x112)](_0x3acc87(0xe4)),_0x3acc87(0xf6)==_0x300a6c&&_0x19e8eb[_0x3acc87(0x112)](_0x3acc87(0x10f)),_0x3acc87(0xf2)==_0x300a6c&&_0x19e8eb[_0x3acc87(0x112)](_0x3acc87(0x125),_0x3acc87(0x118)),_0x3acc87(0xf9)==_0x300a6c&&_0x19e8eb[_0x3acc87(0x112)](_0x3acc87(0x100)),_0x3acc87(0x11a)==_0x300a6c&&_0x19e8eb[_0x3acc87(0x112)](_0x3acc87(0xdc)),_0x3acc87(0x123)==_0x300a6c&&_0x19e8eb[_0x3acc87(0x112)](_0x3acc87(0x120));},0x3e8);}[_0x488f0f(0x107)](){const _0x1ba75c=_0x488f0f,{editor:_0x404e29}=this,_0x4e0caf=_0x404e29[_0x1ba75c(0x10c)][_0x1ba75c(0xde)](_0x1ba75c(0x10e));if(!_0x4e0caf)return;const _0x5b3198=this[_0x1ba75c(0xdf)](_0x404e29[_0x1ba75c(0xe0)][_0x1ba75c(0xde)](_0x1ba75c(0x128)))[_0x1ba75c(0x109)]((_0x4dfb2e,_0x87c81d)=>{const _0x4eef62=_0x1ba75c,_0x390dba=this[_0x4eef62(0xfc)](_0x87c81d[_0x4eef62(0xfd)]);return _0x4dfb2e[_0x390dba]||(_0x4dfb2e[_0x390dba]=[]),_0x4dfb2e[_0x390dba][_0x4eef62(0x117)](_0x87c81d),_0x4dfb2e;},{});_0x404e29[_0x1ba75c(0x11d)][_0x1ba75c(0xe1)](_0x1ba75c(0x113))&&_0x404e29[_0x1ba75c(0x10c)][_0x1ba75c(0xde)](_0x1ba75c(0x10e))&&Object[_0x1ba75c(0x124)](_0x5b3198)[_0x1ba75c(0xec)](([_0x1d641d,_0x444f28])=>{const _0x36ca97=_0x1ba75c;_0x404e29[_0x36ca97(0x11d)][_0x36ca97(0xde)](_0x36ca97(0x113))[_0x36ca97(0x119)]({'name':_0x1d641d,'observable':()=>_0x4e0caf,'buttonViewCreator':()=>this[_0x36ca97(0x104)](_0x444f28),'formViewCreator':()=>this[_0x36ca97(0xfb)](_0x444f28),'menuBarButtonViewCreator':()=>this[_0x36ca97(0x114)](_0x444f28),'override':_0x36ca97(0xee)!==_0x1d641d});});}[_0x488f0f(0xed)](){const _0x32026b=_0x488f0f;super[_0x32026b(0xed)](),this[_0x32026b(0x11e)]&&clearInterval(this[_0x32026b(0x11e)]);}[_0x488f0f(0xdf)](_0xb37072){const _0x95bc39=_0x488f0f,{locale:_0x5c507e}=this[_0x95bc39(0xf3)];return _0xb37072[_0x95bc39(0x12c)](_0x568eca=>{const _0x76e58c=_0x95bc39,_0x302263=_0x50675d(_0x5c507e,_0x568eca,_0x76e58c(0xe8));switch(_0x568eca){case _0xd71354[_0x76e58c(0xf0)]:return{'icon':_0x32561d,'type':_0xd71354[_0x76e58c(0xf0)],..._0x302263};case _0xd71354[_0x76e58c(0xe6)]:return{'icon':_0x2a89b0,'type':_0xd71354[_0x76e58c(0xe6)],..._0x302263};case _0xd71354[_0x76e58c(0x127)]:return{'icon':_0x5c75ae,'type':_0xd71354[_0x76e58c(0x127)],..._0x302263};case _0xd71354[_0x76e58c(0xea)]:return{'icon':_0x27d81a,'type':_0xd71354[_0x76e58c(0xea)],..._0x302263};case _0xd71354[_0x76e58c(0x10a)]:return{'icon':_0x52ecc1,'type':_0xd71354[_0x76e58c(0x10a)],..._0x302263};case _0xd71354[_0x76e58c(0x12d)]:return{'icon':_0x35acb7,'type':_0xd71354[_0x76e58c(0x12d)],..._0x302263};case _0xd71354[_0x76e58c(0xef)]:return{'icon':_0xbc23ba,'type':_0xd71354[_0x76e58c(0xef)],..._0x302263};}});}[_0x488f0f(0xfc)](_0xd8739b){const _0x53818c=_0x488f0f;switch(_0xd8739b){case _0xd71354[_0x53818c(0xf0)]:return _0x53818c(0xf8);case _0xd71354[_0x53818c(0xe6)]:return _0x53818c(0xdd);default:return _0x53818c(0xee);}}[_0x488f0f(0xe9)](_0x43331c,_0x23f68c){const _0x2ea67f=_0x488f0f,_0x1e390b=this[_0x2ea67f(0xf3)],_0x743572=new _0x43331c(_0x1e390b[_0x2ea67f(0x111)]),_0x4aed2f=_0x1e390b[_0x2ea67f(0x10c)][_0x2ea67f(0xde)](_0x2ea67f(0x10e));return _0x743572[_0x2ea67f(0x110)](_0x2ea67f(0x129))['to'](_0x4aed2f),_0x743572['on'](_0x2ea67f(0x116),()=>{const _0x2f6cec=_0x2ea67f;_0x4aed2f[_0x2f6cec(0x116)](_0x23f68c);}),_0x743572;}[_0x488f0f(0x104)](_0xf90bce){const _0x50089a=_0x488f0f,{locale:_0x4fe5ad}=this[_0x50089a(0xf3)],_0x143b94=this[_0x50089a(0xf3)][_0x50089a(0x11d)][_0x50089a(0xde)](_0x50089a(0x113)),_0x2fdfbe=_0xf90bce[0x0],_0xfe013a=this[_0x50089a(0xe9)](_0x967075,_0x2fdfbe[_0x50089a(0xfd)]);return _0xfe013a[_0x50089a(0x10b)]=_0x2fdfbe[_0x50089a(0x10b)],_0xfe013a[_0x50089a(0x110)](_0x50089a(0xe5))['to'](_0x143b94,_0x50089a(0x102),_0x5c1bc4=>_0x50675d(_0x4fe5ad,_0x2fdfbe[_0x50089a(0xfd)],_0x5c1bc4?_0x50089a(0x101):_0x50089a(0xe8))[_0x50089a(0xfe)]),_0xfe013a[_0x50089a(0xe3)]=!0x0,_0xfe013a;}[_0x488f0f(0xfb)](_0x3e1ff4){const _0x2de848=_0x488f0f,{locale:_0x138b0d}=this[_0x2de848(0xf3)],_0xed0d19=this[_0x2de848(0xf3)][_0x2de848(0x11d)][_0x2de848(0xde)](_0x2de848(0x113));return _0x3e1ff4[_0x2de848(0x12c)](_0x7036b7=>{const _0x47e2fd=_0x2de848,_0x4a86cc=this[_0x47e2fd(0xe9)](_0x967075,_0x7036b7[_0x47e2fd(0xfd)]);return _0x4a86cc[_0x47e2fd(0x126)]=!0x0,_0x4a86cc[_0x47e2fd(0x10b)]=_0x7036b7[_0x47e2fd(0x10b)],_0x4a86cc[_0x47e2fd(0x110)](_0x47e2fd(0xe5))['to'](_0xed0d19,_0x47e2fd(0x102),_0x29d132=>_0x50675d(_0x138b0d,_0x7036b7[_0x47e2fd(0xfd)],_0x29d132?_0x47e2fd(0x101):_0x47e2fd(0xe8))[_0x47e2fd(0xfe)]),_0x4a86cc;});}[_0x488f0f(0x114)](_0x2f8694){const _0x5c02af=_0x488f0f;return _0x2f8694[_0x5c02af(0x12c)](_0x1da0d9=>{const _0x576a3f=_0x5c02af,_0x2b4601=this[_0x576a3f(0xe9)](_0x21882f,_0x1da0d9[_0x576a3f(0xfd)]);return _0x2b4601[_0x576a3f(0x10b)]=_0x1da0d9[_0x576a3f(0x10b)],_0x2b4601[_0x576a3f(0xe5)]=_0x1da0d9[_0x576a3f(0xf5)],_0x2b4601;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3f2adc}from'ckeditor5/src/core.js';import{FileRepository as _0x1709b1}from'ckeditor5/src/upload.js';import _0x305618 from'./uploadcareediting.js';import _0x2b6f8e from'./utils/uploadutils.js';import{getImageUrls as _0x3a37de}from'./utils/editingutils.js';export default class p extends _0x3f2adc{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1709b1,_0x305618];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x9ac2cc=this['editor'];if(!!!_0x9ac2cc['config']['get']('uploadcare'))return;_0x9ac2cc['plugins']['get'](_0x1709b1)['createUploadAdapter']=_0x2c984b=>new x(_0x2c984b,_0x9ac2cc),_0x9ac2cc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xf91b99,{imageElement:_0x4caeb3,data:_0x7f9bc0})=>{_0x9ac2cc['model']['change'](_0x10f9eb=>{_0x10f9eb['setAttribute']('uploadcareImageId',_0x7f9bc0['uploadcareImageId'],_0x4caeb3);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xb0cab5,_0x296737){this['loader']=_0xb0cab5,this['editor']=_0x296737,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1b5fc5=this['editor']['config']['get']('uploadcare.pubkey'),_0x4a344e=await this['loader']['file'];return _0x2b6f8e['upload']({'file':_0x4a344e,'publicKey':_0x1b5fc5,'signal':this['controller']['signal'],'onProgress':_0x352ebf=>{_0x352ebf&&_0x352ebf['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x352ebf['value']);}})['then'](async _0x47a637=>{const {imageFallbackUrl:_0x5919ce,imageSources:_0x1b13cc}=_0x3a37de(_0x47a637['cdnUrl'],_0x47a637['imageInfo']['width']);return{'uploadcareImageId':_0x47a637['uuid'],'default':_0x5919ce,'sources':_0x1b13cc};})['catch'](()=>{const _0xbf179e=t('Cannot\x20upload\x20file:')+('\x20'+_0x4a344e['name']+'.');return Promise['reject'](_0xbf179e);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5aac3f}from'../uploadcareconfig.js';export function getTranslation(_0x8320fa,_0x19ae46,_0x53643f){const t=_0x8320fa['t'],_0x4e7142=_0x8320fa['t'];switch(_0x19ae46){case _0x5aac3f['Local']:return{'text':_0x4e7142('Insert'===_0x53643f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4e7142('From\x20computer')};case _0x5aac3f['URL']:return{'text':'Insert'===_0x53643f?_0x4e7142('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4e7142('Via\x20URL')};case _0x5aac3f['Dropbox']:return{'text':t('Insert'===_0x53643f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5aac3f['Facebook']:return{'text':t('Insert'===_0x53643f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5aac3f['GDrive']:return{'text':t('Insert'===_0x53643f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5aac3f['GPhotos']:return{'text':t('Insert'===_0x53643f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5aac3f['OneDrive']:return{'text':t('Insert'===_0x53643f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x19ae46;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x58ccbf=_0x4357;(function(_0x55d0cd,_0xd14662){var _0x37a8d5=_0x4357,_0x5e4dba=_0x55d0cd();while(!![]){try{var _0x4dbda5=-parseInt(_0x37a8d5(0x160))/0x1*(parseInt(_0x37a8d5(0x159))/0x2)+parseInt(_0x37a8d5(0x158))/0x3*(-parseInt(_0x37a8d5(0x15f))/0x4)+-parseInt(_0x37a8d5(0x15a))/0x5+-parseInt(_0x37a8d5(0x152))/0x6+-parseInt(_0x37a8d5(0x161))/0x7+parseInt(_0x37a8d5(0x15e))/0x8*(-parseInt(_0x37a8d5(0x155))/0x9)+parseInt(_0x37a8d5(0x157))/0xa;if(_0x4dbda5===_0xd14662)break;else _0x5e4dba['push'](_0x5e4dba['shift']());}catch(_0x58abcf){_0x5e4dba['push'](_0x5e4dba['shift']());}}}(_0x297f,0xe1643));import{FocusTracker as _0x253f87}from'ckeditor5/src/utils.js';function _0x297f(){var _0x2a4c74=['fire','274832wpQeQG','404nycwuh','35317fGvUZH','961142NvClfX','true','div','createCollection','3459078fiFtcE','focusCycler','focusTracker','144hIYjsB','getFocusableElement','64019300TvjNJl','51333eZeqyD','58SmkbNd','7314200ZtoAII','bindTemplate','forwardCycle'];_0x297f=function(){return _0x2a4c74;};return _0x297f();}function _0x4357(_0xebf5b7,_0x519707){var _0x297f99=_0x297f();return _0x4357=function(_0x43573c,_0x2fad38){_0x43573c=_0x43573c-0x14f;var _0x104dc8=_0x297f99[_0x43573c];return _0x104dc8;},_0x4357(_0xebf5b7,_0x519707);}import{View as _0x576adb,FocusCycler as _0xd14b26}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x576adb{[_0x58ccbf(0x154)];[_0x58ccbf(0x153)];constructor(_0x936373){var _0xbc6ed=_0x58ccbf;super(_0x936373),this[_0xbc6ed(0x154)]=new _0x253f87(),this[_0xbc6ed(0x153)]=new _0xd14b26({'focusables':this[_0xbc6ed(0x151)](),'focusTracker':this[_0xbc6ed(0x154)]});}[_0x58ccbf(0x156)](){var _0x11e0e3=_0x58ccbf;return{'tag':_0x11e0e3(0x150),'attributes':{'aria-hidden':_0x11e0e3(0x14f),'tabindex':'0'},'on':{'focus':this[_0x11e0e3(0x15b)]['to'](()=>{var _0xbaea27=_0x11e0e3;this[_0xbaea27(0x153)][_0xbaea27(0x15d)](_0xbaea27(0x15c));})}};}}
|