@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250601.0 → 0.0.0-nightly-20250603.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1b8909=_0xb5d9;(function(_0x597aa6,_0x1c18a){const _0x5d1bc5=_0xb5d9,_0x393f02=_0x597aa6();while(!![]){try{const _0x207c5d=-parseInt(_0x5d1bc5(0xa1))/0x1*(-parseInt(_0x5d1bc5(0x94))/0x2)+-parseInt(_0x5d1bc5(0x8d))/0x3*(parseInt(_0x5d1bc5(0xaf))/0x4)+parseInt(_0x5d1bc5(0x79))/0x5+-parseInt(_0x5d1bc5(0x9d))/0x6+-parseInt(_0x5d1bc5(0xc0))/0x7+-parseInt(_0x5d1bc5(0x86))/0x8*(-parseInt(_0x5d1bc5(0x96))/0x9)+parseInt(_0x5d1bc5(0x7f))/0xa*(parseInt(_0x5d1bc5(0xba))/0xb);if(_0x207c5d===_0x1c18a)break;else _0x393f02['push'](_0x393f02['shift']());}catch(_0x46f337){_0x393f02['push'](_0x393f02['shift']());}}}(_0x4628,0xdbb12));import{Plugin as _0x189b64}from'ckeditor5/src/core.js';function _0xb5d9(_0x24d2b2,_0x4771e0){const _0x462812=_0x4628();return _0xb5d9=function(_0xb5d976,_0x9c5316){_0xb5d976=_0xb5d976-0x79;let _0x18ad3e=_0x462812[_0xb5d976];return _0x18ad3e;},_0xb5d9(_0x24d2b2,_0x4771e0);}import{Dialog as _0x4b4a79}from'ckeditor5/src/ui.js';import{createElement as _0x51f47d,global as _0x290919,uid as _0x346028}from'ckeditor5/src/utils.js';function _0x4628(){const _0x4ca23a=['isOfficialPlugin','document','join','uploadcareImageReplace','8773950kHeLcS','selection','href','execute','1065017BweeXR','render','locale','extend','view','map','\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','listenTo','isPremiumPlugin','_initConversion','downcast','_initConfig','fromCharCode','appendChild','148zhOeWa','upcast','_initCtx','input[uploadcare-file-input]','imageBlock','afterInit','cleanupImage','querySelector','removeAttribute','uploadcare.pubkey','editor','827365ELsgCh','destroy','UploadcareEditing','_initSchema','uc-config','body','6821024BsWMTM','data-uc-image-id','editing','replaceImageSource','true','configElement','remove','_configElement','ctxElement','uploadcare.uploader','uc-upload-ctx-provider','_initImageProcessingIndicator','pluginName','schema','2739155MmxKJT','once','for','insertImage','get','imageInline','170SIVpHf','attributeToAttribute','init','commands','#uc-icon-arrow-down','_ctxElement','PictureEditing','7525816tsilVB','getSelectedElement','contentLanguage','uploadcareImageId','uploadcare','closeMax','config','40185LedMxm','model','conversion','iconHrefResolver','uploader','elementToAttribute','add','2TbwuAq','isRegistered','9OoZTLk','requires','getAttribute'];_0x4628=function(){return _0x4ca23a;};return _0x4628();}import _0x2b1166 from'./uploadcarecommand.js';import _0x3e9041 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1d6922}from'./utils/editingutils.js';export default class i extends _0x189b64{[_0x1b8909(0xc7)]=null;[_0x1b8909(0x84)]=null;static get[_0x1b8909(0xcc)](){const _0x5e890a=_0x1b8909;return _0x5e890a(0xbc);}static get[_0x1b8909(0x97)](){const _0x364c6f=_0x1b8909;return[_0x364c6f(0x85),_0x3e9041,_0x4b4a79];}static get[_0x1b8909(0x99)](){return!0x0;}static get[_0x1b8909(0xa9)](){return!0x0;}get[_0x1b8909(0xc5)](){const _0x2f1b6c=_0x1b8909;return this[_0x2f1b6c(0xc7)];}get[_0x1b8909(0xc8)](){const _0x2de3cf=_0x1b8909;return this[_0x2de3cf(0x84)];}[_0x1b8909(0x81)](){const _0x5cded9=_0x1b8909,_0xd9dc9=this[_0x5cded9(0xb9)];_0xd9dc9[_0x5cded9(0x82)][_0x5cded9(0x93)](_0x5cded9(0x8a),new _0x2b1166(_0xd9dc9));}[_0x1b8909(0xb4)](){const _0x1d3d22=_0x1b8909;this[_0x1d3d22(0xbd)](),this[_0x1d3d22(0xaa)](),this[_0x1d3d22(0xac)](),this[_0x1d3d22(0xb1)](),this[_0x1d3d22(0xcb)](),this[_0x1d3d22(0xa8)](this[_0x1d3d22(0xb9)],_0x1d3d22(0xbb),()=>{const _0x572a50=_0x1d3d22;this[_0x572a50(0xc7)]&&(this[_0x572a50(0xc7)][_0x572a50(0xc6)](),this[_0x572a50(0xc7)]=null),this[_0x572a50(0x84)]&&(this[_0x572a50(0x84)][_0x572a50(0xc6)](),this[_0x572a50(0x84)]=null);const _0x3e86db=_0x290919[_0x572a50(0x9a)][_0x572a50(0xb6)](_0x572a50(0xb2));_0x3e86db&&_0x3e86db[_0x572a50(0xc6)]();}),async function(_0x512d04){const _0x33f161=_0x2cef1f([0x64,0x31,0x4a,0x53,0x49,0x51,0x4e,0x33,0x66,0x6e,0x6d,0x4b,0x4d,0x48,0x30,0x63,0x78,0x5a,0x6a,0x74,0x36,0x79,0x65,0x67,0x32,0x34,0x42,0x68,0x7a,0x39,0x50,0x6f,0x54,0x73,0x69,0x46,0x43,0x41,0x47,0x71,0x72,0x58,0x4f,0x6b,0x77,0x35,0x55,0x45,0x56,0x62,0x75,0x59,0x52,0x70,0x37,0x6c,0x76,0x57,0x61,0x38,0x44,0x4c]),_0x5cf467=0x701b58b9,_0x5cf71a=0x701c3139^_0x5cf467,_0x327229=window[_0x2cef1f([0x44,0x61,0x74,0x65])][_0x2cef1f([0x6e,0x6f,0x77])](),_0x6c1ad3=_0x512d04[_0x2cef1f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc97c39=new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f91a1=>{_0x6c1ad3[_0x2cef1f([0x6f,0x6e,0x63,0x65])](_0x2cef1f([0x72,0x65,0x61,0x64,0x79]),_0x2f91a1);}),_0x2a20fd={[_0x2cef1f([0x6b,0x74,0x79])]:_0x2cef1f([0x45,0x43]),[_0x2cef1f([0x75,0x73,0x65])]:_0x2cef1f([0x73,0x69,0x67]),[_0x2cef1f([0x63,0x72,0x76])]:_0x2cef1f([0x50,0x2d,0x32,0x35,0x36]),[_0x2cef1f([0x78])]:_0x2cef1f([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]),[_0x2cef1f([0x79])]:_0x2cef1f([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]),[_0x2cef1f([0x61,0x6c,0x67])]:_0x2cef1f([0x45,0x53,0x32,0x35,0x36])},_0x2140e3=_0x6c1ad3[_0x2cef1f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cef1f([0x67,0x65,0x74])](_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xec1b3e(){let _0x4ddc38,_0x239773=null,_0x344980=null;try{if(_0x2140e3==_0x2cef1f([0x47,0x50,0x4c]))return _0x2cef1f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ddc38=_0x3f40fa(),!_0x4ddc38)return _0x2cef1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ddc38[_0x2cef1f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x344980=_0x5202d0(_0x4ddc38[_0x2cef1f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ddc38[_0x2cef1f([0x6a,0x74,0x69])])),await _0x3c07cb()?_0x1ed0a9()?_0x30ab12()?_0x2cef1f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c53f4()?(_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cef1f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x239773=_0x5a6220(_0x2cef1f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cef1f([0x74,0x72,0x69,0x61,0x6c])&&(_0x239773=_0x5a6220(_0x2cef1f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x526274()):_0x2cef1f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cef1f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cef1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cef1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30ab12(){const _0x2c2319=[_0x2cef1f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cef1f([0x74,0x72,0x69,0x61,0x6c])][_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x327229/0x3e8:0xe10*_0x5cf71a;return _0x4ddc38[_0x2cef1f([0x65,0x78,0x70])]<_0x2c2319;}function _0x1ed0a9(){const _0x350cf8=_0x4ddc38[_0x2cef1f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x350cf8&&(!!_0x350cf8[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cef1f([0x2a]))||!!_0x350cf8[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cef1f([0x55,0x50,0x4c,0x43])));}function _0x5c53f4(){const _0x37c7f2=_0xb5d9,_0x16c850=_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16c850||0x0==_0x16c850[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1511d9}=new URL(window[_0x2cef1f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x37c7f2(0x9f)]);if(_0x16c850[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1511d9))return!0x0;const _0x5756a5=_0x1511d9[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e]));return _0x16c850[_0x2cef1f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x272247=>_0x272247[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cef1f([0x2a])))[_0x2cef1f([0x6d,0x61,0x70])](_0x4ceb32=>_0x4ceb32[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e])))[_0x2cef1f([0x73,0x6f,0x6d,0x65])](_0x244170=>_0x5756a5[_0x2cef1f([0x65,0x76,0x65,0x72,0x79])]((_0x1f3093,_0x3819ae)=>_0x244170[_0x3819ae]===_0x1f3093||_0x244170[_0x3819ae]===_0x2cef1f([0x2a])));}function _0x526274(){return _0x239773&&_0x344980?new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbc7a52,_0x91e3e8)=>{_0x239773[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0xbc7a52,_0x91e3e8),_0x344980[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x2d281e=>{_0x2d281e!=_0x2cef1f([0x56,0x61,0x6c,0x69,0x64])&&_0xbc7a52(_0x2d281e);},_0x91e3e8);}):_0x239773||_0x344980||_0x2cef1f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5202d0(_0x2e63f6,_0x14bb1d){return new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x246dd3=>{if(_0x1a337f())return _0x246dd3(_0x2cef1f([0x56,0x61,0x6c,0x69,0x64]));_0x72fd1a(),_0x6c1ad3[_0x2cef1f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cef1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x427d61=!0x1;const _0x5ec612=_0x346028();function _0x5301ac(_0x1d5c89){return!!_0x1d5c89&&(typeof _0x1d5c89===_0x2cef1f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d5c89===_0x2cef1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d5c89[_0x2cef1f([0x74,0x68,0x65,0x6e])]===_0x2cef1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d5c89[_0x2cef1f([0x63,0x61,0x74,0x63,0x68])]===_0x2cef1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c1d53(_0x5a9e5b){_0x52fa29(_0x5a9e5b)[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x277992=>{if(!_0x277992||_0x277992[_0x2cef1f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cef1f([0x6f,0x6b]))return _0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xefe5c5(_0x2cda7f(_0x5ec612+_0x14bb1d))!=_0x277992[_0x2cef1f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cef1f([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x2f9d3d=>(_0x337af3(),_0x2f9d3d),()=>{const _0x1dc5aa=_0x291cb1();return null==_0x1dc5aa?(_0x337af3(),_0x2cef1f([0x56,0x61,0x6c,0x69,0x64])):_0x2cef1f(_0x327229-_0x1dc5aa>(0x5417dcb9^_0x5cf467)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x246dd3)[_0x2cef1f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x246dd3(_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x527b1c=0x702db639^_0x5cf467;function _0x337af3(){const _0x4c945f=_0x2cef1f([0x6c,0x6c,0x63,0x74,0x2d])+_0xefe5c5(_0x2cda7f(_0x2e63f6)),_0x57b519=_0xbc20fc(_0xefe5c5(window[_0x2cef1f([0x4d,0x61,0x74,0x68])][_0x2cef1f([0x63,0x65,0x69,0x6c])](_0x327229/_0x527b1c)));window[_0x2cef1f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cef1f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c945f,_0x57b519);}function _0x291cb1(){const _0xc41943=_0x2cef1f([0x6c,0x6c,0x63,0x74,0x2d])+_0xefe5c5(_0x2cda7f(_0x2e63f6)),_0x344076=window[_0x2cef1f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cef1f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc41943);return _0x344076?window[_0x2cef1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbc20fc(_0x344076),0x10)*_0x527b1c:null;}function _0x52fa29(_0x1bda1d){return new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4874ee,_0x229c20)=>{_0x1bda1d[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x4874ee,_0x229c20),window[_0x2cef1f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x229c20,0x701a8c79^_0x5cf467);});}}_0x6c1ad3[_0x2cef1f([0x6f,0x6e])](_0x2cef1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4045f3,_0x3fc91b)=>{if(_0x3fc91b[0x0]!=_0x2e63f6)return _0x246dd3(_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fc91b[0x1]={..._0x3fc91b[0x1],[_0x2cef1f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ec612};},{[_0x2cef1f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cef1f([0x68,0x69,0x67,0x68])}),_0x6c1ad3[_0x2cef1f([0x6f,0x6e])](_0x2cef1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5edd3c=>{_0x5301ac(_0x5edd3c[_0x2cef1f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x427d61=!0x0,_0x5c1d53(_0x5edd3c[_0x2cef1f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cef1f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cef1f([0x6c,0x6f,0x77])}),_0xc97c39[_0x2cef1f([0x74,0x68,0x65,0x6e])](()=>{_0x427d61||_0x246dd3(_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a337f(){return _0x6c1ad3[_0x2cef1f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cef1f([0x76,0x69,0x65,0x77])][_0x2cef1f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cef1f([0x61,0x75,0x74,0x6f]);}function _0x72fd1a(){_0x6c1ad3[_0x2cef1f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cef1f([0x76,0x69,0x65,0x77])][_0x2cef1f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cef1f([0x61,0x75,0x74,0x6f]);}}function _0x5a6220(_0x46a183){const _0x490fba=[new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b72c4=>setTimeout(_0x1b72c4,0x70126675^_0x5cf467)),_0xc97c39[_0x2cef1f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b49e=>{let _0x3372c9=0x0;_0x6c1ad3[_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cef1f([0x6f,0x6e])](_0x2cef1f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x579b71,_0x3a78a8)=>{_0x3a78a8[0x0][_0x2cef1f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3372c9++,_0x3372c9==(0x701b5941^_0x5cf467)&&(_0x11b49e(),_0x579b71[_0x2cef1f([0x6f,0x66,0x66])]());});}))];return window[_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cef1f([0x72,0x61,0x63,0x65])](_0x490fba)[_0x2cef1f([0x74,0x68,0x65,0x6e])](()=>_0x46a183);}async function _0x28709d(){await _0xc97c39,_0x6c1ad3[_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cef1f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x79c4a,_0x6c1ad3[_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cef1f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x79c4a,_0x6c1ad3[_0x2cef1f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51306c(_0x33a1a9){const _0x35e97d=_0x533062();_0x6c1ad3[_0x35e97d]=_0x2cef1f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x33a1a9,_0x33a1a9!=_0x2cef1f([0x56,0x61,0x6c,0x69,0x64])&&_0x28709d();}function _0x533062(){const _0x39129e=window[_0x2cef1f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cef1f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cef1f([0x6e,0x6f,0x77])]())[_0x2cef1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cef1f([0x2e]),'');let _0x1e899a=_0x2cef1f([0x64]);for(let _0x50e339=0x0;_0x50e339<_0x39129e[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50e339+=0x2){let _0x22c471=window[_0x2cef1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39129e[_0x2cef1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50e339,_0x50e339+0x2));_0x22c471>=_0x33f161[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22c471-=_0x33f161[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e899a+=_0x33f161[_0x22c471];}return _0x1e899a;}function _0x3f40fa(){const _0x5ca5f4=_0x2140e3[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e]));if(0x3!=_0x5ca5f4[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x232218(_0x5ca5f4[0x1]);function _0x232218(_0x36f100){const _0x35b03e=_0x3e7c9f(_0x36f100);return _0x35b03e&&_0x4c8d62()?_0x35b03e:null;function _0x4c8d62(){const _0x2b6897=_0x35b03e[_0x2cef1f([0x6a,0x74,0x69])],_0x4aacb9=window[_0x2cef1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b6897[_0x2cef1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b6897[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5e70e2={..._0x35b03e,[_0x2cef1f([0x6a,0x74,0x69])]:_0x2b6897[_0x2cef1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b6897[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5e70e2[_0x2cef1f([0x76,0x63])],_0x2cda7f(_0x5e70e2)==_0x4aacb9;}}}async function _0x3c07cb(){let _0x17136f=!0x0;try{const _0x1ccc5b=_0x2140e3[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e])),[_0x7d48ad,_0x16ce77,_0x270857]=_0x1ccc5b;return _0x14a4d0(_0x7d48ad),await _0x223a12(_0x7d48ad,_0x16ce77,_0x270857),_0x17136f;}catch{return!0x1;}function _0x14a4d0(_0x541217){const _0xbe2d61=_0x3e7c9f(_0x541217);_0xbe2d61&&_0xbe2d61[_0x2cef1f([0x61,0x6c,0x67])]==_0x2cef1f([0x45,0x53,0x32,0x35,0x36])||(_0x17136f=!0x1);}async function _0x223a12(_0xf7bb8a,_0x3c3d97,_0x13a44c){const _0x583adf=window[_0x2cef1f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cef1f([0x66,0x72,0x6f,0x6d])](_0x492c54(_0x13a44c),_0xeca654=>_0xeca654[_0x2cef1f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d6611=new window[(_0x2cef1f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cef1f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf7bb8a+_0x2cef1f([0x2e])+_0x3c3d97),_0x7b6918=window[_0x2cef1f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cef1f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7b6918)return;const _0x257827=await _0x7b6918[_0x2cef1f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cef1f([0x6a,0x77,0x6b]),_0x2a20fd,{[_0x2cef1f([0x6e,0x61,0x6d,0x65])]:_0x2cef1f([0x45,0x43,0x44,0x53,0x41]),[_0x2cef1f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cef1f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cef1f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7b6918[_0x2cef1f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cef1f([0x6e,0x61,0x6d,0x65])]:_0x2cef1f([0x45,0x43,0x44,0x53,0x41]),[_0x2cef1f([0x68,0x61,0x73,0x68])]:{[_0x2cef1f([0x6e,0x61,0x6d,0x65])]:_0x2cef1f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x257827,_0x583adf,_0x4d6611)||(_0x17136f=!0x1);}}function _0x3e7c9f(_0x135046){return _0x135046[_0x2cef1f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cef1f([0x65,0x79]))?JSON[_0x2cef1f([0x70,0x61,0x72,0x73,0x65])](_0x492c54(_0x135046)):null;}function _0x492c54(_0x219791){return window[_0x2cef1f([0x61,0x74,0x6f,0x62])](_0x219791[_0x2cef1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cef1f([0x2b]))[_0x2cef1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cef1f([0x2f])));}function _0x2cda7f(_0x1f7c45){let _0x1f4dfe=0x1505;function _0x47edd2(_0x32a2b2){for(let _0x55bf90=0x0;_0x55bf90<_0x32a2b2[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55bf90++){const _0x1d8dff=_0x32a2b2[_0x2cef1f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55bf90);_0x1f4dfe=(_0x1f4dfe<<0x5)+_0x1f4dfe+_0x1d8dff,_0x1f4dfe&=_0x1f4dfe;}}function _0x24271a(_0xd84110){Array[_0x2cef1f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd84110)?_0xd84110[_0x2cef1f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24271a):_0xd84110&&typeof _0xd84110==_0x2cef1f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cef1f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd84110)[_0x2cef1f([0x73,0x6f,0x72,0x74])]()[_0x2cef1f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e6b28,_0x2fafa0])=>{_0x47edd2(_0x2e6b28),_0x24271a(_0x2fafa0);}):_0x47edd2(window[_0x2cef1f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd84110));}return _0x24271a(_0x1f7c45),_0x1f4dfe>>>0x0;}function _0xefe5c5(_0x568af9){return _0x568af9[_0x2cef1f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cef1f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cef1f([0x30]));}function _0xbc20fc(_0x313e94){return _0x313e94[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cef1f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cef1f([0x6a,0x6f,0x69,0x6e])]('');}function _0x79c4a(){}function _0x2cef1f(_0x57aec1){const _0x1497e8=_0xb5d9;return _0x57aec1[_0x1497e8(0xa6)](_0x3b8be2=>String[_0x1497e8(0xad)](_0x3b8be2))[_0x1497e8(0x9b)]('');}_0x51306c(await _0xec1b3e());}(this);}[_0x1b8909(0xbd)](){const _0x5aa318=_0x1b8909,_0x3e6b42=this[_0x5aa318(0xb9)][_0x5aa318(0x8e)][_0x5aa318(0xcd)];_0x3e6b42[_0x5aa318(0x95)](_0x5aa318(0xb3))&&_0x3e6b42[_0x5aa318(0xa4)](_0x5aa318(0xb3),{'allowAttributes':[_0x5aa318(0x89)]}),_0x3e6b42[_0x5aa318(0x95)](_0x5aa318(0x7e))&&_0x3e6b42[_0x5aa318(0xa4)](_0x5aa318(0x7e),{'allowAttributes':[_0x5aa318(0x89)]});}[_0x1b8909(0xaa)](){const _0x6472e8=_0x1b8909,_0x81ca9c=this[_0x6472e8(0xb9)];_0x81ca9c[_0x6472e8(0x8f)][_0x6472e8(0x7b)](_0x6472e8(0xab))[_0x6472e8(0x80)]({'model':_0x6472e8(0x89),'view':_0x6472e8(0xc1)}),_0x81ca9c[_0x6472e8(0x8f)][_0x6472e8(0x7b)](_0x6472e8(0xb0))[_0x6472e8(0x92)]({'model':{'key':_0x6472e8(0x89),'value':_0x4ca2e1=>_0x4ca2e1[_0x6472e8(0x98)](_0x6472e8(0xc1))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x28c6a6=_0x81ca9c[_0x6472e8(0x82)][_0x6472e8(0x7d)](_0x6472e8(0xc3));_0x28c6a6&&this[_0x6472e8(0xa8)](_0x28c6a6,_0x6472e8(0xb5),(_0x22f249,[_0x5d9b67,_0x57b147])=>{const _0x514143=_0x6472e8;_0x5d9b67[_0x514143(0xb7)](_0x514143(0x89),_0x57b147);});}[_0x1b8909(0xac)](){const _0x4d444c=_0x1b8909,_0x31c877=this[_0x4d444c(0xb9)][_0x4d444c(0x8c)][_0x4d444c(0x7d)](_0x4d444c(0xc9))||{},_0x28184e=this[_0x4d444c(0xb9)][_0x4d444c(0x8c)][_0x4d444c(0x7d)](_0x4d444c(0xb8))||'';this[_0x4d444c(0xc7)]=_0x51f47d(_0x290919[_0x4d444c(0x9a)],_0x4d444c(0xbe),{..._0x31c877,'pubkey':_0x28184e,'ctx-name':_0x4d444c(0x91),'sourceList':'','imgOnly':_0x4d444c(0xc4),'removeCopyright':_0x4d444c(0xc4),'localeName':this[_0x4d444c(0xb9)][_0x4d444c(0xa3)][_0x4d444c(0x88)],'externalSourcesEmbedCss':_0x4d444c(0xa7)}),this[_0x4d444c(0xc7)][_0x4d444c(0x90)]=_0x1a1012=>{const _0x2645c4=_0x4d444c;if(_0x2645c4(0x8b)==_0x1a1012)return _0x2645c4(0x83);},_0x290919[_0x4d444c(0x9a)][_0x4d444c(0xbf)][_0x4d444c(0xae)](this[_0x4d444c(0xc7)]);}[_0x1b8909(0xb1)](){const _0x38c9d8=_0x1b8909;this[_0x38c9d8(0x84)]=_0x51f47d(_0x290919[_0x38c9d8(0x9a)],_0x38c9d8(0xca),{'ctx-name':_0x38c9d8(0x91)}),_0x290919[_0x38c9d8(0x9a)][_0x38c9d8(0xbf)][_0x38c9d8(0xae)](this[_0x38c9d8(0x84)]);}[_0x1b8909(0xcb)](){const _0x5636ca=_0x1b8909,_0xaba889=this[_0x5636ca(0xb9)][_0x5636ca(0x82)][_0x5636ca(0x7d)](_0x5636ca(0x7c));_0xaba889&&this[_0x5636ca(0xa8)](_0xaba889,_0x5636ca(0xa0),()=>{const _0x154c8f=_0x5636ca,_0x586c30=this[_0x154c8f(0xb9)][_0x154c8f(0x8e)][_0x154c8f(0x9a)][_0x154c8f(0x9e)][_0x154c8f(0x87)]();_0x586c30&&_0x586c30[_0x154c8f(0x98)](_0x154c8f(0x89))&&this[_0x154c8f(0xb9)][_0x154c8f(0xc2)][_0x154c8f(0xa5)][_0x154c8f(0x7a)](_0x154c8f(0xa2),()=>{const _0x5dcaed=_0x154c8f;_0x1d6922(this[_0x5dcaed(0xb9)],_0x586c30);});});const _0x1986a2=this[_0x5636ca(0xb9)][_0x5636ca(0x82)][_0x5636ca(0x7d)](_0x5636ca(0x9c));_0x1986a2&&this[_0x5636ca(0xa8)](_0x1986a2,_0x5636ca(0xa0),()=>{const _0x510db7=_0x5636ca,_0x57aa27=this[_0x510db7(0xb9)][_0x510db7(0x8e)][_0x510db7(0x9a)][_0x510db7(0x9e)][_0x510db7(0x87)]();_0x57aa27&&_0x57aa27[_0x510db7(0x98)](_0x510db7(0x89))&&this[_0x510db7(0xb9)][_0x510db7(0xc2)][_0x510db7(0xa5)][_0x510db7(0x7a)](_0x510db7(0xa2),()=>{const _0x3976c4=_0x510db7;_0x1d6922(this[_0x3976c4(0xb9)],_0x57aa27);});});}}
|
|
23
|
+
function _0x172d(){const _0x1011dd=['\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','isPremiumPlugin','data-uc-image-id','cleanupImage','destroy','listenTo','elementToAttribute','body','uploadcare','_initSchema','schema','requires','456378qLzckM','4177176Hhggue','uploadcareImageId','true','getSelectedElement','118bLzlbR','_initConfig','attributeToAttribute','replaceImageSource','17836970cTFcCs','querySelector','1629QYSFEa','_ctxElement','PictureEditing','5iQtOKV','appendChild','editor','uc-config','add','#uc-icon-arrow-down','isRegistered','pluginName','config','for','1104824HoYfKN','href','removeAttribute','uploadcare.uploader','contentLanguage','downcast','imageInline','init','uploadcare.pubkey','UploadcareEditing','getAttribute','configElement','selection','fromCharCode','input[uploadcare-file-input]','uc-upload-ctx-provider','model','editing','get','execute','upcast','uploader','iconHrefResolver','closeMax','uploadcareImageReplace','locale','223684ifayOr','conversion','extend','map','afterInit','commands','77TouvrC','isOfficialPlugin','remove','render','_configElement','ctxElement','2636361YvjFms','insertImage','view','join','_initImageProcessingIndicator','document','_initConversion','imageBlock','once','_initCtx'];_0x172d=function(){return _0x1011dd;};return _0x172d();}const _0x3480cb=_0x3854;function _0x3854(_0x22dabd,_0x45478b){const _0x172d94=_0x172d();return _0x3854=function(_0x385449,_0x339fc1){_0x385449=_0x385449-0x15e;let _0x9d17de=_0x172d94[_0x385449];return _0x9d17de;},_0x3854(_0x22dabd,_0x45478b);}(function(_0x4d2e3c,_0x19422c){const _0x1ecd6e=_0x3854,_0x3ac278=_0x4d2e3c();while(!![]){try{const _0x32f1b2=-parseInt(_0x1ecd6e(0x186))/0x1+parseInt(_0x1ecd6e(0x18b))/0x2*(-parseInt(_0x1ecd6e(0x191))/0x3)+parseInt(_0x1ecd6e(0x164))/0x4*(parseInt(_0x1ecd6e(0x194))/0x5)+parseInt(_0x1ecd6e(0x187))/0x6+-parseInt(_0x1ecd6e(0x16a))/0x7*(parseInt(_0x1ecd6e(0x19e))/0x8)+parseInt(_0x1ecd6e(0x170))/0x9+parseInt(_0x1ecd6e(0x18f))/0xa;if(_0x32f1b2===_0x19422c)break;else _0x3ac278['push'](_0x3ac278['shift']());}catch(_0x384968){_0x3ac278['push'](_0x3ac278['shift']());}}}(_0x172d,0xc87cb));import{Plugin as _0x2fce6a}from'ckeditor5/src/core.js';import{Dialog as _0x469efc}from'ckeditor5/src/ui.js';import{createElement as _0xd10a29,global as _0x4dc1b7,uid as _0x9bd0fc}from'ckeditor5/src/utils.js';import _0x2fa9f8 from'./uploadcarecommand.js';import _0x711b6e from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5f40f4}from'./utils/editingutils.js';export default class i extends _0x2fce6a{[_0x3480cb(0x16e)]=null;[_0x3480cb(0x192)]=null;static get[_0x3480cb(0x19b)](){const _0x5c897e=_0x3480cb;return _0x5c897e(0x1a7);}static get[_0x3480cb(0x185)](){const _0x1e0941=_0x3480cb;return[_0x1e0941(0x193),_0x711b6e,_0x469efc];}static get[_0x3480cb(0x16b)](){return!0x0;}static get[_0x3480cb(0x17b)](){return!0x0;}get[_0x3480cb(0x1a9)](){const _0x214f03=_0x3480cb;return this[_0x214f03(0x16e)];}get[_0x3480cb(0x16f)](){const _0x422921=_0x3480cb;return this[_0x422921(0x192)];}[_0x3480cb(0x1a5)](){const _0x34bc2b=_0x3480cb,_0x52ac18=this[_0x34bc2b(0x196)];_0x52ac18[_0x34bc2b(0x169)][_0x34bc2b(0x198)](_0x34bc2b(0x182),new _0x2fa9f8(_0x52ac18));}[_0x3480cb(0x168)](){const _0x145211=_0x3480cb;this[_0x145211(0x183)](),this[_0x145211(0x176)](),this[_0x145211(0x18c)](),this[_0x145211(0x179)](),this[_0x145211(0x174)](),this[_0x145211(0x17f)](this[_0x145211(0x196)],_0x145211(0x17e),()=>{const _0x2bb008=_0x145211;this[_0x2bb008(0x16e)]&&(this[_0x2bb008(0x16e)][_0x2bb008(0x16c)](),this[_0x2bb008(0x16e)]=null),this[_0x2bb008(0x192)]&&(this[_0x2bb008(0x192)][_0x2bb008(0x16c)](),this[_0x2bb008(0x192)]=null);const _0x756ef9=_0x4dc1b7[_0x2bb008(0x175)][_0x2bb008(0x190)](_0x2bb008(0x1ac));_0x756ef9&&_0x756ef9[_0x2bb008(0x16c)]();}),async function(_0x2ff43c){const _0x45aad2=_0x19fdec([0x6b,0x30,0x73,0x5a,0x31,0x50,0x32,0x67,0x57,0x7a,0x48,0x39,0x4b,0x64,0x45,0x6f,0x41,0x38,0x43,0x74,0x69,0x33,0x70,0x72,0x4e,0x4d,0x6d,0x53,0x4c,0x78,0x52,0x55,0x71,0x4f,0x61,0x46,0x58,0x65,0x66,0x49,0x59,0x79,0x6c,0x42,0x44,0x75,0x63,0x4a,0x37,0x47,0x34,0x51,0x68,0x76,0x6e,0x35,0x54,0x6a,0x77,0x36,0x62,0x56]),_0x46ef29=0x2d73c39f,_0x1d5d95=0x2d74aa2f^_0x46ef29,_0x436e7e=window[_0x19fdec([0x44,0x61,0x74,0x65])][_0x19fdec([0x6e,0x6f,0x77])](),_0x13623e=_0x2ff43c[_0x19fdec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48ab74=new window[(_0x19fdec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27740b=>{_0x13623e[_0x19fdec([0x6f,0x6e,0x63,0x65])](_0x19fdec([0x72,0x65,0x61,0x64,0x79]),_0x27740b);}),_0x16222e={[_0x19fdec([0x6b,0x74,0x79])]:_0x19fdec([0x45,0x43]),[_0x19fdec([0x75,0x73,0x65])]:_0x19fdec([0x73,0x69,0x67]),[_0x19fdec([0x63,0x72,0x76])]:_0x19fdec([0x50,0x2d,0x32,0x35,0x36]),[_0x19fdec([0x78])]:_0x19fdec([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]),[_0x19fdec([0x79])]:_0x19fdec([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]),[_0x19fdec([0x61,0x6c,0x67])]:_0x19fdec([0x45,0x53,0x32,0x35,0x36])},_0x43ca2d=_0x13623e[_0x19fdec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x19fdec([0x67,0x65,0x74])](_0x19fdec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x415121(){let _0x5bded8,_0x19b7d0=null,_0x5570d6=null;try{if(_0x43ca2d==_0x19fdec([0x47,0x50,0x4c]))return _0x19fdec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5bded8=_0x173031(),!_0x5bded8)return _0x19fdec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5bded8[_0x19fdec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5570d6=_0x338594(_0x5bded8[_0x19fdec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5bded8[_0x19fdec([0x6a,0x74,0x69])])),await _0x1b7c87()?_0xef6b38()?_0x2623fc()?_0x19fdec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57c77f()?(_0x5bded8[_0x19fdec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19fdec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19b7d0=_0x44c39f(_0x19fdec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bded8[_0x19fdec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19fdec([0x74,0x72,0x69,0x61,0x6c])&&(_0x19b7d0=_0x44c39f(_0x19fdec([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5dd9dd()):_0x19fdec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x19fdec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x19fdec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x19fdec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2623fc(){const _0x237005=[_0x19fdec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x19fdec([0x74,0x72,0x69,0x61,0x6c])][_0x19fdec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bded8[_0x19fdec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x436e7e/0x3e8:0xe10*_0x1d5d95;return _0x5bded8[_0x19fdec([0x65,0x78,0x70])]<_0x237005;}function _0xef6b38(){const _0x316504=_0x5bded8[_0x19fdec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x316504&&(!!_0x316504[_0x19fdec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19fdec([0x2a]))||!!_0x316504[_0x19fdec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19fdec([0x55,0x50,0x4c,0x43])));}function _0x57c77f(){const _0x217015=_0x3854,_0x2b7f56=_0x5bded8[_0x19fdec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b7f56||0x0==_0x2b7f56[_0x19fdec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35113a}=new URL(window[_0x19fdec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x217015(0x19f)]);if(_0x2b7f56[_0x19fdec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35113a))return!0x0;const _0x19cc5f=_0x35113a[_0x19fdec([0x73,0x70,0x6c,0x69,0x74])](_0x19fdec([0x2e]));return _0x2b7f56[_0x19fdec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a5557=>_0x1a5557[_0x19fdec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19fdec([0x2a])))[_0x19fdec([0x6d,0x61,0x70])](_0x34be40=>_0x34be40[_0x19fdec([0x73,0x70,0x6c,0x69,0x74])](_0x19fdec([0x2e])))[_0x19fdec([0x73,0x6f,0x6d,0x65])](_0x5d90fd=>_0x19cc5f[_0x19fdec([0x65,0x76,0x65,0x72,0x79])]((_0x2cd22a,_0x42804d)=>_0x5d90fd[_0x42804d]===_0x2cd22a||_0x5d90fd[_0x42804d]===_0x19fdec([0x2a])));}function _0x5dd9dd(){return _0x19b7d0&&_0x5570d6?new window[(_0x19fdec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c9b55,_0x486d38)=>{_0x19b7d0[_0x19fdec([0x74,0x68,0x65,0x6e])](_0x1c9b55,_0x486d38),_0x5570d6[_0x19fdec([0x74,0x68,0x65,0x6e])](_0x5e977e=>{_0x5e977e!=_0x19fdec([0x56,0x61,0x6c,0x69,0x64])&&_0x1c9b55(_0x5e977e);},_0x486d38);}):_0x19b7d0||_0x5570d6||_0x19fdec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x338594(_0x129ca9,_0x473002){return new window[(_0x19fdec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1912e3=>{if(_0x54b42f())return _0x1912e3(_0x19fdec([0x56,0x61,0x6c,0x69,0x64]));_0x44d8ba(),_0x13623e[_0x19fdec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x19fdec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c471e=!0x1;const _0x19c930=_0x9bd0fc();function _0x208391(_0xfd659a){return!!_0xfd659a&&(typeof _0xfd659a===_0x19fdec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xfd659a===_0x19fdec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xfd659a[_0x19fdec([0x74,0x68,0x65,0x6e])]===_0x19fdec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xfd659a[_0x19fdec([0x63,0x61,0x74,0x63,0x68])]===_0x19fdec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40db50(_0x380b27){_0x54e3d5(_0x380b27)[_0x19fdec([0x74,0x68,0x65,0x6e])](_0xf8fab8=>{if(!_0xf8fab8||_0xf8fab8[_0x19fdec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x19fdec([0x6f,0x6b]))return _0x19fdec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28e74c(_0x35819b(_0x19c930+_0x473002))!=_0xf8fab8[_0x19fdec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x19fdec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x19fdec([0x56,0x61,0x6c,0x69,0x64]);})[_0x19fdec([0x74,0x68,0x65,0x6e])](_0x1c9bc7=>(_0x47b0ff(),_0x1c9bc7),()=>{const _0x1a0c1d=_0x2c45ce();return null==_0x1a0c1d?(_0x47b0ff(),_0x19fdec([0x56,0x61,0x6c,0x69,0x64])):_0x19fdec(_0x436e7e-_0x1a0c1d>(0x97f479f^_0x46ef29)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x19fdec([0x74,0x68,0x65,0x6e])](_0x1912e3)[_0x19fdec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1912e3(_0x19fdec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x26bc99=0x2d452d1f^_0x46ef29;function _0x47b0ff(){const _0x255c20=_0x19fdec([0x6c,0x6c,0x63,0x74,0x2d])+_0x28e74c(_0x35819b(_0x129ca9)),_0x373a23=_0xe46251(_0x28e74c(window[_0x19fdec([0x4d,0x61,0x74,0x68])][_0x19fdec([0x63,0x65,0x69,0x6c])](_0x436e7e/_0x26bc99)));window[_0x19fdec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19fdec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x255c20,_0x373a23);}function _0x2c45ce(){const _0x376ab0=_0x19fdec([0x6c,0x6c,0x63,0x74,0x2d])+_0x28e74c(_0x35819b(_0x129ca9)),_0x58e1dc=window[_0x19fdec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19fdec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x376ab0);return _0x58e1dc?window[_0x19fdec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe46251(_0x58e1dc),0x10)*_0x26bc99:null;}function _0x54e3d5(_0x410f97){return new window[(_0x19fdec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb75f2a,_0x4b246e)=>{_0x410f97[_0x19fdec([0x74,0x68,0x65,0x6e])](_0xb75f2a,_0x4b246e),window[_0x19fdec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b246e,0x2d72175f^_0x46ef29);});}}_0x13623e[_0x19fdec([0x6f,0x6e])](_0x19fdec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x468856,_0x12408b)=>{if(_0x12408b[0x0]!=_0x129ca9)return _0x1912e3(_0x19fdec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12408b[0x1]={..._0x12408b[0x1],[_0x19fdec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x19c930};},{[_0x19fdec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19fdec([0x68,0x69,0x67,0x68])}),_0x13623e[_0x19fdec([0x6f,0x6e])](_0x19fdec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3115c0=>{_0x208391(_0x3115c0[_0x19fdec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c471e=!0x0,_0x40db50(_0x3115c0[_0x19fdec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x19fdec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19fdec([0x6c,0x6f,0x77])}),_0x48ab74[_0x19fdec([0x74,0x68,0x65,0x6e])](()=>{_0x2c471e||_0x1912e3(_0x19fdec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54b42f(){return _0x13623e[_0x19fdec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19fdec([0x76,0x69,0x65,0x77])][_0x19fdec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x19fdec([0x61,0x75,0x74,0x6f]);}function _0x44d8ba(){_0x13623e[_0x19fdec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19fdec([0x76,0x69,0x65,0x77])][_0x19fdec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19fdec([0x61,0x75,0x74,0x6f]);}}function _0x44c39f(_0x473a32){const _0x4b1298=[new window[(_0x19fdec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55b861=>setTimeout(_0x55b861,0x2d7afd53^_0x46ef29)),_0x48ab74[_0x19fdec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x19fdec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d447f=>{let _0x6fa312=0x0;_0x13623e[_0x19fdec([0x6d,0x6f,0x64,0x65,0x6c])][_0x19fdec([0x6f,0x6e])](_0x19fdec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d0da5,_0x193f4b)=>{_0x193f4b[0x0][_0x19fdec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6fa312++,_0x6fa312==(0x2d73c267^_0x46ef29)&&(_0x4d447f(),_0x1d0da5[_0x19fdec([0x6f,0x66,0x66])]());});}))];return window[_0x19fdec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19fdec([0x72,0x61,0x63,0x65])](_0x4b1298)[_0x19fdec([0x74,0x68,0x65,0x6e])](()=>_0x473a32);}async function _0xa3ae86(){await _0x48ab74,_0x13623e[_0x19fdec([0x6d,0x6f,0x64,0x65,0x6c])][_0x19fdec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42538f,_0x13623e[_0x19fdec([0x6d,0x6f,0x64,0x65,0x6c])][_0x19fdec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42538f,_0x13623e[_0x19fdec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x19fdec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x394b78(_0x2d944c){const _0x484170=_0x59fa8d();_0x13623e[_0x484170]=_0x19fdec([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d944c,_0x2d944c!=_0x19fdec([0x56,0x61,0x6c,0x69,0x64])&&_0xa3ae86();}function _0x59fa8d(){const _0x2992f2=window[_0x19fdec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x19fdec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x19fdec([0x6e,0x6f,0x77])]())[_0x19fdec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x19fdec([0x2e]),'');let _0xad1c57=_0x19fdec([0x6b]);for(let _0x370740=0x0;_0x370740<_0x2992f2[_0x19fdec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x370740+=0x2){let _0x1f5699=window[_0x19fdec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2992f2[_0x19fdec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x370740,_0x370740+0x2));_0x1f5699>=_0x45aad2[_0x19fdec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f5699-=_0x45aad2[_0x19fdec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xad1c57+=_0x45aad2[_0x1f5699];}return _0xad1c57;}function _0x173031(){const _0x282353=_0x43ca2d[_0x19fdec([0x73,0x70,0x6c,0x69,0x74])](_0x19fdec([0x2e]));if(0x3!=_0x282353[_0x19fdec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c115c(_0x282353[0x1]);function _0x2c115c(_0x812d3c){const _0x1ebe29=_0x28ee14(_0x812d3c);return _0x1ebe29&&_0x559534()?_0x1ebe29:null;function _0x559534(){const _0x3891dc=_0x1ebe29[_0x19fdec([0x6a,0x74,0x69])],_0x19e284=window[_0x19fdec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3891dc[_0x19fdec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3891dc[_0x19fdec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x277c10={..._0x1ebe29,[_0x19fdec([0x6a,0x74,0x69])]:_0x3891dc[_0x19fdec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3891dc[_0x19fdec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x277c10[_0x19fdec([0x76,0x63])],_0x35819b(_0x277c10)==_0x19e284;}}}async function _0x1b7c87(){let _0x22e440=!0x0;try{const _0x5e753a=_0x43ca2d[_0x19fdec([0x73,0x70,0x6c,0x69,0x74])](_0x19fdec([0x2e])),[_0x1c7bd3,_0xc64e2c,_0x1e3b36]=_0x5e753a;return _0x525edb(_0x1c7bd3),await _0x4287fe(_0x1c7bd3,_0xc64e2c,_0x1e3b36),_0x22e440;}catch{return!0x1;}function _0x525edb(_0x434de0){const _0x2abf1d=_0x28ee14(_0x434de0);_0x2abf1d&&_0x2abf1d[_0x19fdec([0x61,0x6c,0x67])]==_0x19fdec([0x45,0x53,0x32,0x35,0x36])||(_0x22e440=!0x1);}async function _0x4287fe(_0x34a14a,_0x153275,_0x2619fc){const _0x4436f2=window[_0x19fdec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x19fdec([0x66,0x72,0x6f,0x6d])](_0x5a1a6d(_0x2619fc),_0x365a41=>_0x365a41[_0x19fdec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ba213=new window[(_0x19fdec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x19fdec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34a14a+_0x19fdec([0x2e])+_0x153275),_0x2e9b01=window[_0x19fdec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x19fdec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e9b01)return;const _0xb4a40c=await _0x2e9b01[_0x19fdec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x19fdec([0x6a,0x77,0x6b]),_0x16222e,{[_0x19fdec([0x6e,0x61,0x6d,0x65])]:_0x19fdec([0x45,0x43,0x44,0x53,0x41]),[_0x19fdec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x19fdec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x19fdec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e9b01[_0x19fdec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x19fdec([0x6e,0x61,0x6d,0x65])]:_0x19fdec([0x45,0x43,0x44,0x53,0x41]),[_0x19fdec([0x68,0x61,0x73,0x68])]:{[_0x19fdec([0x6e,0x61,0x6d,0x65])]:_0x19fdec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb4a40c,_0x4436f2,_0x1ba213)||(_0x22e440=!0x1);}}function _0x28ee14(_0x58ad7c){return _0x58ad7c[_0x19fdec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x19fdec([0x65,0x79]))?JSON[_0x19fdec([0x70,0x61,0x72,0x73,0x65])](_0x5a1a6d(_0x58ad7c)):null;}function _0x5a1a6d(_0x48e730){return window[_0x19fdec([0x61,0x74,0x6f,0x62])](_0x48e730[_0x19fdec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x19fdec([0x2b]))[_0x19fdec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x19fdec([0x2f])));}function _0x35819b(_0x392328){let _0x4fcd97=0x1505;function _0x470ed0(_0x136211){for(let _0x5c171c=0x0;_0x5c171c<_0x136211[_0x19fdec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c171c++){const _0x157b24=_0x136211[_0x19fdec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c171c);_0x4fcd97=(_0x4fcd97<<0x5)+_0x4fcd97+_0x157b24,_0x4fcd97&=_0x4fcd97;}}function _0x196c08(_0x35211f){Array[_0x19fdec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35211f)?_0x35211f[_0x19fdec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x196c08):_0x35211f&&typeof _0x35211f==_0x19fdec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x19fdec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35211f)[_0x19fdec([0x73,0x6f,0x72,0x74])]()[_0x19fdec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbb31d0,_0x276ca0])=>{_0x470ed0(_0xbb31d0),_0x196c08(_0x276ca0);}):_0x470ed0(window[_0x19fdec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35211f));}return _0x196c08(_0x392328),_0x4fcd97>>>0x0;}function _0x28e74c(_0x1df4a){return _0x1df4a[_0x19fdec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x19fdec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x19fdec([0x30]));}function _0xe46251(_0x54029d){return _0x54029d[_0x19fdec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x19fdec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x19fdec([0x6a,0x6f,0x69,0x6e])]('');}function _0x42538f(){}function _0x19fdec(_0x199bf4){const _0x568eb1=_0x3854;return _0x199bf4[_0x568eb1(0x167)](_0x5f182b=>String[_0x568eb1(0x1ab)](_0x5f182b))[_0x568eb1(0x173)]('');}_0x394b78(await _0x415121());}(this);}[_0x3480cb(0x183)](){const _0x1c4f86=_0x3480cb,_0x57b972=this[_0x1c4f86(0x196)][_0x1c4f86(0x1ae)][_0x1c4f86(0x184)];_0x57b972[_0x1c4f86(0x19a)](_0x1c4f86(0x177))&&_0x57b972[_0x1c4f86(0x166)](_0x1c4f86(0x177),{'allowAttributes':[_0x1c4f86(0x188)]}),_0x57b972[_0x1c4f86(0x19a)](_0x1c4f86(0x1a4))&&_0x57b972[_0x1c4f86(0x166)](_0x1c4f86(0x1a4),{'allowAttributes':[_0x1c4f86(0x188)]});}[_0x3480cb(0x176)](){const _0x43deaf=_0x3480cb,_0x17d054=this[_0x43deaf(0x196)];_0x17d054[_0x43deaf(0x165)][_0x43deaf(0x19d)](_0x43deaf(0x1a3))[_0x43deaf(0x18d)]({'model':_0x43deaf(0x188),'view':_0x43deaf(0x17c)}),_0x17d054[_0x43deaf(0x165)][_0x43deaf(0x19d)](_0x43deaf(0x15e))[_0x43deaf(0x180)]({'model':{'key':_0x43deaf(0x188),'value':_0x907813=>_0x907813[_0x43deaf(0x1a8)](_0x43deaf(0x17c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x38cd7b=_0x17d054[_0x43deaf(0x169)][_0x43deaf(0x1b0)](_0x43deaf(0x18e));_0x38cd7b&&this[_0x43deaf(0x17f)](_0x38cd7b,_0x43deaf(0x17d),(_0x10f112,[_0x641481,_0x21ece2])=>{const _0x2f88dd=_0x43deaf;_0x641481[_0x2f88dd(0x1a0)](_0x2f88dd(0x188),_0x21ece2);});}[_0x3480cb(0x18c)](){const _0x3315f7=_0x3480cb,_0x270659=this[_0x3315f7(0x196)][_0x3315f7(0x19c)][_0x3315f7(0x1b0)](_0x3315f7(0x1a1))||{},_0x4e59ed=this[_0x3315f7(0x196)][_0x3315f7(0x19c)][_0x3315f7(0x1b0)](_0x3315f7(0x1a6))||'';this[_0x3315f7(0x16e)]=_0xd10a29(_0x4dc1b7[_0x3315f7(0x175)],_0x3315f7(0x197),{..._0x270659,'pubkey':_0x4e59ed,'ctx-name':_0x3315f7(0x15f),'sourceList':'','imgOnly':_0x3315f7(0x189),'removeCopyright':_0x3315f7(0x189),'localeName':this[_0x3315f7(0x196)][_0x3315f7(0x163)][_0x3315f7(0x1a2)],'externalSourcesEmbedCss':_0x3315f7(0x17a)}),this[_0x3315f7(0x16e)][_0x3315f7(0x160)]=_0x3604ad=>{const _0x196c48=_0x3315f7;if(_0x196c48(0x161)==_0x3604ad)return _0x196c48(0x199);},_0x4dc1b7[_0x3315f7(0x175)][_0x3315f7(0x181)][_0x3315f7(0x195)](this[_0x3315f7(0x16e)]);}[_0x3480cb(0x179)](){const _0x3b0f13=_0x3480cb;this[_0x3b0f13(0x192)]=_0xd10a29(_0x4dc1b7[_0x3b0f13(0x175)],_0x3b0f13(0x1ad),{'ctx-name':_0x3b0f13(0x15f)}),_0x4dc1b7[_0x3b0f13(0x175)][_0x3b0f13(0x181)][_0x3b0f13(0x195)](this[_0x3b0f13(0x192)]);}[_0x3480cb(0x174)](){const _0xa0ba67=_0x3480cb,_0x2a3ca8=this[_0xa0ba67(0x196)][_0xa0ba67(0x169)][_0xa0ba67(0x1b0)](_0xa0ba67(0x171));_0x2a3ca8&&this[_0xa0ba67(0x17f)](_0x2a3ca8,_0xa0ba67(0x1b1),()=>{const _0x3e3672=_0xa0ba67,_0x2b05d7=this[_0x3e3672(0x196)][_0x3e3672(0x1ae)][_0x3e3672(0x175)][_0x3e3672(0x1aa)][_0x3e3672(0x18a)]();_0x2b05d7&&_0x2b05d7[_0x3e3672(0x1a8)](_0x3e3672(0x188))&&this[_0x3e3672(0x196)][_0x3e3672(0x1af)][_0x3e3672(0x172)][_0x3e3672(0x178)](_0x3e3672(0x16d),()=>{const _0x310c4c=_0x3e3672;_0x5f40f4(this[_0x310c4c(0x196)],_0x2b05d7);});});const _0x2dcc7e=this[_0xa0ba67(0x196)][_0xa0ba67(0x169)][_0xa0ba67(0x1b0)](_0xa0ba67(0x162));_0x2dcc7e&&this[_0xa0ba67(0x17f)](_0x2dcc7e,_0xa0ba67(0x1b1),()=>{const _0x2cf093=_0xa0ba67,_0x2a8ac4=this[_0x2cf093(0x196)][_0x2cf093(0x1ae)][_0x2cf093(0x175)][_0x2cf093(0x1aa)][_0x2cf093(0x18a)]();_0x2a8ac4&&_0x2a8ac4[_0x2cf093(0x1a8)](_0x2cf093(0x188))&&this[_0x2cf093(0x196)][_0x2cf093(0x1af)][_0x2cf093(0x172)][_0x2cf093(0x178)](_0x2cf093(0x16d),()=>{const _0x56b02f=_0x2cf093;_0x5f40f4(this[_0x56b02f(0x196)],_0x2a8ac4);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x51be2f,ObservableMixin as _0x3884d4}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x29ca75}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5790eb}from'ckeditor5/src/icons.js';import _0x10750e from'./uploadcareimageeditformview.js';import _0x1d7662 from'../../utils/uploadutils.js';import{getImageUrls as _0x14cf82,getImageDimension as _0x5d4e6a}from'../../utils/editingutils.js';import{isAncestor as _0x44e518}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3884d4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1277de,_0x2c527e,_0x204a50){super(),this['_editor']=_0x1277de,this['_dialog']=_0x2c527e,this['_imageElement']=_0x204a50,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 _0xfab2e7=this['_imageElement'],_0x38d5f0=_0xfab2e7['getAttribute']('uploadcareImageId'),_0x32447f=_0xfab2e7['getAttribute']('src');if(_0x38d5f0)await this['_loadImageInfo'](_0x38d5f0,_0x32447f);else{if(this['_imageCache']['has'](_0x32447f)){const _0x135892=this['_imageCache']['get'](_0x32447f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x135892['url'],this['imageDimension']=_0x135892['dimension'],this['imageId']=_0x135892['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x48ff7a}=this['_editor'],t=_0x48ff7a['t'],_0x4a098e=new _0x10750e(_0x48ff7a,this['imageStatus'],this['_attributes']);_0x4a098e['bind']('status')['to'](this,'imageStatus'),_0x4a098e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4a098e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4a098e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4a098e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5790eb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4a098e,'position':_0x29ca75['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4a098e['focus']();},'onHide':()=>{_0x4a098e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a8484=>!_0x44e518(_0x5a8484,_0x4a098e['element'])}});}['_loadImageInfo'](_0x403bab,_0x3aabe4){return _0x1d7662['getInfo'](_0x403bab,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xeb8c9b=>{const {width:_0x5d83a4,height:_0xc84aec}=_0xeb8c9b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3aabe4,this['imageDimension']={'width':_0x5d83a4,'height':_0xc84aec},this['imageId']=_0x403bab;})['catch'](_0x19f9f1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x19f9f1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x37f53e,_0x5b20a5){return this['_getImageAsFile'](_0x37f53e)['then'](_0x4bbfaf=>_0x1d7662['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5b20a5['signal'],'file':_0x4bbfaf,'onProgress':_0x3f864b=>{_0x3f864b&&_0x3f864b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3f864b['value']));}}))['then'](_0x31748c=>{const {width:_0x14967a,height:_0x5658ed}=_0x31748c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31748c['cdnUrl'],this['imageDimension']={'width':_0x14967a,'height':_0x5658ed},this['imageId']=_0x31748c['uuid'],this['imageUploadProgress']=null;const _0x4559aa=_0x37f53e['getAttribute']('src');this['_imageCache']['set'](_0x4559aa,{'id':_0x31748c['uuid'],'url':_0x31748c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x515d40=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x515d40['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x29b1a5,_0x527432){_0x29b1a5['on']('apply',(_0x396f6a,_0x3a6b3e)=>{this['_replaceImage'](_0x527432,_0x3a6b3e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x29b1a5['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x29b1a5['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x50288c,_0x50a40d,_0x2541c7){const _0x40c082=this['_editor'],{width:_0x2f7def,height:_0x1bc6bf}=_0x5d4e6a(_0x50a40d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x470905,imageSources:_0x1f4109}=_0x14cf82(_0x50a40d,_0x2f7def);_0x40c082['model']['change'](_0x6eb8da=>{if('$graveyard'===_0x50288c['root']['rootName']){_0x40c082['execute']('insertImage',{'imageType':_0x50288c['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x50288c['getAttributes']()),'uploadcareImageId':_0x2541c7,'src':_0x470905,'sources':_0x1f4109,'width':_0x2f7def,'height':_0x1bc6bf}});const _0x89559=_0x50288c['getChildren']();_0x50288c=_0x40c082['model']['document']['selection']['getSelectedElement']();for(const _0x7d27c of _0x89559)_0x6eb8da['append'](_0x6eb8da['cloneElement'](_0x7d27c),_0x50288c);}else _0x6eb8da['setSelection'](_0x50288c,'on'),_0x40c082['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x50288c['getAttributes']()),'uploadcareImageId':_0x2541c7,'src':_0x470905,'sources':_0x1f4109,'width':_0x2f7def,'height':_0x1bc6bf},_0x50288c);_0x6eb8da['setSelection'](_0x50288c,'on');});}async['_getImageAsFile'](_0xee21f5){const _0x491a45=_0x51be2f['window'],_0x42e496=_0x51be2f['document']['location']['href'],_0x10231c=new _0x491a45['URL'](_0xee21f5['getAttribute']('src'),_0x42e496);if('data:'===_0x10231c['protocol']){const _0x5a5d9f=_0x10231c['href']['split'](','),_0x355b3b=_0x5a5d9f[0x0]['match'](/:(.*?);/)[0x1],_0xe6b08c=_0x355b3b['split']('/')[0x1],_0x58ddb2=_0x491a45['atob'](_0x5a5d9f[_0x5a5d9f['length']-0x1]);let _0x29e48c=_0x58ddb2['length'];const _0x2ac884=new _0x491a45['Uint8Array'](_0x29e48c);for(;_0x29e48c--;)_0x2ac884[_0x29e48c]=_0x58ddb2['charCodeAt'](_0x29e48c);return new _0x491a45['File']([_0x2ac884],'image.'+_0xe6b08c,{'type':_0x355b3b});}const _0x536f53=_0x10231c['href']['split']('/'),_0x59a9fc=_0x536f53[_0x536f53['length']-0x1],_0x2b480c=_0x59a9fc['split']('.')[0x1];return _0x491a45['fetch'](_0x10231c['href'])['then'](_0x310aec=>_0x310aec['clone']()['blob']())['then'](_0x1bc8ee=>new _0x491a45['File']([_0x1bc8ee],_0x59a9fc,{'type':'image/'+_0x2b480c}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3d59(_0x5ac639,_0x372d12){const _0x2f439d=_0x2f43();return _0x3d59=function(_0x3d595a,_0x1e95f5){_0x3d595a=_0x3d595a-0x165;let _0x1752bf=_0x2f439d[_0x3d595a];return _0x1752bf;},_0x3d59(_0x5ac639,_0x372d12);}(function(_0x10d297,_0x5ab7b6){const _0x5a14a2=_0x3d59,_0x398958=_0x10d297();while(!![]){try{const _0x358b0f=parseInt(_0x5a14a2(0x174))/0x1+parseInt(_0x5a14a2(0x173))/0x2+-parseInt(_0x5a14a2(0x16f))/0x3+parseInt(_0x5a14a2(0x168))/0x4+parseInt(_0x5a14a2(0x16c))/0x5+-parseInt(_0x5a14a2(0x16a))/0x6*(parseInt(_0x5a14a2(0x16d))/0x7)+-parseInt(_0x5a14a2(0x172))/0x8;if(_0x358b0f===_0x5ab7b6)break;else _0x398958['push'](_0x398958['shift']());}catch(_0x39f5db){_0x398958['push'](_0x398958['shift']());}}}(_0x2f43,0x920ff));function _0x2f43(){const _0x12f161=['987287DEZmof','set','1940469pOHTji','bindTemplate','setTemplate','925560QUdZdV','398084xmbXjL','134584rymHsS','uc-light','ck-uploadcare-theme','uc-cloud-image-editor','886688ONWTlJ','image-edit','6gXGKhd','imageSrc','4732660UyZWRU'];_0x2f43=function(){return _0x12f161;};return _0x2f43();}import{View as _0x2bf992}from'ckeditor5/src/ui.js';export default class tt extends _0x2bf992{constructor(_0x2b7d78,_0x572ebf){const _0x4548ca=_0x3d59;super(_0x2b7d78);const _0x28b9d8=this[_0x4548ca(0x170)];this[_0x4548ca(0x16e)](_0x4548ca(0x16b),''),this[_0x4548ca(0x171)]({'tag':_0x4548ca(0x167),'attributes':{..._0x572ebf,'class':[_0x4548ca(0x165),_0x4548ca(0x166)],'ctx-name':_0x4548ca(0x169),'cdn-url':_0x28b9d8['to'](_0x4548ca(0x16b))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x507222,IconView as at,View as _0x4ec50}from'ckeditor5/src/ui.js';export default class rt extends _0x4ec50{constructor(_0x25a341){super(_0x25a341);const t=_0x25a341['t'];this['set']('errorType',null);const _0x324519=new _0x507222(_0x25a341);_0x324519['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x324519['withText']=!0x0,_0x324519['class']='ck-button-action',_0x324519['on']('execute',()=>{this['fire']('retry');}),_0x324519['bind']('isVisible')['to'](this,'errorType',_0x393a92=>'NotFound'!==_0x393a92);const _0x5e7070=new at();_0x5e7070['content']=et,_0x5e7070['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x57f15c=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':[_0x5e7070,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x57f15c['to']('errorType',_0x1620fd=>t('NotFound'!==_0x1620fd?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x324519]},{'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 _0x4d6612,View as _0x4d8033}from'ckeditor5/src/ui.js';export default class ta extends _0x4d8033{constructor(_0x980b58){super(_0x980b58);const t=_0x980b58['t'],_0x204859=this['bindTemplate'],_0x3c6699=new _0x4d6612();_0x3c6699['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':[_0x3c6699,{'text':_0x204859['to']('imageUploadProgress',_0xb1f89e=>t('Loading\x20image...')+'\x20('+(_0xb1f89e||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 _0x412b8c=_0x3bf2;function _0x2cc7(){const _0x3e34a4=['cdnUrl','retry','ck-uploadcare-form','125GRtdyF','_editingView','addedNodes','disconnect','_waitForImageEditorComponent','uploading','768DxjwuG','_setView','error','addEventListener','element','100vhtmMt','649503VecMHU','set','ck-reset_all-excluded','setTemplate','length','render','querySelector','nodeName','uc-cloud-image-editor','968561wtfksV','createCollection','div','10577FsVsEg','22eFKZNF','34278oRUHmr','add','filter','_items','1391684qfjSbA','fire','759452bvWlyb','cancel','_loadingView','observe','toLowerCase','change:status','_errorView','status','addMany','1232124WtMFjD','focus','target','apply','getFocusableElement','_addErrorViewListeners','_focusableView','clear','3UeHrJs','detail','ready','_addUploadcareImageEditorListeners','once'];_0x2cc7=function(){return _0x3e34a4;};return _0x2cc7();}(function(_0x11253d,_0x4fe86a){const _0x2aa179=_0x3bf2,_0x5eeb5f=_0x11253d();while(!![]){try{const _0x1a9a72=parseInt(_0x2aa179(0xd8))/0x1+-parseInt(_0x2aa179(0xe3))/0x2*(-parseInt(_0x2aa179(0xbb))/0x3)+-parseInt(_0x2aa179(0xe1))/0x4+parseInt(_0x2aa179(0xc3))/0x5*(-parseInt(_0x2aa179(0xdd))/0x6)+parseInt(_0x2aa179(0xdb))/0x7*(parseInt(_0x2aa179(0xc9))/0x8)+parseInt(_0x2aa179(0xcf))/0x9*(-parseInt(_0x2aa179(0xce))/0xa)+parseInt(_0x2aa179(0xdc))/0xb*(parseInt(_0x2aa179(0xb3))/0xc);if(_0x1a9a72===_0x4fe86a)break;else _0x5eeb5f['push'](_0x5eeb5f['shift']());}catch(_0x1f28aa){_0x5eeb5f['push'](_0x5eeb5f['shift']());}}}(_0x2cc7,0x76b89));function _0x3bf2(_0x5e7c2f,_0x3c53f1){const _0x2cc7f5=_0x2cc7();return _0x3bf2=function(_0x3bf24c,_0x36a8a4){_0x3bf24c=_0x3bf24c-0xad;let _0x10ca5a=_0x2cc7f5[_0x3bf24c];return _0x10ca5a;},_0x3bf2(_0x5e7c2f,_0x3c53f1);}import{View as _0x53ecbf}from'ckeditor5/src/ui.js';import _0x30c194 from'./uploadcareimageeditformloadingview.js';import _0x4ae542 from'./uploadcareimageeditformerrorview.js';import _0x56f986 from'./uploadcareimageeditformeditingview.js';import _0x3d2ab2 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x3d2ab2{[_0x412b8c(0xe0)];[_0x412b8c(0xe5)];[_0x412b8c(0xb0)];[_0x412b8c(0xc4)];[_0x412b8c(0xb9)];constructor(_0x2b3625,_0xf7d414,_0x334812){const _0x25403d=_0x412b8c;super(_0x2b3625),this[_0x25403d(0xe0)]=this[_0x25403d(0xd9)](),this[_0x25403d(0xe5)]=new _0x30c194(_0x2b3625),this[_0x25403d(0xb0)]=new _0x4ae542(_0x2b3625),this[_0x25403d(0xc4)]=new _0x56f986(_0x2b3625,_0x334812),this[_0x25403d(0xb9)]=new _0x53ecbf(_0x2b3625),this[_0x25403d(0xb9)][_0x25403d(0xd2)](this[_0x25403d(0xb7)]()),this[_0x25403d(0xd0)](_0x25403d(0xb1),_0xf7d414),this[_0x25403d(0xd2)]({'tag':_0x25403d(0xda),'attributes':{'class':['ck',_0x25403d(0xd1),_0x25403d(0xc2)],'tabindex':'-1'},'children':this[_0x25403d(0xe0)]}),this[_0x25403d(0xca)](),this[_0x25403d(0xbf)](_0x25403d(0xd4),()=>{const _0x5aa6c1=_0x25403d;this[_0x5aa6c1(0xc7)](this[_0x5aa6c1(0xcd)],_0xa1b4ee=>{const _0x2cee71=_0x5aa6c1;this[_0x2cee71(0xbe)](_0xa1b4ee);});}),this['on'](_0x25403d(0xaf),()=>{const _0x32d77b=_0x25403d;this[_0x32d77b(0xca)]();}),this[_0x25403d(0xb8)]();}[_0x412b8c(0xb4)](){const _0x2593f3=_0x412b8c;this[_0x2593f3(0xcd)][_0x2593f3(0xb4)]();}[_0x412b8c(0xca)](){const _0x48bbfd=_0x412b8c;switch(this[_0x48bbfd(0xe0)][_0x48bbfd(0xba)](),this[_0x48bbfd(0xb1)]){case _0x48bbfd(0xc8):this[_0x48bbfd(0xe0)][_0x48bbfd(0xde)](this[_0x48bbfd(0xe5)]);break;case _0x48bbfd(0xcb):this[_0x48bbfd(0xe0)][_0x48bbfd(0xde)](this[_0x48bbfd(0xb0)]);break;case _0x48bbfd(0xbd):this[_0x48bbfd(0xe0)][_0x48bbfd(0xb2)]([this[_0x48bbfd(0xc4)],this[_0x48bbfd(0xb9)]]);}}[_0x412b8c(0xc7)](_0x2afd25,_0x5d1eb5){const _0x557ca2=_0x412b8c,_0x315114=_0x557ca2(0xd7),_0x2bc2b6=_0x2afd25[_0x557ca2(0xd5)](_0x315114);if(_0x2bc2b6)return _0x5d1eb5(_0x2bc2b6);const _0x45d73a=new MutationObserver(_0x408884=>{const _0x4bfc07=_0x557ca2,_0x2bb040=_0x408884[_0x4bfc07(0xdf)](_0x1cb9a6=>_0x1cb9a6[_0x4bfc07(0xb5)]===_0x2afd25&&_0x1cb9a6[_0x4bfc07(0xc5)][_0x4bfc07(0xd3)]>0x0&&_0x1cb9a6[_0x4bfc07(0xc5)][0x0][_0x4bfc07(0xd6)][_0x4bfc07(0xae)]()===_0x315114);_0x2bb040[_0x4bfc07(0xd3)]&&(_0x45d73a[_0x4bfc07(0xc6)](),_0x5d1eb5(_0x2bb040[0x0][_0x4bfc07(0xc5)][0x0]));});_0x45d73a[_0x557ca2(0xad)](_0x2afd25,{'childList':!0x0,'subtree':!0x0});}[_0x412b8c(0xbe)](_0x58e861){const _0x348392=_0x412b8c;_0x58e861[_0x348392(0xcc)](_0x348392(0xb6),_0xf5213f=>{const _0x388639=_0x348392;this[_0x388639(0xe2)](_0x388639(0xb6),{'imageSrc':_0xf5213f[_0x388639(0xbc)][_0x388639(0xc0)]});}),_0x58e861[_0x348392(0xcc)](_0x348392(0xe4),()=>{const _0x2d76eb=_0x348392;this[_0x2d76eb(0xe2)](_0x2d76eb(0xe4));});}[_0x412b8c(0xb8)](){const _0x248051=_0x412b8c;this[_0x248051(0xb0)]['on'](_0x248051(0xc1),()=>{const _0x5f1bd2=_0x248051;this[_0x5f1bd2(0xe2)](_0x5f1bd2(0xc1));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3b1e(_0x5a29e5,_0x10f70e){const _0x82e911=_0x82e9();return _0x3b1e=function(_0x3b1ebf,_0x427398){_0x3b1ebf=_0x3b1ebf-0x86;let _0x1cd441=_0x82e911[_0x3b1ebf];return _0x1cd441;},_0x3b1e(_0x5a29e5,_0x10f70e);}const _0x55359b=_0x3b1e;(function(_0x23e66c,_0x2d6d3d){const _0xedb772=_0x3b1e,_0x5e82b6=_0x23e66c();while(!![]){try{const _0x1a9c7b=parseInt(_0xedb772(0x96))/0x1*(parseInt(_0xedb772(0x98))/0x2)+parseInt(_0xedb772(0x97))/0x3*(parseInt(_0xedb772(0xa6))/0x4)+parseInt(_0xedb772(0x9b))/0x5*(-parseInt(_0xedb772(0x99))/0x6)+-parseInt(_0xedb772(0xa0))/0x7*(-parseInt(_0xedb772(0x90))/0x8)+parseInt(_0xedb772(0x88))/0x9+parseInt(_0xedb772(0x8f))/0xa+-parseInt(_0xedb772(0xa1))/0xb;if(_0x1a9c7b===_0x2d6d3d)break;else _0x5e82b6['push'](_0x5e82b6['shift']());}catch(_0x5845d3){_0x5e82b6['push'](_0x5e82b6['shift']());}}}(_0x82e9,0x88d53));import{Command as _0x5a35ff}from'ckeditor5/src/core.js';import{Dialog as _0x447b48}from'ckeditor5/src/ui.js';import _0x3db140 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x52843e}from'../utils/editingutils.js';function _0x82e9(){const _0x153b64=['plugins','153260UGjIVH','imageEditController','uploadcare.allowExternalImagesEditing','3041451oNfLVl','set','get','requires','imageInline','selection','refresh','7696620kqHBqs','8UNIPfq','config','document','unbind','isActive','getSelectedElement','93056bKUlpi','3WYPnqD','2rpWEKb','373548LjnexD','editor','10qAtyNA','element','model','bind','imageBlock','6747783KOiAwY','16697538lgehdw','_isEditable','isEnabled','execute'];_0x82e9=function(){return _0x153b64;};return _0x82e9();}export default class J extends _0x5a35ff{[_0x55359b(0x86)];static get[_0x55359b(0x8b)](){return[_0x447b48];}[_0x55359b(0xa2)];constructor(_0x56759c){const _0x3fd220=_0x55359b;super(_0x56759c),this[_0x3fd220(0x86)]=void 0x0,this[_0x3fd220(0xa2)]=_0x52843e(_0x56759c[_0x3fd220(0x91)][_0x3fd220(0x8a)](_0x3fd220(0x87))||[]),this[_0x3fd220(0x89)]({'isActive':!0x1});}[_0x55359b(0x8e)](){const _0x15ff7a=_0x55359b,_0x3be3ef=this[_0x15ff7a(0x9a)][_0x15ff7a(0x9d)][_0x15ff7a(0x92)][_0x15ff7a(0x8d)][_0x15ff7a(0x95)]();this[_0x15ff7a(0xa3)]=this[_0x15ff7a(0xa2)](_0x3be3ef);}[_0x55359b(0xa4)](){const _0x1a4529=_0x55359b;this[_0x1a4529(0x86)]&&(this[_0x1a4529(0x93)](_0x1a4529(0x94)),this[_0x1a4529(0x86)]=void 0x0);const _0x2e3cd5=this[_0x1a4529(0x9a)][_0x1a4529(0x9d)][_0x1a4529(0x92)][_0x1a4529(0x8d)][_0x1a4529(0x95)]();_0x2e3cd5&&(_0x2e3cd5['is'](_0x1a4529(0x9c),_0x1a4529(0x9f))||_0x2e3cd5['is'](_0x1a4529(0x9c),_0x1a4529(0x8c)))&&(this[_0x1a4529(0x86)]=new _0x3db140(this[_0x1a4529(0x9a)],this[_0x1a4529(0x9a)][_0x1a4529(0xa5)][_0x1a4529(0x8a)](_0x447b48),_0x2e3cd5),this[_0x1a4529(0x9e)](_0x1a4529(0x94))['to'](this[_0x1a4529(0x86)],_0x1a4529(0x94)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5e55(_0x35e968,_0x466c93){const _0x1d3b30=_0x1d3b();return _0x5e55=function(_0x5e559a,_0x31d073){_0x5e559a=_0x5e559a-0x16e;let _0x15ba03=_0x1d3b30[_0x5e559a];return _0x15ba03;},_0x5e55(_0x35e968,_0x466c93);}const _0x4db587=_0x5e55;(function(_0x4bfa10,_0x3c6c91){const _0x20a190=_0x5e55,_0x43f082=_0x4bfa10();while(!![]){try{const _0x2ff27a=parseInt(_0x20a190(0x183))/0x1*(parseInt(_0x20a190(0x16e))/0x2)+parseInt(_0x20a190(0x17a))/0x3+parseInt(_0x20a190(0x176))/0x4+parseInt(_0x20a190(0x17e))/0x5+parseInt(_0x20a190(0x173))/0x6*(-parseInt(_0x20a190(0x16f))/0x7)+-parseInt(_0x20a190(0x179))/0x8+-parseInt(_0x20a190(0x170))/0x9*(parseInt(_0x20a190(0x182))/0xa);if(_0x2ff27a===_0x3c6c91)break;else _0x43f082['push'](_0x43f082['shift']());}catch(_0x398593){_0x43f082['push'](_0x43f082['shift']());}}}(_0x1d3b,0x9ec44));import{Plugin as _0x5bbdee}from'ckeditor5/src/core.js';import{Notification as _0x14bf91}from'ckeditor5/src/ui.js';import _0x2f9989 from'./uploadcareimageeditcommand.js';import _0x104021 from'./uploadcareimagereplacecommand.js';function _0x1d3b(){const _0x3446c4=['UploadcareImageEditEditing','uploadcareImageReplace','60TOrIsp','89JbBGNi','26294GUlEuN','242718eoRLAw','415647yaREvB','add','requires','204LUIgdi','ImageEditing','uploadcareImageEdit','281544xnedRS','isPremiumPlugin','isOfficialPlugin','4543936TeQpHn','1662003QKvFrR','init','pluginName','commands','4399220ZZGAEP','ImageUtils'];_0x1d3b=function(){return _0x3446c4;};return _0x1d3b();}import _0x3cb8c4 from'../uploadcareediting.js';export default class g extends _0x5bbdee{static get[_0x4db587(0x17c)](){const _0x196496=_0x4db587;return _0x196496(0x180);}static get[_0x4db587(0x172)](){const _0x4fcf82=_0x4db587;return[_0x3cb8c4,_0x14bf91,_0x4fcf82(0x17f),_0x4fcf82(0x174)];}static get[_0x4db587(0x178)](){return!0x0;}static get[_0x4db587(0x177)](){return!0x0;}[_0x4db587(0x17b)](){const _0x1e8c77=_0x4db587,{editor:_0x2b84b3}=this;_0x2b84b3[_0x1e8c77(0x17d)][_0x1e8c77(0x171)](_0x1e8c77(0x175),new _0x2f9989(_0x2b84b3)),_0x2b84b3[_0x1e8c77(0x17d)][_0x1e8c77(0x171)](_0x1e8c77(0x181),new _0x104021(_0x2b84b3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x565261}from'ckeditor5/src/core.js';import{ButtonView as _0x3d0aec}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x283ddd}from'ckeditor5/src/icons.js';import{createElement as _0x96cf03}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x565261{['_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 _0x325328=this['editor'];_0x325328['ui']['componentFactory']['add']('uploadcareImageEdit',_0x539285=>{const _0x3f087e=_0x325328['commands']['get']('uploadcareImageEdit'),_0x715491=new _0x3d0aec(_0x539285),t=_0x539285['t'];return _0x715491['set']({'icon':_0x283ddd,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x715491['bind']('isEnabled')['to'](_0x3f087e),_0x715491['bind']('isOn')['to'](_0x3f087e,'isActive'),this['listenTo'](_0x715491,'execute',()=>{_0x325328['execute']('uploadcareImageEdit'),_0x325328['editing']['view']['focus']();}),_0x715491;}),this['_initConfig']();}['_initConfig'](){const _0x14343a=_0x96cf03(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x14343a),this['listenTo'](this['editor'],'destroy',()=>{_0x14343a['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5ae9be=_0x4ab0;function _0x353d(){const _0xd7f3e9=['902489aRNetX','sizes','editor','3XlcVac','setAttributes','16797936COkrKM','isEnabled','3518840aWYEKB','model','execute','change','srcset','selection','imageBlock','getSelectedElement','4287676mTcAKW','document','1033805hqjktP','4302174NDkFdZ','refresh','1456868MIBFgU','element','removeAttribute','imageInline'];_0x353d=function(){return _0xd7f3e9;};return _0x353d();}function _0x4ab0(_0x188d04,_0x4fafd6){const _0x353ddf=_0x353d();return _0x4ab0=function(_0x4ab02b,_0x53bfd8){_0x4ab02b=_0x4ab02b-0x10f;let _0x4290d4=_0x353ddf[_0x4ab02b];return _0x4290d4;},_0x4ab0(_0x188d04,_0x4fafd6);}(function(_0x3e6cf6,_0x5e6ebb){const _0x29a603=_0x4ab0,_0x3b16b4=_0x3e6cf6();while(!![]){try{const _0x1075b4=parseInt(_0x29a603(0x112))/0x1+parseInt(_0x29a603(0x115))/0x2+-parseInt(_0x29a603(0x11c))/0x3*(-parseInt(_0x29a603(0x110))/0x4)+parseInt(_0x29a603(0x120))/0x5+-parseInt(_0x29a603(0x113))/0x6+-parseInt(_0x29a603(0x119))/0x7+-parseInt(_0x29a603(0x11e))/0x8;if(_0x1075b4===_0x5e6ebb)break;else _0x3b16b4['push'](_0x3b16b4['shift']());}catch(_0x5211a4){_0x3b16b4['push'](_0x3b16b4['shift']());}}}(_0x353d,0x90964));import{Command as _0x20ad39}from'ckeditor5/src/core.js';export default class O extends _0x20ad39{[_0x5ae9be(0x114)](){const _0x3632fb=_0x5ae9be,_0xfef35c=this[_0x3632fb(0x11b)][_0x3632fb(0x121)][_0x3632fb(0x111)][_0x3632fb(0x125)][_0x3632fb(0x10f)]();this[_0x3632fb(0x11f)]=Boolean(_0xfef35c&&(_0xfef35c['is'](_0x3632fb(0x116),_0x3632fb(0x126))||_0xfef35c['is'](_0x3632fb(0x116),_0x3632fb(0x118))));}[_0x5ae9be(0x122)](_0x2f6845){const _0x52a041=_0x5ae9be,_0x5240c7=this[_0x52a041(0x11b)][_0x52a041(0x121)][_0x52a041(0x111)][_0x52a041(0x125)][_0x52a041(0x10f)]();this[_0x52a041(0x11b)][_0x52a041(0x121)][_0x52a041(0x123)](_0x32d0c8=>{const _0x11d063=_0x52a041;_0x32d0c8[_0x11d063(0x11d)](_0x2f6845,_0x5240c7),_0x32d0c8[_0x11d063(0x117)](_0x11d063(0x124),_0x5240c7),_0x32d0c8[_0x11d063(0x117)](_0x11d063(0x11a),_0x5240c7);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5439(_0x27dbac,_0x530020){var _0x329563=_0x3295();return _0x5439=function(_0x5439a4,_0x3923f0){_0x5439a4=_0x5439a4-0xf1;var _0x192a4f=_0x329563[_0x5439a4];return _0x192a4f;},_0x5439(_0x27dbac,_0x530020);}var _0x5b139e=_0x5439;function _0x3295(){var _0x4c6ec9=['2121645YQbAKn','648QIuIpx','2DefjWP','4265465gcWhbQ','pluginName','UploadcareImageEdit','isOfficialPlugin','485497gyhrNm','120310iZhZCs','isPremiumPlugin','requires','1218BoJvwM','9695VfPVIL','167553ahyDRF','770vnDcCo','5820608XaTgZb'];_0x3295=function(){return _0x4c6ec9;};return _0x3295();}(function(_0x4c6da4,_0x1a661a){var _0x4e1b1f=_0x5439,_0xa975bf=_0x4c6da4();while(!![]){try{var _0x5df033=-parseInt(_0x4e1b1f(0xff))/0x1*(-parseInt(_0x4e1b1f(0xfa))/0x2)+-parseInt(_0x4e1b1f(0xf8))/0x3+parseInt(_0x4e1b1f(0xf7))/0x4+-parseInt(_0x4e1b1f(0xfb))/0x5+-parseInt(_0x4e1b1f(0xf3))/0x6*(parseInt(_0x4e1b1f(0xf4))/0x7)+parseInt(_0x4e1b1f(0xf9))/0x8*(parseInt(_0x4e1b1f(0xf5))/0x9)+parseInt(_0x4e1b1f(0x100))/0xa*(-parseInt(_0x4e1b1f(0xf6))/0xb);if(_0x5df033===_0x1a661a)break;else _0xa975bf['push'](_0xa975bf['shift']());}catch(_0x36ebfc){_0xa975bf['push'](_0xa975bf['shift']());}}}(_0x3295,0xbac41));import{Plugin as _0x5afd84}from'ckeditor5/src/core.js';import _0x5887db from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x390210 from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x5afd84{static get[_0x5b139e(0xfc)](){var _0x51dffa=_0x5b139e;return _0x51dffa(0xfd);}static get[_0x5b139e(0xf2)](){return[_0x5887db,_0x390210];}static get[_0x5b139e(0xfe)](){return!0x0;}static get[_0x5b139e(0xf1)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x405cd0=_0x1502;(function(_0x2d62d0,_0x3b54b0){const _0x2e3f80=_0x1502,_0x3e6d82=_0x2d62d0();while(!![]){try{const _0x56a53d=parseInt(_0x2e3f80(0x1b8))/0x1+-parseInt(_0x2e3f80(0x1da))/0x2*(parseInt(_0x2e3f80(0x1e7))/0x3)+parseInt(_0x2e3f80(0x1b2))/0x4+parseInt(_0x2e3f80(0x1b6))/0x5*(-parseInt(_0x2e3f80(0x1ed))/0x6)+-parseInt(_0x2e3f80(0x1bb))/0x7*(parseInt(_0x2e3f80(0x1b4))/0x8)+-parseInt(_0x2e3f80(0x1f0))/0x9*(parseInt(_0x2e3f80(0x1c0))/0xa)+-parseInt(_0x2e3f80(0x1c9))/0xb*(-parseInt(_0x2e3f80(0x203))/0xc);if(_0x56a53d===_0x3b54b0)break;else _0x3e6d82['push'](_0x3e6d82['shift']());}catch(_0x5f7165){_0x3e6d82['push'](_0x3e6d82['shift']());}}}(_0x1412,0xbf627));import{Plugin as _0x175214}from'ckeditor5/src/core.js';function _0x1502(_0x40056d,_0x4d64a9){const _0x1412a6=_0x1412();return _0x1502=function(_0x1502b4,_0x1fd3a5){_0x1502b4=_0x1502b4-0x1b1;let _0x3fd24d=_0x1412a6[_0x1502b4];return _0x3fd24d;},_0x1502(_0x40056d,_0x4d64a9);}import{IconDropbox as _0xc130cb,IconFacebook as _0x112571,IconGoogleDrive as _0x478bd8,IconGooglePhotos as _0x408d39,IconUploadcareImageUpload as _0x3e5a2c,IconUploadcareLink as _0x14a521,IconOneDrive as _0x46f26a}from'ckeditor5/src/icons.js';import{ButtonView as _0x1e0da1,MenuBarMenuListItemButtonView as _0x5eb3af}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x45f345}from'./uploadcareconfig.js';import{getTranslation as _0x42f493}from'./utils/common-translations.js';function _0x1412(){const _0x39fd01=['95100aEvSgB','domainLimit','3353864OVKWcb','trialLimit','136VJjiAW','uploadcareLicenseKeyValid','8765qeBNyV','_createButton','149844mTUDKs','Dropbox','url','116830xYkfWq','config','tooltip','isOfficialPlugin','uploadcareLicenseKeyExpired','2470TxjQxw','ImageInsertUI','text','bind','_getIntegrationKey','_showLicenseError','reduce','_normalizeConfigSourceList','uploadcare.uploader.sourceList','5005BIxWyB','_licenseKeyCheckInterval','OneDrive','shortText','evaluationLimit','get','has','withText','_createMenuBarButtons','URL','licenseKey','isImageSelected','expired','init','pluginName','execute','uploadcareLicenseKeyNotAllowed','3026642yeavGf','plugins','isPremiumPlugin','commands','_createDropdownButtons','type','icon','push','uploadcare','upload','isEnabled','uploadcareLicenseKeyTrialLimit','map','3gfGuse','usageLimit','uploadcareLicenseKeyDomainLimit','GPhotos','registerIntegration','forEach','3810nEXIau','editor','uploadcareLicenseKeyUsageLimit','32796PkRBCD','Facebook','featureNotAllowed','Uploadcare','Insert','entries','uploadcareLicenseKeyEvaluationLimit','locale','destroy','label','afterInit','uploadcareLicenseKeyInvalid','Local','GDrive','assetManager','invalid','UploadcareUI','Replace','_createToolbarButton'];_0x1412=function(){return _0x39fd01;};return _0x1412();}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x175214{[_0x405cd0(0x1d3)];[_0x405cd0(0x1ca)];static get[_0x405cd0(0x1d7)](){const _0x2f51d1=_0x405cd0;return _0x2f51d1(0x200);}static get[_0x405cd0(0x1be)](){return!0x0;}static get[_0x405cd0(0x1dc)](){return!0x0;}[_0x405cd0(0x1d6)](){const _0x344b61=_0x405cd0;this[_0x344b61(0x1d3)]=this[_0x344b61(0x1ee)][_0x344b61(0x1bc)][_0x344b61(0x1ce)](_0x344b61(0x1d3));const _0x13704b=this[_0x344b61(0x1ee)];this[_0x344b61(0x1ca)]=setInterval(()=>{const _0x23b12d=_0x344b61;let _0x55e47e;for(const _0x1129f6 in _0x13704b){const _0x556107=_0x1129f6,_0x39d729=_0x13704b[_0x556107];if(_0x23b12d(0x1b5)==_0x39d729||_0x23b12d(0x1fb)==_0x39d729||_0x23b12d(0x1bf)==_0x39d729||_0x23b12d(0x1e9)==_0x39d729||_0x23b12d(0x1d9)==_0x39d729||_0x23b12d(0x1f6)==_0x39d729||_0x23b12d(0x1e5)==_0x39d729||_0x23b12d(0x1ef)==_0x39d729){delete _0x13704b[_0x556107],_0x55e47e=_0x39d729,clearInterval(this[_0x23b12d(0x1ca)]),this[_0x23b12d(0x1ca)]=void 0x0;break;}}_0x23b12d(0x1fb)==_0x55e47e&&_0x13704b[_0x23b12d(0x1c5)](_0x23b12d(0x1ff)),_0x23b12d(0x1bf)==_0x55e47e&&_0x13704b[_0x23b12d(0x1c5)](_0x23b12d(0x1d5)),_0x23b12d(0x1e9)==_0x55e47e&&_0x13704b[_0x23b12d(0x1c5)](_0x23b12d(0x1b1)),_0x23b12d(0x1d9)==_0x55e47e&&_0x13704b[_0x23b12d(0x1c5)](_0x23b12d(0x1f2),_0x23b12d(0x1f3)),_0x23b12d(0x1f6)==_0x55e47e&&_0x13704b[_0x23b12d(0x1c5)](_0x23b12d(0x1cd)),_0x23b12d(0x1e5)==_0x55e47e&&_0x13704b[_0x23b12d(0x1c5)](_0x23b12d(0x1b3)),_0x23b12d(0x1ef)==_0x55e47e&&_0x13704b[_0x23b12d(0x1c5)](_0x23b12d(0x1e8));},0x3e8);}[_0x405cd0(0x1fa)](){const _0x1e4386=_0x405cd0,{editor:_0x259d12}=this,_0x565175=_0x259d12[_0x1e4386(0x1dd)][_0x1e4386(0x1ce)](_0x1e4386(0x1e2));if(!_0x565175)return;const _0x1350e1=this[_0x1e4386(0x1c7)](_0x259d12[_0x1e4386(0x1bc)][_0x1e4386(0x1ce)](_0x1e4386(0x1c8)))[_0x1e4386(0x1c6)]((_0xf11d41,_0x2219bc)=>{const _0x5f3d37=_0x1e4386,_0x1c0185=this[_0x5f3d37(0x1c4)](_0x2219bc[_0x5f3d37(0x1df)]);return _0xf11d41[_0x1c0185]||(_0xf11d41[_0x1c0185]=[]),_0xf11d41[_0x1c0185][_0x5f3d37(0x1e1)](_0x2219bc),_0xf11d41;},{});_0x259d12[_0x1e4386(0x1db)][_0x1e4386(0x1cf)](_0x1e4386(0x1c1))&&_0x259d12[_0x1e4386(0x1dd)][_0x1e4386(0x1ce)](_0x1e4386(0x1e2))&&Object[_0x1e4386(0x1f5)](_0x1350e1)[_0x1e4386(0x1ec)](([_0x10ff6f,_0x2885ca])=>{const _0x59f085=_0x1e4386;_0x259d12[_0x59f085(0x1db)][_0x59f085(0x1ce)](_0x59f085(0x1c1))[_0x59f085(0x1eb)]({'name':_0x10ff6f,'observable':()=>_0x565175,'buttonViewCreator':()=>this[_0x59f085(0x202)](_0x2885ca),'formViewCreator':()=>this[_0x59f085(0x1de)](_0x2885ca),'menuBarButtonViewCreator':()=>this[_0x59f085(0x1d1)](_0x2885ca),'override':_0x59f085(0x1fe)!==_0x10ff6f});});}[_0x405cd0(0x1f8)](){const _0x5d99de=_0x405cd0;super[_0x5d99de(0x1f8)](),this[_0x5d99de(0x1ca)]&&clearInterval(this[_0x5d99de(0x1ca)]);}[_0x405cd0(0x1c7)](_0x528aa0){const _0x545f83=_0x405cd0,{locale:_0xf03f55}=this[_0x545f83(0x1ee)];return _0x528aa0[_0x545f83(0x1e6)](_0x193f4c=>{const _0x34bc7f=_0x545f83,_0x339745=_0x42f493(_0xf03f55,_0x193f4c,_0x34bc7f(0x1f4));switch(_0x193f4c){case _0x45f345[_0x34bc7f(0x1fc)]:return{'icon':_0x3e5a2c,'type':_0x45f345[_0x34bc7f(0x1fc)],..._0x339745};case _0x45f345[_0x34bc7f(0x1d2)]:return{'icon':_0x14a521,'type':_0x45f345[_0x34bc7f(0x1d2)],..._0x339745};case _0x45f345[_0x34bc7f(0x1b9)]:return{'icon':_0xc130cb,'type':_0x45f345[_0x34bc7f(0x1b9)],..._0x339745};case _0x45f345[_0x34bc7f(0x1f1)]:return{'icon':_0x112571,'type':_0x45f345[_0x34bc7f(0x1f1)],..._0x339745};case _0x45f345[_0x34bc7f(0x1fd)]:return{'icon':_0x478bd8,'type':_0x45f345[_0x34bc7f(0x1fd)],..._0x339745};case _0x45f345[_0x34bc7f(0x1ea)]:return{'icon':_0x408d39,'type':_0x45f345[_0x34bc7f(0x1ea)],..._0x339745};case _0x45f345[_0x34bc7f(0x1cb)]:return{'icon':_0x46f26a,'type':_0x45f345[_0x34bc7f(0x1cb)],..._0x339745};}});}[_0x405cd0(0x1c4)](_0x26b51e){const _0x2bbcd8=_0x405cd0;switch(_0x26b51e){case _0x45f345[_0x2bbcd8(0x1fc)]:return _0x2bbcd8(0x1e3);case _0x45f345[_0x2bbcd8(0x1d2)]:return _0x2bbcd8(0x1ba);default:return _0x2bbcd8(0x1fe);}}[_0x405cd0(0x1b7)](_0x3b9c9d,_0x287dbb){const _0x1157cf=_0x405cd0,_0x3d2fa7=this[_0x1157cf(0x1ee)],_0x41cef1=new _0x3b9c9d(_0x3d2fa7[_0x1157cf(0x1f7)]),_0x1f4b8f=_0x3d2fa7[_0x1157cf(0x1dd)][_0x1157cf(0x1ce)](_0x1157cf(0x1e2));return _0x41cef1[_0x1157cf(0x1c3)](_0x1157cf(0x1e4))['to'](_0x1f4b8f),_0x41cef1['on'](_0x1157cf(0x1d8),()=>{const _0x5015ba=_0x1157cf;_0x1f4b8f[_0x5015ba(0x1d8)](_0x287dbb);}),_0x41cef1;}[_0x405cd0(0x202)](_0x1fda6b){const _0xa03915=_0x405cd0,{locale:_0x3e5112}=this[_0xa03915(0x1ee)],_0x1c3858=this[_0xa03915(0x1ee)][_0xa03915(0x1db)][_0xa03915(0x1ce)](_0xa03915(0x1c1)),_0x4a01c1=_0x1fda6b[0x0],_0x582cab=this[_0xa03915(0x1b7)](_0x1e0da1,_0x4a01c1[_0xa03915(0x1df)]);return _0x582cab[_0xa03915(0x1e0)]=_0x4a01c1[_0xa03915(0x1e0)],_0x582cab[_0xa03915(0x1c3)](_0xa03915(0x1f9))['to'](_0x1c3858,_0xa03915(0x1d4),_0x5e8626=>_0x42f493(_0x3e5112,_0x4a01c1[_0xa03915(0x1df)],_0x5e8626?_0xa03915(0x201):_0xa03915(0x1f4))[_0xa03915(0x1c2)]),_0x582cab[_0xa03915(0x1bd)]=!0x0,_0x582cab;}[_0x405cd0(0x1de)](_0x32cf2a){const _0x349ced=_0x405cd0,{locale:_0x5e4421}=this[_0x349ced(0x1ee)],_0xb85c2f=this[_0x349ced(0x1ee)][_0x349ced(0x1db)][_0x349ced(0x1ce)](_0x349ced(0x1c1));return _0x32cf2a[_0x349ced(0x1e6)](_0x216e1b=>{const _0xb8a9c2=_0x349ced,_0x4a36a7=this[_0xb8a9c2(0x1b7)](_0x1e0da1,_0x216e1b[_0xb8a9c2(0x1df)]);return _0x4a36a7[_0xb8a9c2(0x1d0)]=!0x0,_0x4a36a7[_0xb8a9c2(0x1e0)]=_0x216e1b[_0xb8a9c2(0x1e0)],_0x4a36a7[_0xb8a9c2(0x1c3)](_0xb8a9c2(0x1f9))['to'](_0xb85c2f,_0xb8a9c2(0x1d4),_0x588894=>_0x42f493(_0x5e4421,_0x216e1b[_0xb8a9c2(0x1df)],_0x588894?_0xb8a9c2(0x201):_0xb8a9c2(0x1f4))[_0xb8a9c2(0x1c2)]),_0x4a36a7;});}[_0x405cd0(0x1d1)](_0x340fe9){const _0x3299f6=_0x405cd0;return _0x340fe9[_0x3299f6(0x1e6)](_0x58da76=>{const _0x13075e=_0x3299f6,_0x4f646a=this[_0x13075e(0x1b7)](_0x5eb3af,_0x58da76[_0x13075e(0x1df)]);return _0x4f646a[_0x13075e(0x1e0)]=_0x58da76[_0x13075e(0x1e0)],_0x4f646a[_0x13075e(0x1f9)]=_0x58da76[_0x13075e(0x1cc)],_0x4f646a;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xe86b5b}from'ckeditor5/src/core.js';import{FileRepository as _0x5207f}from'ckeditor5/src/upload.js';import _0x59e25e from'./uploadcareediting.js';import _0x857768 from'./utils/uploadutils.js';import{getImageUrls as _0x475723}from'./utils/editingutils.js';export default class p extends _0xe86b5b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5207f,_0x59e25e];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x40ae80=this['editor'];if(!!!_0x40ae80['config']['get']('uploadcare'))return;_0x40ae80['plugins']['get'](_0x5207f)['createUploadAdapter']=_0x451a02=>new x(_0x451a02,_0x40ae80),_0x40ae80['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3bb48a,{imageElement:_0x343f02,data:_0x57626b})=>{_0x40ae80['model']['change'](_0x4a556d=>{_0x4a556d['setAttribute']('uploadcareImageId',_0x57626b['uploadcareImageId'],_0x343f02);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x44b408,_0x2ab8ff){this['loader']=_0x44b408,this['editor']=_0x2ab8ff,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x9b2783=this['editor']['config']['get']('uploadcare.pubkey'),_0x45a722=await this['loader']['file'];return _0x857768['upload']({'file':_0x45a722,'publicKey':_0x9b2783,'signal':this['controller']['signal'],'onProgress':_0x5d1e69=>{_0x5d1e69&&_0x5d1e69['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5d1e69['value']);}})['then'](async _0x576d40=>{const {imageFallbackUrl:_0x4aff7b,imageSources:_0x519d77}=_0x475723(_0x576d40['cdnUrl'],_0x576d40['imageInfo']['width']);return{'uploadcareImageId':_0x576d40['uuid'],'default':_0x4aff7b,'sources':_0x519d77};})['catch'](()=>{const _0x1f56de=t('Cannot\x20upload\x20file:')+('\x20'+_0x45a722['name']+'.');return Promise['reject'](_0x1f56de);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x892338}from'../uploadcareconfig.js';export function getTranslation(_0x2e19ef,_0x2aa2d4,_0x4b57a7){const t=_0x2e19ef['t'],_0x4c258f=_0x2e19ef['t'];switch(_0x2aa2d4){case _0x892338['Local']:return{'text':_0x4c258f('Insert'===_0x4b57a7?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c258f('From\x20computer')};case _0x892338['URL']:return{'text':'Insert'===_0x4b57a7?_0x4c258f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c258f('Via\x20URL')};case _0x892338['Dropbox']:return{'text':t('Insert'===_0x4b57a7?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x892338['Facebook']:return{'text':t('Insert'===_0x4b57a7?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x892338['GDrive']:return{'text':t('Insert'===_0x4b57a7?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x892338['GPhotos']:return{'text':t('Insert'===_0x4b57a7?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x892338['OneDrive']:return{'text':t('Insert'===_0x4b57a7?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2aa2d4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4626(){var _0x3d38c6=['div','focusCycler','9utTjVE','46KlpYde','bindTemplate','328200YWhgjY','4394590aRrwkm','7PNSSLw','10101450xIMyEo','createCollection','getFocusableElement','4827972DqmYNe','fire','8878672XwIHDX','true','31371ZeIOoH','10oaiFVJ','focusTracker','forwardCycle','5040296HzFuos'];_0x4626=function(){return _0x3d38c6;};return _0x4626();}var _0x54b1b9=_0x4062;(function(_0x425ab7,_0x210f4c){var _0x46d5de=_0x4062,_0x31b530=_0x425ab7();while(!![]){try{var _0x21683e=-parseInt(_0x46d5de(0x187))/0x1+-parseInt(_0x46d5de(0x185))/0x2*(-parseInt(_0x46d5de(0x17d))/0x3)+-parseInt(_0x46d5de(0x18d))/0x4+-parseInt(_0x46d5de(0x188))/0x5+-parseInt(_0x46d5de(0x18a))/0x6*(-parseInt(_0x46d5de(0x189))/0x7)+-parseInt(_0x46d5de(0x181))/0x8*(-parseInt(_0x46d5de(0x184))/0x9)+parseInt(_0x46d5de(0x17e))/0xa*(parseInt(_0x46d5de(0x17b))/0xb);if(_0x21683e===_0x210f4c)break;else _0x31b530['push'](_0x31b530['shift']());}catch(_0x266669){_0x31b530['push'](_0x31b530['shift']());}}}(_0x4626,0xe73dc));import{FocusTracker as _0xaa7663}from'ckeditor5/src/utils.js';import{View as _0x20177b,FocusCycler as _0x1d0ee1}from'ckeditor5/src/ui.js';function _0x4062(_0x4a66df,_0x493e12){var _0x46262e=_0x4626();return _0x4062=function(_0x406299,_0x1d1d0b){_0x406299=_0x406299-0x17b;var _0x1081c6=_0x46262e[_0x406299];return _0x1081c6;},_0x4062(_0x4a66df,_0x493e12);}import'../../theme/uploadcare-form.css';export default class q extends _0x20177b{[_0x54b1b9(0x17f)];[_0x54b1b9(0x183)];constructor(_0x1ab088){var _0x34a4f7=_0x54b1b9;super(_0x1ab088),this[_0x34a4f7(0x17f)]=new _0xaa7663(),this[_0x34a4f7(0x183)]=new _0x1d0ee1({'focusables':this[_0x34a4f7(0x18b)](),'focusTracker':this[_0x34a4f7(0x17f)]});}[_0x54b1b9(0x18c)](){var _0x382ef5=_0x54b1b9;return{'tag':_0x382ef5(0x182),'attributes':{'aria-hidden':_0x382ef5(0x17c),'tabindex':'0'},'on':{'focus':this[_0x382ef5(0x186)]['to'](()=>{var _0x564f00=_0x382ef5;this[_0x564f00(0x183)][_0x564f00(0x18e)](_0x564f00(0x180));})}};}}
|