@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.9 → 45.2.1
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 _0x2bfd6b=_0x11a5;(function(_0x4e4a2e,_0x4b9840){const _0x3e9765=_0x11a5,_0x2081ce=_0x4e4a2e();while(!![]){try{const _0x587c6d=-parseInt(_0x3e9765(0x1be))/0x1*(parseInt(_0x3e9765(0x1b8))/0x2)+-parseInt(_0x3e9765(0x173))/0x3+parseInt(_0x3e9765(0x17e))/0x4+-parseInt(_0x3e9765(0x1b5))/0x5+parseInt(_0x3e9765(0x176))/0x6+parseInt(_0x3e9765(0x1b2))/0x7*(-parseInt(_0x3e9765(0x1a7))/0x8)+-parseInt(_0x3e9765(0x1ab))/0x9*(-parseInt(_0x3e9765(0x1a2))/0xa);if(_0x587c6d===_0x4b9840)break;else _0x2081ce['push'](_0x2081ce['shift']());}catch(_0x19acb3){_0x2081ce['push'](_0x2081ce['shift']());}}}(_0x3d4f,0x4b83d));function _0x11a5(_0x538b29,_0x25f3da){const _0x3d4fe1=_0x3d4f();return _0x11a5=function(_0x11a580,_0x5360d4){_0x11a580=_0x11a580-0x173;let _0x5e9065=_0x3d4fe1[_0x11a580];return _0x5e9065;},_0x11a5(_0x538b29,_0x25f3da);}import{Plugin as _0x5f4777}from'ckeditor5/src/core.js';import{Dialog as _0x4e28ec}from'ckeditor5/src/ui.js';import{createElement as _0x54e12a,global as _0xfb71fa,uid as _0x568d30}from'ckeditor5/src/utils.js';import _0x35c950 from'./uploadcarecommand.js';import _0x6f3e93 from'./uploadcareuploadadapter.js';function _0x3d4f(){const _0x3fcc57=['add','uploadcare.uploader','map','PictureEditing','_initCtx','once','get','insertImage','data-uc-image-id','selection','view','uploadcareImageId','isOfficialPlugin','uploader','getAttribute','_initConfig','pluginName','isRegistered','uploadcare','listenTo','uc-config','editing','_ctxElement','execute','locale','attributeToAttribute','elementToAttribute','removeAttribute','remove','contentLanguage','642310amwmRB','body','imageBlock','querySelector','_configElement','144wAnCvB','schema','destroy','_initImageProcessingIndicator','207gnynYY','requires','href','true','uc-upload-ctx-provider','_initConversion','conversion','152705ofgmRq','uploadcareImageReplace','uploadcare.pubkey','1860860PcrdHI','for','ctxElement','50HliJnz','getSelectedElement','document','appendChild','downcast','fromCharCode','24415WscsVn','extend','commands','cleanupImage','editor','UploadcareEditing','join','afterInit','\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','1291239EbPEof','config','_initSchema','2418948CMUFvR','#uc-icon-arrow-down','upcast','replaceImageSource','imageInline','input[uploadcare-file-input]','render','iconHrefResolver','937872QZIKkx','init','isPremiumPlugin','configElement','closeMax','model'];_0x3d4f=function(){return _0x3fcc57;};return _0x3d4f();}import{showImageProcessingIndicator as _0x3428e6}from'./utils/editingutils.js';export default class i extends _0x5f4777{[_0x2bfd6b(0x1a6)]=null;[_0x2bfd6b(0x19a)]=null;static get[_0x2bfd6b(0x194)](){const _0x44f329=_0x2bfd6b;return _0x44f329(0x1c3);}static get[_0x2bfd6b(0x1ac)](){const _0x3d1e7c=_0x2bfd6b;return[_0x3d1e7c(0x187),_0x6f3e93,_0x4e28ec];}static get[_0x2bfd6b(0x190)](){return!0x0;}static get[_0x2bfd6b(0x180)](){return!0x0;}get[_0x2bfd6b(0x181)](){const _0x1561b4=_0x2bfd6b;return this[_0x1561b4(0x1a6)];}get[_0x2bfd6b(0x1b7)](){const _0xa7eef1=_0x2bfd6b;return this[_0xa7eef1(0x19a)];}[_0x2bfd6b(0x17f)](){const _0x1be466=_0x2bfd6b,_0x19a5ae=this[_0x1be466(0x1c2)];_0x19a5ae[_0x1be466(0x1c0)][_0x1be466(0x184)](_0x1be466(0x196),new _0x35c950(_0x19a5ae));}[_0x2bfd6b(0x1c5)](){const _0x269ee5=_0x2bfd6b;this[_0x269ee5(0x175)](),this[_0x269ee5(0x1b0)](),this[_0x269ee5(0x193)](),this[_0x269ee5(0x188)](),this[_0x269ee5(0x1aa)](),this[_0x269ee5(0x197)](this[_0x269ee5(0x1c2)],_0x269ee5(0x1a9),()=>{const _0x225f32=_0x269ee5;this[_0x225f32(0x1a6)]&&(this[_0x225f32(0x1a6)][_0x225f32(0x1a0)](),this[_0x225f32(0x1a6)]=null),this[_0x225f32(0x19a)]&&(this[_0x225f32(0x19a)][_0x225f32(0x1a0)](),this[_0x225f32(0x19a)]=null);const _0x997d28=_0xfb71fa[_0x225f32(0x1ba)][_0x225f32(0x1a5)](_0x225f32(0x17b));_0x997d28&&_0x997d28[_0x225f32(0x1a0)]();}),async function(_0x3bc2ec){const _0x43d4e0=_0x28888a([0x66,0x33,0x71,0x67,0x68,0x61,0x36,0x4c,0x49,0x6b,0x37,0x4e,0x78,0x44,0x70,0x6a,0x55,0x73,0x30,0x77,0x6d,0x75,0x64,0x6f,0x31,0x4f,0x32,0x57,0x79,0x6e,0x6c,0x45,0x56,0x42,0x34,0x4d,0x53,0x4a,0x47,0x7a,0x72,0x59,0x69,0x58,0x5a,0x65,0x38,0x4b,0x48,0x50,0x62,0x52,0x46,0x63,0x39,0x76,0x35,0x51,0x74,0x54,0x41,0x43]),_0x317afa=0x6eda3144,_0x2af27d=0x6edd5aec^_0x317afa,_0x51c641=window[_0x28888a([0x44,0x61,0x74,0x65])][_0x28888a([0x6e,0x6f,0x77])](),_0x3c497f=_0x3bc2ec[_0x28888a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5454e0=new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x554328=>{_0x3c497f[_0x28888a([0x6f,0x6e,0x63,0x65])](_0x28888a([0x72,0x65,0x61,0x64,0x79]),_0x554328);}),_0x11795a={[_0x28888a([0x6b,0x74,0x79])]:_0x28888a([0x45,0x43]),[_0x28888a([0x75,0x73,0x65])]:_0x28888a([0x73,0x69,0x67]),[_0x28888a([0x63,0x72,0x76])]:_0x28888a([0x50,0x2d,0x32,0x35,0x36]),[_0x28888a([0x78])]:_0x28888a([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]),[_0x28888a([0x79])]:_0x28888a([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]),[_0x28888a([0x61,0x6c,0x67])]:_0x28888a([0x45,0x53,0x32,0x35,0x36])},_0x4713a0=_0x3c497f[_0x28888a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x28888a([0x67,0x65,0x74])](_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b513a(){let _0x4d49df,_0xa0548d=null,_0x40214a=null;try{if(_0x4713a0==_0x28888a([0x47,0x50,0x4c]))return _0x28888a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d49df=_0x485d02(),!_0x4d49df)return _0x28888a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d49df[_0x28888a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x40214a=_0x1f823f(_0x4d49df[_0x28888a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d49df[_0x28888a([0x6a,0x74,0x69])])),await _0x40b97e()?_0x34e8bf()?_0x55d99e()?_0x28888a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2832e3()?(_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28888a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa0548d=_0x420582(_0x28888a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x28888a([0x74,0x72,0x69,0x61,0x6c])&&(_0xa0548d=_0x420582(_0x28888a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ec28d()):_0x28888a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x28888a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x28888a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x28888a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55d99e(){const _0x39d947=[_0x28888a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x28888a([0x74,0x72,0x69,0x61,0x6c])][_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51c641/0x3e8:0xe10*_0x2af27d;return _0x4d49df[_0x28888a([0x65,0x78,0x70])]<_0x39d947;}function _0x34e8bf(){const _0x3c314f=_0x4d49df[_0x28888a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c314f&&(!!_0x3c314f[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28888a([0x2a]))||!!_0x3c314f[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28888a([0x55,0x50,0x4c,0x43])));}function _0x2832e3(){const _0x520276=_0x11a5,_0x5b1ab9=_0x4d49df[_0x28888a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b1ab9||0x0==_0x5b1ab9[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57d0dc}=new URL(window[_0x28888a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x520276(0x1ad)]);if(_0x5b1ab9[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57d0dc))return!0x0;const _0x19a82c=_0x57d0dc[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e]));return _0x5b1ab9[_0x28888a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38aa1a=>_0x38aa1a[_0x28888a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28888a([0x2a])))[_0x28888a([0x6d,0x61,0x70])](_0x1206db=>_0x1206db[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e])))[_0x28888a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11d686=>_0x11d686[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x19a82c[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28888a([0x6d,0x61,0x70])](_0x4286be=>Array(_0x19a82c[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4286be[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x28888a([0x66,0x69,0x6c,0x6c])](_0x4286be[0x0]===_0x28888a([0x2a])?_0x28888a([0x2a]):'')[_0x28888a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4286be))[_0x28888a([0x73,0x6f,0x6d,0x65])](_0x5399c1=>_0x19a82c[_0x28888a([0x65,0x76,0x65,0x72,0x79])]((_0x6df013,_0x4e808d)=>_0x5399c1[_0x4e808d]===_0x6df013||_0x5399c1[_0x4e808d]===_0x28888a([0x2a])));}function _0x5ec28d(){return _0xa0548d&&_0x40214a?new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x702e32,_0x46a173)=>{_0xa0548d[_0x28888a([0x74,0x68,0x65,0x6e])](_0x702e32,_0x46a173),_0x40214a[_0x28888a([0x74,0x68,0x65,0x6e])](_0x15c14b=>{_0x15c14b!=_0x28888a([0x56,0x61,0x6c,0x69,0x64])&&_0x702e32(_0x15c14b);},_0x46a173);}):_0xa0548d||_0x40214a||_0x28888a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f823f(_0x2dde52,_0x267adc){return new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2058a7=>{if(_0x2dc615())return _0x2058a7(_0x28888a([0x56,0x61,0x6c,0x69,0x64]));_0x3a728a(),_0x3c497f[_0x28888a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x28888a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5caa09=!0x1;const _0xa2bdc6=_0x568d30();function _0x1a3d6c(_0x6435e8){return!!_0x6435e8&&(typeof _0x6435e8===_0x28888a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6435e8===_0x28888a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6435e8[_0x28888a([0x74,0x68,0x65,0x6e])]===_0x28888a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6435e8[_0x28888a([0x63,0x61,0x74,0x63,0x68])]===_0x28888a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5679d3(_0x159eab){_0x5a6bb5(_0x159eab)[_0x28888a([0x74,0x68,0x65,0x6e])](_0x227ada=>{if(!_0x227ada||_0x227ada[_0x28888a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x28888a([0x6f,0x6b]))return _0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ee240(_0x5943c5(_0xa2bdc6+_0x267adc))!=_0x227ada[_0x28888a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x28888a([0x56,0x61,0x6c,0x69,0x64]);})[_0x28888a([0x74,0x68,0x65,0x6e])](_0x228ac7=>(_0x1ecdf3(),_0x228ac7),()=>{const _0x29edd9=_0x32b982();return null==_0x29edd9?(_0x1ecdf3(),_0x28888a([0x56,0x61,0x6c,0x69,0x64])):_0x28888a(_0x51c641-_0x29edd9>(0x4ad6b544^_0x317afa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x28888a([0x74,0x68,0x65,0x6e])](_0x2058a7)[_0x28888a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2058a7(_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38be1a=0x6eecdfc4^_0x317afa;function _0x1ecdf3(){const _0x4dc3e7=_0x28888a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ee240(_0x5943c5(_0x2dde52)),_0x2092d4=_0x4b68dd(_0x5ee240(window[_0x28888a([0x4d,0x61,0x74,0x68])][_0x28888a([0x63,0x65,0x69,0x6c])](_0x51c641/_0x38be1a)));window[_0x28888a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28888a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dc3e7,_0x2092d4);}function _0x32b982(){const _0x5611c3=_0x28888a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ee240(_0x5943c5(_0x2dde52)),_0x262ec9=window[_0x28888a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x28888a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5611c3);return _0x262ec9?window[_0x28888a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b68dd(_0x262ec9),0x10)*_0x38be1a:null;}function _0x5a6bb5(_0x43a20c){return new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44ad58,_0x435053)=>{_0x43a20c[_0x28888a([0x74,0x68,0x65,0x6e])](_0x44ad58,_0x435053),window[_0x28888a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x435053,0x6edbe584^_0x317afa);});}}_0x3c497f[_0x28888a([0x6f,0x6e])](_0x28888a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4234f4,_0x14887c)=>{if(_0x14887c[0x0]!=_0x2dde52)return _0x2058a7(_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14887c[0x1]={..._0x14887c[0x1],[_0x28888a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa2bdc6};},{[_0x28888a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28888a([0x68,0x69,0x67,0x68])}),_0x3c497f[_0x28888a([0x6f,0x6e])](_0x28888a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13c76e=>{_0x1a3d6c(_0x13c76e[_0x28888a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5caa09=!0x0,_0x5679d3(_0x13c76e[_0x28888a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x28888a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x28888a([0x6c,0x6f,0x77])}),_0x5454e0[_0x28888a([0x74,0x68,0x65,0x6e])](()=>{_0x5caa09||_0x2058a7(_0x28888a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2dc615(){return _0x3c497f[_0x28888a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28888a([0x76,0x69,0x65,0x77])][_0x28888a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x28888a([0x61,0x75,0x74,0x6f]);}function _0x3a728a(){_0x3c497f[_0x28888a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x28888a([0x76,0x69,0x65,0x77])][_0x28888a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x28888a([0x61,0x75,0x74,0x6f]);}}function _0x420582(_0x53e06f){const _0x4e69c9=[new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x467220=>setTimeout(_0x467220,0x6ed30f88^_0x317afa)),_0x5454e0[_0x28888a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc9aa3c=>{let _0x4aa4a7=0x0;_0x3c497f[_0x28888a([0x6d,0x6f,0x64,0x65,0x6c])][_0x28888a([0x6f,0x6e])](_0x28888a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b1ac6,_0x4f2fde)=>{_0x4f2fde[0x0][_0x28888a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4aa4a7++,_0x4aa4a7==(0x6eda30bc^_0x317afa)&&(_0xc9aa3c(),_0x2b1ac6[_0x28888a([0x6f,0x66,0x66])]());});}))];return window[_0x28888a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x28888a([0x72,0x61,0x63,0x65])](_0x4e69c9)[_0x28888a([0x74,0x68,0x65,0x6e])](()=>_0x53e06f);}async function _0x2b5754(){await _0x5454e0,_0x3c497f[_0x28888a([0x6d,0x6f,0x64,0x65,0x6c])][_0x28888a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x41f6e5,_0x3c497f[_0x28888a([0x6d,0x6f,0x64,0x65,0x6c])][_0x28888a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x41f6e5,_0x3c497f[_0x28888a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x28888a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x417e00(_0x5b1092){const _0x19a317=_0x3d1565();_0x3c497f[_0x19a317]=_0x28888a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b1092,_0x5b1092!=_0x28888a([0x56,0x61,0x6c,0x69,0x64])&&_0x2b5754();}function _0x3d1565(){const _0x3b0d20=window[_0x28888a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x28888a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x28888a([0x6e,0x6f,0x77])]())[_0x28888a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x28888a([0x2e]),'');let _0x25c486=_0x28888a([0x66]);for(let _0x515912=0x0;_0x515912<_0x3b0d20[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x515912+=0x2){let _0x36126e=window[_0x28888a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b0d20[_0x28888a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x515912,_0x515912+0x2));_0x36126e>=_0x43d4e0[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36126e-=_0x43d4e0[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25c486+=_0x43d4e0[_0x36126e];}return _0x25c486;}function _0x485d02(){const _0x1e0624=_0x4713a0[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e]));if(0x3!=_0x1e0624[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x531f2e(_0x1e0624[0x1]);function _0x531f2e(_0x4cb5c1){const _0x3c694f=_0x281c30(_0x4cb5c1);return _0x3c694f&&_0x74b386()?_0x3c694f:null;function _0x74b386(){const _0x173a5e=_0x3c694f[_0x28888a([0x6a,0x74,0x69])],_0x133a9e=window[_0x28888a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x173a5e[_0x28888a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x173a5e[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x259da6={..._0x3c694f,[_0x28888a([0x6a,0x74,0x69])]:_0x173a5e[_0x28888a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x173a5e[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x259da6[_0x28888a([0x76,0x63])],_0x5943c5(_0x259da6)==_0x133a9e;}}}async function _0x40b97e(){let _0x2925da=!0x0;try{const _0x5d3701=_0x4713a0[_0x28888a([0x73,0x70,0x6c,0x69,0x74])](_0x28888a([0x2e])),[_0x2e260c,_0x171741,_0x139c22]=_0x5d3701;return _0x3a2f10(_0x2e260c),await _0x467950(_0x2e260c,_0x171741,_0x139c22),_0x2925da;}catch{return!0x1;}function _0x3a2f10(_0x58a02d){const _0x3dd774=_0x281c30(_0x58a02d);_0x3dd774&&_0x3dd774[_0x28888a([0x61,0x6c,0x67])]==_0x28888a([0x45,0x53,0x32,0x35,0x36])||(_0x2925da=!0x1);}async function _0x467950(_0x1578ae,_0x32dfa7,_0x4f4dbf){const _0x40ac4a=window[_0x28888a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x28888a([0x66,0x72,0x6f,0x6d])](_0x22c0c4(_0x4f4dbf),_0x4a5e3c=>_0x4a5e3c[_0x28888a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50ad0c=new window[(_0x28888a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x28888a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1578ae+_0x28888a([0x2e])+_0x32dfa7),_0x14e556=window[_0x28888a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x28888a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14e556)return;const _0x21ff3e=await _0x14e556[_0x28888a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x28888a([0x6a,0x77,0x6b]),_0x11795a,{[_0x28888a([0x6e,0x61,0x6d,0x65])]:_0x28888a([0x45,0x43,0x44,0x53,0x41]),[_0x28888a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x28888a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x28888a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14e556[_0x28888a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x28888a([0x6e,0x61,0x6d,0x65])]:_0x28888a([0x45,0x43,0x44,0x53,0x41]),[_0x28888a([0x68,0x61,0x73,0x68])]:{[_0x28888a([0x6e,0x61,0x6d,0x65])]:_0x28888a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21ff3e,_0x40ac4a,_0x50ad0c)||(_0x2925da=!0x1);}}function _0x281c30(_0x2bd14b){return _0x2bd14b[_0x28888a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x28888a([0x65,0x79]))?JSON[_0x28888a([0x70,0x61,0x72,0x73,0x65])](_0x22c0c4(_0x2bd14b)):null;}function _0x22c0c4(_0x40d071){return window[_0x28888a([0x61,0x74,0x6f,0x62])](_0x40d071[_0x28888a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x28888a([0x2b]))[_0x28888a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x28888a([0x2f])));}function _0x5943c5(_0x2ee5f1){let _0x560044=0x1505;function _0x39521d(_0x31f246){for(let _0x4f63ae=0x0;_0x4f63ae<_0x31f246[_0x28888a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f63ae++){const _0x498963=_0x31f246[_0x28888a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f63ae);_0x560044=(_0x560044<<0x5)+_0x560044+_0x498963,_0x560044&=_0x560044;}}function _0x7c3cb7(_0xbc78d){Array[_0x28888a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xbc78d)?_0xbc78d[_0x28888a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7c3cb7):_0xbc78d&&typeof _0xbc78d==_0x28888a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x28888a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xbc78d)[_0x28888a([0x73,0x6f,0x72,0x74])]()[_0x28888a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42b474,_0x4087a1])=>{_0x39521d(_0x42b474),_0x7c3cb7(_0x4087a1);}):_0x39521d(window[_0x28888a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xbc78d));}return _0x7c3cb7(_0x2ee5f1),_0x560044>>>0x0;}function _0x5ee240(_0x503ca5){return _0x503ca5[_0x28888a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x28888a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x28888a([0x30]));}function _0x4b68dd(_0x18a31f){return _0x18a31f[_0x28888a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x28888a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x28888a([0x6a,0x6f,0x69,0x6e])]('');}function _0x41f6e5(){}function _0x28888a(_0x21762a){const _0x1ee132=_0x11a5;return _0x21762a[_0x1ee132(0x186)](_0x270e95=>String[_0x1ee132(0x1bd)](_0x270e95))[_0x1ee132(0x1c4)]('');}_0x417e00(await _0x3b513a());}(this);}[_0x2bfd6b(0x175)](){const _0x17b747=_0x2bfd6b,_0x983c87=this[_0x17b747(0x1c2)][_0x17b747(0x183)][_0x17b747(0x1a8)];_0x983c87[_0x17b747(0x195)](_0x17b747(0x1a4))&&_0x983c87[_0x17b747(0x1bf)](_0x17b747(0x1a4),{'allowAttributes':[_0x17b747(0x18f)]}),_0x983c87[_0x17b747(0x195)](_0x17b747(0x17a))&&_0x983c87[_0x17b747(0x1bf)](_0x17b747(0x17a),{'allowAttributes':[_0x17b747(0x18f)]});}[_0x2bfd6b(0x1b0)](){const _0x5a9f61=_0x2bfd6b,_0x63a913=this[_0x5a9f61(0x1c2)];_0x63a913[_0x5a9f61(0x1b1)][_0x5a9f61(0x1b6)](_0x5a9f61(0x1bc))[_0x5a9f61(0x19d)]({'model':_0x5a9f61(0x18f),'view':_0x5a9f61(0x18c)}),_0x63a913[_0x5a9f61(0x1b1)][_0x5a9f61(0x1b6)](_0x5a9f61(0x178))[_0x5a9f61(0x19e)]({'model':{'key':_0x5a9f61(0x18f),'value':_0x4bda45=>_0x4bda45[_0x5a9f61(0x192)](_0x5a9f61(0x18c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x163899=_0x63a913[_0x5a9f61(0x1c0)][_0x5a9f61(0x18a)](_0x5a9f61(0x179));_0x163899&&this[_0x5a9f61(0x197)](_0x163899,_0x5a9f61(0x1c1),(_0x89eac5,[_0x2e060e,_0x326314])=>{const _0xaff74e=_0x5a9f61;_0x2e060e[_0xaff74e(0x19f)](_0xaff74e(0x18f),_0x326314);});}[_0x2bfd6b(0x193)](){const _0xe89564=_0x2bfd6b,_0x4686c7=this[_0xe89564(0x1c2)][_0xe89564(0x174)][_0xe89564(0x18a)](_0xe89564(0x185))||{},_0x2325de=this[_0xe89564(0x1c2)][_0xe89564(0x174)][_0xe89564(0x18a)](_0xe89564(0x1b4))||'';this[_0xe89564(0x1a6)]=_0x54e12a(_0xfb71fa[_0xe89564(0x1ba)],_0xe89564(0x198),{..._0x4686c7,'pubkey':_0x2325de,'ctx-name':_0xe89564(0x191),'sourceList':'','imgOnly':_0xe89564(0x1ae),'removeCopyright':_0xe89564(0x1ae),'localeName':this[_0xe89564(0x1c2)][_0xe89564(0x19c)][_0xe89564(0x1a1)],'externalSourcesEmbedCss':_0xe89564(0x1c6)}),this[_0xe89564(0x1a6)][_0xe89564(0x17d)]=_0x33da96=>{const _0x1b38a4=_0xe89564;if(_0x1b38a4(0x182)==_0x33da96)return _0x1b38a4(0x177);},_0xfb71fa[_0xe89564(0x1ba)][_0xe89564(0x1a3)][_0xe89564(0x1bb)](this[_0xe89564(0x1a6)]);}[_0x2bfd6b(0x188)](){const _0x15e9b8=_0x2bfd6b;this[_0x15e9b8(0x19a)]=_0x54e12a(_0xfb71fa[_0x15e9b8(0x1ba)],_0x15e9b8(0x1af),{'ctx-name':_0x15e9b8(0x191)}),_0xfb71fa[_0x15e9b8(0x1ba)][_0x15e9b8(0x1a3)][_0x15e9b8(0x1bb)](this[_0x15e9b8(0x19a)]);}[_0x2bfd6b(0x1aa)](){const _0x4f312e=_0x2bfd6b,_0x844971=this[_0x4f312e(0x1c2)][_0x4f312e(0x1c0)][_0x4f312e(0x18a)](_0x4f312e(0x18b));_0x844971&&this[_0x4f312e(0x197)](_0x844971,_0x4f312e(0x19b),()=>{const _0x4ee586=_0x4f312e,_0x4a0be4=this[_0x4ee586(0x1c2)][_0x4ee586(0x183)][_0x4ee586(0x1ba)][_0x4ee586(0x18d)][_0x4ee586(0x1b9)]();_0x4a0be4&&_0x4a0be4[_0x4ee586(0x192)](_0x4ee586(0x18f))&&this[_0x4ee586(0x1c2)][_0x4ee586(0x199)][_0x4ee586(0x18e)][_0x4ee586(0x189)](_0x4ee586(0x17c),()=>{const _0x5ed043=_0x4ee586;_0x3428e6(this[_0x5ed043(0x1c2)],_0x4a0be4);});});const _0x12afaa=this[_0x4f312e(0x1c2)][_0x4f312e(0x1c0)][_0x4f312e(0x18a)](_0x4f312e(0x1b3));_0x12afaa&&this[_0x4f312e(0x197)](_0x12afaa,_0x4f312e(0x19b),()=>{const _0x26edad=_0x4f312e,_0x1d93a4=this[_0x26edad(0x1c2)][_0x26edad(0x183)][_0x26edad(0x1ba)][_0x26edad(0x18d)][_0x26edad(0x1b9)]();_0x1d93a4&&_0x1d93a4[_0x26edad(0x192)](_0x26edad(0x18f))&&this[_0x26edad(0x1c2)][_0x26edad(0x199)][_0x26edad(0x18e)][_0x26edad(0x189)](_0x26edad(0x17c),()=>{const _0x86ec77=_0x26edad;_0x3428e6(this[_0x86ec77(0x1c2)],_0x1d93a4);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2601db,ObservableMixin as _0x2c5ab2}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x56c49e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x506f4d}from'ckeditor5/src/icons.js';import _0x192992 from'./uploadcareimageeditformview.js';import _0x27df8c from'../../utils/uploadutils.js';import{getImageUrls as _0x77e28b,getImageDimension as _0x54dd09}from'../../utils/editingutils.js';import{isAncestor as _0x2e84d6}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2c5ab2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1e6893,_0x404c24,_0x318e91){super(),this['_editor']=_0x1e6893,this['_dialog']=_0x404c24,this['_imageElement']=_0x318e91,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 _0x453bea=this['_imageElement'],_0x14c347=_0x453bea['getAttribute']('uploadcareImageId'),_0x557e54=_0x453bea['getAttribute']('src');if(_0x14c347)await this['_loadImageInfo'](_0x14c347,_0x557e54);else{if(this['_imageCache']['has'](_0x557e54)){const _0x36dc73=this['_imageCache']['get'](_0x557e54);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36dc73['url'],this['imageDimension']=_0x36dc73['dimension'],this['imageId']=_0x36dc73['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xa8e0b}=this['_editor'],t=_0xa8e0b['t'],_0x51b483=new _0x192992(_0xa8e0b,this['imageStatus'],this['_attributes']);_0x51b483['bind']('status')['to'](this,'imageStatus'),_0x51b483['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x51b483['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x51b483['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x51b483,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x506f4d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x51b483,'position':_0x56c49e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x51b483['focus']();},'onHide':()=>{_0x51b483['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x46ad81=>!_0x2e84d6(_0x46ad81,_0x51b483['element'])}});}['_loadImageInfo'](_0x2b11b8,_0xe92c4){return _0x27df8c['getInfo'](_0x2b11b8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4ef9b8=>{const {width:_0x44f6e9,height:_0x3c8189}=_0x4ef9b8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe92c4,this['imageDimension']={'width':_0x44f6e9,'height':_0x3c8189},this['imageId']=_0x2b11b8;})['catch'](_0x97ea3c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x97ea3c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3dff53,_0x503cf9){return this['_getImageAsFile'](_0x3dff53)['then'](_0x5f539f=>_0x27df8c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x503cf9['signal'],'file':_0x5f539f,'onProgress':_0x5bd72a=>{_0x5bd72a&&_0x5bd72a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5bd72a['value']));}}))['then'](_0x2496ae=>{const {width:_0x23db42,height:_0x2fd6fc}=_0x2496ae['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2496ae['cdnUrl'],this['imageDimension']={'width':_0x23db42,'height':_0x2fd6fc},this['imageId']=_0x2496ae['uuid'],this['imageUploadProgress']=null;const _0x9130b0=_0x3dff53['getAttribute']('src');this['_imageCache']['set'](_0x9130b0,{'id':_0x2496ae['uuid'],'url':_0x2496ae['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x26cb47=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26cb47['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3e8600,_0x4341d1){_0x3e8600['on']('apply',(_0x3c2403,_0x2b494a)=>{this['_replaceImage'](_0x4341d1,_0x2b494a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3e8600['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3e8600['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x336376,_0x12d4df,_0x43d9ec){const _0xe57b02=this['_editor'],{width:_0x1a2825,height:_0x25d9d5}=_0x54dd09(_0x12d4df,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x295acd,imageSources:_0x148f04}=_0x77e28b(_0x12d4df,_0x1a2825);_0xe57b02['model']['change'](_0x481df9=>{if('$graveyard'===_0x336376['root']['rootName']){_0xe57b02['execute']('insertImage',{'imageType':_0x336376['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x336376['getAttributes']()),'uploadcareImageId':_0x43d9ec,'src':_0x295acd,'sources':_0x148f04,'width':_0x1a2825,'height':_0x25d9d5}});const _0x230000=_0x336376['getChildren']();_0x336376=_0xe57b02['model']['document']['selection']['getSelectedElement']();for(const _0x2809fa of _0x230000)_0x481df9['append'](_0x481df9['cloneElement'](_0x2809fa),_0x336376);}else _0x481df9['setSelection'](_0x336376,'on'),_0xe57b02['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x336376['getAttributes']()),'uploadcareImageId':_0x43d9ec,'src':_0x295acd,'sources':_0x148f04,'width':_0x1a2825,'height':_0x25d9d5},_0x336376);_0x481df9['setSelection'](_0x336376,'on');});}async['_getImageAsFile'](_0x26a329){const _0xe9f692=_0x2601db['window'],_0x407762=_0x2601db['document']['location']['href'],_0x3ba2de=new _0xe9f692['URL'](_0x26a329['getAttribute']('src'),_0x407762);if('data:'===_0x3ba2de['protocol']){const _0x9810ea=_0x3ba2de['href']['split'](','),_0x5b0e4f=_0x9810ea[0x0]['match'](/:(.*?);/)[0x1],_0x3bb9b2=_0x5b0e4f['split']('/')[0x1],_0x80d84b=_0xe9f692['atob'](_0x9810ea[_0x9810ea['length']-0x1]);let _0x51ee97=_0x80d84b['length'];const _0x3b70be=new _0xe9f692['Uint8Array'](_0x51ee97);for(;_0x51ee97--;)_0x3b70be[_0x51ee97]=_0x80d84b['charCodeAt'](_0x51ee97);return new _0xe9f692['File']([_0x3b70be],'image.'+_0x3bb9b2,{'type':_0x5b0e4f});}const _0x41afe0=_0x3ba2de['href']['split']('/'),_0x264869=_0x41afe0[_0x41afe0['length']-0x1],_0x1d22d4=_0x264869['split']('.')[0x1];return _0xe9f692['fetch'](_0x3ba2de['href'])['then'](_0x344e54=>_0x344e54['clone']()['blob']())['then'](_0x4df0a3=>new _0xe9f692['File']([_0x4df0a3],_0x264869,{'type':'image/'+_0x1d22d4}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xf733(_0x8a7a38,_0x3f538){const _0x2cacc9=_0x2cac();return _0xf733=function(_0xf7335f,_0x31ffb4){_0xf7335f=_0xf7335f-0x98;let _0x5bebee=_0x2cacc9[_0xf7335f];return _0x5bebee;},_0xf733(_0x8a7a38,_0x3f538);}function _0x2cac(){const _0x44c24e=['249pXCWdO','2042181jkvWLx','uc-cloud-image-editor','image-edit','718795MfREki','39948dTrgwW','ck-uploadcare-theme','255438VYoOix','set','setTemplate','imageSrc','bindTemplate','uc-light','505352eFJdAg','761200napgKy','80aSncvR','15jiEijW','5114MXrLHK','8hqwdCD'];_0x2cac=function(){return _0x44c24e;};return _0x2cac();}(function(_0x4de92d,_0x3ce5d5){const _0x24f441=_0xf733,_0x9cce52=_0x4de92d();while(!![]){try{const _0x312397=parseInt(_0x24f441(0xa6))/0x1+parseInt(_0x24f441(0x9d))/0x2*(parseInt(_0x24f441(0x9f))/0x3)+parseInt(_0x24f441(0x99))/0x4+-parseInt(_0x24f441(0x9c))/0x5*(parseInt(_0x24f441(0xa4))/0x6)+-parseInt(_0x24f441(0xa3))/0x7+-parseInt(_0x24f441(0x9e))/0x8*(-parseInt(_0x24f441(0xa0))/0x9)+parseInt(_0x24f441(0x9b))/0xa*(-parseInt(_0x24f441(0x9a))/0xb);if(_0x312397===_0x3ce5d5)break;else _0x9cce52['push'](_0x9cce52['shift']());}catch(_0x1ed535){_0x9cce52['push'](_0x9cce52['shift']());}}}(_0x2cac,0x23511));import{View as _0x33448b}from'ckeditor5/src/ui.js';export default class tt extends _0x33448b{constructor(_0x47b226,_0x1de777){const _0x8a30fc=_0xf733;super(_0x47b226);const _0x26a8e2=this[_0x8a30fc(0xaa)];this[_0x8a30fc(0xa7)](_0x8a30fc(0xa9),''),this[_0x8a30fc(0xa8)]({'tag':_0x8a30fc(0xa1),'attributes':{..._0x1de777,'class':[_0x8a30fc(0x98),_0x8a30fc(0xa5)],'ctx-name':_0x8a30fc(0xa2),'cdn-url':_0x26a8e2['to'](_0x8a30fc(0xa9))}});}}
|
|
@@ -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 _0x2fc7ff,IconView as at,View as _0x313e60}from'ckeditor5/src/ui.js';export default class rt extends _0x313e60{constructor(_0x305a70){super(_0x305a70);const t=_0x305a70['t'];this['set']('errorType',null);const _0x48903e=new _0x2fc7ff(_0x305a70);_0x48903e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x48903e['withText']=!0x0,_0x48903e['class']='ck-button-action',_0x48903e['on']('execute',()=>{this['fire']('retry');}),_0x48903e['bind']('isVisible')['to'](this,'errorType',_0x487660=>'NotFound'!==_0x487660);const _0x2c67ee=new at();_0x2c67ee['content']=et,_0x2c67ee['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x59b86e=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':[_0x2c67ee,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x59b86e['to']('errorType',_0x274893=>t('NotFound'!==_0x274893?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x48903e]},{'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 _0x570bce,View as _0x3a6a3d}from'ckeditor5/src/ui.js';export default class ta extends _0x3a6a3d{constructor(_0x57de0e){super(_0x57de0e);const t=_0x57de0e['t'],_0x376a71=this['bindTemplate'],_0x34a678=new _0x570bce();_0x34a678['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':[_0x34a678,{'text':_0x376a71['to']('imageUploadProgress',_0x1ae215=>t('Loading\x20image...')+'\x20('+(_0x1ae215||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 _0x35d8b6=_0x4cf1;function _0x471b(){const _0x2d697c=['5107928qNAqdM','_editingView','3189610AXKfsq','add','nodeName','1935052uudsJA','status','fire','_addErrorViewListeners','getFocusableElement','detail','querySelector','toLowerCase','uc-cloud-image-editor','target','4956637QRKqRg','focus','div','_waitForImageEditorComponent','cancel','uploading','disconnect','693252Dpfygo','filter','ck-uploadcare-form','addMany','error','once','clear','cdnUrl','change:status','1yWEnml','_errorView','observe','setTemplate','element','454413aViQKV','ck-reset_all-excluded','_focusableView','_loadingView','_items','addedNodes','ready','229202KalTBj','_addUploadcareImageEditorListeners','set','_setView','length','addEventListener','retry','createCollection','apply','render'];_0x471b=function(){return _0x2d697c;};return _0x471b();}(function(_0x2401b5,_0x202207){const _0x8143f6=_0x4cf1,_0x32da15=_0x2401b5();while(!![]){try{const _0x16d896=-parseInt(_0x8143f6(0x17b))/0x1*(parseInt(_0x8143f6(0x152))/0x2)+parseInt(_0x8143f6(0x180))/0x3+-parseInt(_0x8143f6(0x161))/0x4+-parseInt(_0x8143f6(0x15e))/0x5+parseInt(_0x8143f6(0x172))/0x6+parseInt(_0x8143f6(0x16b))/0x7+parseInt(_0x8143f6(0x15c))/0x8;if(_0x16d896===_0x202207)break;else _0x32da15['push'](_0x32da15['shift']());}catch(_0x1aed71){_0x32da15['push'](_0x32da15['shift']());}}}(_0x471b,0x5c1dd));import{View as _0x585519}from'ckeditor5/src/ui.js';import _0x57260e from'./uploadcareimageeditformloadingview.js';import _0x47b3b0 from'./uploadcareimageeditformerrorview.js';import _0x1ea2e2 from'./uploadcareimageeditformeditingview.js';import _0x1bc3ad from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x4cf1(_0x187f10,_0x1da811){const _0x471bce=_0x471b();return _0x4cf1=function(_0x4cf124,_0x2e86c4){_0x4cf124=_0x4cf124-0x151;let _0x2f5308=_0x471bce[_0x4cf124];return _0x2f5308;},_0x4cf1(_0x187f10,_0x1da811);}export default class Z extends _0x1bc3ad{[_0x35d8b6(0x184)];[_0x35d8b6(0x183)];[_0x35d8b6(0x17c)];[_0x35d8b6(0x15d)];[_0x35d8b6(0x182)];constructor(_0x3397c3,_0x2e7c35,_0x1b22e){const _0x300a67=_0x35d8b6;super(_0x3397c3),this[_0x300a67(0x184)]=this[_0x300a67(0x159)](),this[_0x300a67(0x183)]=new _0x57260e(_0x3397c3),this[_0x300a67(0x17c)]=new _0x47b3b0(_0x3397c3),this[_0x300a67(0x15d)]=new _0x1ea2e2(_0x3397c3,_0x1b22e),this[_0x300a67(0x182)]=new _0x585519(_0x3397c3),this[_0x300a67(0x182)][_0x300a67(0x17e)](this[_0x300a67(0x165)]()),this[_0x300a67(0x154)](_0x300a67(0x162),_0x2e7c35),this[_0x300a67(0x17e)]({'tag':_0x300a67(0x16d),'attributes':{'class':['ck',_0x300a67(0x181),_0x300a67(0x174)],'tabindex':'-1'},'children':this[_0x300a67(0x184)]}),this[_0x300a67(0x155)](),this[_0x300a67(0x177)](_0x300a67(0x15b),()=>{const _0x345f3a=_0x300a67;this[_0x345f3a(0x16e)](this[_0x345f3a(0x17f)],_0x10dc8f=>{const _0x1c5981=_0x345f3a;this[_0x1c5981(0x153)](_0x10dc8f);});}),this['on'](_0x300a67(0x17a),()=>{const _0x4c4a96=_0x300a67;this[_0x4c4a96(0x155)]();}),this[_0x300a67(0x164)]();}[_0x35d8b6(0x16c)](){const _0x4a0321=_0x35d8b6;this[_0x4a0321(0x17f)][_0x4a0321(0x16c)]();}[_0x35d8b6(0x155)](){const _0x6cb142=_0x35d8b6;switch(this[_0x6cb142(0x184)][_0x6cb142(0x178)](),this[_0x6cb142(0x162)]){case _0x6cb142(0x170):this[_0x6cb142(0x184)][_0x6cb142(0x15f)](this[_0x6cb142(0x183)]);break;case _0x6cb142(0x176):this[_0x6cb142(0x184)][_0x6cb142(0x15f)](this[_0x6cb142(0x17c)]);break;case _0x6cb142(0x151):this[_0x6cb142(0x184)][_0x6cb142(0x175)]([this[_0x6cb142(0x15d)],this[_0x6cb142(0x182)]]);}}[_0x35d8b6(0x16e)](_0x75626e,_0x3a1089){const _0x48baaa=_0x35d8b6,_0x4eb2ea=_0x48baaa(0x169),_0x1a83a1=_0x75626e[_0x48baaa(0x167)](_0x4eb2ea);if(_0x1a83a1)return _0x3a1089(_0x1a83a1);const _0x196f7b=new MutationObserver(_0x29eb8d=>{const _0x3b119e=_0x48baaa,_0x2b9713=_0x29eb8d[_0x3b119e(0x173)](_0x4e1090=>_0x4e1090[_0x3b119e(0x16a)]===_0x75626e&&_0x4e1090[_0x3b119e(0x185)][_0x3b119e(0x156)]>0x0&&_0x4e1090[_0x3b119e(0x185)][0x0][_0x3b119e(0x160)][_0x3b119e(0x168)]()===_0x4eb2ea);_0x2b9713[_0x3b119e(0x156)]&&(_0x196f7b[_0x3b119e(0x171)](),_0x3a1089(_0x2b9713[0x0][_0x3b119e(0x185)][0x0]));});_0x196f7b[_0x48baaa(0x17d)](_0x75626e,{'childList':!0x0,'subtree':!0x0});}[_0x35d8b6(0x153)](_0x519e68){const _0x49a210=_0x35d8b6;_0x519e68[_0x49a210(0x157)](_0x49a210(0x15a),_0x3aa602=>{const _0x5e447a=_0x49a210;this[_0x5e447a(0x163)](_0x5e447a(0x15a),{'imageSrc':_0x3aa602[_0x5e447a(0x166)][_0x5e447a(0x179)]});}),_0x519e68[_0x49a210(0x157)](_0x49a210(0x16f),()=>{const _0x302cd6=_0x49a210;this[_0x302cd6(0x163)](_0x302cd6(0x16f));});}[_0x35d8b6(0x164)](){const _0x32f465=_0x35d8b6;this[_0x32f465(0x17c)]['on'](_0x32f465(0x158),()=>{const _0x5e9cee=_0x32f465;this[_0x5e9cee(0x163)](_0x5e9cee(0x158));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x128991=_0x11a1;(function(_0xd3f7c2,_0x457452){const _0x7da2f8=_0x11a1,_0x42477d=_0xd3f7c2();while(!![]){try{const _0x20e290=parseInt(_0x7da2f8(0xb5))/0x1+parseInt(_0x7da2f8(0xb6))/0x2+parseInt(_0x7da2f8(0xa8))/0x3*(-parseInt(_0x7da2f8(0xa9))/0x4)+-parseInt(_0x7da2f8(0xbe))/0x5+parseInt(_0x7da2f8(0xb3))/0x6+parseInt(_0x7da2f8(0xa2))/0x7+-parseInt(_0x7da2f8(0xb2))/0x8*(-parseInt(_0x7da2f8(0xbc))/0x9);if(_0x20e290===_0x457452)break;else _0x42477d['push'](_0x42477d['shift']());}catch(_0x172cc0){_0x42477d['push'](_0x42477d['shift']());}}}(_0x4383,0xb0605));import{Command as _0xb991c4}from'ckeditor5/src/core.js';function _0x11a1(_0x1aed54,_0x4c191c){const _0x43830d=_0x4383();return _0x11a1=function(_0x11a11c,_0x4c6c37){_0x11a11c=_0x11a11c-0xa2;let _0x79dd51=_0x43830d[_0x11a11c];return _0x79dd51;},_0x11a1(_0x1aed54,_0x4c191c);}import{Dialog as _0x54d3d2}from'ckeditor5/src/ui.js';import _0x44ad55 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4d5377}from'../utils/editingutils.js';export default class J extends _0xb991c4{[_0x128991(0xad)];static get[_0x128991(0xa7)](){return[_0x54d3d2];}[_0x128991(0xba)];constructor(_0x2455ca){const _0x982803=_0x128991;super(_0x2455ca),this[_0x982803(0xad)]=void 0x0,this[_0x982803(0xba)]=_0x4d5377(_0x2455ca[_0x982803(0xb7)][_0x982803(0xa4)](_0x982803(0xab))||[]),this[_0x982803(0xac)]({'isActive':!0x1});}[_0x128991(0xbb)](){const _0x1d0e4f=_0x128991,_0x5d8eea=this[_0x1d0e4f(0xb9)][_0x1d0e4f(0xaa)][_0x1d0e4f(0xbd)][_0x1d0e4f(0xb0)][_0x1d0e4f(0xae)]();this[_0x1d0e4f(0xaf)]=this[_0x1d0e4f(0xba)](_0x5d8eea);}[_0x128991(0xa6)](){const _0x42c1ce=_0x128991;this[_0x42c1ce(0xad)]&&(this[_0x42c1ce(0xa3)](_0x42c1ce(0xbf)),this[_0x42c1ce(0xad)]=void 0x0);const _0x4aa209=this[_0x42c1ce(0xb9)][_0x42c1ce(0xaa)][_0x42c1ce(0xbd)][_0x42c1ce(0xb0)][_0x42c1ce(0xae)]();_0x4aa209&&(_0x4aa209['is'](_0x42c1ce(0xb4),_0x42c1ce(0xa5))||_0x4aa209['is'](_0x42c1ce(0xb4),_0x42c1ce(0xb8)))&&(this[_0x42c1ce(0xad)]=new _0x44ad55(this[_0x42c1ce(0xb9)],this[_0x42c1ce(0xb9)][_0x42c1ce(0xb1)][_0x42c1ce(0xa4)](_0x54d3d2),_0x4aa209),this[_0x42c1ce(0xc0)](_0x42c1ce(0xbf))['to'](this[_0x42c1ce(0xad)],_0x42c1ce(0xbf)));}}function _0x4383(){const _0x5d1ca3=['6124517IDtPRk','unbind','get','imageBlock','execute','requires','3bWGgDo','3947448XrnmVZ','model','uploadcare.allowExternalImagesEditing','set','imageEditController','getSelectedElement','isEnabled','selection','plugins','56608OXUvyD','2545500JePQmQ','element','397687DTtNNU','2451138Lrbmze','config','imageInline','editor','_isEditable','refresh','72NfaVwT','document','6348730IJvvYV','isActive','bind'];_0x4383=function(){return _0x5d1ca3;};return _0x4383();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1033b8=_0x4898;(function(_0x3aae6f,_0x401ca2){const _0x2a1cd7=_0x4898,_0xe87ce4=_0x3aae6f();while(!![]){try{const _0x3b9d0d=-parseInt(_0x2a1cd7(0x185))/0x1*(parseInt(_0x2a1cd7(0x18c))/0x2)+parseInt(_0x2a1cd7(0x186))/0x3+parseInt(_0x2a1cd7(0x193))/0x4*(-parseInt(_0x2a1cd7(0x191))/0x5)+parseInt(_0x2a1cd7(0x188))/0x6*(-parseInt(_0x2a1cd7(0x18d))/0x7)+-parseInt(_0x2a1cd7(0x17b))/0x8*(-parseInt(_0x2a1cd7(0x18b))/0x9)+parseInt(_0x2a1cd7(0x189))/0xa*(-parseInt(_0x2a1cd7(0x17d))/0xb)+-parseInt(_0x2a1cd7(0x18e))/0xc*(-parseInt(_0x2a1cd7(0x182))/0xd);if(_0x3b9d0d===_0x401ca2)break;else _0xe87ce4['push'](_0xe87ce4['shift']());}catch(_0x47380a){_0xe87ce4['push'](_0xe87ce4['shift']());}}}(_0x3489,0x51234));import{Plugin as _0x294cd6}from'ckeditor5/src/core.js';function _0x4898(_0x529328,_0x4850d7){const _0x3489cd=_0x3489();return _0x4898=function(_0x489889,_0xed1c0c){_0x489889=_0x489889-0x17b;let _0x4d6a75=_0x3489cd[_0x489889];return _0x4d6a75;},_0x4898(_0x529328,_0x4850d7);}import{Notification as _0x2b8725}from'ckeditor5/src/ui.js';import _0x3b487f from'./uploadcareimageeditcommand.js';function _0x3489(){const _0x100676=['uploadcareImageReplace','ImageUtils','91bLIjPH','ImageEditing','pluginName','3ngFnLv','364539wgxMjy','isPremiumPlugin','241782yvmRVs','770FvoTeX','requires','3586104bOVeZD','234008bfirzj','63wRCHic','1911264vAnLwb','isOfficialPlugin','UploadcareImageEditEditing','9195afRKnj','init','1048swqweg','8IdXpWy','uploadcareImageEdit','15290SPxTpJ','add','commands'];_0x3489=function(){return _0x100676;};return _0x3489();}import _0x2b0834 from'./uploadcareimagereplacecommand.js';import _0xcacfc1 from'../uploadcareediting.js';export default class g extends _0x294cd6{static get[_0x1033b8(0x184)](){const _0x90435=_0x1033b8;return _0x90435(0x190);}static get[_0x1033b8(0x18a)](){const _0x3ad054=_0x1033b8;return[_0xcacfc1,_0x2b8725,_0x3ad054(0x181),_0x3ad054(0x183)];}static get[_0x1033b8(0x18f)](){return!0x0;}static get[_0x1033b8(0x187)](){return!0x0;}[_0x1033b8(0x192)](){const _0x39ab9f=_0x1033b8,{editor:_0x4ffc05}=this;_0x4ffc05[_0x39ab9f(0x17f)][_0x39ab9f(0x17e)](_0x39ab9f(0x17c),new _0x3b487f(_0x4ffc05)),_0x4ffc05[_0x39ab9f(0x17f)][_0x39ab9f(0x17e)](_0x39ab9f(0x180),new _0x2b0834(_0x4ffc05));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x239025}from'ckeditor5/src/core.js';import{ButtonView as _0x49dc07}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x23d35f}from'ckeditor5/src/icons.js';import{createElement as _0x112b95}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 _0x239025{['_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 _0x1b233d=this['editor'];_0x1b233d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4dfc2c=>{const _0x3d619b=_0x1b233d['commands']['get']('uploadcareImageEdit'),_0x1204d8=new _0x49dc07(_0x4dfc2c),t=_0x4dfc2c['t'];return _0x1204d8['set']({'icon':_0x23d35f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1204d8['bind']('isEnabled')['to'](_0x3d619b),_0x1204d8['bind']('isOn')['to'](_0x3d619b,'isActive'),this['listenTo'](_0x1204d8,'execute',()=>{_0x1b233d['execute']('uploadcareImageEdit'),_0x1b233d['editing']['view']['focus']();}),_0x1204d8;}),this['_initConfig']();}['_initConfig'](){const _0x5d3440=_0x112b95(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5d3440),this['listenTo'](this['editor'],'destroy',()=>{_0x5d3440['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xf769c4=_0x4d46;function _0x4d46(_0x1035a9,_0x4c154b){const _0x119188=_0x1191();return _0x4d46=function(_0x4d46c9,_0x3c1d80){_0x4d46c9=_0x4d46c9-0x152;let _0x163f97=_0x119188[_0x4d46c9];return _0x163f97;},_0x4d46(_0x1035a9,_0x4c154b);}function _0x1191(){const _0x376688=['9EKXBKP','3677656tutuaZ','editor','execute','isEnabled','220EWpMKX','element','133jvFgWd','84PgcRRS','removeAttribute','imageInline','refresh','model','7732350HPNnVF','216744punyHG','imageBlock','srcset','190WcmBqQ','sizes','179028ioYohZ','setAttributes','document','3426WvnonU','change','10533mnuKKI','getSelectedElement','1019190zGGcJU','selection'];_0x1191=function(){return _0x376688;};return _0x1191();}(function(_0x35b423,_0x59f868){const _0x496096=_0x4d46,_0x21ce07=_0x35b423();while(!![]){try{const _0x4fba72=parseInt(_0x496096(0x16b))/0x1*(-parseInt(_0x496096(0x166))/0x2)+parseInt(_0x496096(0x16d))/0x3*(parseInt(_0x496096(0x15a))/0x4)+-parseInt(_0x496096(0x153))/0x5+-parseInt(_0x496096(0x168))/0x6*(-parseInt(_0x496096(0x15c))/0x7)+parseInt(_0x496096(0x156))/0x8*(-parseInt(_0x496096(0x155))/0x9)+parseInt(_0x496096(0x162))/0xa+parseInt(_0x496096(0x163))/0xb*(-parseInt(_0x496096(0x15d))/0xc);if(_0x4fba72===_0x59f868)break;else _0x21ce07['push'](_0x21ce07['shift']());}catch(_0xb1203c){_0x21ce07['push'](_0x21ce07['shift']());}}}(_0x1191,0x6332f));import{Command as _0x4aa7da}from'ckeditor5/src/core.js';export default class O extends _0x4aa7da{[_0xf769c4(0x160)](){const _0x2275b2=_0xf769c4,_0x1ec970=this[_0x2275b2(0x157)][_0x2275b2(0x161)][_0x2275b2(0x16a)][_0x2275b2(0x154)][_0x2275b2(0x152)]();this[_0x2275b2(0x159)]=Boolean(_0x1ec970&&(_0x1ec970['is'](_0x2275b2(0x15b),_0x2275b2(0x164))||_0x1ec970['is'](_0x2275b2(0x15b),_0x2275b2(0x15f))));}[_0xf769c4(0x158)](_0x55c1e1){const _0x1f0a14=_0xf769c4,_0x525fd3=this[_0x1f0a14(0x157)][_0x1f0a14(0x161)][_0x1f0a14(0x16a)][_0x1f0a14(0x154)][_0x1f0a14(0x152)]();this[_0x1f0a14(0x157)][_0x1f0a14(0x161)][_0x1f0a14(0x16c)](_0x225993=>{const _0x577d1a=_0x1f0a14;_0x225993[_0x577d1a(0x169)](_0x55c1e1,_0x525fd3),_0x225993[_0x577d1a(0x15e)](_0x577d1a(0x165),_0x525fd3),_0x225993[_0x577d1a(0x15e)](_0x577d1a(0x167),_0x525fd3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1203e7=_0x3ba3;(function(_0x1e9e33,_0x24b0f2){var _0x21ad13=_0x3ba3,_0x19695f=_0x1e9e33();while(!![]){try{var _0x4fa57f=parseInt(_0x21ad13(0xf7))/0x1+parseInt(_0x21ad13(0xee))/0x2*(parseInt(_0x21ad13(0xf3))/0x3)+-parseInt(_0x21ad13(0xf5))/0x4+parseInt(_0x21ad13(0xf1))/0x5*(parseInt(_0x21ad13(0xf9))/0x6)+parseInt(_0x21ad13(0xef))/0x7*(-parseInt(_0x21ad13(0xf2))/0x8)+-parseInt(_0x21ad13(0xf4))/0x9+parseInt(_0x21ad13(0xf8))/0xa;if(_0x4fa57f===_0x24b0f2)break;else _0x19695f['push'](_0x19695f['shift']());}catch(_0x5a7ca9){_0x19695f['push'](_0x19695f['shift']());}}}(_0x5307,0xdb63a));import{Plugin as _0x9f3ec}from'ckeditor5/src/core.js';function _0x5307(){var _0x1cd88f=['5021668rDyoce','requires','546764RYIkUA','16783660drfSLA','666060CQYNzW','pluginName','isPremiumPlugin','UploadcareImageEdit','2TVnMxa','287tGbAYW','isOfficialPlugin','15pTotrz','221032sHkPcq','4598928JYWcjU','7238808PbZeZz'];_0x5307=function(){return _0x1cd88f;};return _0x5307();}function _0x3ba3(_0x3cefb6,_0x50eb04){var _0x53079a=_0x5307();return _0x3ba3=function(_0x3ba384,_0x3cec5f){_0x3ba384=_0x3ba384-0xee;var _0xd75973=_0x53079a[_0x3ba384];return _0xd75973;},_0x3ba3(_0x3cefb6,_0x50eb04);}import _0x4f5427 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0xbfd27a from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x9f3ec{static get[_0x1203e7(0xfa)](){var _0x3848c0=_0x1203e7;return _0x3848c0(0xfc);}static get[_0x1203e7(0xf6)](){return[_0x4f5427,_0xbfd27a];}static get[_0x1203e7(0xf0)](){return!0x0;}static get[_0x1203e7(0xfb)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b288d=_0x1158;(function(_0x3189b3,_0xf1f9fa){const _0x222276=_0x1158,_0x6acc9d=_0x3189b3();while(!![]){try{const _0x5d4622=parseInt(_0x222276(0xae))/0x1*(parseInt(_0x222276(0x94))/0x2)+parseInt(_0x222276(0x80))/0x3+-parseInt(_0x222276(0x9b))/0x4+parseInt(_0x222276(0x9d))/0x5+parseInt(_0x222276(0x91))/0x6*(parseInt(_0x222276(0x86))/0x7)+-parseInt(_0x222276(0x8f))/0x8+parseInt(_0x222276(0xb3))/0x9*(-parseInt(_0x222276(0x89))/0xa);if(_0x5d4622===_0xf1f9fa)break;else _0x6acc9d['push'](_0x6acc9d['shift']());}catch(_0x5b6673){_0x6acc9d['push'](_0x6acc9d['shift']());}}}(_0x4440,0x6a208));import{Plugin as _0x335036}from'ckeditor5/src/core.js';import{IconDropbox as _0x2b3600,IconFacebook as _0x26be96,IconGoogleDrive as _0x18066f,IconGooglePhotos as _0x23b112,IconUploadcareImageUpload as _0x323611,IconUploadcareLink as _0x4b5abc,IconOneDrive as _0x49436d}from'ckeditor5/src/icons.js';import{ButtonView as _0x213871,MenuBarMenuListItemButtonView as _0x1b3ee3}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x466890}from'./uploadcareconfig.js';function _0x4440(){const _0x24ab50=['UploadcareUI','upload','_createMenuBarButtons','forEach','_licenseKeyCheckInterval','_showLicenseError','invalid','uploadcareLicenseKeyUsageLimit','featureNotAllowed','_normalizeConfigSourceList','bind','destroy','Replace','text','isOfficialPlugin','Facebook','entries','pluginName','_createToolbarButton','domainLimit','licenseKey','2181096wBfDOn','plugins','config','assetManager','uploadcareLicenseKeyExpired','get','21eEyENs','_getIntegrationKey','afterInit','10lVoSiU','label','editor','uploadcareLicenseKeyDomainLimit','locale','init','538992ABQVRb','Uploadcare','654294Xmxthv','_createButton','GPhotos','2YoYBmH','has','isEnabled','URL','uploadcare.uploader.sourceList','usageLimit','Insert','2624324aLdJoS','Local','15480bFzieu','map','icon','expired','shortText','isPremiumPlugin','uploadcareLicenseKeyNotAllowed','uploadcareLicenseKeyValid','OneDrive','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyEvaluationLimit','commands','trialLimit','ImageInsertUI','execute','_createDropdownButtons','uploadcareLicenseKeyTrialLimit','526253KnISVu','push','evaluationLimit','reduce','tooltip','3828393EAfyTy','uploadcare','registerIntegration','url','type','GDrive','Dropbox','withText','isImageSelected'];_0x4440=function(){return _0x24ab50;};return _0x4440();}import{getTranslation as _0x403fe9}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';function _0x1158(_0xe13b60,_0x429879){const _0x4440c2=_0x4440();return _0x1158=function(_0x1158ed,_0x235508){_0x1158ed=_0x1158ed-0x74;let _0xe78e42=_0x4440c2[_0x1158ed];return _0xe78e42;},_0x1158(_0xe13b60,_0x429879);}export default class e extends _0x335036{[_0x1b288d(0x7f)];[_0x1b288d(0xc0)];static get[_0x1b288d(0x7c)](){const _0x3b23ac=_0x1b288d;return _0x3b23ac(0xbc);}static get[_0x1b288d(0x79)](){return!0x0;}static get[_0x1b288d(0xa2)](){return!0x0;}[_0x1b288d(0x8e)](){const _0xba2922=_0x1b288d;this[_0xba2922(0x7f)]=this[_0xba2922(0x8b)][_0xba2922(0x82)][_0xba2922(0x85)](_0xba2922(0x7f));const _0x537943=this[_0xba2922(0x8b)];this[_0xba2922(0xc0)]=setInterval(()=>{const _0x16cf74=_0xba2922;let _0x2f17c0;for(const _0x47200e in _0x537943){const _0x3e77dc=_0x47200e,_0x4b2417=_0x537943[_0x3e77dc];if(_0x16cf74(0xa4)==_0x4b2417||_0x16cf74(0xa6)==_0x4b2417||_0x16cf74(0x84)==_0x4b2417||_0x16cf74(0x8c)==_0x4b2417||_0x16cf74(0xa3)==_0x4b2417||_0x16cf74(0xa7)==_0x4b2417||_0x16cf74(0xad)==_0x4b2417||_0x16cf74(0xc3)==_0x4b2417){delete _0x537943[_0x3e77dc],_0x2f17c0=_0x4b2417,clearInterval(this[_0x16cf74(0xc0)]),this[_0x16cf74(0xc0)]=void 0x0;break;}}_0x16cf74(0xa6)==_0x2f17c0&&_0x537943[_0x16cf74(0xc1)](_0x16cf74(0xc2)),_0x16cf74(0x84)==_0x2f17c0&&_0x537943[_0x16cf74(0xc1)](_0x16cf74(0xa0)),_0x16cf74(0x8c)==_0x2f17c0&&_0x537943[_0x16cf74(0xc1)](_0x16cf74(0x7e)),_0x16cf74(0xa3)==_0x2f17c0&&_0x537943[_0x16cf74(0xc1)](_0x16cf74(0xc4),_0x16cf74(0x90)),_0x16cf74(0xa7)==_0x2f17c0&&_0x537943[_0x16cf74(0xc1)](_0x16cf74(0xb0)),_0x16cf74(0xad)==_0x2f17c0&&_0x537943[_0x16cf74(0xc1)](_0x16cf74(0xa9)),_0x16cf74(0xc3)==_0x2f17c0&&_0x537943[_0x16cf74(0xc1)](_0x16cf74(0x99));},0x3e8);}[_0x1b288d(0x88)](){const _0x139340=_0x1b288d,{editor:_0x14314e}=this,_0x1adbb1=_0x14314e[_0x139340(0xa8)][_0x139340(0x85)](_0x139340(0xb4));if(!_0x1adbb1)return;const _0x2542cb=this[_0x139340(0x74)](_0x14314e[_0x139340(0x82)][_0x139340(0x85)](_0x139340(0x98)))[_0x139340(0xb1)]((_0x1a17f6,_0xaf327e)=>{const _0x25e6ee=_0x139340,_0x3fba52=this[_0x25e6ee(0x87)](_0xaf327e[_0x25e6ee(0xb7)]);return _0x1a17f6[_0x3fba52]||(_0x1a17f6[_0x3fba52]=[]),_0x1a17f6[_0x3fba52][_0x25e6ee(0xaf)](_0xaf327e),_0x1a17f6;},{});_0x14314e[_0x139340(0x81)][_0x139340(0x95)](_0x139340(0xaa))&&_0x14314e[_0x139340(0xa8)][_0x139340(0x85)](_0x139340(0xb4))&&Object[_0x139340(0x7b)](_0x2542cb)[_0x139340(0xbf)](([_0xf52922,_0x641f0e])=>{const _0x1c4bf5=_0x139340;_0x14314e[_0x1c4bf5(0x81)][_0x1c4bf5(0x85)](_0x1c4bf5(0xaa))[_0x1c4bf5(0xb5)]({'name':_0xf52922,'observable':()=>_0x1adbb1,'buttonViewCreator':()=>this[_0x1c4bf5(0x7d)](_0x641f0e),'formViewCreator':()=>this[_0x1c4bf5(0xac)](_0x641f0e),'menuBarButtonViewCreator':()=>this[_0x1c4bf5(0xbe)](_0x641f0e),'override':_0x1c4bf5(0x83)!==_0xf52922});});}[_0x1b288d(0x76)](){const _0x2d2630=_0x1b288d;super[_0x2d2630(0x76)](),this[_0x2d2630(0xc0)]&&clearInterval(this[_0x2d2630(0xc0)]);}[_0x1b288d(0x74)](_0x5408db){const _0x4f5624=_0x1b288d,{locale:_0x50d5a6}=this[_0x4f5624(0x8b)];return _0x5408db[_0x4f5624(0x9e)](_0x3c0263=>{const _0x10b602=_0x4f5624,_0x5158a8=_0x403fe9(_0x50d5a6,_0x3c0263,_0x10b602(0x9a));switch(_0x3c0263){case _0x466890[_0x10b602(0x9c)]:return{'icon':_0x323611,'type':_0x466890[_0x10b602(0x9c)],..._0x5158a8};case _0x466890[_0x10b602(0x97)]:return{'icon':_0x4b5abc,'type':_0x466890[_0x10b602(0x97)],..._0x5158a8};case _0x466890[_0x10b602(0xb9)]:return{'icon':_0x2b3600,'type':_0x466890[_0x10b602(0xb9)],..._0x5158a8};case _0x466890[_0x10b602(0x7a)]:return{'icon':_0x26be96,'type':_0x466890[_0x10b602(0x7a)],..._0x5158a8};case _0x466890[_0x10b602(0xb8)]:return{'icon':_0x18066f,'type':_0x466890[_0x10b602(0xb8)],..._0x5158a8};case _0x466890[_0x10b602(0x93)]:return{'icon':_0x23b112,'type':_0x466890[_0x10b602(0x93)],..._0x5158a8};case _0x466890[_0x10b602(0xa5)]:return{'icon':_0x49436d,'type':_0x466890[_0x10b602(0xa5)],..._0x5158a8};}});}[_0x1b288d(0x87)](_0xa0ae9c){const _0xe21303=_0x1b288d;switch(_0xa0ae9c){case _0x466890[_0xe21303(0x9c)]:return _0xe21303(0xbd);case _0x466890[_0xe21303(0x97)]:return _0xe21303(0xb6);default:return _0xe21303(0x83);}}[_0x1b288d(0x92)](_0x6691ed,_0x28dff4){const _0x294963=_0x1b288d,_0x15dfab=this[_0x294963(0x8b)],_0xd01e90=new _0x6691ed(_0x15dfab[_0x294963(0x8d)]),_0x13e131=_0x15dfab[_0x294963(0xa8)][_0x294963(0x85)](_0x294963(0xb4));return _0xd01e90[_0x294963(0x75)](_0x294963(0x96))['to'](_0x13e131),_0xd01e90['on'](_0x294963(0xab),()=>{const _0x4da665=_0x294963;_0x13e131[_0x4da665(0xab)](_0x28dff4);}),_0xd01e90;}[_0x1b288d(0x7d)](_0x506df9){const _0x39c87c=_0x1b288d,{locale:_0x8cf9bc}=this[_0x39c87c(0x8b)],_0x20b6fa=this[_0x39c87c(0x8b)][_0x39c87c(0x81)][_0x39c87c(0x85)](_0x39c87c(0xaa)),_0x54479f=_0x506df9[0x0],_0x15f7d1=this[_0x39c87c(0x92)](_0x213871,_0x54479f[_0x39c87c(0xb7)]);return _0x15f7d1[_0x39c87c(0x9f)]=_0x54479f[_0x39c87c(0x9f)],_0x15f7d1[_0x39c87c(0x75)](_0x39c87c(0x8a))['to'](_0x20b6fa,_0x39c87c(0xbb),_0x3a4741=>_0x403fe9(_0x8cf9bc,_0x54479f[_0x39c87c(0xb7)],_0x3a4741?_0x39c87c(0x77):_0x39c87c(0x9a))[_0x39c87c(0x78)]),_0x15f7d1[_0x39c87c(0xb2)]=!0x0,_0x15f7d1;}[_0x1b288d(0xac)](_0x2672c1){const _0x542c5c=_0x1b288d,{locale:_0xf32d3c}=this[_0x542c5c(0x8b)],_0x58571d=this[_0x542c5c(0x8b)][_0x542c5c(0x81)][_0x542c5c(0x85)](_0x542c5c(0xaa));return _0x2672c1[_0x542c5c(0x9e)](_0x525fa9=>{const _0x17c8e6=_0x542c5c,_0x49f7f6=this[_0x17c8e6(0x92)](_0x213871,_0x525fa9[_0x17c8e6(0xb7)]);return _0x49f7f6[_0x17c8e6(0xba)]=!0x0,_0x49f7f6[_0x17c8e6(0x9f)]=_0x525fa9[_0x17c8e6(0x9f)],_0x49f7f6[_0x17c8e6(0x75)](_0x17c8e6(0x8a))['to'](_0x58571d,_0x17c8e6(0xbb),_0x32cccd=>_0x403fe9(_0xf32d3c,_0x525fa9[_0x17c8e6(0xb7)],_0x32cccd?_0x17c8e6(0x77):_0x17c8e6(0x9a))[_0x17c8e6(0x78)]),_0x49f7f6;});}[_0x1b288d(0xbe)](_0xe00bc6){const _0x306a4f=_0x1b288d;return _0xe00bc6[_0x306a4f(0x9e)](_0x866adb=>{const _0x121303=_0x306a4f,_0x5dafea=this[_0x121303(0x92)](_0x1b3ee3,_0x866adb[_0x121303(0xb7)]);return _0x5dafea[_0x121303(0x9f)]=_0x866adb[_0x121303(0x9f)],_0x5dafea[_0x121303(0x8a)]=_0x866adb[_0x121303(0xa1)],_0x5dafea;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x6b1237}from'ckeditor5/src/core.js';import{FileRepository as _0x43a7ae}from'ckeditor5/src/upload.js';import _0xc5b8fc from'./uploadcareediting.js';import _0x24034c from'./utils/uploadutils.js';import{getImageUrls as _0x17c53a}from'./utils/editingutils.js';export default class p extends _0x6b1237{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x43a7ae,_0xc5b8fc];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x82a341=this['editor'];if(!!!_0x82a341['config']['get']('uploadcare'))return;_0x82a341['plugins']['get'](_0x43a7ae)['createUploadAdapter']=_0xa89098=>new x(_0xa89098,_0x82a341),_0x82a341['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1958e9,{imageElement:_0x3e50b1,data:_0x3505})=>{_0x82a341['model']['change'](_0x1f536c=>{_0x1f536c['setAttribute']('uploadcareImageId',_0x3505['uploadcareImageId'],_0x3e50b1);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x34f367,_0x521b38){this['loader']=_0x34f367,this['editor']=_0x521b38,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x110073=this['editor']['config']['get']('uploadcare.pubkey'),_0x2eab6e=await this['loader']['file'];return _0x24034c['upload']({'file':_0x2eab6e,'publicKey':_0x110073,'signal':this['controller']['signal'],'onProgress':_0x21f1db=>{_0x21f1db&&_0x21f1db['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x21f1db['value']);}})['then'](async _0x40d9aa=>{const {imageFallbackUrl:_0x5d34c7,imageSources:_0x1a410c}=_0x17c53a(_0x40d9aa['cdnUrl'],_0x40d9aa['imageInfo']['width']);return{'uploadcareImageId':_0x40d9aa['uuid'],'default':_0x5d34c7,'sources':_0x1a410c};})['catch'](()=>{const _0x3cb85f=t('Cannot\x20upload\x20file:')+('\x20'+_0x2eab6e['name']+'.');return Promise['reject'](_0x3cb85f);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x9c8c52}from'../uploadcareconfig.js';export function getTranslation(_0x4bf178,_0x4767f5,_0x50284b){const t=_0x4bf178['t'],_0x3f08e6=_0x4bf178['t'];switch(_0x4767f5){case _0x9c8c52['Local']:return{'text':_0x3f08e6('Insert'===_0x50284b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3f08e6('From\x20computer')};case _0x9c8c52['URL']:return{'text':'Insert'===_0x50284b?_0x3f08e6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3f08e6('Via\x20URL')};case _0x9c8c52['Dropbox']:return{'text':t('Insert'===_0x50284b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x9c8c52['Facebook']:return{'text':t('Insert'===_0x50284b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x9c8c52['GDrive']:return{'text':t('Insert'===_0x50284b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x9c8c52['GPhotos']:return{'text':t('Insert'===_0x50284b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x9c8c52['OneDrive']:return{'text':t('Insert'===_0x50284b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4767f5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xa37c94=_0x1007;(function(_0x91b593,_0x2681d0){var _0x3f7435=_0x1007,_0x4f689a=_0x91b593();while(!![]){try{var _0x265df5=-parseInt(_0x3f7435(0x164))/0x1*(parseInt(_0x3f7435(0x15d))/0x2)+parseInt(_0x3f7435(0x157))/0x3+parseInt(_0x3f7435(0x167))/0x4*(-parseInt(_0x3f7435(0x158))/0x5)+parseInt(_0x3f7435(0x162))/0x6*(-parseInt(_0x3f7435(0x163))/0x7)+-parseInt(_0x3f7435(0x159))/0x8+-parseInt(_0x3f7435(0x15e))/0x9+parseInt(_0x3f7435(0x15b))/0xa;if(_0x265df5===_0x2681d0)break;else _0x4f689a['push'](_0x4f689a['shift']());}catch(_0x19b58d){_0x4f689a['push'](_0x4f689a['shift']());}}}(_0x2d0d,0x94d21));function _0x2d0d(){var _0x547218=['bindTemplate','12QfCAYR','767669jRrVUn','1jriAjX','createCollection','focusTracker','4377572RUrUll','fire','focusCycler','1531317JMyFyM','5Dczqjy','4264304WtgLwo','true','34587820JftXjl','getFocusableElement','1722590bYejGM','5864328gVIRgY','forwardCycle','div'];_0x2d0d=function(){return _0x547218;};return _0x2d0d();}import{FocusTracker as _0x1b03f8}from'ckeditor5/src/utils.js';import{View as _0x57b703,FocusCycler as _0x1077a7}from'ckeditor5/src/ui.js';function _0x1007(_0x1e2094,_0x4c4fb3){var _0x2d0d3f=_0x2d0d();return _0x1007=function(_0x10070f,_0x29cb6d){_0x10070f=_0x10070f-0x157;var _0x25e5ba=_0x2d0d3f[_0x10070f];return _0x25e5ba;},_0x1007(_0x1e2094,_0x4c4fb3);}import'../../theme/uploadcare-form.css';export default class q extends _0x57b703{[_0xa37c94(0x166)];[_0xa37c94(0x169)];constructor(_0x4c8592){var _0x126310=_0xa37c94;super(_0x4c8592),this[_0x126310(0x166)]=new _0x1b03f8(),this[_0x126310(0x169)]=new _0x1077a7({'focusables':this[_0x126310(0x165)](),'focusTracker':this[_0x126310(0x166)]});}[_0xa37c94(0x15c)](){var _0x231254=_0xa37c94;return{'tag':_0x231254(0x160),'attributes':{'aria-hidden':_0x231254(0x15a),'tabindex':'0'},'on':{'focus':this[_0x231254(0x161)]['to'](()=>{var _0x19c341=_0x231254;this[_0x19c341(0x169)][_0x19c341(0x168)](_0x19c341(0x15f));})}};}}
|