@ckeditor/ckeditor5-uploadcare 0.0.0-internal-20251211.0 → 0.0.0-internal-20251218.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x7246a1=_0xc614;function _0xc614(_0xe88b86,_0x442c67){const _0x58b022=_0x58b0();return _0xc614=function(_0xc614c4,_0x5d3966){_0xc614c4=_0xc614c4-0xaf;let _0x5dd73e=_0x58b022[_0xc614c4];return _0x5dd73e;},_0xc614(_0xe88b86,_0x442c67);}(function(_0x3d5082,_0x46db6e){const _0x435193=_0xc614,_0x68cff4=_0x3d5082();while(!![]){try{const _0x185732=-parseInt(_0x435193(0xdf))/0x1+-parseInt(_0x435193(0xb8))/0x2*(parseInt(_0x435193(0xf6))/0x3)+-parseInt(_0x435193(0xb2))/0x4*(parseInt(_0x435193(0xde))/0x5)+-parseInt(_0x435193(0xdb))/0x6+parseInt(_0x435193(0xd2))/0x7+parseInt(_0x435193(0xf0))/0x8+parseInt(_0x435193(0xb1))/0x9;if(_0x185732===_0x46db6e)break;else _0x68cff4['push'](_0x68cff4['shift']());}catch(_0x31bdb1){_0x68cff4['push'](_0x68cff4['shift']());}}}(_0x58b0,0xdf3ed));import{Plugin as _0x25df8b}from'ckeditor5/src/core.js';import{Dialog as _0x1c31b6}from'ckeditor5/src/ui.js';import{createElement as _0x1c201b,global as _0x490fe3,uid as _0xd153b6}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x275ced}from'./uploadcarecommand.js';function _0x58b0(){const _0x376dce=['14605xPSFkh','517003cfbjTV','editing','conversion','body','contentLanguage','href','iconHrefResolver','editor','render','imageInline','fromCharCode','PictureEditing','init','uc-config','once','document','cleanupImage','543800SQsOjn','_configElement','destroy','upcast','_initConfig','querySelector','6249fdWiSJ','for','pluginName','uploadcare.pubkey','add','isOfficialPlugin','\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','data-uc-image-id','extend','execute','afterInit','schema','uploadcareImageId','_initCtx','ctxElement','18359010HTkHWs','1252exmXjQ','true','selection','elementToAttribute','_initSchema','requires','192JUAAQo','replaceImageSource','isPremiumPlugin','uploadcare.uploader','imageBlock','uploadcareImageReplace','view','commands','getAttribute','join','getSelectedElement','isRegistered','downcast','model','closeMax','map','locale','insertImage','attributeToAttribute','get','_initImageProcessingIndicator','_ctxElement','UploadcareEditing','ucContextId','uploadcare','uc-upload-ctx-provider','10509443hiciyM','configElement','removeAttribute','#uc-icon-arrow-down','_initConversion','appendChild','config','uploader-','remove','6381342jiWjFZ','input[uploadcare-file-input]','listenTo'];_0x58b0=function(){return _0x376dce;};return _0x58b0();}import{UploadcareUploadAdapter as _0x3fb762}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x545154}from'./utils/editingutils.js';export class UploadcareEditing extends _0x25df8b{[_0x7246a1(0xf1)]=null;[_0x7246a1(0xcd)]=null;static get[_0x7246a1(0xf8)](){const _0x2bc404=_0x7246a1;return _0x2bc404(0xce);}static get[_0x7246a1(0xb7)](){const _0x386c73=_0x7246a1;return[_0x386c73(0xea),_0x3fb762,_0x1c31b6];}static get[_0x7246a1(0xfb)](){return!0x0;}static get[_0x7246a1(0xba)](){return!0x0;}[_0x7246a1(0xcf)];get[_0x7246a1(0xd3)](){const _0x37166c=_0x7246a1;return this[_0x37166c(0xf1)];}get[_0x7246a1(0xb0)](){const _0x5754fa=_0x7246a1;return this[_0x5754fa(0xcd)];}constructor(_0x2089a9){const _0x36ab3d=_0x7246a1;super(_0x2089a9),this[_0x36ab3d(0xcf)]=_0xd153b6();}[_0x7246a1(0xeb)](){const _0x3dde5d=_0x7246a1,_0x2b7826=this[_0x3dde5d(0xe6)];_0x2b7826[_0x3dde5d(0xbf)][_0x3dde5d(0xfa)](_0x3dde5d(0xd0),new _0x275ced(_0x2b7826));}[_0x7246a1(0x100)](){const _0x5d22e0=_0x7246a1;this[_0x5d22e0(0xb6)](),this[_0x5d22e0(0xd6)](),this[_0x5d22e0(0xf4)](),this[_0x5d22e0(0xaf)](),this[_0x5d22e0(0xcc)](),this[_0x5d22e0(0xdd)](this[_0x5d22e0(0xe6)],_0x5d22e0(0xf2),()=>{const _0x41b459=_0x5d22e0;this[_0x41b459(0xf1)]&&(this[_0x41b459(0xf1)][_0x41b459(0xda)](),this[_0x41b459(0xf1)]=null),this[_0x41b459(0xcd)]&&(this[_0x41b459(0xcd)][_0x41b459(0xda)](),this[_0x41b459(0xcd)]=null);const _0x5a88e6=_0x490fe3[_0x41b459(0xee)][_0x41b459(0xf5)](_0x41b459(0xdc));_0x5a88e6&&_0x5a88e6[_0x41b459(0xda)]();}),async function(_0x1c1aef){const _0x52e55a=_0x3351b9([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]),_0x5ef953=0x535f8c3a,_0x5d6038=0x5358f7a2^_0x5ef953,_0x3a4b4e=window[_0x3351b9([0x44,0x61,0x74,0x65])][_0x3351b9([0x6e,0x6f,0x77])](),_0x550437=_0x1c1aef[_0x3351b9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x592695=new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x240af1=>{_0x550437[_0x3351b9([0x6f,0x6e,0x63,0x65])](_0x3351b9([0x72,0x65,0x61,0x64,0x79]),_0x240af1);}),_0x3252d1={[_0x3351b9([0x6b,0x74,0x79])]:_0x3351b9([0x45,0x43]),[_0x3351b9([0x75,0x73,0x65])]:_0x3351b9([0x73,0x69,0x67]),[_0x3351b9([0x63,0x72,0x76])]:_0x3351b9([0x50,0x2d,0x32,0x35,0x36]),[_0x3351b9([0x78])]:_0x3351b9([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]),[_0x3351b9([0x79])]:_0x3351b9([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]),[_0x3351b9([0x61,0x6c,0x67])]:_0x3351b9([0x45,0x53,0x32,0x35,0x36])},_0x58c2a5=_0x550437[_0x3351b9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3351b9([0x67,0x65,0x74])](_0x3351b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bc78f(){let _0x34254a,_0x2a49b7=null,_0x12f02e=null;try{if(_0x58c2a5==_0x3351b9([0x47,0x50,0x4c]))return _0x3351b9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34254a=_0x1878be(),!_0x34254a)return _0x3351b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34254a[_0x3351b9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12f02e=_0x1b0988(_0x34254a[_0x3351b9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34254a[_0x3351b9([0x6a,0x74,0x69])])),await _0x3f8cad()?_0x385964()?_0x13bc82()?_0x3351b9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x293373()?(_0x34254a[_0x3351b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3351b9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a49b7=_0x19ea79(_0x3351b9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34254a[_0x3351b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3351b9([0x74,0x72,0x69,0x61,0x6c])&&(_0x2a49b7=_0x19ea79(_0x3351b9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e58a8()):_0x3351b9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3351b9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3351b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3351b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13bc82(){const _0xc1b905=[_0x3351b9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3351b9([0x74,0x72,0x69,0x61,0x6c])][_0x3351b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34254a[_0x3351b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a4b4e/0x3e8:0xe10*_0x5d6038;return _0x34254a[_0x3351b9([0x65,0x78,0x70])]<_0xc1b905;}function _0x385964(){const _0x28f61e=_0x34254a[_0x3351b9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x28f61e&&(!!_0x28f61e[_0x3351b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3351b9([0x2a]))||!!_0x28f61e[_0x3351b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3351b9([0x55,0x50,0x4c,0x43])));}function _0x293373(){const _0x30a5df=_0xc614,_0x5e67f5=_0x34254a[_0x3351b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e67f5||0x0==_0x5e67f5[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x119360}=new URL(window[_0x3351b9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x30a5df(0xe4)]);if(_0x5e67f5[_0x3351b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x119360))return!0x0;const _0x5e9f00=_0x119360[_0x3351b9([0x73,0x70,0x6c,0x69,0x74])](_0x3351b9([0x2e]));return _0x5e67f5[_0x3351b9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5236f8=>_0x5236f8[_0x3351b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3351b9([0x2a])))[_0x3351b9([0x6d,0x61,0x70])](_0x4500a7=>_0x4500a7[_0x3351b9([0x73,0x70,0x6c,0x69,0x74])](_0x3351b9([0x2e])))[_0x3351b9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x104ced=>_0x104ced[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e9f00[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3351b9([0x6d,0x61,0x70])](_0x4959fa=>Array(_0x5e9f00[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4959fa[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3351b9([0x66,0x69,0x6c,0x6c])](_0x4959fa[0x0]===_0x3351b9([0x2a])?_0x3351b9([0x2a]):'')[_0x3351b9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4959fa))[_0x3351b9([0x73,0x6f,0x6d,0x65])](_0x2123a3=>_0x5e9f00[_0x3351b9([0x65,0x76,0x65,0x72,0x79])]((_0x4f80fc,_0x43e67e)=>_0x2123a3[_0x43e67e]===_0x4f80fc||_0x2123a3[_0x43e67e]===_0x3351b9([0x2a])));}function _0x3e58a8(){return _0x2a49b7&&_0x12f02e?new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9e29b1,_0x4d8a22)=>{_0x2a49b7[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x9e29b1,_0x4d8a22),_0x12f02e[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x164399=>{_0x164399!=_0x3351b9([0x56,0x61,0x6c,0x69,0x64])&&_0x9e29b1(_0x164399);},_0x4d8a22);}):_0x2a49b7||_0x12f02e||_0x3351b9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b0988(_0x5ef2e3,_0x14b8b4){return new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33b334=>{if(_0x39c36f())return _0x33b334(_0x3351b9([0x56,0x61,0x6c,0x69,0x64]));_0x1c8589(),_0x550437[_0x3351b9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3351b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6d6dd6=!0x1;const _0x49abae=_0xd153b6();function _0x2177e8(_0x2ad1ab){return!!_0x2ad1ab&&(typeof _0x2ad1ab===_0x3351b9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ad1ab===_0x3351b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ad1ab[_0x3351b9([0x74,0x68,0x65,0x6e])]===_0x3351b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ad1ab[_0x3351b9([0x63,0x61,0x74,0x63,0x68])]===_0x3351b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bdb40(_0x3cf719){_0x2dd1f0(_0x3cf719)[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x504144=>{if(!_0x504144||_0x504144[_0x3351b9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3351b9([0x6f,0x6b]))return _0x3351b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x309061(_0x2e9e6f(_0x49abae+_0x14b8b4))!=_0x504144[_0x3351b9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3351b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3351b9([0x56,0x61,0x6c,0x69,0x64]);})[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x404ced=>(_0x4f9b55(),_0x404ced),()=>{const _0x473395=_0x52d41f();return null==_0x473395?(_0x4f9b55(),_0x3351b9([0x56,0x61,0x6c,0x69,0x64])):_0x3351b9(_0x3a4b4e-_0x473395>(0x7753083a^_0x5ef953)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x33b334)[_0x3351b9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33b334(_0x3351b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf63ceb=0x536962ba^_0x5ef953;function _0x4f9b55(){const _0x33c063=_0x3351b9([0x6c,0x6c,0x63,0x74,0x2d])+_0x309061(_0x2e9e6f(_0x5ef2e3)),_0x59c981=_0x428f14(_0x309061(window[_0x3351b9([0x4d,0x61,0x74,0x68])][_0x3351b9([0x63,0x65,0x69,0x6c])](_0x3a4b4e/_0xf63ceb)));window[_0x3351b9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3351b9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33c063,_0x59c981);}function _0x52d41f(){const _0x8d5beb=_0x3351b9([0x6c,0x6c,0x63,0x74,0x2d])+_0x309061(_0x2e9e6f(_0x5ef2e3)),_0x35e3d1=window[_0x3351b9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3351b9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8d5beb);return _0x35e3d1?window[_0x3351b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x428f14(_0x35e3d1),0x10)*_0xf63ceb:null;}function _0x2dd1f0(_0x37c67b){return new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22708a,_0x354825)=>{_0x37c67b[_0x3351b9([0x74,0x68,0x65,0x6e])](_0x22708a,_0x354825),window[_0x3351b9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x354825,0x535e58fa^_0x5ef953);});}}_0x550437[_0x3351b9([0x6f,0x6e])](_0x3351b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x601ddf,_0x52138b)=>{if(_0x52138b[0x0]!=_0x5ef2e3)return _0x33b334(_0x3351b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52138b[0x1]={..._0x52138b[0x1],[_0x3351b9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49abae};},{[_0x3351b9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3351b9([0x68,0x69,0x67,0x68])}),_0x550437[_0x3351b9([0x6f,0x6e])](_0x3351b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ff2ae=>{_0x2177e8(_0x4ff2ae[_0x3351b9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6d6dd6=!0x0,_0x4bdb40(_0x4ff2ae[_0x3351b9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3351b9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3351b9([0x6c,0x6f,0x77])}),_0x592695[_0x3351b9([0x74,0x68,0x65,0x6e])](()=>{_0x6d6dd6||_0x33b334(_0x3351b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39c36f(){return _0x550437[_0x3351b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3351b9([0x76,0x69,0x65,0x77])][_0x3351b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3351b9([0x61,0x75,0x74,0x6f]);}function _0x1c8589(){_0x550437[_0x3351b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3351b9([0x76,0x69,0x65,0x77])][_0x3351b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3351b9([0x61,0x75,0x74,0x6f]);}}function _0x19ea79(_0x52d8c7){const _0x5fbd40=[new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b54f6=>setTimeout(_0x3b54f6,0x5356b2f6^_0x5ef953)),_0x592695[_0x3351b9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x562406=>{let _0x28ccc0=0x0;_0x550437[_0x3351b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3351b9([0x6f,0x6e])](_0x3351b9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c67fd,_0x177110)=>{_0x177110[0x0][_0x3351b9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28ccc0++,_0x28ccc0==(0x535f8dc2^_0x5ef953)&&(_0x562406(),_0x2c67fd[_0x3351b9([0x6f,0x66,0x66])]());});}))];return window[_0x3351b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3351b9([0x72,0x61,0x63,0x65])](_0x5fbd40)[_0x3351b9([0x74,0x68,0x65,0x6e])](()=>_0x52d8c7);}async function _0x45770d(){await _0x592695,_0x550437[_0x3351b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3351b9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a7734,_0x550437[_0x3351b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3351b9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a7734,_0x550437[_0x3351b9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3351b9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c28bb(_0xa0e0df){const _0x8987f4=_0x331346();_0x550437[_0x8987f4]=_0x3351b9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xa0e0df,_0xa0e0df!=_0x3351b9([0x56,0x61,0x6c,0x69,0x64])&&_0x45770d();}function _0x331346(){const _0x1a1a1d=window[_0x3351b9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3351b9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3351b9([0x6e,0x6f,0x77])]())[_0x3351b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3351b9([0x2e]),'');let _0x864acf=_0x3351b9([0x68]);for(let _0x51948a=0x0;_0x51948a<_0x1a1a1d[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51948a+=0x2){let _0x2abdd9=window[_0x3351b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a1a1d[_0x3351b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51948a,_0x51948a+0x2));_0x2abdd9>=_0x52e55a[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2abdd9-=_0x52e55a[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x864acf+=_0x52e55a[_0x2abdd9];}return _0x864acf;}function _0x1878be(){const _0x4259c5=_0x58c2a5[_0x3351b9([0x73,0x70,0x6c,0x69,0x74])](_0x3351b9([0x2e]));if(0x3!=_0x4259c5[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b22bd(_0x4259c5[0x1]);function _0x2b22bd(_0x54cb06){const _0x5414f4=_0xd3471e(_0x54cb06);return _0x5414f4&&_0x484618()?_0x5414f4:null;function _0x484618(){const _0x27184f=_0x5414f4[_0x3351b9([0x6a,0x74,0x69])],_0x2c83e9=window[_0x3351b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27184f[_0x3351b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27184f[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e7ae7={..._0x5414f4,[_0x3351b9([0x6a,0x74,0x69])]:_0x27184f[_0x3351b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27184f[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e7ae7[_0x3351b9([0x76,0x63])],_0x2e9e6f(_0x2e7ae7)==_0x2c83e9;}}}async function _0x3f8cad(){let _0x2d1c84=!0x0;try{const _0x2152ea=_0x58c2a5[_0x3351b9([0x73,0x70,0x6c,0x69,0x74])](_0x3351b9([0x2e])),[_0x10c918,_0x13d4fe,_0x2f2f2d]=_0x2152ea;return _0x2e2a05(_0x10c918),await _0x44d5ae(_0x10c918,_0x13d4fe,_0x2f2f2d),_0x2d1c84;}catch{return!0x1;}function _0x2e2a05(_0x439394){const _0x5ed1ee=_0xd3471e(_0x439394);_0x5ed1ee&&_0x5ed1ee[_0x3351b9([0x61,0x6c,0x67])]==_0x3351b9([0x45,0x53,0x32,0x35,0x36])||(_0x2d1c84=!0x1);}async function _0x44d5ae(_0x3d5525,_0xcd2d2d,_0x4375f5){const _0x24c70a=window[_0x3351b9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3351b9([0x66,0x72,0x6f,0x6d])](_0xb4cbe0(_0x4375f5),_0x30b516=>_0x30b516[_0x3351b9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x571584=new window[(_0x3351b9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3351b9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d5525+_0x3351b9([0x2e])+_0xcd2d2d),_0x2e369c=window[_0x3351b9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3351b9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e369c)return;const _0x37548c=await _0x2e369c[_0x3351b9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3351b9([0x6a,0x77,0x6b]),_0x3252d1,{[_0x3351b9([0x6e,0x61,0x6d,0x65])]:_0x3351b9([0x45,0x43,0x44,0x53,0x41]),[_0x3351b9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3351b9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3351b9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e369c[_0x3351b9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3351b9([0x6e,0x61,0x6d,0x65])]:_0x3351b9([0x45,0x43,0x44,0x53,0x41]),[_0x3351b9([0x68,0x61,0x73,0x68])]:{[_0x3351b9([0x6e,0x61,0x6d,0x65])]:_0x3351b9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37548c,_0x24c70a,_0x571584)||(_0x2d1c84=!0x1);}}function _0xd3471e(_0x1db985){return _0x1db985[_0x3351b9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3351b9([0x65,0x79]))?JSON[_0x3351b9([0x70,0x61,0x72,0x73,0x65])](_0xb4cbe0(_0x1db985)):null;}function _0xb4cbe0(_0x127819){return window[_0x3351b9([0x61,0x74,0x6f,0x62])](_0x127819[_0x3351b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3351b9([0x2b]))[_0x3351b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3351b9([0x2f])));}function _0x2e9e6f(_0x38058d){let _0x2e8d49=0x1505;function _0x5ef8ea(_0x5ca497){for(let _0x4f46d2=0x0;_0x4f46d2<_0x5ca497[_0x3351b9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f46d2++){const _0x57bb53=_0x5ca497[_0x3351b9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f46d2);_0x2e8d49=(_0x2e8d49<<0x5)+_0x2e8d49+_0x57bb53,_0x2e8d49&=_0x2e8d49;}}function _0x2ee8d4(_0x5a9cb8){Array[_0x3351b9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a9cb8)?_0x5a9cb8[_0x3351b9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ee8d4):_0x5a9cb8&&typeof _0x5a9cb8==_0x3351b9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3351b9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a9cb8)[_0x3351b9([0x73,0x6f,0x72,0x74])]()[_0x3351b9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a7f8e,_0x29a42e])=>{_0x5ef8ea(_0x1a7f8e),_0x2ee8d4(_0x29a42e);}):_0x5ef8ea(window[_0x3351b9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a9cb8));}return _0x2ee8d4(_0x38058d),_0x2e8d49>>>0x0;}function _0x309061(_0xac8f23){return _0xac8f23[_0x3351b9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3351b9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3351b9([0x30]));}function _0x428f14(_0x5cdf93){return _0x5cdf93[_0x3351b9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3351b9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3351b9([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a7734(){}function _0x3351b9(_0x3e2ac0){const _0x5cd761=_0xc614;return _0x3e2ac0[_0x5cd761(0xc7)](_0x22947d=>String[_0x5cd761(0xe9)](_0x22947d))[_0x5cd761(0xc1)]('');}_0x3c28bb(await _0x4bc78f());}(this);}[_0x7246a1(0xb6)](){const _0xafd830=_0x7246a1,_0x2ea210=this[_0xafd830(0xe6)][_0xafd830(0xc5)][_0xafd830(0x101)];_0x2ea210[_0xafd830(0xc3)](_0xafd830(0xbc))&&_0x2ea210[_0xafd830(0xfe)](_0xafd830(0xbc),{'allowAttributes':[_0xafd830(0x102)]}),_0x2ea210[_0xafd830(0xc3)](_0xafd830(0xe8))&&_0x2ea210[_0xafd830(0xfe)](_0xafd830(0xe8),{'allowAttributes':[_0xafd830(0x102)]});}[_0x7246a1(0xd6)](){const _0x33256e=_0x7246a1,_0x43c8b3=this[_0x33256e(0xe6)];_0x43c8b3[_0x33256e(0xe1)][_0x33256e(0xf7)](_0x33256e(0xc4))[_0x33256e(0xca)]({'model':_0x33256e(0x102),'view':_0x33256e(0xfd)}),_0x43c8b3[_0x33256e(0xe1)][_0x33256e(0xf7)](_0x33256e(0xf3))[_0x33256e(0xb5)]({'model':{'key':_0x33256e(0x102),'value':_0x40489a=>_0x40489a[_0x33256e(0xc0)](_0x33256e(0xfd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2078f9=_0x43c8b3[_0x33256e(0xbf)][_0x33256e(0xcb)](_0x33256e(0xb9));_0x2078f9&&this[_0x33256e(0xdd)](_0x2078f9,_0x33256e(0xef),(_0x3b50ab,[_0x3caed7,_0xcca929])=>{const _0xfab00f=_0x33256e;_0x3caed7[_0xfab00f(0xd4)](_0xfab00f(0x102),_0xcca929);});}[_0x7246a1(0xf4)](){const _0x55d69f=_0x7246a1,_0x59c158=this[_0x55d69f(0xe6)][_0x55d69f(0xd8)][_0x55d69f(0xcb)](_0x55d69f(0xbb))||{},_0x5ed570=this[_0x55d69f(0xe6)][_0x55d69f(0xd8)][_0x55d69f(0xcb)](_0x55d69f(0xf9))||'';this[_0x55d69f(0xf1)]=_0x1c201b(_0x490fe3[_0x55d69f(0xee)],_0x55d69f(0xec),{..._0x59c158,'pubkey':_0x5ed570,'ctx-name':_0x55d69f(0xd9)+this[_0x55d69f(0xcf)],'sourceList':'','imgOnly':_0x55d69f(0xb3),'removeCopyright':_0x55d69f(0xb3),'localeName':this[_0x55d69f(0xe6)][_0x55d69f(0xc8)][_0x55d69f(0xe3)],'externalSourcesEmbedCss':_0x55d69f(0xfc)}),this[_0x55d69f(0xf1)][_0x55d69f(0xe5)]=_0x2309b7=>{const _0x32a380=_0x55d69f;if(_0x32a380(0xc6)==_0x2309b7)return _0x32a380(0xd5);},_0x490fe3[_0x55d69f(0xee)][_0x55d69f(0xe2)][_0x55d69f(0xd7)](this[_0x55d69f(0xf1)]);}[_0x7246a1(0xaf)](){const _0x17df0e=_0x7246a1;this[_0x17df0e(0xcd)]=_0x1c201b(_0x490fe3[_0x17df0e(0xee)],_0x17df0e(0xd1),{'ctx-name':_0x17df0e(0xd9)+this[_0x17df0e(0xcf)]}),_0x490fe3[_0x17df0e(0xee)][_0x17df0e(0xe2)][_0x17df0e(0xd7)](this[_0x17df0e(0xcd)]);}[_0x7246a1(0xcc)](){const _0x33ce41=_0x7246a1,_0x1b8183=this[_0x33ce41(0xe6)][_0x33ce41(0xbf)][_0x33ce41(0xcb)](_0x33ce41(0xc9));_0x1b8183&&this[_0x33ce41(0xdd)](_0x1b8183,_0x33ce41(0xff),()=>{const _0x507f11=_0x33ce41,_0x21284d=this[_0x507f11(0xe6)][_0x507f11(0xc5)][_0x507f11(0xee)][_0x507f11(0xb4)][_0x507f11(0xc2)]();_0x21284d&&_0x21284d[_0x507f11(0xc0)](_0x507f11(0x102))&&this[_0x507f11(0xe6)][_0x507f11(0xe0)][_0x507f11(0xbe)][_0x507f11(0xed)](_0x507f11(0xe7),()=>{const _0x39b9d8=_0x507f11;_0x545154(this[_0x39b9d8(0xe6)],_0x21284d);});});const _0x30e649=this[_0x33ce41(0xe6)][_0x33ce41(0xbf)][_0x33ce41(0xcb)](_0x33ce41(0xbd));_0x30e649&&this[_0x33ce41(0xdd)](_0x30e649,_0x33ce41(0xff),()=>{const _0xf82648=_0x33ce41,_0x88f6e4=this[_0xf82648(0xe6)][_0xf82648(0xc5)][_0xf82648(0xee)][_0xf82648(0xb4)][_0xf82648(0xc2)]();_0x88f6e4&&_0x88f6e4[_0xf82648(0xc0)](_0xf82648(0x102))&&this[_0xf82648(0xe6)][_0xf82648(0xe0)][_0xf82648(0xbe)][_0xf82648(0xed)](_0xf82648(0xe7),()=>{const _0x15a716=_0xf82648;_0x545154(this[_0x15a716(0xe6)],_0x88f6e4);});});}}
|
|
23
|
+
const _0x2facc1=_0xef37;function _0xef37(_0xab9f2,_0x3718cf){const _0x26f9a5=_0x26f9();return _0xef37=function(_0xef37be,_0x427662){_0xef37be=_0xef37be-0xca;let _0x552b81=_0x26f9a5[_0xef37be];return _0x552b81;},_0xef37(_0xab9f2,_0x3718cf);}(function(_0x3b27b0,_0xa12c39){const _0x51b0f1=_0xef37,_0x30c66b=_0x3b27b0();while(!![]){try{const _0x1e16a8=parseInt(_0x51b0f1(0xcb))/0x1+parseInt(_0x51b0f1(0xfa))/0x2*(parseInt(_0x51b0f1(0x11a))/0x3)+parseInt(_0x51b0f1(0x117))/0x4+-parseInt(_0x51b0f1(0xd7))/0x5*(-parseInt(_0x51b0f1(0xff))/0x6)+-parseInt(_0x51b0f1(0x11c))/0x7*(-parseInt(_0x51b0f1(0xcf))/0x8)+parseInt(_0x51b0f1(0xdc))/0x9*(parseInt(_0x51b0f1(0x103))/0xa)+-parseInt(_0x51b0f1(0xd6))/0xb*(parseInt(_0x51b0f1(0x111))/0xc);if(_0x1e16a8===_0xa12c39)break;else _0x30c66b['push'](_0x30c66b['shift']());}catch(_0x177d26){_0x30c66b['push'](_0x30c66b['shift']());}}}(_0x26f9,0xb7747));import{Plugin as _0x133b75}from'ckeditor5/src/core.js';import{Dialog as _0x7ec3fb}from'ckeditor5/src/ui.js';import{createElement as _0x28a8e3,global as _0x11608a,uid as _0x241b4a}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4f68c2}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x4c7a84}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2b9eca}from'./utils/editingutils.js';export class UploadcareEditing extends _0x133b75{[_0x2facc1(0xf9)]=null;[_0x2facc1(0x118)]=null;static get[_0x2facc1(0x11d)](){const _0x21c87d=_0x2facc1;return _0x21c87d(0x110);}static get[_0x2facc1(0x100)](){const _0x19e841=_0x2facc1;return[_0x19e841(0xda),_0x4c7a84,_0x7ec3fb];}static get[_0x2facc1(0xe2)](){return!0x0;}static get[_0x2facc1(0x106)](){return!0x0;}[_0x2facc1(0x10f)];get[_0x2facc1(0xf4)](){const _0x409c6f=_0x2facc1;return this[_0x409c6f(0xf9)];}get[_0x2facc1(0x11f)](){const _0x177f72=_0x2facc1;return this[_0x177f72(0x118)];}constructor(_0xdd6f7a){const _0x25c64e=_0x2facc1;super(_0xdd6f7a),this[_0x25c64e(0x10f)]=_0x241b4a();}[_0x2facc1(0xf6)](){const _0x4d28fa=_0x2facc1,_0x3c6c89=this[_0x4d28fa(0xd3)];_0x3c6c89[_0x4d28fa(0xec)][_0x4d28fa(0xe4)](_0x4d28fa(0xe8),new _0x4f68c2(_0x3c6c89));}[_0x2facc1(0xf3)](){const _0x23c9f0=_0x2facc1;this[_0x23c9f0(0xd4)](),this[_0x23c9f0(0xdd)](),this[_0x23c9f0(0xef)](),this[_0x23c9f0(0x11e)](),this[_0x23c9f0(0x112)](),this[_0x23c9f0(0xf7)](this[_0x23c9f0(0xd3)],_0x23c9f0(0xcd),()=>{const _0x56d9f0=_0x23c9f0;this[_0x56d9f0(0xf9)]&&(this[_0x56d9f0(0xf9)][_0x56d9f0(0xde)](),this[_0x56d9f0(0xf9)]=null),this[_0x56d9f0(0x118)]&&(this[_0x56d9f0(0x118)][_0x56d9f0(0xde)](),this[_0x56d9f0(0x118)]=null);const _0x250673=_0x11608a[_0x56d9f0(0xf2)][_0x56d9f0(0xe3)](_0x56d9f0(0xca));_0x250673&&_0x250673[_0x56d9f0(0xde)]();}),async function(_0x58554c){const _0x3249c5=_0x22ba93([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]),_0x4a8d81=0x535f8c3a,_0x7e6ce4=0x5358f07a^_0x4a8d81,_0x28f9da=window[_0x22ba93([0x44,0x61,0x74,0x65])][_0x22ba93([0x6e,0x6f,0x77])](),_0x5068eb=_0x58554c[_0x22ba93([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f40a5=new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7b10d3=>{_0x5068eb[_0x22ba93([0x6f,0x6e,0x63,0x65])](_0x22ba93([0x72,0x65,0x61,0x64,0x79]),_0x7b10d3);}),_0x4045b8={[_0x22ba93([0x6b,0x74,0x79])]:_0x22ba93([0x45,0x43]),[_0x22ba93([0x75,0x73,0x65])]:_0x22ba93([0x73,0x69,0x67]),[_0x22ba93([0x63,0x72,0x76])]:_0x22ba93([0x50,0x2d,0x32,0x35,0x36]),[_0x22ba93([0x78])]:_0x22ba93([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]),[_0x22ba93([0x79])]:_0x22ba93([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]),[_0x22ba93([0x61,0x6c,0x67])]:_0x22ba93([0x45,0x53,0x32,0x35,0x36])},_0x304f00=_0x5068eb[_0x22ba93([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22ba93([0x67,0x65,0x74])](_0x22ba93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x474a24(){let _0x2293ac,_0x4cf09a=null,_0x1b4419=null;try{if(_0x304f00==_0x22ba93([0x47,0x50,0x4c]))return _0x22ba93([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2293ac=_0x229477(),!_0x2293ac)return _0x22ba93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2293ac[_0x22ba93([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b4419=_0x263433(_0x2293ac[_0x22ba93([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2293ac[_0x22ba93([0x6a,0x74,0x69])])),await _0x5f4f53()?_0x3668cf()?_0x1639ec()?_0x22ba93([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4567b2()?(_0x2293ac[_0x22ba93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ba93([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4cf09a=_0x139c18(_0x22ba93([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2293ac[_0x22ba93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22ba93([0x74,0x72,0x69,0x61,0x6c])&&(_0x4cf09a=_0x139c18(_0x22ba93([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2190d7()):_0x22ba93([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22ba93([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22ba93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22ba93([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1639ec(){const _0x149cd4=[_0x22ba93([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22ba93([0x74,0x72,0x69,0x61,0x6c])][_0x22ba93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2293ac[_0x22ba93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x28f9da/0x3e8:0xe10*_0x7e6ce4;return _0x2293ac[_0x22ba93([0x65,0x78,0x70])]<_0x149cd4;}function _0x3668cf(){const _0xa4e59e=_0x2293ac[_0x22ba93([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa4e59e&&(!!_0xa4e59e[_0x22ba93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ba93([0x2a]))||!!_0xa4e59e[_0x22ba93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ba93([0x55,0x50,0x4c,0x43])));}function _0x4567b2(){const _0x4ae88e=_0xef37,_0x3ff934=_0x2293ac[_0x22ba93([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ff934||0x0==_0x3ff934[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x33dad5}=new URL(window[_0x22ba93([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4ae88e(0x107)]);if(_0x3ff934[_0x22ba93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33dad5))return!0x0;const _0x2b12c0=_0x33dad5[_0x22ba93([0x73,0x70,0x6c,0x69,0x74])](_0x22ba93([0x2e]));return _0x3ff934[_0x22ba93([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x588caa=>_0x588caa[_0x22ba93([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ba93([0x2a])))[_0x22ba93([0x6d,0x61,0x70])](_0x19eb25=>_0x19eb25[_0x22ba93([0x73,0x70,0x6c,0x69,0x74])](_0x22ba93([0x2e])))[_0x22ba93([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27bd9e=>_0x27bd9e[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b12c0[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22ba93([0x6d,0x61,0x70])](_0x306dbb=>Array(_0x2b12c0[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x306dbb[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22ba93([0x66,0x69,0x6c,0x6c])](_0x306dbb[0x0]===_0x22ba93([0x2a])?_0x22ba93([0x2a]):'')[_0x22ba93([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x306dbb))[_0x22ba93([0x73,0x6f,0x6d,0x65])](_0x15c674=>_0x2b12c0[_0x22ba93([0x65,0x76,0x65,0x72,0x79])]((_0x59ef78,_0x4c5df2)=>_0x15c674[_0x4c5df2]===_0x59ef78||_0x15c674[_0x4c5df2]===_0x22ba93([0x2a])));}function _0x2190d7(){return _0x4cf09a&&_0x1b4419?new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20a6b0,_0x4da3c9)=>{_0x4cf09a[_0x22ba93([0x74,0x68,0x65,0x6e])](_0x20a6b0,_0x4da3c9),_0x1b4419[_0x22ba93([0x74,0x68,0x65,0x6e])](_0xedba8d=>{_0xedba8d!=_0x22ba93([0x56,0x61,0x6c,0x69,0x64])&&_0x20a6b0(_0xedba8d);},_0x4da3c9);}):_0x4cf09a||_0x1b4419||_0x22ba93([0x56,0x61,0x6c,0x69,0x64]);}}function _0x263433(_0x48a1da,_0x293426){return new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x523fdf=>{if(_0x286a7e())return _0x523fdf(_0x22ba93([0x56,0x61,0x6c,0x69,0x64]));_0x8dea14(),_0x5068eb[_0x22ba93([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22ba93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bbc85=!0x1;const _0x3cdd0c=_0x241b4a();function _0x6be000(_0x30a85b){return!!_0x30a85b&&(typeof _0x30a85b===_0x22ba93([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30a85b===_0x22ba93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30a85b[_0x22ba93([0x74,0x68,0x65,0x6e])]===_0x22ba93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30a85b[_0x22ba93([0x63,0x61,0x74,0x63,0x68])]===_0x22ba93([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2aaab4(_0xdcf3df){_0x36507e(_0xdcf3df)[_0x22ba93([0x74,0x68,0x65,0x6e])](_0x36c16c=>{if(!_0x36c16c||_0x36c16c[_0x22ba93([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22ba93([0x6f,0x6b]))return _0x22ba93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x596184(_0xd17ac3(_0x3cdd0c+_0x293426))!=_0x36c16c[_0x22ba93([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22ba93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22ba93([0x56,0x61,0x6c,0x69,0x64]);})[_0x22ba93([0x74,0x68,0x65,0x6e])](_0x2042b0=>(_0x1ca91d(),_0x2042b0),()=>{const _0x36e4fa=_0x512cf2();return null==_0x36e4fa?(_0x1ca91d(),_0x22ba93([0x56,0x61,0x6c,0x69,0x64])):_0x22ba93(_0x28f9da-_0x36e4fa>(0x7753083a^_0x4a8d81)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22ba93([0x74,0x68,0x65,0x6e])](_0x523fdf)[_0x22ba93([0x63,0x61,0x74,0x63,0x68])](()=>{_0x523fdf(_0x22ba93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x533e35=0x536962ba^_0x4a8d81;function _0x1ca91d(){const _0x20d9dd=_0x22ba93([0x6c,0x6c,0x63,0x74,0x2d])+_0x596184(_0xd17ac3(_0x48a1da)),_0x47ab86=_0x24275e(_0x596184(window[_0x22ba93([0x4d,0x61,0x74,0x68])][_0x22ba93([0x63,0x65,0x69,0x6c])](_0x28f9da/_0x533e35)));window[_0x22ba93([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ba93([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20d9dd,_0x47ab86);}function _0x512cf2(){const _0x305209=_0x22ba93([0x6c,0x6c,0x63,0x74,0x2d])+_0x596184(_0xd17ac3(_0x48a1da)),_0x3357e9=window[_0x22ba93([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22ba93([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x305209);return _0x3357e9?window[_0x22ba93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24275e(_0x3357e9),0x10)*_0x533e35:null;}function _0x36507e(_0xb82c51){return new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x343e90,_0x466e16)=>{_0xb82c51[_0x22ba93([0x74,0x68,0x65,0x6e])](_0x343e90,_0x466e16),window[_0x22ba93([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x466e16,0x535e58fa^_0x4a8d81);});}}_0x5068eb[_0x22ba93([0x6f,0x6e])](_0x22ba93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x63e6c4,_0x17c0ac)=>{if(_0x17c0ac[0x0]!=_0x48a1da)return _0x523fdf(_0x22ba93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17c0ac[0x1]={..._0x17c0ac[0x1],[_0x22ba93([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3cdd0c};},{[_0x22ba93([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ba93([0x68,0x69,0x67,0x68])}),_0x5068eb[_0x22ba93([0x6f,0x6e])](_0x22ba93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3da989=>{_0x6be000(_0x3da989[_0x22ba93([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bbc85=!0x0,_0x2aaab4(_0x3da989[_0x22ba93([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22ba93([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22ba93([0x6c,0x6f,0x77])}),_0x1f40a5[_0x22ba93([0x74,0x68,0x65,0x6e])](()=>{_0x5bbc85||_0x523fdf(_0x22ba93([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x286a7e(){return _0x5068eb[_0x22ba93([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ba93([0x76,0x69,0x65,0x77])][_0x22ba93([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22ba93([0x61,0x75,0x74,0x6f]);}function _0x8dea14(){_0x5068eb[_0x22ba93([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22ba93([0x76,0x69,0x65,0x77])][_0x22ba93([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22ba93([0x61,0x75,0x74,0x6f]);}}function _0x139c18(_0x1b6096){const _0x4ef508=[new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f804f=>setTimeout(_0x2f804f,0x5356b2f6^_0x4a8d81)),_0x1f40a5[_0x22ba93([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2193ca=>{let _0x55a967=0x0;_0x5068eb[_0x22ba93([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ba93([0x6f,0x6e])](_0x22ba93([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd2fa8d,_0x4f74f1)=>{_0x4f74f1[0x0][_0x22ba93([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55a967++,_0x55a967==(0x535f8dc2^_0x4a8d81)&&(_0x2193ca(),_0xd2fa8d[_0x22ba93([0x6f,0x66,0x66])]());});}))];return window[_0x22ba93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22ba93([0x72,0x61,0x63,0x65])](_0x4ef508)[_0x22ba93([0x74,0x68,0x65,0x6e])](()=>_0x1b6096);}async function _0x4c0e48(){await _0x1f40a5,_0x5068eb[_0x22ba93([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ba93([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4750b1,_0x5068eb[_0x22ba93([0x6d,0x6f,0x64,0x65,0x6c])][_0x22ba93([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4750b1,_0x5068eb[_0x22ba93([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22ba93([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e81de(_0x58b0ce){const _0x1a62a8=_0x12e190();_0x5068eb[_0x1a62a8]=_0x22ba93([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58b0ce,_0x58b0ce!=_0x22ba93([0x56,0x61,0x6c,0x69,0x64])&&_0x4c0e48();}function _0x12e190(){const _0x4ce364=window[_0x22ba93([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22ba93([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22ba93([0x6e,0x6f,0x77])]())[_0x22ba93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22ba93([0x2e]),'');let _0xef9f48=_0x22ba93([0x68]);for(let _0x578409=0x0;_0x578409<_0x4ce364[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x578409+=0x2){let _0x56e14d=window[_0x22ba93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ce364[_0x22ba93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x578409,_0x578409+0x2));_0x56e14d>=_0x3249c5[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56e14d-=_0x3249c5[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xef9f48+=_0x3249c5[_0x56e14d];}return _0xef9f48;}function _0x229477(){const _0x356ff1=_0x304f00[_0x22ba93([0x73,0x70,0x6c,0x69,0x74])](_0x22ba93([0x2e]));if(0x3!=_0x356ff1[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x329fb9(_0x356ff1[0x1]);function _0x329fb9(_0x2d57ba){const _0x4451a3=_0x3c232f(_0x2d57ba);return _0x4451a3&&_0x1981ec()?_0x4451a3:null;function _0x1981ec(){const _0x3f16f0=_0x4451a3[_0x22ba93([0x6a,0x74,0x69])],_0x294018=window[_0x22ba93([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f16f0[_0x22ba93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f16f0[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x160fc0={..._0x4451a3,[_0x22ba93([0x6a,0x74,0x69])]:_0x3f16f0[_0x22ba93([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f16f0[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x160fc0[_0x22ba93([0x76,0x63])],_0xd17ac3(_0x160fc0)==_0x294018;}}}async function _0x5f4f53(){let _0x21500e=!0x0;try{const _0x5174d8=_0x304f00[_0x22ba93([0x73,0x70,0x6c,0x69,0x74])](_0x22ba93([0x2e])),[_0x55ece6,_0x14a9b9,_0x4c1d25]=_0x5174d8;return _0x217957(_0x55ece6),await _0x18f235(_0x55ece6,_0x14a9b9,_0x4c1d25),_0x21500e;}catch{return!0x1;}function _0x217957(_0x1b15b5){const _0x3b5fe4=_0x3c232f(_0x1b15b5);_0x3b5fe4&&_0x3b5fe4[_0x22ba93([0x61,0x6c,0x67])]==_0x22ba93([0x45,0x53,0x32,0x35,0x36])||(_0x21500e=!0x1);}async function _0x18f235(_0x5da952,_0x1eb6f2,_0x5f45e6){const _0x28eabc=window[_0x22ba93([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22ba93([0x66,0x72,0x6f,0x6d])](_0x1156cd(_0x5f45e6),_0x2797bc=>_0x2797bc[_0x22ba93([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24803e=new window[(_0x22ba93([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22ba93([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5da952+_0x22ba93([0x2e])+_0x1eb6f2),_0x482495=window[_0x22ba93([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22ba93([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x482495)return;const _0x1aa941=await _0x482495[_0x22ba93([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22ba93([0x6a,0x77,0x6b]),_0x4045b8,{[_0x22ba93([0x6e,0x61,0x6d,0x65])]:_0x22ba93([0x45,0x43,0x44,0x53,0x41]),[_0x22ba93([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22ba93([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22ba93([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x482495[_0x22ba93([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22ba93([0x6e,0x61,0x6d,0x65])]:_0x22ba93([0x45,0x43,0x44,0x53,0x41]),[_0x22ba93([0x68,0x61,0x73,0x68])]:{[_0x22ba93([0x6e,0x61,0x6d,0x65])]:_0x22ba93([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1aa941,_0x28eabc,_0x24803e)||(_0x21500e=!0x1);}}function _0x3c232f(_0x40fc5d){return _0x40fc5d[_0x22ba93([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22ba93([0x65,0x79]))?JSON[_0x22ba93([0x70,0x61,0x72,0x73,0x65])](_0x1156cd(_0x40fc5d)):null;}function _0x1156cd(_0x41b388){return window[_0x22ba93([0x61,0x74,0x6f,0x62])](_0x41b388[_0x22ba93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22ba93([0x2b]))[_0x22ba93([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22ba93([0x2f])));}function _0xd17ac3(_0x30ccb6){let _0x634515=0x1505;function _0x3b015d(_0x15bc7a){for(let _0x12c0d9=0x0;_0x12c0d9<_0x15bc7a[_0x22ba93([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12c0d9++){const _0x421586=_0x15bc7a[_0x22ba93([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12c0d9);_0x634515=(_0x634515<<0x5)+_0x634515+_0x421586,_0x634515&=_0x634515;}}function _0x204500(_0x4f27bc){Array[_0x22ba93([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f27bc)?_0x4f27bc[_0x22ba93([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x204500):_0x4f27bc&&typeof _0x4f27bc==_0x22ba93([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22ba93([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f27bc)[_0x22ba93([0x73,0x6f,0x72,0x74])]()[_0x22ba93([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d8b42,_0x164f54])=>{_0x3b015d(_0x2d8b42),_0x204500(_0x164f54);}):_0x3b015d(window[_0x22ba93([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f27bc));}return _0x204500(_0x30ccb6),_0x634515>>>0x0;}function _0x596184(_0x321907){return _0x321907[_0x22ba93([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22ba93([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22ba93([0x30]));}function _0x24275e(_0x192b19){return _0x192b19[_0x22ba93([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22ba93([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22ba93([0x6a,0x6f,0x69,0x6e])]('');}function _0x4750b1(){}function _0x22ba93(_0x577ff3){const _0x39ec6=_0xef37;return _0x577ff3[_0x39ec6(0xd8)](_0x3de6ef=>String[_0x39ec6(0xd9)](_0x3de6ef))[_0x39ec6(0x119)]('');}_0x2e81de(await _0x474a24());}(this);}[_0x2facc1(0xd4)](){const _0x35573f=_0x2facc1,_0x3a7f33=this[_0x35573f(0xd3)][_0x35573f(0x101)][_0x35573f(0xdb)];_0x3a7f33[_0x35573f(0x116)](_0x35573f(0xcc))&&_0x3a7f33[_0x35573f(0x115)](_0x35573f(0xcc),{'allowAttributes':[_0x35573f(0x113)]}),_0x3a7f33[_0x35573f(0x116)](_0x35573f(0x109))&&_0x3a7f33[_0x35573f(0x115)](_0x35573f(0x109),{'allowAttributes':[_0x35573f(0x113)]});}[_0x2facc1(0xdd)](){const _0x5b00a2=_0x2facc1,_0x543e9d=this[_0x5b00a2(0xd3)];_0x543e9d[_0x5b00a2(0xf8)][_0x5b00a2(0xd0)](_0x5b00a2(0xea))[_0x5b00a2(0xd5)]({'model':_0x5b00a2(0x113),'view':_0x5b00a2(0xd1)}),_0x543e9d[_0x5b00a2(0xf8)][_0x5b00a2(0xd0)](_0x5b00a2(0xfd))[_0x5b00a2(0xeb)]({'model':{'key':_0x5b00a2(0x113),'value':_0x158f27=>_0x158f27[_0x5b00a2(0xfe)](_0x5b00a2(0xd1))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x215d25=_0x543e9d[_0x5b00a2(0xec)][_0x5b00a2(0xed)](_0x5b00a2(0x10c));_0x215d25&&this[_0x5b00a2(0xf7)](_0x215d25,_0x5b00a2(0x105),(_0x52324d,[_0x33421c,_0x1f276f])=>{const _0x1b6f19=_0x5b00a2;_0x33421c[_0x1b6f19(0xf5)](_0x1b6f19(0x113),_0x1f276f);});}[_0x2facc1(0xef)](){const _0x735b97=_0x2facc1,_0x5c27e8=this[_0x735b97(0xd3)][_0x735b97(0xee)][_0x735b97(0xed)](_0x735b97(0xdf))||{},_0x391a70=this[_0x735b97(0xd3)][_0x735b97(0xee)][_0x735b97(0xed)](_0x735b97(0xe0))||'';this[_0x735b97(0xf9)]=_0x28a8e3(_0x11608a[_0x735b97(0xf2)],_0x735b97(0xe1),{..._0x5c27e8,'pubkey':_0x391a70,'ctx-name':_0x735b97(0xf0)+this[_0x735b97(0x10f)],'sourceList':'','imgOnly':_0x735b97(0x104),'removeCopyright':_0x735b97(0x104),'localeName':this[_0x735b97(0xd3)][_0x735b97(0xd2)][_0x735b97(0x10a)],'externalSourcesEmbedCss':_0x735b97(0xfb)}),this[_0x735b97(0xf9)][_0x735b97(0xe7)]=_0x3b7728=>{const _0x3206ac=_0x735b97;if(_0x3206ac(0xfc)==_0x3b7728)return _0x3206ac(0x10e);},_0x11608a[_0x735b97(0xf2)][_0x735b97(0x120)][_0x735b97(0xe6)](this[_0x735b97(0xf9)]);}[_0x2facc1(0x11e)](){const _0x293d36=_0x2facc1;this[_0x293d36(0x118)]=_0x28a8e3(_0x11608a[_0x293d36(0xf2)],_0x293d36(0x10b),{'ctx-name':_0x293d36(0xf0)+this[_0x293d36(0x10f)]}),_0x11608a[_0x293d36(0xf2)][_0x293d36(0x120)][_0x293d36(0xe6)](this[_0x293d36(0x118)]);}[_0x2facc1(0x112)](){const _0x4cf8b4=_0x2facc1,_0x214a96=this[_0x4cf8b4(0xd3)][_0x4cf8b4(0xec)][_0x4cf8b4(0xed)](_0x4cf8b4(0x10d));_0x214a96&&this[_0x4cf8b4(0xf7)](_0x214a96,_0x4cf8b4(0xf1),()=>{const _0x1928f4=_0x4cf8b4,_0x43ecb6=this[_0x1928f4(0xd3)][_0x1928f4(0x101)][_0x1928f4(0xf2)][_0x1928f4(0x114)][_0x1928f4(0xce)]();_0x43ecb6&&_0x43ecb6[_0x1928f4(0xfe)](_0x1928f4(0x113))&&this[_0x1928f4(0xd3)][_0x1928f4(0xe5)][_0x1928f4(0xe9)][_0x1928f4(0x11b)](_0x1928f4(0x108),()=>{const _0x201de8=_0x1928f4;_0x2b9eca(this[_0x201de8(0xd3)],_0x43ecb6);});});const _0x2cb690=this[_0x4cf8b4(0xd3)][_0x4cf8b4(0xec)][_0x4cf8b4(0xed)](_0x4cf8b4(0x102));_0x2cb690&&this[_0x4cf8b4(0xf7)](_0x2cb690,_0x4cf8b4(0xf1),()=>{const _0x141ec0=_0x4cf8b4,_0x334151=this[_0x141ec0(0xd3)][_0x141ec0(0x101)][_0x141ec0(0xf2)][_0x141ec0(0x114)][_0x141ec0(0xce)]();_0x334151&&_0x334151[_0x141ec0(0xfe)](_0x141ec0(0x113))&&this[_0x141ec0(0xd3)][_0x141ec0(0xe5)][_0x141ec0(0xe9)][_0x141ec0(0x11b)](_0x141ec0(0x108),()=>{const _0x39595a=_0x141ec0;_0x2b9eca(this[_0x39595a(0xd3)],_0x334151);});});}}function _0x26f9(){const _0x5700c8=['\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','closeMax','upcast','getAttribute','3232842UeTNyO','requires','model','uploadcareImageReplace','29450MbPMkH','true','cleanupImage','isPremiumPlugin','href','render','imageInline','contentLanguage','uc-upload-ctx-provider','replaceImageSource','insertImage','#uc-icon-arrow-down','ucContextId','UploadcareEditing','12HijhUw','_initImageProcessingIndicator','uploadcareImageId','selection','extend','isRegistered','3261896VyOCVe','_ctxElement','join','1027641YnhUjF','once','65233SmmJmN','pluginName','_initCtx','ctxElement','body','input[uploadcare-file-input]','466594iYHuZo','imageBlock','destroy','getSelectedElement','344rUwFBZ','for','data-uc-image-id','locale','editor','_initSchema','attributeToAttribute','21721513NkbhHV','5UmlrIy','map','fromCharCode','PictureEditing','schema','495Zajrew','_initConversion','remove','uploadcare.uploader','uploadcare.pubkey','uc-config','isOfficialPlugin','querySelector','add','editing','appendChild','iconHrefResolver','uploadcare','view','downcast','elementToAttribute','commands','get','config','_initConfig','uploader-','execute','document','afterInit','configElement','removeAttribute','init','listenTo','conversion','_configElement','2eOlNWH'];_0x26f9=function(){return _0x5700c8;};return _0x26f9();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2aceda,ObservableMixin as _0x29c71f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2accc2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2020c3}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x480a5c}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x23778e}from'../../utils/uploadutils.js';import{getImageUrls as _0x3ae8,getImageDimension as _0x546a37}from'../../utils/editingutils.js';import{isAncestor as _0x3d98dd}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x29c71f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x10c157,_0x4cf1fc,_0x28395b){super(),this['_editor']=_0x10c157,this['_dialog']=_0x4cf1fc,this['_imageElement']=_0x28395b,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 _0x17d200=this['_imageElement'],_0x1d17ff=_0x17d200['getAttribute']('uploadcareImageId'),_0x1ca5f5=_0x17d200['getAttribute']('src');if(_0x1d17ff)await this['_loadImageInfo'](_0x1d17ff,_0x1ca5f5);else{if(this['_imageCache']['has'](_0x1ca5f5)){const _0x23b865=this['_imageCache']['get'](_0x1ca5f5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x23b865['url'],this['imageDimension']=_0x23b865['dimension'],this['imageId']=_0x23b865['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x58abea}=this['_editor'],t=_0x58abea['t'],_0x82388=new _0x480a5c(_0x58abea,this['imageStatus'],this['_attributes']);_0x82388['bind']('status')['to'](this,'imageStatus'),_0x82388['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x82388['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x82388['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x82388,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2020c3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x82388,'position':_0x2accc2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x82388['focus']();},'onHide':()=>{_0x82388['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4b2c92=>!_0x3d98dd(_0x4b2c92,_0x82388['element'])}});}['_loadImageInfo'](_0x1a643e,_0x34cfc8){return _0x23778e['getInfo'](_0x1a643e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xca599a=>{const {width:_0x486764,height:_0x400406}=_0xca599a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x34cfc8,this['imageDimension']={'width':_0x486764,'height':_0x400406},this['imageId']=_0x1a643e;})['catch'](_0x30d8a9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x30d8a9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x499c14,_0x2f11b0){return this['_getImageAsFile'](_0x499c14)['then'](_0xe69b10=>_0x23778e['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':_0x2f11b0['signal'],'file':_0xe69b10,'onProgress':_0x13438f=>{_0x13438f&&_0x13438f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x13438f['value']));}}))['then'](_0x3c694f=>{const {width:_0x324344,height:_0xa3dbbf}=_0x3c694f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c694f['cdnUrl'],this['imageDimension']={'width':_0x324344,'height':_0xa3dbbf},this['imageId']=_0x3c694f['uuid'],this['imageUploadProgress']=null;const _0xca8803=_0x499c14['getAttribute']('src');this['_imageCache']['set'](_0xca8803,{'id':_0x3c694f['uuid'],'url':_0x3c694f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4f1552=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f1552['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x508fea,_0x30097c){_0x508fea['on']('apply',(_0xace622,_0x256dae)=>{this['_replaceImage'](_0x30097c,_0x256dae['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x508fea['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x508fea['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5d9413,_0x10f233,_0x5c29ed){const _0x3b092f=this['_editor'],{width:_0x44d5f2,height:_0x5f224b}=_0x546a37(_0x10f233,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1b78d7,imageSources:_0x2a281a}=_0x3ae8(_0x10f233,_0x44d5f2);_0x3b092f['model']['change'](_0x1ebd60=>{if('$graveyard'===_0x5d9413['root']['rootName']){_0x3b092f['execute']('insertImage',{'imageType':_0x5d9413['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5d9413['getAttributes']()),'uploadcareImageId':_0x5c29ed,'src':_0x1b78d7,'sources':_0x2a281a,'width':_0x44d5f2,'height':_0x5f224b}});const _0xcc44ef=_0x5d9413['getChildren']();_0x5d9413=_0x3b092f['model']['document']['selection']['getSelectedElement']();for(const _0x295bec of _0xcc44ef)_0x1ebd60['append'](_0x1ebd60['cloneElement'](_0x295bec),_0x5d9413);}else _0x1ebd60['setSelection'](_0x5d9413,'on'),_0x3b092f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5d9413['getAttributes']()),'uploadcareImageId':_0x5c29ed,'src':_0x1b78d7,'sources':_0x2a281a,'width':_0x44d5f2,'height':_0x5f224b},_0x5d9413);_0x1ebd60['setSelection'](_0x5d9413,'on');});}async['_getImageAsFile'](_0x861fe0){const _0x8484a8=_0x2aceda['window'],_0x411a29=_0x2aceda['document']['location']['href'],_0x3f027e=new _0x8484a8['URL'](_0x861fe0['getAttribute']('src'),_0x411a29);if('data:'===_0x3f027e['protocol']){const _0x4a2f41=_0x3f027e['href']['split'](','),_0x4ad2b2=_0x4a2f41[0x0]['match'](/:(.*?);/)[0x1],_0x4e4c90=_0x4ad2b2['split']('/')[0x1],_0x240d5a=_0x8484a8['atob'](_0x4a2f41[_0x4a2f41['length']-0x1]);let _0xa7b90d=_0x240d5a['length'];const _0xe907fe=new _0x8484a8['Uint8Array'](_0xa7b90d);for(;_0xa7b90d--;)_0xe907fe[_0xa7b90d]=_0x240d5a['charCodeAt'](_0xa7b90d);return new _0x8484a8['File']([_0xe907fe],'image.'+_0x4e4c90,{'type':_0x4ad2b2});}const _0x21bf82=_0x3f027e['href']['split']('/'),_0x1f79e9=_0x21bf82[_0x21bf82['length']-0x1],_0x3de85f=_0x1f79e9['split']('.')[0x1];return _0x8484a8['fetch'](_0x3f027e['href'])['then'](_0x4bdf95=>_0x4bdf95['clone']()['blob']())['then'](_0x5095da=>new _0x8484a8['File']([_0x5095da],_0x1f79e9,{'type':'image/'+_0x3de85f}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x6b2e60,_0xc6fb5d){const _0x3c3bc1=_0x22f2,_0xac1e53=_0x6b2e60();while(!![]){try{const _0x4d5116=-parseInt(_0x3c3bc1(0x1d9))/0x1+parseInt(_0x3c3bc1(0x1e9))/0x2+-parseInt(_0x3c3bc1(0x1d8))/0x3*(parseInt(_0x3c3bc1(0x1de))/0x4)+parseInt(_0x3c3bc1(0x1db))/0x5*(-parseInt(_0x3c3bc1(0x1e2))/0x6)+parseInt(_0x3c3bc1(0x1dd))/0x7+-parseInt(_0x3c3bc1(0x1df))/0x8*(-parseInt(_0x3c3bc1(0x1e4))/0x9)+parseInt(_0x3c3bc1(0x1d7))/0xa*(parseInt(_0x3c3bc1(0x1e3))/0xb);if(_0x4d5116===_0xc6fb5d)break;else _0xac1e53['push'](_0xac1e53['shift']());}catch(_0x399aa1){_0xac1e53['push'](_0xac1e53['shift']());}}}(_0x2958,0x9a3b7));import{View as _0x50bafe}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x50bafe{constructor(_0x23e690,_0x423ffd){const _0x3a1262=_0x22f2;super(_0x23e690);const _0x32a273=this[_0x3a1262(0x1e7)];this[_0x3a1262(0x1da)](_0x3a1262(0x1e6),''),this[_0x3a1262(0x1e8)]({'tag':_0x3a1262(0x1dc),'attributes':{..._0x423ffd,'class':[_0x3a1262(0x1e1),_0x3a1262(0x1e0)],'ctx-name':_0x3a1262(0x1e5),'cdn-url':_0x32a273['to'](_0x3a1262(0x1e6))}});}}function _0x22f2(_0x319ea4,_0x57bd68){const _0x29581c=_0x2958();return _0x22f2=function(_0x22f2bb,_0x54438e){_0x22f2bb=_0x22f2bb-0x1d7;let _0xf7a2e2=_0x29581c[_0x22f2bb];return _0xf7a2e2;},_0x22f2(_0x319ea4,_0x57bd68);}function _0x2958(){const _0x5c236f=['8766KBJaed','image-edit','imageSrc','bindTemplate','setTemplate','1117120ZtdTTn','10ZzaeSZ','120cBQDKQ','489987YOqFdQ','set','18015rcodYT','uc-cloud-image-editor','3831100sMaWUh','92408YkJAaT','2104ihvxUA','ck-uploadcare-theme','uc-light','390Eufqij','10097725LFsfbQ'];_0x2958=function(){return _0x5c236f;};return _0x2958();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1cdb53}from'ckeditor5/src/icons.js';import{ButtonView as _0x329153,IconView as _0x471ba6,View as _0x506661}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x506661{constructor(_0x4570d8){super(_0x4570d8);const t=_0x4570d8['t'];this['set']('errorType',null);const _0x3a2feb=new _0x329153(_0x4570d8);_0x3a2feb['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3a2feb['withText']=!0x0,_0x3a2feb['class']='ck-button-action',_0x3a2feb['on']('execute',()=>{this['fire']('retry');}),_0x3a2feb['bind']('isVisible')['to'](this,'errorType',_0x1cd1d0=>'NotFound'!==_0x1cd1d0);const _0xc63331=new _0x471ba6();_0xc63331['content']=_0x1cdb53,_0xc63331['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4d602e=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':[_0xc63331,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4d602e['to']('errorType',_0x1f2587=>t('NotFound'!==_0x1f2587?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3a2feb]},{'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 _0x761494,View as _0x3f4727}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3f4727{constructor(_0xcd5ce8){super(_0xcd5ce8);const t=_0xcd5ce8['t'],_0x162ede=this['bindTemplate'],_0x14562d=new _0x761494();_0x14562d['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':[_0x14562d,{'text':_0x162ede['to']('imageUploadProgress',_0x11483a=>t('Loading\x20image...')+'\x20('+(_0x11483a||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16f370=_0x478f;(function(_0x1e64f3,_0x582097){const _0x51062c=_0x478f,_0x27b988=_0x1e64f3();while(!![]){try{const _0x4b7436=parseInt(_0x51062c(0xbe))/0x1+parseInt(_0x51062c(0xef))/0x2*(parseInt(_0x51062c(0xe6))/0x3)+-parseInt(_0x51062c(0xeb))/0x4+-parseInt(_0x51062c(0xee))/0x5*(parseInt(_0x51062c(0xc8))/0x6)+parseInt(_0x51062c(0xbf))/0x7*(parseInt(_0x51062c(0xe7))/0x8)+parseInt(_0x51062c(0xc0))/0x9*(-parseInt(_0x51062c(0xdb))/0xa)+-parseInt(_0x51062c(0xd2))/0xb*(parseInt(_0x51062c(0xd1))/0xc);if(_0x4b7436===_0x582097)break;else _0x27b988['push'](_0x27b988['shift']());}catch(_0x490f25){_0x27b988['push'](_0x27b988['shift']());}}}(_0x5e1c,0x3fad3));import{View as _0x13dd73}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1056a8}from'./uploadcareimageeditformloadingview.js';function _0x5e1c(){const _0x573a2d=['error','_errorView','setTemplate','_editingView','48DdxXpj','781561lstIwl','ready','change:status','toLowerCase','once','div','_addErrorViewListeners','_addUploadcareImageEditorListeners','element','540PJqiZw','disconnect','uploading','observe','_waitForImageEditorComponent','_setView','set','addEventListener','cancel','uc-cloud-image-editor','status','18219VbeiGR','1935256TuSnAc','_focusableView','filter','addMany','170988KciCKi','_loadingView','_items','20795qlEmIr','114XXTuak','querySelector','cdnUrl','apply','retry','length','render','fire','510829xIASnv','14COexhU','47871weDfqA','ck-reset_all-excluded','createCollection','detail','target','ck-uploadcare-form','nodeName','add','672hlvJGR','getFocusableElement','clear','focus','addedNodes'];_0x5e1c=function(){return _0x573a2d;};return _0x5e1c();}import{UploadcareImageEditFormErrorView as _0x4b6605}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x13f5ee}from'./uploadcareimageeditformeditingview.js';function _0x478f(_0x3ee427,_0x1bc7be){const _0x5e1cfe=_0x5e1c();return _0x478f=function(_0x478f3b,_0x2c7c8c){_0x478f3b=_0x478f3b-0xbd;let _0x4be883=_0x5e1cfe[_0x478f3b];return _0x4be883;},_0x478f(_0x3ee427,_0x1bc7be);}import{DialogFocusManagerView as _0x23c7aa}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x23c7aa{[_0x16f370(0xed)];[_0x16f370(0xec)];[_0x16f370(0xce)];[_0x16f370(0xd0)];[_0x16f370(0xe8)];constructor(_0x13d1e0,_0x502e70,_0x496bc4){const _0x1e60f8=_0x16f370;super(_0x13d1e0),this[_0x1e60f8(0xed)]=this[_0x1e60f8(0xc2)](),this[_0x1e60f8(0xec)]=new _0x1056a8(_0x13d1e0),this[_0x1e60f8(0xce)]=new _0x4b6605(_0x13d1e0),this[_0x1e60f8(0xd0)]=new _0x13f5ee(_0x13d1e0,_0x496bc4),this[_0x1e60f8(0xe8)]=new _0x13dd73(_0x13d1e0),this[_0x1e60f8(0xe8)][_0x1e60f8(0xcf)](this[_0x1e60f8(0xc9)]()),this[_0x1e60f8(0xe1)](_0x1e60f8(0xe5),_0x502e70),this[_0x1e60f8(0xcf)]({'tag':_0x1e60f8(0xd7),'attributes':{'class':['ck',_0x1e60f8(0xc1),_0x1e60f8(0xc5)],'tabindex':'-1'},'children':this[_0x1e60f8(0xed)]}),this[_0x1e60f8(0xe0)](),this[_0x1e60f8(0xd6)](_0x1e60f8(0xf5),()=>{const _0x3dd0d3=_0x1e60f8;this[_0x3dd0d3(0xdf)](this[_0x3dd0d3(0xda)],_0xa8ec6f=>{const _0x39ab43=_0x3dd0d3;this[_0x39ab43(0xd9)](_0xa8ec6f);});}),this['on'](_0x1e60f8(0xd4),()=>{const _0x206229=_0x1e60f8;this[_0x206229(0xe0)]();}),this[_0x1e60f8(0xd8)]();}[_0x16f370(0xcb)](){const _0x418482=_0x16f370;this[_0x418482(0xda)][_0x418482(0xcb)]();}[_0x16f370(0xe0)](){const _0x400f77=_0x16f370;switch(this[_0x400f77(0xed)][_0x400f77(0xca)](),this[_0x400f77(0xe5)]){case _0x400f77(0xdd):this[_0x400f77(0xed)][_0x400f77(0xc7)](this[_0x400f77(0xec)]);break;case _0x400f77(0xcd):this[_0x400f77(0xed)][_0x400f77(0xc7)](this[_0x400f77(0xce)]);break;case _0x400f77(0xd3):this[_0x400f77(0xed)][_0x400f77(0xea)]([this[_0x400f77(0xd0)],this[_0x400f77(0xe8)]]);}}[_0x16f370(0xdf)](_0x2a2cfe,_0x56f232){const _0x6d7534=_0x16f370,_0x3a3a68=_0x6d7534(0xe4),_0x4f76c6=_0x2a2cfe[_0x6d7534(0xf0)](_0x3a3a68);if(_0x4f76c6)return _0x56f232(_0x4f76c6);const _0x5c4acb=new MutationObserver(_0x33a1fb=>{const _0x4ae7a4=_0x6d7534,_0xa17f51=_0x33a1fb[_0x4ae7a4(0xe9)](_0x33fffd=>_0x33fffd[_0x4ae7a4(0xc4)]===_0x2a2cfe&&_0x33fffd[_0x4ae7a4(0xcc)][_0x4ae7a4(0xf4)]>0x0&&_0x33fffd[_0x4ae7a4(0xcc)][0x0][_0x4ae7a4(0xc6)][_0x4ae7a4(0xd5)]()===_0x3a3a68);_0xa17f51[_0x4ae7a4(0xf4)]&&(_0x5c4acb[_0x4ae7a4(0xdc)](),_0x56f232(_0xa17f51[0x0][_0x4ae7a4(0xcc)][0x0]));});_0x5c4acb[_0x6d7534(0xde)](_0x2a2cfe,{'childList':!0x0,'subtree':!0x0});}[_0x16f370(0xd9)](_0x22d5f9){const _0x13aa8a=_0x16f370;_0x22d5f9[_0x13aa8a(0xe2)](_0x13aa8a(0xf2),_0x32658d=>{const _0x27ccac=_0x13aa8a;this[_0x27ccac(0xbd)](_0x27ccac(0xf2),{'imageSrc':_0x32658d[_0x27ccac(0xc3)][_0x27ccac(0xf1)]});}),_0x22d5f9[_0x13aa8a(0xe2)](_0x13aa8a(0xe3),()=>{const _0x14401f=_0x13aa8a;this[_0x14401f(0xbd)](_0x14401f(0xe3));});}[_0x16f370(0xd8)](){const _0x20bc37=_0x16f370;this[_0x20bc37(0xce)]['on'](_0x20bc37(0xf3),()=>{const _0x3fc493=_0x20bc37;this[_0x3fc493(0xbd)](_0x3fc493(0xf3));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20f0e4=_0x1f04;(function(_0xc07b96,_0x4397e2){const _0x296f7a=_0x1f04,_0x80193c=_0xc07b96();while(!![]){try{const _0x5639fc=-parseInt(_0x296f7a(0x1c5))/0x1+parseInt(_0x296f7a(0x1b5))/0x2*(-parseInt(_0x296f7a(0x1b4))/0x3)+parseInt(_0x296f7a(0x1af))/0x4*(parseInt(_0x296f7a(0x1c0))/0x5)+-parseInt(_0x296f7a(0x1bd))/0x6+-parseInt(_0x296f7a(0x1b2))/0x7*(-parseInt(_0x296f7a(0x1a5))/0x8)+-parseInt(_0x296f7a(0x1b3))/0x9*(parseInt(_0x296f7a(0x1ad))/0xa)+-parseInt(_0x296f7a(0x1a4))/0xb*(-parseInt(_0x296f7a(0x1c2))/0xc);if(_0x5639fc===_0x4397e2)break;else _0x80193c['push'](_0x80193c['shift']());}catch(_0x24c05a){_0x80193c['push'](_0x80193c['shift']());}}}(_0x482e,0x25ab4));import{Command as _0x1b5ed9}from'ckeditor5/src/core.js';function _0x482e(){const _0x36c717=['get','element','bind','execute','imageEditController','786816KDUElT','getSelectedElement','isEnabled','105XriGpI','set','302364DbPPqA','refresh','editor','10560qxqUeU','198TfaQmu','7248yFLxzX','document','config','selection','_isEditable','uploadcare.allowExternalImagesEditing','model','unbind','1640qdMQkO','imageBlock','33316busAhO','imageInline','requires','973QsDDCM','15165ljJPDX','297ZqYDzz','3678XXmcxg','plugins','isActive'];_0x482e=function(){return _0x36c717;};return _0x482e();}function _0x1f04(_0x10e014,_0x8cb329){const _0x482e73=_0x482e();return _0x1f04=function(_0x1f0438,_0x15495b){_0x1f0438=_0x1f0438-0x1a4;let _0xa93cb6=_0x482e73[_0x1f0438];return _0xa93cb6;},_0x1f04(_0x10e014,_0x8cb329);}import{Dialog as _0x49beea}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1e8a18}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x4250f2}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x1b5ed9{[_0x20f0e4(0x1bc)];static get[_0x20f0e4(0x1b1)](){return[_0x49beea];}[_0x20f0e4(0x1a9)];constructor(_0x5d0176){const _0x32540a=_0x20f0e4;super(_0x5d0176),this[_0x32540a(0x1bc)]=void 0x0,this[_0x32540a(0x1a9)]=_0x4250f2(_0x5d0176[_0x32540a(0x1a7)][_0x32540a(0x1b8)](_0x32540a(0x1aa))||[]),this[_0x32540a(0x1c1)]({'isActive':!0x1});}[_0x20f0e4(0x1c3)](){const _0x3de548=_0x20f0e4,_0x304660=this[_0x3de548(0x1c4)][_0x3de548(0x1ab)][_0x3de548(0x1a6)][_0x3de548(0x1a8)][_0x3de548(0x1be)]();this[_0x3de548(0x1bf)]=this[_0x3de548(0x1a9)](_0x304660);}[_0x20f0e4(0x1bb)](){const _0x31922a=_0x20f0e4;this[_0x31922a(0x1bc)]&&(this[_0x31922a(0x1ac)](_0x31922a(0x1b7)),this[_0x31922a(0x1bc)]=void 0x0);const _0x443bfa=this[_0x31922a(0x1c4)][_0x31922a(0x1ab)][_0x31922a(0x1a6)][_0x31922a(0x1a8)][_0x31922a(0x1be)]();_0x443bfa&&(_0x443bfa['is'](_0x31922a(0x1b9),_0x31922a(0x1ae))||_0x443bfa['is'](_0x31922a(0x1b9),_0x31922a(0x1b0)))&&(this[_0x31922a(0x1bc)]=new _0x1e8a18(this[_0x31922a(0x1c4)],this[_0x31922a(0x1c4)][_0x31922a(0x1b6)][_0x31922a(0x1b8)](_0x49beea),_0x443bfa),this[_0x31922a(0x1ba)](_0x31922a(0x1b7))['to'](this[_0x31922a(0x1bc)],_0x31922a(0x1b7)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e00d0=_0x1a91;(function(_0x22613f,_0x111447){const _0x5a7c98=_0x1a91,_0x3a3335=_0x22613f();while(!![]){try{const _0x44dca6=-parseInt(_0x5a7c98(0x86))/0x1+parseInt(_0x5a7c98(0x79))/0x2*(-parseInt(_0x5a7c98(0x7b))/0x3)+-parseInt(_0x5a7c98(0x7c))/0x4+parseInt(_0x5a7c98(0x87))/0x5*(-parseInt(_0x5a7c98(0x7a))/0x6)+-parseInt(_0x5a7c98(0x82))/0x7+-parseInt(_0x5a7c98(0x8d))/0x8*(-parseInt(_0x5a7c98(0x80))/0x9)+parseInt(_0x5a7c98(0x7e))/0xa;if(_0x44dca6===_0x111447)break;else _0x3a3335['push'](_0x3a3335['shift']());}catch(_0x2ae5b4){_0x3a3335['push'](_0x3a3335['shift']());}}}(_0x38b6,0x9c782));function _0x38b6(){const _0x48ab27=['isPremiumPlugin','add','215504ijqhkL','uploadcareImageReplace','4yGaPVs','2778822EighBY','203886AZvydm','525672NjUTXZ','UploadcareImageEditEditing','25183060CFAbeL','uploadcareImageEdit','63KRXMEy','ImageEditing','2988846luAGzK','requires','isOfficialPlugin','init','908517VOmwuk','5TSgMJP','commands','pluginName','ImageUtils'];_0x38b6=function(){return _0x48ab27;};return _0x38b6();}import{Plugin as _0xc6b7ae}from'ckeditor5/src/core.js';function _0x1a91(_0x1a7649,_0x155dca){const _0x38b6db=_0x38b6();return _0x1a91=function(_0x1a91ed,_0x503938){_0x1a91ed=_0x1a91ed-0x78;let _0x2e7ef6=_0x38b6db[_0x1a91ed];return _0x2e7ef6;},_0x1a91(_0x1a7649,_0x155dca);}import{Notification as _0x38a190}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x51a72a}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2fc096}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x45b918}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0xc6b7ae{static get[_0x4e00d0(0x89)](){const _0x28b4be=_0x4e00d0;return _0x28b4be(0x7d);}static get[_0x4e00d0(0x83)](){const _0x38862d=_0x4e00d0;return[_0x45b918,_0x38a190,_0x38862d(0x8a),_0x38862d(0x81)];}static get[_0x4e00d0(0x84)](){return!0x0;}static get[_0x4e00d0(0x8b)](){return!0x0;}[_0x4e00d0(0x85)](){const _0x855de=_0x4e00d0,{editor:_0x17026a}=this;_0x17026a[_0x855de(0x88)][_0x855de(0x8c)](_0x855de(0x7f),new _0x51a72a(_0x17026a)),_0x17026a[_0x855de(0x88)][_0x855de(0x8c)](_0x855de(0x78),new _0x2fc096(_0x17026a));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x449192}from'ckeditor5/src/core.js';import{ButtonView as _0x3e48f1}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x23ada6}from'ckeditor5/src/icons.js';import{createElement as _0x40fd14}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 _0x449192{['_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 _0x5279c1=this['editor'];_0x5279c1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x40ebde=>{const _0x299647=_0x5279c1['commands']['get']('uploadcareImageEdit'),_0x323a04=new _0x3e48f1(_0x40ebde),t=_0x40ebde['t'];return _0x323a04['set']({'icon':_0x23ada6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x323a04['bind']('isEnabled')['to'](_0x299647),_0x323a04['bind']('isOn')['to'](_0x299647,'isActive'),this['listenTo'](_0x323a04,'execute',()=>{_0x5279c1['execute']('uploadcareImageEdit'),_0x5279c1['editing']['view']['focus']();}),_0x323a04;}),this['_initConfig']();}['_initConfig'](){const _0x4e7a42=_0x40fd14(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4e7a42),this['listenTo'](this['editor'],'destroy',()=>{_0x4e7a42['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5d6ecb=_0x3ecb;(function(_0x1a9aa0,_0x9cc976){const _0x1cb950=_0x3ecb,_0x274840=_0x1a9aa0();while(!![]){try{const _0x13a068=parseInt(_0x1cb950(0xfd))/0x1+parseInt(_0x1cb950(0x111))/0x2*(-parseInt(_0x1cb950(0x10b))/0x3)+parseInt(_0x1cb950(0x10f))/0x4+-parseInt(_0x1cb950(0x10c))/0x5*(-parseInt(_0x1cb950(0x103))/0x6)+-parseInt(_0x1cb950(0x116))/0x7*(parseInt(_0x1cb950(0xfe))/0x8)+-parseInt(_0x1cb950(0x114))/0x9*(-parseInt(_0x1cb950(0x102))/0xa)+-parseInt(_0x1cb950(0x104))/0xb;if(_0x13a068===_0x9cc976)break;else _0x274840['push'](_0x274840['shift']());}catch(_0x2daa4f){_0x274840['push'](_0x274840['shift']());}}}(_0x3801,0x5cce3));import{Command as _0x5e257e}from'ckeditor5/src/core.js';function _0x3ecb(_0x30540d,_0x478b94){const _0x380105=_0x3801();return _0x3ecb=function(_0x3ecbea,_0xdee7c){_0x3ecbea=_0x3ecbea-0xfd;let _0xc1f2b=_0x380105[_0x3ecbea];return _0xc1f2b;},_0x3ecb(_0x30540d,_0x478b94);}export class UploadcareImageReplaceCommand extends _0x5e257e{[_0x5d6ecb(0x105)](){const _0x35d52d=_0x5d6ecb,_0x57bde2=this[_0x35d52d(0x101)][_0x35d52d(0x109)][_0x35d52d(0x112)][_0x35d52d(0x108)][_0x35d52d(0x10a)]();this[_0x35d52d(0xff)]=Boolean(_0x57bde2&&(_0x57bde2['is'](_0x35d52d(0x10d),_0x35d52d(0x100))||_0x57bde2['is'](_0x35d52d(0x10d),_0x35d52d(0x117))));}[_0x5d6ecb(0x113)](_0x585532){const _0x23df2b=_0x5d6ecb,_0x2f3bf8=this[_0x23df2b(0x101)][_0x23df2b(0x109)][_0x23df2b(0x112)][_0x23df2b(0x108)][_0x23df2b(0x10a)]();this[_0x23df2b(0x101)][_0x23df2b(0x109)][_0x23df2b(0x107)](_0x6df430=>{const _0x2a7fcf=_0x23df2b;_0x6df430[_0x2a7fcf(0x115)](_0x585532,_0x2f3bf8),_0x6df430[_0x2a7fcf(0x110)](_0x2a7fcf(0x106),_0x2f3bf8),_0x6df430[_0x2a7fcf(0x110)](_0x2a7fcf(0x10e),_0x2f3bf8);});}}function _0x3801(){const _0x1f2048=['14lHUObU','document','execute','252WqEEvg','setAttributes','7IYwCWf','imageInline','534233gdYfMb','4792296TFRCgZ','isEnabled','imageBlock','editor','256970AUXYqH','5454qoDZLU','12427822zRWEpN','refresh','srcset','change','selection','model','getSelectedElement','125199iNBqRy','3310qaTxhn','element','sizes','2182376EproHU','removeAttribute'];_0x3801=function(){return _0x1f2048;};return _0x3801();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x11c6(_0x2d6032,_0x38c705){var _0x14d1f1=_0x14d1();return _0x11c6=function(_0x11c60a,_0x3b9b15){_0x11c60a=_0x11c60a-0x182;var _0x424375=_0x14d1f1[_0x11c60a];return _0x424375;},_0x11c6(_0x2d6032,_0x38c705);}var _0x28ab32=_0x11c6;(function(_0x5acd6a,_0x2c36e6){var _0x133186=_0x11c6,_0x4fbfae=_0x5acd6a();while(!![]){try{var _0x16d8fb=parseInt(_0x133186(0x184))/0x1*(-parseInt(_0x133186(0x190))/0x2)+parseInt(_0x133186(0x18a))/0x3*(-parseInt(_0x133186(0x188))/0x4)+parseInt(_0x133186(0x182))/0x5+-parseInt(_0x133186(0x186))/0x6*(-parseInt(_0x133186(0x185))/0x7)+parseInt(_0x133186(0x183))/0x8+parseInt(_0x133186(0x18d))/0x9+-parseInt(_0x133186(0x18b))/0xa;if(_0x16d8fb===_0x2c36e6)break;else _0x4fbfae['push'](_0x4fbfae['shift']());}catch(_0x38ac98){_0x4fbfae['push'](_0x4fbfae['shift']());}}}(_0x14d1,0xe8d76));import{Plugin as _0xc4862}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x543091}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x14d1(){var _0x26bd4b=['2388jzyXnB','isPremiumPlugin','68XfYRyZ','requires','78498vJjdsl','17589360hDAEsq','pluginName','4311549IlTruL','UploadcareImageEdit','isOfficialPlugin','202hnKTHv','9027850eTOiFv','5641440QuHvEA','9149xvyEIT','19201PeZdzF'];_0x14d1=function(){return _0x26bd4b;};return _0x14d1();}import{UploadcareImageEditUI as _0x7ccbc3}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0xc4862{static get[_0x28ab32(0x18c)](){var _0x50720a=_0x28ab32;return _0x50720a(0x18e);}static get[_0x28ab32(0x189)](){return[_0x543091,_0x7ccbc3];}static get[_0x28ab32(0x18f)](){return!0x0;}static get[_0x28ab32(0x187)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x536e59=_0x3a03;(function(_0x23b141,_0x335c19){const _0x4f3a07=_0x3a03,_0x253ac6=_0x23b141();while(!![]){try{const _0xea053b=parseInt(_0x4f3a07(0x168))/0x1*(-parseInt(_0x4f3a07(0x152))/0x2)+-parseInt(_0x4f3a07(0x17d))/0x3*(-parseInt(_0x4f3a07(0x179))/0x4)+parseInt(_0x4f3a07(0x14a))/0x5+parseInt(_0x4f3a07(0x16f))/0x6*(-parseInt(_0x4f3a07(0x151))/0x7)+-parseInt(_0x4f3a07(0x144))/0x8+-parseInt(_0x4f3a07(0x159))/0x9*(parseInt(_0x4f3a07(0x15b))/0xa)+parseInt(_0x4f3a07(0x158))/0xb;if(_0xea053b===_0x335c19)break;else _0x253ac6['push'](_0x253ac6['shift']());}catch(_0x29f842){_0x253ac6['push'](_0x253ac6['shift']());}}}(_0x1cc5,0x6fbd7));import{Plugin as _0x37a29e}from'ckeditor5/src/core.js';function _0x3a03(_0x5462c1,_0x3fe212){const _0x1cc57d=_0x1cc5();return _0x3a03=function(_0x3a034f,_0x4be51c){_0x3a034f=_0x3a034f-0x131;let _0x3dbecf=_0x1cc57d[_0x3a034f];return _0x3dbecf;},_0x3a03(_0x5462c1,_0x3fe212);}import{IconDropbox as _0x342c35,IconFacebook as _0x4251a5,IconGoogleDrive as _0x521194,IconGooglePhotos as _0x12ceaf,IconUploadcareImageUpload as _0x25f38b,IconUploadcareLink as _0x3c682d,IconOneDrive as _0x2bbe83}from'ckeditor5/src/icons.js';import{ButtonView as _0x1ab57e,MenuBarMenuListItemButtonView as _0x1d957d}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x4b60a8}from'./uploadcareconfig.js';import{getTranslation as _0x50648c}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x1cc5(){const _0x50945a=['1191738PZjNCc','ImageInsertUI','entries','url','registerIntegration','upload','_getIntegrationKey','uploadcareLicenseKeyValid','Replace','destroy','assetManager','_createButton','isEnabled','uploadcareLicenseKeyDomainLimit','GPhotos','uploadcareLicenseKeyInvalid','text','execute','UploadcareUI','licenseKey','uploadcareLicenseKeyUsageLimit','featureNotAllowed','isOfficialPlugin','withText','forEach','2040152cQuipd','uploadcareLicenseKeyTrialLimit','_createToolbarButton','_createMenuBarButtons','commands','GDrive','3055605HkPTNI','trialLimit','URL','Dropbox','has','_licenseKeyCheckInterval','_createDropdownButtons','7cbmPBh','2AbUFsk','label','Local','invalid','isImageSelected','usageLimit','12297923bHIwqW','18IpUFAi','type','4301300owziKF','uploadcare.uploader.sourceList','uploadcareLicenseKeyEvaluationLimit','plugins','push','config','Insert','_showLicenseError','domainLimit','locale','expired','icon','init','47759Dhvmvb','get','OneDrive','reduce','evaluationLimit','afterInit','pluginName','5417286TWzlhI','map','uploadcareLicenseKeyExpired','shortText','Uploadcare','uploadcare','_normalizeConfigSourceList','Facebook','editor','isPremiumPlugin','8bchrSB','bind','uploadcareLicenseKeyNotAllowed','tooltip'];_0x1cc5=function(){return _0x50945a;};return _0x1cc5();}export class UploadcareUI extends _0x37a29e{[_0x536e59(0x13e)];[_0x536e59(0x14f)];static get[_0x536e59(0x16e)](){const _0x543b75=_0x536e59;return _0x543b75(0x13d);}static get[_0x536e59(0x141)](){return!0x0;}static get[_0x536e59(0x178)](){return!0x0;}[_0x536e59(0x167)](){const _0xd6e89f=_0x536e59;this[_0xd6e89f(0x13e)]=this[_0xd6e89f(0x177)][_0xd6e89f(0x160)][_0xd6e89f(0x169)](_0xd6e89f(0x13e));const _0x1bbdf2=this[_0xd6e89f(0x177)];this[_0xd6e89f(0x14f)]=setInterval(()=>{const _0x4f88ad=_0xd6e89f;let _0x49be95;for(const _0xec3c28 in _0x1bbdf2){const _0x3bf38b=_0xec3c28,_0x4eb76d=_0x1bbdf2[_0x3bf38b];if(_0x4f88ad(0x132)==_0x4eb76d||_0x4f88ad(0x13a)==_0x4eb76d||_0x4f88ad(0x171)==_0x4eb76d||_0x4f88ad(0x138)==_0x4eb76d||_0x4f88ad(0x17b)==_0x4eb76d||_0x4f88ad(0x15d)==_0x4eb76d||_0x4f88ad(0x145)==_0x4eb76d||_0x4f88ad(0x13f)==_0x4eb76d){delete _0x1bbdf2[_0x3bf38b],_0x49be95=_0x4eb76d,clearInterval(this[_0x4f88ad(0x14f)]),this[_0x4f88ad(0x14f)]=void 0x0;break;}}_0x4f88ad(0x13a)==_0x49be95&&_0x1bbdf2[_0x4f88ad(0x162)](_0x4f88ad(0x155)),_0x4f88ad(0x171)==_0x49be95&&_0x1bbdf2[_0x4f88ad(0x162)](_0x4f88ad(0x165)),_0x4f88ad(0x138)==_0x49be95&&_0x1bbdf2[_0x4f88ad(0x162)](_0x4f88ad(0x163)),_0x4f88ad(0x17b)==_0x49be95&&_0x1bbdf2[_0x4f88ad(0x162)](_0x4f88ad(0x140),_0x4f88ad(0x173)),_0x4f88ad(0x15d)==_0x49be95&&_0x1bbdf2[_0x4f88ad(0x162)](_0x4f88ad(0x16c)),_0x4f88ad(0x145)==_0x49be95&&_0x1bbdf2[_0x4f88ad(0x162)](_0x4f88ad(0x14b)),_0x4f88ad(0x13f)==_0x49be95&&_0x1bbdf2[_0x4f88ad(0x162)](_0x4f88ad(0x157));},0x3e8);}[_0x536e59(0x16d)](){const _0x9bfd00=_0x536e59,{editor:_0x2c3214}=this,_0x1b15b6=_0x2c3214[_0x9bfd00(0x148)][_0x9bfd00(0x169)](_0x9bfd00(0x174));if(!_0x1b15b6)return;const _0x98fe36=this[_0x9bfd00(0x175)](_0x2c3214[_0x9bfd00(0x160)][_0x9bfd00(0x169)](_0x9bfd00(0x15c)))[_0x9bfd00(0x16b)]((_0xab5eef,_0x2baae3)=>{const _0x1ee8c1=_0x9bfd00,_0x1014e3=this[_0x1ee8c1(0x131)](_0x2baae3[_0x1ee8c1(0x15a)]);return _0xab5eef[_0x1014e3]||(_0xab5eef[_0x1014e3]=[]),_0xab5eef[_0x1014e3][_0x1ee8c1(0x15f)](_0x2baae3),_0xab5eef;},{});_0x2c3214[_0x9bfd00(0x15e)][_0x9bfd00(0x14e)](_0x9bfd00(0x17e))&&_0x2c3214[_0x9bfd00(0x148)][_0x9bfd00(0x169)](_0x9bfd00(0x174))&&Object[_0x9bfd00(0x17f)](_0x98fe36)[_0x9bfd00(0x143)](([_0x33fa04,_0x2ec776])=>{const _0x5ad551=_0x9bfd00;_0x2c3214[_0x5ad551(0x15e)][_0x5ad551(0x169)](_0x5ad551(0x17e))[_0x5ad551(0x181)]({'name':_0x33fa04,'observable':()=>_0x1b15b6,'buttonViewCreator':()=>this[_0x5ad551(0x146)](_0x2ec776),'formViewCreator':()=>this[_0x5ad551(0x150)](_0x2ec776),'menuBarButtonViewCreator':()=>this[_0x5ad551(0x147)](_0x2ec776),'override':_0x5ad551(0x135)!==_0x33fa04});});}[_0x536e59(0x134)](){const _0x3aaf23=_0x536e59;super[_0x3aaf23(0x134)](),this[_0x3aaf23(0x14f)]&&clearInterval(this[_0x3aaf23(0x14f)]);}[_0x536e59(0x175)](_0x8b721d){const _0x46cab7=_0x536e59,{locale:_0x37cb85}=this[_0x46cab7(0x177)];return _0x8b721d[_0x46cab7(0x170)](_0x183081=>{const _0x5873c8=_0x46cab7,_0x46a063=_0x50648c(_0x37cb85,_0x183081,_0x5873c8(0x161));switch(_0x183081){case _0x4b60a8[_0x5873c8(0x154)]:return{'icon':_0x25f38b,'type':_0x4b60a8[_0x5873c8(0x154)],..._0x46a063};case _0x4b60a8[_0x5873c8(0x14c)]:return{'icon':_0x3c682d,'type':_0x4b60a8[_0x5873c8(0x14c)],..._0x46a063};case _0x4b60a8[_0x5873c8(0x14d)]:return{'icon':_0x342c35,'type':_0x4b60a8[_0x5873c8(0x14d)],..._0x46a063};case _0x4b60a8[_0x5873c8(0x176)]:return{'icon':_0x4251a5,'type':_0x4b60a8[_0x5873c8(0x176)],..._0x46a063};case _0x4b60a8[_0x5873c8(0x149)]:return{'icon':_0x521194,'type':_0x4b60a8[_0x5873c8(0x149)],..._0x46a063};case _0x4b60a8[_0x5873c8(0x139)]:return{'icon':_0x12ceaf,'type':_0x4b60a8[_0x5873c8(0x139)],..._0x46a063};case _0x4b60a8[_0x5873c8(0x16a)]:return{'icon':_0x2bbe83,'type':_0x4b60a8[_0x5873c8(0x16a)],..._0x46a063};}});}[_0x536e59(0x131)](_0x2a9633){const _0x5cb25a=_0x536e59;switch(_0x2a9633){case _0x4b60a8[_0x5cb25a(0x154)]:return _0x5cb25a(0x182);case _0x4b60a8[_0x5cb25a(0x14c)]:return _0x5cb25a(0x180);default:return _0x5cb25a(0x135);}}[_0x536e59(0x136)](_0x540cd4,_0x519245){const _0x445628=_0x536e59,_0x369b8f=this[_0x445628(0x177)],_0x415216=new _0x540cd4(_0x369b8f[_0x445628(0x164)]),_0x125114=_0x369b8f[_0x445628(0x148)][_0x445628(0x169)](_0x445628(0x174));return _0x415216[_0x445628(0x17a)](_0x445628(0x137))['to'](_0x125114),_0x415216['on'](_0x445628(0x13c),()=>{const _0x5b824b=_0x445628;_0x125114[_0x5b824b(0x13c)](_0x519245);}),_0x415216;}[_0x536e59(0x146)](_0x7e3268){const _0x599e9b=_0x536e59,{locale:_0xab8ece}=this[_0x599e9b(0x177)],_0x350e96=this[_0x599e9b(0x177)][_0x599e9b(0x15e)][_0x599e9b(0x169)](_0x599e9b(0x17e)),_0x170d8b=_0x7e3268[0x0],_0xb317b1=this[_0x599e9b(0x136)](_0x1ab57e,_0x170d8b[_0x599e9b(0x15a)]);return _0xb317b1[_0x599e9b(0x166)]=_0x170d8b[_0x599e9b(0x166)],_0xb317b1[_0x599e9b(0x17a)](_0x599e9b(0x153))['to'](_0x350e96,_0x599e9b(0x156),_0x2fcbf5=>_0x50648c(_0xab8ece,_0x170d8b[_0x599e9b(0x15a)],_0x2fcbf5?_0x599e9b(0x133):_0x599e9b(0x161))[_0x599e9b(0x13b)]),_0xb317b1[_0x599e9b(0x17c)]=!0x0,_0xb317b1;}[_0x536e59(0x150)](_0x307dad){const _0x38a071=_0x536e59,{locale:_0x1e28b4}=this[_0x38a071(0x177)],_0x26b660=this[_0x38a071(0x177)][_0x38a071(0x15e)][_0x38a071(0x169)](_0x38a071(0x17e));return _0x307dad[_0x38a071(0x170)](_0x29f270=>{const _0x269708=_0x38a071,_0x576d07=this[_0x269708(0x136)](_0x1ab57e,_0x29f270[_0x269708(0x15a)]);return _0x576d07[_0x269708(0x142)]=!0x0,_0x576d07[_0x269708(0x166)]=_0x29f270[_0x269708(0x166)],_0x576d07[_0x269708(0x17a)](_0x269708(0x153))['to'](_0x26b660,_0x269708(0x156),_0x14ba61=>_0x50648c(_0x1e28b4,_0x29f270[_0x269708(0x15a)],_0x14ba61?_0x269708(0x133):_0x269708(0x161))[_0x269708(0x13b)]),_0x576d07;});}[_0x536e59(0x147)](_0x24cb73){const _0x22bd82=_0x536e59;return _0x24cb73[_0x22bd82(0x170)](_0x2f3abf=>{const _0x50aa10=_0x22bd82,_0x405039=this[_0x50aa10(0x136)](_0x1d957d,_0x2f3abf[_0x50aa10(0x15a)]);return _0x405039[_0x50aa10(0x166)]=_0x2f3abf[_0x50aa10(0x166)],_0x405039[_0x50aa10(0x153)]=_0x2f3abf[_0x50aa10(0x172)],_0x405039;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xab9dff}from'ckeditor5/src/core.js';import{FileRepository as _0x1a3d5b}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xf26181}from'./uploadcareediting.js';import{UploadUtils as _0x231e36}from'./utils/uploadutils.js';import{getImageUrls as _0x20806a}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0xab9dff{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1a3d5b,_0xf26181];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1bfbd5=this['editor'];if(!!!_0x1bfbd5['config']['get']('uploadcare'))return;_0x1bfbd5['plugins']['get'](_0x1a3d5b)['createUploadAdapter']=_0xbef4c3=>new k(_0xbef4c3,_0x1bfbd5),_0x1bfbd5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3fb6d7,{imageElement:_0x99d481,data:_0x4dccdc})=>{_0x1bfbd5['model']['change'](_0x33e3a8=>{_0x33e3a8['setAttribute']('uploadcareImageId',_0x4dccdc['uploadcareImageId'],_0x99d481);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xbab936,_0x33b282){this['loader']=_0xbab936,this['editor']=_0x33b282,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2774dd=await this['loader']['file'];return _0x231e36['upload']({'file':_0x2774dd,'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':_0x212e1d=>{_0x212e1d&&_0x212e1d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x212e1d['value']);}})['then'](async _0x4419a8=>{const {imageFallbackUrl:_0x49b4f8,imageSources:_0xf7240}=_0x20806a(_0x4419a8['cdnUrl'],_0x4419a8['imageInfo']['width']);return{'uploadcareImageId':_0x4419a8['uuid'],'default':_0x49b4f8,'sources':_0xf7240};})['catch'](()=>{const _0x5dacd1=t('Cannot\x20upload\x20file:')+('\x20'+_0x2774dd['name']+'.');return Promise['reject'](_0x5dacd1);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5d4c92}from'../uploadcareconfig.js';export function getTranslation(_0x5c520a,_0x3f671e,_0x1abdf5){const t=_0x5c520a['t'],_0x1181b6=_0x5c520a['t'];switch(_0x3f671e){case _0x5d4c92['Local']:return{'text':_0x1181b6('Insert'===_0x1abdf5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1181b6('From\x20computer')};case _0x5d4c92['URL']:return{'text':'Insert'===_0x1abdf5?_0x1181b6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1181b6('Via\x20URL')};case _0x5d4c92['Dropbox']:return{'text':t('Insert'===_0x1abdf5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5d4c92['Facebook']:return{'text':t('Insert'===_0x1abdf5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5d4c92['GDrive']:return{'text':t('Insert'===_0x1abdf5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5d4c92['GPhotos']:return{'text':t('Insert'===_0x1abdf5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5d4c92['OneDrive']:return{'text':t('Insert'===_0x1abdf5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3f671e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x48b916=_0xedf3;(function(_0x382ba4,_0x1ded55){var _0x580b48=_0xedf3,_0x536c4b=_0x382ba4();while(!![]){try{var _0x481915=parseInt(_0x580b48(0xbc))/0x1+parseInt(_0x580b48(0xc2))/0x2+parseInt(_0x580b48(0xb4))/0x3+parseInt(_0x580b48(0xb9))/0x4*(parseInt(_0x580b48(0xb5))/0x5)+parseInt(_0x580b48(0xbe))/0x6+parseInt(_0x580b48(0xb7))/0x7*(-parseInt(_0x580b48(0xbb))/0x8)+-parseInt(_0x580b48(0xb6))/0x9*(parseInt(_0x580b48(0xc3))/0xa);if(_0x481915===_0x1ded55)break;else _0x536c4b['push'](_0x536c4b['shift']());}catch(_0x1842d3){_0x536c4b['push'](_0x536c4b['shift']());}}}(_0x168c,0xa0e5b));function _0x168c(){var _0xaa7811=['1276983egxGQO','491165zFKsHT','206883ptpAeD','6011971QaWRBt','true','36rpxLPE','createCollection','8ukUkQu','536245PTtuCY','forwardCycle','1169718IAvvGa','getFocusableElement','bindTemplate','div','2218018uiYzQd','710LUqYWd','fire','focusTracker','focusCycler'];_0x168c=function(){return _0xaa7811;};return _0x168c();}function _0xedf3(_0x5b9cec,_0x71da62){var _0x168c1f=_0x168c();return _0xedf3=function(_0xedf371,_0x25d236){_0xedf371=_0xedf371-0xb2;var _0x366c08=_0x168c1f[_0xedf371];return _0x366c08;},_0xedf3(_0x5b9cec,_0x71da62);}import{FocusTracker as _0x225b0c}from'ckeditor5/src/utils.js';import{View as _0x1f4236,FocusCycler as _0x17706d}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1f4236{[_0x48b916(0xb2)];[_0x48b916(0xb3)];constructor(_0x1efb36){var _0x1b3717=_0x48b916;super(_0x1efb36),this[_0x1b3717(0xb2)]=new _0x225b0c(),this[_0x1b3717(0xb3)]=new _0x17706d({'focusables':this[_0x1b3717(0xba)](),'focusTracker':this[_0x1b3717(0xb2)]});}[_0x48b916(0xbf)](){var _0x2892b1=_0x48b916;return{'tag':_0x2892b1(0xc1),'attributes':{'aria-hidden':_0x2892b1(0xb8),'tabindex':'0'},'on':{'focus':this[_0x2892b1(0xc0)]['to'](()=>{var _0x420499=_0x2892b1;this[_0x420499(0xb3)][_0x420499(0xc4)](_0x420499(0xbd));})}};}}
|