@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251120.0 → 0.0.0-nightly-20251122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4487(_0x1d27a8,_0x2ee2a1){const _0x32c267=_0x32c2();return _0x4487=function(_0x4487ff,_0x506ead){_0x4487ff=_0x4487ff-0x16c;let _0x3f2e14=_0x32c267[_0x4487ff];return _0x3f2e14;},_0x4487(_0x1d27a8,_0x2ee2a1);}function _0x32c2(){const _0x331004=['uploadcareImageId','elementToAttribute','model','_initConversion','_initSchema','listenTo','imageBlock','ucContextId','imageInline','10jiusAK','join','isPremiumPlugin','iconHrefResolver','uploadcare.uploader','508sExcwZ','fromCharCode','934020Zvgqdn','insertImage','attributeToAttribute','uploadcareImageReplace','downcast','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','40027DOhsyn','UploadcareEditing','init','add','extend','removeAttribute','1896584jAcyDC','view','render','_initImageProcessingIndicator','getSelectedElement','afterInit','PictureEditing','pluginName','map','_configElement','querySelector','locale','uploadcare.pubkey','execute','editor','editing','#uc-icon-arrow-down','href','configElement','schema','body','858179bwbICd','true','once','for','data-uc-image-id','getAttribute','selection','requires','ctxElement','document','uploader-','uploadcare','destroy','18TbrzDl','isRegistered','config','647523BoCnSa','contentLanguage','uc-config','closeMax','uc-upload-ctx-provider','replaceImageSource','input[uploadcare-file-input]','get','_ctxElement','isOfficialPlugin','_initCtx','appendChild','upcast','_initConfig','4795unHKxx','conversion','cleanupImage','commands','remove','7875873pvMArv'];_0x32c2=function(){return _0x331004;};return _0x32c2();}const _0x420c03=_0x4487;(function(_0x364b39,_0x454425){const _0x668d50=_0x4487,_0x288ec8=_0x364b39();while(!![]){try{const _0x829326=-parseInt(_0x668d50(0x1b3))/0x1+parseInt(_0x668d50(0x1ad))/0x2+parseInt(_0x668d50(0x189))/0x3+-parseInt(_0x668d50(0x1ab))/0x4*(parseInt(_0x668d50(0x197))/0x5)+-parseInt(_0x668d50(0x186))/0x6*(-parseInt(_0x668d50(0x179))/0x7)+parseInt(_0x668d50(0x1b9))/0x8+parseInt(_0x668d50(0x19c))/0x9*(-parseInt(_0x668d50(0x1a6))/0xa);if(_0x829326===_0x454425)break;else _0x288ec8['push'](_0x288ec8['shift']());}catch(_0x2a0c7b){_0x288ec8['push'](_0x288ec8['shift']());}}}(_0x32c2,0x3d3ae));import{Plugin as _0x3c0948}from'ckeditor5/src/core.js';import{Dialog as _0x2437a6}from'ckeditor5/src/ui.js';import{createElement as _0x28bd77,global as _0x77f11a,uid as _0x1c9d8c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5297fd}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x588791}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xce4a12}from'./utils/editingutils.js';export class UploadcareEditing extends _0x3c0948{[_0x420c03(0x16d)]=null;[_0x420c03(0x191)]=null;static get[_0x420c03(0x1c0)](){const _0x3e4f5e=_0x420c03;return _0x3e4f5e(0x1b4);}static get[_0x420c03(0x180)](){const _0x29188e=_0x420c03;return[_0x29188e(0x1bf),_0x588791,_0x2437a6];}static get[_0x420c03(0x192)](){return!0x0;}static get[_0x420c03(0x1a8)](){return!0x0;}[_0x420c03(0x1a4)];get[_0x420c03(0x176)](){const _0x261d70=_0x420c03;return this[_0x261d70(0x16d)];}get[_0x420c03(0x181)](){const _0x34ca2f=_0x420c03;return this[_0x34ca2f(0x191)];}constructor(_0x20fe1e){const _0x52f12d=_0x420c03;super(_0x20fe1e),this[_0x52f12d(0x1a4)]=_0x1c9d8c();}[_0x420c03(0x1b5)](){const _0x2eb8d1=_0x420c03,_0x3245e4=this[_0x2eb8d1(0x172)];_0x3245e4[_0x2eb8d1(0x19a)][_0x2eb8d1(0x1b6)](_0x2eb8d1(0x184),new _0x5297fd(_0x3245e4));}[_0x420c03(0x1be)](){const _0xe9330c=_0x420c03;this[_0xe9330c(0x1a1)](),this[_0xe9330c(0x1a0)](),this[_0xe9330c(0x196)](),this[_0xe9330c(0x193)](),this[_0xe9330c(0x1bc)](),this[_0xe9330c(0x1a2)](this[_0xe9330c(0x172)],_0xe9330c(0x185),()=>{const _0x25ec6a=_0xe9330c;this[_0x25ec6a(0x16d)]&&(this[_0x25ec6a(0x16d)][_0x25ec6a(0x19b)](),this[_0x25ec6a(0x16d)]=null),this[_0x25ec6a(0x191)]&&(this[_0x25ec6a(0x191)][_0x25ec6a(0x19b)](),this[_0x25ec6a(0x191)]=null);const _0x3fa224=_0x77f11a[_0x25ec6a(0x182)][_0x25ec6a(0x16e)](_0x25ec6a(0x18f));_0x3fa224&&_0x3fa224[_0x25ec6a(0x19b)]();}),async function(_0x543279){const _0x5b4f89=_0x3689f9([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3dad79=0x535f8c3a,_0x5adcab=0x5358f59a^_0x3dad79,_0x19a60c=window[_0x3689f9([0x44,0x61,0x74,0x65])][_0x3689f9([0x6e,0x6f,0x77])](),_0x1f2301=_0x543279[_0x3689f9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x157111=new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff23e=>{_0x1f2301[_0x3689f9([0x6f,0x6e,0x63,0x65])](_0x3689f9([0x72,0x65,0x61,0x64,0x79]),_0x4ff23e);}),_0x493cf6={[_0x3689f9([0x6b,0x74,0x79])]:_0x3689f9([0x45,0x43]),[_0x3689f9([0x75,0x73,0x65])]:_0x3689f9([0x73,0x69,0x67]),[_0x3689f9([0x63,0x72,0x76])]:_0x3689f9([0x50,0x2d,0x32,0x35,0x36]),[_0x3689f9([0x78])]:_0x3689f9([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3689f9([0x79])]:_0x3689f9([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3689f9([0x61,0x6c,0x67])]:_0x3689f9([0x45,0x53,0x32,0x35,0x36])},_0x484664=_0x1f2301[_0x3689f9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3689f9([0x67,0x65,0x74])](_0x3689f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2afd97(){let _0x4a96d5,_0x5d0a8d=null,_0x58e59b=null;try{if(_0x484664==_0x3689f9([0x47,0x50,0x4c]))return _0x3689f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a96d5=_0x43035b(),!_0x4a96d5)return _0x3689f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a96d5[_0x3689f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x58e59b=_0x1d83b9(_0x4a96d5[_0x3689f9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a96d5[_0x3689f9([0x6a,0x74,0x69])])),await _0x22e158()?_0x49150e()?_0x4ba837()?_0x3689f9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59e0ec()?(_0x4a96d5[_0x3689f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3689f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d0a8d=_0x5017d7(_0x3689f9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a96d5[_0x3689f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3689f9([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d0a8d=_0x5017d7(_0x3689f9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a556b()):_0x3689f9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3689f9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3689f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3689f9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4ba837(){const _0x316337=[_0x3689f9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3689f9([0x74,0x72,0x69,0x61,0x6c])][_0x3689f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a96d5[_0x3689f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19a60c/0x3e8:0xe10*_0x5adcab;return _0x4a96d5[_0x3689f9([0x65,0x78,0x70])]<_0x316337;}function _0x49150e(){const _0x2489c7=_0x4a96d5[_0x3689f9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2489c7&&(!!_0x2489c7[_0x3689f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3689f9([0x2a]))||!!_0x2489c7[_0x3689f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3689f9([0x55,0x50,0x4c,0x43])));}function _0x59e0ec(){const _0x147377=_0x4487,_0x216bbb=_0x4a96d5[_0x3689f9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x216bbb||0x0==_0x216bbb[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48e130}=new URL(window[_0x3689f9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x147377(0x175)]);if(_0x216bbb[_0x3689f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48e130))return!0x0;const _0x2c1777=_0x48e130[_0x3689f9([0x73,0x70,0x6c,0x69,0x74])](_0x3689f9([0x2e]));return _0x216bbb[_0x3689f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29382d=>_0x29382d[_0x3689f9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3689f9([0x2a])))[_0x3689f9([0x6d,0x61,0x70])](_0x4e8a6c=>_0x4e8a6c[_0x3689f9([0x73,0x70,0x6c,0x69,0x74])](_0x3689f9([0x2e])))[_0x3689f9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x294c40=>_0x294c40[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c1777[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3689f9([0x6d,0x61,0x70])](_0x29d602=>Array(_0x2c1777[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29d602[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3689f9([0x66,0x69,0x6c,0x6c])](_0x29d602[0x0]===_0x3689f9([0x2a])?_0x3689f9([0x2a]):'')[_0x3689f9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29d602))[_0x3689f9([0x73,0x6f,0x6d,0x65])](_0x3adef3=>_0x2c1777[_0x3689f9([0x65,0x76,0x65,0x72,0x79])]((_0x2ab4a9,_0x4aeaaf)=>_0x3adef3[_0x4aeaaf]===_0x2ab4a9||_0x3adef3[_0x4aeaaf]===_0x3689f9([0x2a])));}function _0x2a556b(){return _0x5d0a8d&&_0x58e59b?new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10a05d,_0xa26f)=>{_0x5d0a8d[_0x3689f9([0x74,0x68,0x65,0x6e])](_0x10a05d,_0xa26f),_0x58e59b[_0x3689f9([0x74,0x68,0x65,0x6e])](_0x36bb30=>{_0x36bb30!=_0x3689f9([0x56,0x61,0x6c,0x69,0x64])&&_0x10a05d(_0x36bb30);},_0xa26f);}):_0x5d0a8d||_0x58e59b||_0x3689f9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d83b9(_0x3a5314,_0x8c8b74){return new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1289be=>{if(_0x43974c())return _0x1289be(_0x3689f9([0x56,0x61,0x6c,0x69,0x64]));_0x5a003a(),_0x1f2301[_0x3689f9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3689f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23c9f9=!0x1;const _0x55023b=_0x1c9d8c();function _0x46ba90(_0x198ba7){return!!_0x198ba7&&(typeof _0x198ba7===_0x3689f9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x198ba7===_0x3689f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x198ba7[_0x3689f9([0x74,0x68,0x65,0x6e])]===_0x3689f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x198ba7[_0x3689f9([0x63,0x61,0x74,0x63,0x68])]===_0x3689f9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x272561(_0x5708ee){_0x3e9b37(_0x5708ee)[_0x3689f9([0x74,0x68,0x65,0x6e])](_0x3ddff1=>{if(!_0x3ddff1||_0x3ddff1[_0x3689f9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3689f9([0x6f,0x6b]))return _0x3689f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb288e3(_0x599ed0(_0x55023b+_0x8c8b74))!=_0x3ddff1[_0x3689f9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3689f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3689f9([0x56,0x61,0x6c,0x69,0x64]);})[_0x3689f9([0x74,0x68,0x65,0x6e])](_0xd4477a=>(_0x44b441(),_0xd4477a),()=>{const _0x41fd7e=_0x4e78c6();return null==_0x41fd7e?(_0x44b441(),_0x3689f9([0x56,0x61,0x6c,0x69,0x64])):_0x3689f9(_0x19a60c-_0x41fd7e>(0x7753083a^_0x3dad79)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3689f9([0x74,0x68,0x65,0x6e])](_0x1289be)[_0x3689f9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1289be(_0x3689f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x379536=0x536962ba^_0x3dad79;function _0x44b441(){const _0x2b30c3=_0x3689f9([0x6c,0x6c,0x63,0x74,0x2d])+_0xb288e3(_0x599ed0(_0x3a5314)),_0x9e9fed=_0x556dd8(_0xb288e3(window[_0x3689f9([0x4d,0x61,0x74,0x68])][_0x3689f9([0x63,0x65,0x69,0x6c])](_0x19a60c/_0x379536)));window[_0x3689f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3689f9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b30c3,_0x9e9fed);}function _0x4e78c6(){const _0x343b42=_0x3689f9([0x6c,0x6c,0x63,0x74,0x2d])+_0xb288e3(_0x599ed0(_0x3a5314)),_0x2fc76c=window[_0x3689f9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3689f9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x343b42);return _0x2fc76c?window[_0x3689f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x556dd8(_0x2fc76c),0x10)*_0x379536:null;}function _0x3e9b37(_0x2943c6){return new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5598f8,_0x2477ad)=>{_0x2943c6[_0x3689f9([0x74,0x68,0x65,0x6e])](_0x5598f8,_0x2477ad),window[_0x3689f9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2477ad,0x535e58fa^_0x3dad79);});}}_0x1f2301[_0x3689f9([0x6f,0x6e])](_0x3689f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x10db0b,_0x230cb6)=>{if(_0x230cb6[0x0]!=_0x3a5314)return _0x1289be(_0x3689f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x230cb6[0x1]={..._0x230cb6[0x1],[_0x3689f9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x55023b};},{[_0x3689f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3689f9([0x68,0x69,0x67,0x68])}),_0x1f2301[_0x3689f9([0x6f,0x6e])](_0x3689f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x269625=>{_0x46ba90(_0x269625[_0x3689f9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23c9f9=!0x0,_0x272561(_0x269625[_0x3689f9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3689f9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3689f9([0x6c,0x6f,0x77])}),_0x157111[_0x3689f9([0x74,0x68,0x65,0x6e])](()=>{_0x23c9f9||_0x1289be(_0x3689f9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43974c(){return _0x1f2301[_0x3689f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3689f9([0x76,0x69,0x65,0x77])][_0x3689f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3689f9([0x61,0x75,0x74,0x6f]);}function _0x5a003a(){_0x1f2301[_0x3689f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3689f9([0x76,0x69,0x65,0x77])][_0x3689f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3689f9([0x61,0x75,0x74,0x6f]);}}function _0x5017d7(_0x3c829a){const _0x585682=[new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x115b1e=>setTimeout(_0x115b1e,0x5356b2f6^_0x3dad79)),_0x157111[_0x3689f9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58cf25=>{let _0x4e51d2=0x0;_0x1f2301[_0x3689f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3689f9([0x6f,0x6e])](_0x3689f9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1bc1b3,_0x20f9aa)=>{_0x20f9aa[0x0][_0x3689f9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e51d2++,_0x4e51d2==(0x535f8dc2^_0x3dad79)&&(_0x58cf25(),_0x1bc1b3[_0x3689f9([0x6f,0x66,0x66])]());});}))];return window[_0x3689f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3689f9([0x72,0x61,0x63,0x65])](_0x585682)[_0x3689f9([0x74,0x68,0x65,0x6e])](()=>_0x3c829a);}async function _0x341e50(){await _0x157111,_0x1f2301[_0x3689f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3689f9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c207b,_0x1f2301[_0x3689f9([0x6d,0x6f,0x64,0x65,0x6c])][_0x3689f9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c207b,_0x1f2301[_0x3689f9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3689f9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16af93(_0x5c55f8){const _0x4f7958=_0x494b16();_0x1f2301[_0x4f7958]=_0x3689f9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c55f8,_0x5c55f8!=_0x3689f9([0x56,0x61,0x6c,0x69,0x64])&&_0x341e50();}function _0x494b16(){const _0x33fee6=window[_0x3689f9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3689f9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3689f9([0x6e,0x6f,0x77])]())[_0x3689f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3689f9([0x2e]),'');let _0xcba280=_0x3689f9([0x68]);for(let _0x1af528=0x0;_0x1af528<_0x33fee6[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1af528+=0x2){let _0x3100ff=window[_0x3689f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33fee6[_0x3689f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1af528,_0x1af528+0x2));_0x3100ff>=_0x5b4f89[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3100ff-=_0x5b4f89[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcba280+=_0x5b4f89[_0x3100ff];}return _0xcba280;}function _0x43035b(){const _0x325f2b=_0x484664[_0x3689f9([0x73,0x70,0x6c,0x69,0x74])](_0x3689f9([0x2e]));if(0x3!=_0x325f2b[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e8a26(_0x325f2b[0x1]);function _0x4e8a26(_0x3d9d06){const _0x47dab2=_0x300025(_0x3d9d06);return _0x47dab2&&_0x3cc946()?_0x47dab2:null;function _0x3cc946(){const _0x5dc1fe=_0x47dab2[_0x3689f9([0x6a,0x74,0x69])],_0x5bd34c=window[_0x3689f9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dc1fe[_0x3689f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dc1fe[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30f85e={..._0x47dab2,[_0x3689f9([0x6a,0x74,0x69])]:_0x5dc1fe[_0x3689f9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dc1fe[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30f85e[_0x3689f9([0x76,0x63])],_0x599ed0(_0x30f85e)==_0x5bd34c;}}}async function _0x22e158(){let _0x2232b9=!0x0;try{const _0x191373=_0x484664[_0x3689f9([0x73,0x70,0x6c,0x69,0x74])](_0x3689f9([0x2e])),[_0x3ffd29,_0x56e6be,_0x34e06f]=_0x191373;return _0x370bb1(_0x3ffd29),await _0x3512dd(_0x3ffd29,_0x56e6be,_0x34e06f),_0x2232b9;}catch{return!0x1;}function _0x370bb1(_0x4b4c90){const _0x1104ec=_0x300025(_0x4b4c90);_0x1104ec&&_0x1104ec[_0x3689f9([0x61,0x6c,0x67])]==_0x3689f9([0x45,0x53,0x32,0x35,0x36])||(_0x2232b9=!0x1);}async function _0x3512dd(_0x3d34b5,_0x2af45b,_0x426ee5){const _0x233556=window[_0x3689f9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3689f9([0x66,0x72,0x6f,0x6d])](_0x17ee80(_0x426ee5),_0x279af7=>_0x279af7[_0x3689f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd575ae=new window[(_0x3689f9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3689f9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d34b5+_0x3689f9([0x2e])+_0x2af45b),_0x6f3d72=window[_0x3689f9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3689f9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6f3d72)return;const _0xac52d8=await _0x6f3d72[_0x3689f9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3689f9([0x6a,0x77,0x6b]),_0x493cf6,{[_0x3689f9([0x6e,0x61,0x6d,0x65])]:_0x3689f9([0x45,0x43,0x44,0x53,0x41]),[_0x3689f9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3689f9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3689f9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6f3d72[_0x3689f9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3689f9([0x6e,0x61,0x6d,0x65])]:_0x3689f9([0x45,0x43,0x44,0x53,0x41]),[_0x3689f9([0x68,0x61,0x73,0x68])]:{[_0x3689f9([0x6e,0x61,0x6d,0x65])]:_0x3689f9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xac52d8,_0x233556,_0xd575ae)||(_0x2232b9=!0x1);}}function _0x300025(_0x358999){return _0x358999[_0x3689f9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3689f9([0x65,0x79]))?JSON[_0x3689f9([0x70,0x61,0x72,0x73,0x65])](_0x17ee80(_0x358999)):null;}function _0x17ee80(_0x56fbff){return window[_0x3689f9([0x61,0x74,0x6f,0x62])](_0x56fbff[_0x3689f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3689f9([0x2b]))[_0x3689f9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3689f9([0x2f])));}function _0x599ed0(_0x1ed692){let _0x105b04=0x1505;function _0x384a79(_0x42dae9){for(let _0x3b2835=0x0;_0x3b2835<_0x42dae9[_0x3689f9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b2835++){const _0x4381ac=_0x42dae9[_0x3689f9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b2835);_0x105b04=(_0x105b04<<0x5)+_0x105b04+_0x4381ac,_0x105b04&=_0x105b04;}}function _0x8c55a9(_0x10e92f){Array[_0x3689f9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10e92f)?_0x10e92f[_0x3689f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8c55a9):_0x10e92f&&typeof _0x10e92f==_0x3689f9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3689f9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10e92f)[_0x3689f9([0x73,0x6f,0x72,0x74])]()[_0x3689f9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dccb8,_0x39e51a])=>{_0x384a79(_0x3dccb8),_0x8c55a9(_0x39e51a);}):_0x384a79(window[_0x3689f9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10e92f));}return _0x8c55a9(_0x1ed692),_0x105b04>>>0x0;}function _0xb288e3(_0x4e7437){return _0x4e7437[_0x3689f9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3689f9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3689f9([0x30]));}function _0x556dd8(_0xb0e5fc){return _0xb0e5fc[_0x3689f9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3689f9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3689f9([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c207b(){}function _0x3689f9(_0x42882a){const _0x2eb603=_0x4487;return _0x42882a[_0x2eb603(0x16c)](_0x2faa30=>String[_0x2eb603(0x1ac)](_0x2faa30))[_0x2eb603(0x1a7)]('');}_0x16af93(await _0x2afd97());}(this);}[_0x420c03(0x1a1)](){const _0x1f43e7=_0x420c03,_0x42d082=this[_0x1f43e7(0x172)][_0x1f43e7(0x19f)][_0x1f43e7(0x177)];_0x42d082[_0x1f43e7(0x187)](_0x1f43e7(0x1a3))&&_0x42d082[_0x1f43e7(0x1b7)](_0x1f43e7(0x1a3),{'allowAttributes':[_0x1f43e7(0x19d)]}),_0x42d082[_0x1f43e7(0x187)](_0x1f43e7(0x1a5))&&_0x42d082[_0x1f43e7(0x1b7)](_0x1f43e7(0x1a5),{'allowAttributes':[_0x1f43e7(0x19d)]});}[_0x420c03(0x1a0)](){const _0x58025b=_0x420c03,_0x3bc6=this[_0x58025b(0x172)];_0x3bc6[_0x58025b(0x198)][_0x58025b(0x17c)](_0x58025b(0x1b1))[_0x58025b(0x1af)]({'model':_0x58025b(0x19d),'view':_0x58025b(0x17d)}),_0x3bc6[_0x58025b(0x198)][_0x58025b(0x17c)](_0x58025b(0x195))[_0x58025b(0x19e)]({'model':{'key':_0x58025b(0x19d),'value':_0x8138ea=>_0x8138ea[_0x58025b(0x17e)](_0x58025b(0x17d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2e1470=_0x3bc6[_0x58025b(0x19a)][_0x58025b(0x190)](_0x58025b(0x18e));_0x2e1470&&this[_0x58025b(0x1a2)](_0x2e1470,_0x58025b(0x199),(_0x20d251,[_0x15e5a2,_0x389a0d])=>{const _0x132389=_0x58025b;_0x15e5a2[_0x132389(0x1b8)](_0x132389(0x19d),_0x389a0d);});}[_0x420c03(0x196)](){const _0x36698f=_0x420c03,_0x485fc7=this[_0x36698f(0x172)][_0x36698f(0x188)][_0x36698f(0x190)](_0x36698f(0x1aa))||{},_0x535cfb=this[_0x36698f(0x172)][_0x36698f(0x188)][_0x36698f(0x190)](_0x36698f(0x170))||'';this[_0x36698f(0x16d)]=_0x28bd77(_0x77f11a[_0x36698f(0x182)],_0x36698f(0x18b),{..._0x485fc7,'pubkey':_0x535cfb,'ctx-name':_0x36698f(0x183)+this[_0x36698f(0x1a4)],'sourceList':'','imgOnly':_0x36698f(0x17a),'removeCopyright':_0x36698f(0x17a),'localeName':this[_0x36698f(0x172)][_0x36698f(0x16f)][_0x36698f(0x18a)],'externalSourcesEmbedCss':_0x36698f(0x1b2)}),this[_0x36698f(0x16d)][_0x36698f(0x1a9)]=_0x3d08d8=>{const _0x177928=_0x36698f;if(_0x177928(0x18c)==_0x3d08d8)return _0x177928(0x174);},_0x77f11a[_0x36698f(0x182)][_0x36698f(0x178)][_0x36698f(0x194)](this[_0x36698f(0x16d)]);}[_0x420c03(0x193)](){const _0xf8f35b=_0x420c03;this[_0xf8f35b(0x191)]=_0x28bd77(_0x77f11a[_0xf8f35b(0x182)],_0xf8f35b(0x18d),{'ctx-name':_0xf8f35b(0x183)+this[_0xf8f35b(0x1a4)]}),_0x77f11a[_0xf8f35b(0x182)][_0xf8f35b(0x178)][_0xf8f35b(0x194)](this[_0xf8f35b(0x191)]);}[_0x420c03(0x1bc)](){const _0x5baa6b=_0x420c03,_0x2f4a78=this[_0x5baa6b(0x172)][_0x5baa6b(0x19a)][_0x5baa6b(0x190)](_0x5baa6b(0x1ae));_0x2f4a78&&this[_0x5baa6b(0x1a2)](_0x2f4a78,_0x5baa6b(0x171),()=>{const _0x67583b=_0x5baa6b,_0x133f56=this[_0x67583b(0x172)][_0x67583b(0x19f)][_0x67583b(0x182)][_0x67583b(0x17f)][_0x67583b(0x1bd)]();_0x133f56&&_0x133f56[_0x67583b(0x17e)](_0x67583b(0x19d))&&this[_0x67583b(0x172)][_0x67583b(0x173)][_0x67583b(0x1ba)][_0x67583b(0x17b)](_0x67583b(0x1bb),()=>{const _0x1ab968=_0x67583b;_0xce4a12(this[_0x1ab968(0x172)],_0x133f56);});});const _0x54a73f=this[_0x5baa6b(0x172)][_0x5baa6b(0x19a)][_0x5baa6b(0x190)](_0x5baa6b(0x1b0));_0x54a73f&&this[_0x5baa6b(0x1a2)](_0x54a73f,_0x5baa6b(0x171),()=>{const _0x23cc40=_0x5baa6b,_0x745d5e=this[_0x23cc40(0x172)][_0x23cc40(0x19f)][_0x23cc40(0x182)][_0x23cc40(0x17f)][_0x23cc40(0x1bd)]();_0x745d5e&&_0x745d5e[_0x23cc40(0x17e)](_0x23cc40(0x19d))&&this[_0x23cc40(0x172)][_0x23cc40(0x173)][_0x23cc40(0x1ba)][_0x23cc40(0x17b)](_0x23cc40(0x1bb),()=>{const _0x1688f2=_0x23cc40;_0xce4a12(this[_0x1688f2(0x172)],_0x745d5e);});});}}
|
|
23
|
+
const _0x28eaef=_0x299d;(function(_0x24185b,_0xeab6cb){const _0x200ee1=_0x299d,_0x2e90f5=_0x24185b();while(!![]){try{const _0x41f43c=parseInt(_0x200ee1(0x10f))/0x1*(-parseInt(_0x200ee1(0x162))/0x2)+parseInt(_0x200ee1(0x146))/0x3*(parseInt(_0x200ee1(0x13a))/0x4)+-parseInt(_0x200ee1(0x127))/0x5+-parseInt(_0x200ee1(0x157))/0x6+parseInt(_0x200ee1(0x117))/0x7*(-parseInt(_0x200ee1(0x138))/0x8)+parseInt(_0x200ee1(0x11a))/0x9+parseInt(_0x200ee1(0x11e))/0xa;if(_0x41f43c===_0xeab6cb)break;else _0x2e90f5['push'](_0x2e90f5['shift']());}catch(_0x1badb4){_0x2e90f5['push'](_0x2e90f5['shift']());}}}(_0x3f2c,0x96e15));function _0x3f2c(){const _0x161083=['true','requires','8167446yalfrd','selection','isOfficialPlugin','add','19347670gmfvmE','uc-upload-ctx-provider','listenTo','destroy','join','iconHrefResolver','commands','remove','data-uc-image-id','4588130typnaK','document','body','\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','UploadcareEditing','_ctxElement','_configElement','isPremiumPlugin','_initSchema','configElement','imageBlock','editor','fromCharCode','config','_initConfig','map','locale','16opWkTt','getAttribute','3808532bHixLu','once','getSelectedElement','imageInline','href','elementToAttribute','ucContextId','input[uploadcare-file-input]','uc-config','conversion','render','uploadcare.uploader','3cQnjkd','ctxElement','uploader-','execute','uploadcare.pubkey','upcast','_initImageProcessingIndicator','schema','editing','cleanupImage','removeAttribute','init','replaceImageSource','view','downcast','extend','PictureEditing','6830862qdEHft','closeMax','model','isRegistered','get','_initCtx','appendChild','uploadcareImageReplace','afterInit','contentLanguage','insertImage','216iLROvT','attributeToAttribute','5082LkojZD','pluginName','for','#uc-icon-arrow-down','uploadcare','uploadcareImageId','_initConversion','querySelector','2000005qfPYoh'];_0x3f2c=function(){return _0x161083;};return _0x3f2c();}import{Plugin as _0x2bed9c}from'ckeditor5/src/core.js';import{Dialog as _0x176802}from'ckeditor5/src/ui.js';import{createElement as _0xadc071,global as _0x4cce95,uid as _0xbc8fc9}from'ckeditor5/src/utils.js';function _0x299d(_0x45c7a4,_0x44c546){const _0x3f2cfc=_0x3f2c();return _0x299d=function(_0x299de5,_0x25fa7f){_0x299de5=_0x299de5-0x10f;let _0x59af63=_0x3f2cfc[_0x299de5];return _0x59af63;},_0x299d(_0x45c7a4,_0x44c546);}import{UploadcareCommand as _0x4a38f9}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x589663}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2aa37d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2bed9c{[_0x28eaef(0x12d)]=null;[_0x28eaef(0x12c)]=null;static get[_0x28eaef(0x110)](){const _0x2c2ffe=_0x28eaef;return _0x2c2ffe(0x12b);}static get[_0x28eaef(0x119)](){const _0x21732d=_0x28eaef;return[_0x21732d(0x156),_0x589663,_0x176802];}static get[_0x28eaef(0x11c)](){return!0x0;}static get[_0x28eaef(0x12e)](){return!0x0;}[_0x28eaef(0x140)];get[_0x28eaef(0x130)](){const _0x1f5b0d=_0x28eaef;return this[_0x1f5b0d(0x12d)];}get[_0x28eaef(0x147)](){const _0x1898e0=_0x28eaef;return this[_0x1898e0(0x12c)];}constructor(_0x14c3e5){const _0x92ee72=_0x28eaef;super(_0x14c3e5),this[_0x92ee72(0x140)]=_0xbc8fc9();}[_0x28eaef(0x151)](){const _0x4dc99b=_0x28eaef,_0xfd9d86=this[_0x4dc99b(0x132)];_0xfd9d86[_0x4dc99b(0x124)][_0x4dc99b(0x11d)](_0x4dc99b(0x113),new _0x4a38f9(_0xfd9d86));}[_0x28eaef(0x15f)](){const _0x3f856f=_0x28eaef;this[_0x3f856f(0x12f)](),this[_0x3f856f(0x115)](),this[_0x3f856f(0x135)](),this[_0x3f856f(0x15c)](),this[_0x3f856f(0x14c)](),this[_0x3f856f(0x120)](this[_0x3f856f(0x132)],_0x3f856f(0x121),()=>{const _0x4957c2=_0x3f856f;this[_0x4957c2(0x12d)]&&(this[_0x4957c2(0x12d)][_0x4957c2(0x125)](),this[_0x4957c2(0x12d)]=null),this[_0x4957c2(0x12c)]&&(this[_0x4957c2(0x12c)][_0x4957c2(0x125)](),this[_0x4957c2(0x12c)]=null);const _0x2a4720=_0x4cce95[_0x4957c2(0x128)][_0x4957c2(0x116)](_0x4957c2(0x141));_0x2a4720&&_0x2a4720[_0x4957c2(0x125)]();}),async function(_0x52f556){const _0x2a1f07=_0x293d22([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xf97fe3=0x535f8c3a,_0xe115d4=0x5358f5ea^_0xf97fe3,_0x32c631=window[_0x293d22([0x44,0x61,0x74,0x65])][_0x293d22([0x6e,0x6f,0x77])](),_0x11f969=_0x52f556[_0x293d22([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57f071=new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b1016=>{_0x11f969[_0x293d22([0x6f,0x6e,0x63,0x65])](_0x293d22([0x72,0x65,0x61,0x64,0x79]),_0x1b1016);}),_0x4ea2fe={[_0x293d22([0x6b,0x74,0x79])]:_0x293d22([0x45,0x43]),[_0x293d22([0x75,0x73,0x65])]:_0x293d22([0x73,0x69,0x67]),[_0x293d22([0x63,0x72,0x76])]:_0x293d22([0x50,0x2d,0x32,0x35,0x36]),[_0x293d22([0x78])]:_0x293d22([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]),[_0x293d22([0x79])]:_0x293d22([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]),[_0x293d22([0x61,0x6c,0x67])]:_0x293d22([0x45,0x53,0x32,0x35,0x36])},_0x2a2446=_0x11f969[_0x293d22([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x293d22([0x67,0x65,0x74])](_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23bfd4(){let _0x4ef8d1,_0x35cd11=null,_0x5e19e7=null;try{if(_0x2a2446==_0x293d22([0x47,0x50,0x4c]))return _0x293d22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ef8d1=_0x36cd8a(),!_0x4ef8d1)return _0x293d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ef8d1[_0x293d22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e19e7=_0x239110(_0x4ef8d1[_0x293d22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ef8d1[_0x293d22([0x6a,0x74,0x69])])),await _0x20602a()?_0x3cc358()?_0x28ccbf()?_0x293d22([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x13987b()?(_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x293d22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x35cd11=_0x34d1bd(_0x293d22([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x293d22([0x74,0x72,0x69,0x61,0x6c])&&(_0x35cd11=_0x34d1bd(_0x293d22([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bc031()):_0x293d22([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x293d22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x293d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x293d22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28ccbf(){const _0x3f96d4=[_0x293d22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x293d22([0x74,0x72,0x69,0x61,0x6c])][_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32c631/0x3e8:0xe10*_0xe115d4;return _0x4ef8d1[_0x293d22([0x65,0x78,0x70])]<_0x3f96d4;}function _0x3cc358(){const _0x90838=_0x4ef8d1[_0x293d22([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x90838&&(!!_0x90838[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293d22([0x2a]))||!!_0x90838[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293d22([0x55,0x50,0x4c,0x43])));}function _0x13987b(){const _0x3a692f=_0x299d,_0x429d75=_0x4ef8d1[_0x293d22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x429d75||0x0==_0x429d75[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2edd03}=new URL(window[_0x293d22([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a692f(0x13e)]);if(_0x429d75[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2edd03))return!0x0;const _0x3a9765=_0x2edd03[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e]));return _0x429d75[_0x293d22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43005d=>_0x43005d[_0x293d22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293d22([0x2a])))[_0x293d22([0x6d,0x61,0x70])](_0x9af507=>_0x9af507[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e])))[_0x293d22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57f166=>_0x57f166[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a9765[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x293d22([0x6d,0x61,0x70])](_0x42cf4a=>Array(_0x3a9765[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42cf4a[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x293d22([0x66,0x69,0x6c,0x6c])](_0x42cf4a[0x0]===_0x293d22([0x2a])?_0x293d22([0x2a]):'')[_0x293d22([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42cf4a))[_0x293d22([0x73,0x6f,0x6d,0x65])](_0x511432=>_0x3a9765[_0x293d22([0x65,0x76,0x65,0x72,0x79])]((_0x155679,_0x47eaff)=>_0x511432[_0x47eaff]===_0x155679||_0x511432[_0x47eaff]===_0x293d22([0x2a])));}function _0x4bc031(){return _0x35cd11&&_0x5e19e7?new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48505e,_0x555bd8)=>{_0x35cd11[_0x293d22([0x74,0x68,0x65,0x6e])](_0x48505e,_0x555bd8),_0x5e19e7[_0x293d22([0x74,0x68,0x65,0x6e])](_0x24b57d=>{_0x24b57d!=_0x293d22([0x56,0x61,0x6c,0x69,0x64])&&_0x48505e(_0x24b57d);},_0x555bd8);}):_0x35cd11||_0x5e19e7||_0x293d22([0x56,0x61,0x6c,0x69,0x64]);}}function _0x239110(_0x8a9e0d,_0x6275d1){return new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2abba6=>{if(_0x231b6e())return _0x2abba6(_0x293d22([0x56,0x61,0x6c,0x69,0x64]));_0x2d5c1d(),_0x11f969[_0x293d22([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x293d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ff29c=!0x1;const _0x6afd60=_0xbc8fc9();function _0xbf2ef5(_0x456ddb){return!!_0x456ddb&&(typeof _0x456ddb===_0x293d22([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x456ddb===_0x293d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x456ddb[_0x293d22([0x74,0x68,0x65,0x6e])]===_0x293d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x456ddb[_0x293d22([0x63,0x61,0x74,0x63,0x68])]===_0x293d22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bf15c(_0x14f705){_0x4f75d9(_0x14f705)[_0x293d22([0x74,0x68,0x65,0x6e])](_0x26dd2c=>{if(!_0x26dd2c||_0x26dd2c[_0x293d22([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x293d22([0x6f,0x6b]))return _0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf0f71f(_0x38badf(_0x6afd60+_0x6275d1))!=_0x26dd2c[_0x293d22([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x293d22([0x56,0x61,0x6c,0x69,0x64]);})[_0x293d22([0x74,0x68,0x65,0x6e])](_0x4e02c2=>(_0x4090c7(),_0x4e02c2),()=>{const _0x175de2=_0x44d4b5();return null==_0x175de2?(_0x4090c7(),_0x293d22([0x56,0x61,0x6c,0x69,0x64])):_0x293d22(_0x32c631-_0x175de2>(0x7753083a^_0xf97fe3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x293d22([0x74,0x68,0x65,0x6e])](_0x2abba6)[_0x293d22([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2abba6(_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10f624=0x536962ba^_0xf97fe3;function _0x4090c7(){const _0x58c33d=_0x293d22([0x6c,0x6c,0x63,0x74,0x2d])+_0xf0f71f(_0x38badf(_0x8a9e0d)),_0x191d79=_0x392578(_0xf0f71f(window[_0x293d22([0x4d,0x61,0x74,0x68])][_0x293d22([0x63,0x65,0x69,0x6c])](_0x32c631/_0x10f624)));window[_0x293d22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x293d22([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58c33d,_0x191d79);}function _0x44d4b5(){const _0x40d395=_0x293d22([0x6c,0x6c,0x63,0x74,0x2d])+_0xf0f71f(_0x38badf(_0x8a9e0d)),_0xc355d8=window[_0x293d22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x293d22([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40d395);return _0xc355d8?window[_0x293d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x392578(_0xc355d8),0x10)*_0x10f624:null;}function _0x4f75d9(_0x4277f9){return new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3db7d0,_0x21d066)=>{_0x4277f9[_0x293d22([0x74,0x68,0x65,0x6e])](_0x3db7d0,_0x21d066),window[_0x293d22([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21d066,0x535e58fa^_0xf97fe3);});}}_0x11f969[_0x293d22([0x6f,0x6e])](_0x293d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x174ca7,_0x4543b2)=>{if(_0x4543b2[0x0]!=_0x8a9e0d)return _0x2abba6(_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4543b2[0x1]={..._0x4543b2[0x1],[_0x293d22([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6afd60};},{[_0x293d22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x293d22([0x68,0x69,0x67,0x68])}),_0x11f969[_0x293d22([0x6f,0x6e])](_0x293d22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xca8878=>{_0xbf2ef5(_0xca8878[_0x293d22([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ff29c=!0x0,_0x5bf15c(_0xca8878[_0x293d22([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x293d22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x293d22([0x6c,0x6f,0x77])}),_0x57f071[_0x293d22([0x74,0x68,0x65,0x6e])](()=>{_0x3ff29c||_0x2abba6(_0x293d22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x231b6e(){return _0x11f969[_0x293d22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x293d22([0x76,0x69,0x65,0x77])][_0x293d22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x293d22([0x61,0x75,0x74,0x6f]);}function _0x2d5c1d(){_0x11f969[_0x293d22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x293d22([0x76,0x69,0x65,0x77])][_0x293d22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x293d22([0x61,0x75,0x74,0x6f]);}}function _0x34d1bd(_0x2be435){const _0x3aba7a=[new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0754=>setTimeout(_0x1b0754,0x5356b2f6^_0xf97fe3)),_0x57f071[_0x293d22([0x74,0x68,0x65,0x6e])](()=>new window[(_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x197514=>{let _0xfc64fb=0x0;_0x11f969[_0x293d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x293d22([0x6f,0x6e])](_0x293d22([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x212256,_0x10de70)=>{_0x10de70[0x0][_0x293d22([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfc64fb++,_0xfc64fb==(0x535f8dc2^_0xf97fe3)&&(_0x197514(),_0x212256[_0x293d22([0x6f,0x66,0x66])]());});}))];return window[_0x293d22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x293d22([0x72,0x61,0x63,0x65])](_0x3aba7a)[_0x293d22([0x74,0x68,0x65,0x6e])](()=>_0x2be435);}async function _0x1cc5f7(){await _0x57f071,_0x11f969[_0x293d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x293d22([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x573967,_0x11f969[_0x293d22([0x6d,0x6f,0x64,0x65,0x6c])][_0x293d22([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x573967,_0x11f969[_0x293d22([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x293d22([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a1bcc(_0x531946){const _0x385f19=_0x262d31();_0x11f969[_0x385f19]=_0x293d22([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x531946,_0x531946!=_0x293d22([0x56,0x61,0x6c,0x69,0x64])&&_0x1cc5f7();}function _0x262d31(){const _0xf689d7=window[_0x293d22([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x293d22([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x293d22([0x6e,0x6f,0x77])]())[_0x293d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x293d22([0x2e]),'');let _0x497e2a=_0x293d22([0x68]);for(let _0x5dcec0=0x0;_0x5dcec0<_0xf689d7[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dcec0+=0x2){let _0x2d532c=window[_0x293d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf689d7[_0x293d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dcec0,_0x5dcec0+0x2));_0x2d532c>=_0x2a1f07[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d532c-=_0x2a1f07[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x497e2a+=_0x2a1f07[_0x2d532c];}return _0x497e2a;}function _0x36cd8a(){const _0x3e418d=_0x2a2446[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e]));if(0x3!=_0x3e418d[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x64595(_0x3e418d[0x1]);function _0x64595(_0x16eaa5){const _0x50efe8=_0x5aa242(_0x16eaa5);return _0x50efe8&&_0x49791c()?_0x50efe8:null;function _0x49791c(){const _0x7e8e61=_0x50efe8[_0x293d22([0x6a,0x74,0x69])],_0x34d916=window[_0x293d22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7e8e61[_0x293d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7e8e61[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f39f4={..._0x50efe8,[_0x293d22([0x6a,0x74,0x69])]:_0x7e8e61[_0x293d22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x7e8e61[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f39f4[_0x293d22([0x76,0x63])],_0x38badf(_0x1f39f4)==_0x34d916;}}}async function _0x20602a(){let _0x28290f=!0x0;try{const _0x4c8712=_0x2a2446[_0x293d22([0x73,0x70,0x6c,0x69,0x74])](_0x293d22([0x2e])),[_0x283920,_0x3d836d,_0xfc1d79]=_0x4c8712;return _0x3b827e(_0x283920),await _0x2e2bdf(_0x283920,_0x3d836d,_0xfc1d79),_0x28290f;}catch{return!0x1;}function _0x3b827e(_0x48a5df){const _0x31d03f=_0x5aa242(_0x48a5df);_0x31d03f&&_0x31d03f[_0x293d22([0x61,0x6c,0x67])]==_0x293d22([0x45,0x53,0x32,0x35,0x36])||(_0x28290f=!0x1);}async function _0x2e2bdf(_0x457f91,_0x28fb48,_0x34cc8f){const _0x40687f=window[_0x293d22([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x293d22([0x66,0x72,0x6f,0x6d])](_0x55b138(_0x34cc8f),_0x89aacb=>_0x89aacb[_0x293d22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a17e4=new window[(_0x293d22([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x293d22([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x457f91+_0x293d22([0x2e])+_0x28fb48),_0x5cfb31=window[_0x293d22([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x293d22([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5cfb31)return;const _0x51b703=await _0x5cfb31[_0x293d22([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x293d22([0x6a,0x77,0x6b]),_0x4ea2fe,{[_0x293d22([0x6e,0x61,0x6d,0x65])]:_0x293d22([0x45,0x43,0x44,0x53,0x41]),[_0x293d22([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x293d22([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x293d22([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5cfb31[_0x293d22([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x293d22([0x6e,0x61,0x6d,0x65])]:_0x293d22([0x45,0x43,0x44,0x53,0x41]),[_0x293d22([0x68,0x61,0x73,0x68])]:{[_0x293d22([0x6e,0x61,0x6d,0x65])]:_0x293d22([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51b703,_0x40687f,_0x2a17e4)||(_0x28290f=!0x1);}}function _0x5aa242(_0x5539b6){return _0x5539b6[_0x293d22([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x293d22([0x65,0x79]))?JSON[_0x293d22([0x70,0x61,0x72,0x73,0x65])](_0x55b138(_0x5539b6)):null;}function _0x55b138(_0xac9c07){return window[_0x293d22([0x61,0x74,0x6f,0x62])](_0xac9c07[_0x293d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x293d22([0x2b]))[_0x293d22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x293d22([0x2f])));}function _0x38badf(_0x100436){let _0x56a996=0x1505;function _0x551e4d(_0x49334e){for(let _0xc4dcb0=0x0;_0xc4dcb0<_0x49334e[_0x293d22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc4dcb0++){const _0x9fceb9=_0x49334e[_0x293d22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc4dcb0);_0x56a996=(_0x56a996<<0x5)+_0x56a996+_0x9fceb9,_0x56a996&=_0x56a996;}}function _0x360d4b(_0x4ce305){Array[_0x293d22([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ce305)?_0x4ce305[_0x293d22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x360d4b):_0x4ce305&&typeof _0x4ce305==_0x293d22([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x293d22([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ce305)[_0x293d22([0x73,0x6f,0x72,0x74])]()[_0x293d22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd09fd,_0x30b1da])=>{_0x551e4d(_0xd09fd),_0x360d4b(_0x30b1da);}):_0x551e4d(window[_0x293d22([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ce305));}return _0x360d4b(_0x100436),_0x56a996>>>0x0;}function _0xf0f71f(_0x4c3c9a){return _0x4c3c9a[_0x293d22([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x293d22([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x293d22([0x30]));}function _0x392578(_0x188fc8){return _0x188fc8[_0x293d22([0x73,0x70,0x6c,0x69,0x74])]('')[_0x293d22([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x293d22([0x6a,0x6f,0x69,0x6e])]('');}function _0x573967(){}function _0x293d22(_0x4a51a4){const _0x4523e6=_0x299d;return _0x4a51a4[_0x4523e6(0x136)](_0x572c28=>String[_0x4523e6(0x133)](_0x572c28))[_0x4523e6(0x122)]('');}_0x5a1bcc(await _0x23bfd4());}(this);}[_0x28eaef(0x12f)](){const _0x317e3d=_0x28eaef,_0xdffe3b=this[_0x317e3d(0x132)][_0x317e3d(0x159)][_0x317e3d(0x14d)];_0xdffe3b[_0x317e3d(0x15a)](_0x317e3d(0x131))&&_0xdffe3b[_0x317e3d(0x155)](_0x317e3d(0x131),{'allowAttributes':[_0x317e3d(0x114)]}),_0xdffe3b[_0x317e3d(0x15a)](_0x317e3d(0x13d))&&_0xdffe3b[_0x317e3d(0x155)](_0x317e3d(0x13d),{'allowAttributes':[_0x317e3d(0x114)]});}[_0x28eaef(0x115)](){const _0x4db169=_0x28eaef,_0xb2bf55=this[_0x4db169(0x132)];_0xb2bf55[_0x4db169(0x143)][_0x4db169(0x111)](_0x4db169(0x154))[_0x4db169(0x163)]({'model':_0x4db169(0x114),'view':_0x4db169(0x126)}),_0xb2bf55[_0x4db169(0x143)][_0x4db169(0x111)](_0x4db169(0x14b))[_0x4db169(0x13f)]({'model':{'key':_0x4db169(0x114),'value':_0x3e7576=>_0x3e7576[_0x4db169(0x139)](_0x4db169(0x126))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x314d7b=_0xb2bf55[_0x4db169(0x124)][_0x4db169(0x15b)](_0x4db169(0x152));_0x314d7b&&this[_0x4db169(0x120)](_0x314d7b,_0x4db169(0x14f),(_0x5ec50e,[_0x5ba2df,_0x208cef])=>{const _0x2fc9ae=_0x4db169;_0x5ba2df[_0x2fc9ae(0x150)](_0x2fc9ae(0x114),_0x208cef);});}[_0x28eaef(0x135)](){const _0x3501b6=_0x28eaef,_0x1a7211=this[_0x3501b6(0x132)][_0x3501b6(0x134)][_0x3501b6(0x15b)](_0x3501b6(0x145))||{},_0x3370ce=this[_0x3501b6(0x132)][_0x3501b6(0x134)][_0x3501b6(0x15b)](_0x3501b6(0x14a))||'';this[_0x3501b6(0x12d)]=_0xadc071(_0x4cce95[_0x3501b6(0x128)],_0x3501b6(0x142),{..._0x1a7211,'pubkey':_0x3370ce,'ctx-name':_0x3501b6(0x148)+this[_0x3501b6(0x140)],'sourceList':'','imgOnly':_0x3501b6(0x118),'removeCopyright':_0x3501b6(0x118),'localeName':this[_0x3501b6(0x132)][_0x3501b6(0x137)][_0x3501b6(0x160)],'externalSourcesEmbedCss':_0x3501b6(0x12a)}),this[_0x3501b6(0x12d)][_0x3501b6(0x123)]=_0x40f127=>{const _0x247ea6=_0x3501b6;if(_0x247ea6(0x158)==_0x40f127)return _0x247ea6(0x112);},_0x4cce95[_0x3501b6(0x128)][_0x3501b6(0x129)][_0x3501b6(0x15d)](this[_0x3501b6(0x12d)]);}[_0x28eaef(0x15c)](){const _0x39dad5=_0x28eaef;this[_0x39dad5(0x12c)]=_0xadc071(_0x4cce95[_0x39dad5(0x128)],_0x39dad5(0x11f),{'ctx-name':_0x39dad5(0x148)+this[_0x39dad5(0x140)]}),_0x4cce95[_0x39dad5(0x128)][_0x39dad5(0x129)][_0x39dad5(0x15d)](this[_0x39dad5(0x12c)]);}[_0x28eaef(0x14c)](){const _0x1924fa=_0x28eaef,_0x152741=this[_0x1924fa(0x132)][_0x1924fa(0x124)][_0x1924fa(0x15b)](_0x1924fa(0x161));_0x152741&&this[_0x1924fa(0x120)](_0x152741,_0x1924fa(0x149),()=>{const _0x4f3e2d=_0x1924fa,_0x5f2433=this[_0x4f3e2d(0x132)][_0x4f3e2d(0x159)][_0x4f3e2d(0x128)][_0x4f3e2d(0x11b)][_0x4f3e2d(0x13c)]();_0x5f2433&&_0x5f2433[_0x4f3e2d(0x139)](_0x4f3e2d(0x114))&&this[_0x4f3e2d(0x132)][_0x4f3e2d(0x14e)][_0x4f3e2d(0x153)][_0x4f3e2d(0x13b)](_0x4f3e2d(0x144),()=>{const _0x20dbd7=_0x4f3e2d;_0x2aa37d(this[_0x20dbd7(0x132)],_0x5f2433);});});const _0x5b8cfa=this[_0x1924fa(0x132)][_0x1924fa(0x124)][_0x1924fa(0x15b)](_0x1924fa(0x15e));_0x5b8cfa&&this[_0x1924fa(0x120)](_0x5b8cfa,_0x1924fa(0x149),()=>{const _0x5de92a=_0x1924fa,_0x46ad4f=this[_0x5de92a(0x132)][_0x5de92a(0x159)][_0x5de92a(0x128)][_0x5de92a(0x11b)][_0x5de92a(0x13c)]();_0x46ad4f&&_0x46ad4f[_0x5de92a(0x139)](_0x5de92a(0x114))&&this[_0x5de92a(0x132)][_0x5de92a(0x14e)][_0x5de92a(0x153)][_0x5de92a(0x13b)](_0x5de92a(0x144),()=>{const _0x41bd66=_0x5de92a;_0x2aa37d(this[_0x41bd66(0x132)],_0x46ad4f);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2a0412,ObservableMixin as _0x2c8185}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x4c46fa}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x269afb}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4c73e5}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x5ee73b}from'../../utils/uploadutils.js';import{getImageUrls as _0x39cd4d,getImageDimension as _0x86d473}from'../../utils/editingutils.js';import{isAncestor as _0x132c6d}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2c8185(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3a69ee,_0x2384e0,_0x87e343){super(),this['_editor']=_0x3a69ee,this['_dialog']=_0x2384e0,this['_imageElement']=_0x87e343,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 _0x1b3be0=this['_imageElement'],_0x2e23a8=_0x1b3be0['getAttribute']('uploadcareImageId'),_0x5d84aa=_0x1b3be0['getAttribute']('src');if(_0x2e23a8)await this['_loadImageInfo'](_0x2e23a8,_0x5d84aa);else{if(this['_imageCache']['has'](_0x5d84aa)){const _0x1d6d13=this['_imageCache']['get'](_0x5d84aa);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d6d13['url'],this['imageDimension']=_0x1d6d13['dimension'],this['imageId']=_0x1d6d13['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4f47da}=this['_editor'],t=_0x4f47da['t'],_0x5d093d=new _0x4c73e5(_0x4f47da,this['imageStatus'],this['_attributes']);_0x5d093d['bind']('status')['to'](this,'imageStatus'),_0x5d093d['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5d093d['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5d093d['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5d093d,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x269afb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5d093d,'position':_0x4c46fa['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5d093d['focus']();},'onHide':()=>{_0x5d093d['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5aee81=>!_0x132c6d(_0x5aee81,_0x5d093d['element'])}});}['_loadImageInfo'](_0x2fb402,_0x168808){return _0x5ee73b['getInfo'](_0x2fb402,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x37e72d=>{const {width:_0x200889,height:_0x4434c6}=_0x37e72d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x168808,this['imageDimension']={'width':_0x200889,'height':_0x4434c6},this['imageId']=_0x2fb402;})['catch'](_0x168b0a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x168b0a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x175b9f,_0x1e012a){return this['_getImageAsFile'](_0x175b9f)['then'](_0x441172=>_0x5ee73b['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1e012a['signal'],'file':_0x441172,'onProgress':_0x1cdd75=>{_0x1cdd75&&_0x1cdd75['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1cdd75['value']));}}))['then'](_0x5073f0=>{const {width:_0xc8ce7c,height:_0x1a66bd}=_0x5073f0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5073f0['cdnUrl'],this['imageDimension']={'width':_0xc8ce7c,'height':_0x1a66bd},this['imageId']=_0x5073f0['uuid'],this['imageUploadProgress']=null;const _0x27b04c=_0x175b9f['getAttribute']('src');this['_imageCache']['set'](_0x27b04c,{'id':_0x5073f0['uuid'],'url':_0x5073f0['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2e54ca=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2e54ca['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2422b7,_0x4664e0){_0x2422b7['on']('apply',(_0x3835e5,_0x4b733d)=>{this['_replaceImage'](_0x4664e0,_0x4b733d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2422b7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2422b7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x12f4a6,_0x58ff69,_0x46fbc8){const _0x4a60f2=this['_editor'],{width:_0x48a222,height:_0x12acb5}=_0x86d473(_0x58ff69,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x635637,imageSources:_0x543632}=_0x39cd4d(_0x58ff69,_0x48a222);_0x4a60f2['model']['change'](_0x1c2535=>{if('$graveyard'===_0x12f4a6['root']['rootName']){_0x4a60f2['execute']('insertImage',{'imageType':_0x12f4a6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x12f4a6['getAttributes']()),'uploadcareImageId':_0x46fbc8,'src':_0x635637,'sources':_0x543632,'width':_0x48a222,'height':_0x12acb5}});const _0x53686b=_0x12f4a6['getChildren']();_0x12f4a6=_0x4a60f2['model']['document']['selection']['getSelectedElement']();for(const _0x1c2825 of _0x53686b)_0x1c2535['append'](_0x1c2535['cloneElement'](_0x1c2825),_0x12f4a6);}else _0x1c2535['setSelection'](_0x12f4a6,'on'),_0x4a60f2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x12f4a6['getAttributes']()),'uploadcareImageId':_0x46fbc8,'src':_0x635637,'sources':_0x543632,'width':_0x48a222,'height':_0x12acb5},_0x12f4a6);_0x1c2535['setSelection'](_0x12f4a6,'on');});}async['_getImageAsFile'](_0x35e609){const _0x122b70=_0x2a0412['window'],_0x3d8444=_0x2a0412['document']['location']['href'],_0xb9ad50=new _0x122b70['URL'](_0x35e609['getAttribute']('src'),_0x3d8444);if('data:'===_0xb9ad50['protocol']){const _0x31e9ee=_0xb9ad50['href']['split'](','),_0x295509=_0x31e9ee[0x0]['match'](/:(.*?);/)[0x1],_0x377212=_0x295509['split']('/')[0x1],_0x82782c=_0x122b70['atob'](_0x31e9ee[_0x31e9ee['length']-0x1]);let _0x392537=_0x82782c['length'];const _0x409284=new _0x122b70['Uint8Array'](_0x392537);for(;_0x392537--;)_0x409284[_0x392537]=_0x82782c['charCodeAt'](_0x392537);return new _0x122b70['File']([_0x409284],'image.'+_0x377212,{'type':_0x295509});}const _0x3db12f=_0xb9ad50['href']['split']('/'),_0x5bae66=_0x3db12f[_0x3db12f['length']-0x1],_0x3b3d06=_0x5bae66['split']('.')[0x1];return _0x122b70['fetch'](_0xb9ad50['href'])['then'](_0x2d4ca3=>_0x2d4ca3['clone']()['blob']())['then'](_0x2f0e5a=>new _0x122b70['File']([_0x2f0e5a],_0x5bae66,{'type':'image/'+_0x3b3d06}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3795(){const _0x11984a=['26196iMlCbP','image-edit','524130SJRpiA','436469zlNjiZ','4355135dHOVSP','2YDjSkH','set','uc-light','imageSrc','ck-uploadcare-theme','198029SntKMK','840oEleQE','uc-cloud-image-editor','setTemplate','68457AGUOIG','413824yqoDKp','144EDxzcK','12ZNCIku','6yIXCTL','4169mNFsVr','bindTemplate','14GjxxAO'];_0x3795=function(){return _0x11984a;};return _0x3795();}(function(_0x5a6064,_0x1ba622){const _0x4083ac=_0xb568,_0x2d0f7e=_0x5a6064();while(!![]){try{const _0x3640df=parseInt(_0x4083ac(0x1a3))/0x1*(parseInt(_0x4083ac(0x1a5))/0x2)+parseInt(_0x4083ac(0x198))/0x3*(-parseInt(_0x4083ac(0x19b))/0x4)+-parseInt(_0x4083ac(0x1a4))/0x5*(-parseInt(_0x4083ac(0x19c))/0x6)+parseInt(_0x4083ac(0x19f))/0x7*(parseInt(_0x4083ac(0x199))/0x8)+-parseInt(_0x4083ac(0x19a))/0x9*(-parseInt(_0x4083ac(0x1a2))/0xa)+-parseInt(_0x4083ac(0x19d))/0xb*(parseInt(_0x4083ac(0x1a0))/0xc)+-parseInt(_0x4083ac(0x1aa))/0xd*(parseInt(_0x4083ac(0x1ab))/0xe);if(_0x3640df===_0x1ba622)break;else _0x2d0f7e['push'](_0x2d0f7e['shift']());}catch(_0x23c4e3){_0x2d0f7e['push'](_0x2d0f7e['shift']());}}}(_0x3795,0x6b5d6));import{View as _0x38cef8}from'ckeditor5/src/ui.js';function _0xb568(_0x4db589,_0x27a89c){const _0x3795c9=_0x3795();return _0xb568=function(_0xb568ad,_0x2ec944){_0xb568ad=_0xb568ad-0x198;let _0x2c4a7f=_0x3795c9[_0xb568ad];return _0x2c4a7f;},_0xb568(_0x4db589,_0x27a89c);}export class UploadcareImageEditFormEditingView extends _0x38cef8{constructor(_0x5672fd,_0x5e0713){const _0x287aa3=_0xb568;super(_0x5672fd);const _0x369e06=this[_0x287aa3(0x19e)];this[_0x287aa3(0x1a6)](_0x287aa3(0x1a8),''),this[_0x287aa3(0x1ad)]({'tag':_0x287aa3(0x1ac),'attributes':{..._0x5e0713,'class':[_0x287aa3(0x1a7),_0x287aa3(0x1a9)],'ctx-name':_0x287aa3(0x1a1),'cdn-url':_0x369e06['to'](_0x287aa3(0x1a8))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x4d1836}from'ckeditor5/src/icons.js';import{ButtonView as _0x421073,IconView as _0x1c4aba,View as _0x1ec44a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x1ec44a{constructor(_0x30f85b){super(_0x30f85b);const t=_0x30f85b['t'];this['set']('errorType',null);const _0x44656c=new _0x421073(_0x30f85b);_0x44656c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x44656c['withText']=!0x0,_0x44656c['class']='ck-button-action',_0x44656c['on']('execute',()=>{this['fire']('retry');}),_0x44656c['bind']('isVisible')['to'](this,'errorType',_0x4c4812=>'NotFound'!==_0x4c4812);const _0x31c105=new _0x1c4aba();_0x31c105['content']=_0x4d1836,_0x31c105['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xb44d16=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':[_0x31c105,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xb44d16['to']('errorType',_0x26b60e=>t('NotFound'!==_0x26b60e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x44656c]},{'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 _0x19185a,View as _0x37c5c6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x37c5c6{constructor(_0x1e17a9){super(_0x1e17a9);const t=_0x1e17a9['t'],_0x16e4cb=this['bindTemplate'],_0x2f0f61=new _0x19185a();_0x2f0f61['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':[_0x2f0f61,{'text':_0x16e4cb['to']('imageUploadProgress',_0x24e939=>t('Loading\x20image...')+'\x20('+(_0x24e939||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x124c40=_0xdec2;(function(_0x3309e5,_0x3a4611){const _0x2ef983=_0xdec2,_0xb5fd67=_0x3309e5();while(!![]){try{const _0x1e1550=-parseInt(_0x2ef983(0xcb))/0x1+-parseInt(_0x2ef983(0xac))/0x2+-parseInt(_0x2ef983(0xc7))/0x3*(-parseInt(_0x2ef983(0xcd))/0x4)+-parseInt(_0x2ef983(0xab))/0x5+-parseInt(_0x2ef983(0x9e))/0x6+-parseInt(_0x2ef983(0xa5))/0x7+parseInt(_0x2ef983(0xc8))/0x8;if(_0x1e1550===_0x3a4611)break;else _0xb5fd67['push'](_0xb5fd67['shift']());}catch(_0x331eae){_0xb5fd67['push'](_0xb5fd67['shift']());}}}(_0xde3e,0x7e4b9));import{View as _0x5d32f5}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x596e0a}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x6f4559}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x58629}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x48b37f}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0xdec2(_0x348d1e,_0x43866c){const _0xde3e66=_0xde3e();return _0xdec2=function(_0xdec22,_0x13bcd1){_0xdec22=_0xdec22-0x9c;let _0x2bd205=_0xde3e66[_0xdec22];return _0x2bd205;},_0xdec2(_0x348d1e,_0x43866c);}function _0xde3e(){const _0x81de2=['detail','299836HOCItP','ck-reset_all-excluded','toLowerCase','ready','nodeName','_focusableView','5280798DAJbat','render','error','clear','setTemplate','target','_errorView','4592567kANrLe','addEventListener','add','getFocusableElement','status','div','1965330CoMMeI','388446elBosA','uc-cloud-image-editor','querySelector','addedNodes','_loadingView','length','element','uploading','_addErrorViewListeners','change:status','_setView','retry','apply','filter','set','createCollection','focus','fire','observe','_items','addMany','_addUploadcareImageEditorListeners','cdnUrl','cancel','disconnect','once','ck-uploadcare-form','36lBrYpc','20728248ydGiqj','_editingView','_waitForImageEditorComponent','849731RtMVmD'];_0xde3e=function(){return _0x81de2;};return _0xde3e();}export class UploadcareImageEditFormView extends _0x48b37f{[_0x124c40(0xbf)];[_0x124c40(0xb0)];[_0x124c40(0xa4)];[_0x124c40(0xc9)];[_0x124c40(0x9d)];constructor(_0x2dfc6c,_0x4934cb,_0x3e3fd3){const _0x2e805d=_0x124c40;super(_0x2dfc6c),this[_0x2e805d(0xbf)]=this[_0x2e805d(0xbb)](),this[_0x2e805d(0xb0)]=new _0x596e0a(_0x2dfc6c),this[_0x2e805d(0xa4)]=new _0x6f4559(_0x2dfc6c),this[_0x2e805d(0xc9)]=new _0x58629(_0x2dfc6c,_0x3e3fd3),this[_0x2e805d(0x9d)]=new _0x5d32f5(_0x2dfc6c),this[_0x2e805d(0x9d)][_0x2e805d(0xa2)](this[_0x2e805d(0xa8)]()),this[_0x2e805d(0xba)](_0x2e805d(0xa9),_0x4934cb),this[_0x2e805d(0xa2)]({'tag':_0x2e805d(0xaa),'attributes':{'class':['ck',_0x2e805d(0xce),_0x2e805d(0xc6)],'tabindex':'-1'},'children':this[_0x2e805d(0xbf)]}),this[_0x2e805d(0xb6)](),this[_0x2e805d(0xc5)](_0x2e805d(0x9f),()=>{const _0x5c1643=_0x2e805d;this[_0x5c1643(0xca)](this[_0x5c1643(0xb2)],_0x197ec2=>{const _0x35d536=_0x5c1643;this[_0x35d536(0xc1)](_0x197ec2);});}),this['on'](_0x2e805d(0xb5),()=>{const _0x12365a=_0x2e805d;this[_0x12365a(0xb6)]();}),this[_0x2e805d(0xb4)]();}[_0x124c40(0xbc)](){const _0x26b579=_0x124c40;this[_0x26b579(0xb2)][_0x26b579(0xbc)]();}[_0x124c40(0xb6)](){const _0x756548=_0x124c40;switch(this[_0x756548(0xbf)][_0x756548(0xa1)](),this[_0x756548(0xa9)]){case _0x756548(0xb3):this[_0x756548(0xbf)][_0x756548(0xa7)](this[_0x756548(0xb0)]);break;case _0x756548(0xa0):this[_0x756548(0xbf)][_0x756548(0xa7)](this[_0x756548(0xa4)]);break;case _0x756548(0xd0):this[_0x756548(0xbf)][_0x756548(0xc0)]([this[_0x756548(0xc9)],this[_0x756548(0x9d)]]);}}[_0x124c40(0xca)](_0x26f32e,_0xb7f196){const _0x28be7b=_0x124c40,_0x4706f3=_0x28be7b(0xad),_0x198a57=_0x26f32e[_0x28be7b(0xae)](_0x4706f3);if(_0x198a57)return _0xb7f196(_0x198a57);const _0x544188=new MutationObserver(_0x3774d8=>{const _0x46f1ad=_0x28be7b,_0x5623a0=_0x3774d8[_0x46f1ad(0xb9)](_0x4e2ffc=>_0x4e2ffc[_0x46f1ad(0xa3)]===_0x26f32e&&_0x4e2ffc[_0x46f1ad(0xaf)][_0x46f1ad(0xb1)]>0x0&&_0x4e2ffc[_0x46f1ad(0xaf)][0x0][_0x46f1ad(0x9c)][_0x46f1ad(0xcf)]()===_0x4706f3);_0x5623a0[_0x46f1ad(0xb1)]&&(_0x544188[_0x46f1ad(0xc4)](),_0xb7f196(_0x5623a0[0x0][_0x46f1ad(0xaf)][0x0]));});_0x544188[_0x28be7b(0xbe)](_0x26f32e,{'childList':!0x0,'subtree':!0x0});}[_0x124c40(0xc1)](_0x3f6227){const _0x42dda1=_0x124c40;_0x3f6227[_0x42dda1(0xa6)](_0x42dda1(0xb8),_0x34a2c2=>{const _0x25966e=_0x42dda1;this[_0x25966e(0xbd)](_0x25966e(0xb8),{'imageSrc':_0x34a2c2[_0x25966e(0xcc)][_0x25966e(0xc2)]});}),_0x3f6227[_0x42dda1(0xa6)](_0x42dda1(0xc3),()=>{const _0x1c9a61=_0x42dda1;this[_0x1c9a61(0xbd)](_0x1c9a61(0xc3));});}[_0x124c40(0xb4)](){const _0x346524=_0x124c40;this[_0x346524(0xa4)]['on'](_0x346524(0xb7),()=>{const _0x3513be=_0x346524;this[_0x3513be(0xbd)](_0x3513be(0xb7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x353dac=_0x470a;(function(_0xbb8e70,_0x18990b){const _0xc2834e=_0x470a,_0x31a276=_0xbb8e70();while(!![]){try{const _0x3efc61=parseInt(_0xc2834e(0xef))/0x1+-parseInt(_0xc2834e(0xdf))/0x2+-parseInt(_0xc2834e(0xfb))/0x3*(parseInt(_0xc2834e(0xea))/0x4)+-parseInt(_0xc2834e(0xeb))/0x5+-parseInt(_0xc2834e(0xe2))/0x6*(-parseInt(_0xc2834e(0xf0))/0x7)+parseInt(_0xc2834e(0xe6))/0x8*(-parseInt(_0xc2834e(0xe1))/0x9)+parseInt(_0xc2834e(0xdb))/0xa*(parseInt(_0xc2834e(0xf4))/0xb);if(_0x3efc61===_0x18990b)break;else _0x31a276['push'](_0x31a276['shift']());}catch(_0x205e57){_0x31a276['push'](_0x31a276['shift']());}}}(_0x315d,0x5ef0d));import{Command as _0x2abf12}from'ckeditor5/src/core.js';import{Dialog as _0x5a1b6b}from'ckeditor5/src/ui.js';function _0x470a(_0x2dee4b,_0x31f2e2){const _0x315da4=_0x315d();return _0x470a=function(_0x470a95,_0x1378f7){_0x470a95=_0x470a95-0xdb;let _0x379374=_0x315da4[_0x470a95];return _0x379374;},_0x470a(_0x2dee4b,_0x31f2e2);}import{UploadcareImageEditController as _0x508a63}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x57fa3c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x2abf12{[_0x353dac(0xec)];static get[_0x353dac(0xf8)](){return[_0x5a1b6b];}[_0x353dac(0xf5)];constructor(_0x96b05){const _0x1cc85c=_0x353dac;super(_0x96b05),this[_0x1cc85c(0xec)]=void 0x0,this[_0x1cc85c(0xf5)]=_0x57fa3c(_0x96b05[_0x1cc85c(0xe8)][_0x1cc85c(0xf9)](_0x1cc85c(0xf6))||[]),this[_0x1cc85c(0xf7)]({'isActive':!0x1});}[_0x353dac(0xf1)](){const _0x4caa2c=_0x353dac,_0x535c1e=this[_0x4caa2c(0xe3)][_0x4caa2c(0xf2)][_0x4caa2c(0xdc)][_0x4caa2c(0xde)][_0x4caa2c(0xe4)]();this[_0x4caa2c(0xed)]=this[_0x4caa2c(0xf5)](_0x535c1e);}[_0x353dac(0xe7)](){const _0x20f5a1=_0x353dac;this[_0x20f5a1(0xec)]&&(this[_0x20f5a1(0xee)](_0x20f5a1(0xe0)),this[_0x20f5a1(0xec)]=void 0x0);const _0x2404ab=this[_0x20f5a1(0xe3)][_0x20f5a1(0xf2)][_0x20f5a1(0xdc)][_0x20f5a1(0xde)][_0x20f5a1(0xe4)]();_0x2404ab&&(_0x2404ab['is'](_0x20f5a1(0xe9),_0x20f5a1(0xdd))||_0x2404ab['is'](_0x20f5a1(0xe9),_0x20f5a1(0xe5)))&&(this[_0x20f5a1(0xec)]=new _0x508a63(this[_0x20f5a1(0xe3)],this[_0x20f5a1(0xe3)][_0x20f5a1(0xfa)][_0x20f5a1(0xf9)](_0x5a1b6b),_0x2404ab),this[_0x20f5a1(0xf3)](_0x20f5a1(0xe0))['to'](this[_0x20f5a1(0xec)],_0x20f5a1(0xe0)));}}function _0x315d(){const _0x4f6273=['document','imageBlock','selection','333196GisKGl','isActive','9mEeAMP','36NKpzxl','editor','getSelectedElement','imageInline','260600sjPouA','execute','config','element','82972IudaXu','147265JFrmcQ','imageEditController','isEnabled','unbind','90282VXGwjI','805616zMHmwC','refresh','model','bind','11kzVmXL','_isEditable','uploadcare.allowExternalImagesEditing','set','requires','get','plugins','48HAdtfk','1685810rntshN'];_0x315d=function(){return _0x4f6273;};return _0x315d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53180d=_0x27be;(function(_0x2f1e57,_0x1825fb){const _0x16a9f7=_0x27be,_0x3a572d=_0x2f1e57();while(!![]){try{const _0x235d0f=parseInt(_0x16a9f7(0x8d))/0x1+-parseInt(_0x16a9f7(0x89))/0x2+parseInt(_0x16a9f7(0x95))/0x3+parseInt(_0x16a9f7(0x88))/0x4*(-parseInt(_0x16a9f7(0x81))/0x5)+parseInt(_0x16a9f7(0x8a))/0x6*(parseInt(_0x16a9f7(0x85))/0x7)+-parseInt(_0x16a9f7(0x82))/0x8+parseInt(_0x16a9f7(0x83))/0x9;if(_0x235d0f===_0x1825fb)break;else _0x3a572d['push'](_0x3a572d['shift']());}catch(_0x29fd8e){_0x3a572d['push'](_0x3a572d['shift']());}}}(_0x2828,0xbefa6));import{Plugin as _0x1472b1}from'ckeditor5/src/core.js';import{Notification as _0x3950a8}from'ckeditor5/src/ui.js';function _0x27be(_0x1eeb2f,_0x13dda7){const _0x2828df=_0x2828();return _0x27be=function(_0x27be8d,_0xd5cccd){_0x27be8d=_0x27be8d-0x81;let _0x5dcb8d=_0x2828df[_0x27be8d];return _0x5dcb8d;},_0x27be(_0x1eeb2f,_0x13dda7);}import{UploadcareImageEditCommand as _0x5463b0}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3be3a5}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3becd2}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1472b1{static get[_0x53180d(0x86)](){const _0x2b0588=_0x53180d;return _0x2b0588(0x8e);}static get[_0x53180d(0x91)](){const _0x56dcd5=_0x53180d;return[_0x3becd2,_0x3950a8,_0x56dcd5(0x8b),_0x56dcd5(0x90)];}static get[_0x53180d(0x87)](){return!0x0;}static get[_0x53180d(0x92)](){return!0x0;}[_0x53180d(0x93)](){const _0x45d2d8=_0x53180d,{editor:_0x1641c6}=this;_0x1641c6[_0x45d2d8(0x84)][_0x45d2d8(0x94)](_0x45d2d8(0x8f),new _0x5463b0(_0x1641c6)),_0x1641c6[_0x45d2d8(0x84)][_0x45d2d8(0x94)](_0x45d2d8(0x8c),new _0x3be3a5(_0x1641c6));}}function _0x2828(){const _0x4fd976=['49NfIQnd','pluginName','isOfficialPlugin','596HCOjBX','830006FRzCxq','112326SYBXyL','ImageUtils','uploadcareImageReplace','49315NdPhKh','UploadcareImageEditEditing','uploadcareImageEdit','ImageEditing','requires','isPremiumPlugin','init','add','3239733TYQfwe','22075KlCSlp','8696720RxaOzj','15137109XSWVxp','commands'];_0x2828=function(){return _0x4fd976;};return _0x2828();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x3aa9e7}from'ckeditor5/src/core.js';import{ButtonView as _0x3f27c2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x49f6b7}from'ckeditor5/src/icons.js';import{createElement as _0xd21a29}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 _0x3aa9e7{['_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 _0x128741=this['editor'];_0x128741['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4ff50d=>{const _0x37f95e=_0x128741['commands']['get']('uploadcareImageEdit'),_0x428668=new _0x3f27c2(_0x4ff50d),t=_0x4ff50d['t'];return _0x428668['set']({'icon':_0x49f6b7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x428668['bind']('isEnabled')['to'](_0x37f95e),_0x428668['bind']('isOn')['to'](_0x37f95e,'isActive'),this['listenTo'](_0x428668,'execute',()=>{_0x128741['execute']('uploadcareImageEdit'),_0x128741['editing']['view']['focus']();}),_0x428668;}),this['_initConfig']();}['_initConfig'](){const _0x112802=_0xd21a29(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x112802),this['listenTo'](this['editor'],'destroy',()=>{_0x112802['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1463d5=_0xd7f6;(function(_0x814a3e,_0x32262d){const _0x531143=_0xd7f6,_0x1740d3=_0x814a3e();while(!![]){try{const _0x4de30e=parseInt(_0x531143(0x13b))/0x1*(-parseInt(_0x531143(0x137))/0x2)+-parseInt(_0x531143(0x13e))/0x3+-parseInt(_0x531143(0x125))/0x4*(-parseInt(_0x531143(0x131))/0x5)+-parseInt(_0x531143(0x12c))/0x6+-parseInt(_0x531143(0x12f))/0x7+parseInt(_0x531143(0x127))/0x8+parseInt(_0x531143(0x126))/0x9*(parseInt(_0x531143(0x132))/0xa);if(_0x4de30e===_0x32262d)break;else _0x1740d3['push'](_0x1740d3['shift']());}catch(_0x4ea9ae){_0x1740d3['push'](_0x1740d3['shift']());}}}(_0x24b7,0xacb10));import{Command as _0x52977a}from'ckeditor5/src/core.js';function _0xd7f6(_0x398af4,_0x3c9181){const _0x24b767=_0x24b7();return _0xd7f6=function(_0xd7f62c,_0x520645){_0xd7f62c=_0xd7f62c-0x125;let _0x4facf8=_0x24b767[_0xd7f62c];return _0x4facf8;},_0xd7f6(_0x398af4,_0x3c9181);}function _0x24b7(){const _0x404031=['document','1375sAqMPm','50CNzErh','getSelectedElement','isEnabled','imageInline','element','722410QkYFjR','sizes','change','selection','1RQbyuj','model','removeAttribute','934581LrpRBi','18332dIhyTQ','1274427GxwNIn','9355672mXozpN','refresh','execute','srcset','editor','8123910bYALdf','setAttributes','imageBlock','2826166nSsQqF'];_0x24b7=function(){return _0x404031;};return _0x24b7();}export class UploadcareImageReplaceCommand extends _0x52977a{[_0x1463d5(0x128)](){const _0x5bf1da=_0x1463d5,_0xb6565e=this[_0x5bf1da(0x12b)][_0x5bf1da(0x13c)][_0x5bf1da(0x130)][_0x5bf1da(0x13a)][_0x5bf1da(0x133)]();this[_0x5bf1da(0x134)]=Boolean(_0xb6565e&&(_0xb6565e['is'](_0x5bf1da(0x136),_0x5bf1da(0x12e))||_0xb6565e['is'](_0x5bf1da(0x136),_0x5bf1da(0x135))));}[_0x1463d5(0x129)](_0x458676){const _0x30f800=_0x1463d5,_0xef0076=this[_0x30f800(0x12b)][_0x30f800(0x13c)][_0x30f800(0x130)][_0x30f800(0x13a)][_0x30f800(0x133)]();this[_0x30f800(0x12b)][_0x30f800(0x13c)][_0x30f800(0x139)](_0x386d74=>{const _0x314757=_0x30f800;_0x386d74[_0x314757(0x12d)](_0x458676,_0xef0076),_0x386d74[_0x314757(0x13d)](_0x314757(0x12a),_0xef0076),_0x386d74[_0x314757(0x13d)](_0x314757(0x138),_0xef0076);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5ea547=_0x4bc9;(function(_0x4469f4,_0x8348f2){var _0x3bd47e=_0x4bc9,_0x2bbf38=_0x4469f4();while(!![]){try{var _0x46ac43=parseInt(_0x3bd47e(0xed))/0x1+-parseInt(_0x3bd47e(0xe8))/0x2*(parseInt(_0x3bd47e(0xec))/0x3)+parseInt(_0x3bd47e(0xf4))/0x4*(parseInt(_0x3bd47e(0xf2))/0x5)+-parseInt(_0x3bd47e(0xeb))/0x6+parseInt(_0x3bd47e(0xe9))/0x7*(-parseInt(_0x3bd47e(0xf1))/0x8)+-parseInt(_0x3bd47e(0xf0))/0x9+parseInt(_0x3bd47e(0xee))/0xa;if(_0x46ac43===_0x8348f2)break;else _0x2bbf38['push'](_0x2bbf38['shift']());}catch(_0x1b6733){_0x2bbf38['push'](_0x2bbf38['shift']());}}}(_0xd79c,0xe8c37));import{Plugin as _0x546cdc}from'ckeditor5/src/core.js';function _0xd79c(){var _0x2d4fe2=['requires','5714430uyeOpz','27TxRbSX','7870JhRJJc','34902550nCzhUd','isPremiumPlugin','12187746QRnSeV','5003952QGVSIf','1846960jriErk','UploadcareImageEdit','20CJtskp','pluginName','isOfficialPlugin','324354GYiSCX','7TBqGAS'];_0xd79c=function(){return _0x2d4fe2;};return _0xd79c();}function _0x4bc9(_0x5c9b62,_0x3ff9de){var _0xd79ccf=_0xd79c();return _0x4bc9=function(_0x4bc9b9,_0x528c61){_0x4bc9b9=_0x4bc9b9-0xe6;var _0x5f3c09=_0xd79ccf[_0x4bc9b9];return _0x5f3c09;},_0x4bc9(_0x5c9b62,_0x3ff9de);}import{UploadcareImageEditEditing as _0x495528}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x2769cd}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x546cdc{static get[_0x5ea547(0xe6)](){var _0x28335e=_0x5ea547;return _0x28335e(0xf3);}static get[_0x5ea547(0xea)](){return[_0x495528,_0x2769cd];}static get[_0x5ea547(0xe7)](){return!0x0;}static get[_0x5ea547(0xef)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24a81f=_0x439e;(function(_0x526c49,_0x3699b7){const _0x404a64=_0x439e,_0x5a8ce9=_0x526c49();while(!![]){try{const _0x31ccfe=-parseInt(_0x404a64(0x105))/0x1+parseInt(_0x404a64(0xfb))/0x2+parseInt(_0x404a64(0xfd))/0x3+-parseInt(_0x404a64(0x10b))/0x4+-parseInt(_0x404a64(0xf6))/0x5+-parseInt(_0x404a64(0xfe))/0x6*(parseInt(_0x404a64(0x10d))/0x7)+parseInt(_0x404a64(0xc7))/0x8;if(_0x31ccfe===_0x3699b7)break;else _0x5a8ce9['push'](_0x5a8ce9['shift']());}catch(_0x52423d){_0x5a8ce9['push'](_0x5a8ce9['shift']());}}}(_0x3c02,0x75d38));import{Plugin as _0x2e7489}from'ckeditor5/src/core.js';import{IconDropbox as _0x1d3d1d,IconFacebook as _0x55c817,IconGoogleDrive as _0x5954a4,IconGooglePhotos as _0x350a4b,IconUploadcareImageUpload as _0x487163,IconUploadcareLink as _0x4e39c2,IconOneDrive as _0x104911}from'ckeditor5/src/icons.js';function _0x439e(_0x40a0c9,_0x23e9ba){const _0x3c02d7=_0x3c02();return _0x439e=function(_0x439edd,_0x4d2f68){_0x439edd=_0x439edd-0xc7;let _0x49cdf6=_0x3c02d7[_0x439edd];return _0x49cdf6;},_0x439e(_0x40a0c9,_0x23e9ba);}import{ButtonView as _0x45d8d0,MenuBarMenuListItemButtonView as _0x1719e3}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x3755ed}from'./uploadcareconfig.js';import{getTranslation as _0x3da1f4}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x3c02(){const _0x38b193=['uploadcareLicenseKeyExpired','_getIntegrationKey','Dropbox','destroy','has','GDrive','type','reduce','icon','Uploadcare','uploadcareLicenseKeyUsageLimit','push','isImageSelected','locale','forEach','isOfficialPlugin','commands','withText','uploadcareLicenseKeyInvalid','OneDrive','uploadcareLicenseKeyDomainLimit','execute','expired','isPremiumPlugin','uploadcare.uploader.sourceList','plugins','registerIntegration','Facebook','_licenseKeyCheckInterval','pluginName','uploadcareLicenseKeyEvaluationLimit','3996075lsumrY','get','UploadcareUI','upload','uploadcareLicenseKeyNotAllowed','1622154UWpKXT','featureNotAllowed','2495709kppAaP','728154zazhyq','map','evaluationLimit','_showLicenseError','shortText','assetManager','config','495690YmOMln','ImageInsertUI','Local','url','tooltip','uploadcareLicenseKeyTrialLimit','2984012uKGfRC','_normalizeConfigSourceList','7hemupF','usageLimit','Replace','_createDropdownButtons','afterInit','uploadcare','editor','domainLimit','text','8015224VCPrYv','_createButton','URL','entries','bind','trialLimit','invalid','GPhotos','licenseKey','uploadcareLicenseKeyValid','_createMenuBarButtons','Insert','label','init','_createToolbarButton','isEnabled'];_0x3c02=function(){return _0x38b193;};return _0x3c02();}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x2e7489{[_0x24a81f(0xcf)];[_0x24a81f(0xf3)];static get[_0x24a81f(0xf4)](){const _0x262aa9=_0x24a81f;return _0x262aa9(0xf8);}static get[_0x24a81f(0xe6)](){return!0x0;}static get[_0x24a81f(0xee)](){return!0x0;}[_0x24a81f(0xd4)](){const _0x3a893f=_0x24a81f;this[_0x3a893f(0xcf)]=this[_0x3a893f(0x113)][_0x3a893f(0x104)][_0x3a893f(0xf7)](_0x3a893f(0xcf));const _0x4c6682=this[_0x3a893f(0x113)];this[_0x3a893f(0xf3)]=setInterval(()=>{const _0x163f48=_0x3a893f;let _0x5674f5;for(const _0xf30c4f in _0x4c6682){const _0x5322ca=_0xf30c4f,_0x52f5c9=_0x4c6682[_0x5322ca];if(_0x163f48(0xd0)==_0x52f5c9||_0x163f48(0xe9)==_0x52f5c9||_0x163f48(0xd7)==_0x52f5c9||_0x163f48(0xeb)==_0x52f5c9||_0x163f48(0xfa)==_0x52f5c9||_0x163f48(0xf5)==_0x52f5c9||_0x163f48(0x10a)==_0x52f5c9||_0x163f48(0xe1)==_0x52f5c9){delete _0x4c6682[_0x5322ca],_0x5674f5=_0x52f5c9,clearInterval(this[_0x163f48(0xf3)]),this[_0x163f48(0xf3)]=void 0x0;break;}}_0x163f48(0xe9)==_0x5674f5&&_0x4c6682[_0x163f48(0x101)](_0x163f48(0xcd)),_0x163f48(0xd7)==_0x5674f5&&_0x4c6682[_0x163f48(0x101)](_0x163f48(0xed)),_0x163f48(0xeb)==_0x5674f5&&_0x4c6682[_0x163f48(0x101)](_0x163f48(0x114)),_0x163f48(0xfa)==_0x5674f5&&_0x4c6682[_0x163f48(0x101)](_0x163f48(0xfc),_0x163f48(0xe0)),_0x163f48(0xf5)==_0x5674f5&&_0x4c6682[_0x163f48(0x101)](_0x163f48(0x100)),_0x163f48(0x10a)==_0x5674f5&&_0x4c6682[_0x163f48(0x101)](_0x163f48(0xcc)),_0x163f48(0xe1)==_0x5674f5&&_0x4c6682[_0x163f48(0x101)](_0x163f48(0x10e));},0x3e8);}[_0x24a81f(0x111)](){const _0x13c70f=_0x24a81f,{editor:_0x279631}=this,_0x4aad76=_0x279631[_0x13c70f(0xe7)][_0x13c70f(0xf7)](_0x13c70f(0x112));if(!_0x4aad76)return;const _0x4012b4=this[_0x13c70f(0x10c)](_0x279631[_0x13c70f(0x104)][_0x13c70f(0xf7)](_0x13c70f(0xef)))[_0x13c70f(0xde)]((_0x3f7879,_0x4b07d0)=>{const _0x2136d6=_0x13c70f,_0x2bbfb0=this[_0x2136d6(0xd8)](_0x4b07d0[_0x2136d6(0xdd)]);return _0x3f7879[_0x2bbfb0]||(_0x3f7879[_0x2bbfb0]=[]),_0x3f7879[_0x2bbfb0][_0x2136d6(0xe2)](_0x4b07d0),_0x3f7879;},{});_0x279631[_0x13c70f(0xf0)][_0x13c70f(0xdb)](_0x13c70f(0x106))&&_0x279631[_0x13c70f(0xe7)][_0x13c70f(0xf7)](_0x13c70f(0x112))&&Object[_0x13c70f(0xca)](_0x4012b4)[_0x13c70f(0xe5)](([_0x466444,_0x40706a])=>{const _0x444e05=_0x13c70f;_0x279631[_0x444e05(0xf0)][_0x444e05(0xf7)](_0x444e05(0x106))[_0x444e05(0xf1)]({'name':_0x466444,'observable':()=>_0x4aad76,'buttonViewCreator':()=>this[_0x444e05(0xd5)](_0x40706a),'formViewCreator':()=>this[_0x444e05(0x110)](_0x40706a),'menuBarButtonViewCreator':()=>this[_0x444e05(0xd1)](_0x40706a),'override':_0x444e05(0x103)!==_0x466444});});}[_0x24a81f(0xda)](){const _0x533b12=_0x24a81f;super[_0x533b12(0xda)](),this[_0x533b12(0xf3)]&&clearInterval(this[_0x533b12(0xf3)]);}[_0x24a81f(0x10c)](_0x3ad2a3){const _0x576360=_0x24a81f,{locale:_0x23f68f}=this[_0x576360(0x113)];return _0x3ad2a3[_0x576360(0xff)](_0x3de904=>{const _0x51c0ea=_0x576360,_0x1764ab=_0x3da1f4(_0x23f68f,_0x3de904,_0x51c0ea(0xd2));switch(_0x3de904){case _0x3755ed[_0x51c0ea(0x107)]:return{'icon':_0x487163,'type':_0x3755ed[_0x51c0ea(0x107)],..._0x1764ab};case _0x3755ed[_0x51c0ea(0xc9)]:return{'icon':_0x4e39c2,'type':_0x3755ed[_0x51c0ea(0xc9)],..._0x1764ab};case _0x3755ed[_0x51c0ea(0xd9)]:return{'icon':_0x1d3d1d,'type':_0x3755ed[_0x51c0ea(0xd9)],..._0x1764ab};case _0x3755ed[_0x51c0ea(0xf2)]:return{'icon':_0x55c817,'type':_0x3755ed[_0x51c0ea(0xf2)],..._0x1764ab};case _0x3755ed[_0x51c0ea(0xdc)]:return{'icon':_0x5954a4,'type':_0x3755ed[_0x51c0ea(0xdc)],..._0x1764ab};case _0x3755ed[_0x51c0ea(0xce)]:return{'icon':_0x350a4b,'type':_0x3755ed[_0x51c0ea(0xce)],..._0x1764ab};case _0x3755ed[_0x51c0ea(0xea)]:return{'icon':_0x104911,'type':_0x3755ed[_0x51c0ea(0xea)],..._0x1764ab};}});}[_0x24a81f(0xd8)](_0x207167){const _0xe3617c=_0x24a81f;switch(_0x207167){case _0x3755ed[_0xe3617c(0x107)]:return _0xe3617c(0xf9);case _0x3755ed[_0xe3617c(0xc9)]:return _0xe3617c(0x108);default:return _0xe3617c(0x103);}}[_0x24a81f(0xc8)](_0x251e95,_0x4082e8){const _0x537b2c=_0x24a81f,_0x4a9fc7=this[_0x537b2c(0x113)],_0x52970b=new _0x251e95(_0x4a9fc7[_0x537b2c(0xe4)]),_0x2478b2=_0x4a9fc7[_0x537b2c(0xe7)][_0x537b2c(0xf7)](_0x537b2c(0x112));return _0x52970b[_0x537b2c(0xcb)](_0x537b2c(0xd6))['to'](_0x2478b2),_0x52970b['on'](_0x537b2c(0xec),()=>{const _0x2553c0=_0x537b2c;_0x2478b2[_0x2553c0(0xec)](_0x4082e8);}),_0x52970b;}[_0x24a81f(0xd5)](_0x2accc6){const _0x4c3b04=_0x24a81f,{locale:_0x4d0566}=this[_0x4c3b04(0x113)],_0x4f53cb=this[_0x4c3b04(0x113)][_0x4c3b04(0xf0)][_0x4c3b04(0xf7)](_0x4c3b04(0x106)),_0x541be8=_0x2accc6[0x0],_0x3dc843=this[_0x4c3b04(0xc8)](_0x45d8d0,_0x541be8[_0x4c3b04(0xdd)]);return _0x3dc843[_0x4c3b04(0xdf)]=_0x541be8[_0x4c3b04(0xdf)],_0x3dc843[_0x4c3b04(0xcb)](_0x4c3b04(0xd3))['to'](_0x4f53cb,_0x4c3b04(0xe3),_0x3ddbb0=>_0x3da1f4(_0x4d0566,_0x541be8[_0x4c3b04(0xdd)],_0x3ddbb0?_0x4c3b04(0x10f):_0x4c3b04(0xd2))[_0x4c3b04(0x115)]),_0x3dc843[_0x4c3b04(0x109)]=!0x0,_0x3dc843;}[_0x24a81f(0x110)](_0x12d1ec){const _0x25ec47=_0x24a81f,{locale:_0x1b132b}=this[_0x25ec47(0x113)],_0x750a2d=this[_0x25ec47(0x113)][_0x25ec47(0xf0)][_0x25ec47(0xf7)](_0x25ec47(0x106));return _0x12d1ec[_0x25ec47(0xff)](_0x1d6824=>{const _0x2e874=_0x25ec47,_0x51d312=this[_0x2e874(0xc8)](_0x45d8d0,_0x1d6824[_0x2e874(0xdd)]);return _0x51d312[_0x2e874(0xe8)]=!0x0,_0x51d312[_0x2e874(0xdf)]=_0x1d6824[_0x2e874(0xdf)],_0x51d312[_0x2e874(0xcb)](_0x2e874(0xd3))['to'](_0x750a2d,_0x2e874(0xe3),_0x25650f=>_0x3da1f4(_0x1b132b,_0x1d6824[_0x2e874(0xdd)],_0x25650f?_0x2e874(0x10f):_0x2e874(0xd2))[_0x2e874(0x115)]),_0x51d312;});}[_0x24a81f(0xd1)](_0x3fe471){const _0xa96b18=_0x24a81f;return _0x3fe471[_0xa96b18(0xff)](_0x2f52b1=>{const _0x4b17c2=_0xa96b18,_0x42018f=this[_0x4b17c2(0xc8)](_0x1719e3,_0x2f52b1[_0x4b17c2(0xdd)]);return _0x42018f[_0x4b17c2(0xdf)]=_0x2f52b1[_0x4b17c2(0xdf)],_0x42018f[_0x4b17c2(0xd3)]=_0x2f52b1[_0x4b17c2(0x102)],_0x42018f;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x538c62}from'ckeditor5/src/core.js';import{FileRepository as _0x58c766}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x3474f9}from'./uploadcareediting.js';import{UploadUtils as _0x38126f}from'./utils/uploadutils.js';import{getImageUrls as _0x2bd5dc}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x538c62{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x58c766,_0x3474f9];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x51c4a8=this['editor'];if(!!!_0x51c4a8['config']['get']('uploadcare'))return;_0x51c4a8['plugins']['get'](_0x58c766)['createUploadAdapter']=_0x4b56ea=>new k(_0x4b56ea,_0x51c4a8),_0x51c4a8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x389b50,{imageElement:_0x52b599,data:_0x44a4d2})=>{_0x51c4a8['model']['change'](_0x4fa332=>{_0x4fa332['setAttribute']('uploadcareImageId',_0x44a4d2['uploadcareImageId'],_0x52b599);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5ad82b,_0xee070b){this['loader']=_0x5ad82b,this['editor']=_0xee070b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x41feb1=await this['loader']['file'];return _0x38126f['upload']({'file':_0x41feb1,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3ef8c3=>{_0x3ef8c3&&_0x3ef8c3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3ef8c3['value']);}})['then'](async _0x562ae1=>{const {imageFallbackUrl:_0x132d3c,imageSources:_0x55b9c6}=_0x2bd5dc(_0x562ae1['cdnUrl'],_0x562ae1['imageInfo']['width']);return{'uploadcareImageId':_0x562ae1['uuid'],'default':_0x132d3c,'sources':_0x55b9c6};})['catch'](()=>{const _0xea64b3=t('Cannot\x20upload\x20file:')+('\x20'+_0x41feb1['name']+'.');return Promise['reject'](_0xea64b3);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x297edd}from'../uploadcareconfig.js';export function getTranslation(_0xce8e89,_0x520c00,_0x4f9727){const t=_0xce8e89['t'],_0x510bee=_0xce8e89['t'];switch(_0x520c00){case _0x297edd['Local']:return{'text':_0x510bee('Insert'===_0x4f9727?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x510bee('From\x20computer')};case _0x297edd['URL']:return{'text':'Insert'===_0x4f9727?_0x510bee('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x510bee('Via\x20URL')};case _0x297edd['Dropbox']:return{'text':t('Insert'===_0x4f9727?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x297edd['Facebook']:return{'text':t('Insert'===_0x4f9727?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x297edd['GDrive']:return{'text':t('Insert'===_0x4f9727?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x297edd['GPhotos']:return{'text':t('Insert'===_0x4f9727?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x297edd['OneDrive']:return{'text':t('Insert'===_0x4f9727?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x520c00;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2c2868=_0x1971;function _0x1971(_0x1ce132,_0x3d02a3){var _0x5c16f5=_0x5c16();return _0x1971=function(_0x19718b,_0x458eb6){_0x19718b=_0x19718b-0x197;var _0x12bd38=_0x5c16f5[_0x19718b];return _0x12bd38;},_0x1971(_0x1ce132,_0x3d02a3);}function _0x5c16(){var _0x50034d=['133394RaAtZY','548wqwmOp','13956mngpOi','getFocusableElement','30EQLaFG','focusTracker','956082Pcldji','8dExinZ','div','focusCycler','bindTemplate','true','12284577DHbgse','1022318ZUsOCs','18715znNufA','35TreKKx','1826DhyGiM','2971750jbgOiV','fire','createCollection','forwardCycle'];_0x5c16=function(){return _0x50034d;};return _0x5c16();}(function(_0x5b3764,_0x3ba68c){var _0x1fcf71=_0x1971,_0x5aa5be=_0x5b3764();while(!![]){try{var _0x4bb25b=parseInt(_0x1fcf71(0x1aa))/0x1+-parseInt(_0x1fcf71(0x19d))/0x2*(-parseInt(_0x1fcf71(0x1a1))/0x3)+parseInt(_0x1fcf71(0x19e))/0x4*(-parseInt(_0x1fcf71(0x1ab))/0x5)+parseInt(_0x1fcf71(0x1a3))/0x6*(parseInt(_0x1fcf71(0x197))/0x7)+-parseInt(_0x1fcf71(0x1a4))/0x8*(parseInt(_0x1fcf71(0x1a9))/0x9)+parseInt(_0x1fcf71(0x199))/0xa+-parseInt(_0x1fcf71(0x198))/0xb*(parseInt(_0x1fcf71(0x19f))/0xc);if(_0x4bb25b===_0x3ba68c)break;else _0x5aa5be['push'](_0x5aa5be['shift']());}catch(_0xdb9278){_0x5aa5be['push'](_0x5aa5be['shift']());}}}(_0x5c16,0xadecc));import{FocusTracker as _0x4db950}from'ckeditor5/src/utils.js';import{View as _0x2f8d6d,FocusCycler as _0x1f63be}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x2f8d6d{[_0x2c2868(0x1a2)];[_0x2c2868(0x1a6)];constructor(_0x17830b){var _0x530457=_0x2c2868;super(_0x17830b),this[_0x530457(0x1a2)]=new _0x4db950(),this[_0x530457(0x1a6)]=new _0x1f63be({'focusables':this[_0x530457(0x19b)](),'focusTracker':this[_0x530457(0x1a2)]});}[_0x2c2868(0x1a0)](){var _0x95f600=_0x2c2868;return{'tag':_0x95f600(0x1a5),'attributes':{'aria-hidden':_0x95f600(0x1a8),'tabindex':'0'},'on':{'focus':this[_0x95f600(0x1a7)]['to'](()=>{var _0x5410d5=_0x95f600;this[_0x5410d5(0x1a6)][_0x5410d5(0x19a)](_0x5410d5(0x19c));})}};}}
|