@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251106.0 → 0.0.0-nightly-20251108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/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
|
-
function _0x21e4(_0x502538,_0x24898a){const _0x4bddb3=_0x4bdd();return _0x21e4=function(_0x21e4fb,_0x152687){_0x21e4fb=_0x21e4fb-0x19c;let _0x50af5e=_0x4bddb3[_0x21e4fb];return _0x50af5e;},_0x21e4(_0x502538,_0x24898a);}const _0x432e4d=_0x21e4;(function(_0xd13da4,_0x20c0a1){const _0x2bf646=_0x21e4,_0x281047=_0xd13da4();while(!![]){try{const _0xbd2ec4=parseInt(_0x2bf646(0x1ba))/0x1+parseInt(_0x2bf646(0x1c2))/0x2*(parseInt(_0x2bf646(0x1c7))/0x3)+-parseInt(_0x2bf646(0x1a0))/0x4*(parseInt(_0x2bf646(0x1e8))/0x5)+parseInt(_0x2bf646(0x1cd))/0x6+-parseInt(_0x2bf646(0x1c6))/0x7+parseInt(_0x2bf646(0x1a6))/0x8*(-parseInt(_0x2bf646(0x1af))/0x9)+parseInt(_0x2bf646(0x1d5))/0xa*(parseInt(_0x2bf646(0x1d7))/0xb);if(_0xbd2ec4===_0x20c0a1)break;else _0x281047['push'](_0x281047['shift']());}catch(_0xa96017){_0x281047['push'](_0x281047['shift']());}}}(_0x4bdd,0xec072));import{Plugin as _0x4f5ef8}from'ckeditor5/src/core.js';function _0x4bdd(){const _0x488b0b=['href','#uc-icon-arrow-down','_initConfig','_initCtx','contentLanguage','_initConversion','799010lbhHbL','configElement','querySelector','cleanupImage','schema','appendChild','elementToAttribute','_initImageProcessingIndicator','204398tZnXDX','_ctxElement','upcast','execute','4467582bBYNbB','9DULNhw','for','closeMax','attributeToAttribute','\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','true','373026rRSqBi','imageInline','extend','uploader-','init','getAttribute','render','_configElement','12892560WqwiRX','editing','11cFLwQi','PictureEditing','listenTo','isOfficialPlugin','uploadcareImageReplace','isRegistered','uploadcare.uploader','imageBlock','join','remove','insertImage','_initSchema','model','get','isPremiumPlugin','commands','pluginName','5VIfasY','editor','ctxElement','fromCharCode','uploadcareImageId','replaceImageSource','body','uploadcare.pubkey','add','getSelectedElement','once','conversion','requires','afterInit','214748PyKefe','map','view','UploadcareEditing','selection','uploadcare','6386808sSVtKM','ucContextId','removeAttribute','locale','config','uc-config','downcast','iconHrefResolver','document','9IgVvht','destroy','uc-upload-ctx-provider','input[uploadcare-file-input]','data-uc-image-id'];_0x4bdd=function(){return _0x488b0b;};return _0x4bdd();}import{Dialog as _0x37ac98}from'ckeditor5/src/ui.js';import{createElement as _0x1b661b,global as _0x196892,uid as _0x4138a7}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x322c77}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x371abc}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2da62c}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4f5ef8{[_0x432e4d(0x1d4)]=null;[_0x432e4d(0x1c3)]=null;static get[_0x432e4d(0x1e7)](){const _0x2981df=_0x432e4d;return _0x2981df(0x1a3);}static get[_0x432e4d(0x19e)](){const _0x42f770=_0x432e4d;return[_0x42f770(0x1d8),_0x371abc,_0x37ac98];}static get[_0x432e4d(0x1da)](){return!0x0;}static get[_0x432e4d(0x1e5)](){return!0x0;}[_0x432e4d(0x1a7)];get[_0x432e4d(0x1bb)](){const _0x6cc0cc=_0x432e4d;return this[_0x6cc0cc(0x1d4)];}get[_0x432e4d(0x1ea)](){const _0x27a8e1=_0x432e4d;return this[_0x27a8e1(0x1c3)];}constructor(_0x119049){const _0x1a5783=_0x432e4d;super(_0x119049),this[_0x1a5783(0x1a7)]=_0x4138a7();}[_0x432e4d(0x1d1)](){const _0x2ca9b8=_0x432e4d,_0x2c6435=this[_0x2ca9b8(0x1e9)];_0x2c6435[_0x2ca9b8(0x1e6)][_0x2ca9b8(0x1f0)](_0x2ca9b8(0x1a5),new _0x322c77(_0x2c6435));}[_0x432e4d(0x19f)](){const _0x99507d=_0x432e4d;this[_0x99507d(0x1e2)](),this[_0x99507d(0x1b9)](),this[_0x99507d(0x1b6)](),this[_0x99507d(0x1b7)](),this[_0x99507d(0x1c1)](),this[_0x99507d(0x1d9)](this[_0x99507d(0x1e9)],_0x99507d(0x1b0),()=>{const _0x25ff88=_0x99507d;this[_0x25ff88(0x1d4)]&&(this[_0x25ff88(0x1d4)][_0x25ff88(0x1e0)](),this[_0x25ff88(0x1d4)]=null),this[_0x25ff88(0x1c3)]&&(this[_0x25ff88(0x1c3)][_0x25ff88(0x1e0)](),this[_0x25ff88(0x1c3)]=null);const _0x364612=_0x196892[_0x25ff88(0x1ae)][_0x25ff88(0x1bc)](_0x25ff88(0x1b2));_0x364612&&_0x364612[_0x25ff88(0x1e0)]();}),async function(_0x298d8d){const _0x3669b8=_0x1c9d22([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x582a00=0x535f8c3a,_0x4a76d7=0x5358f46a^_0x582a00,_0x423bfb=window[_0x1c9d22([0x44,0x61,0x74,0x65])][_0x1c9d22([0x6e,0x6f,0x77])](),_0xeb4441=_0x298d8d[_0x1c9d22([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d7939=new window[(_0x1c9d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45c856=>{_0xeb4441[_0x1c9d22([0x6f,0x6e,0x63,0x65])](_0x1c9d22([0x72,0x65,0x61,0x64,0x79]),_0x45c856);}),_0x55a57a={[_0x1c9d22([0x6b,0x74,0x79])]:_0x1c9d22([0x45,0x43]),[_0x1c9d22([0x75,0x73,0x65])]:_0x1c9d22([0x73,0x69,0x67]),[_0x1c9d22([0x63,0x72,0x76])]:_0x1c9d22([0x50,0x2d,0x32,0x35,0x36]),[_0x1c9d22([0x78])]:_0x1c9d22([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]),[_0x1c9d22([0x79])]:_0x1c9d22([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]),[_0x1c9d22([0x61,0x6c,0x67])]:_0x1c9d22([0x45,0x53,0x32,0x35,0x36])},_0x1f8f7d=_0xeb4441[_0x1c9d22([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c9d22([0x67,0x65,0x74])](_0x1c9d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3afede(){let _0x4250aa,_0x11e7e9=null,_0x113e72=null;try{if(_0x1f8f7d==_0x1c9d22([0x47,0x50,0x4c]))return _0x1c9d22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4250aa=_0x2dddfe(),!_0x4250aa)return _0x1c9d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4250aa[_0x1c9d22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x113e72=_0x375197(_0x4250aa[_0x1c9d22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4250aa[_0x1c9d22([0x6a,0x74,0x69])])),await _0x2c0d6c()?_0x2aadb4()?_0x2305ed()?_0x1c9d22([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1bf2fb()?(_0x4250aa[_0x1c9d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c9d22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11e7e9=_0x5baae2(_0x1c9d22([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4250aa[_0x1c9d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c9d22([0x74,0x72,0x69,0x61,0x6c])&&(_0x11e7e9=_0x5baae2(_0x1c9d22([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f1266()):_0x1c9d22([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c9d22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c9d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c9d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2305ed(){const _0x26106e=[_0x1c9d22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c9d22([0x74,0x72,0x69,0x61,0x6c])][_0x1c9d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4250aa[_0x1c9d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x423bfb/0x3e8:0xe10*_0x4a76d7;return _0x4250aa[_0x1c9d22([0x65,0x78,0x70])]<_0x26106e;}function _0x2aadb4(){const _0x6eba58=_0x4250aa[_0x1c9d22([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x6eba58&&(!!_0x6eba58[_0x1c9d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9d22([0x2a]))||!!_0x6eba58[_0x1c9d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9d22([0x55,0x50,0x4c,0x43])));}function _0x1bf2fb(){const _0x21fda7=_0x21e4,_0x370429=_0x4250aa[_0x1c9d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x370429||0x0==_0x370429[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ed91e}=new URL(window[_0x1c9d22([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x21fda7(0x1b4)]);if(_0x370429[_0x1c9d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed91e))return!0x0;const _0x2a11a9=_0x3ed91e[_0x1c9d22([0x73,0x70,0x6c,0x69,0x74])](_0x1c9d22([0x2e]));return _0x370429[_0x1c9d22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56b986=>_0x56b986[_0x1c9d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c9d22([0x2a])))[_0x1c9d22([0x6d,0x61,0x70])](_0x3d1a68=>_0x3d1a68[_0x1c9d22([0x73,0x70,0x6c,0x69,0x74])](_0x1c9d22([0x2e])))[_0x1c9d22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b687d=>_0x2b687d[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a11a9[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c9d22([0x6d,0x61,0x70])](_0x2aadfa=>Array(_0x2a11a9[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2aadfa[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c9d22([0x66,0x69,0x6c,0x6c])](_0x2aadfa[0x0]===_0x1c9d22([0x2a])?_0x1c9d22([0x2a]):'')[_0x1c9d22([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2aadfa))[_0x1c9d22([0x73,0x6f,0x6d,0x65])](_0x5be67b=>_0x2a11a9[_0x1c9d22([0x65,0x76,0x65,0x72,0x79])]((_0x26f78a,_0x5d1df3)=>_0x5be67b[_0x5d1df3]===_0x26f78a||_0x5be67b[_0x5d1df3]===_0x1c9d22([0x2a])));}function _0x3f1266(){return _0x11e7e9&&_0x113e72?new window[(_0x1c9d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x363b8f,_0x2f86f9)=>{_0x11e7e9[_0x1c9d22([0x74,0x68,0x65,0x6e])](_0x363b8f,_0x2f86f9),_0x113e72[_0x1c9d22([0x74,0x68,0x65,0x6e])](_0xbf2ab8=>{_0xbf2ab8!=_0x1c9d22([0x56,0x61,0x6c,0x69,0x64])&&_0x363b8f(_0xbf2ab8);},_0x2f86f9);}):_0x11e7e9||_0x113e72||_0x1c9d22([0x56,0x61,0x6c,0x69,0x64]);}}function _0x375197(_0x51be87,_0x1e8f65){return new window[(_0x1c9d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x361b70=>{if(_0x4aa678())return _0x361b70(_0x1c9d22([0x56,0x61,0x6c,0x69,0x64]));_0x169e19(),_0xeb4441[_0x1c9d22([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c9d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d32ca=!0x1;const _0x509d77=_0x4138a7();function _0x2d5eb2(_0x50ce76){return!!_0x50ce76&&(typeof _0x50ce76===_0x1c9d22([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x50ce76===_0x1c9d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x50ce76[_0x1c9d22([0x74,0x68,0x65,0x6e])]===_0x1c9d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x50ce76[_0x1c9d22([0x63,0x61,0x74,0x63,0x68])]===_0x1c9d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x401f81(_0x1539f8){_0x54aea1(_0x1539f8)[_0x1c9d22([0x74,0x68,0x65,0x6e])](_0x41d367=>{if(!_0x41d367||_0x41d367[_0x1c9d22([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c9d22([0x6f,0x6b]))return _0x1c9d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x310ba4(_0x107ade(_0x509d77+_0x1e8f65))!=_0x41d367[_0x1c9d22([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c9d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c9d22([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c9d22([0x74,0x68,0x65,0x6e])](_0x51cb51=>(_0x360d7c(),_0x51cb51),()=>{const _0x5a89e2=_0x23f8b3();return null==_0x5a89e2?(_0x360d7c(),_0x1c9d22([0x56,0x61,0x6c,0x69,0x64])):_0x1c9d22(_0x423bfb-_0x5a89e2>(0x7753083a^_0x582a00)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c9d22([0x74,0x68,0x65,0x6e])](_0x361b70)[_0x1c9d22([0x63,0x61,0x74,0x63,0x68])](()=>{_0x361b70(_0x1c9d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x14423f=0x536962ba^_0x582a00;function _0x360d7c(){const _0x17e637=_0x1c9d22([0x6c,0x6c,0x63,0x74,0x2d])+_0x310ba4(_0x107ade(_0x51be87)),_0x69d55e=_0x98ed01(_0x310ba4(window[_0x1c9d22([0x4d,0x61,0x74,0x68])][_0x1c9d22([0x63,0x65,0x69,0x6c])](_0x423bfb/_0x14423f)));window[_0x1c9d22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c9d22([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17e637,_0x69d55e);}function _0x23f8b3(){const _0x212b80=_0x1c9d22([0x6c,0x6c,0x63,0x74,0x2d])+_0x310ba4(_0x107ade(_0x51be87)),_0x17c42c=window[_0x1c9d22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c9d22([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x212b80);return _0x17c42c?window[_0x1c9d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x98ed01(_0x17c42c),0x10)*_0x14423f:null;}function _0x54aea1(_0x4c2bc5){return new window[(_0x1c9d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3eecb5,_0x47abe8)=>{_0x4c2bc5[_0x1c9d22([0x74,0x68,0x65,0x6e])](_0x3eecb5,_0x47abe8),window[_0x1c9d22([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47abe8,0x535e58fa^_0x582a00);});}}_0xeb4441[_0x1c9d22([0x6f,0x6e])](_0x1c9d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47533b,_0x3a5f18)=>{if(_0x3a5f18[0x0]!=_0x51be87)return _0x361b70(_0x1c9d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a5f18[0x1]={..._0x3a5f18[0x1],[_0x1c9d22([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x509d77};},{[_0x1c9d22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c9d22([0x68,0x69,0x67,0x68])}),_0xeb4441[_0x1c9d22([0x6f,0x6e])](_0x1c9d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25eef=>{_0x2d5eb2(_0x25eef[_0x1c9d22([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d32ca=!0x0,_0x401f81(_0x25eef[_0x1c9d22([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c9d22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c9d22([0x6c,0x6f,0x77])}),_0x1d7939[_0x1c9d22([0x74,0x68,0x65,0x6e])](()=>{_0x5d32ca||_0x361b70(_0x1c9d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4aa678(){return _0xeb4441[_0x1c9d22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c9d22([0x76,0x69,0x65,0x77])][_0x1c9d22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c9d22([0x61,0x75,0x74,0x6f]);}function _0x169e19(){_0xeb4441[_0x1c9d22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c9d22([0x76,0x69,0x65,0x77])][_0x1c9d22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c9d22([0x61,0x75,0x74,0x6f]);}}function _0x5baae2(_0xc67e56){const _0x279f4f=[new window[(_0x1c9d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3894b2=>setTimeout(_0x3894b2,0x5356b2f6^_0x582a00)),_0x1d7939[_0x1c9d22([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c9d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1706a3=>{let _0x3ad873=0x0;_0xeb4441[_0x1c9d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c9d22([0x6f,0x6e])](_0x1c9d22([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x545a0f,_0x36fe33)=>{_0x36fe33[0x0][_0x1c9d22([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3ad873++,_0x3ad873==(0x535f8dc2^_0x582a00)&&(_0x1706a3(),_0x545a0f[_0x1c9d22([0x6f,0x66,0x66])]());});}))];return window[_0x1c9d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c9d22([0x72,0x61,0x63,0x65])](_0x279f4f)[_0x1c9d22([0x74,0x68,0x65,0x6e])](()=>_0xc67e56);}async function _0x178ce2(){await _0x1d7939,_0xeb4441[_0x1c9d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c9d22([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2155f7,_0xeb4441[_0x1c9d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c9d22([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2155f7,_0xeb4441[_0x1c9d22([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c9d22([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b94ee(_0x12d86e){const _0x18b23e=_0x5923a2();_0xeb4441[_0x18b23e]=_0x1c9d22([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x12d86e,_0x12d86e!=_0x1c9d22([0x56,0x61,0x6c,0x69,0x64])&&_0x178ce2();}function _0x5923a2(){const _0x58afd4=window[_0x1c9d22([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c9d22([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c9d22([0x6e,0x6f,0x77])]())[_0x1c9d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c9d22([0x2e]),'');let _0x55884c=_0x1c9d22([0x68]);for(let _0x20cb03=0x0;_0x20cb03<_0x58afd4[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20cb03+=0x2){let _0x28a4aa=window[_0x1c9d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58afd4[_0x1c9d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20cb03,_0x20cb03+0x2));_0x28a4aa>=_0x3669b8[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28a4aa-=_0x3669b8[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55884c+=_0x3669b8[_0x28a4aa];}return _0x55884c;}function _0x2dddfe(){const _0x16fe44=_0x1f8f7d[_0x1c9d22([0x73,0x70,0x6c,0x69,0x74])](_0x1c9d22([0x2e]));if(0x3!=_0x16fe44[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c3312(_0x16fe44[0x1]);function _0x2c3312(_0x304bb6){const _0x2c1cdd=_0x17b851(_0x304bb6);return _0x2c1cdd&&_0xd69e03()?_0x2c1cdd:null;function _0xd69e03(){const _0x3084fc=_0x2c1cdd[_0x1c9d22([0x6a,0x74,0x69])],_0x291c11=window[_0x1c9d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3084fc[_0x1c9d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3084fc[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42eda3={..._0x2c1cdd,[_0x1c9d22([0x6a,0x74,0x69])]:_0x3084fc[_0x1c9d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3084fc[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42eda3[_0x1c9d22([0x76,0x63])],_0x107ade(_0x42eda3)==_0x291c11;}}}async function _0x2c0d6c(){let _0x22dacc=!0x0;try{const _0x3cfd40=_0x1f8f7d[_0x1c9d22([0x73,0x70,0x6c,0x69,0x74])](_0x1c9d22([0x2e])),[_0x52bed9,_0x1bad75,_0x24fa49]=_0x3cfd40;return _0x5ab43e(_0x52bed9),await _0x556b64(_0x52bed9,_0x1bad75,_0x24fa49),_0x22dacc;}catch{return!0x1;}function _0x5ab43e(_0x57c5d9){const _0x37ac95=_0x17b851(_0x57c5d9);_0x37ac95&&_0x37ac95[_0x1c9d22([0x61,0x6c,0x67])]==_0x1c9d22([0x45,0x53,0x32,0x35,0x36])||(_0x22dacc=!0x1);}async function _0x556b64(_0x4f1a2d,_0x2257ea,_0x3f3a6a){const _0x2e4902=window[_0x1c9d22([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c9d22([0x66,0x72,0x6f,0x6d])](_0x52e312(_0x3f3a6a),_0x52d542=>_0x52d542[_0x1c9d22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x526544=new window[(_0x1c9d22([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c9d22([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f1a2d+_0x1c9d22([0x2e])+_0x2257ea),_0x22f523=window[_0x1c9d22([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c9d22([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22f523)return;const _0x452385=await _0x22f523[_0x1c9d22([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c9d22([0x6a,0x77,0x6b]),_0x55a57a,{[_0x1c9d22([0x6e,0x61,0x6d,0x65])]:_0x1c9d22([0x45,0x43,0x44,0x53,0x41]),[_0x1c9d22([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c9d22([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c9d22([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22f523[_0x1c9d22([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c9d22([0x6e,0x61,0x6d,0x65])]:_0x1c9d22([0x45,0x43,0x44,0x53,0x41]),[_0x1c9d22([0x68,0x61,0x73,0x68])]:{[_0x1c9d22([0x6e,0x61,0x6d,0x65])]:_0x1c9d22([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x452385,_0x2e4902,_0x526544)||(_0x22dacc=!0x1);}}function _0x17b851(_0x490edc){return _0x490edc[_0x1c9d22([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c9d22([0x65,0x79]))?JSON[_0x1c9d22([0x70,0x61,0x72,0x73,0x65])](_0x52e312(_0x490edc)):null;}function _0x52e312(_0x4b3288){return window[_0x1c9d22([0x61,0x74,0x6f,0x62])](_0x4b3288[_0x1c9d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c9d22([0x2b]))[_0x1c9d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c9d22([0x2f])));}function _0x107ade(_0x291b34){let _0x14eef1=0x1505;function _0x4531b1(_0xb499a0){for(let _0x3f2d9e=0x0;_0x3f2d9e<_0xb499a0[_0x1c9d22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f2d9e++){const _0x44de4f=_0xb499a0[_0x1c9d22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f2d9e);_0x14eef1=(_0x14eef1<<0x5)+_0x14eef1+_0x44de4f,_0x14eef1&=_0x14eef1;}}function _0x4297e8(_0x2f1067){Array[_0x1c9d22([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f1067)?_0x2f1067[_0x1c9d22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4297e8):_0x2f1067&&typeof _0x2f1067==_0x1c9d22([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c9d22([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f1067)[_0x1c9d22([0x73,0x6f,0x72,0x74])]()[_0x1c9d22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44f718,_0xde2605])=>{_0x4531b1(_0x44f718),_0x4297e8(_0xde2605);}):_0x4531b1(window[_0x1c9d22([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f1067));}return _0x4297e8(_0x291b34),_0x14eef1>>>0x0;}function _0x310ba4(_0x8c7114){return _0x8c7114[_0x1c9d22([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c9d22([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c9d22([0x30]));}function _0x98ed01(_0x1fcf74){return _0x1fcf74[_0x1c9d22([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c9d22([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c9d22([0x6a,0x6f,0x69,0x6e])]('');}function _0x2155f7(){}function _0x1c9d22(_0x5d56bc){const _0x25f5c7=_0x21e4;return _0x5d56bc[_0x25f5c7(0x1a1)](_0x3ca473=>String[_0x25f5c7(0x1eb)](_0x3ca473))[_0x25f5c7(0x1df)]('');}_0x4b94ee(await _0x3afede());}(this);}[_0x432e4d(0x1e2)](){const _0x439f5d=_0x432e4d,_0x14f789=this[_0x439f5d(0x1e9)][_0x439f5d(0x1e3)][_0x439f5d(0x1be)];_0x14f789[_0x439f5d(0x1dc)](_0x439f5d(0x1de))&&_0x14f789[_0x439f5d(0x1cf)](_0x439f5d(0x1de),{'allowAttributes':[_0x439f5d(0x1ec)]}),_0x14f789[_0x439f5d(0x1dc)](_0x439f5d(0x1ce))&&_0x14f789[_0x439f5d(0x1cf)](_0x439f5d(0x1ce),{'allowAttributes':[_0x439f5d(0x1ec)]});}[_0x432e4d(0x1b9)](){const _0x8be540=_0x432e4d,_0x39392b=this[_0x8be540(0x1e9)];_0x39392b[_0x8be540(0x19d)][_0x8be540(0x1c8)](_0x8be540(0x1ac))[_0x8be540(0x1ca)]({'model':_0x8be540(0x1ec),'view':_0x8be540(0x1b3)}),_0x39392b[_0x8be540(0x19d)][_0x8be540(0x1c8)](_0x8be540(0x1c4))[_0x8be540(0x1c0)]({'model':{'key':_0x8be540(0x1ec),'value':_0xb58ade=>_0xb58ade[_0x8be540(0x1d2)](_0x8be540(0x1b3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x92ad6c=_0x39392b[_0x8be540(0x1e6)][_0x8be540(0x1e4)](_0x8be540(0x1ed));_0x92ad6c&&this[_0x8be540(0x1d9)](_0x92ad6c,_0x8be540(0x1bd),(_0x416a17,[_0x3589ef,_0x4e5aa])=>{const _0x52a836=_0x8be540;_0x3589ef[_0x52a836(0x1a8)](_0x52a836(0x1ec),_0x4e5aa);});}[_0x432e4d(0x1b6)](){const _0x170597=_0x432e4d,_0x2d056c=this[_0x170597(0x1e9)][_0x170597(0x1aa)][_0x170597(0x1e4)](_0x170597(0x1dd))||{},_0x54994b=this[_0x170597(0x1e9)][_0x170597(0x1aa)][_0x170597(0x1e4)](_0x170597(0x1ef))||'';this[_0x170597(0x1d4)]=_0x1b661b(_0x196892[_0x170597(0x1ae)],_0x170597(0x1ab),{..._0x2d056c,'pubkey':_0x54994b,'ctx-name':_0x170597(0x1d0)+this[_0x170597(0x1a7)],'sourceList':'','imgOnly':_0x170597(0x1cc),'removeCopyright':_0x170597(0x1cc),'localeName':this[_0x170597(0x1e9)][_0x170597(0x1a9)][_0x170597(0x1b8)],'externalSourcesEmbedCss':_0x170597(0x1cb)}),this[_0x170597(0x1d4)][_0x170597(0x1ad)]=_0x10d58a=>{const _0x2135b1=_0x170597;if(_0x2135b1(0x1c9)==_0x10d58a)return _0x2135b1(0x1b5);},_0x196892[_0x170597(0x1ae)][_0x170597(0x1ee)][_0x170597(0x1bf)](this[_0x170597(0x1d4)]);}[_0x432e4d(0x1b7)](){const _0x1b000e=_0x432e4d;this[_0x1b000e(0x1c3)]=_0x1b661b(_0x196892[_0x1b000e(0x1ae)],_0x1b000e(0x1b1),{'ctx-name':_0x1b000e(0x1d0)+this[_0x1b000e(0x1a7)]}),_0x196892[_0x1b000e(0x1ae)][_0x1b000e(0x1ee)][_0x1b000e(0x1bf)](this[_0x1b000e(0x1c3)]);}[_0x432e4d(0x1c1)](){const _0x3b9846=_0x432e4d,_0x53c003=this[_0x3b9846(0x1e9)][_0x3b9846(0x1e6)][_0x3b9846(0x1e4)](_0x3b9846(0x1e1));_0x53c003&&this[_0x3b9846(0x1d9)](_0x53c003,_0x3b9846(0x1c5),()=>{const _0x2c278d=_0x3b9846,_0x4c8e3e=this[_0x2c278d(0x1e9)][_0x2c278d(0x1e3)][_0x2c278d(0x1ae)][_0x2c278d(0x1a4)][_0x2c278d(0x1f1)]();_0x4c8e3e&&_0x4c8e3e[_0x2c278d(0x1d2)](_0x2c278d(0x1ec))&&this[_0x2c278d(0x1e9)][_0x2c278d(0x1d6)][_0x2c278d(0x1a2)][_0x2c278d(0x19c)](_0x2c278d(0x1d3),()=>{const _0x52d666=_0x2c278d;_0x2da62c(this[_0x52d666(0x1e9)],_0x4c8e3e);});});const _0xabc450=this[_0x3b9846(0x1e9)][_0x3b9846(0x1e6)][_0x3b9846(0x1e4)](_0x3b9846(0x1db));_0xabc450&&this[_0x3b9846(0x1d9)](_0xabc450,_0x3b9846(0x1c5),()=>{const _0xf64cb8=_0x3b9846,_0x18752f=this[_0xf64cb8(0x1e9)][_0xf64cb8(0x1e3)][_0xf64cb8(0x1ae)][_0xf64cb8(0x1a4)][_0xf64cb8(0x1f1)]();_0x18752f&&_0x18752f[_0xf64cb8(0x1d2)](_0xf64cb8(0x1ec))&&this[_0xf64cb8(0x1e9)][_0xf64cb8(0x1d6)][_0xf64cb8(0x1a2)][_0xf64cb8(0x19c)](_0xf64cb8(0x1d3),()=>{const _0x55aaa1=_0xf64cb8;_0x2da62c(this[_0x55aaa1(0x1e9)],_0x18752f);});});}}
|
|
23
|
+
function _0x207e(){const _0x173aa5=['contentLanguage','true','fromCharCode','configElement','966672WCkZmm','2149632plTmXo','_initSchema','conversion','insertImage','join','appendChild','replaceImageSource','uc-upload-ctx-provider','1112PGGQkO','render','upcast','for','document','extend','uploadcare','once','cleanupImage','5858503yDLaoF','pluginName','_initImageProcessingIndicator','add','UploadcareEditing','12225jugacf','uploadcareImageId','downcast','_initConversion','getSelectedElement','uploadcareImageReplace','iconHrefResolver','execute','closeMax','uc-config','\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','editing','removeAttribute','requires','view','isOfficialPlugin','attributeToAttribute','_initCtx','href','ctxElement','imageInline','getAttribute','schema','isRegistered','isPremiumPlugin','destroy','data-uc-image-id','imageBlock','locale','PictureEditing','editor','config','model','afterInit','selection','1468900jKxNZG','uploadcare.pubkey','remove','listenTo','77914UqRIct','uploader-','map','commands','8564400DJSoqK','init','uploadcare.uploader','querySelector','_ctxElement','_initConfig','input[uploadcare-file-input]','#uc-icon-arrow-down','get','body','_configElement','ucContextId','elementToAttribute'];_0x207e=function(){return _0x173aa5;};return _0x207e();}const _0xa2804b=_0x3009;(function(_0x2b8684,_0x35d1da){const _0x19ea0e=_0x3009,_0x5a7bd0=_0x2b8684();while(!![]){try{const _0x51bb27=parseInt(_0x19ea0e(0x189))/0x1+-parseInt(_0x19ea0e(0x19e))/0x2+parseInt(_0x19ea0e(0x162))/0x3*(parseInt(_0x19ea0e(0x1a7))/0x4)+parseInt(_0x19ea0e(0x185))/0x5+-parseInt(_0x19ea0e(0x19f))/0x6+-parseInt(_0x19ea0e(0x1b0))/0x7+parseInt(_0x19ea0e(0x18d))/0x8;if(_0x51bb27===_0x35d1da)break;else _0x5a7bd0['push'](_0x5a7bd0['shift']());}catch(_0x124954){_0x5a7bd0['push'](_0x5a7bd0['shift']());}}}(_0x207e,0xdae2d));import{Plugin as _0x48a06c}from'ckeditor5/src/core.js';import{Dialog as _0x5a18e5}from'ckeditor5/src/ui.js';import{createElement as _0x3141ea,global as _0x2647b7,uid as _0x38a9d2}from'ckeditor5/src/utils.js';function _0x3009(_0x20b9ab,_0x360847){const _0x207e68=_0x207e();return _0x3009=function(_0x3009d1,_0x4be10a){_0x3009d1=_0x3009d1-0x160;let _0x2507db=_0x207e68[_0x3009d1];return _0x2507db;},_0x3009(_0x20b9ab,_0x360847);}import{UploadcareCommand as _0xaaa71f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xfad0fd}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x527876}from'./utils/editingutils.js';export class UploadcareEditing extends _0x48a06c{[_0xa2804b(0x197)]=null;[_0xa2804b(0x191)]=null;static get[_0xa2804b(0x1b1)](){const _0x455f3e=_0xa2804b;return _0x455f3e(0x161);}static get[_0xa2804b(0x16f)](){const _0xc52119=_0xa2804b;return[_0xc52119(0x17f),_0xfad0fd,_0x5a18e5];}static get[_0xa2804b(0x171)](){return!0x0;}static get[_0xa2804b(0x17a)](){return!0x0;}[_0xa2804b(0x198)];get[_0xa2804b(0x19d)](){const _0x3e829d=_0xa2804b;return this[_0x3e829d(0x197)];}get[_0xa2804b(0x175)](){const _0x442d10=_0xa2804b;return this[_0x442d10(0x191)];}constructor(_0x3086b4){const _0x27eaaa=_0xa2804b;super(_0x3086b4),this[_0x27eaaa(0x198)]=_0x38a9d2();}[_0xa2804b(0x18e)](){const _0x451859=_0xa2804b,_0x429b4e=this[_0x451859(0x180)];_0x429b4e[_0x451859(0x18c)][_0x451859(0x160)](_0x451859(0x1ad),new _0xaaa71f(_0x429b4e));}[_0xa2804b(0x183)](){const _0x11d01=_0xa2804b;this[_0x11d01(0x1a0)](),this[_0x11d01(0x165)](),this[_0x11d01(0x192)](),this[_0x11d01(0x173)](),this[_0x11d01(0x1b2)](),this[_0x11d01(0x188)](this[_0x11d01(0x180)],_0x11d01(0x17b),()=>{const _0x3d6750=_0x11d01;this[_0x3d6750(0x197)]&&(this[_0x3d6750(0x197)][_0x3d6750(0x187)](),this[_0x3d6750(0x197)]=null),this[_0x3d6750(0x191)]&&(this[_0x3d6750(0x191)][_0x3d6750(0x187)](),this[_0x3d6750(0x191)]=null);const _0x4e713a=_0x2647b7[_0x3d6750(0x1ab)][_0x3d6750(0x190)](_0x3d6750(0x193));_0x4e713a&&_0x4e713a[_0x3d6750(0x187)]();}),async function(_0x426849){const _0x542afd=_0xa263b7([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xbdb490=0x535f8c3a,_0x60e0e0=0x5358f4ba^_0xbdb490,_0x2afae4=window[_0xa263b7([0x44,0x61,0x74,0x65])][_0xa263b7([0x6e,0x6f,0x77])](),_0x3903c5=_0x426849[_0xa263b7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x189f87=new window[(_0xa263b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b5e5b=>{_0x3903c5[_0xa263b7([0x6f,0x6e,0x63,0x65])](_0xa263b7([0x72,0x65,0x61,0x64,0x79]),_0x3b5e5b);}),_0x22cc27={[_0xa263b7([0x6b,0x74,0x79])]:_0xa263b7([0x45,0x43]),[_0xa263b7([0x75,0x73,0x65])]:_0xa263b7([0x73,0x69,0x67]),[_0xa263b7([0x63,0x72,0x76])]:_0xa263b7([0x50,0x2d,0x32,0x35,0x36]),[_0xa263b7([0x78])]:_0xa263b7([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]),[_0xa263b7([0x79])]:_0xa263b7([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]),[_0xa263b7([0x61,0x6c,0x67])]:_0xa263b7([0x45,0x53,0x32,0x35,0x36])},_0x1dc8e9=_0x3903c5[_0xa263b7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa263b7([0x67,0x65,0x74])](_0xa263b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x404c69(){let _0x5d0e01,_0x2c2498=null,_0x3880e7=null;try{if(_0x1dc8e9==_0xa263b7([0x47,0x50,0x4c]))return _0xa263b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d0e01=_0xb90481(),!_0x5d0e01)return _0xa263b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d0e01[_0xa263b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3880e7=_0x501eea(_0x5d0e01[_0xa263b7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d0e01[_0xa263b7([0x6a,0x74,0x69])])),await _0x41f410()?_0x3c14bd()?_0x40f7c6()?_0xa263b7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36b00f()?(_0x5d0e01[_0xa263b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa263b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c2498=_0x35ec85(_0xa263b7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d0e01[_0xa263b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa263b7([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c2498=_0x35ec85(_0xa263b7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d4397()):_0xa263b7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa263b7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa263b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa263b7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40f7c6(){const _0x38d4fc=[_0xa263b7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa263b7([0x74,0x72,0x69,0x61,0x6c])][_0xa263b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d0e01[_0xa263b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2afae4/0x3e8:0xe10*_0x60e0e0;return _0x5d0e01[_0xa263b7([0x65,0x78,0x70])]<_0x38d4fc;}function _0x3c14bd(){const _0x438ad9=_0x5d0e01[_0xa263b7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x438ad9&&(!!_0x438ad9[_0xa263b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa263b7([0x2a]))||!!_0x438ad9[_0xa263b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa263b7([0x55,0x50,0x4c,0x43])));}function _0x36b00f(){const _0x4f135c=_0x3009,_0x201bb2=_0x5d0e01[_0xa263b7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x201bb2||0x0==_0x201bb2[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e16b7}=new URL(window[_0xa263b7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4f135c(0x174)]);if(_0x201bb2[_0xa263b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e16b7))return!0x0;const _0x7b244f=_0x2e16b7[_0xa263b7([0x73,0x70,0x6c,0x69,0x74])](_0xa263b7([0x2e]));return _0x201bb2[_0xa263b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ac73a=>_0x1ac73a[_0xa263b7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa263b7([0x2a])))[_0xa263b7([0x6d,0x61,0x70])](_0x239a46=>_0x239a46[_0xa263b7([0x73,0x70,0x6c,0x69,0x74])](_0xa263b7([0x2e])))[_0xa263b7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x190e9e=>_0x190e9e[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7b244f[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa263b7([0x6d,0x61,0x70])](_0x22a323=>Array(_0x7b244f[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22a323[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa263b7([0x66,0x69,0x6c,0x6c])](_0x22a323[0x0]===_0xa263b7([0x2a])?_0xa263b7([0x2a]):'')[_0xa263b7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22a323))[_0xa263b7([0x73,0x6f,0x6d,0x65])](_0xc64b9b=>_0x7b244f[_0xa263b7([0x65,0x76,0x65,0x72,0x79])]((_0x4627df,_0x5cbd66)=>_0xc64b9b[_0x5cbd66]===_0x4627df||_0xc64b9b[_0x5cbd66]===_0xa263b7([0x2a])));}function _0x4d4397(){return _0x2c2498&&_0x3880e7?new window[(_0xa263b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3459ee,_0x41907a)=>{_0x2c2498[_0xa263b7([0x74,0x68,0x65,0x6e])](_0x3459ee,_0x41907a),_0x3880e7[_0xa263b7([0x74,0x68,0x65,0x6e])](_0x47f6ed=>{_0x47f6ed!=_0xa263b7([0x56,0x61,0x6c,0x69,0x64])&&_0x3459ee(_0x47f6ed);},_0x41907a);}):_0x2c2498||_0x3880e7||_0xa263b7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x501eea(_0x9db066,_0x182a7d){return new window[(_0xa263b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1126c9=>{if(_0x4dc70d())return _0x1126c9(_0xa263b7([0x56,0x61,0x6c,0x69,0x64]));_0xd9f4d6(),_0x3903c5[_0xa263b7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa263b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1479b9=!0x1;const _0x25082f=_0x38a9d2();function _0x5df3bd(_0x56118c){return!!_0x56118c&&(typeof _0x56118c===_0xa263b7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56118c===_0xa263b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56118c[_0xa263b7([0x74,0x68,0x65,0x6e])]===_0xa263b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56118c[_0xa263b7([0x63,0x61,0x74,0x63,0x68])]===_0xa263b7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e10a7(_0x1c908d){_0x2ead12(_0x1c908d)[_0xa263b7([0x74,0x68,0x65,0x6e])](_0x22ab40=>{if(!_0x22ab40||_0x22ab40[_0xa263b7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa263b7([0x6f,0x6b]))return _0xa263b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6ddde8(_0x341220(_0x25082f+_0x182a7d))!=_0x22ab40[_0xa263b7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa263b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa263b7([0x56,0x61,0x6c,0x69,0x64]);})[_0xa263b7([0x74,0x68,0x65,0x6e])](_0x46b8b4=>(_0x3fd363(),_0x46b8b4),()=>{const _0x2ba2da=_0x122555();return null==_0x2ba2da?(_0x3fd363(),_0xa263b7([0x56,0x61,0x6c,0x69,0x64])):_0xa263b7(_0x2afae4-_0x2ba2da>(0x7753083a^_0xbdb490)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa263b7([0x74,0x68,0x65,0x6e])](_0x1126c9)[_0xa263b7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1126c9(_0xa263b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b9adb=0x536962ba^_0xbdb490;function _0x3fd363(){const _0x56ea29=_0xa263b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x6ddde8(_0x341220(_0x9db066)),_0x2fb358=_0x27e071(_0x6ddde8(window[_0xa263b7([0x4d,0x61,0x74,0x68])][_0xa263b7([0x63,0x65,0x69,0x6c])](_0x2afae4/_0x3b9adb)));window[_0xa263b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa263b7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56ea29,_0x2fb358);}function _0x122555(){const _0x888fd=_0xa263b7([0x6c,0x6c,0x63,0x74,0x2d])+_0x6ddde8(_0x341220(_0x9db066)),_0xd5c67e=window[_0xa263b7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa263b7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x888fd);return _0xd5c67e?window[_0xa263b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27e071(_0xd5c67e),0x10)*_0x3b9adb:null;}function _0x2ead12(_0xd08b74){return new window[(_0xa263b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14fb88,_0x5621b8)=>{_0xd08b74[_0xa263b7([0x74,0x68,0x65,0x6e])](_0x14fb88,_0x5621b8),window[_0xa263b7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5621b8,0x535e58fa^_0xbdb490);});}}_0x3903c5[_0xa263b7([0x6f,0x6e])](_0xa263b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4547a3,_0x3befb5)=>{if(_0x3befb5[0x0]!=_0x9db066)return _0x1126c9(_0xa263b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3befb5[0x1]={..._0x3befb5[0x1],[_0xa263b7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25082f};},{[_0xa263b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa263b7([0x68,0x69,0x67,0x68])}),_0x3903c5[_0xa263b7([0x6f,0x6e])](_0xa263b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a92f1=>{_0x5df3bd(_0x5a92f1[_0xa263b7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1479b9=!0x0,_0x3e10a7(_0x5a92f1[_0xa263b7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa263b7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa263b7([0x6c,0x6f,0x77])}),_0x189f87[_0xa263b7([0x74,0x68,0x65,0x6e])](()=>{_0x1479b9||_0x1126c9(_0xa263b7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4dc70d(){return _0x3903c5[_0xa263b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa263b7([0x76,0x69,0x65,0x77])][_0xa263b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa263b7([0x61,0x75,0x74,0x6f]);}function _0xd9f4d6(){_0x3903c5[_0xa263b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa263b7([0x76,0x69,0x65,0x77])][_0xa263b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa263b7([0x61,0x75,0x74,0x6f]);}}function _0x35ec85(_0x166ebb){const _0x1f113a=[new window[(_0xa263b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d5204=>setTimeout(_0x2d5204,0x5356b2f6^_0xbdb490)),_0x189f87[_0xa263b7([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa263b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c06f6=>{let _0x37921a=0x0;_0x3903c5[_0xa263b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xa263b7([0x6f,0x6e])](_0xa263b7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f5846,_0x14e71e)=>{_0x14e71e[0x0][_0xa263b7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37921a++,_0x37921a==(0x535f8dc2^_0xbdb490)&&(_0x1c06f6(),_0x4f5846[_0xa263b7([0x6f,0x66,0x66])]());});}))];return window[_0xa263b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa263b7([0x72,0x61,0x63,0x65])](_0x1f113a)[_0xa263b7([0x74,0x68,0x65,0x6e])](()=>_0x166ebb);}async function _0x1b35ee(){await _0x189f87,_0x3903c5[_0xa263b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xa263b7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5deaf,_0x3903c5[_0xa263b7([0x6d,0x6f,0x64,0x65,0x6c])][_0xa263b7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5deaf,_0x3903c5[_0xa263b7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa263b7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52e743(_0x18ca89){const _0x13cdfb=_0x692531();_0x3903c5[_0x13cdfb]=_0xa263b7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x18ca89,_0x18ca89!=_0xa263b7([0x56,0x61,0x6c,0x69,0x64])&&_0x1b35ee();}function _0x692531(){const _0x299383=window[_0xa263b7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa263b7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa263b7([0x6e,0x6f,0x77])]())[_0xa263b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa263b7([0x2e]),'');let _0x47b7=_0xa263b7([0x68]);for(let _0x4b70fb=0x0;_0x4b70fb<_0x299383[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b70fb+=0x2){let _0x403bb3=window[_0xa263b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x299383[_0xa263b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b70fb,_0x4b70fb+0x2));_0x403bb3>=_0x542afd[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x403bb3-=_0x542afd[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47b7+=_0x542afd[_0x403bb3];}return _0x47b7;}function _0xb90481(){const _0x5e06c0=_0x1dc8e9[_0xa263b7([0x73,0x70,0x6c,0x69,0x74])](_0xa263b7([0x2e]));if(0x3!=_0x5e06c0[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf64f86(_0x5e06c0[0x1]);function _0xf64f86(_0x1772b0){const _0x19b6ad=_0x599a26(_0x1772b0);return _0x19b6ad&&_0x45cb0c()?_0x19b6ad:null;function _0x45cb0c(){const _0x23421b=_0x19b6ad[_0xa263b7([0x6a,0x74,0x69])],_0x537a41=window[_0xa263b7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23421b[_0xa263b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23421b[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52da11={..._0x19b6ad,[_0xa263b7([0x6a,0x74,0x69])]:_0x23421b[_0xa263b7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23421b[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52da11[_0xa263b7([0x76,0x63])],_0x341220(_0x52da11)==_0x537a41;}}}async function _0x41f410(){let _0x3dd7aa=!0x0;try{const _0x206b99=_0x1dc8e9[_0xa263b7([0x73,0x70,0x6c,0x69,0x74])](_0xa263b7([0x2e])),[_0x2454fd,_0x157fef,_0x159766]=_0x206b99;return _0xd91042(_0x2454fd),await _0xd80314(_0x2454fd,_0x157fef,_0x159766),_0x3dd7aa;}catch{return!0x1;}function _0xd91042(_0x243cde){const _0x22f90b=_0x599a26(_0x243cde);_0x22f90b&&_0x22f90b[_0xa263b7([0x61,0x6c,0x67])]==_0xa263b7([0x45,0x53,0x32,0x35,0x36])||(_0x3dd7aa=!0x1);}async function _0xd80314(_0x16f7fb,_0x55e561,_0x5e1ed0){const _0x416747=window[_0xa263b7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa263b7([0x66,0x72,0x6f,0x6d])](_0x264b18(_0x5e1ed0),_0x39b595=>_0x39b595[_0xa263b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50736a=new window[(_0xa263b7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa263b7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16f7fb+_0xa263b7([0x2e])+_0x55e561),_0x30bf5e=window[_0xa263b7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa263b7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30bf5e)return;const _0x2efc4a=await _0x30bf5e[_0xa263b7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa263b7([0x6a,0x77,0x6b]),_0x22cc27,{[_0xa263b7([0x6e,0x61,0x6d,0x65])]:_0xa263b7([0x45,0x43,0x44,0x53,0x41]),[_0xa263b7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa263b7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa263b7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30bf5e[_0xa263b7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa263b7([0x6e,0x61,0x6d,0x65])]:_0xa263b7([0x45,0x43,0x44,0x53,0x41]),[_0xa263b7([0x68,0x61,0x73,0x68])]:{[_0xa263b7([0x6e,0x61,0x6d,0x65])]:_0xa263b7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2efc4a,_0x416747,_0x50736a)||(_0x3dd7aa=!0x1);}}function _0x599a26(_0x555dd9){return _0x555dd9[_0xa263b7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa263b7([0x65,0x79]))?JSON[_0xa263b7([0x70,0x61,0x72,0x73,0x65])](_0x264b18(_0x555dd9)):null;}function _0x264b18(_0x4d277a){return window[_0xa263b7([0x61,0x74,0x6f,0x62])](_0x4d277a[_0xa263b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa263b7([0x2b]))[_0xa263b7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa263b7([0x2f])));}function _0x341220(_0x21f003){let _0x3d57b1=0x1505;function _0x41b14d(_0x41fa51){for(let _0x5e120f=0x0;_0x5e120f<_0x41fa51[_0xa263b7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e120f++){const _0x5d5a65=_0x41fa51[_0xa263b7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5e120f);_0x3d57b1=(_0x3d57b1<<0x5)+_0x3d57b1+_0x5d5a65,_0x3d57b1&=_0x3d57b1;}}function _0x58ac18(_0x639d2a){Array[_0xa263b7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x639d2a)?_0x639d2a[_0xa263b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58ac18):_0x639d2a&&typeof _0x639d2a==_0xa263b7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa263b7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x639d2a)[_0xa263b7([0x73,0x6f,0x72,0x74])]()[_0xa263b7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45671b,_0x4555f4])=>{_0x41b14d(_0x45671b),_0x58ac18(_0x4555f4);}):_0x41b14d(window[_0xa263b7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x639d2a));}return _0x58ac18(_0x21f003),_0x3d57b1>>>0x0;}function _0x6ddde8(_0x23e174){return _0x23e174[_0xa263b7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa263b7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa263b7([0x30]));}function _0x27e071(_0xc182c4){return _0xc182c4[_0xa263b7([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa263b7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa263b7([0x6a,0x6f,0x69,0x6e])]('');}function _0x5deaf(){}function _0xa263b7(_0x4f155d){const _0x489d8b=_0x3009;return _0x4f155d[_0x489d8b(0x18b)](_0x505de6=>String[_0x489d8b(0x19c)](_0x505de6))[_0x489d8b(0x1a3)]('');}_0x52e743(await _0x404c69());}(this);}[_0xa2804b(0x1a0)](){const _0x50c6f5=_0xa2804b,_0x9e03cf=this[_0x50c6f5(0x180)][_0x50c6f5(0x182)][_0x50c6f5(0x178)];_0x9e03cf[_0x50c6f5(0x179)](_0x50c6f5(0x17d))&&_0x9e03cf[_0x50c6f5(0x1ac)](_0x50c6f5(0x17d),{'allowAttributes':[_0x50c6f5(0x163)]}),_0x9e03cf[_0x50c6f5(0x179)](_0x50c6f5(0x176))&&_0x9e03cf[_0x50c6f5(0x1ac)](_0x50c6f5(0x176),{'allowAttributes':[_0x50c6f5(0x163)]});}[_0xa2804b(0x165)](){const _0x1404ea=_0xa2804b,_0x375dd4=this[_0x1404ea(0x180)];_0x375dd4[_0x1404ea(0x1a1)][_0x1404ea(0x1aa)](_0x1404ea(0x164))[_0x1404ea(0x172)]({'model':_0x1404ea(0x163),'view':_0x1404ea(0x17c)}),_0x375dd4[_0x1404ea(0x1a1)][_0x1404ea(0x1aa)](_0x1404ea(0x1a9))[_0x1404ea(0x199)]({'model':{'key':_0x1404ea(0x163),'value':_0x339267=>_0x339267[_0x1404ea(0x177)](_0x1404ea(0x17c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1b0c26=_0x375dd4[_0x1404ea(0x18c)][_0x1404ea(0x195)](_0x1404ea(0x1a5));_0x1b0c26&&this[_0x1404ea(0x188)](_0x1b0c26,_0x1404ea(0x1af),(_0x42a708,[_0x3d3baa,_0x39c2b5])=>{const _0x4420a7=_0x1404ea;_0x3d3baa[_0x4420a7(0x16e)](_0x4420a7(0x163),_0x39c2b5);});}[_0xa2804b(0x192)](){const _0x48066a=_0xa2804b,_0x90cd7d=this[_0x48066a(0x180)][_0x48066a(0x181)][_0x48066a(0x195)](_0x48066a(0x18f))||{},_0x1c254b=this[_0x48066a(0x180)][_0x48066a(0x181)][_0x48066a(0x195)](_0x48066a(0x186))||'';this[_0x48066a(0x197)]=_0x3141ea(_0x2647b7[_0x48066a(0x1ab)],_0x48066a(0x16b),{..._0x90cd7d,'pubkey':_0x1c254b,'ctx-name':_0x48066a(0x18a)+this[_0x48066a(0x198)],'sourceList':'','imgOnly':_0x48066a(0x19b),'removeCopyright':_0x48066a(0x19b),'localeName':this[_0x48066a(0x180)][_0x48066a(0x17e)][_0x48066a(0x19a)],'externalSourcesEmbedCss':_0x48066a(0x16c)}),this[_0x48066a(0x197)][_0x48066a(0x168)]=_0x5ee2a1=>{const _0x346c26=_0x48066a;if(_0x346c26(0x16a)==_0x5ee2a1)return _0x346c26(0x194);},_0x2647b7[_0x48066a(0x1ab)][_0x48066a(0x196)][_0x48066a(0x1a4)](this[_0x48066a(0x197)]);}[_0xa2804b(0x173)](){const _0x1e2021=_0xa2804b;this[_0x1e2021(0x191)]=_0x3141ea(_0x2647b7[_0x1e2021(0x1ab)],_0x1e2021(0x1a6),{'ctx-name':_0x1e2021(0x18a)+this[_0x1e2021(0x198)]}),_0x2647b7[_0x1e2021(0x1ab)][_0x1e2021(0x196)][_0x1e2021(0x1a4)](this[_0x1e2021(0x191)]);}[_0xa2804b(0x1b2)](){const _0x5057e7=_0xa2804b,_0x2cc988=this[_0x5057e7(0x180)][_0x5057e7(0x18c)][_0x5057e7(0x195)](_0x5057e7(0x1a2));_0x2cc988&&this[_0x5057e7(0x188)](_0x2cc988,_0x5057e7(0x169),()=>{const _0x180aaa=_0x5057e7,_0x5b355b=this[_0x180aaa(0x180)][_0x180aaa(0x182)][_0x180aaa(0x1ab)][_0x180aaa(0x184)][_0x180aaa(0x166)]();_0x5b355b&&_0x5b355b[_0x180aaa(0x177)](_0x180aaa(0x163))&&this[_0x180aaa(0x180)][_0x180aaa(0x16d)][_0x180aaa(0x170)][_0x180aaa(0x1ae)](_0x180aaa(0x1a8),()=>{const _0x2d0c51=_0x180aaa;_0x527876(this[_0x2d0c51(0x180)],_0x5b355b);});});const _0x512762=this[_0x5057e7(0x180)][_0x5057e7(0x18c)][_0x5057e7(0x195)](_0x5057e7(0x167));_0x512762&&this[_0x5057e7(0x188)](_0x512762,_0x5057e7(0x169),()=>{const _0x5af6c0=_0x5057e7,_0x340aaa=this[_0x5af6c0(0x180)][_0x5af6c0(0x182)][_0x5af6c0(0x1ab)][_0x5af6c0(0x184)][_0x5af6c0(0x166)]();_0x340aaa&&_0x340aaa[_0x5af6c0(0x177)](_0x5af6c0(0x163))&&this[_0x5af6c0(0x180)][_0x5af6c0(0x16d)][_0x5af6c0(0x170)][_0x5af6c0(0x1ae)](_0x5af6c0(0x1a8),()=>{const _0x363a11=_0x5af6c0;_0x527876(this[_0x363a11(0x180)],_0x340aaa);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x44572d,ObservableMixin as _0x5ea84e}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2a1d87}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x180b95}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x346eea}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x302bab}from'../../utils/uploadutils.js';import{getImageUrls as _0x1ee95c,getImageDimension as _0x277562}from'../../utils/editingutils.js';import{isAncestor as _0x4fb87d}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5ea84e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x127fdf,_0x148645,_0x161a9b){super(),this['_editor']=_0x127fdf,this['_dialog']=_0x148645,this['_imageElement']=_0x161a9b,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 _0x55d5c7=this['_imageElement'],_0x2f5a3d=_0x55d5c7['getAttribute']('uploadcareImageId'),_0x2d1886=_0x55d5c7['getAttribute']('src');if(_0x2f5a3d)await this['_loadImageInfo'](_0x2f5a3d,_0x2d1886);else{if(this['_imageCache']['has'](_0x2d1886)){const _0xf00c09=this['_imageCache']['get'](_0x2d1886);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xf00c09['url'],this['imageDimension']=_0xf00c09['dimension'],this['imageId']=_0xf00c09['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1cefcf}=this['_editor'],t=_0x1cefcf['t'],_0x2604bb=new _0x346eea(_0x1cefcf,this['imageStatus'],this['_attributes']);_0x2604bb['bind']('status')['to'](this,'imageStatus'),_0x2604bb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2604bb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2604bb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2604bb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x180b95,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2604bb,'position':_0x2a1d87['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2604bb['focus']();},'onHide':()=>{_0x2604bb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1939e2=>!_0x4fb87d(_0x1939e2,_0x2604bb['element'])}});}['_loadImageInfo'](_0x393202,_0x47146a){return _0x302bab['getInfo'](_0x393202,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5d70ec=>{const {width:_0x5297f6,height:_0x21d90d}=_0x5d70ec['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47146a,this['imageDimension']={'width':_0x5297f6,'height':_0x21d90d},this['imageId']=_0x393202;})['catch'](_0x10fbbe=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x10fbbe['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x52bfeb,_0x19903f){return this['_getImageAsFile'](_0x52bfeb)['then'](_0x14b2fb=>_0x302bab['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x19903f['signal'],'file':_0x14b2fb,'onProgress':_0x24597e=>{_0x24597e&&_0x24597e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x24597e['value']));}}))['then'](_0x4da845=>{const {width:_0x225f41,height:_0x20e0cd}=_0x4da845['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4da845['cdnUrl'],this['imageDimension']={'width':_0x225f41,'height':_0x20e0cd},this['imageId']=_0x4da845['uuid'],this['imageUploadProgress']=null;const _0x496eb7=_0x52bfeb['getAttribute']('src');this['_imageCache']['set'](_0x496eb7,{'id':_0x4da845['uuid'],'url':_0x4da845['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x449ca0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x449ca0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x40fba1,_0x4c2c99){_0x40fba1['on']('apply',(_0x3b4684,_0x242fd8)=>{this['_replaceImage'](_0x4c2c99,_0x242fd8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x40fba1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x40fba1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5d9f54,_0x1a8340,_0x1b6010){const _0xd6fad7=this['_editor'],{width:_0x151626,height:_0xd5cd99}=_0x277562(_0x1a8340,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x59b91a,imageSources:_0x4f8b74}=_0x1ee95c(_0x1a8340,_0x151626);_0xd6fad7['model']['change'](_0x134c99=>{if('$graveyard'===_0x5d9f54['root']['rootName']){_0xd6fad7['execute']('insertImage',{'imageType':_0x5d9f54['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5d9f54['getAttributes']()),'uploadcareImageId':_0x1b6010,'src':_0x59b91a,'sources':_0x4f8b74,'width':_0x151626,'height':_0xd5cd99}});const _0x45f77b=_0x5d9f54['getChildren']();_0x5d9f54=_0xd6fad7['model']['document']['selection']['getSelectedElement']();for(const _0x16dd81 of _0x45f77b)_0x134c99['append'](_0x134c99['cloneElement'](_0x16dd81),_0x5d9f54);}else _0x134c99['setSelection'](_0x5d9f54,'on'),_0xd6fad7['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5d9f54['getAttributes']()),'uploadcareImageId':_0x1b6010,'src':_0x59b91a,'sources':_0x4f8b74,'width':_0x151626,'height':_0xd5cd99},_0x5d9f54);_0x134c99['setSelection'](_0x5d9f54,'on');});}async['_getImageAsFile'](_0x4bb285){const _0x25af57=_0x44572d['window'],_0x33a105=_0x44572d['document']['location']['href'],_0x5c5c7e=new _0x25af57['URL'](_0x4bb285['getAttribute']('src'),_0x33a105);if('data:'===_0x5c5c7e['protocol']){const _0x29560a=_0x5c5c7e['href']['split'](','),_0x2fc140=_0x29560a[0x0]['match'](/:(.*?);/)[0x1],_0xc9ed30=_0x2fc140['split']('/')[0x1],_0x116118=_0x25af57['atob'](_0x29560a[_0x29560a['length']-0x1]);let _0x4375f5=_0x116118['length'];const _0x5bd58f=new _0x25af57['Uint8Array'](_0x4375f5);for(;_0x4375f5--;)_0x5bd58f[_0x4375f5]=_0x116118['charCodeAt'](_0x4375f5);return new _0x25af57['File']([_0x5bd58f],'image.'+_0xc9ed30,{'type':_0x2fc140});}const _0x8ce4cb=_0x5c5c7e['href']['split']('/'),_0x3e6f13=_0x8ce4cb[_0x8ce4cb['length']-0x1],_0x2070cd=_0x3e6f13['split']('.')[0x1];return _0x25af57['fetch'](_0x5c5c7e['href'])['then'](_0x365941=>_0x365941['clone']()['blob']())['then'](_0x5e091d=>new _0x25af57['File']([_0x5e091d],_0x3e6f13,{'type':'image/'+_0x2070cd}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4eebce,_0x3da161){const _0x5342f2=_0xa9dc,_0x5a03c0=_0x4eebce();while(!![]){try{const _0x5ca716=-parseInt(_0x5342f2(0x18b))/0x1*(-parseInt(_0x5342f2(0x188))/0x2)+parseInt(_0x5342f2(0x17e))/0x3+parseInt(_0x5342f2(0x185))/0x4*(parseInt(_0x5342f2(0x17a))/0x5)+-parseInt(_0x5342f2(0x181))/0x6+-parseInt(_0x5342f2(0x17f))/0x7*(parseInt(_0x5342f2(0x17c))/0x8)+-parseInt(_0x5342f2(0x18a))/0x9+parseInt(_0x5342f2(0x17d))/0xa;if(_0x5ca716===_0x3da161)break;else _0x5a03c0['push'](_0x5a03c0['shift']());}catch(_0x52003f){_0x5a03c0['push'](_0x5a03c0['shift']());}}}(_0x5bac,0xb66d0));function _0xa9dc(_0xd8e4a7,_0x1d1d32){const _0x5bac49=_0x5bac();return _0xa9dc=function(_0xa9dc9a,_0x107c65){_0xa9dc9a=_0xa9dc9a-0x17a;let _0x49e224=_0x5bac49[_0xa9dc9a];return _0x49e224;},_0xa9dc(_0xd8e4a7,_0x1d1d32);}import{View as _0x2d36b4}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x2d36b4{constructor(_0x17a5d4,_0x55a0c4){const _0x1ba4ee=_0xa9dc;super(_0x17a5d4);const _0x55ab64=this[_0x1ba4ee(0x186)];this[_0x1ba4ee(0x187)](_0x1ba4ee(0x189),''),this[_0x1ba4ee(0x183)]({'tag':_0x1ba4ee(0x180),'attributes':{..._0x55a0c4,'class':[_0x1ba4ee(0x17b),_0x1ba4ee(0x184)],'ctx-name':_0x1ba4ee(0x182),'cdn-url':_0x55ab64['to'](_0x1ba4ee(0x189))}});}}function _0x5bac(){const _0x23136b=['uc-cloud-image-editor','1773258iOqayV','image-edit','setTemplate','ck-uploadcare-theme','2484UGEXIc','bindTemplate','set','2DoCTgk','imageSrc','12575277ceRlLT','384287VfeoQZ','6030TYlhkd','uc-light','896NpnQkP','7249090yIpQvy','4360086bXyCvs','54467OmusMs'];_0x5bac=function(){return _0x23136b;};return _0x5bac();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1a16a0}from'ckeditor5/src/icons.js';import{ButtonView as _0x4998a6,IconView as _0x140c49,View as _0x5960d7}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5960d7{constructor(_0x397f15){super(_0x397f15);const t=_0x397f15['t'];this['set']('errorType',null);const _0x150447=new _0x4998a6(_0x397f15);_0x150447['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x150447['withText']=!0x0,_0x150447['class']='ck-button-action',_0x150447['on']('execute',()=>{this['fire']('retry');}),_0x150447['bind']('isVisible')['to'](this,'errorType',_0x270391=>'NotFound'!==_0x270391);const _0x4e7bde=new _0x140c49();_0x4e7bde['content']=_0x1a16a0,_0x4e7bde['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4518ef=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':[_0x4e7bde,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4518ef['to']('errorType',_0x3c1460=>t('NotFound'!==_0x3c1460?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x150447]},{'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 _0x343961,View as _0x28a46c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x28a46c{constructor(_0x46bff3){super(_0x46bff3);const t=_0x46bff3['t'],_0x2f2c3b=this['bindTemplate'],_0x232a00=new _0x343961();_0x232a00['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':[_0x232a00,{'text':_0x2f2c3b['to']('imageUploadProgress',_0x339f58=>t('Loading\x20image...')+'\x20('+(_0x339f58||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c373a=_0x1015;(function(_0x16d3f3,_0x11a223){const _0x4cbbd2=_0x1015,_0x1d29d2=_0x16d3f3();while(!![]){try{const _0x521ec8=parseInt(_0x4cbbd2(0xde))/0x1+parseInt(_0x4cbbd2(0xe8))/0x2+-parseInt(_0x4cbbd2(0xc8))/0x3+parseInt(_0x4cbbd2(0xd8))/0x4+-parseInt(_0x4cbbd2(0xd4))/0x5*(parseInt(_0x4cbbd2(0xf8))/0x6)+-parseInt(_0x4cbbd2(0xf0))/0x7*(-parseInt(_0x4cbbd2(0xd7))/0x8)+parseInt(_0x4cbbd2(0xce))/0x9*(-parseInt(_0x4cbbd2(0xe3))/0xa);if(_0x521ec8===_0x11a223)break;else _0x1d29d2['push'](_0x1d29d2['shift']());}catch(_0x4c0e4a){_0x1d29d2['push'](_0x1d29d2['shift']());}}}(_0xe1bd,0xe961d));import{View as _0x5c893d}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0xacb43c}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x56b231}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1d9ddc}from'./uploadcareimageeditformeditingview.js';function _0xe1bd(){const _0xec0462=['3665318sEGAgI','fire','cancel','_focusableView','render','error','div','toLowerCase','28yGUNhc','nodeName','target','ck-reset_all-excluded','_addErrorViewListeners','_addUploadcareImageEditorListeners','uc-cloud-image-editor','addMany','31608AtjlOk','getFocusableElement','change:status','clear','length','once','cdnUrl','2998701utqYBy','add','createCollection','_items','status','_editingView','6651DVyGyS','ready','retry','uploading','setTemplate','detail','460VfbrSb','set','apply','794440fDwsZk','295208KCWZpV','querySelector','element','focus','addedNodes','observe','1813266xjUfrx','_errorView','_loadingView','disconnect','addEventListener','22690eWlTfF','_setView','filter','_waitForImageEditorComponent','ck-uploadcare-form'];_0xe1bd=function(){return _0xec0462;};return _0xe1bd();}import{DialogFocusManagerView as _0x20830f}from'../../utils/dialogfocusmanagerview.js';function _0x1015(_0xac62fd,_0x47f0b6){const _0xe1bd91=_0xe1bd();return _0x1015=function(_0x10154,_0x58806c){_0x10154=_0x10154-0xc6;let _0x4a8c21=_0xe1bd91[_0x10154];return _0x4a8c21;},_0x1015(_0xac62fd,_0x47f0b6);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x20830f{[_0x1c373a(0xcb)];[_0x1c373a(0xe0)];[_0x1c373a(0xdf)];[_0x1c373a(0xcd)];[_0x1c373a(0xeb)];constructor(_0x18164e,_0x187dae,_0x438316){const _0x4e5561=_0x1c373a;super(_0x18164e),this[_0x4e5561(0xcb)]=this[_0x4e5561(0xca)](),this[_0x4e5561(0xe0)]=new _0xacb43c(_0x18164e),this[_0x4e5561(0xdf)]=new _0x56b231(_0x18164e),this[_0x4e5561(0xcd)]=new _0x1d9ddc(_0x18164e,_0x438316),this[_0x4e5561(0xeb)]=new _0x5c893d(_0x18164e),this[_0x4e5561(0xeb)][_0x4e5561(0xd2)](this[_0x4e5561(0xf9)]()),this[_0x4e5561(0xd5)](_0x4e5561(0xcc),_0x187dae),this[_0x4e5561(0xd2)]({'tag':_0x4e5561(0xee),'attributes':{'class':['ck',_0x4e5561(0xf3),_0x4e5561(0xe7)],'tabindex':'-1'},'children':this[_0x4e5561(0xcb)]}),this[_0x4e5561(0xe4)](),this[_0x4e5561(0xc6)](_0x4e5561(0xec),()=>{const _0x1dc42b=_0x4e5561;this[_0x1dc42b(0xe6)](this[_0x1dc42b(0xda)],_0x1dc558=>{const _0x309ef2=_0x1dc42b;this[_0x309ef2(0xf5)](_0x1dc558);});}),this['on'](_0x4e5561(0xfa),()=>{const _0x4631f7=_0x4e5561;this[_0x4631f7(0xe4)]();}),this[_0x4e5561(0xf4)]();}[_0x1c373a(0xdb)](){const _0x1cce6c=_0x1c373a;this[_0x1cce6c(0xda)][_0x1cce6c(0xdb)]();}[_0x1c373a(0xe4)](){const _0xcc6ad=_0x1c373a;switch(this[_0xcc6ad(0xcb)][_0xcc6ad(0xfb)](),this[_0xcc6ad(0xcc)]){case _0xcc6ad(0xd1):this[_0xcc6ad(0xcb)][_0xcc6ad(0xc9)](this[_0xcc6ad(0xe0)]);break;case _0xcc6ad(0xed):this[_0xcc6ad(0xcb)][_0xcc6ad(0xc9)](this[_0xcc6ad(0xdf)]);break;case _0xcc6ad(0xcf):this[_0xcc6ad(0xcb)][_0xcc6ad(0xf7)]([this[_0xcc6ad(0xcd)],this[_0xcc6ad(0xeb)]]);}}[_0x1c373a(0xe6)](_0x2ecad3,_0x5a528e){const _0x593143=_0x1c373a,_0x351b16=_0x593143(0xf6),_0x326c21=_0x2ecad3[_0x593143(0xd9)](_0x351b16);if(_0x326c21)return _0x5a528e(_0x326c21);const _0x5a4a8a=new MutationObserver(_0x43dcf4=>{const _0x37638c=_0x593143,_0x2eac76=_0x43dcf4[_0x37638c(0xe5)](_0x1e5c1e=>_0x1e5c1e[_0x37638c(0xf2)]===_0x2ecad3&&_0x1e5c1e[_0x37638c(0xdc)][_0x37638c(0xfc)]>0x0&&_0x1e5c1e[_0x37638c(0xdc)][0x0][_0x37638c(0xf1)][_0x37638c(0xef)]()===_0x351b16);_0x2eac76[_0x37638c(0xfc)]&&(_0x5a4a8a[_0x37638c(0xe1)](),_0x5a528e(_0x2eac76[0x0][_0x37638c(0xdc)][0x0]));});_0x5a4a8a[_0x593143(0xdd)](_0x2ecad3,{'childList':!0x0,'subtree':!0x0});}[_0x1c373a(0xf5)](_0x6895c5){const _0x1bed46=_0x1c373a;_0x6895c5[_0x1bed46(0xe2)](_0x1bed46(0xd6),_0x8f4cdd=>{const _0x459994=_0x1bed46;this[_0x459994(0xe9)](_0x459994(0xd6),{'imageSrc':_0x8f4cdd[_0x459994(0xd3)][_0x459994(0xc7)]});}),_0x6895c5[_0x1bed46(0xe2)](_0x1bed46(0xea),()=>{const _0x30f82a=_0x1bed46;this[_0x30f82a(0xe9)](_0x30f82a(0xea));});}[_0x1c373a(0xf4)](){const _0x20185f=_0x1c373a;this[_0x20185f(0xdf)]['on'](_0x20185f(0xd0),()=>{const _0x5b65da=_0x20185f;this[_0x5b65da(0xe9)](_0x5b65da(0xd0));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d7655=_0x8073;(function(_0x5b0420,_0xae70fd){const _0x5384bf=_0x8073,_0x293312=_0x5b0420();while(!![]){try{const _0x49df42=-parseInt(_0x5384bf(0x1da))/0x1*(-parseInt(_0x5384bf(0x1d8))/0x2)+-parseInt(_0x5384bf(0x1dc))/0x3*(-parseInt(_0x5384bf(0x1be))/0x4)+parseInt(_0x5384bf(0x1cf))/0x5*(parseInt(_0x5384bf(0x1c1))/0x6)+parseInt(_0x5384bf(0x1c9))/0x7*(parseInt(_0x5384bf(0x1d4))/0x8)+parseInt(_0x5384bf(0x1bc))/0x9+-parseInt(_0x5384bf(0x1d2))/0xa*(-parseInt(_0x5384bf(0x1cc))/0xb)+parseInt(_0x5384bf(0x1ce))/0xc*(-parseInt(_0x5384bf(0x1c7))/0xd);if(_0x49df42===_0xae70fd)break;else _0x293312['push'](_0x293312['shift']());}catch(_0x17bdb7){_0x293312['push'](_0x293312['shift']());}}}(_0x34aa,0xc752a));import{Command as _0x42741d}from'ckeditor5/src/core.js';import{Dialog as _0x4fe4e5}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x4115cd}from'./ui/uploadcareimageeditcontroller.js';function _0x8073(_0x4aa3e9,_0x314cb9){const _0x34aa08=_0x34aa();return _0x8073=function(_0x80733e,_0x3f0ece){_0x80733e=_0x80733e-0x1ba;let _0x25e626=_0x34aa08[_0x80733e];return _0x25e626;},_0x8073(_0x4aa3e9,_0x314cb9);}import{createEditabilityChecker as _0x2b670c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x42741d{[_0x2d7655(0x1cd)];static get[_0x2d7655(0x1d5)](){return[_0x4fe4e5];}[_0x2d7655(0x1d9)];constructor(_0x4f72ce){const _0xc283b4=_0x2d7655;super(_0x4f72ce),this[_0xc283b4(0x1cd)]=void 0x0,this[_0xc283b4(0x1d9)]=_0x2b670c(_0x4f72ce[_0xc283b4(0x1c5)][_0xc283b4(0x1d1)](_0xc283b4(0x1bf))||[]),this[_0xc283b4(0x1c2)]({'isActive':!0x1});}[_0x2d7655(0x1bb)](){const _0x314ceb=_0x2d7655,_0x1ce7b7=this[_0x314ceb(0x1c8)][_0x314ceb(0x1db)][_0x314ceb(0x1c3)][_0x314ceb(0x1cb)][_0x314ceb(0x1d6)]();this[_0x314ceb(0x1d3)]=this[_0x314ceb(0x1d9)](_0x1ce7b7);}[_0x2d7655(0x1d0)](){const _0x1b3f1b=_0x2d7655;this[_0x1b3f1b(0x1cd)]&&(this[_0x1b3f1b(0x1c4)](_0x1b3f1b(0x1bd)),this[_0x1b3f1b(0x1cd)]=void 0x0);const _0x64598b=this[_0x1b3f1b(0x1c8)][_0x1b3f1b(0x1db)][_0x1b3f1b(0x1c3)][_0x1b3f1b(0x1cb)][_0x1b3f1b(0x1d6)]();_0x64598b&&(_0x64598b['is'](_0x1b3f1b(0x1c6),_0x1b3f1b(0x1ba))||_0x64598b['is'](_0x1b3f1b(0x1c6),_0x1b3f1b(0x1c0)))&&(this[_0x1b3f1b(0x1cd)]=new _0x4115cd(this[_0x1b3f1b(0x1c8)],this[_0x1b3f1b(0x1c8)][_0x1b3f1b(0x1d7)][_0x1b3f1b(0x1d1)](_0x4fe4e5),_0x64598b),this[_0x1b3f1b(0x1ca)](_0x1b3f1b(0x1bd))['to'](this[_0x1b3f1b(0x1cd)],_0x1b3f1b(0x1bd)));}}function _0x34aa(){const _0x13c5ee=['500dMNwUE','isEnabled','8GrBcwF','requires','getSelectedElement','plugins','174AaJvMr','_isEditable','1373HxVDJd','model','1431966INPHLb','imageBlock','refresh','7768179GWIYaz','isActive','8xjdlvm','uploadcare.allowExternalImagesEditing','imageInline','822rnIqiY','set','document','unbind','config','element','150761KbKjAs','editor','8104852IVAUha','bind','selection','29678cVmJVM','imageEditController','3252MhYDwZ','26615wHlMGS','execute','get'];_0x34aa=function(){return _0x13c5ee;};return _0x34aa();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a44ad=_0xf051;(function(_0x2316d8,_0x5c4ae7){const _0x39594a=_0xf051,_0x32860b=_0x2316d8();while(!![]){try{const _0x25d878=-parseInt(_0x39594a(0x73))/0x1*(parseInt(_0x39594a(0x72))/0x2)+parseInt(_0x39594a(0x78))/0x3+parseInt(_0x39594a(0x7d))/0x4*(parseInt(_0x39594a(0x7e))/0x5)+parseInt(_0x39594a(0x71))/0x6+parseInt(_0x39594a(0x6f))/0x7*(-parseInt(_0x39594a(0x82))/0x8)+-parseInt(_0x39594a(0x81))/0x9+-parseInt(_0x39594a(0x80))/0xa*(parseInt(_0x39594a(0x6c))/0xb);if(_0x25d878===_0x5c4ae7)break;else _0x32860b['push'](_0x32860b['shift']());}catch(_0x45fdc5){_0x32860b['push'](_0x32860b['shift']());}}}(_0x11b1,0xa7c4b));import{Plugin as _0x47a3f3}from'ckeditor5/src/core.js';import{Notification as _0xc867d3}from'ckeditor5/src/ui.js';function _0xf051(_0x12ed9a,_0x2f9e88){const _0x11b159=_0x11b1();return _0xf051=function(_0xf051a9,_0x56e78c){_0xf051a9=_0xf051a9-0x6c;let _0x5dedfb=_0x11b159[_0xf051a9];return _0x5dedfb;},_0xf051(_0x12ed9a,_0x2f9e88);}import{UploadcareImageEditCommand as _0x2b3783}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x48a7f3}from'./uploadcareimagereplacecommand.js';function _0x11b1(){const _0x246715=['ImageUtils','119AoRRyU','uploadcareImageEdit','8173632VthOxt','2348NGXpry','370Trtgou','requires','commands','add','UploadcareImageEditEditing','746457WotJIM','pluginName','ImageEditing','isOfficialPlugin','isPremiumPlugin','364VoCpGU','50695ksUIzx','init','10BHNyRY','6130557uaPuWI','151880pyhAEL','4490893AzxnCk','uploadcareImageReplace'];_0x11b1=function(){return _0x246715;};return _0x11b1();}import{UploadcareEditing as _0x3b7ca3}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x47a3f3{static get[_0x4a44ad(0x79)](){const _0x46deb3=_0x4a44ad;return _0x46deb3(0x77);}static get[_0x4a44ad(0x74)](){const _0x5e626d=_0x4a44ad;return[_0x3b7ca3,_0xc867d3,_0x5e626d(0x6e),_0x5e626d(0x7a)];}static get[_0x4a44ad(0x7b)](){return!0x0;}static get[_0x4a44ad(0x7c)](){return!0x0;}[_0x4a44ad(0x7f)](){const _0x2b35b6=_0x4a44ad,{editor:_0x52371b}=this;_0x52371b[_0x2b35b6(0x75)][_0x2b35b6(0x76)](_0x2b35b6(0x70),new _0x2b3783(_0x52371b)),_0x52371b[_0x2b35b6(0x75)][_0x2b35b6(0x76)](_0x2b35b6(0x6d),new _0x48a7f3(_0x52371b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xefc38d}from'ckeditor5/src/core.js';import{ButtonView as _0x5f29fb}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x21dbc3}from'ckeditor5/src/icons.js';import{createElement as _0x39d1e8}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 _0xefc38d{['_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 _0x529ba8=this['editor'];_0x529ba8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4d49c8=>{const _0x1c37e6=_0x529ba8['commands']['get']('uploadcareImageEdit'),_0x4a15c7=new _0x5f29fb(_0x4d49c8),t=_0x4d49c8['t'];return _0x4a15c7['set']({'icon':_0x21dbc3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4a15c7['bind']('isEnabled')['to'](_0x1c37e6),_0x4a15c7['bind']('isOn')['to'](_0x1c37e6,'isActive'),this['listenTo'](_0x4a15c7,'execute',()=>{_0x529ba8['execute']('uploadcareImageEdit'),_0x529ba8['editing']['view']['focus']();}),_0x4a15c7;}),this['_initConfig']();}['_initConfig'](){const _0x5da4c1=_0x39d1e8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5da4c1),this['listenTo'](this['editor'],'destroy',()=>{_0x5da4c1['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x341b(){const _0x34503e=['imageBlock','refresh','element','80AvQpzB','change','editor','removeAttribute','1512816edVqYH','181175otokZd','sizes','srcset','250509hVoQQU','model','imageInline','selection','3MFalJM','349805SHbudS','1738278ddyYHf','execute','document','setAttributes','64720sXEzOP','1039352eRnfYc','getSelectedElement','isEnabled'];_0x341b=function(){return _0x34503e;};return _0x341b();}const _0x1e78d9=_0x26b9;(function(_0x23c571,_0x4daed3){const _0x308045=_0x26b9,_0x38b5c1=_0x23c571();while(!![]){try{const _0x31b7e2=parseInt(_0x308045(0x1b6))/0x1+parseInt(_0x308045(0x1c3))/0x2+-parseInt(_0x308045(0x1bd))/0x3*(parseInt(_0x308045(0x1c4))/0x4)+-parseInt(_0x308045(0x1be))/0x5+-parseInt(_0x308045(0x1b5))/0x6+-parseInt(_0x308045(0x1b9))/0x7*(-parseInt(_0x308045(0x1ca))/0x8)+parseInt(_0x308045(0x1bf))/0x9;if(_0x31b7e2===_0x4daed3)break;else _0x38b5c1['push'](_0x38b5c1['shift']());}catch(_0x4baec0){_0x38b5c1['push'](_0x38b5c1['shift']());}}}(_0x341b,0x2c954));import{Command as _0x240c9c}from'ckeditor5/src/core.js';function _0x26b9(_0x53cc0b,_0x445692){const _0x341bec=_0x341b();return _0x26b9=function(_0x26b930,_0x3d0283){_0x26b930=_0x26b930-0x1b2;let _0x53f5bb=_0x341bec[_0x26b930];return _0x53f5bb;},_0x26b9(_0x53cc0b,_0x445692);}export class UploadcareImageReplaceCommand extends _0x240c9c{[_0x1e78d9(0x1c8)](){const _0x7359e2=_0x1e78d9,_0x44cfe6=this[_0x7359e2(0x1b3)][_0x7359e2(0x1ba)][_0x7359e2(0x1c1)][_0x7359e2(0x1bc)][_0x7359e2(0x1c5)]();this[_0x7359e2(0x1c6)]=Boolean(_0x44cfe6&&(_0x44cfe6['is'](_0x7359e2(0x1c9),_0x7359e2(0x1c7))||_0x44cfe6['is'](_0x7359e2(0x1c9),_0x7359e2(0x1bb))));}[_0x1e78d9(0x1c0)](_0x57a936){const _0x595098=_0x1e78d9,_0x57f18d=this[_0x595098(0x1b3)][_0x595098(0x1ba)][_0x595098(0x1c1)][_0x595098(0x1bc)][_0x595098(0x1c5)]();this[_0x595098(0x1b3)][_0x595098(0x1ba)][_0x595098(0x1b2)](_0x4f8e64=>{const _0x4a17c8=_0x595098;_0x4f8e64[_0x4a17c8(0x1c2)](_0x57a936,_0x57f18d),_0x4f8e64[_0x4a17c8(0x1b4)](_0x4a17c8(0x1b8),_0x57f18d),_0x4f8e64[_0x4a17c8(0x1b4)](_0x4a17c8(0x1b7),_0x57f18d);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2d4a1c=_0x4845;(function(_0x1a6513,_0x3e6c5e){var _0x5ab7ea=_0x4845,_0x51e137=_0x1a6513();while(!![]){try{var _0x37a356=-parseInt(_0x5ab7ea(0x83))/0x1*(parseInt(_0x5ab7ea(0x7e))/0x2)+parseInt(_0x5ab7ea(0x7b))/0x3*(-parseInt(_0x5ab7ea(0x7f))/0x4)+parseInt(_0x5ab7ea(0x84))/0x5*(parseInt(_0x5ab7ea(0x7a))/0x6)+-parseInt(_0x5ab7ea(0x76))/0x7*(-parseInt(_0x5ab7ea(0x82))/0x8)+-parseInt(_0x5ab7ea(0x73))/0x9*(-parseInt(_0x5ab7ea(0x79))/0xa)+parseInt(_0x5ab7ea(0x74))/0xb*(-parseInt(_0x5ab7ea(0x81))/0xc)+parseInt(_0x5ab7ea(0x78))/0xd*(-parseInt(_0x5ab7ea(0x7c))/0xe);if(_0x37a356===_0x3e6c5e)break;else _0x51e137['push'](_0x51e137['shift']());}catch(_0x54bb21){_0x51e137['push'](_0x51e137['shift']());}}}(_0xcbcf,0x22a2e));import{Plugin as _0x5c7f17}from'ckeditor5/src/core.js';function _0xcbcf(){var _0xbe6bfc=['requires','119639JxDfTx','2522930WlcTsu','12ooZbAl','16335ntvmkw','140pOLdTf','isPremiumPlugin','7402klGvWn','88dSYUML','pluginName','710544XfIvtK','24JafIVK','66PjvqKC','701770zpAWCC','isOfficialPlugin','9YuAqog','11mZKlLQ','UploadcareImageEdit','289723kWPuwY'];_0xcbcf=function(){return _0xbe6bfc;};return _0xcbcf();}function _0x4845(_0x2a1f58,_0x86a0f9){var _0xcbcf6f=_0xcbcf();return _0x4845=function(_0x48452d,_0x55afbc){_0x48452d=_0x48452d-0x73;var _0x525180=_0xcbcf6f[_0x48452d];return _0x525180;},_0x4845(_0x2a1f58,_0x86a0f9);}import{UploadcareImageEditEditing as _0x122b00}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x2e0289}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x5c7f17{static get[_0x2d4a1c(0x80)](){var _0x4f6132=_0x2d4a1c;return _0x4f6132(0x75);}static get[_0x2d4a1c(0x77)](){return[_0x122b00,_0x2e0289];}static get[_0x2d4a1c(0x85)](){return!0x0;}static get[_0x2d4a1c(0x7d)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a266f=_0x4241;(function(_0xf09a74,_0x1a95ec){const _0x3d5963=_0x4241,_0x27af4b=_0xf09a74();while(!![]){try{const _0x24aa18=-parseInt(_0x3d5963(0x145))/0x1+-parseInt(_0x3d5963(0x14c))/0x2+-parseInt(_0x3d5963(0x15a))/0x3*(parseInt(_0x3d5963(0x12c))/0x4)+-parseInt(_0x3d5963(0x137))/0x5*(parseInt(_0x3d5963(0x173))/0x6)+-parseInt(_0x3d5963(0x13b))/0x7+-parseInt(_0x3d5963(0x136))/0x8*(parseInt(_0x3d5963(0x15d))/0x9)+parseInt(_0x3d5963(0x141))/0xa*(parseInt(_0x3d5963(0x15c))/0xb);if(_0x24aa18===_0x1a95ec)break;else _0x27af4b['push'](_0x27af4b['shift']());}catch(_0x2afac2){_0x27af4b['push'](_0x27af4b['shift']());}}}(_0x7c4a,0x4b45c));function _0x4241(_0x4b1e1a,_0x276bdd){const _0x7c4abf=_0x7c4a();return _0x4241=function(_0x42416d,_0x4e78ff){_0x42416d=_0x42416d-0x129;let _0x9f4204=_0x7c4abf[_0x42416d];return _0x9f4204;},_0x4241(_0x4b1e1a,_0x276bdd);}import{Plugin as _0x74a561}from'ckeditor5/src/core.js';function _0x7c4a(){const _0x5190c3=['editor','GDrive','usageLimit','expired','upload','has','Insert','Replace','execute','244LldtKA','_createToolbarButton','Uploadcare','trialLimit','_createMenuBarButtons','uploadcare','plugins','uploadcare.uploader.sourceList','afterInit','ImageInsertUI','3221704FsjgyD','879635RALCvY','uploadcareLicenseKeyDomainLimit','get','locale','1786155KJAWFq','bind','uploadcareLicenseKeyEvaluationLimit','isImageSelected','isEnabled','assetManager','900AmadUl','shortText','destroy','init','76182FLgsDe','registerIntegration','type','isPremiumPlugin','domainLimit','entries','config','630554HjSxrK','uploadcareLicenseKeyExpired','_showLicenseError','licenseKey','uploadcareLicenseKeyNotAllowed','Local','url','Dropbox','icon','text','map','Facebook','forEach','_createButton','16959FyuIFH','_createDropdownButtons','251086YiJDIG','9xhhvwC','uploadcareLicenseKeyTrialLimit','evaluationLimit','reduce','uploadcareLicenseKeyValid','uploadcareLicenseKeyUsageLimit','push','tooltip','isOfficialPlugin','invalid','_licenseKeyCheckInterval','uploadcareLicenseKeyInvalid','URL','_getIntegrationKey','featureNotAllowed','OneDrive','pluginName','GPhotos','withText','label','UploadcareUI','_normalizeConfigSourceList','12mxnFOT','commands'];_0x7c4a=function(){return _0x5190c3;};return _0x7c4a();}import{IconDropbox as _0x51a57a,IconFacebook as _0x58ac99,IconGoogleDrive as _0xf017bc,IconGooglePhotos as _0x43c068,IconUploadcareImageUpload as _0x331601,IconUploadcareLink as _0x1a2718,IconOneDrive as _0x82fcfc}from'ckeditor5/src/icons.js';import{ButtonView as _0x26db88,MenuBarMenuListItemButtonView as _0x242c1a}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x58278e}from'./uploadcareconfig.js';import{getTranslation as _0x13adf7}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x74a561{[_0x5a266f(0x14f)];[_0x5a266f(0x167)];static get[_0x5a266f(0x16d)](){const _0x5a5feb=_0x5a266f;return _0x5a5feb(0x171);}static get[_0x5a266f(0x165)](){return!0x0;}static get[_0x5a266f(0x148)](){return!0x0;}[_0x5a266f(0x144)](){const _0x2bc1fa=_0x5a266f;this[_0x2bc1fa(0x14f)]=this[_0x2bc1fa(0x175)][_0x2bc1fa(0x14b)][_0x2bc1fa(0x139)](_0x2bc1fa(0x14f));const _0x590e0c=this[_0x2bc1fa(0x175)];this[_0x2bc1fa(0x167)]=setInterval(()=>{const _0x1140dd=_0x2bc1fa;let _0x148f02;for(const _0x5e8e75 in _0x590e0c){const _0x3d5aba=_0x5e8e75,_0x56e9ac=_0x590e0c[_0x3d5aba];if(_0x1140dd(0x161)==_0x56e9ac||_0x1140dd(0x168)==_0x56e9ac||_0x1140dd(0x14d)==_0x56e9ac||_0x1140dd(0x138)==_0x56e9ac||_0x1140dd(0x150)==_0x56e9ac||_0x1140dd(0x13d)==_0x56e9ac||_0x1140dd(0x15e)==_0x56e9ac||_0x1140dd(0x162)==_0x56e9ac){delete _0x590e0c[_0x3d5aba],_0x148f02=_0x56e9ac,clearInterval(this[_0x1140dd(0x167)]),this[_0x1140dd(0x167)]=void 0x0;break;}}_0x1140dd(0x168)==_0x148f02&&_0x590e0c[_0x1140dd(0x14e)](_0x1140dd(0x166)),_0x1140dd(0x14d)==_0x148f02&&_0x590e0c[_0x1140dd(0x14e)](_0x1140dd(0x178)),_0x1140dd(0x138)==_0x148f02&&_0x590e0c[_0x1140dd(0x14e)](_0x1140dd(0x149)),_0x1140dd(0x150)==_0x148f02&&_0x590e0c[_0x1140dd(0x14e)](_0x1140dd(0x16b),_0x1140dd(0x12e)),_0x1140dd(0x13d)==_0x148f02&&_0x590e0c[_0x1140dd(0x14e)](_0x1140dd(0x15f)),_0x1140dd(0x15e)==_0x148f02&&_0x590e0c[_0x1140dd(0x14e)](_0x1140dd(0x12f)),_0x1140dd(0x162)==_0x148f02&&_0x590e0c[_0x1140dd(0x14e)](_0x1140dd(0x177));},0x3e8);}[_0x5a266f(0x134)](){const _0x53b85c=_0x5a266f,{editor:_0x457ee4}=this,_0x45f847=_0x457ee4[_0x53b85c(0x174)][_0x53b85c(0x139)](_0x53b85c(0x131));if(!_0x45f847)return;const _0x494179=this[_0x53b85c(0x172)](_0x457ee4[_0x53b85c(0x14b)][_0x53b85c(0x139)](_0x53b85c(0x133)))[_0x53b85c(0x160)]((_0xf3b5f5,_0x138e54)=>{const _0x40d9c2=_0x53b85c,_0x124fea=this[_0x40d9c2(0x16a)](_0x138e54[_0x40d9c2(0x147)]);return _0xf3b5f5[_0x124fea]||(_0xf3b5f5[_0x124fea]=[]),_0xf3b5f5[_0x124fea][_0x40d9c2(0x163)](_0x138e54),_0xf3b5f5;},{});_0x457ee4[_0x53b85c(0x132)][_0x53b85c(0x17a)](_0x53b85c(0x135))&&_0x457ee4[_0x53b85c(0x174)][_0x53b85c(0x139)](_0x53b85c(0x131))&&Object[_0x53b85c(0x14a)](_0x494179)[_0x53b85c(0x158)](([_0x23b876,_0x454e68])=>{const _0x8399ee=_0x53b85c;_0x457ee4[_0x8399ee(0x132)][_0x8399ee(0x139)](_0x8399ee(0x135))[_0x8399ee(0x146)]({'name':_0x23b876,'observable':()=>_0x45f847,'buttonViewCreator':()=>this[_0x8399ee(0x12d)](_0x454e68),'formViewCreator':()=>this[_0x8399ee(0x15b)](_0x454e68),'menuBarButtonViewCreator':()=>this[_0x8399ee(0x130)](_0x454e68),'override':_0x8399ee(0x140)!==_0x23b876});});}[_0x5a266f(0x143)](){const _0x438aad=_0x5a266f;super[_0x438aad(0x143)](),this[_0x438aad(0x167)]&&clearInterval(this[_0x438aad(0x167)]);}[_0x5a266f(0x172)](_0x43c459){const _0x34cd1a=_0x5a266f,{locale:_0xcaf211}=this[_0x34cd1a(0x175)];return _0x43c459[_0x34cd1a(0x156)](_0x389394=>{const _0x20db41=_0x34cd1a,_0x5b0d78=_0x13adf7(_0xcaf211,_0x389394,_0x20db41(0x129));switch(_0x389394){case _0x58278e[_0x20db41(0x151)]:return{'icon':_0x331601,'type':_0x58278e[_0x20db41(0x151)],..._0x5b0d78};case _0x58278e[_0x20db41(0x169)]:return{'icon':_0x1a2718,'type':_0x58278e[_0x20db41(0x169)],..._0x5b0d78};case _0x58278e[_0x20db41(0x153)]:return{'icon':_0x51a57a,'type':_0x58278e[_0x20db41(0x153)],..._0x5b0d78};case _0x58278e[_0x20db41(0x157)]:return{'icon':_0x58ac99,'type':_0x58278e[_0x20db41(0x157)],..._0x5b0d78};case _0x58278e[_0x20db41(0x176)]:return{'icon':_0xf017bc,'type':_0x58278e[_0x20db41(0x176)],..._0x5b0d78};case _0x58278e[_0x20db41(0x16e)]:return{'icon':_0x43c068,'type':_0x58278e[_0x20db41(0x16e)],..._0x5b0d78};case _0x58278e[_0x20db41(0x16c)]:return{'icon':_0x82fcfc,'type':_0x58278e[_0x20db41(0x16c)],..._0x5b0d78};}});}[_0x5a266f(0x16a)](_0x544a1c){const _0x5c4587=_0x5a266f;switch(_0x544a1c){case _0x58278e[_0x5c4587(0x151)]:return _0x5c4587(0x179);case _0x58278e[_0x5c4587(0x169)]:return _0x5c4587(0x152);default:return _0x5c4587(0x140);}}[_0x5a266f(0x159)](_0x15358e,_0x4549d2){const _0x2fd216=_0x5a266f,_0xc9df07=this[_0x2fd216(0x175)],_0x3d1fc7=new _0x15358e(_0xc9df07[_0x2fd216(0x13a)]),_0x5a2dc1=_0xc9df07[_0x2fd216(0x174)][_0x2fd216(0x139)](_0x2fd216(0x131));return _0x3d1fc7[_0x2fd216(0x13c)](_0x2fd216(0x13f))['to'](_0x5a2dc1),_0x3d1fc7['on'](_0x2fd216(0x12b),()=>{const _0x553c5b=_0x2fd216;_0x5a2dc1[_0x553c5b(0x12b)](_0x4549d2);}),_0x3d1fc7;}[_0x5a266f(0x12d)](_0x25c045){const _0x589c7d=_0x5a266f,{locale:_0x24079d}=this[_0x589c7d(0x175)],_0x2c8a7e=this[_0x589c7d(0x175)][_0x589c7d(0x132)][_0x589c7d(0x139)](_0x589c7d(0x135)),_0x1a9b65=_0x25c045[0x0],_0x411330=this[_0x589c7d(0x159)](_0x26db88,_0x1a9b65[_0x589c7d(0x147)]);return _0x411330[_0x589c7d(0x154)]=_0x1a9b65[_0x589c7d(0x154)],_0x411330[_0x589c7d(0x13c)](_0x589c7d(0x170))['to'](_0x2c8a7e,_0x589c7d(0x13e),_0x51c285=>_0x13adf7(_0x24079d,_0x1a9b65[_0x589c7d(0x147)],_0x51c285?_0x589c7d(0x12a):_0x589c7d(0x129))[_0x589c7d(0x155)]),_0x411330[_0x589c7d(0x164)]=!0x0,_0x411330;}[_0x5a266f(0x15b)](_0x1ee3a9){const _0x5b9732=_0x5a266f,{locale:_0xa9bee8}=this[_0x5b9732(0x175)],_0x3721ec=this[_0x5b9732(0x175)][_0x5b9732(0x132)][_0x5b9732(0x139)](_0x5b9732(0x135));return _0x1ee3a9[_0x5b9732(0x156)](_0x370319=>{const _0x208ccb=_0x5b9732,_0x171933=this[_0x208ccb(0x159)](_0x26db88,_0x370319[_0x208ccb(0x147)]);return _0x171933[_0x208ccb(0x16f)]=!0x0,_0x171933[_0x208ccb(0x154)]=_0x370319[_0x208ccb(0x154)],_0x171933[_0x208ccb(0x13c)](_0x208ccb(0x170))['to'](_0x3721ec,_0x208ccb(0x13e),_0x595a93=>_0x13adf7(_0xa9bee8,_0x370319[_0x208ccb(0x147)],_0x595a93?_0x208ccb(0x12a):_0x208ccb(0x129))[_0x208ccb(0x155)]),_0x171933;});}[_0x5a266f(0x130)](_0x1f6c46){const _0x152545=_0x5a266f;return _0x1f6c46[_0x152545(0x156)](_0x4ec481=>{const _0x2e2744=_0x152545,_0x62f677=this[_0x2e2744(0x159)](_0x242c1a,_0x4ec481[_0x2e2744(0x147)]);return _0x62f677[_0x2e2744(0x154)]=_0x4ec481[_0x2e2744(0x154)],_0x62f677[_0x2e2744(0x170)]=_0x4ec481[_0x2e2744(0x142)],_0x62f677;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xaa6f38}from'ckeditor5/src/core.js';import{FileRepository as _0x74c461}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x4c81af}from'./uploadcareediting.js';import{UploadUtils as _0x4b17b7}from'./utils/uploadutils.js';import{getImageUrls as _0x5a4d72}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0xaa6f38{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x74c461,_0x4c81af];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5330f3=this['editor'];if(!!!_0x5330f3['config']['get']('uploadcare'))return;_0x5330f3['plugins']['get'](_0x74c461)['createUploadAdapter']=_0x1d7d1c=>new k(_0x1d7d1c,_0x5330f3),_0x5330f3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x102139,{imageElement:_0x24462f,data:_0x2420ad})=>{_0x5330f3['model']['change'](_0x4e4a24=>{_0x4e4a24['setAttribute']('uploadcareImageId',_0x2420ad['uploadcareImageId'],_0x24462f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x42dfc7,_0x30665a){this['loader']=_0x42dfc7,this['editor']=_0x30665a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x14c51e=await this['loader']['file'];return _0x4b17b7['upload']({'file':_0x14c51e,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4cfb5a=>{_0x4cfb5a&&_0x4cfb5a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4cfb5a['value']);}})['then'](async _0x3f294f=>{const {imageFallbackUrl:_0x542391,imageSources:_0x160367}=_0x5a4d72(_0x3f294f['cdnUrl'],_0x3f294f['imageInfo']['width']);return{'uploadcareImageId':_0x3f294f['uuid'],'default':_0x542391,'sources':_0x160367};})['catch'](()=>{const _0x533fc4=t('Cannot\x20upload\x20file:')+('\x20'+_0x14c51e['name']+'.');return Promise['reject'](_0x533fc4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x2fa20b}from'../uploadcareconfig.js';export function getTranslation(_0x27f918,_0xb95b2f,_0x283f66){const t=_0x27f918['t'],_0x306625=_0x27f918['t'];switch(_0xb95b2f){case _0x2fa20b['Local']:return{'text':_0x306625('Insert'===_0x283f66?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x306625('From\x20computer')};case _0x2fa20b['URL']:return{'text':'Insert'===_0x283f66?_0x306625('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x306625('Via\x20URL')};case _0x2fa20b['Dropbox']:return{'text':t('Insert'===_0x283f66?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x2fa20b['Facebook']:return{'text':t('Insert'===_0x283f66?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x2fa20b['GDrive']:return{'text':t('Insert'===_0x283f66?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x2fa20b['GPhotos']:return{'text':t('Insert'===_0x283f66?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x2fa20b['OneDrive']:return{'text':t('Insert'===_0x283f66?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xb95b2f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x40891c=_0x376b;(function(_0x13ac32,_0x2384ba){var _0x714047=_0x376b,_0x252459=_0x13ac32();while(!![]){try{var _0x3244cf=-parseInt(_0x714047(0xed))/0x1*(parseInt(_0x714047(0xf5))/0x2)+parseInt(_0x714047(0xf4))/0x3+-parseInt(_0x714047(0xf8))/0x4*(-parseInt(_0x714047(0xec))/0x5)+-parseInt(_0x714047(0xf9))/0x6*(parseInt(_0x714047(0xf2))/0x7)+-parseInt(_0x714047(0xe9))/0x8+-parseInt(_0x714047(0xf0))/0x9+parseInt(_0x714047(0xea))/0xa;if(_0x3244cf===_0x2384ba)break;else _0x252459['push'](_0x252459['shift']());}catch(_0x1bff33){_0x252459['push'](_0x252459['shift']());}}}(_0x349f,0x9eef5));import{FocusTracker as _0x1f0540}from'ckeditor5/src/utils.js';function _0x376b(_0xebfa97,_0x6cec5c){var _0x349fb0=_0x349f();return _0x376b=function(_0x376b48,_0x16abfc){_0x376b48=_0x376b48-0xe7;var _0x21a268=_0x349fb0[_0x376b48];return _0x21a268;},_0x376b(_0xebfa97,_0x6cec5c);}import{View as _0x50d0fa,FocusCycler as _0x374e00}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x349f(){var _0x380e89=['getFocusableElement','49ptlCYH','focusTracker','2656947ktvxRd','2sBZVKV','fire','bindTemplate','363976XkrYkD','310194HNBIYR','createCollection','forwardCycle','8530536dTRWcl','19607200XVAEzp','true','45kIrrKT','936673dzCmKv','focusCycler','div','5844915ScmWHL'];_0x349f=function(){return _0x380e89;};return _0x349f();}export class DialogFocusManagerView extends _0x50d0fa{[_0x40891c(0xf3)];[_0x40891c(0xee)];constructor(_0x377d55){var _0x512076=_0x40891c;super(_0x377d55),this[_0x512076(0xf3)]=new _0x1f0540(),this[_0x512076(0xee)]=new _0x374e00({'focusables':this[_0x512076(0xe7)](),'focusTracker':this[_0x512076(0xf3)]});}[_0x40891c(0xf1)](){var _0x59ce1e=_0x40891c;return{'tag':_0x59ce1e(0xef),'attributes':{'aria-hidden':_0x59ce1e(0xeb),'tabindex':'0'},'on':{'focus':this[_0x59ce1e(0xf7)]['to'](()=>{var _0x1532ef=_0x59ce1e;this[_0x1532ef(0xee)][_0x1532ef(0xf6)](_0x1532ef(0xe8));})}};}}
|