@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.0 → 46.0.1-alpha.10
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 _0x143989=_0x165a;function _0x165a(_0x37bb34,_0x130cb7){const _0x44913d=_0x4491();return _0x165a=function(_0x165ad7,_0x215d67){_0x165ad7=_0x165ad7-0x1ce;let _0x536649=_0x44913d[_0x165ad7];return _0x536649;},_0x165a(_0x37bb34,_0x130cb7);}(function(_0x29b6d8,_0x4d0867){const _0x37d25c=_0x165a,_0x553ec8=_0x29b6d8();while(!![]){try{const _0x5a6cb5=parseInt(_0x37d25c(0x1df))/0x1+-parseInt(_0x37d25c(0x1e5))/0x2*(parseInt(_0x37d25c(0x216))/0x3)+-parseInt(_0x37d25c(0x1d6))/0x4+parseInt(_0x37d25c(0x1e7))/0x5*(-parseInt(_0x37d25c(0x202))/0x6)+parseInt(_0x37d25c(0x219))/0x7+-parseInt(_0x37d25c(0x1ed))/0x8+parseInt(_0x37d25c(0x21f))/0x9;if(_0x5a6cb5===_0x4d0867)break;else _0x553ec8['push'](_0x553ec8['shift']());}catch(_0x5aa70a){_0x553ec8['push'](_0x553ec8['shift']());}}}(_0x4491,0xca002));import{Plugin as _0x16c6a1}from'ckeditor5/src/core.js';import{Dialog as _0x2d3fab}from'ckeditor5/src/ui.js';import{createElement as _0x239d4f,global as _0x246379,uid as _0xfd8c58}from'ckeditor5/src/utils.js';function _0x4491(){const _0x56823d=['iconHrefResolver','uploader-','model','view','_initConfig','_initSchema','imageInline','insertImage','uploadcare.pubkey','attributeToAttribute','getSelectedElement','once','body','requires','contentLanguage','fromCharCode','cleanupImage','config','_initCtx','240uCPwAu','render','true','ctxElement','closeMax','map','isOfficialPlugin','join','PictureEditing','UploadcareEditing','editor','data-uc-image-id','_initConversion','pluginName','extend','editing','document','isPremiumPlugin','input[uploadcare-file-input]','selection','3xSwAym','replaceImageSource','locale','6311571fRUWmx','href','getAttribute','querySelector','_ctxElement','isRegistered','19681488jZDwai','uploadcare','execute','ucContextId','afterInit','uploadcare.uploader','for','#uc-icon-arrow-down','add','schema','uploadcareImageReplace','2530684clHkdH','uc-config','\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','configElement','removeAttribute','uc-upload-ctx-provider','downcast','imageBlock','remove','390053QtJegC','get','elementToAttribute','_initImageProcessingIndicator','uploadcareImageId','listenTo','2495314oAsHph','appendChild','21795EJAdNq','init','conversion','destroy','commands','upcast','4771648pdyZTM','_configElement'];_0x4491=function(){return _0x56823d;};return _0x4491();}import{UploadcareCommand as _0x1c0b46}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x30054c}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xe45cdf}from'./utils/editingutils.js';export class UploadcareEditing extends _0x16c6a1{[_0x143989(0x1ee)]=null;[_0x143989(0x21d)]=null;static get[_0x143989(0x20f)](){const _0xf9e8d7=_0x143989;return _0xf9e8d7(0x20b);}static get[_0x143989(0x1fc)](){const _0x30f3a8=_0x143989;return[_0x30f3a8(0x20a),_0x30054c,_0x2d3fab];}static get[_0x143989(0x208)](){return!0x0;}static get[_0x143989(0x213)](){return!0x0;}[_0x143989(0x1ce)];get[_0x143989(0x1d9)](){const _0x556360=_0x143989;return this[_0x556360(0x1ee)];}get[_0x143989(0x205)](){const _0x103e1c=_0x143989;return this[_0x103e1c(0x21d)];}constructor(_0x2e63fc){const _0x32aa11=_0x143989;super(_0x2e63fc),this[_0x32aa11(0x1ce)]=_0xfd8c58();}[_0x143989(0x1e8)](){const _0x53b5ad=_0x143989,_0x284ad4=this[_0x53b5ad(0x20c)];_0x284ad4[_0x53b5ad(0x1eb)][_0x53b5ad(0x1d3)](_0x53b5ad(0x220),new _0x1c0b46(_0x284ad4));}[_0x143989(0x1cf)](){const _0x46a60d=_0x143989;this[_0x46a60d(0x1f4)](),this[_0x46a60d(0x20e)](),this[_0x46a60d(0x1f3)](),this[_0x46a60d(0x201)](),this[_0x46a60d(0x1e2)](),this[_0x46a60d(0x1e4)](this[_0x46a60d(0x20c)],_0x46a60d(0x1ea),()=>{const _0x3384b5=_0x46a60d;this[_0x3384b5(0x1ee)]&&(this[_0x3384b5(0x1ee)][_0x3384b5(0x1de)](),this[_0x3384b5(0x1ee)]=null),this[_0x3384b5(0x21d)]&&(this[_0x3384b5(0x21d)][_0x3384b5(0x1de)](),this[_0x3384b5(0x21d)]=null);const _0x4a93f7=_0x246379[_0x3384b5(0x212)][_0x3384b5(0x21c)](_0x3384b5(0x214));_0x4a93f7&&_0x4a93f7[_0x3384b5(0x1de)]();}),async function(_0x3f94d1){const _0x9c5fa1=_0x148aa7([0x78,0x47,0x4b,0x5a,0x4d,0x41,0x73,0x75,0x38,0x74,0x39,0x4f,0x35,0x71,0x6e,0x31,0x46,0x6d,0x59,0x72,0x52,0x43,0x65,0x67,0x63,0x4a,0x79,0x42,0x34,0x77,0x53,0x76,0x45,0x49,0x37,0x51,0x68,0x7a,0x36,0x48,0x62,0x55,0x6c,0x61,0x4c,0x50,0x32,0x70,0x4e,0x56,0x30,0x57,0x6b,0x66,0x54,0x6a,0x64,0x33,0x58,0x69,0x6f,0x44]),_0x56c5b2=0x6b3ee172,_0x38d2d4=0x6b398e7a^_0x56c5b2,_0x2aae9b=window[_0x148aa7([0x44,0x61,0x74,0x65])][_0x148aa7([0x6e,0x6f,0x77])](),_0x3543ea=_0x3f94d1[_0x148aa7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x824361=new window[(_0x148aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5080f1=>{_0x3543ea[_0x148aa7([0x6f,0x6e,0x63,0x65])](_0x148aa7([0x72,0x65,0x61,0x64,0x79]),_0x5080f1);}),_0x476b59={[_0x148aa7([0x6b,0x74,0x79])]:_0x148aa7([0x45,0x43]),[_0x148aa7([0x75,0x73,0x65])]:_0x148aa7([0x73,0x69,0x67]),[_0x148aa7([0x63,0x72,0x76])]:_0x148aa7([0x50,0x2d,0x32,0x35,0x36]),[_0x148aa7([0x78])]:_0x148aa7([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]),[_0x148aa7([0x79])]:_0x148aa7([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]),[_0x148aa7([0x61,0x6c,0x67])]:_0x148aa7([0x45,0x53,0x32,0x35,0x36])},_0x440851=_0x3543ea[_0x148aa7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x148aa7([0x67,0x65,0x74])](_0x148aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x233877(){let _0x972eee,_0x53e743=null,_0x220129=null;try{if(_0x440851==_0x148aa7([0x47,0x50,0x4c]))return _0x148aa7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x972eee=_0x3d362b(),!_0x972eee)return _0x148aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x972eee[_0x148aa7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x220129=_0x52de15(_0x972eee[_0x148aa7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x972eee[_0x148aa7([0x6a,0x74,0x69])])),await _0x8cb4b2()?_0x3f03df()?_0x215892()?_0x148aa7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x245515()?(_0x972eee[_0x148aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x148aa7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53e743=_0x141473(_0x148aa7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x972eee[_0x148aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x148aa7([0x74,0x72,0x69,0x61,0x6c])&&(_0x53e743=_0x141473(_0x148aa7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ab2bc()):_0x148aa7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x148aa7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x148aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x148aa7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x215892(){const _0x11706c=[_0x148aa7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x148aa7([0x74,0x72,0x69,0x61,0x6c])][_0x148aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x972eee[_0x148aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2aae9b/0x3e8:0xe10*_0x38d2d4;return _0x972eee[_0x148aa7([0x65,0x78,0x70])]<_0x11706c;}function _0x3f03df(){const _0x195ab5=_0x972eee[_0x148aa7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x195ab5&&(!!_0x195ab5[_0x148aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148aa7([0x2a]))||!!_0x195ab5[_0x148aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148aa7([0x55,0x50,0x4c,0x43])));}function _0x245515(){const _0x57048d=_0x165a,_0x44f2d7=_0x972eee[_0x148aa7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x44f2d7||0x0==_0x44f2d7[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53a942}=new URL(window[_0x148aa7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x57048d(0x21a)]);if(_0x44f2d7[_0x148aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53a942))return!0x0;const _0x4e72b8=_0x53a942[_0x148aa7([0x73,0x70,0x6c,0x69,0x74])](_0x148aa7([0x2e]));return _0x44f2d7[_0x148aa7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x224d73=>_0x224d73[_0x148aa7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148aa7([0x2a])))[_0x148aa7([0x6d,0x61,0x70])](_0x27e4c9=>_0x27e4c9[_0x148aa7([0x73,0x70,0x6c,0x69,0x74])](_0x148aa7([0x2e])))[_0x148aa7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf60a46=>_0xf60a46[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e72b8[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x148aa7([0x6d,0x61,0x70])](_0x29c780=>Array(_0x4e72b8[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29c780[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x148aa7([0x66,0x69,0x6c,0x6c])](_0x29c780[0x0]===_0x148aa7([0x2a])?_0x148aa7([0x2a]):'')[_0x148aa7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29c780))[_0x148aa7([0x73,0x6f,0x6d,0x65])](_0x57299c=>_0x4e72b8[_0x148aa7([0x65,0x76,0x65,0x72,0x79])]((_0x31204c,_0x168b83)=>_0x57299c[_0x168b83]===_0x31204c||_0x57299c[_0x168b83]===_0x148aa7([0x2a])));}function _0x5ab2bc(){return _0x53e743&&_0x220129?new window[(_0x148aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x194b0e,_0x190d2e)=>{_0x53e743[_0x148aa7([0x74,0x68,0x65,0x6e])](_0x194b0e,_0x190d2e),_0x220129[_0x148aa7([0x74,0x68,0x65,0x6e])](_0x482383=>{_0x482383!=_0x148aa7([0x56,0x61,0x6c,0x69,0x64])&&_0x194b0e(_0x482383);},_0x190d2e);}):_0x53e743||_0x220129||_0x148aa7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x52de15(_0x3003f7,_0x4c5a6d){return new window[(_0x148aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4da882=>{if(_0x4ad2f0())return _0x4da882(_0x148aa7([0x56,0x61,0x6c,0x69,0x64]));_0x4ce793(),_0x3543ea[_0x148aa7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x148aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15b9e8=!0x1;const _0x5bc439=_0xfd8c58();function _0x522e2a(_0x5df8bb){return!!_0x5df8bb&&(typeof _0x5df8bb===_0x148aa7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5df8bb===_0x148aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5df8bb[_0x148aa7([0x74,0x68,0x65,0x6e])]===_0x148aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5df8bb[_0x148aa7([0x63,0x61,0x74,0x63,0x68])]===_0x148aa7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47d23e(_0x1581d0){_0x530974(_0x1581d0)[_0x148aa7([0x74,0x68,0x65,0x6e])](_0x443fb9=>{if(!_0x443fb9||_0x443fb9[_0x148aa7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x148aa7([0x6f,0x6b]))return _0x148aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1166df(_0xd8dfa8(_0x5bc439+_0x4c5a6d))!=_0x443fb9[_0x148aa7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x148aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x148aa7([0x56,0x61,0x6c,0x69,0x64]);})[_0x148aa7([0x74,0x68,0x65,0x6e])](_0x2b6301=>(_0x3c5c70(),_0x2b6301),()=>{const _0x35f321=_0x488ddf();return null==_0x35f321?(_0x3c5c70(),_0x148aa7([0x56,0x61,0x6c,0x69,0x64])):_0x148aa7(_0x2aae9b-_0x35f321>(0x4f326572^_0x56c5b2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x148aa7([0x74,0x68,0x65,0x6e])](_0x4da882)[_0x148aa7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4da882(_0x148aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f50f0=0x6b080ff2^_0x56c5b2;function _0x3c5c70(){const _0x1653bf=_0x148aa7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1166df(_0xd8dfa8(_0x3003f7)),_0x18a0b1=_0xa79ec2(_0x1166df(window[_0x148aa7([0x4d,0x61,0x74,0x68])][_0x148aa7([0x63,0x65,0x69,0x6c])](_0x2aae9b/_0x2f50f0)));window[_0x148aa7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x148aa7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1653bf,_0x18a0b1);}function _0x488ddf(){const _0xa673c8=_0x148aa7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1166df(_0xd8dfa8(_0x3003f7)),_0x288c09=window[_0x148aa7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x148aa7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa673c8);return _0x288c09?window[_0x148aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa79ec2(_0x288c09),0x10)*_0x2f50f0:null;}function _0x530974(_0x221177){return new window[(_0x148aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16dfcd,_0x38172b)=>{_0x221177[_0x148aa7([0x74,0x68,0x65,0x6e])](_0x16dfcd,_0x38172b),window[_0x148aa7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38172b,0x6b3f35b2^_0x56c5b2);});}}_0x3543ea[_0x148aa7([0x6f,0x6e])](_0x148aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1abd44,_0x20d12b)=>{if(_0x20d12b[0x0]!=_0x3003f7)return _0x4da882(_0x148aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20d12b[0x1]={..._0x20d12b[0x1],[_0x148aa7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5bc439};},{[_0x148aa7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x148aa7([0x68,0x69,0x67,0x68])}),_0x3543ea[_0x148aa7([0x6f,0x6e])](_0x148aa7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x358688=>{_0x522e2a(_0x358688[_0x148aa7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15b9e8=!0x0,_0x47d23e(_0x358688[_0x148aa7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x148aa7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x148aa7([0x6c,0x6f,0x77])}),_0x824361[_0x148aa7([0x74,0x68,0x65,0x6e])](()=>{_0x15b9e8||_0x4da882(_0x148aa7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ad2f0(){return _0x3543ea[_0x148aa7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x148aa7([0x76,0x69,0x65,0x77])][_0x148aa7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x148aa7([0x61,0x75,0x74,0x6f]);}function _0x4ce793(){_0x3543ea[_0x148aa7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x148aa7([0x76,0x69,0x65,0x77])][_0x148aa7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x148aa7([0x61,0x75,0x74,0x6f]);}}function _0x141473(_0x28822f){const _0x342416=[new window[(_0x148aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290e31=>setTimeout(_0x290e31,0x6b37dfbe^_0x56c5b2)),_0x824361[_0x148aa7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x148aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3761=>{let _0x2b2777=0x0;_0x3543ea[_0x148aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x148aa7([0x6f,0x6e])](_0x148aa7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47963c,_0x5aa026)=>{_0x5aa026[0x0][_0x148aa7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b2777++,_0x2b2777==(0x6b3ee08a^_0x56c5b2)&&(_0x5c3761(),_0x47963c[_0x148aa7([0x6f,0x66,0x66])]());});}))];return window[_0x148aa7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x148aa7([0x72,0x61,0x63,0x65])](_0x342416)[_0x148aa7([0x74,0x68,0x65,0x6e])](()=>_0x28822f);}async function _0x1a68a9(){await _0x824361,_0x3543ea[_0x148aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x148aa7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c6236,_0x3543ea[_0x148aa7([0x6d,0x6f,0x64,0x65,0x6c])][_0x148aa7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c6236,_0x3543ea[_0x148aa7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x148aa7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1addd1(_0x58d3d8){const _0x14681c=_0x17b8db();_0x3543ea[_0x14681c]=_0x148aa7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58d3d8,_0x58d3d8!=_0x148aa7([0x56,0x61,0x6c,0x69,0x64])&&_0x1a68a9();}function _0x17b8db(){const _0x283c5c=window[_0x148aa7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x148aa7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x148aa7([0x6e,0x6f,0x77])]())[_0x148aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x148aa7([0x2e]),'');let _0x2ddefd=_0x148aa7([0x78]);for(let _0x2cd29f=0x0;_0x2cd29f<_0x283c5c[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cd29f+=0x2){let _0x383206=window[_0x148aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x283c5c[_0x148aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cd29f,_0x2cd29f+0x2));_0x383206>=_0x9c5fa1[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x383206-=_0x9c5fa1[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ddefd+=_0x9c5fa1[_0x383206];}return _0x2ddefd;}function _0x3d362b(){const _0x7e5dfb=_0x440851[_0x148aa7([0x73,0x70,0x6c,0x69,0x74])](_0x148aa7([0x2e]));if(0x3!=_0x7e5dfb[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3fe8bb(_0x7e5dfb[0x1]);function _0x3fe8bb(_0x16fbb7){const _0x72a6f4=_0x3e3df6(_0x16fbb7);return _0x72a6f4&&_0x322e54()?_0x72a6f4:null;function _0x322e54(){const _0x33f783=_0x72a6f4[_0x148aa7([0x6a,0x74,0x69])],_0x29fff1=window[_0x148aa7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33f783[_0x148aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33f783[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25bbd5={..._0x72a6f4,[_0x148aa7([0x6a,0x74,0x69])]:_0x33f783[_0x148aa7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33f783[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25bbd5[_0x148aa7([0x76,0x63])],_0xd8dfa8(_0x25bbd5)==_0x29fff1;}}}async function _0x8cb4b2(){let _0x4a6641=!0x0;try{const _0x3dbb79=_0x440851[_0x148aa7([0x73,0x70,0x6c,0x69,0x74])](_0x148aa7([0x2e])),[_0x5445e2,_0xde6354,_0x2fe065]=_0x3dbb79;return _0x25a2fa(_0x5445e2),await _0x171e61(_0x5445e2,_0xde6354,_0x2fe065),_0x4a6641;}catch{return!0x1;}function _0x25a2fa(_0xe2861a){const _0x27a69b=_0x3e3df6(_0xe2861a);_0x27a69b&&_0x27a69b[_0x148aa7([0x61,0x6c,0x67])]==_0x148aa7([0x45,0x53,0x32,0x35,0x36])||(_0x4a6641=!0x1);}async function _0x171e61(_0x349292,_0x51e4fa,_0x21e6f2){const _0x165c0e=window[_0x148aa7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x148aa7([0x66,0x72,0x6f,0x6d])](_0x2a6de5(_0x21e6f2),_0x24883c=>_0x24883c[_0x148aa7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14907e=new window[(_0x148aa7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x148aa7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x349292+_0x148aa7([0x2e])+_0x51e4fa),_0x137ed8=window[_0x148aa7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x148aa7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x137ed8)return;const _0x1d2831=await _0x137ed8[_0x148aa7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x148aa7([0x6a,0x77,0x6b]),_0x476b59,{[_0x148aa7([0x6e,0x61,0x6d,0x65])]:_0x148aa7([0x45,0x43,0x44,0x53,0x41]),[_0x148aa7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x148aa7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x148aa7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x137ed8[_0x148aa7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x148aa7([0x6e,0x61,0x6d,0x65])]:_0x148aa7([0x45,0x43,0x44,0x53,0x41]),[_0x148aa7([0x68,0x61,0x73,0x68])]:{[_0x148aa7([0x6e,0x61,0x6d,0x65])]:_0x148aa7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d2831,_0x165c0e,_0x14907e)||(_0x4a6641=!0x1);}}function _0x3e3df6(_0x18f235){return _0x18f235[_0x148aa7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x148aa7([0x65,0x79]))?JSON[_0x148aa7([0x70,0x61,0x72,0x73,0x65])](_0x2a6de5(_0x18f235)):null;}function _0x2a6de5(_0x36d08d){return window[_0x148aa7([0x61,0x74,0x6f,0x62])](_0x36d08d[_0x148aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x148aa7([0x2b]))[_0x148aa7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x148aa7([0x2f])));}function _0xd8dfa8(_0x48390d){let _0x2d986d=0x1505;function _0x40422c(_0xf267c2){for(let _0x4b7ad7=0x0;_0x4b7ad7<_0xf267c2[_0x148aa7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b7ad7++){const _0x14371e=_0xf267c2[_0x148aa7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b7ad7);_0x2d986d=(_0x2d986d<<0x5)+_0x2d986d+_0x14371e,_0x2d986d&=_0x2d986d;}}function _0x511825(_0x2c9ea9){Array[_0x148aa7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2c9ea9)?_0x2c9ea9[_0x148aa7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x511825):_0x2c9ea9&&typeof _0x2c9ea9==_0x148aa7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x148aa7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2c9ea9)[_0x148aa7([0x73,0x6f,0x72,0x74])]()[_0x148aa7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4abf38,_0xd030de])=>{_0x40422c(_0x4abf38),_0x511825(_0xd030de);}):_0x40422c(window[_0x148aa7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2c9ea9));}return _0x511825(_0x48390d),_0x2d986d>>>0x0;}function _0x1166df(_0x26a2f0){return _0x26a2f0[_0x148aa7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x148aa7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x148aa7([0x30]));}function _0xa79ec2(_0x1e967b){return _0x1e967b[_0x148aa7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x148aa7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x148aa7([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c6236(){}function _0x148aa7(_0x28901d){const _0x18165c=_0x165a;return _0x28901d[_0x18165c(0x207)](_0x56c5f2=>String[_0x18165c(0x1fe)](_0x56c5f2))[_0x18165c(0x209)]('');}_0x1addd1(await _0x233877());}(this);}[_0x143989(0x1f4)](){const _0x50a96f=_0x143989,_0x54aaf4=this[_0x50a96f(0x20c)][_0x50a96f(0x1f1)][_0x50a96f(0x1d4)];_0x54aaf4[_0x50a96f(0x21e)](_0x50a96f(0x1dd))&&_0x54aaf4[_0x50a96f(0x210)](_0x50a96f(0x1dd),{'allowAttributes':[_0x50a96f(0x1e3)]}),_0x54aaf4[_0x50a96f(0x21e)](_0x50a96f(0x1f5))&&_0x54aaf4[_0x50a96f(0x210)](_0x50a96f(0x1f5),{'allowAttributes':[_0x50a96f(0x1e3)]});}[_0x143989(0x20e)](){const _0x4eaac4=_0x143989,_0x199018=this[_0x4eaac4(0x20c)];_0x199018[_0x4eaac4(0x1e9)][_0x4eaac4(0x1d1)](_0x4eaac4(0x1dc))[_0x4eaac4(0x1f8)]({'model':_0x4eaac4(0x1e3),'view':_0x4eaac4(0x20d)}),_0x199018[_0x4eaac4(0x1e9)][_0x4eaac4(0x1d1)](_0x4eaac4(0x1ec))[_0x4eaac4(0x1e1)]({'model':{'key':_0x4eaac4(0x1e3),'value':_0x228249=>_0x228249[_0x4eaac4(0x21b)](_0x4eaac4(0x20d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x215d9b=_0x199018[_0x4eaac4(0x1eb)][_0x4eaac4(0x1e0)](_0x4eaac4(0x217));_0x215d9b&&this[_0x4eaac4(0x1e4)](_0x215d9b,_0x4eaac4(0x1ff),(_0x1d80d3,[_0x47293f,_0x1c38d0])=>{const _0x477b4f=_0x4eaac4;_0x47293f[_0x477b4f(0x1da)](_0x477b4f(0x1e3),_0x1c38d0);});}[_0x143989(0x1f3)](){const _0x41795e=_0x143989,_0x32839e=this[_0x41795e(0x20c)][_0x41795e(0x200)][_0x41795e(0x1e0)](_0x41795e(0x1d0))||{},_0x3c0d2b=this[_0x41795e(0x20c)][_0x41795e(0x200)][_0x41795e(0x1e0)](_0x41795e(0x1f7))||'';this[_0x41795e(0x1ee)]=_0x239d4f(_0x246379[_0x41795e(0x212)],_0x41795e(0x1d7),{..._0x32839e,'pubkey':_0x3c0d2b,'ctx-name':_0x41795e(0x1f0)+this[_0x41795e(0x1ce)],'sourceList':'','imgOnly':_0x41795e(0x204),'removeCopyright':_0x41795e(0x204),'localeName':this[_0x41795e(0x20c)][_0x41795e(0x218)][_0x41795e(0x1fd)],'externalSourcesEmbedCss':_0x41795e(0x1d8)}),this[_0x41795e(0x1ee)][_0x41795e(0x1ef)]=_0x4b5cae=>{const _0x5095d4=_0x41795e;if(_0x5095d4(0x206)==_0x4b5cae)return _0x5095d4(0x1d2);},_0x246379[_0x41795e(0x212)][_0x41795e(0x1fb)][_0x41795e(0x1e6)](this[_0x41795e(0x1ee)]);}[_0x143989(0x201)](){const _0x18c3dc=_0x143989;this[_0x18c3dc(0x21d)]=_0x239d4f(_0x246379[_0x18c3dc(0x212)],_0x18c3dc(0x1db),{'ctx-name':_0x18c3dc(0x1f0)+this[_0x18c3dc(0x1ce)]}),_0x246379[_0x18c3dc(0x212)][_0x18c3dc(0x1fb)][_0x18c3dc(0x1e6)](this[_0x18c3dc(0x21d)]);}[_0x143989(0x1e2)](){const _0x396ce7=_0x143989,_0x4299ad=this[_0x396ce7(0x20c)][_0x396ce7(0x1eb)][_0x396ce7(0x1e0)](_0x396ce7(0x1f6));_0x4299ad&&this[_0x396ce7(0x1e4)](_0x4299ad,_0x396ce7(0x221),()=>{const _0x48a93f=_0x396ce7,_0x12d42e=this[_0x48a93f(0x20c)][_0x48a93f(0x1f1)][_0x48a93f(0x212)][_0x48a93f(0x215)][_0x48a93f(0x1f9)]();_0x12d42e&&_0x12d42e[_0x48a93f(0x21b)](_0x48a93f(0x1e3))&&this[_0x48a93f(0x20c)][_0x48a93f(0x211)][_0x48a93f(0x1f2)][_0x48a93f(0x1fa)](_0x48a93f(0x203),()=>{const _0x2cf618=_0x48a93f;_0xe45cdf(this[_0x2cf618(0x20c)],_0x12d42e);});});const _0x525ff9=this[_0x396ce7(0x20c)][_0x396ce7(0x1eb)][_0x396ce7(0x1e0)](_0x396ce7(0x1d5));_0x525ff9&&this[_0x396ce7(0x1e4)](_0x525ff9,_0x396ce7(0x221),()=>{const _0x158556=_0x396ce7,_0x11881d=this[_0x158556(0x20c)][_0x158556(0x1f1)][_0x158556(0x212)][_0x158556(0x215)][_0x158556(0x1f9)]();_0x11881d&&_0x11881d[_0x158556(0x21b)](_0x158556(0x1e3))&&this[_0x158556(0x20c)][_0x158556(0x211)][_0x158556(0x1f2)][_0x158556(0x1fa)](_0x158556(0x203),()=>{const _0x573ea2=_0x158556;_0xe45cdf(this[_0x573ea2(0x20c)],_0x11881d);});});}}
|
|
23
|
+
const _0x4874dc=_0x5ad0;(function(_0x54800c,_0x103b6d){const _0x5c98bb=_0x5ad0,_0x2fceff=_0x54800c();while(!![]){try{const _0x594ba2=-parseInt(_0x5c98bb(0xd1))/0x1+parseInt(_0x5c98bb(0xc4))/0x2*(parseInt(_0x5c98bb(0xda))/0x3)+-parseInt(_0x5c98bb(0xa9))/0x4*(-parseInt(_0x5c98bb(0xb0))/0x5)+-parseInt(_0x5c98bb(0xdc))/0x6+parseInt(_0x5c98bb(0xb8))/0x7*(parseInt(_0x5c98bb(0xb9))/0x8)+-parseInt(_0x5c98bb(0xbb))/0x9+parseInt(_0x5c98bb(0xd4))/0xa;if(_0x594ba2===_0x103b6d)break;else _0x2fceff['push'](_0x2fceff['shift']());}catch(_0x5de99a){_0x2fceff['push'](_0x2fceff['shift']());}}}(_0x5dc7,0xbaddf));import{Plugin as _0x5473f7}from'ckeditor5/src/core.js';import{Dialog as _0x287a1d}from'ckeditor5/src/ui.js';import{createElement as _0x1d8043,global as _0x2cada8,uid as _0x543a01}from'ckeditor5/src/utils.js';function _0x5dc7(){const _0x565a06=['getAttribute','isRegistered','7699780kvJMtl','model','attributeToAttribute','editing','commands','isPremiumPlugin','201966SUznni','_configElement','3930954ukNNqh','uploadcareImageReplace','iconHrefResolver','afterInit','replaceImageSource','_initSchema','uploader-','view','schema','href','uploadcareImageId','add','true','UploadcareEditing','data-uc-image-id','document','isOfficialPlugin','elementToAttribute','input[uploadcare-file-input]','_initConversion','uploadcare.pubkey','init','querySelector','downcast','for','contentLanguage','cleanupImage','_initConfig','_initCtx','_ctxElement','uc-config','insertImage','get','map','236KDWePQ','getSelectedElement','_initImageProcessingIndicator','destroy','locale','conversion','ctxElement','96820PISTVV','#uc-icon-arrow-down','PictureEditing','upcast','uc-upload-ctx-provider','\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','remove','uploadcare.uploader','20762USuUVY','3464ePTyXR','ucContextId','6705027sRVydY','removeAttribute','requires','fromCharCode','render','join','uploadcare','listenTo','extend','4qjKoFJ','config','execute','body','pluginName','once','configElement','imageInline','closeMax','imageBlock','appendChild','selection','editor','1165807WnBwhJ'];_0x5dc7=function(){return _0x565a06;};return _0x5dc7();}function _0x5ad0(_0x3c8ad2,_0x2f141d){const _0x5dc7dc=_0x5dc7();return _0x5ad0=function(_0x5ad03a,_0x442950){_0x5ad03a=_0x5ad03a-0x93;let _0x48dc71=_0x5dc7dc[_0x5ad03a];return _0x48dc71;},_0x5ad0(_0x3c8ad2,_0x2f141d);}import{UploadcareCommand as _0x124e76}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3b8bdc}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2bf7ac}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5473f7{[_0x4874dc(0xdb)]=null;[_0x4874dc(0xa4)]=null;static get[_0x4874dc(0xc8)](){const _0x2ba52f=_0x4874dc;return _0x2ba52f(0x94);}static get[_0x4874dc(0xbd)](){const _0x5bd2d7=_0x4874dc;return[_0x5bd2d7(0xb2),_0x3b8bdc,_0x287a1d];}static get[_0x4874dc(0x97)](){return!0x0;}static get[_0x4874dc(0xd9)](){return!0x0;}[_0x4874dc(0xba)];get[_0x4874dc(0xca)](){const _0x83e72d=_0x4874dc;return this[_0x83e72d(0xdb)];}get[_0x4874dc(0xaf)](){const _0x70524a=_0x4874dc;return this[_0x70524a(0xa4)];}constructor(_0x4c1ef4){const _0x233ce9=_0x4874dc;super(_0x4c1ef4),this[_0x233ce9(0xba)]=_0x543a01();}[_0x4874dc(0x9c)](){const _0x136d06=_0x4874dc,_0x406f32=this[_0x136d06(0xd0)];_0x406f32[_0x136d06(0xd8)][_0x136d06(0xe7)](_0x136d06(0xc1),new _0x124e76(_0x406f32));}[_0x4874dc(0xdf)](){const _0x7c18d9=_0x4874dc;this[_0x7c18d9(0xe1)](),this[_0x7c18d9(0x9a)](),this[_0x7c18d9(0xa2)](),this[_0x7c18d9(0xa3)](),this[_0x7c18d9(0xab)](),this[_0x7c18d9(0xc2)](this[_0x7c18d9(0xd0)],_0x7c18d9(0xac),()=>{const _0x13dcbe=_0x7c18d9;this[_0x13dcbe(0xdb)]&&(this[_0x13dcbe(0xdb)][_0x13dcbe(0xb6)](),this[_0x13dcbe(0xdb)]=null),this[_0x13dcbe(0xa4)]&&(this[_0x13dcbe(0xa4)][_0x13dcbe(0xb6)](),this[_0x13dcbe(0xa4)]=null);const _0x1d6736=_0x2cada8[_0x13dcbe(0x96)][_0x13dcbe(0x9d)](_0x13dcbe(0x99));_0x1d6736&&_0x1d6736[_0x13dcbe(0xb6)]();}),async function(_0x253355){const _0x2350bc=_0xe642c1([0x73,0x6f,0x70,0x41,0x76,0x47,0x64,0x45,0x42,0x49,0x4a,0x36,0x57,0x6b,0x67,0x61,0x62,0x48,0x55,0x71,0x31,0x44,0x37,0x63,0x50,0x7a,0x68,0x4c,0x43,0x34,0x72,0x4f,0x35,0x5a,0x54,0x6d,0x38,0x52,0x33,0x56,0x32,0x77,0x75,0x79,0x53,0x51,0x4e,0x39,0x6a,0x4b,0x46,0x4d,0x66,0x58,0x30,0x59,0x69,0x65,0x6e,0x78,0x74,0x6c]),_0x43eb0a=0x50e52eeb,_0x47f13d=0x50e24123^_0x43eb0a,_0xb507c8=window[_0xe642c1([0x44,0x61,0x74,0x65])][_0xe642c1([0x6e,0x6f,0x77])](),_0x4e88d8=_0x253355[_0xe642c1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x391376=new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58c5d4=>{_0x4e88d8[_0xe642c1([0x6f,0x6e,0x63,0x65])](_0xe642c1([0x72,0x65,0x61,0x64,0x79]),_0x58c5d4);}),_0x1d4fe5={[_0xe642c1([0x6b,0x74,0x79])]:_0xe642c1([0x45,0x43]),[_0xe642c1([0x75,0x73,0x65])]:_0xe642c1([0x73,0x69,0x67]),[_0xe642c1([0x63,0x72,0x76])]:_0xe642c1([0x50,0x2d,0x32,0x35,0x36]),[_0xe642c1([0x78])]:_0xe642c1([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]),[_0xe642c1([0x79])]:_0xe642c1([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]),[_0xe642c1([0x61,0x6c,0x67])]:_0xe642c1([0x45,0x53,0x32,0x35,0x36])},_0x894da8=_0x4e88d8[_0xe642c1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe642c1([0x67,0x65,0x74])](_0xe642c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2dbe33(){let _0x1608cc,_0xc9df04=null,_0x5982f2=null;try{if(_0x894da8==_0xe642c1([0x47,0x50,0x4c]))return _0xe642c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1608cc=_0x51be45(),!_0x1608cc)return _0xe642c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1608cc[_0xe642c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5982f2=_0x281472(_0x1608cc[_0xe642c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1608cc[_0xe642c1([0x6a,0x74,0x69])])),await _0x24ba5c()?_0x57858a()?_0x5d3149()?_0xe642c1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x516a1d()?(_0x1608cc[_0xe642c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe642c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc9df04=_0x2145e4(_0xe642c1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1608cc[_0xe642c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe642c1([0x74,0x72,0x69,0x61,0x6c])&&(_0xc9df04=_0x2145e4(_0xe642c1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x432324()):_0xe642c1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe642c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe642c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe642c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d3149(){const _0x535247=[_0xe642c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe642c1([0x74,0x72,0x69,0x61,0x6c])][_0xe642c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1608cc[_0xe642c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb507c8/0x3e8:0xe10*_0x47f13d;return _0x1608cc[_0xe642c1([0x65,0x78,0x70])]<_0x535247;}function _0x57858a(){const _0x70bc0f=_0x1608cc[_0xe642c1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x70bc0f&&(!!_0x70bc0f[_0xe642c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe642c1([0x2a]))||!!_0x70bc0f[_0xe642c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe642c1([0x55,0x50,0x4c,0x43])));}function _0x516a1d(){const _0x4d2a2c=_0x5ad0,_0x47c9b4=_0x1608cc[_0xe642c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47c9b4||0x0==_0x47c9b4[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10b192}=new URL(window[_0xe642c1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4d2a2c(0xe5)]);if(_0x47c9b4[_0xe642c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10b192))return!0x0;const _0x5d850e=_0x10b192[_0xe642c1([0x73,0x70,0x6c,0x69,0x74])](_0xe642c1([0x2e]));return _0x47c9b4[_0xe642c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xad09bd=>_0xad09bd[_0xe642c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe642c1([0x2a])))[_0xe642c1([0x6d,0x61,0x70])](_0x59d5e6=>_0x59d5e6[_0xe642c1([0x73,0x70,0x6c,0x69,0x74])](_0xe642c1([0x2e])))[_0xe642c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16b22d=>_0x16b22d[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d850e[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe642c1([0x6d,0x61,0x70])](_0x230267=>Array(_0x5d850e[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x230267[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe642c1([0x66,0x69,0x6c,0x6c])](_0x230267[0x0]===_0xe642c1([0x2a])?_0xe642c1([0x2a]):'')[_0xe642c1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x230267))[_0xe642c1([0x73,0x6f,0x6d,0x65])](_0x596a58=>_0x5d850e[_0xe642c1([0x65,0x76,0x65,0x72,0x79])]((_0x47ac42,_0xfa46e5)=>_0x596a58[_0xfa46e5]===_0x47ac42||_0x596a58[_0xfa46e5]===_0xe642c1([0x2a])));}function _0x432324(){return _0xc9df04&&_0x5982f2?new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cd794,_0x5ed769)=>{_0xc9df04[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x2cd794,_0x5ed769),_0x5982f2[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x45ec4a=>{_0x45ec4a!=_0xe642c1([0x56,0x61,0x6c,0x69,0x64])&&_0x2cd794(_0x45ec4a);},_0x5ed769);}):_0xc9df04||_0x5982f2||_0xe642c1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x281472(_0xf16665,_0x398b9b){return new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f972f=>{if(_0x185c36())return _0x2f972f(_0xe642c1([0x56,0x61,0x6c,0x69,0x64]));_0x32c644(),_0x4e88d8[_0xe642c1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe642c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa958a6=!0x1;const _0x4bd042=_0x543a01();function _0x1f304c(_0x42d2cc){return!!_0x42d2cc&&(typeof _0x42d2cc===_0xe642c1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x42d2cc===_0xe642c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x42d2cc[_0xe642c1([0x74,0x68,0x65,0x6e])]===_0xe642c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x42d2cc[_0xe642c1([0x63,0x61,0x74,0x63,0x68])]===_0xe642c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c1743(_0x4e22f7){_0x54147c(_0x4e22f7)[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x5af657=>{if(!_0x5af657||_0x5af657[_0xe642c1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe642c1([0x6f,0x6b]))return _0xe642c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x22e0a9(_0x4bc84f(_0x4bd042+_0x398b9b))!=_0x5af657[_0xe642c1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe642c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe642c1([0x56,0x61,0x6c,0x69,0x64]);})[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x9b5f24=>(_0x123e08(),_0x9b5f24),()=>{const _0x1a5f55=_0x10cd66();return null==_0x1a5f55?(_0x123e08(),_0xe642c1([0x56,0x61,0x6c,0x69,0x64])):_0xe642c1(_0xb507c8-_0x1a5f55>(0x74e9aaeb^_0x43eb0a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x2f972f)[_0xe642c1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f972f(_0xe642c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x282991=0x50d3c06b^_0x43eb0a;function _0x123e08(){const _0x4b412f=_0xe642c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x22e0a9(_0x4bc84f(_0xf16665)),_0xb514da=_0xdaf2bd(_0x22e0a9(window[_0xe642c1([0x4d,0x61,0x74,0x68])][_0xe642c1([0x63,0x65,0x69,0x6c])](_0xb507c8/_0x282991)));window[_0xe642c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe642c1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b412f,_0xb514da);}function _0x10cd66(){const _0x539edc=_0xe642c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x22e0a9(_0x4bc84f(_0xf16665)),_0x45ac52=window[_0xe642c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe642c1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x539edc);return _0x45ac52?window[_0xe642c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdaf2bd(_0x45ac52),0x10)*_0x282991:null;}function _0x54147c(_0x55ab80){return new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f44af,_0x17b3d6)=>{_0x55ab80[_0xe642c1([0x74,0x68,0x65,0x6e])](_0x4f44af,_0x17b3d6),window[_0xe642c1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17b3d6,0x50e4fa2b^_0x43eb0a);});}}_0x4e88d8[_0xe642c1([0x6f,0x6e])](_0xe642c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c507c,_0x17327b)=>{if(_0x17327b[0x0]!=_0xf16665)return _0x2f972f(_0xe642c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17327b[0x1]={..._0x17327b[0x1],[_0xe642c1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4bd042};},{[_0xe642c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe642c1([0x68,0x69,0x67,0x68])}),_0x4e88d8[_0xe642c1([0x6f,0x6e])](_0xe642c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5925d0=>{_0x1f304c(_0x5925d0[_0xe642c1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa958a6=!0x0,_0x2c1743(_0x5925d0[_0xe642c1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe642c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe642c1([0x6c,0x6f,0x77])}),_0x391376[_0xe642c1([0x74,0x68,0x65,0x6e])](()=>{_0xa958a6||_0x2f972f(_0xe642c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x185c36(){return _0x4e88d8[_0xe642c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe642c1([0x76,0x69,0x65,0x77])][_0xe642c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe642c1([0x61,0x75,0x74,0x6f]);}function _0x32c644(){_0x4e88d8[_0xe642c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe642c1([0x76,0x69,0x65,0x77])][_0xe642c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe642c1([0x61,0x75,0x74,0x6f]);}}function _0x2145e4(_0x396a83){const _0x35d098=[new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x494dd2=>setTimeout(_0x494dd2,0x50ec1027^_0x43eb0a)),_0x391376[_0xe642c1([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe1fe86=>{let _0x9a43f2=0x0;_0x4e88d8[_0xe642c1([0x6d,0x6f,0x64,0x65,0x6c])][_0xe642c1([0x6f,0x6e])](_0xe642c1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4091e6,_0x1a9925)=>{_0x1a9925[0x0][_0xe642c1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9a43f2++,_0x9a43f2==(0x50e52f13^_0x43eb0a)&&(_0xe1fe86(),_0x4091e6[_0xe642c1([0x6f,0x66,0x66])]());});}))];return window[_0xe642c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe642c1([0x72,0x61,0x63,0x65])](_0x35d098)[_0xe642c1([0x74,0x68,0x65,0x6e])](()=>_0x396a83);}async function _0x283476(){await _0x391376,_0x4e88d8[_0xe642c1([0x6d,0x6f,0x64,0x65,0x6c])][_0xe642c1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42a53c,_0x4e88d8[_0xe642c1([0x6d,0x6f,0x64,0x65,0x6c])][_0xe642c1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42a53c,_0x4e88d8[_0xe642c1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe642c1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x30fc0e(_0x324a01){const _0x45530b=_0x325429();_0x4e88d8[_0x45530b]=_0xe642c1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x324a01,_0x324a01!=_0xe642c1([0x56,0x61,0x6c,0x69,0x64])&&_0x283476();}function _0x325429(){const _0x2b5089=window[_0xe642c1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe642c1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe642c1([0x6e,0x6f,0x77])]())[_0xe642c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe642c1([0x2e]),'');let _0x54c02f=_0xe642c1([0x73]);for(let _0x109b9f=0x0;_0x109b9f<_0x2b5089[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x109b9f+=0x2){let _0x3afa3b=window[_0xe642c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b5089[_0xe642c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x109b9f,_0x109b9f+0x2));_0x3afa3b>=_0x2350bc[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3afa3b-=_0x2350bc[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54c02f+=_0x2350bc[_0x3afa3b];}return _0x54c02f;}function _0x51be45(){const _0x13c628=_0x894da8[_0xe642c1([0x73,0x70,0x6c,0x69,0x74])](_0xe642c1([0x2e]));if(0x3!=_0x13c628[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ee1f7(_0x13c628[0x1]);function _0x3ee1f7(_0x46fa61){const _0x28656f=_0x330a48(_0x46fa61);return _0x28656f&&_0x235ded()?_0x28656f:null;function _0x235ded(){const _0x5d68f2=_0x28656f[_0xe642c1([0x6a,0x74,0x69])],_0x447070=window[_0xe642c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d68f2[_0xe642c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d68f2[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f3c8b={..._0x28656f,[_0xe642c1([0x6a,0x74,0x69])]:_0x5d68f2[_0xe642c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d68f2[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f3c8b[_0xe642c1([0x76,0x63])],_0x4bc84f(_0x3f3c8b)==_0x447070;}}}async function _0x24ba5c(){let _0x80cdf8=!0x0;try{const _0x2db3ee=_0x894da8[_0xe642c1([0x73,0x70,0x6c,0x69,0x74])](_0xe642c1([0x2e])),[_0x3623ab,_0x29799c,_0x2937e1]=_0x2db3ee;return _0x48c90c(_0x3623ab),await _0x6462c0(_0x3623ab,_0x29799c,_0x2937e1),_0x80cdf8;}catch{return!0x1;}function _0x48c90c(_0x11e3d4){const _0x555702=_0x330a48(_0x11e3d4);_0x555702&&_0x555702[_0xe642c1([0x61,0x6c,0x67])]==_0xe642c1([0x45,0x53,0x32,0x35,0x36])||(_0x80cdf8=!0x1);}async function _0x6462c0(_0x518b94,_0x2bf4fa,_0x674865){const _0x23b614=window[_0xe642c1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe642c1([0x66,0x72,0x6f,0x6d])](_0x4a59a2(_0x674865),_0x66abe4=>_0x66abe4[_0xe642c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3cc707=new window[(_0xe642c1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe642c1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x518b94+_0xe642c1([0x2e])+_0x2bf4fa),_0x2cffc6=window[_0xe642c1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe642c1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cffc6)return;const _0x3dd765=await _0x2cffc6[_0xe642c1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe642c1([0x6a,0x77,0x6b]),_0x1d4fe5,{[_0xe642c1([0x6e,0x61,0x6d,0x65])]:_0xe642c1([0x45,0x43,0x44,0x53,0x41]),[_0xe642c1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe642c1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe642c1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cffc6[_0xe642c1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe642c1([0x6e,0x61,0x6d,0x65])]:_0xe642c1([0x45,0x43,0x44,0x53,0x41]),[_0xe642c1([0x68,0x61,0x73,0x68])]:{[_0xe642c1([0x6e,0x61,0x6d,0x65])]:_0xe642c1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3dd765,_0x23b614,_0x3cc707)||(_0x80cdf8=!0x1);}}function _0x330a48(_0x26d9ff){return _0x26d9ff[_0xe642c1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe642c1([0x65,0x79]))?JSON[_0xe642c1([0x70,0x61,0x72,0x73,0x65])](_0x4a59a2(_0x26d9ff)):null;}function _0x4a59a2(_0x3e9576){return window[_0xe642c1([0x61,0x74,0x6f,0x62])](_0x3e9576[_0xe642c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe642c1([0x2b]))[_0xe642c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe642c1([0x2f])));}function _0x4bc84f(_0x10d39d){let _0x38453b=0x1505;function _0x28c376(_0x1d1778){for(let _0x1e5206=0x0;_0x1e5206<_0x1d1778[_0xe642c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e5206++){const _0x1bab63=_0x1d1778[_0xe642c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e5206);_0x38453b=(_0x38453b<<0x5)+_0x38453b+_0x1bab63,_0x38453b&=_0x38453b;}}function _0xa31589(_0x3c3cb6){Array[_0xe642c1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c3cb6)?_0x3c3cb6[_0xe642c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa31589):_0x3c3cb6&&typeof _0x3c3cb6==_0xe642c1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe642c1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c3cb6)[_0xe642c1([0x73,0x6f,0x72,0x74])]()[_0xe642c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x376eee,_0x162fc7])=>{_0x28c376(_0x376eee),_0xa31589(_0x162fc7);}):_0x28c376(window[_0xe642c1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c3cb6));}return _0xa31589(_0x10d39d),_0x38453b>>>0x0;}function _0x22e0a9(_0x22c483){return _0x22c483[_0xe642c1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe642c1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe642c1([0x30]));}function _0xdaf2bd(_0x2c71d7){return _0x2c71d7[_0xe642c1([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe642c1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe642c1([0x6a,0x6f,0x69,0x6e])]('');}function _0x42a53c(){}function _0xe642c1(_0x135ace){const _0x46b492=_0x5ad0;return _0x135ace[_0x46b492(0xa8)](_0x3d634c=>String[_0x46b492(0xbe)](_0x3d634c))[_0x46b492(0xc0)]('');}_0x30fc0e(await _0x2dbe33());}(this);}[_0x4874dc(0xe1)](){const _0x24dfe2=_0x4874dc,_0x5332d0=this[_0x24dfe2(0xd0)][_0x24dfe2(0xd5)][_0x24dfe2(0xe4)];_0x5332d0[_0x24dfe2(0xd3)](_0x24dfe2(0xcd))&&_0x5332d0[_0x24dfe2(0xc3)](_0x24dfe2(0xcd),{'allowAttributes':[_0x24dfe2(0xe6)]}),_0x5332d0[_0x24dfe2(0xd3)](_0x24dfe2(0xcb))&&_0x5332d0[_0x24dfe2(0xc3)](_0x24dfe2(0xcb),{'allowAttributes':[_0x24dfe2(0xe6)]});}[_0x4874dc(0x9a)](){const _0x415da4=_0x4874dc,_0x119663=this[_0x415da4(0xd0)];_0x119663[_0x415da4(0xae)][_0x415da4(0x9f)](_0x415da4(0x9e))[_0x415da4(0xd6)]({'model':_0x415da4(0xe6),'view':_0x415da4(0x95)}),_0x119663[_0x415da4(0xae)][_0x415da4(0x9f)](_0x415da4(0xb3))[_0x415da4(0x98)]({'model':{'key':_0x415da4(0xe6),'value':_0x45adc2=>_0x45adc2[_0x415da4(0xd2)](_0x415da4(0x95))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4c8382=_0x119663[_0x415da4(0xd8)][_0x415da4(0xa7)](_0x415da4(0xe0));_0x4c8382&&this[_0x415da4(0xc2)](_0x4c8382,_0x415da4(0xa1),(_0x58b3dd,[_0x558852,_0x2e560a])=>{const _0x1fe8ad=_0x415da4;_0x558852[_0x1fe8ad(0xbc)](_0x1fe8ad(0xe6),_0x2e560a);});}[_0x4874dc(0xa2)](){const _0x210296=_0x4874dc,_0x547e6c=this[_0x210296(0xd0)][_0x210296(0xc5)][_0x210296(0xa7)](_0x210296(0xb7))||{},_0x4ec83c=this[_0x210296(0xd0)][_0x210296(0xc5)][_0x210296(0xa7)](_0x210296(0x9b))||'';this[_0x210296(0xdb)]=_0x1d8043(_0x2cada8[_0x210296(0x96)],_0x210296(0xa5),{..._0x547e6c,'pubkey':_0x4ec83c,'ctx-name':_0x210296(0xe2)+this[_0x210296(0xba)],'sourceList':'','imgOnly':_0x210296(0x93),'removeCopyright':_0x210296(0x93),'localeName':this[_0x210296(0xd0)][_0x210296(0xad)][_0x210296(0xa0)],'externalSourcesEmbedCss':_0x210296(0xb5)}),this[_0x210296(0xdb)][_0x210296(0xde)]=_0x3ef0e6=>{const _0x3117c6=_0x210296;if(_0x3117c6(0xcc)==_0x3ef0e6)return _0x3117c6(0xb1);},_0x2cada8[_0x210296(0x96)][_0x210296(0xc7)][_0x210296(0xce)](this[_0x210296(0xdb)]);}[_0x4874dc(0xa3)](){const _0x5564bd=_0x4874dc;this[_0x5564bd(0xa4)]=_0x1d8043(_0x2cada8[_0x5564bd(0x96)],_0x5564bd(0xb4),{'ctx-name':_0x5564bd(0xe2)+this[_0x5564bd(0xba)]}),_0x2cada8[_0x5564bd(0x96)][_0x5564bd(0xc7)][_0x5564bd(0xce)](this[_0x5564bd(0xa4)]);}[_0x4874dc(0xab)](){const _0x1b657f=_0x4874dc,_0x54599d=this[_0x1b657f(0xd0)][_0x1b657f(0xd8)][_0x1b657f(0xa7)](_0x1b657f(0xa6));_0x54599d&&this[_0x1b657f(0xc2)](_0x54599d,_0x1b657f(0xc6),()=>{const _0x3c8bce=_0x1b657f,_0x3bf3e4=this[_0x3c8bce(0xd0)][_0x3c8bce(0xd5)][_0x3c8bce(0x96)][_0x3c8bce(0xcf)][_0x3c8bce(0xaa)]();_0x3bf3e4&&_0x3bf3e4[_0x3c8bce(0xd2)](_0x3c8bce(0xe6))&&this[_0x3c8bce(0xd0)][_0x3c8bce(0xd7)][_0x3c8bce(0xe3)][_0x3c8bce(0xc9)](_0x3c8bce(0xbf),()=>{const _0xd0223d=_0x3c8bce;_0x2bf7ac(this[_0xd0223d(0xd0)],_0x3bf3e4);});});const _0x4df084=this[_0x1b657f(0xd0)][_0x1b657f(0xd8)][_0x1b657f(0xa7)](_0x1b657f(0xdd));_0x4df084&&this[_0x1b657f(0xc2)](_0x4df084,_0x1b657f(0xc6),()=>{const _0x115744=_0x1b657f,_0x42e5a7=this[_0x115744(0xd0)][_0x115744(0xd5)][_0x115744(0x96)][_0x115744(0xcf)][_0x115744(0xaa)]();_0x42e5a7&&_0x42e5a7[_0x115744(0xd2)](_0x115744(0xe6))&&this[_0x115744(0xd0)][_0x115744(0xd7)][_0x115744(0xe3)][_0x115744(0xc9)](_0x115744(0xbf),()=>{const _0x4c2f7a=_0x115744;_0x2bf7ac(this[_0x4c2f7a(0xd0)],_0x42e5a7);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x24f5ea,ObservableMixin as _0x275c0b}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xb02a3a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3e0249}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4ad7ca}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x1968c3}from'../../utils/uploadutils.js';import{getImageUrls as _0xe13659,getImageDimension as _0x595e29}from'../../utils/editingutils.js';import{isAncestor as _0x165ac4}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x275c0b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5f026c,_0x379e60,_0x364211){super(),this['_editor']=_0x5f026c,this['_dialog']=_0x379e60,this['_imageElement']=_0x364211,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 _0x505fd7=this['_imageElement'],_0xb7617e=_0x505fd7['getAttribute']('uploadcareImageId'),_0x4a9ec2=_0x505fd7['getAttribute']('src');if(_0xb7617e)await this['_loadImageInfo'](_0xb7617e,_0x4a9ec2);else{if(this['_imageCache']['has'](_0x4a9ec2)){const _0x5cbc83=this['_imageCache']['get'](_0x4a9ec2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5cbc83['url'],this['imageDimension']=_0x5cbc83['dimension'],this['imageId']=_0x5cbc83['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xa1e495}=this['_editor'],t=_0xa1e495['t'],_0x230194=new _0x4ad7ca(_0xa1e495,this['imageStatus'],this['_attributes']);_0x230194['bind']('status')['to'](this,'imageStatus'),_0x230194['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x230194['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x230194['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x230194,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e0249,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x230194,'position':_0xb02a3a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x230194['focus']();},'onHide':()=>{_0x230194['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x443f26=>!_0x165ac4(_0x443f26,_0x230194['element'])}});}['_loadImageInfo'](_0x32dba9,_0x1d8fee){return _0x1968c3['getInfo'](_0x32dba9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x149be2=>{const {width:_0x704cd0,height:_0x55a46a}=_0x149be2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d8fee,this['imageDimension']={'width':_0x704cd0,'height':_0x55a46a},this['imageId']=_0x32dba9;})['catch'](_0x640c90=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x640c90['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x156930,_0x5ae3a2){return this['_getImageAsFile'](_0x156930)['then'](_0x16762f=>_0x1968c3['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5ae3a2['signal'],'file':_0x16762f,'onProgress':_0x481b5a=>{_0x481b5a&&_0x481b5a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x481b5a['value']));}}))['then'](_0xa22cde=>{const {width:_0x5ac7f4,height:_0x912e68}=_0xa22cde['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa22cde['cdnUrl'],this['imageDimension']={'width':_0x5ac7f4,'height':_0x912e68},this['imageId']=_0xa22cde['uuid'],this['imageUploadProgress']=null;const _0x353435=_0x156930['getAttribute']('src');this['_imageCache']['set'](_0x353435,{'id':_0xa22cde['uuid'],'url':_0xa22cde['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x319c41=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x319c41['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2a5d0f,_0x359443){_0x2a5d0f['on']('apply',(_0x4c0ba5,_0x3a0b36)=>{this['_replaceImage'](_0x359443,_0x3a0b36['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2a5d0f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2a5d0f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x49966c,_0x44b61a,_0x393fa9){const _0xc1d6c0=this['_editor'],{width:_0x25f2ff,height:_0x4685eb}=_0x595e29(_0x44b61a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1165b1,imageSources:_0x226ecc}=_0xe13659(_0x44b61a,_0x25f2ff);_0xc1d6c0['model']['change'](_0x23e262=>{if('$graveyard'===_0x49966c['root']['rootName']){_0xc1d6c0['execute']('insertImage',{'imageType':_0x49966c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x49966c['getAttributes']()),'uploadcareImageId':_0x393fa9,'src':_0x1165b1,'sources':_0x226ecc,'width':_0x25f2ff,'height':_0x4685eb}});const _0x15f34f=_0x49966c['getChildren']();_0x49966c=_0xc1d6c0['model']['document']['selection']['getSelectedElement']();for(const _0x5d851d of _0x15f34f)_0x23e262['append'](_0x23e262['cloneElement'](_0x5d851d),_0x49966c);}else _0x23e262['setSelection'](_0x49966c,'on'),_0xc1d6c0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x49966c['getAttributes']()),'uploadcareImageId':_0x393fa9,'src':_0x1165b1,'sources':_0x226ecc,'width':_0x25f2ff,'height':_0x4685eb},_0x49966c);_0x23e262['setSelection'](_0x49966c,'on');});}async['_getImageAsFile'](_0x5883e4){const _0x211434=_0x24f5ea['window'],_0x396082=_0x24f5ea['document']['location']['href'],_0x362d45=new _0x211434['URL'](_0x5883e4['getAttribute']('src'),_0x396082);if('data:'===_0x362d45['protocol']){const _0x4cf61f=_0x362d45['href']['split'](','),_0x23f706=_0x4cf61f[0x0]['match'](/:(.*?);/)[0x1],_0x1a56a2=_0x23f706['split']('/')[0x1],_0x2ecbff=_0x211434['atob'](_0x4cf61f[_0x4cf61f['length']-0x1]);let _0x23aec3=_0x2ecbff['length'];const _0x34be92=new _0x211434['Uint8Array'](_0x23aec3);for(;_0x23aec3--;)_0x34be92[_0x23aec3]=_0x2ecbff['charCodeAt'](_0x23aec3);return new _0x211434['File']([_0x34be92],'image.'+_0x1a56a2,{'type':_0x23f706});}const _0x599a22=_0x362d45['href']['split']('/'),_0x45fc76=_0x599a22[_0x599a22['length']-0x1],_0x5cbf51=_0x45fc76['split']('.')[0x1];return _0x211434['fetch'](_0x362d45['href'])['then'](_0x49e943=>_0x49e943['clone']()['blob']())['then'](_0x17a09b=>new _0x211434['File']([_0x17a09b],_0x45fc76,{'type':'image/'+_0x5cbf51}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x263b(_0xaa8ab3,_0x29a8df){const _0x35cc40=_0x35cc();return _0x263b=function(_0x263bc5,_0x1c6aed){_0x263bc5=_0x263bc5-0xbb;let _0xd6ee94=_0x35cc40[_0x263bc5];return _0xd6ee94;},_0x263b(_0xaa8ab3,_0x29a8df);}(function(_0x532cf,_0x2d2890){const _0x101464=_0x263b,_0x126508=_0x532cf();while(!![]){try{const _0xa3b2ff=parseInt(_0x101464(0xc5))/0x1+-parseInt(_0x101464(0xbb))/0x2+parseInt(_0x101464(0xc1))/0x3+parseInt(_0x101464(0xc9))/0x4*(parseInt(_0x101464(0xc6))/0x5)+-parseInt(_0x101464(0xca))/0x6+parseInt(_0x101464(0xbe))/0x7*(parseInt(_0x101464(0xbf))/0x8)+-parseInt(_0x101464(0xc3))/0x9;if(_0xa3b2ff===_0x2d2890)break;else _0x126508['push'](_0x126508['shift']());}catch(_0x25e5e7){_0x126508['push'](_0x126508['shift']());}}}(_0x35cc,0x511ed));function _0x35cc(){const _0x21ed01=['setTemplate','466476RtExhz','uc-cloud-image-editor','set','2395603XIpZKC','8ZztqCz','ck-uploadcare-theme','539880rYzFHT','image-edit','2806227Nzlilt','imageSrc','659693TJfJyz','25WUvQYw','bindTemplate','uc-light','151604ylcDjY','2964462qbcMFD'];_0x35cc=function(){return _0x21ed01;};return _0x35cc();}import{View as _0x4d1692}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x4d1692{constructor(_0x2d2e72,_0x3cfc60){const _0x6a015a=_0x263b;super(_0x2d2e72);const _0x5c8907=this[_0x6a015a(0xc7)];this[_0x6a015a(0xbd)](_0x6a015a(0xc4),''),this[_0x6a015a(0xcb)]({'tag':_0x6a015a(0xbc),'attributes':{..._0x3cfc60,'class':[_0x6a015a(0xc8),_0x6a015a(0xc0)],'ctx-name':_0x6a015a(0xc2),'cdn-url':_0x5c8907['to'](_0x6a015a(0xc4))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x129b51}from'ckeditor5/src/icons.js';import{ButtonView as _0x3372b0,IconView as _0x4bbe7e,View as _0x43a257}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x43a257{constructor(_0x7bec8b){super(_0x7bec8b);const t=_0x7bec8b['t'];this['set']('errorType',null);const _0x1c445d=new _0x3372b0(_0x7bec8b);_0x1c445d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1c445d['withText']=!0x0,_0x1c445d['class']='ck-button-action',_0x1c445d['on']('execute',()=>{this['fire']('retry');}),_0x1c445d['bind']('isVisible')['to'](this,'errorType',_0x267918=>'NotFound'!==_0x267918);const _0x22db96=new _0x4bbe7e();_0x22db96['content']=_0x129b51,_0x22db96['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4083d5=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':[_0x22db96,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4083d5['to']('errorType',_0x1ac7a1=>t('NotFound'!==_0x1ac7a1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1c445d]},{'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 _0x4bf9a9,View as _0x361743}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x361743{constructor(_0x3c040b){super(_0x3c040b);const t=_0x3c040b['t'],_0x42be68=this['bindTemplate'],_0xfa93bb=new _0x4bf9a9();_0xfa93bb['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':[_0xfa93bb,{'text':_0x42be68['to']('imageUploadProgress',_0x250fc6=>t('Loading\x20image...')+'\x20('+(_0x250fc6||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
|
-
function
|
|
23
|
+
function _0x4530(_0x512446,_0x2cd2b2){const _0x451c3c=_0x451c();return _0x4530=function(_0x453002,_0x367f88){_0x453002=_0x453002-0x1a4;let _0xc19d6d=_0x451c3c[_0x453002];return _0xc19d6d;},_0x4530(_0x512446,_0x2cd2b2);}const _0x30848f=_0x4530;(function(_0x25ab74,_0x3ec1aa){const _0x38a01c=_0x4530,_0x42a922=_0x25ab74();while(!![]){try{const _0x18cb30=-parseInt(_0x38a01c(0x1af))/0x1+-parseInt(_0x38a01c(0x1d7))/0x2+-parseInt(_0x38a01c(0x1c4))/0x3*(-parseInt(_0x38a01c(0x1ca))/0x4)+parseInt(_0x38a01c(0x1b8))/0x5*(-parseInt(_0x38a01c(0x1a9))/0x6)+parseInt(_0x38a01c(0x1c5))/0x7*(-parseInt(_0x38a01c(0x1d3))/0x8)+parseInt(_0x38a01c(0x1c3))/0x9*(-parseInt(_0x38a01c(0x1ae))/0xa)+parseInt(_0x38a01c(0x1bf))/0xb;if(_0x18cb30===_0x3ec1aa)break;else _0x42a922['push'](_0x42a922['shift']());}catch(_0x343dc8){_0x42a922['push'](_0x42a922['shift']());}}}(_0x451c,0xae83b));function _0x451c(){const _0x5ccfa0=['getFocusableElement','set','9807660eMwftr','6GUCBfj','1499771vrYIUl','observe','element','ready','createCollection','1755476bYcOSw','fire','_focusableView','detail','focus','_addErrorViewListeners','setTemplate','addMany','change:status','24TKGjGh','disconnect','_setView','cdnUrl','985642adiRaf','addedNodes','ck-reset_all-excluded','retry','render','target','error','toLowerCase','querySelector','filter','970848WEVKaP','status','_waitForImageEditorComponent','ck-uploadcare-form','length','10KyrKbD','1375544jOUBdg','once','apply','clear','uc-cloud-image-editor','_items','_addUploadcareImageEditorListeners','nodeName','cancel','15ToRtZi','add','_editingView','_errorView','uploading','div','addEventListener','43156971njTQIh','_loadingView'];_0x451c=function(){return _0x5ccfa0;};return _0x451c();}import{View as _0x1c25d8}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5f412b}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x547cfb}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2d23d5}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4ae379}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4ae379{[_0x30848f(0x1b4)];[_0x30848f(0x1c0)];[_0x30848f(0x1bb)];[_0x30848f(0x1ba)];[_0x30848f(0x1cc)];constructor(_0x1d1b1d,_0x4ad48e,_0x56198c){const _0x18dabe=_0x30848f;super(_0x1d1b1d),this[_0x18dabe(0x1b4)]=this[_0x18dabe(0x1c9)](),this[_0x18dabe(0x1c0)]=new _0x5f412b(_0x1d1b1d),this[_0x18dabe(0x1bb)]=new _0x547cfb(_0x1d1b1d),this[_0x18dabe(0x1ba)]=new _0x2d23d5(_0x1d1b1d,_0x56198c),this[_0x18dabe(0x1cc)]=new _0x1c25d8(_0x1d1b1d),this[_0x18dabe(0x1cc)][_0x18dabe(0x1d0)](this[_0x18dabe(0x1c1)]()),this[_0x18dabe(0x1c2)](_0x18dabe(0x1aa),_0x4ad48e),this[_0x18dabe(0x1d0)]({'tag':_0x18dabe(0x1bd),'attributes':{'class':['ck',_0x18dabe(0x1d9),_0x18dabe(0x1ac)],'tabindex':'-1'},'children':this[_0x18dabe(0x1b4)]}),this[_0x18dabe(0x1d5)](),this[_0x18dabe(0x1b0)](_0x18dabe(0x1db),()=>{const _0x3367e0=_0x18dabe;this[_0x3367e0(0x1ab)](this[_0x3367e0(0x1c7)],_0xd1e32e=>{const _0x46bf50=_0x3367e0;this[_0x46bf50(0x1b5)](_0xd1e32e);});}),this['on'](_0x18dabe(0x1d2),()=>{const _0x2396f6=_0x18dabe;this[_0x2396f6(0x1d5)]();}),this[_0x18dabe(0x1cf)]();}[_0x30848f(0x1ce)](){const _0x379555=_0x30848f;this[_0x379555(0x1c7)][_0x379555(0x1ce)]();}[_0x30848f(0x1d5)](){const _0x34cec9=_0x30848f;switch(this[_0x34cec9(0x1b4)][_0x34cec9(0x1b2)](),this[_0x34cec9(0x1aa)]){case _0x34cec9(0x1bc):this[_0x34cec9(0x1b4)][_0x34cec9(0x1b9)](this[_0x34cec9(0x1c0)]);break;case _0x34cec9(0x1a5):this[_0x34cec9(0x1b4)][_0x34cec9(0x1b9)](this[_0x34cec9(0x1bb)]);break;case _0x34cec9(0x1c8):this[_0x34cec9(0x1b4)][_0x34cec9(0x1d1)]([this[_0x34cec9(0x1ba)],this[_0x34cec9(0x1cc)]]);}}[_0x30848f(0x1ab)](_0x5f1b5a,_0x57609a){const _0x4e1c8f=_0x30848f,_0x17ff36=_0x4e1c8f(0x1b3),_0x26546a=_0x5f1b5a[_0x4e1c8f(0x1a7)](_0x17ff36);if(_0x26546a)return _0x57609a(_0x26546a);const _0x5581cf=new MutationObserver(_0x2a8059=>{const _0x2e3a2a=_0x4e1c8f,_0x2c1bbc=_0x2a8059[_0x2e3a2a(0x1a8)](_0x24f383=>_0x24f383[_0x2e3a2a(0x1a4)]===_0x5f1b5a&&_0x24f383[_0x2e3a2a(0x1d8)][_0x2e3a2a(0x1ad)]>0x0&&_0x24f383[_0x2e3a2a(0x1d8)][0x0][_0x2e3a2a(0x1b6)][_0x2e3a2a(0x1a6)]()===_0x17ff36);_0x2c1bbc[_0x2e3a2a(0x1ad)]&&(_0x5581cf[_0x2e3a2a(0x1d4)](),_0x57609a(_0x2c1bbc[0x0][_0x2e3a2a(0x1d8)][0x0]));});_0x5581cf[_0x4e1c8f(0x1c6)](_0x5f1b5a,{'childList':!0x0,'subtree':!0x0});}[_0x30848f(0x1b5)](_0x31579a){const _0x3a56b3=_0x30848f;_0x31579a[_0x3a56b3(0x1be)](_0x3a56b3(0x1b1),_0x538233=>{const _0x2aaf10=_0x3a56b3;this[_0x2aaf10(0x1cb)](_0x2aaf10(0x1b1),{'imageSrc':_0x538233[_0x2aaf10(0x1cd)][_0x2aaf10(0x1d6)]});}),_0x31579a[_0x3a56b3(0x1be)](_0x3a56b3(0x1b7),()=>{const _0xdd9492=_0x3a56b3;this[_0xdd9492(0x1cb)](_0xdd9492(0x1b7));});}[_0x30848f(0x1cf)](){const _0x43f1c5=_0x30848f;this[_0x43f1c5(0x1bb)]['on'](_0x43f1c5(0x1da),()=>{const _0x579b8d=_0x43f1c5;this[_0x579b8d(0x1cb)](_0x579b8d(0x1da));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17a2f9=_0x3017;(function(_0x31dc7f,_0x30296e){const _0x3afe88=_0x3017,_0x340223=_0x31dc7f();while(!![]){try{const _0x25a8b1=parseInt(_0x3afe88(0x12e))/0x1+-parseInt(_0x3afe88(0x12a))/0x2*(-parseInt(_0x3afe88(0x133))/0x3)+parseInt(_0x3afe88(0x12c))/0x4+-parseInt(_0x3afe88(0x131))/0x5*(parseInt(_0x3afe88(0x130))/0x6)+-parseInt(_0x3afe88(0x13c))/0x7*(-parseInt(_0x3afe88(0x136))/0x8)+-parseInt(_0x3afe88(0x129))/0x9+-parseInt(_0x3afe88(0x12d))/0xa;if(_0x25a8b1===_0x30296e)break;else _0x340223['push'](_0x340223['shift']());}catch(_0x34aff9){_0x340223['push'](_0x340223['shift']());}}}(_0x6877,0x2642c));function _0x3017(_0x3c151e,_0x1fecc1){const _0x68779e=_0x6877();return _0x3017=function(_0x3017e1,_0x22d7cc){_0x3017e1=_0x3017e1-0x127;let _0x567974=_0x68779e[_0x3017e1];return _0x567974;},_0x3017(_0x3c151e,_0x1fecc1);}import{Command as _0x2f4ca0}from'ckeditor5/src/core.js';import{Dialog as _0x1119d3}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1b447d}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x5b52af}from'../utils/editingutils.js';function _0x6877(){const _0xdb2fc2=['185270ICgqhD','uploadcare.allowExternalImagesEditing','1758TojStK','1910oFbLEG','model','1530obcyTF','selection','bind','3544KqGRpR','execute','_isEditable','refresh','plugins','isEnabled','763YlOWFM','editor','unbind','document','isActive','getSelectedElement','imageInline','set','imageEditController','requires','element','get','imageBlock','325665HhRHex','514oyvNzq','config','85580eKGnII','811950anubhS'];_0x6877=function(){return _0xdb2fc2;};return _0x6877();}export class UploadcareImageEditCommand extends _0x2f4ca0{[_0x17a2f9(0x144)];static get[_0x17a2f9(0x145)](){return[_0x1119d3];}[_0x17a2f9(0x138)];constructor(_0x51f194){const _0x44a28c=_0x17a2f9;super(_0x51f194),this[_0x44a28c(0x144)]=void 0x0,this[_0x44a28c(0x138)]=_0x5b52af(_0x51f194[_0x44a28c(0x12b)][_0x44a28c(0x127)](_0x44a28c(0x12f))||[]),this[_0x44a28c(0x143)]({'isActive':!0x1});}[_0x17a2f9(0x139)](){const _0x18f8d7=_0x17a2f9,_0x228ffd=this[_0x18f8d7(0x13d)][_0x18f8d7(0x132)][_0x18f8d7(0x13f)][_0x18f8d7(0x134)][_0x18f8d7(0x141)]();this[_0x18f8d7(0x13b)]=this[_0x18f8d7(0x138)](_0x228ffd);}[_0x17a2f9(0x137)](){const _0x4704b8=_0x17a2f9;this[_0x4704b8(0x144)]&&(this[_0x4704b8(0x13e)](_0x4704b8(0x140)),this[_0x4704b8(0x144)]=void 0x0);const _0x84f2d0=this[_0x4704b8(0x13d)][_0x4704b8(0x132)][_0x4704b8(0x13f)][_0x4704b8(0x134)][_0x4704b8(0x141)]();_0x84f2d0&&(_0x84f2d0['is'](_0x4704b8(0x146),_0x4704b8(0x128))||_0x84f2d0['is'](_0x4704b8(0x146),_0x4704b8(0x142)))&&(this[_0x4704b8(0x144)]=new _0x1b447d(this[_0x4704b8(0x13d)],this[_0x4704b8(0x13d)][_0x4704b8(0x13a)][_0x4704b8(0x127)](_0x1119d3),_0x84f2d0),this[_0x4704b8(0x135)](_0x4704b8(0x140))['to'](this[_0x4704b8(0x144)],_0x4704b8(0x140)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x358ede=_0x4d72;(function(_0x2809cf,_0x256d23){const _0x1a47bb=_0x4d72,_0x4bfb5c=_0x2809cf();while(!![]){try{const _0x51010a=-parseInt(_0x1a47bb(0x1e8))/0x1*(parseInt(_0x1a47bb(0x1e0))/0x2)+-parseInt(_0x1a47bb(0x1de))/0x3*(-parseInt(_0x1a47bb(0x1eb))/0x4)+-parseInt(_0x1a47bb(0x1ec))/0x5+parseInt(_0x1a47bb(0x1f1))/0x6+-parseInt(_0x1a47bb(0x1ef))/0x7+parseInt(_0x1a47bb(0x1e4))/0x8*(-parseInt(_0x1a47bb(0x1e6))/0x9)+parseInt(_0x1a47bb(0x1e7))/0xa*(parseInt(_0x1a47bb(0x1ea))/0xb);if(_0x51010a===_0x256d23)break;else _0x4bfb5c['push'](_0x4bfb5c['shift']());}catch(_0x5e66fd){_0x4bfb5c['push'](_0x4bfb5c['shift']());}}}(_0x3d69,0xcdec2));function _0x4d72(_0x137ff7,_0x1e6488){const _0x3d69c0=_0x3d69();return _0x4d72=function(_0x4d7296,_0xcd7b2d){_0x4d7296=_0x4d7296-0x1dc;let _0xd24814=_0x3d69c0[_0x4d7296];return _0xd24814;},_0x4d72(_0x137ff7,_0x1e6488);}import{Plugin as _0x71a4e}from'ckeditor5/src/core.js';import{Notification as _0x1c64d3}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x2afbdc}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x243559}from'./uploadcareimagereplacecommand.js';function _0x3d69(){const _0x23adbd=['2680902ElrUbg','70hEqMDq','977749aRBgBE','isPremiumPlugin','3977215pWmcKr','56qFObEZ','6966340glIBOr','pluginName','requires','9460773KsRxQX','uploadcareImageEdit','7040070mtggwm','ImageEditing','UploadcareImageEditEditing','add','248484cVTdTo','init','2laIEtA','uploadcareImageReplace','commands','ImageUtils','8gIaLwM','isOfficialPlugin'];_0x3d69=function(){return _0x23adbd;};return _0x3d69();}import{UploadcareEditing as _0x6647a9}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x71a4e{static get[_0x358ede(0x1ed)](){const _0xcc0e51=_0x358ede;return _0xcc0e51(0x1dc);}static get[_0x358ede(0x1ee)](){const _0x3cdf14=_0x358ede;return[_0x6647a9,_0x1c64d3,_0x3cdf14(0x1e3),_0x3cdf14(0x1f2)];}static get[_0x358ede(0x1e5)](){return!0x0;}static get[_0x358ede(0x1e9)](){return!0x0;}[_0x358ede(0x1df)](){const _0x5d8826=_0x358ede,{editor:_0x2b7607}=this;_0x2b7607[_0x5d8826(0x1e2)][_0x5d8826(0x1dd)](_0x5d8826(0x1f0),new _0x2afbdc(_0x2b7607)),_0x2b7607[_0x5d8826(0x1e2)][_0x5d8826(0x1dd)](_0x5d8826(0x1e1),new _0x243559(_0x2b7607));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2ee881}from'ckeditor5/src/core.js';import{ButtonView as _0x7c86d9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0xdf90df}from'ckeditor5/src/icons.js';import{createElement as _0x2535f7}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 _0x2ee881{['_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 _0x2b3966=this['editor'];_0x2b3966['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2f6b23=>{const _0x250c1a=_0x2b3966['commands']['get']('uploadcareImageEdit'),_0x28a931=new _0x7c86d9(_0x2f6b23),t=_0x2f6b23['t'];return _0x28a931['set']({'icon':_0xdf90df,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x28a931['bind']('isEnabled')['to'](_0x250c1a),_0x28a931['bind']('isOn')['to'](_0x250c1a,'isActive'),this['listenTo'](_0x28a931,'execute',()=>{_0x2b3966['execute']('uploadcareImageEdit'),_0x2b3966['editing']['view']['focus']();}),_0x28a931;}),this['_initConfig']();}['_initConfig'](){const _0x3a6d80=_0x2535f7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3a6d80),this['listenTo'](this['editor'],'destroy',()=>{_0x3a6d80['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2b709d=_0x3b62;(function(_0x814692,_0x3b0e36){const _0x59236a=_0x3b62,_0x54e52c=_0x814692();while(!![]){try{const _0x3821f3=parseInt(_0x59236a(0x185))/0x1+parseInt(_0x59236a(0x184))/0x2+-parseInt(_0x59236a(0x17a))/0x3+parseInt(_0x59236a(0x183))/0x4+-parseInt(_0x59236a(0x17e))/0x5+-parseInt(_0x59236a(0x188))/0x6+parseInt(_0x59236a(0x17c))/0x7;if(_0x3821f3===_0x3b0e36)break;else _0x54e52c['push'](_0x54e52c['shift']());}catch(_0x1b78c4){_0x54e52c['push'](_0x54e52c['shift']());}}}(_0x4eb2,0x2e9f3));import{Command as _0x2a6939}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2a6939{[_0x2b709d(0x17f)](){const _0x3dd159=_0x2b709d,_0x39c215=this[_0x3dd159(0x17b)][_0x3dd159(0x182)][_0x3dd159(0x17d)][_0x3dd159(0x181)][_0x3dd159(0x18b)]();this[_0x3dd159(0x187)]=Boolean(_0x39c215&&(_0x39c215['is'](_0x3dd159(0x18e),_0x3dd159(0x18a))||_0x39c215['is'](_0x3dd159(0x18e),_0x3dd159(0x179))));}[_0x2b709d(0x18f)](_0x461fab){const _0x3035a3=_0x2b709d,_0x12784a=this[_0x3035a3(0x17b)][_0x3035a3(0x182)][_0x3035a3(0x17d)][_0x3035a3(0x181)][_0x3035a3(0x18b)]();this[_0x3035a3(0x17b)][_0x3035a3(0x182)][_0x3035a3(0x186)](_0x33d34a=>{const _0x36d656=_0x3035a3;_0x33d34a[_0x36d656(0x189)](_0x461fab,_0x12784a),_0x33d34a[_0x36d656(0x18d)](_0x36d656(0x180),_0x12784a),_0x33d34a[_0x36d656(0x18d)](_0x36d656(0x18c),_0x12784a);});}}function _0x3b62(_0x232c10,_0x1f0d9a){const _0x4eb2c0=_0x4eb2();return _0x3b62=function(_0x3b62dd,_0x3c347f){_0x3b62dd=_0x3b62dd-0x179;let _0x199b75=_0x4eb2c0[_0x3b62dd];return _0x199b75;},_0x3b62(_0x232c10,_0x1f0d9a);}function _0x4eb2(){const _0x4bac2b=['1236048xhpFht','9790cIZVAl','218242sZJZOh','change','isEnabled','294942GkKarr','setAttributes','imageBlock','getSelectedElement','sizes','removeAttribute','element','execute','imageInline','808686SIIwzN','editor','1495837dZKEsh','document','1180790sVOXoi','refresh','srcset','selection','model'];_0x4eb2=function(){return _0x4bac2b;};return _0x4eb2();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1d53ed=_0x5227;function _0x5227(_0xe0a09,_0x145303){var _0x563e54=_0x563e();return _0x5227=function(_0x5227ae,_0x32498f){_0x5227ae=_0x5227ae-0x10f;var _0x5becf0=_0x563e54[_0x5227ae];return _0x5becf0;},_0x5227(_0xe0a09,_0x145303);}(function(_0x46438a,_0x127747){var _0x54ccad=_0x5227,_0x13f1dc=_0x46438a();while(!![]){try{var _0x264c51=-parseInt(_0x54ccad(0x111))/0x1+parseInt(_0x54ccad(0x119))/0x2+-parseInt(_0x54ccad(0x11d))/0x3*(parseInt(_0x54ccad(0x114))/0x4)+parseInt(_0x54ccad(0x11e))/0x5*(-parseInt(_0x54ccad(0x117))/0x6)+-parseInt(_0x54ccad(0x11c))/0x7+-parseInt(_0x54ccad(0x11a))/0x8*(-parseInt(_0x54ccad(0x11b))/0x9)+parseInt(_0x54ccad(0x10f))/0xa*(parseInt(_0x54ccad(0x116))/0xb);if(_0x264c51===_0x127747)break;else _0x13f1dc['push'](_0x13f1dc['shift']());}catch(_0x910fb3){_0x13f1dc['push'](_0x13f1dc['shift']());}}}(_0x563e,0x39fac));import{Plugin as _0x2d670c}from'ckeditor5/src/core.js';function _0x563e(){var _0x2c6a65=['1682387ZeRSTf','183DHeCwO','5qbbLIn','224470YfOOXi','isOfficialPlugin','158573pelYBD','UploadcareImageEdit','isPremiumPlugin','11600FCTTvW','requires','275JFHSkT','1180362qCepRg','pluginName','264264NXRQgH','1266872Krvduy','18qrnGsI'];_0x563e=function(){return _0x2c6a65;};return _0x563e();}import{UploadcareImageEditEditing as _0x539359}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x4533e8}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2d670c{static get[_0x1d53ed(0x118)](){var _0x29bb68=_0x1d53ed;return _0x29bb68(0x112);}static get[_0x1d53ed(0x115)](){return[_0x539359,_0x4533e8];}static get[_0x1d53ed(0x110)](){return!0x0;}static get[_0x1d53ed(0x113)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46fcac=_0x1828;(function(_0x465d9c,_0x3bebc7){const _0xd2945f=_0x1828,_0x56f92d=_0x465d9c();while(!![]){try{const _0x2c26bc=-parseInt(_0xd2945f(0x1fa))/0x1*(parseInt(_0xd2945f(0x1c7))/0x2)+-parseInt(_0xd2945f(0x1af))/0x3+parseInt(_0xd2945f(0x1d6))/0x4+parseInt(_0xd2945f(0x1c8))/0x5*(-parseInt(_0xd2945f(0x1d1))/0x6)+parseInt(_0xd2945f(0x1da))/0x7+parseInt(_0xd2945f(0x1d8))/0x8*(-parseInt(_0xd2945f(0x1b3))/0x9)+parseInt(_0xd2945f(0x1c9))/0xa;if(_0x2c26bc===_0x3bebc7)break;else _0x56f92d['push'](_0x56f92d['shift']());}catch(_0x4563a6){_0x56f92d['push'](_0x56f92d['shift']());}}}(_0xf41f,0x8ba75));import{Plugin as _0x11ae2c}from'ckeditor5/src/core.js';import{IconDropbox as _0x29ecd1,IconFacebook as _0x29a10e,IconGoogleDrive as _0x216bfe,IconGooglePhotos as _0x414ee7,IconUploadcareImageUpload as _0x25e061,IconUploadcareLink as _0x1a6497,IconOneDrive as _0x1a23e4}from'ckeditor5/src/icons.js';import{ButtonView as _0x2325fb,MenuBarMenuListItemButtonView as _0x18c360}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x5c16ad}from'./uploadcareconfig.js';import{getTranslation as _0x33b5d9}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x1828(_0x48e989,_0x25b3fc){const _0xf41fe5=_0xf41f();return _0x1828=function(_0x182844,_0x5ceb87){_0x182844=_0x182844-0x1af;let _0xd076d5=_0xf41fe5[_0x182844];return _0xd076d5;},_0x1828(_0x48e989,_0x25b3fc);}function _0xf41f(){const _0x4f3fa5=['upload','_getIntegrationKey','URL','forEach','isOfficialPlugin','_normalizeConfigSourceList','bind','execute','GPhotos','UploadcareUI','3359ArDNCS','pluginName','Uploadcare','entries','evaluationLimit','reduce','2395617TegmGD','isEnabled','uploadcare.uploader.sourceList','_showLicenseError','117QNlLlV','url','withText','expired','domainLimit','get','uploadcareLicenseKeyInvalid','assetManager','editor','locale','uploadcareLicenseKeyUsageLimit','usageLimit','Replace','uploadcareLicenseKeyValid','label','has','tooltip','commands','text','uploadcareLicenseKeyExpired','626KpZBZM','5VwaNmd','19576800pfcBxU','destroy','ImageInsertUI','Facebook','registerIntegration','trialLimit','Dropbox','uploadcareLicenseKeyTrialLimit','3924318nCKooq','featureNotAllowed','GDrive','icon','init','3611236oZRXUn','uploadcareLicenseKeyNotAllowed','383896PcAhcT','plugins','5875254tSgjqg','push','_createMenuBarButtons','map','licenseKey','uploadcareLicenseKeyDomainLimit','shortText','type','isPremiumPlugin','_createToolbarButton','Insert','afterInit','_licenseKeyCheckInterval','invalid','_createButton','uploadcare','isImageSelected','config','OneDrive','Local','uploadcareLicenseKeyEvaluationLimit','_createDropdownButtons'];_0xf41f=function(){return _0x4f3fa5;};return _0xf41f();}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x11ae2c{[_0x46fcac(0x1de)];[_0x46fcac(0x1e6)];static get[_0x46fcac(0x1fb)](){const _0x5b2348=_0x46fcac;return _0x5b2348(0x1f9);}static get[_0x46fcac(0x1f4)](){return!0x0;}static get[_0x46fcac(0x1e2)](){return!0x0;}[_0x46fcac(0x1d5)](){const _0x19cf6b=_0x46fcac;this[_0x19cf6b(0x1de)]=this[_0x19cf6b(0x1bb)][_0x19cf6b(0x1eb)][_0x19cf6b(0x1b8)](_0x19cf6b(0x1de));const _0x4b4518=this[_0x19cf6b(0x1bb)];this[_0x19cf6b(0x1e6)]=setInterval(()=>{const _0x4c3513=_0x19cf6b;let _0x112d37;for(const _0xbf9f65 in _0x4b4518){const _0x212b04=_0xbf9f65,_0x13aa98=_0x4b4518[_0x212b04];if(_0x4c3513(0x1c0)==_0x13aa98||_0x4c3513(0x1b9)==_0x13aa98||_0x4c3513(0x1c6)==_0x13aa98||_0x4c3513(0x1df)==_0x13aa98||_0x4c3513(0x1d7)==_0x13aa98||_0x4c3513(0x1ee)==_0x13aa98||_0x4c3513(0x1d0)==_0x13aa98||_0x4c3513(0x1bd)==_0x13aa98){delete _0x4b4518[_0x212b04],_0x112d37=_0x13aa98,clearInterval(this[_0x4c3513(0x1e6)]),this[_0x4c3513(0x1e6)]=void 0x0;break;}}_0x4c3513(0x1b9)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1e7)),_0x4c3513(0x1c6)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1b6)),_0x4c3513(0x1df)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1b7)),_0x4c3513(0x1d7)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1d2),_0x4c3513(0x1fc)),_0x4c3513(0x1ee)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1fe)),_0x4c3513(0x1d0)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1ce)),_0x4c3513(0x1bd)==_0x112d37&&_0x4b4518[_0x4c3513(0x1b2)](_0x4c3513(0x1be));},0x3e8);}[_0x46fcac(0x1e5)](){const _0x1bc4c7=_0x46fcac,{editor:_0x4da783}=this,_0x52ddbb=_0x4da783[_0x1bc4c7(0x1c4)][_0x1bc4c7(0x1b8)](_0x1bc4c7(0x1e9));if(!_0x52ddbb)return;const _0x4b8a6a=this[_0x1bc4c7(0x1f5)](_0x4da783[_0x1bc4c7(0x1eb)][_0x1bc4c7(0x1b8)](_0x1bc4c7(0x1b1)))[_0x1bc4c7(0x1ff)]((_0x21d67c,_0x53df37)=>{const _0x56accc=_0x1bc4c7,_0x4ac99b=this[_0x56accc(0x1f1)](_0x53df37[_0x56accc(0x1e1)]);return _0x21d67c[_0x4ac99b]||(_0x21d67c[_0x4ac99b]=[]),_0x21d67c[_0x4ac99b][_0x56accc(0x1db)](_0x53df37),_0x21d67c;},{});_0x4da783[_0x1bc4c7(0x1d9)][_0x1bc4c7(0x1c2)](_0x1bc4c7(0x1cb))&&_0x4da783[_0x1bc4c7(0x1c4)][_0x1bc4c7(0x1b8)](_0x1bc4c7(0x1e9))&&Object[_0x1bc4c7(0x1fd)](_0x4b8a6a)[_0x1bc4c7(0x1f3)](([_0x52d388,_0x37cde2])=>{const _0x52c0a9=_0x1bc4c7;_0x4da783[_0x52c0a9(0x1d9)][_0x52c0a9(0x1b8)](_0x52c0a9(0x1cb))[_0x52c0a9(0x1cd)]({'name':_0x52d388,'observable':()=>_0x52ddbb,'buttonViewCreator':()=>this[_0x52c0a9(0x1e3)](_0x37cde2),'formViewCreator':()=>this[_0x52c0a9(0x1ef)](_0x37cde2),'menuBarButtonViewCreator':()=>this[_0x52c0a9(0x1dc)](_0x37cde2),'override':_0x52c0a9(0x1ba)!==_0x52d388});});}[_0x46fcac(0x1ca)](){const _0x12faca=_0x46fcac;super[_0x12faca(0x1ca)](),this[_0x12faca(0x1e6)]&&clearInterval(this[_0x12faca(0x1e6)]);}[_0x46fcac(0x1f5)](_0x45e47e){const _0x280cc3=_0x46fcac,{locale:_0x256c5f}=this[_0x280cc3(0x1bb)];return _0x45e47e[_0x280cc3(0x1dd)](_0x516fbf=>{const _0x24e398=_0x280cc3,_0x42dcec=_0x33b5d9(_0x256c5f,_0x516fbf,_0x24e398(0x1e4));switch(_0x516fbf){case _0x5c16ad[_0x24e398(0x1ed)]:return{'icon':_0x25e061,'type':_0x5c16ad[_0x24e398(0x1ed)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1f2)]:return{'icon':_0x1a6497,'type':_0x5c16ad[_0x24e398(0x1f2)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1cf)]:return{'icon':_0x29ecd1,'type':_0x5c16ad[_0x24e398(0x1cf)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1cc)]:return{'icon':_0x29a10e,'type':_0x5c16ad[_0x24e398(0x1cc)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1d3)]:return{'icon':_0x216bfe,'type':_0x5c16ad[_0x24e398(0x1d3)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1f8)]:return{'icon':_0x414ee7,'type':_0x5c16ad[_0x24e398(0x1f8)],..._0x42dcec};case _0x5c16ad[_0x24e398(0x1ec)]:return{'icon':_0x1a23e4,'type':_0x5c16ad[_0x24e398(0x1ec)],..._0x42dcec};}});}[_0x46fcac(0x1f1)](_0xb573cf){const _0x19b1a9=_0x46fcac;switch(_0xb573cf){case _0x5c16ad[_0x19b1a9(0x1ed)]:return _0x19b1a9(0x1f0);case _0x5c16ad[_0x19b1a9(0x1f2)]:return _0x19b1a9(0x1b4);default:return _0x19b1a9(0x1ba);}}[_0x46fcac(0x1e8)](_0x5c499f,_0x5aa0a6){const _0x4dc54d=_0x46fcac,_0x1f74d=this[_0x4dc54d(0x1bb)],_0x1fe32e=new _0x5c499f(_0x1f74d[_0x4dc54d(0x1bc)]),_0x257456=_0x1f74d[_0x4dc54d(0x1c4)][_0x4dc54d(0x1b8)](_0x4dc54d(0x1e9));return _0x1fe32e[_0x4dc54d(0x1f6)](_0x4dc54d(0x1b0))['to'](_0x257456),_0x1fe32e['on'](_0x4dc54d(0x1f7),()=>{const _0x74af31=_0x4dc54d;_0x257456[_0x74af31(0x1f7)](_0x5aa0a6);}),_0x1fe32e;}[_0x46fcac(0x1e3)](_0x1bd43d){const _0x16d6a4=_0x46fcac,{locale:_0x58e974}=this[_0x16d6a4(0x1bb)],_0x365479=this[_0x16d6a4(0x1bb)][_0x16d6a4(0x1d9)][_0x16d6a4(0x1b8)](_0x16d6a4(0x1cb)),_0x5e935d=_0x1bd43d[0x0],_0x38f064=this[_0x16d6a4(0x1e8)](_0x2325fb,_0x5e935d[_0x16d6a4(0x1e1)]);return _0x38f064[_0x16d6a4(0x1d4)]=_0x5e935d[_0x16d6a4(0x1d4)],_0x38f064[_0x16d6a4(0x1f6)](_0x16d6a4(0x1c1))['to'](_0x365479,_0x16d6a4(0x1ea),_0x57ddf7=>_0x33b5d9(_0x58e974,_0x5e935d[_0x16d6a4(0x1e1)],_0x57ddf7?_0x16d6a4(0x1bf):_0x16d6a4(0x1e4))[_0x16d6a4(0x1c5)]),_0x38f064[_0x16d6a4(0x1c3)]=!0x0,_0x38f064;}[_0x46fcac(0x1ef)](_0x5c0a2a){const _0x31df17=_0x46fcac,{locale:_0x70a688}=this[_0x31df17(0x1bb)],_0x2f7026=this[_0x31df17(0x1bb)][_0x31df17(0x1d9)][_0x31df17(0x1b8)](_0x31df17(0x1cb));return _0x5c0a2a[_0x31df17(0x1dd)](_0x338469=>{const _0x3ef48f=_0x31df17,_0x1398dd=this[_0x3ef48f(0x1e8)](_0x2325fb,_0x338469[_0x3ef48f(0x1e1)]);return _0x1398dd[_0x3ef48f(0x1b5)]=!0x0,_0x1398dd[_0x3ef48f(0x1d4)]=_0x338469[_0x3ef48f(0x1d4)],_0x1398dd[_0x3ef48f(0x1f6)](_0x3ef48f(0x1c1))['to'](_0x2f7026,_0x3ef48f(0x1ea),_0x1882ff=>_0x33b5d9(_0x70a688,_0x338469[_0x3ef48f(0x1e1)],_0x1882ff?_0x3ef48f(0x1bf):_0x3ef48f(0x1e4))[_0x3ef48f(0x1c5)]),_0x1398dd;});}[_0x46fcac(0x1dc)](_0x1fffdb){const _0x17407e=_0x46fcac;return _0x1fffdb[_0x17407e(0x1dd)](_0xf5004=>{const _0x30df55=_0x17407e,_0x50ec3e=this[_0x30df55(0x1e8)](_0x18c360,_0xf5004[_0x30df55(0x1e1)]);return _0x50ec3e[_0x30df55(0x1d4)]=_0xf5004[_0x30df55(0x1d4)],_0x50ec3e[_0x30df55(0x1c1)]=_0xf5004[_0x30df55(0x1e0)],_0x50ec3e;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x438d43}from'ckeditor5/src/core.js';import{FileRepository as _0x45079a}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x45a6e5}from'./uploadcareediting.js';import{UploadUtils as _0x39b3ea}from'./utils/uploadutils.js';import{getImageUrls as _0x65a0dc}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x438d43{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x45079a,_0x45a6e5];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x8a5fd2=this['editor'];if(!!!_0x8a5fd2['config']['get']('uploadcare'))return;_0x8a5fd2['plugins']['get'](_0x45079a)['createUploadAdapter']=_0x4617f4=>new A(_0x4617f4,_0x8a5fd2),_0x8a5fd2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3c92aa,{imageElement:_0x212291,data:_0x336138})=>{_0x8a5fd2['model']['change'](_0x1f8661=>{_0x1f8661['setAttribute']('uploadcareImageId',_0x336138['uploadcareImageId'],_0x212291);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x5d4f19,_0x33fb19){this['loader']=_0x5d4f19,this['editor']=_0x33fb19,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4c8d97=this['editor']['config']['get']('uploadcare.pubkey'),_0x122573=await this['loader']['file'];return _0x39b3ea['upload']({'file':_0x122573,'publicKey':_0x4c8d97,'signal':this['controller']['signal'],'onProgress':_0x256f64=>{_0x256f64&&_0x256f64['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x256f64['value']);}})['then'](async _0x55bd8b=>{const {imageFallbackUrl:_0x492425,imageSources:_0x21b047}=_0x65a0dc(_0x55bd8b['cdnUrl'],_0x55bd8b['imageInfo']['width']);return{'uploadcareImageId':_0x55bd8b['uuid'],'default':_0x492425,'sources':_0x21b047};})['catch'](()=>{const _0x59cbbd=t('Cannot\x20upload\x20file:')+('\x20'+_0x122573['name']+'.');return Promise['reject'](_0x59cbbd);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x450d07}from'../uploadcareconfig.js';export function getTranslation(_0xe158b6,_0x484b72,_0x543122){const t=_0xe158b6['t'],_0x2b2617=_0xe158b6['t'];switch(_0x484b72){case _0x450d07['Local']:return{'text':_0x2b2617('Insert'===_0x543122?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2b2617('From\x20computer')};case _0x450d07['URL']:return{'text':'Insert'===_0x543122?_0x2b2617('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2b2617('Via\x20URL')};case _0x450d07['Dropbox']:return{'text':t('Insert'===_0x543122?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x450d07['Facebook']:return{'text':t('Insert'===_0x543122?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x450d07['GDrive']:return{'text':t('Insert'===_0x543122?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x450d07['GPhotos']:return{'text':t('Insert'===_0x543122?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x450d07['OneDrive']:return{'text':t('Insert'===_0x543122?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x484b72;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4f2670=_0x33fb;(function(_0x4035f5,_0x2637f7){var _0x1200d=_0x33fb,_0x51f0ab=_0x4035f5();while(!![]){try{var _0x3e4d51=-parseInt(_0x1200d(0x1dc))/0x1*(parseInt(_0x1200d(0x1e1))/0x2)+parseInt(_0x1200d(0x1da))/0x3*(parseInt(_0x1200d(0x1e5))/0x4)+parseInt(_0x1200d(0x1d9))/0x5+parseInt(_0x1200d(0x1e8))/0x6+-parseInt(_0x1200d(0x1db))/0x7+-parseInt(_0x1200d(0x1e3))/0x8+-parseInt(_0x1200d(0x1e0))/0x9;if(_0x3e4d51===_0x2637f7)break;else _0x51f0ab['push'](_0x51f0ab['shift']());}catch(_0x4597aa){_0x51f0ab['push'](_0x51f0ab['shift']());}}}(_0x339e,0xf0a8b));import{FocusTracker as _0x1392db}from'ckeditor5/src/utils.js';import{View as _0x8e47f8,FocusCycler as _0x474369}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x33fb(_0x348603,_0xa9d925){var _0x339e27=_0x339e();return _0x33fb=function(_0x33fb5f,_0x54cc1a){_0x33fb5f=_0x33fb5f-0x1d8;var _0x2bad71=_0x339e27[_0x33fb5f];return _0x2bad71;},_0x33fb(_0x348603,_0xa9d925);}export class DialogFocusManagerView extends _0x8e47f8{[_0x4f2670(0x1d8)];[_0x4f2670(0x1e7)];constructor(_0x46f820){var _0xfcc3c7=_0x4f2670;super(_0x46f820),this[_0xfcc3c7(0x1d8)]=new _0x1392db(),this[_0xfcc3c7(0x1e7)]=new _0x474369({'focusables':this[_0xfcc3c7(0x1de)](),'focusTracker':this[_0xfcc3c7(0x1d8)]});}[_0x4f2670(0x1df)](){var _0x62feb7=_0x4f2670;return{'tag':_0x62feb7(0x1e9),'attributes':{'aria-hidden':_0x62feb7(0x1e6),'tabindex':'0'},'on':{'focus':this[_0x62feb7(0x1e4)]['to'](()=>{var _0x3dfe13=_0x62feb7;this[_0x3dfe13(0x1e7)][_0x3dfe13(0x1dd)](_0x3dfe13(0x1e2));})}};}}function _0x339e(){var _0x2e829f=['5476TdIgcl','true','focusCycler','3347844SZYsdN','div','focusTracker','7689305sWToRg','3417TcXRVI','3193911zmTwxC','1320703SltQsz','fire','createCollection','getFocusableElement','2959938IeNwRD','2unOCLY','forwardCycle','4508232hUZGEJ','bindTemplate'];_0x339e=function(){return _0x2e829f;};return _0x339e();}
|