@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250403.0 → 0.0.0-nightly-20250405.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/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 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x38a7fd=_0x4c0a;(function(_0xda6251,_0x5a0130){const _0x5656fe=_0x4c0a,_0x2a499b=_0xda6251();while(!![]){try{const _0x179f55=parseInt(_0x5656fe(0x145))/0x1*(parseInt(_0x5656fe(0x108))/0x2)+parseInt(_0x5656fe(0x139))/0x3*(parseInt(_0x5656fe(0x13c))/0x4)+parseInt(_0x5656fe(0x121))/0x5*(-parseInt(_0x5656fe(0x132))/0x6)+parseInt(_0x5656fe(0x11b))/0x7+-parseInt(_0x5656fe(0x10f))/0x8*(-parseInt(_0x5656fe(0x118))/0x9)+parseInt(_0x5656fe(0x12a))/0xa+-parseInt(_0x5656fe(0x101))/0xb;if(_0x179f55===_0x5a0130)break;else _0x2a499b['push'](_0x2a499b['shift']());}catch(_0x5db36b){_0x2a499b['push'](_0x2a499b['shift']());}}}(_0x406a,0x9e415));import{Plugin as _0x45173b}from'ckeditor5/src/core.js';import{Dialog as _0xc9e449}from'ckeditor5/src/ui.js';import{createElement as _0x4da682,global as _0x4f6f95,uid as _0x24ce86}from'ckeditor5/src/utils.js';import _0x2694a5 from'./uploadcarecommand.js';import _0x517602 from'./uploadcareuploadadapter.js';function _0x406a(){const _0xd4a67b=['listenTo','attributeToAttribute','isOfficialPlugin','once','editor','4966230nRMgkX','schema','map','true','imageInline','_initSchema','pluginName','uploadcareImageReplace','12cmFZTv','for','execute','model','view','downcast','configElement','724929uUcadn','iconHrefResolver','config','4QsEZRy','_configElement','replaceImageSource','destroy','uc-upload-ctx-provider','uploadcare','querySelector','\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','#uc-icon-arrow-down','1HOstWY','_initConfig','uploadcare.uploader','removeAttribute','imageBlock','uploadcareImageId','render','init','add','contentLanguage','uploader','extend','_initConversion','_initImageProcessingIndicator','conversion','getAttribute','getSelectedElement','15276657taGGBd','data-uc-image-id','closeMax','_initCtx','insertImage','remove','editing','81156aiFPdG','selection','locale','uc-config','fromCharCode','upcast','elementToAttribute','8973392AvrShd','appendChild','UploadcareEditing','isPremiumPlugin','cleanupImage','input[uploadcare-file-input]','body','document','afterInit','9MoNdSE','PictureEditing','isRegistered','7868952QUUbFC','get','commands','_ctxElement','uploadcare.pubkey','ctxElement','2469135nMMBZz','join','href','requires'];_0x406a=function(){return _0xd4a67b;};return _0x406a();}import{showImageProcessingIndicator as _0x555089}from'./utils/editingutils.js';function _0x4c0a(_0x463f94,_0x209b5c){const _0x406a9f=_0x406a();return _0x4c0a=function(_0x4c0a80,_0x5d7d54){_0x4c0a80=_0x4c0a80-0xf7;let _0x53f039=_0x406a9f[_0x4c0a80];return _0x53f039;},_0x4c0a(_0x463f94,_0x209b5c);}export default class i extends _0x45173b{[_0x38a7fd(0x13d)]=null;[_0x38a7fd(0x11e)]=null;static get[_0x38a7fd(0x130)](){const _0x37e9f5=_0x38a7fd;return _0x37e9f5(0x111);}static get[_0x38a7fd(0x124)](){const _0x1f6822=_0x38a7fd;return[_0x1f6822(0x119),_0x517602,_0xc9e449];}static get[_0x38a7fd(0x127)](){return!0x0;}static get[_0x38a7fd(0x112)](){return!0x0;}get[_0x38a7fd(0x138)](){const _0x21a037=_0x38a7fd;return this[_0x21a037(0x13d)];}get[_0x38a7fd(0x120)](){const _0x2ed88a=_0x38a7fd;return this[_0x2ed88a(0x11e)];}[_0x38a7fd(0xf7)](){const _0x4ec470=_0x38a7fd,_0x10ce46=this[_0x4ec470(0x129)];_0x10ce46[_0x4ec470(0x11d)][_0x4ec470(0xf8)](_0x4ec470(0x141),new _0x2694a5(_0x10ce46));}[_0x38a7fd(0x117)](){const _0x6b0be6=_0x38a7fd;this[_0x6b0be6(0x12f)](),this[_0x6b0be6(0xfc)](),this[_0x6b0be6(0x146)](),this[_0x6b0be6(0x104)](),this[_0x6b0be6(0xfd)](),this[_0x6b0be6(0x125)](this[_0x6b0be6(0x129)],_0x6b0be6(0x13f),()=>{const _0x51e53d=_0x6b0be6;this[_0x51e53d(0x13d)]&&(this[_0x51e53d(0x13d)][_0x51e53d(0x106)](),this[_0x51e53d(0x13d)]=null),this[_0x51e53d(0x11e)]&&(this[_0x51e53d(0x11e)][_0x51e53d(0x106)](),this[_0x51e53d(0x11e)]=null);const _0x1433a7=_0x4f6f95[_0x51e53d(0x116)][_0x51e53d(0x142)](_0x51e53d(0x114));_0x1433a7&&_0x1433a7[_0x51e53d(0x106)]();}),async function(_0x5c7fbf){const _0x25e81f=_0x5ce76b([0x4d,0x59,0x4e,0x67,0x50,0x44,0x58,0x57,0x6e,0x32,0x79,0x34,0x6d,0x30,0x61,0x4b,0x35,0x73,0x38,0x72,0x47,0x45,0x64,0x31,0x4f,0x6a,0x55,0x46,0x51,0x6f,0x66,0x37,0x56,0x68,0x63,0x75,0x4a,0x7a,0x77,0x62,0x53,0x39,0x4c,0x71,0x69,0x76,0x78,0x6b,0x74,0x48,0x49,0x33,0x54,0x5a,0x52,0x36,0x43,0x70,0x65,0x42,0x6c,0x41]),_0x9b2a56=0x2e159e4f,_0x493e34=0x2e12fdb7^_0x9b2a56,_0x39e5a0=window[_0x5ce76b([0x44,0x61,0x74,0x65])][_0x5ce76b([0x6e,0x6f,0x77])](),_0x523ab4=_0x5c7fbf[_0x5ce76b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e5286=new window[(_0x5ce76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x214687=>{_0x523ab4[_0x5ce76b([0x6f,0x6e,0x63,0x65])](_0x5ce76b([0x72,0x65,0x61,0x64,0x79]),_0x214687);}),_0x2d7e98={[_0x5ce76b([0x6b,0x74,0x79])]:_0x5ce76b([0x45,0x43]),[_0x5ce76b([0x75,0x73,0x65])]:_0x5ce76b([0x73,0x69,0x67]),[_0x5ce76b([0x63,0x72,0x76])]:_0x5ce76b([0x50,0x2d,0x32,0x35,0x36]),[_0x5ce76b([0x78])]:_0x5ce76b([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]),[_0x5ce76b([0x79])]:_0x5ce76b([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]),[_0x5ce76b([0x61,0x6c,0x67])]:_0x5ce76b([0x45,0x53,0x32,0x35,0x36])},_0x20c322=_0x523ab4[_0x5ce76b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5ce76b([0x67,0x65,0x74])](_0x5ce76b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46149a(){let _0x168a72,_0x554982=null,_0x48815d=null;try{if(_0x20c322==_0x5ce76b([0x47,0x50,0x4c]))return _0x5ce76b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x168a72=_0x34156c(),!_0x168a72)return _0x5ce76b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x168a72[_0x5ce76b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48815d=_0x215d8e(_0x168a72[_0x5ce76b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x168a72[_0x5ce76b([0x6a,0x74,0x69])])),await _0x20c467()?_0x4ebbe1()?_0x181469()?_0x5ce76b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1dc0ce()?(_0x168a72[_0x5ce76b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce76b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x554982=_0x4bb734(_0x5ce76b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x168a72[_0x5ce76b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5ce76b([0x74,0x72,0x69,0x61,0x6c])&&(_0x554982=_0x4bb734(_0x5ce76b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49a1af()):_0x5ce76b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce76b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5ce76b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x177adb){return _0x5ce76b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x181469(){const _0x54023c=[_0x5ce76b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5ce76b([0x74,0x72,0x69,0x61,0x6c])][_0x5ce76b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x168a72[_0x5ce76b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39e5a0/0x3e8:0xe10*_0x493e34;return _0x168a72[_0x5ce76b([0x65,0x78,0x70])]<_0x54023c;}function _0x4ebbe1(){const _0x5599a6=_0x168a72[_0x5ce76b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5599a6&&(!!_0x5599a6[_0x5ce76b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce76b([0x2a]))||!!_0x5599a6[_0x5ce76b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce76b([0x55,0x50,0x4c,0x43])));}function _0x1dc0ce(){const _0x1dbec8=_0x4c0a,_0x2e9d86=_0x168a72[_0x5ce76b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e9d86||0x0==_0x2e9d86[_0x5ce76b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d5c73}=new URL(window[_0x5ce76b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1dbec8(0x123)]);if(_0x2e9d86[_0x5ce76b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d5c73))return!0x0;const _0x1ea0ee=_0x2d5c73[_0x5ce76b([0x73,0x70,0x6c,0x69,0x74])](_0x5ce76b([0x2e]));return _0x2e9d86[_0x5ce76b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52ec4b=>_0x52ec4b[_0x5ce76b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ce76b([0x2a])))[_0x5ce76b([0x6d,0x61,0x70])](_0x5eec46=>_0x5eec46[_0x5ce76b([0x73,0x70,0x6c,0x69,0x74])](_0x5ce76b([0x2e])))[_0x5ce76b([0x73,0x6f,0x6d,0x65])](_0x515a66=>_0x1ea0ee[_0x5ce76b([0x65,0x76,0x65,0x72,0x79])]((_0x41f25c,_0x3254ab)=>_0x515a66[_0x3254ab]===_0x41f25c||_0x515a66[_0x3254ab]===_0x5ce76b([0x2a])));}function _0x49a1af(){return _0x554982&&_0x48815d?new window[(_0x5ce76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4de7a8,_0x1be1ec)=>{_0x554982[_0x5ce76b([0x74,0x68,0x65,0x6e])](_0x4de7a8,_0x1be1ec),_0x48815d[_0x5ce76b([0x74,0x68,0x65,0x6e])](_0x4e72dd=>{_0x4e72dd!=_0x5ce76b([0x56,0x61,0x6c,0x69,0x64])&&_0x4de7a8(_0x4e72dd);},_0x1be1ec);}):_0x554982||_0x48815d||_0x5ce76b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x215d8e(_0x29d3a6,_0x5f0c37){return new window[(_0x5ce76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c319b=>{if(_0x43c0d4())return _0x5c319b(_0x5ce76b([0x56,0x61,0x6c,0x69,0x64]));_0xa721b3(),_0x523ab4[_0x5ce76b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5ce76b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ae067=!0x1;const _0x2edd2e=_0x24ce86();function _0x35be9e(_0x211ba0){return!!_0x211ba0&&(typeof _0x211ba0===_0x5ce76b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x211ba0===_0x5ce76b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x211ba0[_0x5ce76b([0x74,0x68,0x65,0x6e])]===_0x5ce76b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x211ba0[_0x5ce76b([0x63,0x61,0x74,0x63,0x68])]===_0x5ce76b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1096da(_0x9f7df8){_0xc1f65(_0x9f7df8)[_0x5ce76b([0x74,0x68,0x65,0x6e])](_0x333bd2=>{if(!_0x333bd2||_0x333bd2[_0x5ce76b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5ce76b([0x6f,0x6b]))return _0x5ce76b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45e373(_0x446ec4(_0x2edd2e+_0x5f0c37))!=_0x333bd2[_0x5ce76b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5ce76b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5ce76b([0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce76b([0x74,0x68,0x65,0x6e])](_0x51c377=>(_0x3302cb(),_0x51c377),()=>{const _0x411f27=_0x3c5730();return null==_0x411f27?(_0x3302cb(),_0x5ce76b([0x56,0x61,0x6c,0x69,0x64])):_0x5ce76b(_0x39e5a0-_0x411f27>(0xa191a4f^_0x9b2a56)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5ce76b([0x74,0x68,0x65,0x6e])](_0x5c319b)[_0x5ce76b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c319b(_0x5ce76b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37756a=0x2e2370cf^_0x9b2a56;function _0x3302cb(){const _0x85184f=_0x5ce76b([0x6c,0x6c,0x63,0x74,0x2d])+_0x45e373(_0x446ec4(_0x29d3a6)),_0x54210=_0x311c5e(_0x45e373(window[_0x5ce76b([0x4d,0x61,0x74,0x68])][_0x5ce76b([0x63,0x65,0x69,0x6c])](_0x39e5a0/_0x37756a)));window[_0x5ce76b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce76b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x85184f,_0x54210);}function _0x3c5730(){const _0x354fcd=_0x5ce76b([0x6c,0x6c,0x63,0x74,0x2d])+_0x45e373(_0x446ec4(_0x29d3a6)),_0x5a9c34=window[_0x5ce76b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5ce76b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x354fcd);return _0x5a9c34?window[_0x5ce76b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x311c5e(_0x5a9c34),0x10)*_0x37756a:null;}function _0xc1f65(_0x9e419a){return new window[(_0x5ce76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32150a,_0x280b4e)=>{_0x9e419a[_0x5ce76b([0x74,0x68,0x65,0x6e])](_0x32150a,_0x280b4e),window[_0x5ce76b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x280b4e,0x2e144a8f^_0x9b2a56);});}}_0x523ab4[_0x5ce76b([0x6f,0x6e])](_0x5ce76b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a03a9,_0xc3e3ff)=>{if(_0xc3e3ff[0x0]!=_0x29d3a6)return _0x5c319b(_0x5ce76b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc3e3ff[0x1]={..._0xc3e3ff[0x1],[_0x5ce76b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2edd2e};},{[_0x5ce76b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce76b([0x68,0x69,0x67,0x68])}),_0x523ab4[_0x5ce76b([0x6f,0x6e])](_0x5ce76b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26e826=>{_0x35be9e(_0x26e826[_0x5ce76b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ae067=!0x0,_0x1096da(_0x26e826[_0x5ce76b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5ce76b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5ce76b([0x6c,0x6f,0x77])}),_0x2e5286[_0x5ce76b([0x74,0x68,0x65,0x6e])](()=>{_0x2ae067||_0x5c319b(_0x5ce76b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43c0d4(){return _0x523ab4[_0x5ce76b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce76b([0x76,0x69,0x65,0x77])][_0x5ce76b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5ce76b([0x61,0x75,0x74,0x6f]);}function _0xa721b3(){_0x523ab4[_0x5ce76b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5ce76b([0x76,0x69,0x65,0x77])][_0x5ce76b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5ce76b([0x61,0x75,0x74,0x6f]);}}function _0x4bb734(_0x38b86d){const _0x4b9dad=[new window[(_0x5ce76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a4c93=>setTimeout(_0x5a4c93,0x2e1ca083^_0x9b2a56)),_0x2e5286[_0x5ce76b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5ce76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa9ab8=>{let _0x36872e=0x0;_0x523ab4[_0x5ce76b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce76b([0x6f,0x6e])](_0x5ce76b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e2ee7,_0x2cfb71)=>{_0x2cfb71[0x0][_0x5ce76b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x36872e++,_0x36872e==(0x2e159fb7^_0x9b2a56)&&(_0xa9ab8(),_0x1e2ee7[_0x5ce76b([0x6f,0x66,0x66])]());});}))];return window[_0x5ce76b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5ce76b([0x72,0x61,0x63,0x65])](_0x4b9dad)[_0x5ce76b([0x74,0x68,0x65,0x6e])](()=>_0x38b86d);}async function _0x16fc07(){await _0x2e5286,_0x523ab4[_0x5ce76b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce76b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4bbd3b,_0x523ab4[_0x5ce76b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5ce76b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4bbd3b,_0x523ab4[_0x5ce76b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5ce76b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40f65a(_0x54881e){const _0x585847=_0x3787c3();_0x523ab4[_0x585847]=_0x5ce76b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54881e,_0x54881e!=_0x5ce76b([0x56,0x61,0x6c,0x69,0x64])&&_0x16fc07();}function _0x3787c3(){const _0x2bda5f=window[_0x5ce76b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5ce76b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5ce76b([0x6e,0x6f,0x77])]())[_0x5ce76b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5ce76b([0x2e]),'');let _0xfa6d69=_0x5ce76b([0x4d]);for(let _0x1bd597=0x0;_0x1bd597<_0x2bda5f[_0x5ce76b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bd597+=0x2){let _0x2863ee=window[_0x5ce76b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bda5f[_0x5ce76b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bd597,_0x1bd597+0x2));_0x2863ee>=_0x25e81f[_0x5ce76b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2863ee-=_0x25e81f[_0x5ce76b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xfa6d69+=_0x25e81f[_0x2863ee];}return _0xfa6d69;}function _0x34156c(){const _0x58da77=_0x20c322[_0x5ce76b([0x73,0x70,0x6c,0x69,0x74])](_0x5ce76b([0x2e]));if(0x3!=_0x58da77[_0x5ce76b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x142742(_0x58da77[0x1]);function _0x142742(_0x10a204){const _0x21e6ae=_0x180b9e(_0x10a204);return _0x21e6ae&&_0x1945c9()?_0x21e6ae:null;function _0x1945c9(){const _0x2109d9=_0x21e6ae[_0x5ce76b([0x6a,0x74,0x69])],_0x45db07=window[_0x5ce76b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2109d9[_0x5ce76b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2109d9[_0x5ce76b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5edcf2={..._0x21e6ae,[_0x5ce76b([0x6a,0x74,0x69])]:_0x2109d9[_0x5ce76b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2109d9[_0x5ce76b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5edcf2[_0x5ce76b([0x76,0x63])],_0x446ec4(_0x5edcf2)==_0x45db07;}}}async function _0x20c467(){let _0x504f34=!0x0;try{const _0x3e798b=_0x20c322[_0x5ce76b([0x73,0x70,0x6c,0x69,0x74])](_0x5ce76b([0x2e])),[_0x501786,_0x17b493,_0x4fab39]=_0x3e798b;return _0x3026a9(_0x501786),await _0x27e61b(_0x501786,_0x17b493,_0x4fab39),_0x504f34;}catch(_0x4b913b){return!0x1;}function _0x3026a9(_0x5a6ba4){const _0x1c5744=_0x180b9e(_0x5a6ba4);_0x1c5744&&_0x1c5744[_0x5ce76b([0x61,0x6c,0x67])]==_0x5ce76b([0x45,0x53,0x32,0x35,0x36])||(_0x504f34=!0x1);}async function _0x27e61b(_0x475268,_0x1e912d,_0x33ee84){const _0x2b1097=window[_0x5ce76b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5ce76b([0x66,0x72,0x6f,0x6d])](_0x196e6a(_0x33ee84),_0x354c5c=>_0x354c5c[_0x5ce76b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2abb76=new window[(_0x5ce76b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5ce76b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x475268+_0x5ce76b([0x2e])+_0x1e912d),_0x11a230=window[_0x5ce76b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5ce76b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11a230)return;const _0x4a5acc=await _0x11a230[_0x5ce76b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5ce76b([0x6a,0x77,0x6b]),_0x2d7e98,{[_0x5ce76b([0x6e,0x61,0x6d,0x65])]:_0x5ce76b([0x45,0x43,0x44,0x53,0x41]),[_0x5ce76b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5ce76b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5ce76b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11a230[_0x5ce76b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5ce76b([0x6e,0x61,0x6d,0x65])]:_0x5ce76b([0x45,0x43,0x44,0x53,0x41]),[_0x5ce76b([0x68,0x61,0x73,0x68])]:{[_0x5ce76b([0x6e,0x61,0x6d,0x65])]:_0x5ce76b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a5acc,_0x2b1097,_0x2abb76)||(_0x504f34=!0x1);}}function _0x180b9e(_0x413b71){return _0x413b71[_0x5ce76b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5ce76b([0x65,0x79]))?JSON[_0x5ce76b([0x70,0x61,0x72,0x73,0x65])](_0x196e6a(_0x413b71)):null;}function _0x196e6a(_0x49010b){return window[_0x5ce76b([0x61,0x74,0x6f,0x62])](_0x49010b[_0x5ce76b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5ce76b([0x2b]))[_0x5ce76b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5ce76b([0x2f])));}function _0x446ec4(_0x448667){let _0x59cbe6=0x1505;function _0x12fa96(_0x1e7c54){for(let _0x183de1=0x0;_0x183de1<_0x1e7c54[_0x5ce76b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x183de1++){const _0x5b0076=_0x1e7c54[_0x5ce76b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x183de1);_0x59cbe6=(_0x59cbe6<<0x5)+_0x59cbe6+_0x5b0076,_0x59cbe6&=_0x59cbe6;}}function _0x1e866a(_0xb98e2f){Array[_0x5ce76b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb98e2f)?_0xb98e2f[_0x5ce76b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e866a):_0xb98e2f&&typeof _0xb98e2f==_0x5ce76b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5ce76b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb98e2f)[_0x5ce76b([0x73,0x6f,0x72,0x74])]()[_0x5ce76b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a66b6,_0x395d83])=>{_0x12fa96(_0x4a66b6),_0x1e866a(_0x395d83);}):_0x12fa96(window[_0x5ce76b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb98e2f));}return _0x1e866a(_0x448667),_0x59cbe6>>>0x0;}function _0x45e373(_0x155067){return _0x155067[_0x5ce76b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5ce76b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5ce76b([0x30]));}function _0x311c5e(_0x4a0b64){return _0x4a0b64[_0x5ce76b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5ce76b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5ce76b([0x6a,0x6f,0x69,0x6e])]('');}function _0x4bbd3b(){}function _0x5ce76b(_0x2173fc){const _0x114773=_0x4c0a;return _0x2173fc[_0x114773(0x12c)](_0x1c2ad0=>String[_0x114773(0x10c)](_0x1c2ad0))[_0x114773(0x122)]('');}_0x40f65a(await _0x46149a());}(this);}[_0x38a7fd(0x12f)](){const _0x58d072=_0x38a7fd,_0x382abd=this[_0x58d072(0x129)][_0x58d072(0x135)][_0x58d072(0x12b)];_0x382abd[_0x58d072(0x11a)](_0x58d072(0x149))&&_0x382abd[_0x58d072(0xfb)](_0x58d072(0x149),{'allowAttributes':[_0x58d072(0x14a)]}),_0x382abd[_0x58d072(0x11a)](_0x58d072(0x12e))&&_0x382abd[_0x58d072(0xfb)](_0x58d072(0x12e),{'allowAttributes':[_0x58d072(0x14a)]});}[_0x38a7fd(0xfc)](){const _0x73f5a2=_0x38a7fd,_0xe33912=this[_0x73f5a2(0x129)];_0xe33912[_0x73f5a2(0xfe)][_0x73f5a2(0x133)](_0x73f5a2(0x137))[_0x73f5a2(0x126)]({'model':_0x73f5a2(0x14a),'view':_0x73f5a2(0x102)}),_0xe33912[_0x73f5a2(0xfe)][_0x73f5a2(0x133)](_0x73f5a2(0x10d))[_0x73f5a2(0x10e)]({'model':{'key':_0x73f5a2(0x14a),'value':_0x96992=>_0x96992[_0x73f5a2(0xff)](_0x73f5a2(0x102))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x430252=_0xe33912[_0x73f5a2(0x11d)][_0x73f5a2(0x11c)](_0x73f5a2(0x13e));_0x430252&&this[_0x73f5a2(0x125)](_0x430252,_0x73f5a2(0x113),(_0x3f269d,[_0x44a22f,_0x257a5e])=>{const _0x3af977=_0x73f5a2;_0x44a22f[_0x3af977(0x148)](_0x3af977(0x14a),_0x257a5e);});}[_0x38a7fd(0x146)](){const _0x6afb4d=_0x38a7fd,_0x5add08=this[_0x6afb4d(0x129)][_0x6afb4d(0x13b)][_0x6afb4d(0x11c)](_0x6afb4d(0x147))||{},_0x1e5c5d=this[_0x6afb4d(0x129)][_0x6afb4d(0x13b)][_0x6afb4d(0x11c)](_0x6afb4d(0x11f))||'';this[_0x6afb4d(0x13d)]=_0x4da682(_0x4f6f95[_0x6afb4d(0x116)],_0x6afb4d(0x10b),{..._0x5add08,'pubkey':_0x1e5c5d,'ctx-name':_0x6afb4d(0xfa),'sourceList':'','imgOnly':_0x6afb4d(0x12d),'removeCopyright':_0x6afb4d(0x12d),'localeName':this[_0x6afb4d(0x129)][_0x6afb4d(0x10a)][_0x6afb4d(0xf9)],'externalSourcesEmbedCss':_0x6afb4d(0x143)}),this[_0x6afb4d(0x13d)][_0x6afb4d(0x13a)]=_0x46b813=>{const _0x950d2d=_0x6afb4d;if(_0x950d2d(0x103)==_0x46b813)return _0x950d2d(0x144);},_0x4f6f95[_0x6afb4d(0x116)][_0x6afb4d(0x115)][_0x6afb4d(0x110)](this[_0x6afb4d(0x13d)]);}[_0x38a7fd(0x104)](){const _0x14d969=_0x38a7fd;this[_0x14d969(0x11e)]=_0x4da682(_0x4f6f95[_0x14d969(0x116)],_0x14d969(0x140),{'ctx-name':_0x14d969(0xfa)}),_0x4f6f95[_0x14d969(0x116)][_0x14d969(0x115)][_0x14d969(0x110)](this[_0x14d969(0x11e)]);}[_0x38a7fd(0xfd)](){const _0x51e27f=_0x38a7fd,_0x397168=this[_0x51e27f(0x129)][_0x51e27f(0x11d)][_0x51e27f(0x11c)](_0x51e27f(0x105));_0x397168&&this[_0x51e27f(0x125)](_0x397168,_0x51e27f(0x134),()=>{const _0x35fbc9=_0x51e27f,_0x3630c6=this[_0x35fbc9(0x129)][_0x35fbc9(0x135)][_0x35fbc9(0x116)][_0x35fbc9(0x109)][_0x35fbc9(0x100)]();_0x3630c6&&_0x3630c6[_0x35fbc9(0xff)](_0x35fbc9(0x14a))&&this[_0x35fbc9(0x129)][_0x35fbc9(0x107)][_0x35fbc9(0x136)][_0x35fbc9(0x128)](_0x35fbc9(0x14b),()=>{const _0x4bfd0b=_0x35fbc9;_0x555089(this[_0x4bfd0b(0x129)],_0x3630c6);});});const _0x312a0f=this[_0x51e27f(0x129)][_0x51e27f(0x11d)][_0x51e27f(0x11c)](_0x51e27f(0x131));_0x312a0f&&this[_0x51e27f(0x125)](_0x312a0f,_0x51e27f(0x134),()=>{const _0x514ac0=_0x51e27f,_0x22f9c0=this[_0x514ac0(0x129)][_0x514ac0(0x135)][_0x514ac0(0x116)][_0x514ac0(0x109)][_0x514ac0(0x100)]();_0x22f9c0&&_0x22f9c0[_0x514ac0(0xff)](_0x514ac0(0x14a))&&this[_0x514ac0(0x129)][_0x514ac0(0x107)][_0x514ac0(0x136)][_0x514ac0(0x128)](_0x514ac0(0x14b),()=>{const _0x3301f3=_0x514ac0;_0x555089(this[_0x3301f3(0x129)],_0x22f9c0);});});}}
|
|
23
|
+
const _0x158dfa=_0x74bb;(function(_0x31e19a,_0x58c30c){const _0x2f9414=_0x74bb,_0x5f2527=_0x31e19a();while(!![]){try{const _0x43bb5f=-parseInt(_0x2f9414(0x195))/0x1+parseInt(_0x2f9414(0x1cf))/0x2*(-parseInt(_0x2f9414(0x1cb))/0x3)+-parseInt(_0x2f9414(0x1e2))/0x4+-parseInt(_0x2f9414(0x197))/0x5+-parseInt(_0x2f9414(0x1a6))/0x6*(parseInt(_0x2f9414(0x1d1))/0x7)+-parseInt(_0x2f9414(0x19f))/0x8+parseInt(_0x2f9414(0x1af))/0x9;if(_0x43bb5f===_0x58c30c)break;else _0x5f2527['push'](_0x5f2527['shift']());}catch(_0x1d3759){_0x5f2527['push'](_0x5f2527['shift']());}}}(_0x28cf,0xcc6de));import{Plugin as _0x30045c}from'ckeditor5/src/core.js';function _0x74bb(_0x2bc4be,_0x20d424){const _0x28cfe2=_0x28cf();return _0x74bb=function(_0x74bb19,_0x511ab8){_0x74bb19=_0x74bb19-0x195;let _0x1eca15=_0x28cfe2[_0x74bb19];return _0x1eca15;},_0x74bb(_0x2bc4be,_0x20d424);}function _0x28cf(){const _0x5c2d7d=['elementToAttribute','8063620MZqNqh','extend','appendChild','getSelectedElement','\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','downcast','uploadcare.uploader','render','8826784pmViBo','_ctxElement','_configElement','uploader','uploadcare','uc-config','data-uc-image-id','494250JsSWZf','once','body','schema','isPremiumPlugin','contentLanguage','uploadcareImageId','#uc-icon-arrow-down','_initSchema','46956042fiAaZL','href','destroy','closeMax','editor','listenTo','_initConversion','requires','remove','view','attributeToAttribute','removeAttribute','querySelector','_initCtx','configElement','document','locale','UploadcareEditing','imageInline','replaceImageSource','fromCharCode','model','iconHrefResolver','config','join','insertImage','cleanupImage','editing','73230pBAtdX','add','pluginName','for','26UQYAzt','_initImageProcessingIndicator','35MnKlGG','_initConfig','uploadcare.pubkey','commands','imageBlock','uploadcareImageReplace','isRegistered','selection','afterInit','true','uc-upload-ctx-provider','execute','getAttribute','input[uploadcare-file-input]','upcast','get','map','2595120roixCz','conversion','PictureEditing','ctxElement','init','isOfficialPlugin','285939TuyjRs'];_0x28cf=function(){return _0x5c2d7d;};return _0x28cf();}import{Dialog as _0x42b765}from'ckeditor5/src/ui.js';import{createElement as _0x3459bd,global as _0x51c861,uid as _0x126b3e}from'ckeditor5/src/utils.js';import _0x1a4a4a from'./uploadcarecommand.js';import _0x4dc040 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x57ffc3}from'./utils/editingutils.js';export default class i extends _0x30045c{[_0x158dfa(0x1a1)]=null;[_0x158dfa(0x1a0)]=null;static get[_0x158dfa(0x1cd)](){const _0x206377=_0x158dfa;return _0x206377(0x1c0);}static get[_0x158dfa(0x1b6)](){const _0x155356=_0x158dfa;return[_0x155356(0x1e4),_0x4dc040,_0x42b765];}static get[_0x158dfa(0x1e7)](){return!0x0;}static get[_0x158dfa(0x1aa)](){return!0x0;}get[_0x158dfa(0x1bd)](){const _0x148e01=_0x158dfa;return this[_0x148e01(0x1a1)];}get[_0x158dfa(0x1e5)](){const _0x3fde3d=_0x158dfa;return this[_0x3fde3d(0x1a0)];}[_0x158dfa(0x1e6)](){const _0x11386d=_0x158dfa,_0x1fbbb1=this[_0x11386d(0x1b3)];_0x1fbbb1[_0x11386d(0x1d4)][_0x11386d(0x1cc)](_0x11386d(0x1a3),new _0x1a4a4a(_0x1fbbb1));}[_0x158dfa(0x1d9)](){const _0x12982e=_0x158dfa;this[_0x12982e(0x1ae)](),this[_0x12982e(0x1b5)](),this[_0x12982e(0x1d2)](),this[_0x12982e(0x1bc)](),this[_0x12982e(0x1d0)](),this[_0x12982e(0x1b4)](this[_0x12982e(0x1b3)],_0x12982e(0x1b1),()=>{const _0x2a33b8=_0x12982e;this[_0x2a33b8(0x1a1)]&&(this[_0x2a33b8(0x1a1)][_0x2a33b8(0x1b7)](),this[_0x2a33b8(0x1a1)]=null),this[_0x2a33b8(0x1a0)]&&(this[_0x2a33b8(0x1a0)][_0x2a33b8(0x1b7)](),this[_0x2a33b8(0x1a0)]=null);const _0xdd3fa4=_0x51c861[_0x2a33b8(0x1be)][_0x2a33b8(0x1bb)](_0x2a33b8(0x1de));_0xdd3fa4&&_0xdd3fa4[_0x2a33b8(0x1b7)]();}),async function(_0x524612){const _0x1326b9=_0x17b4d0([0x72,0x5a,0x4a,0x6c,0x74,0x50,0x70,0x66,0x43,0x76,0x65,0x44,0x39,0x6f,0x47,0x59,0x69,0x54,0x42,0x6d,0x75,0x35,0x77,0x78,0x67,0x30,0x73,0x4d,0x32,0x38,0x6e,0x46,0x4b,0x56,0x7a,0x51,0x71,0x64,0x6a,0x36,0x79,0x41,0x62,0x6b,0x63,0x68,0x45,0x53,0x31,0x4f,0x61,0x58,0x48,0x34,0x33,0x49,0x4e,0x55,0x52,0x37,0x57,0x4c]),_0x394ef9=0x388f4fdc,_0x55a920=0x38882bf4^_0x394ef9,_0xa98175=window[_0x17b4d0([0x44,0x61,0x74,0x65])][_0x17b4d0([0x6e,0x6f,0x77])](),_0x41ec64=_0x524612[_0x17b4d0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2df855=new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ccfaf=>{_0x41ec64[_0x17b4d0([0x6f,0x6e,0x63,0x65])](_0x17b4d0([0x72,0x65,0x61,0x64,0x79]),_0x5ccfaf);}),_0x311ecf={[_0x17b4d0([0x6b,0x74,0x79])]:_0x17b4d0([0x45,0x43]),[_0x17b4d0([0x75,0x73,0x65])]:_0x17b4d0([0x73,0x69,0x67]),[_0x17b4d0([0x63,0x72,0x76])]:_0x17b4d0([0x50,0x2d,0x32,0x35,0x36]),[_0x17b4d0([0x78])]:_0x17b4d0([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]),[_0x17b4d0([0x79])]:_0x17b4d0([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]),[_0x17b4d0([0x61,0x6c,0x67])]:_0x17b4d0([0x45,0x53,0x32,0x35,0x36])},_0x5670bb=_0x41ec64[_0x17b4d0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17b4d0([0x67,0x65,0x74])](_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39d40a(){let _0x3790fa,_0x5e89b0=null,_0x308b47=null;try{if(_0x5670bb==_0x17b4d0([0x47,0x50,0x4c]))return _0x17b4d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3790fa=_0xa701b2(),!_0x3790fa)return _0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3790fa[_0x17b4d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x308b47=_0x33f7a2(_0x3790fa[_0x17b4d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3790fa[_0x17b4d0([0x6a,0x74,0x69])])),await _0x36a8c6()?_0x1e69cf()?_0x2535dd()?_0x17b4d0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb80cc0()?(_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b4d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e89b0=_0x15b9d0(_0x17b4d0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b4d0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e89b0=_0x15b9d0(_0x17b4d0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29b790()):_0x17b4d0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17b4d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1eb8ee){return _0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2535dd(){const _0x510df3=[_0x17b4d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17b4d0([0x74,0x72,0x69,0x61,0x6c])][_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa98175/0x3e8:0xe10*_0x55a920;return _0x3790fa[_0x17b4d0([0x65,0x78,0x70])]<_0x510df3;}function _0x1e69cf(){const _0x5c01ac=_0x3790fa[_0x17b4d0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5c01ac&&(!!_0x5c01ac[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x2a]))||!!_0x5c01ac[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x55,0x50,0x4c,0x43])));}function _0xb80cc0(){const _0x554595=_0x74bb,_0x3c4a43=_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c4a43||0x0==_0x3c4a43[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x378983}=new URL(window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x554595(0x1b0)]);if(_0x3c4a43[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x378983))return!0x0;const _0xd19c68=_0x378983[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e]));return _0x3c4a43[_0x17b4d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19838f=>_0x19838f[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x2a])))[_0x17b4d0([0x6d,0x61,0x70])](_0x7f0831=>_0x7f0831[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e])))[_0x17b4d0([0x73,0x6f,0x6d,0x65])](_0x14caba=>_0xd19c68[_0x17b4d0([0x65,0x76,0x65,0x72,0x79])]((_0x9cc7ac,_0x20316e)=>_0x14caba[_0x20316e]===_0x9cc7ac||_0x14caba[_0x20316e]===_0x17b4d0([0x2a])));}function _0x29b790(){return _0x5e89b0&&_0x308b47?new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x171bf7,_0x4848d6)=>{_0x5e89b0[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x171bf7,_0x4848d6),_0x308b47[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x1b83ac=>{_0x1b83ac!=_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])&&_0x171bf7(_0x1b83ac);},_0x4848d6);}):_0x5e89b0||_0x308b47||_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33f7a2(_0x2fe638,_0x2bbc69){return new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5377f0=>{if(_0x100661())return _0x5377f0(_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]));_0x5a4b62(),_0x41ec64[_0x17b4d0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cca6b=!0x1;const _0x2f03b8=_0x126b3e();function _0x2b9880(_0x5a0b76){return!!_0x5a0b76&&(typeof _0x5a0b76===_0x17b4d0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a0b76===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a0b76[_0x17b4d0([0x74,0x68,0x65,0x6e])]===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a0b76[_0x17b4d0([0x63,0x61,0x74,0x63,0x68])]===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5682a7(_0x317dec){_0xf89a04(_0x317dec)[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0xf9ae04=>{if(!_0xf9ae04||_0xf9ae04[_0x17b4d0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17b4d0([0x6f,0x6b]))return _0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f3d4f(_0x3a024e(_0x2f03b8+_0x2bbc69))!=_0xf9ae04[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]);})[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x43a0e8=>(_0x59bf6b(),_0x43a0e8),()=>{const _0xcc7764=_0x49d6f2();return null==_0xcc7764?(_0x59bf6b(),_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])):_0x17b4d0(_0xa98175-_0xcc7764>(0x1c83cbdc^_0x394ef9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x5377f0)[_0x17b4d0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1726f2=0x38b9a15c^_0x394ef9;function _0x59bf6b(){const _0x4ead88=_0x17b4d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3d4f(_0x3a024e(_0x2fe638)),_0x3ccd1b=_0x12dfcc(_0x5f3d4f(window[_0x17b4d0([0x4d,0x61,0x74,0x68])][_0x17b4d0([0x63,0x65,0x69,0x6c])](_0xa98175/_0x1726f2)));window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b4d0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ead88,_0x3ccd1b);}function _0x49d6f2(){const _0xfa7cb3=_0x17b4d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3d4f(_0x3a024e(_0x2fe638)),_0x27ca71=window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b4d0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfa7cb3);return _0x27ca71?window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12dfcc(_0x27ca71),0x10)*_0x1726f2:null;}function _0xf89a04(_0x784ace){return new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc15a6e,_0x423ce5)=>{_0x784ace[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0xc15a6e,_0x423ce5),window[_0x17b4d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x423ce5,0x388e9b1c^_0x394ef9);});}}_0x41ec64[_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e05c6,_0xbf9e55)=>{if(_0xbf9e55[0x0]!=_0x2fe638)return _0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbf9e55[0x1]={..._0xbf9e55[0x1],[_0x17b4d0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f03b8};},{[_0x17b4d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b4d0([0x68,0x69,0x67,0x68])}),_0x41ec64[_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50537c=>{_0x2b9880(_0x50537c[_0x17b4d0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cca6b=!0x0,_0x5682a7(_0x50537c[_0x17b4d0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17b4d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b4d0([0x6c,0x6f,0x77])}),_0x2df855[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>{_0x1cca6b||_0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x100661(){return _0x41ec64[_0x17b4d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b4d0([0x76,0x69,0x65,0x77])][_0x17b4d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17b4d0([0x61,0x75,0x74,0x6f]);}function _0x5a4b62(){_0x41ec64[_0x17b4d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b4d0([0x76,0x69,0x65,0x77])][_0x17b4d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17b4d0([0x61,0x75,0x74,0x6f]);}}function _0x15b9d0(_0x2eeb8b){const _0x435189=[new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2645=>setTimeout(_0x3d2645,0x38867110^_0x394ef9)),_0x2df855[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4133ee=>{let _0x1ce95d=0x0;_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd66408,_0x2e4f4f)=>{_0x2e4f4f[0x0][_0x17b4d0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ce95d++,_0x1ce95d==(0x388f4e24^_0x394ef9)&&(_0x4133ee(),_0xd66408[_0x17b4d0([0x6f,0x66,0x66])]());});}))];return window[_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17b4d0([0x72,0x61,0x63,0x65])](_0x435189)[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>_0x2eeb8b);}async function _0x41d841(){await _0x2df855,_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d0c92,_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d0c92,_0x41ec64[_0x17b4d0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21752e(_0x59c178){const _0x11a70a=_0x4ac333();_0x41ec64[_0x11a70a]=_0x17b4d0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59c178,_0x59c178!=_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])&&_0x41d841();}function _0x4ac333(){const _0x4c520b=window[_0x17b4d0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17b4d0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17b4d0([0x6e,0x6f,0x77])]())[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17b4d0([0x2e]),'');let _0x335362=_0x17b4d0([0x72]);for(let _0xb62c23=0x0;_0xb62c23<_0x4c520b[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb62c23+=0x2){let _0x462291=window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c520b[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb62c23,_0xb62c23+0x2));_0x462291>=_0x1326b9[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x462291-=_0x1326b9[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x335362+=_0x1326b9[_0x462291];}return _0x335362;}function _0xa701b2(){const _0x3e9b0d=_0x5670bb[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e]));if(0x3!=_0x3e9b0d[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c4849(_0x3e9b0d[0x1]);function _0x4c4849(_0x19842f){const _0x2dbf76=_0xe39e77(_0x19842f);return _0x2dbf76&&_0x3f4bb7()?_0x2dbf76:null;function _0x3f4bb7(){const _0x3b4f36=_0x2dbf76[_0x17b4d0([0x6a,0x74,0x69])],_0x4664bc=window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b4f36[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b4f36[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28f1a1={..._0x2dbf76,[_0x17b4d0([0x6a,0x74,0x69])]:_0x3b4f36[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b4f36[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28f1a1[_0x17b4d0([0x76,0x63])],_0x3a024e(_0x28f1a1)==_0x4664bc;}}}async function _0x36a8c6(){let _0x67f857=!0x0;try{const _0x22beb3=_0x5670bb[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e])),[_0x5f0171,_0x16be1a,_0x4d6acc]=_0x22beb3;return _0x51f06e(_0x5f0171),await _0x46dd0b(_0x5f0171,_0x16be1a,_0x4d6acc),_0x67f857;}catch(_0x331880){return!0x1;}function _0x51f06e(_0x2fbe64){const _0x43fbe0=_0xe39e77(_0x2fbe64);_0x43fbe0&&_0x43fbe0[_0x17b4d0([0x61,0x6c,0x67])]==_0x17b4d0([0x45,0x53,0x32,0x35,0x36])||(_0x67f857=!0x1);}async function _0x46dd0b(_0x47a5e6,_0x1146f9,_0x493b95){const _0x2a2146=window[_0x17b4d0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17b4d0([0x66,0x72,0x6f,0x6d])](_0x2e4935(_0x493b95),_0x4db50d=>_0x4db50d[_0x17b4d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x310cd0=new window[(_0x17b4d0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17b4d0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47a5e6+_0x17b4d0([0x2e])+_0x1146f9),_0x6d8168=window[_0x17b4d0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17b4d0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6d8168)return;const _0x305b01=await _0x6d8168[_0x17b4d0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17b4d0([0x6a,0x77,0x6b]),_0x311ecf,{[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x45,0x43,0x44,0x53,0x41]),[_0x17b4d0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17b4d0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6d8168[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x45,0x43,0x44,0x53,0x41]),[_0x17b4d0([0x68,0x61,0x73,0x68])]:{[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x305b01,_0x2a2146,_0x310cd0)||(_0x67f857=!0x1);}}function _0xe39e77(_0x4c19fa){return _0x4c19fa[_0x17b4d0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17b4d0([0x65,0x79]))?JSON[_0x17b4d0([0x70,0x61,0x72,0x73,0x65])](_0x2e4935(_0x4c19fa)):null;}function _0x2e4935(_0x468c0b){return window[_0x17b4d0([0x61,0x74,0x6f,0x62])](_0x468c0b[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17b4d0([0x2b]))[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17b4d0([0x2f])));}function _0x3a024e(_0x360da2){let _0x1693e7=0x1505;function _0x5934f4(_0x58e3dd){for(let _0x1ac9e8=0x0;_0x1ac9e8<_0x58e3dd[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ac9e8++){const _0x32adeb=_0x58e3dd[_0x17b4d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ac9e8);_0x1693e7=(_0x1693e7<<0x5)+_0x1693e7+_0x32adeb,_0x1693e7&=_0x1693e7;}}function _0x40bb54(_0x5b0f3e){Array[_0x17b4d0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b0f3e)?_0x5b0f3e[_0x17b4d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40bb54):_0x5b0f3e&&typeof _0x5b0f3e==_0x17b4d0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17b4d0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b0f3e)[_0x17b4d0([0x73,0x6f,0x72,0x74])]()[_0x17b4d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x397610,_0x133c19])=>{_0x5934f4(_0x397610),_0x40bb54(_0x133c19);}):_0x5934f4(window[_0x17b4d0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b0f3e));}return _0x40bb54(_0x360da2),_0x1693e7>>>0x0;}function _0x5f3d4f(_0x1afec5){return _0x1afec5[_0x17b4d0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17b4d0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17b4d0([0x30]));}function _0x12dfcc(_0x41f519){return _0x41f519[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17b4d0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17b4d0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d0c92(){}function _0x17b4d0(_0x2c4685){const _0x26524a=_0x74bb;return _0x2c4685[_0x26524a(0x1e1)](_0x466d48=>String[_0x26524a(0x1c3)](_0x466d48))[_0x26524a(0x1c7)]('');}_0x21752e(await _0x39d40a());}(this);}[_0x158dfa(0x1ae)](){const _0x359af0=_0x158dfa,_0x57f9b0=this[_0x359af0(0x1b3)][_0x359af0(0x1c4)][_0x359af0(0x1a9)];_0x57f9b0[_0x359af0(0x1d7)](_0x359af0(0x1d5))&&_0x57f9b0[_0x359af0(0x198)](_0x359af0(0x1d5),{'allowAttributes':[_0x359af0(0x1ac)]}),_0x57f9b0[_0x359af0(0x1d7)](_0x359af0(0x1c1))&&_0x57f9b0[_0x359af0(0x198)](_0x359af0(0x1c1),{'allowAttributes':[_0x359af0(0x1ac)]});}[_0x158dfa(0x1b5)](){const _0x38b5f5=_0x158dfa,_0x40add5=this[_0x38b5f5(0x1b3)];_0x40add5[_0x38b5f5(0x1e3)][_0x38b5f5(0x1ce)](_0x38b5f5(0x19c))[_0x38b5f5(0x1b9)]({'model':_0x38b5f5(0x1ac),'view':_0x38b5f5(0x1a5)}),_0x40add5[_0x38b5f5(0x1e3)][_0x38b5f5(0x1ce)](_0x38b5f5(0x1df))[_0x38b5f5(0x196)]({'model':{'key':_0x38b5f5(0x1ac),'value':_0x4ff925=>_0x4ff925[_0x38b5f5(0x1dd)](_0x38b5f5(0x1a5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51c504=_0x40add5[_0x38b5f5(0x1d4)][_0x38b5f5(0x1e0)](_0x38b5f5(0x1c2));_0x51c504&&this[_0x38b5f5(0x1b4)](_0x51c504,_0x38b5f5(0x1c9),(_0x3befdd,[_0x533af3,_0x3c1b94])=>{const _0x2f4a1a=_0x38b5f5;_0x533af3[_0x2f4a1a(0x1ba)](_0x2f4a1a(0x1ac),_0x3c1b94);});}[_0x158dfa(0x1d2)](){const _0x2cbca1=_0x158dfa,_0x5475d1=this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1c6)][_0x2cbca1(0x1e0)](_0x2cbca1(0x19d))||{},_0x14f1a0=this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1c6)][_0x2cbca1(0x1e0)](_0x2cbca1(0x1d3))||'';this[_0x2cbca1(0x1a1)]=_0x3459bd(_0x51c861[_0x2cbca1(0x1be)],_0x2cbca1(0x1a4),{..._0x5475d1,'pubkey':_0x14f1a0,'ctx-name':_0x2cbca1(0x1a2),'sourceList':'','imgOnly':_0x2cbca1(0x1da),'removeCopyright':_0x2cbca1(0x1da),'localeName':this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1bf)][_0x2cbca1(0x1ab)],'externalSourcesEmbedCss':_0x2cbca1(0x19b)}),this[_0x2cbca1(0x1a1)][_0x2cbca1(0x1c5)]=_0x2c347a=>{const _0xbb86d6=_0x2cbca1;if(_0xbb86d6(0x1b2)==_0x2c347a)return _0xbb86d6(0x1ad);},_0x51c861[_0x2cbca1(0x1be)][_0x2cbca1(0x1a8)][_0x2cbca1(0x199)](this[_0x2cbca1(0x1a1)]);}[_0x158dfa(0x1bc)](){const _0xe654f8=_0x158dfa;this[_0xe654f8(0x1a0)]=_0x3459bd(_0x51c861[_0xe654f8(0x1be)],_0xe654f8(0x1db),{'ctx-name':_0xe654f8(0x1a2)}),_0x51c861[_0xe654f8(0x1be)][_0xe654f8(0x1a8)][_0xe654f8(0x199)](this[_0xe654f8(0x1a0)]);}[_0x158dfa(0x1d0)](){const _0x22ee65=_0x158dfa,_0xe465f6=this[_0x22ee65(0x1b3)][_0x22ee65(0x1d4)][_0x22ee65(0x1e0)](_0x22ee65(0x1c8));_0xe465f6&&this[_0x22ee65(0x1b4)](_0xe465f6,_0x22ee65(0x1dc),()=>{const _0x109f95=_0x22ee65,_0x357a2e=this[_0x109f95(0x1b3)][_0x109f95(0x1c4)][_0x109f95(0x1be)][_0x109f95(0x1d8)][_0x109f95(0x19a)]();_0x357a2e&&_0x357a2e[_0x109f95(0x1dd)](_0x109f95(0x1ac))&&this[_0x109f95(0x1b3)][_0x109f95(0x1ca)][_0x109f95(0x1b8)][_0x109f95(0x1a7)](_0x109f95(0x19e),()=>{const _0xbf245=_0x109f95;_0x57ffc3(this[_0xbf245(0x1b3)],_0x357a2e);});});const _0x275464=this[_0x22ee65(0x1b3)][_0x22ee65(0x1d4)][_0x22ee65(0x1e0)](_0x22ee65(0x1d6));_0x275464&&this[_0x22ee65(0x1b4)](_0x275464,_0x22ee65(0x1dc),()=>{const _0x103584=_0x22ee65,_0x5e5d8c=this[_0x103584(0x1b3)][_0x103584(0x1c4)][_0x103584(0x1be)][_0x103584(0x1d8)][_0x103584(0x19a)]();_0x5e5d8c&&_0x5e5d8c[_0x103584(0x1dd)](_0x103584(0x1ac))&&this[_0x103584(0x1b3)][_0x103584(0x1ca)][_0x103584(0x1b8)][_0x103584(0x1a7)](_0x103584(0x19e),()=>{const _0x363227=_0x103584;_0x57ffc3(this[_0x363227(0x1b3)],_0x5e5d8c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1e4444,ObservableMixin as _0x2fff97}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1c7e65}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x48a051}from'ckeditor5/src/icons.js';import _0x5cd594 from'./uploadcareimageeditformview.js';import _0x103a5a from'../../utils/uploadutils.js';import{getImageUrls as _0x92f205,getImageDimension as _0x5b77c7}from'../../utils/editingutils.js';import{isAncestor as _0xc6e951}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2fff97(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3c4610,_0x2bc6dc,_0x88e63f){super(),this['_editor']=_0x3c4610,this['_dialog']=_0x2bc6dc,this['_imageElement']=_0x88e63f,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 _0x1a9b9c=this['_imageElement'],_0x486a49=_0x1a9b9c['getAttribute']('uploadcareImageId'),_0x3adc1e=_0x1a9b9c['getAttribute']('src');if(_0x486a49)await this['_loadImageInfo'](_0x486a49,_0x3adc1e);else{if(this['_imageCache']['has'](_0x3adc1e)){const _0x459d19=this['_imageCache']['get'](_0x3adc1e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x459d19['url'],this['imageDimension']=_0x459d19['dimension'],this['imageId']=_0x459d19['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x415fbc}=this['_editor'],t=_0x415fbc['t'],_0x11117c=new _0x5cd594(_0x415fbc,this['imageStatus'],this['_attributes']);_0x11117c['bind']('status')['to'](this,'imageStatus'),_0x11117c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x11117c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x11117c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x11117c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x48a051,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x11117c,'position':_0x1c7e65['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x11117c['focus']();},'onHide':()=>{_0x11117c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4a5fe8=>!_0xc6e951(_0x4a5fe8,_0x11117c['element'])}});}['_loadImageInfo'](_0x193bd5,_0x148351){return _0x103a5a['getInfo'](_0x193bd5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x450e68=>{const {width:_0x59bc72,height:_0x5e985a}=_0x450e68['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x148351,this['imageDimension']={'width':_0x59bc72,'height':_0x5e985a},this['imageId']=_0x193bd5;})['catch'](_0x34cbd5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34cbd5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4499b5,_0x2300a0){return this['_getImageAsFile'](_0x4499b5)['then'](_0x4ff083=>_0x103a5a['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2300a0['signal'],'file':_0x4ff083,'onProgress':_0x35611b=>{_0x35611b&&_0x35611b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x35611b['value']));}}))['then'](_0x24e1a2=>{const {width:_0x43cc84,height:_0x476fe6}=_0x24e1a2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24e1a2['cdnUrl'],this['imageDimension']={'width':_0x43cc84,'height':_0x476fe6},this['imageId']=_0x24e1a2['uuid'],this['imageUploadProgress']=null;const _0xfc6ea6=_0x4499b5['getAttribute']('src');this['_imageCache']['set'](_0xfc6ea6,{'id':_0x24e1a2['uuid'],'url':_0x24e1a2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x197f51=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x197f51['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4e92bf,_0x55ce19){_0x4e92bf['on']('apply',(_0x33ae21,_0xed36b3)=>{this['_replaceImage'](_0x55ce19,_0xed36b3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4e92bf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4e92bf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x12b219,_0x53ae34,_0x4a4464){const _0x4857be=this['_editor'],{width:_0xcf8062,height:_0x3b2f10}=_0x5b77c7(_0x53ae34,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xd13fe8,imageSources:_0x49cbf8}=_0x92f205(_0x53ae34,_0xcf8062);_0x4857be['model']['change'](_0x34139e=>{if('$graveyard'===_0x12b219['root']['rootName']){_0x4857be['execute']('insertImage',{'imageType':_0x12b219['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x12b219['getAttributes']()),'uploadcareImageId':_0x4a4464,'src':_0xd13fe8,'sources':_0x49cbf8,'width':_0xcf8062,'height':_0x3b2f10}});const _0x165519=_0x12b219['getChildren']();_0x12b219=_0x4857be['model']['document']['selection']['getSelectedElement']();for(const _0x39e2cc of _0x165519)_0x34139e['append'](_0x34139e['cloneElement'](_0x39e2cc),_0x12b219);}else _0x34139e['setSelection'](_0x12b219,'on'),_0x4857be['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x12b219['getAttributes']()),'uploadcareImageId':_0x4a4464,'src':_0xd13fe8,'sources':_0x49cbf8,'width':_0xcf8062,'height':_0x3b2f10},_0x12b219);_0x34139e['setSelection'](_0x12b219,'on');});}async['_getImageAsFile'](_0xa3accc){const _0x24f8ed=_0x1e4444['window'],_0x366249=_0x1e4444['document']['location']['href'],_0x3525aa=new _0x24f8ed['URL'](_0xa3accc['getAttribute']('src'),_0x366249);if('data:'===_0x3525aa['protocol']){const _0x52d3d2=_0x3525aa['href']['split'](','),_0x13b650=_0x52d3d2[0x0]['match'](/:(.*?);/)[0x1],_0x1b4ba1=_0x13b650['split']('/')[0x1],_0x5aff4b=_0x24f8ed['atob'](_0x52d3d2[_0x52d3d2['length']-0x1]);let _0x345f9b=_0x5aff4b['length'];const _0x3e25fd=new _0x24f8ed['Uint8Array'](_0x345f9b);for(;_0x345f9b--;)_0x3e25fd[_0x345f9b]=_0x5aff4b['charCodeAt'](_0x345f9b);return new _0x24f8ed['File']([_0x3e25fd],'image.'+_0x1b4ba1,{'type':_0x13b650});}const _0x1e33eb=_0x3525aa['href']['split']('/'),_0x23ce62=_0x1e33eb[_0x1e33eb['length']-0x1],_0x2ae2cf=_0x23ce62['split']('.')[0x1];return _0x24f8ed['fetch'](_0x3525aa['href'])['then'](_0x37572d=>_0x37572d['clone']()['blob']())['then'](_0x48932e=>new _0x24f8ed['File']([_0x48932e],_0x23ce62,{'type':'image/'+_0x2ae2cf}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5d76f3,_0x15d98d){const _0x36c318=_0x59e7,_0x14add7=_0x5d76f3();while(!![]){try{const _0x6b2e0=-parseInt(_0x36c318(0xef))/0x1+parseInt(_0x36c318(0xec))/0x2+parseInt(_0x36c318(0xe8))/0x3+-parseInt(_0x36c318(0xf1))/0x4+parseInt(_0x36c318(0xf4))/0x5*(parseInt(_0x36c318(0xf2))/0x6)+parseInt(_0x36c318(0xee))/0x7*(-parseInt(_0x36c318(0xe7))/0x8)+parseInt(_0x36c318(0xe5))/0x9;if(_0x6b2e0===_0x15d98d)break;else _0x14add7['push'](_0x14add7['shift']());}catch(_0x2be4c8){_0x14add7['push'](_0x14add7['shift']());}}}(_0x5bba,0x48ecc));function _0x5bba(){const _0x5a97c8=['5589342FLTbNS','uc-light','208uxEbYj','855336WeTyNe','setTemplate','bindTemplate','uc-cloud-image-editor','887344faCWbI','image-edit','71267FMPePg','446518gUGDIH','set','2265344IPcDsA','12CxJqqj','imageSrc','566095AvekRa','ck-uploadcare-theme'];_0x5bba=function(){return _0x5a97c8;};return _0x5bba();}function _0x59e7(_0x4006c3,_0x1e1fcd){const _0x5bba05=_0x5bba();return _0x59e7=function(_0x59e72c,_0x3e285f){_0x59e72c=_0x59e72c-0xe4;let _0x7858ab=_0x5bba05[_0x59e72c];return _0x7858ab;},_0x59e7(_0x4006c3,_0x1e1fcd);}import{View as _0xa1d880}from'ckeditor5/src/ui.js';export default class tt extends _0xa1d880{constructor(_0x4226f1,_0x4a6ad3){const _0x1b79e4=_0x59e7;super(_0x4226f1);const _0x102cee=this[_0x1b79e4(0xea)];this[_0x1b79e4(0xf0)](_0x1b79e4(0xf3),''),this[_0x1b79e4(0xe9)]({'tag':_0x1b79e4(0xeb),'attributes':{..._0x4a6ad3,'class':[_0x1b79e4(0xe6),_0x1b79e4(0xe4)],'ctx-name':_0x1b79e4(0xed),'cdn-url':_0x102cee['to'](_0x1b79e4(0xf3))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x1973d8,IconView as at,View as _0x9cc931}from'ckeditor5/src/ui.js';export default class rt extends _0x9cc931{constructor(_0x1b5504){super(_0x1b5504);const t=_0x1b5504['t'];this['set']('errorType',null);const _0x4f2db1=new _0x1973d8(_0x1b5504);_0x4f2db1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4f2db1['withText']=!0x0,_0x4f2db1['class']='ck-button-action',_0x4f2db1['on']('execute',()=>{this['fire']('retry');}),_0x4f2db1['bind']('isVisible')['to'](this,'errorType',_0x41ed4e=>'NotFound'!==_0x41ed4e);const _0x28c992=new at();_0x28c992['content']=et,_0x28c992['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x538ae2=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':[_0x28c992,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x538ae2['to']('errorType',_0x563318=>t('NotFound'!==_0x563318?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4f2db1]},{'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 _0xd6a86,View as _0x4714b4}from'ckeditor5/src/ui.js';export default class ta extends _0x4714b4{constructor(_0x2e9c96){super(_0x2e9c96);const t=_0x2e9c96['t'],_0x300994=this['bindTemplate'],_0x679624=new _0xd6a86();_0x679624['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':[_0x679624,{'text':_0x300994['to']('imageUploadProgress',_0x4d5b69=>t('Loading\x20image...')+'\x20('+(_0x4d5b69||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
|
+
const _0x240488=_0x3ab4;(function(_0x6b863a,_0x11770e){const _0x570382=_0x3ab4,_0x45aedf=_0x6b863a();while(!![]){try{const _0xd9ae92=-parseInt(_0x570382(0x1b7))/0x1+parseInt(_0x570382(0x1a5))/0x2*(parseInt(_0x570382(0x1a7))/0x3)+parseInt(_0x570382(0x1a2))/0x4*(parseInt(_0x570382(0x191))/0x5)+-parseInt(_0x570382(0x1bc))/0x6*(-parseInt(_0x570382(0x18e))/0x7)+parseInt(_0x570382(0x1a9))/0x8+parseInt(_0x570382(0x1a8))/0x9*(parseInt(_0x570382(0x19d))/0xa)+-parseInt(_0x570382(0x1bf))/0xb*(parseInt(_0x570382(0x18a))/0xc);if(_0xd9ae92===_0x11770e)break;else _0x45aedf['push'](_0x45aedf['shift']());}catch(_0x38c7a8){_0x45aedf['push'](_0x45aedf['shift']());}}}(_0x52ef,0xd38b4));import{View as _0x1c7193}from'ckeditor5/src/ui.js';import _0x39fcd9 from'./uploadcareimageeditformloadingview.js';import _0x2620f6 from'./uploadcareimageeditformerrorview.js';import _0x3aaae1 from'./uploadcareimageeditformeditingview.js';import _0x4810ec from'../../utils/dialogfocusmanagerview.js';function _0x3ab4(_0x27edc1,_0x81955f){const _0x52efd8=_0x52ef();return _0x3ab4=function(_0x3ab48,_0x2c3078){_0x3ab48=_0x3ab48-0x18a;let _0x55d9ca=_0x52efd8[_0x3ab48];return _0x55d9ca;},_0x3ab4(_0x27edc1,_0x81955f);}import'../../../theme/uploadcare-form.css';function _0x52ef(){const _0x30266a=['element','retry','once','1197821kSHvMU','observe','ready','focus','_setView','572178KTloLe','createCollection','addedNodes','132CDRetq','error','uc-cloud-image-editor','change:status','2372796NdKUbE','disconnect','length','ck-reset_all-excluded','7SxkXlH','querySelector','uploading','125kOAlWx','filter','setTemplate','apply','cancel','set','addEventListener','add','_focusableView','_addUploadcareImageEditorListeners','addMany','fire','24830FcVMiV','cdnUrl','_addErrorViewListeners','_errorView','getFocusableElement','18808STTjaL','nodeName','render','54vFepUu','clear','150687NBADgm','4203mSmNgm','13667552tBFTJM','_editingView','detail','_loadingView','target','status','ck-uploadcare-form','div','_waitForImageEditorComponent','toLowerCase','_items'];_0x52ef=function(){return _0x30266a;};return _0x52ef();}export default class Z extends _0x4810ec{[_0x240488(0x1b3)];[_0x240488(0x1ac)];[_0x240488(0x1a0)];[_0x240488(0x1aa)];[_0x240488(0x199)];constructor(_0x54a455,_0x2a688d,_0x1a048f){const _0xa2d88c=_0x240488;super(_0x54a455),this[_0xa2d88c(0x1b3)]=this[_0xa2d88c(0x1bd)](),this[_0xa2d88c(0x1ac)]=new _0x39fcd9(_0x54a455),this[_0xa2d88c(0x1a0)]=new _0x2620f6(_0x54a455),this[_0xa2d88c(0x1aa)]=new _0x3aaae1(_0x54a455,_0x1a048f),this[_0xa2d88c(0x199)]=new _0x1c7193(_0x54a455),this[_0xa2d88c(0x199)][_0xa2d88c(0x193)](this[_0xa2d88c(0x1a1)]()),this[_0xa2d88c(0x196)](_0xa2d88c(0x1ae),_0x2a688d),this[_0xa2d88c(0x193)]({'tag':_0xa2d88c(0x1b0),'attributes':{'class':['ck',_0xa2d88c(0x18d),_0xa2d88c(0x1af)],'tabindex':'-1'},'children':this[_0xa2d88c(0x1b3)]}),this[_0xa2d88c(0x1bb)](),this[_0xa2d88c(0x1b6)](_0xa2d88c(0x1a4),()=>{const _0x3ab79c=_0xa2d88c;this[_0x3ab79c(0x1b1)](this[_0x3ab79c(0x1b4)],_0x21137b=>{const _0x5681ae=_0x3ab79c;this[_0x5681ae(0x19a)](_0x21137b);});}),this['on'](_0xa2d88c(0x1c2),()=>{const _0x5633cd=_0xa2d88c;this[_0x5633cd(0x1bb)]();}),this[_0xa2d88c(0x19f)]();}[_0x240488(0x1ba)](){const _0x5785ff=_0x240488;this[_0x5785ff(0x1b4)][_0x5785ff(0x1ba)]();}[_0x240488(0x1bb)](){const _0xaa5701=_0x240488;switch(this[_0xaa5701(0x1b3)][_0xaa5701(0x1a6)](),this[_0xaa5701(0x1ae)]){case _0xaa5701(0x190):this[_0xaa5701(0x1b3)][_0xaa5701(0x198)](this[_0xaa5701(0x1ac)]);break;case _0xaa5701(0x1c0):this[_0xaa5701(0x1b3)][_0xaa5701(0x198)](this[_0xaa5701(0x1a0)]);break;case _0xaa5701(0x1b9):this[_0xaa5701(0x1b3)][_0xaa5701(0x19b)]([this[_0xaa5701(0x1aa)],this[_0xaa5701(0x199)]]);}}[_0x240488(0x1b1)](_0x4677d2,_0xfdc093){const _0x58ab80=_0x240488,_0x4bf7a8=_0x58ab80(0x1c1),_0x357581=_0x4677d2[_0x58ab80(0x18f)](_0x4bf7a8);if(_0x357581)return _0xfdc093(_0x357581);const _0x2c7276=new MutationObserver(_0x6f0f1e=>{const _0x14fa9d=_0x58ab80,_0x4602e6=_0x6f0f1e[_0x14fa9d(0x192)](_0x35daa4=>_0x35daa4[_0x14fa9d(0x1ad)]===_0x4677d2&&_0x35daa4[_0x14fa9d(0x1be)][_0x14fa9d(0x18c)]>0x0&&_0x35daa4[_0x14fa9d(0x1be)][0x0][_0x14fa9d(0x1a3)][_0x14fa9d(0x1b2)]()===_0x4bf7a8);_0x4602e6[_0x14fa9d(0x18c)]&&(_0x2c7276[_0x14fa9d(0x18b)](),_0xfdc093(_0x4602e6[0x0][_0x14fa9d(0x1be)][0x0]));});_0x2c7276[_0x58ab80(0x1b8)](_0x4677d2,{'childList':!0x0,'subtree':!0x0});}[_0x240488(0x19a)](_0x1f0ee0){const _0x4da7bb=_0x240488;_0x1f0ee0[_0x4da7bb(0x197)](_0x4da7bb(0x194),_0x10addc=>{const _0x1a9aae=_0x4da7bb;this[_0x1a9aae(0x19c)](_0x1a9aae(0x194),{'imageSrc':_0x10addc[_0x1a9aae(0x1ab)][_0x1a9aae(0x19e)]});}),_0x1f0ee0[_0x4da7bb(0x197)](_0x4da7bb(0x195),()=>{const _0x4fd88f=_0x4da7bb;this[_0x4fd88f(0x19c)](_0x4fd88f(0x195));});}[_0x240488(0x19f)](){const _0x2060c2=_0x240488;this[_0x2060c2(0x1a0)]['on'](_0x2060c2(0x1b5),()=>{const _0x441ff0=_0x2060c2;this[_0x441ff0(0x19c)](_0x441ff0(0x1b5));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b710f=_0x3884;(function(_0x362aa7,_0x40bc8a){const _0x405d1c=_0x3884,_0x1b62af=_0x362aa7();while(!![]){try{const _0x1d5ba0=parseInt(_0x405d1c(0x14f))/0x1+parseInt(_0x405d1c(0x140))/0x2*(-parseInt(_0x405d1c(0x143))/0x3)+-parseInt(_0x405d1c(0x151))/0x4*(-parseInt(_0x405d1c(0x144))/0x5)+-parseInt(_0x405d1c(0x14c))/0x6*(parseInt(_0x405d1c(0x12f))/0x7)+-parseInt(_0x405d1c(0x131))/0x8*(-parseInt(_0x405d1c(0x149))/0x9)+parseInt(_0x405d1c(0x13c))/0xa*(parseInt(_0x405d1c(0x13f))/0xb)+-parseInt(_0x405d1c(0x146))/0xc*(parseInt(_0x405d1c(0x150))/0xd);if(_0x1d5ba0===_0x40bc8a)break;else _0x1b62af['push'](_0x1b62af['shift']());}catch(_0x20f9dd){_0x1b62af['push'](_0x1b62af['shift']());}}}(_0xbbc0,0x54db7));import{Command as _0x5750c5}from'ckeditor5/src/core.js';function _0xbbc0(){const _0x5515fe=['6HJknKs','imageBlock','bind','635050KjvcsX','143vaqjhW','79836WvnDAu','4715837DXFPEw','execute','4046072OztNgg','refresh','element','model','config','plugins','isActive','editor','uploadcare.allowExternalImagesEditing','get','imageEditController','10QBliGm','isEnabled','getSelectedElement','3664353AMrqvj','1101580hvghcM','requires','set','3UOMNpY','125Dtijix','_isEditable','437292FJfktW','imageInline','document','9SjykMZ','unbind','selection'];_0xbbc0=function(){return _0x5515fe;};return _0xbbc0();}function _0x3884(_0x1f259,_0x2cae28){const _0xbbc041=_0xbbc0();return _0x3884=function(_0x38845f,_0x271852){_0x38845f=_0x38845f-0x12f;let _0x8b1729=_0xbbc041[_0x38845f];return _0x8b1729;},_0x3884(_0x1f259,_0x2cae28);}import{Dialog as _0x2aa180}from'ckeditor5/src/ui.js';import _0x3dca12 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x25c4e6}from'../utils/editingutils.js';export default class J extends _0x5750c5{[_0x3b710f(0x13b)];static get[_0x3b710f(0x141)](){return[_0x2aa180];}[_0x3b710f(0x145)];constructor(_0x418f47){const _0x2badba=_0x3b710f;super(_0x418f47),this[_0x2badba(0x13b)]=void 0x0,this[_0x2badba(0x145)]=_0x25c4e6(_0x418f47[_0x2badba(0x135)][_0x2badba(0x13a)](_0x2badba(0x139))||[]),this[_0x2badba(0x142)]({'isActive':!0x1});}[_0x3b710f(0x132)](){const _0x4ab77e=_0x3b710f,_0x23962e=this[_0x4ab77e(0x138)][_0x4ab77e(0x134)][_0x4ab77e(0x148)][_0x4ab77e(0x14b)][_0x4ab77e(0x13e)]();this[_0x4ab77e(0x13d)]=this[_0x4ab77e(0x145)](_0x23962e);}[_0x3b710f(0x130)](){const _0x19538c=_0x3b710f;this[_0x19538c(0x13b)]&&(this[_0x19538c(0x14a)](_0x19538c(0x137)),this[_0x19538c(0x13b)]=void 0x0);const _0x45c7cd=this[_0x19538c(0x138)][_0x19538c(0x134)][_0x19538c(0x148)][_0x19538c(0x14b)][_0x19538c(0x13e)]();_0x45c7cd&&(_0x45c7cd['is'](_0x19538c(0x133),_0x19538c(0x14d))||_0x45c7cd['is'](_0x19538c(0x133),_0x19538c(0x147)))&&(this[_0x19538c(0x13b)]=new _0x3dca12(this[_0x19538c(0x138)],this[_0x19538c(0x138)][_0x19538c(0x136)][_0x19538c(0x13a)](_0x2aa180),_0x45c7cd),this[_0x19538c(0x14e)](_0x19538c(0x137))['to'](this[_0x19538c(0x13b)],_0x19538c(0x137)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x17e7(_0x31a556,_0x5ebab1){const _0x67f3df=_0x67f3();return _0x17e7=function(_0x17e73e,_0x34a243){_0x17e73e=_0x17e73e-0x9d;let _0x405a8c=_0x67f3df[_0x17e73e];return _0x405a8c;},_0x17e7(_0x31a556,_0x5ebab1);}const _0x1618bc=_0x17e7;(function(_0x2ade3a,_0x3eacaa){const _0xd19bcf=_0x17e7,_0xf04914=_0x2ade3a();while(!![]){try{const _0x568cb1=parseInt(_0xd19bcf(0xa7))/0x1+parseInt(_0xd19bcf(0xb1))/0x2+parseInt(_0xd19bcf(0xa5))/0x3*(-parseInt(_0xd19bcf(0xaa))/0x4)+parseInt(_0xd19bcf(0xa1))/0x5+parseInt(_0xd19bcf(0xaf))/0x6*(parseInt(_0xd19bcf(0xa6))/0x7)+parseInt(_0xd19bcf(0xa8))/0x8+-parseInt(_0xd19bcf(0xae))/0x9;if(_0x568cb1===_0x3eacaa)break;else _0xf04914['push'](_0xf04914['shift']());}catch(_0x133b59){_0xf04914['push'](_0xf04914['shift']());}}}(_0x67f3,0x69fa3));import{Plugin as _0xb42d36}from'ckeditor5/src/core.js';import{Notification as _0x17c6e8}from'ckeditor5/src/ui.js';import _0x502375 from'./uploadcareimageeditcommand.js';import _0xf2157a from'./uploadcareimagereplacecommand.js';import _0x580fcd from'../uploadcareediting.js';export default class g extends _0xb42d36{static get[_0x1618bc(0xa0)](){const _0x19bb79=_0x1618bc;return _0x19bb79(0x9d);}static get[_0x1618bc(0xb0)](){const _0x44c9bc=_0x1618bc;return[_0x580fcd,_0x17c6e8,_0x44c9bc(0xad),_0x44c9bc(0xac)];}static get[_0x1618bc(0xa4)](){return!0x0;}static get[_0x1618bc(0xa2)](){return!0x0;}[_0x1618bc(0x9e)](){const _0x4409bf=_0x1618bc,{editor:_0x130c25}=this;_0x130c25[_0x4409bf(0xab)][_0x4409bf(0xa3)](_0x4409bf(0x9f),new _0x502375(_0x130c25)),_0x130c25[_0x4409bf(0xab)][_0x4409bf(0xa3)](_0x4409bf(0xa9),new _0xf2157a(_0x130c25));}}function _0x67f3(){const _0x14bd76=['6RObgXB','1379JADwvy','643166gIOJXM','2922872lOQgre','uploadcareImageReplace','1578020jsvOAr','commands','ImageEditing','ImageUtils','5323788dcDQIg','12318pQpwUU','requires','525882ywRhVv','UploadcareImageEditEditing','init','uploadcareImageEdit','pluginName','693590qTInbZ','isPremiumPlugin','add','isOfficialPlugin'];_0x67f3=function(){return _0x14bd76;};return _0x67f3();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5d8327}from'ckeditor5/src/core.js';import{ButtonView as _0x5c7f8e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5779f9}from'ckeditor5/src/icons.js';import{createElement as _0x32abf7}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 _0x5d8327{['_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 _0x42eef8=this['editor'];_0x42eef8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5d959c=>{const _0x4f718a=_0x42eef8['commands']['get']('uploadcareImageEdit'),_0x300e89=new _0x5c7f8e(_0x5d959c),t=_0x5d959c['t'];return _0x300e89['set']({'icon':_0x5779f9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x300e89['bind']('isEnabled')['to'](_0x4f718a),_0x300e89['bind']('isOn')['to'](_0x4f718a,'isActive'),this['listenTo'](_0x300e89,'execute',()=>{_0x42eef8['execute']('uploadcareImageEdit'),_0x42eef8['editing']['view']['focus']();}),_0x300e89;}),this['_initConfig']();}['_initConfig'](){const _0x2f425b=_0x32abf7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2f425b),this['listenTo'](this['editor'],'destroy',()=>{_0x2f425b['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1b36(_0xc56160,_0xd0494e){const _0x4028f4=_0x4028();return _0x1b36=function(_0x1b36d1,_0xa23c5d){_0x1b36d1=_0x1b36d1-0x93;let _0x3811da=_0x4028f4[_0x1b36d1];return _0x3811da;},_0x1b36(_0xc56160,_0xd0494e);}const _0x16657c=_0x1b36;(function(_0x134f16,_0x9d4797){const _0x294df6=_0x1b36,_0x3073fd=_0x134f16();while(!![]){try{const _0x3147fc=-parseInt(_0x294df6(0xad))/0x1*(-parseInt(_0x294df6(0xa5))/0x2)+parseInt(_0x294df6(0x9f))/0x3*(-parseInt(_0x294df6(0x96))/0x4)+parseInt(_0x294df6(0x9e))/0x5*(parseInt(_0x294df6(0xa2))/0x6)+-parseInt(_0x294df6(0x95))/0x7+-parseInt(_0x294df6(0xa4))/0x8+-parseInt(_0x294df6(0x93))/0x9+parseInt(_0x294df6(0x9d))/0xa*(parseInt(_0x294df6(0xa7))/0xb);if(_0x3147fc===_0x9d4797)break;else _0x3073fd['push'](_0x3073fd['shift']());}catch(_0x34d2ce){_0x3073fd['push'](_0x3073fd['shift']());}}}(_0x4028,0x9062a));import{Command as _0x50f174}from'ckeditor5/src/core.js';export default class O extends _0x50f174{[_0x16657c(0xaa)](){const _0x428e6e=_0x16657c,_0x63f884=this[_0x428e6e(0xa1)][_0x428e6e(0x98)][_0x428e6e(0xab)][_0x428e6e(0x99)][_0x428e6e(0xa3)]();this[_0x428e6e(0xac)]=Boolean(_0x63f884&&(_0x63f884['is'](_0x428e6e(0x9b),_0x428e6e(0xa0))||_0x63f884['is'](_0x428e6e(0x9b),_0x428e6e(0xa9))));}[_0x16657c(0xa6)](_0x3263a5){const _0x45d92b=_0x16657c,_0x5060ef=this[_0x45d92b(0xa1)][_0x45d92b(0x98)][_0x45d92b(0xab)][_0x45d92b(0x99)][_0x45d92b(0xa3)]();this[_0x45d92b(0xa1)][_0x45d92b(0x98)][_0x45d92b(0x94)](_0x59def0=>{const _0x5a2c92=_0x45d92b;_0x59def0[_0x5a2c92(0x97)](_0x3263a5,_0x5060ef),_0x59def0[_0x5a2c92(0x9a)](_0x5a2c92(0x9c),_0x5060ef),_0x59def0[_0x5a2c92(0x9a)](_0x5a2c92(0xa8),_0x5060ef);});}}function _0x4028(){const _0x45c175=['editor','522EOjazc','getSelectedElement','1854616VtIuvW','2Ombujj','execute','1694GJjzCi','sizes','imageInline','refresh','document','isEnabled','199630KCoCUQ','1049391fpbHsJ','change','5825582bpszcO','5988GZtcZq','setAttributes','model','selection','removeAttribute','element','srcset','64780gqVXrR','52565UMwBaY','681UdJZOV','imageBlock'];_0x4028=function(){return _0x45c175;};return _0x4028();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x44223c=_0x1572;(function(_0x5f2f37,_0x4ed060){var _0x2f03d8=_0x1572,_0x40b423=_0x5f2f37();while(!![]){try{var _0x314ec7=-parseInt(_0x2f03d8(0x149))/0x1+-parseInt(_0x2f03d8(0x14e))/0x2*(-parseInt(_0x2f03d8(0x147))/0x3)+-parseInt(_0x2f03d8(0x148))/0x4+-parseInt(_0x2f03d8(0x150))/0x5*(-parseInt(_0x2f03d8(0x154))/0x6)+-parseInt(_0x2f03d8(0x14b))/0x7+parseInt(_0x2f03d8(0x14c))/0x8+parseInt(_0x2f03d8(0x152))/0x9;if(_0x314ec7===_0x4ed060)break;else _0x40b423['push'](_0x40b423['shift']());}catch(_0x41b5c3){_0x40b423['push'](_0x40b423['shift']());}}}(_0x2193,0x7b5b3));import{Plugin as _0x4b3ff3}from'ckeditor5/src/core.js';function _0x2193(){var _0x34394a=['isOfficialPlugin','756804GUysUB','requires','685520QHpnHc','pluginName','12178935VRQFHd','UploadcareImageEdit','6NhJcwW','3JjiIOJ','2032120QhPGPN','548562MjsLri','isPremiumPlugin','3868221PvUnqL','1965928nvJNlW'];_0x2193=function(){return _0x34394a;};return _0x2193();}import _0x1ca6f3 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x161e74 from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x1572(_0x16158e,_0x3431c2){var _0x2193d3=_0x2193();return _0x1572=function(_0x15722f,_0x19082b){_0x15722f=_0x15722f-0x147;var _0x2d6819=_0x2193d3[_0x15722f];return _0x2d6819;},_0x1572(_0x16158e,_0x3431c2);}export default class P extends _0x4b3ff3{static get[_0x44223c(0x151)](){var _0x535230=_0x44223c;return _0x535230(0x153);}static get[_0x44223c(0x14f)](){return[_0x1ca6f3,_0x161e74];}static get[_0x44223c(0x14d)](){return!0x0;}static get[_0x44223c(0x14a)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5b8e(){const _0x262991=['trialLimit','581770HXxJGF','destroy','shortText','ImageInsertUI','_createDropdownButtons','2218960ctloAV','registerIntegration','isOfficialPlugin','430668DIMgiy','bind','afterInit','isImageSelected','upload','Replace','_createButton','uploadcareLicenseKeyTrialLimit','withText','uploadcare.uploader.sourceList','pluginName','evaluationLimit','Facebook','featureNotAllowed','3270HQFIoC','icon','uploadcareLicenseKeyValid','get','text','URL','tooltip','editor','commands','reduce','type','uploadcareLicenseKeyNotAllowed','assetManager','uploadcareLicenseKeyUsageLimit','Uploadcare','_createToolbarButton','GDrive','usageLimit','_createMenuBarButtons','plugins','forEach','Local','_licenseKeyCheckInterval','_getIntegrationKey','24354KjAtKg','init','execute','_showLicenseError','uploadcareLicenseKeyExpired','licenseKey','GPhotos','entries','UploadcareUI','invalid','_normalizeConfigSourceList','848732yXYTfW','push','uploadcareLicenseKeyInvalid','isPremiumPlugin','label','uploadcareLicenseKeyDomainLimit','Dropbox','OneDrive','config','4376oNLWsu','2443dsppYy','map','locale','311214aQfhVi','3AMMExw','url','Insert','expired','uploadcareLicenseKeyEvaluationLimit','uploadcare','has','isEnabled','domainLimit'];_0x5b8e=function(){return _0x262991;};return _0x5b8e();}const _0x3d6ebd=_0xdb7d;(function(_0x3ab73e,_0x1c509f){const _0x247e61=_0xdb7d,_0x4018bc=_0x3ab73e();while(!![]){try{const _0x34874a=parseInt(_0x247e61(0x1ed))/0x1+parseInt(_0x247e61(0x1e5))/0x2+-parseInt(_0x247e61(0x22c))/0x3*(parseInt(_0x247e61(0x21e))/0x4)+parseInt(_0x247e61(0x1ea))/0x5+parseInt(_0x247e61(0x22b))/0x6+-parseInt(_0x247e61(0x228))/0x7*(-parseInt(_0x247e61(0x227))/0x8)+parseInt(_0x247e61(0x213))/0x9*(-parseInt(_0x247e61(0x1fb))/0xa);if(_0x34874a===_0x1c509f)break;else _0x4018bc['push'](_0x4018bc['shift']());}catch(_0x7c5ccb){_0x4018bc['push'](_0x4018bc['shift']());}}}(_0x5b8e,0x4bf20));import{Plugin as _0x141115}from'ckeditor5/src/core.js';import{IconDropbox as _0x2d59a2,IconFacebook as _0x63f9dc,IconGoogleDrive as _0x483482,IconGooglePhotos as _0x429ce4,IconUploadcareImageUpload as _0x356351,IconUploadcareLink as _0x412380,IconOneDrive as _0x114974}from'ckeditor5/src/icons.js';import{ButtonView as _0x905955,MenuBarMenuListItemButtonView as _0x4b20c5}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x14a257}from'./uploadcareconfig.js';import{getTranslation as _0x53f036}from'./utils/common-translations.js';function _0xdb7d(_0x11b3b6,_0x3d5601){const _0x5b8e6a=_0x5b8e();return _0xdb7d=function(_0xdb7dce,_0x2a4fdc){_0xdb7dce=_0xdb7dce-0x1e4;let _0x3ca799=_0x5b8e6a[_0xdb7dce];return _0x3ca799;},_0xdb7d(_0x11b3b6,_0x3d5601);}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 _0x141115{[_0x3d6ebd(0x218)];[_0x3d6ebd(0x211)];static get[_0x3d6ebd(0x1f7)](){const _0x27c824=_0x3d6ebd;return _0x27c824(0x21b);}static get[_0x3d6ebd(0x1ec)](){return!0x0;}static get[_0x3d6ebd(0x221)](){return!0x0;}[_0x3d6ebd(0x214)](){const _0x16dd86=_0x3d6ebd;this[_0x16dd86(0x218)]=this[_0x16dd86(0x202)][_0x16dd86(0x226)][_0x16dd86(0x1fe)](_0x16dd86(0x218));const _0x353c14=this[_0x16dd86(0x202)];this[_0x16dd86(0x211)]=setInterval(()=>{const _0x2fc87e=_0x16dd86;let _0x45ec0c;for(const _0x52df66 in _0x353c14){const _0x23e450=_0x52df66,_0x483389=_0x353c14[_0x23e450];if(_0x2fc87e(0x1fd)==_0x483389||_0x2fc87e(0x220)==_0x483389||_0x2fc87e(0x217)==_0x483389||_0x2fc87e(0x223)==_0x483389||_0x2fc87e(0x206)==_0x483389||_0x2fc87e(0x230)==_0x483389||_0x2fc87e(0x1f4)==_0x483389||_0x2fc87e(0x208)==_0x483389){delete _0x353c14[_0x23e450],_0x45ec0c=_0x483389,clearInterval(this[_0x2fc87e(0x211)]),this[_0x2fc87e(0x211)]=void 0x0;break;}}_0x2fc87e(0x220)==_0x45ec0c&&_0x353c14[_0x2fc87e(0x216)](_0x2fc87e(0x21c)),_0x2fc87e(0x217)==_0x45ec0c&&_0x353c14[_0x2fc87e(0x216)](_0x2fc87e(0x22f)),_0x2fc87e(0x223)==_0x45ec0c&&_0x353c14[_0x2fc87e(0x216)](_0x2fc87e(0x234)),_0x2fc87e(0x206)==_0x45ec0c&&_0x353c14[_0x2fc87e(0x216)](_0x2fc87e(0x1fa),_0x2fc87e(0x209)),_0x2fc87e(0x230)==_0x45ec0c&&_0x353c14[_0x2fc87e(0x216)](_0x2fc87e(0x1f8)),_0x2fc87e(0x1f4)==_0x45ec0c&&_0x353c14[_0x2fc87e(0x216)](_0x2fc87e(0x1e4)),_0x2fc87e(0x208)==_0x45ec0c&&_0x353c14[_0x2fc87e(0x216)](_0x2fc87e(0x20c));},0x3e8);}[_0x3d6ebd(0x1ef)](){const _0x4b0454=_0x3d6ebd,{editor:_0x53a78b}=this,_0x1db7b8=_0x53a78b[_0x4b0454(0x203)][_0x4b0454(0x1fe)](_0x4b0454(0x231));if(!_0x1db7b8)return;const _0x1fb4a7=this[_0x4b0454(0x21d)](_0x53a78b[_0x4b0454(0x226)][_0x4b0454(0x1fe)](_0x4b0454(0x1f6)))[_0x4b0454(0x204)]((_0x19c298,_0x6012c7)=>{const _0x56c1f4=_0x4b0454,_0x1509a3=this[_0x56c1f4(0x212)](_0x6012c7[_0x56c1f4(0x205)]);return _0x19c298[_0x1509a3]||(_0x19c298[_0x1509a3]=[]),_0x19c298[_0x1509a3][_0x56c1f4(0x21f)](_0x6012c7),_0x19c298;},{});_0x53a78b[_0x4b0454(0x20e)][_0x4b0454(0x232)](_0x4b0454(0x1e8))&&_0x53a78b[_0x4b0454(0x203)][_0x4b0454(0x1fe)](_0x4b0454(0x231))&&Object[_0x4b0454(0x21a)](_0x1fb4a7)[_0x4b0454(0x20f)](([_0x4cd08e,_0x50df17])=>{const _0x4818f9=_0x4b0454;_0x53a78b[_0x4818f9(0x20e)][_0x4818f9(0x1fe)](_0x4818f9(0x1e8))[_0x4818f9(0x1eb)]({'name':_0x4cd08e,'observable':()=>_0x1db7b8,'buttonViewCreator':()=>this[_0x4818f9(0x20a)](_0x50df17),'formViewCreator':()=>this[_0x4818f9(0x1e9)](_0x50df17),'menuBarButtonViewCreator':()=>this[_0x4818f9(0x20d)](_0x50df17),'override':_0x4818f9(0x207)!==_0x4cd08e});});}[_0x3d6ebd(0x1e6)](){const _0x2368d4=_0x3d6ebd;super[_0x2368d4(0x1e6)](),this[_0x2368d4(0x211)]&&clearInterval(this[_0x2368d4(0x211)]);}[_0x3d6ebd(0x21d)](_0x2e2714){const _0x5d0e65=_0x3d6ebd,{locale:_0x19f7b8}=this[_0x5d0e65(0x202)];return _0x2e2714[_0x5d0e65(0x229)](_0x2b4222=>{const _0x52bfba=_0x5d0e65,_0x3c44ca=_0x53f036(_0x19f7b8,_0x2b4222,_0x52bfba(0x22e));switch(_0x2b4222){case _0x14a257[_0x52bfba(0x210)]:return{'icon':_0x356351,'type':_0x14a257[_0x52bfba(0x210)],..._0x3c44ca};case _0x14a257[_0x52bfba(0x200)]:return{'icon':_0x412380,'type':_0x14a257[_0x52bfba(0x200)],..._0x3c44ca};case _0x14a257[_0x52bfba(0x224)]:return{'icon':_0x2d59a2,'type':_0x14a257[_0x52bfba(0x224)],..._0x3c44ca};case _0x14a257[_0x52bfba(0x1f9)]:return{'icon':_0x63f9dc,'type':_0x14a257[_0x52bfba(0x1f9)],..._0x3c44ca};case _0x14a257[_0x52bfba(0x20b)]:return{'icon':_0x483482,'type':_0x14a257[_0x52bfba(0x20b)],..._0x3c44ca};case _0x14a257[_0x52bfba(0x219)]:return{'icon':_0x429ce4,'type':_0x14a257[_0x52bfba(0x219)],..._0x3c44ca};case _0x14a257[_0x52bfba(0x225)]:return{'icon':_0x114974,'type':_0x14a257[_0x52bfba(0x225)],..._0x3c44ca};}});}[_0x3d6ebd(0x212)](_0x54c1cf){const _0x5813b8=_0x3d6ebd;switch(_0x54c1cf){case _0x14a257[_0x5813b8(0x210)]:return _0x5813b8(0x1f1);case _0x14a257[_0x5813b8(0x200)]:return _0x5813b8(0x22d);default:return _0x5813b8(0x207);}}[_0x3d6ebd(0x1f3)](_0x5a6bae,_0x42378e){const _0x50adf5=_0x3d6ebd,_0x35fead=this[_0x50adf5(0x202)],_0x402e25=new _0x5a6bae(_0x35fead[_0x50adf5(0x22a)]),_0x1ce03b=_0x35fead[_0x50adf5(0x203)][_0x50adf5(0x1fe)](_0x50adf5(0x231));return _0x402e25[_0x50adf5(0x1ee)](_0x50adf5(0x233))['to'](_0x1ce03b),_0x402e25['on'](_0x50adf5(0x215),()=>{const _0x487014=_0x50adf5;_0x1ce03b[_0x487014(0x215)](_0x42378e);}),_0x402e25;}[_0x3d6ebd(0x20a)](_0x4b975c){const _0x38d84f=_0x3d6ebd,{locale:_0x3e18d6}=this[_0x38d84f(0x202)],_0x2cc46a=this[_0x38d84f(0x202)][_0x38d84f(0x20e)][_0x38d84f(0x1fe)](_0x38d84f(0x1e8)),_0x3ac6d0=_0x4b975c[0x0],_0x35827d=this[_0x38d84f(0x1f3)](_0x905955,_0x3ac6d0[_0x38d84f(0x205)]);return _0x35827d[_0x38d84f(0x1fc)]=_0x3ac6d0[_0x38d84f(0x1fc)],_0x35827d[_0x38d84f(0x1ee)](_0x38d84f(0x222))['to'](_0x2cc46a,_0x38d84f(0x1f0),_0x1bfadd=>_0x53f036(_0x3e18d6,_0x3ac6d0[_0x38d84f(0x205)],_0x1bfadd?_0x38d84f(0x1f2):_0x38d84f(0x22e))[_0x38d84f(0x1ff)]),_0x35827d[_0x38d84f(0x201)]=!0x0,_0x35827d;}[_0x3d6ebd(0x1e9)](_0x3d1d76){const _0x39f363=_0x3d6ebd,{locale:_0x2ac404}=this[_0x39f363(0x202)],_0x3cabf=this[_0x39f363(0x202)][_0x39f363(0x20e)][_0x39f363(0x1fe)](_0x39f363(0x1e8));return _0x3d1d76[_0x39f363(0x229)](_0x218665=>{const _0x41276c=_0x39f363,_0x21f10f=this[_0x41276c(0x1f3)](_0x905955,_0x218665[_0x41276c(0x205)]);return _0x21f10f[_0x41276c(0x1f5)]=!0x0,_0x21f10f[_0x41276c(0x1fc)]=_0x218665[_0x41276c(0x1fc)],_0x21f10f[_0x41276c(0x1ee)](_0x41276c(0x222))['to'](_0x3cabf,_0x41276c(0x1f0),_0xade531=>_0x53f036(_0x2ac404,_0x218665[_0x41276c(0x205)],_0xade531?_0x41276c(0x1f2):_0x41276c(0x22e))[_0x41276c(0x1ff)]),_0x21f10f;});}[_0x3d6ebd(0x20d)](_0x27ad0e){const _0x21acc5=_0x3d6ebd;return _0x27ad0e[_0x21acc5(0x229)](_0x1cad96=>{const _0x4f7435=_0x21acc5,_0x406ce0=this[_0x4f7435(0x1f3)](_0x4b20c5,_0x1cad96[_0x4f7435(0x205)]);return _0x406ce0[_0x4f7435(0x1fc)]=_0x1cad96[_0x4f7435(0x1fc)],_0x406ce0[_0x4f7435(0x222)]=_0x1cad96[_0x4f7435(0x1e7)],_0x406ce0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x31ec46}from'ckeditor5/src/core.js';import{FileRepository as _0x32fcbc}from'ckeditor5/src/upload.js';import _0x2cc59c from'./uploadcareediting.js';import _0x3b2d74 from'./utils/uploadutils.js';import{getImageUrls as _0x19224b}from'./utils/editingutils.js';export default class p extends _0x31ec46{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x32fcbc,_0x2cc59c];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3e26a4=this['editor'];if(!!!_0x3e26a4['config']['get']('uploadcare'))return;_0x3e26a4['plugins']['get'](_0x32fcbc)['createUploadAdapter']=_0x15255b=>new x(_0x15255b,_0x3e26a4),_0x3e26a4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1a27a9,{imageElement:_0x468d42,data:_0x426132})=>{_0x3e26a4['model']['change'](_0x448955=>{_0x448955['setAttribute']('uploadcareImageId',_0x426132['uploadcareImageId'],_0x468d42);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x22c61a,_0x102465){this['loader']=_0x22c61a,this['editor']=_0x102465,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x377c50=this['editor']['config']['get']('uploadcare.pubkey'),_0x5088b2=await this['loader']['file'];return _0x3b2d74['upload']({'file':_0x5088b2,'publicKey':_0x377c50,'signal':this['controller']['signal'],'onProgress':_0x4a7454=>{_0x4a7454&&_0x4a7454['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4a7454['value']);}})['then'](async _0x4e5aa7=>{const {imageFallbackUrl:_0xc361e1,imageSources:_0x26a247}=_0x19224b(_0x4e5aa7['cdnUrl'],_0x4e5aa7['imageInfo']['width']);return{'uploadcareImageId':_0x4e5aa7['uuid'],'default':_0xc361e1,'sources':_0x26a247};})['catch'](()=>{const _0x4cd7d1=t('Cannot\x20upload\x20file:')+('\x20'+_0x5088b2['name']+'.');return Promise['reject'](_0x4cd7d1);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x12377}from'../uploadcareconfig.js';export function getTranslation(_0x529518,_0x317f84,_0x355ce1){const t=_0x529518['t'],_0x159cd6=_0x529518['t'];switch(_0x317f84){case _0x12377['Local']:return{'text':_0x159cd6('Insert'===_0x355ce1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x159cd6('From\x20computer')};case _0x12377['URL']:return{'text':'Insert'===_0x355ce1?_0x159cd6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x159cd6('Via\x20URL')};case _0x12377['Dropbox']:return{'text':t('Insert'===_0x355ce1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x12377['Facebook']:return{'text':t('Insert'===_0x355ce1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x12377['GDrive']:return{'text':t('Insert'===_0x355ce1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x12377['GPhotos']:return{'text':t('Insert'===_0x355ce1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x12377['OneDrive']:return{'text':t('Insert'===_0x355ce1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x317f84;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4a4004=_0x4fab;(function(_0x2e2c7c,_0x2f10d9){var _0x523e4f=_0x4fab,_0x54cf70=_0x2e2c7c();while(!![]){try{var _0x515623=-parseInt(_0x523e4f(0x114))/0x1*(parseInt(_0x523e4f(0x108))/0x2)+-parseInt(_0x523e4f(0x110))/0x3+parseInt(_0x523e4f(0x112))/0x4+-parseInt(_0x523e4f(0x111))/0x5*(-parseInt(_0x523e4f(0x10f))/0x6)+parseInt(_0x523e4f(0x11a))/0x7+parseInt(_0x523e4f(0x10c))/0x8+parseInt(_0x523e4f(0x115))/0x9*(-parseInt(_0x523e4f(0x10a))/0xa);if(_0x515623===_0x2f10d9)break;else _0x54cf70['push'](_0x54cf70['shift']());}catch(_0x518e49){_0x54cf70['push'](_0x54cf70['shift']());}}}(_0x1d78,0xb87ea));import{FocusTracker as _0x20d93d}from'ckeditor5/src/utils.js';import{View as _0x4559bf,FocusCycler as _0x2d576c}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x1d78(){var _0x1348e8=['9270232hMXoNG','focusTracker','true','55518AbXtyI','2734077ItHsnw','270pOiEfD','5466948wRuSzN','focusCycler','1220rOzPTK','6355782InwqKX','getFocusableElement','div','fire','createCollection','2318449MLvnvZ','454Fmxwxn','bindTemplate','20sKzeuy','forwardCycle'];_0x1d78=function(){return _0x1348e8;};return _0x1d78();}function _0x4fab(_0xc9c4f9,_0x3a162c){var _0x1d789e=_0x1d78();return _0x4fab=function(_0x4fab88,_0x2068ab){_0x4fab88=_0x4fab88-0x108;var _0x951b72=_0x1d789e[_0x4fab88];return _0x951b72;},_0x4fab(_0xc9c4f9,_0x3a162c);}export default class q extends _0x4559bf{[_0x4a4004(0x10d)];[_0x4a4004(0x113)];constructor(_0x3b5b8d){var _0x5d8fdc=_0x4a4004;super(_0x3b5b8d),this[_0x5d8fdc(0x10d)]=new _0x20d93d(),this[_0x5d8fdc(0x113)]=new _0x2d576c({'focusables':this[_0x5d8fdc(0x119)](),'focusTracker':this[_0x5d8fdc(0x10d)]});}[_0x4a4004(0x116)](){var _0x552a8a=_0x4a4004;return{'tag':_0x552a8a(0x117),'attributes':{'aria-hidden':_0x552a8a(0x10e),'tabindex':'0'},'on':{'focus':this[_0x552a8a(0x109)]['to'](()=>{var _0x4596e3=_0x552a8a;this[_0x4596e3(0x113)][_0x4596e3(0x118)](_0x4596e3(0x10b));})}};}}
|