@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251212.0 → 0.0.0-nightly-20251213.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 _0x5c50c6=_0x359b;(function(_0x53c479,_0x2275ee){const _0x51574f=_0x359b,_0x43ed2a=_0x53c479();while(!![]){try{const _0x3b00cc=-parseInt(_0x51574f(0x184))/0x1+parseInt(_0x51574f(0x196))/0x2+-parseInt(_0x51574f(0x165))/0x3+-parseInt(_0x51574f(0x17b))/0x4*(-parseInt(_0x51574f(0x154))/0x5)+-parseInt(_0x51574f(0x173))/0x6*(parseInt(_0x51574f(0x190))/0x7)+parseInt(_0x51574f(0x181))/0x8*(parseInt(_0x51574f(0x182))/0x9)+-parseInt(_0x51574f(0x15d))/0xa*(-parseInt(_0x51574f(0x17a))/0xb);if(_0x3b00cc===_0x2275ee)break;else _0x43ed2a['push'](_0x43ed2a['shift']());}catch(_0x19fc71){_0x43ed2a['push'](_0x43ed2a['shift']());}}}(_0xfbc7,0xb7b82));import{Plugin as _0x406776}from'ckeditor5/src/core.js';import{Dialog as _0x4c5cbb}from'ckeditor5/src/ui.js';import{createElement as _0x35f1e4,global as _0x28736b,uid as _0x49da7d}from'ckeditor5/src/utils.js';function _0x359b(_0x11320e,_0x12413d){const _0xfbc7e9=_0xfbc7();return _0x359b=function(_0x359b50,_0x1516bc){_0x359b50=_0x359b50-0x154;let _0x1d72c5=_0xfbc7e9[_0x359b50];return _0x1d72c5;},_0x359b(_0x11320e,_0x12413d);}import{UploadcareCommand as _0x567384}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x28d9b2}from'./uploadcareuploadadapter.js';function _0xfbc7(){const _0x424af0=['selection','uploader-','init','3261012ScxwhP','iconHrefResolver','UploadcareEditing','true','_ctxElement','config','closeMax','11ACAwUI','476IpZCTm','editor','fromCharCode','cleanupImage','extend','once','5224hxAcob','6894VODnbr','_initConfig','1395780qgoELK','map','_configElement','uc-config','isPremiumPlugin','uploadcare','for','model','requires','_initCtx','destroy','uploadcare.pubkey','14kqtGXh','getAttribute','imageInline','remove','#uc-icon-arrow-down','conversion','894188dXDUHq','data-uc-image-id','\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','add','body','downcast','afterInit','PictureEditing','href','view','ctxElement','isOfficialPlugin','upcast','contentLanguage','commands','locale','pluginName','replaceImageSource','_initSchema','execute','37295mhiyjC','removeAttribute','input[uploadcare-file-input]','get','uploadcareImageReplace','uploadcare.uploader','imageBlock','_initImageProcessingIndicator','insertImage','14956170wZcnQp','editing','schema','elementToAttribute','getSelectedElement','querySelector','ucContextId','appendChild','285696DlIygF','document','uc-upload-ctx-provider','listenTo','configElement','join','attributeToAttribute','_initConversion','uploadcareImageId','isRegistered','render'];_0xfbc7=function(){return _0x424af0;};return _0xfbc7();}import{showImageProcessingIndicator as _0x1034cc}from'./utils/editingutils.js';export class UploadcareEditing extends _0x406776{[_0x5c50c6(0x186)]=null;[_0x5c50c6(0x177)]=null;static get[_0x5c50c6(0x1a6)](){const _0x4e3b20=_0x5c50c6;return _0x4e3b20(0x175);}static get[_0x5c50c6(0x18c)](){const _0x46a287=_0x5c50c6;return[_0x46a287(0x19d),_0x28d9b2,_0x4c5cbb];}static get[_0x5c50c6(0x1a1)](){return!0x0;}static get[_0x5c50c6(0x188)](){return!0x0;}[_0x5c50c6(0x163)];get[_0x5c50c6(0x169)](){const _0x1c188c=_0x5c50c6;return this[_0x1c188c(0x186)];}get[_0x5c50c6(0x1a0)](){const _0x32e1b5=_0x5c50c6;return this[_0x32e1b5(0x177)];}constructor(_0x4f8dd0){const _0x424eb2=_0x5c50c6;super(_0x4f8dd0),this[_0x424eb2(0x163)]=_0x49da7d();}[_0x5c50c6(0x172)](){const _0x56e231=_0x5c50c6,_0x4934e4=this[_0x56e231(0x17c)];_0x4934e4[_0x56e231(0x1a4)][_0x56e231(0x199)](_0x56e231(0x189),new _0x567384(_0x4934e4));}[_0x5c50c6(0x19c)](){const _0xee4b1b=_0x5c50c6;this[_0xee4b1b(0x1a8)](),this[_0xee4b1b(0x16c)](),this[_0xee4b1b(0x183)](),this[_0xee4b1b(0x18d)](),this[_0xee4b1b(0x15b)](),this[_0xee4b1b(0x168)](this[_0xee4b1b(0x17c)],_0xee4b1b(0x18e),()=>{const _0x4a7cbd=_0xee4b1b;this[_0x4a7cbd(0x186)]&&(this[_0x4a7cbd(0x186)][_0x4a7cbd(0x193)](),this[_0x4a7cbd(0x186)]=null),this[_0x4a7cbd(0x177)]&&(this[_0x4a7cbd(0x177)][_0x4a7cbd(0x193)](),this[_0x4a7cbd(0x177)]=null);const _0x773fbe=_0x28736b[_0x4a7cbd(0x166)][_0x4a7cbd(0x162)](_0x4a7cbd(0x156));_0x773fbe&&_0x773fbe[_0x4a7cbd(0x193)]();}),async function(_0x235e5c){const _0x57d2b8=_0xb3916b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x201089=0x535f8c3a,_0x2a5e88=0x5358f78a^_0x201089,_0x49a9b3=window[_0xb3916b([0x44,0x61,0x74,0x65])][_0xb3916b([0x6e,0x6f,0x77])](),_0x494532=_0x235e5c[_0xb3916b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e4eac=new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x99e57a=>{_0x494532[_0xb3916b([0x6f,0x6e,0x63,0x65])](_0xb3916b([0x72,0x65,0x61,0x64,0x79]),_0x99e57a);}),_0x2a68f4={[_0xb3916b([0x6b,0x74,0x79])]:_0xb3916b([0x45,0x43]),[_0xb3916b([0x75,0x73,0x65])]:_0xb3916b([0x73,0x69,0x67]),[_0xb3916b([0x63,0x72,0x76])]:_0xb3916b([0x50,0x2d,0x32,0x35,0x36]),[_0xb3916b([0x78])]:_0xb3916b([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]),[_0xb3916b([0x79])]:_0xb3916b([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]),[_0xb3916b([0x61,0x6c,0x67])]:_0xb3916b([0x45,0x53,0x32,0x35,0x36])},_0x2ac6ec=_0x494532[_0xb3916b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb3916b([0x67,0x65,0x74])](_0xb3916b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2addd2(){let _0x9e5376,_0x4f0b28=null,_0x2b78ac=null;try{if(_0x2ac6ec==_0xb3916b([0x47,0x50,0x4c]))return _0xb3916b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9e5376=_0x221c5a(),!_0x9e5376)return _0xb3916b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9e5376[_0xb3916b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b78ac=_0x57b999(_0x9e5376[_0xb3916b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9e5376[_0xb3916b([0x6a,0x74,0x69])])),await _0x1d3c92()?_0x4cfc10()?_0x209fcd()?_0xb3916b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a838e()?(_0x9e5376[_0xb3916b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb3916b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f0b28=_0x29b3ed(_0xb3916b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9e5376[_0xb3916b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb3916b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f0b28=_0x29b3ed(_0xb3916b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x927b96()):_0xb3916b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb3916b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb3916b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb3916b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x209fcd(){const _0xd41e04=[_0xb3916b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb3916b([0x74,0x72,0x69,0x61,0x6c])][_0xb3916b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9e5376[_0xb3916b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49a9b3/0x3e8:0xe10*_0x2a5e88;return _0x9e5376[_0xb3916b([0x65,0x78,0x70])]<_0xd41e04;}function _0x4cfc10(){const _0x1b9300=_0x9e5376[_0xb3916b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b9300&&(!!_0x1b9300[_0xb3916b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb3916b([0x2a]))||!!_0x1b9300[_0xb3916b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb3916b([0x55,0x50,0x4c,0x43])));}function _0x2a838e(){const _0x5d99b6=_0x359b,_0x233e36=_0x9e5376[_0xb3916b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x233e36||0x0==_0x233e36[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x921d85}=new URL(window[_0xb3916b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5d99b6(0x19e)]);if(_0x233e36[_0xb3916b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x921d85))return!0x0;const _0x251825=_0x921d85[_0xb3916b([0x73,0x70,0x6c,0x69,0x74])](_0xb3916b([0x2e]));return _0x233e36[_0xb3916b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x169cac=>_0x169cac[_0xb3916b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb3916b([0x2a])))[_0xb3916b([0x6d,0x61,0x70])](_0x22674a=>_0x22674a[_0xb3916b([0x73,0x70,0x6c,0x69,0x74])](_0xb3916b([0x2e])))[_0xb3916b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a7924=>_0x3a7924[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x251825[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb3916b([0x6d,0x61,0x70])](_0x16efad=>Array(_0x251825[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x16efad[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb3916b([0x66,0x69,0x6c,0x6c])](_0x16efad[0x0]===_0xb3916b([0x2a])?_0xb3916b([0x2a]):'')[_0xb3916b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x16efad))[_0xb3916b([0x73,0x6f,0x6d,0x65])](_0x565a28=>_0x251825[_0xb3916b([0x65,0x76,0x65,0x72,0x79])]((_0x437201,_0xcd5c78)=>_0x565a28[_0xcd5c78]===_0x437201||_0x565a28[_0xcd5c78]===_0xb3916b([0x2a])));}function _0x927b96(){return _0x4f0b28&&_0x2b78ac?new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16b1d1,_0x55c46d)=>{_0x4f0b28[_0xb3916b([0x74,0x68,0x65,0x6e])](_0x16b1d1,_0x55c46d),_0x2b78ac[_0xb3916b([0x74,0x68,0x65,0x6e])](_0xbc33cd=>{_0xbc33cd!=_0xb3916b([0x56,0x61,0x6c,0x69,0x64])&&_0x16b1d1(_0xbc33cd);},_0x55c46d);}):_0x4f0b28||_0x2b78ac||_0xb3916b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x57b999(_0x4f3acc,_0x2537a5){return new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f59cd=>{if(_0x35eab4())return _0x4f59cd(_0xb3916b([0x56,0x61,0x6c,0x69,0x64]));_0x27cc28(),_0x494532[_0xb3916b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb3916b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36d398=!0x1;const _0x47cc2c=_0x49da7d();function _0x28123d(_0x332ef7){return!!_0x332ef7&&(typeof _0x332ef7===_0xb3916b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x332ef7===_0xb3916b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x332ef7[_0xb3916b([0x74,0x68,0x65,0x6e])]===_0xb3916b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x332ef7[_0xb3916b([0x63,0x61,0x74,0x63,0x68])]===_0xb3916b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x33f556(_0xa47d53){_0x1d6337(_0xa47d53)[_0xb3916b([0x74,0x68,0x65,0x6e])](_0x1b3270=>{if(!_0x1b3270||_0x1b3270[_0xb3916b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb3916b([0x6f,0x6b]))return _0xb3916b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x294d32(_0x52730c(_0x47cc2c+_0x2537a5))!=_0x1b3270[_0xb3916b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb3916b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb3916b([0x56,0x61,0x6c,0x69,0x64]);})[_0xb3916b([0x74,0x68,0x65,0x6e])](_0x2fcf64=>(_0x222839(),_0x2fcf64),()=>{const _0x51f4a3=_0x3cb832();return null==_0x51f4a3?(_0x222839(),_0xb3916b([0x56,0x61,0x6c,0x69,0x64])):_0xb3916b(_0x49a9b3-_0x51f4a3>(0x7753083a^_0x201089)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb3916b([0x74,0x68,0x65,0x6e])](_0x4f59cd)[_0xb3916b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f59cd(_0xb3916b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ff2d1=0x536962ba^_0x201089;function _0x222839(){const _0x928b57=_0xb3916b([0x6c,0x6c,0x63,0x74,0x2d])+_0x294d32(_0x52730c(_0x4f3acc)),_0x59a552=_0xb4e590(_0x294d32(window[_0xb3916b([0x4d,0x61,0x74,0x68])][_0xb3916b([0x63,0x65,0x69,0x6c])](_0x49a9b3/_0x3ff2d1)));window[_0xb3916b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb3916b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x928b57,_0x59a552);}function _0x3cb832(){const _0x4c944c=_0xb3916b([0x6c,0x6c,0x63,0x74,0x2d])+_0x294d32(_0x52730c(_0x4f3acc)),_0x4b3392=window[_0xb3916b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb3916b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c944c);return _0x4b3392?window[_0xb3916b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb4e590(_0x4b3392),0x10)*_0x3ff2d1:null;}function _0x1d6337(_0x1b977f){return new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x359af7,_0xb8ba24)=>{_0x1b977f[_0xb3916b([0x74,0x68,0x65,0x6e])](_0x359af7,_0xb8ba24),window[_0xb3916b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb8ba24,0x535e58fa^_0x201089);});}}_0x494532[_0xb3916b([0x6f,0x6e])](_0xb3916b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3cd379,_0x351c88)=>{if(_0x351c88[0x0]!=_0x4f3acc)return _0x4f59cd(_0xb3916b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x351c88[0x1]={..._0x351c88[0x1],[_0xb3916b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x47cc2c};},{[_0xb3916b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb3916b([0x68,0x69,0x67,0x68])}),_0x494532[_0xb3916b([0x6f,0x6e])](_0xb3916b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x436de6=>{_0x28123d(_0x436de6[_0xb3916b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36d398=!0x0,_0x33f556(_0x436de6[_0xb3916b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb3916b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb3916b([0x6c,0x6f,0x77])}),_0x2e4eac[_0xb3916b([0x74,0x68,0x65,0x6e])](()=>{_0x36d398||_0x4f59cd(_0xb3916b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35eab4(){return _0x494532[_0xb3916b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb3916b([0x76,0x69,0x65,0x77])][_0xb3916b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb3916b([0x61,0x75,0x74,0x6f]);}function _0x27cc28(){_0x494532[_0xb3916b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb3916b([0x76,0x69,0x65,0x77])][_0xb3916b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb3916b([0x61,0x75,0x74,0x6f]);}}function _0x29b3ed(_0x24c66d){const _0x51f951=[new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6f4631=>setTimeout(_0x6f4631,0x5356b2f6^_0x201089)),_0x2e4eac[_0xb3916b([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f0207=>{let _0x229e0c=0x0;_0x494532[_0xb3916b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb3916b([0x6f,0x6e])](_0xb3916b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x203efc,_0x583725)=>{_0x583725[0x0][_0xb3916b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x229e0c++,_0x229e0c==(0x535f8dc2^_0x201089)&&(_0x5f0207(),_0x203efc[_0xb3916b([0x6f,0x66,0x66])]());});}))];return window[_0xb3916b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb3916b([0x72,0x61,0x63,0x65])](_0x51f951)[_0xb3916b([0x74,0x68,0x65,0x6e])](()=>_0x24c66d);}async function _0x5f1c7f(){await _0x2e4eac,_0x494532[_0xb3916b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb3916b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc09596,_0x494532[_0xb3916b([0x6d,0x6f,0x64,0x65,0x6c])][_0xb3916b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc09596,_0x494532[_0xb3916b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb3916b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa12542(_0x4768d6){const _0x3d2ee6=_0x310e93();_0x494532[_0x3d2ee6]=_0xb3916b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4768d6,_0x4768d6!=_0xb3916b([0x56,0x61,0x6c,0x69,0x64])&&_0x5f1c7f();}function _0x310e93(){const _0x32aa92=window[_0xb3916b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb3916b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb3916b([0x6e,0x6f,0x77])]())[_0xb3916b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb3916b([0x2e]),'');let _0x8a27c8=_0xb3916b([0x68]);for(let _0x513f56=0x0;_0x513f56<_0x32aa92[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x513f56+=0x2){let _0x125a12=window[_0xb3916b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32aa92[_0xb3916b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x513f56,_0x513f56+0x2));_0x125a12>=_0x57d2b8[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x125a12-=_0x57d2b8[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8a27c8+=_0x57d2b8[_0x125a12];}return _0x8a27c8;}function _0x221c5a(){const _0x3e9e00=_0x2ac6ec[_0xb3916b([0x73,0x70,0x6c,0x69,0x74])](_0xb3916b([0x2e]));if(0x3!=_0x3e9e00[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x258f39(_0x3e9e00[0x1]);function _0x258f39(_0x116e5a){const _0x4d396a=_0x11741e(_0x116e5a);return _0x4d396a&&_0x460471()?_0x4d396a:null;function _0x460471(){const _0x1a3519=_0x4d396a[_0xb3916b([0x6a,0x74,0x69])],_0x53afa4=window[_0xb3916b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a3519[_0xb3916b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a3519[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5174f={..._0x4d396a,[_0xb3916b([0x6a,0x74,0x69])]:_0x1a3519[_0xb3916b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a3519[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5174f[_0xb3916b([0x76,0x63])],_0x52730c(_0x5174f)==_0x53afa4;}}}async function _0x1d3c92(){let _0x43c30b=!0x0;try{const _0x1362c2=_0x2ac6ec[_0xb3916b([0x73,0x70,0x6c,0x69,0x74])](_0xb3916b([0x2e])),[_0xe0fdcf,_0x167f64,_0x2d9de2]=_0x1362c2;return _0x5e47f7(_0xe0fdcf),await _0x3d981b(_0xe0fdcf,_0x167f64,_0x2d9de2),_0x43c30b;}catch{return!0x1;}function _0x5e47f7(_0x1df25a){const _0x1a1b8a=_0x11741e(_0x1df25a);_0x1a1b8a&&_0x1a1b8a[_0xb3916b([0x61,0x6c,0x67])]==_0xb3916b([0x45,0x53,0x32,0x35,0x36])||(_0x43c30b=!0x1);}async function _0x3d981b(_0x523461,_0x30dbd6,_0x4901f3){const _0x5e0169=window[_0xb3916b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb3916b([0x66,0x72,0x6f,0x6d])](_0x2a4fa3(_0x4901f3),_0x18fd68=>_0x18fd68[_0xb3916b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10f476=new window[(_0xb3916b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb3916b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x523461+_0xb3916b([0x2e])+_0x30dbd6),_0x4c6aef=window[_0xb3916b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb3916b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4c6aef)return;const _0x4cf6ef=await _0x4c6aef[_0xb3916b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb3916b([0x6a,0x77,0x6b]),_0x2a68f4,{[_0xb3916b([0x6e,0x61,0x6d,0x65])]:_0xb3916b([0x45,0x43,0x44,0x53,0x41]),[_0xb3916b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb3916b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb3916b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4c6aef[_0xb3916b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb3916b([0x6e,0x61,0x6d,0x65])]:_0xb3916b([0x45,0x43,0x44,0x53,0x41]),[_0xb3916b([0x68,0x61,0x73,0x68])]:{[_0xb3916b([0x6e,0x61,0x6d,0x65])]:_0xb3916b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cf6ef,_0x5e0169,_0x10f476)||(_0x43c30b=!0x1);}}function _0x11741e(_0x8829e8){return _0x8829e8[_0xb3916b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb3916b([0x65,0x79]))?JSON[_0xb3916b([0x70,0x61,0x72,0x73,0x65])](_0x2a4fa3(_0x8829e8)):null;}function _0x2a4fa3(_0x144143){return window[_0xb3916b([0x61,0x74,0x6f,0x62])](_0x144143[_0xb3916b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb3916b([0x2b]))[_0xb3916b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb3916b([0x2f])));}function _0x52730c(_0x479e0a){let _0x13dbc2=0x1505;function _0x42060d(_0x4699a5){for(let _0x3b5805=0x0;_0x3b5805<_0x4699a5[_0xb3916b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b5805++){const _0x58ab2f=_0x4699a5[_0xb3916b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b5805);_0x13dbc2=(_0x13dbc2<<0x5)+_0x13dbc2+_0x58ab2f,_0x13dbc2&=_0x13dbc2;}}function _0x121221(_0x588c1b){Array[_0xb3916b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x588c1b)?_0x588c1b[_0xb3916b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x121221):_0x588c1b&&typeof _0x588c1b==_0xb3916b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb3916b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x588c1b)[_0xb3916b([0x73,0x6f,0x72,0x74])]()[_0xb3916b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x187993,_0x405a49])=>{_0x42060d(_0x187993),_0x121221(_0x405a49);}):_0x42060d(window[_0xb3916b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x588c1b));}return _0x121221(_0x479e0a),_0x13dbc2>>>0x0;}function _0x294d32(_0x1ab748){return _0x1ab748[_0xb3916b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb3916b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb3916b([0x30]));}function _0xb4e590(_0x1436f4){return _0x1436f4[_0xb3916b([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb3916b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb3916b([0x6a,0x6f,0x69,0x6e])]('');}function _0xc09596(){}function _0xb3916b(_0x37cf23){const _0x457d56=_0x359b;return _0x37cf23[_0x457d56(0x185)](_0x13070c=>String[_0x457d56(0x17d)](_0x13070c))[_0x457d56(0x16a)]('');}_0xa12542(await _0x2addd2());}(this);}[_0x5c50c6(0x1a8)](){const _0x43e5a8=_0x5c50c6,_0x44501f=this[_0x43e5a8(0x17c)][_0x43e5a8(0x18b)][_0x43e5a8(0x15f)];_0x44501f[_0x43e5a8(0x16e)](_0x43e5a8(0x15a))&&_0x44501f[_0x43e5a8(0x17f)](_0x43e5a8(0x15a),{'allowAttributes':[_0x43e5a8(0x16d)]}),_0x44501f[_0x43e5a8(0x16e)](_0x43e5a8(0x192))&&_0x44501f[_0x43e5a8(0x17f)](_0x43e5a8(0x192),{'allowAttributes':[_0x43e5a8(0x16d)]});}[_0x5c50c6(0x16c)](){const _0x5327b4=_0x5c50c6,_0x476707=this[_0x5327b4(0x17c)];_0x476707[_0x5327b4(0x195)][_0x5327b4(0x18a)](_0x5327b4(0x19b))[_0x5327b4(0x16b)]({'model':_0x5327b4(0x16d),'view':_0x5327b4(0x197)}),_0x476707[_0x5327b4(0x195)][_0x5327b4(0x18a)](_0x5327b4(0x1a2))[_0x5327b4(0x160)]({'model':{'key':_0x5327b4(0x16d),'value':_0x1d4f40=>_0x1d4f40[_0x5327b4(0x191)](_0x5327b4(0x197))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2d9f01=_0x476707[_0x5327b4(0x1a4)][_0x5327b4(0x157)](_0x5327b4(0x1a7));_0x2d9f01&&this[_0x5327b4(0x168)](_0x2d9f01,_0x5327b4(0x17e),(_0x2f4afa,[_0x2a4a45,_0x26e4b6])=>{const _0xc48a9f=_0x5327b4;_0x2a4a45[_0xc48a9f(0x155)](_0xc48a9f(0x16d),_0x26e4b6);});}[_0x5c50c6(0x183)](){const _0x13987f=_0x5c50c6,_0x386edd=this[_0x13987f(0x17c)][_0x13987f(0x178)][_0x13987f(0x157)](_0x13987f(0x159))||{},_0x1dd952=this[_0x13987f(0x17c)][_0x13987f(0x178)][_0x13987f(0x157)](_0x13987f(0x18f))||'';this[_0x13987f(0x186)]=_0x35f1e4(_0x28736b[_0x13987f(0x166)],_0x13987f(0x187),{..._0x386edd,'pubkey':_0x1dd952,'ctx-name':_0x13987f(0x171)+this[_0x13987f(0x163)],'sourceList':'','imgOnly':_0x13987f(0x176),'removeCopyright':_0x13987f(0x176),'localeName':this[_0x13987f(0x17c)][_0x13987f(0x1a5)][_0x13987f(0x1a3)],'externalSourcesEmbedCss':_0x13987f(0x198)}),this[_0x13987f(0x186)][_0x13987f(0x174)]=_0x49dc2f=>{const _0x2a2188=_0x13987f;if(_0x2a2188(0x179)==_0x49dc2f)return _0x2a2188(0x194);},_0x28736b[_0x13987f(0x166)][_0x13987f(0x19a)][_0x13987f(0x164)](this[_0x13987f(0x186)]);}[_0x5c50c6(0x18d)](){const _0x3448c1=_0x5c50c6;this[_0x3448c1(0x177)]=_0x35f1e4(_0x28736b[_0x3448c1(0x166)],_0x3448c1(0x167),{'ctx-name':_0x3448c1(0x171)+this[_0x3448c1(0x163)]}),_0x28736b[_0x3448c1(0x166)][_0x3448c1(0x19a)][_0x3448c1(0x164)](this[_0x3448c1(0x177)]);}[_0x5c50c6(0x15b)](){const _0x43c2e9=_0x5c50c6,_0x1902fc=this[_0x43c2e9(0x17c)][_0x43c2e9(0x1a4)][_0x43c2e9(0x157)](_0x43c2e9(0x15c));_0x1902fc&&this[_0x43c2e9(0x168)](_0x1902fc,_0x43c2e9(0x1a9),()=>{const _0x65846e=_0x43c2e9,_0x4f1e74=this[_0x65846e(0x17c)][_0x65846e(0x18b)][_0x65846e(0x166)][_0x65846e(0x170)][_0x65846e(0x161)]();_0x4f1e74&&_0x4f1e74[_0x65846e(0x191)](_0x65846e(0x16d))&&this[_0x65846e(0x17c)][_0x65846e(0x15e)][_0x65846e(0x19f)][_0x65846e(0x180)](_0x65846e(0x16f),()=>{const _0x55836e=_0x65846e;_0x1034cc(this[_0x55836e(0x17c)],_0x4f1e74);});});const _0x2a8529=this[_0x43c2e9(0x17c)][_0x43c2e9(0x1a4)][_0x43c2e9(0x157)](_0x43c2e9(0x158));_0x2a8529&&this[_0x43c2e9(0x168)](_0x2a8529,_0x43c2e9(0x1a9),()=>{const _0x4c4d23=_0x43c2e9,_0x2ad493=this[_0x4c4d23(0x17c)][_0x4c4d23(0x18b)][_0x4c4d23(0x166)][_0x4c4d23(0x170)][_0x4c4d23(0x161)]();_0x2ad493&&_0x2ad493[_0x4c4d23(0x191)](_0x4c4d23(0x16d))&&this[_0x4c4d23(0x17c)][_0x4c4d23(0x15e)][_0x4c4d23(0x19f)][_0x4c4d23(0x180)](_0x4c4d23(0x16f),()=>{const _0x3cb190=_0x4c4d23;_0x1034cc(this[_0x3cb190(0x17c)],_0x2ad493);});});}}
|
|
23
|
+
const _0x4352ed=_0x11fe;function _0x56c9(){const _0x3ad151=['extend','document','listenTo','5849096mgOiaY','getAttribute','_initImageProcessingIndicator','3759875inZopc','view','uploadcareImageId','isPremiumPlugin','replaceImageSource','join','ctxElement','upcast','data-uc-image-id','contentLanguage','20322AomNFR','init','appendChild','config','href','querySelector','editor','uc-config','#uc-icon-arrow-down','uploadcare','\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','isOfficialPlugin','input[uploadcare-file-input]','schema','1243005YxeSXZ','UploadcareEditing','destroy','elementToAttribute','locale','938174KlvDen','removeAttribute','getSelectedElement','2dLCjgK','once','fromCharCode','_configElement','editing','imageInline','_initSchema','afterInit','imageBlock','4790dOZsWN','_initConversion','uploadcareImageReplace','closeMax','for','model','attributeToAttribute','add','uploader-','get','render','isRegistered','pluginName','_ctxElement','6391TpTiku','_initConfig','conversion','PictureEditing','iconHrefResolver','selection','ucContextId','execute','configElement','true','cleanupImage','3534XMLlXf','_initCtx','uc-upload-ctx-provider','body','downcast','insertImage','map','uploadcare.pubkey','uploadcare.uploader','1780900BuGtio','requires','remove','commands'];_0x56c9=function(){return _0x3ad151;};return _0x56c9();}(function(_0x138318,_0x49d436){const _0x3f4beb=_0x11fe,_0x1c42fa=_0x138318();while(!![]){try{const _0x9971c0=-parseInt(_0x3f4beb(0x97))/0x1*(-parseInt(_0x3f4beb(0x9a))/0x2)+-parseInt(_0x3f4beb(0x92))/0x3+-parseInt(_0x3f4beb(0xc5))/0x4+-parseInt(_0x3f4beb(0xcf))/0x5+parseInt(_0x3f4beb(0xbc))/0x6*(-parseInt(_0x3f4beb(0xb1))/0x7)+parseInt(_0x3f4beb(0xcc))/0x8+parseInt(_0x3f4beb(0x84))/0x9*(parseInt(_0x3f4beb(0xa3))/0xa);if(_0x9971c0===_0x49d436)break;else _0x1c42fa['push'](_0x1c42fa['shift']());}catch(_0x1d5b9b){_0x1c42fa['push'](_0x1c42fa['shift']());}}}(_0x56c9,0x92e01));import{Plugin as _0x24b16a}from'ckeditor5/src/core.js';import{Dialog as _0x397985}from'ckeditor5/src/ui.js';import{createElement as _0x51c90a,global as _0x1e45e5,uid as _0x36745f}from'ckeditor5/src/utils.js';function _0x11fe(_0x336de4,_0x1a63c8){const _0x56c9e1=_0x56c9();return _0x11fe=function(_0x11fe54,_0x3b1704){_0x11fe54=_0x11fe54-0x7c;let _0x500f19=_0x56c9e1[_0x11fe54];return _0x500f19;},_0x11fe(_0x336de4,_0x1a63c8);}import{UploadcareCommand as _0x1faab9}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3c3832}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5e114d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x24b16a{[_0x4352ed(0x9d)]=null;[_0x4352ed(0xb0)]=null;static get[_0x4352ed(0xaf)](){const _0x1bbae8=_0x4352ed;return _0x1bbae8(0x93);}static get[_0x4352ed(0xc6)](){const _0x51673f=_0x4352ed;return[_0x51673f(0xb4),_0x3c3832,_0x397985];}static get[_0x4352ed(0x8f)](){return!0x0;}static get[_0x4352ed(0x7d)](){return!0x0;}[_0x4352ed(0xb7)];get[_0x4352ed(0xb9)](){const _0x3bacc4=_0x4352ed;return this[_0x3bacc4(0x9d)];}get[_0x4352ed(0x80)](){const _0x2eb69b=_0x4352ed;return this[_0x2eb69b(0xb0)];}constructor(_0x88f942){const _0x4b89af=_0x4352ed;super(_0x88f942),this[_0x4b89af(0xb7)]=_0x36745f();}[_0x4352ed(0x85)](){const _0x290866=_0x4352ed,_0x5bb2dd=this[_0x290866(0x8a)];_0x5bb2dd[_0x290866(0xc8)][_0x290866(0xaa)](_0x290866(0x8d),new _0x1faab9(_0x5bb2dd));}[_0x4352ed(0xa1)](){const _0x2f6faf=_0x4352ed;this[_0x2f6faf(0xa0)](),this[_0x2f6faf(0xa4)](),this[_0x2f6faf(0xb2)](),this[_0x2f6faf(0xbd)](),this[_0x2f6faf(0xce)](),this[_0x2f6faf(0xcb)](this[_0x2f6faf(0x8a)],_0x2f6faf(0x94),()=>{const _0x417d86=_0x2f6faf;this[_0x417d86(0x9d)]&&(this[_0x417d86(0x9d)][_0x417d86(0xc7)](),this[_0x417d86(0x9d)]=null),this[_0x417d86(0xb0)]&&(this[_0x417d86(0xb0)][_0x417d86(0xc7)](),this[_0x417d86(0xb0)]=null);const _0x15f5cc=_0x1e45e5[_0x417d86(0xca)][_0x417d86(0x89)](_0x417d86(0x90));_0x15f5cc&&_0x15f5cc[_0x417d86(0xc7)]();}),async function(_0x23882e){const _0x3fb94b=_0x24e480([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5bce2b=0x535f8c3a,_0x5630a2=0x5358f7f2^_0x5bce2b,_0x298733=window[_0x24e480([0x44,0x61,0x74,0x65])][_0x24e480([0x6e,0x6f,0x77])](),_0x1c2d12=_0x23882e[_0x24e480([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18a86b=new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x330e1b=>{_0x1c2d12[_0x24e480([0x6f,0x6e,0x63,0x65])](_0x24e480([0x72,0x65,0x61,0x64,0x79]),_0x330e1b);}),_0x52a71f={[_0x24e480([0x6b,0x74,0x79])]:_0x24e480([0x45,0x43]),[_0x24e480([0x75,0x73,0x65])]:_0x24e480([0x73,0x69,0x67]),[_0x24e480([0x63,0x72,0x76])]:_0x24e480([0x50,0x2d,0x32,0x35,0x36]),[_0x24e480([0x78])]:_0x24e480([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]),[_0x24e480([0x79])]:_0x24e480([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]),[_0x24e480([0x61,0x6c,0x67])]:_0x24e480([0x45,0x53,0x32,0x35,0x36])},_0x120e93=_0x1c2d12[_0x24e480([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24e480([0x67,0x65,0x74])](_0x24e480([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x148236(){let _0x5320f6,_0x2e8d37=null,_0x363c3f=null;try{if(_0x120e93==_0x24e480([0x47,0x50,0x4c]))return _0x24e480([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5320f6=_0x4e6abe(),!_0x5320f6)return _0x24e480([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5320f6[_0x24e480([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x363c3f=_0x2d6d0b(_0x5320f6[_0x24e480([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5320f6[_0x24e480([0x6a,0x74,0x69])])),await _0x484c79()?_0x5b8c25()?_0x38069d()?_0x24e480([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x227176()?(_0x5320f6[_0x24e480([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24e480([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e8d37=_0x58f0d2(_0x24e480([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5320f6[_0x24e480([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24e480([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e8d37=_0x58f0d2(_0x24e480([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ca5f1()):_0x24e480([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24e480([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24e480([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24e480([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38069d(){const _0x3480ac=[_0x24e480([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24e480([0x74,0x72,0x69,0x61,0x6c])][_0x24e480([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5320f6[_0x24e480([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x298733/0x3e8:0xe10*_0x5630a2;return _0x5320f6[_0x24e480([0x65,0x78,0x70])]<_0x3480ac;}function _0x5b8c25(){const _0x52d5ec=_0x5320f6[_0x24e480([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52d5ec&&(!!_0x52d5ec[_0x24e480([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24e480([0x2a]))||!!_0x52d5ec[_0x24e480([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24e480([0x55,0x50,0x4c,0x43])));}function _0x227176(){const _0x34e753=_0x11fe,_0x1ca6b6=_0x5320f6[_0x24e480([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ca6b6||0x0==_0x1ca6b6[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b8042}=new URL(window[_0x24e480([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x34e753(0x88)]);if(_0x1ca6b6[_0x24e480([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b8042))return!0x0;const _0x1df692=_0x5b8042[_0x24e480([0x73,0x70,0x6c,0x69,0x74])](_0x24e480([0x2e]));return _0x1ca6b6[_0x24e480([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x372f32=>_0x372f32[_0x24e480([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24e480([0x2a])))[_0x24e480([0x6d,0x61,0x70])](_0x4b9f4a=>_0x4b9f4a[_0x24e480([0x73,0x70,0x6c,0x69,0x74])](_0x24e480([0x2e])))[_0x24e480([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13b52e=>_0x13b52e[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1df692[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24e480([0x6d,0x61,0x70])](_0x3d0727=>Array(_0x1df692[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d0727[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24e480([0x66,0x69,0x6c,0x6c])](_0x3d0727[0x0]===_0x24e480([0x2a])?_0x24e480([0x2a]):'')[_0x24e480([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d0727))[_0x24e480([0x73,0x6f,0x6d,0x65])](_0xd5bd72=>_0x1df692[_0x24e480([0x65,0x76,0x65,0x72,0x79])]((_0x55aa6b,_0x3b2ba4)=>_0xd5bd72[_0x3b2ba4]===_0x55aa6b||_0xd5bd72[_0x3b2ba4]===_0x24e480([0x2a])));}function _0x3ca5f1(){return _0x2e8d37&&_0x363c3f?new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x861bf6,_0x8abfdd)=>{_0x2e8d37[_0x24e480([0x74,0x68,0x65,0x6e])](_0x861bf6,_0x8abfdd),_0x363c3f[_0x24e480([0x74,0x68,0x65,0x6e])](_0x45ae5c=>{_0x45ae5c!=_0x24e480([0x56,0x61,0x6c,0x69,0x64])&&_0x861bf6(_0x45ae5c);},_0x8abfdd);}):_0x2e8d37||_0x363c3f||_0x24e480([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d6d0b(_0x45f59f,_0x5aa7a8){return new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e6ed=>{if(_0xa7389b())return _0x43e6ed(_0x24e480([0x56,0x61,0x6c,0x69,0x64]));_0x10d6f1(),_0x1c2d12[_0x24e480([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24e480([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12f9b7=!0x1;const _0x2ce630=_0x36745f();function _0x4e1fd1(_0x45bed0){return!!_0x45bed0&&(typeof _0x45bed0===_0x24e480([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x45bed0===_0x24e480([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x45bed0[_0x24e480([0x74,0x68,0x65,0x6e])]===_0x24e480([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x45bed0[_0x24e480([0x63,0x61,0x74,0x63,0x68])]===_0x24e480([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46b9c0(_0x356bc){_0x395784(_0x356bc)[_0x24e480([0x74,0x68,0x65,0x6e])](_0x3c4e06=>{if(!_0x3c4e06||_0x3c4e06[_0x24e480([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24e480([0x6f,0x6b]))return _0x24e480([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12b7f5(_0x3de3c5(_0x2ce630+_0x5aa7a8))!=_0x3c4e06[_0x24e480([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24e480([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24e480([0x56,0x61,0x6c,0x69,0x64]);})[_0x24e480([0x74,0x68,0x65,0x6e])](_0x4d8071=>(_0x2e69b3(),_0x4d8071),()=>{const _0x275886=_0x29c1fb();return null==_0x275886?(_0x2e69b3(),_0x24e480([0x56,0x61,0x6c,0x69,0x64])):_0x24e480(_0x298733-_0x275886>(0x7753083a^_0x5bce2b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24e480([0x74,0x68,0x65,0x6e])](_0x43e6ed)[_0x24e480([0x63,0x61,0x74,0x63,0x68])](()=>{_0x43e6ed(_0x24e480([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c35e9=0x536962ba^_0x5bce2b;function _0x2e69b3(){const _0x2f0797=_0x24e480([0x6c,0x6c,0x63,0x74,0x2d])+_0x12b7f5(_0x3de3c5(_0x45f59f)),_0x503b95=_0xfdb7b4(_0x12b7f5(window[_0x24e480([0x4d,0x61,0x74,0x68])][_0x24e480([0x63,0x65,0x69,0x6c])](_0x298733/_0x2c35e9)));window[_0x24e480([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24e480([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f0797,_0x503b95);}function _0x29c1fb(){const _0x1d280b=_0x24e480([0x6c,0x6c,0x63,0x74,0x2d])+_0x12b7f5(_0x3de3c5(_0x45f59f)),_0x446d31=window[_0x24e480([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24e480([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d280b);return _0x446d31?window[_0x24e480([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfdb7b4(_0x446d31),0x10)*_0x2c35e9:null;}function _0x395784(_0x119b08){return new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x586374,_0x51644c)=>{_0x119b08[_0x24e480([0x74,0x68,0x65,0x6e])](_0x586374,_0x51644c),window[_0x24e480([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51644c,0x535e58fa^_0x5bce2b);});}}_0x1c2d12[_0x24e480([0x6f,0x6e])](_0x24e480([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a9d5d,_0x2c47c5)=>{if(_0x2c47c5[0x0]!=_0x45f59f)return _0x43e6ed(_0x24e480([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c47c5[0x1]={..._0x2c47c5[0x1],[_0x24e480([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2ce630};},{[_0x24e480([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24e480([0x68,0x69,0x67,0x68])}),_0x1c2d12[_0x24e480([0x6f,0x6e])](_0x24e480([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x163774=>{_0x4e1fd1(_0x163774[_0x24e480([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12f9b7=!0x0,_0x46b9c0(_0x163774[_0x24e480([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24e480([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24e480([0x6c,0x6f,0x77])}),_0x18a86b[_0x24e480([0x74,0x68,0x65,0x6e])](()=>{_0x12f9b7||_0x43e6ed(_0x24e480([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa7389b(){return _0x1c2d12[_0x24e480([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24e480([0x76,0x69,0x65,0x77])][_0x24e480([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24e480([0x61,0x75,0x74,0x6f]);}function _0x10d6f1(){_0x1c2d12[_0x24e480([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24e480([0x76,0x69,0x65,0x77])][_0x24e480([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24e480([0x61,0x75,0x74,0x6f]);}}function _0x58f0d2(_0x118317){const _0x15d90f=[new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ec738=>setTimeout(_0x5ec738,0x5356b2f6^_0x5bce2b)),_0x18a86b[_0x24e480([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd607a2=>{let _0x50eacc=0x0;_0x1c2d12[_0x24e480([0x6d,0x6f,0x64,0x65,0x6c])][_0x24e480([0x6f,0x6e])](_0x24e480([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a406f,_0x47d81c)=>{_0x47d81c[0x0][_0x24e480([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x50eacc++,_0x50eacc==(0x535f8dc2^_0x5bce2b)&&(_0xd607a2(),_0x3a406f[_0x24e480([0x6f,0x66,0x66])]());});}))];return window[_0x24e480([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24e480([0x72,0x61,0x63,0x65])](_0x15d90f)[_0x24e480([0x74,0x68,0x65,0x6e])](()=>_0x118317);}async function _0x2a50fd(){await _0x18a86b,_0x1c2d12[_0x24e480([0x6d,0x6f,0x64,0x65,0x6c])][_0x24e480([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7b03,_0x1c2d12[_0x24e480([0x6d,0x6f,0x64,0x65,0x6c])][_0x24e480([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7b03,_0x1c2d12[_0x24e480([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24e480([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52e048(_0x1cc7cc){const _0x1b1b17=_0x546e69();_0x1c2d12[_0x1b1b17]=_0x24e480([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cc7cc,_0x1cc7cc!=_0x24e480([0x56,0x61,0x6c,0x69,0x64])&&_0x2a50fd();}function _0x546e69(){const _0x542859=window[_0x24e480([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24e480([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24e480([0x6e,0x6f,0x77])]())[_0x24e480([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24e480([0x2e]),'');let _0x4dad18=_0x24e480([0x68]);for(let _0x235343=0x0;_0x235343<_0x542859[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x235343+=0x2){let _0x2828dd=window[_0x24e480([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x542859[_0x24e480([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x235343,_0x235343+0x2));_0x2828dd>=_0x3fb94b[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2828dd-=_0x3fb94b[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4dad18+=_0x3fb94b[_0x2828dd];}return _0x4dad18;}function _0x4e6abe(){const _0x8895f4=_0x120e93[_0x24e480([0x73,0x70,0x6c,0x69,0x74])](_0x24e480([0x2e]));if(0x3!=_0x8895f4[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x834d41(_0x8895f4[0x1]);function _0x834d41(_0x510cee){const _0x29fd8f=_0x183914(_0x510cee);return _0x29fd8f&&_0x57183e()?_0x29fd8f:null;function _0x57183e(){const _0x4b1878=_0x29fd8f[_0x24e480([0x6a,0x74,0x69])],_0x39205b=window[_0x24e480([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b1878[_0x24e480([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b1878[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc1d69f={..._0x29fd8f,[_0x24e480([0x6a,0x74,0x69])]:_0x4b1878[_0x24e480([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b1878[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc1d69f[_0x24e480([0x76,0x63])],_0x3de3c5(_0xc1d69f)==_0x39205b;}}}async function _0x484c79(){let _0x53db02=!0x0;try{const _0x4973de=_0x120e93[_0x24e480([0x73,0x70,0x6c,0x69,0x74])](_0x24e480([0x2e])),[_0xff8c7a,_0x3429d9,_0x47eb05]=_0x4973de;return _0x3bb4ab(_0xff8c7a),await _0x446892(_0xff8c7a,_0x3429d9,_0x47eb05),_0x53db02;}catch{return!0x1;}function _0x3bb4ab(_0x50bf2e){const _0x380800=_0x183914(_0x50bf2e);_0x380800&&_0x380800[_0x24e480([0x61,0x6c,0x67])]==_0x24e480([0x45,0x53,0x32,0x35,0x36])||(_0x53db02=!0x1);}async function _0x446892(_0x52d425,_0x47fd3b,_0x4adf0c){const _0x5e6fec=window[_0x24e480([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24e480([0x66,0x72,0x6f,0x6d])](_0x55cc87(_0x4adf0c),_0x551913=>_0x551913[_0x24e480([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45449f=new window[(_0x24e480([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24e480([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52d425+_0x24e480([0x2e])+_0x47fd3b),_0x50167c=window[_0x24e480([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24e480([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50167c)return;const _0x4a225a=await _0x50167c[_0x24e480([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24e480([0x6a,0x77,0x6b]),_0x52a71f,{[_0x24e480([0x6e,0x61,0x6d,0x65])]:_0x24e480([0x45,0x43,0x44,0x53,0x41]),[_0x24e480([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24e480([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24e480([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50167c[_0x24e480([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24e480([0x6e,0x61,0x6d,0x65])]:_0x24e480([0x45,0x43,0x44,0x53,0x41]),[_0x24e480([0x68,0x61,0x73,0x68])]:{[_0x24e480([0x6e,0x61,0x6d,0x65])]:_0x24e480([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a225a,_0x5e6fec,_0x45449f)||(_0x53db02=!0x1);}}function _0x183914(_0x55f91c){return _0x55f91c[_0x24e480([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24e480([0x65,0x79]))?JSON[_0x24e480([0x70,0x61,0x72,0x73,0x65])](_0x55cc87(_0x55f91c)):null;}function _0x55cc87(_0x9ccc54){return window[_0x24e480([0x61,0x74,0x6f,0x62])](_0x9ccc54[_0x24e480([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24e480([0x2b]))[_0x24e480([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24e480([0x2f])));}function _0x3de3c5(_0x3dfed1){let _0x59469f=0x1505;function _0xf79921(_0x458239){for(let _0x1b7fce=0x0;_0x1b7fce<_0x458239[_0x24e480([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b7fce++){const _0x5f14c3=_0x458239[_0x24e480([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b7fce);_0x59469f=(_0x59469f<<0x5)+_0x59469f+_0x5f14c3,_0x59469f&=_0x59469f;}}function _0x4e2d73(_0x362efa){Array[_0x24e480([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x362efa)?_0x362efa[_0x24e480([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e2d73):_0x362efa&&typeof _0x362efa==_0x24e480([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24e480([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x362efa)[_0x24e480([0x73,0x6f,0x72,0x74])]()[_0x24e480([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2706c8,_0x53ae51])=>{_0xf79921(_0x2706c8),_0x4e2d73(_0x53ae51);}):_0xf79921(window[_0x24e480([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x362efa));}return _0x4e2d73(_0x3dfed1),_0x59469f>>>0x0;}function _0x12b7f5(_0x4d847a){return _0x4d847a[_0x24e480([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24e480([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24e480([0x30]));}function _0xfdb7b4(_0x377b99){return _0x377b99[_0x24e480([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24e480([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24e480([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d7b03(){}function _0x24e480(_0x554337){const _0x4aa474=_0x11fe;return _0x554337[_0x4aa474(0xc2)](_0x2f9d89=>String[_0x4aa474(0x9c)](_0x2f9d89))[_0x4aa474(0x7f)]('');}_0x52e048(await _0x148236());}(this);}[_0x4352ed(0xa0)](){const _0x37e473=_0x4352ed,_0x3090bb=this[_0x37e473(0x8a)][_0x37e473(0xa8)][_0x37e473(0x91)];_0x3090bb[_0x37e473(0xae)](_0x37e473(0xa2))&&_0x3090bb[_0x37e473(0xc9)](_0x37e473(0xa2),{'allowAttributes':[_0x37e473(0x7c)]}),_0x3090bb[_0x37e473(0xae)](_0x37e473(0x9f))&&_0x3090bb[_0x37e473(0xc9)](_0x37e473(0x9f),{'allowAttributes':[_0x37e473(0x7c)]});}[_0x4352ed(0xa4)](){const _0x108313=_0x4352ed,_0x58acd3=this[_0x108313(0x8a)];_0x58acd3[_0x108313(0xb3)][_0x108313(0xa7)](_0x108313(0xc0))[_0x108313(0xa9)]({'model':_0x108313(0x7c),'view':_0x108313(0x82)}),_0x58acd3[_0x108313(0xb3)][_0x108313(0xa7)](_0x108313(0x81))[_0x108313(0x95)]({'model':{'key':_0x108313(0x7c),'value':_0x57d19e=>_0x57d19e[_0x108313(0xcd)](_0x108313(0x82))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1404a7=_0x58acd3[_0x108313(0xc8)][_0x108313(0xac)](_0x108313(0x7e));_0x1404a7&&this[_0x108313(0xcb)](_0x1404a7,_0x108313(0xbb),(_0xd4e0e4,[_0x476f6b,_0x533927])=>{const _0x193c04=_0x108313;_0x476f6b[_0x193c04(0x98)](_0x193c04(0x7c),_0x533927);});}[_0x4352ed(0xb2)](){const _0x43cc40=_0x4352ed,_0x5be234=this[_0x43cc40(0x8a)][_0x43cc40(0x87)][_0x43cc40(0xac)](_0x43cc40(0xc4))||{},_0xd30a4b=this[_0x43cc40(0x8a)][_0x43cc40(0x87)][_0x43cc40(0xac)](_0x43cc40(0xc3))||'';this[_0x43cc40(0x9d)]=_0x51c90a(_0x1e45e5[_0x43cc40(0xca)],_0x43cc40(0x8b),{..._0x5be234,'pubkey':_0xd30a4b,'ctx-name':_0x43cc40(0xab)+this[_0x43cc40(0xb7)],'sourceList':'','imgOnly':_0x43cc40(0xba),'removeCopyright':_0x43cc40(0xba),'localeName':this[_0x43cc40(0x8a)][_0x43cc40(0x96)][_0x43cc40(0x83)],'externalSourcesEmbedCss':_0x43cc40(0x8e)}),this[_0x43cc40(0x9d)][_0x43cc40(0xb5)]=_0x1ed2ad=>{const _0x194ead=_0x43cc40;if(_0x194ead(0xa6)==_0x1ed2ad)return _0x194ead(0x8c);},_0x1e45e5[_0x43cc40(0xca)][_0x43cc40(0xbf)][_0x43cc40(0x86)](this[_0x43cc40(0x9d)]);}[_0x4352ed(0xbd)](){const _0x450666=_0x4352ed;this[_0x450666(0xb0)]=_0x51c90a(_0x1e45e5[_0x450666(0xca)],_0x450666(0xbe),{'ctx-name':_0x450666(0xab)+this[_0x450666(0xb7)]}),_0x1e45e5[_0x450666(0xca)][_0x450666(0xbf)][_0x450666(0x86)](this[_0x450666(0xb0)]);}[_0x4352ed(0xce)](){const _0x2e2397=_0x4352ed,_0x5b6090=this[_0x2e2397(0x8a)][_0x2e2397(0xc8)][_0x2e2397(0xac)](_0x2e2397(0xc1));_0x5b6090&&this[_0x2e2397(0xcb)](_0x5b6090,_0x2e2397(0xb8),()=>{const _0x58f075=_0x2e2397,_0x2b6a2d=this[_0x58f075(0x8a)][_0x58f075(0xa8)][_0x58f075(0xca)][_0x58f075(0xb6)][_0x58f075(0x99)]();_0x2b6a2d&&_0x2b6a2d[_0x58f075(0xcd)](_0x58f075(0x7c))&&this[_0x58f075(0x8a)][_0x58f075(0x9e)][_0x58f075(0xd0)][_0x58f075(0x9b)](_0x58f075(0xad),()=>{const _0x93a73d=_0x58f075;_0x5e114d(this[_0x93a73d(0x8a)],_0x2b6a2d);});});const _0x2a6c4e=this[_0x2e2397(0x8a)][_0x2e2397(0xc8)][_0x2e2397(0xac)](_0x2e2397(0xa5));_0x2a6c4e&&this[_0x2e2397(0xcb)](_0x2a6c4e,_0x2e2397(0xb8),()=>{const _0x3a5a6a=_0x2e2397,_0x468306=this[_0x3a5a6a(0x8a)][_0x3a5a6a(0xa8)][_0x3a5a6a(0xca)][_0x3a5a6a(0xb6)][_0x3a5a6a(0x99)]();_0x468306&&_0x468306[_0x3a5a6a(0xcd)](_0x3a5a6a(0x7c))&&this[_0x3a5a6a(0x8a)][_0x3a5a6a(0x9e)][_0x3a5a6a(0xd0)][_0x3a5a6a(0x9b)](_0x3a5a6a(0xad),()=>{const _0x220477=_0x3a5a6a;_0x5e114d(this[_0x220477(0x8a)],_0x468306);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x16040c,ObservableMixin as _0x5beb70}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2a18f2}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x19217a}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1c4864}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x24d91b}from'../../utils/uploadutils.js';import{getImageUrls as _0x4682c8,getImageDimension as _0x3a4e33}from'../../utils/editingutils.js';import{isAncestor as _0x3a5582}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5beb70(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x47c5e3,_0xd40f18,_0x4fff56){super(),this['_editor']=_0x47c5e3,this['_dialog']=_0xd40f18,this['_imageElement']=_0x4fff56,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 _0x232c1a=this['_imageElement'],_0x1a4c4b=_0x232c1a['getAttribute']('uploadcareImageId'),_0x2bda3a=_0x232c1a['getAttribute']('src');if(_0x1a4c4b)await this['_loadImageInfo'](_0x1a4c4b,_0x2bda3a);else{if(this['_imageCache']['has'](_0x2bda3a)){const _0x2a0dd1=this['_imageCache']['get'](_0x2bda3a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a0dd1['url'],this['imageDimension']=_0x2a0dd1['dimension'],this['imageId']=_0x2a0dd1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x103a7b}=this['_editor'],t=_0x103a7b['t'],_0x42b25e=new _0x1c4864(_0x103a7b,this['imageStatus'],this['_attributes']);_0x42b25e['bind']('status')['to'](this,'imageStatus'),_0x42b25e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x42b25e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x42b25e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x42b25e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x19217a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x42b25e,'position':_0x2a18f2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x42b25e['focus']();},'onHide':()=>{_0x42b25e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x26030a=>!_0x3a5582(_0x26030a,_0x42b25e['element'])}});}['_loadImageInfo'](_0xc9bf0e,_0x47a8a1){return _0x24d91b['getInfo'](_0xc9bf0e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1bc7b8=>{const {width:_0x2bfc28,height:_0x125314}=_0x1bc7b8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47a8a1,this['imageDimension']={'width':_0x2bfc28,'height':_0x125314},this['imageId']=_0xc9bf0e;})['catch'](_0x57e97b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x57e97b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x54389b,_0x4e110a){return this['_getImageAsFile'](_0x54389b)['then'](_0x560a00=>_0x24d91b['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4e110a['signal'],'file':_0x560a00,'onProgress':_0x3d08ac=>{_0x3d08ac&&_0x3d08ac['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3d08ac['value']));}}))['then'](_0x1a9a54=>{const {width:_0x45241c,height:_0x1f0bb1}=_0x1a9a54['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a9a54['cdnUrl'],this['imageDimension']={'width':_0x45241c,'height':_0x1f0bb1},this['imageId']=_0x1a9a54['uuid'],this['imageUploadProgress']=null;const _0x13d566=_0x54389b['getAttribute']('src');this['_imageCache']['set'](_0x13d566,{'id':_0x1a9a54['uuid'],'url':_0x1a9a54['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x22d6e3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22d6e3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5ebdf3,_0x4c4977){_0x5ebdf3['on']('apply',(_0x54970d,_0x39240f)=>{this['_replaceImage'](_0x4c4977,_0x39240f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5ebdf3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5ebdf3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x115e47,_0x110cf7,_0x31aa05){const _0x3fe115=this['_editor'],{width:_0x198fad,height:_0xff5a98}=_0x3a4e33(_0x110cf7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x6096a8,imageSources:_0x2ad517}=_0x4682c8(_0x110cf7,_0x198fad);_0x3fe115['model']['change'](_0x13310f=>{if('$graveyard'===_0x115e47['root']['rootName']){_0x3fe115['execute']('insertImage',{'imageType':_0x115e47['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x115e47['getAttributes']()),'uploadcareImageId':_0x31aa05,'src':_0x6096a8,'sources':_0x2ad517,'width':_0x198fad,'height':_0xff5a98}});const _0x57254e=_0x115e47['getChildren']();_0x115e47=_0x3fe115['model']['document']['selection']['getSelectedElement']();for(const _0x2c4648 of _0x57254e)_0x13310f['append'](_0x13310f['cloneElement'](_0x2c4648),_0x115e47);}else _0x13310f['setSelection'](_0x115e47,'on'),_0x3fe115['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x115e47['getAttributes']()),'uploadcareImageId':_0x31aa05,'src':_0x6096a8,'sources':_0x2ad517,'width':_0x198fad,'height':_0xff5a98},_0x115e47);_0x13310f['setSelection'](_0x115e47,'on');});}async['_getImageAsFile'](_0x124ba5){const _0x37f358=_0x16040c['window'],_0x2c49f8=_0x16040c['document']['location']['href'],_0x44507a=new _0x37f358['URL'](_0x124ba5['getAttribute']('src'),_0x2c49f8);if('data:'===_0x44507a['protocol']){const _0x517a2a=_0x44507a['href']['split'](','),_0x39df58=_0x517a2a[0x0]['match'](/:(.*?);/)[0x1],_0x28d555=_0x39df58['split']('/')[0x1],_0xf875ff=_0x37f358['atob'](_0x517a2a[_0x517a2a['length']-0x1]);let _0x516038=_0xf875ff['length'];const _0x25bdda=new _0x37f358['Uint8Array'](_0x516038);for(;_0x516038--;)_0x25bdda[_0x516038]=_0xf875ff['charCodeAt'](_0x516038);return new _0x37f358['File']([_0x25bdda],'image.'+_0x28d555,{'type':_0x39df58});}const _0x46941d=_0x44507a['href']['split']('/'),_0x3018df=_0x46941d[_0x46941d['length']-0x1],_0x59cf57=_0x3018df['split']('.')[0x1];return _0x37f358['fetch'](_0x44507a['href'])['then'](_0x26a867=>_0x26a867['clone']()['blob']())['then'](_0x30e81d=>new _0x37f358['File']([_0x30e81d],_0x3018df,{'type':'image/'+_0x59cf57}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x62f015,_0x157778){const _0x51da8d=_0x4606,_0x69fce=_0x62f015();while(!![]){try{const _0x1a62a9=-parseInt(_0x51da8d(0x189))/0x1*(-parseInt(_0x51da8d(0x18d))/0x2)+-parseInt(_0x51da8d(0x183))/0x3+parseInt(_0x51da8d(0x180))/0x4*(-parseInt(_0x51da8d(0x18c))/0x5)+parseInt(_0x51da8d(0x186))/0x6*(-parseInt(_0x51da8d(0x18f))/0x7)+-parseInt(_0x51da8d(0x17f))/0x8+parseInt(_0x51da8d(0x18a))/0x9+-parseInt(_0x51da8d(0x185))/0xa*(-parseInt(_0x51da8d(0x187))/0xb);if(_0x1a62a9===_0x157778)break;else _0x69fce['push'](_0x69fce['shift']());}catch(_0xffb13d){_0x69fce['push'](_0x69fce['shift']());}}}(_0x276b,0x465af));function _0x276b(){const _0x44fbfc=['uc-cloud-image-editor','4340kYRwDt','imageSrc','image-edit','3495136rxfJzn','268pKuNWA','set','setTemplate','1035597OkCROf','uc-light','7676370Nzygyl','438oKnxDd','11AYUMLt','ck-uploadcare-theme','1jlgfcy','1375722NXpJDq','bindTemplate','575YGjTmZ','405472vGyyvO'];_0x276b=function(){return _0x44fbfc;};return _0x276b();}import{View as _0x351fb7}from'ckeditor5/src/ui.js';function _0x4606(_0x5b6a08,_0x575459){const _0x276b8c=_0x276b();return _0x4606=function(_0x460641,_0x570247){_0x460641=_0x460641-0x17f;let _0x370cdd=_0x276b8c[_0x460641];return _0x370cdd;},_0x4606(_0x5b6a08,_0x575459);}export class UploadcareImageEditFormEditingView extends _0x351fb7{constructor(_0xd71ebe,_0x22a049){const _0x15eca1=_0x4606;super(_0xd71ebe);const _0x284c73=this[_0x15eca1(0x18b)];this[_0x15eca1(0x181)](_0x15eca1(0x190),''),this[_0x15eca1(0x182)]({'tag':_0x15eca1(0x18e),'attributes':{..._0x22a049,'class':[_0x15eca1(0x184),_0x15eca1(0x188)],'ctx-name':_0x15eca1(0x191),'cdn-url':_0x284c73['to'](_0x15eca1(0x190))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x295ea2}from'ckeditor5/src/icons.js';import{ButtonView as _0x157ebf,IconView as _0x439754,View as _0x2bf5c2}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2bf5c2{constructor(_0x4aa0ce){super(_0x4aa0ce);const t=_0x4aa0ce['t'];this['set']('errorType',null);const _0x1f82b8=new _0x157ebf(_0x4aa0ce);_0x1f82b8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1f82b8['withText']=!0x0,_0x1f82b8['class']='ck-button-action',_0x1f82b8['on']('execute',()=>{this['fire']('retry');}),_0x1f82b8['bind']('isVisible')['to'](this,'errorType',_0x50b4f5=>'NotFound'!==_0x50b4f5);const _0x3de431=new _0x439754();_0x3de431['content']=_0x295ea2,_0x3de431['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x130c59=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':[_0x3de431,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x130c59['to']('errorType',_0x775d52=>t('NotFound'!==_0x775d52?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1f82b8]},{'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 _0x2fe81b,View as _0x10f352}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x10f352{constructor(_0x2bb45a){super(_0x2bb45a);const t=_0x2bb45a['t'],_0x31f056=this['bindTemplate'],_0x1c1e10=new _0x2fe81b();_0x1c1e10['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':[_0x1c1e10,{'text':_0x31f056['to']('imageUploadProgress',_0x3d23a0=>t('Loading\x20image...')+'\x20('+(_0x3d23a0||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x19fa(_0x546698,_0x19d166){const _0x5b8f5e=_0x5b8f();return _0x19fa=function(_0x19faa1,_0x5d5c5c){_0x19faa1=_0x19faa1-0x18f;let _0x2d8a12=_0x5b8f5e[_0x19faa1];return _0x2d8a12;},_0x19fa(_0x546698,_0x19d166);}const _0x37f12c=_0x19fa;function _0x5b8f(){const _0x24f884=['status','uploading','4166460bjLPVQ','clear','observe','fire','render','_loadingView','_addErrorViewListeners','_setView','addMany','_waitForImageEditorComponent','_addUploadcareImageEditorListeners','ready','cancel','706058epezTZ','apply','disconnect','_errorView','addEventListener','focus','add','ck-reset_all-excluded','set','detail','once','length','626105hGzMXB','error','_focusableView','div','cdnUrl','createCollection','querySelector','5926768xSJCQw','nodeName','23613hMibND','176GuuMtQ','addedNodes','_editingView','retry','ck-uploadcare-form','getFocusableElement','target','filter','toLowerCase','change:status','uc-cloud-image-editor','312837JDBHaK','160374AyAUGV','element','_items','setTemplate'];_0x5b8f=function(){return _0x24f884;};return _0x5b8f();}(function(_0x5b2041,_0x46445a){const _0x4afb39=_0x19fa,_0x365ca5=_0x5b2041();while(!![]){try{const _0x227cce=-parseInt(_0x4afb39(0x1b9))/0x1+-parseInt(_0x4afb39(0x197))/0x2+parseInt(_0x4afb39(0x1ac))/0x3*(-parseInt(_0x4afb39(0x1ad))/0x4)+-parseInt(_0x4afb39(0x1a3))/0x5+parseInt(_0x4afb39(0x1bf))/0x6+-parseInt(_0x4afb39(0x1b8))/0x7+parseInt(_0x4afb39(0x1aa))/0x8;if(_0x227cce===_0x46445a)break;else _0x365ca5['push'](_0x365ca5['shift']());}catch(_0x3d37cc){_0x365ca5['push'](_0x365ca5['shift']());}}}(_0x5b8f,0x63071));import{View as _0x1f2bf0}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3d8050}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1ffce0}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x597edb}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4a3e22}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4a3e22{[_0x37f12c(0x1bb)];[_0x37f12c(0x18f)];[_0x37f12c(0x19a)];[_0x37f12c(0x1af)];[_0x37f12c(0x1a5)];constructor(_0x4ee6ec,_0x5401a2,_0xd4afcf){const _0x231033=_0x37f12c;super(_0x4ee6ec),this[_0x231033(0x1bb)]=this[_0x231033(0x1a8)](),this[_0x231033(0x18f)]=new _0x3d8050(_0x4ee6ec),this[_0x231033(0x19a)]=new _0x1ffce0(_0x4ee6ec),this[_0x231033(0x1af)]=new _0x597edb(_0x4ee6ec,_0xd4afcf),this[_0x231033(0x1a5)]=new _0x1f2bf0(_0x4ee6ec),this[_0x231033(0x1a5)][_0x231033(0x1bc)](this[_0x231033(0x1b2)]()),this[_0x231033(0x19f)](_0x231033(0x1bd),_0x5401a2),this[_0x231033(0x1bc)]({'tag':_0x231033(0x1a6),'attributes':{'class':['ck',_0x231033(0x19e),_0x231033(0x1b1)],'tabindex':'-1'},'children':this[_0x231033(0x1bb)]}),this[_0x231033(0x191)](),this[_0x231033(0x1a1)](_0x231033(0x1c3),()=>{const _0xc830bc=_0x231033;this[_0xc830bc(0x193)](this[_0xc830bc(0x1ba)],_0x1d1b4f=>{const _0x3a3e53=_0xc830bc;this[_0x3a3e53(0x194)](_0x1d1b4f);});}),this['on'](_0x231033(0x1b6),()=>{const _0x4fe79a=_0x231033;this[_0x4fe79a(0x191)]();}),this[_0x231033(0x190)]();}[_0x37f12c(0x19c)](){const _0x269357=_0x37f12c;this[_0x269357(0x1ba)][_0x269357(0x19c)]();}[_0x37f12c(0x191)](){const _0x3348b6=_0x37f12c;switch(this[_0x3348b6(0x1bb)][_0x3348b6(0x1c0)](),this[_0x3348b6(0x1bd)]){case _0x3348b6(0x1be):this[_0x3348b6(0x1bb)][_0x3348b6(0x19d)](this[_0x3348b6(0x18f)]);break;case _0x3348b6(0x1a4):this[_0x3348b6(0x1bb)][_0x3348b6(0x19d)](this[_0x3348b6(0x19a)]);break;case _0x3348b6(0x195):this[_0x3348b6(0x1bb)][_0x3348b6(0x192)]([this[_0x3348b6(0x1af)],this[_0x3348b6(0x1a5)]]);}}[_0x37f12c(0x193)](_0x401b94,_0xbf5b3){const _0x5a035e=_0x37f12c,_0x30b90a=_0x5a035e(0x1b7),_0x15338e=_0x401b94[_0x5a035e(0x1a9)](_0x30b90a);if(_0x15338e)return _0xbf5b3(_0x15338e);const _0x3e1b30=new MutationObserver(_0x326ad6=>{const _0xf419da=_0x5a035e,_0xb044c3=_0x326ad6[_0xf419da(0x1b4)](_0x418e9e=>_0x418e9e[_0xf419da(0x1b3)]===_0x401b94&&_0x418e9e[_0xf419da(0x1ae)][_0xf419da(0x1a2)]>0x0&&_0x418e9e[_0xf419da(0x1ae)][0x0][_0xf419da(0x1ab)][_0xf419da(0x1b5)]()===_0x30b90a);_0xb044c3[_0xf419da(0x1a2)]&&(_0x3e1b30[_0xf419da(0x199)](),_0xbf5b3(_0xb044c3[0x0][_0xf419da(0x1ae)][0x0]));});_0x3e1b30[_0x5a035e(0x1c1)](_0x401b94,{'childList':!0x0,'subtree':!0x0});}[_0x37f12c(0x194)](_0x3d51f4){const _0x1b50ac=_0x37f12c;_0x3d51f4[_0x1b50ac(0x19b)](_0x1b50ac(0x198),_0x11f942=>{const _0x1afc3e=_0x1b50ac;this[_0x1afc3e(0x1c2)](_0x1afc3e(0x198),{'imageSrc':_0x11f942[_0x1afc3e(0x1a0)][_0x1afc3e(0x1a7)]});}),_0x3d51f4[_0x1b50ac(0x19b)](_0x1b50ac(0x196),()=>{const _0x4e1ace=_0x1b50ac;this[_0x4e1ace(0x1c2)](_0x4e1ace(0x196));});}[_0x37f12c(0x190)](){const _0x240656=_0x37f12c;this[_0x240656(0x19a)]['on'](_0x240656(0x1b0),()=>{const _0x34c3c8=_0x240656;this[_0x34c3c8(0x1c2)](_0x34c3c8(0x1b0));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x92e36e=_0x5ef0;(function(_0x23e06c,_0xe63e38){const _0x45ca87=_0x5ef0,_0x419cc1=_0x23e06c();while(!![]){try{const _0x4f44b1=-parseInt(_0x45ca87(0x1a0))/0x1*(-parseInt(_0x45ca87(0x18d))/0x2)+-parseInt(_0x45ca87(0x192))/0x3+-parseInt(_0x45ca87(0x18b))/0x4*(-parseInt(_0x45ca87(0x18f))/0x5)+parseInt(_0x45ca87(0x1ab))/0x6*(parseInt(_0x45ca87(0x19c))/0x7)+parseInt(_0x45ca87(0x190))/0x8+-parseInt(_0x45ca87(0x18e))/0x9*(-parseInt(_0x45ca87(0x1a5))/0xa)+-parseInt(_0x45ca87(0x1a7))/0xb*(parseInt(_0x45ca87(0x1a8))/0xc);if(_0x4f44b1===_0xe63e38)break;else _0x419cc1['push'](_0x419cc1['shift']());}catch(_0x46b15b){_0x419cc1['push'](_0x419cc1['shift']());}}}(_0x6153,0x2f89c));function _0x5ef0(_0x402a1e,_0x511a98){const _0x61534a=_0x6153();return _0x5ef0=function(_0x5ef005,_0x314b7d){_0x5ef005=_0x5ef005-0x18a;let _0x51875c=_0x61534a[_0x5ef005];return _0x51875c;},_0x5ef0(_0x402a1e,_0x511a98);}import{Command as _0x38d0a4}from'ckeditor5/src/core.js';import{Dialog as _0x3c220c}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x5a5f8a}from'./ui/uploadcareimageeditcontroller.js';function _0x6153(){const _0x2c90ed=['isActive','516RqKVUy','9ERAlSm','225bHdPrJ','782328ElvPDP','document','335721YKeHtJ','refresh','bind','requires','plugins','model','isEnabled','config','uploadcare.allowExternalImagesEditing','get','294NFOfwq','imageInline','set','imageEditController','984aHiuWf','execute','unbind','imageBlock','_isEditable','1282210GznEDD','getSelectedElement','4829nPiSyD','21372vNILnn','editor','selection','55494gcqFGF','element','19568QBHneP'];_0x6153=function(){return _0x2c90ed;};return _0x6153();}import{createEditabilityChecker as _0x3fa063}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x38d0a4{[_0x92e36e(0x19f)];static get[_0x92e36e(0x195)](){return[_0x3c220c];}[_0x92e36e(0x1a4)];constructor(_0x207218){const _0x1a6960=_0x92e36e;super(_0x207218),this[_0x1a6960(0x19f)]=void 0x0,this[_0x1a6960(0x1a4)]=_0x3fa063(_0x207218[_0x1a6960(0x199)][_0x1a6960(0x19b)](_0x1a6960(0x19a))||[]),this[_0x1a6960(0x19e)]({'isActive':!0x1});}[_0x92e36e(0x193)](){const _0x47c1e9=_0x92e36e,_0x1c01f9=this[_0x47c1e9(0x1a9)][_0x47c1e9(0x197)][_0x47c1e9(0x191)][_0x47c1e9(0x1aa)][_0x47c1e9(0x1a6)]();this[_0x47c1e9(0x198)]=this[_0x47c1e9(0x1a4)](_0x1c01f9);}[_0x92e36e(0x1a1)](){const _0x596eb3=_0x92e36e;this[_0x596eb3(0x19f)]&&(this[_0x596eb3(0x1a2)](_0x596eb3(0x18c)),this[_0x596eb3(0x19f)]=void 0x0);const _0x40da6c=this[_0x596eb3(0x1a9)][_0x596eb3(0x197)][_0x596eb3(0x191)][_0x596eb3(0x1aa)][_0x596eb3(0x1a6)]();_0x40da6c&&(_0x40da6c['is'](_0x596eb3(0x18a),_0x596eb3(0x1a3))||_0x40da6c['is'](_0x596eb3(0x18a),_0x596eb3(0x19d)))&&(this[_0x596eb3(0x19f)]=new _0x5a5f8a(this[_0x596eb3(0x1a9)],this[_0x596eb3(0x1a9)][_0x596eb3(0x196)][_0x596eb3(0x19b)](_0x3c220c),_0x40da6c),this[_0x596eb3(0x194)](_0x596eb3(0x18c))['to'](this[_0x596eb3(0x19f)],_0x596eb3(0x18c)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2cbc71=_0xb2be;function _0x45b9(){const _0x57257d=['commands','pluginName','268820Kxciym','ImageUtils','16wkIruy','uploadcareImageEdit','UploadcareImageEditEditing','261SMzRmR','ImageEditing','186OZWcyV','add','1718349hScOdQ','isOfficialPlugin','999030HMFwpK','init','7024YCnRNM','isPremiumPlugin','9746478hjaUkJ','uploadcareImageReplace','5884578MHyOoA','requires','1080230xooSmA'];_0x45b9=function(){return _0x57257d;};return _0x45b9();}(function(_0x1ab537,_0x2e1b80){const _0x4df1f2=_0xb2be,_0x343acc=_0x1ab537();while(!![]){try{const _0x3c90ba=parseInt(_0x4df1f2(0x13a))/0x1+-parseInt(_0x4df1f2(0x13c))/0x2+parseInt(_0x4df1f2(0x138))/0x3*(-parseInt(_0x4df1f2(0x128))/0x4)+parseInt(_0x4df1f2(0x131))/0x5+-parseInt(_0x4df1f2(0x12a))/0x6+parseInt(_0x4df1f2(0x12c))/0x7*(-parseInt(_0x4df1f2(0x133))/0x8)+parseInt(_0x4df1f2(0x136))/0x9*(parseInt(_0x4df1f2(0x12e))/0xa);if(_0x3c90ba===_0x2e1b80)break;else _0x343acc['push'](_0x343acc['shift']());}catch(_0x3b9592){_0x343acc['push'](_0x343acc['shift']());}}}(_0x45b9,0xf1dd0));import{Plugin as _0x2df3cf}from'ckeditor5/src/core.js';import{Notification as _0x1a9c10}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x2ae0c9}from'./uploadcareimageeditcommand.js';function _0xb2be(_0x52eb26,_0x3d90ff){const _0x45b953=_0x45b9();return _0xb2be=function(_0xb2be1e,_0x142ddf){_0xb2be1e=_0xb2be1e-0x127;let _0x5cf023=_0x45b953[_0xb2be1e];return _0x5cf023;},_0xb2be(_0x52eb26,_0x3d90ff);}import{UploadcareImageReplaceCommand as _0x4d7b11}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x186557}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x2df3cf{static get[_0x2cbc71(0x130)](){const _0x3995f9=_0x2cbc71;return _0x3995f9(0x135);}static get[_0x2cbc71(0x12d)](){const _0x43eaaf=_0x2cbc71;return[_0x186557,_0x1a9c10,_0x43eaaf(0x132),_0x43eaaf(0x137)];}static get[_0x2cbc71(0x13b)](){return!0x0;}static get[_0x2cbc71(0x129)](){return!0x0;}[_0x2cbc71(0x127)](){const _0x7646eb=_0x2cbc71,{editor:_0x5bd9d6}=this;_0x5bd9d6[_0x7646eb(0x12f)][_0x7646eb(0x139)](_0x7646eb(0x134),new _0x2ae0c9(_0x5bd9d6)),_0x5bd9d6[_0x7646eb(0x12f)][_0x7646eb(0x139)](_0x7646eb(0x12b),new _0x4d7b11(_0x5bd9d6));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4a8104}from'ckeditor5/src/core.js';import{ButtonView as _0x3ee28a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x56092c}from'ckeditor5/src/icons.js';import{createElement as _0x47344a}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x4a8104{['_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 _0xf8d9ce=this['editor'];_0xf8d9ce['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4140aa=>{const _0x477058=_0xf8d9ce['commands']['get']('uploadcareImageEdit'),_0x536b02=new _0x3ee28a(_0x4140aa),t=_0x4140aa['t'];return _0x536b02['set']({'icon':_0x56092c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x536b02['bind']('isEnabled')['to'](_0x477058),_0x536b02['bind']('isOn')['to'](_0x477058,'isActive'),this['listenTo'](_0x536b02,'execute',()=>{_0xf8d9ce['execute']('uploadcareImageEdit'),_0xf8d9ce['editing']['view']['focus']();}),_0x536b02;}),this['_initConfig']();}['_initConfig'](){const _0x254f91=_0x47344a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x254f91),this['listenTo'](this['editor'],'destroy',()=>{_0x254f91['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x384b83=_0x1c34;(function(_0x507ac4,_0x3af0e1){const _0x4b8de3=_0x1c34,_0x54c037=_0x507ac4();while(!![]){try{const _0x207f0b=parseInt(_0x4b8de3(0xfe))/0x1+parseInt(_0x4b8de3(0xeb))/0x2+parseInt(_0x4b8de3(0xed))/0x3*(parseInt(_0x4b8de3(0xf7))/0x4)+-parseInt(_0x4b8de3(0xef))/0x5*(parseInt(_0x4b8de3(0xf9))/0x6)+-parseInt(_0x4b8de3(0xf1))/0x7*(-parseInt(_0x4b8de3(0xf4))/0x8)+parseInt(_0x4b8de3(0xfc))/0x9+-parseInt(_0x4b8de3(0xf6))/0xa;if(_0x207f0b===_0x3af0e1)break;else _0x54c037['push'](_0x54c037['shift']());}catch(_0x1a7614){_0x54c037['push'](_0x54c037['shift']());}}}(_0x4f83,0xa9d99));import{Command as _0x3e6c8d}from'ckeditor5/src/core.js';function _0x1c34(_0x45ffe6,_0x3fae9a){const _0x4f832d=_0x4f83();return _0x1c34=function(_0x1c343e,_0x15f807){_0x1c343e=_0x1c343e-0xe5;let _0x344950=_0x4f832d[_0x1c343e];return _0x344950;},_0x1c34(_0x45ffe6,_0x3fae9a);}export class UploadcareImageReplaceCommand extends _0x3e6c8d{[_0x384b83(0xf2)](){const _0x2db15b=_0x384b83,_0x5265be=this[_0x2db15b(0xec)][_0x2db15b(0xe9)][_0x2db15b(0xfb)][_0x2db15b(0xe6)][_0x2db15b(0xfa)]();this[_0x2db15b(0xf0)]=Boolean(_0x5265be&&(_0x5265be['is'](_0x2db15b(0xe5),_0x2db15b(0xee))||_0x5265be['is'](_0x2db15b(0xe5),_0x2db15b(0xe7))));}[_0x384b83(0xe8)](_0x3635f1){const _0x2201aa=_0x384b83,_0x59d206=this[_0x2201aa(0xec)][_0x2201aa(0xe9)][_0x2201aa(0xfb)][_0x2201aa(0xe6)][_0x2201aa(0xfa)]();this[_0x2201aa(0xec)][_0x2201aa(0xe9)][_0x2201aa(0xf8)](_0x1b222a=>{const _0x46d130=_0x2201aa;_0x1b222a[_0x46d130(0xf3)](_0x3635f1,_0x59d206),_0x1b222a[_0x46d130(0xf5)](_0x46d130(0xfd),_0x59d206),_0x1b222a[_0x46d130(0xf5)](_0x46d130(0xea),_0x59d206);});}}function _0x4f83(){const _0x4f4d74=['imageBlock','6793470LCnlPv','isEnabled','14FCjWhx','refresh','setAttributes','5012600czkfVO','removeAttribute','32627650aEKncA','4974260goYUpX','change','6MOCIwA','getSelectedElement','document','9626949RgbYpx','srcset','583795OcnqUw','element','selection','imageInline','execute','model','sizes','2333986cxmNYY','editor','3urllaX'];_0x4f83=function(){return _0x4f4d74;};return _0x4f83();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5bc9be=_0x3b6a;(function(_0xce6c1,_0x334280){var _0x252bc5=_0x3b6a,_0x581682=_0xce6c1();while(!![]){try{var _0x39cae7=parseInt(_0x252bc5(0x15a))/0x1+parseInt(_0x252bc5(0x157))/0x2*(parseInt(_0x252bc5(0x155))/0x3)+-parseInt(_0x252bc5(0x163))/0x4+-parseInt(_0x252bc5(0x154))/0x5*(parseInt(_0x252bc5(0x15f))/0x6)+parseInt(_0x252bc5(0x15b))/0x7+parseInt(_0x252bc5(0x161))/0x8*(-parseInt(_0x252bc5(0x15e))/0x9)+parseInt(_0x252bc5(0x158))/0xa*(parseInt(_0x252bc5(0x162))/0xb);if(_0x39cae7===_0x334280)break;else _0x581682['push'](_0x581682['shift']());}catch(_0x49deae){_0x581682['push'](_0x581682['shift']());}}}(_0x3804,0x804cb));function _0x3804(){var _0xe2caee=['pluginName','UploadcareImageEdit','45882SXfFXK','113496EtFTvo','isOfficialPlugin','1016hlulYd','462thumRA','1587388BWthkM','200MhQEZm','3DbXPgX','isPremiumPlugin','1728230zlezDo','22210EdZUHB','requires','327760yFvOTQ','7289037ZDsrEE'];_0x3804=function(){return _0xe2caee;};return _0x3804();}function _0x3b6a(_0x2681fc,_0x41831f){var _0x3804ab=_0x3804();return _0x3b6a=function(_0x3b6a8d,_0x52c25d){_0x3b6a8d=_0x3b6a8d-0x154;var _0x2709b8=_0x3804ab[_0x3b6a8d];return _0x2709b8;},_0x3b6a(_0x2681fc,_0x41831f);}import{Plugin as _0x52d43c}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x547a15}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x5041e4}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x52d43c{static get[_0x5bc9be(0x15c)](){var _0x411db0=_0x5bc9be;return _0x411db0(0x15d);}static get[_0x5bc9be(0x159)](){return[_0x547a15,_0x5041e4];}static get[_0x5bc9be(0x160)](){return!0x0;}static get[_0x5bc9be(0x156)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4eab3f=_0x1374;function _0x3131(){const _0xaac030=['1305639ZfGmaG','reduce','5416732hbtANM','uploadcareLicenseKeyUsageLimit','_createDropdownButtons','Facebook','isPremiumPlugin','expired','destroy','uploadcareLicenseKeyEvaluationLimit','isOfficialPlugin','shortText','locale','Uploadcare','isEnabled','644068nCDPRn','domainLimit','_createButton','execute','plugins','7218066qtfftx','Replace','GDrive','invalid','url','pluginName','_normalizeConfigSourceList','type','usageLimit','registerIntegration','_createToolbarButton','1YgSpSc','uploadcareLicenseKeyNotAllowed','config','Dropbox','evaluationLimit','commands','6886120MvSgoI','uploadcare.uploader.sourceList','URL','1336dbwPKW','_getIntegrationKey','uploadcareLicenseKeyInvalid','GPhotos','text','push','uploadcare','_licenseKeyCheckInterval','assetManager','withText','get','label','ImageInsertUI','licenseKey','uploadcareLicenseKeyTrialLimit','uploadcareLicenseKeyExpired','tooltip','4044733WVlDyX','UploadcareUI','forEach','trialLimit','Insert','_showLicenseError','entries','has','bind','upload','_createMenuBarButtons','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyValid','icon','46026byUAnk','init','Local','featureNotAllowed','map','editor','afterInit','OneDrive','isImageSelected'];_0x3131=function(){return _0xaac030;};return _0x3131();}(function(_0x13ed0d,_0x3ff3d3){const _0x2b19a3=_0x1374,_0x124035=_0x13ed0d();while(!![]){try{const _0x2f2f66=-parseInt(_0x2b19a3(0x15d))/0x1*(parseInt(_0x2b19a3(0x14d))/0x2)+-parseInt(_0x2b19a3(0x13e))/0x3+parseInt(_0x2b19a3(0x140))/0x4+-parseInt(_0x2b19a3(0x163))/0x5+parseInt(_0x2b19a3(0x152))/0x6+-parseInt(_0x2b19a3(0x177))/0x7+-parseInt(_0x2b19a3(0x166))/0x8*(-parseInt(_0x2b19a3(0x185))/0x9);if(_0x2f2f66===_0x3ff3d3)break;else _0x124035['push'](_0x124035['shift']());}catch(_0x393237){_0x124035['push'](_0x124035['shift']());}}}(_0x3131,0xaaa3e));function _0x1374(_0x1d3cb8,_0x305658){const _0x31319a=_0x3131();return _0x1374=function(_0x1374a6,_0x158468){_0x1374a6=_0x1374a6-0x13b;let _0x444b6c=_0x31319a[_0x1374a6];return _0x444b6c;},_0x1374(_0x1d3cb8,_0x305658);}import{Plugin as _0x2893d9}from'ckeditor5/src/core.js';import{IconDropbox as _0x4b3771,IconFacebook as _0x404f44,IconGoogleDrive as _0x4d8dc7,IconGooglePhotos as _0x2757cb,IconUploadcareImageUpload as _0x5f4b07,IconUploadcareLink as _0x546697,IconOneDrive as _0x322c3b}from'ckeditor5/src/icons.js';import{ButtonView as _0x13d1d1,MenuBarMenuListItemButtonView as _0x2da244}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1d1de3}from'./uploadcareconfig.js';import{getTranslation as _0x33af9a}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x2893d9{[_0x4eab3f(0x173)];[_0x4eab3f(0x16d)];static get[_0x4eab3f(0x157)](){const _0x4fde97=_0x4eab3f;return _0x4fde97(0x178);}static get[_0x4eab3f(0x148)](){return!0x0;}static get[_0x4eab3f(0x144)](){return!0x0;}[_0x4eab3f(0x186)](){const _0x5126d1=_0x4eab3f;this[_0x5126d1(0x173)]=this[_0x5126d1(0x18a)][_0x5126d1(0x15f)][_0x5126d1(0x170)](_0x5126d1(0x173));const _0x8755c9=this[_0x5126d1(0x18a)];this[_0x5126d1(0x16d)]=setInterval(()=>{const _0x1fc688=_0x5126d1;let _0x313fb6;for(const _0x4e8e7c in _0x8755c9){const _0x5acd89=_0x4e8e7c,_0x4230ac=_0x8755c9[_0x5acd89];if(_0x1fc688(0x183)==_0x4230ac||_0x1fc688(0x168)==_0x4230ac||_0x1fc688(0x175)==_0x4230ac||_0x1fc688(0x182)==_0x4230ac||_0x1fc688(0x15e)==_0x4230ac||_0x1fc688(0x147)==_0x4230ac||_0x1fc688(0x174)==_0x4230ac||_0x1fc688(0x141)==_0x4230ac){delete _0x8755c9[_0x5acd89],_0x313fb6=_0x4230ac,clearInterval(this[_0x1fc688(0x16d)]),this[_0x1fc688(0x16d)]=void 0x0;break;}}_0x1fc688(0x168)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x155)),_0x1fc688(0x175)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x145)),_0x1fc688(0x182)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x14e)),_0x1fc688(0x15e)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x188),_0x1fc688(0x14b)),_0x1fc688(0x147)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x161)),_0x1fc688(0x174)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x17a)),_0x1fc688(0x141)==_0x313fb6&&_0x8755c9[_0x1fc688(0x17c)](_0x1fc688(0x15a));},0x3e8);}[_0x4eab3f(0x13b)](){const _0x19ce54=_0x4eab3f,{editor:_0x2f969c}=this,_0x77ddc8=_0x2f969c[_0x19ce54(0x162)][_0x19ce54(0x170)](_0x19ce54(0x16c));if(!_0x77ddc8)return;const _0x42ad2e=this[_0x19ce54(0x158)](_0x2f969c[_0x19ce54(0x15f)][_0x19ce54(0x170)](_0x19ce54(0x164)))[_0x19ce54(0x13f)]((_0x1dcc36,_0x3c64de)=>{const _0x463033=_0x19ce54,_0x5c44ec=this[_0x463033(0x167)](_0x3c64de[_0x463033(0x159)]);return _0x1dcc36[_0x5c44ec]||(_0x1dcc36[_0x5c44ec]=[]),_0x1dcc36[_0x5c44ec][_0x463033(0x16b)](_0x3c64de),_0x1dcc36;},{});_0x2f969c[_0x19ce54(0x151)][_0x19ce54(0x17e)](_0x19ce54(0x172))&&_0x2f969c[_0x19ce54(0x162)][_0x19ce54(0x170)](_0x19ce54(0x16c))&&Object[_0x19ce54(0x17d)](_0x42ad2e)[_0x19ce54(0x179)](([_0x26da41,_0x43af39])=>{const _0x2bdff1=_0x19ce54;_0x2f969c[_0x2bdff1(0x151)][_0x2bdff1(0x170)](_0x2bdff1(0x172))[_0x2bdff1(0x15b)]({'name':_0x26da41,'observable':()=>_0x77ddc8,'buttonViewCreator':()=>this[_0x2bdff1(0x15c)](_0x43af39),'formViewCreator':()=>this[_0x2bdff1(0x142)](_0x43af39),'menuBarButtonViewCreator':()=>this[_0x2bdff1(0x181)](_0x43af39),'override':_0x2bdff1(0x16e)!==_0x26da41});});}[_0x4eab3f(0x146)](){const _0x2f0d95=_0x4eab3f;super[_0x2f0d95(0x146)](),this[_0x2f0d95(0x16d)]&&clearInterval(this[_0x2f0d95(0x16d)]);}[_0x4eab3f(0x158)](_0x16a525){const _0x563aad=_0x4eab3f,{locale:_0x3b67b9}=this[_0x563aad(0x18a)];return _0x16a525[_0x563aad(0x189)](_0x2e3607=>{const _0x24178f=_0x563aad,_0x125246=_0x33af9a(_0x3b67b9,_0x2e3607,_0x24178f(0x17b));switch(_0x2e3607){case _0x1d1de3[_0x24178f(0x187)]:return{'icon':_0x5f4b07,'type':_0x1d1de3[_0x24178f(0x187)],..._0x125246};case _0x1d1de3[_0x24178f(0x165)]:return{'icon':_0x546697,'type':_0x1d1de3[_0x24178f(0x165)],..._0x125246};case _0x1d1de3[_0x24178f(0x160)]:return{'icon':_0x4b3771,'type':_0x1d1de3[_0x24178f(0x160)],..._0x125246};case _0x1d1de3[_0x24178f(0x143)]:return{'icon':_0x404f44,'type':_0x1d1de3[_0x24178f(0x143)],..._0x125246};case _0x1d1de3[_0x24178f(0x154)]:return{'icon':_0x4d8dc7,'type':_0x1d1de3[_0x24178f(0x154)],..._0x125246};case _0x1d1de3[_0x24178f(0x169)]:return{'icon':_0x2757cb,'type':_0x1d1de3[_0x24178f(0x169)],..._0x125246};case _0x1d1de3[_0x24178f(0x13c)]:return{'icon':_0x322c3b,'type':_0x1d1de3[_0x24178f(0x13c)],..._0x125246};}});}[_0x4eab3f(0x167)](_0x1ded9e){const _0x609d24=_0x4eab3f;switch(_0x1ded9e){case _0x1d1de3[_0x609d24(0x187)]:return _0x609d24(0x180);case _0x1d1de3[_0x609d24(0x165)]:return _0x609d24(0x156);default:return _0x609d24(0x16e);}}[_0x4eab3f(0x14f)](_0x411ec3,_0x5d0061){const _0x5d3c08=_0x4eab3f,_0x5a98a0=this[_0x5d3c08(0x18a)],_0xfd2ff4=new _0x411ec3(_0x5a98a0[_0x5d3c08(0x14a)]),_0x1c06d7=_0x5a98a0[_0x5d3c08(0x162)][_0x5d3c08(0x170)](_0x5d3c08(0x16c));return _0xfd2ff4[_0x5d3c08(0x17f)](_0x5d3c08(0x14c))['to'](_0x1c06d7),_0xfd2ff4['on'](_0x5d3c08(0x150),()=>{const _0x194e4f=_0x5d3c08;_0x1c06d7[_0x194e4f(0x150)](_0x5d0061);}),_0xfd2ff4;}[_0x4eab3f(0x15c)](_0xa84666){const _0x422406=_0x4eab3f,{locale:_0x34be81}=this[_0x422406(0x18a)],_0x3ff150=this[_0x422406(0x18a)][_0x422406(0x151)][_0x422406(0x170)](_0x422406(0x172)),_0x381774=_0xa84666[0x0],_0x5238db=this[_0x422406(0x14f)](_0x13d1d1,_0x381774[_0x422406(0x159)]);return _0x5238db[_0x422406(0x184)]=_0x381774[_0x422406(0x184)],_0x5238db[_0x422406(0x17f)](_0x422406(0x171))['to'](_0x3ff150,_0x422406(0x13d),_0x3d20d5=>_0x33af9a(_0x34be81,_0x381774[_0x422406(0x159)],_0x3d20d5?_0x422406(0x153):_0x422406(0x17b))[_0x422406(0x16a)]),_0x5238db[_0x422406(0x176)]=!0x0,_0x5238db;}[_0x4eab3f(0x142)](_0x1dccd0){const _0x407c1e=_0x4eab3f,{locale:_0x57ff48}=this[_0x407c1e(0x18a)],_0x57d8e2=this[_0x407c1e(0x18a)][_0x407c1e(0x151)][_0x407c1e(0x170)](_0x407c1e(0x172));return _0x1dccd0[_0x407c1e(0x189)](_0x3ee623=>{const _0x1dfe32=_0x407c1e,_0x104bb5=this[_0x1dfe32(0x14f)](_0x13d1d1,_0x3ee623[_0x1dfe32(0x159)]);return _0x104bb5[_0x1dfe32(0x16f)]=!0x0,_0x104bb5[_0x1dfe32(0x184)]=_0x3ee623[_0x1dfe32(0x184)],_0x104bb5[_0x1dfe32(0x17f)](_0x1dfe32(0x171))['to'](_0x57d8e2,_0x1dfe32(0x13d),_0x53dff3=>_0x33af9a(_0x57ff48,_0x3ee623[_0x1dfe32(0x159)],_0x53dff3?_0x1dfe32(0x153):_0x1dfe32(0x17b))[_0x1dfe32(0x16a)]),_0x104bb5;});}[_0x4eab3f(0x181)](_0x31fc1f){const _0x2acec7=_0x4eab3f;return _0x31fc1f[_0x2acec7(0x189)](_0xcfd2e8=>{const _0x4dce2a=_0x2acec7,_0x4826ac=this[_0x4dce2a(0x14f)](_0x2da244,_0xcfd2e8[_0x4dce2a(0x159)]);return _0x4826ac[_0x4dce2a(0x184)]=_0xcfd2e8[_0x4dce2a(0x184)],_0x4826ac[_0x4dce2a(0x171)]=_0xcfd2e8[_0x4dce2a(0x149)],_0x4826ac;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x369d17}from'ckeditor5/src/core.js';import{FileRepository as _0x41dfc8}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x55cee4}from'./uploadcareediting.js';import{UploadUtils as _0x1391dc}from'./utils/uploadutils.js';import{getImageUrls as _0x44b70f}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x369d17{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x41dfc8,_0x55cee4];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5c4511=this['editor'];if(!!!_0x5c4511['config']['get']('uploadcare'))return;_0x5c4511['plugins']['get'](_0x41dfc8)['createUploadAdapter']=_0x4ba6f6=>new k(_0x4ba6f6,_0x5c4511),_0x5c4511['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5a19ef,{imageElement:_0x117efd,data:_0x18edfb})=>{_0x5c4511['model']['change'](_0x409675=>{_0x409675['setAttribute']('uploadcareImageId',_0x18edfb['uploadcareImageId'],_0x117efd);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x483b1b,_0x1510b1){this['loader']=_0x483b1b,this['editor']=_0x1510b1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x49fece=await this['loader']['file'];return _0x1391dc['upload']({'file':_0x49fece,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x51c53e=>{_0x51c53e&&_0x51c53e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x51c53e['value']);}})['then'](async _0x5df864=>{const {imageFallbackUrl:_0x11570a,imageSources:_0x280b0b}=_0x44b70f(_0x5df864['cdnUrl'],_0x5df864['imageInfo']['width']);return{'uploadcareImageId':_0x5df864['uuid'],'default':_0x11570a,'sources':_0x280b0b};})['catch'](()=>{const _0x901ea4=t('Cannot\x20upload\x20file:')+('\x20'+_0x49fece['name']+'.');return Promise['reject'](_0x901ea4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x313732}from'../uploadcareconfig.js';export function getTranslation(_0x311f7e,_0xb89242,_0x4d047b){const t=_0x311f7e['t'],_0x17d94d=_0x311f7e['t'];switch(_0xb89242){case _0x313732['Local']:return{'text':_0x17d94d('Insert'===_0x4d047b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x17d94d('From\x20computer')};case _0x313732['URL']:return{'text':'Insert'===_0x4d047b?_0x17d94d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x17d94d('Via\x20URL')};case _0x313732['Dropbox']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x313732['Facebook']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x313732['GDrive']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x313732['GPhotos']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x313732['OneDrive']:return{'text':t('Insert'===_0x4d047b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xb89242;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x157a8b=_0x2ed8;function _0x5763(){var _0x3d26de=['2780435mROdps','408579PPTPhb','97238ENNjit','bindTemplate','24324jBvhzr','7564086FgNBoR','50000570knMfFp','fire','getFocusableElement','true','1255peFxyz','2346760byTWNh','createCollection','div','forwardCycle','31hOtGtG','focusCycler','focusTracker','4xJOTMm'];_0x5763=function(){return _0x3d26de;};return _0x5763();}(function(_0x3f6e83,_0x559b5f){var _0x466dec=_0x2ed8,_0x417609=_0x3f6e83();while(!![]){try{var _0x2133b0=-parseInt(_0x466dec(0x1a0))/0x1*(parseInt(_0x466dec(0x193))/0x2)+-parseInt(_0x466dec(0x1a5))/0x3*(parseInt(_0x466dec(0x1a3))/0x4)+parseInt(_0x466dec(0x19b))/0x5*(-parseInt(_0x466dec(0x195))/0x6)+-parseInt(_0x466dec(0x1a4))/0x7+-parseInt(_0x466dec(0x19c))/0x8+-parseInt(_0x466dec(0x196))/0x9+parseInt(_0x466dec(0x197))/0xa;if(_0x2133b0===_0x559b5f)break;else _0x417609['push'](_0x417609['shift']());}catch(_0x234308){_0x417609['push'](_0x417609['shift']());}}}(_0x5763,0xc54b5));function _0x2ed8(_0x45681e,_0x4c0b1b){var _0x57639e=_0x5763();return _0x2ed8=function(_0x2ed81a,_0x53df1a){_0x2ed81a=_0x2ed81a-0x193;var _0x312915=_0x57639e[_0x2ed81a];return _0x312915;},_0x2ed8(_0x45681e,_0x4c0b1b);}import{FocusTracker as _0x56a4ac}from'ckeditor5/src/utils.js';import{View as _0x13c529,FocusCycler as _0x584adf}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x13c529{[_0x157a8b(0x1a2)];[_0x157a8b(0x1a1)];constructor(_0x776d43){var _0x55e54c=_0x157a8b;super(_0x776d43),this[_0x55e54c(0x1a2)]=new _0x56a4ac(),this[_0x55e54c(0x1a1)]=new _0x584adf({'focusables':this[_0x55e54c(0x19d)](),'focusTracker':this[_0x55e54c(0x1a2)]});}[_0x157a8b(0x199)](){var _0x14c762=_0x157a8b;return{'tag':_0x14c762(0x19e),'attributes':{'aria-hidden':_0x14c762(0x19a),'tabindex':'0'},'on':{'focus':this[_0x14c762(0x194)]['to'](()=>{var _0x2f9b96=_0x14c762;this[_0x2f9b96(0x1a1)][_0x2f9b96(0x198)](_0x2f9b96(0x19f));})}};}}
|