@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251118.0 → 0.0.0-nightly-20251120.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 _0x14d7e6=_0x23a9;(function(_0xc32a48,_0x3960c7){const _0x150648=_0x23a9,_0x28d082=_0xc32a48();while(!![]){try{const _0x2c10e7=parseInt(_0x150648(0x162))/0x1+parseInt(_0x150648(0x16a))/0x2+-parseInt(_0x150648(0x153))/0x3*(-parseInt(_0x150648(0x12f))/0x4)+parseInt(_0x150648(0x144))/0x5+parseInt(_0x150648(0x172))/0x6*(parseInt(_0x150648(0x15c))/0x7)+-parseInt(_0x150648(0x170))/0x8+parseInt(_0x150648(0x148))/0x9*(-parseInt(_0x150648(0x142))/0xa);if(_0x2c10e7===_0x3960c7)break;else _0x28d082['push'](_0x28d082['shift']());}catch(_0x5ada20){_0x28d082['push'](_0x28d082['shift']());}}}(_0x1d7a,0x92769));import{Plugin as _0x53592c}from'ckeditor5/src/core.js';import{Dialog as _0x4a3d5f}from'ckeditor5/src/ui.js';import{createElement as _0x51f448,global as _0x5cc863,uid as _0x988528}from'ckeditor5/src/utils.js';function _0x1d7a(){const _0x446861=['27868RDuapK','render','iconHrefResolver','fromCharCode','listenTo','join','uploadcareImageId','attributeToAttribute','replaceImageSource','editor','uploadcare.uploader','pluginName','input[uploadcare-file-input]','model','removeAttribute','getAttribute','contentLanguage','ctxElement','insertImage','39030eIbaki','uploader-','5014645kzTHnb','isPremiumPlugin','data-uc-image-id','extend','1899TtTiTF','afterInit','body','isOfficialPlugin','true','view','PictureEditing','closeMax','editing','ucContextId','downcast','171tSIwtv','href','destroy','imageBlock','#uc-icon-arrow-down','imageInline','configElement','appendChild','locale','56266QBJlmq','cleanupImage','_ctxElement','_initConversion','config','_initImageProcessingIndicator','74585edkhJE','once','upcast','_initCtx','_initConfig','querySelector','add','uc-upload-ctx-provider','282416QNZxOK','commands','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploadcare.pubkey','UploadcareEditing','for','8033864PMEHmp','selection','606UHXUgK','uc-config','isRegistered','elementToAttribute','uploadcare','execute','uploadcareImageReplace','remove','get','_initSchema','schema','getSelectedElement','requires','init','document','map','_configElement','conversion'];_0x1d7a=function(){return _0x446861;};return _0x1d7a();}import{UploadcareCommand as _0x4ef9ee}from'./uploadcarecommand.js';function _0x23a9(_0x5a57ac,_0x425d78){const _0x1d7a49=_0x1d7a();return _0x23a9=function(_0x23a9a5,_0x2223d4){_0x23a9a5=_0x23a9a5-0x12f;let _0x2cfab4=_0x1d7a49[_0x23a9a5];return _0x2cfab4;},_0x23a9(_0x5a57ac,_0x425d78);}import{UploadcareUploadAdapter as _0xf2cd8}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x23f420}from'./utils/editingutils.js';export class UploadcareEditing extends _0x53592c{[_0x14d7e6(0x182)]=null;[_0x14d7e6(0x15e)]=null;static get[_0x14d7e6(0x13a)](){const _0x4479a7=_0x14d7e6;return _0x4479a7(0x16e);}static get[_0x14d7e6(0x17e)](){const _0x3e26ad=_0x14d7e6;return[_0x3e26ad(0x14e),_0xf2cd8,_0x4a3d5f];}static get[_0x14d7e6(0x14b)](){return!0x0;}static get[_0x14d7e6(0x145)](){return!0x0;}[_0x14d7e6(0x151)];get[_0x14d7e6(0x159)](){const _0x3394fa=_0x14d7e6;return this[_0x3394fa(0x182)];}get[_0x14d7e6(0x140)](){const _0x5c287e=_0x14d7e6;return this[_0x5c287e(0x15e)];}constructor(_0x54c133){const _0xea3c96=_0x14d7e6;super(_0x54c133),this[_0xea3c96(0x151)]=_0x988528();}[_0x14d7e6(0x17f)](){const _0x26fc0e=_0x14d7e6,_0x532029=this[_0x26fc0e(0x138)];_0x532029[_0x26fc0e(0x16b)][_0x26fc0e(0x168)](_0x26fc0e(0x176),new _0x4ef9ee(_0x532029));}[_0x14d7e6(0x149)](){const _0x46a5c1=_0x14d7e6;this[_0x46a5c1(0x17b)](),this[_0x46a5c1(0x15f)](),this[_0x46a5c1(0x166)](),this[_0x46a5c1(0x165)](),this[_0x46a5c1(0x161)](),this[_0x46a5c1(0x133)](this[_0x46a5c1(0x138)],_0x46a5c1(0x155),()=>{const _0x120746=_0x46a5c1;this[_0x120746(0x182)]&&(this[_0x120746(0x182)][_0x120746(0x179)](),this[_0x120746(0x182)]=null),this[_0x120746(0x15e)]&&(this[_0x120746(0x15e)][_0x120746(0x179)](),this[_0x120746(0x15e)]=null);const _0x46f932=_0x5cc863[_0x120746(0x180)][_0x120746(0x167)](_0x120746(0x13b));_0x46f932&&_0x46f932[_0x120746(0x179)]();}),async function(_0x222f74){const _0x2b0561=_0x5703b8([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]),_0xbb7336=0x535f8c3a,_0x23549b=0x5358f54a^_0xbb7336,_0x308759=window[_0x5703b8([0x44,0x61,0x74,0x65])][_0x5703b8([0x6e,0x6f,0x77])](),_0x59de8f=_0x222f74[_0x5703b8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4636ef=new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x213292=>{_0x59de8f[_0x5703b8([0x6f,0x6e,0x63,0x65])](_0x5703b8([0x72,0x65,0x61,0x64,0x79]),_0x213292);}),_0x4e9206={[_0x5703b8([0x6b,0x74,0x79])]:_0x5703b8([0x45,0x43]),[_0x5703b8([0x75,0x73,0x65])]:_0x5703b8([0x73,0x69,0x67]),[_0x5703b8([0x63,0x72,0x76])]:_0x5703b8([0x50,0x2d,0x32,0x35,0x36]),[_0x5703b8([0x78])]:_0x5703b8([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]),[_0x5703b8([0x79])]:_0x5703b8([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]),[_0x5703b8([0x61,0x6c,0x67])]:_0x5703b8([0x45,0x53,0x32,0x35,0x36])},_0x3caabd=_0x59de8f[_0x5703b8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5703b8([0x67,0x65,0x74])](_0x5703b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2642e6(){let _0x1afb68,_0x127ffb=null,_0x280dd9=null;try{if(_0x3caabd==_0x5703b8([0x47,0x50,0x4c]))return _0x5703b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1afb68=_0x225177(),!_0x1afb68)return _0x5703b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1afb68[_0x5703b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x280dd9=_0x35bdb8(_0x1afb68[_0x5703b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1afb68[_0x5703b8([0x6a,0x74,0x69])])),await _0x44381d()?_0x40c676()?_0x67c6b1()?_0x5703b8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44ee95()?(_0x1afb68[_0x5703b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5703b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x127ffb=_0x11e6a5(_0x5703b8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1afb68[_0x5703b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5703b8([0x74,0x72,0x69,0x61,0x6c])&&(_0x127ffb=_0x11e6a5(_0x5703b8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33e1f6()):_0x5703b8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5703b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5703b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5703b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x67c6b1(){const _0x4977e1=[_0x5703b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5703b8([0x74,0x72,0x69,0x61,0x6c])][_0x5703b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afb68[_0x5703b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x308759/0x3e8:0xe10*_0x23549b;return _0x1afb68[_0x5703b8([0x65,0x78,0x70])]<_0x4977e1;}function _0x40c676(){const _0x34a0c3=_0x1afb68[_0x5703b8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x34a0c3&&(!!_0x34a0c3[_0x5703b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5703b8([0x2a]))||!!_0x34a0c3[_0x5703b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5703b8([0x55,0x50,0x4c,0x43])));}function _0x44ee95(){const _0x379c22=_0x23a9,_0x35a8e0=_0x1afb68[_0x5703b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35a8e0||0x0==_0x35a8e0[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d2320}=new URL(window[_0x5703b8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x379c22(0x154)]);if(_0x35a8e0[_0x5703b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d2320))return!0x0;const _0x4836ce=_0x2d2320[_0x5703b8([0x73,0x70,0x6c,0x69,0x74])](_0x5703b8([0x2e]));return _0x35a8e0[_0x5703b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18273b=>_0x18273b[_0x5703b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5703b8([0x2a])))[_0x5703b8([0x6d,0x61,0x70])](_0x260ef6=>_0x260ef6[_0x5703b8([0x73,0x70,0x6c,0x69,0x74])](_0x5703b8([0x2e])))[_0x5703b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c9586=>_0x2c9586[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4836ce[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5703b8([0x6d,0x61,0x70])](_0x1a2fb8=>Array(_0x4836ce[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a2fb8[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5703b8([0x66,0x69,0x6c,0x6c])](_0x1a2fb8[0x0]===_0x5703b8([0x2a])?_0x5703b8([0x2a]):'')[_0x5703b8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a2fb8))[_0x5703b8([0x73,0x6f,0x6d,0x65])](_0x549569=>_0x4836ce[_0x5703b8([0x65,0x76,0x65,0x72,0x79])]((_0x4609dd,_0x5f5141)=>_0x549569[_0x5f5141]===_0x4609dd||_0x549569[_0x5f5141]===_0x5703b8([0x2a])));}function _0x33e1f6(){return _0x127ffb&&_0x280dd9?new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a4d63,_0x43d42c)=>{_0x127ffb[_0x5703b8([0x74,0x68,0x65,0x6e])](_0x2a4d63,_0x43d42c),_0x280dd9[_0x5703b8([0x74,0x68,0x65,0x6e])](_0xd444b6=>{_0xd444b6!=_0x5703b8([0x56,0x61,0x6c,0x69,0x64])&&_0x2a4d63(_0xd444b6);},_0x43d42c);}):_0x127ffb||_0x280dd9||_0x5703b8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35bdb8(_0x367ee4,_0x48701b){return new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37fcb1=>{if(_0x4635b0())return _0x37fcb1(_0x5703b8([0x56,0x61,0x6c,0x69,0x64]));_0x5d0eac(),_0x59de8f[_0x5703b8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5703b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57560b=!0x1;const _0x32234c=_0x988528();function _0x30253d(_0x43d30b){return!!_0x43d30b&&(typeof _0x43d30b===_0x5703b8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x43d30b===_0x5703b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x43d30b[_0x5703b8([0x74,0x68,0x65,0x6e])]===_0x5703b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x43d30b[_0x5703b8([0x63,0x61,0x74,0x63,0x68])]===_0x5703b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5089ca(_0x58706c){_0x4ab25c(_0x58706c)[_0x5703b8([0x74,0x68,0x65,0x6e])](_0x461c46=>{if(!_0x461c46||_0x461c46[_0x5703b8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5703b8([0x6f,0x6b]))return _0x5703b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1df060(_0x4d265e(_0x32234c+_0x48701b))!=_0x461c46[_0x5703b8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5703b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5703b8([0x56,0x61,0x6c,0x69,0x64]);})[_0x5703b8([0x74,0x68,0x65,0x6e])](_0x430ac0=>(_0x4d9f8e(),_0x430ac0),()=>{const _0x3a6dce=_0x4eb749();return null==_0x3a6dce?(_0x4d9f8e(),_0x5703b8([0x56,0x61,0x6c,0x69,0x64])):_0x5703b8(_0x308759-_0x3a6dce>(0x7753083a^_0xbb7336)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5703b8([0x74,0x68,0x65,0x6e])](_0x37fcb1)[_0x5703b8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x37fcb1(_0x5703b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44e058=0x536962ba^_0xbb7336;function _0x4d9f8e(){const _0x5db0e0=_0x5703b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1df060(_0x4d265e(_0x367ee4)),_0x1a6737=_0x143c68(_0x1df060(window[_0x5703b8([0x4d,0x61,0x74,0x68])][_0x5703b8([0x63,0x65,0x69,0x6c])](_0x308759/_0x44e058)));window[_0x5703b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5703b8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5db0e0,_0x1a6737);}function _0x4eb749(){const _0x47b314=_0x5703b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1df060(_0x4d265e(_0x367ee4)),_0x2af328=window[_0x5703b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5703b8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47b314);return _0x2af328?window[_0x5703b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x143c68(_0x2af328),0x10)*_0x44e058:null;}function _0x4ab25c(_0x58380a){return new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c3c5b,_0x1d344c)=>{_0x58380a[_0x5703b8([0x74,0x68,0x65,0x6e])](_0x1c3c5b,_0x1d344c),window[_0x5703b8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d344c,0x535e58fa^_0xbb7336);});}}_0x59de8f[_0x5703b8([0x6f,0x6e])](_0x5703b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c9b28,_0x45f5dc)=>{if(_0x45f5dc[0x0]!=_0x367ee4)return _0x37fcb1(_0x5703b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45f5dc[0x1]={..._0x45f5dc[0x1],[_0x5703b8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32234c};},{[_0x5703b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5703b8([0x68,0x69,0x67,0x68])}),_0x59de8f[_0x5703b8([0x6f,0x6e])](_0x5703b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd5a204=>{_0x30253d(_0xd5a204[_0x5703b8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57560b=!0x0,_0x5089ca(_0xd5a204[_0x5703b8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5703b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5703b8([0x6c,0x6f,0x77])}),_0x4636ef[_0x5703b8([0x74,0x68,0x65,0x6e])](()=>{_0x57560b||_0x37fcb1(_0x5703b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4635b0(){return _0x59de8f[_0x5703b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5703b8([0x76,0x69,0x65,0x77])][_0x5703b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5703b8([0x61,0x75,0x74,0x6f]);}function _0x5d0eac(){_0x59de8f[_0x5703b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5703b8([0x76,0x69,0x65,0x77])][_0x5703b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5703b8([0x61,0x75,0x74,0x6f]);}}function _0x11e6a5(_0x4e2893){const _0x9b2ace=[new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x549ce1=>setTimeout(_0x549ce1,0x5356b2f6^_0xbb7336)),_0x4636ef[_0x5703b8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24e16d=>{let _0x3b867d=0x0;_0x59de8f[_0x5703b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5703b8([0x6f,0x6e])](_0x5703b8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x391011,_0x5f1ac9)=>{_0x5f1ac9[0x0][_0x5703b8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b867d++,_0x3b867d==(0x535f8dc2^_0xbb7336)&&(_0x24e16d(),_0x391011[_0x5703b8([0x6f,0x66,0x66])]());});}))];return window[_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5703b8([0x72,0x61,0x63,0x65])](_0x9b2ace)[_0x5703b8([0x74,0x68,0x65,0x6e])](()=>_0x4e2893);}async function _0x4d5a10(){await _0x4636ef,_0x59de8f[_0x5703b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5703b8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2131d2,_0x59de8f[_0x5703b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5703b8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2131d2,_0x59de8f[_0x5703b8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5703b8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50af71(_0x63a10b){const _0x45662f=_0x5a0c08();_0x59de8f[_0x45662f]=_0x5703b8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x63a10b,_0x63a10b!=_0x5703b8([0x56,0x61,0x6c,0x69,0x64])&&_0x4d5a10();}function _0x5a0c08(){const _0x2ce335=window[_0x5703b8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5703b8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5703b8([0x6e,0x6f,0x77])]())[_0x5703b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5703b8([0x2e]),'');let _0x2676bc=_0x5703b8([0x68]);for(let _0x18f6ae=0x0;_0x18f6ae<_0x2ce335[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18f6ae+=0x2){let _0x525489=window[_0x5703b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ce335[_0x5703b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18f6ae,_0x18f6ae+0x2));_0x525489>=_0x2b0561[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x525489-=_0x2b0561[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2676bc+=_0x2b0561[_0x525489];}return _0x2676bc;}function _0x225177(){const _0x57b680=_0x3caabd[_0x5703b8([0x73,0x70,0x6c,0x69,0x74])](_0x5703b8([0x2e]));if(0x3!=_0x57b680[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43ea5b(_0x57b680[0x1]);function _0x43ea5b(_0x26db7f){const _0x2d1e3a=_0x24cc8d(_0x26db7f);return _0x2d1e3a&&_0x18613f()?_0x2d1e3a:null;function _0x18613f(){const _0x3a6e23=_0x2d1e3a[_0x5703b8([0x6a,0x74,0x69])],_0x56a9ea=window[_0x5703b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a6e23[_0x5703b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6e23[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x195473={..._0x2d1e3a,[_0x5703b8([0x6a,0x74,0x69])]:_0x3a6e23[_0x5703b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a6e23[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x195473[_0x5703b8([0x76,0x63])],_0x4d265e(_0x195473)==_0x56a9ea;}}}async function _0x44381d(){let _0x75a90a=!0x0;try{const _0x157789=_0x3caabd[_0x5703b8([0x73,0x70,0x6c,0x69,0x74])](_0x5703b8([0x2e])),[_0x54da32,_0xcd9c22,_0x26806c]=_0x157789;return _0x28793b(_0x54da32),await _0x4ca045(_0x54da32,_0xcd9c22,_0x26806c),_0x75a90a;}catch{return!0x1;}function _0x28793b(_0x36c305){const _0x426093=_0x24cc8d(_0x36c305);_0x426093&&_0x426093[_0x5703b8([0x61,0x6c,0x67])]==_0x5703b8([0x45,0x53,0x32,0x35,0x36])||(_0x75a90a=!0x1);}async function _0x4ca045(_0x364039,_0x21fda6,_0x37e8e8){const _0x12b271=window[_0x5703b8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5703b8([0x66,0x72,0x6f,0x6d])](_0x483a1b(_0x37e8e8),_0x566737=>_0x566737[_0x5703b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16cabe=new window[(_0x5703b8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5703b8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x364039+_0x5703b8([0x2e])+_0x21fda6),_0x313695=window[_0x5703b8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5703b8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x313695)return;const _0x558580=await _0x313695[_0x5703b8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5703b8([0x6a,0x77,0x6b]),_0x4e9206,{[_0x5703b8([0x6e,0x61,0x6d,0x65])]:_0x5703b8([0x45,0x43,0x44,0x53,0x41]),[_0x5703b8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5703b8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5703b8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x313695[_0x5703b8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5703b8([0x6e,0x61,0x6d,0x65])]:_0x5703b8([0x45,0x43,0x44,0x53,0x41]),[_0x5703b8([0x68,0x61,0x73,0x68])]:{[_0x5703b8([0x6e,0x61,0x6d,0x65])]:_0x5703b8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x558580,_0x12b271,_0x16cabe)||(_0x75a90a=!0x1);}}function _0x24cc8d(_0x4a65a1){return _0x4a65a1[_0x5703b8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5703b8([0x65,0x79]))?JSON[_0x5703b8([0x70,0x61,0x72,0x73,0x65])](_0x483a1b(_0x4a65a1)):null;}function _0x483a1b(_0x2ea89e){return window[_0x5703b8([0x61,0x74,0x6f,0x62])](_0x2ea89e[_0x5703b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5703b8([0x2b]))[_0x5703b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5703b8([0x2f])));}function _0x4d265e(_0x43c5d7){let _0x37f0ea=0x1505;function _0x23f0cc(_0x9d784){for(let _0x284a78=0x0;_0x284a78<_0x9d784[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x284a78++){const _0x3a11db=_0x9d784[_0x5703b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x284a78);_0x37f0ea=(_0x37f0ea<<0x5)+_0x37f0ea+_0x3a11db,_0x37f0ea&=_0x37f0ea;}}function _0xe5c4fb(_0x529ade){Array[_0x5703b8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x529ade)?_0x529ade[_0x5703b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe5c4fb):_0x529ade&&typeof _0x529ade==_0x5703b8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5703b8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x529ade)[_0x5703b8([0x73,0x6f,0x72,0x74])]()[_0x5703b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc2acb4,_0x136bae])=>{_0x23f0cc(_0xc2acb4),_0xe5c4fb(_0x136bae);}):_0x23f0cc(window[_0x5703b8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x529ade));}return _0xe5c4fb(_0x43c5d7),_0x37f0ea>>>0x0;}function _0x1df060(_0x2e9108){return _0x2e9108[_0x5703b8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5703b8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5703b8([0x30]));}function _0x143c68(_0x5415c4){return _0x5415c4[_0x5703b8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5703b8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5703b8([0x6a,0x6f,0x69,0x6e])]('');}function _0x2131d2(){}function _0x5703b8(_0x3af9c7){const _0x46559a=_0x23a9;return _0x3af9c7[_0x46559a(0x181)](_0x3f7c0a=>String[_0x46559a(0x132)](_0x3f7c0a))[_0x46559a(0x134)]('');}_0x50af71(await _0x2642e6());}(this);}[_0x14d7e6(0x17b)](){const _0x6d3380=_0x14d7e6,_0x493316=this[_0x6d3380(0x138)][_0x6d3380(0x13c)][_0x6d3380(0x17c)];_0x493316[_0x6d3380(0x174)](_0x6d3380(0x156))&&_0x493316[_0x6d3380(0x147)](_0x6d3380(0x156),{'allowAttributes':[_0x6d3380(0x135)]}),_0x493316[_0x6d3380(0x174)](_0x6d3380(0x158))&&_0x493316[_0x6d3380(0x147)](_0x6d3380(0x158),{'allowAttributes':[_0x6d3380(0x135)]});}[_0x14d7e6(0x15f)](){const _0x410d80=_0x14d7e6,_0x54190c=this[_0x410d80(0x138)];_0x54190c[_0x410d80(0x183)][_0x410d80(0x16f)](_0x410d80(0x152))[_0x410d80(0x136)]({'model':_0x410d80(0x135),'view':_0x410d80(0x146)}),_0x54190c[_0x410d80(0x183)][_0x410d80(0x16f)](_0x410d80(0x164))[_0x410d80(0x175)]({'model':{'key':_0x410d80(0x135),'value':_0x3086dd=>_0x3086dd[_0x410d80(0x13e)](_0x410d80(0x146))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x12d662=_0x54190c[_0x410d80(0x16b)][_0x410d80(0x17a)](_0x410d80(0x137));_0x12d662&&this[_0x410d80(0x133)](_0x12d662,_0x410d80(0x15d),(_0x5c0373,[_0x436546,_0x4a524a])=>{const _0x2677bc=_0x410d80;_0x436546[_0x2677bc(0x13d)](_0x2677bc(0x135),_0x4a524a);});}[_0x14d7e6(0x166)](){const _0x4676a4=_0x14d7e6,_0x207d52=this[_0x4676a4(0x138)][_0x4676a4(0x160)][_0x4676a4(0x17a)](_0x4676a4(0x139))||{},_0x328aff=this[_0x4676a4(0x138)][_0x4676a4(0x160)][_0x4676a4(0x17a)](_0x4676a4(0x16d))||'';this[_0x4676a4(0x182)]=_0x51f448(_0x5cc863[_0x4676a4(0x180)],_0x4676a4(0x173),{..._0x207d52,'pubkey':_0x328aff,'ctx-name':_0x4676a4(0x143)+this[_0x4676a4(0x151)],'sourceList':'','imgOnly':_0x4676a4(0x14c),'removeCopyright':_0x4676a4(0x14c),'localeName':this[_0x4676a4(0x138)][_0x4676a4(0x15b)][_0x4676a4(0x13f)],'externalSourcesEmbedCss':_0x4676a4(0x16c)}),this[_0x4676a4(0x182)][_0x4676a4(0x131)]=_0xa5a51e=>{const _0x9f5448=_0x4676a4;if(_0x9f5448(0x14f)==_0xa5a51e)return _0x9f5448(0x157);},_0x5cc863[_0x4676a4(0x180)][_0x4676a4(0x14a)][_0x4676a4(0x15a)](this[_0x4676a4(0x182)]);}[_0x14d7e6(0x165)](){const _0x22c407=_0x14d7e6;this[_0x22c407(0x15e)]=_0x51f448(_0x5cc863[_0x22c407(0x180)],_0x22c407(0x169),{'ctx-name':_0x22c407(0x143)+this[_0x22c407(0x151)]}),_0x5cc863[_0x22c407(0x180)][_0x22c407(0x14a)][_0x22c407(0x15a)](this[_0x22c407(0x15e)]);}[_0x14d7e6(0x161)](){const _0x2a1190=_0x14d7e6,_0x1b46d6=this[_0x2a1190(0x138)][_0x2a1190(0x16b)][_0x2a1190(0x17a)](_0x2a1190(0x141));_0x1b46d6&&this[_0x2a1190(0x133)](_0x1b46d6,_0x2a1190(0x177),()=>{const _0x23f371=_0x2a1190,_0x307d3a=this[_0x23f371(0x138)][_0x23f371(0x13c)][_0x23f371(0x180)][_0x23f371(0x171)][_0x23f371(0x17d)]();_0x307d3a&&_0x307d3a[_0x23f371(0x13e)](_0x23f371(0x135))&&this[_0x23f371(0x138)][_0x23f371(0x150)][_0x23f371(0x14d)][_0x23f371(0x163)](_0x23f371(0x130),()=>{const _0x46d821=_0x23f371;_0x23f420(this[_0x46d821(0x138)],_0x307d3a);});});const _0x30ceff=this[_0x2a1190(0x138)][_0x2a1190(0x16b)][_0x2a1190(0x17a)](_0x2a1190(0x178));_0x30ceff&&this[_0x2a1190(0x133)](_0x30ceff,_0x2a1190(0x177),()=>{const _0x105c83=_0x2a1190,_0x4e9bc6=this[_0x105c83(0x138)][_0x105c83(0x13c)][_0x105c83(0x180)][_0x105c83(0x171)][_0x105c83(0x17d)]();_0x4e9bc6&&_0x4e9bc6[_0x105c83(0x13e)](_0x105c83(0x135))&&this[_0x105c83(0x138)][_0x105c83(0x150)][_0x105c83(0x14d)][_0x105c83(0x163)](_0x105c83(0x130),()=>{const _0x38e108=_0x105c83;_0x23f420(this[_0x38e108(0x138)],_0x4e9bc6);});});}}
|
|
23
|
+
function _0x4487(_0x1d27a8,_0x2ee2a1){const _0x32c267=_0x32c2();return _0x4487=function(_0x4487ff,_0x506ead){_0x4487ff=_0x4487ff-0x16c;let _0x3f2e14=_0x32c267[_0x4487ff];return _0x3f2e14;},_0x4487(_0x1d27a8,_0x2ee2a1);}function _0x32c2(){const _0x331004=['uploadcareImageId','elementToAttribute','model','_initConversion','_initSchema','listenTo','imageBlock','ucContextId','imageInline','10jiusAK','join','isPremiumPlugin','iconHrefResolver','uploadcare.uploader','508sExcwZ','fromCharCode','934020Zvgqdn','insertImage','attributeToAttribute','uploadcareImageReplace','downcast','\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','40027DOhsyn','UploadcareEditing','init','add','extend','removeAttribute','1896584jAcyDC','view','render','_initImageProcessingIndicator','getSelectedElement','afterInit','PictureEditing','pluginName','map','_configElement','querySelector','locale','uploadcare.pubkey','execute','editor','editing','#uc-icon-arrow-down','href','configElement','schema','body','858179bwbICd','true','once','for','data-uc-image-id','getAttribute','selection','requires','ctxElement','document','uploader-','uploadcare','destroy','18TbrzDl','isRegistered','config','647523BoCnSa','contentLanguage','uc-config','closeMax','uc-upload-ctx-provider','replaceImageSource','input[uploadcare-file-input]','get','_ctxElement','isOfficialPlugin','_initCtx','appendChild','upcast','_initConfig','4795unHKxx','conversion','cleanupImage','commands','remove','7875873pvMArv'];_0x32c2=function(){return _0x331004;};return _0x32c2();}const _0x420c03=_0x4487;(function(_0x364b39,_0x454425){const _0x668d50=_0x4487,_0x288ec8=_0x364b39();while(!![]){try{const _0x829326=-parseInt(_0x668d50(0x1b3))/0x1+parseInt(_0x668d50(0x1ad))/0x2+parseInt(_0x668d50(0x189))/0x3+-parseInt(_0x668d50(0x1ab))/0x4*(parseInt(_0x668d50(0x197))/0x5)+-parseInt(_0x668d50(0x186))/0x6*(-parseInt(_0x668d50(0x179))/0x7)+parseInt(_0x668d50(0x1b9))/0x8+parseInt(_0x668d50(0x19c))/0x9*(-parseInt(_0x668d50(0x1a6))/0xa);if(_0x829326===_0x454425)break;else _0x288ec8['push'](_0x288ec8['shift']());}catch(_0x2a0c7b){_0x288ec8['push'](_0x288ec8['shift']());}}}(_0x32c2,0x3d3ae));import{Plugin as _0x3c0948}from'ckeditor5/src/core.js';import{Dialog as _0x2437a6}from'ckeditor5/src/ui.js';import{createElement as _0x28bd77,global as _0x77f11a,uid as _0x1c9d8c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5297fd}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x588791}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xce4a12}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3c0948{[_0x420c03(0x16d)]=null;[_0x420c03(0x191)]=null;static get[_0x420c03(0x1c0)](){const _0x3e4f5e=_0x420c03;return _0x3e4f5e(0x1b4);}static get[_0x420c03(0x180)](){const _0x29188e=_0x420c03;return[_0x29188e(0x1bf),_0x588791,_0x2437a6];}static get[_0x420c03(0x192)](){return!0x0;}static get[_0x420c03(0x1a8)](){return!0x0;}[_0x420c03(0x1a4)];get[_0x420c03(0x176)](){const _0x261d70=_0x420c03;return this[_0x261d70(0x16d)];}get[_0x420c03(0x181)](){const _0x34ca2f=_0x420c03;return this[_0x34ca2f(0x191)];}constructor(_0x20fe1e){const _0x52f12d=_0x420c03;super(_0x20fe1e),this[_0x52f12d(0x1a4)]=_0x1c9d8c();}[_0x420c03(0x1b5)](){const _0x2eb8d1=_0x420c03,_0x3245e4=this[_0x2eb8d1(0x172)];_0x3245e4[_0x2eb8d1(0x19a)][_0x2eb8d1(0x1b6)](_0x2eb8d1(0x184),new _0x5297fd(_0x3245e4));}[_0x420c03(0x1be)](){const _0xe9330c=_0x420c03;this[_0xe9330c(0x1a1)](),this[_0xe9330c(0x1a0)](),this[_0xe9330c(0x196)](),this[_0xe9330c(0x193)](),this[_0xe9330c(0x1bc)](),this[_0xe9330c(0x1a2)](this[_0xe9330c(0x172)],_0xe9330c(0x185),()=>{const _0x25ec6a=_0xe9330c;this[_0x25ec6a(0x16d)]&&(this[_0x25ec6a(0x16d)][_0x25ec6a(0x19b)](),this[_0x25ec6a(0x16d)]=null),this[_0x25ec6a(0x191)]&&(this[_0x25ec6a(0x191)][_0x25ec6a(0x19b)](),this[_0x25ec6a(0x191)]=null);const _0x3fa224=_0x77f11a[_0x25ec6a(0x182)][_0x25ec6a(0x16e)](_0x25ec6a(0x18f));_0x3fa224&&_0x3fa224[_0x25ec6a(0x19b)]();}),async function(_0x543279){const _0x5b4f89=_0x3689f9([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]),_0x3dad79=0x535f8c3a,_0x5adcab=0x5358f59a^_0x3dad79,_0x19a60c=window[_0x3689f9([0x44,0x61,0x74,0x65])][_0x3689f9([0x6e,0x6f,0x77])](),_0x1f2301=_0x543279[_0x3689f9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x157111=new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff23e=>{_0x1f2301[_0x3689f9([0x6f,0x6e,0x63,0x65])](_0x3689f9([0x72,0x65,0x61,0x64,0x79]),_0x4ff23e);}),_0x493cf6={[_0x3689f9([0x6b,0x74,0x79])]:_0x3689f9([0x45,0x43]),[_0x3689f9([0x75,0x73,0x65])]:_0x3689f9([0x73,0x69,0x67]),[_0x3689f9([0x63,0x72,0x76])]:_0x3689f9([0x50,0x2d,0x32,0x35,0x36]),[_0x3689f9([0x78])]:_0x3689f9([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]),[_0x3689f9([0x79])]:_0x3689f9([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]),[_0x3689f9([0x61,0x6c,0x67])]:_0x3689f9([0x45,0x53,0x32,0x35,0x36])},_0x484664=_0x1f2301[_0x3689f9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3689f9([0x67,0x65,0x74])](_0x3689f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2afd97(){let _0x4a96d5,_0x5d0a8d=null,_0x58e59b=null;try{if(_0x484664==_0x3689f9([0x47,0x50,0x4c]))return _0x3689f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a96d5=_0x43035b(),!_0x4a96d5)return _0x3689f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a96d5[_0x3689f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x58e59b=_0x1d83b9(_0x4a96d5[_0x3689f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a96d5[_0x3689f9([0x6a,0x74,0x69])])),await _0x22e158()?_0x49150e()?_0x4ba837()?_0x3689f9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59e0ec()?(_0x4a96d5[_0x3689f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3689f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d0a8d=_0x5017d7(_0x3689f9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a96d5[_0x3689f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3689f9([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d0a8d=_0x5017d7(_0x3689f9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a556b()):_0x3689f9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3689f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3689f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3689f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4ba837(){const _0x316337=[_0x3689f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3689f9([0x74,0x72,0x69,0x61,0x6c])][_0x3689f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a96d5[_0x3689f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19a60c/0x3e8:0xe10*_0x5adcab;return _0x4a96d5[_0x3689f9([0x65,0x78,0x70])]<_0x316337;}function _0x49150e(){const _0x2489c7=_0x4a96d5[_0x3689f9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2489c7&&(!!_0x2489c7[_0x3689f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3689f9([0x2a]))||!!_0x2489c7[_0x3689f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3689f9([0x55,0x50,0x4c,0x43])));}function _0x59e0ec(){const _0x147377=_0x4487,_0x216bbb=_0x4a96d5[_0x3689f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x216bbb||0x0==_0x216bbb[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48e130}=new URL(window[_0x3689f9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x147377(0x175)]);if(_0x216bbb[_0x3689f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e130))return!0x0;const _0x2c1777=_0x48e130[_0x3689f9([0x73,0x70,0x6c,0x69,0x74])](_0x3689f9([0x2e]));return _0x216bbb[_0x3689f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29382d=>_0x29382d[_0x3689f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3689f9([0x2a])))[_0x3689f9([0x6d,0x61,0x70])](_0x4e8a6c=>_0x4e8a6c[_0x3689f9([0x73,0x70,0x6c,0x69,0x74])](_0x3689f9([0x2e])))[_0x3689f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x294c40=>_0x294c40[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c1777[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3689f9([0x6d,0x61,0x70])](_0x29d602=>Array(_0x2c1777[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29d602[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3689f9([0x66,0x69,0x6c,0x6c])](_0x29d602[0x0]===_0x3689f9([0x2a])?_0x3689f9([0x2a]):'')[_0x3689f9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29d602))[_0x3689f9([0x73,0x6f,0x6d,0x65])](_0x3adef3=>_0x2c1777[_0x3689f9([0x65,0x76,0x65,0x72,0x79])]((_0x2ab4a9,_0x4aeaaf)=>_0x3adef3[_0x4aeaaf]===_0x2ab4a9||_0x3adef3[_0x4aeaaf]===_0x3689f9([0x2a])));}function _0x2a556b(){return _0x5d0a8d&&_0x58e59b?new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10a05d,_0xa26f)=>{_0x5d0a8d[_0x3689f9([0x74,0x68,0x65,0x6e])](_0x10a05d,_0xa26f),_0x58e59b[_0x3689f9([0x74,0x68,0x65,0x6e])](_0x36bb30=>{_0x36bb30!=_0x3689f9([0x56,0x61,0x6c,0x69,0x64])&&_0x10a05d(_0x36bb30);},_0xa26f);}):_0x5d0a8d||_0x58e59b||_0x3689f9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d83b9(_0x3a5314,_0x8c8b74){return new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1289be=>{if(_0x43974c())return _0x1289be(_0x3689f9([0x56,0x61,0x6c,0x69,0x64]));_0x5a003a(),_0x1f2301[_0x3689f9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3689f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23c9f9=!0x1;const _0x55023b=_0x1c9d8c();function _0x46ba90(_0x198ba7){return!!_0x198ba7&&(typeof _0x198ba7===_0x3689f9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x198ba7===_0x3689f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x198ba7[_0x3689f9([0x74,0x68,0x65,0x6e])]===_0x3689f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x198ba7[_0x3689f9([0x63,0x61,0x74,0x63,0x68])]===_0x3689f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x272561(_0x5708ee){_0x3e9b37(_0x5708ee)[_0x3689f9([0x74,0x68,0x65,0x6e])](_0x3ddff1=>{if(!_0x3ddff1||_0x3ddff1[_0x3689f9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3689f9([0x6f,0x6b]))return _0x3689f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb288e3(_0x599ed0(_0x55023b+_0x8c8b74))!=_0x3ddff1[_0x3689f9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3689f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3689f9([0x56,0x61,0x6c,0x69,0x64]);})[_0x3689f9([0x74,0x68,0x65,0x6e])](_0xd4477a=>(_0x44b441(),_0xd4477a),()=>{const _0x41fd7e=_0x4e78c6();return null==_0x41fd7e?(_0x44b441(),_0x3689f9([0x56,0x61,0x6c,0x69,0x64])):_0x3689f9(_0x19a60c-_0x41fd7e>(0x7753083a^_0x3dad79)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3689f9([0x74,0x68,0x65,0x6e])](_0x1289be)[_0x3689f9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1289be(_0x3689f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x379536=0x536962ba^_0x3dad79;function _0x44b441(){const _0x2b30c3=_0x3689f9([0x6c,0x6c,0x63,0x74,0x2d])+_0xb288e3(_0x599ed0(_0x3a5314)),_0x9e9fed=_0x556dd8(_0xb288e3(window[_0x3689f9([0x4d,0x61,0x74,0x68])][_0x3689f9([0x63,0x65,0x69,0x6c])](_0x19a60c/_0x379536)));window[_0x3689f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3689f9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b30c3,_0x9e9fed);}function _0x4e78c6(){const _0x343b42=_0x3689f9([0x6c,0x6c,0x63,0x74,0x2d])+_0xb288e3(_0x599ed0(_0x3a5314)),_0x2fc76c=window[_0x3689f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3689f9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x343b42);return _0x2fc76c?window[_0x3689f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x556dd8(_0x2fc76c),0x10)*_0x379536:null;}function _0x3e9b37(_0x2943c6){return new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5598f8,_0x2477ad)=>{_0x2943c6[_0x3689f9([0x74,0x68,0x65,0x6e])](_0x5598f8,_0x2477ad),window[_0x3689f9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2477ad,0x535e58fa^_0x3dad79);});}}_0x1f2301[_0x3689f9([0x6f,0x6e])](_0x3689f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x10db0b,_0x230cb6)=>{if(_0x230cb6[0x0]!=_0x3a5314)return _0x1289be(_0x3689f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x230cb6[0x1]={..._0x230cb6[0x1],[_0x3689f9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x55023b};},{[_0x3689f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3689f9([0x68,0x69,0x67,0x68])}),_0x1f2301[_0x3689f9([0x6f,0x6e])](_0x3689f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x269625=>{_0x46ba90(_0x269625[_0x3689f9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23c9f9=!0x0,_0x272561(_0x269625[_0x3689f9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3689f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3689f9([0x6c,0x6f,0x77])}),_0x157111[_0x3689f9([0x74,0x68,0x65,0x6e])](()=>{_0x23c9f9||_0x1289be(_0x3689f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43974c(){return _0x1f2301[_0x3689f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3689f9([0x76,0x69,0x65,0x77])][_0x3689f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3689f9([0x61,0x75,0x74,0x6f]);}function _0x5a003a(){_0x1f2301[_0x3689f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3689f9([0x76,0x69,0x65,0x77])][_0x3689f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3689f9([0x61,0x75,0x74,0x6f]);}}function _0x5017d7(_0x3c829a){const _0x585682=[new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x115b1e=>setTimeout(_0x115b1e,0x5356b2f6^_0x3dad79)),_0x157111[_0x3689f9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58cf25=>{let _0x4e51d2=0x0;_0x1f2301[_0x3689f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3689f9([0x6f,0x6e])](_0x3689f9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1bc1b3,_0x20f9aa)=>{_0x20f9aa[0x0][_0x3689f9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e51d2++,_0x4e51d2==(0x535f8dc2^_0x3dad79)&&(_0x58cf25(),_0x1bc1b3[_0x3689f9([0x6f,0x66,0x66])]());});}))];return window[_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3689f9([0x72,0x61,0x63,0x65])](_0x585682)[_0x3689f9([0x74,0x68,0x65,0x6e])](()=>_0x3c829a);}async function _0x341e50(){await _0x157111,_0x1f2301[_0x3689f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3689f9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c207b,_0x1f2301[_0x3689f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3689f9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c207b,_0x1f2301[_0x3689f9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3689f9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16af93(_0x5c55f8){const _0x4f7958=_0x494b16();_0x1f2301[_0x4f7958]=_0x3689f9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c55f8,_0x5c55f8!=_0x3689f9([0x56,0x61,0x6c,0x69,0x64])&&_0x341e50();}function _0x494b16(){const _0x33fee6=window[_0x3689f9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3689f9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3689f9([0x6e,0x6f,0x77])]())[_0x3689f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3689f9([0x2e]),'');let _0xcba280=_0x3689f9([0x68]);for(let _0x1af528=0x0;_0x1af528<_0x33fee6[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1af528+=0x2){let _0x3100ff=window[_0x3689f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33fee6[_0x3689f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1af528,_0x1af528+0x2));_0x3100ff>=_0x5b4f89[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3100ff-=_0x5b4f89[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcba280+=_0x5b4f89[_0x3100ff];}return _0xcba280;}function _0x43035b(){const _0x325f2b=_0x484664[_0x3689f9([0x73,0x70,0x6c,0x69,0x74])](_0x3689f9([0x2e]));if(0x3!=_0x325f2b[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e8a26(_0x325f2b[0x1]);function _0x4e8a26(_0x3d9d06){const _0x47dab2=_0x300025(_0x3d9d06);return _0x47dab2&&_0x3cc946()?_0x47dab2:null;function _0x3cc946(){const _0x5dc1fe=_0x47dab2[_0x3689f9([0x6a,0x74,0x69])],_0x5bd34c=window[_0x3689f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dc1fe[_0x3689f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dc1fe[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30f85e={..._0x47dab2,[_0x3689f9([0x6a,0x74,0x69])]:_0x5dc1fe[_0x3689f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dc1fe[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30f85e[_0x3689f9([0x76,0x63])],_0x599ed0(_0x30f85e)==_0x5bd34c;}}}async function _0x22e158(){let _0x2232b9=!0x0;try{const _0x191373=_0x484664[_0x3689f9([0x73,0x70,0x6c,0x69,0x74])](_0x3689f9([0x2e])),[_0x3ffd29,_0x56e6be,_0x34e06f]=_0x191373;return _0x370bb1(_0x3ffd29),await _0x3512dd(_0x3ffd29,_0x56e6be,_0x34e06f),_0x2232b9;}catch{return!0x1;}function _0x370bb1(_0x4b4c90){const _0x1104ec=_0x300025(_0x4b4c90);_0x1104ec&&_0x1104ec[_0x3689f9([0x61,0x6c,0x67])]==_0x3689f9([0x45,0x53,0x32,0x35,0x36])||(_0x2232b9=!0x1);}async function _0x3512dd(_0x3d34b5,_0x2af45b,_0x426ee5){const _0x233556=window[_0x3689f9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3689f9([0x66,0x72,0x6f,0x6d])](_0x17ee80(_0x426ee5),_0x279af7=>_0x279af7[_0x3689f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd575ae=new window[(_0x3689f9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3689f9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d34b5+_0x3689f9([0x2e])+_0x2af45b),_0x6f3d72=window[_0x3689f9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3689f9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6f3d72)return;const _0xac52d8=await _0x6f3d72[_0x3689f9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3689f9([0x6a,0x77,0x6b]),_0x493cf6,{[_0x3689f9([0x6e,0x61,0x6d,0x65])]:_0x3689f9([0x45,0x43,0x44,0x53,0x41]),[_0x3689f9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3689f9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3689f9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6f3d72[_0x3689f9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3689f9([0x6e,0x61,0x6d,0x65])]:_0x3689f9([0x45,0x43,0x44,0x53,0x41]),[_0x3689f9([0x68,0x61,0x73,0x68])]:{[_0x3689f9([0x6e,0x61,0x6d,0x65])]:_0x3689f9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xac52d8,_0x233556,_0xd575ae)||(_0x2232b9=!0x1);}}function _0x300025(_0x358999){return _0x358999[_0x3689f9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3689f9([0x65,0x79]))?JSON[_0x3689f9([0x70,0x61,0x72,0x73,0x65])](_0x17ee80(_0x358999)):null;}function _0x17ee80(_0x56fbff){return window[_0x3689f9([0x61,0x74,0x6f,0x62])](_0x56fbff[_0x3689f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3689f9([0x2b]))[_0x3689f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3689f9([0x2f])));}function _0x599ed0(_0x1ed692){let _0x105b04=0x1505;function _0x384a79(_0x42dae9){for(let _0x3b2835=0x0;_0x3b2835<_0x42dae9[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b2835++){const _0x4381ac=_0x42dae9[_0x3689f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b2835);_0x105b04=(_0x105b04<<0x5)+_0x105b04+_0x4381ac,_0x105b04&=_0x105b04;}}function _0x8c55a9(_0x10e92f){Array[_0x3689f9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10e92f)?_0x10e92f[_0x3689f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8c55a9):_0x10e92f&&typeof _0x10e92f==_0x3689f9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3689f9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10e92f)[_0x3689f9([0x73,0x6f,0x72,0x74])]()[_0x3689f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dccb8,_0x39e51a])=>{_0x384a79(_0x3dccb8),_0x8c55a9(_0x39e51a);}):_0x384a79(window[_0x3689f9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10e92f));}return _0x8c55a9(_0x1ed692),_0x105b04>>>0x0;}function _0xb288e3(_0x4e7437){return _0x4e7437[_0x3689f9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3689f9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3689f9([0x30]));}function _0x556dd8(_0xb0e5fc){return _0xb0e5fc[_0x3689f9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3689f9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3689f9([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c207b(){}function _0x3689f9(_0x42882a){const _0x2eb603=_0x4487;return _0x42882a[_0x2eb603(0x16c)](_0x2faa30=>String[_0x2eb603(0x1ac)](_0x2faa30))[_0x2eb603(0x1a7)]('');}_0x16af93(await _0x2afd97());}(this);}[_0x420c03(0x1a1)](){const _0x1f43e7=_0x420c03,_0x42d082=this[_0x1f43e7(0x172)][_0x1f43e7(0x19f)][_0x1f43e7(0x177)];_0x42d082[_0x1f43e7(0x187)](_0x1f43e7(0x1a3))&&_0x42d082[_0x1f43e7(0x1b7)](_0x1f43e7(0x1a3),{'allowAttributes':[_0x1f43e7(0x19d)]}),_0x42d082[_0x1f43e7(0x187)](_0x1f43e7(0x1a5))&&_0x42d082[_0x1f43e7(0x1b7)](_0x1f43e7(0x1a5),{'allowAttributes':[_0x1f43e7(0x19d)]});}[_0x420c03(0x1a0)](){const _0x58025b=_0x420c03,_0x3bc6=this[_0x58025b(0x172)];_0x3bc6[_0x58025b(0x198)][_0x58025b(0x17c)](_0x58025b(0x1b1))[_0x58025b(0x1af)]({'model':_0x58025b(0x19d),'view':_0x58025b(0x17d)}),_0x3bc6[_0x58025b(0x198)][_0x58025b(0x17c)](_0x58025b(0x195))[_0x58025b(0x19e)]({'model':{'key':_0x58025b(0x19d),'value':_0x8138ea=>_0x8138ea[_0x58025b(0x17e)](_0x58025b(0x17d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2e1470=_0x3bc6[_0x58025b(0x19a)][_0x58025b(0x190)](_0x58025b(0x18e));_0x2e1470&&this[_0x58025b(0x1a2)](_0x2e1470,_0x58025b(0x199),(_0x20d251,[_0x15e5a2,_0x389a0d])=>{const _0x132389=_0x58025b;_0x15e5a2[_0x132389(0x1b8)](_0x132389(0x19d),_0x389a0d);});}[_0x420c03(0x196)](){const _0x36698f=_0x420c03,_0x485fc7=this[_0x36698f(0x172)][_0x36698f(0x188)][_0x36698f(0x190)](_0x36698f(0x1aa))||{},_0x535cfb=this[_0x36698f(0x172)][_0x36698f(0x188)][_0x36698f(0x190)](_0x36698f(0x170))||'';this[_0x36698f(0x16d)]=_0x28bd77(_0x77f11a[_0x36698f(0x182)],_0x36698f(0x18b),{..._0x485fc7,'pubkey':_0x535cfb,'ctx-name':_0x36698f(0x183)+this[_0x36698f(0x1a4)],'sourceList':'','imgOnly':_0x36698f(0x17a),'removeCopyright':_0x36698f(0x17a),'localeName':this[_0x36698f(0x172)][_0x36698f(0x16f)][_0x36698f(0x18a)],'externalSourcesEmbedCss':_0x36698f(0x1b2)}),this[_0x36698f(0x16d)][_0x36698f(0x1a9)]=_0x3d08d8=>{const _0x177928=_0x36698f;if(_0x177928(0x18c)==_0x3d08d8)return _0x177928(0x174);},_0x77f11a[_0x36698f(0x182)][_0x36698f(0x178)][_0x36698f(0x194)](this[_0x36698f(0x16d)]);}[_0x420c03(0x193)](){const _0xf8f35b=_0x420c03;this[_0xf8f35b(0x191)]=_0x28bd77(_0x77f11a[_0xf8f35b(0x182)],_0xf8f35b(0x18d),{'ctx-name':_0xf8f35b(0x183)+this[_0xf8f35b(0x1a4)]}),_0x77f11a[_0xf8f35b(0x182)][_0xf8f35b(0x178)][_0xf8f35b(0x194)](this[_0xf8f35b(0x191)]);}[_0x420c03(0x1bc)](){const _0x5baa6b=_0x420c03,_0x2f4a78=this[_0x5baa6b(0x172)][_0x5baa6b(0x19a)][_0x5baa6b(0x190)](_0x5baa6b(0x1ae));_0x2f4a78&&this[_0x5baa6b(0x1a2)](_0x2f4a78,_0x5baa6b(0x171),()=>{const _0x67583b=_0x5baa6b,_0x133f56=this[_0x67583b(0x172)][_0x67583b(0x19f)][_0x67583b(0x182)][_0x67583b(0x17f)][_0x67583b(0x1bd)]();_0x133f56&&_0x133f56[_0x67583b(0x17e)](_0x67583b(0x19d))&&this[_0x67583b(0x172)][_0x67583b(0x173)][_0x67583b(0x1ba)][_0x67583b(0x17b)](_0x67583b(0x1bb),()=>{const _0x1ab968=_0x67583b;_0xce4a12(this[_0x1ab968(0x172)],_0x133f56);});});const _0x54a73f=this[_0x5baa6b(0x172)][_0x5baa6b(0x19a)][_0x5baa6b(0x190)](_0x5baa6b(0x1b0));_0x54a73f&&this[_0x5baa6b(0x1a2)](_0x54a73f,_0x5baa6b(0x171),()=>{const _0x23cc40=_0x5baa6b,_0x745d5e=this[_0x23cc40(0x172)][_0x23cc40(0x19f)][_0x23cc40(0x182)][_0x23cc40(0x17f)][_0x23cc40(0x1bd)]();_0x745d5e&&_0x745d5e[_0x23cc40(0x17e)](_0x23cc40(0x19d))&&this[_0x23cc40(0x172)][_0x23cc40(0x173)][_0x23cc40(0x1ba)][_0x23cc40(0x17b)](_0x23cc40(0x1bb),()=>{const _0x1688f2=_0x23cc40;_0xce4a12(this[_0x1688f2(0x172)],_0x745d5e);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4dfb29,ObservableMixin as _0x4b3214}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x47886b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x558dab}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x289810}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xc41b9f}from'../../utils/uploadutils.js';import{getImageUrls as _0x23d31c,getImageDimension as _0x1acc80}from'../../utils/editingutils.js';import{isAncestor as _0x2883c2}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4b3214(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3d2854,_0x2ca637,_0x438fb3){super(),this['_editor']=_0x3d2854,this['_dialog']=_0x2ca637,this['_imageElement']=_0x438fb3,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 _0x3a5f78=this['_imageElement'],_0xd2e559=_0x3a5f78['getAttribute']('uploadcareImageId'),_0x2e6998=_0x3a5f78['getAttribute']('src');if(_0xd2e559)await this['_loadImageInfo'](_0xd2e559,_0x2e6998);else{if(this['_imageCache']['has'](_0x2e6998)){const _0x124f51=this['_imageCache']['get'](_0x2e6998);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x124f51['url'],this['imageDimension']=_0x124f51['dimension'],this['imageId']=_0x124f51['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1b064a}=this['_editor'],t=_0x1b064a['t'],_0x5d1afe=new _0x289810(_0x1b064a,this['imageStatus'],this['_attributes']);_0x5d1afe['bind']('status')['to'](this,'imageStatus'),_0x5d1afe['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5d1afe['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5d1afe['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5d1afe,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x558dab,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5d1afe,'position':_0x47886b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5d1afe['focus']();},'onHide':()=>{_0x5d1afe['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x40e64e=>!_0x2883c2(_0x40e64e,_0x5d1afe['element'])}});}['_loadImageInfo'](_0x5bf8be,_0x218f62){return _0xc41b9f['getInfo'](_0x5bf8be,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x55efbd=>{const {width:_0x28b312,height:_0xef5191}=_0x55efbd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x218f62,this['imageDimension']={'width':_0x28b312,'height':_0xef5191},this['imageId']=_0x5bf8be;})['catch'](_0xcbe694=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xcbe694['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3f8706,_0x451877){return this['_getImageAsFile'](_0x3f8706)['then'](_0x28ae83=>_0xc41b9f['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':_0x451877['signal'],'file':_0x28ae83,'onProgress':_0x55415e=>{_0x55415e&&_0x55415e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x55415e['value']));}}))['then'](_0x4fbb16=>{const {width:_0x2bde8e,height:_0x5d0647}=_0x4fbb16['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4fbb16['cdnUrl'],this['imageDimension']={'width':_0x2bde8e,'height':_0x5d0647},this['imageId']=_0x4fbb16['uuid'],this['imageUploadProgress']=null;const _0x25ed04=_0x3f8706['getAttribute']('src');this['_imageCache']['set'](_0x25ed04,{'id':_0x4fbb16['uuid'],'url':_0x4fbb16['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x70a434=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x70a434['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x31164b,_0x2fd388){_0x31164b['on']('apply',(_0x1016e3,_0x23d655)=>{this['_replaceImage'](_0x2fd388,_0x23d655['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x31164b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x31164b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x35a02a,_0x1cd218,_0x1f8024){const _0x5c07b9=this['_editor'],{width:_0x2b95e7,height:_0x36e5c1}=_0x1acc80(_0x1cd218,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xa5440e,imageSources:_0x29f9c7}=_0x23d31c(_0x1cd218,_0x2b95e7);_0x5c07b9['model']['change'](_0x33c1f7=>{if('$graveyard'===_0x35a02a['root']['rootName']){_0x5c07b9['execute']('insertImage',{'imageType':_0x35a02a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x35a02a['getAttributes']()),'uploadcareImageId':_0x1f8024,'src':_0xa5440e,'sources':_0x29f9c7,'width':_0x2b95e7,'height':_0x36e5c1}});const _0xfd8675=_0x35a02a['getChildren']();_0x35a02a=_0x5c07b9['model']['document']['selection']['getSelectedElement']();for(const _0x4f672b of _0xfd8675)_0x33c1f7['append'](_0x33c1f7['cloneElement'](_0x4f672b),_0x35a02a);}else _0x33c1f7['setSelection'](_0x35a02a,'on'),_0x5c07b9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x35a02a['getAttributes']()),'uploadcareImageId':_0x1f8024,'src':_0xa5440e,'sources':_0x29f9c7,'width':_0x2b95e7,'height':_0x36e5c1},_0x35a02a);_0x33c1f7['setSelection'](_0x35a02a,'on');});}async['_getImageAsFile'](_0x45bbf2){const _0x2d7bda=_0x4dfb29['window'],_0xe408b=_0x4dfb29['document']['location']['href'],_0x58dcc1=new _0x2d7bda['URL'](_0x45bbf2['getAttribute']('src'),_0xe408b);if('data:'===_0x58dcc1['protocol']){const _0x554841=_0x58dcc1['href']['split'](','),_0x23c4c9=_0x554841[0x0]['match'](/:(.*?);/)[0x1],_0x2da9dc=_0x23c4c9['split']('/')[0x1],_0x7c9dd7=_0x2d7bda['atob'](_0x554841[_0x554841['length']-0x1]);let _0x344526=_0x7c9dd7['length'];const _0x104d53=new _0x2d7bda['Uint8Array'](_0x344526);for(;_0x344526--;)_0x104d53[_0x344526]=_0x7c9dd7['charCodeAt'](_0x344526);return new _0x2d7bda['File']([_0x104d53],'image.'+_0x2da9dc,{'type':_0x23c4c9});}const _0x3859b9=_0x58dcc1['href']['split']('/'),_0x5b24b4=_0x3859b9[_0x3859b9['length']-0x1],_0x5cb892=_0x5b24b4['split']('.')[0x1];return _0x2d7bda['fetch'](_0x58dcc1['href'])['then'](_0x54c362=>_0x54c362['clone']()['blob']())['then'](_0x9605a3=>new _0x2d7bda['File']([_0x9605a3],_0x5b24b4,{'type':'image/'+_0x5cb892}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x2f2ac6,_0x4347f9){const _0xa6ac46=_0x3c0d,_0x37878a=_0x2f2ac6();while(!![]){try{const _0x3d2b06=parseInt(_0xa6ac46(0x1ff))/0x1*(parseInt(_0xa6ac46(0x1fd))/0x2)+parseInt(_0xa6ac46(0x1f9))/0x3*(parseInt(_0xa6ac46(0x1f4))/0x4)+-parseInt(_0xa6ac46(0x1f7))/0x5+-parseInt(_0xa6ac46(0x200))/0x6+-parseInt(_0xa6ac46(0x1f6))/0x7*(parseInt(_0xa6ac46(0x205))/0x8)+-parseInt(_0xa6ac46(0x1f8))/0x9+parseInt(_0xa6ac46(0x1fb))/0xa;if(_0x3d2b06===_0x4347f9)break;else _0x37878a['push'](_0x37878a['shift']());}catch(_0x29dcde){_0x37878a['push'](_0x37878a['shift']());}}}(_0x465a,0xbf9ca));function _0x3c0d(_0x1e7300,_0xe50045){const _0x465a90=_0x465a();return _0x3c0d=function(_0x3c0d0f,_0x2f1378){_0x3c0d0f=_0x3c0d0f-0x1f4;let _0x5d5a58=_0x465a90[_0x3c0d0f];return _0x5d5a58;},_0x3c0d(_0x1e7300,_0xe50045);}function _0x465a(){const _0x519b1d=['24522hEUVSi','uc-light','19426960VDEWTK','uc-cloud-image-editor','30yEXSoP','imageSrc','41507sUyKJv','4182474MVbALJ','setTemplate','bindTemplate','image-edit','ck-uploadcare-theme','1953008aroEgN','312oGnUww','set','7AXEHKM','4266520xuDfBc','5611698ZpAWOp'];_0x465a=function(){return _0x519b1d;};return _0x465a();}import{View as _0x3ee258}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x3ee258{constructor(_0x497bb8,_0x3ae31c){const _0x50b3d3=_0x3c0d;super(_0x497bb8);const _0x1344d1=this[_0x50b3d3(0x202)];this[_0x50b3d3(0x1f5)](_0x50b3d3(0x1fe),''),this[_0x50b3d3(0x201)]({'tag':_0x50b3d3(0x1fc),'attributes':{..._0x3ae31c,'class':[_0x50b3d3(0x1fa),_0x50b3d3(0x204)],'ctx-name':_0x50b3d3(0x203),'cdn-url':_0x1344d1['to'](_0x50b3d3(0x1fe))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x12a559}from'ckeditor5/src/icons.js';import{ButtonView as _0x4640c2,IconView as _0x265b5e,View as _0x313425}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x313425{constructor(_0x2bc433){super(_0x2bc433);const t=_0x2bc433['t'];this['set']('errorType',null);const _0x27ec83=new _0x4640c2(_0x2bc433);_0x27ec83['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x27ec83['withText']=!0x0,_0x27ec83['class']='ck-button-action',_0x27ec83['on']('execute',()=>{this['fire']('retry');}),_0x27ec83['bind']('isVisible')['to'](this,'errorType',_0x27bdbd=>'NotFound'!==_0x27bdbd);const _0x5e203b=new _0x265b5e();_0x5e203b['content']=_0x12a559,_0x5e203b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x52400c=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':[_0x5e203b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x52400c['to']('errorType',_0x5b08f7=>t('NotFound'!==_0x5b08f7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x27ec83]},{'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 _0x17434e,View as _0x45f6e5}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x45f6e5{constructor(_0x1c6b4e){super(_0x1c6b4e);const t=_0x1c6b4e['t'],_0xfba178=this['bindTemplate'],_0xd40327=new _0x17434e();_0xd40327['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':[_0xd40327,{'text':_0xfba178['to']('imageUploadProgress',_0x10a90b=>t('Loading\x20image...')+'\x20('+(_0x10a90b||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 _0x1def83=_0x2f81;function _0x2f81(_0x5f26f2,_0x4f6db8){const _0x4ecb73=_0x4ecb();return _0x2f81=function(_0x2f8194,_0x4a351e){_0x2f8194=_0x2f8194-0x132;let _0x1de2c0=_0x4ecb73[_0x2f8194];return _0x1de2c0;},_0x2f81(_0x5f26f2,_0x4f6db8);}(function(_0x3e0a30,_0x1d39be){const _0x8eede4=_0x2f81,_0x252bfd=_0x3e0a30();while(!![]){try{const _0x1cd4e8=-parseInt(_0x8eede4(0x14a))/0x1+-parseInt(_0x8eede4(0x150))/0x2*(-parseInt(_0x8eede4(0x136))/0x3)+-parseInt(_0x8eede4(0x14c))/0x4*(-parseInt(_0x8eede4(0x15a))/0x5)+parseInt(_0x8eede4(0x157))/0x6+-parseInt(_0x8eede4(0x15b))/0x7+parseInt(_0x8eede4(0x144))/0x8+-parseInt(_0x8eede4(0x15e))/0x9;if(_0x1cd4e8===_0x1d39be)break;else _0x252bfd['push'](_0x252bfd['shift']());}catch(_0x5c205a){_0x252bfd['push'](_0x252bfd['shift']());}}}(_0x4ecb,0x42795));import{View as _0x8f92a8}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5b60db}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x20b163}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3f9660}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x16ab9c}from'../../utils/dialogfocusmanagerview.js';function _0x4ecb(){const _0x5956df=['488385pWTxZf','addMany','toLowerCase','ck-uploadcare-form','_addErrorViewListeners','_focusableView','cancel','set','setTemplate','apply','getFocusableElement','nodeName','detail','_loadingView','237357gpBjiT','ck-reset_all-excluded','uc-cloud-image-editor','element','_waitForImageEditorComponent','_addUploadcareImageEditorListeners','cdnUrl','querySelector','filter','addEventListener','change:status','div','fire','render','1618136FeTFUj','createCollection','clear','once','add','_editingView','215334UjsfHS','status','40820jZjcki','_items','ready','error','2aoENdm','addedNodes','_errorView','uploading','disconnect','retry','target','712896jOXWax','length','observe','95QWfNJc','365547VPvtAk','focus','_setView'];_0x4ecb=function(){return _0x5956df;};return _0x4ecb();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x16ab9c{[_0x1def83(0x14d)];[_0x1def83(0x135)];[_0x1def83(0x152)];[_0x1def83(0x149)];[_0x1def83(0x163)];constructor(_0xc5ee4c,_0x1ef74b,_0x4b831e){const _0x4ebf3c=_0x1def83;super(_0xc5ee4c),this[_0x4ebf3c(0x14d)]=this[_0x4ebf3c(0x145)](),this[_0x4ebf3c(0x135)]=new _0x5b60db(_0xc5ee4c),this[_0x4ebf3c(0x152)]=new _0x20b163(_0xc5ee4c),this[_0x4ebf3c(0x149)]=new _0x3f9660(_0xc5ee4c,_0x4b831e),this[_0x4ebf3c(0x163)]=new _0x8f92a8(_0xc5ee4c),this[_0x4ebf3c(0x163)][_0x4ebf3c(0x166)](this[_0x4ebf3c(0x132)]()),this[_0x4ebf3c(0x165)](_0x4ebf3c(0x14b),_0x1ef74b),this[_0x4ebf3c(0x166)]({'tag':_0x4ebf3c(0x141),'attributes':{'class':['ck',_0x4ebf3c(0x137),_0x4ebf3c(0x161)],'tabindex':'-1'},'children':this[_0x4ebf3c(0x14d)]}),this[_0x4ebf3c(0x15d)](),this[_0x4ebf3c(0x147)](_0x4ebf3c(0x143),()=>{const _0x371565=_0x4ebf3c;this[_0x371565(0x13a)](this[_0x371565(0x139)],_0x1e23f5=>{const _0x3c4eb0=_0x371565;this[_0x3c4eb0(0x13b)](_0x1e23f5);});}),this['on'](_0x4ebf3c(0x140),()=>{const _0xb332b5=_0x4ebf3c;this[_0xb332b5(0x15d)]();}),this[_0x4ebf3c(0x162)]();}[_0x1def83(0x15c)](){const _0x5bb631=_0x1def83;this[_0x5bb631(0x139)][_0x5bb631(0x15c)]();}[_0x1def83(0x15d)](){const _0x4b4a2c=_0x1def83;switch(this[_0x4b4a2c(0x14d)][_0x4b4a2c(0x146)](),this[_0x4b4a2c(0x14b)]){case _0x4b4a2c(0x153):this[_0x4b4a2c(0x14d)][_0x4b4a2c(0x148)](this[_0x4b4a2c(0x135)]);break;case _0x4b4a2c(0x14f):this[_0x4b4a2c(0x14d)][_0x4b4a2c(0x148)](this[_0x4b4a2c(0x152)]);break;case _0x4b4a2c(0x14e):this[_0x4b4a2c(0x14d)][_0x4b4a2c(0x15f)]([this[_0x4b4a2c(0x149)],this[_0x4b4a2c(0x163)]]);}}[_0x1def83(0x13a)](_0x18dbcb,_0x3ceb1a){const _0x1dcfc9=_0x1def83,_0x4424c3=_0x1dcfc9(0x138),_0x358574=_0x18dbcb[_0x1dcfc9(0x13d)](_0x4424c3);if(_0x358574)return _0x3ceb1a(_0x358574);const _0x4731ff=new MutationObserver(_0x532157=>{const _0x24c7e2=_0x1dcfc9,_0x331341=_0x532157[_0x24c7e2(0x13e)](_0x5b6bcd=>_0x5b6bcd[_0x24c7e2(0x156)]===_0x18dbcb&&_0x5b6bcd[_0x24c7e2(0x151)][_0x24c7e2(0x158)]>0x0&&_0x5b6bcd[_0x24c7e2(0x151)][0x0][_0x24c7e2(0x133)][_0x24c7e2(0x160)]()===_0x4424c3);_0x331341[_0x24c7e2(0x158)]&&(_0x4731ff[_0x24c7e2(0x154)](),_0x3ceb1a(_0x331341[0x0][_0x24c7e2(0x151)][0x0]));});_0x4731ff[_0x1dcfc9(0x159)](_0x18dbcb,{'childList':!0x0,'subtree':!0x0});}[_0x1def83(0x13b)](_0x135051){const _0x2dcc7b=_0x1def83;_0x135051[_0x2dcc7b(0x13f)](_0x2dcc7b(0x167),_0x11a4ef=>{const _0x1c2634=_0x2dcc7b;this[_0x1c2634(0x142)](_0x1c2634(0x167),{'imageSrc':_0x11a4ef[_0x1c2634(0x134)][_0x1c2634(0x13c)]});}),_0x135051[_0x2dcc7b(0x13f)](_0x2dcc7b(0x164),()=>{const _0x1a7f72=_0x2dcc7b;this[_0x1a7f72(0x142)](_0x1a7f72(0x164));});}[_0x1def83(0x162)](){const _0x3b7ee8=_0x1def83;this[_0x3b7ee8(0x152)]['on'](_0x3b7ee8(0x155),()=>{const _0x5cb0b5=_0x3b7ee8;this[_0x5cb0b5(0x142)](_0x5cb0b5(0x155));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x587049=_0x37c5;(function(_0x589305,_0x29245d){const _0x15a01c=_0x37c5,_0x4e2010=_0x589305();while(!![]){try{const _0x182822=parseInt(_0x15a01c(0x8d))/0x1*(-parseInt(_0x15a01c(0x90))/0x2)+-parseInt(_0x15a01c(0x80))/0x3*(-parseInt(_0x15a01c(0x72))/0x4)+parseInt(_0x15a01c(0x87))/0x5+parseInt(_0x15a01c(0x7b))/0x6*(parseInt(_0x15a01c(0x73))/0x7)+-parseInt(_0x15a01c(0x81))/0x8*(parseInt(_0x15a01c(0x82))/0x9)+-parseInt(_0x15a01c(0x75))/0xa*(-parseInt(_0x15a01c(0x8b))/0xb)+-parseInt(_0x15a01c(0x7f))/0xc;if(_0x182822===_0x29245d)break;else _0x4e2010['push'](_0x4e2010['shift']());}catch(_0x110110){_0x4e2010['push'](_0x4e2010['shift']());}}}(_0x1bb0,0x7898f));import{Command as _0x10f821}from'ckeditor5/src/core.js';import{Dialog as _0x123459}from'ckeditor5/src/ui.js';function _0x37c5(_0x4041b1,_0x3a9237){const _0x1bb002=_0x1bb0();return _0x37c5=function(_0x37c54e,_0x5182b3){_0x37c54e=_0x37c54e-0x70;let _0x5462a3=_0x1bb002[_0x37c54e];return _0x5462a3;},_0x37c5(_0x4041b1,_0x3a9237);}import{UploadcareImageEditController as _0x16a11a}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5a0c94}from'../utils/editingutils.js';function _0x1bb0(){const _0x308fd7=['isEnabled','execute','12356004vAzpFH','54570aqPHXu','72dsOVQJ','621198XwCqTv','_isEditable','get','unbind','isActive','1284015TjdVsG','requires','imageEditController','document','12463zqFHKO','imageInline','1lENAaD','plugins','config','88208MJJWaz','set','element','refresh','200GrQptG','7pDPEYx','model','2870JjhAnt','imageBlock','bind','editor','selection','getSelectedElement','4184772hRwXpE','uploadcare.allowExternalImagesEditing'];_0x1bb0=function(){return _0x308fd7;};return _0x1bb0();}export class UploadcareImageEditCommand extends _0x10f821{[_0x587049(0x89)];static get[_0x587049(0x88)](){return[_0x123459];}[_0x587049(0x83)];constructor(_0x2fd1bf){const _0x3d0625=_0x587049;super(_0x2fd1bf),this[_0x3d0625(0x89)]=void 0x0,this[_0x3d0625(0x83)]=_0x5a0c94(_0x2fd1bf[_0x3d0625(0x8f)][_0x3d0625(0x84)](_0x3d0625(0x7c))||[]),this[_0x3d0625(0x91)]({'isActive':!0x1});}[_0x587049(0x71)](){const _0x224b43=_0x587049,_0x33ad7e=this[_0x224b43(0x78)][_0x224b43(0x74)][_0x224b43(0x8a)][_0x224b43(0x79)][_0x224b43(0x7a)]();this[_0x224b43(0x7d)]=this[_0x224b43(0x83)](_0x33ad7e);}[_0x587049(0x7e)](){const _0x24b47e=_0x587049;this[_0x24b47e(0x89)]&&(this[_0x24b47e(0x85)](_0x24b47e(0x86)),this[_0x24b47e(0x89)]=void 0x0);const _0x48a0ae=this[_0x24b47e(0x78)][_0x24b47e(0x74)][_0x24b47e(0x8a)][_0x24b47e(0x79)][_0x24b47e(0x7a)]();_0x48a0ae&&(_0x48a0ae['is'](_0x24b47e(0x70),_0x24b47e(0x76))||_0x48a0ae['is'](_0x24b47e(0x70),_0x24b47e(0x8c)))&&(this[_0x24b47e(0x89)]=new _0x16a11a(this[_0x24b47e(0x78)],this[_0x24b47e(0x78)][_0x24b47e(0x8e)][_0x24b47e(0x84)](_0x123459),_0x48a0ae),this[_0x24b47e(0x77)](_0x24b47e(0x86))['to'](this[_0x24b47e(0x89)],_0x24b47e(0x86)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fed89=_0x4b0c;(function(_0x125d4b,_0x1688ee){const _0x2059be=_0x4b0c,_0x536e69=_0x125d4b();while(!![]){try{const _0x1a7fb0=parseInt(_0x2059be(0x1c6))/0x1+parseInt(_0x2059be(0x1c7))/0x2+parseInt(_0x2059be(0x1ce))/0x3*(-parseInt(_0x2059be(0x1d8))/0x4)+parseInt(_0x2059be(0x1d6))/0x5+parseInt(_0x2059be(0x1cd))/0x6*(parseInt(_0x2059be(0x1c9))/0x7)+parseInt(_0x2059be(0x1d5))/0x8+parseInt(_0x2059be(0x1d7))/0x9*(-parseInt(_0x2059be(0x1d9))/0xa);if(_0x1a7fb0===_0x1688ee)break;else _0x536e69['push'](_0x536e69['shift']());}catch(_0x4427d7){_0x536e69['push'](_0x536e69['shift']());}}}(_0x5d8d,0x40ede));function _0x5d8d(){const _0x42b2aa=['1388FAqjNB','787810UpKnhV','isPremiumPlugin','init','59328mlmcmK','424290jGMPRj','isOfficialPlugin','1351bnhUWs','requires','ImageEditing','pluginName','14946aWTavO','3867gRzqFs','uploadcareImageReplace','commands','ImageUtils','UploadcareImageEditEditing','add','uploadcareImageEdit','4091472DbaBcA','5150rczWRB','63GaJcDq'];_0x5d8d=function(){return _0x42b2aa;};return _0x5d8d();}import{Plugin as _0x57cc70}from'ckeditor5/src/core.js';import{Notification as _0x251b58}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x56a74a}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x29c276}from'./uploadcareimagereplacecommand.js';function _0x4b0c(_0x34251f,_0x5453da){const _0x5d8d2f=_0x5d8d();return _0x4b0c=function(_0x4b0c78,_0x145f89){_0x4b0c78=_0x4b0c78-0x1c6;let _0x481648=_0x5d8d2f[_0x4b0c78];return _0x481648;},_0x4b0c(_0x34251f,_0x5453da);}import{UploadcareEditing as _0x2f81e3}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x57cc70{static get[_0x3fed89(0x1cc)](){const _0x363918=_0x3fed89;return _0x363918(0x1d2);}static get[_0x3fed89(0x1ca)](){const _0x3315db=_0x3fed89;return[_0x2f81e3,_0x251b58,_0x3315db(0x1d1),_0x3315db(0x1cb)];}static get[_0x3fed89(0x1c8)](){return!0x0;}static get[_0x3fed89(0x1da)](){return!0x0;}[_0x3fed89(0x1db)](){const _0x2595a2=_0x3fed89,{editor:_0xcdaa38}=this;_0xcdaa38[_0x2595a2(0x1d0)][_0x2595a2(0x1d3)](_0x2595a2(0x1d4),new _0x56a74a(_0xcdaa38)),_0xcdaa38[_0x2595a2(0x1d0)][_0x2595a2(0x1d3)](_0x2595a2(0x1cf),new _0x29c276(_0xcdaa38));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3dcdaa}from'ckeditor5/src/core.js';import{ButtonView as _0x4ed3af}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x37ce16}from'ckeditor5/src/icons.js';import{createElement as _0x47f179}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 _0x3dcdaa{['_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 _0x190a38=this['editor'];_0x190a38['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a14a7=>{const _0x58db27=_0x190a38['commands']['get']('uploadcareImageEdit'),_0xc366ee=new _0x4ed3af(_0x3a14a7),t=_0x3a14a7['t'];return _0xc366ee['set']({'icon':_0x37ce16,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xc366ee['bind']('isEnabled')['to'](_0x58db27),_0xc366ee['bind']('isOn')['to'](_0x58db27,'isActive'),this['listenTo'](_0xc366ee,'execute',()=>{_0x190a38['execute']('uploadcareImageEdit'),_0x190a38['editing']['view']['focus']();}),_0xc366ee;}),this['_initConfig']();}['_initConfig'](){const _0x1ad018=_0x47f179(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1ad018),this['listenTo'](this['editor'],'destroy',()=>{_0x1ad018['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cde40=_0x1023;(function(_0x43c2e5,_0x353394){const _0xf4011e=_0x1023,_0x2027a4=_0x43c2e5();while(!![]){try{const _0x48f0fc=parseInt(_0xf4011e(0xc3))/0x1+parseInt(_0xf4011e(0xbf))/0x2*(-parseInt(_0xf4011e(0xc4))/0x3)+parseInt(_0xf4011e(0xb5))/0x4*(-parseInt(_0xf4011e(0xcb))/0x5)+-parseInt(_0xf4011e(0xc5))/0x6*(parseInt(_0xf4011e(0xb7))/0x7)+-parseInt(_0xf4011e(0xba))/0x8*(parseInt(_0xf4011e(0xcc))/0x9)+parseInt(_0xf4011e(0xc2))/0xa*(-parseInt(_0xf4011e(0xbc))/0xb)+-parseInt(_0xf4011e(0xbe))/0xc*(-parseInt(_0xf4011e(0xbb))/0xd);if(_0x48f0fc===_0x353394)break;else _0x2027a4['push'](_0x2027a4['shift']());}catch(_0x40c610){_0x2027a4['push'](_0x2027a4['shift']());}}}(_0x5f27,0x9b945));function _0x1023(_0x38acdf,_0x156306){const _0x5f2727=_0x5f27();return _0x1023=function(_0x102322,_0x46160d){_0x102322=_0x102322-0xb3;let _0x986adb=_0x5f2727[_0x102322];return _0x986adb;},_0x1023(_0x38acdf,_0x156306);}import{Command as _0x5a4e5e}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x5a4e5e{[_0x1cde40(0xbd)](){const _0x4e5c80=_0x1cde40,_0x48ea8a=this[_0x4e5c80(0xce)][_0x4e5c80(0xcd)][_0x4e5c80(0xb6)][_0x4e5c80(0xcf)][_0x4e5c80(0xc0)]();this[_0x4e5c80(0xc7)]=Boolean(_0x48ea8a&&(_0x48ea8a['is'](_0x4e5c80(0xb8),_0x4e5c80(0xb4))||_0x48ea8a['is'](_0x4e5c80(0xb8),_0x4e5c80(0xca))));}[_0x1cde40(0xb3)](_0x5caad8){const _0x2a6eff=_0x1cde40,_0x5ad09c=this[_0x2a6eff(0xce)][_0x2a6eff(0xcd)][_0x2a6eff(0xb6)][_0x2a6eff(0xcf)][_0x2a6eff(0xc0)]();this[_0x2a6eff(0xce)][_0x2a6eff(0xcd)][_0x2a6eff(0xc9)](_0x4d93f6=>{const _0x4ccae2=_0x2a6eff;_0x4d93f6[_0x4ccae2(0xc8)](_0x5caad8,_0x5ad09c),_0x4d93f6[_0x4ccae2(0xc6)](_0x4ccae2(0xb9),_0x5ad09c),_0x4d93f6[_0x4ccae2(0xc6)](_0x4ccae2(0xc1),_0x5ad09c);});}}function _0x5f27(){const _0x932199=['4wgqufq','document','2604182hHPqET','element','srcset','16yGgRmk','29198SqEniI','1714031csNqRX','refresh','18324SWTNim','236JhnDAk','getSelectedElement','sizes','80cFiHJD','47562HXmaln','6660DhoAXN','6dpmaeV','removeAttribute','isEnabled','setAttributes','change','imageInline','542655ArymFw','3828897XWtsBD','model','editor','selection','execute','imageBlock'];_0x5f27=function(){return _0x932199;};return _0x5f27();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x58ff27=_0x1802;(function(_0x48f7a1,_0x1063d1){var _0xba6282=_0x1802,_0x15a34b=_0x48f7a1();while(!![]){try{var _0x279414=parseInt(_0xba6282(0x1d8))/0x1*(-parseInt(_0xba6282(0x1e3))/0x2)+parseInt(_0xba6282(0x1e0))/0x3+parseInt(_0xba6282(0x1d9))/0x4+parseInt(_0xba6282(0x1de))/0x5+parseInt(_0xba6282(0x1d7))/0x6+-parseInt(_0xba6282(0x1df))/0x7+parseInt(_0xba6282(0x1dd))/0x8*(-parseInt(_0xba6282(0x1dc))/0x9);if(_0x279414===_0x1063d1)break;else _0x15a34b['push'](_0x15a34b['shift']());}catch(_0x471d1f){_0x15a34b['push'](_0x15a34b['shift']());}}}(_0x22b2,0x1b39c));function _0x1802(_0x4fa13c,_0x1daf69){var _0x22b249=_0x22b2();return _0x1802=function(_0x18020a,_0x1115c1){_0x18020a=_0x18020a-0x1d7;var _0x297040=_0x22b249[_0x18020a];return _0x297040;},_0x1802(_0x4fa13c,_0x1daf69);}import{Plugin as _0x534573}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x6b0bc6}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x110e50}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x534573{static get[_0x58ff27(0x1da)](){var _0x45dcd0=_0x58ff27;return _0x45dcd0(0x1db);}static get[_0x58ff27(0x1e1)](){return[_0x6b0bc6,_0x110e50];}static get[_0x58ff27(0x1e2)](){return!0x0;}static get[_0x58ff27(0x1e4)](){return!0x0;}}function _0x22b2(){var _0x4b2ede=['647592xkCoAx','49GdbpJc','536560rvrQnV','pluginName','UploadcareImageEdit','249930RsUATp','24ggpTHc','844825xOTNci','1137003BpScgy','222177KjGnbr','requires','isOfficialPlugin','5218nNPAce','isPremiumPlugin'];_0x22b2=function(){return _0x4b2ede;};return _0x22b2();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x118599=_0x28a6;(function(_0x417ca3,_0x21d341){const _0x24e7eb=_0x28a6,_0x234211=_0x417ca3();while(!![]){try{const _0x55416f=-parseInt(_0x24e7eb(0x136))/0x1+-parseInt(_0x24e7eb(0x141))/0x2*(-parseInt(_0x24e7eb(0x159))/0x3)+parseInt(_0x24e7eb(0x17d))/0x4*(parseInt(_0x24e7eb(0x13a))/0x5)+-parseInt(_0x24e7eb(0x161))/0x6+-parseInt(_0x24e7eb(0x167))/0x7*(-parseInt(_0x24e7eb(0x14d))/0x8)+parseInt(_0x24e7eb(0x15a))/0x9+-parseInt(_0x24e7eb(0x14a))/0xa;if(_0x55416f===_0x21d341)break;else _0x234211['push'](_0x234211['shift']());}catch(_0x35c1a4){_0x234211['push'](_0x234211['shift']());}}}(_0x1637,0x1e910));import{Plugin as _0x195507}from'ckeditor5/src/core.js';function _0x28a6(_0x5395f4,_0x47bb62){const _0x163776=_0x1637();return _0x28a6=function(_0x28a6af,_0x108f0b){_0x28a6af=_0x28a6af-0x135;let _0x34ce6b=_0x163776[_0x28a6af];return _0x34ce6b;},_0x28a6(_0x5395f4,_0x47bb62);}import{IconDropbox as _0x2fe6b9,IconFacebook as _0x3dc5e1,IconGoogleDrive as _0x3bab26,IconGooglePhotos as _0x47c862,IconUploadcareImageUpload as _0x4dbb4d,IconUploadcareLink as _0x1e0d51,IconOneDrive as _0x2c80c5}from'ckeditor5/src/icons.js';import{ButtonView as _0x385292,MenuBarMenuListItemButtonView as _0x540ee4}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x113d12}from'./uploadcareconfig.js';import{getTranslation as _0x3f465a}from'./utils/common-translations.js';function _0x1637(){const _0x45eb1e=['112818dFQdyT','invalid','uploadcare','GDrive','92065hXLLmw','forEach','isPremiumPlugin','destroy','domainLimit','UploadcareUI','isOfficialPlugin','32068JQxzUC','trialLimit','pluginName','commands','editor','isEnabled','uploadcareLicenseKeyEvaluationLimit','ImageInsertUI','map','470980lmGnWf','Facebook','uploadcareLicenseKeyInvalid','40xvsYxl','expired','usageLimit','_createDropdownButtons','get','registerIntegration','isImageSelected','init','icon','Local','label','_licenseKeyCheckInterval','42mjOWRc','400383DEliVS','_normalizeConfigSourceList','uploadcareLicenseKeyValid','push','reduce','execute','shortText','189390lGEVwz','featureNotAllowed','URL','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyTrialLimit','text','41027AezbSi','uploadcareLicenseKeyUsageLimit','Insert','evaluationLimit','url','GPhotos','licenseKey','uploadcareLicenseKeyNotAllowed','assetManager','has','config','upload','_createButton','Dropbox','tooltip','Uploadcare','locale','uploadcare.uploader.sourceList','plugins','afterInit','_showLicenseError','uploadcareLicenseKeyExpired','4QZSPId','type','entries','Replace','withText','_getIntegrationKey','_createToolbarButton','bind','_createMenuBarButtons','OneDrive'];_0x1637=function(){return _0x45eb1e;};return _0x1637();}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x195507{[_0x118599(0x16d)];[_0x118599(0x158)];static get[_0x118599(0x143)](){const _0x2409fa=_0x118599;return _0x2409fa(0x13f);}static get[_0x118599(0x140)](){return!0x0;}static get[_0x118599(0x13c)](){return!0x0;}[_0x118599(0x154)](){const _0x1b8c84=_0x118599;this[_0x1b8c84(0x16d)]=this[_0x1b8c84(0x145)][_0x1b8c84(0x171)][_0x1b8c84(0x151)](_0x1b8c84(0x16d));const _0x5b6f78=this[_0x1b8c84(0x145)];this[_0x1b8c84(0x158)]=setInterval(()=>{const _0x4a0f92=_0x1b8c84;let _0x5db704;for(const _0x5c2ba9 in _0x5b6f78){const _0x2ce121=_0x5c2ba9,_0x414957=_0x5b6f78[_0x2ce121];if(_0x4a0f92(0x15c)==_0x414957||_0x4a0f92(0x14c)==_0x414957||_0x4a0f92(0x17c)==_0x414957||_0x4a0f92(0x164)==_0x414957||_0x4a0f92(0x16e)==_0x414957||_0x4a0f92(0x147)==_0x414957||_0x4a0f92(0x165)==_0x414957||_0x4a0f92(0x168)==_0x414957){delete _0x5b6f78[_0x2ce121],_0x5db704=_0x414957,clearInterval(this[_0x4a0f92(0x158)]),this[_0x4a0f92(0x158)]=void 0x0;break;}}_0x4a0f92(0x14c)==_0x5db704&&_0x5b6f78[_0x4a0f92(0x17b)](_0x4a0f92(0x137)),_0x4a0f92(0x17c)==_0x5db704&&_0x5b6f78[_0x4a0f92(0x17b)](_0x4a0f92(0x14e)),_0x4a0f92(0x164)==_0x5db704&&_0x5b6f78[_0x4a0f92(0x17b)](_0x4a0f92(0x13e)),_0x4a0f92(0x16e)==_0x5db704&&_0x5b6f78[_0x4a0f92(0x17b)](_0x4a0f92(0x162),_0x4a0f92(0x176)),_0x4a0f92(0x147)==_0x5db704&&_0x5b6f78[_0x4a0f92(0x17b)](_0x4a0f92(0x16a)),_0x4a0f92(0x165)==_0x5db704&&_0x5b6f78[_0x4a0f92(0x17b)](_0x4a0f92(0x142)),_0x4a0f92(0x168)==_0x5db704&&_0x5b6f78[_0x4a0f92(0x17b)](_0x4a0f92(0x14f));},0x3e8);}[_0x118599(0x17a)](){const _0x2df076=_0x118599,{editor:_0x49a9e1}=this,_0x20cf50=_0x49a9e1[_0x2df076(0x144)][_0x2df076(0x151)](_0x2df076(0x138));if(!_0x20cf50)return;const _0xe55e21=this[_0x2df076(0x15b)](_0x49a9e1[_0x2df076(0x171)][_0x2df076(0x151)](_0x2df076(0x178)))[_0x2df076(0x15e)]((_0x2635fb,_0x39dfb4)=>{const _0x684940=_0x2df076,_0x4499e0=this[_0x684940(0x182)](_0x39dfb4[_0x684940(0x17e)]);return _0x2635fb[_0x4499e0]||(_0x2635fb[_0x4499e0]=[]),_0x2635fb[_0x4499e0][_0x684940(0x15d)](_0x39dfb4),_0x2635fb;},{});_0x49a9e1[_0x2df076(0x179)][_0x2df076(0x170)](_0x2df076(0x148))&&_0x49a9e1[_0x2df076(0x144)][_0x2df076(0x151)](_0x2df076(0x138))&&Object[_0x2df076(0x17f)](_0xe55e21)[_0x2df076(0x13b)](([_0x257a6b,_0x3d76cd])=>{const _0xfada55=_0x2df076;_0x49a9e1[_0xfada55(0x179)][_0xfada55(0x151)](_0xfada55(0x148))[_0xfada55(0x152)]({'name':_0x257a6b,'observable':()=>_0x20cf50,'buttonViewCreator':()=>this[_0xfada55(0x183)](_0x3d76cd),'formViewCreator':()=>this[_0xfada55(0x150)](_0x3d76cd),'menuBarButtonViewCreator':()=>this[_0xfada55(0x185)](_0x3d76cd),'override':_0xfada55(0x16f)!==_0x257a6b});});}[_0x118599(0x13d)](){const _0x4ae861=_0x118599;super[_0x4ae861(0x13d)](),this[_0x4ae861(0x158)]&&clearInterval(this[_0x4ae861(0x158)]);}[_0x118599(0x15b)](_0x4f65b6){const _0x52bc15=_0x118599,{locale:_0x4b56b2}=this[_0x52bc15(0x145)];return _0x4f65b6[_0x52bc15(0x149)](_0x24f273=>{const _0x367cb7=_0x52bc15,_0x4f10e7=_0x3f465a(_0x4b56b2,_0x24f273,_0x367cb7(0x169));switch(_0x24f273){case _0x113d12[_0x367cb7(0x156)]:return{'icon':_0x4dbb4d,'type':_0x113d12[_0x367cb7(0x156)],..._0x4f10e7};case _0x113d12[_0x367cb7(0x163)]:return{'icon':_0x1e0d51,'type':_0x113d12[_0x367cb7(0x163)],..._0x4f10e7};case _0x113d12[_0x367cb7(0x174)]:return{'icon':_0x2fe6b9,'type':_0x113d12[_0x367cb7(0x174)],..._0x4f10e7};case _0x113d12[_0x367cb7(0x14b)]:return{'icon':_0x3dc5e1,'type':_0x113d12[_0x367cb7(0x14b)],..._0x4f10e7};case _0x113d12[_0x367cb7(0x139)]:return{'icon':_0x3bab26,'type':_0x113d12[_0x367cb7(0x139)],..._0x4f10e7};case _0x113d12[_0x367cb7(0x16c)]:return{'icon':_0x47c862,'type':_0x113d12[_0x367cb7(0x16c)],..._0x4f10e7};case _0x113d12[_0x367cb7(0x135)]:return{'icon':_0x2c80c5,'type':_0x113d12[_0x367cb7(0x135)],..._0x4f10e7};}});}[_0x118599(0x182)](_0x3b2f0a){const _0x3c7ae8=_0x118599;switch(_0x3b2f0a){case _0x113d12[_0x3c7ae8(0x156)]:return _0x3c7ae8(0x172);case _0x113d12[_0x3c7ae8(0x163)]:return _0x3c7ae8(0x16b);default:return _0x3c7ae8(0x16f);}}[_0x118599(0x173)](_0x2c6426,_0x57cab7){const _0x509300=_0x118599,_0x51a634=this[_0x509300(0x145)],_0x45b64a=new _0x2c6426(_0x51a634[_0x509300(0x177)]),_0x2ec5ab=_0x51a634[_0x509300(0x144)][_0x509300(0x151)](_0x509300(0x138));return _0x45b64a[_0x509300(0x184)](_0x509300(0x146))['to'](_0x2ec5ab),_0x45b64a['on'](_0x509300(0x15f),()=>{const _0x78273=_0x509300;_0x2ec5ab[_0x78273(0x15f)](_0x57cab7);}),_0x45b64a;}[_0x118599(0x183)](_0x40a1db){const _0x59b46e=_0x118599,{locale:_0x3f7445}=this[_0x59b46e(0x145)],_0x293069=this[_0x59b46e(0x145)][_0x59b46e(0x179)][_0x59b46e(0x151)](_0x59b46e(0x148)),_0x37f701=_0x40a1db[0x0],_0x25a713=this[_0x59b46e(0x173)](_0x385292,_0x37f701[_0x59b46e(0x17e)]);return _0x25a713[_0x59b46e(0x155)]=_0x37f701[_0x59b46e(0x155)],_0x25a713[_0x59b46e(0x184)](_0x59b46e(0x157))['to'](_0x293069,_0x59b46e(0x153),_0xb6fed=>_0x3f465a(_0x3f7445,_0x37f701[_0x59b46e(0x17e)],_0xb6fed?_0x59b46e(0x180):_0x59b46e(0x169))[_0x59b46e(0x166)]),_0x25a713[_0x59b46e(0x175)]=!0x0,_0x25a713;}[_0x118599(0x150)](_0x29f98b){const _0x3c680c=_0x118599,{locale:_0x1f1979}=this[_0x3c680c(0x145)],_0x5eced0=this[_0x3c680c(0x145)][_0x3c680c(0x179)][_0x3c680c(0x151)](_0x3c680c(0x148));return _0x29f98b[_0x3c680c(0x149)](_0x2e7fbf=>{const _0x4953a6=_0x3c680c,_0xe6b712=this[_0x4953a6(0x173)](_0x385292,_0x2e7fbf[_0x4953a6(0x17e)]);return _0xe6b712[_0x4953a6(0x181)]=!0x0,_0xe6b712[_0x4953a6(0x155)]=_0x2e7fbf[_0x4953a6(0x155)],_0xe6b712[_0x4953a6(0x184)](_0x4953a6(0x157))['to'](_0x5eced0,_0x4953a6(0x153),_0x13ac4e=>_0x3f465a(_0x1f1979,_0x2e7fbf[_0x4953a6(0x17e)],_0x13ac4e?_0x4953a6(0x180):_0x4953a6(0x169))[_0x4953a6(0x166)]),_0xe6b712;});}[_0x118599(0x185)](_0x285bd5){const _0x26783f=_0x118599;return _0x285bd5[_0x26783f(0x149)](_0x28475e=>{const _0x24de1c=_0x26783f,_0x1a8751=this[_0x24de1c(0x173)](_0x540ee4,_0x28475e[_0x24de1c(0x17e)]);return _0x1a8751[_0x24de1c(0x155)]=_0x28475e[_0x24de1c(0x155)],_0x1a8751[_0x24de1c(0x157)]=_0x28475e[_0x24de1c(0x160)],_0x1a8751;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3a9091}from'ckeditor5/src/core.js';import{FileRepository as _0x5c3cbc}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x5ec92e}from'./uploadcareediting.js';import{UploadUtils as _0x4dc021}from'./utils/uploadutils.js';import{getImageUrls as _0x394aae}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3a9091{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5c3cbc,_0x5ec92e];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x49235c=this['editor'];if(!!!_0x49235c['config']['get']('uploadcare'))return;_0x49235c['plugins']['get'](_0x5c3cbc)['createUploadAdapter']=_0x1c5326=>new k(_0x1c5326,_0x49235c),_0x49235c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3c93ba,{imageElement:_0x517f60,data:_0x9fe096})=>{_0x49235c['model']['change'](_0x3cd16c=>{_0x3cd16c['setAttribute']('uploadcareImageId',_0x9fe096['uploadcareImageId'],_0x517f60);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xbcdc1b,_0x64d570){this['loader']=_0xbcdc1b,this['editor']=_0x64d570,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x81ac91=await this['loader']['file'];return _0x4dc021['upload']({'file':_0x81ac91,'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':_0x4453d1=>{_0x4453d1&&_0x4453d1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4453d1['value']);}})['then'](async _0x19a4ea=>{const {imageFallbackUrl:_0x38e824,imageSources:_0x550e5b}=_0x394aae(_0x19a4ea['cdnUrl'],_0x19a4ea['imageInfo']['width']);return{'uploadcareImageId':_0x19a4ea['uuid'],'default':_0x38e824,'sources':_0x550e5b};})['catch'](()=>{const _0x244309=t('Cannot\x20upload\x20file:')+('\x20'+_0x81ac91['name']+'.');return Promise['reject'](_0x244309);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x459186}from'../uploadcareconfig.js';export function getTranslation(_0x5ba011,_0x178a0f,_0x33d210){const t=_0x5ba011['t'],_0x1ce931=_0x5ba011['t'];switch(_0x178a0f){case _0x459186['Local']:return{'text':_0x1ce931('Insert'===_0x33d210?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1ce931('From\x20computer')};case _0x459186['URL']:return{'text':'Insert'===_0x33d210?_0x1ce931('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1ce931('Via\x20URL')};case _0x459186['Dropbox']:return{'text':t('Insert'===_0x33d210?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x459186['Facebook']:return{'text':t('Insert'===_0x33d210?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x459186['GDrive']:return{'text':t('Insert'===_0x33d210?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x459186['GPhotos']:return{'text':t('Insert'===_0x33d210?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x459186['OneDrive']:return{'text':t('Insert'===_0x33d210?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x178a0f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5cd2c5=_0x516d;(function(_0x10f857,_0x2772d8){var _0x361318=_0x516d,_0x3ee7bd=_0x10f857();while(!![]){try{var _0x478795=parseInt(_0x361318(0xc0))/0x1*(parseInt(_0x361318(0xbf))/0x2)+parseInt(_0x361318(0xb8))/0x3+parseInt(_0x361318(0xbd))/0x4*(-parseInt(_0x361318(0xb7))/0x5)+parseInt(_0x361318(0xba))/0x6*(parseInt(_0x361318(0xb5))/0x7)+parseInt(_0x361318(0xbb))/0x8+-parseInt(_0x361318(0xc1))/0x9+-parseInt(_0x361318(0xb6))/0xa;if(_0x478795===_0x2772d8)break;else _0x3ee7bd['push'](_0x3ee7bd['shift']());}catch(_0x2e1ae3){_0x3ee7bd['push'](_0x3ee7bd['shift']());}}}(_0xb840,0xbcc66));function _0x516d(_0x13a368,_0x34fcfe){var _0xb84000=_0xb840();return _0x516d=function(_0x516dc2,_0x29a103){_0x516dc2=_0x516dc2-0xaf;var _0x589ca8=_0xb84000[_0x516dc2];return _0x589ca8;},_0x516d(_0x13a368,_0x34fcfe);}import{FocusTracker as _0x5e8359}from'ckeditor5/src/utils.js';function _0xb840(){var _0x4ded62=['6IbxUiL','9968064puGYyO','fire','150284ectkls','createCollection','556926sxsAMK','4uMQaEb','7888473GBzkGR','div','bindTemplate','getFocusableElement','focusTracker','focusCycler','forwardCycle','18781sTELRf','12402980gKIwWA','20UTZSMG','2033274TEUJyn','true'];_0xb840=function(){return _0x4ded62;};return _0xb840();}import{View as _0x5e5e97,FocusCycler as _0x2cad40}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5e5e97{[_0x5cd2c5(0xb2)];[_0x5cd2c5(0xb3)];constructor(_0x27e193){var _0x2a95d2=_0x5cd2c5;super(_0x27e193),this[_0x2a95d2(0xb2)]=new _0x5e8359(),this[_0x2a95d2(0xb3)]=new _0x2cad40({'focusables':this[_0x2a95d2(0xbe)](),'focusTracker':this[_0x2a95d2(0xb2)]});}[_0x5cd2c5(0xb1)](){var _0x391267=_0x5cd2c5;return{'tag':_0x391267(0xaf),'attributes':{'aria-hidden':_0x391267(0xb9),'tabindex':'0'},'on':{'focus':this[_0x391267(0xb0)]['to'](()=>{var _0x199cd4=_0x391267;this[_0x199cd4(0xb3)][_0x199cd4(0xbc)](_0x199cd4(0xb4));})}};}}
|