@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251022.0 → 0.0.0-nightly-20251024.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5211(_0x2bb967,_0x1e5746){const _0x2eb777=_0x2eb7();return _0x5211=function(_0x52112c,_0x49fb62){_0x52112c=_0x52112c-0x73;let _0x167649=_0x2eb777[_0x52112c];return _0x167649;},_0x5211(_0x2bb967,_0x1e5746);}const _0x4008e4=_0x5211;(function(_0x1ce2ad,_0x1ed502){const _0x53aa5d=_0x5211,_0x2416b7=_0x1ce2ad();while(!![]){try{const _0x2df992=parseInt(_0x53aa5d(0x9d))/0x1*(-parseInt(_0x53aa5d(0xaf))/0x2)+-parseInt(_0x53aa5d(0x7f))/0x3*(parseInt(_0x53aa5d(0xc7))/0x4)+parseInt(_0x53aa5d(0xb6))/0x5+-parseInt(_0x53aa5d(0x79))/0x6*(-parseInt(_0x53aa5d(0xbe))/0x7)+parseInt(_0x53aa5d(0x80))/0x8*(parseInt(_0x53aa5d(0xa8))/0x9)+parseInt(_0x53aa5d(0x95))/0xa+parseInt(_0x53aa5d(0x9b))/0xb*(-parseInt(_0x53aa5d(0xc4))/0xc);if(_0x2df992===_0x1ed502)break;else _0x2416b7['push'](_0x2416b7['shift']());}catch(_0xd1800c){_0x2416b7['push'](_0x2416b7['shift']());}}}(_0x2eb7,0xf25b7));import{Plugin as _0x4ebe11}from'ckeditor5/src/core.js';import{Dialog as _0x3e7fc9}from'ckeditor5/src/ui.js';import{createElement as _0x6e326c,global as _0x449767,uid as _0x3b6143}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2796c8}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3c5fc6}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x23f06c}from'./utils/editingutils.js';function _0x2eb7(){const _0x3c7ab1=['conversion','render','input[uploadcare-file-input]','6NzskQi','24cJwyqZ','configElement','uploadcare.uploader','uc-config','_configElement','isOfficialPlugin','listenTo','ucContextId','fromCharCode','_ctxElement','#uc-icon-arrow-down','querySelector','afterInit','upcast','isPremiumPlugin','iconHrefResolver','requires','uploadcareImageId','destroy','replaceImageSource','extend','15864270Fqnydv','ctxElement','_initConversion','closeMax','insertImage','uc-upload-ctx-provider','22dclGnR','execute','311355EGfUVR','uploadcare','editor','editing','config','locale','getSelectedElement','selection','once','map','body','3939111LsNVid','imageBlock','document','cleanupImage','imageInline','PictureEditing','commands','4wUBEIV','schema','data-uc-image-id','remove','init','getAttribute','get','4496540gKOEcN','pluginName','_initSchema','attributeToAttribute','href','model','true','removeAttribute','65891vZyBVv','uploadcareImageReplace','add','UploadcareEditing','for','uploadcare.pubkey','11457756OZBiLA','\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','view','3126644lCbFmr','join','isRegistered','_initConfig','_initImageProcessingIndicator','uploader-','contentLanguage','appendChild','_initCtx','822ZenOji','elementToAttribute','downcast'];_0x2eb7=function(){return _0x3c7ab1;};return _0x2eb7();}export class UploadcareEditing extends _0x4ebe11{[_0x4008e4(0x84)]=null;[_0x4008e4(0x89)]=null;static get[_0x4008e4(0xb7)](){const _0x952b42=_0x4008e4;return _0x952b42(0xc1);}static get[_0x4008e4(0x90)](){const _0x22ae08=_0x4008e4;return[_0x22ae08(0xad),_0x3c5fc6,_0x3e7fc9];}static get[_0x4008e4(0x85)](){return!0x0;}static get[_0x4008e4(0x8e)](){return!0x0;}[_0x4008e4(0x87)];get[_0x4008e4(0x81)](){const _0x5e9817=_0x4008e4;return this[_0x5e9817(0x84)];}get[_0x4008e4(0x96)](){const _0x297ebd=_0x4008e4;return this[_0x297ebd(0x89)];}constructor(_0x171357){const _0x201065=_0x4008e4;super(_0x171357),this[_0x201065(0x87)]=_0x3b6143();}[_0x4008e4(0xb3)](){const _0x182beb=_0x4008e4,_0x297c8e=this[_0x182beb(0x9f)];_0x297c8e[_0x182beb(0xae)][_0x182beb(0xc0)](_0x182beb(0x9e),new _0x2796c8(_0x297c8e));}[_0x4008e4(0x8c)](){const _0x27c852=_0x4008e4;this[_0x27c852(0xb8)](),this[_0x27c852(0x97)](),this[_0x27c852(0x73)](),this[_0x27c852(0x78)](),this[_0x27c852(0x74)](),this[_0x27c852(0x86)](this[_0x27c852(0x9f)],_0x27c852(0x92),()=>{const _0x31181f=_0x27c852;this[_0x31181f(0x84)]&&(this[_0x31181f(0x84)][_0x31181f(0xb2)](),this[_0x31181f(0x84)]=null),this[_0x31181f(0x89)]&&(this[_0x31181f(0x89)][_0x31181f(0xb2)](),this[_0x31181f(0x89)]=null);const _0x234f82=_0x449767[_0x31181f(0xaa)][_0x31181f(0x8b)](_0x31181f(0x7e));_0x234f82&&_0x234f82[_0x31181f(0xb2)]();}),async function(_0x1ebdc6){const _0x2f9e75=_0x3a27d9([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4b31e8=0x535f8c3a,_0xdd6e9f=0x5358fad2^_0x4b31e8,_0x5af606=window[_0x3a27d9([0x44,0x61,0x74,0x65])][_0x3a27d9([0x6e,0x6f,0x77])](),_0x10417f=_0x1ebdc6[_0x3a27d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ef6a6=new window[(_0x3a27d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ac887=>{_0x10417f[_0x3a27d9([0x6f,0x6e,0x63,0x65])](_0x3a27d9([0x72,0x65,0x61,0x64,0x79]),_0x3ac887);}),_0x4c16a7={[_0x3a27d9([0x6b,0x74,0x79])]:_0x3a27d9([0x45,0x43]),[_0x3a27d9([0x75,0x73,0x65])]:_0x3a27d9([0x73,0x69,0x67]),[_0x3a27d9([0x63,0x72,0x76])]:_0x3a27d9([0x50,0x2d,0x32,0x35,0x36]),[_0x3a27d9([0x78])]:_0x3a27d9([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]),[_0x3a27d9([0x79])]:_0x3a27d9([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]),[_0x3a27d9([0x61,0x6c,0x67])]:_0x3a27d9([0x45,0x53,0x32,0x35,0x36])},_0x58b739=_0x10417f[_0x3a27d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3a27d9([0x67,0x65,0x74])](_0x3a27d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d0bce(){let _0x36e4d4,_0x1d4538=null,_0x43f5d0=null;try{if(_0x58b739==_0x3a27d9([0x47,0x50,0x4c]))return _0x3a27d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x36e4d4=_0x4680f3(),!_0x36e4d4)return _0x3a27d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x36e4d4[_0x3a27d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43f5d0=_0x27c8b9(_0x36e4d4[_0x3a27d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x36e4d4[_0x3a27d9([0x6a,0x74,0x69])])),await _0x4e6334()?_0x36d79b()?_0x362a9c()?_0x3a27d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x474d86()?(_0x36e4d4[_0x3a27d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a27d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d4538=_0x23ac9d(_0x3a27d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x36e4d4[_0x3a27d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3a27d9([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d4538=_0x23ac9d(_0x3a27d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d15d8()):_0x3a27d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3a27d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3a27d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3a27d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x362a9c(){const _0x278500=[_0x3a27d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3a27d9([0x74,0x72,0x69,0x61,0x6c])][_0x3a27d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36e4d4[_0x3a27d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5af606/0x3e8:0xe10*_0xdd6e9f;return _0x36e4d4[_0x3a27d9([0x65,0x78,0x70])]<_0x278500;}function _0x36d79b(){const _0x15386c=_0x36e4d4[_0x3a27d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15386c&&(!!_0x15386c[_0x3a27d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a27d9([0x2a]))||!!_0x15386c[_0x3a27d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a27d9([0x55,0x50,0x4c,0x43])));}function _0x474d86(){const _0x351419=_0x5211,_0x2429f6=_0x36e4d4[_0x3a27d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2429f6||0x0==_0x2429f6[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1abb1a}=new URL(window[_0x3a27d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x351419(0xba)]);if(_0x2429f6[_0x3a27d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1abb1a))return!0x0;const _0x11d2a7=_0x1abb1a[_0x3a27d9([0x73,0x70,0x6c,0x69,0x74])](_0x3a27d9([0x2e]));return _0x2429f6[_0x3a27d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x603013=>_0x603013[_0x3a27d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a27d9([0x2a])))[_0x3a27d9([0x6d,0x61,0x70])](_0x4bc94e=>_0x4bc94e[_0x3a27d9([0x73,0x70,0x6c,0x69,0x74])](_0x3a27d9([0x2e])))[_0x3a27d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4abd96=>_0x4abd96[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x11d2a7[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a27d9([0x6d,0x61,0x70])](_0x55f62c=>Array(_0x11d2a7[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x55f62c[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3a27d9([0x66,0x69,0x6c,0x6c])](_0x55f62c[0x0]===_0x3a27d9([0x2a])?_0x3a27d9([0x2a]):'')[_0x3a27d9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x55f62c))[_0x3a27d9([0x73,0x6f,0x6d,0x65])](_0x32e0f1=>_0x11d2a7[_0x3a27d9([0x65,0x76,0x65,0x72,0x79])]((_0x5319c9,_0xbeab1a)=>_0x32e0f1[_0xbeab1a]===_0x5319c9||_0x32e0f1[_0xbeab1a]===_0x3a27d9([0x2a])));}function _0x4d15d8(){return _0x1d4538&&_0x43f5d0?new window[(_0x3a27d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4841bb,_0x3294d9)=>{_0x1d4538[_0x3a27d9([0x74,0x68,0x65,0x6e])](_0x4841bb,_0x3294d9),_0x43f5d0[_0x3a27d9([0x74,0x68,0x65,0x6e])](_0x22b287=>{_0x22b287!=_0x3a27d9([0x56,0x61,0x6c,0x69,0x64])&&_0x4841bb(_0x22b287);},_0x3294d9);}):_0x1d4538||_0x43f5d0||_0x3a27d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x27c8b9(_0xf5d015,_0x239d31){return new window[(_0x3a27d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525553=>{if(_0x3e74c8())return _0x525553(_0x3a27d9([0x56,0x61,0x6c,0x69,0x64]));_0x4b5e16(),_0x10417f[_0x3a27d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3a27d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b9e3a=!0x1;const _0xa2bc8b=_0x3b6143();function _0x21f593(_0x45e8a0){return!!_0x45e8a0&&(typeof _0x45e8a0===_0x3a27d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45e8a0===_0x3a27d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45e8a0[_0x3a27d9([0x74,0x68,0x65,0x6e])]===_0x3a27d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45e8a0[_0x3a27d9([0x63,0x61,0x74,0x63,0x68])]===_0x3a27d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x464ef0(_0x5c6a1c){_0x1afd6f(_0x5c6a1c)[_0x3a27d9([0x74,0x68,0x65,0x6e])](_0x187bb7=>{if(!_0x187bb7||_0x187bb7[_0x3a27d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3a27d9([0x6f,0x6b]))return _0x3a27d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5da3e4(_0x57c360(_0xa2bc8b+_0x239d31))!=_0x187bb7[_0x3a27d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3a27d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3a27d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x3a27d9([0x74,0x68,0x65,0x6e])](_0x3c2a11=>(_0x4a379a(),_0x3c2a11),()=>{const _0x3468fe=_0x3dc38d();return null==_0x3468fe?(_0x4a379a(),_0x3a27d9([0x56,0x61,0x6c,0x69,0x64])):_0x3a27d9(_0x5af606-_0x3468fe>(0x7753083a^_0x4b31e8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3a27d9([0x74,0x68,0x65,0x6e])](_0x525553)[_0x3a27d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x525553(_0x3a27d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f02e=0x536962ba^_0x4b31e8;function _0x4a379a(){const _0x116483=_0x3a27d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x5da3e4(_0x57c360(_0xf5d015)),_0x31ab9e=_0x413ee1(_0x5da3e4(window[_0x3a27d9([0x4d,0x61,0x74,0x68])][_0x3a27d9([0x63,0x65,0x69,0x6c])](_0x5af606/_0x3f02e)));window[_0x3a27d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a27d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x116483,_0x31ab9e);}function _0x3dc38d(){const _0x1987db=_0x3a27d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x5da3e4(_0x57c360(_0xf5d015)),_0x3d08a0=window[_0x3a27d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3a27d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1987db);return _0x3d08a0?window[_0x3a27d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x413ee1(_0x3d08a0),0x10)*_0x3f02e:null;}function _0x1afd6f(_0x48e606){return new window[(_0x3a27d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4008fb,_0xdf9574)=>{_0x48e606[_0x3a27d9([0x74,0x68,0x65,0x6e])](_0x4008fb,_0xdf9574),window[_0x3a27d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdf9574,0x535e58fa^_0x4b31e8);});}}_0x10417f[_0x3a27d9([0x6f,0x6e])](_0x3a27d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44ba55,_0x44315d)=>{if(_0x44315d[0x0]!=_0xf5d015)return _0x525553(_0x3a27d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44315d[0x1]={..._0x44315d[0x1],[_0x3a27d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa2bc8b};},{[_0x3a27d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a27d9([0x68,0x69,0x67,0x68])}),_0x10417f[_0x3a27d9([0x6f,0x6e])](_0x3a27d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58366e=>{_0x21f593(_0x58366e[_0x3a27d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b9e3a=!0x0,_0x464ef0(_0x58366e[_0x3a27d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3a27d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3a27d9([0x6c,0x6f,0x77])}),_0x3ef6a6[_0x3a27d9([0x74,0x68,0x65,0x6e])](()=>{_0x5b9e3a||_0x525553(_0x3a27d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e74c8(){return _0x10417f[_0x3a27d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a27d9([0x76,0x69,0x65,0x77])][_0x3a27d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3a27d9([0x61,0x75,0x74,0x6f]);}function _0x4b5e16(){_0x10417f[_0x3a27d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3a27d9([0x76,0x69,0x65,0x77])][_0x3a27d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3a27d9([0x61,0x75,0x74,0x6f]);}}function _0x23ac9d(_0x166dc3){const _0x5bb81a=[new window[(_0x3a27d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x240d4d=>setTimeout(_0x240d4d,0x5356b2f6^_0x4b31e8)),_0x3ef6a6[_0x3a27d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3a27d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2455f0=>{let _0xc016b2=0x0;_0x10417f[_0x3a27d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a27d9([0x6f,0x6e])](_0x3a27d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x324a44,_0xf16816)=>{_0xf16816[0x0][_0x3a27d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc016b2++,_0xc016b2==(0x535f8dc2^_0x4b31e8)&&(_0x2455f0(),_0x324a44[_0x3a27d9([0x6f,0x66,0x66])]());});}))];return window[_0x3a27d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3a27d9([0x72,0x61,0x63,0x65])](_0x5bb81a)[_0x3a27d9([0x74,0x68,0x65,0x6e])](()=>_0x166dc3);}async function _0x2a6ed7(){await _0x3ef6a6,_0x10417f[_0x3a27d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a27d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f6bc3,_0x10417f[_0x3a27d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3a27d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f6bc3,_0x10417f[_0x3a27d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3a27d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x80be00(_0x55b359){const _0x28682c=_0x2f7146();_0x10417f[_0x28682c]=_0x3a27d9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55b359,_0x55b359!=_0x3a27d9([0x56,0x61,0x6c,0x69,0x64])&&_0x2a6ed7();}function _0x2f7146(){const _0x24cda4=window[_0x3a27d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3a27d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3a27d9([0x6e,0x6f,0x77])]())[_0x3a27d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3a27d9([0x2e]),'');let _0x4fc637=_0x3a27d9([0x68]);for(let _0x53ac81=0x0;_0x53ac81<_0x24cda4[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53ac81+=0x2){let _0x47138c=window[_0x3a27d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24cda4[_0x3a27d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53ac81,_0x53ac81+0x2));_0x47138c>=_0x2f9e75[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x47138c-=_0x2f9e75[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4fc637+=_0x2f9e75[_0x47138c];}return _0x4fc637;}function _0x4680f3(){const _0x1fc6b8=_0x58b739[_0x3a27d9([0x73,0x70,0x6c,0x69,0x74])](_0x3a27d9([0x2e]));if(0x3!=_0x1fc6b8[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15505f(_0x1fc6b8[0x1]);function _0x15505f(_0x45b4e7){const _0x4c4095=_0x154a0f(_0x45b4e7);return _0x4c4095&&_0x336179()?_0x4c4095:null;function _0x336179(){const _0x30ba6a=_0x4c4095[_0x3a27d9([0x6a,0x74,0x69])],_0x4b8750=window[_0x3a27d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30ba6a[_0x3a27d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30ba6a[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2de11f={..._0x4c4095,[_0x3a27d9([0x6a,0x74,0x69])]:_0x30ba6a[_0x3a27d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30ba6a[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2de11f[_0x3a27d9([0x76,0x63])],_0x57c360(_0x2de11f)==_0x4b8750;}}}async function _0x4e6334(){let _0x5efd5c=!0x0;try{const _0x2ec809=_0x58b739[_0x3a27d9([0x73,0x70,0x6c,0x69,0x74])](_0x3a27d9([0x2e])),[_0x483f5c,_0x150a8e,_0x2aa1de]=_0x2ec809;return _0x41a441(_0x483f5c),await _0x15fcf9(_0x483f5c,_0x150a8e,_0x2aa1de),_0x5efd5c;}catch{return!0x1;}function _0x41a441(_0x4b6e29){const _0x2822a5=_0x154a0f(_0x4b6e29);_0x2822a5&&_0x2822a5[_0x3a27d9([0x61,0x6c,0x67])]==_0x3a27d9([0x45,0x53,0x32,0x35,0x36])||(_0x5efd5c=!0x1);}async function _0x15fcf9(_0x3cd0d0,_0xfe49a3,_0x25c409){const _0x1cb715=window[_0x3a27d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3a27d9([0x66,0x72,0x6f,0x6d])](_0x5b272b(_0x25c409),_0x18a5d0=>_0x18a5d0[_0x3a27d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3606e7=new window[(_0x3a27d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3a27d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3cd0d0+_0x3a27d9([0x2e])+_0xfe49a3),_0x4c55e6=window[_0x3a27d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3a27d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c55e6)return;const _0x39b226=await _0x4c55e6[_0x3a27d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3a27d9([0x6a,0x77,0x6b]),_0x4c16a7,{[_0x3a27d9([0x6e,0x61,0x6d,0x65])]:_0x3a27d9([0x45,0x43,0x44,0x53,0x41]),[_0x3a27d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3a27d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3a27d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c55e6[_0x3a27d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3a27d9([0x6e,0x61,0x6d,0x65])]:_0x3a27d9([0x45,0x43,0x44,0x53,0x41]),[_0x3a27d9([0x68,0x61,0x73,0x68])]:{[_0x3a27d9([0x6e,0x61,0x6d,0x65])]:_0x3a27d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39b226,_0x1cb715,_0x3606e7)||(_0x5efd5c=!0x1);}}function _0x154a0f(_0x310b9a){return _0x310b9a[_0x3a27d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3a27d9([0x65,0x79]))?JSON[_0x3a27d9([0x70,0x61,0x72,0x73,0x65])](_0x5b272b(_0x310b9a)):null;}function _0x5b272b(_0x18e285){return window[_0x3a27d9([0x61,0x74,0x6f,0x62])](_0x18e285[_0x3a27d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3a27d9([0x2b]))[_0x3a27d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3a27d9([0x2f])));}function _0x57c360(_0x29f6ff){let _0x181806=0x1505;function _0x343e22(_0x48e7c1){for(let _0x1a2658=0x0;_0x1a2658<_0x48e7c1[_0x3a27d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a2658++){const _0x20028e=_0x48e7c1[_0x3a27d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a2658);_0x181806=(_0x181806<<0x5)+_0x181806+_0x20028e,_0x181806&=_0x181806;}}function _0x5204ec(_0x2ad1d9){Array[_0x3a27d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ad1d9)?_0x2ad1d9[_0x3a27d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5204ec):_0x2ad1d9&&typeof _0x2ad1d9==_0x3a27d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3a27d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ad1d9)[_0x3a27d9([0x73,0x6f,0x72,0x74])]()[_0x3a27d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x312aa9,_0x180441])=>{_0x343e22(_0x312aa9),_0x5204ec(_0x180441);}):_0x343e22(window[_0x3a27d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ad1d9));}return _0x5204ec(_0x29f6ff),_0x181806>>>0x0;}function _0x5da3e4(_0x1b3fb4){return _0x1b3fb4[_0x3a27d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3a27d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3a27d9([0x30]));}function _0x413ee1(_0x16d0d4){return _0x16d0d4[_0x3a27d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3a27d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3a27d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f6bc3(){}function _0x3a27d9(_0xff2f1c){const _0x38512f=_0x5211;return _0xff2f1c[_0x38512f(0xa6)](_0x3b1017=>String[_0x38512f(0x88)](_0x3b1017))[_0x38512f(0xc8)]('');}_0x80be00(await _0x5d0bce());}(this);}[_0x4008e4(0xb8)](){const _0x31dcc0=_0x4008e4,_0x1c8bef=this[_0x31dcc0(0x9f)][_0x31dcc0(0xbb)][_0x31dcc0(0xb0)];_0x1c8bef[_0x31dcc0(0xc9)](_0x31dcc0(0xa9))&&_0x1c8bef[_0x31dcc0(0x94)](_0x31dcc0(0xa9),{'allowAttributes':[_0x31dcc0(0x91)]}),_0x1c8bef[_0x31dcc0(0xc9)](_0x31dcc0(0xac))&&_0x1c8bef[_0x31dcc0(0x94)](_0x31dcc0(0xac),{'allowAttributes':[_0x31dcc0(0x91)]});}[_0x4008e4(0x97)](){const _0x4e26de=_0x4008e4,_0x1dbb46=this[_0x4e26de(0x9f)];_0x1dbb46[_0x4e26de(0x7c)][_0x4e26de(0xc2)](_0x4e26de(0x7b))[_0x4e26de(0xb9)]({'model':_0x4e26de(0x91),'view':_0x4e26de(0xb1)}),_0x1dbb46[_0x4e26de(0x7c)][_0x4e26de(0xc2)](_0x4e26de(0x8d))[_0x4e26de(0x7a)]({'model':{'key':_0x4e26de(0x91),'value':_0xdfc0aa=>_0xdfc0aa[_0x4e26de(0xb4)](_0x4e26de(0xb1))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x459b90=_0x1dbb46[_0x4e26de(0xae)][_0x4e26de(0xb5)](_0x4e26de(0x93));_0x459b90&&this[_0x4e26de(0x86)](_0x459b90,_0x4e26de(0xab),(_0x369a05,[_0x1f4ca7,_0x1ea5cc])=>{const _0x33221c=_0x4e26de;_0x1f4ca7[_0x33221c(0xbd)](_0x33221c(0x91),_0x1ea5cc);});}[_0x4008e4(0x73)](){const _0xed32cd=_0x4008e4,_0x5574f4=this[_0xed32cd(0x9f)][_0xed32cd(0xa1)][_0xed32cd(0xb5)](_0xed32cd(0x82))||{},_0x4b11a9=this[_0xed32cd(0x9f)][_0xed32cd(0xa1)][_0xed32cd(0xb5)](_0xed32cd(0xc3))||'';this[_0xed32cd(0x84)]=_0x6e326c(_0x449767[_0xed32cd(0xaa)],_0xed32cd(0x83),{..._0x5574f4,'pubkey':_0x4b11a9,'ctx-name':_0xed32cd(0x75)+this[_0xed32cd(0x87)],'sourceList':'','imgOnly':_0xed32cd(0xbc),'removeCopyright':_0xed32cd(0xbc),'localeName':this[_0xed32cd(0x9f)][_0xed32cd(0xa2)][_0xed32cd(0x76)],'externalSourcesEmbedCss':_0xed32cd(0xc5)}),this[_0xed32cd(0x84)][_0xed32cd(0x8f)]=_0x3b3d21=>{const _0x4f6756=_0xed32cd;if(_0x4f6756(0x98)==_0x3b3d21)return _0x4f6756(0x8a);},_0x449767[_0xed32cd(0xaa)][_0xed32cd(0xa7)][_0xed32cd(0x77)](this[_0xed32cd(0x84)]);}[_0x4008e4(0x78)](){const _0x4ce002=_0x4008e4;this[_0x4ce002(0x89)]=_0x6e326c(_0x449767[_0x4ce002(0xaa)],_0x4ce002(0x9a),{'ctx-name':_0x4ce002(0x75)+this[_0x4ce002(0x87)]}),_0x449767[_0x4ce002(0xaa)][_0x4ce002(0xa7)][_0x4ce002(0x77)](this[_0x4ce002(0x89)]);}[_0x4008e4(0x74)](){const _0x1b294a=_0x4008e4,_0x23b050=this[_0x1b294a(0x9f)][_0x1b294a(0xae)][_0x1b294a(0xb5)](_0x1b294a(0x99));_0x23b050&&this[_0x1b294a(0x86)](_0x23b050,_0x1b294a(0x9c),()=>{const _0x29d588=_0x1b294a,_0x2a53ea=this[_0x29d588(0x9f)][_0x29d588(0xbb)][_0x29d588(0xaa)][_0x29d588(0xa4)][_0x29d588(0xa3)]();_0x2a53ea&&_0x2a53ea[_0x29d588(0xb4)](_0x29d588(0x91))&&this[_0x29d588(0x9f)][_0x29d588(0xa0)][_0x29d588(0xc6)][_0x29d588(0xa5)](_0x29d588(0x7d),()=>{const _0xdc39ab=_0x29d588;_0x23f06c(this[_0xdc39ab(0x9f)],_0x2a53ea);});});const _0x2be78c=this[_0x1b294a(0x9f)][_0x1b294a(0xae)][_0x1b294a(0xb5)](_0x1b294a(0xbf));_0x2be78c&&this[_0x1b294a(0x86)](_0x2be78c,_0x1b294a(0x9c),()=>{const _0xf9fb1d=_0x1b294a,_0x419ac8=this[_0xf9fb1d(0x9f)][_0xf9fb1d(0xbb)][_0xf9fb1d(0xaa)][_0xf9fb1d(0xa4)][_0xf9fb1d(0xa3)]();_0x419ac8&&_0x419ac8[_0xf9fb1d(0xb4)](_0xf9fb1d(0x91))&&this[_0xf9fb1d(0x9f)][_0xf9fb1d(0xa0)][_0xf9fb1d(0xc6)][_0xf9fb1d(0xa5)](_0xf9fb1d(0x7d),()=>{const _0x403f34=_0xf9fb1d;_0x23f06c(this[_0x403f34(0x9f)],_0x419ac8);});});}}
|
|
23
|
+
const _0x454e5b=_0x415b;(function(_0xe5849c,_0xf7ecce){const _0x599dab=_0x415b,_0x6d878e=_0xe5849c();while(!![]){try{const _0x3f3605=parseInt(_0x599dab(0x23c))/0x1*(parseInt(_0x599dab(0x210))/0x2)+-parseInt(_0x599dab(0x223))/0x3*(parseInt(_0x599dab(0x20c))/0x4)+parseInt(_0x599dab(0x1fa))/0x5*(parseInt(_0x599dab(0x227))/0x6)+parseInt(_0x599dab(0x22b))/0x7+parseInt(_0x599dab(0x1f5))/0x8+parseInt(_0x599dab(0x20b))/0x9*(parseInt(_0x599dab(0x207))/0xa)+parseInt(_0x599dab(0x214))/0xb*(-parseInt(_0x599dab(0x201))/0xc);if(_0x3f3605===_0xf7ecce)break;else _0x6d878e['push'](_0x6d878e['shift']());}catch(_0x3cc1c6){_0x6d878e['push'](_0x6d878e['shift']());}}}(_0x2272,0x24683));import{Plugin as _0x2f28bb}from'ckeditor5/src/core.js';function _0x2272(){const _0x53d95d=['imageInline','body','querySelector','uploader-','_configElement','data-uc-image-id','uploadcare','model','replaceImageSource','contentLanguage','80322JOcMzH','execute','PictureEditing','_ctxElement','410094fRzUeU','uploadcare.pubkey','_initSchema','get','1584646lsATqU','schema','removeAttribute','init','ctxElement','afterInit','downcast','locale','document','true','editor','cleanupImage','isOfficialPlugin','uc-config','isPremiumPlugin','map','#uc-icon-arrow-down','176815odslVf','requires','closeMax','for','conversion','isRegistered','getSelectedElement','href','_initConversion','_initImageProcessingIndicator','extend','destroy','view','listenTo','uploadcare.uploader','editing','972992IAFZwK','fromCharCode','uc-upload-ctx-provider','ucContextId','pluginName','15lVDmfR','input[uploadcare-file-input]','join','remove','uploadcareImageId','appendChild','\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','3810108xBdWZk','_initConfig','attributeToAttribute','render','commands','getAttribute','40SZvHfb','config','selection','upcast','10143DXgdiE','40dseIrP','elementToAttribute','iconHrefResolver','add','2REqTYm','_initCtx','insertImage','configElement','11EYjHaA','once','UploadcareEditing','uploadcareImageReplace','imageBlock'];_0x2272=function(){return _0x53d95d;};return _0x2272();}import{Dialog as _0x5c5204}from'ckeditor5/src/ui.js';import{createElement as _0x4f7aa0,global as _0x2edb97,uid as _0x3de82b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2a3f36}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x37ebbe}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x47d065}from'./utils/editingutils.js';function _0x415b(_0x1e90e8,_0x33e46d){const _0x2272a2=_0x2272();return _0x415b=function(_0x415bd2,_0x3adde7){_0x415bd2=_0x415bd2-0x1e9;let _0x2b9ae6=_0x2272a2[_0x415bd2];return _0x2b9ae6;},_0x415b(_0x1e90e8,_0x33e46d);}export class UploadcareEditing extends _0x2f28bb{[_0x454e5b(0x21d)]=null;[_0x454e5b(0x226)]=null;static get[_0x454e5b(0x1f9)](){const _0x806f53=_0x454e5b;return _0x806f53(0x216);}static get[_0x454e5b(0x23d)](){const _0x44afde=_0x454e5b;return[_0x44afde(0x225),_0x37ebbe,_0x5c5204];}static get[_0x454e5b(0x237)](){return!0x0;}static get[_0x454e5b(0x239)](){return!0x0;}[_0x454e5b(0x1f8)];get[_0x454e5b(0x213)](){const _0x54f5e0=_0x454e5b;return this[_0x54f5e0(0x21d)];}get[_0x454e5b(0x22f)](){const _0x44c825=_0x454e5b;return this[_0x44c825(0x226)];}constructor(_0x4d6d04){const _0x134db6=_0x454e5b;super(_0x4d6d04),this[_0x134db6(0x1f8)]=_0x3de82b();}[_0x454e5b(0x22e)](){const _0x1a5835=_0x454e5b,_0x210d7a=this[_0x1a5835(0x235)];_0x210d7a[_0x1a5835(0x205)][_0x1a5835(0x20f)](_0x1a5835(0x21f),new _0x2a3f36(_0x210d7a));}[_0x454e5b(0x230)](){const _0x3e443d=_0x454e5b;this[_0x3e443d(0x229)](),this[_0x3e443d(0x1ed)](),this[_0x3e443d(0x202)](),this[_0x3e443d(0x211)](),this[_0x3e443d(0x1ee)](),this[_0x3e443d(0x1f2)](this[_0x3e443d(0x235)],_0x3e443d(0x1f0),()=>{const _0x10901b=_0x3e443d;this[_0x10901b(0x21d)]&&(this[_0x10901b(0x21d)][_0x10901b(0x1fd)](),this[_0x10901b(0x21d)]=null),this[_0x10901b(0x226)]&&(this[_0x10901b(0x226)][_0x10901b(0x1fd)](),this[_0x10901b(0x226)]=null);const _0x54a7a5=_0x2edb97[_0x10901b(0x233)][_0x10901b(0x21b)](_0x10901b(0x1fb));_0x54a7a5&&_0x54a7a5[_0x10901b(0x1fd)]();}),async function(_0x2fc18d){const _0x15afbd=_0xc35d53([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x19794e=0x535f8c3a,_0x2a5fc4=0x5358fb22^_0x19794e,_0x3f6917=window[_0xc35d53([0x44,0x61,0x74,0x65])][_0xc35d53([0x6e,0x6f,0x77])](),_0x278b64=_0x2fc18d[_0xc35d53([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x352b1a=new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ece88=>{_0x278b64[_0xc35d53([0x6f,0x6e,0x63,0x65])](_0xc35d53([0x72,0x65,0x61,0x64,0x79]),_0x3ece88);}),_0x392870={[_0xc35d53([0x6b,0x74,0x79])]:_0xc35d53([0x45,0x43]),[_0xc35d53([0x75,0x73,0x65])]:_0xc35d53([0x73,0x69,0x67]),[_0xc35d53([0x63,0x72,0x76])]:_0xc35d53([0x50,0x2d,0x32,0x35,0x36]),[_0xc35d53([0x78])]:_0xc35d53([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]),[_0xc35d53([0x79])]:_0xc35d53([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]),[_0xc35d53([0x61,0x6c,0x67])]:_0xc35d53([0x45,0x53,0x32,0x35,0x36])},_0x3f6124=_0x278b64[_0xc35d53([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc35d53([0x67,0x65,0x74])](_0xc35d53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51818d(){let _0x58e227,_0x28b8bd=null,_0x4c58de=null;try{if(_0x3f6124==_0xc35d53([0x47,0x50,0x4c]))return _0xc35d53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58e227=_0xf4b003(),!_0x58e227)return _0xc35d53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58e227[_0xc35d53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c58de=_0x116675(_0x58e227[_0xc35d53([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58e227[_0xc35d53([0x6a,0x74,0x69])])),await _0x24090c()?_0x5ea64c()?_0x369c6c()?_0xc35d53([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e91c2()?(_0x58e227[_0xc35d53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc35d53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x28b8bd=_0x1b6c90(_0xc35d53([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58e227[_0xc35d53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc35d53([0x74,0x72,0x69,0x61,0x6c])&&(_0x28b8bd=_0x1b6c90(_0xc35d53([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2bfaee()):_0xc35d53([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc35d53([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc35d53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xc35d53([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x369c6c(){const _0x29847c=[_0xc35d53([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc35d53([0x74,0x72,0x69,0x61,0x6c])][_0xc35d53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e227[_0xc35d53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f6917/0x3e8:0xe10*_0x2a5fc4;return _0x58e227[_0xc35d53([0x65,0x78,0x70])]<_0x29847c;}function _0x5ea64c(){const _0x1b051a=_0x58e227[_0xc35d53([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b051a&&(!!_0x1b051a[_0xc35d53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc35d53([0x2a]))||!!_0x1b051a[_0xc35d53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc35d53([0x55,0x50,0x4c,0x43])));}function _0x4e91c2(){const _0xc0118c=_0x415b,_0x540fd2=_0x58e227[_0xc35d53([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x540fd2||0x0==_0x540fd2[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ec56b}=new URL(window[_0xc35d53([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xc0118c(0x1ec)]);if(_0x540fd2[_0xc35d53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec56b))return!0x0;const _0x3069d6=_0x2ec56b[_0xc35d53([0x73,0x70,0x6c,0x69,0x74])](_0xc35d53([0x2e]));return _0x540fd2[_0xc35d53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c9809=>_0x3c9809[_0xc35d53([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc35d53([0x2a])))[_0xc35d53([0x6d,0x61,0x70])](_0x35f64c=>_0x35f64c[_0xc35d53([0x73,0x70,0x6c,0x69,0x74])](_0xc35d53([0x2e])))[_0xc35d53([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58f4ea=>_0x58f4ea[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3069d6[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc35d53([0x6d,0x61,0x70])](_0x2e41a2=>Array(_0x3069d6[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e41a2[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc35d53([0x66,0x69,0x6c,0x6c])](_0x2e41a2[0x0]===_0xc35d53([0x2a])?_0xc35d53([0x2a]):'')[_0xc35d53([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e41a2))[_0xc35d53([0x73,0x6f,0x6d,0x65])](_0x176e4b=>_0x3069d6[_0xc35d53([0x65,0x76,0x65,0x72,0x79])]((_0x5d2c55,_0x3611f7)=>_0x176e4b[_0x3611f7]===_0x5d2c55||_0x176e4b[_0x3611f7]===_0xc35d53([0x2a])));}function _0x2bfaee(){return _0x28b8bd&&_0x4c58de?new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25b416,_0x36c714)=>{_0x28b8bd[_0xc35d53([0x74,0x68,0x65,0x6e])](_0x25b416,_0x36c714),_0x4c58de[_0xc35d53([0x74,0x68,0x65,0x6e])](_0x3fa50f=>{_0x3fa50f!=_0xc35d53([0x56,0x61,0x6c,0x69,0x64])&&_0x25b416(_0x3fa50f);},_0x36c714);}):_0x28b8bd||_0x4c58de||_0xc35d53([0x56,0x61,0x6c,0x69,0x64]);}}function _0x116675(_0x5a40d6,_0x57882b){return new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd8eb53=>{if(_0xc4a286())return _0xd8eb53(_0xc35d53([0x56,0x61,0x6c,0x69,0x64]));_0x45c01d(),_0x278b64[_0xc35d53([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc35d53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1aba81=!0x1;const _0x405f4a=_0x3de82b();function _0x4878d4(_0x15ea76){return!!_0x15ea76&&(typeof _0x15ea76===_0xc35d53([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15ea76===_0xc35d53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15ea76[_0xc35d53([0x74,0x68,0x65,0x6e])]===_0xc35d53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15ea76[_0xc35d53([0x63,0x61,0x74,0x63,0x68])]===_0xc35d53([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x55dea3(_0x567d3c){_0x1b7b31(_0x567d3c)[_0xc35d53([0x74,0x68,0x65,0x6e])](_0x567870=>{if(!_0x567870||_0x567870[_0xc35d53([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc35d53([0x6f,0x6b]))return _0xc35d53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59c394(_0x3150dd(_0x405f4a+_0x57882b))!=_0x567870[_0xc35d53([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc35d53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc35d53([0x56,0x61,0x6c,0x69,0x64]);})[_0xc35d53([0x74,0x68,0x65,0x6e])](_0x51ef8f=>(_0x3e6e34(),_0x51ef8f),()=>{const _0x9b61e=_0x19bead();return null==_0x9b61e?(_0x3e6e34(),_0xc35d53([0x56,0x61,0x6c,0x69,0x64])):_0xc35d53(_0x3f6917-_0x9b61e>(0x7753083a^_0x19794e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc35d53([0x74,0x68,0x65,0x6e])](_0xd8eb53)[_0xc35d53([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd8eb53(_0xc35d53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4768f5=0x536962ba^_0x19794e;function _0x3e6e34(){const _0xb0dab5=_0xc35d53([0x6c,0x6c,0x63,0x74,0x2d])+_0x59c394(_0x3150dd(_0x5a40d6)),_0x51ed06=_0x4b1faa(_0x59c394(window[_0xc35d53([0x4d,0x61,0x74,0x68])][_0xc35d53([0x63,0x65,0x69,0x6c])](_0x3f6917/_0x4768f5)));window[_0xc35d53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc35d53([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb0dab5,_0x51ed06);}function _0x19bead(){const _0x5a34ce=_0xc35d53([0x6c,0x6c,0x63,0x74,0x2d])+_0x59c394(_0x3150dd(_0x5a40d6)),_0xd92365=window[_0xc35d53([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc35d53([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a34ce);return _0xd92365?window[_0xc35d53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b1faa(_0xd92365),0x10)*_0x4768f5:null;}function _0x1b7b31(_0x1fada9){return new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2de63d,_0x3f2e96)=>{_0x1fada9[_0xc35d53([0x74,0x68,0x65,0x6e])](_0x2de63d,_0x3f2e96),window[_0xc35d53([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f2e96,0x535e58fa^_0x19794e);});}}_0x278b64[_0xc35d53([0x6f,0x6e])](_0xc35d53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2443ed,_0x4c80d1)=>{if(_0x4c80d1[0x0]!=_0x5a40d6)return _0xd8eb53(_0xc35d53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c80d1[0x1]={..._0x4c80d1[0x1],[_0xc35d53([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x405f4a};},{[_0xc35d53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc35d53([0x68,0x69,0x67,0x68])}),_0x278b64[_0xc35d53([0x6f,0x6e])](_0xc35d53([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x579aa5=>{_0x4878d4(_0x579aa5[_0xc35d53([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1aba81=!0x0,_0x55dea3(_0x579aa5[_0xc35d53([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc35d53([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc35d53([0x6c,0x6f,0x77])}),_0x352b1a[_0xc35d53([0x74,0x68,0x65,0x6e])](()=>{_0x1aba81||_0xd8eb53(_0xc35d53([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc4a286(){return _0x278b64[_0xc35d53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc35d53([0x76,0x69,0x65,0x77])][_0xc35d53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc35d53([0x61,0x75,0x74,0x6f]);}function _0x45c01d(){_0x278b64[_0xc35d53([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc35d53([0x76,0x69,0x65,0x77])][_0xc35d53([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc35d53([0x61,0x75,0x74,0x6f]);}}function _0x1b6c90(_0x574554){const _0x3253d9=[new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34c376=>setTimeout(_0x34c376,0x5356b2f6^_0x19794e)),_0x352b1a[_0xc35d53([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9a77af=>{let _0x1ae84b=0x0;_0x278b64[_0xc35d53([0x6d,0x6f,0x64,0x65,0x6c])][_0xc35d53([0x6f,0x6e])](_0xc35d53([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x551745,_0x18a2f2)=>{_0x18a2f2[0x0][_0xc35d53([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ae84b++,_0x1ae84b==(0x535f8dc2^_0x19794e)&&(_0x9a77af(),_0x551745[_0xc35d53([0x6f,0x66,0x66])]());});}))];return window[_0xc35d53([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc35d53([0x72,0x61,0x63,0x65])](_0x3253d9)[_0xc35d53([0x74,0x68,0x65,0x6e])](()=>_0x574554);}async function _0x3e1131(){await _0x352b1a,_0x278b64[_0xc35d53([0x6d,0x6f,0x64,0x65,0x6c])][_0xc35d53([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2927f9,_0x278b64[_0xc35d53([0x6d,0x6f,0x64,0x65,0x6c])][_0xc35d53([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2927f9,_0x278b64[_0xc35d53([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc35d53([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x426ebc(_0x3bbe55){const _0x3205f2=_0x17c9f2();_0x278b64[_0x3205f2]=_0xc35d53([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3bbe55,_0x3bbe55!=_0xc35d53([0x56,0x61,0x6c,0x69,0x64])&&_0x3e1131();}function _0x17c9f2(){const _0x223e84=window[_0xc35d53([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc35d53([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc35d53([0x6e,0x6f,0x77])]())[_0xc35d53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc35d53([0x2e]),'');let _0x2d8486=_0xc35d53([0x68]);for(let _0x33b368=0x0;_0x33b368<_0x223e84[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33b368+=0x2){let _0x4bb755=window[_0xc35d53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x223e84[_0xc35d53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33b368,_0x33b368+0x2));_0x4bb755>=_0x15afbd[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4bb755-=_0x15afbd[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d8486+=_0x15afbd[_0x4bb755];}return _0x2d8486;}function _0xf4b003(){const _0x30aaaa=_0x3f6124[_0xc35d53([0x73,0x70,0x6c,0x69,0x74])](_0xc35d53([0x2e]));if(0x3!=_0x30aaaa[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ccbbd(_0x30aaaa[0x1]);function _0x5ccbbd(_0x497e6f){const _0x4215ac=_0x19b1fa(_0x497e6f);return _0x4215ac&&_0x2cee91()?_0x4215ac:null;function _0x2cee91(){const _0x359bf2=_0x4215ac[_0xc35d53([0x6a,0x74,0x69])],_0x47cb63=window[_0xc35d53([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x359bf2[_0xc35d53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x359bf2[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ec8a3={..._0x4215ac,[_0xc35d53([0x6a,0x74,0x69])]:_0x359bf2[_0xc35d53([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x359bf2[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ec8a3[_0xc35d53([0x76,0x63])],_0x3150dd(_0x4ec8a3)==_0x47cb63;}}}async function _0x24090c(){let _0x3fe88c=!0x0;try{const _0x9625fc=_0x3f6124[_0xc35d53([0x73,0x70,0x6c,0x69,0x74])](_0xc35d53([0x2e])),[_0x160a76,_0x5d31ae,_0x38f1a7]=_0x9625fc;return _0x470308(_0x160a76),await _0x438896(_0x160a76,_0x5d31ae,_0x38f1a7),_0x3fe88c;}catch{return!0x1;}function _0x470308(_0x498c7f){const _0x365a80=_0x19b1fa(_0x498c7f);_0x365a80&&_0x365a80[_0xc35d53([0x61,0x6c,0x67])]==_0xc35d53([0x45,0x53,0x32,0x35,0x36])||(_0x3fe88c=!0x1);}async function _0x438896(_0x37ce53,_0x498f1d,_0x472c4e){const _0x569103=window[_0xc35d53([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc35d53([0x66,0x72,0x6f,0x6d])](_0x45ab95(_0x472c4e),_0x138b7b=>_0x138b7b[_0xc35d53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35abe0=new window[(_0xc35d53([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc35d53([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37ce53+_0xc35d53([0x2e])+_0x498f1d),_0x2a11a0=window[_0xc35d53([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc35d53([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a11a0)return;const _0x11a7a1=await _0x2a11a0[_0xc35d53([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc35d53([0x6a,0x77,0x6b]),_0x392870,{[_0xc35d53([0x6e,0x61,0x6d,0x65])]:_0xc35d53([0x45,0x43,0x44,0x53,0x41]),[_0xc35d53([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc35d53([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc35d53([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a11a0[_0xc35d53([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc35d53([0x6e,0x61,0x6d,0x65])]:_0xc35d53([0x45,0x43,0x44,0x53,0x41]),[_0xc35d53([0x68,0x61,0x73,0x68])]:{[_0xc35d53([0x6e,0x61,0x6d,0x65])]:_0xc35d53([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11a7a1,_0x569103,_0x35abe0)||(_0x3fe88c=!0x1);}}function _0x19b1fa(_0x571a66){return _0x571a66[_0xc35d53([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc35d53([0x65,0x79]))?JSON[_0xc35d53([0x70,0x61,0x72,0x73,0x65])](_0x45ab95(_0x571a66)):null;}function _0x45ab95(_0x117445){return window[_0xc35d53([0x61,0x74,0x6f,0x62])](_0x117445[_0xc35d53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc35d53([0x2b]))[_0xc35d53([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc35d53([0x2f])));}function _0x3150dd(_0x19241e){let _0x3d71f0=0x1505;function _0x15637a(_0xe8fd3){for(let _0x285733=0x0;_0x285733<_0xe8fd3[_0xc35d53([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x285733++){const _0x3d752a=_0xe8fd3[_0xc35d53([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x285733);_0x3d71f0=(_0x3d71f0<<0x5)+_0x3d71f0+_0x3d752a,_0x3d71f0&=_0x3d71f0;}}function _0x509bb0(_0x56f8f0){Array[_0xc35d53([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56f8f0)?_0x56f8f0[_0xc35d53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x509bb0):_0x56f8f0&&typeof _0x56f8f0==_0xc35d53([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc35d53([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56f8f0)[_0xc35d53([0x73,0x6f,0x72,0x74])]()[_0xc35d53([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f5a33,_0x31bd6a])=>{_0x15637a(_0x2f5a33),_0x509bb0(_0x31bd6a);}):_0x15637a(window[_0xc35d53([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56f8f0));}return _0x509bb0(_0x19241e),_0x3d71f0>>>0x0;}function _0x59c394(_0x115d16){return _0x115d16[_0xc35d53([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc35d53([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc35d53([0x30]));}function _0x4b1faa(_0x59e44f){return _0x59e44f[_0xc35d53([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc35d53([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc35d53([0x6a,0x6f,0x69,0x6e])]('');}function _0x2927f9(){}function _0xc35d53(_0x407039){const _0x1487f4=_0x415b;return _0x407039[_0x1487f4(0x23a)](_0x286b13=>String[_0x1487f4(0x1f6)](_0x286b13))[_0x1487f4(0x1fc)]('');}_0x426ebc(await _0x51818d());}(this);}[_0x454e5b(0x229)](){const _0x3bffcd=_0x454e5b,_0x5920e4=this[_0x3bffcd(0x235)][_0x3bffcd(0x220)][_0x3bffcd(0x22c)];_0x5920e4[_0x3bffcd(0x1ea)](_0x3bffcd(0x218))&&_0x5920e4[_0x3bffcd(0x1ef)](_0x3bffcd(0x218),{'allowAttributes':[_0x3bffcd(0x1fe)]}),_0x5920e4[_0x3bffcd(0x1ea)](_0x3bffcd(0x219))&&_0x5920e4[_0x3bffcd(0x1ef)](_0x3bffcd(0x219),{'allowAttributes':[_0x3bffcd(0x1fe)]});}[_0x454e5b(0x1ed)](){const _0x132c0f=_0x454e5b,_0x3f0818=this[_0x132c0f(0x235)];_0x3f0818[_0x132c0f(0x1e9)][_0x132c0f(0x23f)](_0x132c0f(0x231))[_0x132c0f(0x203)]({'model':_0x132c0f(0x1fe),'view':_0x132c0f(0x21e)}),_0x3f0818[_0x132c0f(0x1e9)][_0x132c0f(0x23f)](_0x132c0f(0x20a))[_0x132c0f(0x20d)]({'model':{'key':_0x132c0f(0x1fe),'value':_0x3f326f=>_0x3f326f[_0x132c0f(0x206)](_0x132c0f(0x21e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b534e=_0x3f0818[_0x132c0f(0x205)][_0x132c0f(0x22a)](_0x132c0f(0x221));_0x2b534e&&this[_0x132c0f(0x1f2)](_0x2b534e,_0x132c0f(0x236),(_0x3e0b59,[_0x3e941d,_0x60fc01])=>{const _0xc5f8e6=_0x132c0f;_0x3e941d[_0xc5f8e6(0x22d)](_0xc5f8e6(0x1fe),_0x60fc01);});}[_0x454e5b(0x202)](){const _0x5bc3d4=_0x454e5b,_0x41ccf9=this[_0x5bc3d4(0x235)][_0x5bc3d4(0x208)][_0x5bc3d4(0x22a)](_0x5bc3d4(0x1f3))||{},_0x630e3=this[_0x5bc3d4(0x235)][_0x5bc3d4(0x208)][_0x5bc3d4(0x22a)](_0x5bc3d4(0x228))||'';this[_0x5bc3d4(0x21d)]=_0x4f7aa0(_0x2edb97[_0x5bc3d4(0x233)],_0x5bc3d4(0x238),{..._0x41ccf9,'pubkey':_0x630e3,'ctx-name':_0x5bc3d4(0x21c)+this[_0x5bc3d4(0x1f8)],'sourceList':'','imgOnly':_0x5bc3d4(0x234),'removeCopyright':_0x5bc3d4(0x234),'localeName':this[_0x5bc3d4(0x235)][_0x5bc3d4(0x232)][_0x5bc3d4(0x222)],'externalSourcesEmbedCss':_0x5bc3d4(0x200)}),this[_0x5bc3d4(0x21d)][_0x5bc3d4(0x20e)]=_0x26b37a=>{const _0x2e4828=_0x5bc3d4;if(_0x2e4828(0x23e)==_0x26b37a)return _0x2e4828(0x23b);},_0x2edb97[_0x5bc3d4(0x233)][_0x5bc3d4(0x21a)][_0x5bc3d4(0x1ff)](this[_0x5bc3d4(0x21d)]);}[_0x454e5b(0x211)](){const _0x30a2ed=_0x454e5b;this[_0x30a2ed(0x226)]=_0x4f7aa0(_0x2edb97[_0x30a2ed(0x233)],_0x30a2ed(0x1f7),{'ctx-name':_0x30a2ed(0x21c)+this[_0x30a2ed(0x1f8)]}),_0x2edb97[_0x30a2ed(0x233)][_0x30a2ed(0x21a)][_0x30a2ed(0x1ff)](this[_0x30a2ed(0x226)]);}[_0x454e5b(0x1ee)](){const _0x18b50d=_0x454e5b,_0x20afde=this[_0x18b50d(0x235)][_0x18b50d(0x205)][_0x18b50d(0x22a)](_0x18b50d(0x212));_0x20afde&&this[_0x18b50d(0x1f2)](_0x20afde,_0x18b50d(0x224),()=>{const _0x55e138=_0x18b50d,_0x1a956e=this[_0x55e138(0x235)][_0x55e138(0x220)][_0x55e138(0x233)][_0x55e138(0x209)][_0x55e138(0x1eb)]();_0x1a956e&&_0x1a956e[_0x55e138(0x206)](_0x55e138(0x1fe))&&this[_0x55e138(0x235)][_0x55e138(0x1f4)][_0x55e138(0x1f1)][_0x55e138(0x215)](_0x55e138(0x204),()=>{const _0xa55d96=_0x55e138;_0x47d065(this[_0xa55d96(0x235)],_0x1a956e);});});const _0x594fa7=this[_0x18b50d(0x235)][_0x18b50d(0x205)][_0x18b50d(0x22a)](_0x18b50d(0x217));_0x594fa7&&this[_0x18b50d(0x1f2)](_0x594fa7,_0x18b50d(0x224),()=>{const _0x98a6f2=_0x18b50d,_0x5a69ed=this[_0x98a6f2(0x235)][_0x98a6f2(0x220)][_0x98a6f2(0x233)][_0x98a6f2(0x209)][_0x98a6f2(0x1eb)]();_0x5a69ed&&_0x5a69ed[_0x98a6f2(0x206)](_0x98a6f2(0x1fe))&&this[_0x98a6f2(0x235)][_0x98a6f2(0x1f4)][_0x98a6f2(0x1f1)][_0x98a6f2(0x215)](_0x98a6f2(0x204),()=>{const _0x255772=_0x98a6f2;_0x47d065(this[_0x255772(0x235)],_0x5a69ed);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2add3d,ObservableMixin as _0x1a7616}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x50c071}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x397579}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x52ee8f}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x376e5b}from'../../utils/uploadutils.js';import{getImageUrls as _0x236ee5,getImageDimension as _0x5896aa}from'../../utils/editingutils.js';import{isAncestor as _0x229e08}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1a7616(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x54aac6,_0x595620,_0x317a24){super(),this['_editor']=_0x54aac6,this['_dialog']=_0x595620,this['_imageElement']=_0x317a24,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 _0x4693f6=this['_imageElement'],_0xdbd339=_0x4693f6['getAttribute']('uploadcareImageId'),_0x23d3e4=_0x4693f6['getAttribute']('src');if(_0xdbd339)await this['_loadImageInfo'](_0xdbd339,_0x23d3e4);else{if(this['_imageCache']['has'](_0x23d3e4)){const _0x201fc6=this['_imageCache']['get'](_0x23d3e4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x201fc6['url'],this['imageDimension']=_0x201fc6['dimension'],this['imageId']=_0x201fc6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3b2196}=this['_editor'],t=_0x3b2196['t'],_0x2f5eea=new _0x52ee8f(_0x3b2196,this['imageStatus'],this['_attributes']);_0x2f5eea['bind']('status')['to'](this,'imageStatus'),_0x2f5eea['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2f5eea['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2f5eea['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2f5eea,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x397579,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2f5eea,'position':_0x50c071['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2f5eea['focus']();},'onHide':()=>{_0x2f5eea['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53316c=>!_0x229e08(_0x53316c,_0x2f5eea['element'])}});}['_loadImageInfo'](_0xcb45ea,_0x2aacec){return _0x376e5b['getInfo'](_0xcb45ea,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1dfab9=>{const {width:_0x3989ff,height:_0x35c276}=_0x1dfab9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2aacec,this['imageDimension']={'width':_0x3989ff,'height':_0x35c276},this['imageId']=_0xcb45ea;})['catch'](_0x5c6aa1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5c6aa1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x46c0be,_0x521d6d){return this['_getImageAsFile'](_0x46c0be)['then'](_0x38eb87=>_0x376e5b['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x521d6d['signal'],'file':_0x38eb87,'onProgress':_0x1abdf9=>{_0x1abdf9&&_0x1abdf9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1abdf9['value']));}}))['then'](_0x588d04=>{const {width:_0x3c8148,height:_0x2cdc72}=_0x588d04['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x588d04['cdnUrl'],this['imageDimension']={'width':_0x3c8148,'height':_0x2cdc72},this['imageId']=_0x588d04['uuid'],this['imageUploadProgress']=null;const _0x1e9f0a=_0x46c0be['getAttribute']('src');this['_imageCache']['set'](_0x1e9f0a,{'id':_0x588d04['uuid'],'url':_0x588d04['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3b1fc8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b1fc8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2cb142,_0x537c51){_0x2cb142['on']('apply',(_0x396f24,_0x1d2079)=>{this['_replaceImage'](_0x537c51,_0x1d2079['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2cb142['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2cb142['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x40904a,_0x5a58e4,_0x5eabf2){const _0x1a1eac=this['_editor'],{width:_0x57849a,height:_0x275945}=_0x5896aa(_0x5a58e4,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2eb7dd,imageSources:_0x50bb61}=_0x236ee5(_0x5a58e4,_0x57849a);_0x1a1eac['model']['change'](_0x23efca=>{if('$graveyard'===_0x40904a['root']['rootName']){_0x1a1eac['execute']('insertImage',{'imageType':_0x40904a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x40904a['getAttributes']()),'uploadcareImageId':_0x5eabf2,'src':_0x2eb7dd,'sources':_0x50bb61,'width':_0x57849a,'height':_0x275945}});const _0x39a8df=_0x40904a['getChildren']();_0x40904a=_0x1a1eac['model']['document']['selection']['getSelectedElement']();for(const _0x2526aa of _0x39a8df)_0x23efca['append'](_0x23efca['cloneElement'](_0x2526aa),_0x40904a);}else _0x23efca['setSelection'](_0x40904a,'on'),_0x1a1eac['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x40904a['getAttributes']()),'uploadcareImageId':_0x5eabf2,'src':_0x2eb7dd,'sources':_0x50bb61,'width':_0x57849a,'height':_0x275945},_0x40904a);_0x23efca['setSelection'](_0x40904a,'on');});}async['_getImageAsFile'](_0x522da0){const _0x4a610b=_0x2add3d['window'],_0xa28e6b=_0x2add3d['document']['location']['href'],_0x200c4b=new _0x4a610b['URL'](_0x522da0['getAttribute']('src'),_0xa28e6b);if('data:'===_0x200c4b['protocol']){const _0x1da1d9=_0x200c4b['href']['split'](','),_0x39684d=_0x1da1d9[0x0]['match'](/:(.*?);/)[0x1],_0x537677=_0x39684d['split']('/')[0x1],_0x1d0600=_0x4a610b['atob'](_0x1da1d9[_0x1da1d9['length']-0x1]);let _0x4f618f=_0x1d0600['length'];const _0x3c9c2b=new _0x4a610b['Uint8Array'](_0x4f618f);for(;_0x4f618f--;)_0x3c9c2b[_0x4f618f]=_0x1d0600['charCodeAt'](_0x4f618f);return new _0x4a610b['File']([_0x3c9c2b],'image.'+_0x537677,{'type':_0x39684d});}const _0x52de00=_0x200c4b['href']['split']('/'),_0x2e9f07=_0x52de00[_0x52de00['length']-0x1],_0x346cc9=_0x2e9f07['split']('.')[0x1];return _0x4a610b['fetch'](_0x200c4b['href'])['then'](_0x319ef6=>_0x319ef6['clone']()['blob']())['then'](_0x306d0a=>new _0x4a610b['File']([_0x306d0a],_0x2e9f07,{'type':'image/'+_0x346cc9}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x42c1bd,_0x4f559c){const _0x31aab6=_0x3362,_0x148fd5=_0x42c1bd();while(!![]){try{const _0x5ccc9c=-parseInt(_0x31aab6(0x1b7))/0x1+-parseInt(_0x31aab6(0x1b6))/0x2+-parseInt(_0x31aab6(0x1b3))/0x3+parseInt(_0x31aab6(0x1b2))/0x4*(-parseInt(_0x31aab6(0x1ab))/0x5)+parseInt(_0x31aab6(0x1ac))/0x6*(-parseInt(_0x31aab6(0x1ae))/0x7)+-parseInt(_0x31aab6(0x1a7))/0x8*(parseInt(_0x31aab6(0x1b5))/0x9)+parseInt(_0x31aab6(0x1ad))/0xa;if(_0x5ccc9c===_0x4f559c)break;else _0x148fd5['push'](_0x148fd5['shift']());}catch(_0x3a5245){_0x148fd5['push'](_0x148fd5['shift']());}}}(_0x3eb0,0x63563));import{View as _0x282f07}from'ckeditor5/src/ui.js';function _0x3362(_0x333dce,_0x100fb2){const _0x3eb0c8=_0x3eb0();return _0x3362=function(_0x336299,_0x5d787b){_0x336299=_0x336299-0x1a6;let _0x2b2da0=_0x3eb0c8[_0x336299];return _0x2b2da0;},_0x3362(_0x333dce,_0x100fb2);}export class UploadcareImageEditFormEditingView extends _0x282f07{constructor(_0x183b44,_0x6ff30c){const _0x344d75=_0x3362;super(_0x183b44);const _0x17cc6e=this[_0x344d75(0x1b4)];this[_0x344d75(0x1aa)](_0x344d75(0x1af),''),this[_0x344d75(0x1a9)]({'tag':_0x344d75(0x1b0),'attributes':{..._0x6ff30c,'class':[_0x344d75(0x1a8),_0x344d75(0x1a6)],'ctx-name':_0x344d75(0x1b1),'cdn-url':_0x17cc6e['to'](_0x344d75(0x1af))}});}}function _0x3eb0(){const _0x13ee49=['26396450ipipBC','7aWclac','imageSrc','uc-cloud-image-editor','image-edit','11932gRFnSP','2280723uJBjJT','bindTemplate','9bEHYvY','201674JnmvsR','766449pNvRPa','ck-uploadcare-theme','2779816kpXhVV','uc-light','setTemplate','set','275nVzVIx','562158vZSEdO'];_0x3eb0=function(){return _0x13ee49;};return _0x3eb0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x389e9b}from'ckeditor5/src/icons.js';import{ButtonView as _0x31c6e8,IconView as _0x9738dd,View as _0x526b87}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x526b87{constructor(_0x5a37f0){super(_0x5a37f0);const t=_0x5a37f0['t'];this['set']('errorType',null);const _0x194535=new _0x31c6e8(_0x5a37f0);_0x194535['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x194535['withText']=!0x0,_0x194535['class']='ck-button-action',_0x194535['on']('execute',()=>{this['fire']('retry');}),_0x194535['bind']('isVisible')['to'](this,'errorType',_0x2bc553=>'NotFound'!==_0x2bc553);const _0x376c9f=new _0x9738dd();_0x376c9f['content']=_0x389e9b,_0x376c9f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x24b1d9=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':[_0x376c9f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x24b1d9['to']('errorType',_0x4a9612=>t('NotFound'!==_0x4a9612?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x194535]},{'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 _0x12739e,View as _0x30e1f4}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x30e1f4{constructor(_0xcacce4){super(_0xcacce4);const t=_0xcacce4['t'],_0x56900f=this['bindTemplate'],_0x1f0dcd=new _0x12739e();_0x1f0dcd['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':[_0x1f0dcd,{'text':_0x56900f['to']('imageUploadProgress',_0x1df032=>t('Loading\x20image...')+'\x20('+(_0x1df032||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
|
+
function _0x4d8d(){const _0x24685d=['_items','cancel','ck-uploadcare-form','addEventListener','_setView','querySelector','2ljugjV','1804130JlXdJo','_editingView','element','add','836826ynoqwD','status','once','observe','nodeName','uploading','filter','target','_addUploadcareImageEditorListeners','render','clear','138alwtxx','setTemplate','ck-reset_all-excluded','toLowerCase','_loadingView','24TNsGHX','ready','focus','set','_focusableView','retry','476148Vovfgp','2764536ZCsFPD','5002954xtvRdM','apply','error','change:status','82210wZCuzJ','getFocusableElement','addMany','_waitForImageEditorComponent','_addErrorViewListeners','cdnUrl','_errorView','detail','9NcwtFN','createCollection','fire','uc-cloud-image-editor','1018353MEbUso','disconnect','div','addedNodes','length'];_0x4d8d=function(){return _0x24685d;};return _0x4d8d();}const _0xacd3aa=_0x5c14;(function(_0x5ea7b8,_0x58b205){const _0xdf6d2b=_0x5c14,_0x14e1db=_0x5ea7b8();while(!![]){try{const _0x4ed9bb=-parseInt(_0xdf6d2b(0x1f9))/0x1*(-parseInt(_0xdf6d2b(0x1de))/0x2)+parseInt(_0xdf6d2b(0x1e3))/0x3+-parseInt(_0xdf6d2b(0x1fa))/0x4+-parseInt(_0xdf6d2b(0x1ff))/0x5*(parseInt(_0xdf6d2b(0x1ee))/0x6)+parseInt(_0xdf6d2b(0x1d3))/0x7*(parseInt(_0xdf6d2b(0x1f3))/0x8)+parseInt(_0xdf6d2b(0x1cf))/0x9*(-parseInt(_0xdf6d2b(0x1df))/0xa)+parseInt(_0xdf6d2b(0x1fb))/0xb;if(_0x4ed9bb===_0x58b205)break;else _0x14e1db['push'](_0x14e1db['shift']());}catch(_0x2ea656){_0x14e1db['push'](_0x14e1db['shift']());}}}(_0x4d8d,0x60d54));function _0x5c14(_0x494895,_0x1a1464){const _0x4d8de2=_0x4d8d();return _0x5c14=function(_0x5c14c0,_0x36a391){_0x5c14c0=_0x5c14c0-0x1cf;let _0x570f74=_0x4d8de2[_0x5c14c0];return _0x570f74;},_0x5c14(_0x494895,_0x1a1464);}import{View as _0x798f6e}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5dce5d}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3cd74a}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x1ab402}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2a7d07}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2a7d07{[_0xacd3aa(0x1d8)];[_0xacd3aa(0x1f2)];[_0xacd3aa(0x205)];[_0xacd3aa(0x1e0)];[_0xacd3aa(0x1f7)];constructor(_0x33a63b,_0xed4e11,_0xa1ea4f){const _0x348beb=_0xacd3aa;super(_0x33a63b),this[_0x348beb(0x1d8)]=this[_0x348beb(0x1d0)](),this[_0x348beb(0x1f2)]=new _0x5dce5d(_0x33a63b),this[_0x348beb(0x205)]=new _0x3cd74a(_0x33a63b),this[_0x348beb(0x1e0)]=new _0x1ab402(_0x33a63b,_0xa1ea4f),this[_0x348beb(0x1f7)]=new _0x798f6e(_0x33a63b),this[_0x348beb(0x1f7)][_0x348beb(0x1ef)](this[_0x348beb(0x200)]()),this[_0x348beb(0x1f6)](_0x348beb(0x1e4),_0xed4e11),this[_0x348beb(0x1ef)]({'tag':_0x348beb(0x1d5),'attributes':{'class':['ck',_0x348beb(0x1f0),_0x348beb(0x1da)],'tabindex':'-1'},'children':this[_0x348beb(0x1d8)]}),this[_0x348beb(0x1dc)](),this[_0x348beb(0x1e5)](_0x348beb(0x1ec),()=>{const _0x38e8c0=_0x348beb;this[_0x38e8c0(0x202)](this[_0x38e8c0(0x1e1)],_0x396346=>{const _0x58b679=_0x38e8c0;this[_0x58b679(0x1eb)](_0x396346);});}),this['on'](_0x348beb(0x1fe),()=>{const _0x38bb7a=_0x348beb;this[_0x38bb7a(0x1dc)]();}),this[_0x348beb(0x203)]();}[_0xacd3aa(0x1f5)](){const _0x506ea5=_0xacd3aa;this[_0x506ea5(0x1e1)][_0x506ea5(0x1f5)]();}[_0xacd3aa(0x1dc)](){const _0x468979=_0xacd3aa;switch(this[_0x468979(0x1d8)][_0x468979(0x1ed)](),this[_0x468979(0x1e4)]){case _0x468979(0x1e8):this[_0x468979(0x1d8)][_0x468979(0x1e2)](this[_0x468979(0x1f2)]);break;case _0x468979(0x1fd):this[_0x468979(0x1d8)][_0x468979(0x1e2)](this[_0x468979(0x205)]);break;case _0x468979(0x1f4):this[_0x468979(0x1d8)][_0x468979(0x201)]([this[_0x468979(0x1e0)],this[_0x468979(0x1f7)]]);}}[_0xacd3aa(0x202)](_0x249bd7,_0x1e281b){const _0x1e85c7=_0xacd3aa,_0x33827a=_0x1e85c7(0x1d2),_0x40d857=_0x249bd7[_0x1e85c7(0x1dd)](_0x33827a);if(_0x40d857)return _0x1e281b(_0x40d857);const _0x5a1da0=new MutationObserver(_0x96c01b=>{const _0x4af087=_0x1e85c7,_0x3fe37a=_0x96c01b[_0x4af087(0x1e9)](_0x528471=>_0x528471[_0x4af087(0x1ea)]===_0x249bd7&&_0x528471[_0x4af087(0x1d6)][_0x4af087(0x1d7)]>0x0&&_0x528471[_0x4af087(0x1d6)][0x0][_0x4af087(0x1e7)][_0x4af087(0x1f1)]()===_0x33827a);_0x3fe37a[_0x4af087(0x1d7)]&&(_0x5a1da0[_0x4af087(0x1d4)](),_0x1e281b(_0x3fe37a[0x0][_0x4af087(0x1d6)][0x0]));});_0x5a1da0[_0x1e85c7(0x1e6)](_0x249bd7,{'childList':!0x0,'subtree':!0x0});}[_0xacd3aa(0x1eb)](_0x4a49a9){const _0xaa2623=_0xacd3aa;_0x4a49a9[_0xaa2623(0x1db)](_0xaa2623(0x1fc),_0x166e6a=>{const _0x56167f=_0xaa2623;this[_0x56167f(0x1d1)](_0x56167f(0x1fc),{'imageSrc':_0x166e6a[_0x56167f(0x206)][_0x56167f(0x204)]});}),_0x4a49a9[_0xaa2623(0x1db)](_0xaa2623(0x1d9),()=>{const _0x34f973=_0xaa2623;this[_0x34f973(0x1d1)](_0x34f973(0x1d9));});}[_0xacd3aa(0x203)](){const _0x39177d=_0xacd3aa;this[_0x39177d(0x205)]['on'](_0x39177d(0x1f8),()=>{const _0x2ee1d1=_0x39177d;this[_0x2ee1d1(0x1d1)](_0x2ee1d1(0x1f8));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x171250=_0x56a5;(function(_0x467271,_0x5e3b7b){const _0x4539fe=_0x56a5,_0x5deacd=_0x467271();while(!![]){try{const _0x257e41=-parseInt(_0x4539fe(0x9c))/0x1+parseInt(_0x4539fe(0xa4))/0x2*(-parseInt(_0x4539fe(0xac))/0x3)+-parseInt(_0x4539fe(0xa8))/0x4+parseInt(_0x4539fe(0xa6))/0x5*(-parseInt(_0x4539fe(0x91))/0x6)+-parseInt(_0x4539fe(0xab))/0x7+-parseInt(_0x4539fe(0x92))/0x8+parseInt(_0x4539fe(0xaf))/0x9*(parseInt(_0x4539fe(0x98))/0xa);if(_0x257e41===_0x5e3b7b)break;else _0x5deacd['push'](_0x5deacd['shift']());}catch(_0xcfda4e){_0x5deacd['push'](_0x5deacd['shift']());}}}(_0x3a34,0xaa6af));import{Command as _0x4e55c6}from'ckeditor5/src/core.js';function _0x56a5(_0x43d04b,_0x6ba5b){const _0x3a3405=_0x3a34();return _0x56a5=function(_0x56a515,_0x15441c){_0x56a515=_0x56a515-0x91;let _0xbadc8c=_0x3a3405[_0x56a515];return _0xbadc8c;},_0x56a5(_0x43d04b,_0x6ba5b);}import{Dialog as _0x1d2a37}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x52affa}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2c88b9}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x4e55c6{[_0x171250(0x9f)];static get[_0x171250(0x94)](){return[_0x1d2a37];}[_0x171250(0xa7)];constructor(_0x40322a){const _0x491dda=_0x171250;super(_0x40322a),this[_0x491dda(0x9f)]=void 0x0,this[_0x491dda(0xa7)]=_0x2c88b9(_0x40322a[_0x491dda(0xb0)][_0x491dda(0x9b)](_0x491dda(0xad))||[]),this[_0x491dda(0xa2)]({'isActive':!0x1});}[_0x171250(0x9a)](){const _0x43af9a=_0x171250,_0x2c061d=this[_0x43af9a(0xa1)][_0x43af9a(0xae)][_0x43af9a(0xa9)][_0x43af9a(0x93)][_0x43af9a(0x9e)]();this[_0x43af9a(0xaa)]=this[_0x43af9a(0xa7)](_0x2c061d);}[_0x171250(0x95)](){const _0x234c8e=_0x171250;this[_0x234c8e(0x9f)]&&(this[_0x234c8e(0xa0)](_0x234c8e(0xa5)),this[_0x234c8e(0x9f)]=void 0x0);const _0x28aebe=this[_0x234c8e(0xa1)][_0x234c8e(0xae)][_0x234c8e(0xa9)][_0x234c8e(0x93)][_0x234c8e(0x9e)]();_0x28aebe&&(_0x28aebe['is'](_0x234c8e(0x99),_0x234c8e(0xa3))||_0x28aebe['is'](_0x234c8e(0x99),_0x234c8e(0x9d)))&&(this[_0x234c8e(0x9f)]=new _0x52affa(this[_0x234c8e(0xa1)],this[_0x234c8e(0xa1)][_0x234c8e(0x96)][_0x234c8e(0x9b)](_0x1d2a37),_0x28aebe),this[_0x234c8e(0x97)](_0x234c8e(0xa5))['to'](this[_0x234c8e(0x9f)],_0x234c8e(0xa5)));}}function _0x3a34(){const _0x56a8f2=['refresh','get','1038756fHNRIF','imageInline','getSelectedElement','imageEditController','unbind','editor','set','imageBlock','5484TjTIJP','isActive','830qyJFVL','_isEditable','258448ilDYSd','document','isEnabled','2422525OcDYUx','708nGwpRB','uploadcare.allowExternalImagesEditing','model','9QOydIY','config','3414gWydSh','906016WmfWRR','selection','requires','execute','plugins','bind','30022920wNoFGQ','element'];_0x3a34=function(){return _0x56a8f2;};return _0x3a34();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56a8be=_0xf7a4;function _0x110e(){const _0x89972d=['add','3596665WJKHlM','2351961OmqnKL','ImageEditing','uploadcareImageEdit','isOfficialPlugin','uploadcareImageReplace','requires','4306218uohkHK','40UQcBUE','5552488hMFZKz','10289576gJPBsP','1712569ffPApC','commands','501282UGdNzH','2kkfhxp','init','98uUJgEt','pluginName','ImageUtils','UploadcareImageEditEditing','isPremiumPlugin'];_0x110e=function(){return _0x89972d;};return _0x110e();}(function(_0x513817,_0x30c5f7){const _0x4e73b=_0xf7a4,_0x570646=_0x513817();while(!![]){try{const _0x189f13=-parseInt(_0x4e73b(0x1b9))/0x1*(-parseInt(_0x4e73b(0x1bc))/0x2)+-parseInt(_0x4e73b(0x1b5))/0x3+parseInt(_0x4e73b(0x1b7))/0x4+parseInt(_0x4e73b(0x1ae))/0x5+-parseInt(_0x4e73b(0x1bb))/0x6*(parseInt(_0x4e73b(0x1be))/0x7)+-parseInt(_0x4e73b(0x1b8))/0x8+parseInt(_0x4e73b(0x1af))/0x9*(parseInt(_0x4e73b(0x1b6))/0xa);if(_0x189f13===_0x30c5f7)break;else _0x570646['push'](_0x570646['shift']());}catch(_0x1eecaf){_0x570646['push'](_0x570646['shift']());}}}(_0x110e,0xedcff));function _0xf7a4(_0x593076,_0x5c9476){const _0x110ef7=_0x110e();return _0xf7a4=function(_0xf7a439,_0x4f6cf9){_0xf7a439=_0xf7a439-0x1ae;let _0x3c5751=_0x110ef7[_0xf7a439];return _0x3c5751;},_0xf7a4(_0x593076,_0x5c9476);}import{Plugin as _0x4096b5}from'ckeditor5/src/core.js';import{Notification as _0x492bf9}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1aabf1}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x128e6b}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x511ba2}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4096b5{static get[_0x56a8be(0x1bf)](){const _0x289267=_0x56a8be;return _0x289267(0x1c1);}static get[_0x56a8be(0x1b4)](){const _0xe4b511=_0x56a8be;return[_0x511ba2,_0x492bf9,_0xe4b511(0x1c0),_0xe4b511(0x1b0)];}static get[_0x56a8be(0x1b2)](){return!0x0;}static get[_0x56a8be(0x1c2)](){return!0x0;}[_0x56a8be(0x1bd)](){const _0x1d27da=_0x56a8be,{editor:_0x407217}=this;_0x407217[_0x1d27da(0x1ba)][_0x1d27da(0x1c3)](_0x1d27da(0x1b1),new _0x1aabf1(_0x407217)),_0x407217[_0x1d27da(0x1ba)][_0x1d27da(0x1c3)](_0x1d27da(0x1b3),new _0x128e6b(_0x407217));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x51f7e2}from'ckeditor5/src/core.js';import{ButtonView as _0x3ac9ac}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1bb92f}from'ckeditor5/src/icons.js';import{createElement as _0x147a80}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 _0x51f7e2{['_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 _0x2d7f75=this['editor'];_0x2d7f75['ui']['componentFactory']['add']('uploadcareImageEdit',_0x47fe7f=>{const _0x3c1a76=_0x2d7f75['commands']['get']('uploadcareImageEdit'),_0xbe8020=new _0x3ac9ac(_0x47fe7f),t=_0x47fe7f['t'];return _0xbe8020['set']({'icon':_0x1bb92f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xbe8020['bind']('isEnabled')['to'](_0x3c1a76),_0xbe8020['bind']('isOn')['to'](_0x3c1a76,'isActive'),this['listenTo'](_0xbe8020,'execute',()=>{_0x2d7f75['execute']('uploadcareImageEdit'),_0x2d7f75['editing']['view']['focus']();}),_0xbe8020;}),this['_initConfig']();}['_initConfig'](){const _0x25780e=_0x147a80(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x25780e),this['listenTo'](this['editor'],'destroy',()=>{_0x25780e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d3509=_0x4ef2;(function(_0x22099c,_0x5df99e){const _0x5b63d8=_0x4ef2,_0x3b0834=_0x22099c();while(!![]){try{const _0x477a06=-parseInt(_0x5b63d8(0xf1))/0x1+parseInt(_0x5b63d8(0xf8))/0x2+-parseInt(_0x5b63d8(0xf5))/0x3*(parseInt(_0x5b63d8(0xfd))/0x4)+-parseInt(_0x5b63d8(0xff))/0x5*(-parseInt(_0x5b63d8(0x103))/0x6)+parseInt(_0x5b63d8(0x101))/0x7*(-parseInt(_0x5b63d8(0xfc))/0x8)+-parseInt(_0x5b63d8(0xfb))/0x9*(-parseInt(_0x5b63d8(0xee))/0xa)+parseInt(_0x5b63d8(0xf0))/0xb;if(_0x477a06===_0x5df99e)break;else _0x3b0834['push'](_0x3b0834['shift']());}catch(_0x3480be){_0x3b0834['push'](_0x3b0834['shift']());}}}(_0x5025,0xd3cec));import{Command as _0x132a6a}from'ckeditor5/src/core.js';function _0x4ef2(_0x1f2ccc,_0x55eb59){const _0x5025aa=_0x5025();return _0x4ef2=function(_0x4ef278,_0xcf82fd){_0x4ef278=_0x4ef278-0xed;let _0x3bfdfe=_0x5025aa[_0x4ef278];return _0x3bfdfe;},_0x4ef2(_0x1f2ccc,_0x55eb59);}export class UploadcareImageReplaceCommand extends _0x132a6a{[_0x1d3509(0xf2)](){const _0x57e545=_0x1d3509,_0xbb7384=this[_0x57e545(0xf4)][_0x57e545(0xfa)][_0x57e545(0x104)][_0x57e545(0xf9)][_0x57e545(0xfe)]();this[_0x57e545(0x107)]=Boolean(_0xbb7384&&(_0xbb7384['is'](_0x57e545(0xed),_0x57e545(0xef))||_0xbb7384['is'](_0x57e545(0xed),_0x57e545(0x106))));}[_0x1d3509(0x100)](_0x541112){const _0x518f78=_0x1d3509,_0x4e97bc=this[_0x518f78(0xf4)][_0x518f78(0xfa)][_0x518f78(0x104)][_0x518f78(0xf9)][_0x518f78(0xfe)]();this[_0x518f78(0xf4)][_0x518f78(0xfa)][_0x518f78(0x105)](_0x12d13=>{const _0x2a7caf=_0x518f78;_0x12d13[_0x2a7caf(0xf7)](_0x541112,_0x4e97bc),_0x12d13[_0x2a7caf(0x102)](_0x2a7caf(0xf6),_0x4e97bc),_0x12d13[_0x2a7caf(0x102)](_0x2a7caf(0xf3),_0x4e97bc);});}}function _0x5025(){const _0x1316d8=['imageBlock','22138787HIvuEj','1332597kdOKeN','refresh','sizes','editor','387741fTeolX','srcset','setAttributes','2036096VcUnXs','selection','model','18puiIbD','208bgVGLn','4SMzTtT','getSelectedElement','1952295YXCRgq','execute','340557gcQQER','removeAttribute','6czvnUO','document','change','imageInline','isEnabled','element','866050yUQajc'];_0x5025=function(){return _0x1316d8;};return _0x5025();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xf77c4=_0x500f;function _0x500f(_0x3c3b17,_0x367cfa){var _0x23fd43=_0x23fd();return _0x500f=function(_0x500f77,_0x53ca32){_0x500f77=_0x500f77-0x1af;var _0x31ee01=_0x23fd43[_0x500f77];return _0x31ee01;},_0x500f(_0x3c3b17,_0x367cfa);}(function(_0x389278,_0x45f98f){var _0x2cff24=_0x500f,_0xc5c9aa=_0x389278();while(!![]){try{var _0x2e8d64=parseInt(_0x2cff24(0x1b0))/0x1*(parseInt(_0x2cff24(0x1b5))/0x2)+-parseInt(_0x2cff24(0x1bc))/0x3+parseInt(_0x2cff24(0x1ba))/0x4+-parseInt(_0x2cff24(0x1b7))/0x5+parseInt(_0x2cff24(0x1bd))/0x6*(-parseInt(_0x2cff24(0x1b3))/0x7)+parseInt(_0x2cff24(0x1b2))/0x8*(parseInt(_0x2cff24(0x1b8))/0x9)+parseInt(_0x2cff24(0x1b1))/0xa;if(_0x2e8d64===_0x45f98f)break;else _0xc5c9aa['push'](_0xc5c9aa['shift']());}catch(_0x3f3df8){_0xc5c9aa['push'](_0xc5c9aa['shift']());}}}(_0x23fd,0xb6412));import{Plugin as _0x3c0b77}from'ckeditor5/src/core.js';function _0x23fd(){var _0x2c5094=['11663950PTqzOP','624SlpZVJ','9303742HfVqeo','isOfficialPlugin','108094xXfSfU','pluginName','4541615wArPoR','103833UjDfjG','requires','4901264exHeBt','UploadcareImageEdit','3030795hnMVae','6HmZaUY','isPremiumPlugin','13uROTBu'];_0x23fd=function(){return _0x2c5094;};return _0x23fd();}import{UploadcareImageEditEditing as _0xaf7134}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x2f7706}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x3c0b77{static get[_0xf77c4(0x1b6)](){var _0x11777d=_0xf77c4;return _0x11777d(0x1bb);}static get[_0xf77c4(0x1b9)](){return[_0xaf7134,_0x2f7706];}static get[_0xf77c4(0x1b4)](){return!0x0;}static get[_0xf77c4(0x1af)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2853(){const _0x59aae9=['Local','176610SZUFVt','3526116mcJYNM','isPremiumPlugin','_createButton','_createMenuBarButtons','Dropbox','tooltip','reduce','uploadcareLicenseKeyUsageLimit','destroy','init','get','GPhotos','withText','expired','Facebook','forEach','text','_showLicenseError','bind','9409707mkKbLv','evaluationLimit','url','uploadcareLicenseKeyValid','uploadcareLicenseKeyEvaluationLimit','OneDrive','_createToolbarButton','URL','type','domainLimit','pluginName','plugins','commands','editor','50056LtTRkm','config','execute','push','isImageSelected','usageLimit','isEnabled','locale','uploadcareLicenseKeyTrialLimit','uploadcare','registerIntegration','entries','8kGkLso','icon','shortText','Insert','GDrive','featureNotAllowed','_getIntegrationKey','_licenseKeyCheckInterval','195LEFPfe','isOfficialPlugin','map','invalid','uploadcareLicenseKeyDomainLimit','_normalizeConfigSourceList','has','afterInit','ImageInsertUI','54372PkbBGr','UploadcareUI','uploadcare.uploader.sourceList','label','578597LKqOpX','licenseKey','trialLimit','uploadcareLicenseKeyExpired','Replace','upload','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyNotAllowed','_createDropdownButtons','assetManager','Uploadcare','3425950eqdclK'];_0x2853=function(){return _0x59aae9;};return _0x2853();}const _0x592d49=_0x4b13;(function(_0x2f737c,_0x2d24af){const _0x232303=_0x4b13,_0x2a1869=_0x2f737c();while(!![]){try{const _0x4dd589=-parseInt(_0x232303(0xa7))/0x1+-parseInt(_0x232303(0xf3))/0x2+parseInt(_0x232303(0xea))/0x3*(parseInt(_0x232303(0xd6))/0x4)+parseInt(_0x232303(0xb2))/0x5+parseInt(_0x232303(0xb5))/0x6+-parseInt(_0x232303(0xb4))/0x7+parseInt(_0x232303(0xe2))/0x8*(-parseInt(_0x232303(0xc8))/0x9);if(_0x4dd589===_0x2d24af)break;else _0x2a1869['push'](_0x2a1869['shift']());}catch(_0x42bf5a){_0x2a1869['push'](_0x2a1869['shift']());}}}(_0x2853,0x64096));import{Plugin as _0x41c592}from'ckeditor5/src/core.js';import{IconDropbox as _0x4637b8,IconFacebook as _0x2f9688,IconGoogleDrive as _0x2d132e,IconGooglePhotos as _0x596050,IconUploadcareImageUpload as _0x4b5e32,IconUploadcareLink as _0x5894bf,IconOneDrive as _0x1a313b}from'ckeditor5/src/icons.js';import{ButtonView as _0x2d808b,MenuBarMenuListItemButtonView as _0x5ec8a6}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x5a9fef}from'./uploadcareconfig.js';import{getTranslation as _0x1cdeca}from'./utils/common-translations.js';function _0x4b13(_0x7d6f72,_0x438420){const _0x2853c9=_0x2853();return _0x4b13=function(_0x4b1386,_0x56c1b1){_0x4b1386=_0x4b1386-0xa4;let _0x5db7da=_0x2853c9[_0x4b1386];return _0x5db7da;},_0x4b13(_0x7d6f72,_0x438420);}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x41c592{[_0x592d49(0xa8)];[_0x592d49(0xe9)];static get[_0x592d49(0xd2)](){const _0x2bf658=_0x592d49;return _0x2bf658(0xa4);}static get[_0x592d49(0xeb)](){return!0x0;}static get[_0x592d49(0xb6)](){return!0x0;}[_0x592d49(0xbe)](){const _0x1577ab=_0x592d49;this[_0x1577ab(0xa8)]=this[_0x1577ab(0xd5)][_0x1577ab(0xd7)][_0x1577ab(0xbf)](_0x1577ab(0xa8));const _0x359cd2=this[_0x1577ab(0xd5)];this[_0x1577ab(0xe9)]=setInterval(()=>{const _0x4351a3=_0x1577ab;let _0x39942d;for(const _0x2760aa in _0x359cd2){const _0x4285a9=_0x2760aa,_0x2246e6=_0x359cd2[_0x4285a9];if(_0x4351a3(0xcb)==_0x2246e6||_0x4351a3(0xad)==_0x2246e6||_0x4351a3(0xaa)==_0x2246e6||_0x4351a3(0xee)==_0x2246e6||_0x4351a3(0xae)==_0x2246e6||_0x4351a3(0xcc)==_0x2246e6||_0x4351a3(0xde)==_0x2246e6||_0x4351a3(0xbc)==_0x2246e6){delete _0x359cd2[_0x4285a9],_0x39942d=_0x2246e6,clearInterval(this[_0x4351a3(0xe9)]),this[_0x4351a3(0xe9)]=void 0x0;break;}}_0x4351a3(0xad)==_0x39942d&&_0x359cd2[_0x4351a3(0xc6)](_0x4351a3(0xed)),_0x4351a3(0xaa)==_0x39942d&&_0x359cd2[_0x4351a3(0xc6)](_0x4351a3(0xc2)),_0x4351a3(0xee)==_0x39942d&&_0x359cd2[_0x4351a3(0xc6)](_0x4351a3(0xd1)),_0x4351a3(0xae)==_0x39942d&&_0x359cd2[_0x4351a3(0xc6)](_0x4351a3(0xe7),_0x4351a3(0xb1)),_0x4351a3(0xcc)==_0x39942d&&_0x359cd2[_0x4351a3(0xc6)](_0x4351a3(0xc9)),_0x4351a3(0xde)==_0x39942d&&_0x359cd2[_0x4351a3(0xc6)](_0x4351a3(0xa9)),_0x4351a3(0xbc)==_0x39942d&&_0x359cd2[_0x4351a3(0xc6)](_0x4351a3(0xdb));},0x3e8);}[_0x592d49(0xf1)](){const _0x351995=_0x592d49,{editor:_0x67e239}=this,_0xd58139=_0x67e239[_0x351995(0xd4)][_0x351995(0xbf)](_0x351995(0xdf));if(!_0xd58139)return;const _0x2d98a7=this[_0x351995(0xef)](_0x67e239[_0x351995(0xd7)][_0x351995(0xbf)](_0x351995(0xa5)))[_0x351995(0xbb)]((_0x4334c1,_0x177d52)=>{const _0x4918d6=_0x351995,_0x53b819=this[_0x4918d6(0xe8)](_0x177d52[_0x4918d6(0xd0)]);return _0x4334c1[_0x53b819]||(_0x4334c1[_0x53b819]=[]),_0x4334c1[_0x53b819][_0x4918d6(0xd9)](_0x177d52),_0x4334c1;},{});_0x67e239[_0x351995(0xd3)][_0x351995(0xf0)](_0x351995(0xf2))&&_0x67e239[_0x351995(0xd4)][_0x351995(0xbf)](_0x351995(0xdf))&&Object[_0x351995(0xe1)](_0x2d98a7)[_0x351995(0xc4)](([_0x849133,_0x292c53])=>{const _0x40c96a=_0x351995;_0x67e239[_0x40c96a(0xd3)][_0x40c96a(0xbf)](_0x40c96a(0xf2))[_0x40c96a(0xe0)]({'name':_0x849133,'observable':()=>_0xd58139,'buttonViewCreator':()=>this[_0x40c96a(0xce)](_0x292c53),'formViewCreator':()=>this[_0x40c96a(0xaf)](_0x292c53),'menuBarButtonViewCreator':()=>this[_0x40c96a(0xb8)](_0x292c53),'override':_0x40c96a(0xb0)!==_0x849133});});}[_0x592d49(0xbd)](){const _0x27589f=_0x592d49;super[_0x27589f(0xbd)](),this[_0x27589f(0xe9)]&&clearInterval(this[_0x27589f(0xe9)]);}[_0x592d49(0xef)](_0x28269e){const _0x1268b8=_0x592d49,{locale:_0x314962}=this[_0x1268b8(0xd5)];return _0x28269e[_0x1268b8(0xec)](_0x241316=>{const _0xe0fec4=_0x1268b8,_0x320c4d=_0x1cdeca(_0x314962,_0x241316,_0xe0fec4(0xe5));switch(_0x241316){case _0x5a9fef[_0xe0fec4(0xb3)]:return{'icon':_0x4b5e32,'type':_0x5a9fef[_0xe0fec4(0xb3)],..._0x320c4d};case _0x5a9fef[_0xe0fec4(0xcf)]:return{'icon':_0x5894bf,'type':_0x5a9fef[_0xe0fec4(0xcf)],..._0x320c4d};case _0x5a9fef[_0xe0fec4(0xb9)]:return{'icon':_0x4637b8,'type':_0x5a9fef[_0xe0fec4(0xb9)],..._0x320c4d};case _0x5a9fef[_0xe0fec4(0xc3)]:return{'icon':_0x2f9688,'type':_0x5a9fef[_0xe0fec4(0xc3)],..._0x320c4d};case _0x5a9fef[_0xe0fec4(0xe6)]:return{'icon':_0x2d132e,'type':_0x5a9fef[_0xe0fec4(0xe6)],..._0x320c4d};case _0x5a9fef[_0xe0fec4(0xc0)]:return{'icon':_0x596050,'type':_0x5a9fef[_0xe0fec4(0xc0)],..._0x320c4d};case _0x5a9fef[_0xe0fec4(0xcd)]:return{'icon':_0x1a313b,'type':_0x5a9fef[_0xe0fec4(0xcd)],..._0x320c4d};}});}[_0x592d49(0xe8)](_0x11bceb){const _0x3beb76=_0x592d49;switch(_0x11bceb){case _0x5a9fef[_0x3beb76(0xb3)]:return _0x3beb76(0xac);case _0x5a9fef[_0x3beb76(0xcf)]:return _0x3beb76(0xca);default:return _0x3beb76(0xb0);}}[_0x592d49(0xb7)](_0x55f120,_0x466672){const _0x231803=_0x592d49,_0xf3b7e0=this[_0x231803(0xd5)],_0x5ebc1e=new _0x55f120(_0xf3b7e0[_0x231803(0xdd)]),_0x12391f=_0xf3b7e0[_0x231803(0xd4)][_0x231803(0xbf)](_0x231803(0xdf));return _0x5ebc1e[_0x231803(0xc7)](_0x231803(0xdc))['to'](_0x12391f),_0x5ebc1e['on'](_0x231803(0xd8),()=>{const _0x1691ae=_0x231803;_0x12391f[_0x1691ae(0xd8)](_0x466672);}),_0x5ebc1e;}[_0x592d49(0xce)](_0x4fc80c){const _0x429007=_0x592d49,{locale:_0x215c6c}=this[_0x429007(0xd5)],_0x22dbcc=this[_0x429007(0xd5)][_0x429007(0xd3)][_0x429007(0xbf)](_0x429007(0xf2)),_0x41469f=_0x4fc80c[0x0],_0x4b883a=this[_0x429007(0xb7)](_0x2d808b,_0x41469f[_0x429007(0xd0)]);return _0x4b883a[_0x429007(0xe3)]=_0x41469f[_0x429007(0xe3)],_0x4b883a[_0x429007(0xc7)](_0x429007(0xa6))['to'](_0x22dbcc,_0x429007(0xda),_0x3609ab=>_0x1cdeca(_0x215c6c,_0x41469f[_0x429007(0xd0)],_0x3609ab?_0x429007(0xab):_0x429007(0xe5))[_0x429007(0xc5)]),_0x4b883a[_0x429007(0xba)]=!0x0,_0x4b883a;}[_0x592d49(0xaf)](_0x2a9a7e){const _0x377f08=_0x592d49,{locale:_0x3b1630}=this[_0x377f08(0xd5)],_0x223342=this[_0x377f08(0xd5)][_0x377f08(0xd3)][_0x377f08(0xbf)](_0x377f08(0xf2));return _0x2a9a7e[_0x377f08(0xec)](_0x5dc990=>{const _0x44dc30=_0x377f08,_0x55f5fa=this[_0x44dc30(0xb7)](_0x2d808b,_0x5dc990[_0x44dc30(0xd0)]);return _0x55f5fa[_0x44dc30(0xc1)]=!0x0,_0x55f5fa[_0x44dc30(0xe3)]=_0x5dc990[_0x44dc30(0xe3)],_0x55f5fa[_0x44dc30(0xc7)](_0x44dc30(0xa6))['to'](_0x223342,_0x44dc30(0xda),_0xac9e91=>_0x1cdeca(_0x3b1630,_0x5dc990[_0x44dc30(0xd0)],_0xac9e91?_0x44dc30(0xab):_0x44dc30(0xe5))[_0x44dc30(0xc5)]),_0x55f5fa;});}[_0x592d49(0xb8)](_0x5dc162){const _0x300240=_0x592d49;return _0x5dc162[_0x300240(0xec)](_0x3a4010=>{const _0x28eca4=_0x300240,_0x530ee7=this[_0x28eca4(0xb7)](_0x5ec8a6,_0x3a4010[_0x28eca4(0xd0)]);return _0x530ee7[_0x28eca4(0xe3)]=_0x3a4010[_0x28eca4(0xe3)],_0x530ee7[_0x28eca4(0xa6)]=_0x3a4010[_0x28eca4(0xe4)],_0x530ee7;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x36d529}from'ckeditor5/src/core.js';import{FileRepository as _0x5244d2}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x457f00}from'./uploadcareediting.js';import{UploadUtils as _0x5bc9b7}from'./utils/uploadutils.js';import{getImageUrls as _0x396fde}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x36d529{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5244d2,_0x457f00];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x59a32c=this['editor'];if(!!!_0x59a32c['config']['get']('uploadcare'))return;_0x59a32c['plugins']['get'](_0x5244d2)['createUploadAdapter']=_0x34bbd0=>new k(_0x34bbd0,_0x59a32c),_0x59a32c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x24a16e,{imageElement:_0x4090c7,data:_0x4c99da})=>{_0x59a32c['model']['change'](_0x364930=>{_0x364930['setAttribute']('uploadcareImageId',_0x4c99da['uploadcareImageId'],_0x4090c7);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4210d4,_0x3add86){this['loader']=_0x4210d4,this['editor']=_0x3add86,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4e67dd=await this['loader']['file'];return _0x5bc9b7['upload']({'file':_0x4e67dd,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1cf7cf=>{_0x1cf7cf&&_0x1cf7cf['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1cf7cf['value']);}})['then'](async _0x4c30a9=>{const {imageFallbackUrl:_0x4ed25a,imageSources:_0x1daf69}=_0x396fde(_0x4c30a9['cdnUrl'],_0x4c30a9['imageInfo']['width']);return{'uploadcareImageId':_0x4c30a9['uuid'],'default':_0x4ed25a,'sources':_0x1daf69};})['catch'](()=>{const _0x2e92d5=t('Cannot\x20upload\x20file:')+('\x20'+_0x4e67dd['name']+'.');return Promise['reject'](_0x2e92d5);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x573dd8}from'../uploadcareconfig.js';export function getTranslation(_0x56e856,_0x7602e4,_0x4780af){const t=_0x56e856['t'],_0x30c43b=_0x56e856['t'];switch(_0x7602e4){case _0x573dd8['Local']:return{'text':_0x30c43b('Insert'===_0x4780af?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x30c43b('From\x20computer')};case _0x573dd8['URL']:return{'text':'Insert'===_0x4780af?_0x30c43b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x30c43b('Via\x20URL')};case _0x573dd8['Dropbox']:return{'text':t('Insert'===_0x4780af?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x573dd8['Facebook']:return{'text':t('Insert'===_0x4780af?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x573dd8['GDrive']:return{'text':t('Insert'===_0x4780af?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x573dd8['GPhotos']:return{'text':t('Insert'===_0x4780af?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x573dd8['OneDrive']:return{'text':t('Insert'===_0x4780af?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x7602e4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2de91c=_0xb546;(function(_0xf97e8f,_0x1275d5){var _0xc78c3a=_0xb546,_0x3a9efb=_0xf97e8f();while(!![]){try{var _0x7fae0=parseInt(_0xc78c3a(0xe6))/0x1+parseInt(_0xc78c3a(0xef))/0x2*(parseInt(_0xc78c3a(0xec))/0x3)+-parseInt(_0xc78c3a(0xf5))/0x4*(-parseInt(_0xc78c3a(0xf0))/0x5)+-parseInt(_0xc78c3a(0xed))/0x6*(parseInt(_0xc78c3a(0xe3))/0x7)+parseInt(_0xc78c3a(0xf3))/0x8+parseInt(_0xc78c3a(0xe4))/0x9*(-parseInt(_0xc78c3a(0xea))/0xa)+parseInt(_0xc78c3a(0xe9))/0xb;if(_0x7fae0===_0x1275d5)break;else _0x3a9efb['push'](_0x3a9efb['shift']());}catch(_0x125895){_0x3a9efb['push'](_0x3a9efb['shift']());}}}(_0x44c2,0x991ec));function _0x44c2(){var _0x2dc43e=['84aocKDS','144Vojbwf','createCollection','502518TegATv','focusCycler','true','1412213JuhRLV','661910fZUoZb','focusTracker','438kzeBWm','203724xZEEhR','fire','3422ryKDEs','5BVwNIE','div','bindTemplate','5148128XtuUap','getFocusableElement','2277844ZXUGZj','forwardCycle'];_0x44c2=function(){return _0x2dc43e;};return _0x44c2();}import{FocusTracker as _0x5d9ea3}from'ckeditor5/src/utils.js';import{View as _0x5330c1,FocusCycler as _0x1359f7}from'ckeditor5/src/ui.js';function _0xb546(_0x4d1705,_0x3e8c48){var _0x44c2ea=_0x44c2();return _0xb546=function(_0xb546e0,_0x606a71){_0xb546e0=_0xb546e0-0xe2;var _0x23a6ae=_0x44c2ea[_0xb546e0];return _0x23a6ae;},_0xb546(_0x4d1705,_0x3e8c48);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x5330c1{[_0x2de91c(0xeb)];[_0x2de91c(0xe7)];constructor(_0x2d716d){var _0xbef6c6=_0x2de91c;super(_0x2d716d),this[_0xbef6c6(0xeb)]=new _0x5d9ea3(),this[_0xbef6c6(0xe7)]=new _0x1359f7({'focusables':this[_0xbef6c6(0xe5)](),'focusTracker':this[_0xbef6c6(0xeb)]});}[_0x2de91c(0xf4)](){var _0x571f3b=_0x2de91c;return{'tag':_0x571f3b(0xf1),'attributes':{'aria-hidden':_0x571f3b(0xe8),'tabindex':'0'},'on':{'focus':this[_0x571f3b(0xf2)]['to'](()=>{var _0x2ce483=_0x571f3b;this[_0x2ce483(0xe7)][_0x2ce483(0xee)](_0x2ce483(0xe2));})}};}}
|