@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.4 → 46.0.1-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4854e2=_0x3057;(function(_0x28043d,_0x8961bf){const _0x324c08=_0x3057,_0x5bd402=_0x28043d();while(!![]){try{const _0x50ef11=parseInt(_0x324c08(0x15c))/0x1+parseInt(_0x324c08(0x15e))/0x2*(parseInt(_0x324c08(0x190))/0x3)+parseInt(_0x324c08(0x176))/0x4+-parseInt(_0x324c08(0x14c))/0x5*(-parseInt(_0x324c08(0x171))/0x6)+parseInt(_0x324c08(0x175))/0x7+parseInt(_0x324c08(0x15d))/0x8*(-parseInt(_0x324c08(0x160))/0x9)+-parseInt(_0x324c08(0x166))/0xa*(-parseInt(_0x324c08(0x19f))/0xb);if(_0x50ef11===_0x8961bf)break;else _0x5bd402['push'](_0x5bd402['shift']());}catch(_0xc48cf5){_0x5bd402['push'](_0x5bd402['shift']());}}}(_0x3b4d,0x84e33));import{Plugin as _0x2b6fd1}from'ckeditor5/src/core.js';import{Dialog as _0x21942a}from'ckeditor5/src/ui.js';function _0x3057(_0x4444bc,_0x3d1817){const _0x3b4d83=_0x3b4d();return _0x3057=function(_0x30578b,_0x1a9546){_0x30578b=_0x30578b-0x14a;let _0x5e1861=_0x3b4d83[_0x30578b];return _0x5e1861;},_0x3057(_0x4444bc,_0x3d1817);}import{createElement as _0x2f6253,global as _0x197197,uid as _0x5c5c6a}from'ckeditor5/src/utils.js';function _0x3b4d(){const _0x340736=['PictureEditing','pluginName','_ctxElement','isOfficialPlugin','init','document','_initConfig','schema','cleanupImage','11fVrJiL','uc-config','elementToAttribute','39815fFPpbs','uploadcareImageId','isPremiumPlugin','imageInline','uploadcare.pubkey','configElement','requires','replaceImageSource','iconHrefResolver','attributeToAttribute','contentLanguage','get','imageBlock','ctxElement','config','true','211764tlXxVx','928TnLsEk','930040UgfHRW','_initConversion','55089mmMKRy','uploadcare','execute','_initImageProcessingIndicator','_initCtx','once','1623530IAhilL','commands','join','_configElement','upcast','fromCharCode','input[uploadcare-file-input]','render','\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','getAttribute','210HNCQWW','removeAttribute','afterInit','model','229509pWvjGb','414856eDUJlI','ucContextId','closeMax','isRegistered','getSelectedElement','querySelector','uploader-','locale','for','selection','UploadcareEditing','map','href','remove','view','downcast','conversion','#uc-icon-arrow-down','uc-upload-ctx-provider','uploadcareImageReplace','editor','uploadcare.uploader','appendChild','destroy','_initSchema','editing','3SxWaxq','add','insertImage','body','extend','listenTo'];_0x3b4d=function(){return _0x340736;};return _0x3b4d();}import{UploadcareCommand as _0x3490e0}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x185dc3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4aeb92}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2b6fd1{[_0x4854e2(0x169)]=null;[_0x4854e2(0x198)]=null;static get[_0x4854e2(0x197)](){const _0x4949cc=_0x4854e2;return _0x4949cc(0x180);}static get[_0x4854e2(0x152)](){const _0x168c33=_0x4854e2;return[_0x168c33(0x196),_0x185dc3,_0x21942a];}static get[_0x4854e2(0x199)](){return!0x0;}static get[_0x4854e2(0x14e)](){return!0x0;}[_0x4854e2(0x177)];get[_0x4854e2(0x151)](){const _0x47396d=_0x4854e2;return this[_0x47396d(0x169)];}get[_0x4854e2(0x159)](){const _0x527d71=_0x4854e2;return this[_0x527d71(0x198)];}constructor(_0x203ce9){const _0x45fb1e=_0x4854e2;super(_0x203ce9),this[_0x45fb1e(0x177)]=_0x5c5c6a();}[_0x4854e2(0x19a)](){const _0x233aaa=_0x4854e2,_0xb74142=this[_0x233aaa(0x18a)];_0xb74142[_0x233aaa(0x167)][_0x233aaa(0x191)](_0x233aaa(0x161),new _0x3490e0(_0xb74142));}[_0x4854e2(0x173)](){const _0x1a4b1f=_0x4854e2;this[_0x1a4b1f(0x18e)](),this[_0x1a4b1f(0x15f)](),this[_0x1a4b1f(0x19c)](),this[_0x1a4b1f(0x164)](),this[_0x1a4b1f(0x163)](),this[_0x1a4b1f(0x195)](this[_0x1a4b1f(0x18a)],_0x1a4b1f(0x18d),()=>{const _0xf442f=_0x1a4b1f;this[_0xf442f(0x169)]&&(this[_0xf442f(0x169)][_0xf442f(0x183)](),this[_0xf442f(0x169)]=null),this[_0xf442f(0x198)]&&(this[_0xf442f(0x198)][_0xf442f(0x183)](),this[_0xf442f(0x198)]=null);const _0x1864d2=_0x197197[_0xf442f(0x19b)][_0xf442f(0x17b)](_0xf442f(0x16c));_0x1864d2&&_0x1864d2[_0xf442f(0x183)]();}),async function(_0x43563e){const _0x5562c2=_0x11439a([0x41,0x78,0x6f,0x45,0x62,0x39,0x6d,0x46,0x56,0x5a,0x59,0x77,0x42,0x47,0x49,0x74,0x7a,0x30,0x55,0x33,0x44,0x43,0x4e,0x65,0x63,0x4f,0x76,0x36,0x4b,0x72,0x58,0x4d,0x34,0x37,0x31,0x32,0x50,0x6e,0x68,0x70,0x75,0x6c,0x48,0x66,0x53,0x38,0x52,0x4c,0x6a,0x35,0x69,0x54,0x73,0x6b,0x64,0x67,0x57,0x79,0x61,0x71,0x51,0x4a]),_0x14fdf2=0x101a9e7e,_0x39a9a6=0x101df116^_0x14fdf2,_0x1449cd=window[_0x11439a([0x44,0x61,0x74,0x65])][_0x11439a([0x6e,0x6f,0x77])](),_0x3e6b59=_0x43563e[_0x11439a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3108d3=new window[(_0x11439a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bce32=>{_0x3e6b59[_0x11439a([0x6f,0x6e,0x63,0x65])](_0x11439a([0x72,0x65,0x61,0x64,0x79]),_0x1bce32);}),_0x332966={[_0x11439a([0x6b,0x74,0x79])]:_0x11439a([0x45,0x43]),[_0x11439a([0x75,0x73,0x65])]:_0x11439a([0x73,0x69,0x67]),[_0x11439a([0x63,0x72,0x76])]:_0x11439a([0x50,0x2d,0x32,0x35,0x36]),[_0x11439a([0x78])]:_0x11439a([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]),[_0x11439a([0x79])]:_0x11439a([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]),[_0x11439a([0x61,0x6c,0x67])]:_0x11439a([0x45,0x53,0x32,0x35,0x36])},_0x22c6ab=_0x3e6b59[_0x11439a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11439a([0x67,0x65,0x74])](_0x11439a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b9d48(){let _0x3c46a4,_0x5a015d=null,_0x4a0492=null;try{if(_0x22c6ab==_0x11439a([0x47,0x50,0x4c]))return _0x11439a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c46a4=_0x2ebf81(),!_0x3c46a4)return _0x11439a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c46a4[_0x11439a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a0492=_0x2841b5(_0x3c46a4[_0x11439a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c46a4[_0x11439a([0x6a,0x74,0x69])])),await _0x4004b7()?_0x2cd789()?_0x3ac201()?_0x11439a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b08a4()?(_0x3c46a4[_0x11439a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11439a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a015d=_0x438bfe(_0x11439a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c46a4[_0x11439a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11439a([0x74,0x72,0x69,0x61,0x6c])&&(_0x5a015d=_0x438bfe(_0x11439a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b6274()):_0x11439a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11439a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11439a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11439a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ac201(){const _0x20412c=[_0x11439a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11439a([0x74,0x72,0x69,0x61,0x6c])][_0x11439a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c46a4[_0x11439a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1449cd/0x3e8:0xe10*_0x39a9a6;return _0x3c46a4[_0x11439a([0x65,0x78,0x70])]<_0x20412c;}function _0x2cd789(){const _0x352a6f=_0x3c46a4[_0x11439a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x352a6f&&(!!_0x352a6f[_0x11439a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11439a([0x2a]))||!!_0x352a6f[_0x11439a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11439a([0x55,0x50,0x4c,0x43])));}function _0x1b08a4(){const _0x11539e=_0x3057,_0x3f8d36=_0x3c46a4[_0x11439a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f8d36||0x0==_0x3f8d36[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c49bf}=new URL(window[_0x11439a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x11539e(0x182)]);if(_0x3f8d36[_0x11439a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c49bf))return!0x0;const _0x369eb1=_0x4c49bf[_0x11439a([0x73,0x70,0x6c,0x69,0x74])](_0x11439a([0x2e]));return _0x3f8d36[_0x11439a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33527c=>_0x33527c[_0x11439a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11439a([0x2a])))[_0x11439a([0x6d,0x61,0x70])](_0x1d662a=>_0x1d662a[_0x11439a([0x73,0x70,0x6c,0x69,0x74])](_0x11439a([0x2e])))[_0x11439a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42743e=>_0x42743e[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x369eb1[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11439a([0x6d,0x61,0x70])](_0xb06069=>Array(_0x369eb1[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb06069[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11439a([0x66,0x69,0x6c,0x6c])](_0xb06069[0x0]===_0x11439a([0x2a])?_0x11439a([0x2a]):'')[_0x11439a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb06069))[_0x11439a([0x73,0x6f,0x6d,0x65])](_0x5215c6=>_0x369eb1[_0x11439a([0x65,0x76,0x65,0x72,0x79])]((_0x436d03,_0x4a84b0)=>_0x5215c6[_0x4a84b0]===_0x436d03||_0x5215c6[_0x4a84b0]===_0x11439a([0x2a])));}function _0x5b6274(){return _0x5a015d&&_0x4a0492?new window[(_0x11439a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bfe7d,_0x443cbc)=>{_0x5a015d[_0x11439a([0x74,0x68,0x65,0x6e])](_0x1bfe7d,_0x443cbc),_0x4a0492[_0x11439a([0x74,0x68,0x65,0x6e])](_0x58b51c=>{_0x58b51c!=_0x11439a([0x56,0x61,0x6c,0x69,0x64])&&_0x1bfe7d(_0x58b51c);},_0x443cbc);}):_0x5a015d||_0x4a0492||_0x11439a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2841b5(_0x796be2,_0x54cc65){return new window[(_0x11439a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5455b8=>{if(_0x599b99())return _0x5455b8(_0x11439a([0x56,0x61,0x6c,0x69,0x64]));_0x1f060c(),_0x3e6b59[_0x11439a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11439a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bd689=!0x1;const _0x2bf99b=_0x5c5c6a();function _0x53d699(_0x4f2737){return!!_0x4f2737&&(typeof _0x4f2737===_0x11439a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f2737===_0x11439a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f2737[_0x11439a([0x74,0x68,0x65,0x6e])]===_0x11439a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f2737[_0x11439a([0x63,0x61,0x74,0x63,0x68])]===_0x11439a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x448b49(_0x14f6f1){_0x37fbf0(_0x14f6f1)[_0x11439a([0x74,0x68,0x65,0x6e])](_0x31ebb6=>{if(!_0x31ebb6||_0x31ebb6[_0x11439a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11439a([0x6f,0x6b]))return _0x11439a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x554a40(_0x5664ad(_0x2bf99b+_0x54cc65))!=_0x31ebb6[_0x11439a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11439a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11439a([0x56,0x61,0x6c,0x69,0x64]);})[_0x11439a([0x74,0x68,0x65,0x6e])](_0x549b10=>(_0x457025(),_0x549b10),()=>{const _0x3b7c1c=_0xefa11b();return null==_0x3b7c1c?(_0x457025(),_0x11439a([0x56,0x61,0x6c,0x69,0x64])):_0x11439a(_0x1449cd-_0x3b7c1c>(0x34161a7e^_0x14fdf2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11439a([0x74,0x68,0x65,0x6e])](_0x5455b8)[_0x11439a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5455b8(_0x11439a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c1ffc=0x102c70fe^_0x14fdf2;function _0x457025(){const _0x427441=_0x11439a([0x6c,0x6c,0x63,0x74,0x2d])+_0x554a40(_0x5664ad(_0x796be2)),_0x4f0df1=_0x4014dc(_0x554a40(window[_0x11439a([0x4d,0x61,0x74,0x68])][_0x11439a([0x63,0x65,0x69,0x6c])](_0x1449cd/_0x4c1ffc)));window[_0x11439a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11439a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x427441,_0x4f0df1);}function _0xefa11b(){const _0x1dc903=_0x11439a([0x6c,0x6c,0x63,0x74,0x2d])+_0x554a40(_0x5664ad(_0x796be2)),_0x1faf29=window[_0x11439a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11439a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dc903);return _0x1faf29?window[_0x11439a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4014dc(_0x1faf29),0x10)*_0x4c1ffc:null;}function _0x37fbf0(_0xe27790){return new window[(_0x11439a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bbcd3,_0x404882)=>{_0xe27790[_0x11439a([0x74,0x68,0x65,0x6e])](_0x4bbcd3,_0x404882),window[_0x11439a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x404882,0x101b4abe^_0x14fdf2);});}}_0x3e6b59[_0x11439a([0x6f,0x6e])](_0x11439a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c7dbf,_0x5a32a4)=>{if(_0x5a32a4[0x0]!=_0x796be2)return _0x5455b8(_0x11439a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a32a4[0x1]={..._0x5a32a4[0x1],[_0x11439a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2bf99b};},{[_0x11439a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11439a([0x68,0x69,0x67,0x68])}),_0x3e6b59[_0x11439a([0x6f,0x6e])](_0x11439a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a1524=>{_0x53d699(_0x1a1524[_0x11439a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bd689=!0x0,_0x448b49(_0x1a1524[_0x11439a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11439a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11439a([0x6c,0x6f,0x77])}),_0x3108d3[_0x11439a([0x74,0x68,0x65,0x6e])](()=>{_0x2bd689||_0x5455b8(_0x11439a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x599b99(){return _0x3e6b59[_0x11439a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11439a([0x76,0x69,0x65,0x77])][_0x11439a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11439a([0x61,0x75,0x74,0x6f]);}function _0x1f060c(){_0x3e6b59[_0x11439a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11439a([0x76,0x69,0x65,0x77])][_0x11439a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11439a([0x61,0x75,0x74,0x6f]);}}function _0x438bfe(_0x111416){const _0x3577a7=[new window[(_0x11439a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15e94a=>setTimeout(_0x15e94a,0x1013a0b2^_0x14fdf2)),_0x3108d3[_0x11439a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11439a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc9c7f=>{let _0x215e47=0x0;_0x3e6b59[_0x11439a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11439a([0x6f,0x6e])](_0x11439a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1fd53,_0x56dd38)=>{_0x56dd38[0x0][_0x11439a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x215e47++,_0x215e47==(0x101a9f86^_0x14fdf2)&&(_0xc9c7f(),_0x1fd53[_0x11439a([0x6f,0x66,0x66])]());});}))];return window[_0x11439a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11439a([0x72,0x61,0x63,0x65])](_0x3577a7)[_0x11439a([0x74,0x68,0x65,0x6e])](()=>_0x111416);}async function _0x4e6f65(){await _0x3108d3,_0x3e6b59[_0x11439a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11439a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3326f6,_0x3e6b59[_0x11439a([0x6d,0x6f,0x64,0x65,0x6c])][_0x11439a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3326f6,_0x3e6b59[_0x11439a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11439a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c631a(_0x44077a){const _0x9a65e9=_0x4c47fa();_0x3e6b59[_0x9a65e9]=_0x11439a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44077a,_0x44077a!=_0x11439a([0x56,0x61,0x6c,0x69,0x64])&&_0x4e6f65();}function _0x4c47fa(){const _0x335abb=window[_0x11439a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11439a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11439a([0x6e,0x6f,0x77])]())[_0x11439a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11439a([0x2e]),'');let _0x3f7fa5=_0x11439a([0x41]);for(let _0x2d3cb8=0x0;_0x2d3cb8<_0x335abb[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d3cb8+=0x2){let _0x39810a=window[_0x11439a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x335abb[_0x11439a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d3cb8,_0x2d3cb8+0x2));_0x39810a>=_0x5562c2[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39810a-=_0x5562c2[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f7fa5+=_0x5562c2[_0x39810a];}return _0x3f7fa5;}function _0x2ebf81(){const _0x59e8c6=_0x22c6ab[_0x11439a([0x73,0x70,0x6c,0x69,0x74])](_0x11439a([0x2e]));if(0x3!=_0x59e8c6[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e3cd9(_0x59e8c6[0x1]);function _0x2e3cd9(_0x2d7d60){const _0x228575=_0x546e8e(_0x2d7d60);return _0x228575&&_0x536baf()?_0x228575:null;function _0x536baf(){const _0xe662a0=_0x228575[_0x11439a([0x6a,0x74,0x69])],_0x1a4325=window[_0x11439a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe662a0[_0x11439a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe662a0[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cd625={..._0x228575,[_0x11439a([0x6a,0x74,0x69])]:_0xe662a0[_0x11439a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe662a0[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cd625[_0x11439a([0x76,0x63])],_0x5664ad(_0x1cd625)==_0x1a4325;}}}async function _0x4004b7(){let _0x2058d1=!0x0;try{const _0x18fe8e=_0x22c6ab[_0x11439a([0x73,0x70,0x6c,0x69,0x74])](_0x11439a([0x2e])),[_0x34d900,_0x2a1087,_0x182fed]=_0x18fe8e;return _0x5e39ad(_0x34d900),await _0x14822f(_0x34d900,_0x2a1087,_0x182fed),_0x2058d1;}catch{return!0x1;}function _0x5e39ad(_0x5d049e){const _0x2596a2=_0x546e8e(_0x5d049e);_0x2596a2&&_0x2596a2[_0x11439a([0x61,0x6c,0x67])]==_0x11439a([0x45,0x53,0x32,0x35,0x36])||(_0x2058d1=!0x1);}async function _0x14822f(_0xcaa3ad,_0x337ccc,_0x2c9bc1){const _0x4d4aba=window[_0x11439a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11439a([0x66,0x72,0x6f,0x6d])](_0x514801(_0x2c9bc1),_0x3790c7=>_0x3790c7[_0x11439a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e3c35=new window[(_0x11439a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11439a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcaa3ad+_0x11439a([0x2e])+_0x337ccc),_0x47d906=window[_0x11439a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11439a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47d906)return;const _0x128995=await _0x47d906[_0x11439a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11439a([0x6a,0x77,0x6b]),_0x332966,{[_0x11439a([0x6e,0x61,0x6d,0x65])]:_0x11439a([0x45,0x43,0x44,0x53,0x41]),[_0x11439a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11439a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11439a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47d906[_0x11439a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11439a([0x6e,0x61,0x6d,0x65])]:_0x11439a([0x45,0x43,0x44,0x53,0x41]),[_0x11439a([0x68,0x61,0x73,0x68])]:{[_0x11439a([0x6e,0x61,0x6d,0x65])]:_0x11439a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x128995,_0x4d4aba,_0x2e3c35)||(_0x2058d1=!0x1);}}function _0x546e8e(_0x3f8dcd){return _0x3f8dcd[_0x11439a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11439a([0x65,0x79]))?JSON[_0x11439a([0x70,0x61,0x72,0x73,0x65])](_0x514801(_0x3f8dcd)):null;}function _0x514801(_0x51232a){return window[_0x11439a([0x61,0x74,0x6f,0x62])](_0x51232a[_0x11439a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11439a([0x2b]))[_0x11439a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11439a([0x2f])));}function _0x5664ad(_0x2ecd68){let _0x448062=0x1505;function _0x60e69f(_0xf53780){for(let _0x4149d1=0x0;_0x4149d1<_0xf53780[_0x11439a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4149d1++){const _0x222ee5=_0xf53780[_0x11439a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4149d1);_0x448062=(_0x448062<<0x5)+_0x448062+_0x222ee5,_0x448062&=_0x448062;}}function _0x394802(_0x558528){Array[_0x11439a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x558528)?_0x558528[_0x11439a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x394802):_0x558528&&typeof _0x558528==_0x11439a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11439a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x558528)[_0x11439a([0x73,0x6f,0x72,0x74])]()[_0x11439a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x9697d0,_0x24f4b4])=>{_0x60e69f(_0x9697d0),_0x394802(_0x24f4b4);}):_0x60e69f(window[_0x11439a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x558528));}return _0x394802(_0x2ecd68),_0x448062>>>0x0;}function _0x554a40(_0x435191){return _0x435191[_0x11439a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11439a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11439a([0x30]));}function _0x4014dc(_0xd34801){return _0xd34801[_0x11439a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11439a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11439a([0x6a,0x6f,0x69,0x6e])]('');}function _0x3326f6(){}function _0x11439a(_0x1c6503){const _0x55a958=_0x3057;return _0x1c6503[_0x55a958(0x181)](_0x55757a=>String[_0x55a958(0x16b)](_0x55757a))[_0x55a958(0x168)]('');}_0x1c631a(await _0x4b9d48());}(this);}[_0x4854e2(0x18e)](){const _0x48b35=_0x4854e2,_0x533bbc=this[_0x48b35(0x18a)][_0x48b35(0x174)][_0x48b35(0x19d)];_0x533bbc[_0x48b35(0x179)](_0x48b35(0x158))&&_0x533bbc[_0x48b35(0x194)](_0x48b35(0x158),{'allowAttributes':[_0x48b35(0x14d)]}),_0x533bbc[_0x48b35(0x179)](_0x48b35(0x14f))&&_0x533bbc[_0x48b35(0x194)](_0x48b35(0x14f),{'allowAttributes':[_0x48b35(0x14d)]});}[_0x4854e2(0x15f)](){const _0x1257fc=_0x4854e2,_0x2a5025=this[_0x1257fc(0x18a)];_0x2a5025[_0x1257fc(0x186)][_0x1257fc(0x17e)](_0x1257fc(0x185))[_0x1257fc(0x155)]({'model':_0x1257fc(0x14d),'view':_0x1257fc(0x16f)}),_0x2a5025[_0x1257fc(0x186)][_0x1257fc(0x17e)](_0x1257fc(0x16a))[_0x1257fc(0x14b)]({'model':{'key':_0x1257fc(0x14d),'value':_0x504e27=>_0x504e27[_0x1257fc(0x170)](_0x1257fc(0x16f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3a970a=_0x2a5025[_0x1257fc(0x167)][_0x1257fc(0x157)](_0x1257fc(0x153));_0x3a970a&&this[_0x1257fc(0x195)](_0x3a970a,_0x1257fc(0x19e),(_0x3d549b,[_0x265d3b,_0x7a6f14])=>{const _0x17f9c3=_0x1257fc;_0x265d3b[_0x17f9c3(0x172)](_0x17f9c3(0x14d),_0x7a6f14);});}[_0x4854e2(0x19c)](){const _0x36f68b=_0x4854e2,_0x57ea64=this[_0x36f68b(0x18a)][_0x36f68b(0x15a)][_0x36f68b(0x157)](_0x36f68b(0x18b))||{},_0x438f2f=this[_0x36f68b(0x18a)][_0x36f68b(0x15a)][_0x36f68b(0x157)](_0x36f68b(0x150))||'';this[_0x36f68b(0x169)]=_0x2f6253(_0x197197[_0x36f68b(0x19b)],_0x36f68b(0x14a),{..._0x57ea64,'pubkey':_0x438f2f,'ctx-name':_0x36f68b(0x17c)+this[_0x36f68b(0x177)],'sourceList':'','imgOnly':_0x36f68b(0x15b),'removeCopyright':_0x36f68b(0x15b),'localeName':this[_0x36f68b(0x18a)][_0x36f68b(0x17d)][_0x36f68b(0x156)],'externalSourcesEmbedCss':_0x36f68b(0x16e)}),this[_0x36f68b(0x169)][_0x36f68b(0x154)]=_0x38016c=>{const _0x11f481=_0x36f68b;if(_0x11f481(0x178)==_0x38016c)return _0x11f481(0x187);},_0x197197[_0x36f68b(0x19b)][_0x36f68b(0x193)][_0x36f68b(0x18c)](this[_0x36f68b(0x169)]);}[_0x4854e2(0x164)](){const _0x597d19=_0x4854e2;this[_0x597d19(0x198)]=_0x2f6253(_0x197197[_0x597d19(0x19b)],_0x597d19(0x188),{'ctx-name':_0x597d19(0x17c)+this[_0x597d19(0x177)]}),_0x197197[_0x597d19(0x19b)][_0x597d19(0x193)][_0x597d19(0x18c)](this[_0x597d19(0x198)]);}[_0x4854e2(0x163)](){const _0x139017=_0x4854e2,_0x3c2e32=this[_0x139017(0x18a)][_0x139017(0x167)][_0x139017(0x157)](_0x139017(0x192));_0x3c2e32&&this[_0x139017(0x195)](_0x3c2e32,_0x139017(0x162),()=>{const _0x553cb3=_0x139017,_0x5b2ca9=this[_0x553cb3(0x18a)][_0x553cb3(0x174)][_0x553cb3(0x19b)][_0x553cb3(0x17f)][_0x553cb3(0x17a)]();_0x5b2ca9&&_0x5b2ca9[_0x553cb3(0x170)](_0x553cb3(0x14d))&&this[_0x553cb3(0x18a)][_0x553cb3(0x18f)][_0x553cb3(0x184)][_0x553cb3(0x165)](_0x553cb3(0x16d),()=>{const _0x266746=_0x553cb3;_0x4aeb92(this[_0x266746(0x18a)],_0x5b2ca9);});});const _0x467625=this[_0x139017(0x18a)][_0x139017(0x167)][_0x139017(0x157)](_0x139017(0x189));_0x467625&&this[_0x139017(0x195)](_0x467625,_0x139017(0x162),()=>{const _0x5b485f=_0x139017,_0x49533b=this[_0x5b485f(0x18a)][_0x5b485f(0x174)][_0x5b485f(0x19b)][_0x5b485f(0x17f)][_0x5b485f(0x17a)]();_0x49533b&&_0x49533b[_0x5b485f(0x170)](_0x5b485f(0x14d))&&this[_0x5b485f(0x18a)][_0x5b485f(0x18f)][_0x5b485f(0x184)][_0x5b485f(0x165)](_0x5b485f(0x16d),()=>{const _0x44d902=_0x5b485f;_0x4aeb92(this[_0x44d902(0x18a)],_0x49533b);});});}}
|
|
23
|
+
function _0x4b55(){const _0x381caf=['ucContextId','downcast','isRegistered','for','imageBlock','870XgUjia','render','model','contentLanguage','uploadcare','UploadcareEditing','upcast','5367648wvzgqH','true','16wQONIa','7286384LllJWi','uc-config','_initCtx','document','ctxElement','getAttribute','243531UrdKNI','_configElement','imageInline','uploadcare.pubkey','isOfficialPlugin','_ctxElement','uploadcareImageReplace','init','appendChild','52044NQIUhV','remove','uc-upload-ctx-provider','removeAttribute','editing','locale','execute','map','extend','2366794QIOZyf','uploadcareImageId','add','replaceImageSource','selection','insertImage','_initSchema','getSelectedElement','listenTo','271413CVIqMG','body','fromCharCode','elementToAttribute','#uc-icon-arrow-down','data-uc-image-id','_initImageProcessingIndicator','cleanupImage','uploadcare.uploader','requires','once','editor','conversion','isPremiumPlugin','commands','\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','PictureEditing','schema','get','input[uploadcare-file-input]','href','querySelector','closeMax','_initConfig','attributeToAttribute','afterInit','configElement','config','_initConversion','view','pluginName','iconHrefResolver','16781859ruTBCY','join','destroy','uploader-'];_0x4b55=function(){return _0x381caf;};return _0x4b55();}const _0x2894bd=_0x4b60;(function(_0x42646d,_0x4b900c){const _0xd38ee=_0x4b60,_0x483399=_0x42646d();while(!![]){try{const _0x11faf4=parseInt(_0xd38ee(0x1f1))/0x1+-parseInt(_0xd38ee(0x23c))/0x2+-parseInt(_0xd38ee(0x22a))/0x3*(parseInt(_0xd38ee(0x223))/0x4)+-parseInt(_0xd38ee(0x21a))/0x5*(parseInt(_0xd38ee(0x233))/0x6)+parseInt(_0xd38ee(0x224))/0x7+parseInt(_0xd38ee(0x221))/0x8+parseInt(_0xd38ee(0x211))/0x9;if(_0x11faf4===_0x4b900c)break;else _0x483399['push'](_0x483399['shift']());}catch(_0x26336f){_0x483399['push'](_0x483399['shift']());}}}(_0x4b55,0xcac57));import{Plugin as _0x27f434}from'ckeditor5/src/core.js';import{Dialog as _0x216eb5}from'ckeditor5/src/ui.js';import{createElement as _0x3cb199,global as _0x5c081a,uid as _0x42c9e1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1cd646}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1af35e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x30dc50}from'./utils/editingutils.js';function _0x4b60(_0x19f36e,_0xd79291){const _0x4b555a=_0x4b55();return _0x4b60=function(_0x4b60bc,_0x4af7fd){_0x4b60bc=_0x4b60bc-0x1f0;let _0x1c0b90=_0x4b555a[_0x4b60bc];return _0x1c0b90;},_0x4b60(_0x19f36e,_0xd79291);}export class UploadcareEditing extends _0x27f434{[_0x2894bd(0x22b)]=null;[_0x2894bd(0x22f)]=null;static get[_0x2894bd(0x20f)](){const _0x404906=_0x2894bd;return _0x404906(0x21f);}static get[_0x2894bd(0x1fa)](){const _0x1d706b=_0x2894bd;return[_0x1d706b(0x201),_0x1af35e,_0x216eb5];}static get[_0x2894bd(0x22e)](){return!0x0;}static get[_0x2894bd(0x1fe)](){return!0x0;}[_0x2894bd(0x215)];get[_0x2894bd(0x20b)](){const _0x4defe5=_0x2894bd;return this[_0x4defe5(0x22b)];}get[_0x2894bd(0x228)](){const _0x77e787=_0x2894bd;return this[_0x77e787(0x22f)];}constructor(_0x1e9e36){const _0x76ee04=_0x2894bd;super(_0x1e9e36),this[_0x76ee04(0x215)]=_0x42c9e1();}[_0x2894bd(0x231)](){const _0x34e0ee=_0x2894bd,_0xbd5cb6=this[_0x34e0ee(0x1fc)];_0xbd5cb6[_0x34e0ee(0x1ff)][_0x34e0ee(0x23e)](_0x34e0ee(0x21e),new _0x1cd646(_0xbd5cb6));}[_0x2894bd(0x20a)](){const _0x5adf79=_0x2894bd;this[_0x5adf79(0x242)](),this[_0x5adf79(0x20d)](),this[_0x5adf79(0x208)](),this[_0x5adf79(0x226)](),this[_0x5adf79(0x1f7)](),this[_0x5adf79(0x1f0)](this[_0x5adf79(0x1fc)],_0x5adf79(0x213),()=>{const _0x297bc7=_0x5adf79;this[_0x297bc7(0x22b)]&&(this[_0x297bc7(0x22b)][_0x297bc7(0x234)](),this[_0x297bc7(0x22b)]=null),this[_0x297bc7(0x22f)]&&(this[_0x297bc7(0x22f)][_0x297bc7(0x234)](),this[_0x297bc7(0x22f)]=null);const _0x56df0a=_0x5c081a[_0x297bc7(0x227)][_0x297bc7(0x206)](_0x297bc7(0x204));_0x56df0a&&_0x56df0a[_0x297bc7(0x234)]();}),async function(_0x14a5a9){const _0x354ba7=_0x21ffb5([0x72,0x32,0x6c,0x79,0x64,0x74,0x4a,0x4c,0x5a,0x58,0x30,0x56,0x69,0x70,0x66,0x45,0x38,0x48,0x65,0x34,0x43,0x6e,0x47,0x6d,0x7a,0x33,0x59,0x35,0x42,0x68,0x51,0x57,0x73,0x67,0x50,0x77,0x49,0x52,0x39,0x55,0x4e,0x78,0x6a,0x75,0x53,0x61,0x4b,0x41,0x44,0x54,0x76,0x31,0x37,0x6b,0x71,0x62,0x6f,0x36,0x46,0x63,0x4f,0x4d]),_0x54a515=0x59eb7e2a,_0x5e604a=0x59ec11b2^_0x54a515,_0x465fd7=window[_0x21ffb5([0x44,0x61,0x74,0x65])][_0x21ffb5([0x6e,0x6f,0x77])](),_0x1693a5=_0x14a5a9[_0x21ffb5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58b26b=new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x318c65=>{_0x1693a5[_0x21ffb5([0x6f,0x6e,0x63,0x65])](_0x21ffb5([0x72,0x65,0x61,0x64,0x79]),_0x318c65);}),_0x4564fc={[_0x21ffb5([0x6b,0x74,0x79])]:_0x21ffb5([0x45,0x43]),[_0x21ffb5([0x75,0x73,0x65])]:_0x21ffb5([0x73,0x69,0x67]),[_0x21ffb5([0x63,0x72,0x76])]:_0x21ffb5([0x50,0x2d,0x32,0x35,0x36]),[_0x21ffb5([0x78])]:_0x21ffb5([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]),[_0x21ffb5([0x79])]:_0x21ffb5([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]),[_0x21ffb5([0x61,0x6c,0x67])]:_0x21ffb5([0x45,0x53,0x32,0x35,0x36])},_0x5b89a8=_0x1693a5[_0x21ffb5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21ffb5([0x67,0x65,0x74])](_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b56c7(){let _0x2bb5c5,_0x5f2996=null,_0x4c05bd=null;try{if(_0x5b89a8==_0x21ffb5([0x47,0x50,0x4c]))return _0x21ffb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2bb5c5=_0x3d82a8(),!_0x2bb5c5)return _0x21ffb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2bb5c5[_0x21ffb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c05bd=_0x4d62ce(_0x2bb5c5[_0x21ffb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2bb5c5[_0x21ffb5([0x6a,0x74,0x69])])),await _0x325b3f()?_0x2cd158()?_0x526953()?_0x21ffb5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x543a0e()?(_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ffb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5f2996=_0x4facea(_0x21ffb5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ffb5([0x74,0x72,0x69,0x61,0x6c])&&(_0x5f2996=_0x4facea(_0x21ffb5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ccba3()):_0x21ffb5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21ffb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21ffb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x21ffb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x526953(){const _0x79957f=[_0x21ffb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21ffb5([0x74,0x72,0x69,0x61,0x6c])][_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x465fd7/0x3e8:0xe10*_0x5e604a;return _0x2bb5c5[_0x21ffb5([0x65,0x78,0x70])]<_0x79957f;}function _0x2cd158(){const _0x39beb8=_0x2bb5c5[_0x21ffb5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39beb8&&(!!_0x39beb8[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ffb5([0x2a]))||!!_0x39beb8[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ffb5([0x55,0x50,0x4c,0x43])));}function _0x543a0e(){const _0x2b3299=_0x4b60,_0x23919e=_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23919e||0x0==_0x23919e[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x594789}=new URL(window[_0x21ffb5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2b3299(0x205)]);if(_0x23919e[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x594789))return!0x0;const _0xc7af07=_0x594789[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e]));return _0x23919e[_0x21ffb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f22b6=>_0x1f22b6[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ffb5([0x2a])))[_0x21ffb5([0x6d,0x61,0x70])](_0x10bf3a=>_0x10bf3a[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e])))[_0x21ffb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c8ab3=>_0x5c8ab3[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xc7af07[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21ffb5([0x6d,0x61,0x70])](_0x3a3e7b=>Array(_0xc7af07[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a3e7b[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21ffb5([0x66,0x69,0x6c,0x6c])](_0x3a3e7b[0x0]===_0x21ffb5([0x2a])?_0x21ffb5([0x2a]):'')[_0x21ffb5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a3e7b))[_0x21ffb5([0x73,0x6f,0x6d,0x65])](_0x3befec=>_0xc7af07[_0x21ffb5([0x65,0x76,0x65,0x72,0x79])]((_0x533fab,_0x3762b2)=>_0x3befec[_0x3762b2]===_0x533fab||_0x3befec[_0x3762b2]===_0x21ffb5([0x2a])));}function _0x4ccba3(){return _0x5f2996&&_0x4c05bd?new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e7a36,_0x485e98)=>{_0x5f2996[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x2e7a36,_0x485e98),_0x4c05bd[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x495162=>{_0x495162!=_0x21ffb5([0x56,0x61,0x6c,0x69,0x64])&&_0x2e7a36(_0x495162);},_0x485e98);}):_0x5f2996||_0x4c05bd||_0x21ffb5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d62ce(_0xc24792,_0x440e2a){return new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d38d=>{if(_0x5e3543())return _0x29d38d(_0x21ffb5([0x56,0x61,0x6c,0x69,0x64]));_0x351798(),_0x1693a5[_0x21ffb5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21ffb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bcf0b=!0x1;const _0x36ba0a=_0x42c9e1();function _0x99d62a(_0x339803){return!!_0x339803&&(typeof _0x339803===_0x21ffb5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x339803===_0x21ffb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x339803[_0x21ffb5([0x74,0x68,0x65,0x6e])]===_0x21ffb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x339803[_0x21ffb5([0x63,0x61,0x74,0x63,0x68])]===_0x21ffb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e79cc(_0x16c276){_0x36239a(_0x16c276)[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x3d53c4=>{if(!_0x3d53c4||_0x3d53c4[_0x21ffb5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21ffb5([0x6f,0x6b]))return _0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4bd609(_0x4216ed(_0x36ba0a+_0x440e2a))!=_0x3d53c4[_0x21ffb5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21ffb5([0x56,0x61,0x6c,0x69,0x64]);})[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x58e639=>(_0x361282(),_0x58e639),()=>{const _0x2596bb=_0x129849();return null==_0x2596bb?(_0x361282(),_0x21ffb5([0x56,0x61,0x6c,0x69,0x64])):_0x21ffb5(_0x465fd7-_0x2596bb>(0x7de7fa2a^_0x54a515)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x29d38d)[_0x21ffb5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29d38d(_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42d374=0x59dd90aa^_0x54a515;function _0x361282(){const _0x285a03=_0x21ffb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bd609(_0x4216ed(_0xc24792)),_0x3640eb=_0x32575f(_0x4bd609(window[_0x21ffb5([0x4d,0x61,0x74,0x68])][_0x21ffb5([0x63,0x65,0x69,0x6c])](_0x465fd7/_0x42d374)));window[_0x21ffb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ffb5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x285a03,_0x3640eb);}function _0x129849(){const _0x8718ef=_0x21ffb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bd609(_0x4216ed(_0xc24792)),_0x4cc405=window[_0x21ffb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ffb5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8718ef);return _0x4cc405?window[_0x21ffb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32575f(_0x4cc405),0x10)*_0x42d374:null;}function _0x36239a(_0x3988ec){return new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51a56f,_0x35ae94)=>{_0x3988ec[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x51a56f,_0x35ae94),window[_0x21ffb5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35ae94,0x59eaaaea^_0x54a515);});}}_0x1693a5[_0x21ffb5([0x6f,0x6e])](_0x21ffb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46e3f6,_0x488497)=>{if(_0x488497[0x0]!=_0xc24792)return _0x29d38d(_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x488497[0x1]={..._0x488497[0x1],[_0x21ffb5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36ba0a};},{[_0x21ffb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ffb5([0x68,0x69,0x67,0x68])}),_0x1693a5[_0x21ffb5([0x6f,0x6e])](_0x21ffb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fbff2=>{_0x99d62a(_0x1fbff2[_0x21ffb5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bcf0b=!0x0,_0x1e79cc(_0x1fbff2[_0x21ffb5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21ffb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ffb5([0x6c,0x6f,0x77])}),_0x58b26b[_0x21ffb5([0x74,0x68,0x65,0x6e])](()=>{_0x5bcf0b||_0x29d38d(_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e3543(){return _0x1693a5[_0x21ffb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ffb5([0x76,0x69,0x65,0x77])][_0x21ffb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21ffb5([0x61,0x75,0x74,0x6f]);}function _0x351798(){_0x1693a5[_0x21ffb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ffb5([0x76,0x69,0x65,0x77])][_0x21ffb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21ffb5([0x61,0x75,0x74,0x6f]);}}function _0x4facea(_0x48c952){const _0x4ec5a9=[new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x79faca=>setTimeout(_0x79faca,0x59e240e6^_0x54a515)),_0x58b26b[_0x21ffb5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8adbe0=>{let _0x3f2ac9=0x0;_0x1693a5[_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ffb5([0x6f,0x6e])](_0x21ffb5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31ac2c,_0x119203)=>{_0x119203[0x0][_0x21ffb5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f2ac9++,_0x3f2ac9==(0x59eb7fd2^_0x54a515)&&(_0x8adbe0(),_0x31ac2c[_0x21ffb5([0x6f,0x66,0x66])]());});}))];return window[_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21ffb5([0x72,0x61,0x63,0x65])](_0x4ec5a9)[_0x21ffb5([0x74,0x68,0x65,0x6e])](()=>_0x48c952);}async function _0x545d82(){await _0x58b26b,_0x1693a5[_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ffb5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c6ec1,_0x1693a5[_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ffb5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c6ec1,_0x1693a5[_0x21ffb5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10d7b2(_0x89f7f){const _0x9616ce=_0x449bb3();_0x1693a5[_0x9616ce]=_0x21ffb5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x89f7f,_0x89f7f!=_0x21ffb5([0x56,0x61,0x6c,0x69,0x64])&&_0x545d82();}function _0x449bb3(){const _0x59c341=window[_0x21ffb5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21ffb5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21ffb5([0x6e,0x6f,0x77])]())[_0x21ffb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21ffb5([0x2e]),'');let _0x3d2ac5=_0x21ffb5([0x72]);for(let _0x2f17c3=0x0;_0x2f17c3<_0x59c341[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f17c3+=0x2){let _0x4c62f1=window[_0x21ffb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c341[_0x21ffb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f17c3,_0x2f17c3+0x2));_0x4c62f1>=_0x354ba7[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c62f1-=_0x354ba7[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d2ac5+=_0x354ba7[_0x4c62f1];}return _0x3d2ac5;}function _0x3d82a8(){const _0x1298c5=_0x5b89a8[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e]));if(0x3!=_0x1298c5[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a68b7(_0x1298c5[0x1]);function _0x3a68b7(_0x1be66d){const _0x44a412=_0x52cb62(_0x1be66d);return _0x44a412&&_0xa9bc1c()?_0x44a412:null;function _0xa9bc1c(){const _0x2e7377=_0x44a412[_0x21ffb5([0x6a,0x74,0x69])],_0x2a16bc=window[_0x21ffb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e7377[_0x21ffb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7377[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x90da3={..._0x44a412,[_0x21ffb5([0x6a,0x74,0x69])]:_0x2e7377[_0x21ffb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e7377[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x90da3[_0x21ffb5([0x76,0x63])],_0x4216ed(_0x90da3)==_0x2a16bc;}}}async function _0x325b3f(){let _0xa242d8=!0x0;try{const _0x2ad448=_0x5b89a8[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e])),[_0x251cec,_0x3283ad,_0x452e38]=_0x2ad448;return _0x1be59a(_0x251cec),await _0x5872d9(_0x251cec,_0x3283ad,_0x452e38),_0xa242d8;}catch{return!0x1;}function _0x1be59a(_0x3fd5a1){const _0x43c251=_0x52cb62(_0x3fd5a1);_0x43c251&&_0x43c251[_0x21ffb5([0x61,0x6c,0x67])]==_0x21ffb5([0x45,0x53,0x32,0x35,0x36])||(_0xa242d8=!0x1);}async function _0x5872d9(_0x5c5e35,_0x5d6816,_0x17e040){const _0x56fa4e=window[_0x21ffb5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21ffb5([0x66,0x72,0x6f,0x6d])](_0x37857b(_0x17e040),_0x53bd3c=>_0x53bd3c[_0x21ffb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4affb0=new window[(_0x21ffb5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21ffb5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c5e35+_0x21ffb5([0x2e])+_0x5d6816),_0x111156=window[_0x21ffb5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21ffb5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x111156)return;const _0xebebc5=await _0x111156[_0x21ffb5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21ffb5([0x6a,0x77,0x6b]),_0x4564fc,{[_0x21ffb5([0x6e,0x61,0x6d,0x65])]:_0x21ffb5([0x45,0x43,0x44,0x53,0x41]),[_0x21ffb5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21ffb5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21ffb5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x111156[_0x21ffb5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21ffb5([0x6e,0x61,0x6d,0x65])]:_0x21ffb5([0x45,0x43,0x44,0x53,0x41]),[_0x21ffb5([0x68,0x61,0x73,0x68])]:{[_0x21ffb5([0x6e,0x61,0x6d,0x65])]:_0x21ffb5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xebebc5,_0x56fa4e,_0x4affb0)||(_0xa242d8=!0x1);}}function _0x52cb62(_0x46ea55){return _0x46ea55[_0x21ffb5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21ffb5([0x65,0x79]))?JSON[_0x21ffb5([0x70,0x61,0x72,0x73,0x65])](_0x37857b(_0x46ea55)):null;}function _0x37857b(_0x3a84d4){return window[_0x21ffb5([0x61,0x74,0x6f,0x62])](_0x3a84d4[_0x21ffb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21ffb5([0x2b]))[_0x21ffb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21ffb5([0x2f])));}function _0x4216ed(_0x24d87b){let _0x262463=0x1505;function _0x7afbd3(_0x5d7606){for(let _0x1e3867=0x0;_0x1e3867<_0x5d7606[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e3867++){const _0x5833e3=_0x5d7606[_0x21ffb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e3867);_0x262463=(_0x262463<<0x5)+_0x262463+_0x5833e3,_0x262463&=_0x262463;}}function _0x4f9fad(_0x4edb82){Array[_0x21ffb5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4edb82)?_0x4edb82[_0x21ffb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f9fad):_0x4edb82&&typeof _0x4edb82==_0x21ffb5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21ffb5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4edb82)[_0x21ffb5([0x73,0x6f,0x72,0x74])]()[_0x21ffb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b52a2,_0x4e46ac])=>{_0x7afbd3(_0x1b52a2),_0x4f9fad(_0x4e46ac);}):_0x7afbd3(window[_0x21ffb5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4edb82));}return _0x4f9fad(_0x24d87b),_0x262463>>>0x0;}function _0x4bd609(_0x2c6e57){return _0x2c6e57[_0x21ffb5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21ffb5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21ffb5([0x30]));}function _0x32575f(_0x4c9721){return _0x4c9721[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21ffb5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21ffb5([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c6ec1(){}function _0x21ffb5(_0xd6114e){const _0x5b9e9f=_0x4b60;return _0xd6114e[_0x5b9e9f(0x23a)](_0x5510b7=>String[_0x5b9e9f(0x1f3)](_0x5510b7))[_0x5b9e9f(0x212)]('');}_0x10d7b2(await _0x4b56c7());}(this);}[_0x2894bd(0x242)](){const _0x2f5b3f=_0x2894bd,_0x440b7f=this[_0x2f5b3f(0x1fc)][_0x2f5b3f(0x21c)][_0x2f5b3f(0x202)];_0x440b7f[_0x2f5b3f(0x217)](_0x2f5b3f(0x219))&&_0x440b7f[_0x2f5b3f(0x23b)](_0x2f5b3f(0x219),{'allowAttributes':[_0x2f5b3f(0x23d)]}),_0x440b7f[_0x2f5b3f(0x217)](_0x2f5b3f(0x22c))&&_0x440b7f[_0x2f5b3f(0x23b)](_0x2f5b3f(0x22c),{'allowAttributes':[_0x2f5b3f(0x23d)]});}[_0x2894bd(0x20d)](){const _0x4da586=_0x2894bd,_0xae38d8=this[_0x4da586(0x1fc)];_0xae38d8[_0x4da586(0x1fd)][_0x4da586(0x218)](_0x4da586(0x216))[_0x4da586(0x209)]({'model':_0x4da586(0x23d),'view':_0x4da586(0x1f6)}),_0xae38d8[_0x4da586(0x1fd)][_0x4da586(0x218)](_0x4da586(0x220))[_0x4da586(0x1f4)]({'model':{'key':_0x4da586(0x23d),'value':_0x34db99=>_0x34db99[_0x4da586(0x229)](_0x4da586(0x1f6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3ad309=_0xae38d8[_0x4da586(0x1ff)][_0x4da586(0x203)](_0x4da586(0x23f));_0x3ad309&&this[_0x4da586(0x1f0)](_0x3ad309,_0x4da586(0x1f8),(_0x3d39c9,[_0x21c041,_0x14704c])=>{const _0x448ad3=_0x4da586;_0x21c041[_0x448ad3(0x236)](_0x448ad3(0x23d),_0x14704c);});}[_0x2894bd(0x208)](){const _0x48c9ad=_0x2894bd,_0x5460b6=this[_0x48c9ad(0x1fc)][_0x48c9ad(0x20c)][_0x48c9ad(0x203)](_0x48c9ad(0x1f9))||{},_0x28a117=this[_0x48c9ad(0x1fc)][_0x48c9ad(0x20c)][_0x48c9ad(0x203)](_0x48c9ad(0x22d))||'';this[_0x48c9ad(0x22b)]=_0x3cb199(_0x5c081a[_0x48c9ad(0x227)],_0x48c9ad(0x225),{..._0x5460b6,'pubkey':_0x28a117,'ctx-name':_0x48c9ad(0x214)+this[_0x48c9ad(0x215)],'sourceList':'','imgOnly':_0x48c9ad(0x222),'removeCopyright':_0x48c9ad(0x222),'localeName':this[_0x48c9ad(0x1fc)][_0x48c9ad(0x238)][_0x48c9ad(0x21d)],'externalSourcesEmbedCss':_0x48c9ad(0x200)}),this[_0x48c9ad(0x22b)][_0x48c9ad(0x210)]=_0x387bef=>{const _0x1c5de8=_0x48c9ad;if(_0x1c5de8(0x207)==_0x387bef)return _0x1c5de8(0x1f5);},_0x5c081a[_0x48c9ad(0x227)][_0x48c9ad(0x1f2)][_0x48c9ad(0x232)](this[_0x48c9ad(0x22b)]);}[_0x2894bd(0x226)](){const _0x46adb8=_0x2894bd;this[_0x46adb8(0x22f)]=_0x3cb199(_0x5c081a[_0x46adb8(0x227)],_0x46adb8(0x235),{'ctx-name':_0x46adb8(0x214)+this[_0x46adb8(0x215)]}),_0x5c081a[_0x46adb8(0x227)][_0x46adb8(0x1f2)][_0x46adb8(0x232)](this[_0x46adb8(0x22f)]);}[_0x2894bd(0x1f7)](){const _0x3739c9=_0x2894bd,_0x4ac9ee=this[_0x3739c9(0x1fc)][_0x3739c9(0x1ff)][_0x3739c9(0x203)](_0x3739c9(0x241));_0x4ac9ee&&this[_0x3739c9(0x1f0)](_0x4ac9ee,_0x3739c9(0x239),()=>{const _0x509653=_0x3739c9,_0x50fc4d=this[_0x509653(0x1fc)][_0x509653(0x21c)][_0x509653(0x227)][_0x509653(0x240)][_0x509653(0x243)]();_0x50fc4d&&_0x50fc4d[_0x509653(0x229)](_0x509653(0x23d))&&this[_0x509653(0x1fc)][_0x509653(0x237)][_0x509653(0x20e)][_0x509653(0x1fb)](_0x509653(0x21b),()=>{const _0x1f4f8a=_0x509653;_0x30dc50(this[_0x1f4f8a(0x1fc)],_0x50fc4d);});});const _0x226cf2=this[_0x3739c9(0x1fc)][_0x3739c9(0x1ff)][_0x3739c9(0x203)](_0x3739c9(0x230));_0x226cf2&&this[_0x3739c9(0x1f0)](_0x226cf2,_0x3739c9(0x239),()=>{const _0x1942d4=_0x3739c9,_0x353d6f=this[_0x1942d4(0x1fc)][_0x1942d4(0x21c)][_0x1942d4(0x227)][_0x1942d4(0x240)][_0x1942d4(0x243)]();_0x353d6f&&_0x353d6f[_0x1942d4(0x229)](_0x1942d4(0x23d))&&this[_0x1942d4(0x1fc)][_0x1942d4(0x237)][_0x1942d4(0x20e)][_0x1942d4(0x1fb)](_0x1942d4(0x21b),()=>{const _0x272b23=_0x1942d4;_0x30dc50(this[_0x272b23(0x1fc)],_0x353d6f);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x5972a7,ObservableMixin as _0x2c9cc1}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x435553}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2caefb}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x8174df}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x2a8732}from'../../utils/uploadutils.js';import{getImageUrls as _0x11196c,getImageDimension as _0x315f0e}from'../../utils/editingutils.js';import{isAncestor as _0x5046a7}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2c9cc1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1ee99a,_0x5ada6c,_0x10f5a5){super(),this['_editor']=_0x1ee99a,this['_dialog']=_0x5ada6c,this['_imageElement']=_0x10f5a5,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 _0x4aa181=this['_imageElement'],_0x332650=_0x4aa181['getAttribute']('uploadcareImageId'),_0x1dac75=_0x4aa181['getAttribute']('src');if(_0x332650)await this['_loadImageInfo'](_0x332650,_0x1dac75);else{if(this['_imageCache']['has'](_0x1dac75)){const _0x3a0f25=this['_imageCache']['get'](_0x1dac75);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a0f25['url'],this['imageDimension']=_0x3a0f25['dimension'],this['imageId']=_0x3a0f25['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29212b}=this['_editor'],t=_0x29212b['t'],_0x26406d=new _0x8174df(_0x29212b,this['imageStatus'],this['_attributes']);_0x26406d['bind']('status')['to'](this,'imageStatus'),_0x26406d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x26406d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x26406d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x26406d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2caefb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x26406d,'position':_0x435553['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x26406d['focus']();},'onHide':()=>{_0x26406d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4eb6b8=>!_0x5046a7(_0x4eb6b8,_0x26406d['element'])}});}['_loadImageInfo'](_0x5e7ccd,_0x55f710){return _0x2a8732['getInfo'](_0x5e7ccd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5ab8b6=>{const {width:_0x86f508,height:_0x1542cf}=_0x5ab8b6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55f710,this['imageDimension']={'width':_0x86f508,'height':_0x1542cf},this['imageId']=_0x5e7ccd;})['catch'](_0x344ff7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x344ff7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x22c694,_0x20161d){return this['_getImageAsFile'](_0x22c694)['then'](_0x1f7298=>_0x2a8732['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x20161d['signal'],'file':_0x1f7298,'onProgress':_0x12e81d=>{_0x12e81d&&_0x12e81d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x12e81d['value']));}}))['then'](_0x5a8dbd=>{const {width:_0x5373bf,height:_0x4e7296}=_0x5a8dbd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a8dbd['cdnUrl'],this['imageDimension']={'width':_0x5373bf,'height':_0x4e7296},this['imageId']=_0x5a8dbd['uuid'],this['imageUploadProgress']=null;const _0x328e69=_0x22c694['getAttribute']('src');this['_imageCache']['set'](_0x328e69,{'id':_0x5a8dbd['uuid'],'url':_0x5a8dbd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x42db94=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x42db94['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2a6e6b,_0x42cb56){_0x2a6e6b['on']('apply',(_0x4cc24,_0x3a2e2c)=>{this['_replaceImage'](_0x42cb56,_0x3a2e2c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2a6e6b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2a6e6b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x40ae21,_0x2b3ea1,_0x472d7f){const _0x26711c=this['_editor'],{width:_0x2ae655,height:_0x3ec2ba}=_0x315f0e(_0x2b3ea1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4affe1,imageSources:_0x2e86c6}=_0x11196c(_0x2b3ea1,_0x2ae655);_0x26711c['model']['change'](_0x2213df=>{if('$graveyard'===_0x40ae21['root']['rootName']){_0x26711c['execute']('insertImage',{'imageType':_0x40ae21['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x40ae21['getAttributes']()),'uploadcareImageId':_0x472d7f,'src':_0x4affe1,'sources':_0x2e86c6,'width':_0x2ae655,'height':_0x3ec2ba}});const _0xe94034=_0x40ae21['getChildren']();_0x40ae21=_0x26711c['model']['document']['selection']['getSelectedElement']();for(const _0x3b95f9 of _0xe94034)_0x2213df['append'](_0x2213df['cloneElement'](_0x3b95f9),_0x40ae21);}else _0x2213df['setSelection'](_0x40ae21,'on'),_0x26711c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x40ae21['getAttributes']()),'uploadcareImageId':_0x472d7f,'src':_0x4affe1,'sources':_0x2e86c6,'width':_0x2ae655,'height':_0x3ec2ba},_0x40ae21);_0x2213df['setSelection'](_0x40ae21,'on');});}async['_getImageAsFile'](_0x3a0ccc){const _0x5154ec=_0x5972a7['window'],_0x5d9396=_0x5972a7['document']['location']['href'],_0x4a0505=new _0x5154ec['URL'](_0x3a0ccc['getAttribute']('src'),_0x5d9396);if('data:'===_0x4a0505['protocol']){const _0x235bfa=_0x4a0505['href']['split'](','),_0x2939ea=_0x235bfa[0x0]['match'](/:(.*?);/)[0x1],_0x1d1f38=_0x2939ea['split']('/')[0x1],_0x4023ce=_0x5154ec['atob'](_0x235bfa[_0x235bfa['length']-0x1]);let _0x1f131b=_0x4023ce['length'];const _0x262cf5=new _0x5154ec['Uint8Array'](_0x1f131b);for(;_0x1f131b--;)_0x262cf5[_0x1f131b]=_0x4023ce['charCodeAt'](_0x1f131b);return new _0x5154ec['File']([_0x262cf5],'image.'+_0x1d1f38,{'type':_0x2939ea});}const _0x1c72ad=_0x4a0505['href']['split']('/'),_0x53c0bb=_0x1c72ad[_0x1c72ad['length']-0x1],_0x5c33c6=_0x53c0bb['split']('.')[0x1];return _0x5154ec['fetch'](_0x4a0505['href'])['then'](_0x180cab=>_0x180cab['clone']()['blob']())['then'](_0x26374f=>new _0x5154ec['File']([_0x26374f],_0x53c0bb,{'type':'image/'+_0x5c33c6}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x459b(_0x8b8bfa,_0x49ab0a){const _0x53dcac=_0x53dc();return _0x459b=function(_0x459b31,_0x41205b){_0x459b31=_0x459b31-0xa6;let _0x515785=_0x53dcac[_0x459b31];return _0x515785;},_0x459b(_0x8b8bfa,_0x49ab0a);}function _0x53dc(){const _0x31a379=['281646oiBmBa','9416MooXrN','2397232XOecJp','uc-cloud-image-editor','408630sbqFVY','setTemplate','959GsptKZ','image-edit','uc-light','605020QwFAXu','bindTemplate','349024vZbZxX','693846rILAHl','imageSrc','6uohfsi','set','ck-uploadcare-theme'];_0x53dc=function(){return _0x31a379;};return _0x53dc();}(function(_0x4db0ab,_0x2971bc){const _0x198cde=_0x459b,_0x397649=_0x4db0ab();while(!![]){try{const _0x3cacda=parseInt(_0x198cde(0xb6))/0x1+-parseInt(_0x198cde(0xab))/0x2*(-parseInt(_0x198cde(0xa8))/0x3)+-parseInt(_0x198cde(0xad))/0x4+parseInt(_0x198cde(0xb4))/0x5+parseInt(_0x198cde(0xaf))/0x6+parseInt(_0x198cde(0xb1))/0x7*(parseInt(_0x198cde(0xac))/0x8)+-parseInt(_0x198cde(0xa6))/0x9;if(_0x3cacda===_0x2971bc)break;else _0x397649['push'](_0x397649['shift']());}catch(_0x5709a8){_0x397649['push'](_0x397649['shift']());}}}(_0x53dc,0x4a5f2));import{View as _0x474e12}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x474e12{constructor(_0x44cd6f,_0x5929fe){const _0x3f8d7b=_0x459b;super(_0x44cd6f);const _0x186dab=this[_0x3f8d7b(0xb5)];this[_0x3f8d7b(0xa9)](_0x3f8d7b(0xa7),''),this[_0x3f8d7b(0xb0)]({'tag':_0x3f8d7b(0xae),'attributes':{..._0x5929fe,'class':[_0x3f8d7b(0xb3),_0x3f8d7b(0xaa)],'ctx-name':_0x3f8d7b(0xb2),'cdn-url':_0x186dab['to'](_0x3f8d7b(0xa7))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x268f7f}from'ckeditor5/src/icons.js';import{ButtonView as _0x21fbeb,IconView as _0xf7074,View as _0x103d96}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x103d96{constructor(_0x5b20b8){super(_0x5b20b8);const t=_0x5b20b8['t'];this['set']('errorType',null);const _0x392e70=new _0x21fbeb(_0x5b20b8);_0x392e70['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x392e70['withText']=!0x0,_0x392e70['class']='ck-button-action',_0x392e70['on']('execute',()=>{this['fire']('retry');}),_0x392e70['bind']('isVisible')['to'](this,'errorType',_0x11d9a7=>'NotFound'!==_0x11d9a7);const _0x168eac=new _0xf7074();_0x168eac['content']=_0x268f7f,_0x168eac['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x36dba5=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':[_0x168eac,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x36dba5['to']('errorType',_0x214113=>t('NotFound'!==_0x214113?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x392e70]},{'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 _0xddb351,View as _0x277c48}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x277c48{constructor(_0xec4be3){super(_0xec4be3);const t=_0xec4be3['t'],_0x364f08=this['bindTemplate'],_0x16f520=new _0xddb351();_0x16f520['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':[_0x16f520,{'text':_0x364f08['to']('imageUploadProgress',_0x549ce7=>t('Loading\x20image...')+'\x20('+(_0x549ce7||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
|
-
function
|
|
23
|
+
function _0x2d9b(_0x1cebbc,_0x3d37db){const _0x9ed4fa=_0x9ed4();return _0x2d9b=function(_0x2d9b04,_0x20deef){_0x2d9b04=_0x2d9b04-0x1a8;let _0x348469=_0x9ed4fa[_0x2d9b04];return _0x348469;},_0x2d9b(_0x1cebbc,_0x3d37db);}function _0x9ed4(){const _0x1bbc6a=['once','set','_editingView','_items','_waitForImageEditorComponent','uploading','observe','getFocusableElement','add','2390945YRGIYw','fire','_addUploadcareImageEditorListeners','addEventListener','focus','disconnect','setTemplate','_setView','5195533sMJexx','8opskqB','status','nodeName','88126QhCMYN','change:status','ck-reset_all-excluded','10KPPLGe','_focusableView','28420018NJIwKs','render','length','querySelector','_errorView','ck-uploadcare-form','_loadingView','uc-cloud-image-editor','div','addMany','8sWkRvM','detail','cdnUrl','1136703nqLGfw','addedNodes','target','createCollection','retry','element','18sThQnb','toLowerCase','ready','cancel','error','clear','11552769NDqlrh','apply','filter','4710888zOfaLT','_addErrorViewListeners'];_0x9ed4=function(){return _0x1bbc6a;};return _0x9ed4();}const _0x12c321=_0x2d9b;(function(_0x5be230,_0x2cf155){const _0x435b8b=_0x2d9b,_0xa06243=_0x5be230();while(!![]){try{const _0xe5d991=-parseInt(_0x435b8b(0x1ac))/0x1*(-parseInt(_0x435b8b(0x1c4))/0x2)+parseInt(_0x435b8b(0x1be))/0x3*(-parseInt(_0x435b8b(0x1a9))/0x4)+-parseInt(_0x435b8b(0x1d8))/0x5+parseInt(_0x435b8b(0x1cd))/0x6+parseInt(_0x435b8b(0x1a8))/0x7*(-parseInt(_0x435b8b(0x1bb))/0x8)+-parseInt(_0x435b8b(0x1ca))/0x9+parseInt(_0x435b8b(0x1af))/0xa*(parseInt(_0x435b8b(0x1b1))/0xb);if(_0xe5d991===_0x2cf155)break;else _0xa06243['push'](_0xa06243['shift']());}catch(_0x5322c4){_0xa06243['push'](_0xa06243['shift']());}}}(_0x9ed4,0xdbbe5));import{View as _0x423bf0}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3e70c4}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x109950}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x39278e}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2525c6}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2525c6{[_0x12c321(0x1d2)];[_0x12c321(0x1b7)];[_0x12c321(0x1b5)];[_0x12c321(0x1d1)];[_0x12c321(0x1b0)];constructor(_0x17e2bc,_0x2c66f7,_0x1e6e77){const _0x58d9f0=_0x12c321;super(_0x17e2bc),this[_0x58d9f0(0x1d2)]=this[_0x58d9f0(0x1c1)](),this[_0x58d9f0(0x1b7)]=new _0x3e70c4(_0x17e2bc),this[_0x58d9f0(0x1b5)]=new _0x109950(_0x17e2bc),this[_0x58d9f0(0x1d1)]=new _0x39278e(_0x17e2bc,_0x1e6e77),this[_0x58d9f0(0x1b0)]=new _0x423bf0(_0x17e2bc),this[_0x58d9f0(0x1b0)][_0x58d9f0(0x1de)](this[_0x58d9f0(0x1d6)]()),this[_0x58d9f0(0x1d0)](_0x58d9f0(0x1aa),_0x2c66f7),this[_0x58d9f0(0x1de)]({'tag':_0x58d9f0(0x1b9),'attributes':{'class':['ck',_0x58d9f0(0x1ae),_0x58d9f0(0x1b6)],'tabindex':'-1'},'children':this[_0x58d9f0(0x1d2)]}),this[_0x58d9f0(0x1df)](),this[_0x58d9f0(0x1cf)](_0x58d9f0(0x1b2),()=>{const _0x3ca438=_0x58d9f0;this[_0x3ca438(0x1d3)](this[_0x3ca438(0x1c3)],_0x472af2=>{const _0x3dfd63=_0x3ca438;this[_0x3dfd63(0x1da)](_0x472af2);});}),this['on'](_0x58d9f0(0x1ad),()=>{const _0x1cdce1=_0x58d9f0;this[_0x1cdce1(0x1df)]();}),this[_0x58d9f0(0x1ce)]();}[_0x12c321(0x1dc)](){const _0x536378=_0x12c321;this[_0x536378(0x1c3)][_0x536378(0x1dc)]();}[_0x12c321(0x1df)](){const _0x4c61ea=_0x12c321;switch(this[_0x4c61ea(0x1d2)][_0x4c61ea(0x1c9)](),this[_0x4c61ea(0x1aa)]){case _0x4c61ea(0x1d4):this[_0x4c61ea(0x1d2)][_0x4c61ea(0x1d7)](this[_0x4c61ea(0x1b7)]);break;case _0x4c61ea(0x1c8):this[_0x4c61ea(0x1d2)][_0x4c61ea(0x1d7)](this[_0x4c61ea(0x1b5)]);break;case _0x4c61ea(0x1c6):this[_0x4c61ea(0x1d2)][_0x4c61ea(0x1ba)]([this[_0x4c61ea(0x1d1)],this[_0x4c61ea(0x1b0)]]);}}[_0x12c321(0x1d3)](_0x8316e2,_0x2884a8){const _0xa9e3e6=_0x12c321,_0x1040c9=_0xa9e3e6(0x1b8),_0x476e31=_0x8316e2[_0xa9e3e6(0x1b4)](_0x1040c9);if(_0x476e31)return _0x2884a8(_0x476e31);const _0xf486eb=new MutationObserver(_0x19c69d=>{const _0x9392d9=_0xa9e3e6,_0x503ab8=_0x19c69d[_0x9392d9(0x1cc)](_0x96264d=>_0x96264d[_0x9392d9(0x1c0)]===_0x8316e2&&_0x96264d[_0x9392d9(0x1bf)][_0x9392d9(0x1b3)]>0x0&&_0x96264d[_0x9392d9(0x1bf)][0x0][_0x9392d9(0x1ab)][_0x9392d9(0x1c5)]()===_0x1040c9);_0x503ab8[_0x9392d9(0x1b3)]&&(_0xf486eb[_0x9392d9(0x1dd)](),_0x2884a8(_0x503ab8[0x0][_0x9392d9(0x1bf)][0x0]));});_0xf486eb[_0xa9e3e6(0x1d5)](_0x8316e2,{'childList':!0x0,'subtree':!0x0});}[_0x12c321(0x1da)](_0x3a0d69){const _0x2f389=_0x12c321;_0x3a0d69[_0x2f389(0x1db)](_0x2f389(0x1cb),_0x56f63f=>{const _0x2bb936=_0x2f389;this[_0x2bb936(0x1d9)](_0x2bb936(0x1cb),{'imageSrc':_0x56f63f[_0x2bb936(0x1bc)][_0x2bb936(0x1bd)]});}),_0x3a0d69[_0x2f389(0x1db)](_0x2f389(0x1c7),()=>{const _0xe34373=_0x2f389;this[_0xe34373(0x1d9)](_0xe34373(0x1c7));});}[_0x12c321(0x1ce)](){const _0x2f8b46=_0x12c321;this[_0x2f8b46(0x1b5)]['on'](_0x2f8b46(0x1c2),()=>{const _0x3c5ee6=_0x2f8b46;this[_0x3c5ee6(0x1d9)](_0x3c5ee6(0x1c2));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f1451=_0xbd32;(function(_0x58329c,_0x9ce3e7){const _0x512d72=_0xbd32,_0x129282=_0x58329c();while(!![]){try{const _0x52313d=parseInt(_0x512d72(0x114))/0x1*(parseInt(_0x512d72(0x10f))/0x2)+-parseInt(_0x512d72(0x11d))/0x3+parseInt(_0x512d72(0x129))/0x4*(-parseInt(_0x512d72(0x126))/0x5)+-parseInt(_0x512d72(0x121))/0x6*(parseInt(_0x512d72(0x116))/0x7)+parseInt(_0x512d72(0x10c))/0x8*(parseInt(_0x512d72(0x12c))/0x9)+-parseInt(_0x512d72(0x127))/0xa*(parseInt(_0x512d72(0x12b))/0xb)+parseInt(_0x512d72(0x117))/0xc*(parseInt(_0x512d72(0x113))/0xd);if(_0x52313d===_0x9ce3e7)break;else _0x129282['push'](_0x129282['shift']());}catch(_0x7c86a6){_0x129282['push'](_0x129282['shift']());}}}(_0x2bb7,0x75fdc));import{Command as _0x4f11a4}from'ckeditor5/src/core.js';import{Dialog as _0x35258d}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0xa90a93}from'./ui/uploadcareimageeditcontroller.js';function _0x2bb7(){const _0x28506e=['46046azoVCD','27OCklpM','model','isEnabled','1392760ZfAIox','requires','getSelectedElement','1822vBrtlr','isActive','get','selection','4121wMrFjA','159IFNQPI','imageInline','3353Hsqshk','83928AmFiPd','_isEditable','config','bind','set','execute','830214TBemne','editor','document','refresh','10956fSGWSX','plugins','imageBlock','unbind','element','8735fjffeb','890tGjZki','imageEditController','2008pEALgf','uploadcare.allowExternalImagesEditing'];_0x2bb7=function(){return _0x28506e;};return _0x2bb7();}import{createEditabilityChecker as _0x268fc8}from'../utils/editingutils.js';function _0xbd32(_0x37b506,_0x39b8ba){const _0x2bb76e=_0x2bb7();return _0xbd32=function(_0xbd32f7,_0x2dd936){_0xbd32f7=_0xbd32f7-0x10a;let _0x49702f=_0x2bb76e[_0xbd32f7];return _0x49702f;},_0xbd32(_0x37b506,_0x39b8ba);}export class UploadcareImageEditCommand extends _0x4f11a4{[_0x2f1451(0x128)];static get[_0x2f1451(0x10d)](){return[_0x35258d];}[_0x2f1451(0x118)];constructor(_0xf17433){const _0x1ff5b0=_0x2f1451;super(_0xf17433),this[_0x1ff5b0(0x128)]=void 0x0,this[_0x1ff5b0(0x118)]=_0x268fc8(_0xf17433[_0x1ff5b0(0x119)][_0x1ff5b0(0x111)](_0x1ff5b0(0x12a))||[]),this[_0x1ff5b0(0x11b)]({'isActive':!0x1});}[_0x2f1451(0x120)](){const _0x3ef7dd=_0x2f1451,_0x5da2c3=this[_0x3ef7dd(0x11e)][_0x3ef7dd(0x10a)][_0x3ef7dd(0x11f)][_0x3ef7dd(0x112)][_0x3ef7dd(0x10e)]();this[_0x3ef7dd(0x10b)]=this[_0x3ef7dd(0x118)](_0x5da2c3);}[_0x2f1451(0x11c)](){const _0x15ccee=_0x2f1451;this[_0x15ccee(0x128)]&&(this[_0x15ccee(0x124)](_0x15ccee(0x110)),this[_0x15ccee(0x128)]=void 0x0);const _0x32a922=this[_0x15ccee(0x11e)][_0x15ccee(0x10a)][_0x15ccee(0x11f)][_0x15ccee(0x112)][_0x15ccee(0x10e)]();_0x32a922&&(_0x32a922['is'](_0x15ccee(0x125),_0x15ccee(0x123))||_0x32a922['is'](_0x15ccee(0x125),_0x15ccee(0x115)))&&(this[_0x15ccee(0x128)]=new _0xa90a93(this[_0x15ccee(0x11e)],this[_0x15ccee(0x11e)][_0x15ccee(0x122)][_0x15ccee(0x111)](_0x35258d),_0x32a922),this[_0x15ccee(0x11a)](_0x15ccee(0x110))['to'](this[_0x15ccee(0x128)],_0x15ccee(0x110)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x472cc=_0x3e83;(function(_0x44e067,_0x2fc10b){const _0x35db0c=_0x3e83,_0x4159af=_0x44e067();while(!![]){try{const _0x4411ae=-parseInt(_0x35db0c(0x132))/0x1*(parseInt(_0x35db0c(0x123))/0x2)+-parseInt(_0x35db0c(0x121))/0x3*(-parseInt(_0x35db0c(0x12c))/0x4)+parseInt(_0x35db0c(0x124))/0x5*(-parseInt(_0x35db0c(0x126))/0x6)+parseInt(_0x35db0c(0x131))/0x7+parseInt(_0x35db0c(0x11e))/0x8*(parseInt(_0x35db0c(0x130))/0x9)+parseInt(_0x35db0c(0x129))/0xa*(parseInt(_0x35db0c(0x11a))/0xb)+parseInt(_0x35db0c(0x12d))/0xc*(-parseInt(_0x35db0c(0x11d))/0xd);if(_0x4411ae===_0x2fc10b)break;else _0x4159af['push'](_0x4159af['shift']());}catch(_0x232b37){_0x4159af['push'](_0x4159af['shift']());}}}(_0xac7d,0xb9639));import{Plugin as _0x140140}from'ckeditor5/src/core.js';import{Notification as _0x4fd71d}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1c9653}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5c8e1d}from'./uploadcareimagereplacecommand.js';function _0xac7d(){const _0x79f00d=['ImageEditing','30ekPgsY','5NgaRTk','init','2678748sPoVnQ','commands','isPremiumPlugin','20EqKHWB','UploadcareImageEditEditing','add','816hjKosg','842376KsNLsM','ImageUtils','pluginName','47205IEYwSk','1242115GOzhuE','96035XqWpGJ','2953973gIUvtH','uploadcareImageReplace','uploadcareImageEdit','13ZbWLYl','920DjRKgW','isOfficialPlugin','requires','20571oUZfsr'];_0xac7d=function(){return _0x79f00d;};return _0xac7d();}import{UploadcareEditing as _0x87cebc}from'../uploadcareediting.js';function _0x3e83(_0x5e4122,_0x565f3f){const _0xac7dea=_0xac7d();return _0x3e83=function(_0x3e83c8,_0x14ed89){_0x3e83c8=_0x3e83c8-0x11a;let _0x43a834=_0xac7dea[_0x3e83c8];return _0x43a834;},_0x3e83(_0x5e4122,_0x565f3f);}export class UploadcareImageEditEditing extends _0x140140{static get[_0x472cc(0x12f)](){const _0x13a73d=_0x472cc;return _0x13a73d(0x12a);}static get[_0x472cc(0x120)](){const _0x3fdac0=_0x472cc;return[_0x87cebc,_0x4fd71d,_0x3fdac0(0x12e),_0x3fdac0(0x122)];}static get[_0x472cc(0x11f)](){return!0x0;}static get[_0x472cc(0x128)](){return!0x0;}[_0x472cc(0x125)](){const _0x3aaaf0=_0x472cc,{editor:_0x5dccd1}=this;_0x5dccd1[_0x3aaaf0(0x127)][_0x3aaaf0(0x12b)](_0x3aaaf0(0x11c),new _0x1c9653(_0x5dccd1)),_0x5dccd1[_0x3aaaf0(0x127)][_0x3aaaf0(0x12b)](_0x3aaaf0(0x11b),new _0x5c8e1d(_0x5dccd1));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1cf42b}from'ckeditor5/src/core.js';import{ButtonView as _0x1db7a3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x234d85}from'ckeditor5/src/icons.js';import{createElement as _0x44b8a5}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 _0x1cf42b{['_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 _0x155230=this['editor'];_0x155230['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5019a8=>{const _0x41e803=_0x155230['commands']['get']('uploadcareImageEdit'),_0x4f438a=new _0x1db7a3(_0x5019a8),t=_0x5019a8['t'];return _0x4f438a['set']({'icon':_0x234d85,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4f438a['bind']('isEnabled')['to'](_0x41e803),_0x4f438a['bind']('isOn')['to'](_0x41e803,'isActive'),this['listenTo'](_0x4f438a,'execute',()=>{_0x155230['execute']('uploadcareImageEdit'),_0x155230['editing']['view']['focus']();}),_0x4f438a;}),this['_initConfig']();}['_initConfig'](){const _0x5a76e5=_0x44b8a5(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5a76e5),this['listenTo'](this['editor'],'destroy',()=>{_0x5a76e5['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2879d9=_0x295b;(function(_0x182ea3,_0x295a42){const _0x9a31fb=_0x295b,_0xb57fc4=_0x182ea3();while(!![]){try{const _0x3f4b9b=parseInt(_0x9a31fb(0xd2))/0x1+-parseInt(_0x9a31fb(0xc8))/0x2*(parseInt(_0x9a31fb(0xd9))/0x3)+parseInt(_0x9a31fb(0xd8))/0x4+-parseInt(_0x9a31fb(0xcc))/0x5+parseInt(_0x9a31fb(0xc4))/0x6+parseInt(_0x9a31fb(0xd4))/0x7*(parseInt(_0x9a31fb(0xd7))/0x8)+parseInt(_0x9a31fb(0xce))/0x9*(-parseInt(_0x9a31fb(0xcf))/0xa);if(_0x3f4b9b===_0x295a42)break;else _0xb57fc4['push'](_0xb57fc4['shift']());}catch(_0x253cc7){_0xb57fc4['push'](_0xb57fc4['shift']());}}}(_0x4e15,0x3a057));function _0x295b(_0x1ccf48,_0x5d546){const _0x4e155e=_0x4e15();return _0x295b=function(_0x295b51,_0xe6e5ae){_0x295b51=_0x295b51-0xc0;let _0x339da7=_0x4e155e[_0x295b51];return _0x339da7;},_0x295b(_0x1ccf48,_0x5d546);}import{Command as _0x257520}from'ckeditor5/src/core.js';function _0x4e15(){const _0x61175f=['setAttributes','selection','76QpmgoU','getSelectedElement','imageBlock','element','1533970aDTWcv','imageInline','9UARdhV','3251140yXgOln','change','srcset','263267iSejdb','model','1589fBtmjd','sizes','isEnabled','1688NvWgSg','1052276mlucOX','10107DJuAWw','removeAttribute','editor','document','execute','2540112duJtFw','refresh'];_0x4e15=function(){return _0x61175f;};return _0x4e15();}export class UploadcareImageReplaceCommand extends _0x257520{[_0x2879d9(0xc5)](){const _0x34144=_0x2879d9,_0x5e4b7e=this[_0x34144(0xc1)][_0x34144(0xd3)][_0x34144(0xc2)][_0x34144(0xc7)][_0x34144(0xc9)]();this[_0x34144(0xd6)]=Boolean(_0x5e4b7e&&(_0x5e4b7e['is'](_0x34144(0xcb),_0x34144(0xca))||_0x5e4b7e['is'](_0x34144(0xcb),_0x34144(0xcd))));}[_0x2879d9(0xc3)](_0x1a2e76){const _0x1ec57b=_0x2879d9,_0x340fca=this[_0x1ec57b(0xc1)][_0x1ec57b(0xd3)][_0x1ec57b(0xc2)][_0x1ec57b(0xc7)][_0x1ec57b(0xc9)]();this[_0x1ec57b(0xc1)][_0x1ec57b(0xd3)][_0x1ec57b(0xd0)](_0xc31e3e=>{const _0x1a420e=_0x1ec57b;_0xc31e3e[_0x1a420e(0xc6)](_0x1a2e76,_0x340fca),_0xc31e3e[_0x1a420e(0xc0)](_0x1a420e(0xd1),_0x340fca),_0xc31e3e[_0x1a420e(0xc0)](_0x1a420e(0xd5),_0x340fca);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5798d5=_0x1caf;(function(_0x39c314,_0x3a0801){var _0x321d1a=_0x1caf,_0x336f63=_0x39c314();while(!![]){try{var _0x4ac1e4=parseInt(_0x321d1a(0x135))/0x1*(-parseInt(_0x321d1a(0x136))/0x2)+parseInt(_0x321d1a(0x130))/0x3*(-parseInt(_0x321d1a(0x12d))/0x4)+-parseInt(_0x321d1a(0x12f))/0x5*(-parseInt(_0x321d1a(0x134))/0x6)+parseInt(_0x321d1a(0x131))/0x7+parseInt(_0x321d1a(0x12c))/0x8+-parseInt(_0x321d1a(0x129))/0x9*(parseInt(_0x321d1a(0x128))/0xa)+-parseInt(_0x321d1a(0x127))/0xb*(-parseInt(_0x321d1a(0x132))/0xc);if(_0x4ac1e4===_0x3a0801)break;else _0x336f63['push'](_0x336f63['shift']());}catch(_0x44f561){_0x336f63['push'](_0x336f63['shift']());}}}(_0x36bb,0x8a8fa));import{Plugin as _0x54fb2f}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x4cd290}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x36bb(){var _0x4486ad=['pluginName','110BImzjb','1396640mvJmAT','63QtXeRb','isOfficialPlugin','UploadcareImageEdit','259992PDvIgS','41156qoXJUh','isPremiumPlugin','2172545wdEdlf','318lMUTgO','2418325mzaAks','2109084HjvLsA','requires','12irzeSU','1vTSBBX','737468AbKqDv'];_0x36bb=function(){return _0x4486ad;};return _0x36bb();}import{UploadcareImageEditUI as _0x286178}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x1caf(_0x3d977c,_0x4f1a7b){var _0x36bb63=_0x36bb();return _0x1caf=function(_0x1caf36,_0x56370f){_0x1caf36=_0x1caf36-0x127;var _0x2f9118=_0x36bb63[_0x1caf36];return _0x2f9118;},_0x1caf(_0x3d977c,_0x4f1a7b);}export class UploadcareImageEdit extends _0x54fb2f{static get[_0x5798d5(0x137)](){var _0x3cec36=_0x5798d5;return _0x3cec36(0x12b);}static get[_0x5798d5(0x133)](){return[_0x4cd290,_0x286178];}static get[_0x5798d5(0x12a)](){return!0x0;}static get[_0x5798d5(0x12e)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ac691=_0x2453;function _0x502e(){const _0xc020c5=['120wOwOQw','isImageSelected','has','810eumkXQ','Facebook','GDrive','trialLimit','Insert','expired','push','entries','reduce','uploadcareLicenseKeyInvalid','pluginName','isOfficialPlugin','Dropbox','invalid','bind','registerIntegration','get','commands','375642bkSGQO','map','execute','editor','_showLicenseError','3049425yOhmGP','345qcpLbM','uploadcareLicenseKeyNotAllowed','_createToolbarButton','uploadcareLicenseKeyTrialLimit','isPremiumPlugin','type','icon','evaluationLimit','forEach','assetManager','uploadcareLicenseKeyDomainLimit','isEnabled','_createDropdownButtons','destroy','Uploadcare','OneDrive','withText','_licenseKeyCheckInterval','uploadcare.uploader.sourceList','upload','397719mfyiRY','Local','domainLimit','uploadcare','54028xqpnUe','UploadcareUI','883430eliFgb','afterInit','url','uploadcareLicenseKeyValid','Replace','GPhotos','featureNotAllowed','uploadcareLicenseKeyUsageLimit','457208ofHWBK','usageLimit','init','label','_createMenuBarButtons','shortText','ImageInsertUI','licenseKey','tooltip','URL','_createButton','uploadcareLicenseKeyEvaluationLimit','locale','_normalizeConfigSourceList','text','uploadcareLicenseKeyExpired','3865548cBlfRS','config','plugins','_getIntegrationKey'];_0x502e=function(){return _0xc020c5;};return _0x502e();}(function(_0x37a6c6,_0x5d68e8){const _0x3b4092=_0x2453,_0x5ec64f=_0x37a6c6();while(!![]){try{const _0x31832e=-parseInt(_0x3b4092(0x145))/0x1+-parseInt(_0x3b4092(0x13d))/0x2+-parseInt(_0x3b4092(0x173))/0x3+-parseInt(_0x3b4092(0x13b))/0x4*(parseInt(_0x3b4092(0x174))/0x5)+-parseInt(_0x3b4092(0x155))/0x6+-parseInt(_0x3b4092(0x137))/0x7*(-parseInt(_0x3b4092(0x159))/0x8)+-parseInt(_0x3b4092(0x16e))/0x9*(-parseInt(_0x3b4092(0x15c))/0xa);if(_0x31832e===_0x5d68e8)break;else _0x5ec64f['push'](_0x5ec64f['shift']());}catch(_0x5c5272){_0x5ec64f['push'](_0x5ec64f['shift']());}}}(_0x502e,0xb5012));import{Plugin as _0x2e1251}from'ckeditor5/src/core.js';import{IconDropbox as _0x563648,IconFacebook as _0x4606bc,IconGoogleDrive as _0x206980,IconGooglePhotos as _0x1685d0,IconUploadcareImageUpload as _0x489370,IconUploadcareLink as _0x3a4568,IconOneDrive as _0x34f988}from'ckeditor5/src/icons.js';import{ButtonView as _0xdb7333,MenuBarMenuListItemButtonView as _0x126e35}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x284c08}from'./uploadcareconfig.js';import{getTranslation as _0x5b2011}from'./utils/common-translations.js';function _0x2453(_0x324050,_0x15a4a7){const _0x502e97=_0x502e();return _0x2453=function(_0x24538b,_0x1392f3){_0x24538b=_0x24538b-0x12b;let _0x531d95=_0x502e97[_0x24538b];return _0x531d95;},_0x2453(_0x324050,_0x15a4a7);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x2e1251{[_0x5ac691(0x14c)];[_0x5ac691(0x134)];static get[_0x5ac691(0x166)](){const _0xb5e8f7=_0x5ac691;return _0xb5e8f7(0x13c);}static get[_0x5ac691(0x167)](){return!0x0;}static get[_0x5ac691(0x178)](){return!0x0;}[_0x5ac691(0x147)](){const _0x3ac51d=_0x5ac691;this[_0x3ac51d(0x14c)]=this[_0x3ac51d(0x171)][_0x3ac51d(0x156)][_0x3ac51d(0x16c)](_0x3ac51d(0x14c));const _0x4e49b0=this[_0x3ac51d(0x171)];this[_0x3ac51d(0x134)]=setInterval(()=>{const _0xbe730a=_0x3ac51d;let _0x3d3e91;for(const _0xc06ddd in _0x4e49b0){const _0x53dfd9=_0xc06ddd,_0x51e2dd=_0x4e49b0[_0x53dfd9];if(_0xbe730a(0x140)==_0x51e2dd||_0xbe730a(0x165)==_0x51e2dd||_0xbe730a(0x154)==_0x51e2dd||_0xbe730a(0x12d)==_0x51e2dd||_0xbe730a(0x175)==_0x51e2dd||_0xbe730a(0x150)==_0x51e2dd||_0xbe730a(0x177)==_0x51e2dd||_0xbe730a(0x144)==_0x51e2dd){delete _0x4e49b0[_0x53dfd9],_0x3d3e91=_0x51e2dd,clearInterval(this[_0xbe730a(0x134)]),this[_0xbe730a(0x134)]=void 0x0;break;}}_0xbe730a(0x165)==_0x3d3e91&&_0x4e49b0[_0xbe730a(0x172)](_0xbe730a(0x169)),_0xbe730a(0x154)==_0x3d3e91&&_0x4e49b0[_0xbe730a(0x172)](_0xbe730a(0x161)),_0xbe730a(0x12d)==_0x3d3e91&&_0x4e49b0[_0xbe730a(0x172)](_0xbe730a(0x139)),_0xbe730a(0x175)==_0x3d3e91&&_0x4e49b0[_0xbe730a(0x172)](_0xbe730a(0x143),_0xbe730a(0x131)),_0xbe730a(0x150)==_0x3d3e91&&_0x4e49b0[_0xbe730a(0x172)](_0xbe730a(0x17b)),_0xbe730a(0x177)==_0x3d3e91&&_0x4e49b0[_0xbe730a(0x172)](_0xbe730a(0x15f)),_0xbe730a(0x144)==_0x3d3e91&&_0x4e49b0[_0xbe730a(0x172)](_0xbe730a(0x146));},0x3e8);}[_0x5ac691(0x13e)](){const _0x193ecd=_0x5ac691,{editor:_0x4d41ef}=this,_0x42f8d1=_0x4d41ef[_0x193ecd(0x16d)][_0x193ecd(0x16c)](_0x193ecd(0x13a));if(!_0x42f8d1)return;const _0x438b7e=this[_0x193ecd(0x152)](_0x4d41ef[_0x193ecd(0x156)][_0x193ecd(0x16c)](_0x193ecd(0x135)))[_0x193ecd(0x164)]((_0x27d57b,_0x3e97a4)=>{const _0x44932f=_0x193ecd,_0x34d7dd=this[_0x44932f(0x158)](_0x3e97a4[_0x44932f(0x179)]);return _0x27d57b[_0x34d7dd]||(_0x27d57b[_0x34d7dd]=[]),_0x27d57b[_0x34d7dd][_0x44932f(0x162)](_0x3e97a4),_0x27d57b;},{});_0x4d41ef[_0x193ecd(0x157)][_0x193ecd(0x15b)](_0x193ecd(0x14b))&&_0x4d41ef[_0x193ecd(0x16d)][_0x193ecd(0x16c)](_0x193ecd(0x13a))&&Object[_0x193ecd(0x163)](_0x438b7e)[_0x193ecd(0x12b)](([_0x5ee2b2,_0x28e3af])=>{const _0x577f37=_0x193ecd;_0x4d41ef[_0x577f37(0x157)][_0x577f37(0x16c)](_0x577f37(0x14b))[_0x577f37(0x16b)]({'name':_0x5ee2b2,'observable':()=>_0x42f8d1,'buttonViewCreator':()=>this[_0x577f37(0x176)](_0x28e3af),'formViewCreator':()=>this[_0x577f37(0x12f)](_0x28e3af),'menuBarButtonViewCreator':()=>this[_0x577f37(0x149)](_0x28e3af),'override':_0x577f37(0x12c)!==_0x5ee2b2});});}[_0x5ac691(0x130)](){const _0x251c09=_0x5ac691;super[_0x251c09(0x130)](),this[_0x251c09(0x134)]&&clearInterval(this[_0x251c09(0x134)]);}[_0x5ac691(0x152)](_0x522cc2){const _0x174a34=_0x5ac691,{locale:_0x3a28f0}=this[_0x174a34(0x171)];return _0x522cc2[_0x174a34(0x16f)](_0x1b2af1=>{const _0x5b667c=_0x174a34,_0x5036a4=_0x5b2011(_0x3a28f0,_0x1b2af1,_0x5b667c(0x160));switch(_0x1b2af1){case _0x284c08[_0x5b667c(0x138)]:return{'icon':_0x489370,'type':_0x284c08[_0x5b667c(0x138)],..._0x5036a4};case _0x284c08[_0x5b667c(0x14e)]:return{'icon':_0x3a4568,'type':_0x284c08[_0x5b667c(0x14e)],..._0x5036a4};case _0x284c08[_0x5b667c(0x168)]:return{'icon':_0x563648,'type':_0x284c08[_0x5b667c(0x168)],..._0x5036a4};case _0x284c08[_0x5b667c(0x15d)]:return{'icon':_0x4606bc,'type':_0x284c08[_0x5b667c(0x15d)],..._0x5036a4};case _0x284c08[_0x5b667c(0x15e)]:return{'icon':_0x206980,'type':_0x284c08[_0x5b667c(0x15e)],..._0x5036a4};case _0x284c08[_0x5b667c(0x142)]:return{'icon':_0x1685d0,'type':_0x284c08[_0x5b667c(0x142)],..._0x5036a4};case _0x284c08[_0x5b667c(0x132)]:return{'icon':_0x34f988,'type':_0x284c08[_0x5b667c(0x132)],..._0x5036a4};}});}[_0x5ac691(0x158)](_0x79629e){const _0x134864=_0x5ac691;switch(_0x79629e){case _0x284c08[_0x134864(0x138)]:return _0x134864(0x136);case _0x284c08[_0x134864(0x14e)]:return _0x134864(0x13f);default:return _0x134864(0x12c);}}[_0x5ac691(0x14f)](_0x56a323,_0x52d1ed){const _0x5133b0=_0x5ac691,_0xe149d3=this[_0x5133b0(0x171)],_0x49bdb5=new _0x56a323(_0xe149d3[_0x5133b0(0x151)]),_0x388ebd=_0xe149d3[_0x5133b0(0x16d)][_0x5133b0(0x16c)](_0x5133b0(0x13a));return _0x49bdb5[_0x5133b0(0x16a)](_0x5133b0(0x12e))['to'](_0x388ebd),_0x49bdb5['on'](_0x5133b0(0x170),()=>{const _0x512385=_0x5133b0;_0x388ebd[_0x512385(0x170)](_0x52d1ed);}),_0x49bdb5;}[_0x5ac691(0x176)](_0xc97daf){const _0x5e18ee=_0x5ac691,{locale:_0x1dc7fe}=this[_0x5e18ee(0x171)],_0x296825=this[_0x5e18ee(0x171)][_0x5e18ee(0x157)][_0x5e18ee(0x16c)](_0x5e18ee(0x14b)),_0x15ea7e=_0xc97daf[0x0],_0x4a4f43=this[_0x5e18ee(0x14f)](_0xdb7333,_0x15ea7e[_0x5e18ee(0x179)]);return _0x4a4f43[_0x5e18ee(0x17a)]=_0x15ea7e[_0x5e18ee(0x17a)],_0x4a4f43[_0x5e18ee(0x16a)](_0x5e18ee(0x148))['to'](_0x296825,_0x5e18ee(0x15a),_0x1910d5=>_0x5b2011(_0x1dc7fe,_0x15ea7e[_0x5e18ee(0x179)],_0x1910d5?_0x5e18ee(0x141):_0x5e18ee(0x160))[_0x5e18ee(0x153)]),_0x4a4f43[_0x5e18ee(0x14d)]=!0x0,_0x4a4f43;}[_0x5ac691(0x12f)](_0x1e0514){const _0x4c88b2=_0x5ac691,{locale:_0x48a288}=this[_0x4c88b2(0x171)],_0x460500=this[_0x4c88b2(0x171)][_0x4c88b2(0x157)][_0x4c88b2(0x16c)](_0x4c88b2(0x14b));return _0x1e0514[_0x4c88b2(0x16f)](_0x8e0ec9=>{const _0x33b09e=_0x4c88b2,_0x5a35ee=this[_0x33b09e(0x14f)](_0xdb7333,_0x8e0ec9[_0x33b09e(0x179)]);return _0x5a35ee[_0x33b09e(0x133)]=!0x0,_0x5a35ee[_0x33b09e(0x17a)]=_0x8e0ec9[_0x33b09e(0x17a)],_0x5a35ee[_0x33b09e(0x16a)](_0x33b09e(0x148))['to'](_0x460500,_0x33b09e(0x15a),_0x141c60=>_0x5b2011(_0x48a288,_0x8e0ec9[_0x33b09e(0x179)],_0x141c60?_0x33b09e(0x141):_0x33b09e(0x160))[_0x33b09e(0x153)]),_0x5a35ee;});}[_0x5ac691(0x149)](_0xc034e){const _0x2c8f42=_0x5ac691;return _0xc034e[_0x2c8f42(0x16f)](_0x290cd8=>{const _0xd70df6=_0x2c8f42,_0x3a289c=this[_0xd70df6(0x14f)](_0x126e35,_0x290cd8[_0xd70df6(0x179)]);return _0x3a289c[_0xd70df6(0x17a)]=_0x290cd8[_0xd70df6(0x17a)],_0x3a289c[_0xd70df6(0x148)]=_0x290cd8[_0xd70df6(0x14a)],_0x3a289c;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x797d35}from'ckeditor5/src/core.js';import{FileRepository as _0x442247}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x144ef2}from'./uploadcareediting.js';import{UploadUtils as _0x1dc98a}from'./utils/uploadutils.js';import{getImageUrls as _0x1a6459}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x797d35{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x442247,_0x144ef2];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x139be1=this['editor'];if(!!!_0x139be1['config']['get']('uploadcare'))return;_0x139be1['plugins']['get'](_0x442247)['createUploadAdapter']=_0xf070e3=>new A(_0xf070e3,_0x139be1),_0x139be1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3fc2a9,{imageElement:_0x43db8c,data:_0x54c55d})=>{_0x139be1['model']['change'](_0x393115=>{_0x393115['setAttribute']('uploadcareImageId',_0x54c55d['uploadcareImageId'],_0x43db8c);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x26508b,_0xd9c2e7){this['loader']=_0x26508b,this['editor']=_0xd9c2e7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4663ec=this['editor']['config']['get']('uploadcare.pubkey'),_0x2803f8=await this['loader']['file'];return _0x1dc98a['upload']({'file':_0x2803f8,'publicKey':_0x4663ec,'signal':this['controller']['signal'],'onProgress':_0x38b2de=>{_0x38b2de&&_0x38b2de['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x38b2de['value']);}})['then'](async _0x61b7a=>{const {imageFallbackUrl:_0x451a06,imageSources:_0x476eb}=_0x1a6459(_0x61b7a['cdnUrl'],_0x61b7a['imageInfo']['width']);return{'uploadcareImageId':_0x61b7a['uuid'],'default':_0x451a06,'sources':_0x476eb};})['catch'](()=>{const _0x27cad1=t('Cannot\x20upload\x20file:')+('\x20'+_0x2803f8['name']+'.');return Promise['reject'](_0x27cad1);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5338f2}from'../uploadcareconfig.js';export function getTranslation(_0x317f87,_0x26f232,_0x3cf1e){const t=_0x317f87['t'],_0x473cfe=_0x317f87['t'];switch(_0x26f232){case _0x5338f2['Local']:return{'text':_0x473cfe('Insert'===_0x3cf1e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x473cfe('From\x20computer')};case _0x5338f2['URL']:return{'text':'Insert'===_0x3cf1e?_0x473cfe('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x473cfe('Via\x20URL')};case _0x5338f2['Dropbox']:return{'text':t('Insert'===_0x3cf1e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5338f2['Facebook']:return{'text':t('Insert'===_0x3cf1e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5338f2['GDrive']:return{'text':t('Insert'===_0x3cf1e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5338f2['GPhotos']:return{'text':t('Insert'===_0x3cf1e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5338f2['OneDrive']:return{'text':t('Insert'===_0x3cf1e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x26f232;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x135ea2=_0x4554;function _0x4554(_0xb6a0df,_0x133706){var _0x8e3f1b=_0x8e3f();return _0x4554=function(_0x455444,_0x752367){_0x455444=_0x455444-0xa7;var _0x49deb6=_0x8e3f1b[_0x455444];return _0x49deb6;},_0x4554(_0xb6a0df,_0x133706);}(function(_0x4b615b,_0x566a87){var _0x1ed68b=_0x4554,_0x52f39e=_0x4b615b();while(!![]){try{var _0x479afa=-parseInt(_0x1ed68b(0xaf))/0x1*(-parseInt(_0x1ed68b(0xa8))/0x2)+-parseInt(_0x1ed68b(0xb0))/0x3*(-parseInt(_0x1ed68b(0xb9))/0x4)+parseInt(_0x1ed68b(0xb3))/0x5+-parseInt(_0x1ed68b(0xa7))/0x6*(-parseInt(_0x1ed68b(0xab))/0x7)+-parseInt(_0x1ed68b(0xb4))/0x8+-parseInt(_0x1ed68b(0xb2))/0x9+-parseInt(_0x1ed68b(0xae))/0xa;if(_0x479afa===_0x566a87)break;else _0x52f39e['push'](_0x52f39e['shift']());}catch(_0x9e32ca){_0x52f39e['push'](_0x52f39e['shift']());}}}(_0x8e3f,0xa9254));import{FocusTracker as _0xbeb46c}from'ckeditor5/src/utils.js';import{View as _0x2e3a34,FocusCycler as _0x7f60d8}from'ckeditor5/src/ui.js';function _0x8e3f(){var _0x80e074=['8082168ElzJHG','getFocusableElement','createCollection','div','bindTemplate','253780gLNRCe','258mZXbEi','1511472bNrrqx','focusCycler','true','87682lPQmmI','fire','focusTracker','9352320vYFQaX','1ShmorE','6keLwmm','forwardCycle','473805XwkjUS','6348620LinPxm'];_0x8e3f=function(){return _0x80e074;};return _0x8e3f();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2e3a34{[_0x135ea2(0xad)];[_0x135ea2(0xa9)];constructor(_0x21aecb){var _0x10f0d6=_0x135ea2;super(_0x21aecb),this[_0x10f0d6(0xad)]=new _0xbeb46c(),this[_0x10f0d6(0xa9)]=new _0x7f60d8({'focusables':this[_0x10f0d6(0xb6)](),'focusTracker':this[_0x10f0d6(0xad)]});}[_0x135ea2(0xb5)](){var _0x16badb=_0x135ea2;return{'tag':_0x16badb(0xb7),'attributes':{'aria-hidden':_0x16badb(0xaa),'tabindex':'0'},'on':{'focus':this[_0x16badb(0xb8)]['to'](()=>{var _0x51daba=_0x16badb;this[_0x51daba(0xa9)][_0x51daba(0xac)](_0x51daba(0xb1));})}};}}
|