@ckeditor/ckeditor5-uploadcare 44.2.0-alpha.9 → 44.2.1-alpha.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 +8 -8
- 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.d.ts +7 -3
- 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/uploadcareconfig.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x47d3a1,_0x383497){var _0x33bef1=_0x5506,_0x42bb79=_0x47d3a1();while(!![]){try{var _0x4bfe48=parseInt(_0x33bef1(0x1c7))/0x1*(parseInt(_0x33bef1(0x1be))/0x2)+parseInt(_0x33bef1(0x1c9))/0x3+parseInt(_0x33bef1(0x1c0))/0x4+-parseInt(_0x33bef1(0x1bc))/0x5+-parseInt(_0x33bef1(0x1ca))/0x6+-parseInt(_0x33bef1(0x1cd))/0x7+-parseInt(_0x33bef1(0x1d0))/0x8*(-parseInt(_0x33bef1(0x1d1))/0x9);if(_0x4bfe48===_0x383497)break;else _0x42bb79['push'](_0x42bb79['shift']());}catch(_0x3928d8){_0x42bb79['push'](_0x42bb79['shift']());}}}(_0x1a67,0x4b884));export var UploadcareSource;function _0x1a67(){var _0x523015=['282111YQxQqy','1769694hcstFb','URL','Local','2683261Szoorb','Facebook','url','8UbcTJR','4312233cNgHBx','GPhotos','1024095bIoYVn','Dropbox','4MbVWqg','onedrive','72468DwQiFB','facebook','local','OneDrive','GDrive','gdrive','dropbox','300590zGwHVb','gphotos'];_0x1a67=function(){return _0x523015;};return _0x1a67();}function _0x5506(_0x12e570,_0x1a96de){var _0x1a67b2=_0x1a67();return _0x5506=function(_0x5506b2,_0x5360fb){_0x5506b2=_0x5506b2-0x1bc;var _0x41169c=_0x1a67b2[_0x5506b2];return _0x41169c;},_0x5506(_0x12e570,_0x1a96de);}!function(_0x3237d3){var _0x3df43e=_0x5506;_0x3237d3[_0x3df43e(0x1cc)]=_0x3df43e(0x1c2),_0x3237d3[_0x3df43e(0x1cb)]=_0x3df43e(0x1cf),_0x3237d3[_0x3df43e(0x1bd)]=_0x3df43e(0x1c6),_0x3237d3[_0x3df43e(0x1c4)]=_0x3df43e(0x1c5),_0x3237d3[_0x3df43e(0x1ce)]=_0x3df43e(0x1c1),_0x3237d3[_0x3df43e(0x1d2)]=_0x3df43e(0x1c8),_0x3237d3[_0x3df43e(0x1c3)]=_0x3df43e(0x1bf);}(UploadcareSource||(UploadcareSource={}));
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x52640d=_0x4299;(function(_0xd2efa2,_0x17788b){const _0x2f8cbc=_0x4299,_0x533425=_0xd2efa2();while(!![]){try{const _0x55ca90=-parseInt(_0x2f8cbc(0x157))/0x1+-parseInt(_0x2f8cbc(0x12e))/0x2+-parseInt(_0x2f8cbc(0x14d))/0x3+-parseInt(_0x2f8cbc(0x128))/0x4+parseInt(_0x2f8cbc(0x15e))/0x5+parseInt(_0x2f8cbc(0x126))/0x6+parseInt(_0x2f8cbc(0x13b))/0x7;if(_0x55ca90===_0x17788b)break;else _0x533425['push'](_0x533425['shift']());}catch(_0x3f29e4){_0x533425['push'](_0x533425['shift']());}}}(_0x81f4,0xaca2e));import{Plugin as _0xd62f35}from'ckeditor5/src/core.js';import{Dialog as _0x4e2802}from'ckeditor5/src/ui.js';import{createElement as _0x4b74a7,global as _0xeacc1,uid as _0x29774b}from'ckeditor5/src/utils.js';function _0x81f4(){const _0x1df1dc=['2454016OaynMc','_ctxElement','iconHrefResolver','upcast','replaceImageSource','isRegistered','467550kcwJpM','pluginName','getSelectedElement','get','view','afterInit','uploadcare.pubkey','uploadcareImageReplace','isOfficialPlugin','for','_initCtx','downcast','conversion','14958748PtRsDd','#uc-icon-arrow-down','UploadcareEditing','_initImageProcessingIndicator','href','once','ctxElement','data-uc-image-id','requires','add','join','schema','uc-upload-ctx-provider','commands','uploadcareImageId','locale','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','insertImage','2784057pAPOiX','config','_initConfig','uc-config','closeMax','querySelector','configElement','fromCharCode','listenTo','PictureEditing','374069ptbKXq','remove','removeAttribute','uploadcare.uploader','extend','contentLanguage','_initConversion','512520SXoYgQ','model','body','map','isPremiumPlugin','imageBlock','attributeToAttribute','appendChild','cleanupImage','imageInline','elementToAttribute','_configElement','editor','_initSchema','true','input[uploadcare-file-input]','getAttribute','editing','execute','destroy','selection','render','uploadcare','init','document','3702102WMfuPs','uploader'];_0x81f4=function(){return _0x1df1dc;};return _0x81f4();}function _0x4299(_0x58b13a,_0x2184cf){const _0x81f4f1=_0x81f4();return _0x4299=function(_0x42999f,_0x3e8a7d){_0x42999f=_0x42999f-0x120;let _0x27bdff=_0x81f4f1[_0x42999f];return _0x27bdff;},_0x4299(_0x58b13a,_0x2184cf);}import _0x39e751 from'./uploadcarecommand.js';import _0x399c4a from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4bb13b}from'./utils/editingutils.js';export default class i extends _0xd62f35{constructor(){const _0x193463=_0x4299;super(...arguments),this[_0x193463(0x169)]=null,this[_0x193463(0x129)]=null;}static get[_0x52640d(0x12f)](){const _0x465ac4=_0x52640d;return _0x465ac4(0x13d);}static get[_0x52640d(0x143)](){const _0xc28c8a=_0x52640d;return[_0xc28c8a(0x156),_0x399c4a,_0x4e2802];}static get[_0x52640d(0x136)](){return!0x0;}static get[_0x52640d(0x162)](){return!0x0;}get[_0x52640d(0x153)](){const _0x53073b=_0x52640d;return this[_0x53073b(0x169)];}get[_0x52640d(0x141)](){const _0x29a329=_0x52640d;return this[_0x29a329(0x129)];}[_0x52640d(0x124)](){const _0x14d6ff=_0x52640d,_0x1eefbb=this[_0x14d6ff(0x16a)];_0x1eefbb[_0x14d6ff(0x148)][_0x14d6ff(0x144)](_0x14d6ff(0x123),new _0x39e751(_0x1eefbb));}[_0x52640d(0x133)](){const _0x4f7a82=_0x52640d;this[_0x4f7a82(0x16b)](),this[_0x4f7a82(0x15d)](),this[_0x4f7a82(0x14f)](),this[_0x4f7a82(0x138)](),this[_0x4f7a82(0x13e)](),this[_0x4f7a82(0x155)](this[_0x4f7a82(0x16a)],_0x4f7a82(0x120),()=>{const _0x42fe0b=_0x4f7a82;this[_0x42fe0b(0x169)]&&(this[_0x42fe0b(0x169)][_0x42fe0b(0x158)](),this[_0x42fe0b(0x169)]=null),this[_0x42fe0b(0x129)]&&(this[_0x42fe0b(0x129)][_0x42fe0b(0x158)](),this[_0x42fe0b(0x129)]=null);const _0x491cb7=_0xeacc1[_0x42fe0b(0x125)][_0x42fe0b(0x152)](_0x42fe0b(0x16d));_0x491cb7&&_0x491cb7[_0x42fe0b(0x158)]();}),async function(_0x286b11){const _0x432600=_0x18d878([0x65,0x66,0x39,0x50,0x52,0x51,0x57,0x4c,0x6e,0x59,0x6f,0x48,0x64,0x38,0x58,0x37,0x55,0x63,0x78,0x75,0x44,0x6c,0x68,0x33,0x56,0x69,0x43,0x32,0x71,0x41,0x31,0x73,0x6b,0x79,0x4d,0x62,0x30,0x70,0x47,0x77,0x6d,0x5a,0x46,0x4a,0x35,0x34,0x6a,0x4e,0x76,0x4f,0x36,0x49,0x4b,0x61,0x42,0x7a,0x67,0x45,0x74,0x54,0x53,0x72]),_0x56a9eb=0x24bae9cd,_0x3e5234=0x24bdb76d^_0x56a9eb,_0x406d7f=window[_0x18d878([0x44,0x61,0x74,0x65])][_0x18d878([0x6e,0x6f,0x77])](),_0x3cd44f=_0x286b11[_0x18d878([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48ab62=new window[(_0x18d878([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b6434=>{_0x3cd44f[_0x18d878([0x6f,0x6e,0x63,0x65])](_0x18d878([0x72,0x65,0x61,0x64,0x79]),_0x5b6434);}),_0x2fdc38={[_0x18d878([0x6b,0x74,0x79])]:_0x18d878([0x45,0x43]),[_0x18d878([0x75,0x73,0x65])]:_0x18d878([0x73,0x69,0x67]),[_0x18d878([0x63,0x72,0x76])]:_0x18d878([0x50,0x2d,0x32,0x35,0x36]),[_0x18d878([0x78])]:_0x18d878([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]),[_0x18d878([0x79])]:_0x18d878([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]),[_0x18d878([0x61,0x6c,0x67])]:_0x18d878([0x45,0x53,0x32,0x35,0x36])},_0x2d31e6=_0x3cd44f[_0x18d878([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18d878([0x67,0x65,0x74])](_0x18d878([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10090e(){let _0x240ea5,_0x41f77c=null,_0x19013d=null;try{if(_0x2d31e6==_0x18d878([0x47,0x50,0x4c]))return _0x18d878([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x240ea5=_0x14a141(),!_0x240ea5)return _0x18d878([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x240ea5[_0x18d878([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x19013d=_0x4f6978(_0x240ea5[_0x18d878([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x240ea5[_0x18d878([0x6a,0x74,0x69])])),await _0x4a5fc7()?_0x3faa4e()?_0x379079()?_0x18d878([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39de52()?(_0x240ea5[_0x18d878([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18d878([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41f77c=_0x3dc539(_0x18d878([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x240ea5[_0x18d878([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18d878([0x74,0x72,0x69,0x61,0x6c])&&(_0x41f77c=_0x3dc539(_0x18d878([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e78df()):_0x18d878([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18d878([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18d878([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x428d53){return _0x18d878([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x379079(){const _0x1b8fb2=[_0x18d878([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18d878([0x74,0x72,0x69,0x61,0x6c])][_0x18d878([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x240ea5[_0x18d878([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x406d7f/0x3e8:0xe10*_0x3e5234;return _0x240ea5[_0x18d878([0x65,0x78,0x70])]<_0x1b8fb2;}function _0x3faa4e(){const _0x19b467=_0x240ea5[_0x18d878([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x19b467&&(!!_0x19b467[_0x18d878([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18d878([0x2a]))||!!_0x19b467[_0x18d878([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18d878([0x55,0x50,0x4c,0x43])));}function _0x39de52(){const _0x13b8d8=_0x4299,_0x2d2749=_0x240ea5[_0x18d878([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d2749||0x0==_0x2d2749[_0x18d878([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32855c}=new URL(window[_0x18d878([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x13b8d8(0x13f)]);if(_0x2d2749[_0x18d878([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32855c))return!0x0;const _0x5523a5=_0x32855c[_0x18d878([0x73,0x70,0x6c,0x69,0x74])](_0x18d878([0x2e]));return _0x2d2749[_0x18d878([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ef427=>_0x3ef427[_0x18d878([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18d878([0x2a])))[_0x18d878([0x6d,0x61,0x70])](_0xab236c=>_0xab236c[_0x18d878([0x73,0x70,0x6c,0x69,0x74])](_0x18d878([0x2e])))[_0x18d878([0x73,0x6f,0x6d,0x65])](_0x2f6275=>_0x5523a5[_0x18d878([0x65,0x76,0x65,0x72,0x79])]((_0x131fda,_0x3390a6)=>_0x2f6275[_0x3390a6]===_0x131fda||_0x2f6275[_0x3390a6]===_0x18d878([0x2a])));}function _0x5e78df(){return _0x41f77c&&_0x19013d?new window[(_0x18d878([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a4a5f,_0x23aa18)=>{_0x41f77c[_0x18d878([0x74,0x68,0x65,0x6e])](_0x1a4a5f,_0x23aa18),_0x19013d[_0x18d878([0x74,0x68,0x65,0x6e])](_0x2b0574=>{_0x2b0574!=_0x18d878([0x56,0x61,0x6c,0x69,0x64])&&_0x1a4a5f(_0x2b0574);},_0x23aa18);}):_0x41f77c||_0x19013d||_0x18d878([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f6978(_0x14bdec,_0x1a2fda){return new window[(_0x18d878([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f607e=>{if(_0x534705())return _0x3f607e(_0x18d878([0x56,0x61,0x6c,0x69,0x64]));_0x376cbb(),_0x3cd44f[_0x18d878([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18d878([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5efd1b=!0x1;const _0x45490c=_0x29774b();function _0x249144(_0x42aa18){return!!_0x42aa18&&(typeof _0x42aa18===_0x18d878([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x42aa18===_0x18d878([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x42aa18[_0x18d878([0x74,0x68,0x65,0x6e])]===_0x18d878([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x42aa18[_0x18d878([0x63,0x61,0x74,0x63,0x68])]===_0x18d878([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1584db(_0x45dc0c){_0x27cdbe(_0x45dc0c)[_0x18d878([0x74,0x68,0x65,0x6e])](_0x3bf2f5=>{if(!_0x3bf2f5||_0x3bf2f5[_0x18d878([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18d878([0x6f,0x6b]))return _0x18d878([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4dec0c(_0x1acb22(_0x45490c+_0x1a2fda))!=_0x3bf2f5[_0x18d878([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18d878([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18d878([0x56,0x61,0x6c,0x69,0x64]);})[_0x18d878([0x74,0x68,0x65,0x6e])](_0x1149e9=>(_0x2f1eb9(),_0x1149e9),()=>{const _0x2aa33f=_0x47bd2c();return null==_0x2aa33f?(_0x2f1eb9(),_0x18d878([0x56,0x61,0x6c,0x69,0x64])):_0x18d878(_0x406d7f-_0x2aa33f>(0xb66dcd^_0x56a9eb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18d878([0x74,0x68,0x65,0x6e])](_0x3f607e)[_0x18d878([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f607e(_0x18d878([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x335623=0x248c074d^_0x56a9eb;function _0x2f1eb9(){const _0x4febfc=_0x18d878([0x6c,0x6c,0x63,0x74,0x2d])+_0x4dec0c(_0x1acb22(_0x14bdec)),_0x4f1bd2=_0x3bd447(_0x4dec0c(window[_0x18d878([0x4d,0x61,0x74,0x68])][_0x18d878([0x63,0x65,0x69,0x6c])](_0x406d7f/_0x335623)));window[_0x18d878([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18d878([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4febfc,_0x4f1bd2);}function _0x47bd2c(){const _0x174dbf=_0x18d878([0x6c,0x6c,0x63,0x74,0x2d])+_0x4dec0c(_0x1acb22(_0x14bdec)),_0x236166=window[_0x18d878([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18d878([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x174dbf);return _0x236166?window[_0x18d878([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bd447(_0x236166),0x10)*_0x335623:null;}function _0x27cdbe(_0x3c2429){return new window[(_0x18d878([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54dd5a,_0x5e34a5)=>{_0x3c2429[_0x18d878([0x74,0x68,0x65,0x6e])](_0x54dd5a,_0x5e34a5),window[_0x18d878([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e34a5,0x24bb3d0d^_0x56a9eb);});}}_0x3cd44f[_0x18d878([0x6f,0x6e])](_0x18d878([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a0550,_0x5ac763)=>{if(_0x5ac763[0x0]!=_0x14bdec)return _0x3f607e(_0x18d878([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ac763[0x1]={..._0x5ac763[0x1],[_0x18d878([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45490c};},{[_0x18d878([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18d878([0x68,0x69,0x67,0x68])}),_0x3cd44f[_0x18d878([0x6f,0x6e])](_0x18d878([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57a54c=>{_0x249144(_0x57a54c[_0x18d878([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5efd1b=!0x0,_0x1584db(_0x57a54c[_0x18d878([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18d878([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18d878([0x6c,0x6f,0x77])}),_0x48ab62[_0x18d878([0x74,0x68,0x65,0x6e])](()=>{_0x5efd1b||_0x3f607e(_0x18d878([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x534705(){return _0x3cd44f[_0x18d878([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18d878([0x76,0x69,0x65,0x77])][_0x18d878([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18d878([0x61,0x75,0x74,0x6f]);}function _0x376cbb(){_0x3cd44f[_0x18d878([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18d878([0x76,0x69,0x65,0x77])][_0x18d878([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18d878([0x61,0x75,0x74,0x6f]);}}function _0x3dc539(_0x3a62d2){const _0x32386c=[new window[(_0x18d878([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x384b3e=>setTimeout(_0x384b3e,0x24b3d701^_0x56a9eb)),_0x48ab62[_0x18d878([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18d878([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a53b1=>{let _0x509284=0x0;_0x3cd44f[_0x18d878([0x6d,0x6f,0x64,0x65,0x6c])][_0x18d878([0x6f,0x6e])](_0x18d878([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38ef95,_0xc72c0e)=>{_0xc72c0e[0x0][_0x18d878([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x509284++,_0x509284==(0x24bae835^_0x56a9eb)&&(_0x3a53b1(),_0x38ef95[_0x18d878([0x6f,0x66,0x66])]());});}))];return window[_0x18d878([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18d878([0x72,0x61,0x63,0x65])](_0x32386c)[_0x18d878([0x74,0x68,0x65,0x6e])](()=>_0x3a62d2);}async function _0x1c23d1(){await _0x48ab62,_0x3cd44f[_0x18d878([0x6d,0x6f,0x64,0x65,0x6c])][_0x18d878([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d7228,_0x3cd44f[_0x18d878([0x6d,0x6f,0x64,0x65,0x6c])][_0x18d878([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d7228,_0x3cd44f[_0x18d878([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18d878([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7b0f9(_0x6005d7){const _0x35a360=_0x924e65();_0x3cd44f[_0x35a360]=_0x18d878([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6005d7,_0x6005d7!=_0x18d878([0x56,0x61,0x6c,0x69,0x64])&&_0x1c23d1();}function _0x924e65(){const _0x2a9098=window[_0x18d878([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18d878([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18d878([0x6e,0x6f,0x77])]())[_0x18d878([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18d878([0x2e]),'');let _0x1810c8=_0x18d878([0x65]);for(let _0x35a721=0x0;_0x35a721<_0x2a9098[_0x18d878([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35a721+=0x2){let _0x160397=window[_0x18d878([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a9098[_0x18d878([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35a721,_0x35a721+0x2));_0x160397>=_0x432600[_0x18d878([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x160397-=_0x432600[_0x18d878([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1810c8+=_0x432600[_0x160397];}return _0x1810c8;}function _0x14a141(){const _0x21bd6c=_0x2d31e6[_0x18d878([0x73,0x70,0x6c,0x69,0x74])](_0x18d878([0x2e]));if(0x3!=_0x21bd6c[_0x18d878([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42cc11(_0x21bd6c[0x1]);function _0x42cc11(_0x4df6c1){const _0x1a4c3a=_0x4d4f49(_0x4df6c1);return _0x1a4c3a&&_0x571224()?_0x1a4c3a:null;function _0x571224(){const _0x499689=_0x1a4c3a[_0x18d878([0x6a,0x74,0x69])],_0x6fbfc9=window[_0x18d878([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x499689[_0x18d878([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x499689[_0x18d878([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58ad77={..._0x1a4c3a,[_0x18d878([0x6a,0x74,0x69])]:_0x499689[_0x18d878([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x499689[_0x18d878([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58ad77[_0x18d878([0x76,0x63])],_0x1acb22(_0x58ad77)==_0x6fbfc9;}}}async function _0x4a5fc7(){let _0x18afb0=!0x0;try{const _0x5ec921=_0x2d31e6[_0x18d878([0x73,0x70,0x6c,0x69,0x74])](_0x18d878([0x2e])),[_0x27fc97,_0x5c709a,_0x72c0cb]=_0x5ec921;return _0x1530b6(_0x27fc97),await _0x5f52e8(_0x27fc97,_0x5c709a,_0x72c0cb),_0x18afb0;}catch(_0x6a2a84){return!0x1;}function _0x1530b6(_0x5c0d38){const _0x584863=_0x4d4f49(_0x5c0d38);_0x584863&&_0x584863[_0x18d878([0x61,0x6c,0x67])]==_0x18d878([0x45,0x53,0x32,0x35,0x36])||(_0x18afb0=!0x1);}async function _0x5f52e8(_0x34d4e6,_0x5f58cd,_0x5c0e3a){const _0x59be5c=window[_0x18d878([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18d878([0x66,0x72,0x6f,0x6d])](_0x4a620a(_0x5c0e3a),_0x2cc59f=>_0x2cc59f[_0x18d878([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2eda0c=new window[(_0x18d878([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18d878([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34d4e6+_0x18d878([0x2e])+_0x5f58cd),_0x542b5f=window[_0x18d878([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18d878([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x542b5f)return;const _0x2f376f=await _0x542b5f[_0x18d878([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18d878([0x6a,0x77,0x6b]),_0x2fdc38,{[_0x18d878([0x6e,0x61,0x6d,0x65])]:_0x18d878([0x45,0x43,0x44,0x53,0x41]),[_0x18d878([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18d878([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18d878([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x542b5f[_0x18d878([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18d878([0x6e,0x61,0x6d,0x65])]:_0x18d878([0x45,0x43,0x44,0x53,0x41]),[_0x18d878([0x68,0x61,0x73,0x68])]:{[_0x18d878([0x6e,0x61,0x6d,0x65])]:_0x18d878([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f376f,_0x59be5c,_0x2eda0c)||(_0x18afb0=!0x1);}}function _0x4d4f49(_0x5f5389){return _0x5f5389[_0x18d878([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18d878([0x65,0x79]))?JSON[_0x18d878([0x70,0x61,0x72,0x73,0x65])](_0x4a620a(_0x5f5389)):null;}function _0x4a620a(_0x35b413){return window[_0x18d878([0x61,0x74,0x6f,0x62])](_0x35b413[_0x18d878([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18d878([0x2b]))[_0x18d878([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18d878([0x2f])));}function _0x1acb22(_0xad91e1){let _0xd3dad8=0x1505;function _0x4c67d7(_0x40a262){for(let _0x4cc89c=0x0;_0x4cc89c<_0x40a262[_0x18d878([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cc89c++){const _0xa7e057=_0x40a262[_0x18d878([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cc89c);_0xd3dad8=(_0xd3dad8<<0x5)+_0xd3dad8+_0xa7e057,_0xd3dad8&=_0xd3dad8;}}function _0x2d8488(_0x1f542a){Array[_0x18d878([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f542a)?_0x1f542a[_0x18d878([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d8488):_0x1f542a&&typeof _0x1f542a==_0x18d878([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18d878([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f542a)[_0x18d878([0x73,0x6f,0x72,0x74])]()[_0x18d878([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b5bff,_0x4f7ef8])=>{_0x4c67d7(_0x5b5bff),_0x2d8488(_0x4f7ef8);}):_0x4c67d7(window[_0x18d878([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f542a));}return _0x2d8488(_0xad91e1),_0xd3dad8>>>0x0;}function _0x4dec0c(_0x1e31cc){return _0x1e31cc[_0x18d878([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18d878([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18d878([0x30]));}function _0x3bd447(_0x12e3f8){return _0x12e3f8[_0x18d878([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18d878([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18d878([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d7228(){}function _0x18d878(_0x5e73fe){const _0x236cb1=_0x4299;return _0x5e73fe[_0x236cb1(0x161)](_0x17a2e3=>String[_0x236cb1(0x154)](_0x17a2e3))[_0x236cb1(0x145)]('');}_0x7b0f9(await _0x10090e());}(this);}[_0x52640d(0x16b)](){const _0x4eb684=_0x52640d,_0x2ccb21=this[_0x4eb684(0x16a)][_0x4eb684(0x15f)][_0x4eb684(0x146)];_0x2ccb21[_0x4eb684(0x12d)](_0x4eb684(0x163))&&_0x2ccb21[_0x4eb684(0x15b)](_0x4eb684(0x163),{'allowAttributes':[_0x4eb684(0x149)]}),_0x2ccb21[_0x4eb684(0x12d)](_0x4eb684(0x167))&&_0x2ccb21[_0x4eb684(0x15b)](_0x4eb684(0x167),{'allowAttributes':[_0x4eb684(0x149)]});}[_0x52640d(0x15d)](){const _0x328be2=_0x52640d,_0x5cd2c3=this[_0x328be2(0x16a)];_0x5cd2c3[_0x328be2(0x13a)][_0x328be2(0x137)](_0x328be2(0x139))[_0x328be2(0x164)]({'model':_0x328be2(0x149),'view':_0x328be2(0x142)}),_0x5cd2c3[_0x328be2(0x13a)][_0x328be2(0x137)](_0x328be2(0x12b))[_0x328be2(0x168)]({'model':{'key':_0x328be2(0x149),'value':_0x1408c7=>_0x1408c7[_0x328be2(0x16e)](_0x328be2(0x142))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x590a27=_0x5cd2c3[_0x328be2(0x148)][_0x328be2(0x131)](_0x328be2(0x12c));_0x590a27&&this[_0x328be2(0x155)](_0x590a27,_0x328be2(0x166),(_0xdcaaac,[_0x411603,_0x254c53])=>{const _0x2ae4fa=_0x328be2;_0x411603[_0x2ae4fa(0x159)](_0x2ae4fa(0x149),_0x254c53);});}[_0x52640d(0x14f)](){const _0x197a2d=_0x52640d,_0x4eb477=this[_0x197a2d(0x16a)][_0x197a2d(0x14e)][_0x197a2d(0x131)](_0x197a2d(0x15a))||{},_0x4a4e5f=this[_0x197a2d(0x16a)][_0x197a2d(0x14e)][_0x197a2d(0x131)](_0x197a2d(0x134))||'';this[_0x197a2d(0x169)]=_0x4b74a7(_0xeacc1[_0x197a2d(0x125)],_0x197a2d(0x150),{..._0x4eb477,'pubkey':_0x4a4e5f,'ctx-name':_0x197a2d(0x127),'sourceList':'','imgOnly':_0x197a2d(0x16c),'removeCopyright':_0x197a2d(0x16c),'localeName':this[_0x197a2d(0x16a)][_0x197a2d(0x14a)][_0x197a2d(0x15c)],'externalSourcesEmbedCss':_0x197a2d(0x14b)}),this[_0x197a2d(0x169)][_0x197a2d(0x12a)]=_0x525f5c=>{const _0x249e74=_0x197a2d;if(_0x249e74(0x151)==_0x525f5c)return _0x249e74(0x13c);},_0xeacc1[_0x197a2d(0x125)][_0x197a2d(0x160)][_0x197a2d(0x165)](this[_0x197a2d(0x169)]);}[_0x52640d(0x138)](){const _0x1cf8c1=_0x52640d;this[_0x1cf8c1(0x129)]=_0x4b74a7(_0xeacc1[_0x1cf8c1(0x125)],_0x1cf8c1(0x147),{'ctx-name':_0x1cf8c1(0x127)}),_0xeacc1[_0x1cf8c1(0x125)][_0x1cf8c1(0x160)][_0x1cf8c1(0x165)](this[_0x1cf8c1(0x129)]);}[_0x52640d(0x13e)](){const _0x57c20c=_0x52640d,_0x30f0f7=this[_0x57c20c(0x16a)][_0x57c20c(0x148)][_0x57c20c(0x131)](_0x57c20c(0x14c));_0x30f0f7&&this[_0x57c20c(0x155)](_0x30f0f7,_0x57c20c(0x170),()=>{const _0x4aca9d=_0x57c20c,_0x59b9f4=this[_0x4aca9d(0x16a)][_0x4aca9d(0x15f)][_0x4aca9d(0x125)][_0x4aca9d(0x121)][_0x4aca9d(0x130)]();_0x59b9f4&&_0x59b9f4[_0x4aca9d(0x16e)](_0x4aca9d(0x149))&&this[_0x4aca9d(0x16a)][_0x4aca9d(0x16f)][_0x4aca9d(0x132)][_0x4aca9d(0x140)](_0x4aca9d(0x122),()=>{const _0x1e6267=_0x4aca9d;_0x4bb13b(this[_0x1e6267(0x16a)],_0x59b9f4);});});const _0x149741=this[_0x57c20c(0x16a)][_0x57c20c(0x148)][_0x57c20c(0x131)](_0x57c20c(0x135));_0x149741&&this[_0x57c20c(0x155)](_0x149741,_0x57c20c(0x170),()=>{const _0x14567b=_0x57c20c,_0x277380=this[_0x14567b(0x16a)][_0x14567b(0x15f)][_0x14567b(0x125)][_0x14567b(0x121)][_0x14567b(0x130)]();_0x277380&&_0x277380[_0x14567b(0x16e)](_0x14567b(0x149))&&this[_0x14567b(0x16a)][_0x14567b(0x16f)][_0x14567b(0x132)][_0x14567b(0x140)](_0x14567b(0x122),()=>{const _0x17972f=_0x14567b;_0x4bb13b(this[_0x17972f(0x16a)],_0x277380);});});}}
|
|
23
|
+
const _0x52b411=_0x5d78;(function(_0x5c6b39,_0x2cd6f){const _0x162a45=_0x5d78,_0x45006a=_0x5c6b39();while(!![]){try{const _0x4d76d8=parseInt(_0x162a45(0x212))/0x1*(parseInt(_0x162a45(0x21e))/0x2)+parseInt(_0x162a45(0x1de))/0x3*(parseInt(_0x162a45(0x21a))/0x4)+parseInt(_0x162a45(0x1fe))/0x5*(-parseInt(_0x162a45(0x21c))/0x6)+parseInt(_0x162a45(0x215))/0x7*(parseInt(_0x162a45(0x230))/0x8)+parseInt(_0x162a45(0x1f9))/0x9*(parseInt(_0x162a45(0x1f3))/0xa)+parseInt(_0x162a45(0x20a))/0xb+-parseInt(_0x162a45(0x1f0))/0xc;if(_0x4d76d8===_0x2cd6f)break;else _0x45006a['push'](_0x45006a['shift']());}catch(_0x4809b3){_0x45006a['push'](_0x45006a['shift']());}}}(_0x57e4,0xdd0e1));function _0x5d78(_0x4cec42,_0x39382f){const _0x57e425=_0x57e4();return _0x5d78=function(_0x5d78a2,_0x62969){_0x5d78a2=_0x5d78a2-0x1de;let _0x12bb38=_0x57e425[_0x5d78a2];return _0x12bb38;},_0x5d78(_0x4cec42,_0x39382f);}import{Plugin as _0x20938}from'ckeditor5/src/core.js';import{Dialog as _0x3f0ebe}from'ckeditor5/src/ui.js';import{createElement as _0x337040,global as _0x4edf7f,uid as _0x4749d5}from'ckeditor5/src/utils.js';import _0x34ed84 from'./uploadcarecommand.js';import _0x3177fb from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x558016}from'./utils/editingutils.js';export default class i extends _0x20938{constructor(){const _0x41c1ca=_0x5d78;super(...arguments),this[_0x41c1ca(0x1e7)]=null,this[_0x41c1ca(0x1fa)]=null;}static get[_0x52b411(0x224)](){const _0xe27693=_0x52b411;return _0xe27693(0x1ee);}static get[_0x52b411(0x217)](){const _0x415818=_0x52b411;return[_0x415818(0x1e1),_0x3177fb,_0x3f0ebe];}static get[_0x52b411(0x22f)](){return!0x0;}static get[_0x52b411(0x227)](){return!0x0;}get[_0x52b411(0x22e)](){const _0x5a610f=_0x52b411;return this[_0x5a610f(0x1e7)];}get[_0x52b411(0x226)](){const _0x42c3f0=_0x52b411;return this[_0x42c3f0(0x1fa)];}[_0x52b411(0x1ea)](){const _0x46cc6a=_0x52b411,_0x3d8fa3=this[_0x46cc6a(0x213)];_0x3d8fa3[_0x46cc6a(0x206)][_0x46cc6a(0x20b)](_0x46cc6a(0x1fd),new _0x34ed84(_0x3d8fa3));}[_0x52b411(0x1e6)](){const _0x1e4475=_0x52b411;this[_0x1e4475(0x233)](),this[_0x1e4475(0x22d)](),this[_0x1e4475(0x205)](),this[_0x1e4475(0x22c)](),this[_0x1e4475(0x1ff)](),this[_0x1e4475(0x204)](this[_0x1e4475(0x213)],_0x1e4475(0x203),()=>{const _0x43cefe=_0x1e4475;this[_0x43cefe(0x1e7)]&&(this[_0x43cefe(0x1e7)][_0x43cefe(0x214)](),this[_0x43cefe(0x1e7)]=null),this[_0x43cefe(0x1fa)]&&(this[_0x43cefe(0x1fa)][_0x43cefe(0x214)](),this[_0x43cefe(0x1fa)]=null);const _0x366bc5=_0x4edf7f[_0x43cefe(0x1e5)][_0x43cefe(0x1f7)](_0x43cefe(0x1e0));_0x366bc5&&_0x366bc5[_0x43cefe(0x214)]();}),async function(_0x46501e){const _0x369a6=_0x1c8ed8([0x54,0x46,0x39,0x62,0x65,0x61,0x30,0x4e,0x6b,0x4f,0x32,0x56,0x38,0x59,0x78,0x51,0x4c,0x48,0x66,0x68,0x72,0x52,0x64,0x57,0x6d,0x42,0x63,0x45,0x6e,0x4a,0x55,0x4d,0x49,0x73,0x43,0x69,0x71,0x7a,0x6a,0x76,0x58,0x75,0x79,0x50,0x6f,0x70,0x44,0x4b,0x67,0x74,0x37,0x31,0x36,0x34,0x47,0x33,0x53,0x77,0x6c,0x41,0x35,0x5a]),_0x4e717c=0x166d1d32,_0xd8edad=0x166a42c2^_0x4e717c,_0x6d2b54=window[_0x1c8ed8([0x44,0x61,0x74,0x65])][_0x1c8ed8([0x6e,0x6f,0x77])](),_0x41ff87=_0x46501e[_0x1c8ed8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x455977=new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22733b=>{_0x41ff87[_0x1c8ed8([0x6f,0x6e,0x63,0x65])](_0x1c8ed8([0x72,0x65,0x61,0x64,0x79]),_0x22733b);}),_0x19dd48={[_0x1c8ed8([0x6b,0x74,0x79])]:_0x1c8ed8([0x45,0x43]),[_0x1c8ed8([0x75,0x73,0x65])]:_0x1c8ed8([0x73,0x69,0x67]),[_0x1c8ed8([0x63,0x72,0x76])]:_0x1c8ed8([0x50,0x2d,0x32,0x35,0x36]),[_0x1c8ed8([0x78])]:_0x1c8ed8([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]),[_0x1c8ed8([0x79])]:_0x1c8ed8([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]),[_0x1c8ed8([0x61,0x6c,0x67])]:_0x1c8ed8([0x45,0x53,0x32,0x35,0x36])},_0x346094=_0x41ff87[_0x1c8ed8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c8ed8([0x67,0x65,0x74])](_0x1c8ed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x37de4b(){let _0x201890,_0x774849=null,_0x4f8d5b=null;try{if(_0x346094==_0x1c8ed8([0x47,0x50,0x4c]))return _0x1c8ed8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x201890=_0x412326(),!_0x201890)return _0x1c8ed8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x201890[_0x1c8ed8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f8d5b=_0x5cab35(_0x201890[_0x1c8ed8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x201890[_0x1c8ed8([0x6a,0x74,0x69])])),await _0x9c6259()?_0x5cfb62()?_0x2c2695()?_0x1c8ed8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x482f41()?(_0x201890[_0x1c8ed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c8ed8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x774849=_0x1eed5e(_0x1c8ed8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x201890[_0x1c8ed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c8ed8([0x74,0x72,0x69,0x61,0x6c])&&(_0x774849=_0x1eed5e(_0x1c8ed8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a5293()):_0x1c8ed8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c8ed8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c8ed8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x33ee19){return _0x1c8ed8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c2695(){const _0xf2024b=[_0x1c8ed8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c8ed8([0x74,0x72,0x69,0x61,0x6c])][_0x1c8ed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x201890[_0x1c8ed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6d2b54/0x3e8:0xe10*_0xd8edad;return _0x201890[_0x1c8ed8([0x65,0x78,0x70])]<_0xf2024b;}function _0x5cfb62(){const _0x2d7a1e=_0x201890[_0x1c8ed8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d7a1e&&(!!_0x2d7a1e[_0x1c8ed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8ed8([0x2a]))||!!_0x2d7a1e[_0x1c8ed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8ed8([0x55,0x50,0x4c,0x43])));}function _0x482f41(){const _0x46e16b=_0x5d78,_0x168347=_0x201890[_0x1c8ed8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x168347||0x0==_0x168347[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4227d0}=new URL(window[_0x1c8ed8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x46e16b(0x1eb)]);if(_0x168347[_0x1c8ed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4227d0))return!0x0;const _0x9eefab=_0x4227d0[_0x1c8ed8([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ed8([0x2e]));return _0x168347[_0x1c8ed8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x237d75=>_0x237d75[_0x1c8ed8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8ed8([0x2a])))[_0x1c8ed8([0x6d,0x61,0x70])](_0x5b19ee=>_0x5b19ee[_0x1c8ed8([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ed8([0x2e])))[_0x1c8ed8([0x73,0x6f,0x6d,0x65])](_0x20a100=>_0x9eefab[_0x1c8ed8([0x65,0x76,0x65,0x72,0x79])]((_0x59249b,_0xae62d)=>_0x20a100[_0xae62d]===_0x59249b||_0x20a100[_0xae62d]===_0x1c8ed8([0x2a])));}function _0x1a5293(){return _0x774849&&_0x4f8d5b?new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15802c,_0x4fab42)=>{_0x774849[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x15802c,_0x4fab42),_0x4f8d5b[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x457641=>{_0x457641!=_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64])&&_0x15802c(_0x457641);},_0x4fab42);}):_0x774849||_0x4f8d5b||_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5cab35(_0x307eb9,_0x1c74da){return new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e244d=>{if(_0x3c8470())return _0x4e244d(_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64]));_0x4be990(),_0x41ff87[_0x1c8ed8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c8ed8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31120c=!0x1;const _0x4e651c=_0x4749d5();function _0x2b2316(_0x3c8d9e){return!!_0x3c8d9e&&(typeof _0x3c8d9e===_0x1c8ed8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c8d9e===_0x1c8ed8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c8d9e[_0x1c8ed8([0x74,0x68,0x65,0x6e])]===_0x1c8ed8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c8d9e[_0x1c8ed8([0x63,0x61,0x74,0x63,0x68])]===_0x1c8ed8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41c2bb(_0x3b9939){_0x9ca56c(_0x3b9939)[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x2dafbd=>{if(!_0x2dafbd||_0x2dafbd[_0x1c8ed8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c8ed8([0x6f,0x6b]))return _0x1c8ed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x382861(_0x520dc5(_0x4e651c+_0x1c74da))!=_0x2dafbd[_0x1c8ed8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c8ed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x58f4e2=>(_0x5922f9(),_0x58f4e2),()=>{const _0x4d5b8a=_0x491fb9();return null==_0x4d5b8a?(_0x5922f9(),_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64])):_0x1c8ed8(_0x6d2b54-_0x4d5b8a>(0x32619932^_0x4e717c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x4e244d)[_0x1c8ed8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e244d(_0x1c8ed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xcaff40=0x165bf3b2^_0x4e717c;function _0x5922f9(){const _0x315e2e=_0x1c8ed8([0x6c,0x6c,0x63,0x74,0x2d])+_0x382861(_0x520dc5(_0x307eb9)),_0x11dcce=_0x3e9fb4(_0x382861(window[_0x1c8ed8([0x4d,0x61,0x74,0x68])][_0x1c8ed8([0x63,0x65,0x69,0x6c])](_0x6d2b54/_0xcaff40)));window[_0x1c8ed8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c8ed8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x315e2e,_0x11dcce);}function _0x491fb9(){const _0x3865c5=_0x1c8ed8([0x6c,0x6c,0x63,0x74,0x2d])+_0x382861(_0x520dc5(_0x307eb9)),_0x5f11fc=window[_0x1c8ed8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c8ed8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3865c5);return _0x5f11fc?window[_0x1c8ed8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e9fb4(_0x5f11fc),0x10)*_0xcaff40:null;}function _0x9ca56c(_0x1c428b){return new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11736f,_0x1539cb)=>{_0x1c428b[_0x1c8ed8([0x74,0x68,0x65,0x6e])](_0x11736f,_0x1539cb),window[_0x1c8ed8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1539cb,0x166cc9f2^_0x4e717c);});}}_0x41ff87[_0x1c8ed8([0x6f,0x6e])](_0x1c8ed8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcee045,_0xf3acf7)=>{if(_0xf3acf7[0x0]!=_0x307eb9)return _0x4e244d(_0x1c8ed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf3acf7[0x1]={..._0xf3acf7[0x1],[_0x1c8ed8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e651c};},{[_0x1c8ed8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c8ed8([0x68,0x69,0x67,0x68])}),_0x41ff87[_0x1c8ed8([0x6f,0x6e])](_0x1c8ed8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4952eb=>{_0x2b2316(_0x4952eb[_0x1c8ed8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31120c=!0x0,_0x41c2bb(_0x4952eb[_0x1c8ed8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c8ed8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c8ed8([0x6c,0x6f,0x77])}),_0x455977[_0x1c8ed8([0x74,0x68,0x65,0x6e])](()=>{_0x31120c||_0x4e244d(_0x1c8ed8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c8470(){return _0x41ff87[_0x1c8ed8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c8ed8([0x76,0x69,0x65,0x77])][_0x1c8ed8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c8ed8([0x61,0x75,0x74,0x6f]);}function _0x4be990(){_0x41ff87[_0x1c8ed8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c8ed8([0x76,0x69,0x65,0x77])][_0x1c8ed8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c8ed8([0x61,0x75,0x74,0x6f]);}}function _0x1eed5e(_0xe9f317){const _0x1782de=[new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x170bd4=>setTimeout(_0x170bd4,0x166423fe^_0x4e717c)),_0x455977[_0x1c8ed8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2070f5=>{let _0x8f0f18=0x0;_0x41ff87[_0x1c8ed8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c8ed8([0x6f,0x6e])](_0x1c8ed8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x188497,_0x4b0160)=>{_0x4b0160[0x0][_0x1c8ed8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8f0f18++,_0x8f0f18==(0x166d1cca^_0x4e717c)&&(_0x2070f5(),_0x188497[_0x1c8ed8([0x6f,0x66,0x66])]());});}))];return window[_0x1c8ed8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c8ed8([0x72,0x61,0x63,0x65])](_0x1782de)[_0x1c8ed8([0x74,0x68,0x65,0x6e])](()=>_0xe9f317);}async function _0x5357f7(){await _0x455977,_0x41ff87[_0x1c8ed8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c8ed8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22e773,_0x41ff87[_0x1c8ed8([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c8ed8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22e773,_0x41ff87[_0x1c8ed8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c8ed8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2108f9(_0x9d7a4f){const _0x33b0c=_0x446307();_0x41ff87[_0x33b0c]=_0x1c8ed8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x9d7a4f,_0x9d7a4f!=_0x1c8ed8([0x56,0x61,0x6c,0x69,0x64])&&_0x5357f7();}function _0x446307(){const _0x5c8c45=window[_0x1c8ed8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c8ed8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c8ed8([0x6e,0x6f,0x77])]())[_0x1c8ed8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c8ed8([0x2e]),'');let _0x17500b=_0x1c8ed8([0x54]);for(let _0x357f53=0x0;_0x357f53<_0x5c8c45[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x357f53+=0x2){let _0x518177=window[_0x1c8ed8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c8c45[_0x1c8ed8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x357f53,_0x357f53+0x2));_0x518177>=_0x369a6[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x518177-=_0x369a6[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17500b+=_0x369a6[_0x518177];}return _0x17500b;}function _0x412326(){const _0x2d9fd7=_0x346094[_0x1c8ed8([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ed8([0x2e]));if(0x3!=_0x2d9fd7[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35b871(_0x2d9fd7[0x1]);function _0x35b871(_0x1aea29){const _0x1d3dc6=_0xb899f0(_0x1aea29);return _0x1d3dc6&&_0xa45ff8()?_0x1d3dc6:null;function _0xa45ff8(){const _0x51ef99=_0x1d3dc6[_0x1c8ed8([0x6a,0x74,0x69])],_0x2b764a=window[_0x1c8ed8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51ef99[_0x1c8ed8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51ef99[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fbc0b={..._0x1d3dc6,[_0x1c8ed8([0x6a,0x74,0x69])]:_0x51ef99[_0x1c8ed8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51ef99[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fbc0b[_0x1c8ed8([0x76,0x63])],_0x520dc5(_0x2fbc0b)==_0x2b764a;}}}async function _0x9c6259(){let _0x306c60=!0x0;try{const _0x4953df=_0x346094[_0x1c8ed8([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ed8([0x2e])),[_0x42d2e7,_0x43ecd5,_0x5cd096]=_0x4953df;return _0x13f826(_0x42d2e7),await _0x53233d(_0x42d2e7,_0x43ecd5,_0x5cd096),_0x306c60;}catch(_0x5a4319){return!0x1;}function _0x13f826(_0x408810){const _0x413e5d=_0xb899f0(_0x408810);_0x413e5d&&_0x413e5d[_0x1c8ed8([0x61,0x6c,0x67])]==_0x1c8ed8([0x45,0x53,0x32,0x35,0x36])||(_0x306c60=!0x1);}async function _0x53233d(_0x4a8a5a,_0x4bcbae,_0xa0dd3){const _0x16b304=window[_0x1c8ed8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c8ed8([0x66,0x72,0x6f,0x6d])](_0x1ecbf0(_0xa0dd3),_0x33cfca=>_0x33cfca[_0x1c8ed8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x456679=new window[(_0x1c8ed8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c8ed8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a8a5a+_0x1c8ed8([0x2e])+_0x4bcbae),_0x352888=window[_0x1c8ed8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c8ed8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x352888)return;const _0x28094f=await _0x352888[_0x1c8ed8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c8ed8([0x6a,0x77,0x6b]),_0x19dd48,{[_0x1c8ed8([0x6e,0x61,0x6d,0x65])]:_0x1c8ed8([0x45,0x43,0x44,0x53,0x41]),[_0x1c8ed8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c8ed8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c8ed8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x352888[_0x1c8ed8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c8ed8([0x6e,0x61,0x6d,0x65])]:_0x1c8ed8([0x45,0x43,0x44,0x53,0x41]),[_0x1c8ed8([0x68,0x61,0x73,0x68])]:{[_0x1c8ed8([0x6e,0x61,0x6d,0x65])]:_0x1c8ed8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28094f,_0x16b304,_0x456679)||(_0x306c60=!0x1);}}function _0xb899f0(_0x2d88e1){return _0x2d88e1[_0x1c8ed8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c8ed8([0x65,0x79]))?JSON[_0x1c8ed8([0x70,0x61,0x72,0x73,0x65])](_0x1ecbf0(_0x2d88e1)):null;}function _0x1ecbf0(_0x353210){return window[_0x1c8ed8([0x61,0x74,0x6f,0x62])](_0x353210[_0x1c8ed8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c8ed8([0x2b]))[_0x1c8ed8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c8ed8([0x2f])));}function _0x520dc5(_0x57a692){let _0x45daaf=0x1505;function _0x35825e(_0x40f5a6){for(let _0x2bdb0d=0x0;_0x2bdb0d<_0x40f5a6[_0x1c8ed8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bdb0d++){const _0x4d5fcc=_0x40f5a6[_0x1c8ed8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bdb0d);_0x45daaf=(_0x45daaf<<0x5)+_0x45daaf+_0x4d5fcc,_0x45daaf&=_0x45daaf;}}function _0x108e03(_0x2b1469){Array[_0x1c8ed8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b1469)?_0x2b1469[_0x1c8ed8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x108e03):_0x2b1469&&typeof _0x2b1469==_0x1c8ed8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c8ed8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b1469)[_0x1c8ed8([0x73,0x6f,0x72,0x74])]()[_0x1c8ed8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3af78b,_0x2a2ca1])=>{_0x35825e(_0x3af78b),_0x108e03(_0x2a2ca1);}):_0x35825e(window[_0x1c8ed8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b1469));}return _0x108e03(_0x57a692),_0x45daaf>>>0x0;}function _0x382861(_0x11b9e9){return _0x11b9e9[_0x1c8ed8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c8ed8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c8ed8([0x30]));}function _0x3e9fb4(_0x1f7267){return _0x1f7267[_0x1c8ed8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c8ed8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c8ed8([0x6a,0x6f,0x69,0x6e])]('');}function _0x22e773(){}function _0x1c8ed8(_0x3b2efa){const _0x75db47=_0x5d78;return _0x3b2efa[_0x75db47(0x1e9)](_0x5ced36=>String[_0x75db47(0x223)](_0x5ced36))[_0x75db47(0x1f1)]('');}_0x2108f9(await _0x37de4b());}(this);}[_0x52b411(0x233)](){const _0x4d3d75=_0x52b411,_0x3b3414=this[_0x4d3d75(0x213)][_0x4d3d75(0x200)][_0x4d3d75(0x1f8)];_0x3b3414[_0x4d3d75(0x21f)](_0x4d3d75(0x210))&&_0x3b3414[_0x4d3d75(0x216)](_0x4d3d75(0x210),{'allowAttributes':[_0x4d3d75(0x220)]}),_0x3b3414[_0x4d3d75(0x21f)](_0x4d3d75(0x1fc))&&_0x3b3414[_0x4d3d75(0x216)](_0x4d3d75(0x1fc),{'allowAttributes':[_0x4d3d75(0x220)]});}[_0x52b411(0x22d)](){const _0x347bf3=_0x52b411,_0x1face1=this[_0x347bf3(0x213)];_0x1face1[_0x347bf3(0x228)][_0x347bf3(0x1fb)](_0x347bf3(0x1f4))[_0x347bf3(0x1f6)]({'model':_0x347bf3(0x220),'view':_0x347bf3(0x1f2)}),_0x1face1[_0x347bf3(0x228)][_0x347bf3(0x1fb)](_0x347bf3(0x1ed))[_0x347bf3(0x211)]({'model':{'key':_0x347bf3(0x220),'value':_0x14f69f=>_0x14f69f[_0x347bf3(0x208)](_0x347bf3(0x1f2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3756a2=_0x1face1[_0x347bf3(0x206)][_0x347bf3(0x1e8)](_0x347bf3(0x1e3));_0x3756a2&&this[_0x347bf3(0x204)](_0x3756a2,_0x347bf3(0x20c),(_0x26608b,[_0x41b5af,_0x2149dc])=>{const _0x20558b=_0x347bf3;_0x41b5af[_0x20558b(0x219)](_0x20558b(0x220),_0x2149dc);});}[_0x52b411(0x205)](){const _0x1bcadf=_0x52b411,_0x110418=this[_0x1bcadf(0x213)][_0x1bcadf(0x22b)][_0x1bcadf(0x1e8)](_0x1bcadf(0x231))||{},_0x5528a9=this[_0x1bcadf(0x213)][_0x1bcadf(0x22b)][_0x1bcadf(0x1e8)](_0x1bcadf(0x201))||'';this[_0x1bcadf(0x1e7)]=_0x337040(_0x4edf7f[_0x1bcadf(0x1e5)],_0x1bcadf(0x20f),{..._0x110418,'pubkey':_0x5528a9,'ctx-name':_0x1bcadf(0x221),'sourceList':'','imgOnly':_0x1bcadf(0x1f5),'removeCopyright':_0x1bcadf(0x1f5),'localeName':this[_0x1bcadf(0x213)][_0x1bcadf(0x1e4)][_0x1bcadf(0x22a)],'externalSourcesEmbedCss':_0x1bcadf(0x229)}),this[_0x1bcadf(0x1e7)][_0x1bcadf(0x209)]=_0x32cbe1=>{const _0xff57b=_0x1bcadf;if(_0xff57b(0x218)==_0x32cbe1)return _0xff57b(0x222);},_0x4edf7f[_0x1bcadf(0x1e5)][_0x1bcadf(0x20d)][_0x1bcadf(0x20e)](this[_0x1bcadf(0x1e7)]);}[_0x52b411(0x22c)](){const _0x198222=_0x52b411;this[_0x198222(0x1fa)]=_0x337040(_0x4edf7f[_0x198222(0x1e5)],_0x198222(0x232),{'ctx-name':_0x198222(0x221)}),_0x4edf7f[_0x198222(0x1e5)][_0x198222(0x20d)][_0x198222(0x20e)](this[_0x198222(0x1fa)]);}[_0x52b411(0x1ff)](){const _0x11f741=_0x52b411,_0x7bacb9=this[_0x11f741(0x213)][_0x11f741(0x206)][_0x11f741(0x1e8)](_0x11f741(0x202));_0x7bacb9&&this[_0x11f741(0x204)](_0x7bacb9,_0x11f741(0x225),()=>{const _0x364e0e=_0x11f741,_0x41ae5f=this[_0x364e0e(0x213)][_0x364e0e(0x200)][_0x364e0e(0x1e5)][_0x364e0e(0x1ec)][_0x364e0e(0x1ef)]();_0x41ae5f&&_0x41ae5f[_0x364e0e(0x208)](_0x364e0e(0x220))&&this[_0x364e0e(0x213)][_0x364e0e(0x1df)][_0x364e0e(0x207)][_0x364e0e(0x21b)](_0x364e0e(0x1e2),()=>{const _0x1f2005=_0x364e0e;_0x558016(this[_0x1f2005(0x213)],_0x41ae5f);});});const _0x2133de=this[_0x11f741(0x213)][_0x11f741(0x206)][_0x11f741(0x1e8)](_0x11f741(0x21d));_0x2133de&&this[_0x11f741(0x204)](_0x2133de,_0x11f741(0x225),()=>{const _0x6bfd99=_0x11f741,_0x48e903=this[_0x6bfd99(0x213)][_0x6bfd99(0x200)][_0x6bfd99(0x1e5)][_0x6bfd99(0x1ec)][_0x6bfd99(0x1ef)]();_0x48e903&&_0x48e903[_0x6bfd99(0x208)](_0x6bfd99(0x220))&&this[_0x6bfd99(0x213)][_0x6bfd99(0x1df)][_0x6bfd99(0x207)][_0x6bfd99(0x21b)](_0x6bfd99(0x1e2),()=>{const _0x1228c0=_0x6bfd99;_0x558016(this[_0x1228c0(0x213)],_0x48e903);});});}}function _0x57e4(){const _0x20e431=['UploadcareEditing','getSelectedElement','20357724qyuXZf','join','data-uc-image-id','26530HWTWxi','downcast','true','attributeToAttribute','querySelector','schema','1719HqnpOn','_ctxElement','for','imageInline','uploadcare','972600xyEnPw','_initImageProcessingIndicator','model','uploadcare.pubkey','insertImage','destroy','listenTo','_initConfig','commands','view','getAttribute','iconHrefResolver','18624177lWOusv','add','cleanupImage','body','appendChild','uc-config','imageBlock','elementToAttribute','702GwidQV','editor','remove','2980138JcPEgR','extend','requires','closeMax','removeAttribute','16vFKoZJ','once','48plLEtO','uploadcareImageReplace','906LFDyEb','isRegistered','uploadcareImageId','uploader','#uc-icon-arrow-down','fromCharCode','pluginName','execute','ctxElement','isPremiumPlugin','conversion','\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','contentLanguage','config','_initCtx','_initConversion','configElement','isOfficialPlugin','24ChnbAT','uploadcare.uploader','uc-upload-ctx-provider','_initSchema','272280PDCGRy','editing','input[uploadcare-file-input]','PictureEditing','render','replaceImageSource','locale','document','afterInit','_configElement','get','map','init','href','selection','upcast'];_0x57e4=function(){return _0x20e431;};return _0x57e4();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x103e03,ObservableMixin as _0x5d5265}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5e3454}from'ckeditor5/src/ui.js';import _0x1cefd0 from'./uploadcareimageeditformview.js';import _0x4e68c5 from'../../utils/uploadutils.js';import _0xc42bb3 from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x4b893d,getImageDimension as _0x4ce928}from'../../utils/editingutils.js';import{isAncestor as _0x591e95}from'../../utils/isancestor.js';export default class A extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d5265(){constructor(_0x32e04c,_0x10ff05,_0x38c5ad){super(),this['_editor']=_0x32e04c,this['_dialog']=_0x10ff05,this['_imageElement']=_0x38c5ad,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 _0x23a6fd=this['_imageElement'],_0x1ab0c9=_0x23a6fd['getAttribute']('uploadcareImageId'),_0x37e436=_0x23a6fd['getAttribute']('src');if(_0x1ab0c9)await this['_loadImageInfo'](_0x1ab0c9,_0x37e436);else{if(this['_imageCache']['has'](_0x37e436)){const _0x278d30=this['_imageCache']['get'](_0x37e436);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x278d30['url'],this['imageDimension']=_0x278d30['dimension'],this['imageId']=_0x278d30['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x111bfe}=this['_editor'],t=_0x111bfe['t'],_0x4b368d=new _0x1cefd0(_0x111bfe,this['imageStatus'],this['_attributes']);_0x4b368d['bind']('status')['to'](this,'imageStatus'),_0x4b368d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4b368d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4b368d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4b368d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xc42bb3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4b368d,'position':_0x5e3454['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4b368d['focus']();},'onHide':()=>{_0x4b368d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x37d0b4=>!_0x591e95(_0x37d0b4,_0x4b368d['element'])}});}['_loadImageInfo'](_0x2b8726,_0x2fa57e){return _0x4e68c5['getInfo'](_0x2b8726,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xe46464=>{const {width:_0x232449,height:_0x27d69c}=_0xe46464['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2fa57e,this['imageDimension']={'width':_0x232449,'height':_0x27d69c},this['imageId']=_0x2b8726;})['catch'](_0x4886a6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4886a6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1a6fd1,_0x9b69ee){return this['_getImageAsFile'](_0x1a6fd1)['then'](_0x3227d8=>_0x4e68c5['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x9b69ee['signal'],'file':_0x3227d8,'onProgress':_0x2e4c05=>{_0x2e4c05&&_0x2e4c05['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2e4c05['value']));}}))['then'](_0x1ab73c=>{const {width:_0x4fd7d0,height:_0xff992c}=_0x1ab73c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ab73c['cdnUrl'],this['imageDimension']={'width':_0x4fd7d0,'height':_0xff992c},this['imageId']=_0x1ab73c['uuid'],this['imageUploadProgress']=null;const _0x39eaa9=_0x1a6fd1['getAttribute']('src');this['_imageCache']['set'](_0x39eaa9,{'id':_0x1ab73c['uuid'],'url':_0x1ab73c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3efec4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3efec4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x40c0a8,_0x24bf46){_0x40c0a8['on']('apply',(_0x2cc674,_0x1738c7)=>{this['_replaceImage'](_0x24bf46,_0x1738c7['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x40c0a8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x40c0a8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xdcd69f,_0x125f99,_0x5429e5){const _0x44f7a7=this['_editor'],{width:_0x7e30d2,height:_0x38a786}=_0x4ce928(_0x125f99,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x252d87,imageSources:_0x27784c}=_0x4b893d(_0x125f99,_0x7e30d2);_0x44f7a7['model']['change'](_0x2982ea=>{if('$graveyard'===_0xdcd69f['root']['rootName']){_0x44f7a7['execute']('insertImage',{'imageType':_0xdcd69f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xdcd69f['getAttributes']()),'uploadcareImageId':_0x5429e5,'src':_0x252d87,'sources':_0x27784c,'width':_0x7e30d2,'height':_0x38a786}});const _0x238e88=_0xdcd69f['getChildren']();_0xdcd69f=_0x44f7a7['model']['document']['selection']['getSelectedElement']();for(const _0x489870 of _0x238e88)_0x2982ea['append'](_0x2982ea['cloneElement'](_0x489870),_0xdcd69f);}else _0x2982ea['setSelection'](_0xdcd69f,'on'),_0x44f7a7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xdcd69f['getAttributes']()),'uploadcareImageId':_0x5429e5,'src':_0x252d87,'sources':_0x27784c,'width':_0x7e30d2,'height':_0x38a786},_0xdcd69f);_0x2982ea['setSelection'](_0xdcd69f,'on');});}async['_getImageAsFile'](_0xe6dd54){const _0x270155=_0x103e03['window'],_0x35ef8d=_0x103e03['document']['location']['href'],_0x476f36=new _0x270155['URL'](_0xe6dd54['getAttribute']('src'),_0x35ef8d);if('data:'===_0x476f36['protocol']){const _0x1cd013=_0x476f36['href']['split'](','),_0x5a46cd=_0x1cd013[0x0]['match'](/:(.*?);/)[0x1],_0x37074b=_0x5a46cd['split']('/')[0x1],_0x270560=_0x270155['atob'](_0x1cd013[_0x1cd013['length']-0x1]);let _0x24c941=_0x270560['length'];const _0x461776=new _0x270155['Uint8Array'](_0x24c941);for(;_0x24c941--;)_0x461776[_0x24c941]=_0x270560['charCodeAt'](_0x24c941);return new _0x270155['File']([_0x461776],'image.'+_0x37074b,{'type':_0x5a46cd});}const _0x2227a7=_0x476f36['href']['split']('/'),_0x8e3deb=_0x2227a7[_0x2227a7['length']-0x1],_0x5eadb4=_0x8e3deb['split']('.')[0x1];return _0x270155['fetch'](_0x476f36['href'])['then'](_0x33981e=>_0x33981e['clone']()['blob']())['then'](_0x2b649b=>new _0x270155['File']([_0x2b649b],_0x8e3deb,{'type':'image/'+_0x5eadb4}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x460d29,_0x35590f){const _0x45b4af=_0x979e,_0x3c91c7=_0x460d29();while(!![]){try{const _0x5e3e29=-parseInt(_0x45b4af(0xff))/0x1*(-parseInt(_0x45b4af(0xf4))/0x2)+-parseInt(_0x45b4af(0x100))/0x3*(parseInt(_0x45b4af(0xf7))/0x4)+parseInt(_0x45b4af(0xf5))/0x5+-parseInt(_0x45b4af(0xf9))/0x6*(-parseInt(_0x45b4af(0xf3))/0x7)+-parseInt(_0x45b4af(0xfb))/0x8*(parseInt(_0x45b4af(0x102))/0x9)+parseInt(_0x45b4af(0xfe))/0xa+-parseInt(_0x45b4af(0xfd))/0xb*(parseInt(_0x45b4af(0xfa))/0xc);if(_0x5e3e29===_0x35590f)break;else _0x3c91c7['push'](_0x3c91c7['shift']());}catch(_0x2e3d34){_0x3c91c7['push'](_0x3c91c7['shift']());}}}(_0x5e45,0x9ce8d));import{View as _0x1d29ef}from'ckeditor5/src/ui.js';function _0x979e(_0x4f893f,_0x4b9e4f){const _0x5e4569=_0x5e45();return _0x979e=function(_0x979ed2,_0x16a052){_0x979ed2=_0x979ed2-0xef;let _0x865818=_0x5e4569[_0x979ed2];return _0x865818;},_0x979e(_0x4f893f,_0x4b9e4f);}export default class tt extends _0x1d29ef{constructor(_0x5544f2,_0x44b2f6){const _0x4d71b9=_0x979e;super(_0x5544f2);const _0x23b562=this[_0x4d71b9(0xef)];this[_0x4d71b9(0xf2)](_0x4d71b9(0xfc),''),this[_0x4d71b9(0xf1)]({'tag':_0x4d71b9(0xf6),'attributes':{..._0x44b2f6,'class':[_0x4d71b9(0xf8),_0x4d71b9(0x101)],'ctx-name':_0x4d71b9(0xf0),'cdn-url':_0x23b562['to'](_0x4d71b9(0xfc))}});}}function _0x5e45(){const _0x846433=['bindTemplate','image-edit','setTemplate','set','96943qLPPPj','24498wbKtPw','843465Hwxymn','uc-cloud-image-editor','1112xkUvNu','uc-light','330xKiKWv','2980128nyJUaQ','63216gvFbiL','imageSrc','77TebdAg','10091370stXcli','76fNJgDv','3831anqxoj','ck-uploadcare-theme','153CCXHUb'];_0x5e45=function(){return _0x846433;};return _0x5e45();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x5ee445,IconView as et,View as _0x15699a}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x15699a{constructor(_0x4a2929){super(_0x4a2929);const t=_0x4a2929['t'];this['set']('errorType',null);const _0x56ac7b=new _0x5ee445(_0x4a2929);_0x56ac7b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x56ac7b['withText']=!0x0,_0x56ac7b['class']='ck-button-action',_0x56ac7b['on']('execute',()=>{this['fire']('retry');}),_0x56ac7b['bind']('isVisible')['to'](this,'errorType',_0x16f634=>'NotFound'!==_0x16f634);const _0x30b7b9=new et();_0x30b7b9['content']=at,_0x30b7b9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x134b2b=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':[_0x30b7b9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x134b2b['to']('errorType',_0x534cc3=>t('NotFound'!==_0x534cc3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x56ac7b]},{'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 _0x566a40,View as _0xda938d}from'ckeditor5/src/ui.js';export default class ta extends _0xda938d{constructor(_0x734e74){super(_0x734e74);const t=_0x734e74['t'],_0x4c2413=this['bindTemplate'],_0x2f22d4=new _0x566a40();_0x2f22d4['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':[_0x2f22d4,{'text':_0x4c2413['to']('imageUploadProgress',_0x34c24f=>t('Loading\x20image...')+'\x20('+(_0x34c24f||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 _0x59a8e8=_0x46a4;(function(_0x5d9576,_0x5ac651){const _0x3ea4f9=_0x46a4,_0x474983=_0x5d9576();while(!![]){try{const _0x40f2ce=parseInt(_0x3ea4f9(0x1dc))/0x1*(parseInt(_0x3ea4f9(0x1e3))/0x2)+-parseInt(_0x3ea4f9(0x1cb))/0x3+parseInt(_0x3ea4f9(0x1db))/0x4+-parseInt(_0x3ea4f9(0x1f9))/0x5*(-parseInt(_0x3ea4f9(0x1f4))/0x6)+parseInt(_0x3ea4f9(0x1ca))/0x7+parseInt(_0x3ea4f9(0x1d7))/0x8*(parseInt(_0x3ea4f9(0x1ce))/0x9)+-parseInt(_0x3ea4f9(0x1f7))/0xa;if(_0x40f2ce===_0x5ac651)break;else _0x474983['push'](_0x474983['shift']());}catch(_0x1a96a5){_0x474983['push'](_0x474983['shift']());}}}(_0x20e1,0x95865));import{View as _0x57580f}from'ckeditor5/src/ui.js';import _0x237575 from'./uploadcareimageeditformloadingview.js';import _0x427bc3 from'./uploadcareimageeditformerrorview.js';function _0x46a4(_0x322cb8,_0x2524c4){const _0x20e16b=_0x20e1();return _0x46a4=function(_0x46a493,_0x5b07f2){_0x46a493=_0x46a493-0x1c7;let _0xf6ff66=_0x20e16b[_0x46a493];return _0xf6ff66;},_0x46a4(_0x322cb8,_0x2524c4);}import _0xe3527d from'./uploadcareimageeditformeditingview.js';function _0x20e1(){const _0x4d515a=['uploading','addEventListener','querySelector','once','change:status','_focusableView','detail','_setView','error','render','_waitForImageEditorComponent','4656WJACpk','uc-cloud-image-editor','observe','11259880wSmBUj','setTemplate','2635tXLGeu','createCollection','cdnUrl','set','cancel','getFocusableElement','_editingView','nodeName','2078538TblLOo','3254940wylmFe','length','addedNodes','28395YZnsou','_addErrorViewListeners','ck-uploadcare-form','disconnect','apply','retry','clear','status','_errorView','1480KvETql','ck-reset_all-excluded','toLowerCase','addMany','2835604BjbPcQ','1wJORQY','_addUploadcareImageEditorListeners','element','add','_loadingView','div','_items','1649918pbDniq','target','ready','focus','fire','filter'];_0x20e1=function(){return _0x4d515a;};return _0x20e1();}import _0x4ebbe from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x4ebbe{constructor(_0x52b942,_0x582570,_0x2c6aa3){const _0x193a17=_0x46a4;super(_0x52b942),this[_0x193a17(0x1e2)]=this[_0x193a17(0x1fa)](),this[_0x193a17(0x1e0)]=new _0x237575(_0x52b942),this[_0x193a17(0x1d6)]=new _0x427bc3(_0x52b942),this[_0x193a17(0x1c8)]=new _0xe3527d(_0x52b942,_0x2c6aa3),this[_0x193a17(0x1ee)]=new _0x57580f(_0x52b942),this[_0x193a17(0x1ee)][_0x193a17(0x1f8)](this[_0x193a17(0x1c7)]()),this[_0x193a17(0x1fc)](_0x193a17(0x1d5),_0x582570),this[_0x193a17(0x1f8)]({'tag':_0x193a17(0x1e1),'attributes':{'class':['ck',_0x193a17(0x1d8),_0x193a17(0x1d0)],'tabindex':'-1'},'children':this[_0x193a17(0x1e2)]}),this[_0x193a17(0x1f0)](),this[_0x193a17(0x1ec)](_0x193a17(0x1f2),()=>{const _0x322e3b=_0x193a17;this[_0x322e3b(0x1f3)](this[_0x322e3b(0x1de)],_0x2904cb=>{const _0x35a2bc=_0x322e3b;this[_0x35a2bc(0x1dd)](_0x2904cb);});}),this['on'](_0x193a17(0x1ed),()=>{const _0x47b990=_0x193a17;this[_0x47b990(0x1f0)]();}),this[_0x193a17(0x1cf)]();}[_0x59a8e8(0x1e6)](){const _0x32c52a=_0x59a8e8;this[_0x32c52a(0x1de)][_0x32c52a(0x1e6)]();}[_0x59a8e8(0x1f0)](){const _0x5816b0=_0x59a8e8;switch(this[_0x5816b0(0x1e2)][_0x5816b0(0x1d4)](),this[_0x5816b0(0x1d5)]){case _0x5816b0(0x1e9):this[_0x5816b0(0x1e2)][_0x5816b0(0x1df)](this[_0x5816b0(0x1e0)]);break;case _0x5816b0(0x1f1):this[_0x5816b0(0x1e2)][_0x5816b0(0x1df)](this[_0x5816b0(0x1d6)]);break;case _0x5816b0(0x1e5):this[_0x5816b0(0x1e2)][_0x5816b0(0x1da)]([this[_0x5816b0(0x1c8)],this[_0x5816b0(0x1ee)]]);}}[_0x59a8e8(0x1f3)](_0x330e70,_0x2a465f){const _0x5a11d2=_0x59a8e8,_0x3377be=_0x5a11d2(0x1f5),_0x299f83=_0x330e70[_0x5a11d2(0x1eb)](_0x3377be);if(_0x299f83)return _0x2a465f(_0x299f83);const _0x347239=new MutationObserver(_0x42db42=>{const _0x3143e2=_0x5a11d2,_0x4e41af=_0x42db42[_0x3143e2(0x1e8)](_0x5a39d1=>_0x5a39d1[_0x3143e2(0x1e4)]===_0x330e70&&_0x5a39d1[_0x3143e2(0x1cd)][_0x3143e2(0x1cc)]>0x0&&_0x5a39d1[_0x3143e2(0x1cd)][0x0][_0x3143e2(0x1c9)][_0x3143e2(0x1d9)]()===_0x3377be);_0x4e41af[_0x3143e2(0x1cc)]&&(_0x347239[_0x3143e2(0x1d1)](),_0x2a465f(_0x4e41af[0x0][_0x3143e2(0x1cd)][0x0]));});_0x347239[_0x5a11d2(0x1f6)](_0x330e70,{'childList':!0x0,'subtree':!0x0});}[_0x59a8e8(0x1dd)](_0x4e8a75){const _0x216777=_0x59a8e8;_0x4e8a75[_0x216777(0x1ea)](_0x216777(0x1d2),_0x47687b=>{const _0x524d78=_0x216777;this[_0x524d78(0x1e7)](_0x524d78(0x1d2),{'imageSrc':_0x47687b[_0x524d78(0x1ef)][_0x524d78(0x1fb)]});}),_0x4e8a75[_0x216777(0x1ea)](_0x216777(0x1fd),()=>{const _0x5ecc47=_0x216777;this[_0x5ecc47(0x1e7)](_0x5ecc47(0x1fd));});}[_0x59a8e8(0x1cf)](){const _0x8c1cf8=_0x59a8e8;this[_0x8c1cf8(0x1d6)]['on'](_0x8c1cf8(0x1d3),()=>{const _0x42ae79=_0x8c1cf8;this[_0x42ae79(0x1e7)](_0x42ae79(0x1d3));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x400391=_0x290e;function _0x5104(){const _0x160ff6=['isEnabled','uploadcare.allowExternalImagesEditing','2148196VVCadk','imageInline','selection','162nuOBiY','imageEditController','refresh','config','set','requires','execute','element','44247HIyfod','imageBlock','329671fmjsiw','bind','editor','getSelectedElement','_isEditable','model','204ZMSYPv','1592580vjgXwp','548264yGEcvl','900698RGOSey','plugins','document','isActive','get','429903YcdLLz','unbind'];_0x5104=function(){return _0x160ff6;};return _0x5104();}(function(_0x13a425,_0x53afe5){const _0x46318a=_0x290e,_0x57d0c9=_0x13a425();while(!![]){try{const _0x29981e=-parseInt(_0x46318a(0x1f1))/0x1+-parseInt(_0x46318a(0x1fa))/0x2+-parseInt(_0x46318a(0x1e0))/0x3+parseInt(_0x46318a(0x1e4))/0x4+-parseInt(_0x46318a(0x1f8))/0x5+-parseInt(_0x46318a(0x1f7))/0x6*(parseInt(_0x46318a(0x1ef))/0x7)+parseInt(_0x46318a(0x1f9))/0x8*(parseInt(_0x46318a(0x1e7))/0x9);if(_0x29981e===_0x53afe5)break;else _0x57d0c9['push'](_0x57d0c9['shift']());}catch(_0x4e8595){_0x57d0c9['push'](_0x57d0c9['shift']());}}}(_0x5104,0x4ca24));import{Command as _0x5bc9ac}from'ckeditor5/src/core.js';import{Dialog as _0x471488}from'ckeditor5/src/ui.js';function _0x290e(_0x56e109,_0x1adc24){const _0x5104b9=_0x5104();return _0x290e=function(_0x290e6e,_0x4f8799){_0x290e6e=_0x290e6e-0x1de;let _0x859bb7=_0x5104b9[_0x290e6e];return _0x859bb7;},_0x290e(_0x56e109,_0x1adc24);}import _0xc97101 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x38a3cc}from'../utils/editingutils.js';export default class z extends _0x5bc9ac{static get[_0x400391(0x1ec)](){return[_0x471488];}constructor(_0x247303){const _0xbbf089=_0x400391;super(_0x247303),this[_0xbbf089(0x1e8)]=void 0x0,this[_0xbbf089(0x1f5)]=_0x38a3cc(_0x247303[_0xbbf089(0x1ea)][_0xbbf089(0x1df)](_0xbbf089(0x1e3))||[]),this[_0xbbf089(0x1eb)]({'isActive':!0x1});}[_0x400391(0x1e9)](){const _0x4f51ac=_0x400391,_0x102629=this[_0x4f51ac(0x1f3)][_0x4f51ac(0x1f6)][_0x4f51ac(0x1fc)][_0x4f51ac(0x1e6)][_0x4f51ac(0x1f4)]();this[_0x4f51ac(0x1e2)]=this[_0x4f51ac(0x1f5)](_0x102629);}[_0x400391(0x1ed)](){const _0x3c8f5b=_0x400391;this[_0x3c8f5b(0x1e8)]&&(this[_0x3c8f5b(0x1e1)](_0x3c8f5b(0x1de)),this[_0x3c8f5b(0x1e8)]=void 0x0);const _0x2aaaf7=this[_0x3c8f5b(0x1f3)][_0x3c8f5b(0x1f6)][_0x3c8f5b(0x1fc)][_0x3c8f5b(0x1e6)][_0x3c8f5b(0x1f4)]();_0x2aaaf7&&(_0x2aaaf7['is'](_0x3c8f5b(0x1ee),_0x3c8f5b(0x1f0))||_0x2aaaf7['is'](_0x3c8f5b(0x1ee),_0x3c8f5b(0x1e5)))&&(this[_0x3c8f5b(0x1e8)]=new _0xc97101(this[_0x3c8f5b(0x1f3)],this[_0x3c8f5b(0x1f3)][_0x3c8f5b(0x1fb)][_0x3c8f5b(0x1df)](_0x471488),_0x2aaaf7),this[_0x3c8f5b(0x1f2)](_0x3c8f5b(0x1de))['to'](this[_0x3c8f5b(0x1e8)],_0x3c8f5b(0x1de)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x24f0(_0x315ef7,_0x18b6a7){const _0x389163=_0x3891();return _0x24f0=function(_0x24f0b3,_0x4a0c12){_0x24f0b3=_0x24f0b3-0x179;let _0x19467c=_0x389163[_0x24f0b3];return _0x19467c;},_0x24f0(_0x315ef7,_0x18b6a7);}const _0x238f68=_0x24f0;(function(_0x457eef,_0x7e66d1){const _0x21f762=_0x24f0,_0x4add0e=_0x457eef();while(!![]){try{const _0x289558=-parseInt(_0x21f762(0x180))/0x1+parseInt(_0x21f762(0x181))/0x2*(-parseInt(_0x21f762(0x18d))/0x3)+parseInt(_0x21f762(0x188))/0x4*(-parseInt(_0x21f762(0x18b))/0x5)+parseInt(_0x21f762(0x185))/0x6+-parseInt(_0x21f762(0x17b))/0x7*(-parseInt(_0x21f762(0x187))/0x8)+parseInt(_0x21f762(0x18a))/0x9+parseInt(_0x21f762(0x17e))/0xa;if(_0x289558===_0x7e66d1)break;else _0x4add0e['push'](_0x4add0e['shift']());}catch(_0x2e782f){_0x4add0e['push'](_0x4add0e['shift']());}}}(_0x3891,0x884d5));import{Plugin as _0x5187d1}from'ckeditor5/src/core.js';import{Notification as _0x5b4a0e}from'ckeditor5/src/ui.js';import _0x3146e7 from'./uploadcareimageeditcommand.js';import _0xead06a from'./uploadcareimagereplacecommand.js';import _0x59a591 from'../uploadcareediting.js';function _0x3891(){const _0x3a047c=['8QoFmwc','requires','9624123EEEXYg','2560720WuFvZB','isOfficialPlugin','48MMqIxA','uploadcareImageReplace','UploadcareImageEditEditing','pluginName','1224349qbvQLv','init','ImageUtils','7158750dSCFaZ','commands','414104TRIIjP','121456BBAzlp','ImageEditing','isPremiumPlugin','uploadcareImageEdit','3950340SQXDdh','add','24PjsPWN'];_0x3891=function(){return _0x3a047c;};return _0x3891();}export default class m extends _0x5187d1{static get[_0x238f68(0x17a)](){const _0x162b7d=_0x238f68;return _0x162b7d(0x179);}static get[_0x238f68(0x189)](){const _0x4e00b9=_0x238f68;return[_0x59a591,_0x5b4a0e,_0x4e00b9(0x17d),_0x4e00b9(0x182)];}static get[_0x238f68(0x18c)](){return!0x0;}static get[_0x238f68(0x183)](){return!0x0;}[_0x238f68(0x17c)](){const _0x2b2b3d=_0x238f68,{editor:_0x57e38c}=this;_0x57e38c[_0x2b2b3d(0x17f)][_0x2b2b3d(0x186)](_0x2b2b3d(0x184),new _0x3146e7(_0x57e38c)),_0x57e38c[_0x2b2b3d(0x17f)][_0x2b2b3d(0x186)](_0x2b2b3d(0x18e),new _0xead06a(_0x57e38c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3f1672}from'ckeditor5/src/core.js';import{ButtonView as _0x12f927}from'ckeditor5/src/ui.js';import{createElement as _0x17b24d}from'ckeditor5/src/utils.js';import _0x5d0800 from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x3f1672{constructor(){super(...arguments),this['_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 _0x4dcaa6=this['editor'];_0x4dcaa6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1782d8=>{const _0x5d22db=_0x4dcaa6['commands']['get']('uploadcareImageEdit'),_0x2c82d6=new _0x12f927(_0x1782d8),t=_0x1782d8['t'];return _0x2c82d6['set']({'icon':_0x5d0800,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2c82d6['bind']('isEnabled')['to'](_0x5d22db),_0x2c82d6['bind']('isOn')['to'](_0x5d22db,'isActive'),this['listenTo'](_0x2c82d6,'execute',()=>{_0x4dcaa6['execute']('uploadcareImageEdit'),_0x4dcaa6['editing']['view']['focus']();}),_0x2c82d6;}),this['_initConfig']();}['_initConfig'](){const _0x163246=_0x17b24d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x163246),this['listenTo'](this['editor'],'destroy',()=>{_0x163246['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3301a9=_0x1e9e;(function(_0x45ab3e,_0xd32690){const _0x1c3938=_0x1e9e,_0x9f33b6=_0x45ab3e();while(!![]){try{const _0x42904f=-parseInt(_0x1c3938(0x1f1))/0x1+parseInt(_0x1c3938(0x1ea))/0x2+-parseInt(_0x1c3938(0x1e6))/0x3+-parseInt(_0x1c3938(0x1e1))/0x4*(parseInt(_0x1c3938(0x1e4))/0x5)+parseInt(_0x1c3938(0x1ec))/0x6+-parseInt(_0x1c3938(0x1eb))/0x7+-parseInt(_0x1c3938(0x1e3))/0x8*(-parseInt(_0x1c3938(0x1ee))/0x9);if(_0x42904f===_0xd32690)break;else _0x9f33b6['push'](_0x9f33b6['shift']());}catch(_0x3810e0){_0x9f33b6['push'](_0x9f33b6['shift']());}}}(_0x4b75,0x9d6ad));function _0x1e9e(_0x1c2cc1,_0x2ef441){const _0x4b75a8=_0x4b75();return _0x1e9e=function(_0x1e9e69,_0x301e09){_0x1e9e69=_0x1e9e69-0x1dc;let _0x3659f4=_0x4b75a8[_0x1e9e69];return _0x3659f4;},_0x1e9e(_0x1c2cc1,_0x2ef441);}import{Command as _0x52de73}from'ckeditor5/src/core.js';export default class O extends _0x52de73{[_0x3301a9(0x1df)](){const _0x30ada6=_0x3301a9,_0x31c9e9=this[_0x30ada6(0x1e0)][_0x30ada6(0x1e8)][_0x30ada6(0x1ef)][_0x30ada6(0x1dd)][_0x30ada6(0x1e9)]();this[_0x30ada6(0x1dc)]=Boolean(_0x31c9e9&&(_0x31c9e9['is'](_0x30ada6(0x1f3),_0x30ada6(0x1de))||_0x31c9e9['is'](_0x30ada6(0x1f3),_0x30ada6(0x1e2))));}[_0x3301a9(0x1f4)](_0x3c01a9){const _0x90e199=_0x3301a9,_0x48bfdb=this[_0x90e199(0x1e0)][_0x90e199(0x1e8)][_0x90e199(0x1ef)][_0x90e199(0x1dd)][_0x90e199(0x1e9)]();this[_0x90e199(0x1e0)][_0x90e199(0x1e8)][_0x90e199(0x1f0)](_0x79d963=>{const _0x420a1b=_0x90e199;_0x79d963[_0x420a1b(0x1ed)](_0x3c01a9,_0x48bfdb),_0x79d963[_0x420a1b(0x1f2)](_0x420a1b(0x1e5),_0x48bfdb),_0x79d963[_0x420a1b(0x1f2)](_0x420a1b(0x1e7),_0x48bfdb);});}}function _0x4b75(){const _0x29f6bf=['1781670APzoYf','1355515vQCKcF','7570332atOsYR','setAttributes','9Pkclxy','document','change','997247DKkOno','removeAttribute','element','execute','isEnabled','selection','imageBlock','refresh','editor','16DMyWoQ','imageInline','1852840AXgXyv','17585HovOtz','srcset','1603263fOkpYH','sizes','model','getSelectedElement'];_0x4b75=function(){return _0x29f6bf;};return _0x4b75();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2def(){var _0x16c059=['1699855iYzySO','3MvoHFd','isPremiumPlugin','42nHeGji','pluginName','2NkVIpU','315444waDEPq','1913896qcmCjS','535219PEkclA','3801879GswCWw','UploadcareImageEdit','isOfficialPlugin','2997296sTsCVi','requires','3815339ICHWXK','30MQgJTy'];_0x2def=function(){return _0x16c059;};return _0x2def();}var _0x7f9971=_0x4780;(function(_0x422c51,_0x93a6c2){var _0x5c68dc=_0x4780,_0x4b926d=_0x422c51();while(!![]){try{var _0x3072d2=-parseInt(_0x5c68dc(0xa1))/0x1*(parseInt(_0x5c68dc(0x9e))/0x2)+parseInt(_0x5c68dc(0x9a))/0x3*(parseInt(_0x5c68dc(0xa0))/0x4)+-parseInt(_0x5c68dc(0x99))/0x5+-parseInt(_0x5c68dc(0x9f))/0x6*(parseInt(_0x5c68dc(0x9c))/0x7)+parseInt(_0x5c68dc(0xa5))/0x8+-parseInt(_0x5c68dc(0xa2))/0x9+parseInt(_0x5c68dc(0xa8))/0xa*(parseInt(_0x5c68dc(0xa7))/0xb);if(_0x3072d2===_0x93a6c2)break;else _0x4b926d['push'](_0x4b926d['shift']());}catch(_0xf08575){_0x4b926d['push'](_0x4b926d['shift']());}}}(_0x2def,0x4482a));function _0x4780(_0x5589cc,_0x2dd11d){var _0x2def1d=_0x2def();return _0x4780=function(_0x4780c7,_0x5ab4fe){_0x4780c7=_0x4780c7-0x99;var _0x53b0b4=_0x2def1d[_0x4780c7];return _0x53b0b4;},_0x4780(_0x5589cc,_0x2dd11d);}import{Plugin as _0xba7dc2}from'ckeditor5/src/core.js';import _0x39ac6e from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x32fb87 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0xba7dc2{static get[_0x7f9971(0x9d)](){var _0x4a5582=_0x7f9971;return _0x4a5582(0xa3);}static get[_0x7f9971(0xa6)](){return[_0x39ac6e,_0x32fb87];}static get[_0x7f9971(0xa4)](){return!0x0;}static get[_0x7f9971(0x9b)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b28c2=_0x9957;(function(_0x15ab9f,_0x452728){const _0x47f04a=_0x9957,_0x5d973b=_0x15ab9f();while(!![]){try{const _0xfbe2c3=parseInt(_0x47f04a(0x1bd))/0x1*(parseInt(_0x47f04a(0x1a1))/0x2)+parseInt(_0x47f04a(0x16d))/0x3*(-parseInt(_0x47f04a(0x19a))/0x4)+-parseInt(_0x47f04a(0x181))/0x5*(-parseInt(_0x47f04a(0x196))/0x6)+parseInt(_0x47f04a(0x1a6))/0x7+parseInt(_0x47f04a(0x190))/0x8*(parseInt(_0x47f04a(0x1ba))/0x9)+-parseInt(_0x47f04a(0x171))/0xa*(parseInt(_0x47f04a(0x1a7))/0xb)+-parseInt(_0x47f04a(0x19d))/0xc;if(_0xfbe2c3===_0x452728)break;else _0x5d973b['push'](_0x5d973b['shift']());}catch(_0x465920){_0x5d973b['push'](_0x5d973b['shift']());}}}(_0x448f,0x33965));import{Plugin as _0x3b52f2,icons as _0x1991f9}from'ckeditor5/src/core.js';import{ButtonView as _0x237c88,MenuBarMenuListItemButtonView as _0x49a665}from'ckeditor5/src/ui.js';import _0xe7714f from'../theme/icons/dropbox.svg';import _0xfff44e from'../theme/icons/facebook.svg';import _0xfe664a from'../theme/icons/google-drive.svg';import _0x3c0627 from'../theme/icons/google-photos.svg';import _0x19ce0f from'../theme/icons/link.svg';function _0x9957(_0x5575cc,_0x1426f0){const _0x448f8e=_0x448f();return _0x9957=function(_0x99577f,_0x4caa7e){_0x99577f=_0x99577f-0x16a;let _0x45b273=_0x448f8e[_0x99577f];return _0x45b273;},_0x9957(_0x5575cc,_0x1426f0);}import _0x22de46 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x257f24}from'./uploadcareconfig.js';import{getTranslation as _0x2cf10c}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x448f(){const _0x31b2b0=['url','Uploadcare','init','shortText','domainLimit','GDrive','bind','UploadcareUI','_createButton','1114150lulHsB','isOfficialPlugin','text','_createToolbarButton','GPhotos','_createDropdownButtons','Insert','uploadcareLicenseKeyExpired','uploadcareLicenseKeyTrialLimit','upload','config','reduce','uploadcare','withText','licenseKey','296wPqhmi','get','uploadcareLicenseKeyValid','usageLimit','ImageInsertUI','Local','6QyUnMv','destroy','icon','has','92bhSciz','uploadcareLicenseKeyEvaluationLimit','_createMenuBarButtons','782412KBMhZO','uploadcareLicenseKeyDomainLimit','Replace','Facebook','380264SuocBZ','isPremiumPlugin','uploadcareLicenseKeyInvalid','_showLicenseError','expired','15939JqjSVZ','1903OQMEyO','_licenseKeyCheckInterval','map','featureNotAllowed','type','forEach','imageUpload','isEnabled','execute','evaluationLimit','registerIntegration','plugins','URL','pluginName','invalid','uploadcareLicenseKeyUsageLimit','_normalizeConfigSourceList','uploadcareLicenseKeyNotAllowed','uploadcare.uploader.sourceList','96174AsESGj','Dropbox','_getIntegrationKey','1HxCzmQ','afterInit','locale','push','52992GYNRtj','entries','label','OneDrive','7390NczLrk','editor','tooltip','trialLimit','isImageSelected','commands','assetManager'];_0x448f=function(){return _0x31b2b0;};return _0x448f();}import'../theme/uploadcareimageedit.css';export default class e extends _0x3b52f2{static get[_0x4b28c2(0x1b4)](){const _0x561538=_0x4b28c2;return _0x561538(0x17f);}static get[_0x4b28c2(0x182)](){return!0x0;}static get[_0x4b28c2(0x1a2)](){return!0x0;}[_0x4b28c2(0x17a)](){const _0x271eaa=_0x4b28c2;this[_0x271eaa(0x18f)]=this[_0x271eaa(0x172)][_0x271eaa(0x18b)][_0x271eaa(0x191)](_0x271eaa(0x18f));const _0x5e78fe=this[_0x271eaa(0x172)];this[_0x271eaa(0x1a8)]=setInterval(()=>{const _0x45dec3=_0x271eaa;let _0x237e58;for(const _0x5a207d in _0x5e78fe){const _0x1bb74b=_0x5a207d,_0x17b10d=_0x5e78fe[_0x1bb74b];if(_0x45dec3(0x192)==_0x17b10d||_0x45dec3(0x1a3)==_0x17b10d||_0x45dec3(0x188)==_0x17b10d||_0x45dec3(0x19e)==_0x17b10d||_0x45dec3(0x1b8)==_0x17b10d||_0x45dec3(0x19b)==_0x17b10d||_0x45dec3(0x189)==_0x17b10d||_0x45dec3(0x1b6)==_0x17b10d){delete _0x5e78fe[_0x1bb74b],_0x237e58=_0x17b10d,clearInterval(this[_0x45dec3(0x1a8)]),this[_0x45dec3(0x1a8)]=void 0x0;break;}}_0x45dec3(0x1a3)==_0x237e58&&_0x5e78fe[_0x45dec3(0x1a4)](_0x45dec3(0x1b5)),_0x45dec3(0x188)==_0x237e58&&_0x5e78fe[_0x45dec3(0x1a4)](_0x45dec3(0x1a5)),_0x45dec3(0x19e)==_0x237e58&&_0x5e78fe[_0x45dec3(0x1a4)](_0x45dec3(0x17c)),_0x45dec3(0x1b8)==_0x237e58&&_0x5e78fe[_0x45dec3(0x1a4)](_0x45dec3(0x1aa),_0x45dec3(0x179)),_0x45dec3(0x19b)==_0x237e58&&_0x5e78fe[_0x45dec3(0x1a4)](_0x45dec3(0x1b0)),_0x45dec3(0x189)==_0x237e58&&_0x5e78fe[_0x45dec3(0x1a4)](_0x45dec3(0x174)),_0x45dec3(0x1b6)==_0x237e58&&_0x5e78fe[_0x45dec3(0x1a4)](_0x45dec3(0x193));},0x3e8);}[_0x4b28c2(0x16a)](){const _0x24155e=_0x4b28c2,{editor:_0x585020}=this,_0x5129c5=_0x585020[_0x24155e(0x176)][_0x24155e(0x191)](_0x24155e(0x18d));if(!_0x5129c5)return;const _0x591df8=this[_0x24155e(0x1b7)](_0x585020[_0x24155e(0x18b)][_0x24155e(0x191)](_0x24155e(0x1b9)))[_0x24155e(0x18c)]((_0xaa83ad,_0x1cb221)=>{const _0x57a604=_0x24155e,_0x1cb4ec=this[_0x57a604(0x1bc)](_0x1cb221[_0x57a604(0x1ab)]);return _0xaa83ad[_0x1cb4ec]||(_0xaa83ad[_0x1cb4ec]=[]),_0xaa83ad[_0x1cb4ec][_0x57a604(0x16c)](_0x1cb221),_0xaa83ad;},{});_0x585020[_0x24155e(0x1b2)][_0x24155e(0x199)](_0x24155e(0x194))&&_0x585020[_0x24155e(0x176)][_0x24155e(0x191)](_0x24155e(0x18d))&&Object[_0x24155e(0x16e)](_0x591df8)[_0x24155e(0x1ac)](([_0x228f38,_0x16fa76])=>{const _0x164330=_0x24155e;_0x585020[_0x164330(0x1b2)][_0x164330(0x191)](_0x164330(0x194))[_0x164330(0x1b1)]({'name':_0x228f38,'observable':()=>_0x5129c5,'buttonViewCreator':()=>this[_0x164330(0x184)](_0x16fa76),'formViewCreator':()=>this[_0x164330(0x186)](_0x16fa76),'menuBarButtonViewCreator':()=>this[_0x164330(0x19c)](_0x16fa76),'override':_0x164330(0x177)!==_0x228f38});});}[_0x4b28c2(0x197)](){const _0x434833=_0x4b28c2;super[_0x434833(0x197)](),this[_0x434833(0x1a8)]&&clearInterval(this[_0x434833(0x1a8)]);}[_0x4b28c2(0x1b7)](_0x2ed72a){const _0x174c6b=_0x4b28c2,{locale:_0x4b3021}=this[_0x174c6b(0x172)];return _0x2ed72a[_0x174c6b(0x1a9)](_0xe5ede5=>{const _0x3e1793=_0x174c6b,_0x103d29=_0x2cf10c(_0x4b3021,_0xe5ede5,_0x3e1793(0x187));switch(_0xe5ede5){case _0x257f24[_0x3e1793(0x195)]:return{'icon':_0x1991f9[_0x3e1793(0x1ad)],'type':_0x257f24[_0x3e1793(0x195)],..._0x103d29};case _0x257f24[_0x3e1793(0x1b3)]:return{'icon':_0x19ce0f,'type':_0x257f24[_0x3e1793(0x1b3)],..._0x103d29};case _0x257f24[_0x3e1793(0x1bb)]:return{'icon':_0xe7714f,'type':_0x257f24[_0x3e1793(0x1bb)],..._0x103d29};case _0x257f24[_0x3e1793(0x1a0)]:return{'icon':_0xfff44e,'type':_0x257f24[_0x3e1793(0x1a0)],..._0x103d29};case _0x257f24[_0x3e1793(0x17d)]:return{'icon':_0xfe664a,'type':_0x257f24[_0x3e1793(0x17d)],..._0x103d29};case _0x257f24[_0x3e1793(0x185)]:return{'icon':_0x3c0627,'type':_0x257f24[_0x3e1793(0x185)],..._0x103d29};case _0x257f24[_0x3e1793(0x170)]:return{'icon':_0x22de46,'type':_0x257f24[_0x3e1793(0x170)],..._0x103d29};}});}[_0x4b28c2(0x1bc)](_0x44bcd1){const _0x54214b=_0x4b28c2;switch(_0x44bcd1){case _0x257f24[_0x54214b(0x195)]:return _0x54214b(0x18a);case _0x257f24[_0x54214b(0x1b3)]:return _0x54214b(0x178);default:return _0x54214b(0x177);}}[_0x4b28c2(0x180)](_0x1be003,_0x343543){const _0x3f5496=_0x4b28c2,_0x1e4bb5=this[_0x3f5496(0x172)],_0x2f7616=new _0x1be003(_0x1e4bb5[_0x3f5496(0x16b)]),_0x59a27=_0x1e4bb5[_0x3f5496(0x176)][_0x3f5496(0x191)](_0x3f5496(0x18d));return _0x2f7616[_0x3f5496(0x17e)](_0x3f5496(0x1ae))['to'](_0x59a27),_0x2f7616['on'](_0x3f5496(0x1af),()=>{const _0x5d9f0f=_0x3f5496;_0x59a27[_0x5d9f0f(0x1af)](_0x343543);}),_0x2f7616;}[_0x4b28c2(0x184)](_0x366941){const _0x593eaf=_0x4b28c2,{locale:_0x11673f}=this[_0x593eaf(0x172)],_0x3d5607=this[_0x593eaf(0x172)][_0x593eaf(0x1b2)][_0x593eaf(0x191)](_0x593eaf(0x194)),_0x200af5=_0x366941[0x0],_0x148bbd=this[_0x593eaf(0x180)](_0x237c88,_0x200af5[_0x593eaf(0x1ab)]);return _0x148bbd[_0x593eaf(0x198)]=_0x200af5[_0x593eaf(0x198)],_0x148bbd[_0x593eaf(0x17e)](_0x593eaf(0x16f))['to'](_0x3d5607,_0x593eaf(0x175),_0x201364=>_0x2cf10c(_0x11673f,_0x200af5[_0x593eaf(0x1ab)],_0x201364?_0x593eaf(0x19f):_0x593eaf(0x187))[_0x593eaf(0x183)]),_0x148bbd[_0x593eaf(0x173)]=!0x0,_0x148bbd;}[_0x4b28c2(0x186)](_0x27d22f){const _0x2f7a9c=_0x4b28c2,{locale:_0x164973}=this[_0x2f7a9c(0x172)],_0x3babf8=this[_0x2f7a9c(0x172)][_0x2f7a9c(0x1b2)][_0x2f7a9c(0x191)](_0x2f7a9c(0x194));return _0x27d22f[_0x2f7a9c(0x1a9)](_0x3dacf5=>{const _0x4409d1=_0x2f7a9c,_0x29ab0c=this[_0x4409d1(0x180)](_0x237c88,_0x3dacf5[_0x4409d1(0x1ab)]);return _0x29ab0c[_0x4409d1(0x18e)]=!0x0,_0x29ab0c[_0x4409d1(0x198)]=_0x3dacf5[_0x4409d1(0x198)],_0x29ab0c[_0x4409d1(0x17e)](_0x4409d1(0x16f))['to'](_0x3babf8,_0x4409d1(0x175),_0x38c402=>_0x2cf10c(_0x164973,_0x3dacf5[_0x4409d1(0x1ab)],_0x38c402?_0x4409d1(0x19f):_0x4409d1(0x187))[_0x4409d1(0x183)]),_0x29ab0c;});}[_0x4b28c2(0x19c)](_0xae7603){const _0x40bdca=_0x4b28c2;return _0xae7603[_0x40bdca(0x1a9)](_0x385b39=>{const _0x583478=_0x40bdca,_0x509aaa=this[_0x583478(0x180)](_0x49a665,_0x385b39[_0x583478(0x1ab)]);return _0x509aaa[_0x583478(0x198)]=_0x385b39[_0x583478(0x198)],_0x509aaa[_0x583478(0x16f)]=_0x385b39[_0x583478(0x17b)],_0x509aaa;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x28a3f3}from'ckeditor5/src/core.js';import{FileRepository as _0x1b1221}from'ckeditor5/src/upload.js';import _0x5ce945 from'./uploadcareediting.js';import _0x1117d1 from'./utils/uploadutils.js';import{getImageUrls as _0x588219}from'./utils/editingutils.js';export default class f extends _0x28a3f3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1b1221,_0x5ce945];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3698fa=this['editor'];if(!!!_0x3698fa['config']['get']('uploadcare'))return;_0x3698fa['plugins']['get'](_0x1b1221)['createUploadAdapter']=_0x26b78e=>new E(_0x26b78e,_0x3698fa),_0x3698fa['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1bcb77,{imageElement:_0x477b29,data:_0x2da598})=>{_0x3698fa['model']['change'](_0x198b31=>{_0x198b31['setAttribute']('uploadcareImageId',_0x2da598['uploadcareImageId'],_0x477b29);});});}}class E{constructor(_0x518765,_0x24965d){this['loader']=_0x518765,this['editor']=_0x24965d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x155d5f=this['editor']['config']['get']('uploadcare.pubkey'),_0x5a1be4=await this['loader']['file'];return _0x1117d1['upload']({'file':_0x5a1be4,'publicKey':_0x155d5f,'signal':this['controller']['signal'],'onProgress':_0x314e56=>{_0x314e56&&_0x314e56['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x314e56['value']);}})['then'](async _0x54534b=>{const {imageFallbackUrl:_0x34cd20,imageSources:_0x50cdeb}=_0x588219(_0x54534b['cdnUrl'],_0x54534b['imageInfo']['width']);return{'uploadcareImageId':_0x54534b['uuid'],'default':_0x34cd20,'sources':_0x50cdeb};})['catch'](()=>{const _0x5865b5=t('Cannot\x20upload\x20file:')+('\x20'+_0x5a1be4['name']+'.');return Promise['reject'](_0x5865b5);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x168fd4}from'../uploadcareconfig.js';export function getTranslation(_0x2d15e9,_0xaa2ec1,_0x2dbbd4){const t=_0x2d15e9['t'],_0x4af129=_0x2d15e9['t'];switch(_0xaa2ec1){case _0x168fd4['Local']:return{'text':_0x4af129('Insert'===_0x2dbbd4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4af129('From\x20computer')};case _0x168fd4['URL']:return{'text':'Insert'===_0x2dbbd4?_0x4af129('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4af129('Via\x20URL')};case _0x168fd4['Dropbox']:return{'text':t('Insert'===_0x2dbbd4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x168fd4['Facebook']:return{'text':t('Insert'===_0x2dbbd4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x168fd4['GDrive']:return{'text':t('Insert'===_0x2dbbd4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x168fd4['GPhotos']:return{'text':t('Insert'===_0x2dbbd4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x168fd4['OneDrive']:return{'text':t('Insert'===_0x2dbbd4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xaa2ec1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x463f62=_0x5bf1;(function(_0x5e8021,_0x569dfd){var _0xa0d9d3=_0x5bf1,_0x7265c1=_0x5e8021();while(!![]){try{var _0x233a0c=-parseInt(_0xa0d9d3(0x130))/0x1*(parseInt(_0xa0d9d3(0x139))/0x2)+parseInt(_0xa0d9d3(0x12f))/0x3*(-parseInt(_0xa0d9d3(0x140))/0x4)+parseInt(_0xa0d9d3(0x13c))/0x5*(parseInt(_0xa0d9d3(0x13e))/0x6)+parseInt(_0xa0d9d3(0x135))/0x7*(parseInt(_0xa0d9d3(0x13b))/0x8)+-parseInt(_0xa0d9d3(0x13a))/0x9*(-parseInt(_0xa0d9d3(0x133))/0xa)+-parseInt(_0xa0d9d3(0x132))/0xb*(-parseInt(_0xa0d9d3(0x138))/0xc)+-parseInt(_0xa0d9d3(0x12e))/0xd;if(_0x233a0c===_0x569dfd)break;else _0x7265c1['push'](_0x7265c1['shift']());}catch(_0x35270c){_0x7265c1['push'](_0x7265c1['shift']());}}}(_0x503f,0xd9bd9));import{FocusTracker as _0x4f017e}from'ckeditor5/src/utils.js';import{View as _0x1efa78,FocusCycler as _0x334a9e}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x5bf1(_0x344e8a,_0x290a62){var _0x503f89=_0x503f();return _0x5bf1=function(_0x5bf19e,_0x325745){_0x5bf19e=_0x5bf19e-0x12d;var _0x4d1fd5=_0x503f89[_0x5bf19e];return _0x4d1fd5;},_0x5bf1(_0x344e8a,_0x290a62);}function _0x503f(){var _0x62fc8f=['15941349lZJwQb','376KXpWRU','10GHgErx','focusTracker','1804908HIqAaE','div','12RnWpcA','focusCycler','bindTemplate','true','14116739YrNJUj','1562523EMfyXq','43HrZitu','fire','55XPltHL','10AMOgfF','createCollection','105469UmEgai','forwardCycle','getFocusableElement','1793112rFaYJh','13390ArfGMb'];_0x503f=function(){return _0x62fc8f;};return _0x503f();}export default class G extends _0x1efa78{constructor(_0x21cfff){var _0x1f6ba0=_0x5bf1;super(_0x21cfff),this[_0x1f6ba0(0x13d)]=new _0x4f017e(),this[_0x1f6ba0(0x141)]=new _0x334a9e({'focusables':this[_0x1f6ba0(0x134)](),'focusTracker':this[_0x1f6ba0(0x13d)]});}[_0x463f62(0x137)](){var _0x293d7f=_0x463f62;return{'tag':_0x293d7f(0x13f),'attributes':{'aria-hidden':_0x293d7f(0x12d),'tabindex':'0'},'on':{'focus':this[_0x293d7f(0x142)]['to'](()=>{var _0xcaab78=_0x293d7f;this[_0xcaab78(0x141)][_0xcaab78(0x131)](_0xcaab78(0x136));})}};}}
|