@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250629.0 → 0.0.0-nightly-20250701.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 _0x256371=_0xfcdd;(function(_0x1db0fd,_0x884218){const _0x506f73=_0xfcdd,_0x5c28bf=_0x1db0fd();while(!![]){try{const _0x503ff7=parseInt(_0x506f73(0x140))/0x1*(-parseInt(_0x506f73(0x13f))/0x2)+-parseInt(_0x506f73(0x144))/0x3*(parseInt(_0x506f73(0x187))/0x4)+-parseInt(_0x506f73(0x15a))/0x5*(-parseInt(_0x506f73(0x17e))/0x6)+parseInt(_0x506f73(0x190))/0x7*(parseInt(_0x506f73(0x147))/0x8)+-parseInt(_0x506f73(0x13e))/0x9+parseInt(_0x506f73(0x164))/0xa*(-parseInt(_0x506f73(0x177))/0xb)+parseInt(_0x506f73(0x18b))/0xc*(parseInt(_0x506f73(0x175))/0xd);if(_0x503ff7===_0x884218)break;else _0x5c28bf['push'](_0x5c28bf['shift']());}catch(_0x17f076){_0x5c28bf['push'](_0x5c28bf['shift']());}}}(_0x3714,0x4bf3d));import{Plugin as _0x19b702}from'ckeditor5/src/core.js';import{Dialog as _0x3aa379}from'ckeditor5/src/ui.js';function _0x3714(){const _0xeac913=['ucContextId','body','uc-config','uploadcareImageId','get','remove','destroy','closeMax','isOfficialPlugin','uploader-','_initImageProcessingIndicator','insertImage','isRegistered','_ctxElement','94015VNFtJr','attributeToAttribute','elementToAttribute','model','downcast','#uc-icon-arrow-down','configElement','commands','input[uploadcare-file-input]','locale','10FjKxTb','selection','uploadcare.pubkey','upcast','listenTo','ctxElement','replaceImageSource','_configElement','data-uc-image-id','iconHrefResolver','getAttribute','editor','uploadcare','\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','document','schema','editing','1673698IunhCC','extend','4335947xsWRYZ','UploadcareEditing','getSelectedElement','conversion','appendChild','imageBlock','_initSchema','132VCRDLm','requires','view','querySelector','isPremiumPlugin','afterInit','execute','uc-upload-ctx-provider','_initConfig','83528lzbEfU','uploadcareImageReplace','init','fromCharCode','120tqXcuD','uploadcare.uploader','render','href','for','49rMEZBL','true','pluginName','contentLanguage','map','join','4187646KsBrjH','2LMnPdu','317073trwxbH','removeAttribute','imageInline','PictureEditing','48FcVETa','add','cleanupImage','137864hTIEec','once','_initConversion','config','_initCtx'];_0x3714=function(){return _0xeac913;};return _0x3714();}import{createElement as _0x29b5e4,global as _0x5ab773,uid as _0x3ca885}from'ckeditor5/src/utils.js';function _0xfcdd(_0x12b9a5,_0x515735){const _0x371457=_0x3714();return _0xfcdd=function(_0xfcdd96,_0x11854a){_0xfcdd96=_0xfcdd96-0x13b;let _0x1f920d=_0x371457[_0xfcdd96];return _0x1f920d;},_0xfcdd(_0x12b9a5,_0x515735);}import{UploadcareCommand as _0x3ba8c1}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xb32cf0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x121b7b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x19b702{[_0x256371(0x16b)]=null;[_0x256371(0x159)]=null;static get[_0x256371(0x192)](){const _0x539616=_0x256371;return _0x539616(0x178);}static get[_0x256371(0x17f)](){const _0x4ff933=_0x256371;return[_0x4ff933(0x143),_0xb32cf0,_0x3aa379];}static get[_0x256371(0x154)](){return!0x0;}static get[_0x256371(0x182)](){return!0x0;}[_0x256371(0x14c)];get[_0x256371(0x160)](){const _0x518b33=_0x256371;return this[_0x518b33(0x16b)];}get[_0x256371(0x169)](){const _0x27f872=_0x256371;return this[_0x27f872(0x159)];}constructor(_0x297e98){const _0x553a5e=_0x256371;super(_0x297e98),this[_0x553a5e(0x14c)]=_0x3ca885();}[_0x256371(0x189)](){const _0x39382a=_0x256371,_0x136f67=this[_0x39382a(0x16f)];_0x136f67[_0x39382a(0x161)][_0x39382a(0x145)](_0x39382a(0x170),new _0x3ba8c1(_0x136f67));}[_0x256371(0x183)](){const _0x284c9c=_0x256371;this[_0x284c9c(0x17d)](),this[_0x284c9c(0x149)](),this[_0x284c9c(0x186)](),this[_0x284c9c(0x14b)](),this[_0x284c9c(0x156)](),this[_0x284c9c(0x168)](this[_0x284c9c(0x16f)],_0x284c9c(0x152),()=>{const _0x34f7fc=_0x284c9c;this[_0x34f7fc(0x16b)]&&(this[_0x34f7fc(0x16b)][_0x34f7fc(0x151)](),this[_0x34f7fc(0x16b)]=null),this[_0x34f7fc(0x159)]&&(this[_0x34f7fc(0x159)][_0x34f7fc(0x151)](),this[_0x34f7fc(0x159)]=null);const _0x3c80b4=_0x5ab773[_0x34f7fc(0x172)][_0x34f7fc(0x181)](_0x34f7fc(0x162));_0x3c80b4&&_0x3c80b4[_0x34f7fc(0x151)]();}),async function(_0x244137){const _0x5295c5=_0x317fab([0x33,0x72,0x79,0x56,0x62,0x7a,0x75,0x42,0x34,0x49,0x45,0x73,0x66,0x4b,0x48,0x30,0x6e,0x55,0x6d,0x44,0x58,0x59,0x39,0x52,0x6c,0x5a,0x51,0x61,0x46,0x36,0x47,0x4c,0x67,0x37,0x63,0x54,0x41,0x69,0x57,0x35,0x4a,0x77,0x74,0x53,0x38,0x32,0x43,0x76,0x71,0x4e,0x70,0x4d,0x4f,0x78,0x68,0x65,0x6a,0x31,0x50,0x64,0x6b,0x6f]),_0xd05c3f=0x4b9707c4,_0x362e41=0x4b906be4^_0xd05c3f,_0x27f4bf=window[_0x317fab([0x44,0x61,0x74,0x65])][_0x317fab([0x6e,0x6f,0x77])](),_0x167a43=_0x244137[_0x317fab([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3402af=new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13612a=>{_0x167a43[_0x317fab([0x6f,0x6e,0x63,0x65])](_0x317fab([0x72,0x65,0x61,0x64,0x79]),_0x13612a);}),_0x48b229={[_0x317fab([0x6b,0x74,0x79])]:_0x317fab([0x45,0x43]),[_0x317fab([0x75,0x73,0x65])]:_0x317fab([0x73,0x69,0x67]),[_0x317fab([0x63,0x72,0x76])]:_0x317fab([0x50,0x2d,0x32,0x35,0x36]),[_0x317fab([0x78])]:_0x317fab([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]),[_0x317fab([0x79])]:_0x317fab([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]),[_0x317fab([0x61,0x6c,0x67])]:_0x317fab([0x45,0x53,0x32,0x35,0x36])},_0x14e8d4=_0x167a43[_0x317fab([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x317fab([0x67,0x65,0x74])](_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23c274(){let _0x5c0d2c,_0x557acb=null,_0xc1e89e=null;try{if(_0x14e8d4==_0x317fab([0x47,0x50,0x4c]))return _0x317fab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c0d2c=_0x34418e(),!_0x5c0d2c)return _0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c0d2c[_0x317fab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc1e89e=_0x184e66(_0x5c0d2c[_0x317fab([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c0d2c[_0x317fab([0x6a,0x74,0x69])])),await _0x50a86f()?_0x46c917()?_0x1838ea()?_0x317fab([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x349341()?(_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317fab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x557acb=_0x5324a3(_0x317fab([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x317fab([0x74,0x72,0x69,0x61,0x6c])&&(_0x557acb=_0x5324a3(_0x317fab([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46f9b1()):_0x317fab([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x317fab([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x317fab([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1838ea(){const _0x5a5ebf=[_0x317fab([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x317fab([0x74,0x72,0x69,0x61,0x6c])][_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27f4bf/0x3e8:0xe10*_0x362e41;return _0x5c0d2c[_0x317fab([0x65,0x78,0x70])]<_0x5a5ebf;}function _0x46c917(){const _0x39f544=_0x5c0d2c[_0x317fab([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39f544&&(!!_0x39f544[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x2a]))||!!_0x39f544[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x55,0x50,0x4c,0x43])));}function _0x349341(){const _0x1bee8f=_0xfcdd,_0x1985c0=_0x5c0d2c[_0x317fab([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1985c0||0x0==_0x1985c0[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27ef92}=new URL(window[_0x317fab([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1bee8f(0x18e)]);if(_0x1985c0[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ef92))return!0x0;const _0x278d60=_0x27ef92[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e]));return _0x1985c0[_0x317fab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f729b=>_0x1f729b[_0x317fab([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x317fab([0x2a])))[_0x317fab([0x6d,0x61,0x70])](_0x5ed775=>_0x5ed775[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e])))[_0x317fab([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3fd4e3=>_0x3fd4e3[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x278d60[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x317fab([0x6d,0x61,0x70])](_0x4abd83=>Array(_0x278d60[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4abd83[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x317fab([0x66,0x69,0x6c,0x6c])](_0x4abd83[0x0]===_0x317fab([0x2a])?_0x317fab([0x2a]):'')[_0x317fab([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4abd83))[_0x317fab([0x73,0x6f,0x6d,0x65])](_0x20b603=>_0x278d60[_0x317fab([0x65,0x76,0x65,0x72,0x79])]((_0x135534,_0xdb0dbc)=>_0x20b603[_0xdb0dbc]===_0x135534||_0x20b603[_0xdb0dbc]===_0x317fab([0x2a])));}function _0x46f9b1(){return _0x557acb&&_0xc1e89e?new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x350a1f,_0x15d77c)=>{_0x557acb[_0x317fab([0x74,0x68,0x65,0x6e])](_0x350a1f,_0x15d77c),_0xc1e89e[_0x317fab([0x74,0x68,0x65,0x6e])](_0x459402=>{_0x459402!=_0x317fab([0x56,0x61,0x6c,0x69,0x64])&&_0x350a1f(_0x459402);},_0x15d77c);}):_0x557acb||_0xc1e89e||_0x317fab([0x56,0x61,0x6c,0x69,0x64]);}}function _0x184e66(_0x56f7a0,_0x3b7fab){return new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5da01a=>{if(_0x341af7())return _0x5da01a(_0x317fab([0x56,0x61,0x6c,0x69,0x64]));_0xe9ee9f(),_0x167a43[_0x317fab([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12eec5=!0x1;const _0x198469=_0x3ca885();function _0x1569e4(_0x352b63){return!!_0x352b63&&(typeof _0x352b63===_0x317fab([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x352b63===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x352b63[_0x317fab([0x74,0x68,0x65,0x6e])]===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x352b63[_0x317fab([0x63,0x61,0x74,0x63,0x68])]===_0x317fab([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13a51e(_0x1928c9){_0x5c8f47(_0x1928c9)[_0x317fab([0x74,0x68,0x65,0x6e])](_0xbf07ae=>{if(!_0xbf07ae||_0xbf07ae[_0x317fab([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x317fab([0x6f,0x6b]))return _0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb22231(_0x249271(_0x198469+_0x3b7fab))!=_0xbf07ae[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x317fab([0x56,0x61,0x6c,0x69,0x64]);})[_0x317fab([0x74,0x68,0x65,0x6e])](_0x4287a3=>(_0x49b5ed(),_0x4287a3),()=>{const _0x3c2472=_0x1de12f();return null==_0x3c2472?(_0x49b5ed(),_0x317fab([0x56,0x61,0x6c,0x69,0x64])):_0x317fab(_0x27f4bf-_0x3c2472>(0x6f9b83c4^_0xd05c3f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x317fab([0x74,0x68,0x65,0x6e])](_0x5da01a)[_0x317fab([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b07a3=0x4ba1e944^_0xd05c3f;function _0x49b5ed(){const _0x5937ca=_0x317fab([0x6c,0x6c,0x63,0x74,0x2d])+_0xb22231(_0x249271(_0x56f7a0)),_0x4f1e7c=_0x5e972d(_0xb22231(window[_0x317fab([0x4d,0x61,0x74,0x68])][_0x317fab([0x63,0x65,0x69,0x6c])](_0x27f4bf/_0x3b07a3)));window[_0x317fab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317fab([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5937ca,_0x4f1e7c);}function _0x1de12f(){const _0x3c062b=_0x317fab([0x6c,0x6c,0x63,0x74,0x2d])+_0xb22231(_0x249271(_0x56f7a0)),_0x22b476=window[_0x317fab([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x317fab([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c062b);return _0x22b476?window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e972d(_0x22b476),0x10)*_0x3b07a3:null;}function _0x5c8f47(_0x4e59db){return new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1736eb,_0x54f2e9)=>{_0x4e59db[_0x317fab([0x74,0x68,0x65,0x6e])](_0x1736eb,_0x54f2e9),window[_0x317fab([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54f2e9,0x4b96d304^_0xd05c3f);});}}_0x167a43[_0x317fab([0x6f,0x6e])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb4cdc1,_0x1a07e8)=>{if(_0x1a07e8[0x0]!=_0x56f7a0)return _0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a07e8[0x1]={..._0x1a07e8[0x1],[_0x317fab([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198469};},{[_0x317fab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317fab([0x68,0x69,0x67,0x68])}),_0x167a43[_0x317fab([0x6f,0x6e])](_0x317fab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38f86f=>{_0x1569e4(_0x38f86f[_0x317fab([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12eec5=!0x0,_0x13a51e(_0x38f86f[_0x317fab([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x317fab([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x317fab([0x6c,0x6f,0x77])}),_0x3402af[_0x317fab([0x74,0x68,0x65,0x6e])](()=>{_0x12eec5||_0x5da01a(_0x317fab([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x341af7(){return _0x167a43[_0x317fab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317fab([0x76,0x69,0x65,0x77])][_0x317fab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x317fab([0x61,0x75,0x74,0x6f]);}function _0xe9ee9f(){_0x167a43[_0x317fab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x317fab([0x76,0x69,0x65,0x77])][_0x317fab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x317fab([0x61,0x75,0x74,0x6f]);}}function _0x5324a3(_0x1307f4){const _0x3dc1d4=[new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24689c=>setTimeout(_0x24689c,0x4b9e3908^_0xd05c3f)),_0x3402af[_0x317fab([0x74,0x68,0x65,0x6e])](()=>new window[(_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e6c34=>{let _0x3a27b3=0x0;_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x6f,0x6e])](_0x317fab([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x397241,_0x343057)=>{_0x343057[0x0][_0x317fab([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a27b3++,_0x3a27b3==(0x4b97063c^_0xd05c3f)&&(_0x4e6c34(),_0x397241[_0x317fab([0x6f,0x66,0x66])]());});}))];return window[_0x317fab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x317fab([0x72,0x61,0x63,0x65])](_0x3dc1d4)[_0x317fab([0x74,0x68,0x65,0x6e])](()=>_0x1307f4);}async function _0x24306a(){await _0x3402af,_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35d775,_0x167a43[_0x317fab([0x6d,0x6f,0x64,0x65,0x6c])][_0x317fab([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35d775,_0x167a43[_0x317fab([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x317fab([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d8c11(_0x1c4aa2){const _0x4595a8=_0x2d4078();_0x167a43[_0x4595a8]=_0x317fab([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c4aa2,_0x1c4aa2!=_0x317fab([0x56,0x61,0x6c,0x69,0x64])&&_0x24306a();}function _0x2d4078(){const _0x3fdaa8=window[_0x317fab([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x317fab([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x317fab([0x6e,0x6f,0x77])]())[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x317fab([0x2e]),'');let _0x508b59=_0x317fab([0x72]);for(let _0x1a6b67=0x0;_0x1a6b67<_0x3fdaa8[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a6b67+=0x2){let _0x1679ef=window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fdaa8[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a6b67,_0x1a6b67+0x2));_0x1679ef>=_0x5295c5[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1679ef-=_0x5295c5[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x508b59+=_0x5295c5[_0x1679ef];}return _0x508b59;}function _0x34418e(){const _0x19e023=_0x14e8d4[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e]));if(0x3!=_0x19e023[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7a143d(_0x19e023[0x1]);function _0x7a143d(_0x96a311){const _0x4f3c8d=_0x546c3d(_0x96a311);return _0x4f3c8d&&_0x4f56fe()?_0x4f3c8d:null;function _0x4f56fe(){const _0x552232=_0x4f3c8d[_0x317fab([0x6a,0x74,0x69])],_0x58d77c=window[_0x317fab([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x552232[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x552232[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15ca16={..._0x4f3c8d,[_0x317fab([0x6a,0x74,0x69])]:_0x552232[_0x317fab([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x552232[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15ca16[_0x317fab([0x76,0x63])],_0x249271(_0x15ca16)==_0x58d77c;}}}async function _0x50a86f(){let _0x4ba045=!0x0;try{const _0x4b603b=_0x14e8d4[_0x317fab([0x73,0x70,0x6c,0x69,0x74])](_0x317fab([0x2e])),[_0x52323a,_0x2a1206,_0x5ec179]=_0x4b603b;return _0x32d49e(_0x52323a),await _0x25e2db(_0x52323a,_0x2a1206,_0x5ec179),_0x4ba045;}catch{return!0x1;}function _0x32d49e(_0x2485e3){const _0x3fe0e5=_0x546c3d(_0x2485e3);_0x3fe0e5&&_0x3fe0e5[_0x317fab([0x61,0x6c,0x67])]==_0x317fab([0x45,0x53,0x32,0x35,0x36])||(_0x4ba045=!0x1);}async function _0x25e2db(_0x3983bb,_0x3d8e1e,_0x534cde){const _0x42506e=window[_0x317fab([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x317fab([0x66,0x72,0x6f,0x6d])](_0x5cfb90(_0x534cde),_0x312bcc=>_0x312bcc[_0x317fab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2040fe=new window[(_0x317fab([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x317fab([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3983bb+_0x317fab([0x2e])+_0x3d8e1e),_0x4749a3=window[_0x317fab([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x317fab([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4749a3)return;const _0x4ef4ea=await _0x4749a3[_0x317fab([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x317fab([0x6a,0x77,0x6b]),_0x48b229,{[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x45,0x43,0x44,0x53,0x41]),[_0x317fab([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x317fab([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4749a3[_0x317fab([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x45,0x43,0x44,0x53,0x41]),[_0x317fab([0x68,0x61,0x73,0x68])]:{[_0x317fab([0x6e,0x61,0x6d,0x65])]:_0x317fab([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ef4ea,_0x42506e,_0x2040fe)||(_0x4ba045=!0x1);}}function _0x546c3d(_0x18ad70){return _0x18ad70[_0x317fab([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x317fab([0x65,0x79]))?JSON[_0x317fab([0x70,0x61,0x72,0x73,0x65])](_0x5cfb90(_0x18ad70)):null;}function _0x5cfb90(_0x3b9cea){return window[_0x317fab([0x61,0x74,0x6f,0x62])](_0x3b9cea[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x317fab([0x2b]))[_0x317fab([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x317fab([0x2f])));}function _0x249271(_0xe995c3){let _0x53011f=0x1505;function _0x109ebc(_0xf925ad){for(let _0x26c891=0x0;_0x26c891<_0xf925ad[_0x317fab([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26c891++){const _0x47d4b5=_0xf925ad[_0x317fab([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26c891);_0x53011f=(_0x53011f<<0x5)+_0x53011f+_0x47d4b5,_0x53011f&=_0x53011f;}}function _0x9e0341(_0x2b99a2){Array[_0x317fab([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b99a2)?_0x2b99a2[_0x317fab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9e0341):_0x2b99a2&&typeof _0x2b99a2==_0x317fab([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x317fab([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b99a2)[_0x317fab([0x73,0x6f,0x72,0x74])]()[_0x317fab([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cac94,_0x2dcb7b])=>{_0x109ebc(_0x2cac94),_0x9e0341(_0x2dcb7b);}):_0x109ebc(window[_0x317fab([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b99a2));}return _0x9e0341(_0xe995c3),_0x53011f>>>0x0;}function _0xb22231(_0x763cd6){return _0x763cd6[_0x317fab([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x317fab([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x317fab([0x30]));}function _0x5e972d(_0x2c55be){return _0x2c55be[_0x317fab([0x73,0x70,0x6c,0x69,0x74])]('')[_0x317fab([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x317fab([0x6a,0x6f,0x69,0x6e])]('');}function _0x35d775(){}function _0x317fab(_0x168408){const _0x198698=_0xfcdd;return _0x168408[_0x198698(0x13c)](_0x416db0=>String[_0x198698(0x18a)](_0x416db0))[_0x198698(0x13d)]('');}_0x2d8c11(await _0x23c274());}(this);}[_0x256371(0x17d)](){const _0xe65c57=_0x256371,_0x4f7bdb=this[_0xe65c57(0x16f)][_0xe65c57(0x15d)][_0xe65c57(0x173)];_0x4f7bdb[_0xe65c57(0x158)](_0xe65c57(0x17c))&&_0x4f7bdb[_0xe65c57(0x176)](_0xe65c57(0x17c),{'allowAttributes':[_0xe65c57(0x14f)]}),_0x4f7bdb[_0xe65c57(0x158)](_0xe65c57(0x142))&&_0x4f7bdb[_0xe65c57(0x176)](_0xe65c57(0x142),{'allowAttributes':[_0xe65c57(0x14f)]});}[_0x256371(0x149)](){const _0x44a7c1=_0x256371,_0x59f9fe=this[_0x44a7c1(0x16f)];_0x59f9fe[_0x44a7c1(0x17a)][_0x44a7c1(0x18f)](_0x44a7c1(0x15e))[_0x44a7c1(0x15b)]({'model':_0x44a7c1(0x14f),'view':_0x44a7c1(0x16c)}),_0x59f9fe[_0x44a7c1(0x17a)][_0x44a7c1(0x18f)](_0x44a7c1(0x167))[_0x44a7c1(0x15c)]({'model':{'key':_0x44a7c1(0x14f),'value':_0x4b7eea=>_0x4b7eea[_0x44a7c1(0x16e)](_0x44a7c1(0x16c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x10f565=_0x59f9fe[_0x44a7c1(0x161)][_0x44a7c1(0x150)](_0x44a7c1(0x16a));_0x10f565&&this[_0x44a7c1(0x168)](_0x10f565,_0x44a7c1(0x146),(_0x25b499,[_0xccfd84,_0x22c2cd])=>{const _0x551fce=_0x44a7c1;_0xccfd84[_0x551fce(0x141)](_0x551fce(0x14f),_0x22c2cd);});}[_0x256371(0x186)](){const _0x536c75=_0x256371,_0x36a304=this[_0x536c75(0x16f)][_0x536c75(0x14a)][_0x536c75(0x150)](_0x536c75(0x18c))||{},_0x31dac9=this[_0x536c75(0x16f)][_0x536c75(0x14a)][_0x536c75(0x150)](_0x536c75(0x166))||'';this[_0x536c75(0x16b)]=_0x29b5e4(_0x5ab773[_0x536c75(0x172)],_0x536c75(0x14e),{..._0x36a304,'pubkey':_0x31dac9,'ctx-name':_0x536c75(0x155)+this[_0x536c75(0x14c)],'sourceList':'','imgOnly':_0x536c75(0x191),'removeCopyright':_0x536c75(0x191),'localeName':this[_0x536c75(0x16f)][_0x536c75(0x163)][_0x536c75(0x13b)],'externalSourcesEmbedCss':_0x536c75(0x171)}),this[_0x536c75(0x16b)][_0x536c75(0x16d)]=_0x3170d8=>{const _0x1eaeb0=_0x536c75;if(_0x1eaeb0(0x153)==_0x3170d8)return _0x1eaeb0(0x15f);},_0x5ab773[_0x536c75(0x172)][_0x536c75(0x14d)][_0x536c75(0x17b)](this[_0x536c75(0x16b)]);}[_0x256371(0x14b)](){const _0x225955=_0x256371;this[_0x225955(0x159)]=_0x29b5e4(_0x5ab773[_0x225955(0x172)],_0x225955(0x185),{'ctx-name':_0x225955(0x155)+this[_0x225955(0x14c)]}),_0x5ab773[_0x225955(0x172)][_0x225955(0x14d)][_0x225955(0x17b)](this[_0x225955(0x159)]);}[_0x256371(0x156)](){const _0x195882=_0x256371,_0x59b902=this[_0x195882(0x16f)][_0x195882(0x161)][_0x195882(0x150)](_0x195882(0x157));_0x59b902&&this[_0x195882(0x168)](_0x59b902,_0x195882(0x184),()=>{const _0xdab3cb=_0x195882,_0x5c06d2=this[_0xdab3cb(0x16f)][_0xdab3cb(0x15d)][_0xdab3cb(0x172)][_0xdab3cb(0x165)][_0xdab3cb(0x179)]();_0x5c06d2&&_0x5c06d2[_0xdab3cb(0x16e)](_0xdab3cb(0x14f))&&this[_0xdab3cb(0x16f)][_0xdab3cb(0x174)][_0xdab3cb(0x180)][_0xdab3cb(0x148)](_0xdab3cb(0x18d),()=>{const _0x4cca52=_0xdab3cb;_0x121b7b(this[_0x4cca52(0x16f)],_0x5c06d2);});});const _0x4b516d=this[_0x195882(0x16f)][_0x195882(0x161)][_0x195882(0x150)](_0x195882(0x188));_0x4b516d&&this[_0x195882(0x168)](_0x4b516d,_0x195882(0x184),()=>{const _0x4eca4b=_0x195882,_0x481f0c=this[_0x4eca4b(0x16f)][_0x4eca4b(0x15d)][_0x4eca4b(0x172)][_0x4eca4b(0x165)][_0x4eca4b(0x179)]();_0x481f0c&&_0x481f0c[_0x4eca4b(0x16e)](_0x4eca4b(0x14f))&&this[_0x4eca4b(0x16f)][_0x4eca4b(0x174)][_0x4eca4b(0x180)][_0x4eca4b(0x148)](_0x4eca4b(0x18d),()=>{const _0x50ab2c=_0x4eca4b;_0x121b7b(this[_0x50ab2c(0x16f)],_0x481f0c);});});}}
|
|
23
|
+
const _0x300712=_0x13a0;(function(_0x37c616,_0x53b63d){const _0x30143f=_0x13a0,_0x51cfeb=_0x37c616();while(!![]){try{const _0x17f414=-parseInt(_0x30143f(0x103))/0x1+parseInt(_0x30143f(0xfd))/0x2*(parseInt(_0x30143f(0x129))/0x3)+parseInt(_0x30143f(0x141))/0x4*(-parseInt(_0x30143f(0x117))/0x5)+parseInt(_0x30143f(0x140))/0x6*(-parseInt(_0x30143f(0xfb))/0x7)+-parseInt(_0x30143f(0x13e))/0x8*(parseInt(_0x30143f(0x122))/0x9)+-parseInt(_0x30143f(0x11d))/0xa+parseInt(_0x30143f(0x110))/0xb*(parseInt(_0x30143f(0x147))/0xc);if(_0x17f414===_0x53b63d)break;else _0x51cfeb['push'](_0x51cfeb['shift']());}catch(_0xbdb42b){_0x51cfeb['push'](_0x51cfeb['shift']());}}}(_0x1cf6,0x4bf87));import{Plugin as _0x17946e}from'ckeditor5/src/core.js';import{Dialog as _0x563889}from'ckeditor5/src/ui.js';function _0x13a0(_0x17c942,_0x5e7715){const _0x1cf684=_0x1cf6();return _0x13a0=function(_0x13a0fc,_0x205bbc){_0x13a0fc=_0x13a0fc-0xf8;let _0x1eb60e=_0x1cf684[_0x13a0fc];return _0x1eb60e;},_0x13a0(_0x17c942,_0x5e7715);}import{createElement as _0x35c410,global as _0x386f4e,uid as _0x22d286}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4d5762}from'./uploadcarecommand.js';function _0x1cf6(){const _0x2eb95b=['execute','add','extend','uc-upload-ctx-provider','config','querySelector','3904360WXLGRt','attributeToAttribute','12XUqkkI','1858564Zsiqpa','uploadcare.pubkey','_initConversion','_initCtx','locale','join','26960244FvKpBx','document','get','input[uploadcare-file-input]','closeMax','cleanupImage','destroy','isOfficialPlugin','_initConfig','requires','downcast','272027nbFPvt','selection','22xsYBJw','once','UploadcareEditing','conversion','getSelectedElement','href','443783jOgtMl','commands','afterInit','imageInline','imageBlock','uploadcareImageReplace','map','configElement','replaceImageSource','_initSchema','insertImage','appendChild','pluginName','11joIIuD','contentLanguage','view','listenTo','data-uc-image-id','remove','uploadcare','5mcpRsd','true','ucContextId','_ctxElement','fromCharCode','iconHrefResolver','5724540AlgksT','editor','upcast','for','isPremiumPlugin','9jFhBPF','schema','uploader-','uploadcare.uploader','_configElement','uc-config','uploadcareImageId','30309zZWVXp','render','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','PictureEditing','init','getAttribute','body','elementToAttribute','isRegistered','_initImageProcessingIndicator','editing','removeAttribute','ctxElement','#uc-icon-arrow-down','model'];_0x1cf6=function(){return _0x2eb95b;};return _0x1cf6();}import{UploadcareUploadAdapter as _0x3f4cb5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x49f2b5}from'./utils/editingutils.js';export class UploadcareEditing extends _0x17946e{[_0x300712(0x126)]=null;[_0x300712(0x11a)]=null;static get[_0x300712(0x10f)](){const _0x12852b=_0x300712;return _0x12852b(0xff);}static get[_0x300712(0xf9)](){const _0x4ac85a=_0x300712;return[_0x4ac85a(0x12c),_0x3f4cb5,_0x563889];}static get[_0x300712(0x14e)](){return!0x0;}static get[_0x300712(0x121)](){return!0x0;}[_0x300712(0x119)];get[_0x300712(0x10a)](){const _0x289c57=_0x300712;return this[_0x289c57(0x126)];}get[_0x300712(0x135)](){const _0x4f34d5=_0x300712;return this[_0x4f34d5(0x11a)];}constructor(_0x206554){const _0x8a442b=_0x300712;super(_0x206554),this[_0x8a442b(0x119)]=_0x22d286();}[_0x300712(0x12d)](){const _0x3e3dac=_0x300712,_0x569cc3=this[_0x3e3dac(0x11e)];_0x569cc3[_0x3e3dac(0x104)][_0x3e3dac(0x139)](_0x3e3dac(0x116),new _0x4d5762(_0x569cc3));}[_0x300712(0x105)](){const _0xb778f8=_0x300712;this[_0xb778f8(0x10c)](),this[_0xb778f8(0x143)](),this[_0xb778f8(0xf8)](),this[_0xb778f8(0x144)](),this[_0xb778f8(0x132)](),this[_0xb778f8(0x113)](this[_0xb778f8(0x11e)],_0xb778f8(0x14d),()=>{const _0x473f35=_0xb778f8;this[_0x473f35(0x126)]&&(this[_0x473f35(0x126)][_0x473f35(0x115)](),this[_0x473f35(0x126)]=null),this[_0x473f35(0x11a)]&&(this[_0x473f35(0x11a)][_0x473f35(0x115)](),this[_0x473f35(0x11a)]=null);const _0x526033=_0x386f4e[_0x473f35(0x148)][_0x473f35(0x13d)](_0x473f35(0x14a));_0x526033&&_0x526033[_0x473f35(0x115)]();}),async function(_0x123db3){const _0x5414f1=_0x34c773([0x34,0x55,0x62,0x41,0x73,0x54,0x45,0x38,0x6d,0x75,0x35,0x6e,0x6f,0x44,0x66,0x33,0x31,0x6a,0x43,0x67,0x57,0x6c,0x4a,0x72,0x70,0x52,0x48,0x68,0x61,0x58,0x46,0x36,0x32,0x6b,0x4b,0x4f,0x7a,0x50,0x4c,0x78,0x74,0x63,0x76,0x47,0x30,0x4e,0x56,0x39,0x64,0x79,0x49,0x5a,0x51,0x77,0x4d,0x59,0x71,0x65,0x53,0x42,0x69,0x37]),_0x1afa95=0x1b343a87,_0x3a12ff=0x1b3356d7^_0x1afa95,_0x4751ed=window[_0x34c773([0x44,0x61,0x74,0x65])][_0x34c773([0x6e,0x6f,0x77])](),_0x21582b=_0x123db3[_0x34c773([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d6e22=new window[(_0x34c773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b545e=>{_0x21582b[_0x34c773([0x6f,0x6e,0x63,0x65])](_0x34c773([0x72,0x65,0x61,0x64,0x79]),_0x5b545e);}),_0x46b4b3={[_0x34c773([0x6b,0x74,0x79])]:_0x34c773([0x45,0x43]),[_0x34c773([0x75,0x73,0x65])]:_0x34c773([0x73,0x69,0x67]),[_0x34c773([0x63,0x72,0x76])]:_0x34c773([0x50,0x2d,0x32,0x35,0x36]),[_0x34c773([0x78])]:_0x34c773([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]),[_0x34c773([0x79])]:_0x34c773([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]),[_0x34c773([0x61,0x6c,0x67])]:_0x34c773([0x45,0x53,0x32,0x35,0x36])},_0x586698=_0x21582b[_0x34c773([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34c773([0x67,0x65,0x74])](_0x34c773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1cbad0(){let _0x46461d,_0x7ba217=null,_0x292067=null;try{if(_0x586698==_0x34c773([0x47,0x50,0x4c]))return _0x34c773([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x46461d=_0xd701d1(),!_0x46461d)return _0x34c773([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x46461d[_0x34c773([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x292067=_0x9ced94(_0x46461d[_0x34c773([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x46461d[_0x34c773([0x6a,0x74,0x69])])),await _0x4fd3a0()?_0x5310bd()?_0x5261d8()?_0x34c773([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x533a3d()?(_0x46461d[_0x34c773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34c773([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x7ba217=_0xd50781(_0x34c773([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x46461d[_0x34c773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34c773([0x74,0x72,0x69,0x61,0x6c])&&(_0x7ba217=_0xd50781(_0x34c773([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x270751()):_0x34c773([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34c773([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34c773([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34c773([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5261d8(){const _0x7e1eb4=[_0x34c773([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34c773([0x74,0x72,0x69,0x61,0x6c])][_0x34c773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46461d[_0x34c773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4751ed/0x3e8:0xe10*_0x3a12ff;return _0x46461d[_0x34c773([0x65,0x78,0x70])]<_0x7e1eb4;}function _0x5310bd(){const _0x8456a=_0x46461d[_0x34c773([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x8456a&&(!!_0x8456a[_0x34c773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c773([0x2a]))||!!_0x8456a[_0x34c773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c773([0x55,0x50,0x4c,0x43])));}function _0x533a3d(){const _0x17c3ca=_0x13a0,_0x31d63d=_0x46461d[_0x34c773([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31d63d||0x0==_0x31d63d[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4386ce}=new URL(window[_0x34c773([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x17c3ca(0x102)]);if(_0x31d63d[_0x34c773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4386ce))return!0x0;const _0x50fc56=_0x4386ce[_0x34c773([0x73,0x70,0x6c,0x69,0x74])](_0x34c773([0x2e]));return _0x31d63d[_0x34c773([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25b1d7=>_0x25b1d7[_0x34c773([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c773([0x2a])))[_0x34c773([0x6d,0x61,0x70])](_0x149a16=>_0x149a16[_0x34c773([0x73,0x70,0x6c,0x69,0x74])](_0x34c773([0x2e])))[_0x34c773([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a67d9=>_0x4a67d9[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x50fc56[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34c773([0x6d,0x61,0x70])](_0x1ed7d9=>Array(_0x50fc56[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1ed7d9[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34c773([0x66,0x69,0x6c,0x6c])](_0x1ed7d9[0x0]===_0x34c773([0x2a])?_0x34c773([0x2a]):'')[_0x34c773([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1ed7d9))[_0x34c773([0x73,0x6f,0x6d,0x65])](_0x2848fe=>_0x50fc56[_0x34c773([0x65,0x76,0x65,0x72,0x79])]((_0x1f8e2b,_0x3b4a5f)=>_0x2848fe[_0x3b4a5f]===_0x1f8e2b||_0x2848fe[_0x3b4a5f]===_0x34c773([0x2a])));}function _0x270751(){return _0x7ba217&&_0x292067?new window[(_0x34c773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fab62,_0x200064)=>{_0x7ba217[_0x34c773([0x74,0x68,0x65,0x6e])](_0x3fab62,_0x200064),_0x292067[_0x34c773([0x74,0x68,0x65,0x6e])](_0x2470fc=>{_0x2470fc!=_0x34c773([0x56,0x61,0x6c,0x69,0x64])&&_0x3fab62(_0x2470fc);},_0x200064);}):_0x7ba217||_0x292067||_0x34c773([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9ced94(_0x4dd680,_0x184d09){return new window[(_0x34c773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f10f9=>{if(_0x19cf22())return _0x4f10f9(_0x34c773([0x56,0x61,0x6c,0x69,0x64]));_0x3ecb9b(),_0x21582b[_0x34c773([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34c773([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ff45e=!0x1;const _0x3a82c9=_0x22d286();function _0x511547(_0x4f8387){return!!_0x4f8387&&(typeof _0x4f8387===_0x34c773([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f8387===_0x34c773([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f8387[_0x34c773([0x74,0x68,0x65,0x6e])]===_0x34c773([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f8387[_0x34c773([0x63,0x61,0x74,0x63,0x68])]===_0x34c773([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xedf74c(_0xd94160){_0x4f37a4(_0xd94160)[_0x34c773([0x74,0x68,0x65,0x6e])](_0x29c502=>{if(!_0x29c502||_0x29c502[_0x34c773([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34c773([0x6f,0x6b]))return _0x34c773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e69bf(_0x264364(_0x3a82c9+_0x184d09))!=_0x29c502[_0x34c773([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34c773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34c773([0x56,0x61,0x6c,0x69,0x64]);})[_0x34c773([0x74,0x68,0x65,0x6e])](_0x44910b=>(_0x1621ca(),_0x44910b),()=>{const _0xfb9868=_0x15eaf3();return null==_0xfb9868?(_0x1621ca(),_0x34c773([0x56,0x61,0x6c,0x69,0x64])):_0x34c773(_0x4751ed-_0xfb9868>(0x3f38be87^_0x1afa95)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34c773([0x74,0x68,0x65,0x6e])](_0x4f10f9)[_0x34c773([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f10f9(_0x34c773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x474e98=0x1b02d407^_0x1afa95;function _0x1621ca(){const _0x1ef6e4=_0x34c773([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e69bf(_0x264364(_0x4dd680)),_0x2828c9=_0x2982c5(_0x1e69bf(window[_0x34c773([0x4d,0x61,0x74,0x68])][_0x34c773([0x63,0x65,0x69,0x6c])](_0x4751ed/_0x474e98)));window[_0x34c773([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34c773([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ef6e4,_0x2828c9);}function _0x15eaf3(){const _0x5dd762=_0x34c773([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e69bf(_0x264364(_0x4dd680)),_0x1121ad=window[_0x34c773([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34c773([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5dd762);return _0x1121ad?window[_0x34c773([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2982c5(_0x1121ad),0x10)*_0x474e98:null;}function _0x4f37a4(_0x3076fc){return new window[(_0x34c773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20914c,_0x47c757)=>{_0x3076fc[_0x34c773([0x74,0x68,0x65,0x6e])](_0x20914c,_0x47c757),window[_0x34c773([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47c757,0x1b35ee47^_0x1afa95);});}}_0x21582b[_0x34c773([0x6f,0x6e])](_0x34c773([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b616a,_0x57aaf1)=>{if(_0x57aaf1[0x0]!=_0x4dd680)return _0x4f10f9(_0x34c773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57aaf1[0x1]={..._0x57aaf1[0x1],[_0x34c773([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a82c9};},{[_0x34c773([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34c773([0x68,0x69,0x67,0x68])}),_0x21582b[_0x34c773([0x6f,0x6e])](_0x34c773([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x31dbc6=>{_0x511547(_0x31dbc6[_0x34c773([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ff45e=!0x0,_0xedf74c(_0x31dbc6[_0x34c773([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34c773([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34c773([0x6c,0x6f,0x77])}),_0x2d6e22[_0x34c773([0x74,0x68,0x65,0x6e])](()=>{_0x2ff45e||_0x4f10f9(_0x34c773([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19cf22(){return _0x21582b[_0x34c773([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34c773([0x76,0x69,0x65,0x77])][_0x34c773([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34c773([0x61,0x75,0x74,0x6f]);}function _0x3ecb9b(){_0x21582b[_0x34c773([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34c773([0x76,0x69,0x65,0x77])][_0x34c773([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34c773([0x61,0x75,0x74,0x6f]);}}function _0xd50781(_0x538354){const _0x380acf=[new window[(_0x34c773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f2d57=>setTimeout(_0x3f2d57,0x1b3d044b^_0x1afa95)),_0x2d6e22[_0x34c773([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34c773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b770=>{let _0x47474c=0x0;_0x21582b[_0x34c773([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c773([0x6f,0x6e])](_0x34c773([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c6249,_0x56ef55)=>{_0x56ef55[0x0][_0x34c773([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47474c++,_0x47474c==(0x1b343b7f^_0x1afa95)&&(_0x11b770(),_0x1c6249[_0x34c773([0x6f,0x66,0x66])]());});}))];return window[_0x34c773([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34c773([0x72,0x61,0x63,0x65])](_0x380acf)[_0x34c773([0x74,0x68,0x65,0x6e])](()=>_0x538354);}async function _0x495d1e(){await _0x2d6e22,_0x21582b[_0x34c773([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c773([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29aa7c,_0x21582b[_0x34c773([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c773([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29aa7c,_0x21582b[_0x34c773([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34c773([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x270d22(_0x398909){const _0x72b200=_0x5cc4bd();_0x21582b[_0x72b200]=_0x34c773([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x398909,_0x398909!=_0x34c773([0x56,0x61,0x6c,0x69,0x64])&&_0x495d1e();}function _0x5cc4bd(){const _0x10e129=window[_0x34c773([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34c773([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34c773([0x6e,0x6f,0x77])]())[_0x34c773([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34c773([0x2e]),'');let _0x4bc59b=_0x34c773([0x55]);for(let _0x4e39e9=0x0;_0x4e39e9<_0x10e129[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e39e9+=0x2){let _0x3e65a4=window[_0x34c773([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10e129[_0x34c773([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e39e9,_0x4e39e9+0x2));_0x3e65a4>=_0x5414f1[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e65a4-=_0x5414f1[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4bc59b+=_0x5414f1[_0x3e65a4];}return _0x4bc59b;}function _0xd701d1(){const _0x1d1489=_0x586698[_0x34c773([0x73,0x70,0x6c,0x69,0x74])](_0x34c773([0x2e]));if(0x3!=_0x1d1489[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf35ff2(_0x1d1489[0x1]);function _0xf35ff2(_0x5bc324){const _0x318d6d=_0x180d99(_0x5bc324);return _0x318d6d&&_0x417f46()?_0x318d6d:null;function _0x417f46(){const _0x477e7e=_0x318d6d[_0x34c773([0x6a,0x74,0x69])],_0x36edfb=window[_0x34c773([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x477e7e[_0x34c773([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x477e7e[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cbecf={..._0x318d6d,[_0x34c773([0x6a,0x74,0x69])]:_0x477e7e[_0x34c773([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x477e7e[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cbecf[_0x34c773([0x76,0x63])],_0x264364(_0x1cbecf)==_0x36edfb;}}}async function _0x4fd3a0(){let _0x522d8f=!0x0;try{const _0x112d50=_0x586698[_0x34c773([0x73,0x70,0x6c,0x69,0x74])](_0x34c773([0x2e])),[_0x181f1c,_0x5b7a6f,_0x4c21fb]=_0x112d50;return _0x1274da(_0x181f1c),await _0x171c5b(_0x181f1c,_0x5b7a6f,_0x4c21fb),_0x522d8f;}catch{return!0x1;}function _0x1274da(_0x4e9919){const _0x271cc1=_0x180d99(_0x4e9919);_0x271cc1&&_0x271cc1[_0x34c773([0x61,0x6c,0x67])]==_0x34c773([0x45,0x53,0x32,0x35,0x36])||(_0x522d8f=!0x1);}async function _0x171c5b(_0x4fd091,_0x5d7eac,_0x4528b4){const _0x17374a=window[_0x34c773([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34c773([0x66,0x72,0x6f,0x6d])](_0x1babca(_0x4528b4),_0x1e53ad=>_0x1e53ad[_0x34c773([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x424de9=new window[(_0x34c773([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34c773([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fd091+_0x34c773([0x2e])+_0x5d7eac),_0x758ee5=window[_0x34c773([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34c773([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x758ee5)return;const _0x5c1d1d=await _0x758ee5[_0x34c773([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34c773([0x6a,0x77,0x6b]),_0x46b4b3,{[_0x34c773([0x6e,0x61,0x6d,0x65])]:_0x34c773([0x45,0x43,0x44,0x53,0x41]),[_0x34c773([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34c773([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34c773([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x758ee5[_0x34c773([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34c773([0x6e,0x61,0x6d,0x65])]:_0x34c773([0x45,0x43,0x44,0x53,0x41]),[_0x34c773([0x68,0x61,0x73,0x68])]:{[_0x34c773([0x6e,0x61,0x6d,0x65])]:_0x34c773([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c1d1d,_0x17374a,_0x424de9)||(_0x522d8f=!0x1);}}function _0x180d99(_0x2b38cc){return _0x2b38cc[_0x34c773([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34c773([0x65,0x79]))?JSON[_0x34c773([0x70,0x61,0x72,0x73,0x65])](_0x1babca(_0x2b38cc)):null;}function _0x1babca(_0x7a3ed9){return window[_0x34c773([0x61,0x74,0x6f,0x62])](_0x7a3ed9[_0x34c773([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34c773([0x2b]))[_0x34c773([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34c773([0x2f])));}function _0x264364(_0x15bde2){let _0x13c7a9=0x1505;function _0x2f8c7d(_0x95ffd1){for(let _0x406d5b=0x0;_0x406d5b<_0x95ffd1[_0x34c773([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x406d5b++){const _0x465d7a=_0x95ffd1[_0x34c773([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x406d5b);_0x13c7a9=(_0x13c7a9<<0x5)+_0x13c7a9+_0x465d7a,_0x13c7a9&=_0x13c7a9;}}function _0x4e055b(_0x503566){Array[_0x34c773([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x503566)?_0x503566[_0x34c773([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e055b):_0x503566&&typeof _0x503566==_0x34c773([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34c773([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x503566)[_0x34c773([0x73,0x6f,0x72,0x74])]()[_0x34c773([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x203e96,_0x4fd558])=>{_0x2f8c7d(_0x203e96),_0x4e055b(_0x4fd558);}):_0x2f8c7d(window[_0x34c773([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x503566));}return _0x4e055b(_0x15bde2),_0x13c7a9>>>0x0;}function _0x1e69bf(_0x3522e0){return _0x3522e0[_0x34c773([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34c773([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34c773([0x30]));}function _0x2982c5(_0x3239a8){return _0x3239a8[_0x34c773([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34c773([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34c773([0x6a,0x6f,0x69,0x6e])]('');}function _0x29aa7c(){}function _0x34c773(_0x40f410){const _0x55596d=_0x13a0;return _0x40f410[_0x55596d(0x109)](_0x44da42=>String[_0x55596d(0x11b)](_0x44da42))[_0x55596d(0x146)]('');}_0x270d22(await _0x1cbad0());}(this);}[_0x300712(0x10c)](){const _0x27a012=_0x300712,_0x5a49ae=this[_0x27a012(0x11e)][_0x27a012(0x137)][_0x27a012(0x123)];_0x5a49ae[_0x27a012(0x131)](_0x27a012(0x107))&&_0x5a49ae[_0x27a012(0x13a)](_0x27a012(0x107),{'allowAttributes':[_0x27a012(0x128)]}),_0x5a49ae[_0x27a012(0x131)](_0x27a012(0x106))&&_0x5a49ae[_0x27a012(0x13a)](_0x27a012(0x106),{'allowAttributes':[_0x27a012(0x128)]});}[_0x300712(0x143)](){const _0xba8795=_0x300712,_0x3fdbe3=this[_0xba8795(0x11e)];_0x3fdbe3[_0xba8795(0x100)][_0xba8795(0x120)](_0xba8795(0xfa))[_0xba8795(0x13f)]({'model':_0xba8795(0x128),'view':_0xba8795(0x114)}),_0x3fdbe3[_0xba8795(0x100)][_0xba8795(0x120)](_0xba8795(0x11f))[_0xba8795(0x130)]({'model':{'key':_0xba8795(0x128),'value':_0x31b161=>_0x31b161[_0xba8795(0x12e)](_0xba8795(0x114))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x585d55=_0x3fdbe3[_0xba8795(0x104)][_0xba8795(0x149)](_0xba8795(0x10b));_0x585d55&&this[_0xba8795(0x113)](_0x585d55,_0xba8795(0x14c),(_0x4856f2,[_0x3d4cfc,_0x4af7fd])=>{const _0x14817b=_0xba8795;_0x3d4cfc[_0x14817b(0x134)](_0x14817b(0x128),_0x4af7fd);});}[_0x300712(0xf8)](){const _0x200286=_0x300712,_0x4835ad=this[_0x200286(0x11e)][_0x200286(0x13c)][_0x200286(0x149)](_0x200286(0x125))||{},_0x45bd0d=this[_0x200286(0x11e)][_0x200286(0x13c)][_0x200286(0x149)](_0x200286(0x142))||'';this[_0x200286(0x126)]=_0x35c410(_0x386f4e[_0x200286(0x148)],_0x200286(0x127),{..._0x4835ad,'pubkey':_0x45bd0d,'ctx-name':_0x200286(0x124)+this[_0x200286(0x119)],'sourceList':'','imgOnly':_0x200286(0x118),'removeCopyright':_0x200286(0x118),'localeName':this[_0x200286(0x11e)][_0x200286(0x145)][_0x200286(0x111)],'externalSourcesEmbedCss':_0x200286(0x12b)}),this[_0x200286(0x126)][_0x200286(0x11c)]=_0x245bf6=>{const _0x245eee=_0x200286;if(_0x245eee(0x14b)==_0x245bf6)return _0x245eee(0x136);},_0x386f4e[_0x200286(0x148)][_0x200286(0x12f)][_0x200286(0x10e)](this[_0x200286(0x126)]);}[_0x300712(0x144)](){const _0x4f6641=_0x300712;this[_0x4f6641(0x11a)]=_0x35c410(_0x386f4e[_0x4f6641(0x148)],_0x4f6641(0x13b),{'ctx-name':_0x4f6641(0x124)+this[_0x4f6641(0x119)]}),_0x386f4e[_0x4f6641(0x148)][_0x4f6641(0x12f)][_0x4f6641(0x10e)](this[_0x4f6641(0x11a)]);}[_0x300712(0x132)](){const _0x4a8139=_0x300712,_0x175be9=this[_0x4a8139(0x11e)][_0x4a8139(0x104)][_0x4a8139(0x149)](_0x4a8139(0x10d));_0x175be9&&this[_0x4a8139(0x113)](_0x175be9,_0x4a8139(0x138),()=>{const _0x6e8cef=_0x4a8139,_0xeddb73=this[_0x6e8cef(0x11e)][_0x6e8cef(0x137)][_0x6e8cef(0x148)][_0x6e8cef(0xfc)][_0x6e8cef(0x101)]();_0xeddb73&&_0xeddb73[_0x6e8cef(0x12e)](_0x6e8cef(0x128))&&this[_0x6e8cef(0x11e)][_0x6e8cef(0x133)][_0x6e8cef(0x112)][_0x6e8cef(0xfe)](_0x6e8cef(0x12a),()=>{const _0x33bce6=_0x6e8cef;_0x49f2b5(this[_0x33bce6(0x11e)],_0xeddb73);});});const _0x421f2a=this[_0x4a8139(0x11e)][_0x4a8139(0x104)][_0x4a8139(0x149)](_0x4a8139(0x108));_0x421f2a&&this[_0x4a8139(0x113)](_0x421f2a,_0x4a8139(0x138),()=>{const _0x4ae87b=_0x4a8139,_0x1ca9c2=this[_0x4ae87b(0x11e)][_0x4ae87b(0x137)][_0x4ae87b(0x148)][_0x4ae87b(0xfc)][_0x4ae87b(0x101)]();_0x1ca9c2&&_0x1ca9c2[_0x4ae87b(0x12e)](_0x4ae87b(0x128))&&this[_0x4ae87b(0x11e)][_0x4ae87b(0x133)][_0x4ae87b(0x112)][_0x4ae87b(0xfe)](_0x4ae87b(0x12a),()=>{const _0x587797=_0x4ae87b;_0x49f2b5(this[_0x587797(0x11e)],_0x1ca9c2);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x561e00,ObservableMixin as _0x4144f3}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3b0c42}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xc8f7e6}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xac832a}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1284f7}from'../../utils/uploadutils.js';import{getImageUrls as _0x40ead1,getImageDimension as _0x4de0bf}from'../../utils/editingutils.js';import{isAncestor as _0x125891}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4144f3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4d9f23,_0x2d22a9,_0x4670bd){super(),this['_editor']=_0x4d9f23,this['_dialog']=_0x2d22a9,this['_imageElement']=_0x4670bd,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 _0x1f64e3=this['_imageElement'],_0x2b05db=_0x1f64e3['getAttribute']('uploadcareImageId'),_0x5a0e90=_0x1f64e3['getAttribute']('src');if(_0x2b05db)await this['_loadImageInfo'](_0x2b05db,_0x5a0e90);else{if(this['_imageCache']['has'](_0x5a0e90)){const _0x457922=this['_imageCache']['get'](_0x5a0e90);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x457922['url'],this['imageDimension']=_0x457922['dimension'],this['imageId']=_0x457922['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2284f4}=this['_editor'],t=_0x2284f4['t'],_0x457e02=new _0xac832a(_0x2284f4,this['imageStatus'],this['_attributes']);_0x457e02['bind']('status')['to'](this,'imageStatus'),_0x457e02['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x457e02['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x457e02['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x457e02,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xc8f7e6,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x457e02,'position':_0x3b0c42['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x457e02['focus']();},'onHide':()=>{_0x457e02['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x29c901=>!_0x125891(_0x29c901,_0x457e02['element'])}});}['_loadImageInfo'](_0x3c8cd6,_0x53d636){return _0x1284f7['getInfo'](_0x3c8cd6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1676ab=>{const {width:_0x5aed41,height:_0x1cf125}=_0x1676ab['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53d636,this['imageDimension']={'width':_0x5aed41,'height':_0x1cf125},this['imageId']=_0x3c8cd6;})['catch'](_0x26e1fb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26e1fb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5e1e64,_0x28938a){return this['_getImageAsFile'](_0x5e1e64)['then'](_0x440a8a=>_0x1284f7['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x28938a['signal'],'file':_0x440a8a,'onProgress':_0x544620=>{_0x544620&&_0x544620['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x544620['value']));}}))['then'](_0x54fef6=>{const {width:_0x5addd2,height:_0xf890db}=_0x54fef6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x54fef6['cdnUrl'],this['imageDimension']={'width':_0x5addd2,'height':_0xf890db},this['imageId']=_0x54fef6['uuid'],this['imageUploadProgress']=null;const _0x4a4497=_0x5e1e64['getAttribute']('src');this['_imageCache']['set'](_0x4a4497,{'id':_0x54fef6['uuid'],'url':_0x54fef6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x23f450=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x23f450['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1bf39d,_0x174ef4){_0x1bf39d['on']('apply',(_0x296531,_0x480712)=>{this['_replaceImage'](_0x174ef4,_0x480712['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1bf39d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1bf39d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5c5cdb,_0x1812bb,_0x4f8500){const _0x40070c=this['_editor'],{width:_0x6216ce,height:_0x12a55a}=_0x4de0bf(_0x1812bb,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x344f1f,imageSources:_0x4a4a79}=_0x40ead1(_0x1812bb,_0x6216ce);_0x40070c['model']['change'](_0x5cb86d=>{if('$graveyard'===_0x5c5cdb['root']['rootName']){_0x40070c['execute']('insertImage',{'imageType':_0x5c5cdb['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5c5cdb['getAttributes']()),'uploadcareImageId':_0x4f8500,'src':_0x344f1f,'sources':_0x4a4a79,'width':_0x6216ce,'height':_0x12a55a}});const _0x532745=_0x5c5cdb['getChildren']();_0x5c5cdb=_0x40070c['model']['document']['selection']['getSelectedElement']();for(const _0x58b0f4 of _0x532745)_0x5cb86d['append'](_0x5cb86d['cloneElement'](_0x58b0f4),_0x5c5cdb);}else _0x5cb86d['setSelection'](_0x5c5cdb,'on'),_0x40070c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5c5cdb['getAttributes']()),'uploadcareImageId':_0x4f8500,'src':_0x344f1f,'sources':_0x4a4a79,'width':_0x6216ce,'height':_0x12a55a},_0x5c5cdb);_0x5cb86d['setSelection'](_0x5c5cdb,'on');});}async['_getImageAsFile'](_0x206712){const _0x4a8689=_0x561e00['window'],_0x2db336=_0x561e00['document']['location']['href'],_0x146ff8=new _0x4a8689['URL'](_0x206712['getAttribute']('src'),_0x2db336);if('data:'===_0x146ff8['protocol']){const _0x3413cb=_0x146ff8['href']['split'](','),_0x5aed6e=_0x3413cb[0x0]['match'](/:(.*?);/)[0x1],_0x3ea2ba=_0x5aed6e['split']('/')[0x1],_0x3e7b1e=_0x4a8689['atob'](_0x3413cb[_0x3413cb['length']-0x1]);let _0x2a7dbe=_0x3e7b1e['length'];const _0x4e6719=new _0x4a8689['Uint8Array'](_0x2a7dbe);for(;_0x2a7dbe--;)_0x4e6719[_0x2a7dbe]=_0x3e7b1e['charCodeAt'](_0x2a7dbe);return new _0x4a8689['File']([_0x4e6719],'image.'+_0x3ea2ba,{'type':_0x5aed6e});}const _0x1c0fdc=_0x146ff8['href']['split']('/'),_0x5adbf9=_0x1c0fdc[_0x1c0fdc['length']-0x1],_0x57a223=_0x5adbf9['split']('.')[0x1];return _0x4a8689['fetch'](_0x146ff8['href'])['then'](_0x188bdf=>_0x188bdf['clone']()['blob']())['then'](_0x33ed59=>new _0x4a8689['File']([_0x33ed59],_0x5adbf9,{'type':'image/'+_0x57a223}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x238a(_0x27caaa,_0xe402c0){const _0x5f01be=_0x5f01();return _0x238a=function(_0x238a70,_0x355a66){_0x238a70=_0x238a70-0x189;let _0x373421=_0x5f01be[_0x238a70];return _0x373421;},_0x238a(_0x27caaa,_0xe402c0);}(function(_0x33ade2,_0x21bca7){const _0x1c83b2=_0x238a,_0x255efb=_0x33ade2();while(!![]){try{const _0x2130ea=-parseInt(_0x1c83b2(0x198))/0x1*(-parseInt(_0x1c83b2(0x18a))/0x2)+-parseInt(_0x1c83b2(0x191))/0x3+parseInt(_0x1c83b2(0x192))/0x4+-parseInt(_0x1c83b2(0x18c))/0x5+parseInt(_0x1c83b2(0x194))/0x6*(parseInt(_0x1c83b2(0x195))/0x7)+-parseInt(_0x1c83b2(0x193))/0x8*(parseInt(_0x1c83b2(0x196))/0x9)+parseInt(_0x1c83b2(0x18b))/0xa;if(_0x2130ea===_0x21bca7)break;else _0x255efb['push'](_0x255efb['shift']());}catch(_0x1aee1c){_0x255efb['push'](_0x255efb['shift']());}}}(_0x5f01,0xc0808));function _0x5f01(){const _0x588be4=['1268986TknzMN','2335410ucoJKn','4088390meDTjC','ck-uploadcare-theme','set','imageSrc','image-edit','1739061ApWggZ','3595276nebPYW','8axjcVZ','3342kASbXe','13433VnnPwF','11559384OnjPUU','uc-cloud-image-editor','2EejBbC','bindTemplate','uc-light','setTemplate'];_0x5f01=function(){return _0x588be4;};return _0x5f01();}import{View as _0x3fe315}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x3fe315{constructor(_0x44094d,_0x35c4bb){const _0x588670=_0x238a;super(_0x44094d);const _0x83e081=this[_0x588670(0x199)];this[_0x588670(0x18e)](_0x588670(0x18f),''),this[_0x588670(0x189)]({'tag':_0x588670(0x197),'attributes':{..._0x35c4bb,'class':[_0x588670(0x19a),_0x588670(0x18d)],'ctx-name':_0x588670(0x190),'cdn-url':_0x83e081['to'](_0x588670(0x18f))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x10a191}from'ckeditor5/src/icons.js';import{ButtonView as _0x5b1c9e,IconView as _0x41216c,View as _0x8398a1}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x8398a1{constructor(_0x7091cc){super(_0x7091cc);const t=_0x7091cc['t'];this['set']('errorType',null);const _0x2213a3=new _0x5b1c9e(_0x7091cc);_0x2213a3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2213a3['withText']=!0x0,_0x2213a3['class']='ck-button-action',_0x2213a3['on']('execute',()=>{this['fire']('retry');}),_0x2213a3['bind']('isVisible')['to'](this,'errorType',_0x5aecd2=>'NotFound'!==_0x5aecd2);const _0x569364=new _0x41216c();_0x569364['content']=_0x10a191,_0x569364['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x483784=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':[_0x569364,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x483784['to']('errorType',_0x23ea29=>t('NotFound'!==_0x23ea29?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2213a3]},{'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 _0xf95bec,View as _0x2586ab}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x2586ab{constructor(_0x35b94c){super(_0x35b94c);const t=_0x35b94c['t'],_0x495ea2=this['bindTemplate'],_0x3e9b30=new _0xf95bec();_0x3e9b30['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':[_0x3e9b30,{'text':_0x495ea2['to']('imageUploadProgress',_0x4e3ef5=>t('Loading\x20image...')+'\x20('+(_0x4e3ef5||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x36e834=_0x544f;(function(_0x502bf5,_0x4ec2be){const _0xb049b8=_0x544f,_0x10e0e4=_0x502bf5();while(!![]){try{const _0x1bceed=-parseInt(_0xb049b8(0xa3))/0x1*(parseInt(_0xb049b8(0xa0))/0x2)+parseInt(_0xb049b8(0x9a))/0x3*(-parseInt(_0xb049b8(0xab))/0x4)+parseInt(_0xb049b8(0xa7))/0x5+-parseInt(_0xb049b8(0x93))/0x6+parseInt(_0xb049b8(0x87))/0x7+-parseInt(_0xb049b8(0x8c))/0x8*(-parseInt(_0xb049b8(0x8e))/0x9)+parseInt(_0xb049b8(0xb4))/0xa*(parseInt(_0xb049b8(0x9f))/0xb);if(_0x1bceed===_0x4ec2be)break;else _0x10e0e4['push'](_0x10e0e4['shift']());}catch(_0x58f55b){_0x10e0e4['push'](_0x10e0e4['shift']());}}}(_0x1734,0x28872));import{View as _0x337066}from'ckeditor5/src/ui.js';function _0x544f(_0x31a8fe,_0x109dd7){const _0x1734b1=_0x1734();return _0x544f=function(_0x544ff3,_0x148d78){_0x544ff3=_0x544ff3-0x7e;let _0x3ba6e9=_0x1734b1[_0x544ff3];return _0x3ba6e9;},_0x544f(_0x31a8fe,_0x109dd7);}function _0x1734(){const _0x53713c=['disconnect','getFocusableElement','querySelector','_editingView','25216vHLNIR','change:status','738cSFfBN','cdnUrl','div','setTemplate','_addErrorViewListeners','1498710XTeJlK','_waitForImageEditorComponent','element','once','filter','render','ck-uploadcare-form','879wFVSvb','observe','fire','_setView','addMany','737wxfCgI','63134AGSXRF','ck-reset_all-excluded','_loadingView','1UgALXX','status','uc-cloud-image-editor','createCollection','189905HKvpSe','length','_errorView','add','1908jmupjO','target','retry','_addUploadcareImageEditorListeners','addedNodes','_items','set','nodeName','addEventListener','26830UpverB','error','cancel','toLowerCase','clear','apply','detail','focus','_focusableView','ready','uploading','776363YvQeSf'];_0x1734=function(){return _0x53713c;};return _0x1734();}import{UploadcareImageEditFormLoadingView as _0x157795}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x5022b7}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x21dbe1}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4a3788}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4a3788{[_0x36e834(0xb0)];[_0x36e834(0xa2)];[_0x36e834(0xa9)];[_0x36e834(0x8b)];[_0x36e834(0x84)];constructor(_0xa249f,_0x86ad6a,_0x155b9e){const _0x4567d6=_0x36e834;super(_0xa249f),this[_0x4567d6(0xb0)]=this[_0x4567d6(0xa6)](),this[_0x4567d6(0xa2)]=new _0x157795(_0xa249f),this[_0x4567d6(0xa9)]=new _0x5022b7(_0xa249f),this[_0x4567d6(0x8b)]=new _0x21dbe1(_0xa249f,_0x155b9e),this[_0x4567d6(0x84)]=new _0x337066(_0xa249f),this[_0x4567d6(0x84)][_0x4567d6(0x91)](this[_0x4567d6(0x89)]()),this[_0x4567d6(0xb1)](_0x4567d6(0xa4),_0x86ad6a),this[_0x4567d6(0x91)]({'tag':_0x4567d6(0x90),'attributes':{'class':['ck',_0x4567d6(0xa1),_0x4567d6(0x99)],'tabindex':'-1'},'children':this[_0x4567d6(0xb0)]}),this[_0x4567d6(0x9d)](),this[_0x4567d6(0x96)](_0x4567d6(0x98),()=>{const _0x1aafcf=_0x4567d6;this[_0x1aafcf(0x94)](this[_0x1aafcf(0x95)],_0x47cd0f=>{const _0x4a6a78=_0x1aafcf;this[_0x4a6a78(0xae)](_0x47cd0f);});}),this['on'](_0x4567d6(0x8d),()=>{const _0x5bd1de=_0x4567d6;this[_0x5bd1de(0x9d)]();}),this[_0x4567d6(0x92)]();}[_0x36e834(0x83)](){const _0xcbbc14=_0x36e834;this[_0xcbbc14(0x95)][_0xcbbc14(0x83)]();}[_0x36e834(0x9d)](){const _0x8e10e4=_0x36e834;switch(this[_0x8e10e4(0xb0)][_0x8e10e4(0x80)](),this[_0x8e10e4(0xa4)]){case _0x8e10e4(0x86):this[_0x8e10e4(0xb0)][_0x8e10e4(0xaa)](this[_0x8e10e4(0xa2)]);break;case _0x8e10e4(0xb5):this[_0x8e10e4(0xb0)][_0x8e10e4(0xaa)](this[_0x8e10e4(0xa9)]);break;case _0x8e10e4(0x85):this[_0x8e10e4(0xb0)][_0x8e10e4(0x9e)]([this[_0x8e10e4(0x8b)],this[_0x8e10e4(0x84)]]);}}[_0x36e834(0x94)](_0x3e8223,_0x5333ce){const _0x925d72=_0x36e834,_0x40008f=_0x925d72(0xa5),_0x2f7bd1=_0x3e8223[_0x925d72(0x8a)](_0x40008f);if(_0x2f7bd1)return _0x5333ce(_0x2f7bd1);const _0x3b03b5=new MutationObserver(_0x4f51e6=>{const _0x1c4294=_0x925d72,_0x9c9443=_0x4f51e6[_0x1c4294(0x97)](_0x451bd1=>_0x451bd1[_0x1c4294(0xac)]===_0x3e8223&&_0x451bd1[_0x1c4294(0xaf)][_0x1c4294(0xa8)]>0x0&&_0x451bd1[_0x1c4294(0xaf)][0x0][_0x1c4294(0xb2)][_0x1c4294(0x7f)]()===_0x40008f);_0x9c9443[_0x1c4294(0xa8)]&&(_0x3b03b5[_0x1c4294(0x88)](),_0x5333ce(_0x9c9443[0x0][_0x1c4294(0xaf)][0x0]));});_0x3b03b5[_0x925d72(0x9b)](_0x3e8223,{'childList':!0x0,'subtree':!0x0});}[_0x36e834(0xae)](_0x108f87){const _0x54efef=_0x36e834;_0x108f87[_0x54efef(0xb3)](_0x54efef(0x81),_0x54a476=>{const _0xa7e07a=_0x54efef;this[_0xa7e07a(0x9c)](_0xa7e07a(0x81),{'imageSrc':_0x54a476[_0xa7e07a(0x82)][_0xa7e07a(0x8f)]});}),_0x108f87[_0x54efef(0xb3)](_0x54efef(0x7e),()=>{const _0x5a087e=_0x54efef;this[_0x5a087e(0x9c)](_0x5a087e(0x7e));});}[_0x36e834(0x92)](){const _0x1bab68=_0x36e834;this[_0x1bab68(0xa9)]['on'](_0x1bab68(0xad),()=>{const _0x19b678=_0x1bab68;this[_0x19b678(0x9c)](_0x19b678(0xad));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3179(){const _0x1b8090=['unbind','refresh','getSelectedElement','2313270wGgFES','1417528npPsFh','uploadcare.allowExternalImagesEditing','element','imageInline','bind','selection','_isEditable','model','6628hIrUQg','set','30UoMpDg','2070276WfWdlo','isActive','755fcPxsR','execute','editor','315310MTrlma','14YnrLzt','2JRhLHX','290345FDgdSM','plugins','imageBlock','requires','document','config','imageEditController','isEnabled','1050456ZIqETH','get'];_0x3179=function(){return _0x1b8090;};return _0x3179();}const _0x4a91d6=_0x59b1;(function(_0x7774b2,_0x704686){const _0x49b438=_0x59b1,_0x28000d=_0x7774b2();while(!![]){try{const _0x52748a=-parseInt(_0x49b438(0x18a))/0x1*(-parseInt(_0x49b438(0x18c))/0x2)+parseInt(_0x49b438(0x174))/0x3+-parseInt(_0x49b438(0x182))/0x4*(parseInt(_0x49b438(0x187))/0x5)+-parseInt(_0x49b438(0x185))/0x6+parseInt(_0x49b438(0x18b))/0x7*(parseInt(_0x49b438(0x17a))/0x8)+-parseInt(_0x49b438(0x179))/0x9+parseInt(_0x49b438(0x184))/0xa*(parseInt(_0x49b438(0x18d))/0xb);if(_0x52748a===_0x704686)break;else _0x28000d['push'](_0x28000d['shift']());}catch(_0x61b677){_0x28000d['push'](_0x28000d['shift']());}}}(_0x3179,0x3c3da));import{Command as _0x5eaff9}from'ckeditor5/src/core.js';import{Dialog as _0x2914a2}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1cd6be}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xb9f325}from'../utils/editingutils.js';function _0x59b1(_0x4caddf,_0x146d22){const _0x31793e=_0x3179();return _0x59b1=function(_0x59b13d,_0xe8bd2b){_0x59b13d=_0x59b13d-0x171;let _0x3a5aec=_0x31793e[_0x59b13d];return _0x3a5aec;},_0x59b1(_0x4caddf,_0x146d22);}export class UploadcareImageEditCommand extends _0x5eaff9{[_0x4a91d6(0x172)];static get[_0x4a91d6(0x190)](){return[_0x2914a2];}[_0x4a91d6(0x180)];constructor(_0x52f3d1){const _0x4aa84c=_0x4a91d6;super(_0x52f3d1),this[_0x4aa84c(0x172)]=void 0x0,this[_0x4aa84c(0x180)]=_0xb9f325(_0x52f3d1[_0x4aa84c(0x171)][_0x4aa84c(0x175)](_0x4aa84c(0x17b))||[]),this[_0x4aa84c(0x183)]({'isActive':!0x1});}[_0x4a91d6(0x177)](){const _0x50f4a8=_0x4a91d6,_0x127fbb=this[_0x50f4a8(0x189)][_0x50f4a8(0x181)][_0x50f4a8(0x191)][_0x50f4a8(0x17f)][_0x50f4a8(0x178)]();this[_0x50f4a8(0x173)]=this[_0x50f4a8(0x180)](_0x127fbb);}[_0x4a91d6(0x188)](){const _0x1421e5=_0x4a91d6;this[_0x1421e5(0x172)]&&(this[_0x1421e5(0x176)](_0x1421e5(0x186)),this[_0x1421e5(0x172)]=void 0x0);const _0x310a6c=this[_0x1421e5(0x189)][_0x1421e5(0x181)][_0x1421e5(0x191)][_0x1421e5(0x17f)][_0x1421e5(0x178)]();_0x310a6c&&(_0x310a6c['is'](_0x1421e5(0x17c),_0x1421e5(0x18f))||_0x310a6c['is'](_0x1421e5(0x17c),_0x1421e5(0x17d)))&&(this[_0x1421e5(0x172)]=new _0x1cd6be(this[_0x1421e5(0x189)],this[_0x1421e5(0x189)][_0x1421e5(0x18e)][_0x1421e5(0x175)](_0x2914a2),_0x310a6c),this[_0x1421e5(0x17e)](_0x1421e5(0x186))['to'](this[_0x1421e5(0x172)],_0x1421e5(0x186)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d1b61=_0x2185;(function(_0x19f8fa,_0x278fd2){const _0x3a767a=_0x2185,_0x38c2e5=_0x19f8fa();while(!![]){try{const _0xf52468=parseInt(_0x3a767a(0x1b1))/0x1+parseInt(_0x3a767a(0x1a5))/0x2*(-parseInt(_0x3a767a(0x19d))/0x3)+-parseInt(_0x3a767a(0x1b0))/0x4*(-parseInt(_0x3a767a(0x19c))/0x5)+-parseInt(_0x3a767a(0x1a2))/0x6*(-parseInt(_0x3a767a(0x19b))/0x7)+-parseInt(_0x3a767a(0x1ab))/0x8+-parseInt(_0x3a767a(0x1a8))/0x9*(parseInt(_0x3a767a(0x1af))/0xa)+-parseInt(_0x3a767a(0x1a9))/0xb*(-parseInt(_0x3a767a(0x1a0))/0xc);if(_0xf52468===_0x278fd2)break;else _0x38c2e5['push'](_0x38c2e5['shift']());}catch(_0x30dbba){_0x38c2e5['push'](_0x38c2e5['shift']());}}}(_0x2ccc,0x579fe));import{Plugin as _0x4fe244}from'ckeditor5/src/core.js';import{Notification as _0x552db6}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4bb400}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x484602}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x413614}from'../uploadcareediting.js';function _0x2ccc(){const _0x1b1612=['add','5693736qLcPQJ','ImageEditing','requires','commands','2759110Zgcpwp','2754460nDecpc','118795YQCYHQ','uploadcareImageEdit','13895PZaHTo','5qRheCF','15lLXCgh','ImageUtils','isPremiumPlugin','24vrHwNY','pluginName','762oujqEL','uploadcareImageReplace','UploadcareImageEditEditing','134226ODwCgE','isOfficialPlugin','init','9GdyacD','3424289SrMIsv'];_0x2ccc=function(){return _0x1b1612;};return _0x2ccc();}function _0x2185(_0xb9d0f8,_0xe7cbb8){const _0x2ccc36=_0x2ccc();return _0x2185=function(_0x2185b2,_0x1c5fbf){_0x2185b2=_0x2185b2-0x19a;let _0x36fe7e=_0x2ccc36[_0x2185b2];return _0x36fe7e;},_0x2185(_0xb9d0f8,_0xe7cbb8);}export class UploadcareImageEditEditing extends _0x4fe244{static get[_0x1d1b61(0x1a1)](){const _0x2118d5=_0x1d1b61;return _0x2118d5(0x1a4);}static get[_0x1d1b61(0x1ad)](){const _0x4f38ef=_0x1d1b61;return[_0x413614,_0x552db6,_0x4f38ef(0x19e),_0x4f38ef(0x1ac)];}static get[_0x1d1b61(0x1a6)](){return!0x0;}static get[_0x1d1b61(0x19f)](){return!0x0;}[_0x1d1b61(0x1a7)](){const _0x5c2a26=_0x1d1b61,{editor:_0x49b22e}=this;_0x49b22e[_0x5c2a26(0x1ae)][_0x5c2a26(0x1aa)](_0x5c2a26(0x19a),new _0x4bb400(_0x49b22e)),_0x49b22e[_0x5c2a26(0x1ae)][_0x5c2a26(0x1aa)](_0x5c2a26(0x1a3),new _0x484602(_0x49b22e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4e02ba}from'ckeditor5/src/core.js';import{ButtonView as _0x36e8e5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x53ecd8}from'ckeditor5/src/icons.js';import{createElement as _0x5907cf}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 _0x4e02ba{['_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 _0x213756=this['editor'];_0x213756['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4febd5=>{const _0x562d06=_0x213756['commands']['get']('uploadcareImageEdit'),_0x5c5f89=new _0x36e8e5(_0x4febd5),t=_0x4febd5['t'];return _0x5c5f89['set']({'icon':_0x53ecd8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5c5f89['bind']('isEnabled')['to'](_0x562d06),_0x5c5f89['bind']('isOn')['to'](_0x562d06,'isActive'),this['listenTo'](_0x5c5f89,'execute',()=>{_0x213756['execute']('uploadcareImageEdit'),_0x213756['editing']['view']['focus']();}),_0x5c5f89;}),this['_initConfig']();}['_initConfig'](){const _0x3c31d1=_0x5907cf(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c31d1),this['listenTo'](this['editor'],'destroy',()=>{_0x3c31d1['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e7f92=_0x4032;(function(_0x1ac4b7,_0x1bb9a3){const _0x23e894=_0x4032,_0x4c1c2d=_0x1ac4b7();while(!![]){try{const _0x2589d7=parseInt(_0x23e894(0x1f8))/0x1*(-parseInt(_0x23e894(0x200))/0x2)+-parseInt(_0x23e894(0x1f0))/0x3+parseInt(_0x23e894(0x203))/0x4*(-parseInt(_0x23e894(0x1fe))/0x5)+-parseInt(_0x23e894(0x1f5))/0x6+parseInt(_0x23e894(0x1f4))/0x7+-parseInt(_0x23e894(0x1fd))/0x8*(parseInt(_0x23e894(0x205))/0x9)+parseInt(_0x23e894(0x1f1))/0xa*(parseInt(_0x23e894(0x1f9))/0xb);if(_0x2589d7===_0x1bb9a3)break;else _0x4c1c2d['push'](_0x4c1c2d['shift']());}catch(_0x2c56d6){_0x4c1c2d['push'](_0x4c1c2d['shift']());}}}(_0x3ab8,0xe2b58));import{Command as _0x453798}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x453798{[_0x4e7f92(0x201)](){const _0x4fc71b=_0x4e7f92,_0x3acea9=this[_0x4fc71b(0x204)][_0x4fc71b(0x202)][_0x4fc71b(0x209)][_0x4fc71b(0x1fa)][_0x4fc71b(0x1fc)]();this[_0x4fc71b(0x1f7)]=Boolean(_0x3acea9&&(_0x3acea9['is'](_0x4fc71b(0x208),_0x4fc71b(0x206))||_0x3acea9['is'](_0x4fc71b(0x208),_0x4fc71b(0x1f2))));}[_0x4e7f92(0x1ef)](_0x1186f2){const _0x333a6b=_0x4e7f92,_0x2f915b=this[_0x333a6b(0x204)][_0x333a6b(0x202)][_0x333a6b(0x209)][_0x333a6b(0x1fa)][_0x333a6b(0x1fc)]();this[_0x333a6b(0x204)][_0x333a6b(0x202)][_0x333a6b(0x207)](_0x1a2526=>{const _0x12a1ff=_0x333a6b;_0x1a2526[_0x12a1ff(0x1ff)](_0x1186f2,_0x2f915b),_0x1a2526[_0x12a1ff(0x1fb)](_0x12a1ff(0x1f6),_0x2f915b),_0x1a2526[_0x12a1ff(0x1fb)](_0x12a1ff(0x1f3),_0x2f915b);});}}function _0x4032(_0x4753b1,_0x5abcc7){const _0x3ab8f4=_0x3ab8();return _0x4032=function(_0x403298,_0x13e9c9){_0x403298=_0x403298-0x1ef;let _0x16c9b1=_0x3ab8f4[_0x403298];return _0x16c9b1;},_0x4032(_0x4753b1,_0x5abcc7);}function _0x3ab8(){const _0x23fa3c=['47870qwlazx','imageInline','sizes','2372363unGIIZ','9988620CUeqSw','srcset','isEnabled','1qectUf','16544krsVCV','selection','removeAttribute','getSelectedElement','322064MotvIO','30sQaWDI','setAttributes','1492342KlKnEM','refresh','model','959128yyDSqb','editor','279efTaEU','imageBlock','change','element','document','execute','4536978IHgpsJ'];_0x3ab8=function(){return _0x23fa3c;};return _0x3ab8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x12f8f2=_0x5ef5;(function(_0x2892ab,_0xf1ef15){var _0x104f4d=_0x5ef5,_0x5c5098=_0x2892ab();while(!![]){try{var _0x2e8c63=parseInt(_0x104f4d(0x1d1))/0x1*(-parseInt(_0x104f4d(0x1db))/0x2)+-parseInt(_0x104f4d(0x1d8))/0x3*(parseInt(_0x104f4d(0x1da))/0x4)+-parseInt(_0x104f4d(0x1d0))/0x5*(parseInt(_0x104f4d(0x1d5))/0x6)+parseInt(_0x104f4d(0x1dc))/0x7*(-parseInt(_0x104f4d(0x1cf))/0x8)+-parseInt(_0x104f4d(0x1d9))/0x9+-parseInt(_0x104f4d(0x1ce))/0xa+parseInt(_0x104f4d(0x1d2))/0xb;if(_0x2e8c63===_0xf1ef15)break;else _0x5c5098['push'](_0x5c5098['shift']());}catch(_0x11e6b5){_0x5c5098['push'](_0x5c5098['shift']());}}}(_0x216a,0xab423));function _0x5ef5(_0x8a8c37,_0x20b29b){var _0x216a36=_0x216a();return _0x5ef5=function(_0x5ef58a,_0x3b3867){_0x5ef58a=_0x5ef58a-0x1ce;var _0x2f4975=_0x216a36[_0x5ef58a];return _0x2f4975;},_0x5ef5(_0x8a8c37,_0x20b29b);}import{Plugin as _0x42eac0}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x1721c7}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x152de9}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x216a(){var _0x629d17=['596674CdJOqL','17143gvjzNS','pluginName','12471950WRvSYS','808Ndrtpl','18870ZTbMIB','1nNNRwC','45433080CCaCaQ','UploadcareImageEdit','isPremiumPlugin','54kGpLMZ','requires','isOfficialPlugin','533409ZKJMCC','3216033DafOjS','28BWeWWO'];_0x216a=function(){return _0x629d17;};return _0x216a();}export class UploadcareImageEdit extends _0x42eac0{static get[_0x12f8f2(0x1dd)](){var _0x133e37=_0x12f8f2;return _0x133e37(0x1d3);}static get[_0x12f8f2(0x1d6)](){return[_0x1721c7,_0x152de9];}static get[_0x12f8f2(0x1d7)](){return!0x0;}static get[_0x12f8f2(0x1d4)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49bea8=_0x47d6;(function(_0x5a778c,_0x582c7e){const _0x359cff=_0x47d6,_0x4c8e0a=_0x5a778c();while(!![]){try{const _0x1e9535=parseInt(_0x359cff(0x133))/0x1*(-parseInt(_0x359cff(0x124))/0x2)+-parseInt(_0x359cff(0x13a))/0x3*(-parseInt(_0x359cff(0x14a))/0x4)+parseInt(_0x359cff(0x130))/0x5+parseInt(_0x359cff(0x101))/0x6*(parseInt(_0x359cff(0x120))/0x7)+parseInt(_0x359cff(0x13c))/0x8+parseInt(_0x359cff(0x146))/0x9+-parseInt(_0x359cff(0x110))/0xa*(parseInt(_0x359cff(0x117))/0xb);if(_0x1e9535===_0x582c7e)break;else _0x4c8e0a['push'](_0x4c8e0a['shift']());}catch(_0x130b91){_0x4c8e0a['push'](_0x4c8e0a['shift']());}}}(_0x2a07,0x2b3a6));function _0x47d6(_0x450b53,_0x3923af){const _0x2a07b3=_0x2a07();return _0x47d6=function(_0x47d6c2,_0x3a8b5b){_0x47d6c2=_0x47d6c2-0xfd;let _0x31deac=_0x2a07b3[_0x47d6c2];return _0x31deac;},_0x47d6(_0x450b53,_0x3923af);}import{Plugin as _0x95ac00}from'ckeditor5/src/core.js';import{IconDropbox as _0x3dba9e,IconFacebook as _0x5c6667,IconGoogleDrive as _0x3f23d9,IconGooglePhotos as _0x9a0aa5,IconUploadcareImageUpload as _0x239afe,IconUploadcareLink as _0x1bf7a3,IconOneDrive as _0x2abe82}from'ckeditor5/src/icons.js';import{ButtonView as _0x1bb3c3,MenuBarMenuListItemButtonView as _0x31f511}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x431199}from'./uploadcareconfig.js';import{getTranslation as _0x32f6db}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x2a07(){const _0x5c78bc=['featureNotAllowed','text','isImageSelected','icon','_createMenuBarButtons','evaluationLimit','_getIntegrationKey','uploadcareLicenseKeyEvaluationLimit','URL','expired','1601200KilkFv','uploadcare.uploader.sourceList','upload','10238nUoVSN','invalid','uploadcareLicenseKeyInvalid','GPhotos','has','init','map','308838lGQJpy','plugins','105008NQOknt','Replace','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyUsageLimit','pluginName','destroy','usageLimit','forEach','reduce','shortText','1477692dUbvYD','ImageInsertUI','get','push','4nrfweQ','config','OneDrive','GDrive','editor','_createDropdownButtons','url','afterInit','Uploadcare','48wCBSbL','Facebook','_normalizeConfigSourceList','domainLimit','label','bind','uploadcareLicenseKeyNotAllowed','Insert','withText','execute','licenseKey','type','isEnabled','isOfficialPlugin','uploadcare','120040iKQpfG','uploadcareLicenseKeyValid','tooltip','entries','trialLimit','Dropbox','UploadcareUI','374aXkhJJ','Local','assetManager','isPremiumPlugin','_licenseKeyCheckInterval','registerIntegration','_showLicenseError','locale','uploadcareLicenseKeyExpired','31402zNswfl','commands','_createButton','uploadcareLicenseKeyTrialLimit','10NfcDWT','_createToolbarButton'];_0x2a07=function(){return _0x5c78bc;};return _0x2a07();}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x95ac00{[_0x49bea8(0x10b)];[_0x49bea8(0x11b)];static get[_0x49bea8(0x140)](){const _0x4ae0f2=_0x49bea8;return _0x4ae0f2(0x116);}static get[_0x49bea8(0x10e)](){return!0x0;}static get[_0x49bea8(0x11a)](){return!0x0;}[_0x49bea8(0x138)](){const _0x100284=_0x49bea8;this[_0x100284(0x10b)]=this[_0x100284(0x14e)][_0x100284(0x14b)][_0x100284(0x148)](_0x100284(0x10b));const _0x27e9c9=this[_0x100284(0x14e)];this[_0x100284(0x11b)]=setInterval(()=>{const _0x24e353=_0x100284;let _0x5b2f39;for(const _0x40186a in _0x27e9c9){const _0x3d3cde=_0x40186a,_0x5d8137=_0x27e9c9[_0x3d3cde];if(_0x24e353(0x111)==_0x5d8137||_0x24e353(0x135)==_0x5d8137||_0x24e353(0x11f)==_0x5d8137||_0x24e353(0x13e)==_0x5d8137||_0x24e353(0x107)==_0x5d8137||_0x24e353(0x12d)==_0x5d8137||_0x24e353(0x123)==_0x5d8137||_0x24e353(0x13f)==_0x5d8137){delete _0x27e9c9[_0x3d3cde],_0x5b2f39=_0x5d8137,clearInterval(this[_0x24e353(0x11b)]),this[_0x24e353(0x11b)]=void 0x0;break;}}_0x24e353(0x135)==_0x5b2f39&&_0x27e9c9[_0x24e353(0x11d)](_0x24e353(0x134)),_0x24e353(0x11f)==_0x5b2f39&&_0x27e9c9[_0x24e353(0x11d)](_0x24e353(0x12f)),_0x24e353(0x13e)==_0x5b2f39&&_0x27e9c9[_0x24e353(0x11d)](_0x24e353(0x104)),_0x24e353(0x107)==_0x5b2f39&&_0x27e9c9[_0x24e353(0x11d)](_0x24e353(0x126),_0x24e353(0x100)),_0x24e353(0x12d)==_0x5b2f39&&_0x27e9c9[_0x24e353(0x11d)](_0x24e353(0x12b)),_0x24e353(0x123)==_0x5b2f39&&_0x27e9c9[_0x24e353(0x11d)](_0x24e353(0x114)),_0x24e353(0x13f)==_0x5b2f39&&_0x27e9c9[_0x24e353(0x11d)](_0x24e353(0x142));},0x3e8);}[_0x49bea8(0xff)](){const _0x106d38=_0x49bea8,{editor:_0x5f20cf}=this,_0x5cd0e6=_0x5f20cf[_0x106d38(0x121)][_0x106d38(0x148)](_0x106d38(0x10f));if(!_0x5cd0e6)return;const _0x2301ff=this[_0x106d38(0x103)](_0x5f20cf[_0x106d38(0x14b)][_0x106d38(0x148)](_0x106d38(0x131)))[_0x106d38(0x144)]((_0xbf69a4,_0x314f16)=>{const _0x1d8cd5=_0x106d38,_0x32f869=this[_0x1d8cd5(0x12c)](_0x314f16[_0x1d8cd5(0x10c)]);return _0xbf69a4[_0x32f869]||(_0xbf69a4[_0x32f869]=[]),_0xbf69a4[_0x32f869][_0x1d8cd5(0x149)](_0x314f16),_0xbf69a4;},{});_0x5f20cf[_0x106d38(0x13b)][_0x106d38(0x137)](_0x106d38(0x147))&&_0x5f20cf[_0x106d38(0x121)][_0x106d38(0x148)](_0x106d38(0x10f))&&Object[_0x106d38(0x113)](_0x2301ff)[_0x106d38(0x143)](([_0x4207aa,_0x32a6fc])=>{const _0x2f25e7=_0x106d38;_0x5f20cf[_0x2f25e7(0x13b)][_0x2f25e7(0x148)](_0x2f25e7(0x147))[_0x2f25e7(0x11c)]({'name':_0x4207aa,'observable':()=>_0x5cd0e6,'buttonViewCreator':()=>this[_0x2f25e7(0x125)](_0x32a6fc),'formViewCreator':()=>this[_0x2f25e7(0xfd)](_0x32a6fc),'menuBarButtonViewCreator':()=>this[_0x2f25e7(0x12a)](_0x32a6fc),'override':_0x2f25e7(0x119)!==_0x4207aa});});}[_0x49bea8(0x141)](){const _0xf6b3f1=_0x49bea8;super[_0xf6b3f1(0x141)](),this[_0xf6b3f1(0x11b)]&&clearInterval(this[_0xf6b3f1(0x11b)]);}[_0x49bea8(0x103)](_0x48d295){const _0x3837a5=_0x49bea8,{locale:_0x3c4a26}=this[_0x3837a5(0x14e)];return _0x48d295[_0x3837a5(0x139)](_0x1272a7=>{const _0x4b8ea4=_0x3837a5,_0x38c350=_0x32f6db(_0x3c4a26,_0x1272a7,_0x4b8ea4(0x108));switch(_0x1272a7){case _0x431199[_0x4b8ea4(0x118)]:return{'icon':_0x239afe,'type':_0x431199[_0x4b8ea4(0x118)],..._0x38c350};case _0x431199[_0x4b8ea4(0x12e)]:return{'icon':_0x1bf7a3,'type':_0x431199[_0x4b8ea4(0x12e)],..._0x38c350};case _0x431199[_0x4b8ea4(0x115)]:return{'icon':_0x3dba9e,'type':_0x431199[_0x4b8ea4(0x115)],..._0x38c350};case _0x431199[_0x4b8ea4(0x102)]:return{'icon':_0x5c6667,'type':_0x431199[_0x4b8ea4(0x102)],..._0x38c350};case _0x431199[_0x4b8ea4(0x14d)]:return{'icon':_0x3f23d9,'type':_0x431199[_0x4b8ea4(0x14d)],..._0x38c350};case _0x431199[_0x4b8ea4(0x136)]:return{'icon':_0x9a0aa5,'type':_0x431199[_0x4b8ea4(0x136)],..._0x38c350};case _0x431199[_0x4b8ea4(0x14c)]:return{'icon':_0x2abe82,'type':_0x431199[_0x4b8ea4(0x14c)],..._0x38c350};}});}[_0x49bea8(0x12c)](_0x148e3c){const _0x5c3878=_0x49bea8;switch(_0x148e3c){case _0x431199[_0x5c3878(0x118)]:return _0x5c3878(0x132);case _0x431199[_0x5c3878(0x12e)]:return _0x5c3878(0xfe);default:return _0x5c3878(0x119);}}[_0x49bea8(0x122)](_0x4c88e8,_0x553947){const _0x268c66=_0x49bea8,_0x31d2a6=this[_0x268c66(0x14e)],_0x3b3e92=new _0x4c88e8(_0x31d2a6[_0x268c66(0x11e)]),_0x1f8146=_0x31d2a6[_0x268c66(0x121)][_0x268c66(0x148)](_0x268c66(0x10f));return _0x3b3e92[_0x268c66(0x106)](_0x268c66(0x10d))['to'](_0x1f8146),_0x3b3e92['on'](_0x268c66(0x10a),()=>{const _0x251141=_0x268c66;_0x1f8146[_0x251141(0x10a)](_0x553947);}),_0x3b3e92;}[_0x49bea8(0x125)](_0x553113){const _0x2e5f58=_0x49bea8,{locale:_0x39baa5}=this[_0x2e5f58(0x14e)],_0xad36c5=this[_0x2e5f58(0x14e)][_0x2e5f58(0x13b)][_0x2e5f58(0x148)](_0x2e5f58(0x147)),_0x266a84=_0x553113[0x0],_0x297469=this[_0x2e5f58(0x122)](_0x1bb3c3,_0x266a84[_0x2e5f58(0x10c)]);return _0x297469[_0x2e5f58(0x129)]=_0x266a84[_0x2e5f58(0x129)],_0x297469[_0x2e5f58(0x106)](_0x2e5f58(0x105))['to'](_0xad36c5,_0x2e5f58(0x128),_0x4a90ff=>_0x32f6db(_0x39baa5,_0x266a84[_0x2e5f58(0x10c)],_0x4a90ff?_0x2e5f58(0x13d):_0x2e5f58(0x108))[_0x2e5f58(0x127)]),_0x297469[_0x2e5f58(0x112)]=!0x0,_0x297469;}[_0x49bea8(0xfd)](_0x1cb6a3){const _0x5b3863=_0x49bea8,{locale:_0x1d3b55}=this[_0x5b3863(0x14e)],_0x390e98=this[_0x5b3863(0x14e)][_0x5b3863(0x13b)][_0x5b3863(0x148)](_0x5b3863(0x147));return _0x1cb6a3[_0x5b3863(0x139)](_0x12e8a5=>{const _0x16a21f=_0x5b3863,_0x4fb49d=this[_0x16a21f(0x122)](_0x1bb3c3,_0x12e8a5[_0x16a21f(0x10c)]);return _0x4fb49d[_0x16a21f(0x109)]=!0x0,_0x4fb49d[_0x16a21f(0x129)]=_0x12e8a5[_0x16a21f(0x129)],_0x4fb49d[_0x16a21f(0x106)](_0x16a21f(0x105))['to'](_0x390e98,_0x16a21f(0x128),_0x5d703e=>_0x32f6db(_0x1d3b55,_0x12e8a5[_0x16a21f(0x10c)],_0x5d703e?_0x16a21f(0x13d):_0x16a21f(0x108))[_0x16a21f(0x127)]),_0x4fb49d;});}[_0x49bea8(0x12a)](_0x1937ca){const _0x16b549=_0x49bea8;return _0x1937ca[_0x16b549(0x139)](_0x29b5c7=>{const _0x3b2d66=_0x16b549,_0x4da45b=this[_0x3b2d66(0x122)](_0x31f511,_0x29b5c7[_0x3b2d66(0x10c)]);return _0x4da45b[_0x3b2d66(0x129)]=_0x29b5c7[_0x3b2d66(0x129)],_0x4da45b[_0x3b2d66(0x105)]=_0x29b5c7[_0x3b2d66(0x145)],_0x4da45b;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3e0cb6}from'ckeditor5/src/core.js';import{FileRepository as _0x3309c5}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x23f4b2}from'./uploadcareediting.js';import{UploadUtils as _0x4ede1e}from'./utils/uploadutils.js';import{getImageUrls as _0x2a8cdb}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x3e0cb6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3309c5,_0x23f4b2];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xd8cb99=this['editor'];if(!!!_0xd8cb99['config']['get']('uploadcare'))return;_0xd8cb99['plugins']['get'](_0x3309c5)['createUploadAdapter']=_0x1317c5=>new A(_0x1317c5,_0xd8cb99),_0xd8cb99['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x15e45f,{imageElement:_0x441c1d,data:_0x22fe09})=>{_0xd8cb99['model']['change'](_0x308ce4=>{_0x308ce4['setAttribute']('uploadcareImageId',_0x22fe09['uploadcareImageId'],_0x441c1d);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x25027c,_0x5ae871){this['loader']=_0x25027c,this['editor']=_0x5ae871,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5ef5cf=this['editor']['config']['get']('uploadcare.pubkey'),_0x58a914=await this['loader']['file'];return _0x4ede1e['upload']({'file':_0x58a914,'publicKey':_0x5ef5cf,'signal':this['controller']['signal'],'onProgress':_0x7bfb=>{_0x7bfb&&_0x7bfb['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x7bfb['value']);}})['then'](async _0x309284=>{const {imageFallbackUrl:_0x3a25a2,imageSources:_0x4cf153}=_0x2a8cdb(_0x309284['cdnUrl'],_0x309284['imageInfo']['width']);return{'uploadcareImageId':_0x309284['uuid'],'default':_0x3a25a2,'sources':_0x4cf153};})['catch'](()=>{const _0x520d8b=t('Cannot\x20upload\x20file:')+('\x20'+_0x58a914['name']+'.');return Promise['reject'](_0x520d8b);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x923713}from'../uploadcareconfig.js';export function getTranslation(_0x2169d9,_0x5b2a78,_0x1a0951){const t=_0x2169d9['t'],_0x2695f0=_0x2169d9['t'];switch(_0x5b2a78){case _0x923713['Local']:return{'text':_0x2695f0('Insert'===_0x1a0951?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2695f0('From\x20computer')};case _0x923713['URL']:return{'text':'Insert'===_0x1a0951?_0x2695f0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2695f0('Via\x20URL')};case _0x923713['Dropbox']:return{'text':t('Insert'===_0x1a0951?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x923713['Facebook']:return{'text':t('Insert'===_0x1a0951?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x923713['GDrive']:return{'text':t('Insert'===_0x1a0951?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x923713['GPhotos']:return{'text':t('Insert'===_0x1a0951?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x923713['OneDrive']:return{'text':t('Insert'===_0x1a0951?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5b2a78;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x332aff=_0x4170;(function(_0x464022,_0x4739c8){var _0x1beb3b=_0x4170,_0x750f08=_0x464022();while(!![]){try{var _0x23f1c4=parseInt(_0x1beb3b(0x170))/0x1*(-parseInt(_0x1beb3b(0x16a))/0x2)+-parseInt(_0x1beb3b(0x166))/0x3*(-parseInt(_0x1beb3b(0x168))/0x4)+-parseInt(_0x1beb3b(0x169))/0x5+parseInt(_0x1beb3b(0x174))/0x6*(parseInt(_0x1beb3b(0x16b))/0x7)+parseInt(_0x1beb3b(0x16e))/0x8+-parseInt(_0x1beb3b(0x16c))/0x9*(-parseInt(_0x1beb3b(0x178))/0xa)+-parseInt(_0x1beb3b(0x177))/0xb;if(_0x23f1c4===_0x4739c8)break;else _0x750f08['push'](_0x750f08['shift']());}catch(_0x275b6a){_0x750f08['push'](_0x750f08['shift']());}}}(_0x3d62,0x9c4c5));import{FocusTracker as _0x42b77b}from'ckeditor5/src/utils.js';function _0x4170(_0x6e1883,_0x1b4479){var _0x3d6289=_0x3d62();return _0x4170=function(_0x41704b,_0x1cf708){_0x41704b=_0x41704b-0x166;var _0xd81cec=_0x3d6289[_0x41704b];return _0xd81cec;},_0x4170(_0x6e1883,_0x1b4479);}import{View as _0xf9f06c,FocusCycler as _0x26b50b}from'ckeditor5/src/ui.js';function _0x3d62(){var _0x2e783e=['bindTemplate','67dVhpfg','forwardCycle','getFocusableElement','fire','631974FxSKWM','true','focusTracker','6936633GEoRPV','4650xHQiqi','div','1874409KsjHAh','focusCycler','8yqLqPh','3579030ftoOOE','15746DbYrBr','49jVLiCQ','5535VEdDeM','createCollection','1929704hJYGgl'];_0x3d62=function(){return _0x2e783e;};return _0x3d62();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0xf9f06c{[_0x332aff(0x176)];[_0x332aff(0x167)];constructor(_0x392600){var _0x445ab2=_0x332aff;super(_0x392600),this[_0x445ab2(0x176)]=new _0x42b77b(),this[_0x445ab2(0x167)]=new _0x26b50b({'focusables':this[_0x445ab2(0x16d)](),'focusTracker':this[_0x445ab2(0x176)]});}[_0x332aff(0x172)](){var _0x59642e=_0x332aff;return{'tag':_0x59642e(0x179),'attributes':{'aria-hidden':_0x59642e(0x175),'tabindex':'0'},'on':{'focus':this[_0x59642e(0x16f)]['to'](()=>{var _0x5e8896=_0x59642e;this[_0x5e8896(0x167)][_0x5e8896(0x173)](_0x5e8896(0x171));})}};}}
|