@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251224.0 → 0.0.0-nightly-20251225.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 _0x1b8d5a=_0x13ee;(function(_0x4ade49,_0x1dfe34){const _0x351da1=_0x13ee,_0x24f201=_0x4ade49();while(!![]){try{const _0x5aa1c4=parseInt(_0x351da1(0x154))/0x1*(-parseInt(_0x351da1(0x166))/0x2)+-parseInt(_0x351da1(0x161))/0x3*(-parseInt(_0x351da1(0x15c))/0x4)+-parseInt(_0x351da1(0x17f))/0x5*(-parseInt(_0x351da1(0x195))/0x6)+parseInt(_0x351da1(0x14d))/0x7+parseInt(_0x351da1(0x150))/0x8*(-parseInt(_0x351da1(0x155))/0x9)+-parseInt(_0x351da1(0x151))/0xa*(-parseInt(_0x351da1(0x147))/0xb)+parseInt(_0x351da1(0x16e))/0xc*(-parseInt(_0x351da1(0x153))/0xd);if(_0x5aa1c4===_0x1dfe34)break;else _0x24f201['push'](_0x24f201['shift']());}catch(_0x19d2cb){_0x24f201['push'](_0x24f201['shift']());}}}(_0x352d,0xa20a4));import{Plugin as _0x13107b}from'ckeditor5/src/core.js';import{Dialog as _0x20fa34}from'ckeditor5/src/ui.js';function _0x352d(){const _0x287fbf=['get','attributeToAttribute','4782RKqgMW','execute','cleanupImage','_configElement','render','uc-upload-ctx-provider','remove','href','_initConfig','fromCharCode','33JVFWbi','destroy','replaceImageSource','\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','uploadcare','ctxElement','5883164qwpUcb','listenTo','map','544vchjkG','2953850FnxYXS','ucContextId','11596tqxOwb','58435GdRoZp','27774qasftu','join','config','_initImageProcessingIndicator','imageInline','_initCtx','editing','10468tMvCXT','_initSchema','selection','once','data-uc-image-id','1011GBzQZT','isPremiumPlugin','afterInit','pluginName','insertImage','36qGMevN','PictureEditing','removeAttribute','requires','input[uploadcare-file-input]','true','getAttribute','_ctxElement','15216iRoMqD','querySelector','model','appendChild','uploadcareImageId','conversion','configElement','elementToAttribute','extend','document','uploadcare.uploader','isRegistered','uploadcare.pubkey','view','for','UploadcareEditing','editor','2810faXGlQ','iconHrefResolver','uc-config','locale','_initConversion','downcast','body','isOfficialPlugin','imageBlock','upcast','schema','uploadcareImageReplace','#uc-icon-arrow-down','uploader-','init','getSelectedElement','commands','add','closeMax','contentLanguage'];_0x352d=function(){return _0x287fbf;};return _0x352d();}import{createElement as _0x16e442,global as _0x460fc6,uid as _0xd4c9cb}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4f68d0}from'./uploadcarecommand.js';function _0x13ee(_0x15ad8d,_0x30534c){const _0x352df8=_0x352d();return _0x13ee=function(_0x13ee0c,_0x1e44af){_0x13ee0c=_0x13ee0c-0x146;let _0x50016d=_0x352df8[_0x13ee0c];return _0x50016d;},_0x13ee(_0x15ad8d,_0x30534c);}import{UploadcareUploadAdapter as _0x3be658}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1ba488}from'./utils/editingutils.js';export class UploadcareEditing extends _0x13107b{[_0x1b8d5a(0x198)]=null;[_0x1b8d5a(0x16d)]=null;static get[_0x1b8d5a(0x164)](){const _0x25825a=_0x1b8d5a;return _0x25825a(0x17d);}static get[_0x1b8d5a(0x169)](){const _0x5091a3=_0x1b8d5a;return[_0x5091a3(0x167),_0x3be658,_0x20fa34];}static get[_0x1b8d5a(0x186)](){return!0x0;}static get[_0x1b8d5a(0x162)](){return!0x0;}[_0x1b8d5a(0x152)];get[_0x1b8d5a(0x174)](){const _0x129d69=_0x1b8d5a;return this[_0x129d69(0x198)];}get[_0x1b8d5a(0x14c)](){const _0x1daced=_0x1b8d5a;return this[_0x1daced(0x16d)];}constructor(_0x1a2e08){const _0x1f1440=_0x1b8d5a;super(_0x1a2e08),this[_0x1f1440(0x152)]=_0xd4c9cb();}[_0x1b8d5a(0x18d)](){const _0x2f5a3b=_0x1b8d5a,_0x292efc=this[_0x2f5a3b(0x17e)];_0x292efc[_0x2f5a3b(0x18f)][_0x2f5a3b(0x190)](_0x2f5a3b(0x14b),new _0x4f68d0(_0x292efc));}[_0x1b8d5a(0x163)](){const _0x157729=_0x1b8d5a;this[_0x157729(0x15d)](),this[_0x157729(0x183)](),this[_0x157729(0x19d)](),this[_0x157729(0x15a)](),this[_0x157729(0x158)](),this[_0x157729(0x14e)](this[_0x157729(0x17e)],_0x157729(0x148),()=>{const _0x3ba62d=_0x157729;this[_0x3ba62d(0x198)]&&(this[_0x3ba62d(0x198)][_0x3ba62d(0x19b)](),this[_0x3ba62d(0x198)]=null),this[_0x3ba62d(0x16d)]&&(this[_0x3ba62d(0x16d)][_0x3ba62d(0x19b)](),this[_0x3ba62d(0x16d)]=null);const _0x1adc4b=_0x460fc6[_0x3ba62d(0x177)][_0x3ba62d(0x16f)](_0x3ba62d(0x16a));_0x1adc4b&&_0x1adc4b[_0x3ba62d(0x19b)]();}),async function(_0x3c0221){const _0xef3947=_0x52d20b([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]),_0xa8a893=0x535f8c3a,_0x2d5ce1=0x5358f0ea^_0xa8a893,_0x390064=window[_0x52d20b([0x44,0x61,0x74,0x65])][_0x52d20b([0x6e,0x6f,0x77])](),_0x13684c=_0x3c0221[_0x52d20b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x52cfd3=new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5891b1=>{_0x13684c[_0x52d20b([0x6f,0x6e,0x63,0x65])](_0x52d20b([0x72,0x65,0x61,0x64,0x79]),_0x5891b1);}),_0x47c9d2={[_0x52d20b([0x6b,0x74,0x79])]:_0x52d20b([0x45,0x43]),[_0x52d20b([0x75,0x73,0x65])]:_0x52d20b([0x73,0x69,0x67]),[_0x52d20b([0x63,0x72,0x76])]:_0x52d20b([0x50,0x2d,0x32,0x35,0x36]),[_0x52d20b([0x78])]:_0x52d20b([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]),[_0x52d20b([0x79])]:_0x52d20b([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]),[_0x52d20b([0x61,0x6c,0x67])]:_0x52d20b([0x45,0x53,0x32,0x35,0x36])},_0x103375=_0x13684c[_0x52d20b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52d20b([0x67,0x65,0x74])](_0x52d20b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xbb5479(){let _0x54cf50,_0x229993=null,_0x5a0955=null;try{if(_0x103375==_0x52d20b([0x47,0x50,0x4c]))return _0x52d20b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54cf50=_0x5d9c3b(),!_0x54cf50)return _0x52d20b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54cf50[_0x52d20b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a0955=_0x5dec66(_0x54cf50[_0x52d20b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54cf50[_0x52d20b([0x6a,0x74,0x69])])),await _0x4cde6d()?_0x56f6c1()?_0x3f9b6c()?_0x52d20b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5f08db()?(_0x54cf50[_0x52d20b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52d20b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x229993=_0x1ff61f(_0x52d20b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x54cf50[_0x52d20b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52d20b([0x74,0x72,0x69,0x61,0x6c])&&(_0x229993=_0x1ff61f(_0x52d20b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59a1c3()):_0x52d20b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52d20b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52d20b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52d20b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f9b6c(){const _0xc2a8c=[_0x52d20b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52d20b([0x74,0x72,0x69,0x61,0x6c])][_0x52d20b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54cf50[_0x52d20b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x390064/0x3e8:0xe10*_0x2d5ce1;return _0x54cf50[_0x52d20b([0x65,0x78,0x70])]<_0xc2a8c;}function _0x56f6c1(){const _0x23caab=_0x54cf50[_0x52d20b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x23caab&&(!!_0x23caab[_0x52d20b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d20b([0x2a]))||!!_0x23caab[_0x52d20b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d20b([0x55,0x50,0x4c,0x43])));}function _0x5f08db(){const _0x1f91fb=_0x13ee,_0x1e6b83=_0x54cf50[_0x52d20b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e6b83||0x0==_0x1e6b83[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2bf23f}=new URL(window[_0x52d20b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1f91fb(0x19c)]);if(_0x1e6b83[_0x52d20b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bf23f))return!0x0;const _0x1d7f0d=_0x2bf23f[_0x52d20b([0x73,0x70,0x6c,0x69,0x74])](_0x52d20b([0x2e]));return _0x1e6b83[_0x52d20b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57792d=>_0x57792d[_0x52d20b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d20b([0x2a])))[_0x52d20b([0x6d,0x61,0x70])](_0x4e037d=>_0x4e037d[_0x52d20b([0x73,0x70,0x6c,0x69,0x74])](_0x52d20b([0x2e])))[_0x52d20b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x481abb=>_0x481abb[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d7f0d[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52d20b([0x6d,0x61,0x70])](_0xf8c2ba=>Array(_0x1d7f0d[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf8c2ba[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52d20b([0x66,0x69,0x6c,0x6c])](_0xf8c2ba[0x0]===_0x52d20b([0x2a])?_0x52d20b([0x2a]):'')[_0x52d20b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf8c2ba))[_0x52d20b([0x73,0x6f,0x6d,0x65])](_0x460e53=>_0x1d7f0d[_0x52d20b([0x65,0x76,0x65,0x72,0x79])]((_0x30bc3e,_0x28e89f)=>_0x460e53[_0x28e89f]===_0x30bc3e||_0x460e53[_0x28e89f]===_0x52d20b([0x2a])));}function _0x59a1c3(){return _0x229993&&_0x5a0955?new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c2013,_0xd5e82a)=>{_0x229993[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x1c2013,_0xd5e82a),_0x5a0955[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x1d371f=>{_0x1d371f!=_0x52d20b([0x56,0x61,0x6c,0x69,0x64])&&_0x1c2013(_0x1d371f);},_0xd5e82a);}):_0x229993||_0x5a0955||_0x52d20b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5dec66(_0x57f676,_0x4d8297){return new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x336abf=>{if(_0x88a530())return _0x336abf(_0x52d20b([0x56,0x61,0x6c,0x69,0x64]));_0x408e9f(),_0x13684c[_0x52d20b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52d20b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x190619=!0x1;const _0x31eec1=_0xd4c9cb();function _0x80a109(_0x9ab06f){return!!_0x9ab06f&&(typeof _0x9ab06f===_0x52d20b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9ab06f===_0x52d20b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9ab06f[_0x52d20b([0x74,0x68,0x65,0x6e])]===_0x52d20b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9ab06f[_0x52d20b([0x63,0x61,0x74,0x63,0x68])]===_0x52d20b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7dda9e(_0x3c73c2){_0x49b226(_0x3c73c2)[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x5a9084=>{if(!_0x5a9084||_0x5a9084[_0x52d20b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52d20b([0x6f,0x6b]))return _0x52d20b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x542abb(_0x1e4387(_0x31eec1+_0x4d8297))!=_0x5a9084[_0x52d20b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52d20b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52d20b([0x56,0x61,0x6c,0x69,0x64]);})[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x491418=>(_0x1acc1c(),_0x491418),()=>{const _0x235f96=_0x1ba858();return null==_0x235f96?(_0x1acc1c(),_0x52d20b([0x56,0x61,0x6c,0x69,0x64])):_0x52d20b(_0x390064-_0x235f96>(0x7753083a^_0xa8a893)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x336abf)[_0x52d20b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x336abf(_0x52d20b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x314d1b=0x536962ba^_0xa8a893;function _0x1acc1c(){const _0x1436d4=_0x52d20b([0x6c,0x6c,0x63,0x74,0x2d])+_0x542abb(_0x1e4387(_0x57f676)),_0x42b6d7=_0x1b4829(_0x542abb(window[_0x52d20b([0x4d,0x61,0x74,0x68])][_0x52d20b([0x63,0x65,0x69,0x6c])](_0x390064/_0x314d1b)));window[_0x52d20b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52d20b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1436d4,_0x42b6d7);}function _0x1ba858(){const _0x36b2d1=_0x52d20b([0x6c,0x6c,0x63,0x74,0x2d])+_0x542abb(_0x1e4387(_0x57f676)),_0x181002=window[_0x52d20b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52d20b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36b2d1);return _0x181002?window[_0x52d20b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b4829(_0x181002),0x10)*_0x314d1b:null;}function _0x49b226(_0x19e72d){return new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e7711,_0x3b2a6d)=>{_0x19e72d[_0x52d20b([0x74,0x68,0x65,0x6e])](_0x4e7711,_0x3b2a6d),window[_0x52d20b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b2a6d,0x535e58fa^_0xa8a893);});}}_0x13684c[_0x52d20b([0x6f,0x6e])](_0x52d20b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44874f,_0x14e84a)=>{if(_0x14e84a[0x0]!=_0x57f676)return _0x336abf(_0x52d20b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x14e84a[0x1]={..._0x14e84a[0x1],[_0x52d20b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31eec1};},{[_0x52d20b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52d20b([0x68,0x69,0x67,0x68])}),_0x13684c[_0x52d20b([0x6f,0x6e])](_0x52d20b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3eaa89=>{_0x80a109(_0x3eaa89[_0x52d20b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x190619=!0x0,_0x7dda9e(_0x3eaa89[_0x52d20b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52d20b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52d20b([0x6c,0x6f,0x77])}),_0x52cfd3[_0x52d20b([0x74,0x68,0x65,0x6e])](()=>{_0x190619||_0x336abf(_0x52d20b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x88a530(){return _0x13684c[_0x52d20b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52d20b([0x76,0x69,0x65,0x77])][_0x52d20b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52d20b([0x61,0x75,0x74,0x6f]);}function _0x408e9f(){_0x13684c[_0x52d20b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52d20b([0x76,0x69,0x65,0x77])][_0x52d20b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52d20b([0x61,0x75,0x74,0x6f]);}}function _0x1ff61f(_0x35fb53){const _0x5654b3=[new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d30a3=>setTimeout(_0x1d30a3,0x5356b2f6^_0xa8a893)),_0x52cfd3[_0x52d20b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bb63b=>{let _0xa665ac=0x0;_0x13684c[_0x52d20b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d20b([0x6f,0x6e])](_0x52d20b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x13bf07,_0x58a0c5)=>{_0x58a0c5[0x0][_0x52d20b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa665ac++,_0xa665ac==(0x535f89d2^_0xa8a893)&&(_0x3bb63b(),_0x13bf07[_0x52d20b([0x6f,0x66,0x66])]());});}))];return window[_0x52d20b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52d20b([0x72,0x61,0x63,0x65])](_0x5654b3)[_0x52d20b([0x74,0x68,0x65,0x6e])](()=>_0x35fb53);}async function _0x3c2654(){await _0x52cfd3,_0x13684c[_0x52d20b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d20b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x215215,_0x13684c[_0x52d20b([0x6d,0x6f,0x64,0x65,0x6c])][_0x52d20b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x215215,_0x13684c[_0x52d20b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52d20b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2571d0(_0x54bf27){const _0x5d2e9b=_0x289862();_0x13684c[_0x5d2e9b]=_0x52d20b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54bf27,_0x54bf27!=_0x52d20b([0x56,0x61,0x6c,0x69,0x64])&&_0x3c2654();}function _0x289862(){const _0x4d23fd=window[_0x52d20b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52d20b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52d20b([0x6e,0x6f,0x77])]())[_0x52d20b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52d20b([0x2e]),'');let _0x473bfc=_0x52d20b([0x68]);for(let _0x2791da=0x0;_0x2791da<_0x4d23fd[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2791da+=0x2){let _0x591bc0=window[_0x52d20b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d23fd[_0x52d20b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2791da,_0x2791da+0x2));_0x591bc0>=_0xef3947[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x591bc0-=_0xef3947[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x473bfc+=_0xef3947[_0x591bc0];}return _0x473bfc;}function _0x5d9c3b(){const _0xeed8c4=_0x103375[_0x52d20b([0x73,0x70,0x6c,0x69,0x74])](_0x52d20b([0x2e]));if(0x3!=_0xeed8c4[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a8319(_0xeed8c4[0x1]);function _0x1a8319(_0x549846){const _0x5a857b=_0x2743f9(_0x549846);return _0x5a857b&&_0x30f910()?_0x5a857b:null;function _0x30f910(){const _0x5cf7d7=_0x5a857b[_0x52d20b([0x6a,0x74,0x69])],_0x52ff4b=window[_0x52d20b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cf7d7[_0x52d20b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cf7d7[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f5a22={..._0x5a857b,[_0x52d20b([0x6a,0x74,0x69])]:_0x5cf7d7[_0x52d20b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cf7d7[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f5a22[_0x52d20b([0x76,0x63])],_0x1e4387(_0x5f5a22)==_0x52ff4b;}}}async function _0x4cde6d(){let _0x516d43=!0x0;try{const _0x1d4147=_0x103375[_0x52d20b([0x73,0x70,0x6c,0x69,0x74])](_0x52d20b([0x2e])),[_0x35d5e3,_0x4b9408,_0x5e2e9b]=_0x1d4147;return _0x297827(_0x35d5e3),await _0x2d9b6b(_0x35d5e3,_0x4b9408,_0x5e2e9b),_0x516d43;}catch{return!0x1;}function _0x297827(_0x2db49b){const _0x5f4ccc=_0x2743f9(_0x2db49b);_0x5f4ccc&&_0x5f4ccc[_0x52d20b([0x61,0x6c,0x67])]==_0x52d20b([0x45,0x53,0x32,0x35,0x36])||(_0x516d43=!0x1);}async function _0x2d9b6b(_0x4ce81c,_0x37bc3b,_0x53a31a){const _0x229c52=window[_0x52d20b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52d20b([0x66,0x72,0x6f,0x6d])](_0x4cd759(_0x53a31a),_0x31f89c=>_0x31f89c[_0x52d20b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d513c=new window[(_0x52d20b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52d20b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ce81c+_0x52d20b([0x2e])+_0x37bc3b),_0x810079=window[_0x52d20b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52d20b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x810079)return;const _0x2cdab9=await _0x810079[_0x52d20b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52d20b([0x6a,0x77,0x6b]),_0x47c9d2,{[_0x52d20b([0x6e,0x61,0x6d,0x65])]:_0x52d20b([0x45,0x43,0x44,0x53,0x41]),[_0x52d20b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52d20b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52d20b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x810079[_0x52d20b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52d20b([0x6e,0x61,0x6d,0x65])]:_0x52d20b([0x45,0x43,0x44,0x53,0x41]),[_0x52d20b([0x68,0x61,0x73,0x68])]:{[_0x52d20b([0x6e,0x61,0x6d,0x65])]:_0x52d20b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cdab9,_0x229c52,_0x5d513c)||(_0x516d43=!0x1);}}function _0x2743f9(_0x5c8c15){return _0x5c8c15[_0x52d20b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52d20b([0x65,0x79]))?JSON[_0x52d20b([0x70,0x61,0x72,0x73,0x65])](_0x4cd759(_0x5c8c15)):null;}function _0x4cd759(_0x42d941){return window[_0x52d20b([0x61,0x74,0x6f,0x62])](_0x42d941[_0x52d20b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52d20b([0x2b]))[_0x52d20b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52d20b([0x2f])));}function _0x1e4387(_0x1a7181){let _0x29dd85=0x1505;function _0x2e1766(_0x17817e){for(let _0x265999=0x0;_0x265999<_0x17817e[_0x52d20b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x265999++){const _0x3c3118=_0x17817e[_0x52d20b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x265999);_0x29dd85=(_0x29dd85<<0x5)+_0x29dd85+_0x3c3118,_0x29dd85&=_0x29dd85;}}function _0xef3382(_0x5cea48){Array[_0x52d20b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5cea48)?_0x5cea48[_0x52d20b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xef3382):_0x5cea48&&typeof _0x5cea48==_0x52d20b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52d20b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5cea48)[_0x52d20b([0x73,0x6f,0x72,0x74])]()[_0x52d20b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x122e8d,_0x1b289e])=>{_0x2e1766(_0x122e8d),_0xef3382(_0x1b289e);}):_0x2e1766(window[_0x52d20b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5cea48));}return _0xef3382(_0x1a7181),_0x29dd85>>>0x0;}function _0x542abb(_0x44735c){return _0x44735c[_0x52d20b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52d20b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52d20b([0x30]));}function _0x1b4829(_0x25d16a){return _0x25d16a[_0x52d20b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52d20b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52d20b([0x6a,0x6f,0x69,0x6e])]('');}function _0x215215(){}function _0x52d20b(_0x44b89d){const _0x219256=_0x13ee;return _0x44b89d[_0x219256(0x14f)](_0x3e4668=>String[_0x219256(0x146)](_0x3e4668))[_0x219256(0x156)]('');}_0x2571d0(await _0xbb5479());}(this);}[_0x1b8d5a(0x15d)](){const _0x32a233=_0x1b8d5a,_0x23797c=this[_0x32a233(0x17e)][_0x32a233(0x170)][_0x32a233(0x189)];_0x23797c[_0x32a233(0x179)](_0x32a233(0x187))&&_0x23797c[_0x32a233(0x176)](_0x32a233(0x187),{'allowAttributes':[_0x32a233(0x172)]}),_0x23797c[_0x32a233(0x179)](_0x32a233(0x159))&&_0x23797c[_0x32a233(0x176)](_0x32a233(0x159),{'allowAttributes':[_0x32a233(0x172)]});}[_0x1b8d5a(0x183)](){const _0x1f06d5=_0x1b8d5a,_0x3f8bbd=this[_0x1f06d5(0x17e)];_0x3f8bbd[_0x1f06d5(0x173)][_0x1f06d5(0x17c)](_0x1f06d5(0x184))[_0x1f06d5(0x194)]({'model':_0x1f06d5(0x172),'view':_0x1f06d5(0x160)}),_0x3f8bbd[_0x1f06d5(0x173)][_0x1f06d5(0x17c)](_0x1f06d5(0x188))[_0x1f06d5(0x175)]({'model':{'key':_0x1f06d5(0x172),'value':_0x2aa37d=>_0x2aa37d[_0x1f06d5(0x16c)](_0x1f06d5(0x160))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3cb500=_0x3f8bbd[_0x1f06d5(0x18f)][_0x1f06d5(0x193)](_0x1f06d5(0x149));_0x3cb500&&this[_0x1f06d5(0x14e)](_0x3cb500,_0x1f06d5(0x197),(_0x172c89,[_0x1ebf5c,_0x498945])=>{const _0x2712eb=_0x1f06d5;_0x1ebf5c[_0x2712eb(0x168)](_0x2712eb(0x172),_0x498945);});}[_0x1b8d5a(0x19d)](){const _0x10b8d3=_0x1b8d5a,_0x1a064d=this[_0x10b8d3(0x17e)][_0x10b8d3(0x157)][_0x10b8d3(0x193)](_0x10b8d3(0x178))||{},_0x31a8b3=this[_0x10b8d3(0x17e)][_0x10b8d3(0x157)][_0x10b8d3(0x193)](_0x10b8d3(0x17a))||'';this[_0x10b8d3(0x198)]=_0x16e442(_0x460fc6[_0x10b8d3(0x177)],_0x10b8d3(0x181),{..._0x1a064d,'pubkey':_0x31a8b3,'ctx-name':_0x10b8d3(0x18c)+this[_0x10b8d3(0x152)],'sourceList':'','imgOnly':_0x10b8d3(0x16b),'removeCopyright':_0x10b8d3(0x16b),'localeName':this[_0x10b8d3(0x17e)][_0x10b8d3(0x182)][_0x10b8d3(0x192)],'externalSourcesEmbedCss':_0x10b8d3(0x14a)}),this[_0x10b8d3(0x198)][_0x10b8d3(0x180)]=_0x1f0e0f=>{const _0x54799e=_0x10b8d3;if(_0x54799e(0x191)==_0x1f0e0f)return _0x54799e(0x18b);},_0x460fc6[_0x10b8d3(0x177)][_0x10b8d3(0x185)][_0x10b8d3(0x171)](this[_0x10b8d3(0x198)]);}[_0x1b8d5a(0x15a)](){const _0x21f536=_0x1b8d5a;this[_0x21f536(0x16d)]=_0x16e442(_0x460fc6[_0x21f536(0x177)],_0x21f536(0x19a),{'ctx-name':_0x21f536(0x18c)+this[_0x21f536(0x152)]}),_0x460fc6[_0x21f536(0x177)][_0x21f536(0x185)][_0x21f536(0x171)](this[_0x21f536(0x16d)]);}[_0x1b8d5a(0x158)](){const _0x4d0365=_0x1b8d5a,_0x43f95d=this[_0x4d0365(0x17e)][_0x4d0365(0x18f)][_0x4d0365(0x193)](_0x4d0365(0x165));_0x43f95d&&this[_0x4d0365(0x14e)](_0x43f95d,_0x4d0365(0x196),()=>{const _0x42d69d=_0x4d0365,_0x322d3f=this[_0x42d69d(0x17e)][_0x42d69d(0x170)][_0x42d69d(0x177)][_0x42d69d(0x15e)][_0x42d69d(0x18e)]();_0x322d3f&&_0x322d3f[_0x42d69d(0x16c)](_0x42d69d(0x172))&&this[_0x42d69d(0x17e)][_0x42d69d(0x15b)][_0x42d69d(0x17b)][_0x42d69d(0x15f)](_0x42d69d(0x199),()=>{const _0x544e73=_0x42d69d;_0x1ba488(this[_0x544e73(0x17e)],_0x322d3f);});});const _0x5ddb43=this[_0x4d0365(0x17e)][_0x4d0365(0x18f)][_0x4d0365(0x193)](_0x4d0365(0x18a));_0x5ddb43&&this[_0x4d0365(0x14e)](_0x5ddb43,_0x4d0365(0x196),()=>{const _0x42862d=_0x4d0365,_0x43d5db=this[_0x42862d(0x17e)][_0x42862d(0x170)][_0x42862d(0x177)][_0x42862d(0x15e)][_0x42862d(0x18e)]();_0x43d5db&&_0x43d5db[_0x42862d(0x16c)](_0x42862d(0x172))&&this[_0x42862d(0x17e)][_0x42862d(0x15b)][_0x42862d(0x17b)][_0x42862d(0x15f)](_0x42862d(0x199),()=>{const _0x6f5d2f=_0x42862d;_0x1ba488(this[_0x6f5d2f(0x17e)],_0x43d5db);});});}}
|
|
23
|
+
const _0x167dca=_0x2997;(function(_0x4d76ba,_0x3be75d){const _0x3ff089=_0x2997,_0x587d75=_0x4d76ba();while(!![]){try{const _0x27e9bf=parseInt(_0x3ff089(0x203))/0x1+parseInt(_0x3ff089(0x1de))/0x2+parseInt(_0x3ff089(0x1ce))/0x3+-parseInt(_0x3ff089(0x1f5))/0x4+parseInt(_0x3ff089(0x213))/0x5*(parseInt(_0x3ff089(0x1f2))/0x6)+parseInt(_0x3ff089(0x1eb))/0x7*(parseInt(_0x3ff089(0x200))/0x8)+parseInt(_0x3ff089(0x1d9))/0x9*(-parseInt(_0x3ff089(0x1f3))/0xa);if(_0x27e9bf===_0x3be75d)break;else _0x587d75['push'](_0x587d75['shift']());}catch(_0x123c0e){_0x587d75['push'](_0x587d75['shift']());}}}(_0xa3f2,0x8831c));import{Plugin as _0x4505e1}from'ckeditor5/src/core.js';import{Dialog as _0x182444}from'ckeditor5/src/ui.js';import{createElement as _0x793ead,global as _0x23f10b,uid as _0x4d2469}from'ckeditor5/src/utils.js';function _0xa3f2(){const _0x563923=['true','UploadcareEditing','uc-upload-ctx-provider','uc-config','iconHrefResolver','downcast','contentLanguage','execute','render','6636177DFRGHB','getSelectedElement','imageBlock','_initSchema','locale','668680qXubDJ','pluginName','uploadcare','uploader-','querySelector','commands','_configElement','isRegistered','data-uc-image-id','elementToAttribute','editor','isOfficialPlugin','fromCharCode','488355MlzTSe','get','model','input[uploadcare-file-input]','add','removeAttribute','#uc-icon-arrow-down','6dMQmdm','20QTEbwR','attributeToAttribute','429220ftwOZD','getAttribute','_initConversion','editing','configElement','replaceImageSource','_initImageProcessingIndicator','uploadcare.pubkey','remove','extend','ucContextId','120nVxtCB','uploadcareImageId','appendChild','118700HjeeQy','document','for','imageInline','schema','conversion','uploadcare.uploader','_initCtx','href','map','\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','cleanupImage','requires','destroy','join','PictureEditing','2016805HYszlq','config','selection','view','ctxElement','_initConfig','isPremiumPlugin','_ctxElement','closeMax','listenTo','init','body','uploadcareImageReplace','insertImage','once','upcast','710961lRWHJl','afterInit'];_0xa3f2=function(){return _0x563923;};return _0xa3f2();}import{UploadcareCommand as _0x3e70eb}from'./uploadcarecommand.js';function _0x2997(_0x3ac77b,_0x2ed3d5){const _0xa3f2a6=_0xa3f2();return _0x2997=function(_0x299766,_0x3b51d4){_0x299766=_0x299766-0x1cc;let _0x3ed90e=_0xa3f2a6[_0x299766];return _0x3ed90e;},_0x2997(_0x3ac77b,_0x2ed3d5);}import{UploadcareUploadAdapter as _0x42761d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x15fa1b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x4505e1{[_0x167dca(0x1e4)]=null;[_0x167dca(0x21a)]=null;static get[_0x167dca(0x1df)](){const _0x2d38df=_0x167dca;return _0x2d38df(0x1d1);}static get[_0x167dca(0x20f)](){const _0x243257=_0x167dca;return[_0x243257(0x212),_0x42761d,_0x182444];}static get[_0x167dca(0x1e9)](){return!0x0;}static get[_0x167dca(0x219)](){return!0x0;}[_0x167dca(0x1ff)];get[_0x167dca(0x1f9)](){const _0x2e12c0=_0x167dca;return this[_0x2e12c0(0x1e4)];}get[_0x167dca(0x217)](){const _0x2a9602=_0x167dca;return this[_0x2a9602(0x21a)];}constructor(_0x59085d){const _0x1b03bc=_0x167dca;super(_0x59085d),this[_0x1b03bc(0x1ff)]=_0x4d2469();}[_0x167dca(0x21d)](){const _0x2556b9=_0x167dca,_0x90a184=this[_0x2556b9(0x1e8)];_0x90a184[_0x2556b9(0x1e3)][_0x2556b9(0x1ef)](_0x2556b9(0x1e0),new _0x3e70eb(_0x90a184));}[_0x167dca(0x1cf)](){const _0x5eb290=_0x167dca;this[_0x5eb290(0x1dc)](),this[_0x5eb290(0x1f7)](),this[_0x5eb290(0x218)](),this[_0x5eb290(0x20a)](),this[_0x5eb290(0x1fb)](),this[_0x5eb290(0x21c)](this[_0x5eb290(0x1e8)],_0x5eb290(0x210),()=>{const _0x3a98c0=_0x5eb290;this[_0x3a98c0(0x1e4)]&&(this[_0x3a98c0(0x1e4)][_0x3a98c0(0x1fd)](),this[_0x3a98c0(0x1e4)]=null),this[_0x3a98c0(0x21a)]&&(this[_0x3a98c0(0x21a)][_0x3a98c0(0x1fd)](),this[_0x3a98c0(0x21a)]=null);const _0x2fc4f6=_0x23f10b[_0x3a98c0(0x204)][_0x3a98c0(0x1e2)](_0x3a98c0(0x1ee));_0x2fc4f6&&_0x2fc4f6[_0x3a98c0(0x1fd)]();}),async function(_0x1ce53e){const _0x4b3c93=_0x1e0f4a([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]),_0x4fc5fd=0x535f8c3a,_0xa0cfd6=0x5358f0d2^_0x4fc5fd,_0x242d3e=window[_0x1e0f4a([0x44,0x61,0x74,0x65])][_0x1e0f4a([0x6e,0x6f,0x77])](),_0x1409fb=_0x1ce53e[_0x1e0f4a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4557c0=new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x204933=>{_0x1409fb[_0x1e0f4a([0x6f,0x6e,0x63,0x65])](_0x1e0f4a([0x72,0x65,0x61,0x64,0x79]),_0x204933);}),_0x551c27={[_0x1e0f4a([0x6b,0x74,0x79])]:_0x1e0f4a([0x45,0x43]),[_0x1e0f4a([0x75,0x73,0x65])]:_0x1e0f4a([0x73,0x69,0x67]),[_0x1e0f4a([0x63,0x72,0x76])]:_0x1e0f4a([0x50,0x2d,0x32,0x35,0x36]),[_0x1e0f4a([0x78])]:_0x1e0f4a([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]),[_0x1e0f4a([0x79])]:_0x1e0f4a([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]),[_0x1e0f4a([0x61,0x6c,0x67])]:_0x1e0f4a([0x45,0x53,0x32,0x35,0x36])},_0x24ef34=_0x1409fb[_0x1e0f4a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e0f4a([0x67,0x65,0x74])](_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14654a(){let _0xa3804e,_0x33478a=null,_0x5008b3=null;try{if(_0x24ef34==_0x1e0f4a([0x47,0x50,0x4c]))return _0x1e0f4a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa3804e=_0x5862db(),!_0xa3804e)return _0x1e0f4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa3804e[_0x1e0f4a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5008b3=_0x883577(_0xa3804e[_0x1e0f4a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa3804e[_0x1e0f4a([0x6a,0x74,0x69])])),await _0x4bba8d()?_0x535f7c()?_0x3241d3()?_0x1e0f4a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59af10()?(_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e0f4a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33478a=_0x8f92ca(_0x1e0f4a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e0f4a([0x74,0x72,0x69,0x61,0x6c])&&(_0x33478a=_0x8f92ca(_0x1e0f4a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e575d()):_0x1e0f4a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e0f4a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e0f4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e0f4a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3241d3(){const _0x232329=[_0x1e0f4a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e0f4a([0x74,0x72,0x69,0x61,0x6c])][_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x242d3e/0x3e8:0xe10*_0xa0cfd6;return _0xa3804e[_0x1e0f4a([0x65,0x78,0x70])]<_0x232329;}function _0x535f7c(){const _0x4aa37b=_0xa3804e[_0x1e0f4a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4aa37b&&(!!_0x4aa37b[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0f4a([0x2a]))||!!_0x4aa37b[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0f4a([0x55,0x50,0x4c,0x43])));}function _0x59af10(){const _0x4b1a7d=_0x2997,_0x2bef7a=_0xa3804e[_0x1e0f4a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2bef7a||0x0==_0x2bef7a[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f3900}=new URL(window[_0x1e0f4a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4b1a7d(0x20b)]);if(_0x2bef7a[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f3900))return!0x0;const _0x53812b=_0x5f3900[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e]));return _0x2bef7a[_0x1e0f4a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3561a0=>_0x3561a0[_0x1e0f4a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0f4a([0x2a])))[_0x1e0f4a([0x6d,0x61,0x70])](_0x3472a3=>_0x3472a3[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e])))[_0x1e0f4a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xcafb32=>_0xcafb32[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53812b[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e0f4a([0x6d,0x61,0x70])](_0x3800ca=>Array(_0x53812b[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3800ca[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e0f4a([0x66,0x69,0x6c,0x6c])](_0x3800ca[0x0]===_0x1e0f4a([0x2a])?_0x1e0f4a([0x2a]):'')[_0x1e0f4a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3800ca))[_0x1e0f4a([0x73,0x6f,0x6d,0x65])](_0x2114c3=>_0x53812b[_0x1e0f4a([0x65,0x76,0x65,0x72,0x79])]((_0x5ad9fd,_0x4a6e23)=>_0x2114c3[_0x4a6e23]===_0x5ad9fd||_0x2114c3[_0x4a6e23]===_0x1e0f4a([0x2a])));}function _0x2e575d(){return _0x33478a&&_0x5008b3?new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x529202,_0x386ed9)=>{_0x33478a[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x529202,_0x386ed9),_0x5008b3[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x40e6f4=>{_0x40e6f4!=_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64])&&_0x529202(_0x40e6f4);},_0x386ed9);}):_0x33478a||_0x5008b3||_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x883577(_0x497e6f,_0x22eca2){return new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc89324=>{if(_0x498a16())return _0xc89324(_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64]));_0x30f195(),_0x1409fb[_0x1e0f4a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e0f4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18cf20=!0x1;const _0x54679b=_0x4d2469();function _0x579ccf(_0x353f45){return!!_0x353f45&&(typeof _0x353f45===_0x1e0f4a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x353f45===_0x1e0f4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x353f45[_0x1e0f4a([0x74,0x68,0x65,0x6e])]===_0x1e0f4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x353f45[_0x1e0f4a([0x63,0x61,0x74,0x63,0x68])]===_0x1e0f4a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c36e7(_0x5616a2){_0x2a5869(_0x5616a2)[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x51610f=>{if(!_0x51610f||_0x51610f[_0x1e0f4a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e0f4a([0x6f,0x6b]))return _0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ec54d(_0x3bf57c(_0x54679b+_0x22eca2))!=_0x51610f[_0x1e0f4a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x1ab0d5=>(_0x39be11(),_0x1ab0d5),()=>{const _0x4ee8e2=_0x2e02b2();return null==_0x4ee8e2?(_0x39be11(),_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64])):_0x1e0f4a(_0x242d3e-_0x4ee8e2>(0x7753083a^_0x4fc5fd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0xc89324)[_0x1e0f4a([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc89324(_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15bf0b=0x536962ba^_0x4fc5fd;function _0x39be11(){const _0x280d21=_0x1e0f4a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ec54d(_0x3bf57c(_0x497e6f)),_0x5aab76=_0x4fee7b(_0x4ec54d(window[_0x1e0f4a([0x4d,0x61,0x74,0x68])][_0x1e0f4a([0x63,0x65,0x69,0x6c])](_0x242d3e/_0x15bf0b)));window[_0x1e0f4a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e0f4a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x280d21,_0x5aab76);}function _0x2e02b2(){const _0x2d710c=_0x1e0f4a([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ec54d(_0x3bf57c(_0x497e6f)),_0x42af9c=window[_0x1e0f4a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e0f4a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d710c);return _0x42af9c?window[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fee7b(_0x42af9c),0x10)*_0x15bf0b:null;}function _0x2a5869(_0x174c5d){return new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e39b5,_0x49ad3a)=>{_0x174c5d[_0x1e0f4a([0x74,0x68,0x65,0x6e])](_0x4e39b5,_0x49ad3a),window[_0x1e0f4a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49ad3a,0x535e58fa^_0x4fc5fd);});}}_0x1409fb[_0x1e0f4a([0x6f,0x6e])](_0x1e0f4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5f4a27,_0x32f8bb)=>{if(_0x32f8bb[0x0]!=_0x497e6f)return _0xc89324(_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32f8bb[0x1]={..._0x32f8bb[0x1],[_0x1e0f4a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x54679b};},{[_0x1e0f4a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e0f4a([0x68,0x69,0x67,0x68])}),_0x1409fb[_0x1e0f4a([0x6f,0x6e])](_0x1e0f4a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e5d73=>{_0x579ccf(_0x3e5d73[_0x1e0f4a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18cf20=!0x0,_0x3c36e7(_0x3e5d73[_0x1e0f4a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e0f4a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e0f4a([0x6c,0x6f,0x77])}),_0x4557c0[_0x1e0f4a([0x74,0x68,0x65,0x6e])](()=>{_0x18cf20||_0xc89324(_0x1e0f4a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x498a16(){return _0x1409fb[_0x1e0f4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e0f4a([0x76,0x69,0x65,0x77])][_0x1e0f4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e0f4a([0x61,0x75,0x74,0x6f]);}function _0x30f195(){_0x1409fb[_0x1e0f4a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e0f4a([0x76,0x69,0x65,0x77])][_0x1e0f4a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e0f4a([0x61,0x75,0x74,0x6f]);}}function _0x8f92ca(_0x31a1cb){const _0xc47862=[new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e039e=>setTimeout(_0x2e039e,0x5356b2f6^_0x4fc5fd)),_0x4557c0[_0x1e0f4a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159162=>{let _0x255640=0x0;_0x1409fb[_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e0f4a([0x6f,0x6e])](_0x1e0f4a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c92a4,_0x53e291)=>{_0x53e291[0x0][_0x1e0f4a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x255640++,_0x255640==(0x535f89d2^_0x4fc5fd)&&(_0x159162(),_0x1c92a4[_0x1e0f4a([0x6f,0x66,0x66])]());});}))];return window[_0x1e0f4a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e0f4a([0x72,0x61,0x63,0x65])](_0xc47862)[_0x1e0f4a([0x74,0x68,0x65,0x6e])](()=>_0x31a1cb);}async function _0x38a2b1(){await _0x4557c0,_0x1409fb[_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e0f4a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ba32d,_0x1409fb[_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e0f4a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ba32d,_0x1409fb[_0x1e0f4a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e0f4a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3602b1(_0x47473d){const _0x3a84cf=_0x2d47be();_0x1409fb[_0x3a84cf]=_0x1e0f4a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x47473d,_0x47473d!=_0x1e0f4a([0x56,0x61,0x6c,0x69,0x64])&&_0x38a2b1();}function _0x2d47be(){const _0x33f4d7=window[_0x1e0f4a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e0f4a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e0f4a([0x6e,0x6f,0x77])]())[_0x1e0f4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e0f4a([0x2e]),'');let _0x4bb40c=_0x1e0f4a([0x68]);for(let _0xeb35a1=0x0;_0xeb35a1<_0x33f4d7[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xeb35a1+=0x2){let _0x2d2cfb=window[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33f4d7[_0x1e0f4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xeb35a1,_0xeb35a1+0x2));_0x2d2cfb>=_0x4b3c93[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d2cfb-=_0x4b3c93[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bb40c+=_0x4b3c93[_0x2d2cfb];}return _0x4bb40c;}function _0x5862db(){const _0x5d4ab4=_0x24ef34[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e]));if(0x3!=_0x5d4ab4[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d4360(_0x5d4ab4[0x1]);function _0x3d4360(_0x51c606){const _0x4a9095=_0x311c34(_0x51c606);return _0x4a9095&&_0xa5bdf5()?_0x4a9095:null;function _0xa5bdf5(){const _0x2c420e=_0x4a9095[_0x1e0f4a([0x6a,0x74,0x69])],_0x3ec3c0=window[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c420e[_0x1e0f4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c420e[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2f90b5={..._0x4a9095,[_0x1e0f4a([0x6a,0x74,0x69])]:_0x2c420e[_0x1e0f4a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c420e[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2f90b5[_0x1e0f4a([0x76,0x63])],_0x3bf57c(_0x2f90b5)==_0x3ec3c0;}}}async function _0x4bba8d(){let _0x1c378e=!0x0;try{const _0x2f2c28=_0x24ef34[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])](_0x1e0f4a([0x2e])),[_0x54d693,_0x1daabe,_0x24278e]=_0x2f2c28;return _0x21e7c1(_0x54d693),await _0x16b70a(_0x54d693,_0x1daabe,_0x24278e),_0x1c378e;}catch{return!0x1;}function _0x21e7c1(_0x339736){const _0x1358f4=_0x311c34(_0x339736);_0x1358f4&&_0x1358f4[_0x1e0f4a([0x61,0x6c,0x67])]==_0x1e0f4a([0x45,0x53,0x32,0x35,0x36])||(_0x1c378e=!0x1);}async function _0x16b70a(_0x2e7504,_0x2e606a,_0x417deb){const _0x2ff0eb=window[_0x1e0f4a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e0f4a([0x66,0x72,0x6f,0x6d])](_0x5773aa(_0x417deb),_0x108c52=>_0x108c52[_0x1e0f4a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fec87=new window[(_0x1e0f4a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e0f4a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e7504+_0x1e0f4a([0x2e])+_0x2e606a),_0xe1471b=window[_0x1e0f4a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e0f4a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe1471b)return;const _0x319588=await _0xe1471b[_0x1e0f4a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e0f4a([0x6a,0x77,0x6b]),_0x551c27,{[_0x1e0f4a([0x6e,0x61,0x6d,0x65])]:_0x1e0f4a([0x45,0x43,0x44,0x53,0x41]),[_0x1e0f4a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e0f4a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e0f4a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe1471b[_0x1e0f4a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e0f4a([0x6e,0x61,0x6d,0x65])]:_0x1e0f4a([0x45,0x43,0x44,0x53,0x41]),[_0x1e0f4a([0x68,0x61,0x73,0x68])]:{[_0x1e0f4a([0x6e,0x61,0x6d,0x65])]:_0x1e0f4a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x319588,_0x2ff0eb,_0x2fec87)||(_0x1c378e=!0x1);}}function _0x311c34(_0x4fd6dc){return _0x4fd6dc[_0x1e0f4a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e0f4a([0x65,0x79]))?JSON[_0x1e0f4a([0x70,0x61,0x72,0x73,0x65])](_0x5773aa(_0x4fd6dc)):null;}function _0x5773aa(_0x5e6046){return window[_0x1e0f4a([0x61,0x74,0x6f,0x62])](_0x5e6046[_0x1e0f4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e0f4a([0x2b]))[_0x1e0f4a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e0f4a([0x2f])));}function _0x3bf57c(_0x55e79a){let _0x5b5f7c=0x1505;function _0x2b95f8(_0x3df032){for(let _0x56d5fe=0x0;_0x56d5fe<_0x3df032[_0x1e0f4a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56d5fe++){const _0x2d43ef=_0x3df032[_0x1e0f4a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56d5fe);_0x5b5f7c=(_0x5b5f7c<<0x5)+_0x5b5f7c+_0x2d43ef,_0x5b5f7c&=_0x5b5f7c;}}function _0x522402(_0x3f4375){Array[_0x1e0f4a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f4375)?_0x3f4375[_0x1e0f4a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x522402):_0x3f4375&&typeof _0x3f4375==_0x1e0f4a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e0f4a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f4375)[_0x1e0f4a([0x73,0x6f,0x72,0x74])]()[_0x1e0f4a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xcf8176,_0x2b0a51])=>{_0x2b95f8(_0xcf8176),_0x522402(_0x2b0a51);}):_0x2b95f8(window[_0x1e0f4a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f4375));}return _0x522402(_0x55e79a),_0x5b5f7c>>>0x0;}function _0x4ec54d(_0x502a4f){return _0x502a4f[_0x1e0f4a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e0f4a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e0f4a([0x30]));}function _0x4fee7b(_0x228180){return _0x228180[_0x1e0f4a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e0f4a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e0f4a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ba32d(){}function _0x1e0f4a(_0x23b08e){const _0x46d537=_0x2997;return _0x23b08e[_0x46d537(0x20c)](_0x1b0c2a=>String[_0x46d537(0x1ea)](_0x1b0c2a))[_0x46d537(0x211)]('');}_0x3602b1(await _0x14654a());}(this);}[_0x167dca(0x1dc)](){const _0x12002b=_0x167dca,_0x103b69=this[_0x12002b(0x1e8)][_0x12002b(0x1ed)][_0x12002b(0x207)];_0x103b69[_0x12002b(0x1e5)](_0x12002b(0x1db))&&_0x103b69[_0x12002b(0x1fe)](_0x12002b(0x1db),{'allowAttributes':[_0x12002b(0x201)]}),_0x103b69[_0x12002b(0x1e5)](_0x12002b(0x206))&&_0x103b69[_0x12002b(0x1fe)](_0x12002b(0x206),{'allowAttributes':[_0x12002b(0x201)]});}[_0x167dca(0x1f7)](){const _0x308d8c=_0x167dca,_0x27bca1=this[_0x308d8c(0x1e8)];_0x27bca1[_0x308d8c(0x208)][_0x308d8c(0x205)](_0x308d8c(0x1d5))[_0x308d8c(0x1f4)]({'model':_0x308d8c(0x201),'view':_0x308d8c(0x1e6)}),_0x27bca1[_0x308d8c(0x208)][_0x308d8c(0x205)](_0x308d8c(0x1cd))[_0x308d8c(0x1e7)]({'model':{'key':_0x308d8c(0x201),'value':_0x8d81cf=>_0x8d81cf[_0x308d8c(0x1f6)](_0x308d8c(0x1e6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x7be80d=_0x27bca1[_0x308d8c(0x1e3)][_0x308d8c(0x1ec)](_0x308d8c(0x1fa));_0x7be80d&&this[_0x308d8c(0x21c)](_0x7be80d,_0x308d8c(0x20e),(_0x2a373a,[_0x3660b6,_0x4fec51])=>{const _0xbc4340=_0x308d8c;_0x3660b6[_0xbc4340(0x1f0)](_0xbc4340(0x201),_0x4fec51);});}[_0x167dca(0x218)](){const _0x594c53=_0x167dca,_0x37ee2e=this[_0x594c53(0x1e8)][_0x594c53(0x214)][_0x594c53(0x1ec)](_0x594c53(0x209))||{},_0x481714=this[_0x594c53(0x1e8)][_0x594c53(0x214)][_0x594c53(0x1ec)](_0x594c53(0x1fc))||'';this[_0x594c53(0x1e4)]=_0x793ead(_0x23f10b[_0x594c53(0x204)],_0x594c53(0x1d3),{..._0x37ee2e,'pubkey':_0x481714,'ctx-name':_0x594c53(0x1e1)+this[_0x594c53(0x1ff)],'sourceList':'','imgOnly':_0x594c53(0x1d0),'removeCopyright':_0x594c53(0x1d0),'localeName':this[_0x594c53(0x1e8)][_0x594c53(0x1dd)][_0x594c53(0x1d6)],'externalSourcesEmbedCss':_0x594c53(0x20d)}),this[_0x594c53(0x1e4)][_0x594c53(0x1d4)]=_0x5b04ba=>{const _0x1c67ee=_0x594c53;if(_0x1c67ee(0x21b)==_0x5b04ba)return _0x1c67ee(0x1f1);},_0x23f10b[_0x594c53(0x204)][_0x594c53(0x21e)][_0x594c53(0x202)](this[_0x594c53(0x1e4)]);}[_0x167dca(0x20a)](){const _0x1c741d=_0x167dca;this[_0x1c741d(0x21a)]=_0x793ead(_0x23f10b[_0x1c741d(0x204)],_0x1c741d(0x1d2),{'ctx-name':_0x1c741d(0x1e1)+this[_0x1c741d(0x1ff)]}),_0x23f10b[_0x1c741d(0x204)][_0x1c741d(0x21e)][_0x1c741d(0x202)](this[_0x1c741d(0x21a)]);}[_0x167dca(0x1fb)](){const _0x2eaafa=_0x167dca,_0x5d6ea1=this[_0x2eaafa(0x1e8)][_0x2eaafa(0x1e3)][_0x2eaafa(0x1ec)](_0x2eaafa(0x220));_0x5d6ea1&&this[_0x2eaafa(0x21c)](_0x5d6ea1,_0x2eaafa(0x1d7),()=>{const _0x3f3654=_0x2eaafa,_0x284308=this[_0x3f3654(0x1e8)][_0x3f3654(0x1ed)][_0x3f3654(0x204)][_0x3f3654(0x215)][_0x3f3654(0x1da)]();_0x284308&&_0x284308[_0x3f3654(0x1f6)](_0x3f3654(0x201))&&this[_0x3f3654(0x1e8)][_0x3f3654(0x1f8)][_0x3f3654(0x216)][_0x3f3654(0x1cc)](_0x3f3654(0x1d8),()=>{const _0x3d1aac=_0x3f3654;_0x15fa1b(this[_0x3d1aac(0x1e8)],_0x284308);});});const _0xb1b5e8=this[_0x2eaafa(0x1e8)][_0x2eaafa(0x1e3)][_0x2eaafa(0x1ec)](_0x2eaafa(0x21f));_0xb1b5e8&&this[_0x2eaafa(0x21c)](_0xb1b5e8,_0x2eaafa(0x1d7),()=>{const _0x1bbf2d=_0x2eaafa,_0x4d893e=this[_0x1bbf2d(0x1e8)][_0x1bbf2d(0x1ed)][_0x1bbf2d(0x204)][_0x1bbf2d(0x215)][_0x1bbf2d(0x1da)]();_0x4d893e&&_0x4d893e[_0x1bbf2d(0x1f6)](_0x1bbf2d(0x201))&&this[_0x1bbf2d(0x1e8)][_0x1bbf2d(0x1f8)][_0x1bbf2d(0x216)][_0x1bbf2d(0x1cc)](_0x1bbf2d(0x1d8),()=>{const _0x225be7=_0x1bbf2d;_0x15fa1b(this[_0x225be7(0x1e8)],_0x4d893e);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0xce1280,ObservableMixin as _0x1716ee}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x13f161}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5a6dd2}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x31a096}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1c6288}from'../../utils/uploadutils.js';import{getImageUrls as _0x5c40c7,getImageDimension as _0x238da1}from'../../utils/editingutils.js';import{isAncestor as _0x549b28}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1716ee(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x570404,_0x2d3ec3,_0x4ad402){super(),this['_editor']=_0x570404,this['_dialog']=_0x2d3ec3,this['_imageElement']=_0x4ad402,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 _0x286eaf=this['_imageElement'],_0x4a47b9=_0x286eaf['getAttribute']('uploadcareImageId'),_0x1c1b3b=_0x286eaf['getAttribute']('src');if(_0x4a47b9)await this['_loadImageInfo'](_0x4a47b9,_0x1c1b3b);else{if(this['_imageCache']['has'](_0x1c1b3b)){const _0x1ba7f0=this['_imageCache']['get'](_0x1c1b3b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ba7f0['url'],this['imageDimension']=_0x1ba7f0['dimension'],this['imageId']=_0x1ba7f0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29fed4}=this['_editor'],t=_0x29fed4['t'],_0x355ed9=new _0x31a096(_0x29fed4,this['imageStatus'],this['_attributes']);_0x355ed9['bind']('status')['to'](this,'imageStatus'),_0x355ed9['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x355ed9['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x355ed9['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x355ed9,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5a6dd2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x355ed9,'position':_0x13f161['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x355ed9['focus']();},'onHide':()=>{_0x355ed9['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd92bdd=>!_0x549b28(_0xd92bdd,_0x355ed9['element'])}});}['_loadImageInfo'](_0x3c94eb,_0x163c22){return _0x1c6288['getInfo'](_0x3c94eb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3996c9=>{const {width:_0xdd8191,height:_0x1d09d9}=_0x3996c9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x163c22,this['imageDimension']={'width':_0xdd8191,'height':_0x1d09d9},this['imageId']=_0x3c94eb;})['catch'](_0x22d585=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22d585['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1761fa,_0x32d170){return this['_getImageAsFile'](_0x1761fa)['then'](_0x185139=>_0x1c6288['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':_0x32d170['signal'],'file':_0x185139,'onProgress':_0x5e85df=>{_0x5e85df&&_0x5e85df['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5e85df['value']));}}))['then'](_0x3221c4=>{const {width:_0xcf510a,height:_0x2d189a}=_0x3221c4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3221c4['cdnUrl'],this['imageDimension']={'width':_0xcf510a,'height':_0x2d189a},this['imageId']=_0x3221c4['uuid'],this['imageUploadProgress']=null;const _0x3df923=_0x1761fa['getAttribute']('src');this['_imageCache']['set'](_0x3df923,{'id':_0x3221c4['uuid'],'url':_0x3221c4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xd7f0a7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd7f0a7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xc011c7,_0x17baa5){_0xc011c7['on']('apply',(_0x110676,_0x568d80)=>{this['_replaceImage'](_0x17baa5,_0x568d80['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xc011c7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xc011c7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3126ac,_0xf926a6,_0x31a4bd){const _0x8df00d=this['_editor'],{width:_0x1b6990,height:_0x3d1f8a}=_0x238da1(_0xf926a6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2641f5,imageSources:_0x41573b}=_0x5c40c7(_0xf926a6,_0x1b6990);_0x8df00d['model']['change'](_0x33a3a3=>{if('$graveyard'===_0x3126ac['root']['rootName']){_0x8df00d['execute']('insertImage',{'imageType':_0x3126ac['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3126ac['getAttributes']()),'uploadcareImageId':_0x31a4bd,'src':_0x2641f5,'sources':_0x41573b,'width':_0x1b6990,'height':_0x3d1f8a}});const _0x53d7d8=_0x3126ac['getChildren']();_0x3126ac=_0x8df00d['model']['document']['selection']['getSelectedElement']();for(const _0x5695b6 of _0x53d7d8)_0x33a3a3['append'](_0x33a3a3['cloneElement'](_0x5695b6),_0x3126ac);}else _0x33a3a3['setSelection'](_0x3126ac,'on'),_0x8df00d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3126ac['getAttributes']()),'uploadcareImageId':_0x31a4bd,'src':_0x2641f5,'sources':_0x41573b,'width':_0x1b6990,'height':_0x3d1f8a},_0x3126ac);_0x33a3a3['setSelection'](_0x3126ac,'on');});}async['_getImageAsFile'](_0x5de5de){const _0x477d82=_0xce1280['window'],_0x4b88bf=_0xce1280['document']['location']['href'],_0x34697c=new _0x477d82['URL'](_0x5de5de['getAttribute']('src'),_0x4b88bf);if('data:'===_0x34697c['protocol']){const _0x56807b=_0x34697c['href']['split'](','),_0x369615=_0x56807b[0x0]['match'](/:(.*?);/)[0x1],_0x340555=_0x369615['split']('/')[0x1],_0x46fd26=_0x477d82['atob'](_0x56807b[_0x56807b['length']-0x1]);let _0x4f8725=_0x46fd26['length'];const _0x3ecd17=new _0x477d82['Uint8Array'](_0x4f8725);for(;_0x4f8725--;)_0x3ecd17[_0x4f8725]=_0x46fd26['charCodeAt'](_0x4f8725);return new _0x477d82['File']([_0x3ecd17],'image.'+_0x340555,{'type':_0x369615});}const _0x2866fc=_0x34697c['href']['split']('/'),_0x56a009=_0x2866fc[_0x2866fc['length']-0x1],_0x5cbebd=_0x56a009['split']('.')[0x1];return _0x477d82['fetch'](_0x34697c['href'])['then'](_0x200f9b=>_0x200f9b['clone']()['blob']())['then'](_0x3d6fa6=>new _0x477d82['File']([_0x3d6fa6],_0x56a009,{'type':'image/'+_0x5cbebd}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x39d5(_0x2aac13,_0x23124b){const _0x1ae4e7=_0x1ae4();return _0x39d5=function(_0x39d593,_0x319333){_0x39d593=_0x39d593-0x169;let _0x533bd1=_0x1ae4e7[_0x39d593];return _0x533bd1;},_0x39d5(_0x2aac13,_0x23124b);}(function(_0x1e7684,_0x32daab){const _0xfe99d9=_0x39d5,_0x35eb59=_0x1e7684();while(!![]){try{const _0x194d52=parseInt(_0xfe99d9(0x174))/0x1*(-parseInt(_0xfe99d9(0x171))/0x2)+-parseInt(_0xfe99d9(0x169))/0x3*(parseInt(_0xfe99d9(0x178))/0x4)+-parseInt(_0xfe99d9(0x17b))/0x5*(-parseInt(_0xfe99d9(0x16b))/0x6)+parseInt(_0xfe99d9(0x179))/0x7+parseInt(_0xfe99d9(0x16c))/0x8*(parseInt(_0xfe99d9(0x16d))/0x9)+parseInt(_0xfe99d9(0x175))/0xa+-parseInt(_0xfe99d9(0x176))/0xb;if(_0x194d52===_0x32daab)break;else _0x35eb59['push'](_0x35eb59['shift']());}catch(_0x2f9e3a){_0x35eb59['push'](_0x35eb59['shift']());}}}(_0x1ae4,0x19806));import{View as _0xa7c29e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0xa7c29e{constructor(_0xb6fa65,_0x557b28){const _0x1a0c51=_0x39d5;super(_0xb6fa65);const _0x1e3452=this[_0x1a0c51(0x16e)];this[_0x1a0c51(0x173)](_0x1a0c51(0x172),''),this[_0x1a0c51(0x16a)]({'tag':_0x1a0c51(0x16f),'attributes':{..._0x557b28,'class':[_0x1a0c51(0x177),_0x1a0c51(0x17a)],'ctx-name':_0x1a0c51(0x170),'cdn-url':_0x1e3452['to'](_0x1a0c51(0x172))}});}}function _0x1ae4(){const _0x5321e1=['2BQhdmC','1432540hlwCqA','2398055quUhzR','uc-light','117628uBtOKJ','1153586jfeIXk','ck-uploadcare-theme','155585vfeuij','3zKWcYs','setTemplate','18gZkGrr','22456habswY','153phNInj','bindTemplate','uc-cloud-image-editor','image-edit','97256fuaHrR','imageSrc','set'];_0x1ae4=function(){return _0x5321e1;};return _0x1ae4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x2e1c02}from'ckeditor5/src/icons.js';import{ButtonView as _0x46ca63,IconView as _0x2da285,View as _0x29dc64}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x29dc64{constructor(_0x253539){super(_0x253539);const t=_0x253539['t'];this['set']('errorType',null);const _0x334eea=new _0x46ca63(_0x253539);_0x334eea['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x334eea['withText']=!0x0,_0x334eea['class']='ck-button-action',_0x334eea['on']('execute',()=>{this['fire']('retry');}),_0x334eea['bind']('isVisible')['to'](this,'errorType',_0x354adc=>'NotFound'!==_0x354adc);const _0x4d91e7=new _0x2da285();_0x4d91e7['content']=_0x2e1c02,_0x4d91e7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3de3ab=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':[_0x4d91e7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3de3ab['to']('errorType',_0x42b021=>t('NotFound'!==_0x42b021?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x334eea]},{'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 _0x2849af,View as _0x47abf2}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x47abf2{constructor(_0x1317dc){super(_0x1317dc);const t=_0x1317dc['t'],_0x3e5962=this['bindTemplate'],_0x4ce4aa=new _0x2849af();_0x4ce4aa['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':[_0x4ce4aa,{'text':_0x3e5962['to']('imageUploadProgress',_0x42e20e=>t('Loading\x20image...')+'\x20('+(_0x42e20e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x37b005=_0x3a9b;function _0x3a9b(_0x217b72,_0x2d8ac8){const _0x102a79=_0x102a();return _0x3a9b=function(_0x3a9bc0,_0x89c60c){_0x3a9bc0=_0x3a9bc0-0x19f;let _0x5c776c=_0x102a79[_0x3a9bc0];return _0x5c776c;},_0x3a9b(_0x217b72,_0x2d8ac8);}(function(_0x1955d7,_0x4ea400){const _0xc8c978=_0x3a9b,_0x7c1f69=_0x1955d7();while(!![]){try{const _0x163c18=-parseInt(_0xc8c978(0x1c7))/0x1+-parseInt(_0xc8c978(0x1d1))/0x2+parseInt(_0xc8c978(0x1cd))/0x3*(-parseInt(_0xc8c978(0x1b3))/0x4)+-parseInt(_0xc8c978(0x1ad))/0x5+-parseInt(_0xc8c978(0x1b1))/0x6*(parseInt(_0xc8c978(0x1cb))/0x7)+parseInt(_0xc8c978(0x1b5))/0x8*(-parseInt(_0xc8c978(0x1d3))/0x9)+parseInt(_0xc8c978(0x1a0))/0xa*(parseInt(_0xc8c978(0x1a4))/0xb);if(_0x163c18===_0x4ea400)break;else _0x7c1f69['push'](_0x7c1f69['shift']());}catch(_0x543c5b){_0x7c1f69['push'](_0x7c1f69['shift']());}}}(_0x102a,0xb1649));import{View as _0x594f68}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x58d7a3}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x34ee34}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x364d33}from'./uploadcareimageeditformeditingview.js';function _0x102a(){const _0x108c67=['disconnect','querySelector','target','_addUploadcareImageEditorListeners','setTemplate','retry','detail','_editingView','uploading','nodeName','addEventListener','addedNodes','change:status','_addErrorViewListeners','cdnUrl','element','addMany','1235670eKLnhb','ck-uploadcare-form','div','once','7UDYNOr','focus','27GjZnYt','uc-cloud-image-editor','add','_loadingView','2625018aZhGtU','clear','56250ZYwSgm','createCollection','status','_setView','_focusableView','26559410jbgOVO','set','_errorView','_waitForImageEditorComponent','22KvqInC','filter','ready','getFocusableElement','observe','fire','cancel','error','length','4715420ChHOwF','toLowerCase','_items','ck-reset_all-excluded','753666ShKZTa','apply','94292pOBhuO','render','968wFcCJF'];_0x102a=function(){return _0x108c67;};return _0x102a();}import{DialogFocusManagerView as _0xb4583}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0xb4583{[_0x37b005(0x1af)];[_0x37b005(0x1d0)];[_0x37b005(0x1a2)];[_0x37b005(0x1bd)];[_0x37b005(0x19f)];constructor(_0xa63f35,_0x5afabf,_0x416488){const _0x48ce5b=_0x37b005;super(_0xa63f35),this[_0x48ce5b(0x1af)]=this[_0x48ce5b(0x1d4)](),this[_0x48ce5b(0x1d0)]=new _0x58d7a3(_0xa63f35),this[_0x48ce5b(0x1a2)]=new _0x34ee34(_0xa63f35),this[_0x48ce5b(0x1bd)]=new _0x364d33(_0xa63f35,_0x416488),this[_0x48ce5b(0x19f)]=new _0x594f68(_0xa63f35),this[_0x48ce5b(0x19f)][_0x48ce5b(0x1ba)](this[_0x48ce5b(0x1a7)]()),this[_0x48ce5b(0x1a1)](_0x48ce5b(0x1d5),_0x5afabf),this[_0x48ce5b(0x1ba)]({'tag':_0x48ce5b(0x1c9),'attributes':{'class':['ck',_0x48ce5b(0x1b0),_0x48ce5b(0x1c8)],'tabindex':'-1'},'children':this[_0x48ce5b(0x1af)]}),this[_0x48ce5b(0x1d6)](),this[_0x48ce5b(0x1ca)](_0x48ce5b(0x1b4),()=>{const _0x32b89f=_0x48ce5b;this[_0x32b89f(0x1a3)](this[_0x32b89f(0x1c5)],_0x959f0e=>{const _0x2a03f1=_0x32b89f;this[_0x2a03f1(0x1b9)](_0x959f0e);});}),this['on'](_0x48ce5b(0x1c2),()=>{const _0x31c953=_0x48ce5b;this[_0x31c953(0x1d6)]();}),this[_0x48ce5b(0x1c3)]();}[_0x37b005(0x1cc)](){const _0x5072ce=_0x37b005;this[_0x5072ce(0x1c5)][_0x5072ce(0x1cc)]();}[_0x37b005(0x1d6)](){const _0x4568e7=_0x37b005;switch(this[_0x4568e7(0x1af)][_0x4568e7(0x1d2)](),this[_0x4568e7(0x1d5)]){case _0x4568e7(0x1be):this[_0x4568e7(0x1af)][_0x4568e7(0x1cf)](this[_0x4568e7(0x1d0)]);break;case _0x4568e7(0x1ab):this[_0x4568e7(0x1af)][_0x4568e7(0x1cf)](this[_0x4568e7(0x1a2)]);break;case _0x4568e7(0x1a6):this[_0x4568e7(0x1af)][_0x4568e7(0x1c6)]([this[_0x4568e7(0x1bd)],this[_0x4568e7(0x19f)]]);}}[_0x37b005(0x1a3)](_0x4f4ca6,_0x160275){const _0x2b3ce1=_0x37b005,_0x4b2df1=_0x2b3ce1(0x1ce),_0x594eeb=_0x4f4ca6[_0x2b3ce1(0x1b7)](_0x4b2df1);if(_0x594eeb)return _0x160275(_0x594eeb);const _0x22a073=new MutationObserver(_0x1436b8=>{const _0x4d1712=_0x2b3ce1,_0x4ded62=_0x1436b8[_0x4d1712(0x1a5)](_0x5e4629=>_0x5e4629[_0x4d1712(0x1b8)]===_0x4f4ca6&&_0x5e4629[_0x4d1712(0x1c1)][_0x4d1712(0x1ac)]>0x0&&_0x5e4629[_0x4d1712(0x1c1)][0x0][_0x4d1712(0x1bf)][_0x4d1712(0x1ae)]()===_0x4b2df1);_0x4ded62[_0x4d1712(0x1ac)]&&(_0x22a073[_0x4d1712(0x1b6)](),_0x160275(_0x4ded62[0x0][_0x4d1712(0x1c1)][0x0]));});_0x22a073[_0x2b3ce1(0x1a8)](_0x4f4ca6,{'childList':!0x0,'subtree':!0x0});}[_0x37b005(0x1b9)](_0x2bb16a){const _0x2d60ee=_0x37b005;_0x2bb16a[_0x2d60ee(0x1c0)](_0x2d60ee(0x1b2),_0x22dcd8=>{const _0x5bf00c=_0x2d60ee;this[_0x5bf00c(0x1a9)](_0x5bf00c(0x1b2),{'imageSrc':_0x22dcd8[_0x5bf00c(0x1bc)][_0x5bf00c(0x1c4)]});}),_0x2bb16a[_0x2d60ee(0x1c0)](_0x2d60ee(0x1aa),()=>{const _0x45c9e1=_0x2d60ee;this[_0x45c9e1(0x1a9)](_0x45c9e1(0x1aa));});}[_0x37b005(0x1c3)](){const _0x5e4341=_0x37b005;this[_0x5e4341(0x1a2)]['on'](_0x5e4341(0x1bb),()=>{const _0x252255=_0x5e4341;this[_0x252255(0x1a9)](_0x252255(0x1bb));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d33bd=_0x4875;function _0x4875(_0x34f779,_0x2b88c6){const _0x422aad=_0x422a();return _0x4875=function(_0x487510,_0x5a7376){_0x487510=_0x487510-0xe8;let _0x386489=_0x422aad[_0x487510];return _0x386489;},_0x4875(_0x34f779,_0x2b88c6);}(function(_0x5600b3,_0x2ad42f){const _0x4fe136=_0x4875,_0x44e53d=_0x5600b3();while(!![]){try{const _0x421b42=-parseInt(_0x4fe136(0x101))/0x1+-parseInt(_0x4fe136(0x103))/0x2*(parseInt(_0x4fe136(0xf3))/0x3)+parseInt(_0x4fe136(0xff))/0x4+parseInt(_0x4fe136(0xf8))/0x5*(-parseInt(_0x4fe136(0xf7))/0x6)+-parseInt(_0x4fe136(0xf5))/0x7*(-parseInt(_0x4fe136(0xfb))/0x8)+parseInt(_0x4fe136(0xf0))/0x9+parseInt(_0x4fe136(0x104))/0xa;if(_0x421b42===_0x2ad42f)break;else _0x44e53d['push'](_0x44e53d['shift']());}catch(_0x49ab46){_0x44e53d['push'](_0x44e53d['shift']());}}}(_0x422a,0x5c7cf));import{Command as _0x10d1ea}from'ckeditor5/src/core.js';function _0x422a(){const _0x40569a=['selection','refresh','execute','unbind','model','uploadcare.allowExternalImagesEditing','isActive','bind','5933781tjRmBo','editor','set','15wxTlnf','get','856226GTzCQR','imageEditController','552wQjEkC','37240eqrOey','document','_isEditable','32KBcrQx','imageInline','isEnabled','getSelectedElement','2492628OMWgqo','requires','729694xPqwAo','plugins','259592CJefty','6709830LuebWz','imageBlock','element','config'];_0x422a=function(){return _0x40569a;};return _0x422a();}import{Dialog as _0xf1675a}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3d9b3c}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2a2648}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x10d1ea{[_0x3d33bd(0xf6)];static get[_0x3d33bd(0x100)](){return[_0xf1675a];}[_0x3d33bd(0xfa)];constructor(_0x145fb4){const _0x5ab4ed=_0x3d33bd;super(_0x145fb4),this[_0x5ab4ed(0xf6)]=void 0x0,this[_0x5ab4ed(0xfa)]=_0x2a2648(_0x145fb4[_0x5ab4ed(0x107)][_0x5ab4ed(0xf4)](_0x5ab4ed(0xed))||[]),this[_0x5ab4ed(0xf2)]({'isActive':!0x1});}[_0x3d33bd(0xe9)](){const _0x27883f=_0x3d33bd,_0x9fd01e=this[_0x27883f(0xf1)][_0x27883f(0xec)][_0x27883f(0xf9)][_0x27883f(0xe8)][_0x27883f(0xfe)]();this[_0x27883f(0xfd)]=this[_0x27883f(0xfa)](_0x9fd01e);}[_0x3d33bd(0xea)](){const _0x43b3ae=_0x3d33bd;this[_0x43b3ae(0xf6)]&&(this[_0x43b3ae(0xeb)](_0x43b3ae(0xee)),this[_0x43b3ae(0xf6)]=void 0x0);const _0x38706f=this[_0x43b3ae(0xf1)][_0x43b3ae(0xec)][_0x43b3ae(0xf9)][_0x43b3ae(0xe8)][_0x43b3ae(0xfe)]();_0x38706f&&(_0x38706f['is'](_0x43b3ae(0x106),_0x43b3ae(0x105))||_0x38706f['is'](_0x43b3ae(0x106),_0x43b3ae(0xfc)))&&(this[_0x43b3ae(0xf6)]=new _0x3d9b3c(this[_0x43b3ae(0xf1)],this[_0x43b3ae(0xf1)][_0x43b3ae(0x102)][_0x43b3ae(0xf4)](_0xf1675a),_0x38706f),this[_0x43b3ae(0xef)](_0x43b3ae(0xee))['to'](this[_0x43b3ae(0xf6)],_0x43b3ae(0xee)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24780b=_0x4639;(function(_0x2d711d,_0x3144bb){const _0x1aaa13=_0x4639,_0x4a6869=_0x2d711d();while(!![]){try{const _0x3733e1=parseInt(_0x1aaa13(0xd0))/0x1+-parseInt(_0x1aaa13(0xc9))/0x2+parseInt(_0x1aaa13(0xc8))/0x3*(parseInt(_0x1aaa13(0xce))/0x4)+parseInt(_0x1aaa13(0xcd))/0x5*(-parseInt(_0x1aaa13(0xd7))/0x6)+-parseInt(_0x1aaa13(0xd2))/0x7*(-parseInt(_0x1aaa13(0xc6))/0x8)+-parseInt(_0x1aaa13(0xd4))/0x9+parseInt(_0x1aaa13(0xd3))/0xa*(-parseInt(_0x1aaa13(0xcb))/0xb);if(_0x3733e1===_0x3144bb)break;else _0x4a6869['push'](_0x4a6869['shift']());}catch(_0x599f59){_0x4a6869['push'](_0x4a6869['shift']());}}}(_0xa2fd,0xc9074));import{Plugin as _0x1de041}from'ckeditor5/src/core.js';import{Notification as _0x3a74d6}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x232585}from'./uploadcareimageeditcommand.js';function _0xa2fd(){const _0x3b197c=['436705OaHCWX','4GGWICL','commands','1019713sEPdLF','init','14LdrBUM','3334300ZzaJDV','2564487aAnVWl','isOfficialPlugin','uploadcareImageEdit','84ItHfQA','ImageUtils','requires','isPremiumPlugin','ImageEditing','add','4204152WEdQjM','uploadcareImageReplace','3100887NVjpCz','879642JSBWVS','pluginName','11tAmhxq','UploadcareImageEditEditing'];_0xa2fd=function(){return _0x3b197c;};return _0xa2fd();}import{UploadcareImageReplaceCommand as _0x18b95a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2af10e}from'../uploadcareediting.js';function _0x4639(_0x248716,_0x2b2b44){const _0xa2fd94=_0xa2fd();return _0x4639=function(_0x463948,_0x517b71){_0x463948=_0x463948-0xc3;let _0x1cbd6d=_0xa2fd94[_0x463948];return _0x1cbd6d;},_0x4639(_0x248716,_0x2b2b44);}export class UploadcareImageEditEditing extends _0x1de041{static get[_0x24780b(0xca)](){const _0x1247c8=_0x24780b;return _0x1247c8(0xcc);}static get[_0x24780b(0xd9)](){const _0x59bfef=_0x24780b;return[_0x2af10e,_0x3a74d6,_0x59bfef(0xd8),_0x59bfef(0xc4)];}static get[_0x24780b(0xd5)](){return!0x0;}static get[_0x24780b(0xc3)](){return!0x0;}[_0x24780b(0xd1)](){const _0x2993cb=_0x24780b,{editor:_0xaef35e}=this;_0xaef35e[_0x2993cb(0xcf)][_0x2993cb(0xc5)](_0x2993cb(0xd6),new _0x232585(_0xaef35e)),_0xaef35e[_0x2993cb(0xcf)][_0x2993cb(0xc5)](_0x2993cb(0xc7),new _0x18b95a(_0xaef35e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2fd047}from'ckeditor5/src/core.js';import{ButtonView as _0x305f67}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2ff329}from'ckeditor5/src/icons.js';import{createElement as _0x20fd8c}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 _0x2fd047{['_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 _0x44a5f2=this['editor'];_0x44a5f2['ui']['componentFactory']['add']('uploadcareImageEdit',_0xb61d32=>{const _0x3c717c=_0x44a5f2['commands']['get']('uploadcareImageEdit'),_0x4c8d86=new _0x305f67(_0xb61d32),t=_0xb61d32['t'];return _0x4c8d86['set']({'icon':_0x2ff329,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4c8d86['bind']('isEnabled')['to'](_0x3c717c),_0x4c8d86['bind']('isOn')['to'](_0x3c717c,'isActive'),this['listenTo'](_0x4c8d86,'execute',()=>{_0x44a5f2['execute']('uploadcareImageEdit'),_0x44a5f2['editing']['view']['focus']();}),_0x4c8d86;}),this['_initConfig']();}['_initConfig'](){const _0x1f84f9=_0x20fd8c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f84f9),this['listenTo'](this['editor'],'destroy',()=>{_0x1f84f9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3a5f(){const _0x3a2fdb=['getSelectedElement','4xsyMrP','100dEufgn','element','2574565eWHRjf','imageBlock','imageInline','setAttributes','isEnabled','123111FyeNTk','editor','selection','2685140KOUdPH','8329849hdjRhL','removeAttribute','model','128XbTnGG','change','563KHNclo','4954944SxtNSU','558399CcGCui','sizes','document','srcset','refresh','5AwPTjS','execute'];_0x3a5f=function(){return _0x3a2fdb;};return _0x3a5f();}const _0x4931d3=_0x21eb;function _0x21eb(_0x4293f1,_0x367efc){const _0x3a5f8d=_0x3a5f();return _0x21eb=function(_0x21ebd2,_0x3a4df5){_0x21ebd2=_0x21ebd2-0xfa;let _0x59fbba=_0x3a5f8d[_0x21ebd2];return _0x59fbba;},_0x21eb(_0x4293f1,_0x367efc);}(function(_0x21f523,_0x85007f){const _0x319ec8=_0x21eb,_0x475ccf=_0x21f523();while(!![]){try{const _0x3e0909=-parseInt(_0x319ec8(0x110))/0x1*(parseInt(_0x319ec8(0x100))/0x2)+-parseInt(_0x319ec8(0x112))/0x3*(parseInt(_0x319ec8(0xff))/0x4)+parseInt(_0x319ec8(0xfc))/0x5*(parseInt(_0x319ec8(0x111))/0x6)+parseInt(_0x319ec8(0x102))/0x7+-parseInt(_0x319ec8(0x10e))/0x8*(-parseInt(_0x319ec8(0x107))/0x9)+parseInt(_0x319ec8(0x10a))/0xa+-parseInt(_0x319ec8(0x10b))/0xb;if(_0x3e0909===_0x85007f)break;else _0x475ccf['push'](_0x475ccf['shift']());}catch(_0x5b09b8){_0x475ccf['push'](_0x475ccf['shift']());}}}(_0x3a5f,0xad34f));import{Command as _0x21d66c}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x21d66c{[_0x4931d3(0xfb)](){const _0x4cea2=_0x4931d3,_0x160900=this[_0x4cea2(0x108)][_0x4cea2(0x10d)][_0x4cea2(0x114)][_0x4cea2(0x109)][_0x4cea2(0xfe)]();this[_0x4cea2(0x106)]=Boolean(_0x160900&&(_0x160900['is'](_0x4cea2(0x101),_0x4cea2(0x103))||_0x160900['is'](_0x4cea2(0x101),_0x4cea2(0x104))));}[_0x4931d3(0xfd)](_0x5f4a8a){const _0x1d314f=_0x4931d3,_0x49a8d2=this[_0x1d314f(0x108)][_0x1d314f(0x10d)][_0x1d314f(0x114)][_0x1d314f(0x109)][_0x1d314f(0xfe)]();this[_0x1d314f(0x108)][_0x1d314f(0x10d)][_0x1d314f(0x10f)](_0x4430af=>{const _0x194ffe=_0x1d314f;_0x4430af[_0x194ffe(0x105)](_0x5f4a8a,_0x49a8d2),_0x4430af[_0x194ffe(0x10c)](_0x194ffe(0xfa),_0x49a8d2),_0x4430af[_0x194ffe(0x10c)](_0x194ffe(0x113),_0x49a8d2);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3f4bf9=_0x3d02;(function(_0x437f9c,_0x30af8d){var _0x5d3d23=_0x3d02,_0x1e4d74=_0x437f9c();while(!![]){try{var _0x317859=-parseInt(_0x5d3d23(0x10e))/0x1*(parseInt(_0x5d3d23(0x105))/0x2)+-parseInt(_0x5d3d23(0x102))/0x3+parseInt(_0x5d3d23(0x110))/0x4+-parseInt(_0x5d3d23(0x10d))/0x5*(parseInt(_0x5d3d23(0x104))/0x6)+parseInt(_0x5d3d23(0x10c))/0x7*(parseInt(_0x5d3d23(0x103))/0x8)+parseInt(_0x5d3d23(0x10f))/0x9*(-parseInt(_0x5d3d23(0x109))/0xa)+parseInt(_0x5d3d23(0x10b))/0xb;if(_0x317859===_0x30af8d)break;else _0x1e4d74['push'](_0x1e4d74['shift']());}catch(_0x4e7ef1){_0x1e4d74['push'](_0x1e4d74['shift']());}}}(_0x24c1,0x39e0c));import{Plugin as _0x2b75e2}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x57385b}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x24c1(){var _0x5482d4=['12313oAggbJ','55WXZrDj','3FLfmFQ','228645wuBTLR','1842936xliJNB','requires','851643NMLGvp','640UKOeqh','224082FQSCGd','3772PaQaiP','pluginName','UploadcareImageEdit','isPremiumPlugin','150ywiItU','isOfficialPlugin','7887495TIyeje'];_0x24c1=function(){return _0x5482d4;};return _0x24c1();}function _0x3d02(_0x548d02,_0xcabe8a){var _0x24c1a6=_0x24c1();return _0x3d02=function(_0x3d0210,_0x53a07e){_0x3d0210=_0x3d0210-0x102;var _0x498c2f=_0x24c1a6[_0x3d0210];return _0x498c2f;},_0x3d02(_0x548d02,_0xcabe8a);}import{UploadcareImageEditUI as _0x3dc993}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2b75e2{static get[_0x3f4bf9(0x106)](){var _0x364fd4=_0x3f4bf9;return _0x364fd4(0x107);}static get[_0x3f4bf9(0x111)](){return[_0x57385b,_0x3dc993];}static get[_0x3f4bf9(0x10a)](){return!0x0;}static get[_0x3f4bf9(0x108)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5f2f49=_0x91c9;(function(_0x554957,_0x4cacb3){const _0x200920=_0x91c9,_0x29dece=_0x554957();while(!![]){try{const _0x40ab38=-parseInt(_0x200920(0x1a0))/0x1*(-parseInt(_0x200920(0x1c1))/0x2)+-parseInt(_0x200920(0x1dd))/0x3*(-parseInt(_0x200920(0x1b7))/0x4)+-parseInt(_0x200920(0x1ae))/0x5+parseInt(_0x200920(0x1e2))/0x6*(-parseInt(_0x200920(0x1d2))/0x7)+-parseInt(_0x200920(0x1ac))/0x8+parseInt(_0x200920(0x1bb))/0x9+parseInt(_0x200920(0x1c4))/0xa;if(_0x40ab38===_0x4cacb3)break;else _0x29dece['push'](_0x29dece['shift']());}catch(_0x5c348d){_0x29dece['push'](_0x29dece['shift']());}}}(_0x3d67,0x7ee32));import{Plugin as _0x2af71d}from'ckeditor5/src/core.js';import{IconDropbox as _0x1b80dc,IconFacebook as _0x5a8e0f,IconGoogleDrive as _0x245d3a,IconGooglePhotos as _0x3db27f,IconUploadcareImageUpload as _0x1355f6,IconUploadcareLink as _0x461b2c,IconOneDrive as _0x95db3c}from'ckeditor5/src/icons.js';import{ButtonView as _0x26a325,MenuBarMenuListItemButtonView as _0x2f1a59}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x30dae6}from'./uploadcareconfig.js';function _0x91c9(_0x5e9ea9,_0x2208cd){const _0x3d6785=_0x3d67();return _0x91c9=function(_0x91c94a,_0x521be7){_0x91c94a=_0x91c94a-0x19d;let _0x3081ee=_0x3d6785[_0x91c94a];return _0x3081ee;},_0x91c9(_0x5e9ea9,_0x2208cd);}import{getTranslation as _0x36aa82}from'./utils/common-translations.js';function _0x3d67(){const _0x57c847=['upload','get','reduce','_createButton','entries','withText','ImageInsertUI','isImageSelected','_createDropdownButtons','582KtReqk','uploadcareLicenseKeyEvaluationLimit','init','trialLimit','forEach','715314OsxzMB','uploadcareLicenseKeyUsageLimit','_showLicenseError','plugins','GDrive','URL','isOfficialPlugin','UploadcareUI','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyValid','featureNotAllowed','execute','GPhotos','editor','config','42eeOyKp','bind','_getIntegrationKey','text','domainLimit','isPremiumPlugin','invalid','uploadcare','evaluationLimit','usageLimit','Facebook','expired','5209512VEKZMS','Dropbox','4642955DkkcZj','tooltip','isEnabled','shortText','uploadcareLicenseKeyTrialLimit','map','uploadcareLicenseKeyDomainLimit','_createMenuBarButtons','assetManager','15364dMPwyV','uploadcareLicenseKeyExpired','registerIntegration','Insert','1674108UcvnvQ','locale','_normalizeConfigSourceList','pluginName','push','commands','30436XZTymn','uploadcareLicenseKeyNotAllowed','Local','7676260OsYpet','label','licenseKey','has','icon','url','Uploadcare','OneDrive','Replace','afterInit','uploadcare.uploader.sourceList','type','destroy','_createToolbarButton','14aHYoSF','_licenseKeyCheckInterval'];_0x3d67=function(){return _0x57c847;};return _0x3d67();}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x2af71d{[_0x5f2f49(0x1c6)];[_0x5f2f49(0x1d3)];static get[_0x5f2f49(0x1be)](){const _0x3d63e6=_0x5f2f49;return _0x3d63e6(0x1e9);}static get[_0x5f2f49(0x1e8)](){return!0x0;}static get[_0x5f2f49(0x1a5)](){return!0x0;}[_0x5f2f49(0x1df)](){const _0x5e7896=_0x5f2f49;this[_0x5e7896(0x1c6)]=this[_0x5e7896(0x19e)][_0x5e7896(0x19f)][_0x5e7896(0x1d5)](_0x5e7896(0x1c6));const _0x23a988=this[_0x5e7896(0x19e)];this[_0x5e7896(0x1d3)]=setInterval(()=>{const _0x84acd2=_0x5e7896;let _0x292dda;for(const _0x4bc77b in _0x23a988){const _0x478d94=_0x4bc77b,_0x2af4d9=_0x23a988[_0x478d94];if(_0x84acd2(0x1eb)==_0x2af4d9||_0x84acd2(0x1ea)==_0x2af4d9||_0x84acd2(0x1b8)==_0x2af4d9||_0x84acd2(0x1b4)==_0x2af4d9||_0x84acd2(0x1c2)==_0x2af4d9||_0x84acd2(0x1de)==_0x2af4d9||_0x84acd2(0x1b2)==_0x2af4d9||_0x84acd2(0x1e3)==_0x2af4d9){delete _0x23a988[_0x478d94],_0x292dda=_0x2af4d9,clearInterval(this[_0x84acd2(0x1d3)]),this[_0x84acd2(0x1d3)]=void 0x0;break;}}_0x84acd2(0x1ea)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a6)),_0x84acd2(0x1b8)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1ab)),_0x84acd2(0x1b4)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a4)),_0x84acd2(0x1c2)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1ec),_0x84acd2(0x1ca)),_0x84acd2(0x1de)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a8)),_0x84acd2(0x1b2)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1e0)),_0x84acd2(0x1e3)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a9));},0x3e8);}[_0x5f2f49(0x1cd)](){const _0x2599ae=_0x5f2f49,{editor:_0x2b9965}=this,_0x3a3730=_0x2b9965[_0x2599ae(0x1c0)][_0x2599ae(0x1d5)](_0x2599ae(0x1a7));if(!_0x3a3730)return;const _0x2a8bab=this[_0x2599ae(0x1bd)](_0x2b9965[_0x2599ae(0x19f)][_0x2599ae(0x1d5)](_0x2599ae(0x1ce)))[_0x2599ae(0x1d6)]((_0x3cdffa,_0x4de9f9)=>{const _0x590c52=_0x2599ae,_0x3411bc=this[_0x590c52(0x1a2)](_0x4de9f9[_0x590c52(0x1cf)]);return _0x3cdffa[_0x3411bc]||(_0x3cdffa[_0x3411bc]=[]),_0x3cdffa[_0x3411bc][_0x590c52(0x1bf)](_0x4de9f9),_0x3cdffa;},{});_0x2b9965[_0x2599ae(0x1e5)][_0x2599ae(0x1c7)](_0x2599ae(0x1da))&&_0x2b9965[_0x2599ae(0x1c0)][_0x2599ae(0x1d5)](_0x2599ae(0x1a7))&&Object[_0x2599ae(0x1d8)](_0x2a8bab)[_0x2599ae(0x1e1)](([_0x5caa32,_0x51a5eb])=>{const _0x20b704=_0x2599ae;_0x2b9965[_0x20b704(0x1e5)][_0x20b704(0x1d5)](_0x20b704(0x1da))[_0x20b704(0x1b9)]({'name':_0x5caa32,'observable':()=>_0x3a3730,'buttonViewCreator':()=>this[_0x20b704(0x1d1)](_0x51a5eb),'formViewCreator':()=>this[_0x20b704(0x1dc)](_0x51a5eb),'menuBarButtonViewCreator':()=>this[_0x20b704(0x1b5)](_0x51a5eb),'override':_0x20b704(0x1b6)!==_0x5caa32});});}[_0x5f2f49(0x1d0)](){const _0x22b0df=_0x5f2f49;super[_0x22b0df(0x1d0)](),this[_0x22b0df(0x1d3)]&&clearInterval(this[_0x22b0df(0x1d3)]);}[_0x5f2f49(0x1bd)](_0x5c469d){const _0x5076dd=_0x5f2f49,{locale:_0x5581d6}=this[_0x5076dd(0x19e)];return _0x5c469d[_0x5076dd(0x1b3)](_0x550e7a=>{const _0x31793b=_0x5076dd,_0x31c9ec=_0x36aa82(_0x5581d6,_0x550e7a,_0x31793b(0x1ba));switch(_0x550e7a){case _0x30dae6[_0x31793b(0x1c3)]:return{'icon':_0x1355f6,'type':_0x30dae6[_0x31793b(0x1c3)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1e7)]:return{'icon':_0x461b2c,'type':_0x30dae6[_0x31793b(0x1e7)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1ad)]:return{'icon':_0x1b80dc,'type':_0x30dae6[_0x31793b(0x1ad)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1aa)]:return{'icon':_0x5a8e0f,'type':_0x30dae6[_0x31793b(0x1aa)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1e6)]:return{'icon':_0x245d3a,'type':_0x30dae6[_0x31793b(0x1e6)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x19d)]:return{'icon':_0x3db27f,'type':_0x30dae6[_0x31793b(0x19d)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1cb)]:return{'icon':_0x95db3c,'type':_0x30dae6[_0x31793b(0x1cb)],..._0x31c9ec};}});}[_0x5f2f49(0x1a2)](_0x3eaa99){const _0x16aa15=_0x5f2f49;switch(_0x3eaa99){case _0x30dae6[_0x16aa15(0x1c3)]:return _0x16aa15(0x1d4);case _0x30dae6[_0x16aa15(0x1e7)]:return _0x16aa15(0x1c9);default:return _0x16aa15(0x1b6);}}[_0x5f2f49(0x1d7)](_0x3231e0,_0x5ae4eb){const _0x2b2016=_0x5f2f49,_0x2ba857=this[_0x2b2016(0x19e)],_0x2b8e18=new _0x3231e0(_0x2ba857[_0x2b2016(0x1bc)]),_0x29a62c=_0x2ba857[_0x2b2016(0x1c0)][_0x2b2016(0x1d5)](_0x2b2016(0x1a7));return _0x2b8e18[_0x2b2016(0x1a1)](_0x2b2016(0x1b0))['to'](_0x29a62c),_0x2b8e18['on'](_0x2b2016(0x1ed),()=>{const _0xfd79ef=_0x2b2016;_0x29a62c[_0xfd79ef(0x1ed)](_0x5ae4eb);}),_0x2b8e18;}[_0x5f2f49(0x1d1)](_0x1056b7){const _0x52d637=_0x5f2f49,{locale:_0x32fe61}=this[_0x52d637(0x19e)],_0x4cfc7b=this[_0x52d637(0x19e)][_0x52d637(0x1e5)][_0x52d637(0x1d5)](_0x52d637(0x1da)),_0x511f84=_0x1056b7[0x0],_0x22c2ce=this[_0x52d637(0x1d7)](_0x26a325,_0x511f84[_0x52d637(0x1cf)]);return _0x22c2ce[_0x52d637(0x1c8)]=_0x511f84[_0x52d637(0x1c8)],_0x22c2ce[_0x52d637(0x1a1)](_0x52d637(0x1c5))['to'](_0x4cfc7b,_0x52d637(0x1db),_0x210f68=>_0x36aa82(_0x32fe61,_0x511f84[_0x52d637(0x1cf)],_0x210f68?_0x52d637(0x1cc):_0x52d637(0x1ba))[_0x52d637(0x1a3)]),_0x22c2ce[_0x52d637(0x1af)]=!0x0,_0x22c2ce;}[_0x5f2f49(0x1dc)](_0x3af4ae){const _0x276e2c=_0x5f2f49,{locale:_0x4360f6}=this[_0x276e2c(0x19e)],_0x1041e2=this[_0x276e2c(0x19e)][_0x276e2c(0x1e5)][_0x276e2c(0x1d5)](_0x276e2c(0x1da));return _0x3af4ae[_0x276e2c(0x1b3)](_0x44da42=>{const _0x1ed72b=_0x276e2c,_0x4825d9=this[_0x1ed72b(0x1d7)](_0x26a325,_0x44da42[_0x1ed72b(0x1cf)]);return _0x4825d9[_0x1ed72b(0x1d9)]=!0x0,_0x4825d9[_0x1ed72b(0x1c8)]=_0x44da42[_0x1ed72b(0x1c8)],_0x4825d9[_0x1ed72b(0x1a1)](_0x1ed72b(0x1c5))['to'](_0x1041e2,_0x1ed72b(0x1db),_0x4d3e05=>_0x36aa82(_0x4360f6,_0x44da42[_0x1ed72b(0x1cf)],_0x4d3e05?_0x1ed72b(0x1cc):_0x1ed72b(0x1ba))[_0x1ed72b(0x1a3)]),_0x4825d9;});}[_0x5f2f49(0x1b5)](_0x1b7f63){const _0x45a252=_0x5f2f49;return _0x1b7f63[_0x45a252(0x1b3)](_0x294f6d=>{const _0x418ba3=_0x45a252,_0x4c71f7=this[_0x418ba3(0x1d7)](_0x2f1a59,_0x294f6d[_0x418ba3(0x1cf)]);return _0x4c71f7[_0x418ba3(0x1c8)]=_0x294f6d[_0x418ba3(0x1c8)],_0x4c71f7[_0x418ba3(0x1c5)]=_0x294f6d[_0x418ba3(0x1b1)],_0x4c71f7;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x300b66}from'ckeditor5/src/core.js';import{FileRepository as _0x1ff5c2}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x80ff36}from'./uploadcareediting.js';import{UploadUtils as _0x3b85ae}from'./utils/uploadutils.js';import{getImageUrls as _0x186642}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x300b66{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1ff5c2,_0x80ff36];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x19e91e=this['editor'];if(!!!_0x19e91e['config']['get']('uploadcare'))return;_0x19e91e['plugins']['get'](_0x1ff5c2)['createUploadAdapter']=_0x5f3d0a=>new k(_0x5f3d0a,_0x19e91e),_0x19e91e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x54a68e,{imageElement:_0x46502d,data:_0x45416e})=>{_0x19e91e['model']['change'](_0x14cc0d=>{_0x14cc0d['setAttribute']('uploadcareImageId',_0x45416e['uploadcareImageId'],_0x46502d);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5ee5c5,_0x4dc1c6){this['loader']=_0x5ee5c5,this['editor']=_0x4dc1c6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x36cf4d=await this['loader']['file'];return _0x3b85ae['upload']({'file':_0x36cf4d,'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':_0x3a3abe=>{_0x3a3abe&&_0x3a3abe['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a3abe['value']);}})['then'](async _0x2e8818=>{const {imageFallbackUrl:_0x362aa3,imageSources:_0x3be0e4}=_0x186642(_0x2e8818['cdnUrl'],_0x2e8818['imageInfo']['width']);return{'uploadcareImageId':_0x2e8818['uuid'],'default':_0x362aa3,'sources':_0x3be0e4};})['catch'](()=>{const _0x54ac86=t('Cannot\x20upload\x20file:')+('\x20'+_0x36cf4d['name']+'.');return Promise['reject'](_0x54ac86);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x405392}from'../uploadcareconfig.js';export function getTranslation(_0x1f06f7,_0x78f089,_0x50b700){const t=_0x1f06f7['t'],_0x53081d=_0x1f06f7['t'];switch(_0x78f089){case _0x405392['Local']:return{'text':_0x53081d('Insert'===_0x50b700?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x53081d('From\x20computer')};case _0x405392['URL']:return{'text':'Insert'===_0x50b700?_0x53081d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x53081d('Via\x20URL')};case _0x405392['Dropbox']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x405392['Facebook']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x405392['GDrive']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x405392['GPhotos']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x405392['OneDrive']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x78f089;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2189(){var _0x5393a4=['319586SqyIRx','focusCycler','1588140pDWyUF','252024inlkhc','getFocusableElement','471090OmmQtf','bindTemplate','429580Tdapbg','focusTracker','1645626AhusXp','true','createCollection','forwardCycle','175GSbVqj','fire','205242pfTbEK','div'];_0x2189=function(){return _0x5393a4;};return _0x2189();}var _0x25cfea=_0x3bd3;function _0x3bd3(_0x1498bb,_0x2ba80b){var _0x218939=_0x2189();return _0x3bd3=function(_0x3bd3b2,_0xf104e7){_0x3bd3b2=_0x3bd3b2-0x89;var _0x4dce14=_0x218939[_0x3bd3b2];return _0x4dce14;},_0x3bd3(_0x1498bb,_0x2ba80b);}(function(_0x441d78,_0x19c616){var _0x271243=_0x3bd3,_0x30e9f0=_0x441d78();while(!![]){try{var _0x4aabf1=-parseInt(_0x271243(0x92))/0x1+-parseInt(_0x271243(0x99))/0x2+-parseInt(_0x271243(0x90))/0x3+parseInt(_0x271243(0x94))/0x4+-parseInt(_0x271243(0x97))/0x5+-parseInt(_0x271243(0x8a))/0x6+-parseInt(_0x271243(0x8e))/0x7*(-parseInt(_0x271243(0x95))/0x8);if(_0x4aabf1===_0x19c616)break;else _0x30e9f0['push'](_0x30e9f0['shift']());}catch(_0x588e98){_0x30e9f0['push'](_0x30e9f0['shift']());}}}(_0x2189,0x34153));import{FocusTracker as _0x155a44}from'ckeditor5/src/utils.js';import{View as _0x54c7f2,FocusCycler as _0x2fda86}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x54c7f2{[_0x25cfea(0x89)];[_0x25cfea(0x93)];constructor(_0x233836){var _0x52a9b5=_0x25cfea;super(_0x233836),this[_0x52a9b5(0x89)]=new _0x155a44(),this[_0x52a9b5(0x93)]=new _0x2fda86({'focusables':this[_0x52a9b5(0x8c)](),'focusTracker':this[_0x52a9b5(0x89)]});}[_0x25cfea(0x96)](){var _0x2958b2=_0x25cfea;return{'tag':_0x2958b2(0x91),'attributes':{'aria-hidden':_0x2958b2(0x8b),'tabindex':'0'},'on':{'focus':this[_0x2958b2(0x98)]['to'](()=>{var _0x25b318=_0x2958b2;this[_0x25b318(0x93)][_0x25b318(0x8f)](_0x25b318(0x8d));})}};}}
|