@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251218.0 → 0.0.0-nightly-20251220.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index-editor.css +38 -74
- package/dist/index.css +40 -78
- 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/theme/uploadcare-form.css +4 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27e5d0=_0x3ebb;(function(_0x1f0c35,_0x3a09d9){const _0x2b45b6=_0x3ebb,_0x1662b0=_0x1f0c35();while(!![]){try{const _0xea084e=-parseInt(_0x2b45b6(0x17e))/0x1*(parseInt(_0x2b45b6(0x152))/0x2)+parseInt(_0x2b45b6(0x178))/0x3+parseInt(_0x2b45b6(0x167))/0x4*(parseInt(_0x2b45b6(0x16e))/0x5)+-parseInt(_0x2b45b6(0x165))/0x6+parseInt(_0x2b45b6(0x17f))/0x7+-parseInt(_0x2b45b6(0x146))/0x8+parseInt(_0x2b45b6(0x177))/0x9*(parseInt(_0x2b45b6(0x13c))/0xa);if(_0xea084e===_0x3a09d9)break;else _0x1662b0['push'](_0x1662b0['shift']());}catch(_0x59f248){_0x1662b0['push'](_0x1662b0['shift']());}}}(_0x984d,0x75b45));function _0x3ebb(_0x52904a,_0x3fc17a){const _0x984d66=_0x984d();return _0x3ebb=function(_0x3ebb1e,_0x335436){_0x3ebb1e=_0x3ebb1e-0x12b;let _0x29a13c=_0x984d66[_0x3ebb1e];return _0x29a13c;},_0x3ebb(_0x52904a,_0x3fc17a);}function _0x984d(){const _0x20a403=['querySelector','_initSchema','selection','locale','closeMax','63LkmQpk','2888187DypGJN','editing','map','input[uploadcare-file-input]','_ctxElement','attributeToAttribute','27109eMjWMz','2839011JUTbAt','uc-upload-ctx-provider','config','document','replaceImageSource','downcast','view','get','getSelectedElement','extend','cleanupImage','insertImage','execute','contentLanguage','uploadcareImageId','schema','uploadcare.uploader','once','272020noYLXz','ucContextId','\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','data-uc-image-id','true','appendChild','pluginName','isRegistered','_initCtx','render','2778032VNGWoA','listenTo','imageInline','upcast','uploader-','iconHrefResolver','afterInit','href','add','join','init','for','22hKokSG','UploadcareEditing','uc-config','uploadcareImageReplace','configElement','_initImageProcessingIndicator','isPremiumPlugin','uploadcare.pubkey','getAttribute','destroy','_initConfig','conversion','editor','isOfficialPlugin','remove','ctxElement','PictureEditing','requires','#uc-icon-arrow-down','3499344PwovGV','elementToAttribute','608312iuGhrm','commands','removeAttribute','uploadcare','_initConversion','imageBlock','model','5pStrXq','_configElement','fromCharCode','body'];_0x984d=function(){return _0x20a403;};return _0x984d();}import{Plugin as _0x1cb952}from'ckeditor5/src/core.js';import{Dialog as _0x36b115}from'ckeditor5/src/ui.js';import{createElement as _0x28da82,global as _0x52d970,uid as _0x1bcbfc}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x120954}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x570f57}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x34ae35}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1cb952{[_0x27e5d0(0x16f)]=null;[_0x27e5d0(0x17c)]=null;static get[_0x27e5d0(0x142)](){const _0x327974=_0x27e5d0;return _0x327974(0x153);}static get[_0x27e5d0(0x163)](){const _0x524305=_0x27e5d0;return[_0x524305(0x162),_0x570f57,_0x36b115];}static get[_0x27e5d0(0x15f)](){return!0x0;}static get[_0x27e5d0(0x158)](){return!0x0;}[_0x27e5d0(0x13d)];get[_0x27e5d0(0x156)](){const _0x59eb9f=_0x27e5d0;return this[_0x59eb9f(0x16f)];}get[_0x27e5d0(0x161)](){const _0x544889=_0x27e5d0;return this[_0x544889(0x17c)];}constructor(_0x2a6d67){const _0x2bf196=_0x27e5d0;super(_0x2a6d67),this[_0x2bf196(0x13d)]=_0x1bcbfc();}[_0x27e5d0(0x150)](){const _0x286105=_0x27e5d0,_0x43f826=this[_0x286105(0x15e)];_0x43f826[_0x286105(0x168)][_0x286105(0x14e)](_0x286105(0x16a),new _0x120954(_0x43f826));}[_0x27e5d0(0x14c)](){const _0x330d67=_0x27e5d0;this[_0x330d67(0x173)](),this[_0x330d67(0x16b)](),this[_0x330d67(0x15c)](),this[_0x330d67(0x144)](),this[_0x330d67(0x157)](),this[_0x330d67(0x147)](this[_0x330d67(0x15e)],_0x330d67(0x15b),()=>{const _0x3d7427=_0x330d67;this[_0x3d7427(0x16f)]&&(this[_0x3d7427(0x16f)][_0x3d7427(0x160)](),this[_0x3d7427(0x16f)]=null),this[_0x3d7427(0x17c)]&&(this[_0x3d7427(0x17c)][_0x3d7427(0x160)](),this[_0x3d7427(0x17c)]=null);const _0x42e88e=_0x52d970[_0x3d7427(0x12d)][_0x3d7427(0x172)](_0x3d7427(0x17b));_0x42e88e&&_0x42e88e[_0x3d7427(0x160)]();}),async function(_0x3182d){const _0x5713d6=_0x96e981([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x30bebb=0x535f8c3a,_0xe08bfd=0x5358f07a^_0x30bebb,_0x5083b3=window[_0x96e981([0x44,0x61,0x74,0x65])][_0x96e981([0x6e,0x6f,0x77])](),_0x5980ec=_0x3182d[_0x96e981([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f703f=new window[(_0x96e981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c049=>{_0x5980ec[_0x96e981([0x6f,0x6e,0x63,0x65])](_0x96e981([0x72,0x65,0x61,0x64,0x79]),_0x47c049);}),_0x49e014={[_0x96e981([0x6b,0x74,0x79])]:_0x96e981([0x45,0x43]),[_0x96e981([0x75,0x73,0x65])]:_0x96e981([0x73,0x69,0x67]),[_0x96e981([0x63,0x72,0x76])]:_0x96e981([0x50,0x2d,0x32,0x35,0x36]),[_0x96e981([0x78])]:_0x96e981([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]),[_0x96e981([0x79])]:_0x96e981([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]),[_0x96e981([0x61,0x6c,0x67])]:_0x96e981([0x45,0x53,0x32,0x35,0x36])},_0x546ece=_0x5980ec[_0x96e981([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x96e981([0x67,0x65,0x74])](_0x96e981([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa3c88a(){let _0x2b631f,_0x435d0d=null,_0xb0444d=null;try{if(_0x546ece==_0x96e981([0x47,0x50,0x4c]))return _0x96e981([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b631f=_0x51468d(),!_0x2b631f)return _0x96e981([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b631f[_0x96e981([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb0444d=_0x7a70f6(_0x2b631f[_0x96e981([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b631f[_0x96e981([0x6a,0x74,0x69])])),await _0x3591e9()?_0x2d3fbe()?_0x2487fc()?_0x96e981([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e0187()?(_0x2b631f[_0x96e981([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x96e981([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x435d0d=_0xa10fe2(_0x96e981([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b631f[_0x96e981([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x96e981([0x74,0x72,0x69,0x61,0x6c])&&(_0x435d0d=_0xa10fe2(_0x96e981([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5287cc()):_0x96e981([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x96e981([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x96e981([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x96e981([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2487fc(){const _0x6b8ebe=[_0x96e981([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x96e981([0x74,0x72,0x69,0x61,0x6c])][_0x96e981([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b631f[_0x96e981([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5083b3/0x3e8:0xe10*_0xe08bfd;return _0x2b631f[_0x96e981([0x65,0x78,0x70])]<_0x6b8ebe;}function _0x2d3fbe(){const _0x4a4e91=_0x2b631f[_0x96e981([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4a4e91&&(!!_0x4a4e91[_0x96e981([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96e981([0x2a]))||!!_0x4a4e91[_0x96e981([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96e981([0x55,0x50,0x4c,0x43])));}function _0x5e0187(){const _0xa4f94=_0x3ebb,_0x584c98=_0x2b631f[_0x96e981([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x584c98||0x0==_0x584c98[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x334908}=new URL(window[_0x96e981([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xa4f94(0x14d)]);if(_0x584c98[_0x96e981([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x334908))return!0x0;const _0x20b161=_0x334908[_0x96e981([0x73,0x70,0x6c,0x69,0x74])](_0x96e981([0x2e]));return _0x584c98[_0x96e981([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55db7c=>_0x55db7c[_0x96e981([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96e981([0x2a])))[_0x96e981([0x6d,0x61,0x70])](_0x209956=>_0x209956[_0x96e981([0x73,0x70,0x6c,0x69,0x74])](_0x96e981([0x2e])))[_0x96e981([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1862ed=>_0x1862ed[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x20b161[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x96e981([0x6d,0x61,0x70])](_0x2d87d2=>Array(_0x20b161[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d87d2[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x96e981([0x66,0x69,0x6c,0x6c])](_0x2d87d2[0x0]===_0x96e981([0x2a])?_0x96e981([0x2a]):'')[_0x96e981([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d87d2))[_0x96e981([0x73,0x6f,0x6d,0x65])](_0x21bf2f=>_0x20b161[_0x96e981([0x65,0x76,0x65,0x72,0x79])]((_0xddade1,_0x2e0caf)=>_0x21bf2f[_0x2e0caf]===_0xddade1||_0x21bf2f[_0x2e0caf]===_0x96e981([0x2a])));}function _0x5287cc(){return _0x435d0d&&_0xb0444d?new window[(_0x96e981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7227c2,_0x266fe1)=>{_0x435d0d[_0x96e981([0x74,0x68,0x65,0x6e])](_0x7227c2,_0x266fe1),_0xb0444d[_0x96e981([0x74,0x68,0x65,0x6e])](_0x27ab45=>{_0x27ab45!=_0x96e981([0x56,0x61,0x6c,0x69,0x64])&&_0x7227c2(_0x27ab45);},_0x266fe1);}):_0x435d0d||_0xb0444d||_0x96e981([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7a70f6(_0x4642b3,_0x262af3){return new window[(_0x96e981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54118d=>{if(_0x44ba1a())return _0x54118d(_0x96e981([0x56,0x61,0x6c,0x69,0x64]));_0x611490(),_0x5980ec[_0x96e981([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x96e981([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d89b8=!0x1;const _0x5246de=_0x1bcbfc();function _0x55a32f(_0xd29766){return!!_0xd29766&&(typeof _0xd29766===_0x96e981([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd29766===_0x96e981([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd29766[_0x96e981([0x74,0x68,0x65,0x6e])]===_0x96e981([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd29766[_0x96e981([0x63,0x61,0x74,0x63,0x68])]===_0x96e981([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37b371(_0x507c2e){_0x3bb76f(_0x507c2e)[_0x96e981([0x74,0x68,0x65,0x6e])](_0x1de39f=>{if(!_0x1de39f||_0x1de39f[_0x96e981([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x96e981([0x6f,0x6b]))return _0x96e981([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5940d2(_0x1e1ac7(_0x5246de+_0x262af3))!=_0x1de39f[_0x96e981([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x96e981([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x96e981([0x56,0x61,0x6c,0x69,0x64]);})[_0x96e981([0x74,0x68,0x65,0x6e])](_0x344fca=>(_0x24b95a(),_0x344fca),()=>{const _0x5dd35c=_0x302d3e();return null==_0x5dd35c?(_0x24b95a(),_0x96e981([0x56,0x61,0x6c,0x69,0x64])):_0x96e981(_0x5083b3-_0x5dd35c>(0x7753083a^_0x30bebb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x96e981([0x74,0x68,0x65,0x6e])](_0x54118d)[_0x96e981([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54118d(_0x96e981([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5496a9=0x536962ba^_0x30bebb;function _0x24b95a(){const _0x98262b=_0x96e981([0x6c,0x6c,0x63,0x74,0x2d])+_0x5940d2(_0x1e1ac7(_0x4642b3)),_0x27341f=_0x433580(_0x5940d2(window[_0x96e981([0x4d,0x61,0x74,0x68])][_0x96e981([0x63,0x65,0x69,0x6c])](_0x5083b3/_0x5496a9)));window[_0x96e981([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x96e981([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x98262b,_0x27341f);}function _0x302d3e(){const _0x566409=_0x96e981([0x6c,0x6c,0x63,0x74,0x2d])+_0x5940d2(_0x1e1ac7(_0x4642b3)),_0x3bb189=window[_0x96e981([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x96e981([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x566409);return _0x3bb189?window[_0x96e981([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x433580(_0x3bb189),0x10)*_0x5496a9:null;}function _0x3bb76f(_0x371970){return new window[(_0x96e981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c3eb2,_0x35b2a4)=>{_0x371970[_0x96e981([0x74,0x68,0x65,0x6e])](_0x4c3eb2,_0x35b2a4),window[_0x96e981([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35b2a4,0x535e58fa^_0x30bebb);});}}_0x5980ec[_0x96e981([0x6f,0x6e])](_0x96e981([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5ca0a2,_0x3770ce)=>{if(_0x3770ce[0x0]!=_0x4642b3)return _0x54118d(_0x96e981([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3770ce[0x1]={..._0x3770ce[0x1],[_0x96e981([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5246de};},{[_0x96e981([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x96e981([0x68,0x69,0x67,0x68])}),_0x5980ec[_0x96e981([0x6f,0x6e])](_0x96e981([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a41be=>{_0x55a32f(_0x3a41be[_0x96e981([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d89b8=!0x0,_0x37b371(_0x3a41be[_0x96e981([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x96e981([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x96e981([0x6c,0x6f,0x77])}),_0x3f703f[_0x96e981([0x74,0x68,0x65,0x6e])](()=>{_0x4d89b8||_0x54118d(_0x96e981([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44ba1a(){return _0x5980ec[_0x96e981([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x96e981([0x76,0x69,0x65,0x77])][_0x96e981([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x96e981([0x61,0x75,0x74,0x6f]);}function _0x611490(){_0x5980ec[_0x96e981([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x96e981([0x76,0x69,0x65,0x77])][_0x96e981([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x96e981([0x61,0x75,0x74,0x6f]);}}function _0xa10fe2(_0x1099b3){const _0x32e58e=[new window[(_0x96e981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb5ad15=>setTimeout(_0xb5ad15,0x5356b2f6^_0x30bebb)),_0x3f703f[_0x96e981([0x74,0x68,0x65,0x6e])](()=>new window[(_0x96e981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16d564=>{let _0x140b93=0x0;_0x5980ec[_0x96e981([0x6d,0x6f,0x64,0x65,0x6c])][_0x96e981([0x6f,0x6e])](_0x96e981([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ae4a1,_0x44fcc3)=>{_0x44fcc3[0x0][_0x96e981([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x140b93++,_0x140b93==(0x535f8dc2^_0x30bebb)&&(_0x16d564(),_0x1ae4a1[_0x96e981([0x6f,0x66,0x66])]());});}))];return window[_0x96e981([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x96e981([0x72,0x61,0x63,0x65])](_0x32e58e)[_0x96e981([0x74,0x68,0x65,0x6e])](()=>_0x1099b3);}async function _0xb81c98(){await _0x3f703f,_0x5980ec[_0x96e981([0x6d,0x6f,0x64,0x65,0x6c])][_0x96e981([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ff31f,_0x5980ec[_0x96e981([0x6d,0x6f,0x64,0x65,0x6c])][_0x96e981([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ff31f,_0x5980ec[_0x96e981([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x96e981([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3defe0(_0x51fc6e){const _0x580ba8=_0x16a47a();_0x5980ec[_0x580ba8]=_0x96e981([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51fc6e,_0x51fc6e!=_0x96e981([0x56,0x61,0x6c,0x69,0x64])&&_0xb81c98();}function _0x16a47a(){const _0x1b7a95=window[_0x96e981([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x96e981([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x96e981([0x6e,0x6f,0x77])]())[_0x96e981([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x96e981([0x2e]),'');let _0x224e38=_0x96e981([0x68]);for(let _0x319bde=0x0;_0x319bde<_0x1b7a95[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x319bde+=0x2){let _0x32cd42=window[_0x96e981([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b7a95[_0x96e981([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x319bde,_0x319bde+0x2));_0x32cd42>=_0x5713d6[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32cd42-=_0x5713d6[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x224e38+=_0x5713d6[_0x32cd42];}return _0x224e38;}function _0x51468d(){const _0x124016=_0x546ece[_0x96e981([0x73,0x70,0x6c,0x69,0x74])](_0x96e981([0x2e]));if(0x3!=_0x124016[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32b667(_0x124016[0x1]);function _0x32b667(_0xda3f96){const _0x1f9d6b=_0x4d9ffa(_0xda3f96);return _0x1f9d6b&&_0x32105b()?_0x1f9d6b:null;function _0x32105b(){const _0x3fe2e9=_0x1f9d6b[_0x96e981([0x6a,0x74,0x69])],_0x37ae12=window[_0x96e981([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fe2e9[_0x96e981([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fe2e9[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22c34b={..._0x1f9d6b,[_0x96e981([0x6a,0x74,0x69])]:_0x3fe2e9[_0x96e981([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3fe2e9[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22c34b[_0x96e981([0x76,0x63])],_0x1e1ac7(_0x22c34b)==_0x37ae12;}}}async function _0x3591e9(){let _0x26de79=!0x0;try{const _0x336442=_0x546ece[_0x96e981([0x73,0x70,0x6c,0x69,0x74])](_0x96e981([0x2e])),[_0x20a4cb,_0x2dd1ef,_0x2f323c]=_0x336442;return _0x58d8e0(_0x20a4cb),await _0x3d49d6(_0x20a4cb,_0x2dd1ef,_0x2f323c),_0x26de79;}catch{return!0x1;}function _0x58d8e0(_0x1e9369){const _0x164654=_0x4d9ffa(_0x1e9369);_0x164654&&_0x164654[_0x96e981([0x61,0x6c,0x67])]==_0x96e981([0x45,0x53,0x32,0x35,0x36])||(_0x26de79=!0x1);}async function _0x3d49d6(_0x435aec,_0x398bdd,_0x257d9a){const _0x18ec97=window[_0x96e981([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x96e981([0x66,0x72,0x6f,0x6d])](_0xdce377(_0x257d9a),_0x296ef8=>_0x296ef8[_0x96e981([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x194ef2=new window[(_0x96e981([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x96e981([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x435aec+_0x96e981([0x2e])+_0x398bdd),_0x48ee8f=window[_0x96e981([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x96e981([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48ee8f)return;const _0x2f21c8=await _0x48ee8f[_0x96e981([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x96e981([0x6a,0x77,0x6b]),_0x49e014,{[_0x96e981([0x6e,0x61,0x6d,0x65])]:_0x96e981([0x45,0x43,0x44,0x53,0x41]),[_0x96e981([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x96e981([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x96e981([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48ee8f[_0x96e981([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x96e981([0x6e,0x61,0x6d,0x65])]:_0x96e981([0x45,0x43,0x44,0x53,0x41]),[_0x96e981([0x68,0x61,0x73,0x68])]:{[_0x96e981([0x6e,0x61,0x6d,0x65])]:_0x96e981([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f21c8,_0x18ec97,_0x194ef2)||(_0x26de79=!0x1);}}function _0x4d9ffa(_0x184b53){return _0x184b53[_0x96e981([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x96e981([0x65,0x79]))?JSON[_0x96e981([0x70,0x61,0x72,0x73,0x65])](_0xdce377(_0x184b53)):null;}function _0xdce377(_0x3ede6e){return window[_0x96e981([0x61,0x74,0x6f,0x62])](_0x3ede6e[_0x96e981([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x96e981([0x2b]))[_0x96e981([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x96e981([0x2f])));}function _0x1e1ac7(_0xc0f7fd){let _0x289705=0x1505;function _0x29d7f6(_0x3a5bc6){for(let _0x517f95=0x0;_0x517f95<_0x3a5bc6[_0x96e981([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x517f95++){const _0x167c2e=_0x3a5bc6[_0x96e981([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x517f95);_0x289705=(_0x289705<<0x5)+_0x289705+_0x167c2e,_0x289705&=_0x289705;}}function _0x56da2b(_0x20604b){Array[_0x96e981([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x20604b)?_0x20604b[_0x96e981([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56da2b):_0x20604b&&typeof _0x20604b==_0x96e981([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x96e981([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x20604b)[_0x96e981([0x73,0x6f,0x72,0x74])]()[_0x96e981([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4f9e,_0x3294e7])=>{_0x29d7f6(_0x4f9e),_0x56da2b(_0x3294e7);}):_0x29d7f6(window[_0x96e981([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x20604b));}return _0x56da2b(_0xc0f7fd),_0x289705>>>0x0;}function _0x5940d2(_0x392b64){return _0x392b64[_0x96e981([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x96e981([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x96e981([0x30]));}function _0x433580(_0x48b806){return _0x48b806[_0x96e981([0x73,0x70,0x6c,0x69,0x74])]('')[_0x96e981([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x96e981([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ff31f(){}function _0x96e981(_0x4d5ad6){const _0x43dcb1=_0x3ebb;return _0x4d5ad6[_0x43dcb1(0x17a)](_0x2adc92=>String[_0x43dcb1(0x170)](_0x2adc92))[_0x43dcb1(0x14f)]('');}_0x3defe0(await _0xa3c88a());}(this);}[_0x27e5d0(0x173)](){const _0x1656ab=_0x27e5d0,_0x29c687=this[_0x1656ab(0x15e)][_0x1656ab(0x16d)][_0x1656ab(0x139)];_0x29c687[_0x1656ab(0x143)](_0x1656ab(0x16c))&&_0x29c687[_0x1656ab(0x133)](_0x1656ab(0x16c),{'allowAttributes':[_0x1656ab(0x138)]}),_0x29c687[_0x1656ab(0x143)](_0x1656ab(0x148))&&_0x29c687[_0x1656ab(0x133)](_0x1656ab(0x148),{'allowAttributes':[_0x1656ab(0x138)]});}[_0x27e5d0(0x16b)](){const _0x3bd307=_0x27e5d0,_0x146b2b=this[_0x3bd307(0x15e)];_0x146b2b[_0x3bd307(0x15d)][_0x3bd307(0x151)](_0x3bd307(0x12f))[_0x3bd307(0x17d)]({'model':_0x3bd307(0x138),'view':_0x3bd307(0x13f)}),_0x146b2b[_0x3bd307(0x15d)][_0x3bd307(0x151)](_0x3bd307(0x149))[_0x3bd307(0x166)]({'model':{'key':_0x3bd307(0x138),'value':_0xe596f0=>_0xe596f0[_0x3bd307(0x15a)](_0x3bd307(0x13f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x485c9d=_0x146b2b[_0x3bd307(0x168)][_0x3bd307(0x131)](_0x3bd307(0x12e));_0x485c9d&&this[_0x3bd307(0x147)](_0x485c9d,_0x3bd307(0x134),(_0x355dc6,[_0x3649a9,_0x2338a3])=>{const _0x2fd2a8=_0x3bd307;_0x3649a9[_0x2fd2a8(0x169)](_0x2fd2a8(0x138),_0x2338a3);});}[_0x27e5d0(0x15c)](){const _0x8ba41e=_0x27e5d0,_0x399ace=this[_0x8ba41e(0x15e)][_0x8ba41e(0x12c)][_0x8ba41e(0x131)](_0x8ba41e(0x13a))||{},_0x58e21c=this[_0x8ba41e(0x15e)][_0x8ba41e(0x12c)][_0x8ba41e(0x131)](_0x8ba41e(0x159))||'';this[_0x8ba41e(0x16f)]=_0x28da82(_0x52d970[_0x8ba41e(0x12d)],_0x8ba41e(0x154),{..._0x399ace,'pubkey':_0x58e21c,'ctx-name':_0x8ba41e(0x14a)+this[_0x8ba41e(0x13d)],'sourceList':'','imgOnly':_0x8ba41e(0x140),'removeCopyright':_0x8ba41e(0x140),'localeName':this[_0x8ba41e(0x15e)][_0x8ba41e(0x175)][_0x8ba41e(0x137)],'externalSourcesEmbedCss':_0x8ba41e(0x13e)}),this[_0x8ba41e(0x16f)][_0x8ba41e(0x14b)]=_0x1a48db=>{const _0x5de6f3=_0x8ba41e;if(_0x5de6f3(0x176)==_0x1a48db)return _0x5de6f3(0x164);},_0x52d970[_0x8ba41e(0x12d)][_0x8ba41e(0x171)][_0x8ba41e(0x141)](this[_0x8ba41e(0x16f)]);}[_0x27e5d0(0x144)](){const _0x459ee9=_0x27e5d0;this[_0x459ee9(0x17c)]=_0x28da82(_0x52d970[_0x459ee9(0x12d)],_0x459ee9(0x12b),{'ctx-name':_0x459ee9(0x14a)+this[_0x459ee9(0x13d)]}),_0x52d970[_0x459ee9(0x12d)][_0x459ee9(0x171)][_0x459ee9(0x141)](this[_0x459ee9(0x17c)]);}[_0x27e5d0(0x157)](){const _0x23bad2=_0x27e5d0,_0x51b845=this[_0x23bad2(0x15e)][_0x23bad2(0x168)][_0x23bad2(0x131)](_0x23bad2(0x135));_0x51b845&&this[_0x23bad2(0x147)](_0x51b845,_0x23bad2(0x136),()=>{const _0x197e87=_0x23bad2,_0x554472=this[_0x197e87(0x15e)][_0x197e87(0x16d)][_0x197e87(0x12d)][_0x197e87(0x174)][_0x197e87(0x132)]();_0x554472&&_0x554472[_0x197e87(0x15a)](_0x197e87(0x138))&&this[_0x197e87(0x15e)][_0x197e87(0x179)][_0x197e87(0x130)][_0x197e87(0x13b)](_0x197e87(0x145),()=>{const _0xe50e25=_0x197e87;_0x34ae35(this[_0xe50e25(0x15e)],_0x554472);});});const _0x2c91dc=this[_0x23bad2(0x15e)][_0x23bad2(0x168)][_0x23bad2(0x131)](_0x23bad2(0x155));_0x2c91dc&&this[_0x23bad2(0x147)](_0x2c91dc,_0x23bad2(0x136),()=>{const _0x282248=_0x23bad2,_0xb1d9b0=this[_0x282248(0x15e)][_0x282248(0x16d)][_0x282248(0x12d)][_0x282248(0x174)][_0x282248(0x132)]();_0xb1d9b0&&_0xb1d9b0[_0x282248(0x15a)](_0x282248(0x138))&&this[_0x282248(0x15e)][_0x282248(0x179)][_0x282248(0x130)][_0x282248(0x13b)](_0x282248(0x145),()=>{const _0x4a5b19=_0x282248;_0x34ae35(this[_0x4a5b19(0x15e)],_0xb1d9b0);});});}}
|
|
23
|
+
function _0x38c1(){const _0x5b7627=['extend','add','iconHrefResolver','#uc-icon-arrow-down','1003626cokUnH','document','configElement','687688VtKNuf','destroy','schema','_initCtx','closeMax','_ctxElement','remove','execute','_configElement','uploadcareImageReplace','UploadcareEditing','uploadcare.pubkey','_initConfig','appendChild','join','fromCharCode','143816vzThfF','commands','querySelector','_initConversion','href','attributeToAttribute','body','6380dhGGKU','18QKPpsh','once','imageBlock','downcast','listenTo','239826pRVXKS','\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','selection','upcast','getAttribute','PictureEditing','get','model','replaceImageSource','ctxElement','config','isPremiumPlugin','8261MxBsMt','isOfficialPlugin','1198734yhBOFM','for','getSelectedElement','cleanupImage','isRegistered','contentLanguage','insertImage','locale','removeAttribute','uploadcare','uc-upload-ctx-provider','_initImageProcessingIndicator','conversion','pluginName','true','14unUAbh','afterInit','_initSchema','editor','uploader-','uc-config','render','init','365UmwkjZ','ucContextId','elementToAttribute','requires','view','editing','map','imageInline','data-uc-image-id','input[uploadcare-file-input]','uploadcareImageId','uploadcare.uploader','3976pQYkxR'];_0x38c1=function(){return _0x5b7627;};return _0x38c1();}function _0x32ba(_0x1c9cd0,_0x5746fd){const _0x38c1ec=_0x38c1();return _0x32ba=function(_0x32ba18,_0xd00ef9){_0x32ba18=_0x32ba18-0x1de;let _0x8d1b24=_0x38c1ec[_0x32ba18];return _0x8d1b24;},_0x32ba(_0x1c9cd0,_0x5746fd);}const _0x4b74d7=_0x32ba;(function(_0x98eb86,_0x2af87e){const _0x54102b=_0x32ba,_0xf3b535=_0x98eb86();while(!![]){try{const _0x1f3930=parseInt(_0x54102b(0x1e8))/0x1+parseInt(_0x54102b(0x221))/0x2+-parseInt(_0x54102b(0x21e))/0x3+-parseInt(_0x54102b(0x219))/0x4*(parseInt(_0x54102b(0x20d))/0x5)+-parseInt(_0x54102b(0x1f6))/0x6*(parseInt(_0x54102b(0x205))/0x7)+-parseInt(_0x54102b(0x231))/0x8*(parseInt(_0x54102b(0x1e3))/0x9)+-parseInt(_0x54102b(0x1e2))/0xa*(-parseInt(_0x54102b(0x1f4))/0xb);if(_0x1f3930===_0x2af87e)break;else _0xf3b535['push'](_0xf3b535['shift']());}catch(_0x55f373){_0xf3b535['push'](_0xf3b535['shift']());}}}(_0x38c1,0x35c0c));import{Plugin as _0xe0c7a1}from'ckeditor5/src/core.js';import{Dialog as _0x3fc6ed}from'ckeditor5/src/ui.js';import{createElement as _0x2cb099,global as _0x5b0c08,uid as _0x21ca03}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x338104}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x22a4a5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1f06a0}from'./utils/editingutils.js';export class UploadcareEditing extends _0xe0c7a1{[_0x4b74d7(0x229)]=null;[_0x4b74d7(0x226)]=null;static get[_0x4b74d7(0x203)](){const _0x3d3f8a=_0x4b74d7;return _0x3d3f8a(0x22b);}static get[_0x4b74d7(0x210)](){const _0x5763de=_0x4b74d7;return[_0x5763de(0x1ed),_0x22a4a5,_0x3fc6ed];}static get[_0x4b74d7(0x1f5)](){return!0x0;}static get[_0x4b74d7(0x1f3)](){return!0x0;}[_0x4b74d7(0x20e)];get[_0x4b74d7(0x220)](){const _0x5f4548=_0x4b74d7;return this[_0x5f4548(0x229)];}get[_0x4b74d7(0x1f1)](){const _0x2edea1=_0x4b74d7;return this[_0x2edea1(0x226)];}constructor(_0x19af72){const _0x123615=_0x4b74d7;super(_0x19af72),this[_0x123615(0x20e)]=_0x21ca03();}[_0x4b74d7(0x20c)](){const _0x459e8a=_0x4b74d7,_0x1c0735=this[_0x459e8a(0x208)];_0x1c0735[_0x459e8a(0x232)][_0x459e8a(0x21b)](_0x459e8a(0x1ff),new _0x338104(_0x1c0735));}[_0x4b74d7(0x206)](){const _0x5da843=_0x4b74d7;this[_0x5da843(0x207)](),this[_0x5da843(0x1de)](),this[_0x5da843(0x22d)](),this[_0x5da843(0x224)](),this[_0x5da843(0x201)](),this[_0x5da843(0x1e7)](this[_0x5da843(0x208)],_0x5da843(0x222),()=>{const _0x5a3aa8=_0x5da843;this[_0x5a3aa8(0x229)]&&(this[_0x5a3aa8(0x229)][_0x5a3aa8(0x227)](),this[_0x5a3aa8(0x229)]=null),this[_0x5a3aa8(0x226)]&&(this[_0x5a3aa8(0x226)][_0x5a3aa8(0x227)](),this[_0x5a3aa8(0x226)]=null);const _0x44d234=_0x5b0c08[_0x5a3aa8(0x21f)][_0x5a3aa8(0x233)](_0x5a3aa8(0x216));_0x44d234&&_0x44d234[_0x5a3aa8(0x227)]();}),async function(_0x56d89b){const _0x432687=_0x3c30ad([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2ecd30=0x535f8c3a,_0x10f429=0x5358f04a^_0x2ecd30,_0x115e0e=window[_0x3c30ad([0x44,0x61,0x74,0x65])][_0x3c30ad([0x6e,0x6f,0x77])](),_0x949cc6=_0x56d89b[_0x3c30ad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa51c86=new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x467a45=>{_0x949cc6[_0x3c30ad([0x6f,0x6e,0x63,0x65])](_0x3c30ad([0x72,0x65,0x61,0x64,0x79]),_0x467a45);}),_0x4d952c={[_0x3c30ad([0x6b,0x74,0x79])]:_0x3c30ad([0x45,0x43]),[_0x3c30ad([0x75,0x73,0x65])]:_0x3c30ad([0x73,0x69,0x67]),[_0x3c30ad([0x63,0x72,0x76])]:_0x3c30ad([0x50,0x2d,0x32,0x35,0x36]),[_0x3c30ad([0x78])]:_0x3c30ad([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]),[_0x3c30ad([0x79])]:_0x3c30ad([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]),[_0x3c30ad([0x61,0x6c,0x67])]:_0x3c30ad([0x45,0x53,0x32,0x35,0x36])},_0x5ae0e6=_0x949cc6[_0x3c30ad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c30ad([0x67,0x65,0x74])](_0x3c30ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1417df(){let _0x49b38d,_0x291062=null,_0xc37ce1=null;try{if(_0x5ae0e6==_0x3c30ad([0x47,0x50,0x4c]))return _0x3c30ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49b38d=_0x1a2c90(),!_0x49b38d)return _0x3c30ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49b38d[_0x3c30ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc37ce1=_0x12a97f(_0x49b38d[_0x3c30ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49b38d[_0x3c30ad([0x6a,0x74,0x69])])),await _0x2ebd81()?_0x57139e()?_0x283585()?_0x3c30ad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3795dd()?(_0x49b38d[_0x3c30ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c30ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x291062=_0x54014e(_0x3c30ad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49b38d[_0x3c30ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c30ad([0x74,0x72,0x69,0x61,0x6c])&&(_0x291062=_0x54014e(_0x3c30ad([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x99eadf()):_0x3c30ad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c30ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c30ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c30ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x283585(){const _0x4a8aab=[_0x3c30ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c30ad([0x74,0x72,0x69,0x61,0x6c])][_0x3c30ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49b38d[_0x3c30ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x115e0e/0x3e8:0xe10*_0x10f429;return _0x49b38d[_0x3c30ad([0x65,0x78,0x70])]<_0x4a8aab;}function _0x57139e(){const _0x4d18d1=_0x49b38d[_0x3c30ad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d18d1&&(!!_0x4d18d1[_0x3c30ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c30ad([0x2a]))||!!_0x4d18d1[_0x3c30ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c30ad([0x55,0x50,0x4c,0x43])));}function _0x3795dd(){const _0x502808=_0x32ba,_0x5c3fe4=_0x49b38d[_0x3c30ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c3fe4||0x0==_0x5c3fe4[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37ee72}=new URL(window[_0x3c30ad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x502808(0x1df)]);if(_0x5c3fe4[_0x3c30ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ee72))return!0x0;const _0x385367=_0x37ee72[_0x3c30ad([0x73,0x70,0x6c,0x69,0x74])](_0x3c30ad([0x2e]));return _0x5c3fe4[_0x3c30ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xde44a9=>_0xde44a9[_0x3c30ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c30ad([0x2a])))[_0x3c30ad([0x6d,0x61,0x70])](_0x48bc15=>_0x48bc15[_0x3c30ad([0x73,0x70,0x6c,0x69,0x74])](_0x3c30ad([0x2e])))[_0x3c30ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54e507=>_0x54e507[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x385367[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c30ad([0x6d,0x61,0x70])](_0x32516a=>Array(_0x385367[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x32516a[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c30ad([0x66,0x69,0x6c,0x6c])](_0x32516a[0x0]===_0x3c30ad([0x2a])?_0x3c30ad([0x2a]):'')[_0x3c30ad([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x32516a))[_0x3c30ad([0x73,0x6f,0x6d,0x65])](_0x26bbab=>_0x385367[_0x3c30ad([0x65,0x76,0x65,0x72,0x79])]((_0x2b6222,_0x1efbb6)=>_0x26bbab[_0x1efbb6]===_0x2b6222||_0x26bbab[_0x1efbb6]===_0x3c30ad([0x2a])));}function _0x99eadf(){return _0x291062&&_0xc37ce1?new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43c4ea,_0x39298c)=>{_0x291062[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0x43c4ea,_0x39298c),_0xc37ce1[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0x4844b7=>{_0x4844b7!=_0x3c30ad([0x56,0x61,0x6c,0x69,0x64])&&_0x43c4ea(_0x4844b7);},_0x39298c);}):_0x291062||_0xc37ce1||_0x3c30ad([0x56,0x61,0x6c,0x69,0x64]);}}function _0x12a97f(_0x27a9c1,_0x27b44c){return new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b9635=>{if(_0xecd312())return _0x3b9635(_0x3c30ad([0x56,0x61,0x6c,0x69,0x64]));_0x1f863b(),_0x949cc6[_0x3c30ad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c30ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51e22b=!0x1;const _0x107a8d=_0x21ca03();function _0x5f55d0(_0x5cc140){return!!_0x5cc140&&(typeof _0x5cc140===_0x3c30ad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5cc140===_0x3c30ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5cc140[_0x3c30ad([0x74,0x68,0x65,0x6e])]===_0x3c30ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5cc140[_0x3c30ad([0x63,0x61,0x74,0x63,0x68])]===_0x3c30ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x225780(_0x5e8480){_0x5e5e8b(_0x5e8480)[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0xd57a17=>{if(!_0xd57a17||_0xd57a17[_0x3c30ad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c30ad([0x6f,0x6b]))return _0x3c30ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x209e59(_0x67620e(_0x107a8d+_0x27b44c))!=_0xd57a17[_0x3c30ad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c30ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c30ad([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0x5a2735=>(_0x5ca203(),_0x5a2735),()=>{const _0x25c12e=_0x30304f();return null==_0x25c12e?(_0x5ca203(),_0x3c30ad([0x56,0x61,0x6c,0x69,0x64])):_0x3c30ad(_0x115e0e-_0x25c12e>(0x7753083a^_0x2ecd30)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0x3b9635)[_0x3c30ad([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b9635(_0x3c30ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x51f7ce=0x536962ba^_0x2ecd30;function _0x5ca203(){const _0x401d6b=_0x3c30ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x209e59(_0x67620e(_0x27a9c1)),_0x52a6b9=_0x270a54(_0x209e59(window[_0x3c30ad([0x4d,0x61,0x74,0x68])][_0x3c30ad([0x63,0x65,0x69,0x6c])](_0x115e0e/_0x51f7ce)));window[_0x3c30ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c30ad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x401d6b,_0x52a6b9);}function _0x30304f(){const _0x44ead4=_0x3c30ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x209e59(_0x67620e(_0x27a9c1)),_0x5a61b8=window[_0x3c30ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c30ad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44ead4);return _0x5a61b8?window[_0x3c30ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x270a54(_0x5a61b8),0x10)*_0x51f7ce:null;}function _0x5e5e8b(_0x2a9540){return new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6ca52e,_0x3c7669)=>{_0x2a9540[_0x3c30ad([0x74,0x68,0x65,0x6e])](_0x6ca52e,_0x3c7669),window[_0x3c30ad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c7669,0x535e58fa^_0x2ecd30);});}}_0x949cc6[_0x3c30ad([0x6f,0x6e])](_0x3c30ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d0c5e,_0x58c694)=>{if(_0x58c694[0x0]!=_0x27a9c1)return _0x3b9635(_0x3c30ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x58c694[0x1]={..._0x58c694[0x1],[_0x3c30ad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x107a8d};},{[_0x3c30ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c30ad([0x68,0x69,0x67,0x68])}),_0x949cc6[_0x3c30ad([0x6f,0x6e])](_0x3c30ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x21b73e=>{_0x5f55d0(_0x21b73e[_0x3c30ad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51e22b=!0x0,_0x225780(_0x21b73e[_0x3c30ad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c30ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c30ad([0x6c,0x6f,0x77])}),_0xa51c86[_0x3c30ad([0x74,0x68,0x65,0x6e])](()=>{_0x51e22b||_0x3b9635(_0x3c30ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xecd312(){return _0x949cc6[_0x3c30ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c30ad([0x76,0x69,0x65,0x77])][_0x3c30ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c30ad([0x61,0x75,0x74,0x6f]);}function _0x1f863b(){_0x949cc6[_0x3c30ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c30ad([0x76,0x69,0x65,0x77])][_0x3c30ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c30ad([0x61,0x75,0x74,0x6f]);}}function _0x54014e(_0x41cd7a){const _0x4e2d06=[new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x65faa1=>setTimeout(_0x65faa1,0x5356b2f6^_0x2ecd30)),_0xa51c86[_0x3c30ad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33b471=>{let _0x231cdd=0x0;_0x949cc6[_0x3c30ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c30ad([0x6f,0x6e])](_0x3c30ad([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x56e619,_0x3b532d)=>{_0x3b532d[0x0][_0x3c30ad([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x231cdd++,_0x231cdd==(0x535f89d2^_0x2ecd30)&&(_0x33b471(),_0x56e619[_0x3c30ad([0x6f,0x66,0x66])]());});}))];return window[_0x3c30ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c30ad([0x72,0x61,0x63,0x65])](_0x4e2d06)[_0x3c30ad([0x74,0x68,0x65,0x6e])](()=>_0x41cd7a);}async function _0x214b68(){await _0xa51c86,_0x949cc6[_0x3c30ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c30ad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x230b48,_0x949cc6[_0x3c30ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c30ad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x230b48,_0x949cc6[_0x3c30ad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c30ad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c58aa(_0x8bacde){const _0x810e7d=_0x46d48d();_0x949cc6[_0x810e7d]=_0x3c30ad([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x8bacde,_0x8bacde!=_0x3c30ad([0x56,0x61,0x6c,0x69,0x64])&&_0x214b68();}function _0x46d48d(){const _0xa2b210=window[_0x3c30ad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c30ad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c30ad([0x6e,0x6f,0x77])]())[_0x3c30ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c30ad([0x2e]),'');let _0x36464d=_0x3c30ad([0x68]);for(let _0x35ca1c=0x0;_0x35ca1c<_0xa2b210[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35ca1c+=0x2){let _0x2a3e54=window[_0x3c30ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa2b210[_0x3c30ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35ca1c,_0x35ca1c+0x2));_0x2a3e54>=_0x432687[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a3e54-=_0x432687[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36464d+=_0x432687[_0x2a3e54];}return _0x36464d;}function _0x1a2c90(){const _0x1332b=_0x5ae0e6[_0x3c30ad([0x73,0x70,0x6c,0x69,0x74])](_0x3c30ad([0x2e]));if(0x3!=_0x1332b[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x225871(_0x1332b[0x1]);function _0x225871(_0xad17aa){const _0x5f1c19=_0x141931(_0xad17aa);return _0x5f1c19&&_0x545e32()?_0x5f1c19:null;function _0x545e32(){const _0x2b8717=_0x5f1c19[_0x3c30ad([0x6a,0x74,0x69])],_0x44b8a4=window[_0x3c30ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b8717[_0x3c30ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b8717[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x39d00c={..._0x5f1c19,[_0x3c30ad([0x6a,0x74,0x69])]:_0x2b8717[_0x3c30ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b8717[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x39d00c[_0x3c30ad([0x76,0x63])],_0x67620e(_0x39d00c)==_0x44b8a4;}}}async function _0x2ebd81(){let _0x4c9600=!0x0;try{const _0x350401=_0x5ae0e6[_0x3c30ad([0x73,0x70,0x6c,0x69,0x74])](_0x3c30ad([0x2e])),[_0x50d5ae,_0x3e2863,_0x407b09]=_0x350401;return _0x360311(_0x50d5ae),await _0x124227(_0x50d5ae,_0x3e2863,_0x407b09),_0x4c9600;}catch{return!0x1;}function _0x360311(_0x14aa16){const _0x1e6d91=_0x141931(_0x14aa16);_0x1e6d91&&_0x1e6d91[_0x3c30ad([0x61,0x6c,0x67])]==_0x3c30ad([0x45,0x53,0x32,0x35,0x36])||(_0x4c9600=!0x1);}async function _0x124227(_0x4718b7,_0x42ab5f,_0x58c0ad){const _0x535602=window[_0x3c30ad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c30ad([0x66,0x72,0x6f,0x6d])](_0x508475(_0x58c0ad),_0x346eb1=>_0x346eb1[_0x3c30ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x202a24=new window[(_0x3c30ad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c30ad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4718b7+_0x3c30ad([0x2e])+_0x42ab5f),_0x531bde=window[_0x3c30ad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c30ad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x531bde)return;const _0x3a24af=await _0x531bde[_0x3c30ad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c30ad([0x6a,0x77,0x6b]),_0x4d952c,{[_0x3c30ad([0x6e,0x61,0x6d,0x65])]:_0x3c30ad([0x45,0x43,0x44,0x53,0x41]),[_0x3c30ad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c30ad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c30ad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x531bde[_0x3c30ad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c30ad([0x6e,0x61,0x6d,0x65])]:_0x3c30ad([0x45,0x43,0x44,0x53,0x41]),[_0x3c30ad([0x68,0x61,0x73,0x68])]:{[_0x3c30ad([0x6e,0x61,0x6d,0x65])]:_0x3c30ad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a24af,_0x535602,_0x202a24)||(_0x4c9600=!0x1);}}function _0x141931(_0x4c685f){return _0x4c685f[_0x3c30ad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c30ad([0x65,0x79]))?JSON[_0x3c30ad([0x70,0x61,0x72,0x73,0x65])](_0x508475(_0x4c685f)):null;}function _0x508475(_0x30b165){return window[_0x3c30ad([0x61,0x74,0x6f,0x62])](_0x30b165[_0x3c30ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c30ad([0x2b]))[_0x3c30ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c30ad([0x2f])));}function _0x67620e(_0x576391){let _0x510ccd=0x1505;function _0x30d74d(_0x11ca70){for(let _0x4cac6b=0x0;_0x4cac6b<_0x11ca70[_0x3c30ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cac6b++){const _0x295c96=_0x11ca70[_0x3c30ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cac6b);_0x510ccd=(_0x510ccd<<0x5)+_0x510ccd+_0x295c96,_0x510ccd&=_0x510ccd;}}function _0x4b3c1f(_0x4f8f81){Array[_0x3c30ad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f8f81)?_0x4f8f81[_0x3c30ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b3c1f):_0x4f8f81&&typeof _0x4f8f81==_0x3c30ad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c30ad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f8f81)[_0x3c30ad([0x73,0x6f,0x72,0x74])]()[_0x3c30ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52d1ac,_0x51b377])=>{_0x30d74d(_0x52d1ac),_0x4b3c1f(_0x51b377);}):_0x30d74d(window[_0x3c30ad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f8f81));}return _0x4b3c1f(_0x576391),_0x510ccd>>>0x0;}function _0x209e59(_0x3a364c){return _0x3a364c[_0x3c30ad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c30ad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c30ad([0x30]));}function _0x270a54(_0x1cb402){return _0x1cb402[_0x3c30ad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c30ad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c30ad([0x6a,0x6f,0x69,0x6e])]('');}function _0x230b48(){}function _0x3c30ad(_0x358b9e){const _0x36287b=_0x32ba;return _0x358b9e[_0x36287b(0x213)](_0x50bc5b=>String[_0x36287b(0x230)](_0x50bc5b))[_0x36287b(0x22f)]('');}_0x5c58aa(await _0x1417df());}(this);}[_0x4b74d7(0x207)](){const _0x479504=_0x4b74d7,_0x466075=this[_0x479504(0x208)][_0x479504(0x1ef)][_0x479504(0x223)];_0x466075[_0x479504(0x1fa)](_0x479504(0x1e5))&&_0x466075[_0x479504(0x21a)](_0x479504(0x1e5),{'allowAttributes':[_0x479504(0x217)]}),_0x466075[_0x479504(0x1fa)](_0x479504(0x214))&&_0x466075[_0x479504(0x21a)](_0x479504(0x214),{'allowAttributes':[_0x479504(0x217)]});}[_0x4b74d7(0x1de)](){const _0x47383b=_0x4b74d7,_0x1a44bf=this[_0x47383b(0x208)];_0x1a44bf[_0x47383b(0x202)][_0x47383b(0x1f7)](_0x47383b(0x1e6))[_0x47383b(0x1e0)]({'model':_0x47383b(0x217),'view':_0x47383b(0x215)}),_0x1a44bf[_0x47383b(0x202)][_0x47383b(0x1f7)](_0x47383b(0x1eb))[_0x47383b(0x20f)]({'model':{'key':_0x47383b(0x217),'value':_0x3d0229=>_0x3d0229[_0x47383b(0x1ec)](_0x47383b(0x215))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1d772f=_0x1a44bf[_0x47383b(0x232)][_0x47383b(0x1ee)](_0x47383b(0x1f0));_0x1d772f&&this[_0x47383b(0x1e7)](_0x1d772f,_0x47383b(0x1f9),(_0x359ac5,[_0x403b49,_0x30e3c2])=>{const _0x361735=_0x47383b;_0x403b49[_0x361735(0x1fe)](_0x361735(0x217),_0x30e3c2);});}[_0x4b74d7(0x22d)](){const _0x593913=_0x4b74d7,_0x2db2c8=this[_0x593913(0x208)][_0x593913(0x1f2)][_0x593913(0x1ee)](_0x593913(0x218))||{},_0xe4cf10=this[_0x593913(0x208)][_0x593913(0x1f2)][_0x593913(0x1ee)](_0x593913(0x22c))||'';this[_0x593913(0x229)]=_0x2cb099(_0x5b0c08[_0x593913(0x21f)],_0x593913(0x20a),{..._0x2db2c8,'pubkey':_0xe4cf10,'ctx-name':_0x593913(0x209)+this[_0x593913(0x20e)],'sourceList':'','imgOnly':_0x593913(0x204),'removeCopyright':_0x593913(0x204),'localeName':this[_0x593913(0x208)][_0x593913(0x1fd)][_0x593913(0x1fb)],'externalSourcesEmbedCss':_0x593913(0x1e9)}),this[_0x593913(0x229)][_0x593913(0x21c)]=_0x2fba9c=>{const _0x57167=_0x593913;if(_0x57167(0x225)==_0x2fba9c)return _0x57167(0x21d);},_0x5b0c08[_0x593913(0x21f)][_0x593913(0x1e1)][_0x593913(0x22e)](this[_0x593913(0x229)]);}[_0x4b74d7(0x224)](){const _0x544f66=_0x4b74d7;this[_0x544f66(0x226)]=_0x2cb099(_0x5b0c08[_0x544f66(0x21f)],_0x544f66(0x200),{'ctx-name':_0x544f66(0x209)+this[_0x544f66(0x20e)]}),_0x5b0c08[_0x544f66(0x21f)][_0x544f66(0x1e1)][_0x544f66(0x22e)](this[_0x544f66(0x226)]);}[_0x4b74d7(0x201)](){const _0x3898f4=_0x4b74d7,_0xa4e1bf=this[_0x3898f4(0x208)][_0x3898f4(0x232)][_0x3898f4(0x1ee)](_0x3898f4(0x1fc));_0xa4e1bf&&this[_0x3898f4(0x1e7)](_0xa4e1bf,_0x3898f4(0x228),()=>{const _0x5d7bb6=_0x3898f4,_0x1a8e29=this[_0x5d7bb6(0x208)][_0x5d7bb6(0x1ef)][_0x5d7bb6(0x21f)][_0x5d7bb6(0x1ea)][_0x5d7bb6(0x1f8)]();_0x1a8e29&&_0x1a8e29[_0x5d7bb6(0x1ec)](_0x5d7bb6(0x217))&&this[_0x5d7bb6(0x208)][_0x5d7bb6(0x212)][_0x5d7bb6(0x211)][_0x5d7bb6(0x1e4)](_0x5d7bb6(0x20b),()=>{const _0x4cef1f=_0x5d7bb6;_0x1f06a0(this[_0x4cef1f(0x208)],_0x1a8e29);});});const _0x19da8a=this[_0x3898f4(0x208)][_0x3898f4(0x232)][_0x3898f4(0x1ee)](_0x3898f4(0x22a));_0x19da8a&&this[_0x3898f4(0x1e7)](_0x19da8a,_0x3898f4(0x228),()=>{const _0x5c5d52=_0x3898f4,_0x3ed33c=this[_0x5c5d52(0x208)][_0x5c5d52(0x1ef)][_0x5c5d52(0x21f)][_0x5c5d52(0x1ea)][_0x5c5d52(0x1f8)]();_0x3ed33c&&_0x3ed33c[_0x5c5d52(0x1ec)](_0x5c5d52(0x217))&&this[_0x5c5d52(0x208)][_0x5c5d52(0x212)][_0x5c5d52(0x211)][_0x5c5d52(0x1e4)](_0x5c5d52(0x20b),()=>{const _0x239592=_0x5c5d52;_0x1f06a0(this[_0x239592(0x208)],_0x3ed33c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x53392c,ObservableMixin as _0x3b739c}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x5bf022}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1dc4a8}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x2e0653}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2fa248}from'../../utils/uploadutils.js';import{getImageUrls as _0x43c231,getImageDimension as _0x26d547}from'../../utils/editingutils.js';import{isAncestor as _0x45c64d}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3b739c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x248c1a,_0x4a128d,_0xa9f1c8){super(),this['_editor']=_0x248c1a,this['_dialog']=_0x4a128d,this['_imageElement']=_0xa9f1c8,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 _0x5eb93e=this['_imageElement'],_0x19f405=_0x5eb93e['getAttribute']('uploadcareImageId'),_0x4d067f=_0x5eb93e['getAttribute']('src');if(_0x19f405)await this['_loadImageInfo'](_0x19f405,_0x4d067f);else{if(this['_imageCache']['has'](_0x4d067f)){const _0x4b7dc1=this['_imageCache']['get'](_0x4d067f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b7dc1['url'],this['imageDimension']=_0x4b7dc1['dimension'],this['imageId']=_0x4b7dc1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x574263}=this['_editor'],t=_0x574263['t'],_0x399678=new _0x2e0653(_0x574263,this['imageStatus'],this['_attributes']);_0x399678['bind']('status')['to'](this,'imageStatus'),_0x399678['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x399678['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x399678['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x399678,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1dc4a8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x399678,'position':_0x5bf022['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x399678['focus']();},'onHide':()=>{_0x399678['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x551492=>!_0x45c64d(_0x551492,_0x399678['element'])}});}['_loadImageInfo'](_0x4b3239,_0x411527){return _0x2fa248['getInfo'](_0x4b3239,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x449549=>{const {width:_0x39185d,height:_0x57adb1}=_0x449549['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x411527,this['imageDimension']={'width':_0x39185d,'height':_0x57adb1},this['imageId']=_0x4b3239;})['catch'](_0x4d7d5c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d7d5c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2cf6a3,_0x3abb34){return this['_getImageAsFile'](_0x2cf6a3)['then'](_0xce255e=>_0x2fa248['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3abb34['signal'],'file':_0xce255e,'onProgress':_0x31aa0a=>{_0x31aa0a&&_0x31aa0a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x31aa0a['value']));}}))['then'](_0x51193c=>{const {width:_0x41f6c3,height:_0x1c16ff}=_0x51193c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51193c['cdnUrl'],this['imageDimension']={'width':_0x41f6c3,'height':_0x1c16ff},this['imageId']=_0x51193c['uuid'],this['imageUploadProgress']=null;const _0x5a4e67=_0x2cf6a3['getAttribute']('src');this['_imageCache']['set'](_0x5a4e67,{'id':_0x51193c['uuid'],'url':_0x51193c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x406ba6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x406ba6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1a8480,_0x581972){_0x1a8480['on']('apply',(_0x268746,_0xff1bef)=>{this['_replaceImage'](_0x581972,_0xff1bef['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1a8480['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1a8480['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3dd18f,_0x1811a3,_0x471fb5){const _0x29d223=this['_editor'],{width:_0x15c67b,height:_0x11b194}=_0x26d547(_0x1811a3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x23dcdb,imageSources:_0x1b615e}=_0x43c231(_0x1811a3,_0x15c67b);_0x29d223['model']['change'](_0x2c6dae=>{if('$graveyard'===_0x3dd18f['root']['rootName']){_0x29d223['execute']('insertImage',{'imageType':_0x3dd18f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3dd18f['getAttributes']()),'uploadcareImageId':_0x471fb5,'src':_0x23dcdb,'sources':_0x1b615e,'width':_0x15c67b,'height':_0x11b194}});const _0x583759=_0x3dd18f['getChildren']();_0x3dd18f=_0x29d223['model']['document']['selection']['getSelectedElement']();for(const _0x2db46b of _0x583759)_0x2c6dae['append'](_0x2c6dae['cloneElement'](_0x2db46b),_0x3dd18f);}else _0x2c6dae['setSelection'](_0x3dd18f,'on'),_0x29d223['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3dd18f['getAttributes']()),'uploadcareImageId':_0x471fb5,'src':_0x23dcdb,'sources':_0x1b615e,'width':_0x15c67b,'height':_0x11b194},_0x3dd18f);_0x2c6dae['setSelection'](_0x3dd18f,'on');});}async['_getImageAsFile'](_0x1c4675){const _0x4c1729=_0x53392c['window'],_0x85ef35=_0x53392c['document']['location']['href'],_0x55e2b5=new _0x4c1729['URL'](_0x1c4675['getAttribute']('src'),_0x85ef35);if('data:'===_0x55e2b5['protocol']){const _0x1af630=_0x55e2b5['href']['split'](','),_0x320457=_0x1af630[0x0]['match'](/:(.*?);/)[0x1],_0x563ff1=_0x320457['split']('/')[0x1],_0x350260=_0x4c1729['atob'](_0x1af630[_0x1af630['length']-0x1]);let _0x162af2=_0x350260['length'];const _0x482d84=new _0x4c1729['Uint8Array'](_0x162af2);for(;_0x162af2--;)_0x482d84[_0x162af2]=_0x350260['charCodeAt'](_0x162af2);return new _0x4c1729['File']([_0x482d84],'image.'+_0x563ff1,{'type':_0x320457});}const _0x1d987d=_0x55e2b5['href']['split']('/'),_0x23ffbb=_0x1d987d[_0x1d987d['length']-0x1],_0x54851a=_0x23ffbb['split']('.')[0x1];return _0x4c1729['fetch'](_0x55e2b5['href'])['then'](_0x5388a2=>_0x5388a2['clone']()['blob']())['then'](_0x812119=>new _0x4c1729['File']([_0x812119],_0x23ffbb,{'type':'image/'+_0x54851a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5295b2,_0x5458d1){const _0x4f8992=_0x32a9,_0x3ec433=_0x5295b2();while(!![]){try{const _0x17d02f=parseInt(_0x4f8992(0x193))/0x1*(parseInt(_0x4f8992(0x18b))/0x2)+-parseInt(_0x4f8992(0x195))/0x3+-parseInt(_0x4f8992(0x188))/0x4*(parseInt(_0x4f8992(0x191))/0x5)+parseInt(_0x4f8992(0x192))/0x6*(parseInt(_0x4f8992(0x194))/0x7)+parseInt(_0x4f8992(0x18f))/0x8*(parseInt(_0x4f8992(0x198))/0x9)+-parseInt(_0x4f8992(0x197))/0xa*(parseInt(_0x4f8992(0x190))/0xb)+parseInt(_0x4f8992(0x189))/0xc;if(_0x17d02f===_0x5458d1)break;else _0x3ec433['push'](_0x3ec433['shift']());}catch(_0x54de17){_0x3ec433['push'](_0x3ec433['shift']());}}}(_0x477e,0x4e616));function _0x477e(){const _0x3b58b3=['66305UnCmIU','138Aykvtj','1cLlkOz','88074MALAGu','669546gUfgUc','uc-light','14930ovmIzy','997371lJvMRs','set','bindTemplate','imageSrc','48zkVvGK','1103448ydmcBu','image-edit','1060058DTybfr','uc-cloud-image-editor','setTemplate','ck-uploadcare-theme','24vlcsIw','3982JpnKPn'];_0x477e=function(){return _0x3b58b3;};return _0x477e();}import{View as _0x319436}from'ckeditor5/src/ui.js';function _0x32a9(_0xb93e44,_0x32c1ef){const _0x477e13=_0x477e();return _0x32a9=function(_0x32a99a,_0x4eac88){_0x32a99a=_0x32a99a-0x185;let _0x4dafd9=_0x477e13[_0x32a99a];return _0x4dafd9;},_0x32a9(_0xb93e44,_0x32c1ef);}export class UploadcareImageEditFormEditingView extends _0x319436{constructor(_0x16131b,_0x3e23e6){const _0x466b32=_0x32a9;super(_0x16131b);const _0x525389=this[_0x466b32(0x186)];this[_0x466b32(0x185)](_0x466b32(0x187),''),this[_0x466b32(0x18d)]({'tag':_0x466b32(0x18c),'attributes':{..._0x3e23e6,'class':[_0x466b32(0x196),_0x466b32(0x18e)],'ctx-name':_0x466b32(0x18a),'cdn-url':_0x525389['to'](_0x466b32(0x187))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2b4557}from'ckeditor5/src/icons.js';import{ButtonView as _0x6d200e,IconView as _0x3645b1,View as _0x50e897}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x50e897{constructor(_0x50505b){super(_0x50505b);const t=_0x50505b['t'];this['set']('errorType',null);const _0x365ea9=new _0x6d200e(_0x50505b);_0x365ea9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x365ea9['withText']=!0x0,_0x365ea9['class']='ck-button-action',_0x365ea9['on']('execute',()=>{this['fire']('retry');}),_0x365ea9['bind']('isVisible')['to'](this,'errorType',_0xab565d=>'NotFound'!==_0xab565d);const _0x4fd37c=new _0x3645b1();_0x4fd37c['content']=_0x2b4557,_0x4fd37c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x311490=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':[_0x4fd37c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x311490['to']('errorType',_0x3d9618=>t('NotFound'!==_0x3d9618?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x365ea9]},{'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 _0x2a2726,View as _0x29a198}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x29a198{constructor(_0x4ee3b2){super(_0x4ee3b2);const t=_0x4ee3b2['t'],_0x21cab3=this['bindTemplate'],_0x378078=new _0x2a2726();_0x378078['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':[_0x378078,{'text':_0x21cab3['to']('imageUploadProgress',_0x4606f4=>t('Loading\x20image...')+'\x20('+(_0x4606f4||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 _0x46fb35=_0x1bdf;(function(_0xf75e30,_0x55a223){const _0x1e01f3=_0x1bdf,_0x4c3eab=_0xf75e30();while(!![]){try{const _0x164813=parseInt(_0x1e01f3(0x1df))/0x1*(parseInt(_0x1e01f3(0x1fb))/0x2)+-parseInt(_0x1e01f3(0x1f4))/0x3+-parseInt(_0x1e01f3(0x1de))/0x4+-parseInt(_0x1e01f3(0x204))/0x5+parseInt(_0x1e01f3(0x1cf))/0x6*(-parseInt(_0x1e01f3(0x1ea))/0x7)+-parseInt(_0x1e01f3(0x1d9))/0x8+-parseInt(_0x1e01f3(0x1eb))/0x9*(-parseInt(_0x1e01f3(0x1f5))/0xa);if(_0x164813===_0x55a223)break;else _0x4c3eab['push'](_0x4c3eab['shift']());}catch(_0x5e7e24){_0x4c3eab['push'](_0x4c3eab['shift']());}}}(_0x4fd2,0x31fb1));import{View as _0x331812}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4b8409}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x59b28e}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x44af67}from'./uploadcareimageeditformeditingview.js';function _0x1bdf(_0x1a84fd,_0x16b938){const _0x4fd2e7=_0x4fd2();return _0x1bdf=function(_0x1bdf36,_0x301d57){_0x1bdf36=_0x1bdf36-0x1cf;let _0x49631f=_0x4fd2e7[_0x1bdf36];return _0x49631f;},_0x1bdf(_0x1a84fd,_0x16b938);}import{DialogFocusManagerView as _0x5486c4}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5486c4{[_0x46fb35(0x1db)];[_0x46fb35(0x1f1)];[_0x46fb35(0x1e4)];[_0x46fb35(0x1e7)];[_0x46fb35(0x1da)];constructor(_0x2ef7ca,_0x48820b,_0x449601){const _0x46d56d=_0x46fb35;super(_0x2ef7ca),this[_0x46d56d(0x1db)]=this[_0x46d56d(0x1d0)](),this[_0x46d56d(0x1f1)]=new _0x4b8409(_0x2ef7ca),this[_0x46d56d(0x1e4)]=new _0x59b28e(_0x2ef7ca),this[_0x46d56d(0x1e7)]=new _0x44af67(_0x2ef7ca,_0x449601),this[_0x46d56d(0x1da)]=new _0x331812(_0x2ef7ca),this[_0x46d56d(0x1da)][_0x46d56d(0x1f8)](this[_0x46d56d(0x203)]()),this[_0x46d56d(0x1d6)](_0x46d56d(0x205),_0x48820b),this[_0x46d56d(0x1f8)]({'tag':_0x46d56d(0x1e6),'attributes':{'class':['ck',_0x46d56d(0x1f2),_0x46d56d(0x1e5)],'tabindex':'-1'},'children':this[_0x46d56d(0x1db)]}),this[_0x46d56d(0x1ee)](),this[_0x46d56d(0x1dc)](_0x46d56d(0x1f3),()=>{const _0x5e2498=_0x46d56d;this[_0x5e2498(0x1f9)](this[_0x5e2498(0x200)],_0x52dce8=>{const _0x23864c=_0x5e2498;this[_0x23864c(0x1f0)](_0x52dce8);});}),this['on'](_0x46d56d(0x1d1),()=>{const _0x32f594=_0x46d56d;this[_0x32f594(0x1ee)]();}),this[_0x46d56d(0x1fe)]();}[_0x46fb35(0x1fc)](){const _0x475d1b=_0x46fb35;this[_0x475d1b(0x200)][_0x475d1b(0x1fc)]();}[_0x46fb35(0x1ee)](){const _0x16e99f=_0x46fb35;switch(this[_0x16e99f(0x1db)][_0x16e99f(0x1d7)](),this[_0x16e99f(0x205)]){case _0x16e99f(0x1ec):this[_0x16e99f(0x1db)][_0x16e99f(0x1f6)](this[_0x16e99f(0x1f1)]);break;case _0x16e99f(0x1e8):this[_0x16e99f(0x1db)][_0x16e99f(0x1f6)](this[_0x16e99f(0x1e4)]);break;case _0x16e99f(0x1e2):this[_0x16e99f(0x1db)][_0x16e99f(0x1fa)]([this[_0x16e99f(0x1e7)],this[_0x16e99f(0x1da)]]);}}[_0x46fb35(0x1f9)](_0x4ccd73,_0xc4be65){const _0x2974cb=_0x46fb35,_0x181121=_0x2974cb(0x1fd),_0x32900c=_0x4ccd73[_0x2974cb(0x1d4)](_0x181121);if(_0x32900c)return _0xc4be65(_0x32900c);const _0x92ddd=new MutationObserver(_0x9b729=>{const _0x40c49f=_0x2974cb,_0x30069c=_0x9b729[_0x40c49f(0x1d2)](_0x4c4147=>_0x4c4147[_0x40c49f(0x201)]===_0x4ccd73&&_0x4c4147[_0x40c49f(0x1ef)][_0x40c49f(0x1dd)]>0x0&&_0x4c4147[_0x40c49f(0x1ef)][0x0][_0x40c49f(0x1e3)][_0x40c49f(0x1e9)]()===_0x181121);_0x30069c[_0x40c49f(0x1dd)]&&(_0x92ddd[_0x40c49f(0x202)](),_0xc4be65(_0x30069c[0x0][_0x40c49f(0x1ef)][0x0]));});_0x92ddd[_0x2974cb(0x1e0)](_0x4ccd73,{'childList':!0x0,'subtree':!0x0});}[_0x46fb35(0x1f0)](_0x46048e){const _0x4bc5b1=_0x46fb35;_0x46048e[_0x4bc5b1(0x1d8)](_0x4bc5b1(0x1f7),_0x1a2de8=>{const _0x177ded=_0x4bc5b1;this[_0x177ded(0x1e1)](_0x177ded(0x1f7),{'imageSrc':_0x1a2de8[_0x177ded(0x1ed)][_0x177ded(0x1d5)]});}),_0x46048e[_0x4bc5b1(0x1d8)](_0x4bc5b1(0x1ff),()=>{const _0xee663a=_0x4bc5b1;this[_0xee663a(0x1e1)](_0xee663a(0x1ff));});}[_0x46fb35(0x1fe)](){const _0x38d778=_0x46fb35;this[_0x38d778(0x1e4)]['on'](_0x38d778(0x1d3),()=>{const _0x1e97a2=_0x38d778;this[_0x1e97a2(0x1e1)](_0x1e97a2(0x1d3));});}}function _0x4fd2(){const _0x559cbc=['filter','retry','querySelector','cdnUrl','set','clear','addEventListener','1332584PJLWTK','_focusableView','_items','once','length','1216592lKgVAq','5204UUxzKF','observe','fire','ready','nodeName','_errorView','ck-uploadcare-form','div','_editingView','error','toLowerCase','7ClZUXU','1341AKufRn','uploading','detail','_setView','addedNodes','_addUploadcareImageEditorListeners','_loadingView','ck-reset_all-excluded','render','231315bzKKbY','68670zleetg','add','apply','setTemplate','_waitForImageEditorComponent','addMany','94UBVLwz','focus','uc-cloud-image-editor','_addErrorViewListeners','cancel','element','target','disconnect','getFocusableElement','1301295zeNoeB','status','1529790bVdwwj','createCollection','change:status'];_0x4fd2=function(){return _0x559cbc;};return _0x4fd2();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x28e46c=_0x782e;function _0x782e(_0x20e83b,_0x13b8cd){const _0x2b746d=_0x2b74();return _0x782e=function(_0x782e53,_0x1dbae2){_0x782e53=_0x782e53-0x178;let _0xe05de0=_0x2b746d[_0x782e53];return _0xe05de0;},_0x782e(_0x20e83b,_0x13b8cd);}(function(_0x3bca91,_0x10e679){const _0x4d33aa=_0x782e,_0x58303a=_0x3bca91();while(!![]){try{const _0x23a2b1=-parseInt(_0x4d33aa(0x17e))/0x1+-parseInt(_0x4d33aa(0x195))/0x2+parseInt(_0x4d33aa(0x18f))/0x3*(-parseInt(_0x4d33aa(0x18e))/0x4)+parseInt(_0x4d33aa(0x187))/0x5*(-parseInt(_0x4d33aa(0x17d))/0x6)+parseInt(_0x4d33aa(0x17b))/0x7+parseInt(_0x4d33aa(0x193))/0x8+parseInt(_0x4d33aa(0x18c))/0x9;if(_0x23a2b1===_0x10e679)break;else _0x58303a['push'](_0x58303a['shift']());}catch(_0x2a91ee){_0x58303a['push'](_0x58303a['shift']());}}}(_0x2b74,0xcaf47));import{Command as _0x29c8b5}from'ckeditor5/src/core.js';import{Dialog as _0x3c6a1d}from'ckeditor5/src/ui.js';function _0x2b74(){const _0x17c31b=['uploadcare.allowExternalImagesEditing','unbind','bind','document','imageInline','isActive','set','selection','60bOGuuw','imageEditController','element','config','execute','41623794cJIQcN','getSelectedElement','16qsAqdc','1140429UlLfhQ','refresh','_isEditable','get','11378376EwEneH','isEnabled','2225584UqYbMa','requires','model','imageBlock','plugins','4294864GHIwBc','editor','771924OvFQdx','1652200eAGwBm'];_0x2b74=function(){return _0x17c31b;};return _0x2b74();}import{UploadcareImageEditController as _0x2fd6b0}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xcac1a2}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x29c8b5{[_0x28e46c(0x188)];static get[_0x28e46c(0x196)](){return[_0x3c6a1d];}[_0x28e46c(0x191)];constructor(_0xb1a407){const _0x2d09fa=_0x28e46c;super(_0xb1a407),this[_0x2d09fa(0x188)]=void 0x0,this[_0x2d09fa(0x191)]=_0xcac1a2(_0xb1a407[_0x2d09fa(0x18a)][_0x2d09fa(0x192)](_0x2d09fa(0x17f))||[]),this[_0x2d09fa(0x185)]({'isActive':!0x1});}[_0x28e46c(0x190)](){const _0xc037c6=_0x28e46c,_0x5f0a4a=this[_0xc037c6(0x17c)][_0xc037c6(0x178)][_0xc037c6(0x182)][_0xc037c6(0x186)][_0xc037c6(0x18d)]();this[_0xc037c6(0x194)]=this[_0xc037c6(0x191)](_0x5f0a4a);}[_0x28e46c(0x18b)](){const _0x409236=_0x28e46c;this[_0x409236(0x188)]&&(this[_0x409236(0x180)](_0x409236(0x184)),this[_0x409236(0x188)]=void 0x0);const _0x3dfbf9=this[_0x409236(0x17c)][_0x409236(0x178)][_0x409236(0x182)][_0x409236(0x186)][_0x409236(0x18d)]();_0x3dfbf9&&(_0x3dfbf9['is'](_0x409236(0x189),_0x409236(0x179))||_0x3dfbf9['is'](_0x409236(0x189),_0x409236(0x183)))&&(this[_0x409236(0x188)]=new _0x2fd6b0(this[_0x409236(0x17c)],this[_0x409236(0x17c)][_0x409236(0x17a)][_0x409236(0x192)](_0x3c6a1d),_0x3dfbf9),this[_0x409236(0x181)](_0x409236(0x184))['to'](this[_0x409236(0x188)],_0x409236(0x184)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5b53(){const _0x30c102=['UploadcareImageEditEditing','ImageEditing','ImageUtils','30durvHh','48MHUddN','uploadcareImageEdit','8EgiWVy','requires','pluginName','6acdhEx','isOfficialPlugin','462847QWRYzo','396655FKWlWB','18984xfUwfG','389766AroPYq','2989239YPsAfr','add','init','isPremiumPlugin','commands','268iRdlkH','1504152aAaeOU','uploadcareImageReplace','67420IgvuCL'];_0x5b53=function(){return _0x30c102;};return _0x5b53();}const _0x3d393d=_0x58f4;(function(_0x48d5b7,_0x1f9c0d){const _0x50cd0d=_0x58f4,_0x59d934=_0x48d5b7();while(!![]){try{const _0xd05d1e=parseInt(_0x50cd0d(0xf6))/0x1+parseInt(_0x50cd0d(0xed))/0x2+parseInt(_0x50cd0d(0xec))/0x3*(-parseInt(_0x50cd0d(0xf3))/0x4)+-parseInt(_0x50cd0d(0xeb))/0x5*(parseInt(_0x50cd0d(0x100))/0x6)+parseInt(_0x50cd0d(0xea))/0x7*(-parseInt(_0x50cd0d(0xfd))/0x8)+-parseInt(_0x50cd0d(0xf4))/0x9*(parseInt(_0x50cd0d(0xfa))/0xa)+parseInt(_0x50cd0d(0xee))/0xb*(parseInt(_0x50cd0d(0xfb))/0xc);if(_0xd05d1e===_0x1f9c0d)break;else _0x59d934['push'](_0x59d934['shift']());}catch(_0x494abf){_0x59d934['push'](_0x59d934['shift']());}}}(_0x5b53,0x43fd7));import{Plugin as _0x3a996a}from'ckeditor5/src/core.js';function _0x58f4(_0x27265f,_0x5239c2){const _0x5b5364=_0x5b53();return _0x58f4=function(_0x58f46d,_0x1b1c74){_0x58f46d=_0x58f46d-0xea;let _0x3e1992=_0x5b5364[_0x58f46d];return _0x3e1992;},_0x58f4(_0x27265f,_0x5239c2);}import{Notification as _0x213aa9}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x45b65d}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x1f61e6}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2a1c59}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3a996a{static get[_0x3d393d(0xff)](){const _0x2d1729=_0x3d393d;return _0x2d1729(0xf7);}static get[_0x3d393d(0xfe)](){const _0x3d9a00=_0x3d393d;return[_0x2a1c59,_0x213aa9,_0x3d9a00(0xf9),_0x3d9a00(0xf8)];}static get[_0x3d393d(0x101)](){return!0x0;}static get[_0x3d393d(0xf1)](){return!0x0;}[_0x3d393d(0xf0)](){const _0x511aab=_0x3d393d,{editor:_0x623547}=this;_0x623547[_0x511aab(0xf2)][_0x511aab(0xef)](_0x511aab(0xfc),new _0x45b65d(_0x623547)),_0x623547[_0x511aab(0xf2)][_0x511aab(0xef)](_0x511aab(0xf5),new _0x1f61e6(_0x623547));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x441107}from'ckeditor5/src/core.js';import{ButtonView as _0x589b51}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x46aaaa}from'ckeditor5/src/icons.js';import{createElement as _0x2376b9}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 _0x441107{['_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 _0x537919=this['editor'];_0x537919['ui']['componentFactory']['add']('uploadcareImageEdit',_0x39ef86=>{const _0x426bf0=_0x537919['commands']['get']('uploadcareImageEdit'),_0x4cc6dd=new _0x589b51(_0x39ef86),t=_0x39ef86['t'];return _0x4cc6dd['set']({'icon':_0x46aaaa,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4cc6dd['bind']('isEnabled')['to'](_0x426bf0),_0x4cc6dd['bind']('isOn')['to'](_0x426bf0,'isActive'),this['listenTo'](_0x4cc6dd,'execute',()=>{_0x537919['execute']('uploadcareImageEdit'),_0x537919['editing']['view']['focus']();}),_0x4cc6dd;}),this['_initConfig']();}['_initConfig'](){const _0x18508e=_0x2376b9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x18508e),this['listenTo'](this['editor'],'destroy',()=>{_0x18508e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5d5d4e=_0x90eb;function _0x90eb(_0x51f39,_0x45fc8a){const _0x29d7e6=_0x29d7();return _0x90eb=function(_0x90eb43,_0x44f7c6){_0x90eb43=_0x90eb43-0x1f0;let _0xe35bbc=_0x29d7e6[_0x90eb43];return _0xe35bbc;},_0x90eb(_0x51f39,_0x45fc8a);}(function(_0x570685,_0x17b0ee){const _0x51015e=_0x90eb,_0x18a78d=_0x570685();while(!![]){try{const _0x17b9a1=parseInt(_0x51015e(0x1f8))/0x1*(-parseInt(_0x51015e(0x202))/0x2)+parseInt(_0x51015e(0x200))/0x3*(-parseInt(_0x51015e(0x205))/0x4)+-parseInt(_0x51015e(0x206))/0x5+-parseInt(_0x51015e(0x1f5))/0x6+-parseInt(_0x51015e(0x201))/0x7+parseInt(_0x51015e(0x204))/0x8*(-parseInt(_0x51015e(0x1fc))/0x9)+parseInt(_0x51015e(0x1ff))/0xa;if(_0x17b9a1===_0x17b0ee)break;else _0x18a78d['push'](_0x18a78d['shift']());}catch(_0x5754b0){_0x18a78d['push'](_0x18a78d['shift']());}}}(_0x29d7,0x98b44));function _0x29d7(){const _0x46a2b8=['79371YjAqsn','document','imageBlock','35862660LSWgIL','81xqZxED','7934892XKGmFM','122XvFWij','srcset','472IceOeC','76764omQujk','494135kgMmHl','sizes','execute','removeAttribute','setAttributes','imageInline','selection','refresh','isEnabled','2470980YiTtgW','element','change','4559exEivK','editor','getSelectedElement','model'];_0x29d7=function(){return _0x46a2b8;};return _0x29d7();}import{Command as _0x5ecdb3}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x5ecdb3{[_0x5d5d4e(0x1f3)](){const _0x503631=_0x5d5d4e,_0x2a2ff3=this[_0x503631(0x1f9)][_0x503631(0x1fb)][_0x503631(0x1fd)][_0x503631(0x1f2)][_0x503631(0x1fa)]();this[_0x503631(0x1f4)]=Boolean(_0x2a2ff3&&(_0x2a2ff3['is'](_0x503631(0x1f6),_0x503631(0x1fe))||_0x2a2ff3['is'](_0x503631(0x1f6),_0x503631(0x1f1))));}[_0x5d5d4e(0x208)](_0x409776){const _0x5e0d3e=_0x5d5d4e,_0x38fff3=this[_0x5e0d3e(0x1f9)][_0x5e0d3e(0x1fb)][_0x5e0d3e(0x1fd)][_0x5e0d3e(0x1f2)][_0x5e0d3e(0x1fa)]();this[_0x5e0d3e(0x1f9)][_0x5e0d3e(0x1fb)][_0x5e0d3e(0x1f7)](_0x237975=>{const _0x345002=_0x5e0d3e;_0x237975[_0x345002(0x1f0)](_0x409776,_0x38fff3),_0x237975[_0x345002(0x209)](_0x345002(0x203),_0x38fff3),_0x237975[_0x345002(0x209)](_0x345002(0x207),_0x38fff3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x43ed(_0x45b113,_0x530cee){var _0x34704d=_0x3470();return _0x43ed=function(_0x43ed19,_0x101628){_0x43ed19=_0x43ed19-0xd2;var _0x4af7d8=_0x34704d[_0x43ed19];return _0x4af7d8;},_0x43ed(_0x45b113,_0x530cee);}var _0x204287=_0x43ed;(function(_0x589363,_0x3d9935){var _0x592bc0=_0x43ed,_0x5ba6ee=_0x589363();while(!![]){try{var _0x390ebf=-parseInt(_0x592bc0(0xd8))/0x1*(parseInt(_0x592bc0(0xd2))/0x2)+parseInt(_0x592bc0(0xd7))/0x3*(-parseInt(_0x592bc0(0xdd))/0x4)+-parseInt(_0x592bc0(0xdb))/0x5+parseInt(_0x592bc0(0xd3))/0x6+-parseInt(_0x592bc0(0xdc))/0x7+parseInt(_0x592bc0(0xda))/0x8*(parseInt(_0x592bc0(0xe0))/0x9)+parseInt(_0x592bc0(0xd4))/0xa;if(_0x390ebf===_0x3d9935)break;else _0x5ba6ee['push'](_0x5ba6ee['shift']());}catch(_0x41fdb0){_0x5ba6ee['push'](_0x5ba6ee['shift']());}}}(_0x3470,0x66ccd));import{Plugin as _0x5180ec}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0xe3b11}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x4d6339}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x5180ec{static get[_0x204287(0xd6)](){var _0x14aedb=_0x204287;return _0x14aedb(0xde);}static get[_0x204287(0xdf)](){return[_0xe3b11,_0x4d6339];}static get[_0x204287(0xd9)](){return!0x0;}static get[_0x204287(0xd5)](){return!0x0;}}function _0x3470(){var _0x1aaf6b=['28341KUoitS','11JuFTgH','isOfficialPlugin','808HpYQeC','997700tfGpDY','3126095sGWzLh','92wDzhNM','UploadcareImageEdit','requires','40095SvNZDq','89048zvAGas','673356WZvIyi','12120580YxzbMi','isPremiumPlugin','pluginName'];_0x3470=function(){return _0x1aaf6b;};return _0x3470();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d8667=_0x4ac8;(function(_0x5edc99,_0x157cc5){const _0x4c0ba7=_0x4ac8,_0x2b1052=_0x5edc99();while(!![]){try{const _0x321b54=parseInt(_0x4c0ba7(0x84))/0x1+-parseInt(_0x4c0ba7(0xa2))/0x2+parseInt(_0x4c0ba7(0x93))/0x3*(parseInt(_0x4c0ba7(0xbe))/0x4)+-parseInt(_0x4c0ba7(0xcd))/0x5+-parseInt(_0x4c0ba7(0xc1))/0x6*(-parseInt(_0x4c0ba7(0xab))/0x7)+parseInt(_0x4c0ba7(0xa4))/0x8*(-parseInt(_0x4c0ba7(0x92))/0x9)+parseInt(_0x4c0ba7(0x88))/0xa*(-parseInt(_0x4c0ba7(0xc8))/0xb);if(_0x321b54===_0x157cc5)break;else _0x2b1052['push'](_0x2b1052['shift']());}catch(_0x7b4eaa){_0x2b1052['push'](_0x2b1052['shift']());}}}(_0xd39e,0xc5bcf));import{Plugin as _0x326976}from'ckeditor5/src/core.js';import{IconDropbox as _0x2a2780,IconFacebook as _0x52f626,IconGoogleDrive as _0x34053e,IconGooglePhotos as _0x334f88,IconUploadcareImageUpload as _0x44ca75,IconUploadcareLink as _0x4a7497,IconOneDrive as _0x41f9b3}from'ckeditor5/src/icons.js';function _0xd39e(){const _0x4d7e3b=['url','GDrive','trialLimit','_createToolbarButton','869emEsPL','isEnabled','invalid','_normalizeConfigSourceList','push','1373175JRcSoz','type','_showLicenseError','isImageSelected','URL','has','Replace','featureNotAllowed','reduce','309202bbPSXb','registerIntegration','_createDropdownButtons','GPhotos','98390aebMrw','label','locale','Local','OneDrive','evaluationLimit','Dropbox','assetManager','destroy','forEach','3996ZwdjdS','6RgqMSQ','_createButton','shortText','uploadcare.uploader.sourceList','Facebook','tooltip','execute','text','licenseKey','_getIntegrationKey','afterInit','domainLimit','uploadcareLicenseKeyTrialLimit','withText','uploadcareLicenseKeyInvalid','346578ILLwKa','uploadcareLicenseKeyUsageLimit','2984vJWHqz','_licenseKeyCheckInterval','UploadcareUI','uploadcareLicenseKeyNotAllowed','expired','usageLimit','uploadcareLicenseKeyValid','28oUeAoC','isPremiumPlugin','upload','pluginName','entries','plugins','editor','config','get','isOfficialPlugin','commands','init','_createMenuBarButtons','icon','Uploadcare','uploadcare','bind','uploadcareLicenseKeyDomainLimit','Insert','2687924RsNqHV','ImageInsertUI','map','821382BunkYr','uploadcareLicenseKeyExpired','uploadcareLicenseKeyEvaluationLimit'];_0xd39e=function(){return _0x4d7e3b;};return _0xd39e();}import{ButtonView as _0x12d755,MenuBarMenuListItemButtonView as _0x3d872d}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x10343d}from'./uploadcareconfig.js';import{getTranslation as _0x4fc504}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x4ac8(_0x311683,_0x292b64){const _0xd39ee7=_0xd39e();return _0x4ac8=function(_0x4ac861,_0x21177b){_0x4ac861=_0x4ac861-0x7c;let _0x43c159=_0xd39ee7[_0x4ac861];return _0x43c159;},_0x4ac8(_0x311683,_0x292b64);}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x326976{[_0x3d8667(0x9b)];[_0x3d8667(0xa5)];static get[_0x3d8667(0xae)](){const _0x1b6b2c=_0x3d8667;return _0x1b6b2c(0xa6);}static get[_0x3d8667(0xb4)](){return!0x0;}static get[_0x3d8667(0xac)](){return!0x0;}[_0x3d8667(0xb6)](){const _0x43320b=_0x3d8667;this[_0x43320b(0x9b)]=this[_0x43320b(0xb1)][_0x43320b(0xb2)][_0x43320b(0xb3)](_0x43320b(0x9b));const _0x42d855=this[_0x43320b(0xb1)];this[_0x43320b(0xa5)]=setInterval(()=>{const _0x3be69c=_0x43320b;let _0x42995e;for(const _0x91e3e4 in _0x42d855){const _0x39f488=_0x91e3e4,_0x358fbe=_0x42d855[_0x39f488];if(_0x3be69c(0xaa)==_0x358fbe||_0x3be69c(0xa1)==_0x358fbe||_0x3be69c(0xc2)==_0x358fbe||_0x3be69c(0xbc)==_0x358fbe||_0x3be69c(0xa7)==_0x358fbe||_0x3be69c(0xc3)==_0x358fbe||_0x3be69c(0x9f)==_0x358fbe||_0x3be69c(0xa3)==_0x358fbe){delete _0x42d855[_0x39f488],_0x42995e=_0x358fbe,clearInterval(this[_0x3be69c(0xa5)]),this[_0x3be69c(0xa5)]=void 0x0;break;}}_0x3be69c(0xa1)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0xca)),_0x3be69c(0xc2)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0xa8)),_0x3be69c(0xbc)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0x9e)),_0x3be69c(0xa7)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0x82),_0x3be69c(0xb9)),_0x3be69c(0xc3)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0x8d)),_0x3be69c(0x9f)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0xc6)),_0x3be69c(0xa3)==_0x42995e&&_0x42d855[_0x3be69c(0x7d)](_0x3be69c(0xa9));},0x3e8);}[_0x3d8667(0x9d)](){const _0x7fdd48=_0x3d8667,{editor:_0xb69a8f}=this,_0x2fd450=_0xb69a8f[_0x7fdd48(0xb5)][_0x7fdd48(0xb3)](_0x7fdd48(0xba));if(!_0x2fd450)return;const _0x371644=this[_0x7fdd48(0xcb)](_0xb69a8f[_0x7fdd48(0xb2)][_0x7fdd48(0xb3)](_0x7fdd48(0x96)))[_0x7fdd48(0x83)]((_0x3f5ded,_0x5f57de)=>{const _0x510071=_0x7fdd48,_0x1dd4dd=this[_0x510071(0x9c)](_0x5f57de[_0x510071(0x7c)]);return _0x3f5ded[_0x1dd4dd]||(_0x3f5ded[_0x1dd4dd]=[]),_0x3f5ded[_0x1dd4dd][_0x510071(0xcc)](_0x5f57de),_0x3f5ded;},{});_0xb69a8f[_0x7fdd48(0xb0)][_0x7fdd48(0x80)](_0x7fdd48(0xbf))&&_0xb69a8f[_0x7fdd48(0xb5)][_0x7fdd48(0xb3)](_0x7fdd48(0xba))&&Object[_0x7fdd48(0xaf)](_0x371644)[_0x7fdd48(0x91)](([_0x333f1d,_0x2be522])=>{const _0x83455=_0x7fdd48;_0xb69a8f[_0x83455(0xb0)][_0x83455(0xb3)](_0x83455(0xbf))[_0x83455(0x85)]({'name':_0x333f1d,'observable':()=>_0x2fd450,'buttonViewCreator':()=>this[_0x83455(0xc7)](_0x2be522),'formViewCreator':()=>this[_0x83455(0x86)](_0x2be522),'menuBarButtonViewCreator':()=>this[_0x83455(0xb7)](_0x2be522),'override':_0x83455(0x8f)!==_0x333f1d});});}[_0x3d8667(0x90)](){const _0x5c1ee5=_0x3d8667;super[_0x5c1ee5(0x90)](),this[_0x5c1ee5(0xa5)]&&clearInterval(this[_0x5c1ee5(0xa5)]);}[_0x3d8667(0xcb)](_0x27d6cd){const _0x1ea976=_0x3d8667,{locale:_0x73445e}=this[_0x1ea976(0xb1)];return _0x27d6cd[_0x1ea976(0xc0)](_0x5e0c26=>{const _0x222f4d=_0x1ea976,_0x5ab7b1=_0x4fc504(_0x73445e,_0x5e0c26,_0x222f4d(0xbd));switch(_0x5e0c26){case _0x10343d[_0x222f4d(0x8b)]:return{'icon':_0x44ca75,'type':_0x10343d[_0x222f4d(0x8b)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0x7f)]:return{'icon':_0x4a7497,'type':_0x10343d[_0x222f4d(0x7f)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0x8e)]:return{'icon':_0x2a2780,'type':_0x10343d[_0x222f4d(0x8e)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0x97)]:return{'icon':_0x52f626,'type':_0x10343d[_0x222f4d(0x97)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0xc5)]:return{'icon':_0x34053e,'type':_0x10343d[_0x222f4d(0xc5)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0x87)]:return{'icon':_0x334f88,'type':_0x10343d[_0x222f4d(0x87)],..._0x5ab7b1};case _0x10343d[_0x222f4d(0x8c)]:return{'icon':_0x41f9b3,'type':_0x10343d[_0x222f4d(0x8c)],..._0x5ab7b1};}});}[_0x3d8667(0x9c)](_0x50dd7d){const _0x102cf4=_0x3d8667;switch(_0x50dd7d){case _0x10343d[_0x102cf4(0x8b)]:return _0x102cf4(0xad);case _0x10343d[_0x102cf4(0x7f)]:return _0x102cf4(0xc4);default:return _0x102cf4(0x8f);}}[_0x3d8667(0x94)](_0x51ec42,_0x264ecb){const _0x196a23=_0x3d8667,_0x120919=this[_0x196a23(0xb1)],_0x465309=new _0x51ec42(_0x120919[_0x196a23(0x8a)]),_0x5b2d88=_0x120919[_0x196a23(0xb5)][_0x196a23(0xb3)](_0x196a23(0xba));return _0x465309[_0x196a23(0xbb)](_0x196a23(0xc9))['to'](_0x5b2d88),_0x465309['on'](_0x196a23(0x99),()=>{const _0x40f8d9=_0x196a23;_0x5b2d88[_0x40f8d9(0x99)](_0x264ecb);}),_0x465309;}[_0x3d8667(0xc7)](_0x411392){const _0x2a1c99=_0x3d8667,{locale:_0x1f737a}=this[_0x2a1c99(0xb1)],_0x40de72=this[_0x2a1c99(0xb1)][_0x2a1c99(0xb0)][_0x2a1c99(0xb3)](_0x2a1c99(0xbf)),_0x481247=_0x411392[0x0],_0x27784e=this[_0x2a1c99(0x94)](_0x12d755,_0x481247[_0x2a1c99(0x7c)]);return _0x27784e[_0x2a1c99(0xb8)]=_0x481247[_0x2a1c99(0xb8)],_0x27784e[_0x2a1c99(0xbb)](_0x2a1c99(0x89))['to'](_0x40de72,_0x2a1c99(0x7e),_0x4dae02=>_0x4fc504(_0x1f737a,_0x481247[_0x2a1c99(0x7c)],_0x4dae02?_0x2a1c99(0x81):_0x2a1c99(0xbd))[_0x2a1c99(0x9a)]),_0x27784e[_0x2a1c99(0x98)]=!0x0,_0x27784e;}[_0x3d8667(0x86)](_0x367dda){const _0x4a9ee7=_0x3d8667,{locale:_0x1c4b18}=this[_0x4a9ee7(0xb1)],_0x26ec00=this[_0x4a9ee7(0xb1)][_0x4a9ee7(0xb0)][_0x4a9ee7(0xb3)](_0x4a9ee7(0xbf));return _0x367dda[_0x4a9ee7(0xc0)](_0x53a4e2=>{const _0x4aa88a=_0x4a9ee7,_0xca4613=this[_0x4aa88a(0x94)](_0x12d755,_0x53a4e2[_0x4aa88a(0x7c)]);return _0xca4613[_0x4aa88a(0xa0)]=!0x0,_0xca4613[_0x4aa88a(0xb8)]=_0x53a4e2[_0x4aa88a(0xb8)],_0xca4613[_0x4aa88a(0xbb)](_0x4aa88a(0x89))['to'](_0x26ec00,_0x4aa88a(0x7e),_0x2cf249=>_0x4fc504(_0x1c4b18,_0x53a4e2[_0x4aa88a(0x7c)],_0x2cf249?_0x4aa88a(0x81):_0x4aa88a(0xbd))[_0x4aa88a(0x9a)]),_0xca4613;});}[_0x3d8667(0xb7)](_0x3efcf3){const _0xde8d33=_0x3d8667;return _0x3efcf3[_0xde8d33(0xc0)](_0xb82fd1=>{const _0x503911=_0xde8d33,_0x52638a=this[_0x503911(0x94)](_0x3d872d,_0xb82fd1[_0x503911(0x7c)]);return _0x52638a[_0x503911(0xb8)]=_0xb82fd1[_0x503911(0xb8)],_0x52638a[_0x503911(0x89)]=_0xb82fd1[_0x503911(0x95)],_0x52638a;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xc5d4fd}from'ckeditor5/src/core.js';import{FileRepository as _0x44112c}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xa44965}from'./uploadcareediting.js';import{UploadUtils as _0xe677ed}from'./utils/uploadutils.js';import{getImageUrls as _0x47f27b}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0xc5d4fd{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x44112c,_0xa44965];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x85f8f8=this['editor'];if(!!!_0x85f8f8['config']['get']('uploadcare'))return;_0x85f8f8['plugins']['get'](_0x44112c)['createUploadAdapter']=_0x53d3bc=>new k(_0x53d3bc,_0x85f8f8),_0x85f8f8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x577d19,{imageElement:_0x1a7128,data:_0x4babc0})=>{_0x85f8f8['model']['change'](_0x1f17bc=>{_0x1f17bc['setAttribute']('uploadcareImageId',_0x4babc0['uploadcareImageId'],_0x1a7128);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x15d0d4,_0x1b39c2){this['loader']=_0x15d0d4,this['editor']=_0x1b39c2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x513b1a=await this['loader']['file'];return _0xe677ed['upload']({'file':_0x513b1a,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1cffbf=>{_0x1cffbf&&_0x1cffbf['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1cffbf['value']);}})['then'](async _0xe622a3=>{const {imageFallbackUrl:_0x138058,imageSources:_0x3a4c5e}=_0x47f27b(_0xe622a3['cdnUrl'],_0xe622a3['imageInfo']['width']);return{'uploadcareImageId':_0xe622a3['uuid'],'default':_0x138058,'sources':_0x3a4c5e};})['catch'](()=>{const _0x54461d=t('Cannot\x20upload\x20file:')+('\x20'+_0x513b1a['name']+'.');return Promise['reject'](_0x54461d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x30e7d9}from'../uploadcareconfig.js';export function getTranslation(_0x57e0d7,_0x3eedce,_0x2899e2){const t=_0x57e0d7['t'],_0x4c5e46=_0x57e0d7['t'];switch(_0x3eedce){case _0x30e7d9['Local']:return{'text':_0x4c5e46('Insert'===_0x2899e2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c5e46('From\x20computer')};case _0x30e7d9['URL']:return{'text':'Insert'===_0x2899e2?_0x4c5e46('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c5e46('Via\x20URL')};case _0x30e7d9['Dropbox']:return{'text':t('Insert'===_0x2899e2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x30e7d9['Facebook']:return{'text':t('Insert'===_0x2899e2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x30e7d9['GDrive']:return{'text':t('Insert'===_0x2899e2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x30e7d9['GPhotos']:return{'text':t('Insert'===_0x2899e2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x30e7d9['OneDrive']:return{'text':t('Insert'===_0x2899e2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3eedce;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x178d(){var _0xd65bdb=['getFocusableElement','6dPIaeJ','focusTracker','1740165RRrJrl','div','11037573KQrriz','fire','189064ucZvaI','createCollection','true','focusCycler','4pLCTum','4375283TYzpbE','122272amZWWl','532620iUCYGH','bindTemplate','forwardCycle','301eoweVd','7513585vOuZky','30cukBaN'];_0x178d=function(){return _0xd65bdb;};return _0x178d();}var _0xddcdd5=_0x1ccc;(function(_0x21b265,_0x2adedf){var _0x30b674=_0x1ccc,_0x346bae=_0x21b265();while(!![]){try{var _0x54feb8=-parseInt(_0x30b674(0x18c))/0x1+parseInt(_0x30b674(0x189))/0x2*(-parseInt(_0x30b674(0x195))/0x3)+-parseInt(_0x30b674(0x18b))/0x4+parseInt(_0x30b674(0x190))/0x5*(parseInt(_0x30b674(0x193))/0x6)+-parseInt(_0x30b674(0x18f))/0x7*(-parseInt(_0x30b674(0x185))/0x8)+-parseInt(_0x30b674(0x183))/0x9+parseInt(_0x30b674(0x191))/0xa*(parseInt(_0x30b674(0x18a))/0xb);if(_0x54feb8===_0x2adedf)break;else _0x346bae['push'](_0x346bae['shift']());}catch(_0x4bf96a){_0x346bae['push'](_0x346bae['shift']());}}}(_0x178d,0xba284));import{FocusTracker as _0x402ffb}from'ckeditor5/src/utils.js';function _0x1ccc(_0x1b1091,_0x34f878){var _0x178da8=_0x178d();return _0x1ccc=function(_0x1ccc47,_0x3451d2){_0x1ccc47=_0x1ccc47-0x183;var _0x13904c=_0x178da8[_0x1ccc47];return _0x13904c;},_0x1ccc(_0x1b1091,_0x34f878);}import{View as _0x1a3e36,FocusCycler as _0x171522}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1a3e36{[_0xddcdd5(0x194)];[_0xddcdd5(0x188)];constructor(_0x3e0937){var _0x5f5d92=_0xddcdd5;super(_0x3e0937),this[_0x5f5d92(0x194)]=new _0x402ffb(),this[_0x5f5d92(0x188)]=new _0x171522({'focusables':this[_0x5f5d92(0x186)](),'focusTracker':this[_0x5f5d92(0x194)]});}[_0xddcdd5(0x192)](){var _0xdb8ba5=_0xddcdd5;return{'tag':_0xdb8ba5(0x196),'attributes':{'aria-hidden':_0xdb8ba5(0x187),'tabindex':'0'},'on':{'focus':this[_0xdb8ba5(0x18d)]['to'](()=>{var _0x5605f7=_0xdb8ba5;this[_0x5605f7(0x188)][_0x5605f7(0x184)](_0x5605f7(0x18e));})}};}}
|