@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250223.0 → 0.0.0-nightly-next-20250223.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 _0x5a9291=_0x4a75;(function(_0x428106,_0x432b6e){const _0x45bf3d=_0x4a75,_0xa4d8b=_0x428106();while(!![]){try{const _0x5b952c=-parseInt(_0x45bf3d(0x1ea))/0x1+-parseInt(_0x45bf3d(0x1dd))/0x2*(parseInt(_0x45bf3d(0x1f4))/0x3)+parseInt(_0x45bf3d(0x1f0))/0x4*(parseInt(_0x45bf3d(0x1ee))/0x5)+-parseInt(_0x45bf3d(0x1fa))/0x6+parseInt(_0x45bf3d(0x1e0))/0x7*(-parseInt(_0x45bf3d(0x1df))/0x8)+parseInt(_0x45bf3d(0x1f3))/0x9+parseInt(_0x45bf3d(0x1ca))/0xa;if(_0x5b952c===_0x432b6e)break;else _0xa4d8b['push'](_0xa4d8b['shift']());}catch(_0x1f9ee0){_0xa4d8b['push'](_0xa4d8b['shift']());}}}(_0x3dbc,0x1b8e5));import{Plugin as _0x48bf10}from'ckeditor5/src/core.js';import{Dialog as _0x277985}from'ckeditor5/src/ui.js';import{createElement as _0x5a8980,global as _0x3c3a31,uid as _0x3808ff}from'ckeditor5/src/utils.js';function _0x4a75(_0xd7c423,_0x1e0cfb){const _0x3dbc48=_0x3dbc();return _0x4a75=function(_0x4a75a8,_0x2bc587){_0x4a75a8=_0x4a75a8-0x1c4;let _0x4b572a=_0x3dbc48[_0x4a75a8];return _0x4b572a;},_0x4a75(_0xd7c423,_0x1e0cfb);}import _0x437afa from'./uploadcarecommand.js';import _0x5ef48e from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x35ed2b}from'./utils/editingutils.js';function _0x3dbc(){const _0x3475b7=['406phWStd','isPremiumPlugin','203016hwoZEt','42eimAhG','uc-config','once','_initConfig','closeMax','fromCharCode','replaceImageSource','PictureEditing','true','body','4295pQNXPr','pluginName','model','upcast','176905MfpwxP','_initSchema','20kJPbSi','conversion','uploadcare.uploader','1630521mgvdjt','3039VfoMVf','getAttribute','imageBlock','uploader','uploadcareImageId','elementToAttribute','110592ZzIILL','for','init','uploadcare','input[uploadcare-file-input]','execute','join','getSelectedElement','requires','selection','querySelector','editing','view','commands','uploadcareImageReplace','iconHrefResolver','_initImageProcessingIndicator','_ctxElement','contentLanguage','remove','ctxElement','locale','imageInline','insertImage','get','configElement','_initConversion','map','downcast','#uc-icon-arrow-down','isRegistered','appendChild','_configElement','\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','extend','cleanupImage','1354230KYyVYv','listenTo','schema','UploadcareEditing','removeAttribute','uploadcare.pubkey','destroy','add','isOfficialPlugin','editor','href','document','attributeToAttribute','render','_initCtx','uc-upload-ctx-provider','config','data-uc-image-id','afterInit'];_0x3dbc=function(){return _0x3475b7;};return _0x3dbc();}export default class i extends _0x48bf10{constructor(){const _0x1b37c0=_0x4a75;super(...arguments),this[_0x1b37c0(0x1c6)]=null,this[_0x1b37c0(0x20b)]=null;}static get[_0x5a9291(0x1eb)](){const _0x1be5c2=_0x5a9291;return _0x1be5c2(0x1cd);}static get[_0x5a9291(0x202)](){const _0x2d53df=_0x5a9291;return[_0x2d53df(0x1e7),_0x5ef48e,_0x277985];}static get[_0x5a9291(0x1d2)](){return!0x0;}static get[_0x5a9291(0x1de)](){return!0x0;}get[_0x5a9291(0x213)](){const _0x5a7c9d=_0x5a9291;return this[_0x5a7c9d(0x1c6)];}get[_0x5a9291(0x20e)](){const _0x312e10=_0x5a9291;return this[_0x312e10(0x20b)];}[_0x5a9291(0x1fc)](){const _0xc7513f=_0x5a9291,_0x13085c=this[_0xc7513f(0x1d3)];_0x13085c[_0xc7513f(0x207)][_0xc7513f(0x1d1)](_0xc7513f(0x1fd),new _0x437afa(_0x13085c));}[_0x5a9291(0x1dc)](){const _0xb09752=_0x5a9291;this[_0xb09752(0x1ef)](),this[_0xb09752(0x214)](),this[_0xb09752(0x1e3)](),this[_0xb09752(0x1d8)](),this[_0xb09752(0x20a)](),this[_0xb09752(0x1cb)](this[_0xb09752(0x1d3)],_0xb09752(0x1d0),()=>{const _0x4f27a9=_0xb09752;this[_0x4f27a9(0x1c6)]&&(this[_0x4f27a9(0x1c6)][_0x4f27a9(0x20d)](),this[_0x4f27a9(0x1c6)]=null),this[_0x4f27a9(0x20b)]&&(this[_0x4f27a9(0x20b)][_0x4f27a9(0x20d)](),this[_0x4f27a9(0x20b)]=null);const _0x44e21e=_0x3c3a31[_0x4f27a9(0x1d5)][_0x4f27a9(0x204)](_0x4f27a9(0x1fe));_0x44e21e&&_0x44e21e[_0x4f27a9(0x20d)]();}),async function(_0x6d84fd){const _0x1d829f=_0x270226([0x49,0x71,0x79,0x56,0x52,0x4e,0x4a,0x57,0x47,0x32,0x6e,0x43,0x66,0x63,0x65,0x34,0x42,0x73,0x44,0x31,0x39,0x75,0x41,0x6c,0x77,0x45,0x48,0x30,0x46,0x4d,0x64,0x54,0x6d,0x59,0x78,0x76,0x72,0x33,0x55,0x70,0x69,0x61,0x6b,0x58,0x6f,0x7a,0x36,0x51,0x50,0x62,0x74,0x37,0x6a,0x35,0x4b,0x5a,0x4f,0x38,0x4c,0x53,0x67,0x68]),_0x26b1e6=0x2833b140,_0x48b6b4=0x2834d110^_0x26b1e6,_0x2e3a9e=window[_0x270226([0x44,0x61,0x74,0x65])][_0x270226([0x6e,0x6f,0x77])](),_0x3b589e=_0x6d84fd[_0x270226([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c2627=new window[(_0x270226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31475e=>{_0x3b589e[_0x270226([0x6f,0x6e,0x63,0x65])](_0x270226([0x72,0x65,0x61,0x64,0x79]),_0x31475e);}),_0x56d702={[_0x270226([0x6b,0x74,0x79])]:_0x270226([0x45,0x43]),[_0x270226([0x75,0x73,0x65])]:_0x270226([0x73,0x69,0x67]),[_0x270226([0x63,0x72,0x76])]:_0x270226([0x50,0x2d,0x32,0x35,0x36]),[_0x270226([0x78])]:_0x270226([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]),[_0x270226([0x79])]:_0x270226([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]),[_0x270226([0x61,0x6c,0x67])]:_0x270226([0x45,0x53,0x32,0x35,0x36])},_0x175bd2=_0x3b589e[_0x270226([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x270226([0x67,0x65,0x74])](_0x270226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18f28b(){let _0x3cafa1,_0x4ca1e7=null,_0x388669=null;try{if(_0x175bd2==_0x270226([0x47,0x50,0x4c]))return _0x270226([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cafa1=_0x37eba3(),!_0x3cafa1)return _0x270226([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cafa1[_0x270226([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x388669=_0x413065(_0x3cafa1[_0x270226([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cafa1[_0x270226([0x6a,0x74,0x69])])),await _0xee52ee()?_0x2952ac()?_0x2d3f89()?_0x270226([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x17819c()?(_0x3cafa1[_0x270226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x270226([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4ca1e7=_0x1f6f16(_0x270226([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3cafa1[_0x270226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x270226([0x74,0x72,0x69,0x61,0x6c])&&(_0x4ca1e7=_0x1f6f16(_0x270226([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4475af()):_0x270226([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x270226([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x270226([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x16605d){return _0x270226([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d3f89(){const _0x237c55=[_0x270226([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x270226([0x74,0x72,0x69,0x61,0x6c])][_0x270226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cafa1[_0x270226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e3a9e/0x3e8:0xe10*_0x48b6b4;return _0x3cafa1[_0x270226([0x65,0x78,0x70])]<_0x237c55;}function _0x2952ac(){const _0x552c71=_0x3cafa1[_0x270226([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x552c71&&(!!_0x552c71[_0x270226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x270226([0x2a]))||!!_0x552c71[_0x270226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x270226([0x55,0x50,0x4c,0x43])));}function _0x17819c(){const _0x27f1a9=_0x4a75,_0x3d7a3c=_0x3cafa1[_0x270226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d7a3c||0x0==_0x3d7a3c[_0x270226([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59199b}=new URL(window[_0x270226([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x27f1a9(0x1d4)]);if(_0x3d7a3c[_0x270226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59199b))return!0x0;const _0x767a08=_0x59199b[_0x270226([0x73,0x70,0x6c,0x69,0x74])](_0x270226([0x2e]));return _0x3d7a3c[_0x270226([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d6d14=>_0x5d6d14[_0x270226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x270226([0x2a])))[_0x270226([0x6d,0x61,0x70])](_0x25e3d5=>_0x25e3d5[_0x270226([0x73,0x70,0x6c,0x69,0x74])](_0x270226([0x2e])))[_0x270226([0x73,0x6f,0x6d,0x65])](_0x4c889c=>_0x767a08[_0x270226([0x65,0x76,0x65,0x72,0x79])]((_0x343fdc,_0x399ca2)=>_0x4c889c[_0x399ca2]===_0x343fdc||_0x4c889c[_0x399ca2]===_0x270226([0x2a])));}function _0x4475af(){return _0x4ca1e7&&_0x388669?new window[(_0x270226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20633b,_0x296b4d)=>{_0x4ca1e7[_0x270226([0x74,0x68,0x65,0x6e])](_0x20633b,_0x296b4d),_0x388669[_0x270226([0x74,0x68,0x65,0x6e])](_0x49f4ca=>{_0x49f4ca!=_0x270226([0x56,0x61,0x6c,0x69,0x64])&&_0x20633b(_0x49f4ca);},_0x296b4d);}):_0x4ca1e7||_0x388669||_0x270226([0x56,0x61,0x6c,0x69,0x64]);}}function _0x413065(_0x36cc69,_0x4303c5){return new window[(_0x270226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ff1e5=>{if(_0x3e5bd6())return _0x3ff1e5(_0x270226([0x56,0x61,0x6c,0x69,0x64]));_0x586cc0(),_0x3b589e[_0x270226([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x270226([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3247ff=!0x1;const _0x5908b6=_0x3808ff();function _0x5eef72(_0x131198){return!!_0x131198&&(typeof _0x131198===_0x270226([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x131198===_0x270226([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x131198[_0x270226([0x74,0x68,0x65,0x6e])]===_0x270226([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x131198[_0x270226([0x63,0x61,0x74,0x63,0x68])]===_0x270226([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1932eb(_0x4cf0e2){_0x31c1c0(_0x4cf0e2)[_0x270226([0x74,0x68,0x65,0x6e])](_0x5af57e=>{if(!_0x5af57e||_0x5af57e[_0x270226([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x270226([0x6f,0x6b]))return _0x270226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1258d9(_0x2a598b(_0x5908b6+_0x4303c5))!=_0x5af57e[_0x270226([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x270226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x270226([0x56,0x61,0x6c,0x69,0x64]);})[_0x270226([0x74,0x68,0x65,0x6e])](_0x444797=>(_0x3ec297(),_0x444797),()=>{const _0x5b0ec5=_0x34226b();return null==_0x5b0ec5?(_0x3ec297(),_0x270226([0x56,0x61,0x6c,0x69,0x64])):_0x270226(_0x2e3a9e-_0x5b0ec5>(0xc3f3540^_0x26b1e6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x270226([0x74,0x68,0x65,0x6e])](_0x3ff1e5)[_0x270226([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ff1e5(_0x270226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb7fd97=0x28055fc0^_0x26b1e6;function _0x3ec297(){const _0x3f01ca=_0x270226([0x6c,0x6c,0x63,0x74,0x2d])+_0x1258d9(_0x2a598b(_0x36cc69)),_0x38d87a=_0x503612(_0x1258d9(window[_0x270226([0x4d,0x61,0x74,0x68])][_0x270226([0x63,0x65,0x69,0x6c])](_0x2e3a9e/_0xb7fd97)));window[_0x270226([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x270226([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f01ca,_0x38d87a);}function _0x34226b(){const _0x2fe0de=_0x270226([0x6c,0x6c,0x63,0x74,0x2d])+_0x1258d9(_0x2a598b(_0x36cc69)),_0x2ac475=window[_0x270226([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x270226([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fe0de);return _0x2ac475?window[_0x270226([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x503612(_0x2ac475),0x10)*_0xb7fd97:null;}function _0x31c1c0(_0x3b5beb){return new window[(_0x270226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xaebd2f,_0x2f2c6c)=>{_0x3b5beb[_0x270226([0x74,0x68,0x65,0x6e])](_0xaebd2f,_0x2f2c6c),window[_0x270226([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f2c6c,0x28326580^_0x26b1e6);});}}_0x3b589e[_0x270226([0x6f,0x6e])](_0x270226([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38eeee,_0x35322c)=>{if(_0x35322c[0x0]!=_0x36cc69)return _0x3ff1e5(_0x270226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35322c[0x1]={..._0x35322c[0x1],[_0x270226([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5908b6};},{[_0x270226([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x270226([0x68,0x69,0x67,0x68])}),_0x3b589e[_0x270226([0x6f,0x6e])](_0x270226([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27298e=>{_0x5eef72(_0x27298e[_0x270226([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3247ff=!0x0,_0x1932eb(_0x27298e[_0x270226([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x270226([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x270226([0x6c,0x6f,0x77])}),_0x3c2627[_0x270226([0x74,0x68,0x65,0x6e])](()=>{_0x3247ff||_0x3ff1e5(_0x270226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e5bd6(){return _0x3b589e[_0x270226([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x270226([0x76,0x69,0x65,0x77])][_0x270226([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x270226([0x61,0x75,0x74,0x6f]);}function _0x586cc0(){_0x3b589e[_0x270226([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x270226([0x76,0x69,0x65,0x77])][_0x270226([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x270226([0x61,0x75,0x74,0x6f]);}}function _0x1f6f16(_0x38b04d){const _0x9dd3ad=[new window[(_0x270226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa0460=>setTimeout(_0xa0460,0x283a8f8c^_0x26b1e6)),_0x3c2627[_0x270226([0x74,0x68,0x65,0x6e])](()=>new window[(_0x270226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3206b5=>{let _0x31c6f0=0x0;_0x3b589e[_0x270226([0x6d,0x6f,0x64,0x65,0x6c])][_0x270226([0x6f,0x6e])](_0x270226([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a2d4e,_0x5a502b)=>{_0x5a502b[0x0][_0x270226([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31c6f0++,_0x31c6f0==(0x2833b0b8^_0x26b1e6)&&(_0x3206b5(),_0x1a2d4e[_0x270226([0x6f,0x66,0x66])]());});}))];return window[_0x270226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x270226([0x72,0x61,0x63,0x65])](_0x9dd3ad)[_0x270226([0x74,0x68,0x65,0x6e])](()=>_0x38b04d);}async function _0x44c379(){await _0x3c2627,_0x3b589e[_0x270226([0x6d,0x6f,0x64,0x65,0x6c])][_0x270226([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18aa96,_0x3b589e[_0x270226([0x6d,0x6f,0x64,0x65,0x6c])][_0x270226([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18aa96,_0x3b589e[_0x270226([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x270226([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x47b452(_0x5e035e){const _0x34ab44=_0x23d216();_0x3b589e[_0x34ab44]=_0x270226([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e035e,_0x5e035e!=_0x270226([0x56,0x61,0x6c,0x69,0x64])&&_0x44c379();}function _0x23d216(){const _0x56c242=window[_0x270226([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x270226([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x270226([0x6e,0x6f,0x77])]())[_0x270226([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x270226([0x2e]),'');let _0x2501be=_0x270226([0x49]);for(let _0x2aed61=0x0;_0x2aed61<_0x56c242[_0x270226([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2aed61+=0x2){let _0x226c2c=window[_0x270226([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56c242[_0x270226([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2aed61,_0x2aed61+0x2));_0x226c2c>=_0x1d829f[_0x270226([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x226c2c-=_0x1d829f[_0x270226([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2501be+=_0x1d829f[_0x226c2c];}return _0x2501be;}function _0x37eba3(){const _0x41878c=_0x175bd2[_0x270226([0x73,0x70,0x6c,0x69,0x74])](_0x270226([0x2e]));if(0x3!=_0x41878c[_0x270226([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2881ac(_0x41878c[0x1]);function _0x2881ac(_0x15066b){const _0x26d3f1=_0x493fb2(_0x15066b);return _0x26d3f1&&_0x2ed2fb()?_0x26d3f1:null;function _0x2ed2fb(){const _0x1b7d92=_0x26d3f1[_0x270226([0x6a,0x74,0x69])],_0x37c6e9=window[_0x270226([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b7d92[_0x270226([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b7d92[_0x270226([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ca49f={..._0x26d3f1,[_0x270226([0x6a,0x74,0x69])]:_0x1b7d92[_0x270226([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b7d92[_0x270226([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ca49f[_0x270226([0x76,0x63])],_0x2a598b(_0x1ca49f)==_0x37c6e9;}}}async function _0xee52ee(){let _0x414539=!0x0;try{const _0x576359=_0x175bd2[_0x270226([0x73,0x70,0x6c,0x69,0x74])](_0x270226([0x2e])),[_0x1cbfa0,_0xfc7142,_0x319f94]=_0x576359;return _0x380aba(_0x1cbfa0),await _0x38f6f1(_0x1cbfa0,_0xfc7142,_0x319f94),_0x414539;}catch(_0x3214ee){return!0x1;}function _0x380aba(_0x6a8a51){const _0x440f27=_0x493fb2(_0x6a8a51);_0x440f27&&_0x440f27[_0x270226([0x61,0x6c,0x67])]==_0x270226([0x45,0x53,0x32,0x35,0x36])||(_0x414539=!0x1);}async function _0x38f6f1(_0x26e534,_0x402102,_0x9f7e9c){const _0x113f5c=window[_0x270226([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x270226([0x66,0x72,0x6f,0x6d])](_0x32eab0(_0x9f7e9c),_0xb690fd=>_0xb690fd[_0x270226([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1873a4=new window[(_0x270226([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x270226([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26e534+_0x270226([0x2e])+_0x402102),_0x31bec2=window[_0x270226([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x270226([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31bec2)return;const _0x44aaa3=await _0x31bec2[_0x270226([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x270226([0x6a,0x77,0x6b]),_0x56d702,{[_0x270226([0x6e,0x61,0x6d,0x65])]:_0x270226([0x45,0x43,0x44,0x53,0x41]),[_0x270226([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x270226([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x270226([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31bec2[_0x270226([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x270226([0x6e,0x61,0x6d,0x65])]:_0x270226([0x45,0x43,0x44,0x53,0x41]),[_0x270226([0x68,0x61,0x73,0x68])]:{[_0x270226([0x6e,0x61,0x6d,0x65])]:_0x270226([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44aaa3,_0x113f5c,_0x1873a4)||(_0x414539=!0x1);}}function _0x493fb2(_0x5898d9){return _0x5898d9[_0x270226([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x270226([0x65,0x79]))?JSON[_0x270226([0x70,0x61,0x72,0x73,0x65])](_0x32eab0(_0x5898d9)):null;}function _0x32eab0(_0x3dbc43){return window[_0x270226([0x61,0x74,0x6f,0x62])](_0x3dbc43[_0x270226([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x270226([0x2b]))[_0x270226([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x270226([0x2f])));}function _0x2a598b(_0x14e334){let _0x44d8d8=0x1505;function _0x75b840(_0x26f395){for(let _0xae05f8=0x0;_0xae05f8<_0x26f395[_0x270226([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xae05f8++){const _0xba6637=_0x26f395[_0x270226([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xae05f8);_0x44d8d8=(_0x44d8d8<<0x5)+_0x44d8d8+_0xba6637,_0x44d8d8&=_0x44d8d8;}}function _0x184992(_0x5be00b){Array[_0x270226([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5be00b)?_0x5be00b[_0x270226([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x184992):_0x5be00b&&typeof _0x5be00b==_0x270226([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x270226([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5be00b)[_0x270226([0x73,0x6f,0x72,0x74])]()[_0x270226([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1406b1,_0xb7939b])=>{_0x75b840(_0x1406b1),_0x184992(_0xb7939b);}):_0x75b840(window[_0x270226([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5be00b));}return _0x184992(_0x14e334),_0x44d8d8>>>0x0;}function _0x1258d9(_0xd7bfc1){return _0xd7bfc1[_0x270226([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x270226([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x270226([0x30]));}function _0x503612(_0x5adf6b){return _0x5adf6b[_0x270226([0x73,0x70,0x6c,0x69,0x74])]('')[_0x270226([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x270226([0x6a,0x6f,0x69,0x6e])]('');}function _0x18aa96(){}function _0x270226(_0x59d898){const _0x3a1c1a=_0x4a75;return _0x59d898[_0x3a1c1a(0x215)](_0x5027ce=>String[_0x3a1c1a(0x1e5)](_0x5027ce))[_0x3a1c1a(0x200)]('');}_0x47b452(await _0x18f28b());}(this);}[_0x5a9291(0x1ef)](){const _0x5ae5c2=_0x5a9291,_0x20a1a5=this[_0x5ae5c2(0x1d3)][_0x5ae5c2(0x1ec)][_0x5ae5c2(0x1cc)];_0x20a1a5[_0x5ae5c2(0x1c4)](_0x5ae5c2(0x1f6))&&_0x20a1a5[_0x5ae5c2(0x1c8)](_0x5ae5c2(0x1f6),{'allowAttributes':[_0x5ae5c2(0x1f8)]}),_0x20a1a5[_0x5ae5c2(0x1c4)](_0x5ae5c2(0x210))&&_0x20a1a5[_0x5ae5c2(0x1c8)](_0x5ae5c2(0x210),{'allowAttributes':[_0x5ae5c2(0x1f8)]});}[_0x5a9291(0x214)](){const _0x3f8ab1=_0x5a9291,_0x173cf0=this[_0x3f8ab1(0x1d3)];_0x173cf0[_0x3f8ab1(0x1f1)][_0x3f8ab1(0x1fb)](_0x3f8ab1(0x216))[_0x3f8ab1(0x1d6)]({'model':_0x3f8ab1(0x1f8),'view':_0x3f8ab1(0x1db)}),_0x173cf0[_0x3f8ab1(0x1f1)][_0x3f8ab1(0x1fb)](_0x3f8ab1(0x1ed))[_0x3f8ab1(0x1f9)]({'model':{'key':_0x3f8ab1(0x1f8),'value':_0x3666ce=>_0x3666ce[_0x3f8ab1(0x1f5)](_0x3f8ab1(0x1db))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x11cff5=_0x173cf0[_0x3f8ab1(0x207)][_0x3f8ab1(0x212)](_0x3f8ab1(0x1e6));_0x11cff5&&this[_0x3f8ab1(0x1cb)](_0x11cff5,_0x3f8ab1(0x1c9),(_0x491e4b,[_0x5af794,_0x596809])=>{const _0x4cdbca=_0x3f8ab1;_0x5af794[_0x4cdbca(0x1ce)](_0x4cdbca(0x1f8),_0x596809);});}[_0x5a9291(0x1e3)](){const _0x3f9dde=_0x5a9291,_0x4ffd59=this[_0x3f9dde(0x1d3)][_0x3f9dde(0x1da)][_0x3f9dde(0x212)](_0x3f9dde(0x1f2))||{},_0xf441f=this[_0x3f9dde(0x1d3)][_0x3f9dde(0x1da)][_0x3f9dde(0x212)](_0x3f9dde(0x1cf))||'';this[_0x3f9dde(0x1c6)]=_0x5a8980(_0x3c3a31[_0x3f9dde(0x1d5)],_0x3f9dde(0x1e1),{..._0x4ffd59,'pubkey':_0xf441f,'ctx-name':_0x3f9dde(0x1f7),'sourceList':'','imgOnly':_0x3f9dde(0x1e8),'removeCopyright':_0x3f9dde(0x1e8),'localeName':this[_0x3f9dde(0x1d3)][_0x3f9dde(0x20f)][_0x3f9dde(0x20c)],'externalSourcesEmbedCss':_0x3f9dde(0x1c7)}),this[_0x3f9dde(0x1c6)][_0x3f9dde(0x209)]=_0x42f3a5=>{const _0x538835=_0x3f9dde;if(_0x538835(0x1e4)==_0x42f3a5)return _0x538835(0x217);},_0x3c3a31[_0x3f9dde(0x1d5)][_0x3f9dde(0x1e9)][_0x3f9dde(0x1c5)](this[_0x3f9dde(0x1c6)]);}[_0x5a9291(0x1d8)](){const _0x52f653=_0x5a9291;this[_0x52f653(0x20b)]=_0x5a8980(_0x3c3a31[_0x52f653(0x1d5)],_0x52f653(0x1d9),{'ctx-name':_0x52f653(0x1f7)}),_0x3c3a31[_0x52f653(0x1d5)][_0x52f653(0x1e9)][_0x52f653(0x1c5)](this[_0x52f653(0x20b)]);}[_0x5a9291(0x20a)](){const _0x5bb1f2=_0x5a9291,_0x55449f=this[_0x5bb1f2(0x1d3)][_0x5bb1f2(0x207)][_0x5bb1f2(0x212)](_0x5bb1f2(0x211));_0x55449f&&this[_0x5bb1f2(0x1cb)](_0x55449f,_0x5bb1f2(0x1ff),()=>{const _0x487311=_0x5bb1f2,_0x4da094=this[_0x487311(0x1d3)][_0x487311(0x1ec)][_0x487311(0x1d5)][_0x487311(0x203)][_0x487311(0x201)]();_0x4da094&&_0x4da094[_0x487311(0x1f5)](_0x487311(0x1f8))&&this[_0x487311(0x1d3)][_0x487311(0x205)][_0x487311(0x206)][_0x487311(0x1e2)](_0x487311(0x1d7),()=>{const _0x2653dc=_0x487311;_0x35ed2b(this[_0x2653dc(0x1d3)],_0x4da094);});});const _0x33678e=this[_0x5bb1f2(0x1d3)][_0x5bb1f2(0x207)][_0x5bb1f2(0x212)](_0x5bb1f2(0x208));_0x33678e&&this[_0x5bb1f2(0x1cb)](_0x33678e,_0x5bb1f2(0x1ff),()=>{const _0x538b68=_0x5bb1f2,_0x43afbf=this[_0x538b68(0x1d3)][_0x538b68(0x1ec)][_0x538b68(0x1d5)][_0x538b68(0x203)][_0x538b68(0x201)]();_0x43afbf&&_0x43afbf[_0x538b68(0x1f5)](_0x538b68(0x1f8))&&this[_0x538b68(0x1d3)][_0x538b68(0x205)][_0x538b68(0x206)][_0x538b68(0x1e2)](_0x538b68(0x1d7),()=>{const _0x13b74d=_0x538b68;_0x35ed2b(this[_0x13b74d(0x1d3)],_0x43afbf);});});}}
|
|
23
|
+
const _0x33a3cb=_0x35aa;(function(_0x3f82aa,_0x398541){const _0x19a7a1=_0x35aa,_0x525e7f=_0x3f82aa();while(!![]){try{const _0x136c58=-parseInt(_0x19a7a1(0x1c2))/0x1*(-parseInt(_0x19a7a1(0x1c6))/0x2)+-parseInt(_0x19a7a1(0x213))/0x3+-parseInt(_0x19a7a1(0x1f5))/0x4*(parseInt(_0x19a7a1(0x1f8))/0x5)+-parseInt(_0x19a7a1(0x1c5))/0x6+parseInt(_0x19a7a1(0x1e3))/0x7+-parseInt(_0x19a7a1(0x1d0))/0x8*(-parseInt(_0x19a7a1(0x1d4))/0x9)+-parseInt(_0x19a7a1(0x1da))/0xa*(-parseInt(_0x19a7a1(0x1dd))/0xb);if(_0x136c58===_0x398541)break;else _0x525e7f['push'](_0x525e7f['shift']());}catch(_0x518930){_0x525e7f['push'](_0x525e7f['shift']());}}}(_0x1f15,0x66c17));import{Plugin as _0x45a30e}from'ckeditor5/src/core.js';import{Dialog as _0x8f6ad4}from'ckeditor5/src/ui.js';function _0x35aa(_0x5422fc,_0x2e75a2){const _0x1f15e7=_0x1f15();return _0x35aa=function(_0x35aa10,_0x70f18d){_0x35aa10=_0x35aa10-0x1c1;let _0x5a76c0=_0x1f15e7[_0x35aa10];return _0x5a76c0;},_0x35aa(_0x5422fc,_0x2e75a2);}import{createElement as _0x2191d6,global as _0xb8b24b,uid as _0x329e2e}from'ckeditor5/src/utils.js';import _0xf731f2 from'./uploadcarecommand.js';import _0x1e95a4 from'./uploadcareuploadadapter.js';function _0x1f15(){const _0x5028cd=['schema','_initConfig','map','afterInit','once','fromCharCode','cleanupImage','destroy','config','editing','insertImage','add','for','requires','true','4LzYqcd','uploadcare','conversion','2298815XhkBqM','replaceImageSource','uc-config','href','_initImageProcessingIndicator','input[uploadcare-file-input]','contentLanguage','pluginName','extend','_initConversion','get','querySelector','iconHrefResolver','upcast','data-uc-image-id','join','elementToAttribute','_initSchema','commands','isPremiumPlugin','getAttribute','uploadcare.pubkey','render','locale','uploadcareImageId','body','configElement','2137608GBralB','getSelectedElement','removeAttribute','downcast','671TUCwaE','PictureEditing','init','13470FEnxJP','2342TXCUvA','uploadcareImageReplace','appendChild','uc-upload-ctx-provider','_ctxElement','isOfficialPlugin','document','imageInline','UploadcareEditing','uploadcare.uploader','4524424zJjsyn','closeMax','_configElement','remove','9xmyrWG','_initCtx','\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','view','ctxElement','imageBlock','15630pcoSIu','listenTo','isRegistered','22SwDUmv','attributeToAttribute','#uc-icon-arrow-down','model','execute','selection','1687077XoWrHb','uploader','editor'];_0x1f15=function(){return _0x5028cd;};return _0x1f15();}import{showImageProcessingIndicator as _0x2a8806}from'./utils/editingutils.js';export default class i extends _0x45a30e{[_0x33a3cb(0x1d2)]=null;[_0x33a3cb(0x1ca)]=null;static get[_0x33a3cb(0x1ff)](){const _0x357fd2=_0x33a3cb;return _0x357fd2(0x1ce);}static get[_0x33a3cb(0x1f3)](){const _0x4d5720=_0x33a3cb;return[_0x4d5720(0x1c3),_0x1e95a4,_0x8f6ad4];}static get[_0x33a3cb(0x1cb)](){return!0x0;}static get[_0x33a3cb(0x20b)](){return!0x0;}get[_0x33a3cb(0x212)](){const _0x1d2ee8=_0x33a3cb;return this[_0x1d2ee8(0x1d2)];}get[_0x33a3cb(0x1d8)](){const _0x21e93b=_0x33a3cb;return this[_0x21e93b(0x1ca)];}[_0x33a3cb(0x1c4)](){const _0x3aa7a2=_0x33a3cb,_0x13d09a=this[_0x3aa7a2(0x1e5)];_0x13d09a[_0x3aa7a2(0x20a)][_0x3aa7a2(0x1f1)](_0x3aa7a2(0x1f6),new _0xf731f2(_0x13d09a));}[_0x33a3cb(0x1e9)](){const _0x22dbd9=_0x33a3cb;this[_0x22dbd9(0x209)](),this[_0x22dbd9(0x201)](),this[_0x22dbd9(0x1e7)](),this[_0x22dbd9(0x1d5)](),this[_0x22dbd9(0x1fc)](),this[_0x22dbd9(0x1db)](this[_0x22dbd9(0x1e5)],_0x22dbd9(0x1ed),()=>{const _0x3f14fe=_0x22dbd9;this[_0x3f14fe(0x1d2)]&&(this[_0x3f14fe(0x1d2)][_0x3f14fe(0x1d3)](),this[_0x3f14fe(0x1d2)]=null),this[_0x3f14fe(0x1ca)]&&(this[_0x3f14fe(0x1ca)][_0x3f14fe(0x1d3)](),this[_0x3f14fe(0x1ca)]=null);const _0x51b968=_0xb8b24b[_0x3f14fe(0x1cc)][_0x3f14fe(0x203)](_0x3f14fe(0x1fd));_0x51b968&&_0x51b968[_0x3f14fe(0x1d3)]();}),async function(_0x1f9e44){const _0x3ac752=_0x22397f([0x61,0x33,0x42,0x4b,0x71,0x39,0x6f,0x5a,0x32,0x52,0x49,0x65,0x70,0x46,0x66,0x43,0x6c,0x4f,0x45,0x34,0x41,0x68,0x44,0x4c,0x58,0x79,0x56,0x63,0x54,0x30,0x73,0x76,0x72,0x69,0x48,0x4a,0x67,0x6b,0x4e,0x62,0x7a,0x77,0x6d,0x55,0x75,0x53,0x6a,0x4d,0x50,0x51,0x38,0x64,0x35,0x37,0x59,0x6e,0x78,0x31,0x74,0x57,0x36,0x47]),_0x515027=0x2592f2d4,_0x1599e2=0x25959284^_0x515027,_0xc55472=window[_0x22397f([0x44,0x61,0x74,0x65])][_0x22397f([0x6e,0x6f,0x77])](),_0x1d497e=_0x1f9e44[_0x22397f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x216ac9=new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b7b13=>{_0x1d497e[_0x22397f([0x6f,0x6e,0x63,0x65])](_0x22397f([0x72,0x65,0x61,0x64,0x79]),_0x5b7b13);}),_0x588ede={[_0x22397f([0x6b,0x74,0x79])]:_0x22397f([0x45,0x43]),[_0x22397f([0x75,0x73,0x65])]:_0x22397f([0x73,0x69,0x67]),[_0x22397f([0x63,0x72,0x76])]:_0x22397f([0x50,0x2d,0x32,0x35,0x36]),[_0x22397f([0x78])]:_0x22397f([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]),[_0x22397f([0x79])]:_0x22397f([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]),[_0x22397f([0x61,0x6c,0x67])]:_0x22397f([0x45,0x53,0x32,0x35,0x36])},_0x2aae4c=_0x1d497e[_0x22397f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22397f([0x67,0x65,0x74])](_0x22397f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c81d8(){let _0x2577d7,_0x17b8a9=null,_0xc47b50=null;try{if(_0x2aae4c==_0x22397f([0x47,0x50,0x4c]))return _0x22397f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2577d7=_0x24745a(),!_0x2577d7)return _0x22397f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2577d7[_0x22397f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc47b50=_0x535d65(_0x2577d7[_0x22397f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2577d7[_0x22397f([0x6a,0x74,0x69])])),await _0x2d98a1()?_0x4e9d19()?_0x4db95d()?_0x22397f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x464444()?(_0x2577d7[_0x22397f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22397f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17b8a9=_0x50f2e8(_0x22397f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2577d7[_0x22397f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22397f([0x74,0x72,0x69,0x61,0x6c])&&(_0x17b8a9=_0x50f2e8(_0x22397f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2c0ac8()):_0x22397f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22397f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22397f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3e0e72){return _0x22397f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4db95d(){const _0x501087=[_0x22397f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22397f([0x74,0x72,0x69,0x61,0x6c])][_0x22397f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2577d7[_0x22397f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc55472/0x3e8:0xe10*_0x1599e2;return _0x2577d7[_0x22397f([0x65,0x78,0x70])]<_0x501087;}function _0x4e9d19(){const _0x261ff9=_0x2577d7[_0x22397f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x261ff9&&(!!_0x261ff9[_0x22397f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22397f([0x2a]))||!!_0x261ff9[_0x22397f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22397f([0x55,0x50,0x4c,0x43])));}function _0x464444(){const _0x24c369=_0x35aa,_0x1a66fc=_0x2577d7[_0x22397f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a66fc||0x0==_0x1a66fc[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x584858}=new URL(window[_0x22397f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x24c369(0x1fb)]);if(_0x1a66fc[_0x22397f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x584858))return!0x0;const _0x149199=_0x584858[_0x22397f([0x73,0x70,0x6c,0x69,0x74])](_0x22397f([0x2e]));return _0x1a66fc[_0x22397f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46c912=>_0x46c912[_0x22397f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22397f([0x2a])))[_0x22397f([0x6d,0x61,0x70])](_0xfaa539=>_0xfaa539[_0x22397f([0x73,0x70,0x6c,0x69,0x74])](_0x22397f([0x2e])))[_0x22397f([0x73,0x6f,0x6d,0x65])](_0x3715a8=>_0x149199[_0x22397f([0x65,0x76,0x65,0x72,0x79])]((_0x37f0be,_0x5f2dc2)=>_0x3715a8[_0x5f2dc2]===_0x37f0be||_0x3715a8[_0x5f2dc2]===_0x22397f([0x2a])));}function _0x2c0ac8(){return _0x17b8a9&&_0xc47b50?new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36b432,_0x1143ed)=>{_0x17b8a9[_0x22397f([0x74,0x68,0x65,0x6e])](_0x36b432,_0x1143ed),_0xc47b50[_0x22397f([0x74,0x68,0x65,0x6e])](_0x43c8d1=>{_0x43c8d1!=_0x22397f([0x56,0x61,0x6c,0x69,0x64])&&_0x36b432(_0x43c8d1);},_0x1143ed);}):_0x17b8a9||_0xc47b50||_0x22397f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x535d65(_0x3a5a48,_0x4c5651){return new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x594d50=>{if(_0xd1b9d0())return _0x594d50(_0x22397f([0x56,0x61,0x6c,0x69,0x64]));_0xa4f372(),_0x1d497e[_0x22397f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22397f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x203a03=!0x1;const _0x1c3d54=_0x329e2e();function _0x12eca8(_0x1a7512){return!!_0x1a7512&&(typeof _0x1a7512===_0x22397f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a7512===_0x22397f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a7512[_0x22397f([0x74,0x68,0x65,0x6e])]===_0x22397f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a7512[_0x22397f([0x63,0x61,0x74,0x63,0x68])]===_0x22397f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x45a2f1(_0x5d5d5b){_0xeea826(_0x5d5d5b)[_0x22397f([0x74,0x68,0x65,0x6e])](_0x5ad00e=>{if(!_0x5ad00e||_0x5ad00e[_0x22397f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22397f([0x6f,0x6b]))return _0x22397f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xfba424(_0x29257e(_0x1c3d54+_0x4c5651))!=_0x5ad00e[_0x22397f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22397f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22397f([0x56,0x61,0x6c,0x69,0x64]);})[_0x22397f([0x74,0x68,0x65,0x6e])](_0x583aa2=>(_0x3482a8(),_0x583aa2),()=>{const _0x23630c=_0x892972();return null==_0x23630c?(_0x3482a8(),_0x22397f([0x56,0x61,0x6c,0x69,0x64])):_0x22397f(_0xc55472-_0x23630c>(0x19e76d4^_0x515027)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22397f([0x74,0x68,0x65,0x6e])](_0x594d50)[_0x22397f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x594d50(_0x22397f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa5e838=0x25a41c54^_0x515027;function _0x3482a8(){const _0x18f5a7=_0x22397f([0x6c,0x6c,0x63,0x74,0x2d])+_0xfba424(_0x29257e(_0x3a5a48)),_0x1db063=_0x33aad8(_0xfba424(window[_0x22397f([0x4d,0x61,0x74,0x68])][_0x22397f([0x63,0x65,0x69,0x6c])](_0xc55472/_0xa5e838)));window[_0x22397f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22397f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18f5a7,_0x1db063);}function _0x892972(){const _0x1eea8b=_0x22397f([0x6c,0x6c,0x63,0x74,0x2d])+_0xfba424(_0x29257e(_0x3a5a48)),_0xa263a6=window[_0x22397f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22397f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1eea8b);return _0xa263a6?window[_0x22397f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33aad8(_0xa263a6),0x10)*_0xa5e838:null;}function _0xeea826(_0x278ba5){return new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4380a4,_0x28f415)=>{_0x278ba5[_0x22397f([0x74,0x68,0x65,0x6e])](_0x4380a4,_0x28f415),window[_0x22397f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28f415,0x25932614^_0x515027);});}}_0x1d497e[_0x22397f([0x6f,0x6e])](_0x22397f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22091b,_0x4e9b69)=>{if(_0x4e9b69[0x0]!=_0x3a5a48)return _0x594d50(_0x22397f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e9b69[0x1]={..._0x4e9b69[0x1],[_0x22397f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c3d54};},{[_0x22397f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22397f([0x68,0x69,0x67,0x68])}),_0x1d497e[_0x22397f([0x6f,0x6e])](_0x22397f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4d70cc=>{_0x12eca8(_0x4d70cc[_0x22397f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x203a03=!0x0,_0x45a2f1(_0x4d70cc[_0x22397f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22397f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22397f([0x6c,0x6f,0x77])}),_0x216ac9[_0x22397f([0x74,0x68,0x65,0x6e])](()=>{_0x203a03||_0x594d50(_0x22397f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd1b9d0(){return _0x1d497e[_0x22397f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22397f([0x76,0x69,0x65,0x77])][_0x22397f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22397f([0x61,0x75,0x74,0x6f]);}function _0xa4f372(){_0x1d497e[_0x22397f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22397f([0x76,0x69,0x65,0x77])][_0x22397f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22397f([0x61,0x75,0x74,0x6f]);}}function _0x50f2e8(_0x4c6e60){const _0x33e6a2=[new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x128354=>setTimeout(_0x128354,0x259bcc18^_0x515027)),_0x216ac9[_0x22397f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b583e=>{let _0x17272c=0x0;_0x1d497e[_0x22397f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22397f([0x6f,0x6e])](_0x22397f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2781ca,_0x4d5204)=>{_0x4d5204[0x0][_0x22397f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x17272c++,_0x17272c==(0x2592f32c^_0x515027)&&(_0x4b583e(),_0x2781ca[_0x22397f([0x6f,0x66,0x66])]());});}))];return window[_0x22397f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22397f([0x72,0x61,0x63,0x65])](_0x33e6a2)[_0x22397f([0x74,0x68,0x65,0x6e])](()=>_0x4c6e60);}async function _0x179b93(){await _0x216ac9,_0x1d497e[_0x22397f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22397f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x382bcd,_0x1d497e[_0x22397f([0x6d,0x6f,0x64,0x65,0x6c])][_0x22397f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x382bcd,_0x1d497e[_0x22397f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22397f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a0b2a(_0x3e2531){const _0x2c5fef=_0x2b1867();_0x1d497e[_0x2c5fef]=_0x22397f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e2531,_0x3e2531!=_0x22397f([0x56,0x61,0x6c,0x69,0x64])&&_0x179b93();}function _0x2b1867(){const _0x45a544=window[_0x22397f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22397f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22397f([0x6e,0x6f,0x77])]())[_0x22397f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22397f([0x2e]),'');let _0x495aa6=_0x22397f([0x61]);for(let _0x34cdce=0x0;_0x34cdce<_0x45a544[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34cdce+=0x2){let _0x3e1de3=window[_0x22397f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45a544[_0x22397f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34cdce,_0x34cdce+0x2));_0x3e1de3>=_0x3ac752[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e1de3-=_0x3ac752[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x495aa6+=_0x3ac752[_0x3e1de3];}return _0x495aa6;}function _0x24745a(){const _0x5a2c9e=_0x2aae4c[_0x22397f([0x73,0x70,0x6c,0x69,0x74])](_0x22397f([0x2e]));if(0x3!=_0x5a2c9e[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e8b56(_0x5a2c9e[0x1]);function _0x5e8b56(_0x5e2f1d){const _0x342139=_0x1fd63a(_0x5e2f1d);return _0x342139&&_0x590a59()?_0x342139:null;function _0x590a59(){const _0x4eefb3=_0x342139[_0x22397f([0x6a,0x74,0x69])],_0x3ced81=window[_0x22397f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4eefb3[_0x22397f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4eefb3[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc0b4df={..._0x342139,[_0x22397f([0x6a,0x74,0x69])]:_0x4eefb3[_0x22397f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4eefb3[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc0b4df[_0x22397f([0x76,0x63])],_0x29257e(_0xc0b4df)==_0x3ced81;}}}async function _0x2d98a1(){let _0x502359=!0x0;try{const _0x431cb2=_0x2aae4c[_0x22397f([0x73,0x70,0x6c,0x69,0x74])](_0x22397f([0x2e])),[_0x112328,_0x370476,_0x337254]=_0x431cb2;return _0x31ffef(_0x112328),await _0x3695e5(_0x112328,_0x370476,_0x337254),_0x502359;}catch(_0x3aa55c){return!0x1;}function _0x31ffef(_0x147bbd){const _0x1543e7=_0x1fd63a(_0x147bbd);_0x1543e7&&_0x1543e7[_0x22397f([0x61,0x6c,0x67])]==_0x22397f([0x45,0x53,0x32,0x35,0x36])||(_0x502359=!0x1);}async function _0x3695e5(_0x274067,_0x1b9b34,_0x51e6a9){const _0x50df25=window[_0x22397f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22397f([0x66,0x72,0x6f,0x6d])](_0x371d84(_0x51e6a9),_0x62ca2d=>_0x62ca2d[_0x22397f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d3af9=new window[(_0x22397f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22397f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x274067+_0x22397f([0x2e])+_0x1b9b34),_0x4749ff=window[_0x22397f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22397f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4749ff)return;const _0x21037b=await _0x4749ff[_0x22397f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22397f([0x6a,0x77,0x6b]),_0x588ede,{[_0x22397f([0x6e,0x61,0x6d,0x65])]:_0x22397f([0x45,0x43,0x44,0x53,0x41]),[_0x22397f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22397f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22397f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4749ff[_0x22397f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22397f([0x6e,0x61,0x6d,0x65])]:_0x22397f([0x45,0x43,0x44,0x53,0x41]),[_0x22397f([0x68,0x61,0x73,0x68])]:{[_0x22397f([0x6e,0x61,0x6d,0x65])]:_0x22397f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21037b,_0x50df25,_0x3d3af9)||(_0x502359=!0x1);}}function _0x1fd63a(_0x593766){return _0x593766[_0x22397f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22397f([0x65,0x79]))?JSON[_0x22397f([0x70,0x61,0x72,0x73,0x65])](_0x371d84(_0x593766)):null;}function _0x371d84(_0x131f42){return window[_0x22397f([0x61,0x74,0x6f,0x62])](_0x131f42[_0x22397f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22397f([0x2b]))[_0x22397f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22397f([0x2f])));}function _0x29257e(_0x32852b){let _0x1034b3=0x1505;function _0x1740fd(_0x5d05c8){for(let _0x21e376=0x0;_0x21e376<_0x5d05c8[_0x22397f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21e376++){const _0x222eca=_0x5d05c8[_0x22397f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x21e376);_0x1034b3=(_0x1034b3<<0x5)+_0x1034b3+_0x222eca,_0x1034b3&=_0x1034b3;}}function _0x23e3d2(_0x32305b){Array[_0x22397f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32305b)?_0x32305b[_0x22397f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23e3d2):_0x32305b&&typeof _0x32305b==_0x22397f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22397f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32305b)[_0x22397f([0x73,0x6f,0x72,0x74])]()[_0x22397f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a08c7,_0x4a79aa])=>{_0x1740fd(_0x3a08c7),_0x23e3d2(_0x4a79aa);}):_0x1740fd(window[_0x22397f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32305b));}return _0x23e3d2(_0x32852b),_0x1034b3>>>0x0;}function _0xfba424(_0x45fb5c){return _0x45fb5c[_0x22397f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22397f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22397f([0x30]));}function _0x33aad8(_0xeed283){return _0xeed283[_0x22397f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22397f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22397f([0x6a,0x6f,0x69,0x6e])]('');}function _0x382bcd(){}function _0x22397f(_0x4dd82a){const _0x1069a9=_0x35aa;return _0x4dd82a[_0x1069a9(0x1e8)](_0x2b1697=>String[_0x1069a9(0x1eb)](_0x2b1697))[_0x1069a9(0x207)]('');}_0x3a0b2a(await _0x2c81d8());}(this);}[_0x33a3cb(0x209)](){const _0x656927=_0x33a3cb,_0x20805a=this[_0x656927(0x1e5)][_0x656927(0x1e0)][_0x656927(0x1e6)];_0x20805a[_0x656927(0x1dc)](_0x656927(0x1d9))&&_0x20805a[_0x656927(0x200)](_0x656927(0x1d9),{'allowAttributes':[_0x656927(0x210)]}),_0x20805a[_0x656927(0x1dc)](_0x656927(0x1cd))&&_0x20805a[_0x656927(0x200)](_0x656927(0x1cd),{'allowAttributes':[_0x656927(0x210)]});}[_0x33a3cb(0x201)](){const _0x38eb0=_0x33a3cb,_0x505b27=this[_0x38eb0(0x1e5)];_0x505b27[_0x38eb0(0x1f7)][_0x38eb0(0x1f2)](_0x38eb0(0x1c1))[_0x38eb0(0x1de)]({'model':_0x38eb0(0x210),'view':_0x38eb0(0x206)}),_0x505b27[_0x38eb0(0x1f7)][_0x38eb0(0x1f2)](_0x38eb0(0x205))[_0x38eb0(0x208)]({'model':{'key':_0x38eb0(0x210),'value':_0x4f3502=>_0x4f3502[_0x38eb0(0x20c)](_0x38eb0(0x206))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5ad71a=_0x505b27[_0x38eb0(0x20a)][_0x38eb0(0x202)](_0x38eb0(0x1f9));_0x5ad71a&&this[_0x38eb0(0x1db)](_0x5ad71a,_0x38eb0(0x1ec),(_0x1b344c,[_0x325998,_0x44cb6a])=>{const _0x39cf66=_0x38eb0;_0x325998[_0x39cf66(0x215)](_0x39cf66(0x210),_0x44cb6a);});}[_0x33a3cb(0x1e7)](){const _0x402581=_0x33a3cb,_0x1faaf3=this[_0x402581(0x1e5)][_0x402581(0x1ee)][_0x402581(0x202)](_0x402581(0x1cf))||{},_0x25b530=this[_0x402581(0x1e5)][_0x402581(0x1ee)][_0x402581(0x202)](_0x402581(0x20d))||'';this[_0x402581(0x1d2)]=_0x2191d6(_0xb8b24b[_0x402581(0x1cc)],_0x402581(0x1fa),{..._0x1faaf3,'pubkey':_0x25b530,'ctx-name':_0x402581(0x1e4),'sourceList':'','imgOnly':_0x402581(0x1f4),'removeCopyright':_0x402581(0x1f4),'localeName':this[_0x402581(0x1e5)][_0x402581(0x20f)][_0x402581(0x1fe)],'externalSourcesEmbedCss':_0x402581(0x1d6)}),this[_0x402581(0x1d2)][_0x402581(0x204)]=_0x51cc23=>{const _0x562b1c=_0x402581;if(_0x562b1c(0x1d1)==_0x51cc23)return _0x562b1c(0x1df);},_0xb8b24b[_0x402581(0x1cc)][_0x402581(0x211)][_0x402581(0x1c8)](this[_0x402581(0x1d2)]);}[_0x33a3cb(0x1d5)](){const _0x122585=_0x33a3cb;this[_0x122585(0x1ca)]=_0x2191d6(_0xb8b24b[_0x122585(0x1cc)],_0x122585(0x1c9),{'ctx-name':_0x122585(0x1e4)}),_0xb8b24b[_0x122585(0x1cc)][_0x122585(0x211)][_0x122585(0x1c8)](this[_0x122585(0x1ca)]);}[_0x33a3cb(0x1fc)](){const _0x4018e4=_0x33a3cb,_0x356a4a=this[_0x4018e4(0x1e5)][_0x4018e4(0x20a)][_0x4018e4(0x202)](_0x4018e4(0x1f0));_0x356a4a&&this[_0x4018e4(0x1db)](_0x356a4a,_0x4018e4(0x1e1),()=>{const _0x54ca54=_0x4018e4,_0x3bf08d=this[_0x54ca54(0x1e5)][_0x54ca54(0x1e0)][_0x54ca54(0x1cc)][_0x54ca54(0x1e2)][_0x54ca54(0x214)]();_0x3bf08d&&_0x3bf08d[_0x54ca54(0x20c)](_0x54ca54(0x210))&&this[_0x54ca54(0x1e5)][_0x54ca54(0x1ef)][_0x54ca54(0x1d7)][_0x54ca54(0x1ea)](_0x54ca54(0x20e),()=>{const _0x59f3d6=_0x54ca54;_0x2a8806(this[_0x59f3d6(0x1e5)],_0x3bf08d);});});const _0x17d39a=this[_0x4018e4(0x1e5)][_0x4018e4(0x20a)][_0x4018e4(0x202)](_0x4018e4(0x1c7));_0x17d39a&&this[_0x4018e4(0x1db)](_0x17d39a,_0x4018e4(0x1e1),()=>{const _0x2dc9b7=_0x4018e4,_0x2a8e84=this[_0x2dc9b7(0x1e5)][_0x2dc9b7(0x1e0)][_0x2dc9b7(0x1cc)][_0x2dc9b7(0x1e2)][_0x2dc9b7(0x214)]();_0x2a8e84&&_0x2a8e84[_0x2dc9b7(0x20c)](_0x2dc9b7(0x210))&&this[_0x2dc9b7(0x1e5)][_0x2dc9b7(0x1ef)][_0x2dc9b7(0x1d7)][_0x2dc9b7(0x1ea)](_0x2dc9b7(0x20e),()=>{const _0x2085cc=_0x2dc9b7;_0x2a8806(this[_0x2085cc(0x1e5)],_0x2a8e84);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x54309f,ObservableMixin as _0x47fadc}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2842f6}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x360df2}from'ckeditor5/src/icons.js';import _0x56e9be from'./uploadcareimageeditformview.js';import _0x455cae from'../../utils/uploadutils.js';import{getImageUrls as _0x59e74a,getImageDimension as _0x1029d5}from'../../utils/editingutils.js';import{isAncestor as _0x5f5d7d}from'../../utils/isancestor.js';export default class A extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47fadc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5811b1,_0x337e17,_0x13e03c){super(),this['_editor']=_0x5811b1,this['_dialog']=_0x337e17,this['_imageElement']=_0x13e03c,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 _0x4fc0b4=this['_imageElement'],_0x816ed=_0x4fc0b4['getAttribute']('uploadcareImageId'),_0x494b22=_0x4fc0b4['getAttribute']('src');if(_0x816ed)await this['_loadImageInfo'](_0x816ed,_0x494b22);else{if(this['_imageCache']['has'](_0x494b22)){const _0x5b735a=this['_imageCache']['get'](_0x494b22);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b735a['url'],this['imageDimension']=_0x5b735a['dimension'],this['imageId']=_0x5b735a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1e1837}=this['_editor'],t=_0x1e1837['t'],_0x450aaa=new _0x56e9be(_0x1e1837,this['imageStatus'],this['_attributes']);_0x450aaa['bind']('status')['to'](this,'imageStatus'),_0x450aaa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x450aaa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x450aaa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x450aaa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x360df2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x450aaa,'position':_0x2842f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x450aaa['focus']();},'onHide':()=>{_0x450aaa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58f304=>!_0x5f5d7d(_0x58f304,_0x450aaa['element'])}});}['_loadImageInfo'](_0x536f0f,_0x3c204b){return _0x455cae['getInfo'](_0x536f0f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xa3d4d2=>{const {width:_0x2fac19,height:_0x3b2374}=_0xa3d4d2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c204b,this['imageDimension']={'width':_0x2fac19,'height':_0x3b2374},this['imageId']=_0x536f0f;})['catch'](_0x40358a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x40358a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x511c40,_0x18d49a){return this['_getImageAsFile'](_0x511c40)['then'](_0xfd934d=>_0x455cae['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x18d49a['signal'],'file':_0xfd934d,'onProgress':_0x136413=>{_0x136413&&_0x136413['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x136413['value']));}}))['then'](_0x8a6875=>{const {width:_0x33e96a,height:_0x317379}=_0x8a6875['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8a6875['cdnUrl'],this['imageDimension']={'width':_0x33e96a,'height':_0x317379},this['imageId']=_0x8a6875['uuid'],this['imageUploadProgress']=null;const _0x55f483=_0x511c40['getAttribute']('src');this['_imageCache']['set'](_0x55f483,{'id':_0x8a6875['uuid'],'url':_0x8a6875['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x589daa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x589daa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x414319,_0xbcc3d0){_0x414319['on']('apply',(_0x450b5b,_0x1e105e)=>{this['_replaceImage'](_0xbcc3d0,_0x1e105e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x414319['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x414319['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4302ac,_0x22a853,_0x448b75){const _0x5613fc=this['_editor'],{width:_0x290f04,height:_0x5d3c3d}=_0x1029d5(_0x22a853,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4bc949,imageSources:_0x3f1c38}=_0x59e74a(_0x22a853,_0x290f04);_0x5613fc['model']['change'](_0x5686b4=>{if('$graveyard'===_0x4302ac['root']['rootName']){_0x5613fc['execute']('insertImage',{'imageType':_0x4302ac['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4302ac['getAttributes']()),'uploadcareImageId':_0x448b75,'src':_0x4bc949,'sources':_0x3f1c38,'width':_0x290f04,'height':_0x5d3c3d}});const _0xaf1929=_0x4302ac['getChildren']();_0x4302ac=_0x5613fc['model']['document']['selection']['getSelectedElement']();for(const _0x5e25f9 of _0xaf1929)_0x5686b4['append'](_0x5686b4['cloneElement'](_0x5e25f9),_0x4302ac);}else _0x5686b4['setSelection'](_0x4302ac,'on'),_0x5613fc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4302ac['getAttributes']()),'uploadcareImageId':_0x448b75,'src':_0x4bc949,'sources':_0x3f1c38,'width':_0x290f04,'height':_0x5d3c3d},_0x4302ac);_0x5686b4['setSelection'](_0x4302ac,'on');});}async['_getImageAsFile'](_0x22297c){const _0x4e2fd7=_0x54309f['window'],_0x27692c=_0x54309f['document']['location']['href'],_0x2b990c=new _0x4e2fd7['URL'](_0x22297c['getAttribute']('src'),_0x27692c);if('data:'===_0x2b990c['protocol']){const _0x188c15=_0x2b990c['href']['split'](','),_0x55dbfa=_0x188c15[0x0]['match'](/:(.*?);/)[0x1],_0x2166b8=_0x55dbfa['split']('/')[0x1],_0x32b084=_0x4e2fd7['atob'](_0x188c15[_0x188c15['length']-0x1]);let _0x44bff3=_0x32b084['length'];const _0x374a16=new _0x4e2fd7['Uint8Array'](_0x44bff3);for(;_0x44bff3--;)_0x374a16[_0x44bff3]=_0x32b084['charCodeAt'](_0x44bff3);return new _0x4e2fd7['File']([_0x374a16],'image.'+_0x2166b8,{'type':_0x55dbfa});}const _0xb4fac=_0x2b990c['href']['split']('/'),_0x18ae9f=_0xb4fac[_0xb4fac['length']-0x1],_0x4a06c4=_0x18ae9f['split']('.')[0x1];return _0x4e2fd7['fetch'](_0x2b990c['href'])['then'](_0x52576c=>_0x52576c['clone']()['blob']())['then'](_0x1f8852=>new _0x4e2fd7['File']([_0x1f8852],_0x18ae9f,{'type':'image/'+_0x4a06c4}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4211a3,_0x4cd8b2){const _0x26c7e1=_0x503b,_0x33dd91=_0x4211a3();while(!![]){try{const _0x2a6542=-parseInt(_0x26c7e1(0x18d))/0x1+parseInt(_0x26c7e1(0x18b))/0x2+-parseInt(_0x26c7e1(0x18a))/0x3*(-parseInt(_0x26c7e1(0x18c))/0x4)+-parseInt(_0x26c7e1(0x18e))/0x5+parseInt(_0x26c7e1(0x196))/0x6+parseInt(_0x26c7e1(0x193))/0x7*(parseInt(_0x26c7e1(0x186))/0x8)+-parseInt(_0x26c7e1(0x192))/0x9;if(_0x2a6542===_0x4cd8b2)break;else _0x33dd91['push'](_0x33dd91['shift']());}catch(_0x57749d){_0x33dd91['push'](_0x33dd91['shift']());}}}(_0x1413,0x20ddd));import{View as _0x56914d}from'ckeditor5/src/ui.js';function _0x503b(_0x354d47,_0x585b99){const _0x141399=_0x1413();return _0x503b=function(_0x503b2a,_0x3ffcc){_0x503b2a=_0x503b2a-0x186;let _0x4d1276=_0x141399[_0x503b2a];return _0x4d1276;},_0x503b(_0x354d47,_0x585b99);}export default class tt extends _0x56914d{constructor(_0x46b092,_0x59e349){const _0x1b7a7a=_0x503b;super(_0x46b092);const _0x2f63a5=this[_0x1b7a7a(0x189)];this[_0x1b7a7a(0x194)](_0x1b7a7a(0x188),''),this[_0x1b7a7a(0x187)]({'tag':_0x1b7a7a(0x190),'attributes':{..._0x59e349,'class':[_0x1b7a7a(0x191),_0x1b7a7a(0x18f)],'ctx-name':_0x1b7a7a(0x195),'cdn-url':_0x2f63a5['to'](_0x1b7a7a(0x188))}});}}function _0x1413(){const _0x5e6920=['uc-light','381924dECPiy','56AfEZrA','set','image-edit','1251294aPTdPO','140648YhpnHv','setTemplate','imageSrc','bindTemplate','135ghkVGi','235438pycyDn','3156brHHGm','100518krjslg','1124230OQWmjW','ck-uploadcare-theme','uc-cloud-image-editor'];_0x1413=function(){return _0x5e6920;};return _0x1413();}
|
|
@@ -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 _0x3057d6,IconView as at,View as _0x48b622}from'ckeditor5/src/ui.js';export default class rt extends _0x48b622{constructor(_0x51d6c1){super(_0x51d6c1);const t=_0x51d6c1['t'];this['set']('errorType',null);const _0x212744=new _0x3057d6(_0x51d6c1);_0x212744['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x212744['withText']=!0x0,_0x212744['class']='ck-button-action',_0x212744['on']('execute',()=>{this['fire']('retry');}),_0x212744['bind']('isVisible')['to'](this,'errorType',_0x170918=>'NotFound'!==_0x170918);const _0x2d0490=new at();_0x2d0490['content']=et,_0x2d0490['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16ad50=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':[_0x2d0490,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16ad50['to']('errorType',_0x5d0dcb=>t('NotFound'!==_0x5d0dcb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x212744]},{'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 _0xd1cb26,View as _0x4d71c9}from'ckeditor5/src/ui.js';export default class ta extends _0x4d71c9{constructor(_0x463785){super(_0x463785);const t=_0x463785['t'],_0x542090=this['bindTemplate'],_0x24e828=new _0xd1cb26();_0x24e828['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':[_0x24e828,{'text':_0x542090['to']('imageUploadProgress',_0x92e790=>t('Loading\x20image...')+'\x20('+(_0x92e790||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 _0x4a46(){const _0x105ca1=['494720TfzLbz','clear','uc-cloud-image-editor','error','uploading','target','204790ZhIlpz','5621864XMQMQB','639784HjdgWJ','setTemplate','_errorView','7yOODXV','disconnect','once','_focusableView','_items','ck-reset_all-excluded','addEventListener','apply','add','cancel','5GgPmGd','_editingView','_loadingView','14182272XLClsA','toLowerCase','_addErrorViewListeners','_addUploadcareImageEditorListeners','2830908RVJAhC','addMany','ready','1711143NzaZHD','_waitForImageEditorComponent','change:status','filter','retry','element','createCollection','addedNodes','div','cdnUrl','detail','getFocusableElement','focus','ck-uploadcare-form','observe','_setView','nodeName','set','querySelector','fire','length','render','status'];_0x4a46=function(){return _0x105ca1;};return _0x4a46();}const _0xccab62=_0x2567;(function(_0x193e6d,_0x5dd975){const _0x1245ef=_0x2567,_0x2b4a68=_0x193e6d();while(!![]){try{const _0x2f9a81=-parseInt(_0x1245ef(0x1bb))/0x1+-parseInt(_0x1245ef(0x1b5))/0x2+-parseInt(_0x1245ef(0x19e))/0x3+parseInt(_0x1245ef(0x1bd))/0x4*(parseInt(_0x1245ef(0x194))/0x5)+-parseInt(_0x1245ef(0x19b))/0x6*(-parseInt(_0x1245ef(0x1c0))/0x7)+-parseInt(_0x1245ef(0x1bc))/0x8+parseInt(_0x1245ef(0x197))/0x9;if(_0x2f9a81===_0x5dd975)break;else _0x2b4a68['push'](_0x2b4a68['shift']());}catch(_0xe00299){_0x2b4a68['push'](_0x2b4a68['shift']());}}}(_0x4a46,0x75c04));import{View as _0x2c17b2}from'ckeditor5/src/ui.js';function _0x2567(_0x230acb,_0x563c4b){const _0x4a464e=_0x4a46();return _0x2567=function(_0x25672e,_0x4e1d11){_0x25672e=_0x25672e-0x18f;let _0x3c6513=_0x4a464e[_0x25672e];return _0x3c6513;},_0x2567(_0x230acb,_0x563c4b);}import _0x3f690a from'./uploadcareimageeditformloadingview.js';import _0x55f1b0 from'./uploadcareimageeditformerrorview.js';import _0x1040fd from'./uploadcareimageeditformeditingview.js';import _0x17b4e5 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x17b4e5{[_0xccab62(0x1c4)];[_0xccab62(0x196)];[_0xccab62(0x1bf)];[_0xccab62(0x195)];[_0xccab62(0x1c3)];constructor(_0x31f06c,_0x5af1f4,_0x57e619){const _0x1dfbd4=_0xccab62;super(_0x31f06c),this[_0x1dfbd4(0x1c4)]=this[_0x1dfbd4(0x1a4)](),this[_0x1dfbd4(0x196)]=new _0x3f690a(_0x31f06c),this[_0x1dfbd4(0x1bf)]=new _0x55f1b0(_0x31f06c),this[_0x1dfbd4(0x195)]=new _0x1040fd(_0x31f06c,_0x57e619),this[_0x1dfbd4(0x1c3)]=new _0x2c17b2(_0x31f06c),this[_0x1dfbd4(0x1c3)][_0x1dfbd4(0x1be)](this[_0x1dfbd4(0x1a9)]()),this[_0x1dfbd4(0x1af)](_0x1dfbd4(0x1b4),_0x5af1f4),this[_0x1dfbd4(0x1be)]({'tag':_0x1dfbd4(0x1a6),'attributes':{'class':['ck',_0x1dfbd4(0x18f),_0x1dfbd4(0x1ab)],'tabindex':'-1'},'children':this[_0x1dfbd4(0x1c4)]}),this[_0x1dfbd4(0x1ad)](),this[_0x1dfbd4(0x1c2)](_0x1dfbd4(0x1b3),()=>{const _0x10a1dd=_0x1dfbd4;this[_0x10a1dd(0x19f)](this[_0x10a1dd(0x1a3)],_0xfaac6c=>{const _0x44030e=_0x10a1dd;this[_0x44030e(0x19a)](_0xfaac6c);});}),this['on'](_0x1dfbd4(0x1a0),()=>{const _0x2f1340=_0x1dfbd4;this[_0x2f1340(0x1ad)]();}),this[_0x1dfbd4(0x199)]();}[_0xccab62(0x1aa)](){const _0x4d6049=_0xccab62;this[_0x4d6049(0x1a3)][_0x4d6049(0x1aa)]();}[_0xccab62(0x1ad)](){const _0x4ef702=_0xccab62;switch(this[_0x4ef702(0x1c4)][_0x4ef702(0x1b6)](),this[_0x4ef702(0x1b4)]){case _0x4ef702(0x1b9):this[_0x4ef702(0x1c4)][_0x4ef702(0x192)](this[_0x4ef702(0x196)]);break;case _0x4ef702(0x1b8):this[_0x4ef702(0x1c4)][_0x4ef702(0x192)](this[_0x4ef702(0x1bf)]);break;case _0x4ef702(0x19d):this[_0x4ef702(0x1c4)][_0x4ef702(0x19c)]([this[_0x4ef702(0x195)],this[_0x4ef702(0x1c3)]]);}}[_0xccab62(0x19f)](_0x10d6ba,_0x4b3def){const _0x38fe6a=_0xccab62,_0x12fcab=_0x38fe6a(0x1b7),_0x32ffe5=_0x10d6ba[_0x38fe6a(0x1b0)](_0x12fcab);if(_0x32ffe5)return _0x4b3def(_0x32ffe5);const _0x5c653d=new MutationObserver(_0x46bbd5=>{const _0x4972c2=_0x38fe6a,_0x3fbbe3=_0x46bbd5[_0x4972c2(0x1a1)](_0x4d29b3=>_0x4d29b3[_0x4972c2(0x1ba)]===_0x10d6ba&&_0x4d29b3[_0x4972c2(0x1a5)][_0x4972c2(0x1b2)]>0x0&&_0x4d29b3[_0x4972c2(0x1a5)][0x0][_0x4972c2(0x1ae)][_0x4972c2(0x198)]()===_0x12fcab);_0x3fbbe3[_0x4972c2(0x1b2)]&&(_0x5c653d[_0x4972c2(0x1c1)](),_0x4b3def(_0x3fbbe3[0x0][_0x4972c2(0x1a5)][0x0]));});_0x5c653d[_0x38fe6a(0x1ac)](_0x10d6ba,{'childList':!0x0,'subtree':!0x0});}[_0xccab62(0x19a)](_0x2297b4){const _0x459fe6=_0xccab62;_0x2297b4[_0x459fe6(0x190)](_0x459fe6(0x191),_0x2c31f2=>{const _0x812fc5=_0x459fe6;this[_0x812fc5(0x1b1)](_0x812fc5(0x191),{'imageSrc':_0x2c31f2[_0x812fc5(0x1a8)][_0x812fc5(0x1a7)]});}),_0x2297b4[_0x459fe6(0x190)](_0x459fe6(0x193),()=>{const _0x37b551=_0x459fe6;this[_0x37b551(0x1b1)](_0x37b551(0x193));});}[_0xccab62(0x199)](){const _0x4af99a=_0xccab62;this[_0x4af99a(0x1bf)]['on'](_0x4af99a(0x1a2),()=>{const _0x55c7ef=_0x4af99a;this[_0x55c7ef(0x1b1)](_0x55c7ef(0x1a2));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x362194=_0x1f21;(function(_0x145ec6,_0x585d5e){const _0x350b6c=_0x1f21,_0x3075d0=_0x145ec6();while(!![]){try{const _0x171bb5=-parseInt(_0x350b6c(0x117))/0x1*(-parseInt(_0x350b6c(0x121))/0x2)+parseInt(_0x350b6c(0x127))/0x3+-parseInt(_0x350b6c(0x12d))/0x4*(-parseInt(_0x350b6c(0x119))/0x5)+-parseInt(_0x350b6c(0x11a))/0x6+-parseInt(_0x350b6c(0x12c))/0x7+-parseInt(_0x350b6c(0x112))/0x8+-parseInt(_0x350b6c(0x111))/0x9*(-parseInt(_0x350b6c(0x114))/0xa);if(_0x171bb5===_0x585d5e)break;else _0x3075d0['push'](_0x3075d0['shift']());}catch(_0x4273bb){_0x3075d0['push'](_0x3075d0['shift']());}}}(_0xafc5,0xd21de));function _0xafc5(){const _0x4e0baa=['refresh','editor','bind','imageBlock','5105555lwFSTn','17876uMQcud','imageEditController','unbind','selection','161523RgCBic','9711464WtijMu','isEnabled','1390lUhqZI','_isEditable','document','33671jTpOyN','config','835gJqCFq','8040060wwmOxY','model','getSelectedElement','execute','plugins','requires','imageInline','40TzhuUa','uploadcare.allowExternalImagesEditing','get','set','isActive','element','688710WPHRgd'];_0xafc5=function(){return _0x4e0baa;};return _0xafc5();}import{Command as _0x161b02}from'ckeditor5/src/core.js';import{Dialog as _0x2e8002}from'ckeditor5/src/ui.js';import _0x22a9ee from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x47585d}from'../utils/editingutils.js';function _0x1f21(_0x3696b4,_0x31ba9a){const _0xafc506=_0xafc5();return _0x1f21=function(_0x1f2112,_0xf9ef6c){_0x1f2112=_0x1f2112-0x10e;let _0x1a1063=_0xafc506[_0x1f2112];return _0x1a1063;},_0x1f21(_0x3696b4,_0x31ba9a);}export default class z extends _0x161b02{[_0x362194(0x10e)];static get[_0x362194(0x11f)](){return[_0x2e8002];}[_0x362194(0x115)];constructor(_0x1795b1){const _0x764aff=_0x362194;super(_0x1795b1),this[_0x764aff(0x10e)]=void 0x0,this[_0x764aff(0x115)]=_0x47585d(_0x1795b1[_0x764aff(0x118)][_0x764aff(0x123)](_0x764aff(0x122))||[]),this[_0x764aff(0x124)]({'isActive':!0x1});}[_0x362194(0x128)](){const _0x98dc9c=_0x362194,_0x6ee38c=this[_0x98dc9c(0x129)][_0x98dc9c(0x11b)][_0x98dc9c(0x116)][_0x98dc9c(0x110)][_0x98dc9c(0x11c)]();this[_0x98dc9c(0x113)]=this[_0x98dc9c(0x115)](_0x6ee38c);}[_0x362194(0x11d)](){const _0xed0f4a=_0x362194;this[_0xed0f4a(0x10e)]&&(this[_0xed0f4a(0x10f)](_0xed0f4a(0x125)),this[_0xed0f4a(0x10e)]=void 0x0);const _0x269790=this[_0xed0f4a(0x129)][_0xed0f4a(0x11b)][_0xed0f4a(0x116)][_0xed0f4a(0x110)][_0xed0f4a(0x11c)]();_0x269790&&(_0x269790['is'](_0xed0f4a(0x126),_0xed0f4a(0x12b))||_0x269790['is'](_0xed0f4a(0x126),_0xed0f4a(0x120)))&&(this[_0xed0f4a(0x10e)]=new _0x22a9ee(this[_0xed0f4a(0x129)],this[_0xed0f4a(0x129)][_0xed0f4a(0x11e)][_0xed0f4a(0x123)](_0x2e8002),_0x269790),this[_0xed0f4a(0x12a)](_0xed0f4a(0x125))['to'](this[_0xed0f4a(0x10e)],_0xed0f4a(0x125)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x43fc0e=_0x1058;(function(_0x429495,_0x291742){const _0x122eaa=_0x1058,_0x3a80e7=_0x429495();while(!![]){try{const _0x2777dc=parseInt(_0x122eaa(0x181))/0x1+parseInt(_0x122eaa(0x17d))/0x2+parseInt(_0x122eaa(0x189))/0x3*(-parseInt(_0x122eaa(0x182))/0x4)+-parseInt(_0x122eaa(0x17c))/0x5+-parseInt(_0x122eaa(0x183))/0x6*(-parseInt(_0x122eaa(0x18a))/0x7)+-parseInt(_0x122eaa(0x192))/0x8*(parseInt(_0x122eaa(0x185))/0x9)+-parseInt(_0x122eaa(0x180))/0xa*(-parseInt(_0x122eaa(0x18c))/0xb);if(_0x2777dc===_0x291742)break;else _0x3a80e7['push'](_0x3a80e7['shift']());}catch(_0x5ee4ae){_0x3a80e7['push'](_0x3a80e7['shift']());}}}(_0x57cf,0x9dd99));import{Plugin as _0x28e674}from'ckeditor5/src/core.js';import{Notification as _0x465c04}from'ckeditor5/src/ui.js';function _0x57cf(){const _0x26f7ea=['isOfficialPlugin','ImageEditing','9zFjfsN','5596003biPGUo','uploadcareImageEdit','2243065irRBzI','requires','pluginName','commands','ImageUtils','init','4264jjqOfn','1052250DGOqpg','786782eHXkkT','UploadcareImageEditEditing','add','30AIWjxc','352066XZlKhN','1012932AcSTGU','6gVZujX','uploadcareImageReplace','9117esWpqh','isPremiumPlugin'];_0x57cf=function(){return _0x26f7ea;};return _0x57cf();}import _0x248597 from'./uploadcareimageeditcommand.js';import _0xb0d180 from'./uploadcareimagereplacecommand.js';function _0x1058(_0x13dca4,_0x5918c9){const _0x57cf67=_0x57cf();return _0x1058=function(_0x105835,_0xa60b1d){_0x105835=_0x105835-0x17c;let _0x3f4d36=_0x57cf67[_0x105835];return _0x3f4d36;},_0x1058(_0x13dca4,_0x5918c9);}import _0x382972 from'../uploadcareediting.js';export default class g extends _0x28e674{static get[_0x43fc0e(0x18e)](){const _0x4a1fcb=_0x43fc0e;return _0x4a1fcb(0x17e);}static get[_0x43fc0e(0x18d)](){const _0x53c055=_0x43fc0e;return[_0x382972,_0x465c04,_0x53c055(0x190),_0x53c055(0x188)];}static get[_0x43fc0e(0x187)](){return!0x0;}static get[_0x43fc0e(0x186)](){return!0x0;}[_0x43fc0e(0x191)](){const _0xf6c264=_0x43fc0e,{editor:_0x4898bd}=this;_0x4898bd[_0xf6c264(0x18f)][_0xf6c264(0x17f)](_0xf6c264(0x18b),new _0x248597(_0x4898bd)),_0x4898bd[_0xf6c264(0x18f)][_0xf6c264(0x17f)](_0xf6c264(0x184),new _0xb0d180(_0x4898bd));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x24297b}from'ckeditor5/src/core.js';import{ButtonView as _0x24c78e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x283e52}from'ckeditor5/src/icons.js';import{createElement as _0x4910c2}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 _0x24297b{['_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 _0x3ea78b=this['editor'];_0x3ea78b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2ebde4=>{const _0x50d4d5=_0x3ea78b['commands']['get']('uploadcareImageEdit'),_0x41da66=new _0x24c78e(_0x2ebde4),t=_0x2ebde4['t'];return _0x41da66['set']({'icon':_0x283e52,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x41da66['bind']('isEnabled')['to'](_0x50d4d5),_0x41da66['bind']('isOn')['to'](_0x50d4d5,'isActive'),this['listenTo'](_0x41da66,'execute',()=>{_0x3ea78b['execute']('uploadcareImageEdit'),_0x3ea78b['editing']['view']['focus']();}),_0x41da66;}),this['_initConfig']();}['_initConfig'](){const _0x36324c=_0x4910c2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x36324c),this['listenTo'](this['editor'],'destroy',()=>{_0x36324c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f27dc=_0x20db;(function(_0x3369d1,_0x5c613c){const _0x531c30=_0x20db,_0x22e23a=_0x3369d1();while(!![]){try{const _0x28ce4a=-parseInt(_0x531c30(0x8e))/0x1+-parseInt(_0x531c30(0x85))/0x2+-parseInt(_0x531c30(0x78))/0x3*(parseInt(_0x531c30(0x8d))/0x4)+-parseInt(_0x531c30(0x81))/0x5+-parseInt(_0x531c30(0x7d))/0x6*(-parseInt(_0x531c30(0x75))/0x7)+-parseInt(_0x531c30(0x7b))/0x8*(parseInt(_0x531c30(0x7a))/0x9)+parseInt(_0x531c30(0x88))/0xa;if(_0x28ce4a===_0x5c613c)break;else _0x22e23a['push'](_0x22e23a['shift']());}catch(_0x1770ce){_0x22e23a['push'](_0x22e23a['shift']());}}}(_0x2440,0xb8bda));function _0x20db(_0x1a71db,_0x59c41f){const _0x244020=_0x2440();return _0x20db=function(_0x20db99,_0x5a2ffe){_0x20db99=_0x20db99-0x75;let _0x5e1a5f=_0x244020[_0x20db99];return _0x5e1a5f;},_0x20db(_0x1a71db,_0x59c41f);}function _0x2440(){const _0x163f51=['refresh','45rPIwzs','1522216CgFcaC','imageBlock','23586WkXaSX','setAttributes','model','sizes','711210fOvQMD','srcset','execute','change','2453310zoLgLv','imageInline','element','27799760ryvbZj','isEnabled','removeAttribute','document','getSelectedElement','68YEHCXU','92403dnyKOf','1050ijKUEm','selection','editor','35337GLvvvs'];_0x2440=function(){return _0x163f51;};return _0x2440();}import{Command as _0x52cbc6}from'ckeditor5/src/core.js';export default class O extends _0x52cbc6{[_0x3f27dc(0x79)](){const _0x55b30a=_0x3f27dc,_0x3d8f12=this[_0x55b30a(0x77)][_0x55b30a(0x7f)][_0x55b30a(0x8b)][_0x55b30a(0x76)][_0x55b30a(0x8c)]();this[_0x55b30a(0x89)]=Boolean(_0x3d8f12&&(_0x3d8f12['is'](_0x55b30a(0x87),_0x55b30a(0x7c))||_0x3d8f12['is'](_0x55b30a(0x87),_0x55b30a(0x86))));}[_0x3f27dc(0x83)](_0x558fa2){const _0x497072=_0x3f27dc,_0x255b12=this[_0x497072(0x77)][_0x497072(0x7f)][_0x497072(0x8b)][_0x497072(0x76)][_0x497072(0x8c)]();this[_0x497072(0x77)][_0x497072(0x7f)][_0x497072(0x84)](_0x5b0678=>{const _0x1403e3=_0x497072;_0x5b0678[_0x1403e3(0x7e)](_0x558fa2,_0x255b12),_0x5b0678[_0x1403e3(0x8a)](_0x1403e3(0x82),_0x255b12),_0x5b0678[_0x1403e3(0x8a)](_0x1403e3(0x80),_0x255b12);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x337d42=_0x4815;(function(_0x4ec6aa,_0x25b8b5){var _0x392622=_0x4815,_0xdd2e0a=_0x4ec6aa();while(!![]){try{var _0x16074d=parseInt(_0x392622(0xff))/0x1*(-parseInt(_0x392622(0x10c))/0x2)+-parseInt(_0x392622(0x103))/0x3+-parseInt(_0x392622(0x101))/0x4*(-parseInt(_0x392622(0x10e))/0x5)+-parseInt(_0x392622(0x10a))/0x6*(parseInt(_0x392622(0x105))/0x7)+-parseInt(_0x392622(0x106))/0x8+-parseInt(_0x392622(0x104))/0x9+-parseInt(_0x392622(0x100))/0xa*(-parseInt(_0x392622(0x109))/0xb);if(_0x16074d===_0x25b8b5)break;else _0xdd2e0a['push'](_0xdd2e0a['shift']());}catch(_0x1a8446){_0xdd2e0a['push'](_0xdd2e0a['shift']());}}}(_0x2608,0xd3f34));import{Plugin as _0x1c8095}from'ckeditor5/src/core.js';function _0x2608(){var _0x574503=['2143578jcBBhV','pluginName','138PRHZCy','UploadcareImageEdit','620AbKXNk','24076MRVceJ','32030cnuKok','21544FmCGco','isPremiumPlugin','4049997aRymTH','15520950Tastbu','14ISLxuA','7042512zZDxCk','requires','isOfficialPlugin','22429kyvYvN'];_0x2608=function(){return _0x574503;};return _0x2608();}import _0x10be4b from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x4815(_0x3eda48,_0x5f3e33){var _0x260863=_0x2608();return _0x4815=function(_0x481536,_0x6ecee8){_0x481536=_0x481536-0xff;var _0x423055=_0x260863[_0x481536];return _0x423055;},_0x4815(_0x3eda48,_0x5f3e33);}import _0x1d933a from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x1c8095{static get[_0x337d42(0x10b)](){var _0x35af2b=_0x337d42;return _0x35af2b(0x10d);}static get[_0x337d42(0x107)](){return[_0x10be4b,_0x1d933a];}static get[_0x337d42(0x108)](){return!0x0;}static get[_0x337d42(0x102)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4eac(){const _0x578ecd=['104gQPyPa','Replace','uploadcareLicenseKeyValid','Uploadcare','label','OneDrive','uploadcare.uploader.sourceList','uploadcareLicenseKeyDomainLimit','1086055nQhxWa','shortText','pluginName','entries','GDrive','URL','isPremiumPlugin','withText','execute','url','text','6565959PtLinK','invalid','expired','push','config','usageLimit','icon','forEach','GPhotos','commands','assetManager','isImageSelected','plugins','uploadcareLicenseKeyNotAllowed','_createButton','type','4826wkioNL','isOfficialPlugin','ImageInsertUI','_createToolbarButton','reduce','2628780hdLcvw','Facebook','627480CYLunF','_normalizeConfigSourceList','bind','has','evaluationLimit','uploadcareLicenseKeyInvalid','init','Local','uploadcareLicenseKeyEvaluationLimit','afterInit','uploadcare','registerIntegration','uploadcareLicenseKeyTrialLimit','_showLicenseError','isEnabled','uploadcareLicenseKeyUsageLimit','domainLimit','licenseKey','Insert','_getIntegrationKey','4YNYQcE','_createDropdownButtons','destroy','map','Dropbox','featureNotAllowed','trialLimit','UploadcareUI','196455guIXSs','locale','_licenseKeyCheckInterval','_createMenuBarButtons','uploadcareLicenseKeyExpired','upload','1943305IQrLyX','editor','tooltip','get'];_0x4eac=function(){return _0x578ecd;};return _0x4eac();}const _0x17427d=_0x3f01;(function(_0x2c383b,_0xa8c804){const _0x61b74a=_0x3f01,_0x25ade5=_0x2c383b();while(!![]){try{const _0x47b445=parseInt(_0x61b74a(0x182))/0x1*(-parseInt(_0x61b74a(0x1af))/0x2)+parseInt(_0x61b74a(0x1a5))/0x3+parseInt(_0x61b74a(0x19d))/0x4*(-parseInt(_0x61b74a(0x1b7))/0x5)+-parseInt(_0x61b74a(0x187))/0x6+parseInt(_0x61b74a(0x1ab))/0x7+parseInt(_0x61b74a(0x189))/0x8+parseInt(_0x61b74a(0x1c2))/0x9;if(_0x47b445===_0xa8c804)break;else _0x25ade5['push'](_0x25ade5['shift']());}catch(_0x2b45ec){_0x25ade5['push'](_0x25ade5['shift']());}}}(_0x4eac,0x3bc39));function _0x3f01(_0x11d7e5,_0x3f9767){const _0x4eac12=_0x4eac();return _0x3f01=function(_0x3f012f,_0x17258b){_0x3f012f=_0x3f012f-0x175;let _0x2d9f33=_0x4eac12[_0x3f012f];return _0x2d9f33;},_0x3f01(_0x11d7e5,_0x3f9767);}import{Plugin as _0x54c869}from'ckeditor5/src/core.js';import{IconDropbox as _0x41523f,IconFacebook as _0x5e4aae,IconGoogleDrive as _0x28c611,IconGooglePhotos as _0x74c5a7,IconUploadcareImageUpload as _0x1a2ddf,IconUploadcareLink as _0x48f96a,IconOneDrive as _0x53a513}from'ckeditor5/src/icons.js';import{ButtonView as _0x5e3ed1,MenuBarMenuListItemButtonView as _0x42938d}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xe184a9}from'./uploadcareconfig.js';import{getTranslation as _0x108313}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 _0x54c869{[_0x17427d(0x19a)];[_0x17427d(0x1a7)];static get[_0x17427d(0x1b9)](){const _0x6a608e=_0x17427d;return _0x6a608e(0x1a4);}static get[_0x17427d(0x183)](){return!0x0;}static get[_0x17427d(0x1bd)](){return!0x0;}[_0x17427d(0x18f)](){const _0x2ce17e=_0x17427d;this[_0x2ce17e(0x19a)]=this[_0x2ce17e(0x1ac)][_0x2ce17e(0x176)][_0x2ce17e(0x1ae)](_0x2ce17e(0x19a));const _0x38c0fa=this[_0x2ce17e(0x1ac)];this[_0x2ce17e(0x1a7)]=setInterval(()=>{const _0x4f30e4=_0x2ce17e;let _0x18c5f1;for(const _0xdcaf77 in _0x38c0fa){const _0x202311=_0xdcaf77,_0x36cb95=_0x38c0fa[_0x202311];if(_0x4f30e4(0x1b1)==_0x36cb95||_0x4f30e4(0x18e)==_0x36cb95||_0x4f30e4(0x1a9)==_0x36cb95||_0x4f30e4(0x1b6)==_0x36cb95||_0x4f30e4(0x17f)==_0x36cb95||_0x4f30e4(0x191)==_0x36cb95||_0x4f30e4(0x195)==_0x36cb95||_0x4f30e4(0x198)==_0x36cb95){delete _0x38c0fa[_0x202311],_0x18c5f1=_0x36cb95,clearInterval(this[_0x4f30e4(0x1a7)]),this[_0x4f30e4(0x1a7)]=void 0x0;break;}}_0x4f30e4(0x18e)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1c3)),_0x4f30e4(0x1a9)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1c4)),_0x4f30e4(0x1b6)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x199)),_0x4f30e4(0x17f)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1a2),_0x4f30e4(0x1b2)),_0x4f30e4(0x191)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x18d)),_0x4f30e4(0x195)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x1a3)),_0x4f30e4(0x198)==_0x18c5f1&&_0x38c0fa[_0x4f30e4(0x196)](_0x4f30e4(0x177));},0x3e8);}[_0x17427d(0x192)](){const _0xc5e101=_0x17427d,{editor:_0x4c59c7}=this,_0x5e7120=_0x4c59c7[_0xc5e101(0x17b)][_0xc5e101(0x1ae)](_0xc5e101(0x193));if(!_0x5e7120)return;const _0x32c9e4=this[_0xc5e101(0x18a)](_0x4c59c7[_0xc5e101(0x176)][_0xc5e101(0x1ae)](_0xc5e101(0x1b5)))[_0xc5e101(0x186)]((_0x2c9804,_0x138144)=>{const _0x43d116=_0xc5e101,_0x59ee54=this[_0x43d116(0x19c)](_0x138144[_0x43d116(0x181)]);return _0x2c9804[_0x59ee54]||(_0x2c9804[_0x59ee54]=[]),_0x2c9804[_0x59ee54][_0x43d116(0x175)](_0x138144),_0x2c9804;},{});_0x4c59c7[_0xc5e101(0x17e)][_0xc5e101(0x18c)](_0xc5e101(0x184))&&_0x4c59c7[_0xc5e101(0x17b)][_0xc5e101(0x1ae)](_0xc5e101(0x193))&&Object[_0xc5e101(0x1ba)](_0x32c9e4)[_0xc5e101(0x179)](([_0x4cf9c6,_0x4bcfdc])=>{const _0x36278c=_0xc5e101;_0x4c59c7[_0x36278c(0x17e)][_0x36278c(0x1ae)](_0x36278c(0x184))[_0x36278c(0x194)]({'name':_0x4cf9c6,'observable':()=>_0x5e7120,'buttonViewCreator':()=>this[_0x36278c(0x185)](_0x4bcfdc),'formViewCreator':()=>this[_0x36278c(0x19e)](_0x4bcfdc),'menuBarButtonViewCreator':()=>this[_0x36278c(0x1a8)](_0x4bcfdc),'override':_0x36278c(0x17c)!==_0x4cf9c6});});}[_0x17427d(0x19f)](){const _0x24ec85=_0x17427d;super[_0x24ec85(0x19f)](),this[_0x24ec85(0x1a7)]&&clearInterval(this[_0x24ec85(0x1a7)]);}[_0x17427d(0x18a)](_0x5da25f){const _0x204900=_0x17427d,{locale:_0xb8744b}=this[_0x204900(0x1ac)];return _0x5da25f[_0x204900(0x1a0)](_0x21ab13=>{const _0x1ecec1=_0x204900,_0x102357=_0x108313(_0xb8744b,_0x21ab13,_0x1ecec1(0x19b));switch(_0x21ab13){case _0xe184a9[_0x1ecec1(0x190)]:return{'icon':_0x1a2ddf,'type':_0xe184a9[_0x1ecec1(0x190)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1bc)]:return{'icon':_0x48f96a,'type':_0xe184a9[_0x1ecec1(0x1bc)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1a1)]:return{'icon':_0x41523f,'type':_0xe184a9[_0x1ecec1(0x1a1)],..._0x102357};case _0xe184a9[_0x1ecec1(0x188)]:return{'icon':_0x5e4aae,'type':_0xe184a9[_0x1ecec1(0x188)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1bb)]:return{'icon':_0x28c611,'type':_0xe184a9[_0x1ecec1(0x1bb)],..._0x102357};case _0xe184a9[_0x1ecec1(0x17a)]:return{'icon':_0x74c5a7,'type':_0xe184a9[_0x1ecec1(0x17a)],..._0x102357};case _0xe184a9[_0x1ecec1(0x1b4)]:return{'icon':_0x53a513,'type':_0xe184a9[_0x1ecec1(0x1b4)],..._0x102357};}});}[_0x17427d(0x19c)](_0x32942f){const _0x34deb2=_0x17427d;switch(_0x32942f){case _0xe184a9[_0x34deb2(0x190)]:return _0x34deb2(0x1aa);case _0xe184a9[_0x34deb2(0x1bc)]:return _0x34deb2(0x1c0);default:return _0x34deb2(0x17c);}}[_0x17427d(0x180)](_0x519390,_0x2f6fd1){const _0x8c6b72=_0x17427d,_0x33a77e=this[_0x8c6b72(0x1ac)],_0x28f0c7=new _0x519390(_0x33a77e[_0x8c6b72(0x1a6)]),_0x288e58=_0x33a77e[_0x8c6b72(0x17b)][_0x8c6b72(0x1ae)](_0x8c6b72(0x193));return _0x28f0c7[_0x8c6b72(0x18b)](_0x8c6b72(0x197))['to'](_0x288e58),_0x28f0c7['on'](_0x8c6b72(0x1bf),()=>{const _0xa69b41=_0x8c6b72;_0x288e58[_0xa69b41(0x1bf)](_0x2f6fd1);}),_0x28f0c7;}[_0x17427d(0x185)](_0x402052){const _0x2df692=_0x17427d,{locale:_0x42deda}=this[_0x2df692(0x1ac)],_0x33ece8=this[_0x2df692(0x1ac)][_0x2df692(0x17e)][_0x2df692(0x1ae)](_0x2df692(0x184)),_0x3e7905=_0x402052[0x0],_0x43e33d=this[_0x2df692(0x180)](_0x5e3ed1,_0x3e7905[_0x2df692(0x181)]);return _0x43e33d[_0x2df692(0x178)]=_0x3e7905[_0x2df692(0x178)],_0x43e33d[_0x2df692(0x18b)](_0x2df692(0x1b3))['to'](_0x33ece8,_0x2df692(0x17d),_0x331b1d=>_0x108313(_0x42deda,_0x3e7905[_0x2df692(0x181)],_0x331b1d?_0x2df692(0x1b0):_0x2df692(0x19b))[_0x2df692(0x1c1)]),_0x43e33d[_0x2df692(0x1ad)]=!0x0,_0x43e33d;}[_0x17427d(0x19e)](_0x101c85){const _0x18be44=_0x17427d,{locale:_0x100a98}=this[_0x18be44(0x1ac)],_0x42543d=this[_0x18be44(0x1ac)][_0x18be44(0x17e)][_0x18be44(0x1ae)](_0x18be44(0x184));return _0x101c85[_0x18be44(0x1a0)](_0x59a509=>{const _0xce9a9d=_0x18be44,_0x1b5814=this[_0xce9a9d(0x180)](_0x5e3ed1,_0x59a509[_0xce9a9d(0x181)]);return _0x1b5814[_0xce9a9d(0x1be)]=!0x0,_0x1b5814[_0xce9a9d(0x178)]=_0x59a509[_0xce9a9d(0x178)],_0x1b5814[_0xce9a9d(0x18b)](_0xce9a9d(0x1b3))['to'](_0x42543d,_0xce9a9d(0x17d),_0x3a849a=>_0x108313(_0x100a98,_0x59a509[_0xce9a9d(0x181)],_0x3a849a?_0xce9a9d(0x1b0):_0xce9a9d(0x19b))[_0xce9a9d(0x1c1)]),_0x1b5814;});}[_0x17427d(0x1a8)](_0x296a5f){const _0x127b57=_0x17427d;return _0x296a5f[_0x127b57(0x1a0)](_0x1d17cb=>{const _0x1adf85=_0x127b57,_0x2f8c2f=this[_0x1adf85(0x180)](_0x42938d,_0x1d17cb[_0x1adf85(0x181)]);return _0x2f8c2f[_0x1adf85(0x178)]=_0x1d17cb[_0x1adf85(0x178)],_0x2f8c2f[_0x1adf85(0x1b3)]=_0x1d17cb[_0x1adf85(0x1b8)],_0x2f8c2f;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1af3de}from'ckeditor5/src/core.js';import{FileRepository as _0x2e245a}from'ckeditor5/src/upload.js';import _0x443c3c from'./uploadcareediting.js';import _0x5e832a from'./utils/uploadutils.js';import{getImageUrls as _0x3d337f}from'./utils/editingutils.js';export default class p extends _0x1af3de{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2e245a,_0x443c3c];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x36a5bd=this['editor'];if(!!!_0x36a5bd['config']['get']('uploadcare'))return;_0x36a5bd['plugins']['get'](_0x2e245a)['createUploadAdapter']=_0x1801a0=>new x(_0x1801a0,_0x36a5bd),_0x36a5bd['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x188962,{imageElement:_0x5afb68,data:_0x4772ef})=>{_0x36a5bd['model']['change'](_0x414207=>{_0x414207['setAttribute']('uploadcareImageId',_0x4772ef['uploadcareImageId'],_0x5afb68);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x25cf8e,_0x5f4e27){this['loader']=_0x25cf8e,this['editor']=_0x5f4e27,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x35fa24=this['editor']['config']['get']('uploadcare.pubkey'),_0x16f3bd=await this['loader']['file'];return _0x5e832a['upload']({'file':_0x16f3bd,'publicKey':_0x35fa24,'signal':this['controller']['signal'],'onProgress':_0xd6e34=>{_0xd6e34&&_0xd6e34['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xd6e34['value']);}})['then'](async _0x3f2be1=>{const {imageFallbackUrl:_0x42b34f,imageSources:_0x1a4288}=_0x3d337f(_0x3f2be1['cdnUrl'],_0x3f2be1['imageInfo']['width']);return{'uploadcareImageId':_0x3f2be1['uuid'],'default':_0x42b34f,'sources':_0x1a4288};})['catch'](()=>{const _0x30e532=t('Cannot\x20upload\x20file:')+('\x20'+_0x16f3bd['name']+'.');return Promise['reject'](_0x30e532);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x46edea}from'../uploadcareconfig.js';export function getTranslation(_0x4e72f1,_0x12225e,_0x317f90){const t=_0x4e72f1['t'],_0x50ce7a=_0x4e72f1['t'];switch(_0x12225e){case _0x46edea['Local']:return{'text':_0x50ce7a('Insert'===_0x317f90?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x50ce7a('From\x20computer')};case _0x46edea['URL']:return{'text':'Insert'===_0x317f90?_0x50ce7a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x50ce7a('Via\x20URL')};case _0x46edea['Dropbox']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x46edea['Facebook']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x46edea['GDrive']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x46edea['GPhotos']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x46edea['OneDrive']:return{'text':t('Insert'===_0x317f90?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x12225e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5d79b5=_0x49c0;(function(_0x37792a,_0x240006){var _0x129150=_0x49c0,_0x167c9b=_0x37792a();while(!![]){try{var _0x4f3216=-parseInt(_0x129150(0x1ab))/0x1*(-parseInt(_0x129150(0x1aa))/0x2)+parseInt(_0x129150(0x19e))/0x3+parseInt(_0x129150(0x1a5))/0x4+parseInt(_0x129150(0x1a6))/0x5+parseInt(_0x129150(0x1a2))/0x6*(-parseInt(_0x129150(0x19a))/0x7)+parseInt(_0x129150(0x19b))/0x8*(-parseInt(_0x129150(0x1a1))/0x9)+-parseInt(_0x129150(0x199))/0xa*(parseInt(_0x129150(0x19c))/0xb);if(_0x4f3216===_0x240006)break;else _0x167c9b['push'](_0x167c9b['shift']());}catch(_0x4054a8){_0x167c9b['push'](_0x167c9b['shift']());}}}(_0x3d8b,0xc920b));function _0x49c0(_0x2c9220,_0x493747){var _0x3d8b13=_0x3d8b();return _0x49c0=function(_0x49c0d3,_0x1b96e0){_0x49c0d3=_0x49c0d3-0x199;var _0x21150f=_0x3d8b13[_0x49c0d3];return _0x21150f;},_0x49c0(_0x2c9220,_0x493747);}import{FocusTracker as _0x22cd5a}from'ckeditor5/src/utils.js';import{View as _0x4098ec,FocusCycler as _0x3bf02a}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class G extends _0x4098ec{[_0x5d79b5(0x1a9)];[_0x5d79b5(0x1a7)];constructor(_0x527565){var _0x4559ff=_0x5d79b5;super(_0x527565),this[_0x4559ff(0x1a9)]=new _0x22cd5a(),this[_0x4559ff(0x1a7)]=new _0x3bf02a({'focusables':this[_0x4559ff(0x1a8)](),'focusTracker':this[_0x4559ff(0x1a9)]});}[_0x5d79b5(0x1ac)](){var _0x4855b7=_0x5d79b5;return{'tag':_0x4855b7(0x19f),'attributes':{'aria-hidden':_0x4855b7(0x1a0),'tabindex':'0'},'on':{'focus':this[_0x4855b7(0x19d)]['to'](()=>{var _0x3474db=_0x4855b7;this[_0x3474db(0x1a7)][_0x3474db(0x1a3)](_0x3474db(0x1a4));})}};}}function _0x3d8b(){var _0x37b242=['getFocusableElement','10gXgRQZ','22694lOMWMp','344TYBqPE','30840535GUJFIg','bindTemplate','4508835oxodvh','div','true','84933slDoTf','642CdIfYQ','fire','forwardCycle','3232600hzdmzR','2470320HyRUYq','focusCycler','createCollection','focusTracker','10EIjkRL','315006LHipZj'];_0x3d8b=function(){return _0x37b242;};return _0x3d8b();}
|