@ckeditor/ckeditor5-uploadcare 44.2.0-alpha.9 → 44.2.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
|
-
function
|
|
23
|
+
function _0xabfe(_0x1ffe66,_0x46aa21){var _0x5410e2=_0x5410();return _0xabfe=function(_0xabfee7,_0xecfda5){_0xabfee7=_0xabfee7-0x68;var _0x4f875d=_0x5410e2[_0xabfee7];return _0x4f875d;},_0xabfe(_0x1ffe66,_0x46aa21);}(function(_0x1a3543,_0x41cef8){var _0x46a9b5=_0xabfe,_0x2df5ab=_0x1a3543();while(!![]){try{var _0x691047=parseInt(_0x46a9b5(0x69))/0x1+-parseInt(_0x46a9b5(0x6b))/0x2+parseInt(_0x46a9b5(0x7b))/0x3+-parseInt(_0x46a9b5(0x73))/0x4+parseInt(_0x46a9b5(0x6c))/0x5*(-parseInt(_0x46a9b5(0x6f))/0x6)+-parseInt(_0x46a9b5(0x70))/0x7*(-parseInt(_0x46a9b5(0x6d))/0x8)+-parseInt(_0x46a9b5(0x6e))/0x9*(-parseInt(_0x46a9b5(0x77))/0xa);if(_0x691047===_0x41cef8)break;else _0x2df5ab['push'](_0x2df5ab['shift']());}catch(_0x3008a1){_0x2df5ab['push'](_0x2df5ab['shift']());}}}(_0x5410,0x1a5e3));export var UploadcareSource;!function(_0x4843fc){var _0x443351=_0xabfe;_0x4843fc[_0x443351(0x7e)]=_0x443351(0x72),_0x4843fc[_0x443351(0x74)]=_0x443351(0x7d),_0x4843fc[_0x443351(0x76)]=_0x443351(0x68),_0x4843fc[_0x443351(0x71)]=_0x443351(0x7f),_0x4843fc[_0x443351(0x7c)]=_0x443351(0x78),_0x4843fc[_0x443351(0x6a)]=_0x443351(0x7a),_0x4843fc[_0x443351(0x79)]=_0x443351(0x75);}(UploadcareSource||(UploadcareSource={}));function _0x5410(){var _0x2a7b56=['704630ZeDHzi','facebook','OneDrive','gphotos','477345NvtldJ','Facebook','url','Local','gdrive','dropbox','83429WCXkDV','GPhotos','314592GvALYn','65cGINyp','104BaaSEQ','27CAUjdk','79536leBmPp','8561oTweFB','GDrive','local','128820TVyBlX','URL','onedrive','Dropbox'];_0x5410=function(){return _0x2a7b56;};return _0x5410();}
|
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 _0x47249a=_0x3c55;function _0x3c55(_0x3d9bf6,_0x18979d){const _0x12366c=_0x1236();return _0x3c55=function(_0x3c5502,_0x5ce180){_0x3c5502=_0x3c5502-0x162;let _0x40d469=_0x12366c[_0x3c5502];return _0x40d469;},_0x3c55(_0x3d9bf6,_0x18979d);}(function(_0x547860,_0x41c63a){const _0x30d1cd=_0x3c55,_0x55b183=_0x547860();while(!![]){try{const _0x59be53=parseInt(_0x30d1cd(0x1ae))/0x1+-parseInt(_0x30d1cd(0x17b))/0x2+-parseInt(_0x30d1cd(0x167))/0x3+parseInt(_0x30d1cd(0x171))/0x4+-parseInt(_0x30d1cd(0x177))/0x5*(parseInt(_0x30d1cd(0x18e))/0x6)+-parseInt(_0x30d1cd(0x192))/0x7*(-parseInt(_0x30d1cd(0x16d))/0x8)+-parseInt(_0x30d1cd(0x185))/0x9*(-parseInt(_0x30d1cd(0x184))/0xa);if(_0x59be53===_0x41c63a)break;else _0x55b183['push'](_0x55b183['shift']());}catch(_0x49bab4){_0x55b183['push'](_0x55b183['shift']());}}}(_0x1236,0x23c10));import{Plugin as _0xdd33c6}from'ckeditor5/src/core.js';import{Dialog as _0x558a07}from'ckeditor5/src/ui.js';function _0x1236(){const _0x468f3a=['fromCharCode','destroy','130DgKvLS','207531TWXzRe','remove','commands','iconHrefResolver','_configElement','once','_initSchema','for','UploadcareEditing','681054ApGKSk','isOfficialPlugin','configElement','removeAttribute','1477KVjIVT','getAttribute','upcast','schema','getSelectedElement','querySelector','uploadcare.pubkey','input[uploadcare-file-input]','PictureEditing','view','cleanupImage','attributeToAttribute','imageInline','insertImage','execute','extend','document','downcast','uploadcare.uploader','uploader','closeMax','model','true','uc-config','appendChild','isPremiumPlugin','render','init','117786ziTlYM','_ctxElement','locale','requires','_initConfig','contentLanguage','afterInit','href','_initCtx','uc-upload-ctx-provider','ctxElement','selection','#uc-icon-arrow-down','322278rGMTKo','listenTo','pluginName','_initImageProcessingIndicator','join','uploadcareImageId','3056KEqqhX','data-uc-image-id','replaceImageSource','config','110276pktmor','conversion','body','uploadcareImageReplace','editor','map','10JJqIyC','_initConversion','elementToAttribute','\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','89664hemBWR','add','editing','imageBlock','get','isRegistered','uploadcare'];_0x1236=function(){return _0x468f3a;};return _0x1236();}import{createElement as _0x531d8a,global as _0x35d0b5,uid as _0x509a09}from'ckeditor5/src/utils.js';import _0x1744a2 from'./uploadcarecommand.js';import _0x2b105c from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x200158}from'./utils/editingutils.js';export default class i extends _0xdd33c6{constructor(){const _0x945cc4=_0x3c55;super(...arguments),this[_0x945cc4(0x189)]=null,this[_0x945cc4(0x1af)]=null;}static get[_0x47249a(0x169)](){const _0x529b2c=_0x47249a;return _0x529b2c(0x18d);}static get[_0x47249a(0x1b1)](){const _0x113735=_0x47249a;return[_0x113735(0x19a),_0x2b105c,_0x558a07];}static get[_0x47249a(0x18f)](){return!0x0;}static get[_0x47249a(0x1ab)](){return!0x0;}get[_0x47249a(0x190)](){const _0x264b82=_0x47249a;return this[_0x264b82(0x189)];}get[_0x47249a(0x164)](){const _0x3bec84=_0x47249a;return this[_0x3bec84(0x1af)];}[_0x47249a(0x1ad)](){const _0x53bf79=_0x47249a,_0x3faf69=this[_0x53bf79(0x175)];_0x3faf69[_0x53bf79(0x187)][_0x53bf79(0x17c)](_0x53bf79(0x181),new _0x1744a2(_0x3faf69));}[_0x47249a(0x1b4)](){const _0x31c599=_0x47249a;this[_0x31c599(0x18b)](),this[_0x31c599(0x178)](),this[_0x31c599(0x1b2)](),this[_0x31c599(0x162)](),this[_0x31c599(0x16a)](),this[_0x31c599(0x168)](this[_0x31c599(0x175)],_0x31c599(0x183),()=>{const _0x4db25f=_0x31c599;this[_0x4db25f(0x189)]&&(this[_0x4db25f(0x189)][_0x4db25f(0x186)](),this[_0x4db25f(0x189)]=null),this[_0x4db25f(0x1af)]&&(this[_0x4db25f(0x1af)][_0x4db25f(0x186)](),this[_0x4db25f(0x1af)]=null);const _0x25cca9=_0x35d0b5[_0x4db25f(0x1a2)][_0x4db25f(0x197)](_0x4db25f(0x199));_0x25cca9&&_0x25cca9[_0x4db25f(0x186)]();}),async function(_0x545ffd){const _0x56af3b=_0xa43dbf([0x4c,0x73,0x6d,0x79,0x64,0x58,0x66,0x31,0x6c,0x47,0x70,0x72,0x68,0x55,0x4b,0x53,0x52,0x4a,0x6b,0x34,0x59,0x65,0x33,0x32,0x75,0x5a,0x7a,0x54,0x4f,0x42,0x38,0x4e,0x57,0x77,0x46,0x67,0x30,0x48,0x4d,0x49,0x56,0x44,0x36,0x6e,0x63,0x6a,0x69,0x6f,0x43,0x39,0x62,0x78,0x45,0x61,0x76,0x74,0x41,0x50,0x35,0x51,0x71,0x37]),_0x480835=0x2c8acd80,_0x18ccb9=0x2c8d92c8^_0x480835,_0x532ccd=window[_0xa43dbf([0x44,0x61,0x74,0x65])][_0xa43dbf([0x6e,0x6f,0x77])](),_0xff9fe=_0x545ffd[_0xa43dbf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45eb8c=new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d19f7=>{_0xff9fe[_0xa43dbf([0x6f,0x6e,0x63,0x65])](_0xa43dbf([0x72,0x65,0x61,0x64,0x79]),_0x3d19f7);}),_0x2783eb={[_0xa43dbf([0x6b,0x74,0x79])]:_0xa43dbf([0x45,0x43]),[_0xa43dbf([0x75,0x73,0x65])]:_0xa43dbf([0x73,0x69,0x67]),[_0xa43dbf([0x63,0x72,0x76])]:_0xa43dbf([0x50,0x2d,0x32,0x35,0x36]),[_0xa43dbf([0x78])]:_0xa43dbf([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]),[_0xa43dbf([0x79])]:_0xa43dbf([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]),[_0xa43dbf([0x61,0x6c,0x67])]:_0xa43dbf([0x45,0x53,0x32,0x35,0x36])},_0x24466e=_0xff9fe[_0xa43dbf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa43dbf([0x67,0x65,0x74])](_0xa43dbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2385e5(){let _0x173b49,_0x2ecfa1=null,_0x53fe19=null;try{if(_0x24466e==_0xa43dbf([0x47,0x50,0x4c]))return _0xa43dbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x173b49=_0x2128e5(),!_0x173b49)return _0xa43dbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x173b49[_0xa43dbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x53fe19=_0x1c97b8(_0x173b49[_0xa43dbf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x173b49[_0xa43dbf([0x6a,0x74,0x69])])),await _0x4d3a14()?_0x2710a3()?_0x49325d()?_0xa43dbf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38efa6()?(_0x173b49[_0xa43dbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa43dbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ecfa1=_0x2f1ecf(_0xa43dbf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x173b49[_0xa43dbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa43dbf([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ecfa1=_0x2f1ecf(_0xa43dbf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ce48b()):_0xa43dbf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa43dbf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa43dbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4146e2){return _0xa43dbf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49325d(){const _0x43883c=[_0xa43dbf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa43dbf([0x74,0x72,0x69,0x61,0x6c])][_0xa43dbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x173b49[_0xa43dbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x532ccd/0x3e8:0xe10*_0x18ccb9;return _0x173b49[_0xa43dbf([0x65,0x78,0x70])]<_0x43883c;}function _0x2710a3(){const _0x1b6564=_0x173b49[_0xa43dbf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b6564&&(!!_0x1b6564[_0xa43dbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa43dbf([0x2a]))||!!_0x1b6564[_0xa43dbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa43dbf([0x55,0x50,0x4c,0x43])));}function _0x38efa6(){const _0x44305c=_0x3c55,_0x37b4f3=_0x173b49[_0xa43dbf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37b4f3||0x0==_0x37b4f3[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41a968}=new URL(window[_0xa43dbf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x44305c(0x1b5)]);if(_0x37b4f3[_0xa43dbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41a968))return!0x0;const _0x818e2e=_0x41a968[_0xa43dbf([0x73,0x70,0x6c,0x69,0x74])](_0xa43dbf([0x2e]));return _0x37b4f3[_0xa43dbf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fd208=>_0x3fd208[_0xa43dbf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa43dbf([0x2a])))[_0xa43dbf([0x6d,0x61,0x70])](_0x157ee3=>_0x157ee3[_0xa43dbf([0x73,0x70,0x6c,0x69,0x74])](_0xa43dbf([0x2e])))[_0xa43dbf([0x73,0x6f,0x6d,0x65])](_0x7a5fd1=>_0x818e2e[_0xa43dbf([0x65,0x76,0x65,0x72,0x79])]((_0x1e7a4f,_0x427c0e)=>_0x7a5fd1[_0x427c0e]===_0x1e7a4f||_0x7a5fd1[_0x427c0e]===_0xa43dbf([0x2a])));}function _0x5ce48b(){return _0x2ecfa1&&_0x53fe19?new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46438d,_0x27c094)=>{_0x2ecfa1[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0x46438d,_0x27c094),_0x53fe19[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0xf8b094=>{_0xf8b094!=_0xa43dbf([0x56,0x61,0x6c,0x69,0x64])&&_0x46438d(_0xf8b094);},_0x27c094);}):_0x2ecfa1||_0x53fe19||_0xa43dbf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c97b8(_0x3b8fae,_0x3b0047){return new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x573bde=>{if(_0x49dca8())return _0x573bde(_0xa43dbf([0x56,0x61,0x6c,0x69,0x64]));_0x42664d(),_0xff9fe[_0xa43dbf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa43dbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22aa90=!0x1;const _0x3d79b3=_0x509a09();function _0x255876(_0x2905d0){return!!_0x2905d0&&(typeof _0x2905d0===_0xa43dbf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2905d0===_0xa43dbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2905d0[_0xa43dbf([0x74,0x68,0x65,0x6e])]===_0xa43dbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2905d0[_0xa43dbf([0x63,0x61,0x74,0x63,0x68])]===_0xa43dbf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c47f7(_0x53a5ad){_0x2b936c(_0x53a5ad)[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0x2d4145=>{if(!_0x2d4145||_0x2d4145[_0xa43dbf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa43dbf([0x6f,0x6b]))return _0xa43dbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x501678(_0x2eefb5(_0x3d79b3+_0x3b0047))!=_0x2d4145[_0xa43dbf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa43dbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa43dbf([0x56,0x61,0x6c,0x69,0x64]);})[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0x2efbc5=>(_0x3d6a10(),_0x2efbc5),()=>{const _0x555c23=_0x5aa001();return null==_0x555c23?(_0x3d6a10(),_0xa43dbf([0x56,0x61,0x6c,0x69,0x64])):_0xa43dbf(_0x532ccd-_0x555c23>(0x8864980^_0x480835)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0x573bde)[_0xa43dbf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x573bde(_0xa43dbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x348537=0x2cbc2300^_0x480835;function _0x3d6a10(){const _0x22953f=_0xa43dbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x501678(_0x2eefb5(_0x3b8fae)),_0x220d13=_0x5b6fa7(_0x501678(window[_0xa43dbf([0x4d,0x61,0x74,0x68])][_0xa43dbf([0x63,0x65,0x69,0x6c])](_0x532ccd/_0x348537)));window[_0xa43dbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa43dbf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22953f,_0x220d13);}function _0x5aa001(){const _0x29ef3d=_0xa43dbf([0x6c,0x6c,0x63,0x74,0x2d])+_0x501678(_0x2eefb5(_0x3b8fae)),_0x2533b2=window[_0xa43dbf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa43dbf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29ef3d);return _0x2533b2?window[_0xa43dbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b6fa7(_0x2533b2),0x10)*_0x348537:null;}function _0x2b936c(_0x1a1abf){return new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e6e47,_0x3b899d)=>{_0x1a1abf[_0xa43dbf([0x74,0x68,0x65,0x6e])](_0x2e6e47,_0x3b899d),window[_0xa43dbf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b899d,0x2c8b1940^_0x480835);});}}_0xff9fe[_0xa43dbf([0x6f,0x6e])](_0xa43dbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ab07e,_0x11e7d5)=>{if(_0x11e7d5[0x0]!=_0x3b8fae)return _0x573bde(_0xa43dbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11e7d5[0x1]={..._0x11e7d5[0x1],[_0xa43dbf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d79b3};},{[_0xa43dbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa43dbf([0x68,0x69,0x67,0x68])}),_0xff9fe[_0xa43dbf([0x6f,0x6e])](_0xa43dbf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1331e9=>{_0x255876(_0x1331e9[_0xa43dbf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22aa90=!0x0,_0x4c47f7(_0x1331e9[_0xa43dbf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa43dbf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa43dbf([0x6c,0x6f,0x77])}),_0x45eb8c[_0xa43dbf([0x74,0x68,0x65,0x6e])](()=>{_0x22aa90||_0x573bde(_0xa43dbf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49dca8(){return _0xff9fe[_0xa43dbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa43dbf([0x76,0x69,0x65,0x77])][_0xa43dbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa43dbf([0x61,0x75,0x74,0x6f]);}function _0x42664d(){_0xff9fe[_0xa43dbf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa43dbf([0x76,0x69,0x65,0x77])][_0xa43dbf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa43dbf([0x61,0x75,0x74,0x6f]);}}function _0x2f1ecf(_0x2fa5f7){const _0x4827b5=[new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f7f0d=>setTimeout(_0x4f7f0d,0x2c83f34c^_0x480835)),_0x45eb8c[_0xa43dbf([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbd2864=>{let _0x4e482d=0x0;_0xff9fe[_0xa43dbf([0x6d,0x6f,0x64,0x65,0x6c])][_0xa43dbf([0x6f,0x6e])](_0xa43dbf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x57152b,_0x53536a)=>{_0x53536a[0x0][_0xa43dbf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e482d++,_0x4e482d==(0x2c8acc78^_0x480835)&&(_0xbd2864(),_0x57152b[_0xa43dbf([0x6f,0x66,0x66])]());});}))];return window[_0xa43dbf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa43dbf([0x72,0x61,0x63,0x65])](_0x4827b5)[_0xa43dbf([0x74,0x68,0x65,0x6e])](()=>_0x2fa5f7);}async function _0x32f154(){await _0x45eb8c,_0xff9fe[_0xa43dbf([0x6d,0x6f,0x64,0x65,0x6c])][_0xa43dbf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9fd468,_0xff9fe[_0xa43dbf([0x6d,0x6f,0x64,0x65,0x6c])][_0xa43dbf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9fd468,_0xff9fe[_0xa43dbf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa43dbf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f78e4(_0x128336){const _0x20b7f2=_0x236b18();_0xff9fe[_0x20b7f2]=_0xa43dbf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x128336,_0x128336!=_0xa43dbf([0x56,0x61,0x6c,0x69,0x64])&&_0x32f154();}function _0x236b18(){const _0x456294=window[_0xa43dbf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa43dbf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa43dbf([0x6e,0x6f,0x77])]())[_0xa43dbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa43dbf([0x2e]),'');let _0x3022fc=_0xa43dbf([0x4c]);for(let _0x1ffcf7=0x0;_0x1ffcf7<_0x456294[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ffcf7+=0x2){let _0x40a221=window[_0xa43dbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x456294[_0xa43dbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ffcf7,_0x1ffcf7+0x2));_0x40a221>=_0x56af3b[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40a221-=_0x56af3b[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3022fc+=_0x56af3b[_0x40a221];}return _0x3022fc;}function _0x2128e5(){const _0x5b1f2e=_0x24466e[_0xa43dbf([0x73,0x70,0x6c,0x69,0x74])](_0xa43dbf([0x2e]));if(0x3!=_0x5b1f2e[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e8399(_0x5b1f2e[0x1]);function _0x3e8399(_0x792a3){const _0x30974b=_0x382a04(_0x792a3);return _0x30974b&&_0x26c661()?_0x30974b:null;function _0x26c661(){const _0x24200f=_0x30974b[_0xa43dbf([0x6a,0x74,0x69])],_0xbddc08=window[_0xa43dbf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24200f[_0xa43dbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24200f[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x653ddd={..._0x30974b,[_0xa43dbf([0x6a,0x74,0x69])]:_0x24200f[_0xa43dbf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24200f[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x653ddd[_0xa43dbf([0x76,0x63])],_0x2eefb5(_0x653ddd)==_0xbddc08;}}}async function _0x4d3a14(){let _0x1a0336=!0x0;try{const _0x37a6b3=_0x24466e[_0xa43dbf([0x73,0x70,0x6c,0x69,0x74])](_0xa43dbf([0x2e])),[_0x43be8a,_0x14ee82,_0x11010d]=_0x37a6b3;return _0x3a93ca(_0x43be8a),await _0x162361(_0x43be8a,_0x14ee82,_0x11010d),_0x1a0336;}catch(_0x15fa9f){return!0x1;}function _0x3a93ca(_0x3075e6){const _0x24c959=_0x382a04(_0x3075e6);_0x24c959&&_0x24c959[_0xa43dbf([0x61,0x6c,0x67])]==_0xa43dbf([0x45,0x53,0x32,0x35,0x36])||(_0x1a0336=!0x1);}async function _0x162361(_0x31d6b4,_0x5b6301,_0x4737a4){const _0x238a61=window[_0xa43dbf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa43dbf([0x66,0x72,0x6f,0x6d])](_0x5af459(_0x4737a4),_0x19ed2f=>_0x19ed2f[_0xa43dbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4bf1c6=new window[(_0xa43dbf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa43dbf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31d6b4+_0xa43dbf([0x2e])+_0x5b6301),_0x1ee420=window[_0xa43dbf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa43dbf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ee420)return;const _0x388736=await _0x1ee420[_0xa43dbf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa43dbf([0x6a,0x77,0x6b]),_0x2783eb,{[_0xa43dbf([0x6e,0x61,0x6d,0x65])]:_0xa43dbf([0x45,0x43,0x44,0x53,0x41]),[_0xa43dbf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa43dbf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa43dbf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ee420[_0xa43dbf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa43dbf([0x6e,0x61,0x6d,0x65])]:_0xa43dbf([0x45,0x43,0x44,0x53,0x41]),[_0xa43dbf([0x68,0x61,0x73,0x68])]:{[_0xa43dbf([0x6e,0x61,0x6d,0x65])]:_0xa43dbf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x388736,_0x238a61,_0x4bf1c6)||(_0x1a0336=!0x1);}}function _0x382a04(_0x58fdaa){return _0x58fdaa[_0xa43dbf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa43dbf([0x65,0x79]))?JSON[_0xa43dbf([0x70,0x61,0x72,0x73,0x65])](_0x5af459(_0x58fdaa)):null;}function _0x5af459(_0x248e72){return window[_0xa43dbf([0x61,0x74,0x6f,0x62])](_0x248e72[_0xa43dbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa43dbf([0x2b]))[_0xa43dbf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa43dbf([0x2f])));}function _0x2eefb5(_0x36ac1a){let _0x24f6da=0x1505;function _0x46c797(_0x3e319f){for(let _0x15ccbc=0x0;_0x15ccbc<_0x3e319f[_0xa43dbf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15ccbc++){const _0x341c5e=_0x3e319f[_0xa43dbf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15ccbc);_0x24f6da=(_0x24f6da<<0x5)+_0x24f6da+_0x341c5e,_0x24f6da&=_0x24f6da;}}function _0x2ed52d(_0xdf045){Array[_0xa43dbf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdf045)?_0xdf045[_0xa43dbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ed52d):_0xdf045&&typeof _0xdf045==_0xa43dbf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa43dbf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdf045)[_0xa43dbf([0x73,0x6f,0x72,0x74])]()[_0xa43dbf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36062c,_0x1b082d])=>{_0x46c797(_0x36062c),_0x2ed52d(_0x1b082d);}):_0x46c797(window[_0xa43dbf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdf045));}return _0x2ed52d(_0x36ac1a),_0x24f6da>>>0x0;}function _0x501678(_0x26496d){return _0x26496d[_0xa43dbf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa43dbf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa43dbf([0x30]));}function _0x5b6fa7(_0x46e98b){return _0x46e98b[_0xa43dbf([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa43dbf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa43dbf([0x6a,0x6f,0x69,0x6e])]('');}function _0x9fd468(){}function _0xa43dbf(_0x5399bc){const _0x40afcb=_0x3c55;return _0x5399bc[_0x40afcb(0x176)](_0x3fae95=>String[_0x40afcb(0x182)](_0x3fae95))[_0x40afcb(0x16b)]('');}_0x3f78e4(await _0x2385e5());}(this);}[_0x47249a(0x18b)](){const _0x53b89e=_0x47249a,_0x5d3ac5=this[_0x53b89e(0x175)][_0x53b89e(0x1a7)][_0x53b89e(0x195)];_0x5d3ac5[_0x53b89e(0x180)](_0x53b89e(0x17e))&&_0x5d3ac5[_0x53b89e(0x1a1)](_0x53b89e(0x17e),{'allowAttributes':[_0x53b89e(0x16c)]}),_0x5d3ac5[_0x53b89e(0x180)](_0x53b89e(0x19e))&&_0x5d3ac5[_0x53b89e(0x1a1)](_0x53b89e(0x19e),{'allowAttributes':[_0x53b89e(0x16c)]});}[_0x47249a(0x178)](){const _0x1aee40=_0x47249a,_0xe84df1=this[_0x1aee40(0x175)];_0xe84df1[_0x1aee40(0x172)][_0x1aee40(0x18c)](_0x1aee40(0x1a3))[_0x1aee40(0x19d)]({'model':_0x1aee40(0x16c),'view':_0x1aee40(0x16e)}),_0xe84df1[_0x1aee40(0x172)][_0x1aee40(0x18c)](_0x1aee40(0x194))[_0x1aee40(0x179)]({'model':{'key':_0x1aee40(0x16c),'value':_0x4edb37=>_0x4edb37[_0x1aee40(0x193)](_0x1aee40(0x16e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x24393f=_0xe84df1[_0x1aee40(0x187)][_0x1aee40(0x17f)](_0x1aee40(0x16f));_0x24393f&&this[_0x1aee40(0x168)](_0x24393f,_0x1aee40(0x19c),(_0x243c9b,[_0x4a704a,_0xbd0cb6])=>{const _0x3320c4=_0x1aee40;_0x4a704a[_0x3320c4(0x191)](_0x3320c4(0x16c),_0xbd0cb6);});}[_0x47249a(0x1b2)](){const _0x510e94=_0x47249a,_0x57f4d5=this[_0x510e94(0x175)][_0x510e94(0x170)][_0x510e94(0x17f)](_0x510e94(0x1a4))||{},_0x38227d=this[_0x510e94(0x175)][_0x510e94(0x170)][_0x510e94(0x17f)](_0x510e94(0x198))||'';this[_0x510e94(0x189)]=_0x531d8a(_0x35d0b5[_0x510e94(0x1a2)],_0x510e94(0x1a9),{..._0x57f4d5,'pubkey':_0x38227d,'ctx-name':_0x510e94(0x1a5),'sourceList':'','imgOnly':_0x510e94(0x1a8),'removeCopyright':_0x510e94(0x1a8),'localeName':this[_0x510e94(0x175)][_0x510e94(0x1b0)][_0x510e94(0x1b3)],'externalSourcesEmbedCss':_0x510e94(0x17a)}),this[_0x510e94(0x189)][_0x510e94(0x188)]=_0x68a909=>{const _0xa58554=_0x510e94;if(_0xa58554(0x1a6)==_0x68a909)return _0xa58554(0x166);},_0x35d0b5[_0x510e94(0x1a2)][_0x510e94(0x173)][_0x510e94(0x1aa)](this[_0x510e94(0x189)]);}[_0x47249a(0x162)](){const _0x5e4231=_0x47249a;this[_0x5e4231(0x1af)]=_0x531d8a(_0x35d0b5[_0x5e4231(0x1a2)],_0x5e4231(0x163),{'ctx-name':_0x5e4231(0x1a5)}),_0x35d0b5[_0x5e4231(0x1a2)][_0x5e4231(0x173)][_0x5e4231(0x1aa)](this[_0x5e4231(0x1af)]);}[_0x47249a(0x16a)](){const _0x4d8e92=_0x47249a,_0x4e5810=this[_0x4d8e92(0x175)][_0x4d8e92(0x187)][_0x4d8e92(0x17f)](_0x4d8e92(0x19f));_0x4e5810&&this[_0x4d8e92(0x168)](_0x4e5810,_0x4d8e92(0x1a0),()=>{const _0x2e377c=_0x4d8e92,_0x3a7088=this[_0x2e377c(0x175)][_0x2e377c(0x1a7)][_0x2e377c(0x1a2)][_0x2e377c(0x165)][_0x2e377c(0x196)]();_0x3a7088&&_0x3a7088[_0x2e377c(0x193)](_0x2e377c(0x16c))&&this[_0x2e377c(0x175)][_0x2e377c(0x17d)][_0x2e377c(0x19b)][_0x2e377c(0x18a)](_0x2e377c(0x1ac),()=>{const _0x5e782e=_0x2e377c;_0x200158(this[_0x5e782e(0x175)],_0x3a7088);});});const _0x1f6d8c=this[_0x4d8e92(0x175)][_0x4d8e92(0x187)][_0x4d8e92(0x17f)](_0x4d8e92(0x174));_0x1f6d8c&&this[_0x4d8e92(0x168)](_0x1f6d8c,_0x4d8e92(0x1a0),()=>{const _0x77b513=_0x4d8e92,_0x320dc7=this[_0x77b513(0x175)][_0x77b513(0x1a7)][_0x77b513(0x1a2)][_0x77b513(0x165)][_0x77b513(0x196)]();_0x320dc7&&_0x320dc7[_0x77b513(0x193)](_0x77b513(0x16c))&&this[_0x77b513(0x175)][_0x77b513(0x17d)][_0x77b513(0x19b)][_0x77b513(0x18a)](_0x77b513(0x1ac),()=>{const _0x4f18f6=_0x77b513;_0x200158(this[_0x4f18f6(0x175)],_0x320dc7);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2ff9df,ObservableMixin as _0x47fa46}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4db849}from'ckeditor5/src/ui.js';import _0x43c401 from'./uploadcareimageeditformview.js';import _0x28ed6d from'../../utils/uploadutils.js';import _0x57762b from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x5a35de,getImageDimension as _0x156ba8}from'../../utils/editingutils.js';import{isAncestor as _0x1d066e}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47fa46(){constructor(_0x592b7c,_0x1849d9,_0xd26b72){super(),this['_editor']=_0x592b7c,this['_dialog']=_0x1849d9,this['_imageElement']=_0xd26b72,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 _0xb5e406=this['_imageElement'],_0x402937=_0xb5e406['getAttribute']('uploadcareImageId'),_0x4951ea=_0xb5e406['getAttribute']('src');if(_0x402937)await this['_loadImageInfo'](_0x402937,_0x4951ea);else{if(this['_imageCache']['has'](_0x4951ea)){const _0x56134e=this['_imageCache']['get'](_0x4951ea);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56134e['url'],this['imageDimension']=_0x56134e['dimension'],this['imageId']=_0x56134e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x24488e}=this['_editor'],t=_0x24488e['t'],_0xedfa15=new _0x43c401(_0x24488e,this['imageStatus'],this['_attributes']);_0xedfa15['bind']('status')['to'](this,'imageStatus'),_0xedfa15['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xedfa15['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xedfa15['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xedfa15,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x57762b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xedfa15,'position':_0x4db849['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xedfa15['focus']();},'onHide':()=>{_0xedfa15['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x493274=>!_0x1d066e(_0x493274,_0xedfa15['element'])}});}['_loadImageInfo'](_0x337c01,_0x37691e){return _0x28ed6d['getInfo'](_0x337c01,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x589462=>{const {width:_0x230fd7,height:_0x5d399f}=_0x589462['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37691e,this['imageDimension']={'width':_0x230fd7,'height':_0x5d399f},this['imageId']=_0x337c01;})['catch'](_0x51e96d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x51e96d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3ea47b,_0xa69893){return this['_getImageAsFile'](_0x3ea47b)['then'](_0x42d266=>_0x28ed6d['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xa69893['signal'],'file':_0x42d266,'onProgress':_0x478ba0=>{_0x478ba0&&_0x478ba0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x478ba0['value']));}}))['then'](_0x199aba=>{const {width:_0x231090,height:_0x46a75a}=_0x199aba['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x199aba['cdnUrl'],this['imageDimension']={'width':_0x231090,'height':_0x46a75a},this['imageId']=_0x199aba['uuid'],this['imageUploadProgress']=null;const _0x30e4dc=_0x3ea47b['getAttribute']('src');this['_imageCache']['set'](_0x30e4dc,{'id':_0x199aba['uuid'],'url':_0x199aba['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1bbfb7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bbfb7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x50b59d,_0x36dd50){_0x50b59d['on']('apply',(_0x2ec656,_0x14ec7d)=>{this['_replaceImage'](_0x36dd50,_0x14ec7d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x50b59d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x50b59d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f4b2e,_0x401471,_0xf29989){const _0x59efeb=this['_editor'],{width:_0x1cd465,height:_0x4cd55a}=_0x156ba8(_0x401471,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x530c99,imageSources:_0x3ea947}=_0x5a35de(_0x401471,_0x1cd465);_0x59efeb['model']['change'](_0x139991=>{if('$graveyard'===_0x1f4b2e['root']['rootName']){_0x59efeb['execute']('insertImage',{'imageType':_0x1f4b2e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f4b2e['getAttributes']()),'uploadcareImageId':_0xf29989,'src':_0x530c99,'sources':_0x3ea947,'width':_0x1cd465,'height':_0x4cd55a}});const _0x25fe86=_0x1f4b2e['getChildren']();_0x1f4b2e=_0x59efeb['model']['document']['selection']['getSelectedElement']();for(const _0x4a60e0 of _0x25fe86)_0x139991['append'](_0x139991['cloneElement'](_0x4a60e0),_0x1f4b2e);}else _0x139991['setSelection'](_0x1f4b2e,'on'),_0x59efeb['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f4b2e['getAttributes']()),'uploadcareImageId':_0xf29989,'src':_0x530c99,'sources':_0x3ea947,'width':_0x1cd465,'height':_0x4cd55a},_0x1f4b2e);_0x139991['setSelection'](_0x1f4b2e,'on');});}async['_getImageAsFile'](_0x51431e){const _0x27c951=_0x2ff9df['window'],_0x175c14=_0x2ff9df['document']['location']['href'],_0x2eac88=new _0x27c951['URL'](_0x51431e['getAttribute']('src'),_0x175c14);if('data:'===_0x2eac88['protocol']){const _0x45442c=_0x2eac88['href']['split'](','),_0xa97cf=_0x45442c[0x0]['match'](/:(.*?);/)[0x1],_0x162e57=_0xa97cf['split']('/')[0x1],_0x3113a5=_0x27c951['atob'](_0x45442c[_0x45442c['length']-0x1]);let _0x354e8b=_0x3113a5['length'];const _0x39b6f5=new _0x27c951['Uint8Array'](_0x354e8b);for(;_0x354e8b--;)_0x39b6f5[_0x354e8b]=_0x3113a5['charCodeAt'](_0x354e8b);return new _0x27c951['File']([_0x39b6f5],'image.'+_0x162e57,{'type':_0xa97cf});}const _0x440def=_0x2eac88['href']['split']('/'),_0x2144c1=_0x440def[_0x440def['length']-0x1],_0x24c9a7=_0x2144c1['split']('.')[0x1];return _0x27c951['fetch'](_0x2eac88['href'])['then'](_0x16ad50=>_0x16ad50['clone']()['blob']())['then'](_0x5840a2=>new _0x27c951['File']([_0x5840a2],_0x2144c1,{'type':'image/'+_0x24c9a7}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x215d1d,_0x1867cb){const _0xc3c952=_0x5a09,_0x363ee3=_0x215d1d();while(!![]){try{const _0x12eb66=-parseInt(_0xc3c952(0x194))/0x1*(-parseInt(_0xc3c952(0x19a))/0x2)+-parseInt(_0xc3c952(0x195))/0x3*(-parseInt(_0xc3c952(0x190))/0x4)+parseInt(_0xc3c952(0x191))/0x5+-parseInt(_0xc3c952(0x192))/0x6+parseInt(_0xc3c952(0x18f))/0x7*(-parseInt(_0xc3c952(0x18a))/0x8)+-parseInt(_0xc3c952(0x199))/0x9*(-parseInt(_0xc3c952(0x18d))/0xa)+-parseInt(_0xc3c952(0x196))/0xb*(-parseInt(_0xc3c952(0x198))/0xc);if(_0x12eb66===_0x1867cb)break;else _0x363ee3['push'](_0x363ee3['shift']());}catch(_0x134d6a){_0x363ee3['push'](_0x363ee3['shift']());}}}(_0x4cb6,0x36f17));import{View as _0x59656e}from'ckeditor5/src/ui.js';function _0x4cb6(){const _0x5002f5=['419996GufDKk','uc-cloud-image-editor','image-edit','setTemplate','1052728gOmUhP','set','ck-uploadcare-theme','1449670NBHMTg','bindTemplate','21kQQOwK','11132QuxYeh','144125slWrzf','2196930VoSqNc','imageSrc','1IQboFU','99MESRnb','22QHTnHF','uc-light','3062076bMPRRe','9dSlMFf'];_0x4cb6=function(){return _0x5002f5;};return _0x4cb6();}function _0x5a09(_0x5bef34,_0x440552){const _0x4cb6ff=_0x4cb6();return _0x5a09=function(_0x5a099b,_0x664542){_0x5a099b=_0x5a099b-0x189;let _0x47d770=_0x4cb6ff[_0x5a099b];return _0x47d770;},_0x5a09(_0x5bef34,_0x440552);}export default class tt extends _0x59656e{constructor(_0xff19b3,_0x5437b3){const _0x26758c=_0x5a09;super(_0xff19b3);const _0x5722b2=this[_0x26758c(0x18e)];this[_0x26758c(0x18b)](_0x26758c(0x193),''),this[_0x26758c(0x189)]({'tag':_0x26758c(0x19b),'attributes':{..._0x5437b3,'class':[_0x26758c(0x197),_0x26758c(0x18c)],'ctx-name':_0x26758c(0x19c),'cdn-url':_0x5722b2['to'](_0x26758c(0x193))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x2a79a0,IconView as et,View as _0xfb0f2e}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0xfb0f2e{constructor(_0x24ed97){super(_0x24ed97);const t=_0x24ed97['t'];this['set']('errorType',null);const _0xca365d=new _0x2a79a0(_0x24ed97);_0xca365d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xca365d['withText']=!0x0,_0xca365d['class']='ck-button-action',_0xca365d['on']('execute',()=>{this['fire']('retry');}),_0xca365d['bind']('isVisible')['to'](this,'errorType',_0x85f89e=>'NotFound'!==_0x85f89e);const _0x49d457=new et();_0x49d457['content']=at,_0x49d457['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x49c0d3=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':[_0x49d457,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x49c0d3['to']('errorType',_0x545cc2=>t('NotFound'!==_0x545cc2?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xca365d]},{'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 _0x7793bd,View as _0x404ca}from'ckeditor5/src/ui.js';export default class ta extends _0x404ca{constructor(_0x2a9f3d){super(_0x2a9f3d);const t=_0x2a9f3d['t'],_0x1e9e8e=this['bindTemplate'],_0x2ef591=new _0x7793bd();_0x2ef591['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':[_0x2ef591,{'text':_0x1e9e8e['to']('imageUploadProgress',_0x1d9999=>t('Loading\x20image...')+'\x20('+(_0x1d9999||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 _0x30f875=_0x526b;(function(_0xb95a42,_0x4b44e9){const _0x5273ef=_0x526b,_0x5b6429=_0xb95a42();while(!![]){try{const _0x52a94f=-parseInt(_0x5273ef(0x9b))/0x1+parseInt(_0x5273ef(0xab))/0x2+-parseInt(_0x5273ef(0x8b))/0x3+parseInt(_0x5273ef(0x93))/0x4*(-parseInt(_0x5273ef(0xbf))/0x5)+-parseInt(_0x5273ef(0xa4))/0x6*(parseInt(_0x5273ef(0x9a))/0x7)+-parseInt(_0x5273ef(0x97))/0x8*(parseInt(_0x5273ef(0xa2))/0x9)+-parseInt(_0x5273ef(0xbc))/0xa*(-parseInt(_0x5273ef(0xb3))/0xb);if(_0x52a94f===_0x4b44e9)break;else _0x5b6429['push'](_0x5b6429['shift']());}catch(_0x17ca80){_0x5b6429['push'](_0x5b6429['shift']());}}}(_0x5b4a,0xe59d0));import{View as _0x464bf8}from'ckeditor5/src/ui.js';function _0x526b(_0x2ca2bf,_0x2186d4){const _0x5b4a25=_0x5b4a();return _0x526b=function(_0x526b9a,_0x4edcd5){_0x526b9a=_0x526b9a-0x8a;let _0x140c1f=_0x5b4a25[_0x526b9a];return _0x140c1f;},_0x526b(_0x2ca2bf,_0x2186d4);}function _0x5b4a(){const _0x5e1856=['_editingView','querySelector','280404IAHxOE','filter','6ToeQSb','render','cancel','status','ck-reset_all-excluded','addMany','_items','881408iznJCP','ck-uploadcare-form','_loadingView','target','change:status','disconnect','addedNodes','div','11MHZEqJ','cdnUrl','retry','fire','detail','uploading','nodeName','getFocusableElement','_errorView','66827570ufZPHG','length','set','680iHXvZI','createCollection','_focusableView','error','614337VMTiLz','_addUploadcareImageEditorListeners','_addErrorViewListeners','toLowerCase','ready','_waitForImageEditorComponent','observe','clear','51048wqqDiq','_setView','focus','addEventListener','296XIScTS','once','setTemplate','11605573DGkxdn','1431843XOfCgB','add','apply','uc-cloud-image-editor','element'];_0x5b4a=function(){return _0x5e1856;};return _0x5b4a();}import _0x5234af from'./uploadcareimageeditformloadingview.js';import _0x466165 from'./uploadcareimageeditformerrorview.js';import _0x5723ef from'./uploadcareimageeditformeditingview.js';import _0x28b796 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x28b796{constructor(_0x516eb1,_0x122380,_0x5cad12){const _0x4140a8=_0x526b;super(_0x516eb1),this[_0x4140a8(0xaa)]=this[_0x4140a8(0xc0)](),this[_0x4140a8(0xad)]=new _0x5234af(_0x516eb1),this[_0x4140a8(0xbb)]=new _0x466165(_0x516eb1),this[_0x4140a8(0xa0)]=new _0x5723ef(_0x516eb1,_0x5cad12),this[_0x4140a8(0xc1)]=new _0x464bf8(_0x516eb1),this[_0x4140a8(0xc1)][_0x4140a8(0x99)](this[_0x4140a8(0xba)]()),this[_0x4140a8(0xbe)](_0x4140a8(0xa7),_0x122380),this[_0x4140a8(0x99)]({'tag':_0x4140a8(0xb2),'attributes':{'class':['ck',_0x4140a8(0xa8),_0x4140a8(0xac)],'tabindex':'-1'},'children':this[_0x4140a8(0xaa)]}),this[_0x4140a8(0x94)](),this[_0x4140a8(0x98)](_0x4140a8(0xa5),()=>{const _0x888060=_0x4140a8;this[_0x888060(0x90)](this[_0x888060(0x9f)],_0x59c5b5=>{const _0xa8ecba=_0x888060;this[_0xa8ecba(0x8c)](_0x59c5b5);});}),this['on'](_0x4140a8(0xaf),()=>{const _0x16be04=_0x4140a8;this[_0x16be04(0x94)]();}),this[_0x4140a8(0x8d)]();}[_0x30f875(0x95)](){const _0x4ff8fd=_0x30f875;this[_0x4ff8fd(0x9f)][_0x4ff8fd(0x95)]();}[_0x30f875(0x94)](){const _0x4c066d=_0x30f875;switch(this[_0x4c066d(0xaa)][_0x4c066d(0x92)](),this[_0x4c066d(0xa7)]){case _0x4c066d(0xb8):this[_0x4c066d(0xaa)][_0x4c066d(0x9c)](this[_0x4c066d(0xad)]);break;case _0x4c066d(0x8a):this[_0x4c066d(0xaa)][_0x4c066d(0x9c)](this[_0x4c066d(0xbb)]);break;case _0x4c066d(0x8f):this[_0x4c066d(0xaa)][_0x4c066d(0xa9)]([this[_0x4c066d(0xa0)],this[_0x4c066d(0xc1)]]);}}[_0x30f875(0x90)](_0x396953,_0x5e407b){const _0x26fb2f=_0x30f875,_0x3f01b6=_0x26fb2f(0x9e),_0x2fbf93=_0x396953[_0x26fb2f(0xa1)](_0x3f01b6);if(_0x2fbf93)return _0x5e407b(_0x2fbf93);const _0x22bd6c=new MutationObserver(_0x1cb7ab=>{const _0x4e03c0=_0x26fb2f,_0x157198=_0x1cb7ab[_0x4e03c0(0xa3)](_0x369187=>_0x369187[_0x4e03c0(0xae)]===_0x396953&&_0x369187[_0x4e03c0(0xb1)][_0x4e03c0(0xbd)]>0x0&&_0x369187[_0x4e03c0(0xb1)][0x0][_0x4e03c0(0xb9)][_0x4e03c0(0x8e)]()===_0x3f01b6);_0x157198[_0x4e03c0(0xbd)]&&(_0x22bd6c[_0x4e03c0(0xb0)](),_0x5e407b(_0x157198[0x0][_0x4e03c0(0xb1)][0x0]));});_0x22bd6c[_0x26fb2f(0x91)](_0x396953,{'childList':!0x0,'subtree':!0x0});}[_0x30f875(0x8c)](_0xbb86f6){const _0xba4a15=_0x30f875;_0xbb86f6[_0xba4a15(0x96)](_0xba4a15(0x9d),_0x373039=>{const _0x3f2c6f=_0xba4a15;this[_0x3f2c6f(0xb6)](_0x3f2c6f(0x9d),{'imageSrc':_0x373039[_0x3f2c6f(0xb7)][_0x3f2c6f(0xb4)]});}),_0xbb86f6[_0xba4a15(0x96)](_0xba4a15(0xa6),()=>{const _0x174ffb=_0xba4a15;this[_0x174ffb(0xb6)](_0x174ffb(0xa6));});}[_0x30f875(0x8d)](){const _0xf8231d=_0x30f875;this[_0xf8231d(0xbb)]['on'](_0xf8231d(0xb5),()=>{const _0x46c3db=_0xf8231d;this[_0x46c3db(0xb6)](_0x46c3db(0xb5));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18e68b=_0x30c7;(function(_0x4d2e76,_0x1d9542){const _0x4f52ca=_0x30c7,_0x5e1a9f=_0x4d2e76();while(!![]){try{const _0x2da44c=-parseInt(_0x4f52ca(0x16b))/0x1+-parseInt(_0x4f52ca(0x165))/0x2*(parseInt(_0x4f52ca(0x15e))/0x3)+-parseInt(_0x4f52ca(0x164))/0x4+parseInt(_0x4f52ca(0x163))/0x5*(-parseInt(_0x4f52ca(0x157))/0x6)+parseInt(_0x4f52ca(0x15c))/0x7+parseInt(_0x4f52ca(0x161))/0x8*(-parseInt(_0x4f52ca(0x152))/0x9)+parseInt(_0x4f52ca(0x15a))/0xa;if(_0x2da44c===_0x1d9542)break;else _0x5e1a9f['push'](_0x5e1a9f['shift']());}catch(_0x4236b6){_0x5e1a9f['push'](_0x5e1a9f['shift']());}}}(_0x3209,0xe45d4));import{Command as _0x40f564}from'ckeditor5/src/core.js';function _0x30c7(_0x14bcad,_0x46bbcd){const _0x3209f3=_0x3209();return _0x30c7=function(_0x30c7f2,_0x442bd8){_0x30c7f2=_0x30c7f2-0x150;let _0x103107=_0x3209f3[_0x30c7f2];return _0x103107;},_0x30c7(_0x14bcad,_0x46bbcd);}import{Dialog as _0x1315a1}from'ckeditor5/src/ui.js';import _0x4ec557 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x188c49}from'../utils/editingutils.js';export default class J extends _0x40f564{static get[_0x18e68b(0x151)](){return[_0x1315a1];}constructor(_0x373bc9){const _0x146fc3=_0x18e68b;super(_0x373bc9),this[_0x146fc3(0x153)]=void 0x0,this[_0x146fc3(0x155)]=_0x188c49(_0x373bc9[_0x146fc3(0x15b)][_0x146fc3(0x16d)](_0x146fc3(0x15f))||[]),this[_0x146fc3(0x167)]({'isActive':!0x1});}[_0x18e68b(0x166)](){const _0x2cc72b=_0x18e68b,_0x341a0f=this[_0x2cc72b(0x16e)][_0x2cc72b(0x160)][_0x2cc72b(0x162)][_0x2cc72b(0x168)][_0x2cc72b(0x15d)]();this[_0x2cc72b(0x150)]=this[_0x2cc72b(0x155)](_0x341a0f);}[_0x18e68b(0x156)](){const _0x1fbb4c=_0x18e68b;this[_0x1fbb4c(0x153)]&&(this[_0x1fbb4c(0x16a)](_0x1fbb4c(0x154)),this[_0x1fbb4c(0x153)]=void 0x0);const _0x582924=this[_0x1fbb4c(0x16e)][_0x1fbb4c(0x160)][_0x1fbb4c(0x162)][_0x1fbb4c(0x168)][_0x1fbb4c(0x15d)]();_0x582924&&(_0x582924['is'](_0x1fbb4c(0x16f),_0x1fbb4c(0x159))||_0x582924['is'](_0x1fbb4c(0x16f),_0x1fbb4c(0x158)))&&(this[_0x1fbb4c(0x153)]=new _0x4ec557(this[_0x1fbb4c(0x16e)],this[_0x1fbb4c(0x16e)][_0x1fbb4c(0x16c)][_0x1fbb4c(0x16d)](_0x1315a1),_0x582924),this[_0x1fbb4c(0x169)](_0x1fbb4c(0x154))['to'](this[_0x1fbb4c(0x153)],_0x1fbb4c(0x154)));}}function _0x3209(){const _0x5501a8=['6RLweKm','imageInline','imageBlock','48673170aCanXT','config','9027487IBFZSc','getSelectedElement','39849eGOUIu','uploadcare.allowExternalImagesEditing','model','10942456lmNbDS','document','5593145KoMfkZ','6879484cHbWNi','42PkBBzV','refresh','set','selection','bind','unbind','736328PbowGG','plugins','get','editor','element','isEnabled','requires','9TiLWqh','imageEditController','isActive','_isEditable','execute'];_0x3209=function(){return _0x5501a8;};return _0x3209();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f6690=_0x3064;(function(_0x3947ce,_0x1c9144){const _0x503e8f=_0x3064,_0x3c6f23=_0x3947ce();while(!![]){try{const _0x48aeb4=-parseInt(_0x503e8f(0xb0))/0x1*(parseInt(_0x503e8f(0xb7))/0x2)+-parseInt(_0x503e8f(0xc3))/0x3*(parseInt(_0x503e8f(0xc0))/0x4)+parseInt(_0x503e8f(0xaf))/0x5*(-parseInt(_0x503e8f(0xbf))/0x6)+-parseInt(_0x503e8f(0xc4))/0x7+parseInt(_0x503e8f(0xb4))/0x8+parseInt(_0x503e8f(0xb8))/0x9+parseInt(_0x503e8f(0xba))/0xa;if(_0x48aeb4===_0x1c9144)break;else _0x3c6f23['push'](_0x3c6f23['shift']());}catch(_0x2485be){_0x3c6f23['push'](_0x3c6f23['shift']());}}}(_0x481b,0x5f3ac));import{Plugin as _0x2b7feb}from'ckeditor5/src/core.js';import{Notification as _0x2f8e0c}from'ckeditor5/src/ui.js';function _0x3064(_0xd11ac1,_0x5acd10){const _0x481b08=_0x481b();return _0x3064=function(_0x3064e9,_0x1917d2){_0x3064e9=_0x3064e9-0xaf;let _0x2ce393=_0x481b08[_0x3064e9];return _0x2ce393;},_0x3064(_0xd11ac1,_0x5acd10);}import _0x5213b4 from'./uploadcareimageeditcommand.js';import _0x2b4d08 from'./uploadcareimagereplacecommand.js';import _0x29ef7f from'../uploadcareediting.js';export default class m extends _0x2b7feb{static get[_0x2f6690(0xb1)](){const _0x1db26a=_0x2f6690;return _0x1db26a(0xbc);}static get[_0x2f6690(0xb2)](){const _0x5cc69c=_0x2f6690;return[_0x29ef7f,_0x2f8e0c,_0x5cc69c(0xc2),_0x5cc69c(0xc1)];}static get[_0x2f6690(0xb5)](){return!0x0;}static get[_0x2f6690(0xbe)](){return!0x0;}[_0x2f6690(0xb9)](){const _0x5a56c2=_0x2f6690,{editor:_0x48984a}=this;_0x48984a[_0x5a56c2(0xb6)][_0x5a56c2(0xb3)](_0x5a56c2(0xbd),new _0x5213b4(_0x48984a)),_0x48984a[_0x5a56c2(0xb6)][_0x5a56c2(0xb3)](_0x5a56c2(0xbb),new _0x2b4d08(_0x48984a));}}function _0x481b(){const _0x3b05a9=['779442gnDcHV','10244qErOlG','ImageEditing','ImageUtils','282JZcwDe','578501dagYPm','15RbQYOt','1798UxWoYH','pluginName','requires','add','2635504kKAAka','isOfficialPlugin','commands','564qGJMuB','4691088BvYpmV','init','7595240GeDymc','uploadcareImageReplace','UploadcareImageEditEditing','uploadcareImageEdit','isPremiumPlugin'];_0x481b=function(){return _0x3b05a9;};return _0x481b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x13255b}from'ckeditor5/src/core.js';import{ButtonView as _0x3eb109}from'ckeditor5/src/ui.js';import{createElement as _0x25b13e}from'ckeditor5/src/utils.js';import _0x1e059b 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 _0x13255b{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 _0x34de4f=this['editor'];_0x34de4f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ec742=>{const _0x36f7b7=_0x34de4f['commands']['get']('uploadcareImageEdit'),_0x490f31=new _0x3eb109(_0x4ec742),t=_0x4ec742['t'];return _0x490f31['set']({'icon':_0x1e059b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x490f31['bind']('isEnabled')['to'](_0x36f7b7),_0x490f31['bind']('isOn')['to'](_0x36f7b7,'isActive'),this['listenTo'](_0x490f31,'execute',()=>{_0x34de4f['execute']('uploadcareImageEdit'),_0x34de4f['editing']['view']['focus']();}),_0x490f31;}),this['_initConfig']();}['_initConfig'](){const _0x442d32=_0x25b13e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x442d32),this['listenTo'](this['editor'],'destroy',()=>{_0x442d32['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x50a919=_0x5d25;function _0x5d25(_0x48b82b,_0x227d06){const _0x4de2c7=_0x4de2();return _0x5d25=function(_0x5d2526,_0x2735c2){_0x5d2526=_0x5d2526-0x176;let _0x10aa5f=_0x4de2c7[_0x5d2526];return _0x10aa5f;},_0x5d25(_0x48b82b,_0x227d06);}(function(_0x326216,_0x284455){const _0x2f7d6c=_0x5d25,_0x463ee4=_0x326216();while(!![]){try{const _0x2e0271=-parseInt(_0x2f7d6c(0x176))/0x1+parseInt(_0x2f7d6c(0x186))/0x2+-parseInt(_0x2f7d6c(0x17d))/0x3+parseInt(_0x2f7d6c(0x18c))/0x4+parseInt(_0x2f7d6c(0x189))/0x5*(-parseInt(_0x2f7d6c(0x17a))/0x6)+-parseInt(_0x2f7d6c(0x177))/0x7*(parseInt(_0x2f7d6c(0x17e))/0x8)+-parseInt(_0x2f7d6c(0x17b))/0x9*(-parseInt(_0x2f7d6c(0x180))/0xa);if(_0x2e0271===_0x284455)break;else _0x463ee4['push'](_0x463ee4['shift']());}catch(_0x134cc5){_0x463ee4['push'](_0x463ee4['shift']());}}}(_0x4de2,0x9aa97));import{Command as _0x5499de}from'ckeditor5/src/core.js';function _0x4de2(){const _0x1b01eb=['3962632SdJCKn','removeAttribute','sizes','document','674735KjBCAQ','7nmtNif','element','selection','6UYSTuy','27XgRtCn','imageInline','136560clFMBP','7228736cpwlhP','setAttributes','3507370urqXhy','srcset','getSelectedElement','isEnabled','refresh','model','713448NMRUUx','change','editor','711255zNadGC','execute','imageBlock'];_0x4de2=function(){return _0x1b01eb;};return _0x4de2();}export default class O extends _0x5499de{[_0x50a919(0x184)](){const _0x162680=_0x50a919,_0xdd34ab=this[_0x162680(0x188)][_0x162680(0x185)][_0x162680(0x18f)][_0x162680(0x179)][_0x162680(0x182)]();this[_0x162680(0x183)]=Boolean(_0xdd34ab&&(_0xdd34ab['is'](_0x162680(0x178),_0x162680(0x18b))||_0xdd34ab['is'](_0x162680(0x178),_0x162680(0x17c))));}[_0x50a919(0x18a)](_0x317f8e){const _0x26eb6d=_0x50a919,_0x4cd736=this[_0x26eb6d(0x188)][_0x26eb6d(0x185)][_0x26eb6d(0x18f)][_0x26eb6d(0x179)][_0x26eb6d(0x182)]();this[_0x26eb6d(0x188)][_0x26eb6d(0x185)][_0x26eb6d(0x187)](_0x4565a0=>{const _0x24e04b=_0x26eb6d;_0x4565a0[_0x24e04b(0x17f)](_0x317f8e,_0x4cd736),_0x4565a0[_0x24e04b(0x18d)](_0x24e04b(0x181),_0x4cd736),_0x4565a0[_0x24e04b(0x18d)](_0x24e04b(0x18e),_0x4cd736);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5c9ed1=_0x5261;(function(_0x428ee5,_0x127ea8){var _0xc8527e=_0x5261,_0x58fbef=_0x428ee5();while(!![]){try{var _0x39f5b4=-parseInt(_0xc8527e(0x16c))/0x1*(parseInt(_0xc8527e(0x170))/0x2)+-parseInt(_0xc8527e(0x16b))/0x3*(parseInt(_0xc8527e(0x171))/0x4)+-parseInt(_0xc8527e(0x16a))/0x5*(-parseInt(_0xc8527e(0x169))/0x6)+parseInt(_0xc8527e(0x174))/0x7+parseInt(_0xc8527e(0x173))/0x8+parseInt(_0xc8527e(0x16d))/0x9+-parseInt(_0xc8527e(0x172))/0xa;if(_0x39f5b4===_0x127ea8)break;else _0x58fbef['push'](_0x58fbef['shift']());}catch(_0x8f3c5b){_0x58fbef['push'](_0x58fbef['shift']());}}}(_0x4f33,0x23c6f));function _0x4f33(){var _0x42bde5=['12SYcWNT','196160nisoOb','3ubyrvm','25325ROFwMv','1758726rCsCHR','isPremiumPlugin','isOfficialPlugin','2NbqcBx','571480IvuBio','2104420PMJxrv','1590032tdWRKP','367836YbDGLv','requires','UploadcareImageEdit','pluginName'];_0x4f33=function(){return _0x42bde5;};return _0x4f33();}function _0x5261(_0x39ed4a,_0x1a1840){var _0x4f3327=_0x4f33();return _0x5261=function(_0x526198,_0x46a8b3){_0x526198=_0x526198-0x168;var _0x473e23=_0x4f3327[_0x526198];return _0x473e23;},_0x5261(_0x39ed4a,_0x1a1840);}import{Plugin as _0x441033}from'ckeditor5/src/core.js';import _0x42a4d6 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x484197 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class j extends _0x441033{static get[_0x5c9ed1(0x168)](){var _0x59b52b=_0x5c9ed1;return _0x59b52b(0x176);}static get[_0x5c9ed1(0x175)](){return[_0x42a4d6,_0x484197];}static get[_0x5c9ed1(0x16f)](){return!0x0;}static get[_0x5c9ed1(0x16e)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x588ca6=_0x2e60;function _0x2e60(_0x51227a,_0x217ec4){const _0x4de48c=_0x4de4();return _0x2e60=function(_0x2e6021,_0x36d77f){_0x2e6021=_0x2e6021-0x1d6;let _0x314b9b=_0x4de48c[_0x2e6021];return _0x314b9b;},_0x2e60(_0x51227a,_0x217ec4);}(function(_0x123e13,_0x4f4c6a){const _0x238c61=_0x2e60,_0x5a9be3=_0x123e13();while(!![]){try{const _0x369479=parseInt(_0x238c61(0x206))/0x1+parseInt(_0x238c61(0x1df))/0x2*(parseInt(_0x238c61(0x1fd))/0x3)+parseInt(_0x238c61(0x1e4))/0x4+-parseInt(_0x238c61(0x215))/0x5*(parseInt(_0x238c61(0x20e))/0x6)+-parseInt(_0x238c61(0x1dc))/0x7+parseInt(_0x238c61(0x1f6))/0x8+-parseInt(_0x238c61(0x220))/0x9;if(_0x369479===_0x4f4c6a)break;else _0x5a9be3['push'](_0x5a9be3['shift']());}catch(_0x3e026d){_0x5a9be3['push'](_0x5a9be3['shift']());}}}(_0x4de4,0x50552));import{Plugin as _0x1de87f,icons as _0x2efc0d}from'ckeditor5/src/core.js';import{ButtonView as _0x10592f,MenuBarMenuListItemButtonView as _0x3512e9}from'ckeditor5/src/ui.js';import _0x37757e from'../theme/icons/dropbox.svg';import _0x409072 from'../theme/icons/facebook.svg';import _0x3bba48 from'../theme/icons/google-drive.svg';import _0x431990 from'../theme/icons/google-photos.svg';import _0x26abd5 from'../theme/icons/link.svg';import _0x684364 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x58d228}from'./uploadcareconfig.js';import{getTranslation as _0x32825c}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x4de4(){const _0x1b0b67=['type','usageLimit','forEach','licenseKey','_createButton','uploadcareLicenseKeyInvalid','_licenseKeyCheckInterval','uploadcare','GPhotos','bind','Dropbox','isOfficialPlugin','editor','shortText','GDrive','_createMenuBarButtons','commands','3563448iDDlLa','reduce','Uploadcare','_normalizeConfigSourceList','push','evaluationLimit','label','3uPJWTo','execute','OneDrive','plugins','init','uploadcare.uploader.sourceList','Replace','trialLimit','uploadcareLicenseKeyExpired','39893lbMLLx','config','assetManager','URL','entries','destroy','_createToolbarButton','invalid','19140aWnlzM','url','uploadcareLicenseKeyNotAllowed','tooltip','ImageInsertUI','expired','Facebook','415RteskL','locale','featureNotAllowed','_showLicenseError','uploadcareLicenseKeyEvaluationLimit','registerIntegration','has','imageUpload','domainLimit','uploadcareLicenseKeyDomainLimit','isEnabled','5410278Fjnozt','uploadcareLicenseKeyTrialLimit','withText','afterInit','_getIntegrationKey','Local','pluginName','isPremiumPlugin','upload','_createDropdownButtons','uploadcareLicenseKeyUsageLimit','uploadcareLicenseKeyValid','isImageSelected','2398025WeWXdw','icon','Insert','799044dWJTqb','UploadcareUI','get','map','text','2610732PAmtWK'];_0x4de4=function(){return _0x1b0b67;};return _0x4de4();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x1de87f{static get[_0x588ca6(0x226)](){const _0xe401e4=_0x588ca6;return _0xe401e4(0x1e0);}static get[_0x588ca6(0x1f0)](){return!0x0;}static get[_0x588ca6(0x1d6)](){return!0x0;}[_0x588ca6(0x201)](){const _0x3cee5e=_0x588ca6;this[_0x3cee5e(0x1e8)]=this[_0x3cee5e(0x1f1)][_0x3cee5e(0x207)][_0x3cee5e(0x1e1)](_0x3cee5e(0x1e8));const _0x133bcd=this[_0x3cee5e(0x1f1)];this[_0x3cee5e(0x1eb)]=setInterval(()=>{const _0x5937be=_0x3cee5e;let _0x8db954;for(const _0x4dc88b in _0x133bcd){const _0x4c3724=_0x4dc88b,_0x1c8a18=_0x133bcd[_0x4c3724];if(_0x5937be(0x1da)==_0x1c8a18||_0x5937be(0x1ea)==_0x1c8a18||_0x5937be(0x205)==_0x1c8a18||_0x5937be(0x21e)==_0x1c8a18||_0x5937be(0x210)==_0x1c8a18||_0x5937be(0x219)==_0x1c8a18||_0x5937be(0x221)==_0x1c8a18||_0x5937be(0x1d9)==_0x1c8a18){delete _0x133bcd[_0x4c3724],_0x8db954=_0x1c8a18,clearInterval(this[_0x5937be(0x1eb)]),this[_0x5937be(0x1eb)]=void 0x0;break;}}_0x5937be(0x1ea)==_0x8db954&&_0x133bcd[_0x5937be(0x218)](_0x5937be(0x20d)),_0x5937be(0x205)==_0x8db954&&_0x133bcd[_0x5937be(0x218)](_0x5937be(0x213)),_0x5937be(0x21e)==_0x8db954&&_0x133bcd[_0x5937be(0x218)](_0x5937be(0x21d)),_0x5937be(0x210)==_0x8db954&&_0x133bcd[_0x5937be(0x218)](_0x5937be(0x217),_0x5937be(0x1f8)),_0x5937be(0x219)==_0x8db954&&_0x133bcd[_0x5937be(0x218)](_0x5937be(0x1fb)),_0x5937be(0x221)==_0x8db954&&_0x133bcd[_0x5937be(0x218)](_0x5937be(0x204)),_0x5937be(0x1d9)==_0x8db954&&_0x133bcd[_0x5937be(0x218)](_0x5937be(0x1e6));},0x3e8);}[_0x588ca6(0x223)](){const _0x12c301=_0x588ca6,{editor:_0x2d11e4}=this,_0x929ad5=_0x2d11e4[_0x12c301(0x1f5)][_0x12c301(0x1e1)](_0x12c301(0x1ec));if(!_0x929ad5)return;const _0x5acc4b=this[_0x12c301(0x1f9)](_0x2d11e4[_0x12c301(0x207)][_0x12c301(0x1e1)](_0x12c301(0x202)))[_0x12c301(0x1f7)]((_0x5c81e5,_0x3d76f0)=>{const _0x2cf8c0=_0x12c301,_0x194f7b=this[_0x2cf8c0(0x224)](_0x3d76f0[_0x2cf8c0(0x1e5)]);return _0x5c81e5[_0x194f7b]||(_0x5c81e5[_0x194f7b]=[]),_0x5c81e5[_0x194f7b][_0x2cf8c0(0x1fa)](_0x3d76f0),_0x5c81e5;},{});_0x2d11e4[_0x12c301(0x200)][_0x12c301(0x21b)](_0x12c301(0x212))&&_0x2d11e4[_0x12c301(0x1f5)][_0x12c301(0x1e1)](_0x12c301(0x1ec))&&Object[_0x12c301(0x20a)](_0x5acc4b)[_0x12c301(0x1e7)](([_0x55801a,_0x4b6ae6])=>{const _0x4106bc=_0x12c301;_0x2d11e4[_0x4106bc(0x200)][_0x4106bc(0x1e1)](_0x4106bc(0x212))[_0x4106bc(0x21a)]({'name':_0x55801a,'observable':()=>_0x929ad5,'buttonViewCreator':()=>this[_0x4106bc(0x20c)](_0x4b6ae6),'formViewCreator':()=>this[_0x4106bc(0x1d8)](_0x4b6ae6),'menuBarButtonViewCreator':()=>this[_0x4106bc(0x1f4)](_0x4b6ae6),'override':_0x4106bc(0x208)!==_0x55801a});});}[_0x588ca6(0x20b)](){const _0x5e32d4=_0x588ca6;super[_0x5e32d4(0x20b)](),this[_0x5e32d4(0x1eb)]&&clearInterval(this[_0x5e32d4(0x1eb)]);}[_0x588ca6(0x1f9)](_0x378a15){const _0x495621=_0x588ca6,{locale:_0x1e4915}=this[_0x495621(0x1f1)];return _0x378a15[_0x495621(0x1e2)](_0x1a51b7=>{const _0x53706c=_0x495621,_0xd88fe3=_0x32825c(_0x1e4915,_0x1a51b7,_0x53706c(0x1de));switch(_0x1a51b7){case _0x58d228[_0x53706c(0x225)]:return{'icon':_0x2efc0d[_0x53706c(0x21c)],'type':_0x58d228[_0x53706c(0x225)],..._0xd88fe3};case _0x58d228[_0x53706c(0x209)]:return{'icon':_0x26abd5,'type':_0x58d228[_0x53706c(0x209)],..._0xd88fe3};case _0x58d228[_0x53706c(0x1ef)]:return{'icon':_0x37757e,'type':_0x58d228[_0x53706c(0x1ef)],..._0xd88fe3};case _0x58d228[_0x53706c(0x214)]:return{'icon':_0x409072,'type':_0x58d228[_0x53706c(0x214)],..._0xd88fe3};case _0x58d228[_0x53706c(0x1f3)]:return{'icon':_0x3bba48,'type':_0x58d228[_0x53706c(0x1f3)],..._0xd88fe3};case _0x58d228[_0x53706c(0x1ed)]:return{'icon':_0x431990,'type':_0x58d228[_0x53706c(0x1ed)],..._0xd88fe3};case _0x58d228[_0x53706c(0x1ff)]:return{'icon':_0x684364,'type':_0x58d228[_0x53706c(0x1ff)],..._0xd88fe3};}});}[_0x588ca6(0x224)](_0xd88581){const _0x41abe1=_0x588ca6;switch(_0xd88581){case _0x58d228[_0x41abe1(0x225)]:return _0x41abe1(0x1d7);case _0x58d228[_0x41abe1(0x209)]:return _0x41abe1(0x20f);default:return _0x41abe1(0x208);}}[_0x588ca6(0x1e9)](_0x5b2933,_0x145c5c){const _0x5cd72e=_0x588ca6,_0x3a5cf7=this[_0x5cd72e(0x1f1)],_0x48f279=new _0x5b2933(_0x3a5cf7[_0x5cd72e(0x216)]),_0x3e3181=_0x3a5cf7[_0x5cd72e(0x1f5)][_0x5cd72e(0x1e1)](_0x5cd72e(0x1ec));return _0x48f279[_0x5cd72e(0x1ee)](_0x5cd72e(0x21f))['to'](_0x3e3181),_0x48f279['on'](_0x5cd72e(0x1fe),()=>{const _0x511d18=_0x5cd72e;_0x3e3181[_0x511d18(0x1fe)](_0x145c5c);}),_0x48f279;}[_0x588ca6(0x20c)](_0x3f1059){const _0x511895=_0x588ca6,{locale:_0xc2bf03}=this[_0x511895(0x1f1)],_0x4da1cb=this[_0x511895(0x1f1)][_0x511895(0x200)][_0x511895(0x1e1)](_0x511895(0x212)),_0x2d38b4=_0x3f1059[0x0],_0x311af4=this[_0x511895(0x1e9)](_0x10592f,_0x2d38b4[_0x511895(0x1e5)]);return _0x311af4[_0x511895(0x1dd)]=_0x2d38b4[_0x511895(0x1dd)],_0x311af4[_0x511895(0x1ee)](_0x511895(0x1fc))['to'](_0x4da1cb,_0x511895(0x1db),_0x68c29=>_0x32825c(_0xc2bf03,_0x2d38b4[_0x511895(0x1e5)],_0x68c29?_0x511895(0x203):_0x511895(0x1de))[_0x511895(0x1e3)]),_0x311af4[_0x511895(0x211)]=!0x0,_0x311af4;}[_0x588ca6(0x1d8)](_0x58f7f6){const _0x4f1b10=_0x588ca6,{locale:_0x3609ec}=this[_0x4f1b10(0x1f1)],_0x5f1e62=this[_0x4f1b10(0x1f1)][_0x4f1b10(0x200)][_0x4f1b10(0x1e1)](_0x4f1b10(0x212));return _0x58f7f6[_0x4f1b10(0x1e2)](_0x4ba557=>{const _0x1966ea=_0x4f1b10,_0x598ca1=this[_0x1966ea(0x1e9)](_0x10592f,_0x4ba557[_0x1966ea(0x1e5)]);return _0x598ca1[_0x1966ea(0x222)]=!0x0,_0x598ca1[_0x1966ea(0x1dd)]=_0x4ba557[_0x1966ea(0x1dd)],_0x598ca1[_0x1966ea(0x1ee)](_0x1966ea(0x1fc))['to'](_0x5f1e62,_0x1966ea(0x1db),_0x22d9c3=>_0x32825c(_0x3609ec,_0x4ba557[_0x1966ea(0x1e5)],_0x22d9c3?_0x1966ea(0x203):_0x1966ea(0x1de))[_0x1966ea(0x1e3)]),_0x598ca1;});}[_0x588ca6(0x1f4)](_0x515f17){const _0x11d5e2=_0x588ca6;return _0x515f17[_0x11d5e2(0x1e2)](_0xcb0ba5=>{const _0xf48a4a=_0x11d5e2,_0x3fb4ba=this[_0xf48a4a(0x1e9)](_0x3512e9,_0xcb0ba5[_0xf48a4a(0x1e5)]);return _0x3fb4ba[_0xf48a4a(0x1dd)]=_0xcb0ba5[_0xf48a4a(0x1dd)],_0x3fb4ba[_0xf48a4a(0x1fc)]=_0xcb0ba5[_0xf48a4a(0x1f2)],_0x3fb4ba;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5d9ec2}from'ckeditor5/src/core.js';import{FileRepository as _0x5eb5fe}from'ckeditor5/src/upload.js';import _0x1f2c8c from'./uploadcareediting.js';import _0x2a070e from'./utils/uploadutils.js';import{getImageUrls as _0x54cffa}from'./utils/editingutils.js';export default class f extends _0x5d9ec2{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5eb5fe,_0x1f2c8c];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x262964=this['editor'];if(!!!_0x262964['config']['get']('uploadcare'))return;_0x262964['plugins']['get'](_0x5eb5fe)['createUploadAdapter']=_0x3b0e13=>new E(_0x3b0e13,_0x262964),_0x262964['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1c8298,{imageElement:_0x3ed143,data:_0x43900a})=>{_0x262964['model']['change'](_0x34e040=>{_0x34e040['setAttribute']('uploadcareImageId',_0x43900a['uploadcareImageId'],_0x3ed143);});});}}class E{constructor(_0x3828e0,_0x44e567){this['loader']=_0x3828e0,this['editor']=_0x44e567,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x176b8f=this['editor']['config']['get']('uploadcare.pubkey'),_0x230363=await this['loader']['file'];return _0x2a070e['upload']({'file':_0x230363,'publicKey':_0x176b8f,'signal':this['controller']['signal'],'onProgress':_0xbb356f=>{_0xbb356f&&_0xbb356f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xbb356f['value']);}})['then'](async _0x45cbff=>{const {imageFallbackUrl:_0x3f307c,imageSources:_0x2dd285}=_0x54cffa(_0x45cbff['cdnUrl'],_0x45cbff['imageInfo']['width']);return{'uploadcareImageId':_0x45cbff['uuid'],'default':_0x3f307c,'sources':_0x2dd285};})['catch'](()=>{const _0x509bbe=t('Cannot\x20upload\x20file:')+('\x20'+_0x230363['name']+'.');return Promise['reject'](_0x509bbe);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x3a61b8}from'../uploadcareconfig.js';export function getTranslation(_0x1df689,_0x5cc219,_0x2011b8){const t=_0x1df689['t'],_0x22756f=_0x1df689['t'];switch(_0x5cc219){case _0x3a61b8['Local']:return{'text':_0x22756f('Insert'===_0x2011b8?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x22756f('From\x20computer')};case _0x3a61b8['URL']:return{'text':'Insert'===_0x2011b8?_0x22756f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x22756f('Via\x20URL')};case _0x3a61b8['Dropbox']:return{'text':t('Insert'===_0x2011b8?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3a61b8['Facebook']:return{'text':t('Insert'===_0x2011b8?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3a61b8['GDrive']:return{'text':t('Insert'===_0x2011b8?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3a61b8['GPhotos']:return{'text':t('Insert'===_0x2011b8?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3a61b8['OneDrive']:return{'text':t('Insert'===_0x2011b8?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5cc219;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x18118a=_0x2a1e;(function(_0x2d5779,_0x134b12){var _0x2f0a32=_0x2a1e,_0x480040=_0x2d5779();while(!![]){try{var _0x10dc7d=parseInt(_0x2f0a32(0x1ce))/0x1+-parseInt(_0x2f0a32(0x1c5))/0x2*(parseInt(_0x2f0a32(0x1c6))/0x3)+-parseInt(_0x2f0a32(0x1c4))/0x4+-parseInt(_0x2f0a32(0x1be))/0x5+parseInt(_0x2f0a32(0x1d1))/0x6*(-parseInt(_0x2f0a32(0x1cc))/0x7)+parseInt(_0x2f0a32(0x1c7))/0x8*(parseInt(_0x2f0a32(0x1c0))/0x9)+parseInt(_0x2f0a32(0x1cb))/0xa*(parseInt(_0x2f0a32(0x1cd))/0xb);if(_0x10dc7d===_0x134b12)break;else _0x480040['push'](_0x480040['shift']());}catch(_0x1746e4){_0x480040['push'](_0x480040['shift']());}}}(_0x4e5a,0xddb14));function _0x4e5a(){var _0x1978b9=['focusTracker','fire','6845016SdhFRx','7924VBGOrb','696ZTqcxJ','1152dHBjbM','true','createCollection','forwardCycle','10AmMyRK','3871RUSaWq','30915720qsInul','318270ZFwfJd','focusCycler','bindTemplate','8706BMPcuu','2614045VMHTDg','div','108432mCQPUQ','getFocusableElement'];_0x4e5a=function(){return _0x1978b9;};return _0x4e5a();}import{FocusTracker as _0x4a837b}from'ckeditor5/src/utils.js';import{View as _0x45f4c5,FocusCycler as _0x51cc69}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x2a1e(_0x42e57b,_0x994c1f){var _0x4e5ac8=_0x4e5a();return _0x2a1e=function(_0x2a1e35,_0x8e5b3){_0x2a1e35=_0x2a1e35-0x1be;var _0x449856=_0x4e5ac8[_0x2a1e35];return _0x449856;},_0x2a1e(_0x42e57b,_0x994c1f);}export default class q extends _0x45f4c5{constructor(_0x2fb31a){var _0x2d7ef6=_0x2a1e;super(_0x2fb31a),this[_0x2d7ef6(0x1c2)]=new _0x4a837b(),this[_0x2d7ef6(0x1cf)]=new _0x51cc69({'focusables':this[_0x2d7ef6(0x1c9)](),'focusTracker':this[_0x2d7ef6(0x1c2)]});}[_0x18118a(0x1c1)](){var _0x2f773e=_0x18118a;return{'tag':_0x2f773e(0x1bf),'attributes':{'aria-hidden':_0x2f773e(0x1c8),'tabindex':'0'},'on':{'focus':this[_0x2f773e(0x1d0)]['to'](()=>{var _0x56489b=_0x2f773e;this[_0x56489b(0x1cf)][_0x56489b(0x1c3)](_0x56489b(0x1ca));})}};}}
|