@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260120.0 → 0.0.0-nightly-20260121.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
|
-
const _0x35382d=_0x33f7;(function(_0x224960,_0x231aed){const _0x59597a=_0x33f7,_0x5cc048=_0x224960();while(!![]){try{const _0x2ea99d=parseInt(_0x59597a(0xc9))/0x1*(-parseInt(_0x59597a(0xb5))/0x2)+-parseInt(_0x59597a(0xcc))/0x3*(-parseInt(_0x59597a(0xa7))/0x4)+parseInt(_0x59597a(0xa8))/0x5*(-parseInt(_0x59597a(0xe2))/0x6)+parseInt(_0x59597a(0xf6))/0x7+parseInt(_0x59597a(0xad))/0x8+-parseInt(_0x59597a(0xd0))/0x9+-parseInt(_0x59597a(0xbc))/0xa*(-parseInt(_0x59597a(0xd7))/0xb);if(_0x2ea99d===_0x231aed)break;else _0x5cc048['push'](_0x5cc048['shift']());}catch(_0x966888){_0x5cc048['push'](_0x5cc048['shift']());}}}(_0x347f,0x4d36c));import{Plugin as _0x4b1df4}from'ckeditor5/src/core.js';import{Dialog as _0x413fa3}from'ckeditor5/src/ui.js';import{createElement as _0xb6f7ac,global as _0x4ae40f,uid as _0xbb795c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2d8d16}from'./uploadcarecommand.js';function _0x33f7(_0x47e50,_0x52e6da){const _0x347f18=_0x347f();return _0x33f7=function(_0x33f7ab,_0x1f3f20){_0x33f7ab=_0x33f7ab-0xa7;let _0x4f4e36=_0x347f18[_0x33f7ab];return _0x4f4e36;},_0x33f7(_0x47e50,_0x52e6da);}import{UploadcareUploadAdapter as _0x36b1f5}from'./uploadcareuploadadapter.js';function _0x347f(){const _0x39e1f0=['href','getSelectedElement','querySelector','configElement','uploadcareImageReplace','37112XLYWwu','requires','execute','iconHrefResolver','_initCtx','_initImageProcessingIndicator','_initConversion','2140510MCwqtH','cleanupImage','isOfficialPlugin','extend','fromCharCode','_ctxElement','replaceImageSource','_initSchema','destroy','editor','conversion','uc-upload-ctx-provider','appendChild','29KIEeWS','_initConfig','#uc-icon-arrow-down','594VKdJLQ','insertImage','imageInline','\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','2048292nqOPLK','input[uploadcare-file-input]','once','_configElement','getAttribute','PictureEditing','editing','33bzmadx','afterInit','isRegistered','get','upcast','config','true','UploadcareEditing','uploadcareImageId','listenTo','join','6GJaYwd','init','removeAttribute','isPremiumPlugin','map','ctxElement','imageBlock','uc-config','ucContextId','attributeToAttribute','view','render','add','document','closeMax','data-uc-image-id','for','uploadcare','body','contentLanguage','1128512tpQJFC','remove','uploadcare.pubkey','locale','selection','schema','uploader-','9420DHsbMw','2733045QpYMJo','pluginName','uploadcare.uploader','elementToAttribute','commands','2871440Zrsszw','downcast','model'];_0x347f=function(){return _0x39e1f0;};return _0x347f();}import{showImageProcessingIndicator as _0x537c86}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4b1df4{[_0x35382d(0xd3)]=null;[_0x35382d(0xc1)]=null;static get[_0x35382d(0xa9)](){const _0x37aaad=_0x35382d;return _0x37aaad(0xde);}static get[_0x35382d(0xb6)](){const _0x4b5358=_0x35382d;return[_0x4b5358(0xd5),_0x36b1f5,_0x413fa3];}static get[_0x35382d(0xbe)](){return!0x0;}static get[_0x35382d(0xe5)](){return!0x0;}[_0x35382d(0xea)];get[_0x35382d(0xb3)](){const _0x27be05=_0x35382d;return this[_0x27be05(0xd3)];}get[_0x35382d(0xe7)](){const _0x57a35d=_0x35382d;return this[_0x57a35d(0xc1)];}constructor(_0x2aa953){const _0x1774ce=_0x35382d;super(_0x2aa953),this[_0x1774ce(0xea)]=_0xbb795c();}[_0x35382d(0xe3)](){const _0x31beac=_0x35382d,_0x1a3542=this[_0x31beac(0xc5)];_0x1a3542[_0x31beac(0xac)][_0x31beac(0xee)](_0x31beac(0xf3),new _0x2d8d16(_0x1a3542));}[_0x35382d(0xd8)](){const _0x1addde=_0x35382d;this[_0x1addde(0xc3)](),this[_0x1addde(0xbb)](),this[_0x1addde(0xca)](),this[_0x1addde(0xb9)](),this[_0x1addde(0xba)](),this[_0x1addde(0xe0)](this[_0x1addde(0xc5)],_0x1addde(0xc4),()=>{const _0x20a80c=_0x1addde;this[_0x20a80c(0xd3)]&&(this[_0x20a80c(0xd3)][_0x20a80c(0xf7)](),this[_0x20a80c(0xd3)]=null),this[_0x20a80c(0xc1)]&&(this[_0x20a80c(0xc1)][_0x20a80c(0xf7)](),this[_0x20a80c(0xc1)]=null);const _0x47172b=_0x4ae40f[_0x20a80c(0xef)][_0x20a80c(0xb2)](_0x20a80c(0xd1));_0x47172b&&_0x47172b[_0x20a80c(0xf7)]();}),async function(_0x3f321b){const _0x606f81=_0x2d9c49([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]),_0x13ea25=0x535f8c3a,_0x3c7fbd=0x5358f362^_0x13ea25,_0x1bc066=window[_0x2d9c49([0x44,0x61,0x74,0x65])][_0x2d9c49([0x6e,0x6f,0x77])](),_0x49adcd=_0x3f321b[_0x2d9c49([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18e950=new window[(_0x2d9c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3159ac=>{_0x49adcd[_0x2d9c49([0x6f,0x6e,0x63,0x65])](_0x2d9c49([0x72,0x65,0x61,0x64,0x79]),_0x3159ac);}),_0x47f832={[_0x2d9c49([0x6b,0x74,0x79])]:_0x2d9c49([0x45,0x43]),[_0x2d9c49([0x75,0x73,0x65])]:_0x2d9c49([0x73,0x69,0x67]),[_0x2d9c49([0x63,0x72,0x76])]:_0x2d9c49([0x50,0x2d,0x32,0x35,0x36]),[_0x2d9c49([0x78])]:_0x2d9c49([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]),[_0x2d9c49([0x79])]:_0x2d9c49([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]),[_0x2d9c49([0x61,0x6c,0x67])]:_0x2d9c49([0x45,0x53,0x32,0x35,0x36])},_0x353d38=_0x49adcd[_0x2d9c49([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2d9c49([0x67,0x65,0x74])](_0x2d9c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bfb10(){let _0x1dce88,_0x4c68fa=null,_0x502578=null;try{if(_0x353d38==_0x2d9c49([0x47,0x50,0x4c]))return _0x2d9c49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1dce88=_0x2a3cb1(),!_0x1dce88)return _0x2d9c49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1dce88[_0x2d9c49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x502578=_0x1c1a62(_0x1dce88[_0x2d9c49([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1dce88[_0x2d9c49([0x6a,0x74,0x69])])),await _0x3385f5()?_0x1832ef()?_0x59268e()?_0x2d9c49([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bd0d8()?(_0x1dce88[_0x2d9c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2d9c49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c68fa=_0x3ede55(_0x2d9c49([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e5ade()):_0x2d9c49([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2d9c49([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2d9c49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2d9c49([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59268e(){const _0x341e9e=[_0x2d9c49([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2d9c49([0x74,0x72,0x69,0x61,0x6c])][_0x2d9c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dce88[_0x2d9c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bc066/0x3e8:0xe10*_0x3c7fbd;return _0x1dce88[_0x2d9c49([0x65,0x78,0x70])]<_0x341e9e;}function _0x1832ef(){const _0x217ec2=_0x1dce88[_0x2d9c49([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x217ec2&&(!!_0x217ec2[_0x2d9c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9c49([0x2a]))||!!_0x217ec2[_0x2d9c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9c49([0x55,0x50,0x4c,0x43])));}function _0x2bd0d8(){const _0x546f5e=_0x33f7,_0x48972a=_0x1dce88[_0x2d9c49([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48972a||0x0==_0x48972a[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x165e4a}=new URL(window[_0x2d9c49([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x546f5e(0xb0)]);if(_0x48972a[_0x2d9c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x165e4a))return!0x0;const _0x38865c=_0x165e4a[_0x2d9c49([0x73,0x70,0x6c,0x69,0x74])](_0x2d9c49([0x2e]));return _0x48972a[_0x2d9c49([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d9b07=>_0x2d9b07[_0x2d9c49([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d9c49([0x2a])))[_0x2d9c49([0x6d,0x61,0x70])](_0x9e2e7f=>_0x9e2e7f[_0x2d9c49([0x73,0x70,0x6c,0x69,0x74])](_0x2d9c49([0x2e])))[_0x2d9c49([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x500148=>_0x500148[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x38865c[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d9c49([0x6d,0x61,0x70])](_0x165dc6=>Array(_0x38865c[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x165dc6[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2d9c49([0x66,0x69,0x6c,0x6c])](_0x165dc6[0x0]===_0x2d9c49([0x2a])?_0x2d9c49([0x2a]):'')[_0x2d9c49([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x165dc6))[_0x2d9c49([0x73,0x6f,0x6d,0x65])](_0x59f29f=>_0x38865c[_0x2d9c49([0x65,0x76,0x65,0x72,0x79])]((_0xa16377,_0x77be8e)=>_0x59f29f[_0x77be8e]===_0xa16377||_0x59f29f[_0x77be8e]===_0x2d9c49([0x2a])));}function _0x1e5ade(){return _0x4c68fa&&_0x502578?new window[(_0x2d9c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fde46,_0x11f5c9)=>{_0x4c68fa[_0x2d9c49([0x74,0x68,0x65,0x6e])](_0x4fde46,_0x11f5c9),_0x502578[_0x2d9c49([0x74,0x68,0x65,0x6e])](_0x487a75=>{_0x487a75!=_0x2d9c49([0x56,0x61,0x6c,0x69,0x64])&&_0x4fde46(_0x487a75);},_0x11f5c9);}):_0x4c68fa||_0x502578||_0x2d9c49([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c1a62(_0x424121,_0x527a9b){return new window[(_0x2d9c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x441aa4=>{if(_0x281325())return _0x441aa4(_0x2d9c49([0x56,0x61,0x6c,0x69,0x64]));_0x164d83(),_0x49adcd[_0x2d9c49([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2d9c49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x384d49=!0x1;const _0x10cd02=_0xbb795c();function _0x418f3c(_0x1059b8){return!!_0x1059b8&&(typeof _0x1059b8===_0x2d9c49([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1059b8===_0x2d9c49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1059b8[_0x2d9c49([0x74,0x68,0x65,0x6e])]===_0x2d9c49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1059b8[_0x2d9c49([0x63,0x61,0x74,0x63,0x68])]===_0x2d9c49([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x216632(_0x304ce6){_0x531eec(_0x304ce6)[_0x2d9c49([0x74,0x68,0x65,0x6e])](_0x448271=>{if(!_0x448271||_0x448271[_0x2d9c49([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2d9c49([0x6f,0x6b]))return _0x2d9c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x419f6c(_0x5f51b6(_0x10cd02+_0x527a9b))!=_0x448271[_0x2d9c49([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2d9c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2d9c49([0x56,0x61,0x6c,0x69,0x64]);})[_0x2d9c49([0x74,0x68,0x65,0x6e])](_0x523897=>(_0x3c8ca1(),_0x523897),()=>{const _0x5a77a4=_0x4a0195();return null==_0x5a77a4?(_0x3c8ca1(),_0x2d9c49([0x56,0x61,0x6c,0x69,0x64])):_0x2d9c49(_0x1bc066-_0x5a77a4>(0x7753083a^_0x13ea25)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2d9c49([0x74,0x68,0x65,0x6e])](_0x441aa4)[_0x2d9c49([0x63,0x61,0x74,0x63,0x68])](()=>{_0x441aa4(_0x2d9c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b4407=0x536962ba^_0x13ea25;function _0x3c8ca1(){const _0x1ed8b8=_0x2d9c49([0x6c,0x6c,0x63,0x74,0x2d])+_0x419f6c(_0x5f51b6(_0x424121)),_0x49903c=_0xbe7bd5(_0x419f6c(window[_0x2d9c49([0x4d,0x61,0x74,0x68])][_0x2d9c49([0x63,0x65,0x69,0x6c])](_0x1bc066/_0x2b4407)));window[_0x2d9c49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d9c49([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ed8b8,_0x49903c);}function _0x4a0195(){const _0x290835=_0x2d9c49([0x6c,0x6c,0x63,0x74,0x2d])+_0x419f6c(_0x5f51b6(_0x424121)),_0x544705=window[_0x2d9c49([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2d9c49([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x290835);return _0x544705?window[_0x2d9c49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbe7bd5(_0x544705),0x10)*_0x2b4407:null;}function _0x531eec(_0x31aa28){return new window[(_0x2d9c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x595aea,_0x1a3ae2)=>{_0x31aa28[_0x2d9c49([0x74,0x68,0x65,0x6e])](_0x595aea,_0x1a3ae2),window[_0x2d9c49([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1a3ae2,0x535e58fa^_0x13ea25);});}}_0x49adcd[_0x2d9c49([0x6f,0x6e])](_0x2d9c49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5338ee,_0x5efcd0)=>{if(_0x5efcd0[0x0]!=_0x424121)return _0x441aa4(_0x2d9c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5efcd0[0x1]={..._0x5efcd0[0x1],[_0x2d9c49([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10cd02};},{[_0x2d9c49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d9c49([0x68,0x69,0x67,0x68])}),_0x49adcd[_0x2d9c49([0x6f,0x6e])](_0x2d9c49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b908f=>{_0x418f3c(_0x4b908f[_0x2d9c49([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x384d49=!0x0,_0x216632(_0x4b908f[_0x2d9c49([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2d9c49([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2d9c49([0x6c,0x6f,0x77])}),_0x18e950[_0x2d9c49([0x74,0x68,0x65,0x6e])](()=>{_0x384d49||_0x441aa4(_0x2d9c49([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x281325(){return _0x49adcd[_0x2d9c49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d9c49([0x76,0x69,0x65,0x77])][_0x2d9c49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2d9c49([0x61,0x75,0x74,0x6f]);}function _0x164d83(){_0x49adcd[_0x2d9c49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2d9c49([0x76,0x69,0x65,0x77])][_0x2d9c49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2d9c49([0x61,0x75,0x74,0x6f]);}}function _0x3ede55(_0x12a1e3){const _0x1d2835=[new window[(_0x2d9c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x343cdc=>setTimeout(_0x343cdc,0x5356b2f6^_0x13ea25)),_0x18e950[_0x2d9c49([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2d9c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6c434c=>{let _0x58be84=0x0;_0x49adcd[_0x2d9c49([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d9c49([0x6f,0x6e])](_0x2d9c49([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40828f,_0x207672)=>{_0x207672[0x0][_0x2d9c49([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x58be84++,_0x58be84==(0x535f89d2^_0x13ea25)&&(_0x6c434c(),_0x40828f[_0x2d9c49([0x6f,0x66,0x66])]());});}))];return window[_0x2d9c49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2d9c49([0x72,0x61,0x63,0x65])](_0x1d2835)[_0x2d9c49([0x74,0x68,0x65,0x6e])](()=>_0x12a1e3);}async function _0x27362b(){await _0x18e950,_0x49adcd[_0x2d9c49([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d9c49([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fe49c,_0x49adcd[_0x2d9c49([0x6d,0x6f,0x64,0x65,0x6c])][_0x2d9c49([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fe49c,_0x49adcd[_0x2d9c49([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2d9c49([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53f667(_0x1dfbd1){const _0x32fc83=_0x35d459();_0x49adcd[_0x32fc83]=_0x2d9c49([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1dfbd1,_0x1dfbd1!=_0x2d9c49([0x56,0x61,0x6c,0x69,0x64])&&_0x27362b();}function _0x35d459(){const _0x339014=window[_0x2d9c49([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2d9c49([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2d9c49([0x6e,0x6f,0x77])]())[_0x2d9c49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2d9c49([0x2e]),'');let _0x472a09=_0x2d9c49([0x68]);for(let _0x42ddf5=0x0;_0x42ddf5<_0x339014[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42ddf5+=0x2){let _0x143572=window[_0x2d9c49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x339014[_0x2d9c49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42ddf5,_0x42ddf5+0x2));_0x143572>=_0x606f81[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x143572-=_0x606f81[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x472a09+=_0x606f81[_0x143572];}return _0x472a09;}function _0x2a3cb1(){const _0x1ec19d=_0x353d38[_0x2d9c49([0x73,0x70,0x6c,0x69,0x74])](_0x2d9c49([0x2e]));if(0x3!=_0x1ec19d[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4064f9(_0x1ec19d[0x1]);function _0x4064f9(_0x1bcacd){const _0x2415e0=_0x1694f3(_0x1bcacd);return _0x2415e0&&_0x1bae8f()?_0x2415e0:null;function _0x1bae8f(){const _0x89adf7=_0x2415e0[_0x2d9c49([0x6a,0x74,0x69])],_0x574a6c=window[_0x2d9c49([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x89adf7[_0x2d9c49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x89adf7[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x569917={..._0x2415e0,[_0x2d9c49([0x6a,0x74,0x69])]:_0x89adf7[_0x2d9c49([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x89adf7[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x569917[_0x2d9c49([0x76,0x63])],_0x5f51b6(_0x569917)==_0x574a6c;}}}async function _0x3385f5(){let _0x9834c7=!0x0;try{const _0x5dc9d8=_0x353d38[_0x2d9c49([0x73,0x70,0x6c,0x69,0x74])](_0x2d9c49([0x2e])),[_0x3048f3,_0x25363f,_0x237418]=_0x5dc9d8;return _0x50f4f1(_0x3048f3),await _0x408d3c(_0x3048f3,_0x25363f,_0x237418),_0x9834c7;}catch{return!0x1;}function _0x50f4f1(_0x1a139f){const _0x5e7991=_0x1694f3(_0x1a139f);_0x5e7991&&_0x5e7991[_0x2d9c49([0x61,0x6c,0x67])]==_0x2d9c49([0x45,0x53,0x32,0x35,0x36])||(_0x9834c7=!0x1);}async function _0x408d3c(_0x5d9fc9,_0x3e1d87,_0x1e1c2b){const _0x4b0ff4=window[_0x2d9c49([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2d9c49([0x66,0x72,0x6f,0x6d])](_0x1cb3e8(_0x1e1c2b),_0x14e812=>_0x14e812[_0x2d9c49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b5af5=new window[(_0x2d9c49([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2d9c49([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d9fc9+_0x2d9c49([0x2e])+_0x3e1d87),_0x448c7f=window[_0x2d9c49([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2d9c49([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x448c7f)return;const _0x12d0b0=await _0x448c7f[_0x2d9c49([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2d9c49([0x6a,0x77,0x6b]),_0x47f832,{[_0x2d9c49([0x6e,0x61,0x6d,0x65])]:_0x2d9c49([0x45,0x43,0x44,0x53,0x41]),[_0x2d9c49([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2d9c49([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2d9c49([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x448c7f[_0x2d9c49([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2d9c49([0x6e,0x61,0x6d,0x65])]:_0x2d9c49([0x45,0x43,0x44,0x53,0x41]),[_0x2d9c49([0x68,0x61,0x73,0x68])]:{[_0x2d9c49([0x6e,0x61,0x6d,0x65])]:_0x2d9c49([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12d0b0,_0x4b0ff4,_0x3b5af5)||(_0x9834c7=!0x1);}}function _0x1694f3(_0x639713){return _0x639713[_0x2d9c49([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2d9c49([0x65,0x79]))?JSON[_0x2d9c49([0x70,0x61,0x72,0x73,0x65])](_0x1cb3e8(_0x639713)):null;}function _0x1cb3e8(_0x3893f3){return window[_0x2d9c49([0x61,0x74,0x6f,0x62])](_0x3893f3[_0x2d9c49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2d9c49([0x2b]))[_0x2d9c49([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2d9c49([0x2f])));}function _0x5f51b6(_0xe8249d){let _0x187b4b=0x1505;function _0x11ab29(_0xfc42e8){for(let _0x656de0=0x0;_0x656de0<_0xfc42e8[_0x2d9c49([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x656de0++){const _0x232fc9=_0xfc42e8[_0x2d9c49([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x656de0);_0x187b4b=(_0x187b4b<<0x5)+_0x187b4b+_0x232fc9,_0x187b4b&=_0x187b4b;}}function _0x5bd4a1(_0x33e05b){Array[_0x2d9c49([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33e05b)?_0x33e05b[_0x2d9c49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bd4a1):_0x33e05b&&typeof _0x33e05b==_0x2d9c49([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2d9c49([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33e05b)[_0x2d9c49([0x73,0x6f,0x72,0x74])]()[_0x2d9c49([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c583a,_0x52eac8])=>{_0x11ab29(_0x2c583a),_0x5bd4a1(_0x52eac8);}):_0x11ab29(window[_0x2d9c49([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33e05b));}return _0x5bd4a1(_0xe8249d),_0x187b4b>>>0x0;}function _0x419f6c(_0x2fd56f){return _0x2fd56f[_0x2d9c49([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2d9c49([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2d9c49([0x30]));}function _0xbe7bd5(_0x710818){return _0x710818[_0x2d9c49([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2d9c49([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2d9c49([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fe49c(){}function _0x2d9c49(_0x522327){const _0xf8500c=_0x33f7;return _0x522327[_0xf8500c(0xe6)](_0x3cc477=>String[_0xf8500c(0xc0)](_0x3cc477))[_0xf8500c(0xe1)]('');}_0x53f667(await _0x5bfb10());}(this);}[_0x35382d(0xc3)](){const _0x299c7f=_0x35382d,_0x3ef382=this[_0x299c7f(0xc5)][_0x299c7f(0xaf)][_0x299c7f(0xfb)];_0x3ef382[_0x299c7f(0xd9)](_0x299c7f(0xe8))&&_0x3ef382[_0x299c7f(0xbf)](_0x299c7f(0xe8),{'allowAttributes':[_0x299c7f(0xdf)]}),_0x3ef382[_0x299c7f(0xd9)](_0x299c7f(0xce))&&_0x3ef382[_0x299c7f(0xbf)](_0x299c7f(0xce),{'allowAttributes':[_0x299c7f(0xdf)]});}[_0x35382d(0xbb)](){const _0x2b8cf2=_0x35382d,_0x310e28=this[_0x2b8cf2(0xc5)];_0x310e28[_0x2b8cf2(0xc6)][_0x2b8cf2(0xf2)](_0x2b8cf2(0xae))[_0x2b8cf2(0xeb)]({'model':_0x2b8cf2(0xdf),'view':_0x2b8cf2(0xf1)}),_0x310e28[_0x2b8cf2(0xc6)][_0x2b8cf2(0xf2)](_0x2b8cf2(0xdb))[_0x2b8cf2(0xab)]({'model':{'key':_0x2b8cf2(0xdf),'value':_0x170a74=>_0x170a74[_0x2b8cf2(0xd4)](_0x2b8cf2(0xf1))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x160e07=_0x310e28[_0x2b8cf2(0xac)][_0x2b8cf2(0xda)](_0x2b8cf2(0xc2));_0x160e07&&this[_0x2b8cf2(0xe0)](_0x160e07,_0x2b8cf2(0xbd),(_0x3748be,[_0x542388,_0x2f6321])=>{const _0x1e86bb=_0x2b8cf2;_0x542388[_0x1e86bb(0xe4)](_0x1e86bb(0xdf),_0x2f6321);});}[_0x35382d(0xca)](){const _0x9a7a1e=_0x35382d,_0x138198=this[_0x9a7a1e(0xc5)][_0x9a7a1e(0xdc)][_0x9a7a1e(0xda)](_0x9a7a1e(0xaa))||{},_0x40d4db=this[_0x9a7a1e(0xc5)][_0x9a7a1e(0xdc)][_0x9a7a1e(0xda)](_0x9a7a1e(0xf8))||'';this[_0x9a7a1e(0xd3)]=_0xb6f7ac(_0x4ae40f[_0x9a7a1e(0xef)],_0x9a7a1e(0xe9),{..._0x138198,'pubkey':_0x40d4db,'ctx-name':_0x9a7a1e(0xfc)+this[_0x9a7a1e(0xea)],'sourceList':'','imgOnly':_0x9a7a1e(0xdd),'removeCopyright':_0x9a7a1e(0xdd),'localeName':this[_0x9a7a1e(0xc5)][_0x9a7a1e(0xf9)][_0x9a7a1e(0xf5)],'externalSourcesEmbedCss':_0x9a7a1e(0xcf)}),this[_0x9a7a1e(0xd3)][_0x9a7a1e(0xb8)]=_0x562f01=>{const _0x19f1f6=_0x9a7a1e;if(_0x19f1f6(0xf0)==_0x562f01)return _0x19f1f6(0xcb);},_0x4ae40f[_0x9a7a1e(0xef)][_0x9a7a1e(0xf4)][_0x9a7a1e(0xc8)](this[_0x9a7a1e(0xd3)]);}[_0x35382d(0xb9)](){const _0x2b7087=_0x35382d;this[_0x2b7087(0xc1)]=_0xb6f7ac(_0x4ae40f[_0x2b7087(0xef)],_0x2b7087(0xc7),{'ctx-name':_0x2b7087(0xfc)+this[_0x2b7087(0xea)]}),_0x4ae40f[_0x2b7087(0xef)][_0x2b7087(0xf4)][_0x2b7087(0xc8)](this[_0x2b7087(0xc1)]);}[_0x35382d(0xba)](){const _0x4a6c57=_0x35382d,_0x5b07ff=this[_0x4a6c57(0xc5)][_0x4a6c57(0xac)][_0x4a6c57(0xda)](_0x4a6c57(0xcd));_0x5b07ff&&this[_0x4a6c57(0xe0)](_0x5b07ff,_0x4a6c57(0xb7),()=>{const _0x5d4c0c=_0x4a6c57,_0x53cb98=this[_0x5d4c0c(0xc5)][_0x5d4c0c(0xaf)][_0x5d4c0c(0xef)][_0x5d4c0c(0xfa)][_0x5d4c0c(0xb1)]();_0x53cb98&&_0x53cb98[_0x5d4c0c(0xd4)](_0x5d4c0c(0xdf))&&this[_0x5d4c0c(0xc5)][_0x5d4c0c(0xd6)][_0x5d4c0c(0xec)][_0x5d4c0c(0xd2)](_0x5d4c0c(0xed),()=>{const _0x1ff938=_0x5d4c0c;_0x537c86(this[_0x1ff938(0xc5)],_0x53cb98);});});const _0x3ce9b6=this[_0x4a6c57(0xc5)][_0x4a6c57(0xac)][_0x4a6c57(0xda)](_0x4a6c57(0xb4));_0x3ce9b6&&this[_0x4a6c57(0xe0)](_0x3ce9b6,_0x4a6c57(0xb7),()=>{const _0x1fbe43=_0x4a6c57,_0x4bdbe9=this[_0x1fbe43(0xc5)][_0x1fbe43(0xaf)][_0x1fbe43(0xef)][_0x1fbe43(0xfa)][_0x1fbe43(0xb1)]();_0x4bdbe9&&_0x4bdbe9[_0x1fbe43(0xd4)](_0x1fbe43(0xdf))&&this[_0x1fbe43(0xc5)][_0x1fbe43(0xd6)][_0x1fbe43(0xec)][_0x1fbe43(0xd2)](_0x1fbe43(0xed),()=>{const _0x46dc0e=_0x1fbe43;_0x537c86(this[_0x46dc0e(0xc5)],_0x4bdbe9);});});}}
|
|
23
|
+
const _0x466873=_0x3e8a;(function(_0x901834,_0x2e96e1){const _0x4cd4f3=_0x3e8a,_0x33b368=_0x901834();while(!![]){try{const _0x5a8226=-parseInt(_0x4cd4f3(0x10b))/0x1*(-parseInt(_0x4cd4f3(0xfc))/0x2)+parseInt(_0x4cd4f3(0xd9))/0x3*(parseInt(_0x4cd4f3(0x118))/0x4)+-parseInt(_0x4cd4f3(0xfb))/0x5*(parseInt(_0x4cd4f3(0x100))/0x6)+-parseInt(_0x4cd4f3(0xd2))/0x7*(-parseInt(_0x4cd4f3(0xe1))/0x8)+parseInt(_0x4cd4f3(0xc3))/0x9*(-parseInt(_0x4cd4f3(0xda))/0xa)+-parseInt(_0x4cd4f3(0xc6))/0xb*(-parseInt(_0x4cd4f3(0x109))/0xc)+-parseInt(_0x4cd4f3(0x114))/0xd*(parseInt(_0x4cd4f3(0x106))/0xe);if(_0x5a8226===_0x2e96e1)break;else _0x33b368['push'](_0x33b368['shift']());}catch(_0x16bea7){_0x33b368['push'](_0x33b368['shift']());}}}(_0x362b,0x8a43a));function _0x362b(){const _0x187f35=['get','downcast','_initConfig','href','uploadcare.pubkey','body','querySelector','map','replaceImageSource','conversion','init','extend','ucContextId','listenTo','imageInline','schema','getAttribute','iconHrefResolver','15475xesFGy','3622xKMFET','getSelectedElement','config','fromCharCode','72BTeTwD','uploader-','_initConversion','isPremiumPlugin','\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','imageBlock','12193790OoYdaW','destroy','pluginName','24FilkUa','contentLanguage','471RgDtnA','UploadcareEditing','_ctxElement','appendChild','#uc-icon-arrow-down','render','data-uc-image-id','uploadcare.uploader','editing','13aspVkZ','selection','editor','uploadcare','8428YZQYyc','remove','uc-config','insertImage','8565705bauRzC','_initSchema','view','2729309fbpTxu','uc-upload-ctx-provider','uploadcareImageReplace','add','_initImageProcessingIndicator','once','_configElement','uploadcareImageId','ctxElement','removeAttribute','for','attributeToAttribute','21ArgIFy','PictureEditing','closeMax','configElement','locale','requires','model','582zsVjKz','10dSVkPQ','execute','afterInit','cleanupImage','document','true','upcast','1781928CqtkUW','elementToAttribute','isRegistered','commands','input[uploadcare-file-input]','_initCtx','isOfficialPlugin','join'];_0x362b=function(){return _0x187f35;};return _0x362b();}import{Plugin as _0x34379f}from'ckeditor5/src/core.js';import{Dialog as _0x3bd2d6}from'ckeditor5/src/ui.js';import{createElement as _0x54b96e,global as _0x3664b0,uid as _0xebaf43}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x35e1b1}from'./uploadcarecommand.js';function _0x3e8a(_0x51db98,_0x588755){const _0x362b12=_0x362b();return _0x3e8a=function(_0x3e8a0e,_0x4614d5){_0x3e8a0e=_0x3e8a0e-0xc1;let _0x5bb0f0=_0x362b12[_0x3e8a0e];return _0x5bb0f0;},_0x3e8a(_0x51db98,_0x588755);}import{UploadcareUploadAdapter as _0x46905d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x455733}from'./utils/editingutils.js';export class UploadcareEditing extends _0x34379f{[_0x466873(0xcc)]=null;[_0x466873(0x10d)]=null;static get[_0x466873(0x108)](){const _0x24c26e=_0x466873;return _0x24c26e(0x10c);}static get[_0x466873(0xd7)](){const _0x3ff8d3=_0x466873;return[_0x3ff8d3(0xd3),_0x46905d,_0x3bd2d6];}static get[_0x466873(0xe7)](){return!0x0;}static get[_0x466873(0x103)](){return!0x0;}[_0x466873(0xf5)];get[_0x466873(0xd5)](){const _0x3a15ae=_0x466873;return this[_0x3a15ae(0xcc)];}get[_0x466873(0xce)](){const _0x32a5dd=_0x466873;return this[_0x32a5dd(0x10d)];}constructor(_0x300d25){const _0x49fc97=_0x466873;super(_0x300d25),this[_0x49fc97(0xf5)]=_0xebaf43();}[_0x466873(0xf3)](){const _0xee8f53=_0x466873,_0x57a77d=this[_0xee8f53(0x116)];_0x57a77d[_0xee8f53(0xe4)][_0xee8f53(0xc9)](_0xee8f53(0x117),new _0x35e1b1(_0x57a77d));}[_0x466873(0xdc)](){const _0x4e359e=_0x466873;this[_0x4e359e(0xc4)](),this[_0x4e359e(0x102)](),this[_0x4e359e(0xeb)](),this[_0x4e359e(0xe6)](),this[_0x4e359e(0xca)](),this[_0x4e359e(0xf6)](this[_0x4e359e(0x116)],_0x4e359e(0x107),()=>{const _0x5ec3f5=_0x4e359e;this[_0x5ec3f5(0xcc)]&&(this[_0x5ec3f5(0xcc)][_0x5ec3f5(0x119)](),this[_0x5ec3f5(0xcc)]=null),this[_0x5ec3f5(0x10d)]&&(this[_0x5ec3f5(0x10d)][_0x5ec3f5(0x119)](),this[_0x5ec3f5(0x10d)]=null);const _0x381ec2=_0x3664b0[_0x5ec3f5(0xde)][_0x5ec3f5(0xef)](_0x5ec3f5(0xe5));_0x381ec2&&_0x381ec2[_0x5ec3f5(0x119)]();}),async function(_0x581c9c){const _0x4262f5=_0x171ae6([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]),_0x1b5bb2=0x535f8c3a,_0x1cd864=0x5358f34a^_0x1b5bb2,_0x27b10c=window[_0x171ae6([0x44,0x61,0x74,0x65])][_0x171ae6([0x6e,0x6f,0x77])](),_0x301386=_0x581c9c[_0x171ae6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x487767=new window[(_0x171ae6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b251f=>{_0x301386[_0x171ae6([0x6f,0x6e,0x63,0x65])](_0x171ae6([0x72,0x65,0x61,0x64,0x79]),_0x3b251f);}),_0x158dcc={[_0x171ae6([0x6b,0x74,0x79])]:_0x171ae6([0x45,0x43]),[_0x171ae6([0x75,0x73,0x65])]:_0x171ae6([0x73,0x69,0x67]),[_0x171ae6([0x63,0x72,0x76])]:_0x171ae6([0x50,0x2d,0x32,0x35,0x36]),[_0x171ae6([0x78])]:_0x171ae6([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]),[_0x171ae6([0x79])]:_0x171ae6([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]),[_0x171ae6([0x61,0x6c,0x67])]:_0x171ae6([0x45,0x53,0x32,0x35,0x36])},_0x39424f=_0x301386[_0x171ae6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x171ae6([0x67,0x65,0x74])](_0x171ae6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe3f1a3(){let _0x1b1f23,_0x18d761=null,_0x183ee2=null;try{if(_0x39424f==_0x171ae6([0x47,0x50,0x4c]))return _0x171ae6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b1f23=_0xc6bef2(),!_0x1b1f23)return _0x171ae6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b1f23[_0x171ae6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x183ee2=_0x10c948(_0x1b1f23[_0x171ae6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b1f23[_0x171ae6([0x6a,0x74,0x69])])),await _0x24fd0b()?_0x491708()?_0x27cb66()?_0x171ae6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xfd84d6()?(_0x1b1f23[_0x171ae6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x171ae6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18d761=_0xe1db8a(_0x171ae6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x243bbd()):_0x171ae6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x171ae6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x171ae6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x171ae6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x27cb66(){const _0x337194=[_0x171ae6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x171ae6([0x74,0x72,0x69,0x61,0x6c])][_0x171ae6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b1f23[_0x171ae6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27b10c/0x3e8:0xe10*_0x1cd864;return _0x1b1f23[_0x171ae6([0x65,0x78,0x70])]<_0x337194;}function _0x491708(){const _0x58e9e8=_0x1b1f23[_0x171ae6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x58e9e8&&(!!_0x58e9e8[_0x171ae6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171ae6([0x2a]))||!!_0x58e9e8[_0x171ae6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171ae6([0x55,0x50,0x4c,0x43])));}function _0xfd84d6(){const _0x5a9532=_0x3e8a,_0x1a95b8=_0x1b1f23[_0x171ae6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a95b8||0x0==_0x1a95b8[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2aa2a7}=new URL(window[_0x171ae6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5a9532(0xec)]);if(_0x1a95b8[_0x171ae6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa2a7))return!0x0;const _0x28fe7f=_0x2aa2a7[_0x171ae6([0x73,0x70,0x6c,0x69,0x74])](_0x171ae6([0x2e]));return _0x1a95b8[_0x171ae6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36ec64=>_0x36ec64[_0x171ae6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x171ae6([0x2a])))[_0x171ae6([0x6d,0x61,0x70])](_0x173fd2=>_0x173fd2[_0x171ae6([0x73,0x70,0x6c,0x69,0x74])](_0x171ae6([0x2e])))[_0x171ae6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a7547=>_0x1a7547[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28fe7f[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x171ae6([0x6d,0x61,0x70])](_0x30699d=>Array(_0x28fe7f[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30699d[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x171ae6([0x66,0x69,0x6c,0x6c])](_0x30699d[0x0]===_0x171ae6([0x2a])?_0x171ae6([0x2a]):'')[_0x171ae6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30699d))[_0x171ae6([0x73,0x6f,0x6d,0x65])](_0x177367=>_0x28fe7f[_0x171ae6([0x65,0x76,0x65,0x72,0x79])]((_0x52f5f5,_0xddb27)=>_0x177367[_0xddb27]===_0x52f5f5||_0x177367[_0xddb27]===_0x171ae6([0x2a])));}function _0x243bbd(){return _0x18d761&&_0x183ee2?new window[(_0x171ae6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5aa1ba,_0x55dd62)=>{_0x18d761[_0x171ae6([0x74,0x68,0x65,0x6e])](_0x5aa1ba,_0x55dd62),_0x183ee2[_0x171ae6([0x74,0x68,0x65,0x6e])](_0x4112ba=>{_0x4112ba!=_0x171ae6([0x56,0x61,0x6c,0x69,0x64])&&_0x5aa1ba(_0x4112ba);},_0x55dd62);}):_0x18d761||_0x183ee2||_0x171ae6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10c948(_0x3351d3,_0xfd70fe){return new window[(_0x171ae6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f21de=>{if(_0x19bda3())return _0x1f21de(_0x171ae6([0x56,0x61,0x6c,0x69,0x64]));_0xf7832a(),_0x301386[_0x171ae6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x171ae6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4dc156=!0x1;const _0x2c0400=_0xebaf43();function _0x407aa2(_0x994f65){return!!_0x994f65&&(typeof _0x994f65===_0x171ae6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x994f65===_0x171ae6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x994f65[_0x171ae6([0x74,0x68,0x65,0x6e])]===_0x171ae6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x994f65[_0x171ae6([0x63,0x61,0x74,0x63,0x68])]===_0x171ae6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf56cb7(_0x1aa963){_0x4a4486(_0x1aa963)[_0x171ae6([0x74,0x68,0x65,0x6e])](_0x15ad78=>{if(!_0x15ad78||_0x15ad78[_0x171ae6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x171ae6([0x6f,0x6b]))return _0x171ae6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5060f6(_0x5b8f02(_0x2c0400+_0xfd70fe))!=_0x15ad78[_0x171ae6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x171ae6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x171ae6([0x56,0x61,0x6c,0x69,0x64]);})[_0x171ae6([0x74,0x68,0x65,0x6e])](_0x454bf8=>(_0x22d661(),_0x454bf8),()=>{const _0x1752fd=_0x540101();return null==_0x1752fd?(_0x22d661(),_0x171ae6([0x56,0x61,0x6c,0x69,0x64])):_0x171ae6(_0x27b10c-_0x1752fd>(0x7753083a^_0x1b5bb2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x171ae6([0x74,0x68,0x65,0x6e])](_0x1f21de)[_0x171ae6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f21de(_0x171ae6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24b4d5=0x536962ba^_0x1b5bb2;function _0x22d661(){const _0x3e3c4e=_0x171ae6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5060f6(_0x5b8f02(_0x3351d3)),_0x5142c9=_0x5ba4e2(_0x5060f6(window[_0x171ae6([0x4d,0x61,0x74,0x68])][_0x171ae6([0x63,0x65,0x69,0x6c])](_0x27b10c/_0x24b4d5)));window[_0x171ae6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x171ae6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e3c4e,_0x5142c9);}function _0x540101(){const _0x1d1b42=_0x171ae6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5060f6(_0x5b8f02(_0x3351d3)),_0x32b29c=window[_0x171ae6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x171ae6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d1b42);return _0x32b29c?window[_0x171ae6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ba4e2(_0x32b29c),0x10)*_0x24b4d5:null;}function _0x4a4486(_0x46827b){return new window[(_0x171ae6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a2ac2,_0xe15a12)=>{_0x46827b[_0x171ae6([0x74,0x68,0x65,0x6e])](_0x5a2ac2,_0xe15a12),window[_0x171ae6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe15a12,0x535e58fa^_0x1b5bb2);});}}_0x301386[_0x171ae6([0x6f,0x6e])](_0x171ae6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a57b7,_0x51eb26)=>{if(_0x51eb26[0x0]!=_0x3351d3)return _0x1f21de(_0x171ae6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x51eb26[0x1]={..._0x51eb26[0x1],[_0x171ae6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c0400};},{[_0x171ae6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x171ae6([0x68,0x69,0x67,0x68])}),_0x301386[_0x171ae6([0x6f,0x6e])](_0x171ae6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b9286=>{_0x407aa2(_0x2b9286[_0x171ae6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4dc156=!0x0,_0xf56cb7(_0x2b9286[_0x171ae6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x171ae6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x171ae6([0x6c,0x6f,0x77])}),_0x487767[_0x171ae6([0x74,0x68,0x65,0x6e])](()=>{_0x4dc156||_0x1f21de(_0x171ae6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19bda3(){return _0x301386[_0x171ae6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x171ae6([0x76,0x69,0x65,0x77])][_0x171ae6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x171ae6([0x61,0x75,0x74,0x6f]);}function _0xf7832a(){_0x301386[_0x171ae6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x171ae6([0x76,0x69,0x65,0x77])][_0x171ae6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x171ae6([0x61,0x75,0x74,0x6f]);}}function _0xe1db8a(_0x3d954c){const _0x1648e4=[new window[(_0x171ae6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x216dd2=>setTimeout(_0x216dd2,0x5356b2f6^_0x1b5bb2)),_0x487767[_0x171ae6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x171ae6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a3ec2=>{let _0x4d5a71=0x0;_0x301386[_0x171ae6([0x6d,0x6f,0x64,0x65,0x6c])][_0x171ae6([0x6f,0x6e])](_0x171ae6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x130471,_0x303caf)=>{_0x303caf[0x0][_0x171ae6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d5a71++,_0x4d5a71==(0x535f89d2^_0x1b5bb2)&&(_0x2a3ec2(),_0x130471[_0x171ae6([0x6f,0x66,0x66])]());});}))];return window[_0x171ae6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x171ae6([0x72,0x61,0x63,0x65])](_0x1648e4)[_0x171ae6([0x74,0x68,0x65,0x6e])](()=>_0x3d954c);}async function _0x1ef799(){await _0x487767,_0x301386[_0x171ae6([0x6d,0x6f,0x64,0x65,0x6c])][_0x171ae6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4bb78d,_0x301386[_0x171ae6([0x6d,0x6f,0x64,0x65,0x6c])][_0x171ae6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4bb78d,_0x301386[_0x171ae6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x171ae6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1da51d(_0x10226c){const _0x2c0c52=_0x413013();_0x301386[_0x2c0c52]=_0x171ae6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x10226c,_0x10226c!=_0x171ae6([0x56,0x61,0x6c,0x69,0x64])&&_0x1ef799();}function _0x413013(){const _0x24f061=window[_0x171ae6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x171ae6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x171ae6([0x6e,0x6f,0x77])]())[_0x171ae6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x171ae6([0x2e]),'');let _0x34726a=_0x171ae6([0x68]);for(let _0x349b1b=0x0;_0x349b1b<_0x24f061[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x349b1b+=0x2){let _0x5b790a=window[_0x171ae6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24f061[_0x171ae6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x349b1b,_0x349b1b+0x2));_0x5b790a>=_0x4262f5[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b790a-=_0x4262f5[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x34726a+=_0x4262f5[_0x5b790a];}return _0x34726a;}function _0xc6bef2(){const _0x5b84dd=_0x39424f[_0x171ae6([0x73,0x70,0x6c,0x69,0x74])](_0x171ae6([0x2e]));if(0x3!=_0x5b84dd[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52fade(_0x5b84dd[0x1]);function _0x52fade(_0x12b0d8){const _0xb1b92f=_0x5090ec(_0x12b0d8);return _0xb1b92f&&_0x49c4cc()?_0xb1b92f:null;function _0x49c4cc(){const _0x2cf751=_0xb1b92f[_0x171ae6([0x6a,0x74,0x69])],_0x490351=window[_0x171ae6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cf751[_0x171ae6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cf751[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d3874={..._0xb1b92f,[_0x171ae6([0x6a,0x74,0x69])]:_0x2cf751[_0x171ae6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2cf751[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d3874[_0x171ae6([0x76,0x63])],_0x5b8f02(_0x5d3874)==_0x490351;}}}async function _0x24fd0b(){let _0x5690fd=!0x0;try{const _0x3b5100=_0x39424f[_0x171ae6([0x73,0x70,0x6c,0x69,0x74])](_0x171ae6([0x2e])),[_0x1493c2,_0x261c60,_0x459bb2]=_0x3b5100;return _0x400cf7(_0x1493c2),await _0x289a10(_0x1493c2,_0x261c60,_0x459bb2),_0x5690fd;}catch{return!0x1;}function _0x400cf7(_0xe0902b){const _0x2f4f11=_0x5090ec(_0xe0902b);_0x2f4f11&&_0x2f4f11[_0x171ae6([0x61,0x6c,0x67])]==_0x171ae6([0x45,0x53,0x32,0x35,0x36])||(_0x5690fd=!0x1);}async function _0x289a10(_0x27af43,_0x196a43,_0x53b4d1){const _0x161bd6=window[_0x171ae6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x171ae6([0x66,0x72,0x6f,0x6d])](_0xe80d8f(_0x53b4d1),_0x5d0d71=>_0x5d0d71[_0x171ae6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e3c37=new window[(_0x171ae6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x171ae6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27af43+_0x171ae6([0x2e])+_0x196a43),_0x20c98a=window[_0x171ae6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x171ae6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20c98a)return;const _0xc63fbe=await _0x20c98a[_0x171ae6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x171ae6([0x6a,0x77,0x6b]),_0x158dcc,{[_0x171ae6([0x6e,0x61,0x6d,0x65])]:_0x171ae6([0x45,0x43,0x44,0x53,0x41]),[_0x171ae6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x171ae6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x171ae6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20c98a[_0x171ae6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x171ae6([0x6e,0x61,0x6d,0x65])]:_0x171ae6([0x45,0x43,0x44,0x53,0x41]),[_0x171ae6([0x68,0x61,0x73,0x68])]:{[_0x171ae6([0x6e,0x61,0x6d,0x65])]:_0x171ae6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc63fbe,_0x161bd6,_0x1e3c37)||(_0x5690fd=!0x1);}}function _0x5090ec(_0x22348d){return _0x22348d[_0x171ae6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x171ae6([0x65,0x79]))?JSON[_0x171ae6([0x70,0x61,0x72,0x73,0x65])](_0xe80d8f(_0x22348d)):null;}function _0xe80d8f(_0x4c15e2){return window[_0x171ae6([0x61,0x74,0x6f,0x62])](_0x4c15e2[_0x171ae6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x171ae6([0x2b]))[_0x171ae6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x171ae6([0x2f])));}function _0x5b8f02(_0x557852){let _0x21ad02=0x1505;function _0x39d17a(_0x5178da){for(let _0x435fb3=0x0;_0x435fb3<_0x5178da[_0x171ae6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x435fb3++){const _0x1778bd=_0x5178da[_0x171ae6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x435fb3);_0x21ad02=(_0x21ad02<<0x5)+_0x21ad02+_0x1778bd,_0x21ad02&=_0x21ad02;}}function _0x2e318b(_0x458ddc){Array[_0x171ae6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x458ddc)?_0x458ddc[_0x171ae6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e318b):_0x458ddc&&typeof _0x458ddc==_0x171ae6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x171ae6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x458ddc)[_0x171ae6([0x73,0x6f,0x72,0x74])]()[_0x171ae6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56cfdf,_0x4c1edb])=>{_0x39d17a(_0x56cfdf),_0x2e318b(_0x4c1edb);}):_0x39d17a(window[_0x171ae6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x458ddc));}return _0x2e318b(_0x557852),_0x21ad02>>>0x0;}function _0x5060f6(_0x35befe){return _0x35befe[_0x171ae6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x171ae6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x171ae6([0x30]));}function _0x5ba4e2(_0x271a90){return _0x271a90[_0x171ae6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x171ae6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x171ae6([0x6a,0x6f,0x69,0x6e])]('');}function _0x4bb78d(){}function _0x171ae6(_0x46d23f){const _0x23d749=_0x3e8a;return _0x46d23f[_0x23d749(0xf0)](_0x4709db=>String[_0x23d749(0xff)](_0x4709db))[_0x23d749(0xe8)]('');}_0x1da51d(await _0xe3f1a3());}(this);}[_0x466873(0xc4)](){const _0x4fe183=_0x466873,_0x11df6a=this[_0x4fe183(0x116)][_0x4fe183(0xd8)][_0x4fe183(0xf8)];_0x11df6a[_0x4fe183(0xe3)](_0x4fe183(0x105))&&_0x11df6a[_0x4fe183(0xf4)](_0x4fe183(0x105),{'allowAttributes':[_0x4fe183(0xcd)]}),_0x11df6a[_0x4fe183(0xe3)](_0x4fe183(0xf7))&&_0x11df6a[_0x4fe183(0xf4)](_0x4fe183(0xf7),{'allowAttributes':[_0x4fe183(0xcd)]});}[_0x466873(0x102)](){const _0x251cda=_0x466873,_0xa68207=this[_0x251cda(0x116)];_0xa68207[_0x251cda(0xf2)][_0x251cda(0xd0)](_0x251cda(0xea))[_0x251cda(0xd1)]({'model':_0x251cda(0xcd),'view':_0x251cda(0x111)}),_0xa68207[_0x251cda(0xf2)][_0x251cda(0xd0)](_0x251cda(0xe0))[_0x251cda(0xe2)]({'model':{'key':_0x251cda(0xcd),'value':_0x49a7ca=>_0x49a7ca[_0x251cda(0xf9)](_0x251cda(0x111))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5c3ac4=_0xa68207[_0x251cda(0xe4)][_0x251cda(0xe9)](_0x251cda(0xf1));_0x5c3ac4&&this[_0x251cda(0xf6)](_0x5c3ac4,_0x251cda(0xdd),(_0xea2734,[_0x155a8e,_0x21471a])=>{const _0x48a005=_0x251cda;_0x155a8e[_0x48a005(0xcf)](_0x48a005(0xcd),_0x21471a);});}[_0x466873(0xeb)](){const _0x16e804=_0x466873,_0x45b723=this[_0x16e804(0x116)][_0x16e804(0xfe)][_0x16e804(0xe9)](_0x16e804(0x112))||{},_0x50d4b0=this[_0x16e804(0x116)][_0x16e804(0xfe)][_0x16e804(0xe9)](_0x16e804(0xed))||'';this[_0x16e804(0xcc)]=_0x54b96e(_0x3664b0[_0x16e804(0xde)],_0x16e804(0xc1),{..._0x45b723,'pubkey':_0x50d4b0,'ctx-name':_0x16e804(0x101)+this[_0x16e804(0xf5)],'sourceList':'','imgOnly':_0x16e804(0xdf),'removeCopyright':_0x16e804(0xdf),'localeName':this[_0x16e804(0x116)][_0x16e804(0xd6)][_0x16e804(0x10a)],'externalSourcesEmbedCss':_0x16e804(0x104)}),this[_0x16e804(0xcc)][_0x16e804(0xfa)]=_0x56cea0=>{const _0x24239d=_0x16e804;if(_0x24239d(0xd4)==_0x56cea0)return _0x24239d(0x10f);},_0x3664b0[_0x16e804(0xde)][_0x16e804(0xee)][_0x16e804(0x10e)](this[_0x16e804(0xcc)]);}[_0x466873(0xe6)](){const _0x2c1334=_0x466873;this[_0x2c1334(0x10d)]=_0x54b96e(_0x3664b0[_0x2c1334(0xde)],_0x2c1334(0xc7),{'ctx-name':_0x2c1334(0x101)+this[_0x2c1334(0xf5)]}),_0x3664b0[_0x2c1334(0xde)][_0x2c1334(0xee)][_0x2c1334(0x10e)](this[_0x2c1334(0x10d)]);}[_0x466873(0xca)](){const _0x545bdf=_0x466873,_0x28626f=this[_0x545bdf(0x116)][_0x545bdf(0xe4)][_0x545bdf(0xe9)](_0x545bdf(0xc2));_0x28626f&&this[_0x545bdf(0xf6)](_0x28626f,_0x545bdf(0xdb),()=>{const _0x189315=_0x545bdf,_0x322649=this[_0x189315(0x116)][_0x189315(0xd8)][_0x189315(0xde)][_0x189315(0x115)][_0x189315(0xfd)]();_0x322649&&_0x322649[_0x189315(0xf9)](_0x189315(0xcd))&&this[_0x189315(0x116)][_0x189315(0x113)][_0x189315(0xc5)][_0x189315(0xcb)](_0x189315(0x110),()=>{const _0x1837f8=_0x189315;_0x455733(this[_0x1837f8(0x116)],_0x322649);});});const _0x28fc62=this[_0x545bdf(0x116)][_0x545bdf(0xe4)][_0x545bdf(0xe9)](_0x545bdf(0xc8));_0x28fc62&&this[_0x545bdf(0xf6)](_0x28fc62,_0x545bdf(0xdb),()=>{const _0x3a6227=_0x545bdf,_0x2b6a1e=this[_0x3a6227(0x116)][_0x3a6227(0xd8)][_0x3a6227(0xde)][_0x3a6227(0x115)][_0x3a6227(0xfd)]();_0x2b6a1e&&_0x2b6a1e[_0x3a6227(0xf9)](_0x3a6227(0xcd))&&this[_0x3a6227(0x116)][_0x3a6227(0x113)][_0x3a6227(0xc5)][_0x3a6227(0xcb)](_0x3a6227(0x110),()=>{const _0xa3f19c=_0x3a6227;_0x455733(this[_0xa3f19c(0x116)],_0x2b6a1e);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2ab5eb,ObservableMixin as _0x4341ce}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xe4e1b8}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x18db02}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5229f3}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x40d3fe}from'../../utils/uploadutils.js';import{getImageUrls as _0x17466d,getImageDimension as _0x1c7b92}from'../../utils/editingutils.js';import{isAncestor as _0x4bb433}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4341ce(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x533744,_0x38d401,_0x2c4452){super(),this['_editor']=_0x533744,this['_dialog']=_0x38d401,this['_imageElement']=_0x2c4452,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 _0x1ea864=this['_imageElement'],_0x4d6aad=_0x1ea864['getAttribute']('uploadcareImageId'),_0x14285b=_0x1ea864['getAttribute']('src');if(_0x4d6aad)await this['_loadImageInfo'](_0x4d6aad,_0x14285b);else{if(this['_imageCache']['has'](_0x14285b)){const _0x4c6b90=this['_imageCache']['get'](_0x14285b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c6b90['url'],this['imageDimension']=_0x4c6b90['dimension'],this['imageId']=_0x4c6b90['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1fd70c}=this['_editor'],t=_0x1fd70c['t'],_0xeb06a=new _0x5229f3(_0x1fd70c,this['imageStatus'],this['_attributes']);_0xeb06a['bind']('status')['to'](this,'imageStatus'),_0xeb06a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xeb06a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xeb06a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xeb06a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x18db02,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xeb06a,'position':_0xe4e1b8['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xeb06a['focus']();},'onHide':()=>{_0xeb06a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36d5a8=>!_0x4bb433(_0x36d5a8,_0xeb06a['element'])}});}['_loadImageInfo'](_0x427ba6,_0x4c11d0){return _0x40d3fe['getInfo'](_0x427ba6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x7b5988=>{const {width:_0x1b2a68,height:_0x18ac6f}=_0x7b5988['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c11d0,this['imageDimension']={'width':_0x1b2a68,'height':_0x18ac6f},this['imageId']=_0x427ba6;})['catch'](_0x1c5177=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1c5177['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2a0877,_0x5c5f25){return this['_getImageAsFile'](_0x2a0877)['then'](_0x4952d6=>_0x40d3fe['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':_0x5c5f25['signal'],'file':_0x4952d6,'onProgress':_0x5d5207=>{_0x5d5207&&_0x5d5207['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5d5207['value']));}}))['then'](_0x32d7e3=>{const {width:_0x5077ef,height:_0x31bcda}=_0x32d7e3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32d7e3['cdnUrl'],this['imageDimension']={'width':_0x5077ef,'height':_0x31bcda},this['imageId']=_0x32d7e3['uuid'],this['imageUploadProgress']=null;const _0x57e12d=_0x2a0877['getAttribute']('src');this['_imageCache']['set'](_0x57e12d,{'id':_0x32d7e3['uuid'],'url':_0x32d7e3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2f74f8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2f74f8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x36458d,_0x293e04){_0x36458d['on']('apply',(_0x29be91,_0x565a34)=>{this['_replaceImage'](_0x293e04,_0x565a34['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x36458d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x36458d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x28e070,_0x565522,_0x2b7b7a){const _0x24da7b=this['_editor'],{width:_0x1e7b1d,height:_0xa02473}=_0x1c7b92(_0x565522,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3fae74,imageSources:_0x1154dc}=_0x17466d(_0x565522,_0x1e7b1d);_0x24da7b['model']['change'](_0x1a71f7=>{if('$graveyard'===_0x28e070['root']['rootName']){_0x24da7b['execute']('insertImage',{'imageType':_0x28e070['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x28e070['getAttributes']()),'uploadcareImageId':_0x2b7b7a,'src':_0x3fae74,'sources':_0x1154dc,'width':_0x1e7b1d,'height':_0xa02473}});const _0x136ff0=_0x28e070['getChildren']();_0x28e070=_0x24da7b['model']['document']['selection']['getSelectedElement']();for(const _0x79cc17 of _0x136ff0)_0x1a71f7['append'](_0x1a71f7['cloneElement'](_0x79cc17),_0x28e070);}else _0x1a71f7['setSelection'](_0x28e070,'on'),_0x24da7b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x28e070['getAttributes']()),'uploadcareImageId':_0x2b7b7a,'src':_0x3fae74,'sources':_0x1154dc,'width':_0x1e7b1d,'height':_0xa02473},_0x28e070);_0x1a71f7['setSelection'](_0x28e070,'on');});}async['_getImageAsFile'](_0x1c510d){const _0x50e2d4=_0x2ab5eb['window'],_0x51d9b7=_0x2ab5eb['document']['location']['href'],_0x41fc4d=new _0x50e2d4['URL'](_0x1c510d['getAttribute']('src'),_0x51d9b7);if('data:'===_0x41fc4d['protocol']){const _0x3e607e=_0x41fc4d['href']['split'](','),_0x31f046=_0x3e607e[0x0]['match'](/:(.*?);/)[0x1],_0x5b7486=_0x31f046['split']('/')[0x1],_0xa48dfd=_0x50e2d4['atob'](_0x3e607e[_0x3e607e['length']-0x1]);let _0x18b328=_0xa48dfd['length'];const _0x84f2e1=new _0x50e2d4['Uint8Array'](_0x18b328);for(;_0x18b328--;)_0x84f2e1[_0x18b328]=_0xa48dfd['charCodeAt'](_0x18b328);return new _0x50e2d4['File']([_0x84f2e1],'image.'+_0x5b7486,{'type':_0x31f046});}const _0x2b96ac=_0x41fc4d['href']['split']('/'),_0x82c5f9=_0x2b96ac[_0x2b96ac['length']-0x1],_0x5503b5=_0x82c5f9['split']('.')[0x1];return _0x50e2d4['fetch'](_0x41fc4d['href'])['then'](_0x128a1a=>_0x128a1a['clone']()['blob']())['then'](_0x58bad8=>new _0x50e2d4['File']([_0x58bad8],_0x82c5f9,{'type':'image/'+_0x5503b5}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x500b(_0xfbd070,_0x54969e){const _0x3759b8=_0x3759();return _0x500b=function(_0x500bc1,_0x213d73){_0x500bc1=_0x500bc1-0x67;let _0x9c6712=_0x3759b8[_0x500bc1];return _0x9c6712;},_0x500b(_0xfbd070,_0x54969e);}(function(_0x24126a,_0xa70da4){const _0x424948=_0x500b,_0xb8f9a0=_0x24126a();while(!![]){try{const _0x3aec32=parseInt(_0x424948(0x77))/0x1+parseInt(_0x424948(0x70))/0x2*(parseInt(_0x424948(0x67))/0x3)+parseInt(_0x424948(0x6f))/0x4*(parseInt(_0x424948(0x73))/0x5)+parseInt(_0x424948(0x6b))/0x6+parseInt(_0x424948(0x75))/0x7+parseInt(_0x424948(0x71))/0x8+parseInt(_0x424948(0x6a))/0x9*(-parseInt(_0x424948(0x69))/0xa);if(_0x3aec32===_0xa70da4)break;else _0xb8f9a0['push'](_0xb8f9a0['shift']());}catch(_0x5ca486){_0xb8f9a0['push'](_0xb8f9a0['shift']());}}}(_0x3759,0xc6733));import{View as _0x2cb40d}from'ckeditor5/src/ui.js';function _0x3759(){const _0x19905c=['1036777wRhwEQ','uc-cloud-image-editor','12XhQsOo','uc-light','56808130RfjkXV','9zOAQod','9434418LKRCXV','bindTemplate','imageSrc','image-edit','5249796RsJqQx','363646FPKVzY','3306960klEWSN','setTemplate','5PsZTtV','set','10019611RWkAzJ','ck-uploadcare-theme'];_0x3759=function(){return _0x19905c;};return _0x3759();}export class UploadcareImageEditFormEditingView extends _0x2cb40d{constructor(_0x1858ae,_0xa31c48){const _0x366a7c=_0x500b;super(_0x1858ae);const _0x1e9a80=this[_0x366a7c(0x6c)];this[_0x366a7c(0x74)](_0x366a7c(0x6d),''),this[_0x366a7c(0x72)]({'tag':_0x366a7c(0x78),'attributes':{..._0xa31c48,'class':[_0x366a7c(0x68),_0x366a7c(0x76)],'ctx-name':_0x366a7c(0x6e),'cdn-url':_0x1e9a80['to'](_0x366a7c(0x6d))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4594c8}from'ckeditor5/src/icons.js';import{ButtonView as _0xb16759,IconView as _0xe5870f,View as _0x5bbccd}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5bbccd{constructor(_0x2caeed){super(_0x2caeed);const t=_0x2caeed['t'];this['set']('errorType',null);const _0x65faec=new _0xb16759(_0x2caeed);_0x65faec['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x65faec['withText']=!0x0,_0x65faec['class']='ck-button-action',_0x65faec['on']('execute',()=>{this['fire']('retry');}),_0x65faec['bind']('isVisible')['to'](this,'errorType',_0x250ef3=>'NotFound'!==_0x250ef3);const _0x2442c3=new _0xe5870f();_0x2442c3['content']=_0x4594c8,_0x2442c3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x396828=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':[_0x2442c3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x396828['to']('errorType',_0x5b7bb4=>t('NotFound'!==_0x5b7bb4?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x65faec]},{'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 _0x260625,View as _0x4a0094}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4a0094{constructor(_0x5ebc67){super(_0x5ebc67);const t=_0x5ebc67['t'],_0x7e88e2=this['bindTemplate'],_0x922f6a=new _0x260625();_0x922f6a['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':[_0x922f6a,{'text':_0x7e88e2['to']('imageUploadProgress',_0x3c1f19=>t('Loading\x20image...')+'\x20('+(_0x3c1f19||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1b68fe=_0x2889;(function(_0x44f9a1,_0x4c6b24){const _0x406410=_0x2889,_0x43abe4=_0x44f9a1();while(!![]){try{const _0x4d946c=-parseInt(_0x406410(0x1b9))/0x1+parseInt(_0x406410(0x1c5))/0x2+parseInt(_0x406410(0x1a3))/0x3*(parseInt(_0x406410(0x19b))/0x4)+-parseInt(_0x406410(0x1c7))/0x5*(-parseInt(_0x406410(0x1ba))/0x6)+-parseInt(_0x406410(0x1a2))/0x7+-parseInt(_0x406410(0x19a))/0x8*(parseInt(_0x406410(0x1a1))/0x9)+-parseInt(_0x406410(0x1bc))/0xa*(-parseInt(_0x406410(0x1a7))/0xb);if(_0x4d946c===_0x4c6b24)break;else _0x43abe4['push'](_0x43abe4['shift']());}catch(_0x3ed936){_0x43abe4['push'](_0x43abe4['shift']());}}}(_0x408e,0x6aec2));import{View as _0x52031d}from'ckeditor5/src/ui.js';function _0x2889(_0x4f8834,_0x546fed){const _0x408e44=_0x408e();return _0x2889=function(_0x288989,_0x5c4d71){_0x288989=_0x288989-0x195;let _0x5d81d6=_0x408e44[_0x288989];return _0x5d81d6;},_0x2889(_0x4f8834,_0x546fed);}import{UploadcareImageEditFormLoadingView as _0x3b2337}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x10ad53}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x15ab49}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x8d5fbc}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x8d5fbc{[_0x1b68fe(0x196)];[_0x1b68fe(0x1bb)];[_0x1b68fe(0x19e)];[_0x1b68fe(0x19c)];[_0x1b68fe(0x1bd)];constructor(_0x361b82,_0x1a6f69,_0x361d72){const _0x5acde4=_0x1b68fe;super(_0x361b82),this[_0x5acde4(0x196)]=this[_0x5acde4(0x1a9)](),this[_0x5acde4(0x1bb)]=new _0x3b2337(_0x361b82),this[_0x5acde4(0x19e)]=new _0x10ad53(_0x361b82),this[_0x5acde4(0x19c)]=new _0x15ab49(_0x361b82,_0x361d72),this[_0x5acde4(0x1bd)]=new _0x52031d(_0x361b82),this[_0x5acde4(0x1bd)][_0x5acde4(0x1c1)](this[_0x5acde4(0x1ac)]()),this[_0x5acde4(0x1b7)](_0x5acde4(0x1b2),_0x1a6f69),this[_0x5acde4(0x1c1)]({'tag':_0x5acde4(0x1be),'attributes':{'class':['ck',_0x5acde4(0x1b8),_0x5acde4(0x1c6)],'tabindex':'-1'},'children':this[_0x5acde4(0x196)]}),this[_0x5acde4(0x1aa)](),this[_0x5acde4(0x1ad)](_0x5acde4(0x1b3),()=>{const _0xfd2f0b=_0x5acde4;this[_0xfd2f0b(0x1b0)](this[_0xfd2f0b(0x1cc)],_0xa4f9f6=>{const _0xc664c1=_0xfd2f0b;this[_0xc664c1(0x1c0)](_0xa4f9f6);});}),this['on'](_0x5acde4(0x1c2),()=>{const _0x4926c0=_0x5acde4;this[_0x4926c0(0x1aa)]();}),this[_0x5acde4(0x1c3)]();}[_0x1b68fe(0x195)](){const _0xdd66b1=_0x1b68fe;this[_0xdd66b1(0x1cc)][_0xdd66b1(0x195)]();}[_0x1b68fe(0x1aa)](){const _0x3c2d3e=_0x1b68fe;switch(this[_0x3c2d3e(0x196)][_0x3c2d3e(0x197)](),this[_0x3c2d3e(0x1b2)]){case _0x3c2d3e(0x1a4):this[_0x3c2d3e(0x196)][_0x3c2d3e(0x1b6)](this[_0x3c2d3e(0x1bb)]);break;case _0x3c2d3e(0x1cb):this[_0x3c2d3e(0x196)][_0x3c2d3e(0x1b6)](this[_0x3c2d3e(0x19e)]);break;case _0x3c2d3e(0x1b4):this[_0x3c2d3e(0x196)][_0x3c2d3e(0x19d)]([this[_0x3c2d3e(0x19c)],this[_0x3c2d3e(0x1bd)]]);}}[_0x1b68fe(0x1b0)](_0x504260,_0x346232){const _0x134b4a=_0x1b68fe,_0x1942a5=_0x134b4a(0x198),_0x24df48=_0x504260[_0x134b4a(0x1a6)](_0x1942a5);if(_0x24df48)return _0x346232(_0x24df48);const _0x4551ba=new MutationObserver(_0x2df9c2=>{const _0x316d14=_0x134b4a,_0x4a8e95=_0x2df9c2[_0x316d14(0x199)](_0x533aaa=>_0x533aaa[_0x316d14(0x1af)]===_0x504260&&_0x533aaa[_0x316d14(0x1ca)][_0x316d14(0x1c8)]>0x0&&_0x533aaa[_0x316d14(0x1ca)][0x0][_0x316d14(0x1a5)][_0x316d14(0x1a0)]()===_0x1942a5);_0x4a8e95[_0x316d14(0x1c8)]&&(_0x4551ba[_0x316d14(0x1b5)](),_0x346232(_0x4a8e95[0x0][_0x316d14(0x1ca)][0x0]));});_0x4551ba[_0x134b4a(0x1c9)](_0x504260,{'childList':!0x0,'subtree':!0x0});}[_0x1b68fe(0x1c0)](_0x1214ee){const _0x50003e=_0x1b68fe;_0x1214ee[_0x50003e(0x19f)](_0x50003e(0x1c4),_0x2a2a7a=>{const _0x10d4ab=_0x50003e;this[_0x10d4ab(0x1b1)](_0x10d4ab(0x1c4),{'imageSrc':_0x2a2a7a[_0x10d4ab(0x1ae)][_0x10d4ab(0x1ab)]});}),_0x1214ee[_0x50003e(0x19f)](_0x50003e(0x1bf),()=>{const _0x2d287f=_0x50003e;this[_0x2d287f(0x1b1)](_0x2d287f(0x1bf));});}[_0x1b68fe(0x1c3)](){const _0x2f06ab=_0x1b68fe;this[_0x2f06ab(0x19e)]['on'](_0x2f06ab(0x1a8),()=>{const _0x45a494=_0x2f06ab;this[_0x45a494(0x1b1)](_0x45a494(0x1a8));});}}function _0x408e(){const _0x526378=['querySelector','22vqLThY','retry','createCollection','_setView','cdnUrl','getFocusableElement','once','detail','target','_waitForImageEditorComponent','fire','status','render','ready','disconnect','add','set','ck-reset_all-excluded','639438ZXbIZG','1290oroztP','_loadingView','4005600cUcUet','_focusableView','div','cancel','_addUploadcareImageEditorListeners','setTemplate','change:status','_addErrorViewListeners','apply','762350LtzTDR','ck-uploadcare-form','7660plFeIM','length','observe','addedNodes','error','element','focus','_items','clear','uc-cloud-image-editor','filter','13592CHNzBR','440byVPvC','_editingView','addMany','_errorView','addEventListener','toLowerCase','2493JUlvnB','5520620MnkkIy','22500hyuUht','uploading','nodeName'];_0x408e=function(){return _0x526378;};return _0x408e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x30eb(){const _0x3f6ed3=['selection','imageBlock','model','148300YJFehu','bind','imageInline','835SNbiyg','4112487PvQgaJ','uploadcare.allowExternalImagesEditing','document','583qPpkAb','imageEditController','isActive','execute','getSelectedElement','639UsmfeQ','refresh','3657246EFrVjd','config','10292blAYLh','editor','_isEditable','unbind','get','set','703633rKCCve','2818NyIsCN','requires','40NYJKIA','element','538545QSOrZU','plugins','isEnabled'];_0x30eb=function(){return _0x3f6ed3;};return _0x30eb();}const _0x3d32e7=_0x4b79;(function(_0x5ac367,_0x58ba45){const _0x49e347=_0x4b79,_0x5ba118=_0x5ac367();while(!![]){try{const _0x27e0ab=-parseInt(_0x49e347(0x1ea))/0x1+parseInt(_0x49e347(0x1e6))/0x2*(parseInt(_0x49e347(0x1db))/0x3)+parseInt(_0x49e347(0x1df))/0x4*(parseInt(_0x49e347(0x1d2))/0x5)+-parseInt(_0x49e347(0x1dd))/0x6+parseInt(_0x49e347(0x1e5))/0x7*(-parseInt(_0x49e347(0x1e8))/0x8)+parseInt(_0x49e347(0x1d3))/0x9+-parseInt(_0x49e347(0x1f0))/0xa*(-parseInt(_0x49e347(0x1d6))/0xb);if(_0x27e0ab===_0x58ba45)break;else _0x5ba118['push'](_0x5ba118['shift']());}catch(_0x3c544e){_0x5ba118['push'](_0x5ba118['shift']());}}}(_0x30eb,0x4ea0c));function _0x4b79(_0x1b470e,_0xd9f4f5){const _0x30ebd2=_0x30eb();return _0x4b79=function(_0x4b79c3,_0x47c614){_0x4b79c3=_0x4b79c3-0x1d1;let _0x486ef9=_0x30ebd2[_0x4b79c3];return _0x486ef9;},_0x4b79(_0x1b470e,_0xd9f4f5);}import{Command as _0x394786}from'ckeditor5/src/core.js';import{Dialog as _0x228f11}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x55ffd3}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x530d56}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x394786{[_0x3d32e7(0x1d7)];static get[_0x3d32e7(0x1e7)](){return[_0x228f11];}[_0x3d32e7(0x1e1)];constructor(_0x5b010b){const _0xbf1b00=_0x3d32e7;super(_0x5b010b),this[_0xbf1b00(0x1d7)]=void 0x0,this[_0xbf1b00(0x1e1)]=_0x530d56(_0x5b010b[_0xbf1b00(0x1de)][_0xbf1b00(0x1e3)](_0xbf1b00(0x1d4))||[]),this[_0xbf1b00(0x1e4)]({'isActive':!0x1});}[_0x3d32e7(0x1dc)](){const _0x308ce8=_0x3d32e7,_0x3c1bbe=this[_0x308ce8(0x1e0)][_0x308ce8(0x1ef)][_0x308ce8(0x1d5)][_0x308ce8(0x1ed)][_0x308ce8(0x1da)]();this[_0x308ce8(0x1ec)]=this[_0x308ce8(0x1e1)](_0x3c1bbe);}[_0x3d32e7(0x1d9)](){const _0x27e17d=_0x3d32e7;this[_0x27e17d(0x1d7)]&&(this[_0x27e17d(0x1e2)](_0x27e17d(0x1d8)),this[_0x27e17d(0x1d7)]=void 0x0);const _0x230294=this[_0x27e17d(0x1e0)][_0x27e17d(0x1ef)][_0x27e17d(0x1d5)][_0x27e17d(0x1ed)][_0x27e17d(0x1da)]();_0x230294&&(_0x230294['is'](_0x27e17d(0x1e9),_0x27e17d(0x1ee))||_0x230294['is'](_0x27e17d(0x1e9),_0x27e17d(0x1d1)))&&(this[_0x27e17d(0x1d7)]=new _0x55ffd3(this[_0x27e17d(0x1e0)],this[_0x27e17d(0x1e0)][_0x27e17d(0x1eb)][_0x27e17d(0x1e3)](_0x228f11),_0x230294),this[_0x27e17d(0x1f1)](_0x27e17d(0x1d8))['to'](this[_0x27e17d(0x1d7)],_0x27e17d(0x1d8)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x16eaf0=_0x2e4d;(function(_0xf8ba03,_0x402d60){const _0x3a36f6=_0x2e4d,_0x5c5ac7=_0xf8ba03();while(!![]){try{const _0x3daa2e=parseInt(_0x3a36f6(0x15b))/0x1*(-parseInt(_0x3a36f6(0x14e))/0x2)+-parseInt(_0x3a36f6(0x15e))/0x3+-parseInt(_0x3a36f6(0x14c))/0x4+-parseInt(_0x3a36f6(0x156))/0x5*(parseInt(_0x3a36f6(0x15c))/0x6)+parseInt(_0x3a36f6(0x15a))/0x7*(-parseInt(_0x3a36f6(0x159))/0x8)+parseInt(_0x3a36f6(0x153))/0x9*(parseInt(_0x3a36f6(0x15f))/0xa)+parseInt(_0x3a36f6(0x15d))/0xb*(parseInt(_0x3a36f6(0x14a))/0xc);if(_0x3daa2e===_0x402d60)break;else _0x5c5ac7['push'](_0x5c5ac7['shift']());}catch(_0x51f844){_0x5c5ac7['push'](_0x5c5ac7['shift']());}}}(_0x13f8,0x46a8e));import{Plugin as _0x257a0d}from'ckeditor5/src/core.js';function _0x13f8(){const _0xb296fc=['36hUsvSo','init','requires','2075LpzrGV','isPremiumPlugin','uploadcareImageReplace','160mSHrDD','71477RomRZs','259329VsnsJK','6414sQHDQh','583NiLgtm','1313760omhzbK','343540uzizgJ','add','pluginName','381576JpzUJE','ImageUtils','752736aundBx','ImageEditing','2SXqmZy','commands','UploadcareImageEditEditing','uploadcareImageEdit','isOfficialPlugin'];_0x13f8=function(){return _0xb296fc;};return _0x13f8();}import{Notification as _0x563504}from'ckeditor5/src/ui.js';function _0x2e4d(_0x39c682,_0x3a52fc){const _0x13f882=_0x13f8();return _0x2e4d=function(_0x2e4dbb,_0x4ccc0e){_0x2e4dbb=_0x2e4dbb-0x149;let _0xa70425=_0x13f882[_0x2e4dbb];return _0xa70425;},_0x2e4d(_0x39c682,_0x3a52fc);}import{UploadcareImageEditCommand as _0x2395b4}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x273d7c}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x23a5f7}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x257a0d{static get[_0x16eaf0(0x149)](){const _0x3ae390=_0x16eaf0;return _0x3ae390(0x150);}static get[_0x16eaf0(0x155)](){const _0x51830e=_0x16eaf0;return[_0x23a5f7,_0x563504,_0x51830e(0x14b),_0x51830e(0x14d)];}static get[_0x16eaf0(0x152)](){return!0x0;}static get[_0x16eaf0(0x157)](){return!0x0;}[_0x16eaf0(0x154)](){const _0x89793b=_0x16eaf0,{editor:_0x493d62}=this;_0x493d62[_0x89793b(0x14f)][_0x89793b(0x160)](_0x89793b(0x151),new _0x2395b4(_0x493d62)),_0x493d62[_0x89793b(0x14f)][_0x89793b(0x160)](_0x89793b(0x158),new _0x273d7c(_0x493d62));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x264692}from'ckeditor5/src/core.js';import{ButtonView as _0x1a8ca3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x406773}from'ckeditor5/src/icons.js';import{createElement as _0x196010}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 _0x264692{['_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 _0x69fab=this['editor'];_0x69fab['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2969ef=>{const _0x54f6c5=_0x69fab['commands']['get']('uploadcareImageEdit'),_0x263b16=new _0x1a8ca3(_0x2969ef),t=_0x2969ef['t'];return _0x263b16['set']({'icon':_0x406773,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x263b16['bind']('isEnabled')['to'](_0x54f6c5),_0x263b16['bind']('isOn')['to'](_0x54f6c5,'isActive'),this['listenTo'](_0x263b16,'execute',()=>{_0x69fab['execute']('uploadcareImageEdit'),_0x69fab['editing']['view']['focus']();}),_0x263b16;}),this['_initConfig']();}['_initConfig'](){const _0x21dabd=_0x196010(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x21dabd),this['listenTo'](this['editor'],'destroy',()=>{_0x21dabd['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3996f9=_0x2809;(function(_0x42be14,_0xb68de1){const _0x109214=_0x2809,_0x3ec177=_0x42be14();while(!![]){try{const _0x45e837=parseInt(_0x109214(0x123))/0x1+-parseInt(_0x109214(0x121))/0x2*(parseInt(_0x109214(0x125))/0x3)+-parseInt(_0x109214(0x118))/0x4*(-parseInt(_0x109214(0x126))/0x5)+-parseInt(_0x109214(0x127))/0x6*(parseInt(_0x109214(0x119))/0x7)+-parseInt(_0x109214(0x11b))/0x8*(-parseInt(_0x109214(0x130))/0x9)+-parseInt(_0x109214(0x132))/0xa+parseInt(_0x109214(0x131))/0xb;if(_0x45e837===_0xb68de1)break;else _0x3ec177['push'](_0x3ec177['shift']());}catch(_0x511abd){_0x3ec177['push'](_0x3ec177['shift']());}}}(_0x5c73,0x5e050));function _0x2809(_0x2686ef,_0x3b2916){const _0x5c73ed=_0x5c73();return _0x2809=function(_0x2809ca,_0x248247){_0x2809ca=_0x2809ca-0x118;let _0x318672=_0x5c73ed[_0x2809ca];return _0x318672;},_0x2809(_0x2686ef,_0x3b2916);}import{Command as _0xe94d83}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0xe94d83{[_0x3996f9(0x11d)](){const _0x56ffaa=_0x3996f9,_0x175120=this[_0x56ffaa(0x129)][_0x56ffaa(0x128)][_0x56ffaa(0x124)][_0x56ffaa(0x122)][_0x56ffaa(0x11e)]();this[_0x56ffaa(0x11c)]=Boolean(_0x175120&&(_0x175120['is'](_0x56ffaa(0x11a),_0x56ffaa(0x12c))||_0x175120['is'](_0x56ffaa(0x11a),_0x56ffaa(0x12e))));}[_0x3996f9(0x120)](_0x22c64f){const _0x24c20a=_0x3996f9,_0x481c61=this[_0x24c20a(0x129)][_0x24c20a(0x128)][_0x24c20a(0x124)][_0x24c20a(0x122)][_0x24c20a(0x11e)]();this[_0x24c20a(0x129)][_0x24c20a(0x128)][_0x24c20a(0x12b)](_0x3cd130=>{const _0x5206b5=_0x24c20a;_0x3cd130[_0x5206b5(0x12a)](_0x22c64f,_0x481c61),_0x3cd130[_0x5206b5(0x12f)](_0x5206b5(0x11f),_0x481c61),_0x3cd130[_0x5206b5(0x12f)](_0x5206b5(0x12d),_0x481c61);});}}function _0x5c73(){const _0x28f735=['853013XzhSsV','element','16DhhBDA','isEnabled','refresh','getSelectedElement','srcset','execute','1365844jwieCT','selection','610185ihIjdO','document','3StQAXz','34145WYbyeW','12YhlCNO','model','editor','setAttributes','change','imageBlock','sizes','imageInline','removeAttribute','3196296CtkkES','2876203fKLGQf','6048230wLMxOY','196sTtHNW'];_0x5c73=function(){return _0x28f735;};return _0x5c73();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4595ff=_0x59bf;function _0x1b57(){var _0x4f2649=['pluginName','1484615UOUHYg','requires','1LrwwId','22304oVaWAn','143WRFAKe','isOfficialPlugin','711886mADcoz','66YVFzuZ','750NSEnue','40808ECHkir','UploadcareImageEdit','32595XqwpfX','isPremiumPlugin','14931jTWAsf','1106wGtTKT','1779372fsNjzM','3040wVskNB'];_0x1b57=function(){return _0x4f2649;};return _0x1b57();}(function(_0x2de034,_0x3d1524){var _0x53f211=_0x59bf,_0x2edd63=_0x2de034();while(!![]){try{var _0x2734ae=-parseInt(_0x53f211(0x160))/0x1*(parseInt(_0x53f211(0x152))/0x2)+-parseInt(_0x53f211(0x153))/0x3*(-parseInt(_0x53f211(0x155))/0x4)+parseInt(_0x53f211(0x157))/0x5*(-parseInt(_0x53f211(0x154))/0x6)+parseInt(_0x53f211(0x15a))/0x7*(parseInt(_0x53f211(0x14f))/0x8)+-parseInt(_0x53f211(0x159))/0x9*(parseInt(_0x53f211(0x15c))/0xa)+-parseInt(_0x53f211(0x15e))/0xb+-parseInt(_0x53f211(0x15b))/0xc*(-parseInt(_0x53f211(0x150))/0xd);if(_0x2734ae===_0x3d1524)break;else _0x2edd63['push'](_0x2edd63['shift']());}catch(_0x2729ef){_0x2edd63['push'](_0x2edd63['shift']());}}}(_0x1b57,0x76a20));import{Plugin as _0x3662be}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x1fffe6}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x59bf(_0x38b1d9,_0x346d3e){var _0x1b5749=_0x1b57();return _0x59bf=function(_0x59bfeb,_0x2a45f3){_0x59bfeb=_0x59bfeb-0x14f;var _0x42fc17=_0x1b5749[_0x59bfeb];return _0x42fc17;},_0x59bf(_0x38b1d9,_0x346d3e);}import{UploadcareImageEditUI as _0x34febf}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x3662be{static get[_0x4595ff(0x15d)](){var _0x1af076=_0x4595ff;return _0x1af076(0x156);}static get[_0x4595ff(0x15f)](){return[_0x1fffe6,_0x34febf];}static get[_0x4595ff(0x151)](){return!0x0;}static get[_0x4595ff(0x158)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x351edc=_0x2f6d;(function(_0xa6b255,_0x2ef522){const _0x41ebc5=_0x2f6d,_0x359923=_0xa6b255();while(!![]){try{const _0x3c573a=parseInt(_0x41ebc5(0x12f))/0x1*(-parseInt(_0x41ebc5(0x10f))/0x2)+parseInt(_0x41ebc5(0x124))/0x3*(-parseInt(_0x41ebc5(0x13b))/0x4)+parseInt(_0x41ebc5(0x106))/0x5*(-parseInt(_0x41ebc5(0x121))/0x6)+parseInt(_0x41ebc5(0x104))/0x7*(-parseInt(_0x41ebc5(0x14f))/0x8)+parseInt(_0x41ebc5(0x13c))/0x9*(-parseInt(_0x41ebc5(0x122))/0xa)+-parseInt(_0x41ebc5(0x11b))/0xb+parseInt(_0x41ebc5(0x149))/0xc;if(_0x3c573a===_0x2ef522)break;else _0x359923['push'](_0x359923['shift']());}catch(_0x1a87f0){_0x359923['push'](_0x359923['shift']());}}}(_0x2e3d,0x4e9cc));import{Plugin as _0x49c12c}from'ckeditor5/src/core.js';import{IconDropbox as _0x1e986b,IconFacebook as _0x5b4925,IconGoogleDrive as _0x2e8143,IconGooglePhotos as _0x306337,IconUploadcareImageUpload as _0x246361,IconUploadcareLink as _0x4049e7,IconOneDrive as _0x54e870}from'ckeditor5/src/icons.js';import{ButtonView as _0x36b5b3,MenuBarMenuListItemButtonView as _0x398980}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x216d60}from'./uploadcareconfig.js';import{getTranslation as _0x1e8c74}from'./utils/common-translations.js';function _0x2f6d(_0x26745b,_0x18fa3c){const _0x2e3d5f=_0x2e3d();return _0x2f6d=function(_0x2f6d46,_0x413f95){_0x2f6d46=_0x2f6d46-0x100;let _0x5d3502=_0x2e3d5f[_0x2f6d46];return _0x5d3502;},_0x2f6d(_0x26745b,_0x18fa3c);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x2e3d(){const _0x4729ad=['pluginName','6724gMZoYm','_getIntegrationKey','uploadcareLicenseKeyEvaluationLimit','Uploadcare','locale','init','licenseKey','_showLicenseError','UploadcareUI','Local','entries','ImageInsertUI','223663uzigyh','isImageSelected','get','execute','expired','_createToolbarButton','84pLsEtc','3266570yAgemj','upload','51GxyHnI','_normalizeConfigSourceList','_createMenuBarButtons','URL','reduce','usageLimit','assetManager','tooltip','_createButton','uploadcare','icon','56RAnHRo','text','Dropbox','evaluationLimit','uploadcareLicenseKeyValid','uploadcareLicenseKeyDomainLimit','isOfficialPlugin','domainLimit','_licenseKeyCheckInterval','forEach','GPhotos','featureNotAllowed','102164ZyyLUY','9nzlcPN','isEnabled','plugins','invalid','config','registerIntegration','commands','map','Facebook','bind','_createDropdownButtons','Insert','type','24575484VrDDvU','shortText','uploadcareLicenseKeyUsageLimit','Replace','OneDrive','uploadcare.uploader.sourceList','174992yIAprz','editor','label','isPremiumPlugin','has','uploadcareLicenseKeyInvalid','112UvJqaT','url','145185yfrDHU','withText','push','uploadcareLicenseKeyNotAllowed','uploadcareLicenseKeyExpired','destroy','afterInit','GDrive'];_0x2e3d=function(){return _0x4729ad;};return _0x2e3d();}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x49c12c{[_0x351edc(0x115)];[_0x351edc(0x137)];static get[_0x351edc(0x10e)](){const _0x206f61=_0x351edc;return _0x206f61(0x117);}static get[_0x351edc(0x135)](){return!0x0;}static get[_0x351edc(0x101)](){return!0x0;}[_0x351edc(0x114)](){const _0x5e8e64=_0x351edc;this[_0x5e8e64(0x115)]=this[_0x5e8e64(0x150)][_0x5e8e64(0x140)][_0x5e8e64(0x11d)](_0x5e8e64(0x115));const _0x4bf9a5=this[_0x5e8e64(0x150)];this[_0x5e8e64(0x137)]=setInterval(()=>{const _0x5b2c8b=_0x5e8e64;let _0x32c122;for(const _0x565e81 in _0x4bf9a5){const _0x5a1cbc=_0x565e81,_0x1e9578=_0x4bf9a5[_0x5a1cbc];if(_0x5b2c8b(0x133)==_0x1e9578||_0x5b2c8b(0x103)==_0x1e9578||_0x5b2c8b(0x10a)==_0x1e9578||_0x5b2c8b(0x134)==_0x1e9578||_0x5b2c8b(0x109)==_0x1e9578||_0x5b2c8b(0x111)==_0x1e9578||_0x5b2c8b(0x14b)==_0x1e9578){delete _0x4bf9a5[_0x5a1cbc],_0x32c122=_0x1e9578,clearInterval(this[_0x5b2c8b(0x137)]),this[_0x5b2c8b(0x137)]=void 0x0;break;}}_0x5b2c8b(0x103)==_0x32c122&&_0x4bf9a5[_0x5b2c8b(0x116)](_0x5b2c8b(0x13f)),_0x5b2c8b(0x10a)==_0x32c122&&_0x4bf9a5[_0x5b2c8b(0x116)](_0x5b2c8b(0x11f)),_0x5b2c8b(0x134)==_0x32c122&&_0x4bf9a5[_0x5b2c8b(0x116)](_0x5b2c8b(0x136)),_0x5b2c8b(0x109)==_0x32c122&&_0x4bf9a5[_0x5b2c8b(0x116)](_0x5b2c8b(0x13a),_0x5b2c8b(0x112)),_0x5b2c8b(0x111)==_0x32c122&&_0x4bf9a5[_0x5b2c8b(0x116)](_0x5b2c8b(0x132)),_0x5b2c8b(0x14b)==_0x32c122&&_0x4bf9a5[_0x5b2c8b(0x116)](_0x5b2c8b(0x129));},0x3e8);}[_0x351edc(0x10c)](){const _0x4d0553=_0x351edc,{editor:_0x3ffea1}=this,_0x1ba1df=_0x3ffea1[_0x4d0553(0x142)][_0x4d0553(0x11d)](_0x4d0553(0x12d));if(!_0x1ba1df)return;const _0x237eb2=this[_0x4d0553(0x125)](_0x3ffea1[_0x4d0553(0x140)][_0x4d0553(0x11d)](_0x4d0553(0x14e)))[_0x4d0553(0x128)]((_0x96f3fc,_0x4566d3)=>{const _0xd0421e=_0x4d0553,_0x52757f=this[_0xd0421e(0x110)](_0x4566d3[_0xd0421e(0x148)]);return _0x96f3fc[_0x52757f]||(_0x96f3fc[_0x52757f]=[]),_0x96f3fc[_0x52757f][_0xd0421e(0x108)](_0x4566d3),_0x96f3fc;},{});_0x3ffea1[_0x4d0553(0x13e)][_0x4d0553(0x102)](_0x4d0553(0x11a))&&_0x3ffea1[_0x4d0553(0x142)][_0x4d0553(0x11d)](_0x4d0553(0x12d))&&Object[_0x4d0553(0x119)](_0x237eb2)[_0x4d0553(0x138)](([_0x53ff5b,_0x5159c2])=>{const _0x5c52dd=_0x4d0553;_0x3ffea1[_0x5c52dd(0x13e)][_0x5c52dd(0x11d)](_0x5c52dd(0x11a))[_0x5c52dd(0x141)]({'name':_0x53ff5b,'observable':()=>_0x1ba1df,'buttonViewCreator':()=>this[_0x5c52dd(0x120)](_0x5159c2),'formViewCreator':()=>this[_0x5c52dd(0x146)](_0x5159c2),'menuBarButtonViewCreator':()=>this[_0x5c52dd(0x126)](_0x5159c2),'override':_0x5c52dd(0x12a)!==_0x53ff5b});});}[_0x351edc(0x10b)](){const _0x3d17d3=_0x351edc;super[_0x3d17d3(0x10b)](),this[_0x3d17d3(0x137)]&&clearInterval(this[_0x3d17d3(0x137)]);}[_0x351edc(0x125)](_0xb1415b){const _0x3ad80a=_0x351edc,{locale:_0x3465f1}=this[_0x3ad80a(0x150)];return _0xb1415b[_0x3ad80a(0x143)](_0xe22deb=>{const _0x99f90b=_0x3ad80a,_0x5de5d2=_0x1e8c74(_0x3465f1,_0xe22deb,_0x99f90b(0x147));switch(_0xe22deb){case _0x216d60[_0x99f90b(0x118)]:return{'icon':_0x246361,'type':_0x216d60[_0x99f90b(0x118)],..._0x5de5d2};case _0x216d60[_0x99f90b(0x127)]:return{'icon':_0x4049e7,'type':_0x216d60[_0x99f90b(0x127)],..._0x5de5d2};case _0x216d60[_0x99f90b(0x131)]:return{'icon':_0x1e986b,'type':_0x216d60[_0x99f90b(0x131)],..._0x5de5d2};case _0x216d60[_0x99f90b(0x144)]:return{'icon':_0x5b4925,'type':_0x216d60[_0x99f90b(0x144)],..._0x5de5d2};case _0x216d60[_0x99f90b(0x10d)]:return{'icon':_0x2e8143,'type':_0x216d60[_0x99f90b(0x10d)],..._0x5de5d2};case _0x216d60[_0x99f90b(0x139)]:return{'icon':_0x306337,'type':_0x216d60[_0x99f90b(0x139)],..._0x5de5d2};case _0x216d60[_0x99f90b(0x14d)]:return{'icon':_0x54e870,'type':_0x216d60[_0x99f90b(0x14d)],..._0x5de5d2};}});}[_0x351edc(0x110)](_0x58cbb1){const _0x2377fe=_0x351edc;switch(_0x58cbb1){case _0x216d60[_0x2377fe(0x118)]:return _0x2377fe(0x123);case _0x216d60[_0x2377fe(0x127)]:return _0x2377fe(0x105);default:return _0x2377fe(0x12a);}}[_0x351edc(0x12c)](_0x451ff7,_0x3468e4){const _0x19d710=_0x351edc,_0x13ecfe=this[_0x19d710(0x150)],_0xfddf2a=new _0x451ff7(_0x13ecfe[_0x19d710(0x113)]),_0x5bc958=_0x13ecfe[_0x19d710(0x142)][_0x19d710(0x11d)](_0x19d710(0x12d));return _0xfddf2a[_0x19d710(0x145)](_0x19d710(0x13d))['to'](_0x5bc958),_0xfddf2a['on'](_0x19d710(0x11e),()=>{const _0x1407e4=_0x19d710;_0x5bc958[_0x1407e4(0x11e)](_0x3468e4);}),_0xfddf2a;}[_0x351edc(0x120)](_0x5ab642){const _0x31cb95=_0x351edc,{locale:_0x43b911}=this[_0x31cb95(0x150)],_0x107322=this[_0x31cb95(0x150)][_0x31cb95(0x13e)][_0x31cb95(0x11d)](_0x31cb95(0x11a)),_0x3f49c0=_0x5ab642[0x0],_0x268f32=this[_0x31cb95(0x12c)](_0x36b5b3,_0x3f49c0[_0x31cb95(0x148)]);return _0x268f32[_0x31cb95(0x12e)]=_0x3f49c0[_0x31cb95(0x12e)],_0x268f32[_0x31cb95(0x145)](_0x31cb95(0x100))['to'](_0x107322,_0x31cb95(0x11c),_0x5f3ac7=>_0x1e8c74(_0x43b911,_0x3f49c0[_0x31cb95(0x148)],_0x5f3ac7?_0x31cb95(0x14c):_0x31cb95(0x147))[_0x31cb95(0x130)]),_0x268f32[_0x31cb95(0x12b)]=!0x0,_0x268f32;}[_0x351edc(0x146)](_0x1b138a){const _0x3a6afb=_0x351edc,{locale:_0x5748f7}=this[_0x3a6afb(0x150)],_0x274094=this[_0x3a6afb(0x150)][_0x3a6afb(0x13e)][_0x3a6afb(0x11d)](_0x3a6afb(0x11a));return _0x1b138a[_0x3a6afb(0x143)](_0x56526e=>{const _0x2c5cab=_0x3a6afb,_0x489c56=this[_0x2c5cab(0x12c)](_0x36b5b3,_0x56526e[_0x2c5cab(0x148)]);return _0x489c56[_0x2c5cab(0x107)]=!0x0,_0x489c56[_0x2c5cab(0x12e)]=_0x56526e[_0x2c5cab(0x12e)],_0x489c56[_0x2c5cab(0x145)](_0x2c5cab(0x100))['to'](_0x274094,_0x2c5cab(0x11c),_0xf15d03=>_0x1e8c74(_0x5748f7,_0x56526e[_0x2c5cab(0x148)],_0xf15d03?_0x2c5cab(0x14c):_0x2c5cab(0x147))[_0x2c5cab(0x130)]),_0x489c56;});}[_0x351edc(0x126)](_0x26c05e){const _0x23062d=_0x351edc;return _0x26c05e[_0x23062d(0x143)](_0x19dde5=>{const _0x1882ef=_0x23062d,_0x2cec4e=this[_0x1882ef(0x12c)](_0x398980,_0x19dde5[_0x1882ef(0x148)]);return _0x2cec4e[_0x1882ef(0x12e)]=_0x19dde5[_0x1882ef(0x12e)],_0x2cec4e[_0x1882ef(0x100)]=_0x19dde5[_0x1882ef(0x14a)],_0x2cec4e;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x36d103}from'ckeditor5/src/core.js';import{FileRepository as _0x1ec9e7}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x4acc81}from'./uploadcareediting.js';import{UploadUtils as _0x1dce1c}from'./utils/uploadutils.js';import{getImageUrls as _0x1e4451}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x36d103{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1ec9e7,_0x4acc81];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x31b768=this['editor'];if(!!!_0x31b768['config']['get']('uploadcare'))return;_0x31b768['plugins']['get'](_0x1ec9e7)['createUploadAdapter']=_0x32a4f7=>new k(_0x32a4f7,_0x31b768),_0x31b768['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3f47a1,{imageElement:_0x22fdf0,data:_0x3c1dfd})=>{_0x31b768['model']['change'](_0x2bfb07=>{_0x2bfb07['setAttribute']('uploadcareImageId',_0x3c1dfd['uploadcareImageId'],_0x22fdf0);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xa1516f,_0x191714){this['loader']=_0xa1516f,this['editor']=_0x191714,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x49665f=await this['loader']['file'];return _0x1dce1c['upload']({'file':_0x49665f,'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':_0x419351=>{_0x419351&&_0x419351['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x419351['value']);}})['then'](async _0x246aeb=>{const {imageFallbackUrl:_0x199841,imageSources:_0x27f797}=_0x1e4451(_0x246aeb['cdnUrl'],_0x246aeb['imageInfo']['width']);return{'uploadcareImageId':_0x246aeb['uuid'],'default':_0x199841,'sources':_0x27f797};})['catch'](()=>{const _0x1f4a66=t('Cannot\x20upload\x20file:')+('\x20'+_0x49665f['name']+'.');return Promise['reject'](_0x1f4a66);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x4950ea}from'../uploadcareconfig.js';export function getTranslation(_0x433279,_0xca4f92,_0x12f28a){const t=_0x433279['t'],_0x1bb88f=_0x433279['t'];switch(_0xca4f92){case _0x4950ea['Local']:return{'text':_0x1bb88f('Insert'===_0x12f28a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1bb88f('From\x20computer')};case _0x4950ea['URL']:return{'text':'Insert'===_0x12f28a?_0x1bb88f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1bb88f('Via\x20URL')};case _0x4950ea['Dropbox']:return{'text':t('Insert'===_0x12f28a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x4950ea['Facebook']:return{'text':t('Insert'===_0x12f28a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x4950ea['GDrive']:return{'text':t('Insert'===_0x12f28a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x4950ea['GPhotos']:return{'text':t('Insert'===_0x12f28a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x4950ea['OneDrive']:return{'text':t('Insert'===_0x12f28a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xca4f92;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x16a332=_0x1a75;(function(_0x53aaa9,_0x5b21da){var _0x4b6517=_0x1a75,_0x24f059=_0x53aaa9();while(!![]){try{var _0x1c6684=parseInt(_0x4b6517(0x6f))/0x1+-parseInt(_0x4b6517(0x75))/0x2+-parseInt(_0x4b6517(0x7a))/0x3+parseInt(_0x4b6517(0x79))/0x4+-parseInt(_0x4b6517(0x76))/0x5+parseInt(_0x4b6517(0x6d))/0x6*(parseInt(_0x4b6517(0x69))/0x7)+parseInt(_0x4b6517(0x6e))/0x8*(parseInt(_0x4b6517(0x6a))/0x9);if(_0x1c6684===_0x5b21da)break;else _0x24f059['push'](_0x24f059['shift']());}catch(_0xc759e4){_0x24f059['push'](_0x24f059['shift']());}}}(_0x2591,0x940db));import{FocusTracker as _0x162308}from'ckeditor5/src/utils.js';function _0x2591(){var _0x270d73=['72ZXbnqS','972854PcEALZ','bindTemplate','true','createCollection','forwardCycle','focusTracker','1036656eRulmS','5927350DpaHKf','fire','getFocusableElement','4650952KmdIxP','2261496jCsPnm','4561186ADrWZM','276867heSNuO','focusCycler','div','6UIhcUp'];_0x2591=function(){return _0x270d73;};return _0x2591();}import{View as _0x14a953,FocusCycler as _0x53dd40}from'ckeditor5/src/ui.js';function _0x1a75(_0x2a2edc,_0x1e359d){var _0x25913a=_0x2591();return _0x1a75=function(_0x1a75a9,_0x28287f){_0x1a75a9=_0x1a75a9-0x69;var _0x52d5e7=_0x25913a[_0x1a75a9];return _0x52d5e7;},_0x1a75(_0x2a2edc,_0x1e359d);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x14a953{[_0x16a332(0x74)];[_0x16a332(0x6b)];constructor(_0xb17805){var _0x57d4b7=_0x16a332;super(_0xb17805),this[_0x57d4b7(0x74)]=new _0x162308(),this[_0x57d4b7(0x6b)]=new _0x53dd40({'focusables':this[_0x57d4b7(0x72)](),'focusTracker':this[_0x57d4b7(0x74)]});}[_0x16a332(0x78)](){var _0x59d47a=_0x16a332;return{'tag':_0x59d47a(0x6c),'attributes':{'aria-hidden':_0x59d47a(0x71),'tabindex':'0'},'on':{'focus':this[_0x59d47a(0x70)]['to'](()=>{var _0x1fe2b1=_0x59d47a;this[_0x1fe2b1(0x6b)][_0x1fe2b1(0x77)](_0x1fe2b1(0x73));})}};}}
|