@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251212.0 → 0.0.0-nightly-next-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
|
+
function _0x3252(_0x2461fe,_0x2926ac){const _0x2a992d=_0x2a99();return _0x3252=function(_0x325219,_0x56b529){_0x325219=_0x325219-0x11f;let _0x21ad65=_0x2a992d[_0x325219];return _0x21ad65;},_0x3252(_0x2461fe,_0x2926ac);}const _0x501edc=_0x3252;(function(_0x5214d8,_0x1b00ac){const _0x4d52d6=_0x3252,_0x118787=_0x5214d8();while(!![]){try{const _0x198367=parseInt(_0x4d52d6(0x131))/0x1+-parseInt(_0x4d52d6(0x170))/0x2+parseInt(_0x4d52d6(0x161))/0x3+parseInt(_0x4d52d6(0x15a))/0x4+parseInt(_0x4d52d6(0x128))/0x5+parseInt(_0x4d52d6(0x15d))/0x6*(parseInt(_0x4d52d6(0x12e))/0x7)+-parseInt(_0x4d52d6(0x155))/0x8;if(_0x198367===_0x1b00ac)break;else _0x118787['push'](_0x118787['shift']());}catch(_0x4e824b){_0x118787['push'](_0x118787['shift']());}}}(_0x2a99,0xde1f1));function _0x2a99(){const _0x5131fc=['execute','listenTo','get','cleanupImage','_configElement','isOfficialPlugin','view','body','305132JbrnBZ','ctxElement','imageBlock','_ctxElement','getSelectedElement','data-uc-image-id','selection','isRegistered','locale','getAttribute','pluginName','2264005OlPDbW','isPremiumPlugin','uploadcareImageId','replaceImageSource','UploadcareEditing','true','11076541kZMdGt','remove','_initImageProcessingIndicator','333894IbsXin','_initConfig','extend','imageInline','schema','for','insertImage','uploadcare.pubkey','map','editor','PictureEditing','querySelector','destroy','document','conversion','\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','once','uploadcareImageReplace','uploader-','afterInit','uc-upload-ctx-provider','fromCharCode','commands','iconHrefResolver','_initConversion','_initCtx','render','init','add','appendChild','ucContextId','contentLanguage','uc-config','closeMax','uploadcare.uploader','configElement','17472648KEzapF','downcast','join','requires','href','1330900iTIqGi','uploadcare','upcast','6oQwxJn','#uc-icon-arrow-down','removeAttribute','editing','1634019tBsOLI','_initSchema','input[uploadcare-file-input]','elementToAttribute','model','attributeToAttribute','config'];_0x2a99=function(){return _0x5131fc;};return _0x2a99();}import{Plugin as _0x585841}from'ckeditor5/src/core.js';import{Dialog as _0x3dbd7f}from'ckeditor5/src/ui.js';import{createElement as _0x26676a,global as _0x3093d1,uid as _0x3ea4f8}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4589b7}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x251b39}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3abb08}from'./utils/editingutils.js';export class UploadcareEditing extends _0x585841{[_0x501edc(0x16c)]=null;[_0x501edc(0x120)]=null;static get[_0x501edc(0x127)](){const _0x2f191e=_0x501edc;return _0x2f191e(0x12c);}static get[_0x501edc(0x158)](){const _0x3a68e4=_0x501edc;return[_0x3a68e4(0x13b),_0x251b39,_0x3dbd7f];}static get[_0x501edc(0x16d)](){return!0x0;}static get[_0x501edc(0x129)](){return!0x0;}[_0x501edc(0x14f)];get[_0x501edc(0x154)](){const _0x18673b=_0x501edc;return this[_0x18673b(0x16c)];}get[_0x501edc(0x171)](){const _0x1a1b1f=_0x501edc;return this[_0x1a1b1f(0x120)];}constructor(_0x51b14d){const _0x169c14=_0x501edc;super(_0x51b14d),this[_0x169c14(0x14f)]=_0x3ea4f8();}[_0x501edc(0x14c)](){const _0x439b45=_0x501edc,_0x5cad7f=this[_0x439b45(0x13a)];_0x5cad7f[_0x439b45(0x147)][_0x439b45(0x14d)](_0x439b45(0x15b),new _0x4589b7(_0x5cad7f));}[_0x501edc(0x144)](){const _0xc9ca8d=_0x501edc;this[_0xc9ca8d(0x162)](),this[_0xc9ca8d(0x149)](),this[_0xc9ca8d(0x132)](),this[_0xc9ca8d(0x14a)](),this[_0xc9ca8d(0x130)](),this[_0xc9ca8d(0x169)](this[_0xc9ca8d(0x13a)],_0xc9ca8d(0x13d),()=>{const _0x172219=_0xc9ca8d;this[_0x172219(0x16c)]&&(this[_0x172219(0x16c)][_0x172219(0x12f)](),this[_0x172219(0x16c)]=null),this[_0x172219(0x120)]&&(this[_0x172219(0x120)][_0x172219(0x12f)](),this[_0x172219(0x120)]=null);const _0x51fb61=_0x3093d1[_0x172219(0x13e)][_0x172219(0x13c)](_0x172219(0x163));_0x51fb61&&_0x51fb61[_0x172219(0x12f)]();}),async function(_0x4095a5){const _0x374781=_0x2b1bb7([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]),_0x5e678e=0x535f8c3a,_0x215289=0x5358f7f2^_0x5e678e,_0x4a055c=window[_0x2b1bb7([0x44,0x61,0x74,0x65])][_0x2b1bb7([0x6e,0x6f,0x77])](),_0x3fd1cd=_0x4095a5[_0x2b1bb7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x536c8a=new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51d69d=>{_0x3fd1cd[_0x2b1bb7([0x6f,0x6e,0x63,0x65])](_0x2b1bb7([0x72,0x65,0x61,0x64,0x79]),_0x51d69d);}),_0x5b0e78={[_0x2b1bb7([0x6b,0x74,0x79])]:_0x2b1bb7([0x45,0x43]),[_0x2b1bb7([0x75,0x73,0x65])]:_0x2b1bb7([0x73,0x69,0x67]),[_0x2b1bb7([0x63,0x72,0x76])]:_0x2b1bb7([0x50,0x2d,0x32,0x35,0x36]),[_0x2b1bb7([0x78])]:_0x2b1bb7([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]),[_0x2b1bb7([0x79])]:_0x2b1bb7([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]),[_0x2b1bb7([0x61,0x6c,0x67])]:_0x2b1bb7([0x45,0x53,0x32,0x35,0x36])},_0x5bb8e5=_0x3fd1cd[_0x2b1bb7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b1bb7([0x67,0x65,0x74])](_0x2b1bb7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x365a57(){let _0x26f341,_0x5edf13=null,_0xbe46d1=null;try{if(_0x5bb8e5==_0x2b1bb7([0x47,0x50,0x4c]))return _0x2b1bb7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26f341=_0x5195ae(),!_0x26f341)return _0x2b1bb7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26f341[_0x2b1bb7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbe46d1=_0x186347(_0x26f341[_0x2b1bb7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26f341[_0x2b1bb7([0x6a,0x74,0x69])])),await _0x1d0d98()?_0x5ddba3()?_0x383392()?_0x2b1bb7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x121c93()?(_0x26f341[_0x2b1bb7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b1bb7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5edf13=_0x229cd3(_0x2b1bb7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26f341[_0x2b1bb7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b1bb7([0x74,0x72,0x69,0x61,0x6c])&&(_0x5edf13=_0x229cd3(_0x2b1bb7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xea3a43()):_0x2b1bb7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b1bb7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b1bb7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b1bb7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x383392(){const _0x10abe1=[_0x2b1bb7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b1bb7([0x74,0x72,0x69,0x61,0x6c])][_0x2b1bb7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26f341[_0x2b1bb7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a055c/0x3e8:0xe10*_0x215289;return _0x26f341[_0x2b1bb7([0x65,0x78,0x70])]<_0x10abe1;}function _0x5ddba3(){const _0x537cb3=_0x26f341[_0x2b1bb7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x537cb3&&(!!_0x537cb3[_0x2b1bb7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b1bb7([0x2a]))||!!_0x537cb3[_0x2b1bb7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b1bb7([0x55,0x50,0x4c,0x43])));}function _0x121c93(){const _0x166321=_0x3252,_0x21d90b=_0x26f341[_0x2b1bb7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21d90b||0x0==_0x21d90b[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a2d0d}=new URL(window[_0x2b1bb7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x166321(0x159)]);if(_0x21d90b[_0x2b1bb7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a2d0d))return!0x0;const _0x180161=_0x4a2d0d[_0x2b1bb7([0x73,0x70,0x6c,0x69,0x74])](_0x2b1bb7([0x2e]));return _0x21d90b[_0x2b1bb7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x159738=>_0x159738[_0x2b1bb7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b1bb7([0x2a])))[_0x2b1bb7([0x6d,0x61,0x70])](_0x4682bd=>_0x4682bd[_0x2b1bb7([0x73,0x70,0x6c,0x69,0x74])](_0x2b1bb7([0x2e])))[_0x2b1bb7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19dd3c=>_0x19dd3c[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x180161[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b1bb7([0x6d,0x61,0x70])](_0x2a40db=>Array(_0x180161[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a40db[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b1bb7([0x66,0x69,0x6c,0x6c])](_0x2a40db[0x0]===_0x2b1bb7([0x2a])?_0x2b1bb7([0x2a]):'')[_0x2b1bb7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a40db))[_0x2b1bb7([0x73,0x6f,0x6d,0x65])](_0x33e2b6=>_0x180161[_0x2b1bb7([0x65,0x76,0x65,0x72,0x79])]((_0x5461a9,_0x134ce3)=>_0x33e2b6[_0x134ce3]===_0x5461a9||_0x33e2b6[_0x134ce3]===_0x2b1bb7([0x2a])));}function _0xea3a43(){return _0x5edf13&&_0xbe46d1?new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e04e7,_0x5d0e97)=>{_0x5edf13[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x3e04e7,_0x5d0e97),_0xbe46d1[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x50aa6e=>{_0x50aa6e!=_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64])&&_0x3e04e7(_0x50aa6e);},_0x5d0e97);}):_0x5edf13||_0xbe46d1||_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x186347(_0x16db67,_0x223f3f){return new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e2bb9=>{if(_0x2551f0())return _0x4e2bb9(_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64]));_0x1dd7cc(),_0x3fd1cd[_0x2b1bb7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b1bb7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ae65e=!0x1;const _0x25ee7d=_0x3ea4f8();function _0x31a4e5(_0x5af295){return!!_0x5af295&&(typeof _0x5af295===_0x2b1bb7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5af295===_0x2b1bb7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5af295[_0x2b1bb7([0x74,0x68,0x65,0x6e])]===_0x2b1bb7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5af295[_0x2b1bb7([0x63,0x61,0x74,0x63,0x68])]===_0x2b1bb7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1eaca6(_0x3aa76e){_0x609dd4(_0x3aa76e)[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x30173d=>{if(!_0x30173d||_0x30173d[_0x2b1bb7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b1bb7([0x6f,0x6b]))return _0x2b1bb7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2aebec(_0x2bfb85(_0x25ee7d+_0x223f3f))!=_0x30173d[_0x2b1bb7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b1bb7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x5a1074=>(_0x3f29fc(),_0x5a1074),()=>{const _0x4f14ac=_0x5c6890();return null==_0x4f14ac?(_0x3f29fc(),_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64])):_0x2b1bb7(_0x4a055c-_0x4f14ac>(0x7753083a^_0x5e678e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x4e2bb9)[_0x2b1bb7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e2bb9(_0x2b1bb7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x332492=0x536962ba^_0x5e678e;function _0x3f29fc(){const _0x1694b5=_0x2b1bb7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aebec(_0x2bfb85(_0x16db67)),_0x319dd4=_0x14aea9(_0x2aebec(window[_0x2b1bb7([0x4d,0x61,0x74,0x68])][_0x2b1bb7([0x63,0x65,0x69,0x6c])](_0x4a055c/_0x332492)));window[_0x2b1bb7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b1bb7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1694b5,_0x319dd4);}function _0x5c6890(){const _0x231d45=_0x2b1bb7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2aebec(_0x2bfb85(_0x16db67)),_0x58c939=window[_0x2b1bb7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b1bb7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x231d45);return _0x58c939?window[_0x2b1bb7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14aea9(_0x58c939),0x10)*_0x332492:null;}function _0x609dd4(_0x4a3833){return new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1eab1f,_0x19e377)=>{_0x4a3833[_0x2b1bb7([0x74,0x68,0x65,0x6e])](_0x1eab1f,_0x19e377),window[_0x2b1bb7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19e377,0x535e58fa^_0x5e678e);});}}_0x3fd1cd[_0x2b1bb7([0x6f,0x6e])](_0x2b1bb7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd49614,_0x5595bc)=>{if(_0x5595bc[0x0]!=_0x16db67)return _0x4e2bb9(_0x2b1bb7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5595bc[0x1]={..._0x5595bc[0x1],[_0x2b1bb7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25ee7d};},{[_0x2b1bb7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b1bb7([0x68,0x69,0x67,0x68])}),_0x3fd1cd[_0x2b1bb7([0x6f,0x6e])](_0x2b1bb7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a322d=>{_0x31a4e5(_0x5a322d[_0x2b1bb7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ae65e=!0x0,_0x1eaca6(_0x5a322d[_0x2b1bb7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b1bb7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b1bb7([0x6c,0x6f,0x77])}),_0x536c8a[_0x2b1bb7([0x74,0x68,0x65,0x6e])](()=>{_0x3ae65e||_0x4e2bb9(_0x2b1bb7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2551f0(){return _0x3fd1cd[_0x2b1bb7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b1bb7([0x76,0x69,0x65,0x77])][_0x2b1bb7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b1bb7([0x61,0x75,0x74,0x6f]);}function _0x1dd7cc(){_0x3fd1cd[_0x2b1bb7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b1bb7([0x76,0x69,0x65,0x77])][_0x2b1bb7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b1bb7([0x61,0x75,0x74,0x6f]);}}function _0x229cd3(_0x2557b6){const _0x2148ac=[new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f682f=>setTimeout(_0x1f682f,0x5356b2f6^_0x5e678e)),_0x536c8a[_0x2b1bb7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36ed39=>{let _0xb633fc=0x0;_0x3fd1cd[_0x2b1bb7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b1bb7([0x6f,0x6e])](_0x2b1bb7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d21d9,_0x8a0090)=>{_0x8a0090[0x0][_0x2b1bb7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb633fc++,_0xb633fc==(0x535f8dc2^_0x5e678e)&&(_0x36ed39(),_0x1d21d9[_0x2b1bb7([0x6f,0x66,0x66])]());});}))];return window[_0x2b1bb7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b1bb7([0x72,0x61,0x63,0x65])](_0x2148ac)[_0x2b1bb7([0x74,0x68,0x65,0x6e])](()=>_0x2557b6);}async function _0x5de88e(){await _0x536c8a,_0x3fd1cd[_0x2b1bb7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b1bb7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xca777b,_0x3fd1cd[_0x2b1bb7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b1bb7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xca777b,_0x3fd1cd[_0x2b1bb7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b1bb7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2837dc(_0x3052d2){const _0x528960=_0x18c333();_0x3fd1cd[_0x528960]=_0x2b1bb7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3052d2,_0x3052d2!=_0x2b1bb7([0x56,0x61,0x6c,0x69,0x64])&&_0x5de88e();}function _0x18c333(){const _0x22e9e7=window[_0x2b1bb7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b1bb7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b1bb7([0x6e,0x6f,0x77])]())[_0x2b1bb7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b1bb7([0x2e]),'');let _0x568451=_0x2b1bb7([0x68]);for(let _0x18381a=0x0;_0x18381a<_0x22e9e7[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18381a+=0x2){let _0x2ed009=window[_0x2b1bb7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22e9e7[_0x2b1bb7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18381a,_0x18381a+0x2));_0x2ed009>=_0x374781[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ed009-=_0x374781[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x568451+=_0x374781[_0x2ed009];}return _0x568451;}function _0x5195ae(){const _0x5eeab8=_0x5bb8e5[_0x2b1bb7([0x73,0x70,0x6c,0x69,0x74])](_0x2b1bb7([0x2e]));if(0x3!=_0x5eeab8[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16c811(_0x5eeab8[0x1]);function _0x16c811(_0x2d7f57){const _0xad305a=_0x271ac3(_0x2d7f57);return _0xad305a&&_0x225117()?_0xad305a:null;function _0x225117(){const _0x4b114c=_0xad305a[_0x2b1bb7([0x6a,0x74,0x69])],_0x379f66=window[_0x2b1bb7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b114c[_0x2b1bb7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b114c[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x362641={..._0xad305a,[_0x2b1bb7([0x6a,0x74,0x69])]:_0x4b114c[_0x2b1bb7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b114c[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x362641[_0x2b1bb7([0x76,0x63])],_0x2bfb85(_0x362641)==_0x379f66;}}}async function _0x1d0d98(){let _0x3ea88a=!0x0;try{const _0xe9865a=_0x5bb8e5[_0x2b1bb7([0x73,0x70,0x6c,0x69,0x74])](_0x2b1bb7([0x2e])),[_0x128525,_0x264668,_0x325c73]=_0xe9865a;return _0x411e7d(_0x128525),await _0x4a033c(_0x128525,_0x264668,_0x325c73),_0x3ea88a;}catch{return!0x1;}function _0x411e7d(_0x28706d){const _0x138988=_0x271ac3(_0x28706d);_0x138988&&_0x138988[_0x2b1bb7([0x61,0x6c,0x67])]==_0x2b1bb7([0x45,0x53,0x32,0x35,0x36])||(_0x3ea88a=!0x1);}async function _0x4a033c(_0xaf7c3a,_0x304bc4,_0x1456cc){const _0x1279a9=window[_0x2b1bb7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b1bb7([0x66,0x72,0x6f,0x6d])](_0x15e44d(_0x1456cc),_0x4dc809=>_0x4dc809[_0x2b1bb7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xfc6326=new window[(_0x2b1bb7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b1bb7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xaf7c3a+_0x2b1bb7([0x2e])+_0x304bc4),_0x48b6d2=window[_0x2b1bb7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b1bb7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48b6d2)return;const _0x44b602=await _0x48b6d2[_0x2b1bb7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b1bb7([0x6a,0x77,0x6b]),_0x5b0e78,{[_0x2b1bb7([0x6e,0x61,0x6d,0x65])]:_0x2b1bb7([0x45,0x43,0x44,0x53,0x41]),[_0x2b1bb7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b1bb7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b1bb7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48b6d2[_0x2b1bb7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b1bb7([0x6e,0x61,0x6d,0x65])]:_0x2b1bb7([0x45,0x43,0x44,0x53,0x41]),[_0x2b1bb7([0x68,0x61,0x73,0x68])]:{[_0x2b1bb7([0x6e,0x61,0x6d,0x65])]:_0x2b1bb7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44b602,_0x1279a9,_0xfc6326)||(_0x3ea88a=!0x1);}}function _0x271ac3(_0x4ae802){return _0x4ae802[_0x2b1bb7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b1bb7([0x65,0x79]))?JSON[_0x2b1bb7([0x70,0x61,0x72,0x73,0x65])](_0x15e44d(_0x4ae802)):null;}function _0x15e44d(_0xb2fcee){return window[_0x2b1bb7([0x61,0x74,0x6f,0x62])](_0xb2fcee[_0x2b1bb7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b1bb7([0x2b]))[_0x2b1bb7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b1bb7([0x2f])));}function _0x2bfb85(_0x1760b8){let _0x3de271=0x1505;function _0x587d94(_0x4fda2d){for(let _0xfa071d=0x0;_0xfa071d<_0x4fda2d[_0x2b1bb7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfa071d++){const _0x83dc3f=_0x4fda2d[_0x2b1bb7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xfa071d);_0x3de271=(_0x3de271<<0x5)+_0x3de271+_0x83dc3f,_0x3de271&=_0x3de271;}}function _0x41918e(_0x50f51e){Array[_0x2b1bb7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x50f51e)?_0x50f51e[_0x2b1bb7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41918e):_0x50f51e&&typeof _0x50f51e==_0x2b1bb7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b1bb7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x50f51e)[_0x2b1bb7([0x73,0x6f,0x72,0x74])]()[_0x2b1bb7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4e3cac,_0x130f1f])=>{_0x587d94(_0x4e3cac),_0x41918e(_0x130f1f);}):_0x587d94(window[_0x2b1bb7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x50f51e));}return _0x41918e(_0x1760b8),_0x3de271>>>0x0;}function _0x2aebec(_0x271d46){return _0x271d46[_0x2b1bb7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b1bb7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b1bb7([0x30]));}function _0x14aea9(_0x36fa43){return _0x36fa43[_0x2b1bb7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b1bb7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b1bb7([0x6a,0x6f,0x69,0x6e])]('');}function _0xca777b(){}function _0x2b1bb7(_0x46d448){const _0x1c7cf9=_0x3252;return _0x46d448[_0x1c7cf9(0x139)](_0x3131be=>String[_0x1c7cf9(0x146)](_0x3131be))[_0x1c7cf9(0x157)]('');}_0x2837dc(await _0x365a57());}(this);}[_0x501edc(0x162)](){const _0x50e6c5=_0x501edc,_0x156994=this[_0x50e6c5(0x13a)][_0x50e6c5(0x165)][_0x50e6c5(0x135)];_0x156994[_0x50e6c5(0x124)](_0x50e6c5(0x11f))&&_0x156994[_0x50e6c5(0x133)](_0x50e6c5(0x11f),{'allowAttributes':[_0x50e6c5(0x12a)]}),_0x156994[_0x50e6c5(0x124)](_0x50e6c5(0x134))&&_0x156994[_0x50e6c5(0x133)](_0x50e6c5(0x134),{'allowAttributes':[_0x50e6c5(0x12a)]});}[_0x501edc(0x149)](){const _0x1f7909=_0x501edc,_0x409090=this[_0x1f7909(0x13a)];_0x409090[_0x1f7909(0x13f)][_0x1f7909(0x136)](_0x1f7909(0x156))[_0x1f7909(0x166)]({'model':_0x1f7909(0x12a),'view':_0x1f7909(0x122)}),_0x409090[_0x1f7909(0x13f)][_0x1f7909(0x136)](_0x1f7909(0x15c))[_0x1f7909(0x164)]({'model':{'key':_0x1f7909(0x12a),'value':_0x3b6b4e=>_0x3b6b4e[_0x1f7909(0x126)](_0x1f7909(0x122))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x54526b=_0x409090[_0x1f7909(0x147)][_0x1f7909(0x16a)](_0x1f7909(0x12b));_0x54526b&&this[_0x1f7909(0x169)](_0x54526b,_0x1f7909(0x16b),(_0x49cf83,[_0x7f8067,_0xc2abbf])=>{const _0x1a9864=_0x1f7909;_0x7f8067[_0x1a9864(0x15f)](_0x1a9864(0x12a),_0xc2abbf);});}[_0x501edc(0x132)](){const _0x29462f=_0x501edc,_0x592efe=this[_0x29462f(0x13a)][_0x29462f(0x167)][_0x29462f(0x16a)](_0x29462f(0x153))||{},_0x44524b=this[_0x29462f(0x13a)][_0x29462f(0x167)][_0x29462f(0x16a)](_0x29462f(0x138))||'';this[_0x29462f(0x16c)]=_0x26676a(_0x3093d1[_0x29462f(0x13e)],_0x29462f(0x151),{..._0x592efe,'pubkey':_0x44524b,'ctx-name':_0x29462f(0x143)+this[_0x29462f(0x14f)],'sourceList':'','imgOnly':_0x29462f(0x12d),'removeCopyright':_0x29462f(0x12d),'localeName':this[_0x29462f(0x13a)][_0x29462f(0x125)][_0x29462f(0x150)],'externalSourcesEmbedCss':_0x29462f(0x140)}),this[_0x29462f(0x16c)][_0x29462f(0x148)]=_0x138661=>{const _0x3b72c5=_0x29462f;if(_0x3b72c5(0x152)==_0x138661)return _0x3b72c5(0x15e);},_0x3093d1[_0x29462f(0x13e)][_0x29462f(0x16f)][_0x29462f(0x14e)](this[_0x29462f(0x16c)]);}[_0x501edc(0x14a)](){const _0xe7b813=_0x501edc;this[_0xe7b813(0x120)]=_0x26676a(_0x3093d1[_0xe7b813(0x13e)],_0xe7b813(0x145),{'ctx-name':_0xe7b813(0x143)+this[_0xe7b813(0x14f)]}),_0x3093d1[_0xe7b813(0x13e)][_0xe7b813(0x16f)][_0xe7b813(0x14e)](this[_0xe7b813(0x120)]);}[_0x501edc(0x130)](){const _0x57b7c0=_0x501edc,_0x3745f6=this[_0x57b7c0(0x13a)][_0x57b7c0(0x147)][_0x57b7c0(0x16a)](_0x57b7c0(0x137));_0x3745f6&&this[_0x57b7c0(0x169)](_0x3745f6,_0x57b7c0(0x168),()=>{const _0x26a8bc=_0x57b7c0,_0x30c80e=this[_0x26a8bc(0x13a)][_0x26a8bc(0x165)][_0x26a8bc(0x13e)][_0x26a8bc(0x123)][_0x26a8bc(0x121)]();_0x30c80e&&_0x30c80e[_0x26a8bc(0x126)](_0x26a8bc(0x12a))&&this[_0x26a8bc(0x13a)][_0x26a8bc(0x160)][_0x26a8bc(0x16e)][_0x26a8bc(0x141)](_0x26a8bc(0x14b),()=>{const _0x56acf3=_0x26a8bc;_0x3abb08(this[_0x56acf3(0x13a)],_0x30c80e);});});const _0x4c76d1=this[_0x57b7c0(0x13a)][_0x57b7c0(0x147)][_0x57b7c0(0x16a)](_0x57b7c0(0x142));_0x4c76d1&&this[_0x57b7c0(0x169)](_0x4c76d1,_0x57b7c0(0x168),()=>{const _0x5d17d6=_0x57b7c0,_0x3ed45c=this[_0x5d17d6(0x13a)][_0x5d17d6(0x165)][_0x5d17d6(0x13e)][_0x5d17d6(0x123)][_0x5d17d6(0x121)]();_0x3ed45c&&_0x3ed45c[_0x5d17d6(0x126)](_0x5d17d6(0x12a))&&this[_0x5d17d6(0x13a)][_0x5d17d6(0x160)][_0x5d17d6(0x16e)][_0x5d17d6(0x141)](_0x5d17d6(0x14b),()=>{const _0x28c479=_0x5d17d6;_0x3abb08(this[_0x28c479(0x13a)],_0x3ed45c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x188774,ObservableMixin as _0x5283f3}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x26fa84}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4d8f99}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4e1a07}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x245784}from'../../utils/uploadutils.js';import{getImageUrls as _0x3e3ae2,getImageDimension as _0x5c94d7}from'../../utils/editingutils.js';import{isAncestor as _0x2e954d}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5283f3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4b330b,_0x44d521,_0x465b8d){super(),this['_editor']=_0x4b330b,this['_dialog']=_0x44d521,this['_imageElement']=_0x465b8d,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 _0x10be0b=this['_imageElement'],_0x29f3e7=_0x10be0b['getAttribute']('uploadcareImageId'),_0x204580=_0x10be0b['getAttribute']('src');if(_0x29f3e7)await this['_loadImageInfo'](_0x29f3e7,_0x204580);else{if(this['_imageCache']['has'](_0x204580)){const _0x46668e=this['_imageCache']['get'](_0x204580);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x46668e['url'],this['imageDimension']=_0x46668e['dimension'],this['imageId']=_0x46668e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x380783}=this['_editor'],t=_0x380783['t'],_0x2d7904=new _0x4e1a07(_0x380783,this['imageStatus'],this['_attributes']);_0x2d7904['bind']('status')['to'](this,'imageStatus'),_0x2d7904['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2d7904['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2d7904['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2d7904,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4d8f99,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2d7904,'position':_0x26fa84['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2d7904['focus']();},'onHide':()=>{_0x2d7904['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xa0db2f=>!_0x2e954d(_0xa0db2f,_0x2d7904['element'])}});}['_loadImageInfo'](_0x58e701,_0x5e0e66){return _0x245784['getInfo'](_0x58e701,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xcfbb77=>{const {width:_0x2562f1,height:_0x476f21}=_0xcfbb77['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e0e66,this['imageDimension']={'width':_0x2562f1,'height':_0x476f21},this['imageId']=_0x58e701;})['catch'](_0x2c01ef=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c01ef['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x52416e,_0x3356fe){return this['_getImageAsFile'](_0x52416e)['then'](_0x10ea9e=>_0x245784['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':_0x3356fe['signal'],'file':_0x10ea9e,'onProgress':_0x82e6dd=>{_0x82e6dd&&_0x82e6dd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x82e6dd['value']));}}))['then'](_0x44e1df=>{const {width:_0x5042c6,height:_0x1690b1}=_0x44e1df['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x44e1df['cdnUrl'],this['imageDimension']={'width':_0x5042c6,'height':_0x1690b1},this['imageId']=_0x44e1df['uuid'],this['imageUploadProgress']=null;const _0x23c3d7=_0x52416e['getAttribute']('src');this['_imageCache']['set'](_0x23c3d7,{'id':_0x44e1df['uuid'],'url':_0x44e1df['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4c6fba=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c6fba['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5a8e6e,_0x32510d){_0x5a8e6e['on']('apply',(_0x22483d,_0x5ba4f4)=>{this['_replaceImage'](_0x32510d,_0x5ba4f4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5a8e6e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5a8e6e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x39fcb0,_0x4931a6,_0x119705){const _0x61ed68=this['_editor'],{width:_0x22f41b,height:_0x335c05}=_0x5c94d7(_0x4931a6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x30e6ab,imageSources:_0x5c45b8}=_0x3e3ae2(_0x4931a6,_0x22f41b);_0x61ed68['model']['change'](_0x1aa129=>{if('$graveyard'===_0x39fcb0['root']['rootName']){_0x61ed68['execute']('insertImage',{'imageType':_0x39fcb0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x39fcb0['getAttributes']()),'uploadcareImageId':_0x119705,'src':_0x30e6ab,'sources':_0x5c45b8,'width':_0x22f41b,'height':_0x335c05}});const _0x42b55c=_0x39fcb0['getChildren']();_0x39fcb0=_0x61ed68['model']['document']['selection']['getSelectedElement']();for(const _0xafa8d3 of _0x42b55c)_0x1aa129['append'](_0x1aa129['cloneElement'](_0xafa8d3),_0x39fcb0);}else _0x1aa129['setSelection'](_0x39fcb0,'on'),_0x61ed68['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x39fcb0['getAttributes']()),'uploadcareImageId':_0x119705,'src':_0x30e6ab,'sources':_0x5c45b8,'width':_0x22f41b,'height':_0x335c05},_0x39fcb0);_0x1aa129['setSelection'](_0x39fcb0,'on');});}async['_getImageAsFile'](_0x498c6b){const _0x3df7b1=_0x188774['window'],_0x58581c=_0x188774['document']['location']['href'],_0x241bd3=new _0x3df7b1['URL'](_0x498c6b['getAttribute']('src'),_0x58581c);if('data:'===_0x241bd3['protocol']){const _0x4096af=_0x241bd3['href']['split'](','),_0x2aeba6=_0x4096af[0x0]['match'](/:(.*?);/)[0x1],_0x2b2536=_0x2aeba6['split']('/')[0x1],_0x183482=_0x3df7b1['atob'](_0x4096af[_0x4096af['length']-0x1]);let _0x3ae796=_0x183482['length'];const _0x22312b=new _0x3df7b1['Uint8Array'](_0x3ae796);for(;_0x3ae796--;)_0x22312b[_0x3ae796]=_0x183482['charCodeAt'](_0x3ae796);return new _0x3df7b1['File']([_0x22312b],'image.'+_0x2b2536,{'type':_0x2aeba6});}const _0x6da9ae=_0x241bd3['href']['split']('/'),_0x4b5d36=_0x6da9ae[_0x6da9ae['length']-0x1],_0x198098=_0x4b5d36['split']('.')[0x1];return _0x3df7b1['fetch'](_0x241bd3['href'])['then'](_0x541293=>_0x541293['clone']()['blob']())['then'](_0x167821=>new _0x3df7b1['File']([_0x167821],_0x4b5d36,{'type':'image/'+_0x198098}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4d01eb,_0x2c83e8){const _0x16cd08=_0x7a64,_0x6316c1=_0x4d01eb();while(!![]){try{const _0x5b5dbd=-parseInt(_0x16cd08(0x127))/0x1*(-parseInt(_0x16cd08(0x120))/0x2)+-parseInt(_0x16cd08(0x115))/0x3*(-parseInt(_0x16cd08(0x114))/0x4)+-parseInt(_0x16cd08(0x117))/0x5*(parseInt(_0x16cd08(0x11b))/0x6)+parseInt(_0x16cd08(0x116))/0x7+-parseInt(_0x16cd08(0x125))/0x8*(-parseInt(_0x16cd08(0x122))/0x9)+-parseInt(_0x16cd08(0x11a))/0xa*(-parseInt(_0x16cd08(0x119))/0xb)+-parseInt(_0x16cd08(0x11d))/0xc;if(_0x5b5dbd===_0x2c83e8)break;else _0x6316c1['push'](_0x6316c1['shift']());}catch(_0x19d9b9){_0x6316c1['push'](_0x6316c1['shift']());}}}(_0x4d74,0x3d101));import{View as _0x2f0053}from'ckeditor5/src/ui.js';function _0x4d74(){const _0x577fd3=['uc-light','522XxXAUT','bindTemplate','uc-cloud-image-editor','67928TobwUa','set','185764pkVciV','3176WaRMIA','801FkUsyY','2884749rrSPYO','46030QlNEYL','imageSrc','678040kFmsAM','50FuDhYB','258QcHATH','ck-uploadcare-theme','11574912YKpZeP','image-edit','setTemplate','2DFQPIL'];_0x4d74=function(){return _0x577fd3;};return _0x4d74();}function _0x7a64(_0x464aca,_0xda612f){const _0x4d744e=_0x4d74();return _0x7a64=function(_0x7a6419,_0x5820b2){_0x7a6419=_0x7a6419-0x114;let _0x3f5a20=_0x4d744e[_0x7a6419];return _0x3f5a20;},_0x7a64(_0x464aca,_0xda612f);}export class UploadcareImageEditFormEditingView extends _0x2f0053{constructor(_0x51081f,_0x145c15){const _0x279f8b=_0x7a64;super(_0x51081f);const _0xf5fe53=this[_0x279f8b(0x123)];this[_0x279f8b(0x126)](_0x279f8b(0x118),''),this[_0x279f8b(0x11f)]({'tag':_0x279f8b(0x124),'attributes':{..._0x145c15,'class':[_0x279f8b(0x121),_0x279f8b(0x11c)],'ctx-name':_0x279f8b(0x11e),'cdn-url':_0xf5fe53['to'](_0x279f8b(0x118))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x116873}from'ckeditor5/src/icons.js';import{ButtonView as _0x1aa598,IconView as _0x88ed28,View as _0x2ca174}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2ca174{constructor(_0x4bb7d7){super(_0x4bb7d7);const t=_0x4bb7d7['t'];this['set']('errorType',null);const _0x40c00e=new _0x1aa598(_0x4bb7d7);_0x40c00e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x40c00e['withText']=!0x0,_0x40c00e['class']='ck-button-action',_0x40c00e['on']('execute',()=>{this['fire']('retry');}),_0x40c00e['bind']('isVisible')['to'](this,'errorType',_0x37def7=>'NotFound'!==_0x37def7);const _0x12aeda=new _0x88ed28();_0x12aeda['content']=_0x116873,_0x12aeda['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4a72d3=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':[_0x12aeda,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4a72d3['to']('errorType',_0x14275b=>t('NotFound'!==_0x14275b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x40c00e]},{'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 _0x19972a,View as _0x37dc1f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x37dc1f{constructor(_0x3c1c46){super(_0x3c1c46);const t=_0x3c1c46['t'],_0x338184=this['bindTemplate'],_0x6fd7c1=new _0x19972a();_0x6fd7c1['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':[_0x6fd7c1,{'text':_0x338184['to']('imageUploadProgress',_0xf79c57=>t('Loading\x20image...')+'\x20('+(_0xf79c57||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a61be=_0x334a;(function(_0x3339a0,_0x71dbcc){const _0xc7469b=_0x334a,_0x124bc0=_0x3339a0();while(!![]){try{const _0x5034eb=-parseInt(_0xc7469b(0xf5))/0x1+parseInt(_0xc7469b(0xdf))/0x2*(parseInt(_0xc7469b(0xf0))/0x3)+parseInt(_0xc7469b(0xec))/0x4+-parseInt(_0xc7469b(0xfa))/0x5*(-parseInt(_0xc7469b(0xef))/0x6)+-parseInt(_0xc7469b(0xee))/0x7*(parseInt(_0xc7469b(0x102))/0x8)+parseInt(_0xc7469b(0x110))/0x9*(parseInt(_0xc7469b(0xf3))/0xa)+parseInt(_0xc7469b(0xfc))/0xb*(-parseInt(_0xc7469b(0xf9))/0xc);if(_0x5034eb===_0x71dbcc)break;else _0x124bc0['push'](_0x124bc0['shift']());}catch(_0x12d293){_0x124bc0['push'](_0x124bc0['shift']());}}}(_0x5b49,0xd0391));import{View as _0x6117c6}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3ed089}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x2b3ea0}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x5dc8d0}from'./uploadcareimageeditformeditingview.js';function _0x5b49(){const _0x235029=['838448olzRrw','add','retry','clear','8215044qejtNF','2853805vUWDOi','ck-reset_all-excluded','22kYmgNq','_addUploadcareImageEditorListeners','status','_waitForImageEditorComponent','toLowerCase','addMany','1037592AkKCEl','_editingView','change:status','addedNodes','setTemplate','_items','_addErrorViewListeners','_setView','length','querySelector','_focusableView','div','filter','getFocusableElement','1548laHZMC','error','_loadingView','detail','nodeName','fire','ready','set','2340382qlykej','ck-uploadcare-form','uc-cloud-image-editor','cancel','target','render','disconnect','cdnUrl','createCollection','addEventListener','observe','focus','once','6633696QjETOj','uploading','21WoQwAC','6ueXfEQ','3teszhT','apply','element','2920dgRUuU','_errorView'];_0x5b49=function(){return _0x235029;};return _0x5b49();}import{DialogFocusManagerView as _0x5a454a}from'../../utils/dialogfocusmanagerview.js';function _0x334a(_0x26c508,_0x211923){const _0x5b491f=_0x5b49();return _0x334a=function(_0x334a77,_0x1a7edc){_0x334a77=_0x334a77-0xd8;let _0x1d9fe0=_0x5b491f[_0x334a77];return _0x1d9fe0;},_0x334a(_0x26c508,_0x211923);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x5a454a{[_0x3a61be(0x107)];[_0x3a61be(0xd9)];[_0x3a61be(0xf4)];[_0x3a61be(0x103)];[_0x3a61be(0x10c)];constructor(_0x1b184d,_0x2e81a6,_0x3d073d){const _0x7ca1cd=_0x3a61be;super(_0x1b184d),this[_0x7ca1cd(0x107)]=this[_0x7ca1cd(0xe7)](),this[_0x7ca1cd(0xd9)]=new _0x3ed089(_0x1b184d),this[_0x7ca1cd(0xf4)]=new _0x2b3ea0(_0x1b184d),this[_0x7ca1cd(0x103)]=new _0x5dc8d0(_0x1b184d,_0x3d073d),this[_0x7ca1cd(0x10c)]=new _0x6117c6(_0x1b184d),this[_0x7ca1cd(0x10c)][_0x7ca1cd(0x106)](this[_0x7ca1cd(0x10f)]()),this[_0x7ca1cd(0xde)](_0x7ca1cd(0xfe),_0x2e81a6),this[_0x7ca1cd(0x106)]({'tag':_0x7ca1cd(0x10d),'attributes':{'class':['ck',_0x7ca1cd(0xfb),_0x7ca1cd(0xe0)],'tabindex':'-1'},'children':this[_0x7ca1cd(0x107)]}),this[_0x7ca1cd(0x109)](),this[_0x7ca1cd(0xeb)](_0x7ca1cd(0xe4),()=>{const _0x497362=_0x7ca1cd;this[_0x497362(0xff)](this[_0x497362(0xf2)],_0x4c657d=>{const _0xb0729b=_0x497362;this[_0xb0729b(0xfd)](_0x4c657d);});}),this['on'](_0x7ca1cd(0x104),()=>{const _0x53956a=_0x7ca1cd;this[_0x53956a(0x109)]();}),this[_0x7ca1cd(0x108)]();}[_0x3a61be(0xea)](){const _0x3849a6=_0x3a61be;this[_0x3849a6(0xf2)][_0x3849a6(0xea)]();}[_0x3a61be(0x109)](){const _0x440104=_0x3a61be;switch(this[_0x440104(0x107)][_0x440104(0xf8)](),this[_0x440104(0xfe)]){case _0x440104(0xed):this[_0x440104(0x107)][_0x440104(0xf6)](this[_0x440104(0xd9)]);break;case _0x440104(0xd8):this[_0x440104(0x107)][_0x440104(0xf6)](this[_0x440104(0xf4)]);break;case _0x440104(0xdd):this[_0x440104(0x107)][_0x440104(0x101)]([this[_0x440104(0x103)],this[_0x440104(0x10c)]]);}}[_0x3a61be(0xff)](_0x4822f3,_0x32fec4){const _0x4ae5c4=_0x3a61be,_0x489342=_0x4ae5c4(0xe1),_0xc8dcf7=_0x4822f3[_0x4ae5c4(0x10b)](_0x489342);if(_0xc8dcf7)return _0x32fec4(_0xc8dcf7);const _0x1865b7=new MutationObserver(_0xac5a53=>{const _0x497963=_0x4ae5c4,_0x578134=_0xac5a53[_0x497963(0x10e)](_0x1ab2d0=>_0x1ab2d0[_0x497963(0xe3)]===_0x4822f3&&_0x1ab2d0[_0x497963(0x105)][_0x497963(0x10a)]>0x0&&_0x1ab2d0[_0x497963(0x105)][0x0][_0x497963(0xdb)][_0x497963(0x100)]()===_0x489342);_0x578134[_0x497963(0x10a)]&&(_0x1865b7[_0x497963(0xe5)](),_0x32fec4(_0x578134[0x0][_0x497963(0x105)][0x0]));});_0x1865b7[_0x4ae5c4(0xe9)](_0x4822f3,{'childList':!0x0,'subtree':!0x0});}[_0x3a61be(0xfd)](_0x1cd043){const _0x5212ea=_0x3a61be;_0x1cd043[_0x5212ea(0xe8)](_0x5212ea(0xf1),_0x1d36ac=>{const _0x188e76=_0x5212ea;this[_0x188e76(0xdc)](_0x188e76(0xf1),{'imageSrc':_0x1d36ac[_0x188e76(0xda)][_0x188e76(0xe6)]});}),_0x1cd043[_0x5212ea(0xe8)](_0x5212ea(0xe2),()=>{const _0x13fbf2=_0x5212ea;this[_0x13fbf2(0xdc)](_0x13fbf2(0xe2));});}[_0x3a61be(0x108)](){const _0x3bac9d=_0x3a61be;this[_0x3bac9d(0xf4)]['on'](_0x3bac9d(0xf7),()=>{const _0x32255c=_0x3bac9d;this[_0x32255c(0xdc)](_0x32255c(0xf7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5e3bd4=_0x11f6;(function(_0x4b821c,_0x3f040e){const _0x51f0d4=_0x11f6,_0x504144=_0x4b821c();while(!![]){try{const _0x1fa500=-parseInt(_0x51f0d4(0xd1))/0x1*(-parseInt(_0x51f0d4(0xca))/0x2)+parseInt(_0x51f0d4(0xcc))/0x3+-parseInt(_0x51f0d4(0xc1))/0x4+-parseInt(_0x51f0d4(0xcf))/0x5*(-parseInt(_0x51f0d4(0xdb))/0x6)+-parseInt(_0x51f0d4(0xda))/0x7*(parseInt(_0x51f0d4(0xde))/0x8)+-parseInt(_0x51f0d4(0xd8))/0x9*(-parseInt(_0x51f0d4(0xc3))/0xa)+-parseInt(_0x51f0d4(0xd7))/0xb*(parseInt(_0x51f0d4(0xdc))/0xc);if(_0x1fa500===_0x3f040e)break;else _0x504144['push'](_0x504144['shift']());}catch(_0x2fed9e){_0x504144['push'](_0x504144['shift']());}}}(_0x4e09,0x8fe87));function _0x4e09(){const _0x1958bb=['848ZSzxah','set','selection','editor','unbind','2218600RvuyjU','requires','60410ywqmQR','execute','document','isEnabled','plugins','refresh','config','48qVxcby','imageInline','1821504cJaKKH','element','bind','2390190WOfVQJ','uploadcare.allowExternalImagesEditing','36093BVOgEU','model','isActive','imageEditController','get','imageBlock','176FYWKZQ','1557GlLHUf','_isEditable','364KKaoqH','12UaDVyq','1743720Tnhwqi','getSelectedElement'];_0x4e09=function(){return _0x1958bb;};return _0x4e09();}import{Command as _0x588fda}from'ckeditor5/src/core.js';function _0x11f6(_0x338f7e,_0x14e2f6){const _0x4e09a7=_0x4e09();return _0x11f6=function(_0x11f661,_0x4caced){_0x11f661=_0x11f661-0xc0;let _0x2d5e=_0x4e09a7[_0x11f661];return _0x2d5e;},_0x11f6(_0x338f7e,_0x14e2f6);}import{Dialog as _0x4adc21}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x4ed6a6}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x233782}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x588fda{[_0x5e3bd4(0xd4)];static get[_0x5e3bd4(0xc2)](){return[_0x4adc21];}[_0x5e3bd4(0xd9)];constructor(_0xb8d12c){const _0x3d6900=_0x5e3bd4;super(_0xb8d12c),this[_0x3d6900(0xd4)]=void 0x0,this[_0x3d6900(0xd9)]=_0x233782(_0xb8d12c[_0x3d6900(0xc9)][_0x3d6900(0xd5)](_0x3d6900(0xd0))||[]),this[_0x3d6900(0xdf)]({'isActive':!0x1});}[_0x5e3bd4(0xc8)](){const _0x1e4c02=_0x5e3bd4,_0x5cb485=this[_0x1e4c02(0xe1)][_0x1e4c02(0xd2)][_0x1e4c02(0xc5)][_0x1e4c02(0xe0)][_0x1e4c02(0xdd)]();this[_0x1e4c02(0xc6)]=this[_0x1e4c02(0xd9)](_0x5cb485);}[_0x5e3bd4(0xc4)](){const _0x54dc67=_0x5e3bd4;this[_0x54dc67(0xd4)]&&(this[_0x54dc67(0xc0)](_0x54dc67(0xd3)),this[_0x54dc67(0xd4)]=void 0x0);const _0x5c6862=this[_0x54dc67(0xe1)][_0x54dc67(0xd2)][_0x54dc67(0xc5)][_0x54dc67(0xe0)][_0x54dc67(0xdd)]();_0x5c6862&&(_0x5c6862['is'](_0x54dc67(0xcd),_0x54dc67(0xd6))||_0x5c6862['is'](_0x54dc67(0xcd),_0x54dc67(0xcb)))&&(this[_0x54dc67(0xd4)]=new _0x4ed6a6(this[_0x54dc67(0xe1)],this[_0x54dc67(0xe1)][_0x54dc67(0xc7)][_0x54dc67(0xd5)](_0x4adc21),_0x5c6862),this[_0x54dc67(0xce)](_0x54dc67(0xd3))['to'](this[_0x54dc67(0xd4)],_0x54dc67(0xd3)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x57da(_0x712c33,_0x84ca4f){const _0xda0e9c=_0xda0e();return _0x57da=function(_0x57dabd,_0x5e9937){_0x57dabd=_0x57dabd-0x14f;let _0x42e8a5=_0xda0e9c[_0x57dabd];return _0x42e8a5;},_0x57da(_0x712c33,_0x84ca4f);}const _0x547a20=_0x57da;(function(_0x3cd8c3,_0x1b5307){const _0x358e84=_0x57da,_0x59ad4b=_0x3cd8c3();while(!![]){try{const _0x16928e=-parseInt(_0x358e84(0x155))/0x1+-parseInt(_0x358e84(0x15d))/0x2+-parseInt(_0x358e84(0x161))/0x3*(-parseInt(_0x358e84(0x156))/0x4)+parseInt(_0x358e84(0x14f))/0x5+parseInt(_0x358e84(0x15f))/0x6+-parseInt(_0x358e84(0x162))/0x7*(parseInt(_0x358e84(0x15a))/0x8)+parseInt(_0x358e84(0x150))/0x9*(parseInt(_0x358e84(0x153))/0xa);if(_0x16928e===_0x1b5307)break;else _0x59ad4b['push'](_0x59ad4b['shift']());}catch(_0x597916){_0x59ad4b['push'](_0x59ad4b['shift']());}}}(_0xda0e,0xde77c));import{Plugin as _0x1cab19}from'ckeditor5/src/core.js';import{Notification as _0x12aaa1}from'ckeditor5/src/ui.js';function _0xda0e(){const _0x363cd5=['uploadcareImageEdit','1454290WsUGAM','add','3625440aUiBXk','ImageUtils','9yovPDS','236201kWQcub','uploadcareImageReplace','requires','698010kWTefW','9NSTqWj','init','ImageEditing','29226590Kkyqaj','isOfficialPlugin','970140YODGZh','793892gCbSHL','pluginName','commands','isPremiumPlugin','392POFSBU','UploadcareImageEditEditing'];_0xda0e=function(){return _0x363cd5;};return _0xda0e();}import{UploadcareImageEditCommand as _0x39adf0}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x33f2bb}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x4cd3be}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1cab19{static get[_0x547a20(0x157)](){const _0x40dc22=_0x547a20;return _0x40dc22(0x15b);}static get[_0x547a20(0x164)](){const _0x2a6b92=_0x547a20;return[_0x4cd3be,_0x12aaa1,_0x2a6b92(0x160),_0x2a6b92(0x152)];}static get[_0x547a20(0x154)](){return!0x0;}static get[_0x547a20(0x159)](){return!0x0;}[_0x547a20(0x151)](){const _0x5bbdc2=_0x547a20,{editor:_0x1ac4e7}=this;_0x1ac4e7[_0x5bbdc2(0x158)][_0x5bbdc2(0x15e)](_0x5bbdc2(0x15c),new _0x39adf0(_0x1ac4e7)),_0x1ac4e7[_0x5bbdc2(0x158)][_0x5bbdc2(0x15e)](_0x5bbdc2(0x163),new _0x33f2bb(_0x1ac4e7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5a4a76}from'ckeditor5/src/core.js';import{ButtonView as _0x2a6374}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x38b9a0}from'ckeditor5/src/icons.js';import{createElement as _0x5cb621}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 _0x5a4a76{['_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 _0x3055d0=this['editor'];_0x3055d0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a04fd=>{const _0x2ebaa5=_0x3055d0['commands']['get']('uploadcareImageEdit'),_0x26ef46=new _0x2a6374(_0x3a04fd),t=_0x3a04fd['t'];return _0x26ef46['set']({'icon':_0x38b9a0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26ef46['bind']('isEnabled')['to'](_0x2ebaa5),_0x26ef46['bind']('isOn')['to'](_0x2ebaa5,'isActive'),this['listenTo'](_0x26ef46,'execute',()=>{_0x3055d0['execute']('uploadcareImageEdit'),_0x3055d0['editing']['view']['focus']();}),_0x26ef46;}),this['_initConfig']();}['_initConfig'](){const _0x2a0ac9=_0x5cb621(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2a0ac9),this['listenTo'](this['editor'],'destroy',()=>{_0x2a0ac9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x6316(){const _0x1d1add=['545812tkSnuN','removeAttribute','srcset','selection','4795273qWooVJ','451864rxTJmK','execute','474widkpe','setAttributes','sizes','change','model','22375KRJIEL','isEnabled','390886gcfdpl','editor','element','5448864EScWPk','getSelectedElement','document','refresh','imageBlock','imageInline','1905030vZfXZw','3ptWggi'];_0x6316=function(){return _0x1d1add;};return _0x6316();}const _0x17b655=_0x3a3a;(function(_0x16d3f8,_0xd8e464){const _0xd0d242=_0x3a3a,_0x4fd48d=_0x16d3f8();while(!![]){try{const _0x4659db=parseInt(_0xd0d242(0x194))/0x1+parseInt(_0xd0d242(0x19f))/0x2+-parseInt(_0xd0d242(0x19e))/0x3*(parseInt(_0xd0d242(0x1a4))/0x4)+parseInt(_0xd0d242(0x192))/0x5*(-parseInt(_0xd0d242(0x18d))/0x6)+parseInt(_0xd0d242(0x1a3))/0x7+-parseInt(_0xd0d242(0x197))/0x8+parseInt(_0xd0d242(0x19d))/0x9;if(_0x4659db===_0xd8e464)break;else _0x4fd48d['push'](_0x4fd48d['shift']());}catch(_0x2182c9){_0x4fd48d['push'](_0x4fd48d['shift']());}}}(_0x6316,0x64ce6));import{Command as _0x3b8f75}from'ckeditor5/src/core.js';function _0x3a3a(_0x337adb,_0x4d55f8){const _0x631672=_0x6316();return _0x3a3a=function(_0x3a3a80,_0x6bd96c){_0x3a3a80=_0x3a3a80-0x18c;let _0x273641=_0x631672[_0x3a3a80];return _0x273641;},_0x3a3a(_0x337adb,_0x4d55f8);}export class UploadcareImageReplaceCommand extends _0x3b8f75{[_0x17b655(0x19a)](){const _0x5b0553=_0x17b655,_0x22b4ec=this[_0x5b0553(0x195)][_0x5b0553(0x191)][_0x5b0553(0x199)][_0x5b0553(0x1a2)][_0x5b0553(0x198)]();this[_0x5b0553(0x193)]=Boolean(_0x22b4ec&&(_0x22b4ec['is'](_0x5b0553(0x196),_0x5b0553(0x19b))||_0x22b4ec['is'](_0x5b0553(0x196),_0x5b0553(0x19c))));}[_0x17b655(0x18c)](_0x518c03){const _0x1ad827=_0x17b655,_0x333aa7=this[_0x1ad827(0x195)][_0x1ad827(0x191)][_0x1ad827(0x199)][_0x1ad827(0x1a2)][_0x1ad827(0x198)]();this[_0x1ad827(0x195)][_0x1ad827(0x191)][_0x1ad827(0x190)](_0x309545=>{const _0x2b9605=_0x1ad827;_0x309545[_0x2b9605(0x18e)](_0x518c03,_0x333aa7),_0x309545[_0x2b9605(0x1a0)](_0x2b9605(0x1a1),_0x333aa7),_0x309545[_0x2b9605(0x1a0)](_0x2b9605(0x18f),_0x333aa7);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x25e149=_0x3a36;(function(_0x58dfb6,_0x277ac3){var _0x24602e=_0x3a36,_0x514460=_0x58dfb6();while(!![]){try{var _0x57cc0a=-parseInt(_0x24602e(0x1a7))/0x1+parseInt(_0x24602e(0x1a6))/0x2+-parseInt(_0x24602e(0x1ad))/0x3+parseInt(_0x24602e(0x1ae))/0x4*(-parseInt(_0x24602e(0x1a9))/0x5)+parseInt(_0x24602e(0x1ac))/0x6*(parseInt(_0x24602e(0x1a8))/0x7)+parseInt(_0x24602e(0x1a2))/0x8+parseInt(_0x24602e(0x1aa))/0x9*(parseInt(_0x24602e(0x1a4))/0xa);if(_0x57cc0a===_0x277ac3)break;else _0x514460['push'](_0x514460['shift']());}catch(_0x58ac34){_0x514460['push'](_0x514460['shift']());}}}(_0x557a,0x680d1));function _0x3a36(_0x5dc7f3,_0x138d2b){var _0x557acf=_0x557a();return _0x3a36=function(_0x3a3698,_0x54e962){_0x3a3698=_0x3a3698-0x1a2;var _0x13042e=_0x557acf[_0x3a3698];return _0x13042e;},_0x3a36(_0x5dc7f3,_0x138d2b);}function _0x557a(){var _0x53d34a=['1426975YCuwkV','774JPjkyC','UploadcareImageEdit','573582IEyjIl','434049OxEEez','8crcoXU','requires','isOfficialPlugin','2425000kgwhBN','isPremiumPlugin','40740VvZtwN','pluginName','729902RxcBHh','67968CrAuUp','14VliBib'];_0x557a=function(){return _0x53d34a;};return _0x557a();}import{Plugin as _0x1a4348}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x554c8c}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x32ed97}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x1a4348{static get[_0x25e149(0x1a5)](){var _0x21b86f=_0x25e149;return _0x21b86f(0x1ab);}static get[_0x25e149(0x1af)](){return[_0x554c8c,_0x32ed97];}static get[_0x25e149(0x1b0)](){return!0x0;}static get[_0x25e149(0x1a3)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x51c3(){const _0x3d2a47=['_createToolbarButton','_createMenuBarButtons','isEnabled','7vxrPdp','url','45170iJRbRw','_createDropdownButtons','registerIntegration','label','14590576IIOdto','GDrive','4885VihmED','config','uploadcareLicenseKeyUsageLimit','uploadcare','pluginName','forEach','520215HEnnzZ','domainLimit','trialLimit','expired','withText','uploadcareLicenseKeyDomainLimit','upload','uploadcareLicenseKeyEvaluationLimit','commands','usageLimit','_licenseKeyCheckInterval','reduce','2274vIEAPc','1819168CLDeun','uploadcareLicenseKeyNotAllowed','3nWVpkY','_normalizeConfigSourceList','invalid','URL','init','entries','OneDrive','destroy','Local','locale','Uploadcare','execute','licenseKey','afterInit','featureNotAllowed','tooltip','editor','assetManager','ImageInsertUI','uploadcareLicenseKeyValid','50020FgNgbn','isImageSelected','get','Dropbox','has','push','_showLicenseError','isPremiumPlugin','type','uploadcareLicenseKeyInvalid','_createButton','Facebook','387oaGOmB','uploadcareLicenseKeyTrialLimit','_getIntegrationKey','evaluationLimit','GPhotos','map','uploadcareLicenseKeyExpired','UploadcareUI','shortText','bind','Replace','uploadcare.uploader.sourceList','icon','plugins','3892712mMUtBp','Insert','isOfficialPlugin','text'];_0x51c3=function(){return _0x3d2a47;};return _0x51c3();}const _0x1ed353=_0x1e73;(function(_0x43ac5b,_0xf462c6){const _0x2095d0=_0x1e73,_0x4123b7=_0x43ac5b();while(!![]){try{const _0x2270ea=parseInt(_0x2095d0(0x1cd))/0x1+-parseInt(_0x2095d0(0x19e))/0x2*(-parseInt(_0x2095d0(0x1dc))/0x3)+parseInt(_0x2095d0(0x1da))/0x4+parseInt(_0x2095d0(0x1c7))/0x5*(parseInt(_0x2095d0(0x1d9))/0x6)+-parseInt(_0x2095d0(0x1bf))/0x7*(-parseInt(_0x2095d0(0x1b8))/0x8)+-parseInt(_0x2095d0(0x1aa))/0x9*(parseInt(_0x2095d0(0x1c1))/0xa)+-parseInt(_0x2095d0(0x1c5))/0xb;if(_0x2270ea===_0xf462c6)break;else _0x4123b7['push'](_0x4123b7['shift']());}catch(_0x5d1270){_0x4123b7['push'](_0x4123b7['shift']());}}}(_0x51c3,0x52172));import{Plugin as _0x3dc583}from'ckeditor5/src/core.js';import{IconDropbox as _0x36a673,IconFacebook as _0x5555b6,IconGoogleDrive as _0x5273a1,IconGooglePhotos as _0x1e398f,IconUploadcareImageUpload as _0xbf0618,IconUploadcareLink as _0x569a18,IconOneDrive as _0x2849c1}from'ckeditor5/src/icons.js';function _0x1e73(_0xba50b6,_0x433fb6){const _0x51c30b=_0x51c3();return _0x1e73=function(_0x1e7378,_0x357902){_0x1e7378=_0x1e7378-0x18c;let _0x4afe52=_0x51c30b[_0x1e7378];return _0x4afe52;},_0x1e73(_0xba50b6,_0x433fb6);}import{ButtonView as _0x131d37,MenuBarMenuListItemButtonView as _0x134c64}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x1eb22c}from'./uploadcareconfig.js';import{getTranslation as _0x3e6c3d}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 _0x3dc583{[_0x1ed353(0x196)];[_0x1ed353(0x1d7)];static get[_0x1ed353(0x1cb)](){const _0x34997a=_0x1ed353;return _0x34997a(0x1b1);}static get[_0x1ed353(0x1ba)](){return!0x0;}static get[_0x1ed353(0x1a5)](){return!0x0;}[_0x1ed353(0x18e)](){const _0x3bab56=_0x1ed353;this[_0x3bab56(0x196)]=this[_0x3bab56(0x19a)][_0x3bab56(0x1c8)][_0x3bab56(0x1a0)](_0x3bab56(0x196));const _0x19c3ea=this[_0x3bab56(0x19a)];this[_0x3bab56(0x1d7)]=setInterval(()=>{const _0x5651b8=_0x3bab56;let _0x5a706a;for(const _0x239aa9 in _0x19c3ea){const _0x856693=_0x239aa9,_0x72ce6a=_0x19c3ea[_0x856693];if(_0x5651b8(0x19d)==_0x72ce6a||_0x5651b8(0x1a7)==_0x72ce6a||_0x5651b8(0x1b0)==_0x72ce6a||_0x5651b8(0x1d2)==_0x72ce6a||_0x5651b8(0x1db)==_0x72ce6a||_0x5651b8(0x1d4)==_0x72ce6a||_0x5651b8(0x1ab)==_0x72ce6a||_0x5651b8(0x1c9)==_0x72ce6a){delete _0x19c3ea[_0x856693],_0x5a706a=_0x72ce6a,clearInterval(this[_0x5651b8(0x1d7)]),this[_0x5651b8(0x1d7)]=void 0x0;break;}}_0x5651b8(0x1a7)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x18c)),_0x5651b8(0x1b0)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x1d0)),_0x5651b8(0x1d2)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x1ce)),_0x5651b8(0x1db)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x198),_0x5651b8(0x194)),_0x5651b8(0x1d4)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x1ad)),_0x5651b8(0x1ab)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x1cf)),_0x5651b8(0x1c9)==_0x5a706a&&_0x19c3ea[_0x5651b8(0x1a4)](_0x5651b8(0x1d6));},0x3e8);}[_0x1ed353(0x197)](){const _0x46d280=_0x1ed353,{editor:_0x71c306}=this,_0x199e35=_0x71c306[_0x46d280(0x1d5)][_0x46d280(0x1a0)](_0x46d280(0x1ca));if(!_0x199e35)return;const _0x3ae745=this[_0x46d280(0x1dd)](_0x71c306[_0x46d280(0x1c8)][_0x46d280(0x1a0)](_0x46d280(0x1b5)))[_0x46d280(0x1d8)]((_0x1a2f3b,_0x73b4f0)=>{const _0x49cd0b=_0x46d280,_0x18f82a=this[_0x49cd0b(0x1ac)](_0x73b4f0[_0x49cd0b(0x1a6)]);return _0x1a2f3b[_0x18f82a]||(_0x1a2f3b[_0x18f82a]=[]),_0x1a2f3b[_0x18f82a][_0x49cd0b(0x1a3)](_0x73b4f0),_0x1a2f3b;},{});_0x71c306[_0x46d280(0x1b7)][_0x46d280(0x1a2)](_0x46d280(0x19c))&&_0x71c306[_0x46d280(0x1d5)][_0x46d280(0x1a0)](_0x46d280(0x1ca))&&Object[_0x46d280(0x18f)](_0x3ae745)[_0x46d280(0x1cc)](([_0x408267,_0x2441cf])=>{const _0x49d960=_0x46d280;_0x71c306[_0x49d960(0x1b7)][_0x49d960(0x1a0)](_0x49d960(0x19c))[_0x49d960(0x1c3)]({'name':_0x408267,'observable':()=>_0x199e35,'buttonViewCreator':()=>this[_0x49d960(0x1bc)](_0x2441cf),'formViewCreator':()=>this[_0x49d960(0x1c2)](_0x2441cf),'menuBarButtonViewCreator':()=>this[_0x49d960(0x1bd)](_0x2441cf),'override':_0x49d960(0x19b)!==_0x408267});});}[_0x1ed353(0x191)](){const _0x34183d=_0x1ed353;super[_0x34183d(0x191)](),this[_0x34183d(0x1d7)]&&clearInterval(this[_0x34183d(0x1d7)]);}[_0x1ed353(0x1dd)](_0x14fca4){const _0x234b0d=_0x1ed353,{locale:_0x4d4355}=this[_0x234b0d(0x19a)];return _0x14fca4[_0x234b0d(0x1af)](_0x5d71df=>{const _0x1fd03=_0x234b0d,_0x35c0f1=_0x3e6c3d(_0x4d4355,_0x5d71df,_0x1fd03(0x1b9));switch(_0x5d71df){case _0x1eb22c[_0x1fd03(0x192)]:return{'icon':_0xbf0618,'type':_0x1eb22c[_0x1fd03(0x192)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x18d)]:return{'icon':_0x569a18,'type':_0x1eb22c[_0x1fd03(0x18d)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x1a1)]:return{'icon':_0x36a673,'type':_0x1eb22c[_0x1fd03(0x1a1)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x1a9)]:return{'icon':_0x5555b6,'type':_0x1eb22c[_0x1fd03(0x1a9)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x1c6)]:return{'icon':_0x5273a1,'type':_0x1eb22c[_0x1fd03(0x1c6)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x1ae)]:return{'icon':_0x1e398f,'type':_0x1eb22c[_0x1fd03(0x1ae)],..._0x35c0f1};case _0x1eb22c[_0x1fd03(0x190)]:return{'icon':_0x2849c1,'type':_0x1eb22c[_0x1fd03(0x190)],..._0x35c0f1};}});}[_0x1ed353(0x1ac)](_0x1c7108){const _0x4c1f57=_0x1ed353;switch(_0x1c7108){case _0x1eb22c[_0x4c1f57(0x192)]:return _0x4c1f57(0x1d3);case _0x1eb22c[_0x4c1f57(0x18d)]:return _0x4c1f57(0x1c0);default:return _0x4c1f57(0x19b);}}[_0x1ed353(0x1a8)](_0x557bd2,_0x49efd8){const _0xff3f04=_0x1ed353,_0xd1ac4b=this[_0xff3f04(0x19a)],_0x459cea=new _0x557bd2(_0xd1ac4b[_0xff3f04(0x193)]),_0x33f48d=_0xd1ac4b[_0xff3f04(0x1d5)][_0xff3f04(0x1a0)](_0xff3f04(0x1ca));return _0x459cea[_0xff3f04(0x1b3)](_0xff3f04(0x1be))['to'](_0x33f48d),_0x459cea['on'](_0xff3f04(0x195),()=>{const _0x5ecfc0=_0xff3f04;_0x33f48d[_0x5ecfc0(0x195)](_0x49efd8);}),_0x459cea;}[_0x1ed353(0x1bc)](_0x577f55){const _0x5d67f1=_0x1ed353,{locale:_0x461234}=this[_0x5d67f1(0x19a)],_0x5e59aa=this[_0x5d67f1(0x19a)][_0x5d67f1(0x1b7)][_0x5d67f1(0x1a0)](_0x5d67f1(0x19c)),_0x87acb=_0x577f55[0x0],_0x258437=this[_0x5d67f1(0x1a8)](_0x131d37,_0x87acb[_0x5d67f1(0x1a6)]);return _0x258437[_0x5d67f1(0x1b6)]=_0x87acb[_0x5d67f1(0x1b6)],_0x258437[_0x5d67f1(0x1b3)](_0x5d67f1(0x1c4))['to'](_0x5e59aa,_0x5d67f1(0x19f),_0x3b5e9f=>_0x3e6c3d(_0x461234,_0x87acb[_0x5d67f1(0x1a6)],_0x3b5e9f?_0x5d67f1(0x1b4):_0x5d67f1(0x1b9))[_0x5d67f1(0x1bb)]),_0x258437[_0x5d67f1(0x199)]=!0x0,_0x258437;}[_0x1ed353(0x1c2)](_0x208ef0){const _0x43643a=_0x1ed353,{locale:_0x498527}=this[_0x43643a(0x19a)],_0x1f923f=this[_0x43643a(0x19a)][_0x43643a(0x1b7)][_0x43643a(0x1a0)](_0x43643a(0x19c));return _0x208ef0[_0x43643a(0x1af)](_0x27ad50=>{const _0x27deef=_0x43643a,_0x53e420=this[_0x27deef(0x1a8)](_0x131d37,_0x27ad50[_0x27deef(0x1a6)]);return _0x53e420[_0x27deef(0x1d1)]=!0x0,_0x53e420[_0x27deef(0x1b6)]=_0x27ad50[_0x27deef(0x1b6)],_0x53e420[_0x27deef(0x1b3)](_0x27deef(0x1c4))['to'](_0x1f923f,_0x27deef(0x19f),_0xa42a79=>_0x3e6c3d(_0x498527,_0x27ad50[_0x27deef(0x1a6)],_0xa42a79?_0x27deef(0x1b4):_0x27deef(0x1b9))[_0x27deef(0x1bb)]),_0x53e420;});}[_0x1ed353(0x1bd)](_0x4392a6){const _0x396263=_0x1ed353;return _0x4392a6[_0x396263(0x1af)](_0x1cfab6=>{const _0x1eda12=_0x396263,_0x542570=this[_0x1eda12(0x1a8)](_0x134c64,_0x1cfab6[_0x1eda12(0x1a6)]);return _0x542570[_0x1eda12(0x1b6)]=_0x1cfab6[_0x1eda12(0x1b6)],_0x542570[_0x1eda12(0x1c4)]=_0x1cfab6[_0x1eda12(0x1b2)],_0x542570;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2f2121}from'ckeditor5/src/core.js';import{FileRepository as _0x3e867a}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xae31f5}from'./uploadcareediting.js';import{UploadUtils as _0x2705bf}from'./utils/uploadutils.js';import{getImageUrls as _0x3cbea9}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x2f2121{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3e867a,_0xae31f5];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x389e04=this['editor'];if(!!!_0x389e04['config']['get']('uploadcare'))return;_0x389e04['plugins']['get'](_0x3e867a)['createUploadAdapter']=_0x91c23f=>new k(_0x91c23f,_0x389e04),_0x389e04['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x218bf7,{imageElement:_0x4035e7,data:_0xf09d05})=>{_0x389e04['model']['change'](_0xe1dfb1=>{_0xe1dfb1['setAttribute']('uploadcareImageId',_0xf09d05['uploadcareImageId'],_0x4035e7);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x54342c,_0x9f4742){this['loader']=_0x54342c,this['editor']=_0x9f4742,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x514e20=await this['loader']['file'];return _0x2705bf['upload']({'file':_0x514e20,'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':_0xa836ef=>{_0xa836ef&&_0xa836ef['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xa836ef['value']);}})['then'](async _0x22860b=>{const {imageFallbackUrl:_0x3cd4dd,imageSources:_0x595128}=_0x3cbea9(_0x22860b['cdnUrl'],_0x22860b['imageInfo']['width']);return{'uploadcareImageId':_0x22860b['uuid'],'default':_0x3cd4dd,'sources':_0x595128};})['catch'](()=>{const _0x197c7=t('Cannot\x20upload\x20file:')+('\x20'+_0x514e20['name']+'.');return Promise['reject'](_0x197c7);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xb98a33}from'../uploadcareconfig.js';export function getTranslation(_0x9ff135,_0x510223,_0x10a581){const t=_0x9ff135['t'],_0x51ab30=_0x9ff135['t'];switch(_0x510223){case _0xb98a33['Local']:return{'text':_0x51ab30('Insert'===_0x10a581?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x51ab30('From\x20computer')};case _0xb98a33['URL']:return{'text':'Insert'===_0x10a581?_0x51ab30('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x51ab30('Via\x20URL')};case _0xb98a33['Dropbox']:return{'text':t('Insert'===_0x10a581?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xb98a33['Facebook']:return{'text':t('Insert'===_0x10a581?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xb98a33['GDrive']:return{'text':t('Insert'===_0x10a581?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xb98a33['GPhotos']:return{'text':t('Insert'===_0x10a581?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xb98a33['OneDrive']:return{'text':t('Insert'===_0x10a581?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x510223;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0xc444e6=_0x1bcd;(function(_0x579dc3,_0x4431ed){var _0x296f5a=_0x1bcd,_0x3e1164=_0x579dc3();while(!![]){try{var _0x3cabcf=-parseInt(_0x296f5a(0x182))/0x1*(parseInt(_0x296f5a(0x18a))/0x2)+-parseInt(_0x296f5a(0x187))/0x3+-parseInt(_0x296f5a(0x178))/0x4*(parseInt(_0x296f5a(0x179))/0x5)+parseInt(_0x296f5a(0x17f))/0x6+parseInt(_0x296f5a(0x183))/0x7+-parseInt(_0x296f5a(0x17a))/0x8+parseInt(_0x296f5a(0x181))/0x9*(parseInt(_0x296f5a(0x180))/0xa);if(_0x3cabcf===_0x4431ed)break;else _0x3e1164['push'](_0x3e1164['shift']());}catch(_0x7bd5f9){_0x3e1164['push'](_0x3e1164['shift']());}}}(_0x2a5b,0x66c37));import{FocusTracker as _0x5bb1ef}from'ckeditor5/src/utils.js';function _0x2a5b(){var _0x3fe790=['2742576tKKQlQ','getFocusableElement','forwardCycle','createCollection','bindTemplate','4607310AXvepd','427130vaFXpD','216rRBqHa','6rJuaKV','14007kyEASr','true','focusCycler','fire','482787grPndU','focusTracker','div','174364WAshGC','7388eOdKVj','940UBEEQO'];_0x2a5b=function(){return _0x3fe790;};return _0x2a5b();}import{View as _0x88fa4,FocusCycler as _0x3d3852}from'ckeditor5/src/ui.js';function _0x1bcd(_0x36515a,_0x17fc7a){var _0x2a5b36=_0x2a5b();return _0x1bcd=function(_0x1bcda1,_0x363f46){_0x1bcda1=_0x1bcda1-0x178;var _0x387856=_0x2a5b36[_0x1bcda1];return _0x387856;},_0x1bcd(_0x36515a,_0x17fc7a);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x88fa4{[_0xc444e6(0x188)];[_0xc444e6(0x185)];constructor(_0x1372ca){var _0x3d175f=_0xc444e6;super(_0x1372ca),this[_0x3d175f(0x188)]=new _0x5bb1ef(),this[_0x3d175f(0x185)]=new _0x3d3852({'focusables':this[_0x3d175f(0x17d)](),'focusTracker':this[_0x3d175f(0x188)]});}[_0xc444e6(0x17b)](){var _0x39011b=_0xc444e6;return{'tag':_0x39011b(0x189),'attributes':{'aria-hidden':_0x39011b(0x184),'tabindex':'0'},'on':{'focus':this[_0x39011b(0x17e)]['to'](()=>{var _0x357d4d=_0x39011b;this[_0x357d4d(0x185)][_0x357d4d(0x186)](_0x357d4d(0x17c));})}};}}
|