@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250219.0 → 0.0.0-nightly-next-20250219.0
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/ckeditor5-metadata.json +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/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 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +2 -6
- 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.d.ts +1 -4
- 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/theme/icons/dropbox.svg +0 -11
- package/theme/icons/error.svg +0 -1
- package/theme/icons/facebook.svg +0 -11
- package/theme/icons/google-drive.svg +0 -11
- package/theme/icons/google-photos.svg +0 -11
- package/theme/icons/image-upload.svg +0 -11
- package/theme/icons/link.svg +0 -11
- package/theme/icons/local.svg +0 -11
- package/theme/icons/onedrive.svg +0 -11
- package/theme/icons/uploadcare-image-edit.svg +0 -11
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x35223c=_0x5ead;(function(_0x5ab1b2,_0x2f549d){const _0x313a4d=_0x5ead,_0x25e37c=_0x5ab1b2();while(!![]){try{const _0xac6e30=-parseInt(_0x313a4d(0x1eb))/0x1*(-parseInt(_0x313a4d(0x1bc))/0x2)+parseInt(_0x313a4d(0x1cf))/0x3*(parseInt(_0x313a4d(0x1b2))/0x4)+-parseInt(_0x313a4d(0x1ed))/0x5+-parseInt(_0x313a4d(0x1ce))/0x6+parseInt(_0x313a4d(0x1ea))/0x7*(-parseInt(_0x313a4d(0x1b1))/0x8)+parseInt(_0x313a4d(0x1c2))/0x9+-parseInt(_0x313a4d(0x1f6))/0xa*(-parseInt(_0x313a4d(0x1bf))/0xb);if(_0xac6e30===_0x2f549d)break;else _0x25e37c['push'](_0x25e37c['shift']());}catch(_0x386f3d){_0x25e37c['push'](_0x25e37c['shift']());}}}(_0x1790,0xd2454));import{Plugin as _0x4307d5}from'ckeditor5/src/core.js';import{Dialog as _0x4d2ab4}from'ckeditor5/src/ui.js';function _0x1790(){const _0xedc08e=['schema','commands','appendChild','once','true','configElement','isRegistered','isOfficialPlugin','imageBlock','document','uploader','5422374ZoqbQj','837xFSrwf','for','ctxElement','_initSchema','body','config','data-uc-image-id','_initCtx','PictureEditing','_initConversion','view','UploadcareEditing','_initImageProcessingIndicator','uploadcare.pubkey','init','uploadcare.uploader','closeMax','contentLanguage','uc-config','insertImage','#uc-icon-arrow-down','cleanupImage','uploadcareImageReplace','render','execute','\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','isPremiumPlugin','7fsGSae','3DiYwiy','afterInit','8358070xhEnKN','remove','href','replaceImageSource','conversion','get','add','downcast','iconHrefResolver','230EGTsrA','_configElement','input[uploadcare-file-input]','attributeToAttribute','removeAttribute','extend','model','editor','getAttribute','uc-upload-ctx-provider','imageInline','_ctxElement','uploadcare','locale','pluginName','destroy','10691064VLLtJQ','14452msOIsz','editing','uploadcareImageId','map','_initConfig','join','listenTo','fromCharCode','elementToAttribute','upcast','471774dOtxuC','requires','selection','1279179aIykNU','querySelector','getSelectedElement','3443931vJpaXn'];_0x1790=function(){return _0xedc08e;};return _0x1790();}import{createElement as _0x14090a,global as _0x1c89bb,uid as _0x44a705}from'ckeditor5/src/utils.js';import _0x3b0a93 from'./uploadcarecommand.js';function _0x5ead(_0x5221e3,_0x22ba20){const _0x17902e=_0x1790();return _0x5ead=function(_0x5ead4a,_0x15865f){_0x5ead4a=_0x5ead4a-0x1b0;let _0x474086=_0x17902e[_0x5ead4a];return _0x474086;},_0x5ead(_0x5221e3,_0x22ba20);}import _0x20f52b from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2267b8}from'./utils/editingutils.js';export default class i extends _0x4307d5{constructor(){const _0x1896c9=_0x5ead;super(...arguments),this[_0x1896c9(0x1f7)]=null,this[_0x1896c9(0x201)]=null;}static get[_0x35223c(0x204)](){const _0x8d4f80=_0x35223c;return _0x8d4f80(0x1da);}static get[_0x35223c(0x1bd)](){const _0x16de48=_0x35223c;return[_0x16de48(0x1d7),_0x20f52b,_0x4d2ab4];}static get[_0x35223c(0x1ca)](){return!0x0;}static get[_0x35223c(0x1e9)](){return!0x0;}get[_0x35223c(0x1c8)](){const _0x41e31b=_0x35223c;return this[_0x41e31b(0x1f7)];}get[_0x35223c(0x1d1)](){const _0x1d785c=_0x35223c;return this[_0x1d785c(0x201)];}[_0x35223c(0x1dd)](){const _0x78f23f=_0x35223c,_0x4d4c74=this[_0x78f23f(0x1fd)];_0x4d4c74[_0x78f23f(0x1c4)][_0x78f23f(0x1f3)](_0x78f23f(0x202),new _0x3b0a93(_0x4d4c74));}[_0x35223c(0x1ec)](){const _0x4c0dd9=_0x35223c;this[_0x4c0dd9(0x1d2)](),this[_0x4c0dd9(0x1d8)](),this[_0x4c0dd9(0x1b6)](),this[_0x4c0dd9(0x1d6)](),this[_0x4c0dd9(0x1db)](),this[_0x4c0dd9(0x1b8)](this[_0x4c0dd9(0x1fd)],_0x4c0dd9(0x1b0),()=>{const _0xa5a0a1=_0x4c0dd9;this[_0xa5a0a1(0x1f7)]&&(this[_0xa5a0a1(0x1f7)][_0xa5a0a1(0x1ee)](),this[_0xa5a0a1(0x1f7)]=null),this[_0xa5a0a1(0x201)]&&(this[_0xa5a0a1(0x201)][_0xa5a0a1(0x1ee)](),this[_0xa5a0a1(0x201)]=null);const _0x3ddada=_0x1c89bb[_0xa5a0a1(0x1cc)][_0xa5a0a1(0x1c0)](_0xa5a0a1(0x1f8));_0x3ddada&&_0x3ddada[_0xa5a0a1(0x1ee)]();}),async function(_0x30160a){const _0x2929d9=_0x5780ed([0x37,0x58,0x6b,0x79,0x63,0x32,0x6f,0x48,0x4e,0x56,0x46,0x47,0x4c,0x77,0x4f,0x4a,0x76,0x54,0x45,0x6a,0x62,0x65,0x36,0x41,0x51,0x44,0x70,0x30,0x4d,0x52,0x34,0x7a,0x43,0x50,0x59,0x42,0x39,0x5a,0x73,0x38,0x72,0x64,0x6d,0x57,0x78,0x6e,0x68,0x53,0x67,0x31,0x75,0x61,0x49,0x74,0x33,0x66,0x55,0x69,0x71,0x4b,0x6c,0x35]),_0x2f4e7=0x1b489ebc,_0x2529da=0x1b4fc14c^_0x2f4e7,_0x53fc2e=window[_0x5780ed([0x44,0x61,0x74,0x65])][_0x5780ed([0x6e,0x6f,0x77])](),_0x3140c4=_0x30160a[_0x5780ed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc5146b=new window[(_0x5780ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13e315=>{_0x3140c4[_0x5780ed([0x6f,0x6e,0x63,0x65])](_0x5780ed([0x72,0x65,0x61,0x64,0x79]),_0x13e315);}),_0x15f376={[_0x5780ed([0x6b,0x74,0x79])]:_0x5780ed([0x45,0x43]),[_0x5780ed([0x75,0x73,0x65])]:_0x5780ed([0x73,0x69,0x67]),[_0x5780ed([0x63,0x72,0x76])]:_0x5780ed([0x50,0x2d,0x32,0x35,0x36]),[_0x5780ed([0x78])]:_0x5780ed([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]),[_0x5780ed([0x79])]:_0x5780ed([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]),[_0x5780ed([0x61,0x6c,0x67])]:_0x5780ed([0x45,0x53,0x32,0x35,0x36])},_0x19aa29=_0x3140c4[_0x5780ed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5780ed([0x67,0x65,0x74])](_0x5780ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2d8103(){let _0x22c1a3,_0x970fb9=null,_0x140c2a=null;try{if(_0x19aa29==_0x5780ed([0x47,0x50,0x4c]))return _0x5780ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22c1a3=_0x2f3820(),!_0x22c1a3)return _0x5780ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22c1a3[_0x5780ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x140c2a=_0x3bece4(_0x22c1a3[_0x5780ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22c1a3[_0x5780ed([0x6a,0x74,0x69])])),await _0x57c52d()?_0x42d90f()?_0xa55247()?_0x5780ed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x414357()?(_0x22c1a3[_0x5780ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5780ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x970fb9=_0x4fbb1c(_0x5780ed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x22c1a3[_0x5780ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5780ed([0x74,0x72,0x69,0x61,0x6c])&&(_0x970fb9=_0x4fbb1c(_0x5780ed([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37435b()):_0x5780ed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5780ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5780ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xf02a61){return _0x5780ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xa55247(){const _0x401a0c=[_0x5780ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5780ed([0x74,0x72,0x69,0x61,0x6c])][_0x5780ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22c1a3[_0x5780ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53fc2e/0x3e8:0xe10*_0x2529da;return _0x22c1a3[_0x5780ed([0x65,0x78,0x70])]<_0x401a0c;}function _0x42d90f(){const _0x187af4=_0x22c1a3[_0x5780ed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x187af4&&(!!_0x187af4[_0x5780ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5780ed([0x2a]))||!!_0x187af4[_0x5780ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5780ed([0x55,0x50,0x4c,0x43])));}function _0x414357(){const _0x4d90a7=_0x5ead,_0x4319de=_0x22c1a3[_0x5780ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4319de||0x0==_0x4319de[_0x5780ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20f647}=new URL(window[_0x5780ed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4d90a7(0x1ef)]);if(_0x4319de[_0x5780ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20f647))return!0x0;const _0x5811d2=_0x20f647[_0x5780ed([0x73,0x70,0x6c,0x69,0x74])](_0x5780ed([0x2e]));return _0x4319de[_0x5780ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bd691=>_0x5bd691[_0x5780ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5780ed([0x2a])))[_0x5780ed([0x6d,0x61,0x70])](_0xdb5c68=>_0xdb5c68[_0x5780ed([0x73,0x70,0x6c,0x69,0x74])](_0x5780ed([0x2e])))[_0x5780ed([0x73,0x6f,0x6d,0x65])](_0x2dcd51=>_0x5811d2[_0x5780ed([0x65,0x76,0x65,0x72,0x79])]((_0xf9c51,_0x446e3e)=>_0x2dcd51[_0x446e3e]===_0xf9c51||_0x2dcd51[_0x446e3e]===_0x5780ed([0x2a])));}function _0x37435b(){return _0x970fb9&&_0x140c2a?new window[(_0x5780ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23fd68,_0x348022)=>{_0x970fb9[_0x5780ed([0x74,0x68,0x65,0x6e])](_0x23fd68,_0x348022),_0x140c2a[_0x5780ed([0x74,0x68,0x65,0x6e])](_0x4900e3=>{_0x4900e3!=_0x5780ed([0x56,0x61,0x6c,0x69,0x64])&&_0x23fd68(_0x4900e3);},_0x348022);}):_0x970fb9||_0x140c2a||_0x5780ed([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3bece4(_0x371cc9,_0x3c5a49){return new window[(_0x5780ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a3262=>{if(_0x42576f())return _0x3a3262(_0x5780ed([0x56,0x61,0x6c,0x69,0x64]));_0x4783ca(),_0x3140c4[_0x5780ed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5780ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d70af=!0x1;const _0x3e914b=_0x44a705();function _0x40a7d4(_0x7b1317){return!!_0x7b1317&&(typeof _0x7b1317===_0x5780ed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7b1317===_0x5780ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7b1317[_0x5780ed([0x74,0x68,0x65,0x6e])]===_0x5780ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7b1317[_0x5780ed([0x63,0x61,0x74,0x63,0x68])]===_0x5780ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ffe3f(_0x419ad9){_0x1c3066(_0x419ad9)[_0x5780ed([0x74,0x68,0x65,0x6e])](_0x304337=>{if(!_0x304337||_0x304337[_0x5780ed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5780ed([0x6f,0x6b]))return _0x5780ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24585e(_0x5c4f76(_0x3e914b+_0x3c5a49))!=_0x304337[_0x5780ed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5780ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5780ed([0x56,0x61,0x6c,0x69,0x64]);})[_0x5780ed([0x74,0x68,0x65,0x6e])](_0x5ec2a0=>(_0x40e6ab(),_0x5ec2a0),()=>{const _0x2191c5=_0x20bd65();return null==_0x2191c5?(_0x40e6ab(),_0x5780ed([0x56,0x61,0x6c,0x69,0x64])):_0x5780ed(_0x53fc2e-_0x2191c5>(0x3f441abc^_0x2f4e7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5780ed([0x74,0x68,0x65,0x6e])](_0x3a3262)[_0x5780ed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a3262(_0x5780ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3bb9ad=0x1b7e703c^_0x2f4e7;function _0x40e6ab(){const _0x49c6cf=_0x5780ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x24585e(_0x5c4f76(_0x371cc9)),_0x139376=_0x132804(_0x24585e(window[_0x5780ed([0x4d,0x61,0x74,0x68])][_0x5780ed([0x63,0x65,0x69,0x6c])](_0x53fc2e/_0x3bb9ad)));window[_0x5780ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5780ed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49c6cf,_0x139376);}function _0x20bd65(){const _0xdefe76=_0x5780ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x24585e(_0x5c4f76(_0x371cc9)),_0x552282=window[_0x5780ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5780ed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdefe76);return _0x552282?window[_0x5780ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x132804(_0x552282),0x10)*_0x3bb9ad:null;}function _0x1c3066(_0x395538){return new window[(_0x5780ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c22dc,_0x39d8d5)=>{_0x395538[_0x5780ed([0x74,0x68,0x65,0x6e])](_0x3c22dc,_0x39d8d5),window[_0x5780ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39d8d5,0x1b494a7c^_0x2f4e7);});}}_0x3140c4[_0x5780ed([0x6f,0x6e])](_0x5780ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x23af43,_0x1d8d7b)=>{if(_0x1d8d7b[0x0]!=_0x371cc9)return _0x3a3262(_0x5780ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d8d7b[0x1]={..._0x1d8d7b[0x1],[_0x5780ed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e914b};},{[_0x5780ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5780ed([0x68,0x69,0x67,0x68])}),_0x3140c4[_0x5780ed([0x6f,0x6e])](_0x5780ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16e2a0=>{_0x40a7d4(_0x16e2a0[_0x5780ed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d70af=!0x0,_0x2ffe3f(_0x16e2a0[_0x5780ed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5780ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5780ed([0x6c,0x6f,0x77])}),_0xc5146b[_0x5780ed([0x74,0x68,0x65,0x6e])](()=>{_0x5d70af||_0x3a3262(_0x5780ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42576f(){return _0x3140c4[_0x5780ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5780ed([0x76,0x69,0x65,0x77])][_0x5780ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5780ed([0x61,0x75,0x74,0x6f]);}function _0x4783ca(){_0x3140c4[_0x5780ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5780ed([0x76,0x69,0x65,0x77])][_0x5780ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5780ed([0x61,0x75,0x74,0x6f]);}}function _0x4fbb1c(_0x3c79ea){const _0x5eb3e6=[new window[(_0x5780ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb98c5=>setTimeout(_0xb98c5,0x1b41a070^_0x2f4e7)),_0xc5146b[_0x5780ed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5780ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x152a52=>{let _0x231003=0x0;_0x3140c4[_0x5780ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5780ed([0x6f,0x6e])](_0x5780ed([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41a547,_0x4b785b)=>{_0x4b785b[0x0][_0x5780ed([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x231003++,_0x231003==(0x1b489f44^_0x2f4e7)&&(_0x152a52(),_0x41a547[_0x5780ed([0x6f,0x66,0x66])]());});}))];return window[_0x5780ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5780ed([0x72,0x61,0x63,0x65])](_0x5eb3e6)[_0x5780ed([0x74,0x68,0x65,0x6e])](()=>_0x3c79ea);}async function _0x4d6de9(){await _0xc5146b,_0x3140c4[_0x5780ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5780ed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55459a,_0x3140c4[_0x5780ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5780ed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55459a,_0x3140c4[_0x5780ed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5780ed([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x173273(_0x4024f8){const _0x1e22f2=_0x2eacae();_0x3140c4[_0x1e22f2]=_0x5780ed([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4024f8,_0x4024f8!=_0x5780ed([0x56,0x61,0x6c,0x69,0x64])&&_0x4d6de9();}function _0x2eacae(){const _0x56bba5=window[_0x5780ed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5780ed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5780ed([0x6e,0x6f,0x77])]())[_0x5780ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5780ed([0x2e]),'');let _0x5a737f=_0x5780ed([0x58]);for(let _0x5881d4=0x0;_0x5881d4<_0x56bba5[_0x5780ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5881d4+=0x2){let _0x4e1c67=window[_0x5780ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56bba5[_0x5780ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5881d4,_0x5881d4+0x2));_0x4e1c67>=_0x2929d9[_0x5780ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e1c67-=_0x2929d9[_0x5780ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a737f+=_0x2929d9[_0x4e1c67];}return _0x5a737f;}function _0x2f3820(){const _0x23f196=_0x19aa29[_0x5780ed([0x73,0x70,0x6c,0x69,0x74])](_0x5780ed([0x2e]));if(0x3!=_0x23f196[_0x5780ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37d277(_0x23f196[0x1]);function _0x37d277(_0x33da28){const _0x595219=_0x5db27d(_0x33da28);return _0x595219&&_0x3926c7()?_0x595219:null;function _0x3926c7(){const _0x506530=_0x595219[_0x5780ed([0x6a,0x74,0x69])],_0x3815db=window[_0x5780ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x506530[_0x5780ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x506530[_0x5780ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39a159={..._0x595219,[_0x5780ed([0x6a,0x74,0x69])]:_0x506530[_0x5780ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x506530[_0x5780ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39a159[_0x5780ed([0x76,0x63])],_0x5c4f76(_0x39a159)==_0x3815db;}}}async function _0x57c52d(){let _0x214028=!0x0;try{const _0x4b887c=_0x19aa29[_0x5780ed([0x73,0x70,0x6c,0x69,0x74])](_0x5780ed([0x2e])),[_0x42482c,_0x45a988,_0x10955f]=_0x4b887c;return _0x3972d4(_0x42482c),await _0x2c3e24(_0x42482c,_0x45a988,_0x10955f),_0x214028;}catch(_0x98d061){return!0x1;}function _0x3972d4(_0x168ce8){const _0x47f07d=_0x5db27d(_0x168ce8);_0x47f07d&&_0x47f07d[_0x5780ed([0x61,0x6c,0x67])]==_0x5780ed([0x45,0x53,0x32,0x35,0x36])||(_0x214028=!0x1);}async function _0x2c3e24(_0x3da019,_0x1624b6,_0x23b43d){const _0x54c490=window[_0x5780ed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5780ed([0x66,0x72,0x6f,0x6d])](_0x527ad0(_0x23b43d),_0x4e4b5c=>_0x4e4b5c[_0x5780ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x673a0c=new window[(_0x5780ed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5780ed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3da019+_0x5780ed([0x2e])+_0x1624b6),_0x4c24d7=window[_0x5780ed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5780ed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c24d7)return;const _0x302d45=await _0x4c24d7[_0x5780ed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5780ed([0x6a,0x77,0x6b]),_0x15f376,{[_0x5780ed([0x6e,0x61,0x6d,0x65])]:_0x5780ed([0x45,0x43,0x44,0x53,0x41]),[_0x5780ed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5780ed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5780ed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c24d7[_0x5780ed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5780ed([0x6e,0x61,0x6d,0x65])]:_0x5780ed([0x45,0x43,0x44,0x53,0x41]),[_0x5780ed([0x68,0x61,0x73,0x68])]:{[_0x5780ed([0x6e,0x61,0x6d,0x65])]:_0x5780ed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x302d45,_0x54c490,_0x673a0c)||(_0x214028=!0x1);}}function _0x5db27d(_0x55ff92){return _0x55ff92[_0x5780ed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5780ed([0x65,0x79]))?JSON[_0x5780ed([0x70,0x61,0x72,0x73,0x65])](_0x527ad0(_0x55ff92)):null;}function _0x527ad0(_0x1e7204){return window[_0x5780ed([0x61,0x74,0x6f,0x62])](_0x1e7204[_0x5780ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5780ed([0x2b]))[_0x5780ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5780ed([0x2f])));}function _0x5c4f76(_0x13f427){let _0x138dc1=0x1505;function _0x43d594(_0x263920){for(let _0x1d920e=0x0;_0x1d920e<_0x263920[_0x5780ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d920e++){const _0x2d0f34=_0x263920[_0x5780ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d920e);_0x138dc1=(_0x138dc1<<0x5)+_0x138dc1+_0x2d0f34,_0x138dc1&=_0x138dc1;}}function _0x3e6595(_0x1292f0){Array[_0x5780ed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1292f0)?_0x1292f0[_0x5780ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e6595):_0x1292f0&&typeof _0x1292f0==_0x5780ed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5780ed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1292f0)[_0x5780ed([0x73,0x6f,0x72,0x74])]()[_0x5780ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b4ad9,_0x1658f9])=>{_0x43d594(_0x3b4ad9),_0x3e6595(_0x1658f9);}):_0x43d594(window[_0x5780ed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1292f0));}return _0x3e6595(_0x13f427),_0x138dc1>>>0x0;}function _0x24585e(_0x38b65e){return _0x38b65e[_0x5780ed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5780ed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5780ed([0x30]));}function _0x132804(_0x27e9cd){return _0x27e9cd[_0x5780ed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5780ed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5780ed([0x6a,0x6f,0x69,0x6e])]('');}function _0x55459a(){}function _0x5780ed(_0x2e3a48){const _0x2f2782=_0x5ead;return _0x2e3a48[_0x2f2782(0x1b5)](_0x55b682=>String[_0x2f2782(0x1b9)](_0x55b682))[_0x2f2782(0x1b7)]('');}_0x173273(await _0x2d8103());}(this);}[_0x35223c(0x1d2)](){const _0x31d0be=_0x35223c,_0x2a9c71=this[_0x31d0be(0x1fd)][_0x31d0be(0x1fc)][_0x31d0be(0x1c3)];_0x2a9c71[_0x31d0be(0x1c9)](_0x31d0be(0x1cb))&&_0x2a9c71[_0x31d0be(0x1fb)](_0x31d0be(0x1cb),{'allowAttributes':[_0x31d0be(0x1b4)]}),_0x2a9c71[_0x31d0be(0x1c9)](_0x31d0be(0x200))&&_0x2a9c71[_0x31d0be(0x1fb)](_0x31d0be(0x200),{'allowAttributes':[_0x31d0be(0x1b4)]});}[_0x35223c(0x1d8)](){const _0x43591b=_0x35223c,_0x3fda84=this[_0x43591b(0x1fd)];_0x3fda84[_0x43591b(0x1f1)][_0x43591b(0x1d0)](_0x43591b(0x1f4))[_0x43591b(0x1f9)]({'model':_0x43591b(0x1b4),'view':_0x43591b(0x1d5)}),_0x3fda84[_0x43591b(0x1f1)][_0x43591b(0x1d0)](_0x43591b(0x1bb))[_0x43591b(0x1ba)]({'model':{'key':_0x43591b(0x1b4),'value':_0x2afea4=>_0x2afea4[_0x43591b(0x1fe)](_0x43591b(0x1d5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2da55a=_0x3fda84[_0x43591b(0x1c4)][_0x43591b(0x1f2)](_0x43591b(0x1f0));_0x2da55a&&this[_0x43591b(0x1b8)](_0x2da55a,_0x43591b(0x1e4),(_0x13465c,[_0x5b520e,_0x2204dd])=>{const _0x162023=_0x43591b;_0x5b520e[_0x162023(0x1fa)](_0x162023(0x1b4),_0x2204dd);});}[_0x35223c(0x1b6)](){const _0x478ceb=_0x35223c,_0xe4e53=this[_0x478ceb(0x1fd)][_0x478ceb(0x1d4)][_0x478ceb(0x1f2)](_0x478ceb(0x1de))||{},_0x1d9a1f=this[_0x478ceb(0x1fd)][_0x478ceb(0x1d4)][_0x478ceb(0x1f2)](_0x478ceb(0x1dc))||'';this[_0x478ceb(0x1f7)]=_0x14090a(_0x1c89bb[_0x478ceb(0x1cc)],_0x478ceb(0x1e1),{..._0xe4e53,'pubkey':_0x1d9a1f,'ctx-name':_0x478ceb(0x1cd),'sourceList':'','imgOnly':_0x478ceb(0x1c7),'removeCopyright':_0x478ceb(0x1c7),'localeName':this[_0x478ceb(0x1fd)][_0x478ceb(0x203)][_0x478ceb(0x1e0)],'externalSourcesEmbedCss':_0x478ceb(0x1e8)}),this[_0x478ceb(0x1f7)][_0x478ceb(0x1f5)]=_0x56c4b2=>{const _0x1f7f18=_0x478ceb;if(_0x1f7f18(0x1df)==_0x56c4b2)return _0x1f7f18(0x1e3);},_0x1c89bb[_0x478ceb(0x1cc)][_0x478ceb(0x1d3)][_0x478ceb(0x1c5)](this[_0x478ceb(0x1f7)]);}[_0x35223c(0x1d6)](){const _0xf17d7d=_0x35223c;this[_0xf17d7d(0x201)]=_0x14090a(_0x1c89bb[_0xf17d7d(0x1cc)],_0xf17d7d(0x1ff),{'ctx-name':_0xf17d7d(0x1cd)}),_0x1c89bb[_0xf17d7d(0x1cc)][_0xf17d7d(0x1d3)][_0xf17d7d(0x1c5)](this[_0xf17d7d(0x201)]);}[_0x35223c(0x1db)](){const _0x45f101=_0x35223c,_0x160b5=this[_0x45f101(0x1fd)][_0x45f101(0x1c4)][_0x45f101(0x1f2)](_0x45f101(0x1e2));_0x160b5&&this[_0x45f101(0x1b8)](_0x160b5,_0x45f101(0x1e7),()=>{const _0x4c0631=_0x45f101,_0x34100c=this[_0x4c0631(0x1fd)][_0x4c0631(0x1fc)][_0x4c0631(0x1cc)][_0x4c0631(0x1be)][_0x4c0631(0x1c1)]();_0x34100c&&_0x34100c[_0x4c0631(0x1fe)](_0x4c0631(0x1b4))&&this[_0x4c0631(0x1fd)][_0x4c0631(0x1b3)][_0x4c0631(0x1d9)][_0x4c0631(0x1c6)](_0x4c0631(0x1e6),()=>{const _0x579c2c=_0x4c0631;_0x2267b8(this[_0x579c2c(0x1fd)],_0x34100c);});});const _0x4f38f4=this[_0x45f101(0x1fd)][_0x45f101(0x1c4)][_0x45f101(0x1f2)](_0x45f101(0x1e5));_0x4f38f4&&this[_0x45f101(0x1b8)](_0x4f38f4,_0x45f101(0x1e7),()=>{const _0x4e692b=_0x45f101,_0x593feb=this[_0x4e692b(0x1fd)][_0x4e692b(0x1fc)][_0x4e692b(0x1cc)][_0x4e692b(0x1be)][_0x4e692b(0x1c1)]();_0x593feb&&_0x593feb[_0x4e692b(0x1fe)](_0x4e692b(0x1b4))&&this[_0x4e692b(0x1fd)][_0x4e692b(0x1b3)][_0x4e692b(0x1d9)][_0x4e692b(0x1c6)](_0x4e692b(0x1e6),()=>{const _0x36c334=_0x4e692b;_0x2267b8(this[_0x36c334(0x1fd)],_0x593feb);});});}}
|
|
23
|
+
function _0x42db(_0x5dc60d,_0x147ad9){const _0x4cfab6=_0x4cfa();return _0x42db=function(_0x42dbd9,_0x2519d4){_0x42dbd9=_0x42dbd9-0x7d;let _0x3e98e3=_0x4cfab6[_0x42dbd9];return _0x3e98e3;},_0x42db(_0x5dc60d,_0x147ad9);}const _0x37563e=_0x42db;(function(_0x199ce9,_0x165579){const _0x42973=_0x42db,_0x4c7464=_0x199ce9();while(!![]){try{const _0x4e8605=-parseInt(_0x42973(0x94))/0x1+parseInt(_0x42973(0x8f))/0x2+-parseInt(_0x42973(0x89))/0x3*(-parseInt(_0x42973(0x96))/0x4)+-parseInt(_0x42973(0xac))/0x5+parseInt(_0x42973(0x93))/0x6+-parseInt(_0x42973(0x85))/0x7+parseInt(_0x42973(0xc3))/0x8*(parseInt(_0x42973(0x9a))/0x9);if(_0x4e8605===_0x165579)break;else _0x4c7464['push'](_0x4c7464['shift']());}catch(_0x5eb898){_0x4c7464['push'](_0x4c7464['shift']());}}}(_0x4cfa,0xcfb90));import{Plugin as _0x4b599d}from'ckeditor5/src/core.js';import{Dialog as _0x56e1bf}from'ckeditor5/src/ui.js';import{createElement as _0x557c38,global as _0x44dd3d,uid as _0x278e68}from'ckeditor5/src/utils.js';import _0x39dff1 from'./uploadcarecommand.js';import _0x4fd01b from'./uploadcareuploadadapter.js';function _0x4cfa(){const _0x5195b7=['afterInit','iconHrefResolver','7475307XjQBXv','once','_initCtx','conversion','54uoLqgs','join','downcast','getAttribute','isOfficialPlugin','uploadcare','427406ublBvU','_initConversion','imageBlock','view','528948giaabF','872729vvRWLG','selection','165316PVnrci','uploadcare.uploader','querySelector','isPremiumPlugin','13310361pLaGLQ','uploadcareImageId','_configElement','schema','fromCharCode','config','closeMax','requires','uc-upload-ctx-provider','commands','for','locale','editor','uploadcare.pubkey','configElement','upcast','removeAttribute','_initConfig','6060895VUBKnl','body','attributeToAttribute','insertImage','remove','extend','listenTo','editing','UploadcareEditing','get','#uc-icon-arrow-down','_ctxElement','cleanupImage','pluginName','_initImageProcessingIndicator','isRegistered','true','input[uploadcare-file-input]','href','data-uc-image-id','imageInline','execute','elementToAttribute','16sDykgH','document','PictureEditing','init','model','appendChild','destroy','_initSchema','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploader','uc-config','add','ctxElement','replaceImageSource','getSelectedElement','uploadcareImageReplace','map','contentLanguage','render'];_0x4cfa=function(){return _0x5195b7;};return _0x4cfa();}import{showImageProcessingIndicator as _0x2cb6df}from'./utils/editingutils.js';export default class i extends _0x4b599d{[_0x37563e(0x9c)]=null;[_0x37563e(0xb7)]=null;static get[_0x37563e(0xb9)](){const _0x1c2c7c=_0x37563e;return _0x1c2c7c(0xb4);}static get[_0x37563e(0xa1)](){const _0x5c80a3=_0x37563e;return[_0x5c80a3(0xc5),_0x4fd01b,_0x56e1bf];}static get[_0x37563e(0x8d)](){return!0x0;}static get[_0x37563e(0x99)](){return!0x0;}get[_0x37563e(0xa8)](){const _0x4627de=_0x37563e;return this[_0x4627de(0x9c)];}get[_0x37563e(0xcf)](){const _0x526b0c=_0x37563e;return this[_0x526b0c(0xb7)];}[_0x37563e(0xc6)](){const _0x437cab=_0x37563e,_0x2059be=this[_0x437cab(0xa6)];_0x2059be[_0x437cab(0xa3)][_0x437cab(0xce)](_0x437cab(0x8e),new _0x39dff1(_0x2059be));}[_0x37563e(0x83)](){const _0x4011a9=_0x37563e;this[_0x4011a9(0xca)](),this[_0x4011a9(0x90)](),this[_0x4011a9(0xab)](),this[_0x4011a9(0x87)](),this[_0x4011a9(0xba)](),this[_0x4011a9(0xb2)](this[_0x4011a9(0xa6)],_0x4011a9(0xc9),()=>{const _0x47b8d9=_0x4011a9;this[_0x47b8d9(0x9c)]&&(this[_0x47b8d9(0x9c)][_0x47b8d9(0xb0)](),this[_0x47b8d9(0x9c)]=null),this[_0x47b8d9(0xb7)]&&(this[_0x47b8d9(0xb7)][_0x47b8d9(0xb0)](),this[_0x47b8d9(0xb7)]=null);const _0x58eba4=_0x44dd3d[_0x47b8d9(0xc4)][_0x47b8d9(0x98)](_0x47b8d9(0xbd));_0x58eba4&&_0x58eba4[_0x47b8d9(0xb0)]();}),async function(_0xecd22f){const _0x5867cf=_0x2a4150([0x36,0x67,0x46,0x48,0x6b,0x37,0x35,0x73,0x58,0x5a,0x34,0x4a,0x30,0x6d,0x44,0x6c,0x31,0x43,0x79,0x55,0x6e,0x4d,0x7a,0x68,0x4c,0x70,0x38,0x75,0x49,0x59,0x62,0x66,0x64,0x45,0x72,0x6f,0x52,0x65,0x56,0x51,0x32,0x74,0x77,0x69,0x47,0x61,0x6a,0x53,0x71,0x76,0x39,0x57,0x42,0x63,0x54,0x4b,0x4e,0x41,0x78,0x50,0x33,0x4f]),_0x3d8c03=0x123a541b,_0x1660d3=0x123d0beb^_0x3d8c03,_0x4376e7=window[_0x2a4150([0x44,0x61,0x74,0x65])][_0x2a4150([0x6e,0x6f,0x77])](),_0x319777=_0xecd22f[_0x2a4150([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x151165=new window[(_0x2a4150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x806431=>{_0x319777[_0x2a4150([0x6f,0x6e,0x63,0x65])](_0x2a4150([0x72,0x65,0x61,0x64,0x79]),_0x806431);}),_0x79b9da={[_0x2a4150([0x6b,0x74,0x79])]:_0x2a4150([0x45,0x43]),[_0x2a4150([0x75,0x73,0x65])]:_0x2a4150([0x73,0x69,0x67]),[_0x2a4150([0x63,0x72,0x76])]:_0x2a4150([0x50,0x2d,0x32,0x35,0x36]),[_0x2a4150([0x78])]:_0x2a4150([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]),[_0x2a4150([0x79])]:_0x2a4150([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]),[_0x2a4150([0x61,0x6c,0x67])]:_0x2a4150([0x45,0x53,0x32,0x35,0x36])},_0x59506d=_0x319777[_0x2a4150([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2a4150([0x67,0x65,0x74])](_0x2a4150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x53d9cf(){let _0x45369f,_0x498120=null,_0x42c6cb=null;try{if(_0x59506d==_0x2a4150([0x47,0x50,0x4c]))return _0x2a4150([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45369f=_0x19547f(),!_0x45369f)return _0x2a4150([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45369f[_0x2a4150([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42c6cb=_0x454610(_0x45369f[_0x2a4150([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45369f[_0x2a4150([0x6a,0x74,0x69])])),await _0x327bca()?_0x459f36()?_0x2890e7()?_0x2a4150([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xbd168a()?(_0x45369f[_0x2a4150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a4150([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x498120=_0x7a2624(_0x2a4150([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x45369f[_0x2a4150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2a4150([0x74,0x72,0x69,0x61,0x6c])&&(_0x498120=_0x7a2624(_0x2a4150([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x527287()):_0x2a4150([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2a4150([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2a4150([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x57804a){return _0x2a4150([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2890e7(){const _0x44fda6=[_0x2a4150([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2a4150([0x74,0x72,0x69,0x61,0x6c])][_0x2a4150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45369f[_0x2a4150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4376e7/0x3e8:0xe10*_0x1660d3;return _0x45369f[_0x2a4150([0x65,0x78,0x70])]<_0x44fda6;}function _0x459f36(){const _0x432a14=_0x45369f[_0x2a4150([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x432a14&&(!!_0x432a14[_0x2a4150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a4150([0x2a]))||!!_0x432a14[_0x2a4150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a4150([0x55,0x50,0x4c,0x43])));}function _0xbd168a(){const _0x5f1ab8=_0x42db,_0x1f1887=_0x45369f[_0x2a4150([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f1887||0x0==_0x1f1887[_0x2a4150([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x277087}=new URL(window[_0x2a4150([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5f1ab8(0xbe)]);if(_0x1f1887[_0x2a4150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x277087))return!0x0;const _0x5892cb=_0x277087[_0x2a4150([0x73,0x70,0x6c,0x69,0x74])](_0x2a4150([0x2e]));return _0x1f1887[_0x2a4150([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57864e=>_0x57864e[_0x2a4150([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a4150([0x2a])))[_0x2a4150([0x6d,0x61,0x70])](_0x3d7f0b=>_0x3d7f0b[_0x2a4150([0x73,0x70,0x6c,0x69,0x74])](_0x2a4150([0x2e])))[_0x2a4150([0x73,0x6f,0x6d,0x65])](_0x172c47=>_0x5892cb[_0x2a4150([0x65,0x76,0x65,0x72,0x79])]((_0x419f16,_0x1b2bdb)=>_0x172c47[_0x1b2bdb]===_0x419f16||_0x172c47[_0x1b2bdb]===_0x2a4150([0x2a])));}function _0x527287(){return _0x498120&&_0x42c6cb?new window[(_0x2a4150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15d274,_0x141a59)=>{_0x498120[_0x2a4150([0x74,0x68,0x65,0x6e])](_0x15d274,_0x141a59),_0x42c6cb[_0x2a4150([0x74,0x68,0x65,0x6e])](_0x18957d=>{_0x18957d!=_0x2a4150([0x56,0x61,0x6c,0x69,0x64])&&_0x15d274(_0x18957d);},_0x141a59);}):_0x498120||_0x42c6cb||_0x2a4150([0x56,0x61,0x6c,0x69,0x64]);}}function _0x454610(_0x1bc24e,_0x352b8b){return new window[(_0x2a4150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1dd3=>{if(_0xb56842())return _0x4e1dd3(_0x2a4150([0x56,0x61,0x6c,0x69,0x64]));_0x42f866(),_0x319777[_0x2a4150([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2a4150([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2aa324=!0x1;const _0x165acf=_0x278e68();function _0x392e44(_0x4b48be){return!!_0x4b48be&&(typeof _0x4b48be===_0x2a4150([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b48be===_0x2a4150([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b48be[_0x2a4150([0x74,0x68,0x65,0x6e])]===_0x2a4150([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b48be[_0x2a4150([0x63,0x61,0x74,0x63,0x68])]===_0x2a4150([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c5ed1(_0x31c97b){_0x44bc2e(_0x31c97b)[_0x2a4150([0x74,0x68,0x65,0x6e])](_0x2aa340=>{if(!_0x2aa340||_0x2aa340[_0x2a4150([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2a4150([0x6f,0x6b]))return _0x2a4150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54772b(_0x1a3bf6(_0x165acf+_0x352b8b))!=_0x2aa340[_0x2a4150([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2a4150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2a4150([0x56,0x61,0x6c,0x69,0x64]);})[_0x2a4150([0x74,0x68,0x65,0x6e])](_0x370c16=>(_0x2d1d7d(),_0x370c16),()=>{const _0x28ed80=_0x1aba8d();return null==_0x28ed80?(_0x2d1d7d(),_0x2a4150([0x56,0x61,0x6c,0x69,0x64])):_0x2a4150(_0x4376e7-_0x28ed80>(0x3636d01b^_0x3d8c03)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2a4150([0x74,0x68,0x65,0x6e])](_0x4e1dd3)[_0x2a4150([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e1dd3(_0x2a4150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x360c70=0x120cba9b^_0x3d8c03;function _0x2d1d7d(){const _0x5dff8d=_0x2a4150([0x6c,0x6c,0x63,0x74,0x2d])+_0x54772b(_0x1a3bf6(_0x1bc24e)),_0x259381=_0x3c6bac(_0x54772b(window[_0x2a4150([0x4d,0x61,0x74,0x68])][_0x2a4150([0x63,0x65,0x69,0x6c])](_0x4376e7/_0x360c70)));window[_0x2a4150([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a4150([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5dff8d,_0x259381);}function _0x1aba8d(){const _0x4c7900=_0x2a4150([0x6c,0x6c,0x63,0x74,0x2d])+_0x54772b(_0x1a3bf6(_0x1bc24e)),_0x36e7e2=window[_0x2a4150([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2a4150([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c7900);return _0x36e7e2?window[_0x2a4150([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c6bac(_0x36e7e2),0x10)*_0x360c70:null;}function _0x44bc2e(_0x5f5abe){return new window[(_0x2a4150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5cff85,_0x264a86)=>{_0x5f5abe[_0x2a4150([0x74,0x68,0x65,0x6e])](_0x5cff85,_0x264a86),window[_0x2a4150([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x264a86,0x123b80db^_0x3d8c03);});}}_0x319777[_0x2a4150([0x6f,0x6e])](_0x2a4150([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x505e46,_0x23bc12)=>{if(_0x23bc12[0x0]!=_0x1bc24e)return _0x4e1dd3(_0x2a4150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23bc12[0x1]={..._0x23bc12[0x1],[_0x2a4150([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x165acf};},{[_0x2a4150([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a4150([0x68,0x69,0x67,0x68])}),_0x319777[_0x2a4150([0x6f,0x6e])](_0x2a4150([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x592996=>{_0x392e44(_0x592996[_0x2a4150([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2aa324=!0x0,_0x5c5ed1(_0x592996[_0x2a4150([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2a4150([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2a4150([0x6c,0x6f,0x77])}),_0x151165[_0x2a4150([0x74,0x68,0x65,0x6e])](()=>{_0x2aa324||_0x4e1dd3(_0x2a4150([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb56842(){return _0x319777[_0x2a4150([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a4150([0x76,0x69,0x65,0x77])][_0x2a4150([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2a4150([0x61,0x75,0x74,0x6f]);}function _0x42f866(){_0x319777[_0x2a4150([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2a4150([0x76,0x69,0x65,0x77])][_0x2a4150([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2a4150([0x61,0x75,0x74,0x6f]);}}function _0x7a2624(_0x3fd6e8){const _0x4fc22c=[new window[(_0x2a4150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d437=>setTimeout(_0x54d437,0x12336ad7^_0x3d8c03)),_0x151165[_0x2a4150([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2a4150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ce797=>{let _0x134b33=0x0;_0x319777[_0x2a4150([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a4150([0x6f,0x6e])](_0x2a4150([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xed2a57,_0x1fa7d3)=>{_0x1fa7d3[0x0][_0x2a4150([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x134b33++,_0x134b33==(0x123a55e3^_0x3d8c03)&&(_0x2ce797(),_0xed2a57[_0x2a4150([0x6f,0x66,0x66])]());});}))];return window[_0x2a4150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2a4150([0x72,0x61,0x63,0x65])](_0x4fc22c)[_0x2a4150([0x74,0x68,0x65,0x6e])](()=>_0x3fd6e8);}async function _0x5ad3ad(){await _0x151165,_0x319777[_0x2a4150([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a4150([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x541563,_0x319777[_0x2a4150([0x6d,0x6f,0x64,0x65,0x6c])][_0x2a4150([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x541563,_0x319777[_0x2a4150([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2a4150([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21dd93(_0x343ce3){const _0x4e8adc=_0x2dc199();_0x319777[_0x4e8adc]=_0x2a4150([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x343ce3,_0x343ce3!=_0x2a4150([0x56,0x61,0x6c,0x69,0x64])&&_0x5ad3ad();}function _0x2dc199(){const _0x90a18a=window[_0x2a4150([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2a4150([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2a4150([0x6e,0x6f,0x77])]())[_0x2a4150([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2a4150([0x2e]),'');let _0x229297=_0x2a4150([0x67]);for(let _0x568ab4=0x0;_0x568ab4<_0x90a18a[_0x2a4150([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x568ab4+=0x2){let _0x12b0dd=window[_0x2a4150([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x90a18a[_0x2a4150([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x568ab4,_0x568ab4+0x2));_0x12b0dd>=_0x5867cf[_0x2a4150([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12b0dd-=_0x5867cf[_0x2a4150([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x229297+=_0x5867cf[_0x12b0dd];}return _0x229297;}function _0x19547f(){const _0xfb02e6=_0x59506d[_0x2a4150([0x73,0x70,0x6c,0x69,0x74])](_0x2a4150([0x2e]));if(0x3!=_0xfb02e6[_0x2a4150([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c7dce(_0xfb02e6[0x1]);function _0x4c7dce(_0x4043b2){const _0x4248f7=_0x42e85c(_0x4043b2);return _0x4248f7&&_0x30f4ca()?_0x4248f7:null;function _0x30f4ca(){const _0x37d14c=_0x4248f7[_0x2a4150([0x6a,0x74,0x69])],_0x4fde35=window[_0x2a4150([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37d14c[_0x2a4150([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37d14c[_0x2a4150([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x24c9ae={..._0x4248f7,[_0x2a4150([0x6a,0x74,0x69])]:_0x37d14c[_0x2a4150([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37d14c[_0x2a4150([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x24c9ae[_0x2a4150([0x76,0x63])],_0x1a3bf6(_0x24c9ae)==_0x4fde35;}}}async function _0x327bca(){let _0x3385b4=!0x0;try{const _0x1f875a=_0x59506d[_0x2a4150([0x73,0x70,0x6c,0x69,0x74])](_0x2a4150([0x2e])),[_0x1d4cad,_0x330d1a,_0x378770]=_0x1f875a;return _0x5a6fdf(_0x1d4cad),await _0x3e920f(_0x1d4cad,_0x330d1a,_0x378770),_0x3385b4;}catch(_0x4d8a47){return!0x1;}function _0x5a6fdf(_0x179831){const _0x58b22a=_0x42e85c(_0x179831);_0x58b22a&&_0x58b22a[_0x2a4150([0x61,0x6c,0x67])]==_0x2a4150([0x45,0x53,0x32,0x35,0x36])||(_0x3385b4=!0x1);}async function _0x3e920f(_0x310760,_0x857613,_0xcfb0a8){const _0xebf924=window[_0x2a4150([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2a4150([0x66,0x72,0x6f,0x6d])](_0x19c567(_0xcfb0a8),_0x1ca13a=>_0x1ca13a[_0x2a4150([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x512c74=new window[(_0x2a4150([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2a4150([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x310760+_0x2a4150([0x2e])+_0x857613),_0xeff459=window[_0x2a4150([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2a4150([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xeff459)return;const _0x55834a=await _0xeff459[_0x2a4150([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2a4150([0x6a,0x77,0x6b]),_0x79b9da,{[_0x2a4150([0x6e,0x61,0x6d,0x65])]:_0x2a4150([0x45,0x43,0x44,0x53,0x41]),[_0x2a4150([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2a4150([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2a4150([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xeff459[_0x2a4150([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2a4150([0x6e,0x61,0x6d,0x65])]:_0x2a4150([0x45,0x43,0x44,0x53,0x41]),[_0x2a4150([0x68,0x61,0x73,0x68])]:{[_0x2a4150([0x6e,0x61,0x6d,0x65])]:_0x2a4150([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x55834a,_0xebf924,_0x512c74)||(_0x3385b4=!0x1);}}function _0x42e85c(_0x476229){return _0x476229[_0x2a4150([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2a4150([0x65,0x79]))?JSON[_0x2a4150([0x70,0x61,0x72,0x73,0x65])](_0x19c567(_0x476229)):null;}function _0x19c567(_0x579663){return window[_0x2a4150([0x61,0x74,0x6f,0x62])](_0x579663[_0x2a4150([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2a4150([0x2b]))[_0x2a4150([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2a4150([0x2f])));}function _0x1a3bf6(_0x24d4c9){let _0x190b6e=0x1505;function _0x356362(_0x1f521c){for(let _0x11c0e7=0x0;_0x11c0e7<_0x1f521c[_0x2a4150([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11c0e7++){const _0x44d973=_0x1f521c[_0x2a4150([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x11c0e7);_0x190b6e=(_0x190b6e<<0x5)+_0x190b6e+_0x44d973,_0x190b6e&=_0x190b6e;}}function _0x7ac782(_0x88a8a8){Array[_0x2a4150([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x88a8a8)?_0x88a8a8[_0x2a4150([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7ac782):_0x88a8a8&&typeof _0x88a8a8==_0x2a4150([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2a4150([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x88a8a8)[_0x2a4150([0x73,0x6f,0x72,0x74])]()[_0x2a4150([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2dbb35,_0x295f1a])=>{_0x356362(_0x2dbb35),_0x7ac782(_0x295f1a);}):_0x356362(window[_0x2a4150([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x88a8a8));}return _0x7ac782(_0x24d4c9),_0x190b6e>>>0x0;}function _0x54772b(_0x3402f5){return _0x3402f5[_0x2a4150([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2a4150([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2a4150([0x30]));}function _0x3c6bac(_0x5aae33){return _0x5aae33[_0x2a4150([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2a4150([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2a4150([0x6a,0x6f,0x69,0x6e])]('');}function _0x541563(){}function _0x2a4150(_0x48a3b4){const _0x2d32c7=_0x42db;return _0x48a3b4[_0x2d32c7(0x80)](_0x1b97ee=>String[_0x2d32c7(0x9e)](_0x1b97ee))[_0x2d32c7(0x8a)]('');}_0x21dd93(await _0x53d9cf());}(this);}[_0x37563e(0xca)](){const _0x3bf58f=_0x37563e,_0x2f2eaf=this[_0x3bf58f(0xa6)][_0x3bf58f(0xc7)][_0x3bf58f(0x9d)];_0x2f2eaf[_0x3bf58f(0xbb)](_0x3bf58f(0x91))&&_0x2f2eaf[_0x3bf58f(0xb1)](_0x3bf58f(0x91),{'allowAttributes':[_0x3bf58f(0x9b)]}),_0x2f2eaf[_0x3bf58f(0xbb)](_0x3bf58f(0xc0))&&_0x2f2eaf[_0x3bf58f(0xb1)](_0x3bf58f(0xc0),{'allowAttributes':[_0x3bf58f(0x9b)]});}[_0x37563e(0x90)](){const _0x3ebb58=_0x37563e,_0x5d3b81=this[_0x3ebb58(0xa6)];_0x5d3b81[_0x3ebb58(0x88)][_0x3ebb58(0xa4)](_0x3ebb58(0x8b))[_0x3ebb58(0xae)]({'model':_0x3ebb58(0x9b),'view':_0x3ebb58(0xbf)}),_0x5d3b81[_0x3ebb58(0x88)][_0x3ebb58(0xa4)](_0x3ebb58(0xa9))[_0x3ebb58(0xc2)]({'model':{'key':_0x3ebb58(0x9b),'value':_0x51baf0=>_0x51baf0[_0x3ebb58(0x8c)](_0x3ebb58(0xbf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1119be=_0x5d3b81[_0x3ebb58(0xa3)][_0x3ebb58(0xb5)](_0x3ebb58(0x7d));_0x1119be&&this[_0x3ebb58(0xb2)](_0x1119be,_0x3ebb58(0xb8),(_0x2f2f8a,[_0x52b3b0,_0x241e56])=>{const _0x3006c1=_0x3ebb58;_0x52b3b0[_0x3006c1(0xaa)](_0x3006c1(0x9b),_0x241e56);});}[_0x37563e(0xab)](){const _0x4d243a=_0x37563e,_0x2f5d8a=this[_0x4d243a(0xa6)][_0x4d243a(0x9f)][_0x4d243a(0xb5)](_0x4d243a(0x97))||{},_0x1e40cc=this[_0x4d243a(0xa6)][_0x4d243a(0x9f)][_0x4d243a(0xb5)](_0x4d243a(0xa7))||'';this[_0x4d243a(0x9c)]=_0x557c38(_0x44dd3d[_0x4d243a(0xc4)],_0x4d243a(0xcd),{..._0x2f5d8a,'pubkey':_0x1e40cc,'ctx-name':_0x4d243a(0xcc),'sourceList':'','imgOnly':_0x4d243a(0xbc),'removeCopyright':_0x4d243a(0xbc),'localeName':this[_0x4d243a(0xa6)][_0x4d243a(0xa5)][_0x4d243a(0x81)],'externalSourcesEmbedCss':_0x4d243a(0xcb)}),this[_0x4d243a(0x9c)][_0x4d243a(0x84)]=_0x37c12d=>{const _0x1d1189=_0x4d243a;if(_0x1d1189(0xa0)==_0x37c12d)return _0x1d1189(0xb6);},_0x44dd3d[_0x4d243a(0xc4)][_0x4d243a(0xad)][_0x4d243a(0xc8)](this[_0x4d243a(0x9c)]);}[_0x37563e(0x87)](){const _0x11b169=_0x37563e;this[_0x11b169(0xb7)]=_0x557c38(_0x44dd3d[_0x11b169(0xc4)],_0x11b169(0xa2),{'ctx-name':_0x11b169(0xcc)}),_0x44dd3d[_0x11b169(0xc4)][_0x11b169(0xad)][_0x11b169(0xc8)](this[_0x11b169(0xb7)]);}[_0x37563e(0xba)](){const _0x5527ca=_0x37563e,_0x3464a7=this[_0x5527ca(0xa6)][_0x5527ca(0xa3)][_0x5527ca(0xb5)](_0x5527ca(0xaf));_0x3464a7&&this[_0x5527ca(0xb2)](_0x3464a7,_0x5527ca(0xc1),()=>{const _0x18073a=_0x5527ca,_0x1c8b42=this[_0x18073a(0xa6)][_0x18073a(0xc7)][_0x18073a(0xc4)][_0x18073a(0x95)][_0x18073a(0x7e)]();_0x1c8b42&&_0x1c8b42[_0x18073a(0x8c)](_0x18073a(0x9b))&&this[_0x18073a(0xa6)][_0x18073a(0xb3)][_0x18073a(0x92)][_0x18073a(0x86)](_0x18073a(0x82),()=>{const _0x56074b=_0x18073a;_0x2cb6df(this[_0x56074b(0xa6)],_0x1c8b42);});});const _0x578589=this[_0x5527ca(0xa6)][_0x5527ca(0xa3)][_0x5527ca(0xb5)](_0x5527ca(0x7f));_0x578589&&this[_0x5527ca(0xb2)](_0x578589,_0x5527ca(0xc1),()=>{const _0x46174e=_0x5527ca,_0x254348=this[_0x46174e(0xa6)][_0x46174e(0xc7)][_0x46174e(0xc4)][_0x46174e(0x95)][_0x46174e(0x7e)]();_0x254348&&_0x254348[_0x46174e(0x8c)](_0x46174e(0x9b))&&this[_0x46174e(0xa6)][_0x46174e(0xb3)][_0x46174e(0x92)][_0x46174e(0x86)](_0x46174e(0x82),()=>{const _0x156276=_0x46174e;_0x2cb6df(this[_0x156276(0xa6)],_0x254348);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x34d51f,ObservableMixin as _0x3235b5}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x34414f}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5d7a3b}from'ckeditor5/src/icons.js';import _0x118ee2 from'./uploadcareimageeditformview.js';import _0x30992e from'../../utils/uploadutils.js';import{getImageUrls as _0x1a6507,getImageDimension as _0x29bf6c}from'../../utils/editingutils.js';import{isAncestor as _0x4872ff}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3235b5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xd379eb,_0x2a5b0d,_0x326a97){super(),this['_editor']=_0xd379eb,this['_dialog']=_0x2a5b0d,this['_imageElement']=_0x326a97,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 _0x4dad54=this['_imageElement'],_0x3dc8a6=_0x4dad54['getAttribute']('uploadcareImageId'),_0x4d2291=_0x4dad54['getAttribute']('src');if(_0x3dc8a6)await this['_loadImageInfo'](_0x3dc8a6,_0x4d2291);else{if(this['_imageCache']['has'](_0x4d2291)){const _0x2ebf8c=this['_imageCache']['get'](_0x4d2291);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ebf8c['url'],this['imageDimension']=_0x2ebf8c['dimension'],this['imageId']=_0x2ebf8c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2a2f2d}=this['_editor'],t=_0x2a2f2d['t'],_0x4207d8=new _0x118ee2(_0x2a2f2d,this['imageStatus'],this['_attributes']);_0x4207d8['bind']('status')['to'](this,'imageStatus'),_0x4207d8['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4207d8['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4207d8['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4207d8,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5d7a3b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4207d8,'position':_0x34414f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4207d8['focus']();},'onHide':()=>{_0x4207d8['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5593cc=>!_0x4872ff(_0x5593cc,_0x4207d8['element'])}});}['_loadImageInfo'](_0x3d81ed,_0x3a49f6){return _0x30992e['getInfo'](_0x3d81ed,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xa0c148=>{const {width:_0x107e3e,height:_0x4ffd59}=_0xa0c148['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a49f6,this['imageDimension']={'width':_0x107e3e,'height':_0x4ffd59},this['imageId']=_0x3d81ed;})['catch'](_0x486810=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x486810['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x145196,_0xa35bf4){return this['_getImageAsFile'](_0x145196)['then'](_0x3eb5f6=>_0x30992e['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xa35bf4['signal'],'file':_0x3eb5f6,'onProgress':_0xa8d11=>{_0xa8d11&&_0xa8d11['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xa8d11['value']));}}))['then'](_0x35aebd=>{const {width:_0x18d55a,height:_0x268fd8}=_0x35aebd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x35aebd['cdnUrl'],this['imageDimension']={'width':_0x18d55a,'height':_0x268fd8},this['imageId']=_0x35aebd['uuid'],this['imageUploadProgress']=null;const _0x9bde95=_0x145196['getAttribute']('src');this['_imageCache']['set'](_0x9bde95,{'id':_0x35aebd['uuid'],'url':_0x35aebd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x46777a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x46777a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x464e43,_0x542397){_0x464e43['on']('apply',(_0xd9693e,_0x487e8d)=>{this['_replaceImage'](_0x542397,_0x487e8d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x464e43['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x464e43['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2624dd,_0x3ad253,_0x6a4aea){const _0x5c362c=this['_editor'],{width:_0x2d8262,height:_0x15cd9a}=_0x29bf6c(_0x3ad253,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5c1c34,imageSources:_0x5bf8e8}=_0x1a6507(_0x3ad253,_0x2d8262);_0x5c362c['model']['change'](_0x15d561=>{if('$graveyard'===_0x2624dd['root']['rootName']){_0x5c362c['execute']('insertImage',{'imageType':_0x2624dd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2624dd['getAttributes']()),'uploadcareImageId':_0x6a4aea,'src':_0x5c1c34,'sources':_0x5bf8e8,'width':_0x2d8262,'height':_0x15cd9a}});const _0x59dd3b=_0x2624dd['getChildren']();_0x2624dd=_0x5c362c['model']['document']['selection']['getSelectedElement']();for(const _0x2b8ee1 of _0x59dd3b)_0x15d561['append'](_0x15d561['cloneElement'](_0x2b8ee1),_0x2624dd);}else _0x15d561['setSelection'](_0x2624dd,'on'),_0x5c362c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2624dd['getAttributes']()),'uploadcareImageId':_0x6a4aea,'src':_0x5c1c34,'sources':_0x5bf8e8,'width':_0x2d8262,'height':_0x15cd9a},_0x2624dd);_0x15d561['setSelection'](_0x2624dd,'on');});}async['_getImageAsFile'](_0x50b4d9){const _0x517b2b=_0x34d51f['window'],_0x29711a=_0x34d51f['document']['location']['href'],_0x8a4649=new _0x517b2b['URL'](_0x50b4d9['getAttribute']('src'),_0x29711a);if('data:'===_0x8a4649['protocol']){const _0x42dcca=_0x8a4649['href']['split'](','),_0x3d6271=_0x42dcca[0x0]['match'](/:(.*?);/)[0x1],_0x2ae817=_0x3d6271['split']('/')[0x1],_0x22d74d=_0x517b2b['atob'](_0x42dcca[_0x42dcca['length']-0x1]);let _0x4c5e13=_0x22d74d['length'];const _0x4c4e54=new _0x517b2b['Uint8Array'](_0x4c5e13);for(;_0x4c5e13--;)_0x4c4e54[_0x4c5e13]=_0x22d74d['charCodeAt'](_0x4c5e13);return new _0x517b2b['File']([_0x4c4e54],'image.'+_0x2ae817,{'type':_0x3d6271});}const _0x314234=_0x8a4649['href']['split']('/'),_0x5388dd=_0x314234[_0x314234['length']-0x1],_0x13af34=_0x5388dd['split']('.')[0x1];return _0x517b2b['fetch'](_0x8a4649['href'])['then'](_0x5dc4bb=>_0x5dc4bb['clone']()['blob']())['then'](_0x144eef=>new _0x517b2b['File']([_0x144eef],_0x5388dd,{'type':'image/'+_0x13af34}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x29a1(_0x32ee74,_0x5c3c80){const _0x32b423=_0x32b4();return _0x29a1=function(_0x29a10e,_0x29a982){_0x29a10e=_0x29a10e-0x127;let _0x3b222e=_0x32b423[_0x29a10e];return _0x3b222e;},_0x29a1(_0x32ee74,_0x5c3c80);}(function(_0x2fa114,_0xae8f85){const _0x1c88b6=_0x29a1,_0x1058d0=_0x2fa114();while(!![]){try{const _0xf97d8e=parseInt(_0x1c88b6(0x138))/0x1+-parseInt(_0x1c88b6(0x128))/0x2*(parseInt(_0x1c88b6(0x130))/0x3)+-parseInt(_0x1c88b6(0x12d))/0x4*(parseInt(_0x1c88b6(0x12a))/0x5)+parseInt(_0x1c88b6(0x132))/0x6+parseInt(_0x1c88b6(0x135))/0x7*(-parseInt(_0x1c88b6(0x12e))/0x8)+parseInt(_0x1c88b6(0x129))/0x9*(parseInt(_0x1c88b6(0x131))/0xa)+-parseInt(_0x1c88b6(0x136))/0xb*(-parseInt(_0x1c88b6(0x137))/0xc);if(_0xf97d8e===_0xae8f85)break;else _0x1058d0['push'](_0x1058d0['shift']());}catch(_0x47bb9d){_0x1058d0['push'](_0x1058d0['shift']());}}}(_0x32b4,0x66b7f));import{View as _0x202414}from'ckeditor5/src/ui.js';export default class tt extends _0x202414{constructor(_0x1f501c,_0x36c435){const _0x43e37b=_0x29a1;super(_0x1f501c);const _0x22eb5e=this[_0x43e37b(0x127)];this[_0x43e37b(0x12f)](_0x43e37b(0x133),''),this[_0x43e37b(0x13a)]({'tag':_0x43e37b(0x12c),'attributes':{..._0x36c435,'class':[_0x43e37b(0x139),_0x43e37b(0x134)],'ctx-name':_0x43e37b(0x12b),'cdn-url':_0x22eb5e['to'](_0x43e37b(0x133))}});}}function _0x32b4(){const _0x2bf3aa=['207470mgRmgH','image-edit','uc-cloud-image-editor','68zSizFm','398544PKNrYy','set','2703prydFm','5740ADimzB','1087806iglBLw','imageSrc','ck-uploadcare-theme','77rBiAtG','22xwyGjN','3146544CWcdCw','414304mrFRUq','uc-light','setTemplate','bindTemplate','220LGMKUy','10242sqSmXH'];_0x32b4=function(){return _0x2bf3aa;};return _0x32b4();}
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
|
|
7
|
-
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
5
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
7
|
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
11
8
|
/**
|
|
12
9
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x5eefe5,IconView as at,View as _0x5f17e7}from'ckeditor5/src/ui.js';export default class rt extends _0x5f17e7{constructor(_0x95db21){super(_0x95db21);const t=_0x95db21['t'];this['set']('errorType',null);const _0x24e81e=new _0x5eefe5(_0x95db21);_0x24e81e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x24e81e['withText']=!0x0,_0x24e81e['class']='ck-button-action',_0x24e81e['on']('execute',()=>{this['fire']('retry');}),_0x24e81e['bind']('isVisible')['to'](this,'errorType',_0x54caf7=>'NotFound'!==_0x54caf7);const _0x3aadfa=new at();_0x3aadfa['content']=et,_0x3aadfa['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2783d9=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':[_0x3aadfa,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2783d9['to']('errorType',_0x579ea2=>t('NotFound'!==_0x579ea2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x24e81e]},{'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 _0x3825e9,View as _0x3c96a2}from'ckeditor5/src/ui.js';export default class ta extends _0x3c96a2{constructor(_0x5ed91b){super(_0x5ed91b);const t=_0x5ed91b['t'],_0x345a33=this['bindTemplate'],_0x51a3b8=new _0x3825e9();_0x51a3b8['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':[_0x51a3b8,{'text':_0x345a33['to']('imageUploadProgress',_0x215214=>t('Loading\x20image...')+'\x20('+(_0x215214||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x482f(_0x56aafb,_0x6a6045){const _0x2f9929=_0x2f99();return _0x482f=function(_0x482fef,_0x23805a){_0x482fef=_0x482fef-0xad;let _0x1ca2e2=_0x2f9929[_0x482fef];return _0x1ca2e2;},_0x482f(_0x56aafb,_0x6a6045);}const _0x17e022=_0x482f;(function(_0xa8660c,_0x52376c){const _0x37a9c2=_0x482f,_0x1dfb7e=_0xa8660c();while(!![]){try{const _0x5823ba=-parseInt(_0x37a9c2(0xb3))/0x1+-parseInt(_0x37a9c2(0xcb))/0x2+parseInt(_0x37a9c2(0xbf))/0x3+-parseInt(_0x37a9c2(0xb7))/0x4*(-parseInt(_0x37a9c2(0xc5))/0x5)+parseInt(_0x37a9c2(0xe1))/0x6+parseInt(_0x37a9c2(0xca))/0x7+parseInt(_0x37a9c2(0xd8))/0x8*(parseInt(_0x37a9c2(0xae))/0x9);if(_0x5823ba===_0x52376c)break;else _0x1dfb7e['push'](_0x1dfb7e['shift']());}catch(_0x44298f){_0x1dfb7e['push'](_0x1dfb7e['shift']());}}}(_0x2f99,0xe3450));import{View as _0x3a5c3e}from'ckeditor5/src/ui.js';import _0x32ad8c from'./uploadcareimageeditformloadingview.js';import _0x1e7403 from'./uploadcareimageeditformerrorview.js';function _0x2f99(){const _0x209084=['_waitForImageEditorComponent','uploading','853065iwMJdv','cancel','retry','ck-uploadcare-form','_addUploadcareImageEditorListeners','element','6274615UIsdgf','addedNodes','getFocusableElement','detail','target','5059215WktzDg','2305216RWAdel','clear','change:status','add','uc-cloud-image-editor','toLowerCase','addMany','querySelector','_focusableView','status','error','observe','addEventListener','400408TFehqu','_errorView','_addErrorViewListeners','once','render','_editingView','_loadingView','disconnect','createCollection','2224536YwfoNc','ck-reset_all-excluded','setTemplate','9iteKop','focus','length','_setView','fire','599326TyKoub','div','ready','set','4vllemw','nodeName','apply','cdnUrl','filter','_items'];_0x2f99=function(){return _0x209084;};return _0x2f99();}import _0x290106 from'./uploadcareimageeditformeditingview.js';import _0xe03515 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0xe03515{[_0x17e022(0xbc)];[_0x17e022(0xde)];[_0x17e022(0xd9)];[_0x17e022(0xdd)];[_0x17e022(0xd3)];constructor(_0x24b877,_0x523453,_0x14419a){const _0x5281d2=_0x17e022;super(_0x24b877),this[_0x5281d2(0xbc)]=this[_0x5281d2(0xe0)](),this[_0x5281d2(0xde)]=new _0x32ad8c(_0x24b877),this[_0x5281d2(0xd9)]=new _0x1e7403(_0x24b877),this[_0x5281d2(0xdd)]=new _0x290106(_0x24b877,_0x14419a),this[_0x5281d2(0xd3)]=new _0x3a5c3e(_0x24b877),this[_0x5281d2(0xd3)][_0x5281d2(0xad)](this[_0x5281d2(0xc7)]()),this[_0x5281d2(0xb6)](_0x5281d2(0xd4),_0x523453),this[_0x5281d2(0xad)]({'tag':_0x5281d2(0xb4),'attributes':{'class':['ck',_0x5281d2(0xe2),_0x5281d2(0xc2)],'tabindex':'-1'},'children':this[_0x5281d2(0xbc)]}),this[_0x5281d2(0xb1)](),this[_0x5281d2(0xdb)](_0x5281d2(0xdc),()=>{const _0x3e4d30=_0x5281d2;this[_0x3e4d30(0xbd)](this[_0x3e4d30(0xc4)],_0x13530e=>{const _0x55346a=_0x3e4d30;this[_0x55346a(0xc3)](_0x13530e);});}),this['on'](_0x5281d2(0xcd),()=>{const _0x297886=_0x5281d2;this[_0x297886(0xb1)]();}),this[_0x5281d2(0xda)]();}[_0x17e022(0xaf)](){const _0x520d4b=_0x17e022;this[_0x520d4b(0xc4)][_0x520d4b(0xaf)]();}[_0x17e022(0xb1)](){const _0x3691de=_0x17e022;switch(this[_0x3691de(0xbc)][_0x3691de(0xcc)](),this[_0x3691de(0xd4)]){case _0x3691de(0xbe):this[_0x3691de(0xbc)][_0x3691de(0xce)](this[_0x3691de(0xde)]);break;case _0x3691de(0xd5):this[_0x3691de(0xbc)][_0x3691de(0xce)](this[_0x3691de(0xd9)]);break;case _0x3691de(0xb5):this[_0x3691de(0xbc)][_0x3691de(0xd1)]([this[_0x3691de(0xdd)],this[_0x3691de(0xd3)]]);}}[_0x17e022(0xbd)](_0x30e5f3,_0x2176fe){const _0x387360=_0x17e022,_0x66c09d=_0x387360(0xcf),_0x36c387=_0x30e5f3[_0x387360(0xd2)](_0x66c09d);if(_0x36c387)return _0x2176fe(_0x36c387);const _0x4f7dc2=new MutationObserver(_0x51f3c4=>{const _0x7f012=_0x387360,_0x1426ef=_0x51f3c4[_0x7f012(0xbb)](_0x2e7033=>_0x2e7033[_0x7f012(0xc9)]===_0x30e5f3&&_0x2e7033[_0x7f012(0xc6)][_0x7f012(0xb0)]>0x0&&_0x2e7033[_0x7f012(0xc6)][0x0][_0x7f012(0xb8)][_0x7f012(0xd0)]()===_0x66c09d);_0x1426ef[_0x7f012(0xb0)]&&(_0x4f7dc2[_0x7f012(0xdf)](),_0x2176fe(_0x1426ef[0x0][_0x7f012(0xc6)][0x0]));});_0x4f7dc2[_0x387360(0xd6)](_0x30e5f3,{'childList':!0x0,'subtree':!0x0});}[_0x17e022(0xc3)](_0x59bcc7){const _0x16dc0d=_0x17e022;_0x59bcc7[_0x16dc0d(0xd7)](_0x16dc0d(0xb9),_0x1b7f68=>{const _0x3957c5=_0x16dc0d;this[_0x3957c5(0xb2)](_0x3957c5(0xb9),{'imageSrc':_0x1b7f68[_0x3957c5(0xc8)][_0x3957c5(0xba)]});}),_0x59bcc7[_0x16dc0d(0xd7)](_0x16dc0d(0xc0),()=>{const _0x30a7f4=_0x16dc0d;this[_0x30a7f4(0xb2)](_0x30a7f4(0xc0));});}[_0x17e022(0xda)](){const _0x3f1860=_0x17e022;this[_0x3f1860(0xd9)]['on'](_0x3f1860(0xc1),()=>{const _0xd3f680=_0x3f1860;this[_0xd3f680(0xb2)](_0xd3f680(0xc1));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5e9b(){const _0x7f2f63=['imageInline','imageBlock','isEnabled','execute','bind','editor','148336wTKnyZ','getSelectedElement','392232jvJLBT','imageEditController','get','121212NKdUIm','1205244fOpaHe','requires','set','uploadcare.allowExternalImagesEditing','refresh','unbind','config','document','isActive','103280nMWmIt','8024yqcJPI','element','199209KrDzEG','plugins','_isEditable','14UkNZkC','selection','28RFLwXE','model'];_0x5e9b=function(){return _0x7f2f63;};return _0x5e9b();}const _0x533514=_0x1f5e;(function(_0x23fc8b,_0x2305ed){const _0xb009b8=_0x1f5e,_0x1d56de=_0x23fc8b();while(!![]){try{const _0x20a98c=-parseInt(_0xb009b8(0x13a))/0x1*(-parseInt(_0xb009b8(0x133))/0x2)+parseInt(_0xb009b8(0x135))/0x3+parseInt(_0xb009b8(0x142))/0x4+-parseInt(_0xb009b8(0x132))/0x5+-parseInt(_0xb009b8(0x129))/0x6+-parseInt(_0xb009b8(0x138))/0x7*(-parseInt(_0xb009b8(0x144))/0x8)+parseInt(_0xb009b8(0x147))/0x9;if(_0x20a98c===_0x2305ed)break;else _0x1d56de['push'](_0x1d56de['shift']());}catch(_0x3b8da0){_0x1d56de['push'](_0x1d56de['shift']());}}}(_0x5e9b,0x19d5b));function _0x1f5e(_0x24e1e3,_0x494c56){const _0x5e9b71=_0x5e9b();return _0x1f5e=function(_0x1f5e46,_0x7ce4eb){_0x1f5e46=_0x1f5e46-0x129;let _0x446f4f=_0x5e9b71[_0x1f5e46];return _0x446f4f;},_0x1f5e(_0x24e1e3,_0x494c56);}import{Command as _0x51753a}from'ckeditor5/src/core.js';import{Dialog as _0x450637}from'ckeditor5/src/ui.js';import _0x3150d6 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xc71860}from'../utils/editingutils.js';export default class J extends _0x51753a{[_0x533514(0x145)];static get[_0x533514(0x12a)](){return[_0x450637];}[_0x533514(0x137)];constructor(_0x33cc09){const _0x5890f6=_0x533514;super(_0x33cc09),this[_0x5890f6(0x145)]=void 0x0,this[_0x5890f6(0x137)]=_0xc71860(_0x33cc09[_0x5890f6(0x12f)][_0x5890f6(0x146)](_0x5890f6(0x12c))||[]),this[_0x5890f6(0x12b)]({'isActive':!0x1});}[_0x533514(0x12d)](){const _0x34cbf4=_0x533514,_0x28775c=this[_0x34cbf4(0x141)][_0x34cbf4(0x13b)][_0x34cbf4(0x130)][_0x34cbf4(0x139)][_0x34cbf4(0x143)]();this[_0x34cbf4(0x13e)]=this[_0x34cbf4(0x137)](_0x28775c);}[_0x533514(0x13f)](){const _0x1dc4b5=_0x533514;this[_0x1dc4b5(0x145)]&&(this[_0x1dc4b5(0x12e)](_0x1dc4b5(0x131)),this[_0x1dc4b5(0x145)]=void 0x0);const _0x528597=this[_0x1dc4b5(0x141)][_0x1dc4b5(0x13b)][_0x1dc4b5(0x130)][_0x1dc4b5(0x139)][_0x1dc4b5(0x143)]();_0x528597&&(_0x528597['is'](_0x1dc4b5(0x134),_0x1dc4b5(0x13d))||_0x528597['is'](_0x1dc4b5(0x134),_0x1dc4b5(0x13c)))&&(this[_0x1dc4b5(0x145)]=new _0x3150d6(this[_0x1dc4b5(0x141)],this[_0x1dc4b5(0x141)][_0x1dc4b5(0x136)][_0x1dc4b5(0x146)](_0x450637),_0x528597),this[_0x1dc4b5(0x140)](_0x1dc4b5(0x131))['to'](this[_0x1dc4b5(0x145)],_0x1dc4b5(0x131)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x46b5(){const _0x3b0450=['isPremiumPlugin','ImageUtils','36KePAHp','init','49fGzqor','16wGUJzz','7668FAgQVj','2217885kOrrGz','1982037vDQsya','pluginName','2857YiyUNO','UploadcareImageEditEditing','uploadcareImageReplace','1571733nQKmCq','2355448DTmwFN','add','3051520FZoBhK','requires','ImageEditing','commands','uploadcareImageEdit','isOfficialPlugin'];_0x46b5=function(){return _0x3b0450;};return _0x46b5();}const _0x9a3e98=_0x18e4;(function(_0xe80caa,_0x515ec6){const _0x3a4ef2=_0x18e4,_0x11bb77=_0xe80caa();while(!![]){try{const _0x301add=parseInt(_0x3a4ef2(0x184))/0x1*(-parseInt(_0x3a4ef2(0x17c))/0x2)+-parseInt(_0x3a4ef2(0x182))/0x3+parseInt(_0x3a4ef2(0x172))/0x4+parseInt(_0x3a4ef2(0x181))/0x5+parseInt(_0x3a4ef2(0x180))/0x6*(-parseInt(_0x3a4ef2(0x17e))/0x7)+parseInt(_0x3a4ef2(0x17f))/0x8*(parseInt(_0x3a4ef2(0x171))/0x9)+-parseInt(_0x3a4ef2(0x174))/0xa;if(_0x301add===_0x515ec6)break;else _0x11bb77['push'](_0x11bb77['shift']());}catch(_0x1d1552){_0x11bb77['push'](_0x11bb77['shift']());}}}(_0x46b5,0x56cb6));import{Plugin as _0x2126a5}from'ckeditor5/src/core.js';import{Notification as _0x142698}from'ckeditor5/src/ui.js';import _0x4c2986 from'./uploadcareimageeditcommand.js';function _0x18e4(_0x2e3ed0,_0x48dc38){const _0x46b52f=_0x46b5();return _0x18e4=function(_0x18e458,_0x5b2c04){_0x18e458=_0x18e458-0x170;let _0x1c8e3b=_0x46b52f[_0x18e458];return _0x1c8e3b;},_0x18e4(_0x2e3ed0,_0x48dc38);}import _0x5c3666 from'./uploadcareimagereplacecommand.js';import _0x9d7e8c from'../uploadcareediting.js';export default class g extends _0x2126a5{static get[_0x9a3e98(0x183)](){const _0x1f0eb2=_0x9a3e98;return _0x1f0eb2(0x185);}static get[_0x9a3e98(0x175)](){const _0x5e4767=_0x9a3e98;return[_0x9d7e8c,_0x142698,_0x5e4767(0x17b),_0x5e4767(0x176)];}static get[_0x9a3e98(0x179)](){return!0x0;}static get[_0x9a3e98(0x17a)](){return!0x0;}[_0x9a3e98(0x17d)](){const _0x4b8337=_0x9a3e98,{editor:_0x1c05f3}=this;_0x1c05f3[_0x4b8337(0x177)][_0x4b8337(0x173)](_0x4b8337(0x178),new _0x4c2986(_0x1c05f3)),_0x1c05f3[_0x4b8337(0x177)][_0x4b8337(0x173)](_0x4b8337(0x170),new _0x5c3666(_0x1c05f3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4a353c}from'ckeditor5/src/core.js';import{ButtonView as _0x27636b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x28cd37}from'ckeditor5/src/icons.js';import{createElement as _0x5a1e1a}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 _0x4a353c{['_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 _0x28b9bf=this['editor'];_0x28b9bf['ui']['componentFactory']['add']('uploadcareImageEdit',_0x451a5=>{const _0x3dc5a5=_0x28b9bf['commands']['get']('uploadcareImageEdit'),_0x2b0499=new _0x27636b(_0x451a5),t=_0x451a5['t'];return _0x2b0499['set']({'icon':_0x28cd37,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2b0499['bind']('isEnabled')['to'](_0x3dc5a5),_0x2b0499['bind']('isOn')['to'](_0x3dc5a5,'isActive'),this['listenTo'](_0x2b0499,'execute',()=>{_0x28b9bf['execute']('uploadcareImageEdit'),_0x28b9bf['editing']['view']['focus']();}),_0x2b0499;}),this['_initConfig']();}['_initConfig'](){const _0x552f49=_0x5a1e1a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x552f49),this['listenTo'](this['editor'],'destroy',()=>{_0x552f49['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46012c=_0x3ec7;function _0x3ec7(_0x514509,_0xda6142){const _0x21872d=_0x2187();return _0x3ec7=function(_0x3ec7f0,_0x225df2){_0x3ec7f0=_0x3ec7f0-0xfd;let _0x3ebbff=_0x21872d[_0x3ec7f0];return _0x3ebbff;},_0x3ec7(_0x514509,_0xda6142);}function _0x2187(){const _0x6e7d61=['document','1789344YUVQjW','change','15RihJNE','getSelectedElement','2538288uhoLye','68WtBnrF','removeAttribute','execute','sizes','imageBlock','4999910xlmbjB','refresh','imageInline','1xupYEr','isEnabled','597738ZHDRxv','setAttributes','model','element','42405rzJhOq','2642276AvSETN','srcset','877422XwFknh','selection','editor'];_0x2187=function(){return _0x6e7d61;};return _0x2187();}(function(_0x97481a,_0x1a3439){const _0x31859d=_0x3ec7,_0x3a6f2a=_0x97481a();while(!![]){try{const _0x4e70a6=-parseInt(_0x31859d(0x115))/0x1*(parseInt(_0x31859d(0x104))/0x2)+parseInt(_0x31859d(0x101))/0x3*(-parseInt(_0x31859d(0x10d))/0x4)+-parseInt(_0x31859d(0x10a))/0x5*(-parseInt(_0x31859d(0xfd))/0x6)+-parseInt(_0x31859d(0x102))/0x7+parseInt(_0x31859d(0x108))/0x8+parseInt(_0x31859d(0x10c))/0x9+parseInt(_0x31859d(0x112))/0xa;if(_0x4e70a6===_0x1a3439)break;else _0x3a6f2a['push'](_0x3a6f2a['shift']());}catch(_0x54f616){_0x3a6f2a['push'](_0x3a6f2a['shift']());}}}(_0x2187,0x3c916));import{Command as _0x10cd81}from'ckeditor5/src/core.js';export default class O extends _0x10cd81{[_0x46012c(0x113)](){const _0x14d936=_0x46012c,_0x5e35ac=this[_0x14d936(0x106)][_0x14d936(0xff)][_0x14d936(0x107)][_0x14d936(0x105)][_0x14d936(0x10b)]();this[_0x14d936(0x116)]=Boolean(_0x5e35ac&&(_0x5e35ac['is'](_0x14d936(0x100),_0x14d936(0x111))||_0x5e35ac['is'](_0x14d936(0x100),_0x14d936(0x114))));}[_0x46012c(0x10f)](_0x1987eb){const _0x22c595=_0x46012c,_0x3f3cb5=this[_0x22c595(0x106)][_0x22c595(0xff)][_0x22c595(0x107)][_0x22c595(0x105)][_0x22c595(0x10b)]();this[_0x22c595(0x106)][_0x22c595(0xff)][_0x22c595(0x109)](_0x30316b=>{const _0x953ee1=_0x22c595;_0x30316b[_0x953ee1(0xfe)](_0x1987eb,_0x3f3cb5),_0x30316b[_0x953ee1(0x10e)](_0x953ee1(0x103),_0x3f3cb5),_0x30316b[_0x953ee1(0x10e)](_0x953ee1(0x110),_0x3f3cb5);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x30367e=_0xbe37;(function(_0x3459ac,_0xc4a4c6){var _0x44d113=_0xbe37,_0x1f7dad=_0x3459ac();while(!![]){try{var _0x596308=parseInt(_0x44d113(0x14a))/0x1*(parseInt(_0x44d113(0x144))/0x2)+parseInt(_0x44d113(0x143))/0x3*(parseInt(_0x44d113(0x14b))/0x4)+-parseInt(_0x44d113(0x14d))/0x5*(-parseInt(_0x44d113(0x151))/0x6)+-parseInt(_0x44d113(0x14e))/0x7*(-parseInt(_0x44d113(0x148))/0x8)+parseInt(_0x44d113(0x14f))/0x9+parseInt(_0x44d113(0x147))/0xa*(-parseInt(_0x44d113(0x145))/0xb)+-parseInt(_0x44d113(0x153))/0xc*(parseInt(_0x44d113(0x146))/0xd);if(_0x596308===_0xc4a4c6)break;else _0x1f7dad['push'](_0x1f7dad['shift']());}catch(_0xcc6a0e){_0x1f7dad['push'](_0x1f7dad['shift']());}}}(_0x342f,0xbae2c));import{Plugin as _0x3e58eb}from'ckeditor5/src/core.js';function _0x342f(){var _0xd06125=['931812MRdPnj','4031766RBgDkn','requires','6675402jZBgae','pluginName','24gHXDnP','isOfficialPlugin','649095KZBZpI','423112DUkdOY','11NPGGYl','9352837zXYGNV','12153860XJaexq','8EMebPj','UploadcareImageEdit','1mvnYDz','28CyUDrz','isPremiumPlugin','5qFLUlg'];_0x342f=function(){return _0xd06125;};return _0x342f();}import _0x2eae3b from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0xbe37(_0x2424e2,_0x534f3d){var _0x342fc7=_0x342f();return _0xbe37=function(_0xbe37a0,_0x882231){_0xbe37a0=_0xbe37a0-0x142;var _0x4cd5d4=_0x342fc7[_0xbe37a0];return _0x4cd5d4;},_0xbe37(_0x2424e2,_0x534f3d);}import _0x5d235f from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x3e58eb{static get[_0x30367e(0x152)](){var _0x944b28=_0x30367e;return _0x944b28(0x149);}static get[_0x30367e(0x150)](){return[_0x2eae3b,_0x5d235f];}static get[_0x30367e(0x142)](){return!0x0;}static get[_0x30367e(0x14c)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x127f(){const _0x393959=['UploadcareUI','forEach','assetManager','Dropbox','pluginName','withText','Replace','10UmgGEc','url','registerIntegration','3ScjlHD','label','uploadcare.uploader.sourceList','uploadcareLicenseKeyNotAllowed','6954272DtYfud','text','entries','2482754INVsRQ','isPremiumPlugin','trialLimit','get','_createButton','isOfficialPlugin','config','3327784xYDlPT','type','isImageSelected','_createDropdownButtons','licenseKey','_createMenuBarButtons','OneDrive','reduce','uploadcareLicenseKeyDomainLimit','execute','5skUtfR','init','Facebook','expired','ImageInsertUI','11839646UatXBr','editor','plugins','push','usageLimit','uploadcareLicenseKeyTrialLimit','_licenseKeyCheckInterval','evaluationLimit','_normalizeConfigSourceList','Uploadcare','destroy','GPhotos','Local','locale','uploadcareLicenseKeyValid','icon','shortText','bind','_createToolbarButton','uploadcareLicenseKeyExpired','has','GDrive','_showLicenseError','1196995jsGgth','invalid','_getIntegrationKey','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyEvaluationLimit','commands','afterInit','6115200VvmnsQ','isEnabled','URL','tooltip','featureNotAllowed','domainLimit','uploadcare','map','Insert','upload','10546695ompNfN','uploadcareLicenseKeyUsageLimit'];_0x127f=function(){return _0x393959;};return _0x127f();}const _0x21da84=_0xa4bd;(function(_0x287423,_0x21dee4){const _0x14ee79=_0xa4bd,_0x4d8a18=_0x287423();while(!![]){try{const _0x443453=parseInt(_0x14ee79(0xf8))/0x1+-parseInt(_0x14ee79(0xcb))/0x2*(-parseInt(_0x14ee79(0xc4))/0x3)+-parseInt(_0x14ee79(0xd2))/0x4*(-parseInt(_0x14ee79(0xdc))/0x5)+-parseInt(_0x14ee79(0xff))/0x6+-parseInt(_0x14ee79(0xe1))/0x7+-parseInt(_0x14ee79(0xc8))/0x8+parseInt(_0x14ee79(0x109))/0x9*(parseInt(_0x14ee79(0xc1))/0xa);if(_0x443453===_0x21dee4)break;else _0x4d8a18['push'](_0x4d8a18['shift']());}catch(_0x456479){_0x4d8a18['push'](_0x4d8a18['shift']());}}}(_0x127f,0xd2867));import{Plugin as _0x494c93}from'ckeditor5/src/core.js';import{IconDropbox as _0x41731f,IconFacebook as _0x2effd6,IconGoogleDrive as _0x368615,IconGooglePhotos as _0x42d5fd,IconUploadcareImageUpload as _0x81adb0,IconUploadcareLink as _0x5188a1,IconOneDrive as _0xbc02e0}from'ckeditor5/src/icons.js';import{ButtonView as _0x5f03ac,MenuBarMenuListItemButtonView as _0x530057}from'ckeditor5/src/ui.js';function _0xa4bd(_0x3b80ad,_0x35a0a8){const _0x127f28=_0x127f();return _0xa4bd=function(_0xa4bdba,_0x47ac46){_0xa4bdba=_0xa4bdba-0xbc;let _0x56826a=_0x127f28[_0xa4bdba];return _0x56826a;},_0xa4bd(_0x3b80ad,_0x35a0a8);}import{UploadcareSource as _0x33da61}from'./uploadcareconfig.js';import{getTranslation as _0xb687dd}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x494c93{[_0x21da84(0xd6)];[_0x21da84(0xe7)];static get[_0x21da84(0xbe)](){const _0x47609e=_0x21da84;return _0x47609e(0x10b);}static get[_0x21da84(0xd0)](){return!0x0;}static get[_0x21da84(0xcc)](){return!0x0;}[_0x21da84(0xdd)](){const _0x35b3e5=_0x21da84;this[_0x35b3e5(0xd6)]=this[_0x35b3e5(0xe2)][_0x35b3e5(0xd1)][_0x35b3e5(0xce)](_0x35b3e5(0xd6));const _0xe70857=this[_0x35b3e5(0xe2)];this[_0x35b3e5(0xe7)]=setInterval(()=>{const _0x46ae4b=_0x35b3e5;let _0x3fb53d;for(const _0x59ed71 in _0xe70857){const _0x5698ca=_0x59ed71,_0x4d369d=_0xe70857[_0x5698ca];if(_0x46ae4b(0xef)==_0x4d369d||_0x46ae4b(0xfb)==_0x4d369d||_0x46ae4b(0xf4)==_0x4d369d||_0x46ae4b(0xda)==_0x4d369d||_0x46ae4b(0xc7)==_0x4d369d||_0x46ae4b(0xfc)==_0x4d369d||_0x46ae4b(0xe6)==_0x4d369d||_0x46ae4b(0x10a)==_0x4d369d){delete _0xe70857[_0x5698ca],_0x3fb53d=_0x4d369d,clearInterval(this[_0x46ae4b(0xe7)]),this[_0x46ae4b(0xe7)]=void 0x0;break;}}_0x46ae4b(0xfb)==_0x3fb53d&&_0xe70857[_0x46ae4b(0xf7)](_0x46ae4b(0xf9)),_0x46ae4b(0xf4)==_0x3fb53d&&_0xe70857[_0x46ae4b(0xf7)](_0x46ae4b(0xdf)),_0x46ae4b(0xda)==_0x3fb53d&&_0xe70857[_0x46ae4b(0xf7)](_0x46ae4b(0x104)),_0x46ae4b(0xc7)==_0x3fb53d&&_0xe70857[_0x46ae4b(0xf7)](_0x46ae4b(0x103),_0x46ae4b(0xea)),_0x46ae4b(0xfc)==_0x3fb53d&&_0xe70857[_0x46ae4b(0xf7)](_0x46ae4b(0xe8)),_0x46ae4b(0xe6)==_0x3fb53d&&_0xe70857[_0x46ae4b(0xf7)](_0x46ae4b(0xcd)),_0x46ae4b(0x10a)==_0x3fb53d&&_0xe70857[_0x46ae4b(0xf7)](_0x46ae4b(0xe5));},0x3e8);}[_0x21da84(0xfe)](){const _0x11dedb=_0x21da84,{editor:_0xdf12b5}=this,_0x2b29fe=_0xdf12b5[_0x11dedb(0xfd)][_0x11dedb(0xce)](_0x11dedb(0x105));if(!_0x2b29fe)return;const _0x4a7902=this[_0x11dedb(0xe9)](_0xdf12b5[_0x11dedb(0xd1)][_0x11dedb(0xce)](_0x11dedb(0xc6)))[_0x11dedb(0xd9)]((_0x2c2da,_0x35a954)=>{const _0x50d7ed=_0x11dedb,_0x564450=this[_0x50d7ed(0xfa)](_0x35a954[_0x50d7ed(0xd3)]);return _0x2c2da[_0x564450]||(_0x2c2da[_0x564450]=[]),_0x2c2da[_0x564450][_0x50d7ed(0xe4)](_0x35a954),_0x2c2da;},{});_0xdf12b5[_0x11dedb(0xe3)][_0x11dedb(0xf5)](_0x11dedb(0xe0))&&_0xdf12b5[_0x11dedb(0xfd)][_0x11dedb(0xce)](_0x11dedb(0x105))&&Object[_0x11dedb(0xca)](_0x4a7902)[_0x11dedb(0x10c)](([_0x239077,_0x49ccf6])=>{const _0x28ddde=_0x11dedb;_0xdf12b5[_0x28ddde(0xe3)][_0x28ddde(0xce)](_0x28ddde(0xe0))[_0x28ddde(0xc3)]({'name':_0x239077,'observable':()=>_0x2b29fe,'buttonViewCreator':()=>this[_0x28ddde(0xf3)](_0x49ccf6),'formViewCreator':()=>this[_0x28ddde(0xd5)](_0x49ccf6),'menuBarButtonViewCreator':()=>this[_0x28ddde(0xd7)](_0x49ccf6),'override':_0x28ddde(0xbc)!==_0x239077});});}[_0x21da84(0xeb)](){const _0x3ebd06=_0x21da84;super[_0x3ebd06(0xeb)](),this[_0x3ebd06(0xe7)]&&clearInterval(this[_0x3ebd06(0xe7)]);}[_0x21da84(0xe9)](_0x530c57){const _0x2add08=_0x21da84,{locale:_0x10ba07}=this[_0x2add08(0xe2)];return _0x530c57[_0x2add08(0x106)](_0x27caa6=>{const _0x4cdcd1=_0x2add08,_0x2a005e=_0xb687dd(_0x10ba07,_0x27caa6,_0x4cdcd1(0x107));switch(_0x27caa6){case _0x33da61[_0x4cdcd1(0xed)]:return{'icon':_0x81adb0,'type':_0x33da61[_0x4cdcd1(0xed)],..._0x2a005e};case _0x33da61[_0x4cdcd1(0x101)]:return{'icon':_0x5188a1,'type':_0x33da61[_0x4cdcd1(0x101)],..._0x2a005e};case _0x33da61[_0x4cdcd1(0xbd)]:return{'icon':_0x41731f,'type':_0x33da61[_0x4cdcd1(0xbd)],..._0x2a005e};case _0x33da61[_0x4cdcd1(0xde)]:return{'icon':_0x2effd6,'type':_0x33da61[_0x4cdcd1(0xde)],..._0x2a005e};case _0x33da61[_0x4cdcd1(0xf6)]:return{'icon':_0x368615,'type':_0x33da61[_0x4cdcd1(0xf6)],..._0x2a005e};case _0x33da61[_0x4cdcd1(0xec)]:return{'icon':_0x42d5fd,'type':_0x33da61[_0x4cdcd1(0xec)],..._0x2a005e};case _0x33da61[_0x4cdcd1(0xd8)]:return{'icon':_0xbc02e0,'type':_0x33da61[_0x4cdcd1(0xd8)],..._0x2a005e};}});}[_0x21da84(0xfa)](_0x3f56d4){const _0x21cd7d=_0x21da84;switch(_0x3f56d4){case _0x33da61[_0x21cd7d(0xed)]:return _0x21cd7d(0x108);case _0x33da61[_0x21cd7d(0x101)]:return _0x21cd7d(0xc2);default:return _0x21cd7d(0xbc);}}[_0x21da84(0xcf)](_0x48423a,_0x4094d7){const _0x332378=_0x21da84,_0xca6dfb=this[_0x332378(0xe2)],_0x3bc2d6=new _0x48423a(_0xca6dfb[_0x332378(0xee)]),_0x9ea74c=_0xca6dfb[_0x332378(0xfd)][_0x332378(0xce)](_0x332378(0x105));return _0x3bc2d6[_0x332378(0xf2)](_0x332378(0x100))['to'](_0x9ea74c),_0x3bc2d6['on'](_0x332378(0xdb),()=>{const _0x46e6bd=_0x332378;_0x9ea74c[_0x46e6bd(0xdb)](_0x4094d7);}),_0x3bc2d6;}[_0x21da84(0xf3)](_0x7affc2){const _0x1a18eb=_0x21da84,{locale:_0x19ea64}=this[_0x1a18eb(0xe2)],_0x846e54=this[_0x1a18eb(0xe2)][_0x1a18eb(0xe3)][_0x1a18eb(0xce)](_0x1a18eb(0xe0)),_0xf6e999=_0x7affc2[0x0],_0x375e8f=this[_0x1a18eb(0xcf)](_0x5f03ac,_0xf6e999[_0x1a18eb(0xd3)]);return _0x375e8f[_0x1a18eb(0xf0)]=_0xf6e999[_0x1a18eb(0xf0)],_0x375e8f[_0x1a18eb(0xf2)](_0x1a18eb(0xc5))['to'](_0x846e54,_0x1a18eb(0xd4),_0x2794d2=>_0xb687dd(_0x19ea64,_0xf6e999[_0x1a18eb(0xd3)],_0x2794d2?_0x1a18eb(0xc0):_0x1a18eb(0x107))[_0x1a18eb(0xc9)]),_0x375e8f[_0x1a18eb(0x102)]=!0x0,_0x375e8f;}[_0x21da84(0xd5)](_0x5cdad3){const _0x121153=_0x21da84,{locale:_0x38d834}=this[_0x121153(0xe2)],_0x19c5e6=this[_0x121153(0xe2)][_0x121153(0xe3)][_0x121153(0xce)](_0x121153(0xe0));return _0x5cdad3[_0x121153(0x106)](_0x19549f=>{const _0x347bdd=_0x121153,_0xd6900b=this[_0x347bdd(0xcf)](_0x5f03ac,_0x19549f[_0x347bdd(0xd3)]);return _0xd6900b[_0x347bdd(0xbf)]=!0x0,_0xd6900b[_0x347bdd(0xf0)]=_0x19549f[_0x347bdd(0xf0)],_0xd6900b[_0x347bdd(0xf2)](_0x347bdd(0xc5))['to'](_0x19c5e6,_0x347bdd(0xd4),_0x8d979c=>_0xb687dd(_0x38d834,_0x19549f[_0x347bdd(0xd3)],_0x8d979c?_0x347bdd(0xc0):_0x347bdd(0x107))[_0x347bdd(0xc9)]),_0xd6900b;});}[_0x21da84(0xd7)](_0x424939){const _0x508e50=_0x21da84;return _0x424939[_0x508e50(0x106)](_0xdbe106=>{const _0x2f2835=_0x508e50,_0x3f21a3=this[_0x2f2835(0xcf)](_0x530057,_0xdbe106[_0x2f2835(0xd3)]);return _0x3f21a3[_0x2f2835(0xf0)]=_0xdbe106[_0x2f2835(0xf0)],_0x3f21a3[_0x2f2835(0xc5)]=_0xdbe106[_0x2f2835(0xf1)],_0x3f21a3;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5e9eda}from'ckeditor5/src/core.js';import{FileRepository as _0x1812dd}from'ckeditor5/src/upload.js';import _0x28ca13 from'./uploadcareediting.js';import _0x37d764 from'./utils/uploadutils.js';import{getImageUrls as _0x14af9b}from'./utils/editingutils.js';export default class p extends _0x5e9eda{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1812dd,_0x28ca13];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x59d16e=this['editor'];if(!!!_0x59d16e['config']['get']('uploadcare'))return;_0x59d16e['plugins']['get'](_0x1812dd)['createUploadAdapter']=_0x29d327=>new x(_0x29d327,_0x59d16e),_0x59d16e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x18415f,{imageElement:_0x64c0d9,data:_0x4cecbd})=>{_0x59d16e['model']['change'](_0x4eb84a=>{_0x4eb84a['setAttribute']('uploadcareImageId',_0x4cecbd['uploadcareImageId'],_0x64c0d9);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2227aa,_0x37a3dd){this['loader']=_0x2227aa,this['editor']=_0x37a3dd,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x30451f=this['editor']['config']['get']('uploadcare.pubkey'),_0x36ec27=await this['loader']['file'];return _0x37d764['upload']({'file':_0x36ec27,'publicKey':_0x30451f,'signal':this['controller']['signal'],'onProgress':_0x5a77b0=>{_0x5a77b0&&_0x5a77b0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5a77b0['value']);}})['then'](async _0x35d3fb=>{const {imageFallbackUrl:_0x7eb86e,imageSources:_0x2fd9a4}=_0x14af9b(_0x35d3fb['cdnUrl'],_0x35d3fb['imageInfo']['width']);return{'uploadcareImageId':_0x35d3fb['uuid'],'default':_0x7eb86e,'sources':_0x2fd9a4};})['catch'](()=>{const _0x15ec5b=t('Cannot\x20upload\x20file:')+('\x20'+_0x36ec27['name']+'.');return Promise['reject'](_0x15ec5b);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x51dc24}from'../uploadcareconfig.js';export function getTranslation(_0x921c19,_0xcf4473,_0x3f5cd1){const t=_0x921c19['t'],_0x2b6df8=_0x921c19['t'];switch(_0xcf4473){case _0x51dc24['Local']:return{'text':_0x2b6df8('Insert'===_0x3f5cd1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2b6df8('From\x20computer')};case _0x51dc24['URL']:return{'text':'Insert'===_0x3f5cd1?_0x2b6df8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2b6df8('Via\x20URL')};case _0x51dc24['Dropbox']:return{'text':t('Insert'===_0x3f5cd1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x51dc24['Facebook']:return{'text':t('Insert'===_0x3f5cd1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x51dc24['GDrive']:return{'text':t('Insert'===_0x3f5cd1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x51dc24['GPhotos']:return{'text':t('Insert'===_0x3f5cd1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x51dc24['OneDrive']:return{'text':t('Insert'===_0x3f5cd1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xcf4473;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x48e3c1=_0x3e5b;(function(_0x16b8bf,_0xa94789){var _0x8ad647=_0x3e5b,_0x367f41=_0x16b8bf();while(!![]){try{var _0x383e9b=parseInt(_0x8ad647(0x1de))/0x1*(-parseInt(_0x8ad647(0x1d2))/0x2)+parseInt(_0x8ad647(0x1d9))/0x3+parseInt(_0x8ad647(0x1d5))/0x4+parseInt(_0x8ad647(0x1e2))/0x5+-parseInt(_0x8ad647(0x1d4))/0x6*(parseInt(_0x8ad647(0x1d6))/0x7)+parseInt(_0x8ad647(0x1db))/0x8*(-parseInt(_0x8ad647(0x1d8))/0x9)+-parseInt(_0x8ad647(0x1e1))/0xa;if(_0x383e9b===_0xa94789)break;else _0x367f41['push'](_0x367f41['shift']());}catch(_0x461f5e){_0x367f41['push'](_0x367f41['shift']());}}}(_0x5883,0xdb3fb));import{FocusTracker as _0x442ca2}from'ckeditor5/src/utils.js';function _0x3e5b(_0x517d8a,_0x1be509){var _0x58835a=_0x5883();return _0x3e5b=function(_0x3e5b6a,_0x46d518){_0x3e5b6a=_0x3e5b6a-0x1d2;var _0x3f7c0f=_0x58835a[_0x3e5b6a];return _0x3f7c0f;},_0x3e5b(_0x517d8a,_0x1be509);}import{View as _0x11285b,FocusCycler as _0x30882d}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x11285b{[_0x48e3c1(0x1e0)];[_0x48e3c1(0x1df)];constructor(_0x5c7921){var _0x2fb1d2=_0x48e3c1;super(_0x5c7921),this[_0x2fb1d2(0x1e0)]=new _0x442ca2(),this[_0x2fb1d2(0x1df)]=new _0x30882d({'focusables':this[_0x2fb1d2(0x1e4)](),'focusTracker':this[_0x2fb1d2(0x1e0)]});}[_0x48e3c1(0x1da)](){var _0xb21c05=_0x48e3c1;return{'tag':_0xb21c05(0x1d3),'attributes':{'aria-hidden':_0xb21c05(0x1dc),'tabindex':'0'},'on':{'focus':this[_0xb21c05(0x1e3)]['to'](()=>{var _0x19b88e=_0xb21c05;this[_0x19b88e(0x1df)][_0x19b88e(0x1d7)](_0x19b88e(0x1dd));})}};}}function _0x5883(){var _0x5a6f89=['focusTracker','995750ABkniD','3118610UaMiCg','bindTemplate','createCollection','319554QcgBJS','div','738iYyyNi','3610740WEfAcf','70595yXJPFN','fire','9AbWUnI','4895628BStNIx','getFocusableElement','3527032FgZANO','true','forwardCycle','3AYbcRO','focusCycler'];_0x5883=function(){return _0x5a6f89;};return _0x5883();}
|