@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.9 → 46.0.1
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/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4cdcda=_0x25ab;(function(_0x473368,_0x3d54da){const _0xc2883a=_0x25ab,_0x33193b=_0x473368();while(!![]){try{const _0x3203d7=-parseInt(_0xc2883a(0x1b2))/0x1*(-parseInt(_0xc2883a(0x1d7))/0x2)+-parseInt(_0xc2883a(0x1fb))/0x3*(parseInt(_0xc2883a(0x1ac))/0x4)+-parseInt(_0xc2883a(0x1c8))/0x5+parseInt(_0xc2883a(0x1b0))/0x6*(parseInt(_0xc2883a(0x1e1))/0x7)+parseInt(_0xc2883a(0x1fe))/0x8*(-parseInt(_0xc2883a(0x1ee))/0x9)+parseInt(_0xc2883a(0x1c6))/0xa+parseInt(_0xc2883a(0x1ea))/0xb;if(_0x3203d7===_0x3d54da)break;else _0x33193b['push'](_0x33193b['shift']());}catch(_0x3177b3){_0x33193b['push'](_0x33193b['shift']());}}}(_0x85b7,0xbc386));function _0x25ab(_0x436c77,_0x3a772a){const _0x85b753=_0x85b7();return _0x25ab=function(_0x25abd2,_0x4a8f91){_0x25abd2=_0x25abd2-0x1ab;let _0x2ba266=_0x85b753[_0x25abd2];return _0x2ba266;},_0x25ab(_0x436c77,_0x3a772a);}import{Plugin as _0x2c29f4}from'ckeditor5/src/core.js';import{Dialog as _0x49a108}from'ckeditor5/src/ui.js';import{createElement as _0x31443c,global as _0x5f2b4f,uid as _0x173b96}from'ckeditor5/src/utils.js';function _0x85b7(){const _0x6febc7=['insertImage','for','appendChild','4522johdIP','uc-config','imageInline','contentLanguage','UploadcareEditing','init','once','_initConversion','editing','30796568TvlyCd','data-uc-image-id','join','destroy','23481kiByIZ','replaceImageSource','_initConfig','body','render','uploadcareImageId','input[uploadcare-file-input]','schema','\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','_initSchema','extend','uploadcare.uploader','#uc-icon-arrow-down','4253241qDDYUS','config','downcast','3944wuINab','listenTo','href','view','4bblaJc','removeAttribute','isPremiumPlugin','commands','294TcIfHQ','getAttribute','775dOYKnp','uploader-','map','_initCtx','_configElement','ctxElement','closeMax','requires','uploadcareImageReplace','selection','PictureEditing','isRegistered','add','configElement','imageBlock','pluginName','iconHrefResolver','document','conversion','uploadcare','11370700uIyBed','afterInit','4207265AECtLc','uc-upload-ctx-provider','upcast','remove','_initImageProcessingIndicator','elementToAttribute','fromCharCode','uploadcare.pubkey','execute','querySelector','editor','getSelectedElement','get','isOfficialPlugin','ucContextId','898MUtAHH','true','locale','cleanupImage','model','attributeToAttribute','_ctxElement'];_0x85b7=function(){return _0x6febc7;};return _0x85b7();}import{UploadcareCommand as _0x2d97a9}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xf2d8bd}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5ac45d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2c29f4{[_0x4cdcda(0x1b6)]=null;[_0x4cdcda(0x1dd)]=null;static get[_0x4cdcda(0x1c1)](){const _0x196a00=_0x4cdcda;return _0x196a00(0x1e5);}static get[_0x4cdcda(0x1b9)](){const _0x4bcf8f=_0x4cdcda;return[_0x4bcf8f(0x1bc),_0xf2d8bd,_0x49a108];}static get[_0x4cdcda(0x1d5)](){return!0x0;}static get[_0x4cdcda(0x1ae)](){return!0x0;}[_0x4cdcda(0x1d6)];get[_0x4cdcda(0x1bf)](){const _0x33a09a=_0x4cdcda;return this[_0x33a09a(0x1b6)];}get[_0x4cdcda(0x1b7)](){const _0xe1d706=_0x4cdcda;return this[_0xe1d706(0x1dd)];}constructor(_0x14efeb){const _0x1d7d63=_0x4cdcda;super(_0x14efeb),this[_0x1d7d63(0x1d6)]=_0x173b96();}[_0x4cdcda(0x1e6)](){const _0x2785bb=_0x4cdcda,_0x50f7ec=this[_0x2785bb(0x1d2)];_0x50f7ec[_0x2785bb(0x1af)][_0x2785bb(0x1be)](_0x2785bb(0x1c5),new _0x2d97a9(_0x50f7ec));}[_0x4cdcda(0x1c7)](){const _0x3a9937=_0x4cdcda;this[_0x3a9937(0x1f7)](),this[_0x3a9937(0x1e8)](),this[_0x3a9937(0x1f0)](),this[_0x3a9937(0x1b5)](),this[_0x3a9937(0x1cc)](),this[_0x3a9937(0x1ff)](this[_0x3a9937(0x1d2)],_0x3a9937(0x1ed),()=>{const _0x5f106b=_0x3a9937;this[_0x5f106b(0x1b6)]&&(this[_0x5f106b(0x1b6)][_0x5f106b(0x1cb)](),this[_0x5f106b(0x1b6)]=null),this[_0x5f106b(0x1dd)]&&(this[_0x5f106b(0x1dd)][_0x5f106b(0x1cb)](),this[_0x5f106b(0x1dd)]=null);const _0x1ecb1d=_0x5f2b4f[_0x5f106b(0x1c3)][_0x5f106b(0x1d1)](_0x5f106b(0x1f4));_0x1ecb1d&&_0x1ecb1d[_0x5f106b(0x1cb)]();}),async function(_0x49a17f){const _0x56a740=_0x4c601a([0x76,0x6e,0x37,0x67,0x45,0x4c,0x6c,0x52,0x6f,0x50,0x4e,0x51,0x4f,0x56,0x64,0x68,0x55,0x78,0x74,0x66,0x44,0x62,0x54,0x75,0x49,0x47,0x4b,0x6a,0x53,0x42,0x31,0x30,0x5a,0x6d,0x46,0x69,0x4a,0x48,0x39,0x72,0x63,0x33,0x70,0x36,0x61,0x58,0x71,0x79,0x77,0x4d,0x32,0x7a,0x57,0x41,0x59,0x6b,0x35,0x73,0x65,0x43,0x34,0x38]),_0x469637=0x1bf295e6,_0x294836=0x1bf5fa2e^_0x469637,_0x55aba6=window[_0x4c601a([0x44,0x61,0x74,0x65])][_0x4c601a([0x6e,0x6f,0x77])](),_0x7f2132=_0x49a17f[_0x4c601a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5f493e=new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x301912=>{_0x7f2132[_0x4c601a([0x6f,0x6e,0x63,0x65])](_0x4c601a([0x72,0x65,0x61,0x64,0x79]),_0x301912);}),_0x25286e={[_0x4c601a([0x6b,0x74,0x79])]:_0x4c601a([0x45,0x43]),[_0x4c601a([0x75,0x73,0x65])]:_0x4c601a([0x73,0x69,0x67]),[_0x4c601a([0x63,0x72,0x76])]:_0x4c601a([0x50,0x2d,0x32,0x35,0x36]),[_0x4c601a([0x78])]:_0x4c601a([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]),[_0x4c601a([0x79])]:_0x4c601a([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]),[_0x4c601a([0x61,0x6c,0x67])]:_0x4c601a([0x45,0x53,0x32,0x35,0x36])},_0x41a510=_0x7f2132[_0x4c601a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c601a([0x67,0x65,0x74])](_0x4c601a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34f027(){let _0x25c47c,_0x2b1056=null,_0x57d9ab=null;try{if(_0x41a510==_0x4c601a([0x47,0x50,0x4c]))return _0x4c601a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x25c47c=_0x225b20(),!_0x25c47c)return _0x4c601a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x25c47c[_0x4c601a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57d9ab=_0x4f3352(_0x25c47c[_0x4c601a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x25c47c[_0x4c601a([0x6a,0x74,0x69])])),await _0x292b08()?_0x2e07d5()?_0x54abd9()?_0x4c601a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x472de0()?(_0x25c47c[_0x4c601a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c601a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b1056=_0xb6096(_0x4c601a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x25c47c[_0x4c601a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c601a([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b1056=_0xb6096(_0x4c601a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe083d0()):_0x4c601a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c601a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c601a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4c601a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x54abd9(){const _0x4db6d4=[_0x4c601a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c601a([0x74,0x72,0x69,0x61,0x6c])][_0x4c601a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c47c[_0x4c601a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55aba6/0x3e8:0xe10*_0x294836;return _0x25c47c[_0x4c601a([0x65,0x78,0x70])]<_0x4db6d4;}function _0x2e07d5(){const _0x553816=_0x25c47c[_0x4c601a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x553816&&(!!_0x553816[_0x4c601a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c601a([0x2a]))||!!_0x553816[_0x4c601a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c601a([0x55,0x50,0x4c,0x43])));}function _0x472de0(){const _0x38bde6=_0x25ab,_0x1c9d37=_0x25c47c[_0x4c601a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c9d37||0x0==_0x1c9d37[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d4e47}=new URL(window[_0x4c601a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x38bde6(0x200)]);if(_0x1c9d37[_0x4c601a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d4e47))return!0x0;const _0x4679f0=_0x3d4e47[_0x4c601a([0x73,0x70,0x6c,0x69,0x74])](_0x4c601a([0x2e]));return _0x1c9d37[_0x4c601a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52200d=>_0x52200d[_0x4c601a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c601a([0x2a])))[_0x4c601a([0x6d,0x61,0x70])](_0x2a0624=>_0x2a0624[_0x4c601a([0x73,0x70,0x6c,0x69,0x74])](_0x4c601a([0x2e])))[_0x4c601a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x65fb55=>_0x65fb55[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4679f0[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c601a([0x6d,0x61,0x70])](_0xcfbcc7=>Array(_0x4679f0[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xcfbcc7[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4c601a([0x66,0x69,0x6c,0x6c])](_0xcfbcc7[0x0]===_0x4c601a([0x2a])?_0x4c601a([0x2a]):'')[_0x4c601a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xcfbcc7))[_0x4c601a([0x73,0x6f,0x6d,0x65])](_0x13200f=>_0x4679f0[_0x4c601a([0x65,0x76,0x65,0x72,0x79])]((_0x33e16a,_0x428a81)=>_0x13200f[_0x428a81]===_0x33e16a||_0x13200f[_0x428a81]===_0x4c601a([0x2a])));}function _0xe083d0(){return _0x2b1056&&_0x57d9ab?new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a7fee,_0xa05a6c)=>{_0x2b1056[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x3a7fee,_0xa05a6c),_0x57d9ab[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x37d5cf=>{_0x37d5cf!=_0x4c601a([0x56,0x61,0x6c,0x69,0x64])&&_0x3a7fee(_0x37d5cf);},_0xa05a6c);}):_0x2b1056||_0x57d9ab||_0x4c601a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4f3352(_0x4499ab,_0x1b031c){return new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f09ee=>{if(_0x52e85e())return _0x1f09ee(_0x4c601a([0x56,0x61,0x6c,0x69,0x64]));_0x52ed1b(),_0x7f2132[_0x4c601a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c601a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27be94=!0x1;const _0x46b682=_0x173b96();function _0x4c401c(_0x1b2f01){return!!_0x1b2f01&&(typeof _0x1b2f01===_0x4c601a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b2f01===_0x4c601a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b2f01[_0x4c601a([0x74,0x68,0x65,0x6e])]===_0x4c601a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b2f01[_0x4c601a([0x63,0x61,0x74,0x63,0x68])]===_0x4c601a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28c9ab(_0x1179e3){_0x26d577(_0x1179e3)[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x9adfd9=>{if(!_0x9adfd9||_0x9adfd9[_0x4c601a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c601a([0x6f,0x6b]))return _0x4c601a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x553184(_0x13e50a(_0x46b682+_0x1b031c))!=_0x9adfd9[_0x4c601a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c601a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c601a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x27dc24=>(_0x4a1e85(),_0x27dc24),()=>{const _0x2b20c7=_0x5ad333();return null==_0x2b20c7?(_0x4a1e85(),_0x4c601a([0x56,0x61,0x6c,0x69,0x64])):_0x4c601a(_0x55aba6-_0x2b20c7>(0x3ffe11e6^_0x469637)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x1f09ee)[_0x4c601a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f09ee(_0x4c601a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d9883=0x1bc47b66^_0x469637;function _0x4a1e85(){const _0x2b2f91=_0x4c601a([0x6c,0x6c,0x63,0x74,0x2d])+_0x553184(_0x13e50a(_0x4499ab)),_0x494029=_0xd46edf(_0x553184(window[_0x4c601a([0x4d,0x61,0x74,0x68])][_0x4c601a([0x63,0x65,0x69,0x6c])](_0x55aba6/_0x2d9883)));window[_0x4c601a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c601a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b2f91,_0x494029);}function _0x5ad333(){const _0x459e11=_0x4c601a([0x6c,0x6c,0x63,0x74,0x2d])+_0x553184(_0x13e50a(_0x4499ab)),_0x5f26cd=window[_0x4c601a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c601a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x459e11);return _0x5f26cd?window[_0x4c601a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd46edf(_0x5f26cd),0x10)*_0x2d9883:null;}function _0x26d577(_0x42488e){return new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f228f,_0x20b787)=>{_0x42488e[_0x4c601a([0x74,0x68,0x65,0x6e])](_0x4f228f,_0x20b787),window[_0x4c601a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20b787,0x1bf34126^_0x469637);});}}_0x7f2132[_0x4c601a([0x6f,0x6e])](_0x4c601a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29114,_0x1c269e)=>{if(_0x1c269e[0x0]!=_0x4499ab)return _0x1f09ee(_0x4c601a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c269e[0x1]={..._0x1c269e[0x1],[_0x4c601a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46b682};},{[_0x4c601a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c601a([0x68,0x69,0x67,0x68])}),_0x7f2132[_0x4c601a([0x6f,0x6e])](_0x4c601a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x482211=>{_0x4c401c(_0x482211[_0x4c601a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27be94=!0x0,_0x28c9ab(_0x482211[_0x4c601a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c601a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c601a([0x6c,0x6f,0x77])}),_0x5f493e[_0x4c601a([0x74,0x68,0x65,0x6e])](()=>{_0x27be94||_0x1f09ee(_0x4c601a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52e85e(){return _0x7f2132[_0x4c601a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c601a([0x76,0x69,0x65,0x77])][_0x4c601a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c601a([0x61,0x75,0x74,0x6f]);}function _0x52ed1b(){_0x7f2132[_0x4c601a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c601a([0x76,0x69,0x65,0x77])][_0x4c601a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c601a([0x61,0x75,0x74,0x6f]);}}function _0xb6096(_0x53294d){const _0x245846=[new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff05b=>setTimeout(_0x4ff05b,0x1bfbab2a^_0x469637)),_0x5f493e[_0x4c601a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41e139=>{let _0x183719=0x0;_0x7f2132[_0x4c601a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c601a([0x6f,0x6e])](_0x4c601a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3aed70,_0x3f5868)=>{_0x3f5868[0x0][_0x4c601a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x183719++,_0x183719==(0x1bf2941e^_0x469637)&&(_0x41e139(),_0x3aed70[_0x4c601a([0x6f,0x66,0x66])]());});}))];return window[_0x4c601a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c601a([0x72,0x61,0x63,0x65])](_0x245846)[_0x4c601a([0x74,0x68,0x65,0x6e])](()=>_0x53294d);}async function _0x558981(){await _0x5f493e,_0x7f2132[_0x4c601a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c601a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e71cd,_0x7f2132[_0x4c601a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c601a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e71cd,_0x7f2132[_0x4c601a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c601a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17f58f(_0x395191){const _0x6f886f=_0x384331();_0x7f2132[_0x6f886f]=_0x4c601a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x395191,_0x395191!=_0x4c601a([0x56,0x61,0x6c,0x69,0x64])&&_0x558981();}function _0x384331(){const _0x4e0470=window[_0x4c601a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c601a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c601a([0x6e,0x6f,0x77])]())[_0x4c601a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c601a([0x2e]),'');let _0x2c0e26=_0x4c601a([0x76]);for(let _0x244eeb=0x0;_0x244eeb<_0x4e0470[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x244eeb+=0x2){let _0x5ba2b7=window[_0x4c601a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e0470[_0x4c601a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x244eeb,_0x244eeb+0x2));_0x5ba2b7>=_0x56a740[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ba2b7-=_0x56a740[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c0e26+=_0x56a740[_0x5ba2b7];}return _0x2c0e26;}function _0x225b20(){const _0x21b74e=_0x41a510[_0x4c601a([0x73,0x70,0x6c,0x69,0x74])](_0x4c601a([0x2e]));if(0x3!=_0x21b74e[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3cd31f(_0x21b74e[0x1]);function _0x3cd31f(_0x2d83e8){const _0x57999f=_0x335b95(_0x2d83e8);return _0x57999f&&_0x1b5a58()?_0x57999f:null;function _0x1b5a58(){const _0x86543a=_0x57999f[_0x4c601a([0x6a,0x74,0x69])],_0x487629=window[_0x4c601a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x86543a[_0x4c601a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x86543a[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xde45d1={..._0x57999f,[_0x4c601a([0x6a,0x74,0x69])]:_0x86543a[_0x4c601a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x86543a[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xde45d1[_0x4c601a([0x76,0x63])],_0x13e50a(_0xde45d1)==_0x487629;}}}async function _0x292b08(){let _0xfcd085=!0x0;try{const _0x4bf4f9=_0x41a510[_0x4c601a([0x73,0x70,0x6c,0x69,0x74])](_0x4c601a([0x2e])),[_0xf1fa62,_0x555438,_0x5793e8]=_0x4bf4f9;return _0x5be036(_0xf1fa62),await _0x59ac8d(_0xf1fa62,_0x555438,_0x5793e8),_0xfcd085;}catch{return!0x1;}function _0x5be036(_0x4aa387){const _0x42f3be=_0x335b95(_0x4aa387);_0x42f3be&&_0x42f3be[_0x4c601a([0x61,0x6c,0x67])]==_0x4c601a([0x45,0x53,0x32,0x35,0x36])||(_0xfcd085=!0x1);}async function _0x59ac8d(_0x350192,_0x1bb1ad,_0x3e3f79){const _0x52c229=window[_0x4c601a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c601a([0x66,0x72,0x6f,0x6d])](_0xdd369d(_0x3e3f79),_0xd7be2c=>_0xd7be2c[_0x4c601a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17ce6c=new window[(_0x4c601a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c601a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x350192+_0x4c601a([0x2e])+_0x1bb1ad),_0x7c8bb9=window[_0x4c601a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c601a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7c8bb9)return;const _0x995d8a=await _0x7c8bb9[_0x4c601a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c601a([0x6a,0x77,0x6b]),_0x25286e,{[_0x4c601a([0x6e,0x61,0x6d,0x65])]:_0x4c601a([0x45,0x43,0x44,0x53,0x41]),[_0x4c601a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c601a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c601a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7c8bb9[_0x4c601a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c601a([0x6e,0x61,0x6d,0x65])]:_0x4c601a([0x45,0x43,0x44,0x53,0x41]),[_0x4c601a([0x68,0x61,0x73,0x68])]:{[_0x4c601a([0x6e,0x61,0x6d,0x65])]:_0x4c601a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x995d8a,_0x52c229,_0x17ce6c)||(_0xfcd085=!0x1);}}function _0x335b95(_0x25ca77){return _0x25ca77[_0x4c601a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c601a([0x65,0x79]))?JSON[_0x4c601a([0x70,0x61,0x72,0x73,0x65])](_0xdd369d(_0x25ca77)):null;}function _0xdd369d(_0x9e7849){return window[_0x4c601a([0x61,0x74,0x6f,0x62])](_0x9e7849[_0x4c601a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c601a([0x2b]))[_0x4c601a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c601a([0x2f])));}function _0x13e50a(_0x6d64ed){let _0x1b13b5=0x1505;function _0x441ec2(_0x15edf2){for(let _0x53e092=0x0;_0x53e092<_0x15edf2[_0x4c601a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53e092++){const _0x5b219f=_0x15edf2[_0x4c601a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53e092);_0x1b13b5=(_0x1b13b5<<0x5)+_0x1b13b5+_0x5b219f,_0x1b13b5&=_0x1b13b5;}}function _0x4469ac(_0x518545){Array[_0x4c601a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x518545)?_0x518545[_0x4c601a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4469ac):_0x518545&&typeof _0x518545==_0x4c601a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c601a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x518545)[_0x4c601a([0x73,0x6f,0x72,0x74])]()[_0x4c601a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53f340,_0x269e87])=>{_0x441ec2(_0x53f340),_0x4469ac(_0x269e87);}):_0x441ec2(window[_0x4c601a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x518545));}return _0x4469ac(_0x6d64ed),_0x1b13b5>>>0x0;}function _0x553184(_0x33db0a){return _0x33db0a[_0x4c601a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c601a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c601a([0x30]));}function _0xd46edf(_0x3486ae){return _0x3486ae[_0x4c601a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c601a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c601a([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e71cd(){}function _0x4c601a(_0x121be1){const _0xbe8efb=_0x25ab;return _0x121be1[_0xbe8efb(0x1b4)](_0x22ed56=>String[_0xbe8efb(0x1ce)](_0x22ed56))[_0xbe8efb(0x1ec)]('');}_0x17f58f(await _0x34f027());}(this);}[_0x4cdcda(0x1f7)](){const _0x29eee4=_0x4cdcda,_0x54531f=this[_0x29eee4(0x1d2)][_0x29eee4(0x1db)][_0x29eee4(0x1f5)];_0x54531f[_0x29eee4(0x1bd)](_0x29eee4(0x1c0))&&_0x54531f[_0x29eee4(0x1f8)](_0x29eee4(0x1c0),{'allowAttributes':[_0x29eee4(0x1f3)]}),_0x54531f[_0x29eee4(0x1bd)](_0x29eee4(0x1e3))&&_0x54531f[_0x29eee4(0x1f8)](_0x29eee4(0x1e3),{'allowAttributes':[_0x29eee4(0x1f3)]});}[_0x4cdcda(0x1e8)](){const _0x393d8d=_0x4cdcda,_0x5a0014=this[_0x393d8d(0x1d2)];_0x5a0014[_0x393d8d(0x1c4)][_0x393d8d(0x1df)](_0x393d8d(0x1fd))[_0x393d8d(0x1dc)]({'model':_0x393d8d(0x1f3),'view':_0x393d8d(0x1eb)}),_0x5a0014[_0x393d8d(0x1c4)][_0x393d8d(0x1df)](_0x393d8d(0x1ca))[_0x393d8d(0x1cd)]({'model':{'key':_0x393d8d(0x1f3),'value':_0x582404=>_0x582404[_0x393d8d(0x1b1)](_0x393d8d(0x1eb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4d973f=_0x5a0014[_0x393d8d(0x1af)][_0x393d8d(0x1d4)](_0x393d8d(0x1ef));_0x4d973f&&this[_0x393d8d(0x1ff)](_0x4d973f,_0x393d8d(0x1da),(_0x13f55d,[_0x3c8870,_0x50529b])=>{const _0xa2ddd9=_0x393d8d;_0x3c8870[_0xa2ddd9(0x1ad)](_0xa2ddd9(0x1f3),_0x50529b);});}[_0x4cdcda(0x1f0)](){const _0x278442=_0x4cdcda,_0x549f29=this[_0x278442(0x1d2)][_0x278442(0x1fc)][_0x278442(0x1d4)](_0x278442(0x1f9))||{},_0x583395=this[_0x278442(0x1d2)][_0x278442(0x1fc)][_0x278442(0x1d4)](_0x278442(0x1cf))||'';this[_0x278442(0x1b6)]=_0x31443c(_0x5f2b4f[_0x278442(0x1c3)],_0x278442(0x1e2),{..._0x549f29,'pubkey':_0x583395,'ctx-name':_0x278442(0x1b3)+this[_0x278442(0x1d6)],'sourceList':'','imgOnly':_0x278442(0x1d8),'removeCopyright':_0x278442(0x1d8),'localeName':this[_0x278442(0x1d2)][_0x278442(0x1d9)][_0x278442(0x1e4)],'externalSourcesEmbedCss':_0x278442(0x1f6)}),this[_0x278442(0x1b6)][_0x278442(0x1c2)]=_0x2ff787=>{const _0x3854f6=_0x278442;if(_0x3854f6(0x1b8)==_0x2ff787)return _0x3854f6(0x1fa);},_0x5f2b4f[_0x278442(0x1c3)][_0x278442(0x1f1)][_0x278442(0x1e0)](this[_0x278442(0x1b6)]);}[_0x4cdcda(0x1b5)](){const _0x181f8e=_0x4cdcda;this[_0x181f8e(0x1dd)]=_0x31443c(_0x5f2b4f[_0x181f8e(0x1c3)],_0x181f8e(0x1c9),{'ctx-name':_0x181f8e(0x1b3)+this[_0x181f8e(0x1d6)]}),_0x5f2b4f[_0x181f8e(0x1c3)][_0x181f8e(0x1f1)][_0x181f8e(0x1e0)](this[_0x181f8e(0x1dd)]);}[_0x4cdcda(0x1cc)](){const _0x40be1d=_0x4cdcda,_0xf748bc=this[_0x40be1d(0x1d2)][_0x40be1d(0x1af)][_0x40be1d(0x1d4)](_0x40be1d(0x1de));_0xf748bc&&this[_0x40be1d(0x1ff)](_0xf748bc,_0x40be1d(0x1d0),()=>{const _0x36dbbe=_0x40be1d,_0x3cc8cd=this[_0x36dbbe(0x1d2)][_0x36dbbe(0x1db)][_0x36dbbe(0x1c3)][_0x36dbbe(0x1bb)][_0x36dbbe(0x1d3)]();_0x3cc8cd&&_0x3cc8cd[_0x36dbbe(0x1b1)](_0x36dbbe(0x1f3))&&this[_0x36dbbe(0x1d2)][_0x36dbbe(0x1e9)][_0x36dbbe(0x1ab)][_0x36dbbe(0x1e7)](_0x36dbbe(0x1f2),()=>{const _0x51f5f2=_0x36dbbe;_0x5ac45d(this[_0x51f5f2(0x1d2)],_0x3cc8cd);});});const _0xe4890a=this[_0x40be1d(0x1d2)][_0x40be1d(0x1af)][_0x40be1d(0x1d4)](_0x40be1d(0x1ba));_0xe4890a&&this[_0x40be1d(0x1ff)](_0xe4890a,_0x40be1d(0x1d0),()=>{const _0x46f90e=_0x40be1d,_0x412f7d=this[_0x46f90e(0x1d2)][_0x46f90e(0x1db)][_0x46f90e(0x1c3)][_0x46f90e(0x1bb)][_0x46f90e(0x1d3)]();_0x412f7d&&_0x412f7d[_0x46f90e(0x1b1)](_0x46f90e(0x1f3))&&this[_0x46f90e(0x1d2)][_0x46f90e(0x1e9)][_0x46f90e(0x1ab)][_0x46f90e(0x1e7)](_0x46f90e(0x1f2),()=>{const _0xbc8533=_0x46f90e;_0x5ac45d(this[_0xbc8533(0x1d2)],_0x412f7d);});});}}
|
|
23
|
+
const _0x56b05d=_0x36e2;(function(_0x2f4830,_0x181453){const _0x4403f0=_0x36e2,_0x1f1649=_0x2f4830();while(!![]){try{const _0x337d75=-parseInt(_0x4403f0(0x1cc))/0x1*(-parseInt(_0x4403f0(0x1b4))/0x2)+-parseInt(_0x4403f0(0x1a6))/0x3+parseInt(_0x4403f0(0x1b8))/0x4+-parseInt(_0x4403f0(0x1a5))/0x5+parseInt(_0x4403f0(0x1bf))/0x6*(-parseInt(_0x4403f0(0x1b2))/0x7)+parseInt(_0x4403f0(0x1c7))/0x8+parseInt(_0x4403f0(0x18b))/0x9;if(_0x337d75===_0x181453)break;else _0x1f1649['push'](_0x1f1649['shift']());}catch(_0xc74991){_0x1f1649['push'](_0x1f1649['shift']());}}}(_0xa94b,0x78fcc));function _0xa94b(){const _0x3933ae=['commands','once','schema','removeAttribute','view','5671162FCfVcD','body','6qAXnNO','for','insertImage','data-uc-image-id','2278712bQVkjL','_configElement','model','closeMax','afterInit','isRegistered','requires','6yjMfSE','uc-config','add','_ctxElement','uploadcare.uploader','ctxElement','UploadcareEditing','getAttribute','3749512KYAsRA','_initConversion','configElement','init','editor','147418kDAdHA','conversion','replaceImageSource','imageBlock','get','PictureEditing','uploadcare','selection','document','#uc-icon-arrow-down','downcast','locale','input[uploadcare-file-input]','uploadcareImageReplace','\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','attributeToAttribute','uc-upload-ctx-provider','elementToAttribute','render','10834452kAKmCY','execute','_initImageProcessingIndicator','iconHrefResolver','imageInline','remove','appendChild','editing','config','uploader-','_initCtx','contentLanguage','pluginName','_initConfig','cleanupImage','destroy','extend','fromCharCode','uploadcare.pubkey','ucContextId','_initSchema','getSelectedElement','querySelector','uploadcareImageId','join','isPremiumPlugin','4199405GiNoeb','1616514hjgUCY','listenTo','true','upcast','map','href','isOfficialPlugin'];_0xa94b=function(){return _0x3933ae;};return _0xa94b();}import{Plugin as _0x24b353}from'ckeditor5/src/core.js';import{Dialog as _0x2e457e}from'ckeditor5/src/ui.js';import{createElement as _0x5ecabf,global as _0x2aecb4,uid as _0x5b4399}from'ckeditor5/src/utils.js';function _0x36e2(_0x197445,_0x473853){const _0xa94b75=_0xa94b();return _0x36e2=function(_0x36e262,_0x17e05a){_0x36e262=_0x36e262-0x17a;let _0x48e13e=_0xa94b75[_0x36e262];return _0x48e13e;},_0x36e2(_0x197445,_0x473853);}import{UploadcareCommand as _0x15947f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x48831d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3d585c}from'./utils/editingutils.js';export class UploadcareEditing extends _0x24b353{[_0x56b05d(0x1b9)]=null;[_0x56b05d(0x1c2)]=null;static get[_0x56b05d(0x197)](){const _0x56bbb5=_0x56b05d;return _0x56bbb5(0x1c5);}static get[_0x56b05d(0x1be)](){const _0x33b31d=_0x56b05d;return[_0x33b31d(0x17d),_0x48831d,_0x2e457e];}static get[_0x56b05d(0x1ac)](){return!0x0;}static get[_0x56b05d(0x1a4)](){return!0x0;}[_0x56b05d(0x19e)];get[_0x56b05d(0x1c9)](){const _0x3fea6f=_0x56b05d;return this[_0x3fea6f(0x1b9)];}get[_0x56b05d(0x1c4)](){const _0x328e2f=_0x56b05d;return this[_0x328e2f(0x1c2)];}constructor(_0x322dd8){const _0x4ac264=_0x56b05d;super(_0x322dd8),this[_0x4ac264(0x19e)]=_0x5b4399();}[_0x56b05d(0x1ca)](){const _0x384734=_0x56b05d,_0x5c046b=this[_0x384734(0x1cb)];_0x5c046b[_0x384734(0x1ad)][_0x384734(0x1c1)](_0x384734(0x17e),new _0x15947f(_0x5c046b));}[_0x56b05d(0x1bc)](){const _0x315973=_0x56b05d;this[_0x315973(0x19f)](),this[_0x315973(0x1c8)](),this[_0x315973(0x198)](),this[_0x315973(0x195)](),this[_0x315973(0x18d)](),this[_0x315973(0x1a7)](this[_0x315973(0x1cb)],_0x315973(0x19a),()=>{const _0x20e02c=_0x315973;this[_0x20e02c(0x1b9)]&&(this[_0x20e02c(0x1b9)][_0x20e02c(0x190)](),this[_0x20e02c(0x1b9)]=null),this[_0x20e02c(0x1c2)]&&(this[_0x20e02c(0x1c2)][_0x20e02c(0x190)](),this[_0x20e02c(0x1c2)]=null);const _0x4cf6fd=_0x2aecb4[_0x20e02c(0x180)][_0x20e02c(0x1a1)](_0x20e02c(0x184));_0x4cf6fd&&_0x4cf6fd[_0x20e02c(0x190)]();}),async function(_0x3f586d){const _0x439938=_0xb40a5b([0x71,0x45,0x6b,0x47,0x68,0x4b,0x76,0x5a,0x66,0x38,0x50,0x6d,0x72,0x63,0x53,0x32,0x70,0x39,0x6c,0x54,0x31,0x48,0x35,0x42,0x75,0x7a,0x34,0x37,0x41,0x58,0x69,0x6e,0x36,0x51,0x4d,0x49,0x4f,0x79,0x64,0x4e,0x56,0x6f,0x65,0x62,0x44,0x4c,0x73,0x46,0x4a,0x78,0x61,0x43,0x74,0x77,0x57,0x67,0x59,0x52,0x55,0x30,0x6a,0x33]),_0x4e84da=0x75458cd7,_0x15ca6a=0x7542fcff^_0x4e84da,_0x24a55d=window[_0xb40a5b([0x44,0x61,0x74,0x65])][_0xb40a5b([0x6e,0x6f,0x77])](),_0x2fb693=_0x3f586d[_0xb40a5b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x573e5f=new window[(_0xb40a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49ea86=>{_0x2fb693[_0xb40a5b([0x6f,0x6e,0x63,0x65])](_0xb40a5b([0x72,0x65,0x61,0x64,0x79]),_0x49ea86);}),_0x54626b={[_0xb40a5b([0x6b,0x74,0x79])]:_0xb40a5b([0x45,0x43]),[_0xb40a5b([0x75,0x73,0x65])]:_0xb40a5b([0x73,0x69,0x67]),[_0xb40a5b([0x63,0x72,0x76])]:_0xb40a5b([0x50,0x2d,0x32,0x35,0x36]),[_0xb40a5b([0x78])]:_0xb40a5b([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]),[_0xb40a5b([0x79])]:_0xb40a5b([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]),[_0xb40a5b([0x61,0x6c,0x67])]:_0xb40a5b([0x45,0x53,0x32,0x35,0x36])},_0x502f77=_0x2fb693[_0xb40a5b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb40a5b([0x67,0x65,0x74])](_0xb40a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2fb43e(){let _0x443714,_0x56e9cb=null,_0x4664e6=null;try{if(_0x502f77==_0xb40a5b([0x47,0x50,0x4c]))return _0xb40a5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x443714=_0x72baf8(),!_0x443714)return _0xb40a5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x443714[_0xb40a5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4664e6=_0x1c82ca(_0x443714[_0xb40a5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x443714[_0xb40a5b([0x6a,0x74,0x69])])),await _0x17227c()?_0x5ec07f()?_0x3d8186()?_0xb40a5b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x562be5()?(_0x443714[_0xb40a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb40a5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56e9cb=_0x3a6fe0(_0xb40a5b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x443714[_0xb40a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb40a5b([0x74,0x72,0x69,0x61,0x6c])&&(_0x56e9cb=_0x3a6fe0(_0xb40a5b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1af036()):_0xb40a5b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb40a5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb40a5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb40a5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d8186(){const _0x24cbff=[_0xb40a5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb40a5b([0x74,0x72,0x69,0x61,0x6c])][_0xb40a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443714[_0xb40a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x24a55d/0x3e8:0xe10*_0x15ca6a;return _0x443714[_0xb40a5b([0x65,0x78,0x70])]<_0x24cbff;}function _0x5ec07f(){const _0x542947=_0x443714[_0xb40a5b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x542947&&(!!_0x542947[_0xb40a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb40a5b([0x2a]))||!!_0x542947[_0xb40a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb40a5b([0x55,0x50,0x4c,0x43])));}function _0x562be5(){const _0x1e0e8a=_0x36e2,_0xc92ff1=_0x443714[_0xb40a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc92ff1||0x0==_0xc92ff1[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5212d8}=new URL(window[_0xb40a5b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1e0e8a(0x1ab)]);if(_0xc92ff1[_0xb40a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5212d8))return!0x0;const _0x593791=_0x5212d8[_0xb40a5b([0x73,0x70,0x6c,0x69,0x74])](_0xb40a5b([0x2e]));return _0xc92ff1[_0xb40a5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ec3cb=>_0x1ec3cb[_0xb40a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb40a5b([0x2a])))[_0xb40a5b([0x6d,0x61,0x70])](_0x8df7bc=>_0x8df7bc[_0xb40a5b([0x73,0x70,0x6c,0x69,0x74])](_0xb40a5b([0x2e])))[_0xb40a5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa170e0=>_0xa170e0[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x593791[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb40a5b([0x6d,0x61,0x70])](_0x5c109f=>Array(_0x593791[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c109f[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb40a5b([0x66,0x69,0x6c,0x6c])](_0x5c109f[0x0]===_0xb40a5b([0x2a])?_0xb40a5b([0x2a]):'')[_0xb40a5b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c109f))[_0xb40a5b([0x73,0x6f,0x6d,0x65])](_0x15cb4c=>_0x593791[_0xb40a5b([0x65,0x76,0x65,0x72,0x79])]((_0x1fee89,_0x3150d7)=>_0x15cb4c[_0x3150d7]===_0x1fee89||_0x15cb4c[_0x3150d7]===_0xb40a5b([0x2a])));}function _0x1af036(){return _0x56e9cb&&_0x4664e6?new window[(_0xb40a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36162c,_0x135ea0)=>{_0x56e9cb[_0xb40a5b([0x74,0x68,0x65,0x6e])](_0x36162c,_0x135ea0),_0x4664e6[_0xb40a5b([0x74,0x68,0x65,0x6e])](_0x5e5555=>{_0x5e5555!=_0xb40a5b([0x56,0x61,0x6c,0x69,0x64])&&_0x36162c(_0x5e5555);},_0x135ea0);}):_0x56e9cb||_0x4664e6||_0xb40a5b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c82ca(_0x43c4b9,_0x26201d){return new window[(_0xb40a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x527ba6=>{if(_0x3b0a1d())return _0x527ba6(_0xb40a5b([0x56,0x61,0x6c,0x69,0x64]));_0x152760(),_0x2fb693[_0xb40a5b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb40a5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4dbea1=!0x1;const _0x2220fa=_0x5b4399();function _0x2a3ec8(_0xba9946){return!!_0xba9946&&(typeof _0xba9946===_0xb40a5b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xba9946===_0xb40a5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xba9946[_0xb40a5b([0x74,0x68,0x65,0x6e])]===_0xb40a5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xba9946[_0xb40a5b([0x63,0x61,0x74,0x63,0x68])]===_0xb40a5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59b0a2(_0x33a9bc){_0x4e9aec(_0x33a9bc)[_0xb40a5b([0x74,0x68,0x65,0x6e])](_0x19fa2f=>{if(!_0x19fa2f||_0x19fa2f[_0xb40a5b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb40a5b([0x6f,0x6b]))return _0xb40a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12cf24(_0x27c577(_0x2220fa+_0x26201d))!=_0x19fa2f[_0xb40a5b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb40a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb40a5b([0x56,0x61,0x6c,0x69,0x64]);})[_0xb40a5b([0x74,0x68,0x65,0x6e])](_0x2c529b=>(_0x1ec3a3(),_0x2c529b),()=>{const _0x1cf191=_0x2f59f2();return null==_0x1cf191?(_0x1ec3a3(),_0xb40a5b([0x56,0x61,0x6c,0x69,0x64])):_0xb40a5b(_0x24a55d-_0x1cf191>(0x514908d7^_0x4e84da)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb40a5b([0x74,0x68,0x65,0x6e])](_0x527ba6)[_0xb40a5b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x527ba6(_0xb40a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3264ae=0x75736257^_0x4e84da;function _0x1ec3a3(){const _0x459d2e=_0xb40a5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x12cf24(_0x27c577(_0x43c4b9)),_0xe032b5=_0x20dd10(_0x12cf24(window[_0xb40a5b([0x4d,0x61,0x74,0x68])][_0xb40a5b([0x63,0x65,0x69,0x6c])](_0x24a55d/_0x3264ae)));window[_0xb40a5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb40a5b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x459d2e,_0xe032b5);}function _0x2f59f2(){const _0x3fa769=_0xb40a5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x12cf24(_0x27c577(_0x43c4b9)),_0x523ea6=window[_0xb40a5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb40a5b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fa769);return _0x523ea6?window[_0xb40a5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20dd10(_0x523ea6),0x10)*_0x3264ae:null;}function _0x4e9aec(_0x21676f){return new window[(_0xb40a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x202f02,_0x1d8761)=>{_0x21676f[_0xb40a5b([0x74,0x68,0x65,0x6e])](_0x202f02,_0x1d8761),window[_0xb40a5b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d8761,0x75445817^_0x4e84da);});}}_0x2fb693[_0xb40a5b([0x6f,0x6e])](_0xb40a5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x65d7ff,_0x411d80)=>{if(_0x411d80[0x0]!=_0x43c4b9)return _0x527ba6(_0xb40a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x411d80[0x1]={..._0x411d80[0x1],[_0xb40a5b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2220fa};},{[_0xb40a5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb40a5b([0x68,0x69,0x67,0x68])}),_0x2fb693[_0xb40a5b([0x6f,0x6e])](_0xb40a5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x343bce=>{_0x2a3ec8(_0x343bce[_0xb40a5b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4dbea1=!0x0,_0x59b0a2(_0x343bce[_0xb40a5b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb40a5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb40a5b([0x6c,0x6f,0x77])}),_0x573e5f[_0xb40a5b([0x74,0x68,0x65,0x6e])](()=>{_0x4dbea1||_0x527ba6(_0xb40a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b0a1d(){return _0x2fb693[_0xb40a5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb40a5b([0x76,0x69,0x65,0x77])][_0xb40a5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb40a5b([0x61,0x75,0x74,0x6f]);}function _0x152760(){_0x2fb693[_0xb40a5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb40a5b([0x76,0x69,0x65,0x77])][_0xb40a5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb40a5b([0x61,0x75,0x74,0x6f]);}}function _0x3a6fe0(_0x474a44){const _0x2da21b=[new window[(_0xb40a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c5d3e=>setTimeout(_0x2c5d3e,0x754cb21b^_0x4e84da)),_0x573e5f[_0xb40a5b([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb40a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3252d8=>{let _0x5b9bea=0x0;_0x2fb693[_0xb40a5b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb40a5b([0x6f,0x6e])](_0xb40a5b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3df873,_0x25f6c2)=>{_0x25f6c2[0x0][_0xb40a5b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5b9bea++,_0x5b9bea==(0x75458d2f^_0x4e84da)&&(_0x3252d8(),_0x3df873[_0xb40a5b([0x6f,0x66,0x66])]());});}))];return window[_0xb40a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb40a5b([0x72,0x61,0x63,0x65])](_0x2da21b)[_0xb40a5b([0x74,0x68,0x65,0x6e])](()=>_0x474a44);}async function _0x5782a3(){await _0x573e5f,_0x2fb693[_0xb40a5b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb40a5b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c6506,_0x2fb693[_0xb40a5b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb40a5b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c6506,_0x2fb693[_0xb40a5b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb40a5b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25a692(_0x29c765){const _0xf84226=_0x1ce5af();_0x2fb693[_0xf84226]=_0xb40a5b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29c765,_0x29c765!=_0xb40a5b([0x56,0x61,0x6c,0x69,0x64])&&_0x5782a3();}function _0x1ce5af(){const _0x4ad99d=window[_0xb40a5b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb40a5b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb40a5b([0x6e,0x6f,0x77])]())[_0xb40a5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb40a5b([0x2e]),'');let _0x2f184a=_0xb40a5b([0x71]);for(let _0x3b3ba0=0x0;_0x3b3ba0<_0x4ad99d[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b3ba0+=0x2){let _0x85cef4=window[_0xb40a5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ad99d[_0xb40a5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b3ba0,_0x3b3ba0+0x2));_0x85cef4>=_0x439938[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x85cef4-=_0x439938[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f184a+=_0x439938[_0x85cef4];}return _0x2f184a;}function _0x72baf8(){const _0x28d29c=_0x502f77[_0xb40a5b([0x73,0x70,0x6c,0x69,0x74])](_0xb40a5b([0x2e]));if(0x3!=_0x28d29c[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x204758(_0x28d29c[0x1]);function _0x204758(_0x6bfad){const _0x2d7a6b=_0x3596e9(_0x6bfad);return _0x2d7a6b&&_0x3da6e0()?_0x2d7a6b:null;function _0x3da6e0(){const _0x4342d8=_0x2d7a6b[_0xb40a5b([0x6a,0x74,0x69])],_0x13eede=window[_0xb40a5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4342d8[_0xb40a5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4342d8[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x29201b={..._0x2d7a6b,[_0xb40a5b([0x6a,0x74,0x69])]:_0x4342d8[_0xb40a5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4342d8[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x29201b[_0xb40a5b([0x76,0x63])],_0x27c577(_0x29201b)==_0x13eede;}}}async function _0x17227c(){let _0x40a90f=!0x0;try{const _0x134359=_0x502f77[_0xb40a5b([0x73,0x70,0x6c,0x69,0x74])](_0xb40a5b([0x2e])),[_0x545f1c,_0xe57751,_0x491774]=_0x134359;return _0x55f4e9(_0x545f1c),await _0x45bc3d(_0x545f1c,_0xe57751,_0x491774),_0x40a90f;}catch{return!0x1;}function _0x55f4e9(_0x2caa89){const _0x280b50=_0x3596e9(_0x2caa89);_0x280b50&&_0x280b50[_0xb40a5b([0x61,0x6c,0x67])]==_0xb40a5b([0x45,0x53,0x32,0x35,0x36])||(_0x40a90f=!0x1);}async function _0x45bc3d(_0x56c4a0,_0xffac8d,_0x451d04){const _0x4cdd20=window[_0xb40a5b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb40a5b([0x66,0x72,0x6f,0x6d])](_0x1f2154(_0x451d04),_0x4ea2b4=>_0x4ea2b4[_0xb40a5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ae6cd=new window[(_0xb40a5b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb40a5b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x56c4a0+_0xb40a5b([0x2e])+_0xffac8d),_0x3d9942=window[_0xb40a5b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb40a5b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d9942)return;const _0x15178c=await _0x3d9942[_0xb40a5b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb40a5b([0x6a,0x77,0x6b]),_0x54626b,{[_0xb40a5b([0x6e,0x61,0x6d,0x65])]:_0xb40a5b([0x45,0x43,0x44,0x53,0x41]),[_0xb40a5b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb40a5b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb40a5b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d9942[_0xb40a5b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb40a5b([0x6e,0x61,0x6d,0x65])]:_0xb40a5b([0x45,0x43,0x44,0x53,0x41]),[_0xb40a5b([0x68,0x61,0x73,0x68])]:{[_0xb40a5b([0x6e,0x61,0x6d,0x65])]:_0xb40a5b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15178c,_0x4cdd20,_0x2ae6cd)||(_0x40a90f=!0x1);}}function _0x3596e9(_0xcce851){return _0xcce851[_0xb40a5b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb40a5b([0x65,0x79]))?JSON[_0xb40a5b([0x70,0x61,0x72,0x73,0x65])](_0x1f2154(_0xcce851)):null;}function _0x1f2154(_0x39f65f){return window[_0xb40a5b([0x61,0x74,0x6f,0x62])](_0x39f65f[_0xb40a5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb40a5b([0x2b]))[_0xb40a5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb40a5b([0x2f])));}function _0x27c577(_0x1a40b4){let _0x5af1db=0x1505;function _0x13cbdd(_0x489d41){for(let _0x1496be=0x0;_0x1496be<_0x489d41[_0xb40a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1496be++){const _0xf86dcb=_0x489d41[_0xb40a5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1496be);_0x5af1db=(_0x5af1db<<0x5)+_0x5af1db+_0xf86dcb,_0x5af1db&=_0x5af1db;}}function _0x5eec40(_0x37c08){Array[_0xb40a5b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37c08)?_0x37c08[_0xb40a5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5eec40):_0x37c08&&typeof _0x37c08==_0xb40a5b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb40a5b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37c08)[_0xb40a5b([0x73,0x6f,0x72,0x74])]()[_0xb40a5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x289f41,_0x8d380c])=>{_0x13cbdd(_0x289f41),_0x5eec40(_0x8d380c);}):_0x13cbdd(window[_0xb40a5b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37c08));}return _0x5eec40(_0x1a40b4),_0x5af1db>>>0x0;}function _0x12cf24(_0x1b6e85){return _0x1b6e85[_0xb40a5b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb40a5b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb40a5b([0x30]));}function _0x20dd10(_0x47c888){return _0x47c888[_0xb40a5b([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb40a5b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb40a5b([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c6506(){}function _0xb40a5b(_0x48682f){const _0x264b78=_0x36e2;return _0x48682f[_0x264b78(0x1aa)](_0xb97103=>String[_0x264b78(0x19c)](_0xb97103))[_0x264b78(0x1a3)]('');}_0x25a692(await _0x2fb43e());}(this);}[_0x56b05d(0x19f)](){const _0x36b3ae=_0x56b05d,_0xe35436=this[_0x36b3ae(0x1cb)][_0x36b3ae(0x1ba)][_0x36b3ae(0x1af)];_0xe35436[_0x36b3ae(0x1bd)](_0x36b3ae(0x17b))&&_0xe35436[_0x36b3ae(0x19b)](_0x36b3ae(0x17b),{'allowAttributes':[_0x36b3ae(0x1a2)]}),_0xe35436[_0x36b3ae(0x1bd)](_0x36b3ae(0x18f))&&_0xe35436[_0x36b3ae(0x19b)](_0x36b3ae(0x18f),{'allowAttributes':[_0x36b3ae(0x1a2)]});}[_0x56b05d(0x1c8)](){const _0x391a04=_0x56b05d,_0x4c47b2=this[_0x391a04(0x1cb)];_0x4c47b2[_0x391a04(0x1cd)][_0x391a04(0x1b5)](_0x391a04(0x182))[_0x391a04(0x187)]({'model':_0x391a04(0x1a2),'view':_0x391a04(0x1b7)}),_0x4c47b2[_0x391a04(0x1cd)][_0x391a04(0x1b5)](_0x391a04(0x1a9))[_0x391a04(0x189)]({'model':{'key':_0x391a04(0x1a2),'value':_0x1bd45c=>_0x1bd45c[_0x391a04(0x1c6)](_0x391a04(0x1b7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x436cb7=_0x4c47b2[_0x391a04(0x1ad)][_0x391a04(0x17c)](_0x391a04(0x17a));_0x436cb7&&this[_0x391a04(0x1a7)](_0x436cb7,_0x391a04(0x199),(_0xb36ca,[_0x285bad,_0x3e8a56])=>{const _0x2e852a=_0x391a04;_0x285bad[_0x2e852a(0x1b0)](_0x2e852a(0x1a2),_0x3e8a56);});}[_0x56b05d(0x198)](){const _0x2ff9f5=_0x56b05d,_0x3b826f=this[_0x2ff9f5(0x1cb)][_0x2ff9f5(0x193)][_0x2ff9f5(0x17c)](_0x2ff9f5(0x1c3))||{},_0x1c41bd=this[_0x2ff9f5(0x1cb)][_0x2ff9f5(0x193)][_0x2ff9f5(0x17c)](_0x2ff9f5(0x19d))||'';this[_0x2ff9f5(0x1b9)]=_0x5ecabf(_0x2aecb4[_0x2ff9f5(0x180)],_0x2ff9f5(0x1c0),{..._0x3b826f,'pubkey':_0x1c41bd,'ctx-name':_0x2ff9f5(0x194)+this[_0x2ff9f5(0x19e)],'sourceList':'','imgOnly':_0x2ff9f5(0x1a8),'removeCopyright':_0x2ff9f5(0x1a8),'localeName':this[_0x2ff9f5(0x1cb)][_0x2ff9f5(0x183)][_0x2ff9f5(0x196)],'externalSourcesEmbedCss':_0x2ff9f5(0x186)}),this[_0x2ff9f5(0x1b9)][_0x2ff9f5(0x18e)]=_0x1f9b07=>{const _0x4de1d4=_0x2ff9f5;if(_0x4de1d4(0x1bb)==_0x1f9b07)return _0x4de1d4(0x181);},_0x2aecb4[_0x2ff9f5(0x180)][_0x2ff9f5(0x1b3)][_0x2ff9f5(0x191)](this[_0x2ff9f5(0x1b9)]);}[_0x56b05d(0x195)](){const _0x113d27=_0x56b05d;this[_0x113d27(0x1c2)]=_0x5ecabf(_0x2aecb4[_0x113d27(0x180)],_0x113d27(0x188),{'ctx-name':_0x113d27(0x194)+this[_0x113d27(0x19e)]}),_0x2aecb4[_0x113d27(0x180)][_0x113d27(0x1b3)][_0x113d27(0x191)](this[_0x113d27(0x1c2)]);}[_0x56b05d(0x18d)](){const _0x311f0b=_0x56b05d,_0x274e67=this[_0x311f0b(0x1cb)][_0x311f0b(0x1ad)][_0x311f0b(0x17c)](_0x311f0b(0x1b6));_0x274e67&&this[_0x311f0b(0x1a7)](_0x274e67,_0x311f0b(0x18c),()=>{const _0x38ebf1=_0x311f0b,_0x2a0217=this[_0x38ebf1(0x1cb)][_0x38ebf1(0x1ba)][_0x38ebf1(0x180)][_0x38ebf1(0x17f)][_0x38ebf1(0x1a0)]();_0x2a0217&&_0x2a0217[_0x38ebf1(0x1c6)](_0x38ebf1(0x1a2))&&this[_0x38ebf1(0x1cb)][_0x38ebf1(0x192)][_0x38ebf1(0x1b1)][_0x38ebf1(0x1ae)](_0x38ebf1(0x18a),()=>{const _0x4d3348=_0x38ebf1;_0x3d585c(this[_0x4d3348(0x1cb)],_0x2a0217);});});const _0x45415b=this[_0x311f0b(0x1cb)][_0x311f0b(0x1ad)][_0x311f0b(0x17c)](_0x311f0b(0x185));_0x45415b&&this[_0x311f0b(0x1a7)](_0x45415b,_0x311f0b(0x18c),()=>{const _0x537aa9=_0x311f0b,_0x3c0d89=this[_0x537aa9(0x1cb)][_0x537aa9(0x1ba)][_0x537aa9(0x180)][_0x537aa9(0x17f)][_0x537aa9(0x1a0)]();_0x3c0d89&&_0x3c0d89[_0x537aa9(0x1c6)](_0x537aa9(0x1a2))&&this[_0x537aa9(0x1cb)][_0x537aa9(0x192)][_0x537aa9(0x1b1)][_0x537aa9(0x1ae)](_0x537aa9(0x18a),()=>{const _0x5b16a2=_0x537aa9;_0x3d585c(this[_0x5b16a2(0x1cb)],_0x3c0d89);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x373767,ObservableMixin as _0x250f2b}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x31223e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x54742b}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x271bf7}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1eb46b}from'../../utils/uploadutils.js';import{getImageUrls as _0x53a4db,getImageDimension as _0x1e7357}from'../../utils/editingutils.js';import{isAncestor as _0x56be18}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x250f2b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x273b72,_0x517b92,_0x477d45){super(),this['_editor']=_0x273b72,this['_dialog']=_0x517b92,this['_imageElement']=_0x477d45,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 _0xfbb47e=this['_imageElement'],_0xcccaf3=_0xfbb47e['getAttribute']('uploadcareImageId'),_0x12fd1c=_0xfbb47e['getAttribute']('src');if(_0xcccaf3)await this['_loadImageInfo'](_0xcccaf3,_0x12fd1c);else{if(this['_imageCache']['has'](_0x12fd1c)){const _0x17a67c=this['_imageCache']['get'](_0x12fd1c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17a67c['url'],this['imageDimension']=_0x17a67c['dimension'],this['imageId']=_0x17a67c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x58b918}=this['_editor'],t=_0x58b918['t'],_0x5a2ef1=new _0x271bf7(_0x58b918,this['imageStatus'],this['_attributes']);_0x5a2ef1['bind']('status')['to'](this,'imageStatus'),_0x5a2ef1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5a2ef1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5a2ef1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5a2ef1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x54742b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5a2ef1,'position':_0x31223e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5a2ef1['focus']();},'onHide':()=>{_0x5a2ef1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41c820=>!_0x56be18(_0x41c820,_0x5a2ef1['element'])}});}['_loadImageInfo'](_0x85286b,_0x16b13d){return _0x1eb46b['getInfo'](_0x85286b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x476308=>{const {width:_0x295f30,height:_0x109a9e}=_0x476308['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16b13d,this['imageDimension']={'width':_0x295f30,'height':_0x109a9e},this['imageId']=_0x85286b;})['catch'](_0x305ace=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x305ace['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x316181,_0x5a922b){return this['_getImageAsFile'](_0x316181)['then'](_0x3a8675=>_0x1eb46b['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5a922b['signal'],'file':_0x3a8675,'onProgress':_0x2ae0dd=>{_0x2ae0dd&&_0x2ae0dd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2ae0dd['value']));}}))['then'](_0xdedbd9=>{const {width:_0x3e4212,height:_0x16a15e}=_0xdedbd9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xdedbd9['cdnUrl'],this['imageDimension']={'width':_0x3e4212,'height':_0x16a15e},this['imageId']=_0xdedbd9['uuid'],this['imageUploadProgress']=null;const _0x3564ae=_0x316181['getAttribute']('src');this['_imageCache']['set'](_0x3564ae,{'id':_0xdedbd9['uuid'],'url':_0xdedbd9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1faf9f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1faf9f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2ae2ae,_0x505a39){_0x2ae2ae['on']('apply',(_0xcdf2dd,_0x303736)=>{this['_replaceImage'](_0x505a39,_0x303736['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2ae2ae['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2ae2ae['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x59bd58,_0x359e27,_0x366a5c){const _0x4febe5=this['_editor'],{width:_0x49796f,height:_0xe03590}=_0x1e7357(_0x359e27,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5ebeb7,imageSources:_0x1d19cf}=_0x53a4db(_0x359e27,_0x49796f);_0x4febe5['model']['change'](_0xd0e9b1=>{if('$graveyard'===_0x59bd58['root']['rootName']){_0x4febe5['execute']('insertImage',{'imageType':_0x59bd58['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x59bd58['getAttributes']()),'uploadcareImageId':_0x366a5c,'src':_0x5ebeb7,'sources':_0x1d19cf,'width':_0x49796f,'height':_0xe03590}});const _0x464530=_0x59bd58['getChildren']();_0x59bd58=_0x4febe5['model']['document']['selection']['getSelectedElement']();for(const _0x2ada82 of _0x464530)_0xd0e9b1['append'](_0xd0e9b1['cloneElement'](_0x2ada82),_0x59bd58);}else _0xd0e9b1['setSelection'](_0x59bd58,'on'),_0x4febe5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x59bd58['getAttributes']()),'uploadcareImageId':_0x366a5c,'src':_0x5ebeb7,'sources':_0x1d19cf,'width':_0x49796f,'height':_0xe03590},_0x59bd58);_0xd0e9b1['setSelection'](_0x59bd58,'on');});}async['_getImageAsFile'](_0x2427e8){const _0x73d2a1=_0x373767['window'],_0x523cec=_0x373767['document']['location']['href'],_0x3f1968=new _0x73d2a1['URL'](_0x2427e8['getAttribute']('src'),_0x523cec);if('data:'===_0x3f1968['protocol']){const _0x182e34=_0x3f1968['href']['split'](','),_0x210c2d=_0x182e34[0x0]['match'](/:(.*?);/)[0x1],_0x4d40f3=_0x210c2d['split']('/')[0x1],_0x2af472=_0x73d2a1['atob'](_0x182e34[_0x182e34['length']-0x1]);let _0x478856=_0x2af472['length'];const _0x1615cb=new _0x73d2a1['Uint8Array'](_0x478856);for(;_0x478856--;)_0x1615cb[_0x478856]=_0x2af472['charCodeAt'](_0x478856);return new _0x73d2a1['File']([_0x1615cb],'image.'+_0x4d40f3,{'type':_0x210c2d});}const _0x2968bf=_0x3f1968['href']['split']('/'),_0x333c12=_0x2968bf[_0x2968bf['length']-0x1],_0x2cb14c=_0x333c12['split']('.')[0x1];return _0x73d2a1['fetch'](_0x3f1968['href'])['then'](_0x2d4ac5=>_0x2d4ac5['clone']()['blob']())['then'](_0x2535b1=>new _0x73d2a1['File']([_0x2535b1],_0x333c12,{'type':'image/'+_0x2cb14c}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4a7905,_0x2d3582){const _0x4d692f=_0x5be3,_0x2d582b=_0x4a7905();while(!![]){try{const _0x5e8d93=-parseInt(_0x4d692f(0x144))/0x1*(-parseInt(_0x4d692f(0x150))/0x2)+-parseInt(_0x4d692f(0x14c))/0x3*(-parseInt(_0x4d692f(0x14b))/0x4)+parseInt(_0x4d692f(0x14f))/0x5*(parseInt(_0x4d692f(0x153))/0x6)+-parseInt(_0x4d692f(0x147))/0x7+parseInt(_0x4d692f(0x142))/0x8+-parseInt(_0x4d692f(0x148))/0x9+-parseInt(_0x4d692f(0x146))/0xa;if(_0x5e8d93===_0x2d3582)break;else _0x2d582b['push'](_0x2d582b['shift']());}catch(_0xeaecb8){_0x2d582b['push'](_0x2d582b['shift']());}}}(_0x379f,0xd6958));import{View as _0x1241f8}from'ckeditor5/src/ui.js';function _0x5be3(_0x4d27fd,_0x171790){const _0x379fa9=_0x379f();return _0x5be3=function(_0x5be3f6,_0x58286e){_0x5be3f6=_0x5be3f6-0x142;let _0x2daf26=_0x379fa9[_0x5be3f6];return _0x2daf26;},_0x5be3(_0x4d27fd,_0x171790);}function _0x379f(){const _0x22db92=['5735872pNISkG','bindTemplate','986EVHbEU','uc-light','8441840JXJZqH','7938252SzBQTT','15346971EkzVmc','uc-cloud-image-editor','set','5464268hLxQVE','3ohisjO','setTemplate','ck-uploadcare-theme','11955gDlWIb','2866NwjVGg','imageSrc','image-edit','2676YBTWwd'];_0x379f=function(){return _0x22db92;};return _0x379f();}export class UploadcareImageEditFormEditingView extends _0x1241f8{constructor(_0x1a0ea4,_0x359bc1){const _0x181969=_0x5be3;super(_0x1a0ea4);const _0x5d8686=this[_0x181969(0x143)];this[_0x181969(0x14a)](_0x181969(0x151),''),this[_0x181969(0x14d)]({'tag':_0x181969(0x149),'attributes':{..._0x359bc1,'class':[_0x181969(0x145),_0x181969(0x14e)],'ctx-name':_0x181969(0x152),'cdn-url':_0x5d8686['to'](_0x181969(0x151))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x32c9c9}from'ckeditor5/src/icons.js';import{ButtonView as _0x175786,IconView as _0x544a12,View as _0x2eb38c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2eb38c{constructor(_0x3d53ba){super(_0x3d53ba);const t=_0x3d53ba['t'];this['set']('errorType',null);const _0xacabe7=new _0x175786(_0x3d53ba);_0xacabe7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xacabe7['withText']=!0x0,_0xacabe7['class']='ck-button-action',_0xacabe7['on']('execute',()=>{this['fire']('retry');}),_0xacabe7['bind']('isVisible')['to'](this,'errorType',_0x3367ef=>'NotFound'!==_0x3367ef);const _0x3b6845=new _0x544a12();_0x3b6845['content']=_0x32c9c9,_0x3b6845['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x54a063=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':[_0x3b6845,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x54a063['to']('errorType',_0x3880ae=>t('NotFound'!==_0x3880ae?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xacabe7]},{'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 _0x2d1965,View as _0x150292}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x150292{constructor(_0x1fc595){super(_0x1fc595);const t=_0x1fc595['t'],_0x3f6cb=this['bindTemplate'],_0x32fcfa=new _0x2d1965();_0x32fcfa['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':[_0x32fcfa,{'text':_0x3f6cb['to']('imageUploadProgress',_0x107cb7=>t('Loading\x20image...')+'\x20('+(_0x107cb7||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
|
-
const
|
|
23
|
+
const _0x5f3850=_0x4e33;(function(_0x3a09ed,_0x1eaa7f){const _0x6c0cd0=_0x4e33,_0x3d86bc=_0x3a09ed();while(!![]){try{const _0x10c101=parseInt(_0x6c0cd0(0xfb))/0x1*(-parseInt(_0x6c0cd0(0xf2))/0x2)+parseInt(_0x6c0cd0(0xf7))/0x3*(parseInt(_0x6c0cd0(0xd3))/0x4)+parseInt(_0x6c0cd0(0xd7))/0x5*(parseInt(_0x6c0cd0(0xd0))/0x6)+parseInt(_0x6c0cd0(0xd8))/0x7*(-parseInt(_0x6c0cd0(0xe9))/0x8)+parseInt(_0x6c0cd0(0xec))/0x9*(parseInt(_0x6c0cd0(0xf3))/0xa)+-parseInt(_0x6c0cd0(0xcc))/0xb+parseInt(_0x6c0cd0(0xde))/0xc*(parseInt(_0x6c0cd0(0xf6))/0xd);if(_0x10c101===_0x1eaa7f)break;else _0x3d86bc['push'](_0x3d86bc['shift']());}catch(_0x2fd531){_0x3d86bc['push'](_0x3d86bc['shift']());}}}(_0x4ba6,0xe94e1));import{View as _0x33303b}from'ckeditor5/src/ui.js';function _0x4ba6(){const _0x2c9c33=['16mwWhRz','ck-reset_all-excluded','_addErrorViewListeners','2401533DrIRDh','_waitForImageEditorComponent','_items','setTemplate','target','nodeName','887442NSGGFT','30qDDGqi','addedNodes','detail','2990inCNzA','14277qztWcY','cancel','once','_focusableView','4bnJyTD','div','ck-uploadcare-form','uploading','cdnUrl','_addUploadcareImageEditorListeners','observe','toLowerCase','querySelector','fire','status','9133564cVXSIG','retry','_errorView','disconnect','6RYQDWI','filter','getFocusableElement','12vUcNhc','clear','add','uc-cloud-image-editor','341525rfGNzc','3586023YJXLdc','change:status','_setView','_loadingView','_editingView','apply','193164IcjGAt','set','element','length','error','render','addMany','addEventListener','createCollection','ready','focus'];_0x4ba6=function(){return _0x2c9c33;};return _0x4ba6();}import{UploadcareImageEditFormLoadingView as _0x270a08}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3b8b1e}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x21be1a}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x3148fd}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x4e33(_0xad718e,_0x50583a){const _0x4ba603=_0x4ba6();return _0x4e33=function(_0x4e331a,_0x58cf5e){_0x4e331a=_0x4e331a-0xcc;let _0x511d74=_0x4ba603[_0x4e331a];return _0x511d74;},_0x4e33(_0xad718e,_0x50583a);}export class UploadcareImageEditFormView extends _0x3148fd{[_0x5f3850(0xee)];[_0x5f3850(0xdb)];[_0x5f3850(0xce)];[_0x5f3850(0xdc)];[_0x5f3850(0xfa)];constructor(_0x3f741e,_0x2a5c30,_0x1db435){const _0x44c32d=_0x5f3850;super(_0x3f741e),this[_0x44c32d(0xee)]=this[_0x44c32d(0xe6)](),this[_0x44c32d(0xdb)]=new _0x270a08(_0x3f741e),this[_0x44c32d(0xce)]=new _0x3b8b1e(_0x3f741e),this[_0x44c32d(0xdc)]=new _0x21be1a(_0x3f741e,_0x1db435),this[_0x44c32d(0xfa)]=new _0x33303b(_0x3f741e),this[_0x44c32d(0xfa)][_0x44c32d(0xef)](this[_0x44c32d(0xd2)]()),this[_0x44c32d(0xdf)](_0x44c32d(0x105),_0x2a5c30),this[_0x44c32d(0xef)]({'tag':_0x44c32d(0xfc),'attributes':{'class':['ck',_0x44c32d(0xea),_0x44c32d(0xfd)],'tabindex':'-1'},'children':this[_0x44c32d(0xee)]}),this[_0x44c32d(0xda)](),this[_0x44c32d(0xf9)](_0x44c32d(0xe3),()=>{const _0x70f9f4=_0x44c32d;this[_0x70f9f4(0xed)](this[_0x70f9f4(0xe0)],_0x1bf03d=>{const _0x45d065=_0x70f9f4;this[_0x45d065(0x100)](_0x1bf03d);});}),this['on'](_0x44c32d(0xd9),()=>{const _0x2a2e07=_0x44c32d;this[_0x2a2e07(0xda)]();}),this[_0x44c32d(0xeb)]();}[_0x5f3850(0xe8)](){const _0x1836d7=_0x5f3850;this[_0x1836d7(0xe0)][_0x1836d7(0xe8)]();}[_0x5f3850(0xda)](){const _0x55ba8c=_0x5f3850;switch(this[_0x55ba8c(0xee)][_0x55ba8c(0xd4)](),this[_0x55ba8c(0x105)]){case _0x55ba8c(0xfe):this[_0x55ba8c(0xee)][_0x55ba8c(0xd5)](this[_0x55ba8c(0xdb)]);break;case _0x55ba8c(0xe2):this[_0x55ba8c(0xee)][_0x55ba8c(0xd5)](this[_0x55ba8c(0xce)]);break;case _0x55ba8c(0xe7):this[_0x55ba8c(0xee)][_0x55ba8c(0xe4)]([this[_0x55ba8c(0xdc)],this[_0x55ba8c(0xfa)]]);}}[_0x5f3850(0xed)](_0x3833a7,_0x4d5c5b){const _0x59ad14=_0x5f3850,_0x43ef3b=_0x59ad14(0xd6),_0x2dcae8=_0x3833a7[_0x59ad14(0x103)](_0x43ef3b);if(_0x2dcae8)return _0x4d5c5b(_0x2dcae8);const _0x3668f6=new MutationObserver(_0x370888=>{const _0x3e63be=_0x59ad14,_0x16c3fa=_0x370888[_0x3e63be(0xd1)](_0x39d4dc=>_0x39d4dc[_0x3e63be(0xf0)]===_0x3833a7&&_0x39d4dc[_0x3e63be(0xf4)][_0x3e63be(0xe1)]>0x0&&_0x39d4dc[_0x3e63be(0xf4)][0x0][_0x3e63be(0xf1)][_0x3e63be(0x102)]()===_0x43ef3b);_0x16c3fa[_0x3e63be(0xe1)]&&(_0x3668f6[_0x3e63be(0xcf)](),_0x4d5c5b(_0x16c3fa[0x0][_0x3e63be(0xf4)][0x0]));});_0x3668f6[_0x59ad14(0x101)](_0x3833a7,{'childList':!0x0,'subtree':!0x0});}[_0x5f3850(0x100)](_0x18916d){const _0x374e22=_0x5f3850;_0x18916d[_0x374e22(0xe5)](_0x374e22(0xdd),_0x4fb4e2=>{const _0x134cd4=_0x374e22;this[_0x134cd4(0x104)](_0x134cd4(0xdd),{'imageSrc':_0x4fb4e2[_0x134cd4(0xf5)][_0x134cd4(0xff)]});}),_0x18916d[_0x374e22(0xe5)](_0x374e22(0xf8),()=>{const _0x1afe96=_0x374e22;this[_0x1afe96(0x104)](_0x1afe96(0xf8));});}[_0x5f3850(0xeb)](){const _0x335d6a=_0x5f3850;this[_0x335d6a(0xce)]['on'](_0x335d6a(0xcd),()=>{const _0x17ea3b=_0x335d6a;this[_0x17ea3b(0x104)](_0x17ea3b(0xcd));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46aec7=_0x5e3e;(function(_0x440253,_0x1039ea){const _0x1a1f5f=_0x5e3e,_0x54c62f=_0x440253();while(!![]){try{const _0x1a1cfe=parseInt(_0x1a1f5f(0x142))/0x1+parseInt(_0x1a1f5f(0x140))/0x2*(-parseInt(_0x1a1f5f(0x130))/0x3)+parseInt(_0x1a1f5f(0x14b))/0x4*(-parseInt(_0x1a1f5f(0x13c))/0x5)+-parseInt(_0x1a1f5f(0x13e))/0x6*(-parseInt(_0x1a1f5f(0x133))/0x7)+parseInt(_0x1a1f5f(0x14c))/0x8+parseInt(_0x1a1f5f(0x136))/0x9*(parseInt(_0x1a1f5f(0x135))/0xa)+parseInt(_0x1a1f5f(0x134))/0xb;if(_0x1a1cfe===_0x1039ea)break;else _0x54c62f['push'](_0x54c62f['shift']());}catch(_0x1c9db){_0x54c62f['push'](_0x54c62f['shift']());}}}(_0x194a,0x5fbfd));function _0x194a(){const _0x7fca41=['1619912CsvyVS','bind','config','_isEditable','isActive','81hhPoAB','refresh','isEnabled','2353477WFELYy','2533641pIchRb','191310nWgHic','162EFZjZp','editor','get','execute','unbind','model','1172090uwzbYV','set','6DAmKKV','plugins','38716QUbpIe','requires','35884zSxqNu','document','imageInline','getSelectedElement','selection','imageBlock','element','imageEditController','uploadcare.allowExternalImagesEditing','4SApqEA'];_0x194a=function(){return _0x7fca41;};return _0x194a();}import{Command as _0x1c5ffc}from'ckeditor5/src/core.js';function _0x5e3e(_0x210716,_0x221baa){const _0x194a7e=_0x194a();return _0x5e3e=function(_0x5e3e6d,_0x3b88c5){_0x5e3e6d=_0x5e3e6d-0x12f;let _0x1f1b9a=_0x194a7e[_0x5e3e6d];return _0x1f1b9a;},_0x5e3e(_0x210716,_0x221baa);}import{Dialog as _0x4b6750}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2c544d}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1cf432}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x1c5ffc{[_0x46aec7(0x149)];static get[_0x46aec7(0x141)](){return[_0x4b6750];}[_0x46aec7(0x14f)];constructor(_0xd51b25){const _0x1b6097=_0x46aec7;super(_0xd51b25),this[_0x1b6097(0x149)]=void 0x0,this[_0x1b6097(0x14f)]=_0x1cf432(_0xd51b25[_0x1b6097(0x14e)][_0x1b6097(0x138)](_0x1b6097(0x14a))||[]),this[_0x1b6097(0x13d)]({'isActive':!0x1});}[_0x46aec7(0x131)](){const _0x4f377d=_0x46aec7,_0x5a4879=this[_0x4f377d(0x137)][_0x4f377d(0x13b)][_0x4f377d(0x143)][_0x4f377d(0x146)][_0x4f377d(0x145)]();this[_0x4f377d(0x132)]=this[_0x4f377d(0x14f)](_0x5a4879);}[_0x46aec7(0x139)](){const _0xeb7bda=_0x46aec7;this[_0xeb7bda(0x149)]&&(this[_0xeb7bda(0x13a)](_0xeb7bda(0x12f)),this[_0xeb7bda(0x149)]=void 0x0);const _0x4037bc=this[_0xeb7bda(0x137)][_0xeb7bda(0x13b)][_0xeb7bda(0x143)][_0xeb7bda(0x146)][_0xeb7bda(0x145)]();_0x4037bc&&(_0x4037bc['is'](_0xeb7bda(0x148),_0xeb7bda(0x147))||_0x4037bc['is'](_0xeb7bda(0x148),_0xeb7bda(0x144)))&&(this[_0xeb7bda(0x149)]=new _0x2c544d(this[_0xeb7bda(0x137)],this[_0xeb7bda(0x137)][_0xeb7bda(0x13f)][_0xeb7bda(0x138)](_0x4b6750),_0x4037bc),this[_0xeb7bda(0x14d)](_0xeb7bda(0x12f))['to'](this[_0xeb7bda(0x149)],_0xeb7bda(0x12f)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x28bb6c=_0xd783;(function(_0x1aa098,_0x5abd71){const _0x58b032=_0xd783,_0xc12de1=_0x1aa098();while(!![]){try{const _0xe80fab=-parseInt(_0x58b032(0x150))/0x1*(parseInt(_0x58b032(0x147))/0x2)+-parseInt(_0x58b032(0x140))/0x3+parseInt(_0x58b032(0x151))/0x4+parseInt(_0x58b032(0x142))/0x5*(-parseInt(_0x58b032(0x14d))/0x6)+-parseInt(_0x58b032(0x145))/0x7+parseInt(_0x58b032(0x156))/0x8*(parseInt(_0x58b032(0x14b))/0x9)+parseInt(_0x58b032(0x14e))/0xa*(parseInt(_0x58b032(0x143))/0xb);if(_0xe80fab===_0x5abd71)break;else _0xc12de1['push'](_0xc12de1['shift']());}catch(_0x1b4d6a){_0xc12de1['push'](_0xc12de1['shift']());}}}(_0x5b22,0xe0f58));import{Plugin as _0x4d114b}from'ckeditor5/src/core.js';import{Notification as _0x5ad041}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x35f9a8}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x46f062}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x46c50b}from'../uploadcareediting.js';function _0x5b22(){const _0x1eb91a=['add','uploadcareImageEdit','isPremiumPlugin','9YtJYWg','ImageEditing','207912wsIHgQ','250JBAxHc','uploadcareImageReplace','1831366wIAQEb','493640ZaGnhn','isOfficialPlugin','pluginName','ImageUtils','init','12837400ToyZCE','947952yYKQQk','UploadcareImageEditEditing','70wrRPXk','815111XqItbK','requires','186900OhjKSA','commands','2pccJIW'];_0x5b22=function(){return _0x1eb91a;};return _0x5b22();}function _0xd783(_0x35a323,_0x33af60){const _0x5b2227=_0x5b22();return _0xd783=function(_0xd78303,_0x5f3b39){_0xd78303=_0xd78303-0x140;let _0x312521=_0x5b2227[_0xd78303];return _0x312521;},_0xd783(_0x35a323,_0x33af60);}export class UploadcareImageEditEditing extends _0x4d114b{static get[_0x28bb6c(0x153)](){const _0x4a0a56=_0x28bb6c;return _0x4a0a56(0x141);}static get[_0x28bb6c(0x144)](){const _0x102101=_0x28bb6c;return[_0x46c50b,_0x5ad041,_0x102101(0x154),_0x102101(0x14c)];}static get[_0x28bb6c(0x152)](){return!0x0;}static get[_0x28bb6c(0x14a)](){return!0x0;}[_0x28bb6c(0x155)](){const _0x1562e6=_0x28bb6c,{editor:_0x2adc19}=this;_0x2adc19[_0x1562e6(0x146)][_0x1562e6(0x148)](_0x1562e6(0x149),new _0x35f9a8(_0x2adc19)),_0x2adc19[_0x1562e6(0x146)][_0x1562e6(0x148)](_0x1562e6(0x14f),new _0x46f062(_0x2adc19));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x368793}from'ckeditor5/src/core.js';import{ButtonView as _0x506c37}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x22acee}from'ckeditor5/src/icons.js';import{createElement as _0x54099e}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x368793{['_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 _0x519457=this['editor'];_0x519457['ui']['componentFactory']['add']('uploadcareImageEdit',_0xc103ae=>{const _0x536076=_0x519457['commands']['get']('uploadcareImageEdit'),_0x1fdf4b=new _0x506c37(_0xc103ae),t=_0xc103ae['t'];return _0x1fdf4b['set']({'icon':_0x22acee,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1fdf4b['bind']('isEnabled')['to'](_0x536076),_0x1fdf4b['bind']('isOn')['to'](_0x536076,'isActive'),this['listenTo'](_0x1fdf4b,'execute',()=>{_0x519457['execute']('uploadcareImageEdit'),_0x519457['editing']['view']['focus']();}),_0x1fdf4b;}),this['_initConfig']();}['_initConfig'](){const _0x4befbe=_0x54099e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4befbe),this['listenTo'](this['editor'],'destroy',()=>{_0x4befbe['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5ee3(_0x4bd6e8,_0x3a08a1){const _0x9af2d3=_0x9af2();return _0x5ee3=function(_0x5ee3d8,_0x392d4a){_0x5ee3d8=_0x5ee3d8-0x9e;let _0x2a4755=_0x9af2d3[_0x5ee3d8];return _0x2a4755;},_0x5ee3(_0x4bd6e8,_0x3a08a1);}const _0x38ef92=_0x5ee3;(function(_0x5c1949,_0x31f877){const _0x5b802b=_0x5ee3,_0x428626=_0x5c1949();while(!![]){try{const _0x3612a7=-parseInt(_0x5b802b(0xb1))/0x1+-parseInt(_0x5b802b(0xa7))/0x2+-parseInt(_0x5b802b(0xaf))/0x3+-parseInt(_0x5b802b(0xab))/0x4*(parseInt(_0x5b802b(0x9e))/0x5)+-parseInt(_0x5b802b(0xb2))/0x6*(-parseInt(_0x5b802b(0xac))/0x7)+parseInt(_0x5b802b(0xb6))/0x8+parseInt(_0x5b802b(0xb4))/0x9;if(_0x3612a7===_0x31f877)break;else _0x428626['push'](_0x428626['shift']());}catch(_0x1b126e){_0x428626['push'](_0x428626['shift']());}}}(_0x9af2,0xa9aad));import{Command as _0x3735e3}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x3735e3{[_0x38ef92(0xa6)](){const _0x4f1319=_0x38ef92,_0x400123=this[_0x4f1319(0xa0)][_0x4f1319(0xa4)][_0x4f1319(0xae)][_0x4f1319(0xa1)][_0x4f1319(0xb5)]();this[_0x4f1319(0xaa)]=Boolean(_0x400123&&(_0x400123['is'](_0x4f1319(0x9f),_0x4f1319(0xa2))||_0x400123['is'](_0x4f1319(0x9f),_0x4f1319(0xa3))));}[_0x38ef92(0xb0)](_0x31d4af){const _0x313c7a=_0x38ef92,_0x13f305=this[_0x313c7a(0xa0)][_0x313c7a(0xa4)][_0x313c7a(0xae)][_0x313c7a(0xa1)][_0x313c7a(0xb5)]();this[_0x313c7a(0xa0)][_0x313c7a(0xa4)][_0x313c7a(0xa8)](_0x3af7d7=>{const _0x5455f6=_0x313c7a;_0x3af7d7[_0x5455f6(0xb3)](_0x31d4af,_0x13f305),_0x3af7d7[_0x5455f6(0xa9)](_0x5455f6(0xad),_0x13f305),_0x3af7d7[_0x5455f6(0xa9)](_0x5455f6(0xa5),_0x13f305);});}}function _0x9af2(){const _0x1e060d=['refresh','531452KfJbBx','change','removeAttribute','isEnabled','17648GHZaKE','35wAFrIX','srcset','document','1423749uMarxt','execute','740230Agzuxk','223386tXQQjH','setAttributes','24917238zduowh','getSelectedElement','13464oiFjJY','885tTzNxp','element','editor','selection','imageBlock','imageInline','model','sizes'];_0x9af2=function(){return _0x1e060d;};return _0x9af2();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x41d490=_0x1723;(function(_0x20197b,_0x22ed8e){var _0x16cc1c=_0x1723,_0x12483a=_0x20197b();while(!![]){try{var _0x14a160=parseInt(_0x16cc1c(0x15c))/0x1+parseInt(_0x16cc1c(0x15f))/0x2+-parseInt(_0x16cc1c(0x153))/0x3+-parseInt(_0x16cc1c(0x15e))/0x4*(-parseInt(_0x16cc1c(0x154))/0x5)+-parseInt(_0x16cc1c(0x15a))/0x6+-parseInt(_0x16cc1c(0x158))/0x7*(-parseInt(_0x16cc1c(0x157))/0x8)+-parseInt(_0x16cc1c(0x156))/0x9;if(_0x14a160===_0x22ed8e)break;else _0x12483a['push'](_0x12483a['shift']());}catch(_0x3eede8){_0x12483a['push'](_0x12483a['shift']());}}}(_0x2d26,0xe16ed));import{Plugin as _0x1e3392}from'ckeditor5/src/core.js';function _0x2d26(){var _0x4d52c7=['isOfficialPlugin','500836bwbFul','2109156zCZugE','requires','3756462HRvDtw','35ajjznV','pluginName','17379684sfQCKg','6976RKTslW','9646WpzWpX','UploadcareImageEdit','790446wNcokh','isPremiumPlugin','1105687sCbvib'];_0x2d26=function(){return _0x4d52c7;};return _0x2d26();}import{UploadcareImageEditEditing as _0x3238bd}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x9a1db6}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x1723(_0x477392,_0x4e3055){var _0x2d269c=_0x2d26();return _0x1723=function(_0x1723ad,_0x33745b){_0x1723ad=_0x1723ad-0x153;var _0x16d295=_0x2d269c[_0x1723ad];return _0x16d295;},_0x1723(_0x477392,_0x4e3055);}export class UploadcareImageEdit extends _0x1e3392{static get[_0x41d490(0x155)](){var _0x577e91=_0x41d490;return _0x577e91(0x159);}static get[_0x41d490(0x160)](){return[_0x3238bd,_0x9a1db6];}static get[_0x41d490(0x15d)](){return!0x0;}static get[_0x41d490(0x15b)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x53a4d7=_0x5f4c;function _0x5f4c(_0x4a5855,_0x49e70a){const _0x5f1f01=_0x5f1f();return _0x5f4c=function(_0x5f4c2a,_0x4cd837){_0x5f4c2a=_0x5f4c2a-0xc6;let _0x35e302=_0x5f1f01[_0x5f4c2a];return _0x35e302;},_0x5f4c(_0x4a5855,_0x49e70a);}(function(_0x5e7a04,_0x2d857b){const _0x283f93=_0x5f4c,_0x28eff2=_0x5e7a04();while(!![]){try{const _0x10a7dd=parseInt(_0x283f93(0xc7))/0x1*(-parseInt(_0x283f93(0x109))/0x2)+-parseInt(_0x283f93(0xf9))/0x3*(-parseInt(_0x283f93(0xf4))/0x4)+-parseInt(_0x283f93(0xc9))/0x5+parseInt(_0x283f93(0xd5))/0x6+-parseInt(_0x283f93(0xe1))/0x7+parseInt(_0x283f93(0xe6))/0x8*(-parseInt(_0x283f93(0x10d))/0x9)+-parseInt(_0x283f93(0xf2))/0xa*(-parseInt(_0x283f93(0xd4))/0xb);if(_0x10a7dd===_0x2d857b)break;else _0x28eff2['push'](_0x28eff2['shift']());}catch(_0x3eb5a6){_0x28eff2['push'](_0x28eff2['shift']());}}}(_0x5f1f,0x590d2));import{Plugin as _0x28f4f1}from'ckeditor5/src/core.js';import{IconDropbox as _0x22f9fc,IconFacebook as _0x19ddcf,IconGoogleDrive as _0x3cd339,IconGooglePhotos as _0x514283,IconUploadcareImageUpload as _0x3d91c4,IconUploadcareLink as _0x3008a9,IconOneDrive as _0xbf4b6a}from'ckeditor5/src/icons.js';import{ButtonView as _0x51ea61,MenuBarMenuListItemButtonView as _0x170a53}from'ckeditor5/src/ui.js';function _0x5f1f(){const _0xb96195=['execute','Uploadcare','locale','_normalizeConfigSourceList','24nbvfcu','assetManager','_licenseKeyCheckInterval','UploadcareUI','domainLimit','uploadcareLicenseKeyUsageLimit','isEnabled','destroy','_showLicenseError','OneDrive','uploadcareLicenseKeyExpired','icon','4738870EfGalO','uploadcare','4FphisZ','map','init','uploadcareLicenseKeyEvaluationLimit','uploadcareLicenseKeyValid','823164tZwCOB','config','uploadcareLicenseKeyTrialLimit','url','shortText','Local','withText','afterInit','text','ImageInsertUI','licenseKey','entries','Facebook','URL','Dropbox','usageLimit','958iwajwj','invalid','bind','isOfficialPlugin','1142307mUpitI','label','featureNotAllowed','Replace','Insert','_createButton','GDrive','get','tooltip','uploadcareLicenseKeyInvalid','GPhotos','plugins','343YayRZK','uploadcareLicenseKeyDomainLimit','591850ShgRqc','uploadcareLicenseKeyNotAllowed','editor','commands','has','registerIntegration','upload','_createToolbarButton','_getIntegrationKey','isImageSelected','expired','22UoRDDs','1835886RyWBve','_createMenuBarButtons','pluginName','evaluationLimit','forEach','_createDropdownButtons','isPremiumPlugin','type','trialLimit','uploadcare.uploader.sourceList','push','reduce','3499671HmzQcp'];_0x5f1f=function(){return _0xb96195;};return _0x5f1f();}import{UploadcareSource as _0x3f01cd}from'./uploadcareconfig.js';import{getTranslation as _0x1c352f}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x28f4f1{[_0x53a4d7(0x103)];[_0x53a4d7(0xe8)];static get[_0x53a4d7(0xd7)](){const _0x4aafcb=_0x53a4d7;return _0x4aafcb(0xe9);}static get[_0x53a4d7(0x10c)](){return!0x0;}static get[_0x53a4d7(0xdb)](){return!0x0;}[_0x53a4d7(0xf6)](){const _0x3f8592=_0x53a4d7;this[_0x3f8592(0x103)]=this[_0x3f8592(0xcb)][_0x3f8592(0xfa)][_0x3f8592(0x114)](_0x3f8592(0x103));const _0x435860=this[_0x3f8592(0xcb)];this[_0x3f8592(0xe8)]=setInterval(()=>{const _0x321882=_0x3f8592;let _0x5d8e47;for(const _0xef06a0 in _0x435860){const _0x5d4709=_0xef06a0,_0x410c1e=_0x435860[_0x5d4709];if(_0x321882(0xf8)==_0x410c1e||_0x321882(0x116)==_0x410c1e||_0x321882(0xf0)==_0x410c1e||_0x321882(0xc8)==_0x410c1e||_0x321882(0xca)==_0x410c1e||_0x321882(0xf7)==_0x410c1e||_0x321882(0xfb)==_0x410c1e||_0x321882(0xeb)==_0x410c1e){delete _0x435860[_0x5d4709],_0x5d8e47=_0x410c1e,clearInterval(this[_0x321882(0xe8)]),this[_0x321882(0xe8)]=void 0x0;break;}}_0x321882(0x116)==_0x5d8e47&&_0x435860[_0x321882(0xee)](_0x321882(0x10a)),_0x321882(0xf0)==_0x5d8e47&&_0x435860[_0x321882(0xee)](_0x321882(0xd3)),_0x321882(0xc8)==_0x5d8e47&&_0x435860[_0x321882(0xee)](_0x321882(0xea)),_0x321882(0xca)==_0x5d8e47&&_0x435860[_0x321882(0xee)](_0x321882(0x10f),_0x321882(0xe3)),_0x321882(0xf7)==_0x5d8e47&&_0x435860[_0x321882(0xee)](_0x321882(0xd8)),_0x321882(0xfb)==_0x5d8e47&&_0x435860[_0x321882(0xee)](_0x321882(0xdd)),_0x321882(0xeb)==_0x5d8e47&&_0x435860[_0x321882(0xee)](_0x321882(0x108));},0x3e8);}[_0x53a4d7(0x100)](){const _0x5a0a30=_0x53a4d7,{editor:_0xeaeeb6}=this,_0x4b6d72=_0xeaeeb6[_0x5a0a30(0xcc)][_0x5a0a30(0x114)](_0x5a0a30(0xf3));if(!_0x4b6d72)return;const _0x18042d=this[_0x5a0a30(0xe5)](_0xeaeeb6[_0x5a0a30(0xfa)][_0x5a0a30(0x114)](_0x5a0a30(0xde)))[_0x5a0a30(0xe0)]((_0x4a7066,_0x12d1e5)=>{const _0x151e3d=_0x5a0a30,_0x7d991f=this[_0x151e3d(0xd1)](_0x12d1e5[_0x151e3d(0xdc)]);return _0x4a7066[_0x7d991f]||(_0x4a7066[_0x7d991f]=[]),_0x4a7066[_0x7d991f][_0x151e3d(0xdf)](_0x12d1e5),_0x4a7066;},{});_0xeaeeb6[_0x5a0a30(0xc6)][_0x5a0a30(0xcd)](_0x5a0a30(0x102))&&_0xeaeeb6[_0x5a0a30(0xcc)][_0x5a0a30(0x114)](_0x5a0a30(0xf3))&&Object[_0x5a0a30(0x104)](_0x18042d)[_0x5a0a30(0xd9)](([_0x1f0421,_0x4ef572])=>{const _0x878bce=_0x5a0a30;_0xeaeeb6[_0x878bce(0xc6)][_0x878bce(0x114)](_0x878bce(0x102))[_0x878bce(0xce)]({'name':_0x1f0421,'observable':()=>_0x4b6d72,'buttonViewCreator':()=>this[_0x878bce(0xd0)](_0x4ef572),'formViewCreator':()=>this[_0x878bce(0xda)](_0x4ef572),'menuBarButtonViewCreator':()=>this[_0x878bce(0xd6)](_0x4ef572),'override':_0x878bce(0xe7)!==_0x1f0421});});}[_0x53a4d7(0xed)](){const _0x453a6d=_0x53a4d7;super[_0x453a6d(0xed)](),this[_0x453a6d(0xe8)]&&clearInterval(this[_0x453a6d(0xe8)]);}[_0x53a4d7(0xe5)](_0x282439){const _0x379610=_0x53a4d7,{locale:_0x30ebb1}=this[_0x379610(0xcb)];return _0x282439[_0x379610(0xf5)](_0x13750b=>{const _0x3b90a5=_0x379610,_0x47affa=_0x1c352f(_0x30ebb1,_0x13750b,_0x3b90a5(0x111));switch(_0x13750b){case _0x3f01cd[_0x3b90a5(0xfe)]:return{'icon':_0x3d91c4,'type':_0x3f01cd[_0x3b90a5(0xfe)],..._0x47affa};case _0x3f01cd[_0x3b90a5(0x106)]:return{'icon':_0x3008a9,'type':_0x3f01cd[_0x3b90a5(0x106)],..._0x47affa};case _0x3f01cd[_0x3b90a5(0x107)]:return{'icon':_0x22f9fc,'type':_0x3f01cd[_0x3b90a5(0x107)],..._0x47affa};case _0x3f01cd[_0x3b90a5(0x105)]:return{'icon':_0x19ddcf,'type':_0x3f01cd[_0x3b90a5(0x105)],..._0x47affa};case _0x3f01cd[_0x3b90a5(0x113)]:return{'icon':_0x3cd339,'type':_0x3f01cd[_0x3b90a5(0x113)],..._0x47affa};case _0x3f01cd[_0x3b90a5(0x117)]:return{'icon':_0x514283,'type':_0x3f01cd[_0x3b90a5(0x117)],..._0x47affa};case _0x3f01cd[_0x3b90a5(0xef)]:return{'icon':_0xbf4b6a,'type':_0x3f01cd[_0x3b90a5(0xef)],..._0x47affa};}});}[_0x53a4d7(0xd1)](_0x164896){const _0x2fedba=_0x53a4d7;switch(_0x164896){case _0x3f01cd[_0x2fedba(0xfe)]:return _0x2fedba(0xcf);case _0x3f01cd[_0x2fedba(0x106)]:return _0x2fedba(0xfc);default:return _0x2fedba(0xe7);}}[_0x53a4d7(0x112)](_0x587d73,_0x48e5f0){const _0x28b86f=_0x53a4d7,_0x6f4245=this[_0x28b86f(0xcb)],_0x12711a=new _0x587d73(_0x6f4245[_0x28b86f(0xe4)]),_0x33b1dd=_0x6f4245[_0x28b86f(0xcc)][_0x28b86f(0x114)](_0x28b86f(0xf3));return _0x12711a[_0x28b86f(0x10b)](_0x28b86f(0xec))['to'](_0x33b1dd),_0x12711a['on'](_0x28b86f(0xe2),()=>{const _0x4f3a51=_0x28b86f;_0x33b1dd[_0x4f3a51(0xe2)](_0x48e5f0);}),_0x12711a;}[_0x53a4d7(0xd0)](_0x5e301d){const _0x496032=_0x53a4d7,{locale:_0x3ce8cd}=this[_0x496032(0xcb)],_0x218ccf=this[_0x496032(0xcb)][_0x496032(0xc6)][_0x496032(0x114)](_0x496032(0x102)),_0x462c4b=_0x5e301d[0x0],_0x4be351=this[_0x496032(0x112)](_0x51ea61,_0x462c4b[_0x496032(0xdc)]);return _0x4be351[_0x496032(0xf1)]=_0x462c4b[_0x496032(0xf1)],_0x4be351[_0x496032(0x10b)](_0x496032(0x10e))['to'](_0x218ccf,_0x496032(0xd2),_0x2edea0=>_0x1c352f(_0x3ce8cd,_0x462c4b[_0x496032(0xdc)],_0x2edea0?_0x496032(0x110):_0x496032(0x111))[_0x496032(0x101)]),_0x4be351[_0x496032(0x115)]=!0x0,_0x4be351;}[_0x53a4d7(0xda)](_0x591ccb){const _0x4eb455=_0x53a4d7,{locale:_0x28a342}=this[_0x4eb455(0xcb)],_0x322932=this[_0x4eb455(0xcb)][_0x4eb455(0xc6)][_0x4eb455(0x114)](_0x4eb455(0x102));return _0x591ccb[_0x4eb455(0xf5)](_0xcc9eb2=>{const _0x5a83bd=_0x4eb455,_0x1eb583=this[_0x5a83bd(0x112)](_0x51ea61,_0xcc9eb2[_0x5a83bd(0xdc)]);return _0x1eb583[_0x5a83bd(0xff)]=!0x0,_0x1eb583[_0x5a83bd(0xf1)]=_0xcc9eb2[_0x5a83bd(0xf1)],_0x1eb583[_0x5a83bd(0x10b)](_0x5a83bd(0x10e))['to'](_0x322932,_0x5a83bd(0xd2),_0x15dbf2=>_0x1c352f(_0x28a342,_0xcc9eb2[_0x5a83bd(0xdc)],_0x15dbf2?_0x5a83bd(0x110):_0x5a83bd(0x111))[_0x5a83bd(0x101)]),_0x1eb583;});}[_0x53a4d7(0xd6)](_0xffc5aa){const _0x14f34b=_0x53a4d7;return _0xffc5aa[_0x14f34b(0xf5)](_0x392f5a=>{const _0x8b3185=_0x14f34b,_0x48458c=this[_0x8b3185(0x112)](_0x170a53,_0x392f5a[_0x8b3185(0xdc)]);return _0x48458c[_0x8b3185(0xf1)]=_0x392f5a[_0x8b3185(0xf1)],_0x48458c[_0x8b3185(0x10e)]=_0x392f5a[_0x8b3185(0xfd)],_0x48458c;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x36a647}from'ckeditor5/src/core.js';import{FileRepository as _0x11ffa5}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x1c90b0}from'./uploadcareediting.js';import{UploadUtils as _0x4d52c6}from'./utils/uploadutils.js';import{getImageUrls as _0x53f157}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x36a647{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x11ffa5,_0x1c90b0];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x69051a=this['editor'];if(!!!_0x69051a['config']['get']('uploadcare'))return;_0x69051a['plugins']['get'](_0x11ffa5)['createUploadAdapter']=_0x34bdc4=>new A(_0x34bdc4,_0x69051a),_0x69051a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x99e734,{imageElement:_0x2a2c2b,data:_0x5401bb})=>{_0x69051a['model']['change'](_0x1eff87=>{_0x1eff87['setAttribute']('uploadcareImageId',_0x5401bb['uploadcareImageId'],_0x2a2c2b);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x577c19,_0x48e7a){this['loader']=_0x577c19,this['editor']=_0x48e7a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x525567=this['editor']['config']['get']('uploadcare.pubkey'),_0x52652c=await this['loader']['file'];return _0x4d52c6['upload']({'file':_0x52652c,'publicKey':_0x525567,'signal':this['controller']['signal'],'onProgress':_0x9529ad=>{_0x9529ad&&_0x9529ad['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x9529ad['value']);}})['then'](async _0x29995a=>{const {imageFallbackUrl:_0x1817c8,imageSources:_0x38945b}=_0x53f157(_0x29995a['cdnUrl'],_0x29995a['imageInfo']['width']);return{'uploadcareImageId':_0x29995a['uuid'],'default':_0x1817c8,'sources':_0x38945b};})['catch'](()=>{const _0x28b910=t('Cannot\x20upload\x20file:')+('\x20'+_0x52652c['name']+'.');return Promise['reject'](_0x28b910);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x17b07f}from'../uploadcareconfig.js';export function getTranslation(_0x33e386,_0x3a02ac,_0x5679ed){const t=_0x33e386['t'],_0x4d45a8=_0x33e386['t'];switch(_0x3a02ac){case _0x17b07f['Local']:return{'text':_0x4d45a8('Insert'===_0x5679ed?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d45a8('From\x20computer')};case _0x17b07f['URL']:return{'text':'Insert'===_0x5679ed?_0x4d45a8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d45a8('Via\x20URL')};case _0x17b07f['Dropbox']:return{'text':t('Insert'===_0x5679ed?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x17b07f['Facebook']:return{'text':t('Insert'===_0x5679ed?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x17b07f['GDrive']:return{'text':t('Insert'===_0x5679ed?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x17b07f['GPhotos']:return{'text':t('Insert'===_0x5679ed?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x17b07f['OneDrive']:return{'text':t('Insert'===_0x5679ed?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3a02ac;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x56665e=_0x3541;(function(_0x18cbda,_0x58a08e){var _0xf11a4d=_0x3541,_0x32b7d6=_0x18cbda();while(!![]){try{var _0x416f53=parseInt(_0xf11a4d(0x200))/0x1*(-parseInt(_0xf11a4d(0x1f7))/0x2)+-parseInt(_0xf11a4d(0x202))/0x3*(-parseInt(_0xf11a4d(0x206))/0x4)+parseInt(_0xf11a4d(0x204))/0x5*(parseInt(_0xf11a4d(0x1fa))/0x6)+-parseInt(_0xf11a4d(0x1fb))/0x7+-parseInt(_0xf11a4d(0x1f3))/0x8*(-parseInt(_0xf11a4d(0x201))/0x9)+parseInt(_0xf11a4d(0x1fc))/0xa*(parseInt(_0xf11a4d(0x1f8))/0xb)+-parseInt(_0xf11a4d(0x1f5))/0xc;if(_0x416f53===_0x58a08e)break;else _0x32b7d6['push'](_0x32b7d6['shift']());}catch(_0x46389e){_0x32b7d6['push'](_0x32b7d6['shift']());}}}(_0x13b0,0x2c468));import{FocusTracker as _0x4d5dc1}from'ckeditor5/src/utils.js';import{View as _0x4454dc,FocusCycler as _0x115996}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4454dc{[_0x56665e(0x205)];[_0x56665e(0x1f2)];constructor(_0x42454d){var _0xc396d1=_0x56665e;super(_0x42454d),this[_0xc396d1(0x205)]=new _0x4d5dc1(),this[_0xc396d1(0x1f2)]=new _0x115996({'focusables':this[_0xc396d1(0x1fe)](),'focusTracker':this[_0xc396d1(0x205)]});}[_0x56665e(0x203)](){var _0x60e1e3=_0x56665e;return{'tag':_0x60e1e3(0x1f9),'attributes':{'aria-hidden':_0x60e1e3(0x1f4),'tabindex':'0'},'on':{'focus':this[_0x60e1e3(0x1ff)]['to'](()=>{var _0xdec2b7=_0x60e1e3;this[_0xdec2b7(0x1f2)][_0xdec2b7(0x1fd)](_0xdec2b7(0x1f6));})}};}}function _0x3541(_0xd4e27b,_0x3e0b0d){var _0x13b088=_0x13b0();return _0x3541=function(_0x354114,_0x3c5a67){_0x354114=_0x354114-0x1f2;var _0x64b54f=_0x13b088[_0x354114];return _0x64b54f;},_0x3541(_0xd4e27b,_0x3e0b0d);}function _0x13b0(){var _0x5cbde0=['focusCycler','357176mlpJoQ','true','1154352RhTgAA','forwardCycle','140ydDdBF','341JuPynk','div','456cVESar','1884848QPTqvU','64590CLZqOp','fire','createCollection','bindTemplate','2560DADxrk','9avbqLj','2382yqiMFO','getFocusableElement','12535bAOBMn','focusTracker','1464FRuYfT'];_0x13b0=function(){return _0x5cbde0;};return _0x13b0();}
|