@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251114.0 → 0.0.0-nightly-20251118.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/LICENSE.md +6 -6
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x92b7(){const _0xd9015b=['isPremiumPlugin','appendChild','model','_initImageProcessingIndicator','uploadcareImageReplace','true','5736612ebUgvW','upcast','1306855jHTWlF','body','9224ETqhav','PictureEditing','querySelector','UploadcareEditing','iconHrefResolver','remove','configElement','uploadcare.uploader','#uc-icon-arrow-down','getSelectedElement','imageBlock','afterInit','cleanupImage','uc-config','_ctxElement','3FRXkvL','view','_initCtx','_initSchema','selection','4qZvnWq','1107QyGnfG','insertImage','588gTZdnl','imageInline','downcast','contentLanguage','6950200vikclV','559732PALgBw','isRegistered','ctxElement','commands','fromCharCode','schema','attributeToAttribute','uc-upload-ctx-provider','uploader-','ucContextId','_initConversion','isOfficialPlugin','25080YpHGnc','listenTo','pluginName','uploadcare','replaceImageSource','conversion','for','elementToAttribute','add','execute','init','removeAttribute','uploadcareImageId','document','get','locale','requires','_initConfig','input[uploadcare-file-input]','render','once','\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','editing','getAttribute','editor','map','href','closeMax','extend','4213556caTEly','_configElement','config','join','data-uc-image-id','destroy','uploadcare.pubkey'];_0x92b7=function(){return _0xd9015b;};return _0x92b7();}const _0x2983d3=_0x3655;(function(_0x4bbf0f,_0x2b0602){const _0x2817e2=_0x3655,_0x4787c1=_0x4bbf0f();while(!![]){try{const _0x1866ff=parseInt(_0x2817e2(0x167))/0x1*(-parseInt(_0x2817e2(0x15f))/0x2)+-parseInt(_0x2817e2(0x15a))/0x3*(-parseInt(_0x2817e2(0x13a))/0x4)+-parseInt(_0x2817e2(0x173))/0x5*(-parseInt(_0x2817e2(0x162))/0x6)+parseInt(_0x2817e2(0x147))/0x7+parseInt(_0x2817e2(0x14b))/0x8*(parseInt(_0x2817e2(0x160))/0x9)+-parseInt(_0x2817e2(0x166))/0xa+-parseInt(_0x2817e2(0x149))/0xb;if(_0x1866ff===_0x2b0602)break;else _0x4787c1['push'](_0x4787c1['shift']());}catch(_0x54c8c1){_0x4787c1['push'](_0x4787c1['shift']());}}}(_0x92b7,0x8be4b));import{Plugin as _0x158ffc}from'ckeditor5/src/core.js';import{Dialog as _0xc8ea3}from'ckeditor5/src/ui.js';import{createElement as _0xd0d8bf,global as _0x1a86ae,uid as _0x2da603}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x19f982}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x18e2b4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x45e766}from'./utils/editingutils.js';function _0x3655(_0x41bcb9,_0x4ad497){const _0x92b798=_0x92b7();return _0x3655=function(_0x36554f,_0x2695d8){_0x36554f=_0x36554f-0x131;let _0xbd40aa=_0x92b798[_0x36554f];return _0xbd40aa;},_0x3655(_0x41bcb9,_0x4ad497);}export class UploadcareEditing extends _0x158ffc{[_0x2983d3(0x13b)]=null;[_0x2983d3(0x159)]=null;static get[_0x2983d3(0x175)](){const _0x428932=_0x2983d3;return _0x428932(0x14e);}static get[_0x2983d3(0x183)](){const _0x3598ce=_0x2983d3;return[_0x3598ce(0x14c),_0x18e2b4,_0xc8ea3];}static get[_0x2983d3(0x172)](){return!0x0;}static get[_0x2983d3(0x141)](){return!0x0;}[_0x2983d3(0x170)];get[_0x2983d3(0x151)](){const _0x351607=_0x2983d3;return this[_0x351607(0x13b)];}get[_0x2983d3(0x169)](){const _0x2fce50=_0x2983d3;return this[_0x2fce50(0x159)];}constructor(_0x53b05a){const _0x28a857=_0x2983d3;super(_0x53b05a),this[_0x28a857(0x170)]=_0x2da603();}[_0x2983d3(0x17d)](){const _0x30cc45=_0x2983d3,_0x548eb3=this[_0x30cc45(0x135)];_0x548eb3[_0x30cc45(0x16a)][_0x30cc45(0x17b)](_0x30cc45(0x176),new _0x19f982(_0x548eb3));}[_0x2983d3(0x156)](){const _0x4b4fd2=_0x2983d3;this[_0x4b4fd2(0x15d)](),this[_0x4b4fd2(0x171)](),this[_0x4b4fd2(0x184)](),this[_0x4b4fd2(0x15c)](),this[_0x4b4fd2(0x144)](),this[_0x4b4fd2(0x174)](this[_0x4b4fd2(0x135)],_0x4b4fd2(0x13f),()=>{const _0x227d69=_0x4b4fd2;this[_0x227d69(0x13b)]&&(this[_0x227d69(0x13b)][_0x227d69(0x150)](),this[_0x227d69(0x13b)]=null),this[_0x227d69(0x159)]&&(this[_0x227d69(0x159)][_0x227d69(0x150)](),this[_0x227d69(0x159)]=null);const _0x583df4=_0x1a86ae[_0x227d69(0x180)][_0x227d69(0x14d)](_0x227d69(0x185));_0x583df4&&_0x583df4[_0x227d69(0x150)]();}),async function(_0x4dddc8){const _0x4568cf=_0x395e96([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]),_0x44f399=0x535f8c3a,_0x49c9f7=0x5358f52a^_0x44f399,_0x4ecac3=window[_0x395e96([0x44,0x61,0x74,0x65])][_0x395e96([0x6e,0x6f,0x77])](),_0x23ccea=_0x4dddc8[_0x395e96([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x584f3f=new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59bc89=>{_0x23ccea[_0x395e96([0x6f,0x6e,0x63,0x65])](_0x395e96([0x72,0x65,0x61,0x64,0x79]),_0x59bc89);}),_0x36fd64={[_0x395e96([0x6b,0x74,0x79])]:_0x395e96([0x45,0x43]),[_0x395e96([0x75,0x73,0x65])]:_0x395e96([0x73,0x69,0x67]),[_0x395e96([0x63,0x72,0x76])]:_0x395e96([0x50,0x2d,0x32,0x35,0x36]),[_0x395e96([0x78])]:_0x395e96([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]),[_0x395e96([0x79])]:_0x395e96([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]),[_0x395e96([0x61,0x6c,0x67])]:_0x395e96([0x45,0x53,0x32,0x35,0x36])},_0x256ee2=_0x23ccea[_0x395e96([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x395e96([0x67,0x65,0x74])](_0x395e96([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15e9ef(){let _0x20533d,_0x36f252=null,_0xed40c5=null;try{if(_0x256ee2==_0x395e96([0x47,0x50,0x4c]))return _0x395e96([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20533d=_0x7accd5(),!_0x20533d)return _0x395e96([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20533d[_0x395e96([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xed40c5=_0x37d6dc(_0x20533d[_0x395e96([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20533d[_0x395e96([0x6a,0x74,0x69])])),await _0x30305f()?_0x4e4c36()?_0x46cf80()?_0x395e96([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c223b()?(_0x20533d[_0x395e96([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x395e96([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36f252=_0x58f550(_0x395e96([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20533d[_0x395e96([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x395e96([0x74,0x72,0x69,0x61,0x6c])&&(_0x36f252=_0x58f550(_0x395e96([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x552064()):_0x395e96([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x395e96([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x395e96([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x395e96([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46cf80(){const _0x4d05d1=[_0x395e96([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x395e96([0x74,0x72,0x69,0x61,0x6c])][_0x395e96([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20533d[_0x395e96([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ecac3/0x3e8:0xe10*_0x49c9f7;return _0x20533d[_0x395e96([0x65,0x78,0x70])]<_0x4d05d1;}function _0x4e4c36(){const _0x246fb7=_0x20533d[_0x395e96([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x246fb7&&(!!_0x246fb7[_0x395e96([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395e96([0x2a]))||!!_0x246fb7[_0x395e96([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395e96([0x55,0x50,0x4c,0x43])));}function _0x4c223b(){const _0x8f1dcf=_0x3655,_0x1749d9=_0x20533d[_0x395e96([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1749d9||0x0==_0x1749d9[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a6f81}=new URL(window[_0x395e96([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x8f1dcf(0x137)]);if(_0x1749d9[_0x395e96([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a6f81))return!0x0;const _0x396a2d=_0x5a6f81[_0x395e96([0x73,0x70,0x6c,0x69,0x74])](_0x395e96([0x2e]));return _0x1749d9[_0x395e96([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e7639=>_0x1e7639[_0x395e96([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395e96([0x2a])))[_0x395e96([0x6d,0x61,0x70])](_0x1c4f2d=>_0x1c4f2d[_0x395e96([0x73,0x70,0x6c,0x69,0x74])](_0x395e96([0x2e])))[_0x395e96([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24fa9c=>_0x24fa9c[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x396a2d[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x395e96([0x6d,0x61,0x70])](_0x24b554=>Array(_0x396a2d[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x24b554[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x395e96([0x66,0x69,0x6c,0x6c])](_0x24b554[0x0]===_0x395e96([0x2a])?_0x395e96([0x2a]):'')[_0x395e96([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x24b554))[_0x395e96([0x73,0x6f,0x6d,0x65])](_0x29020d=>_0x396a2d[_0x395e96([0x65,0x76,0x65,0x72,0x79])]((_0x53608d,_0x15e19e)=>_0x29020d[_0x15e19e]===_0x53608d||_0x29020d[_0x15e19e]===_0x395e96([0x2a])));}function _0x552064(){return _0x36f252&&_0xed40c5?new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aa8d3,_0x184b08)=>{_0x36f252[_0x395e96([0x74,0x68,0x65,0x6e])](_0x2aa8d3,_0x184b08),_0xed40c5[_0x395e96([0x74,0x68,0x65,0x6e])](_0x4646a6=>{_0x4646a6!=_0x395e96([0x56,0x61,0x6c,0x69,0x64])&&_0x2aa8d3(_0x4646a6);},_0x184b08);}):_0x36f252||_0xed40c5||_0x395e96([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37d6dc(_0x506372,_0x8c1306){return new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c48ab=>{if(_0xdfa199())return _0x2c48ab(_0x395e96([0x56,0x61,0x6c,0x69,0x64]));_0xe12577(),_0x23ccea[_0x395e96([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x395e96([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d0e6c=!0x1;const _0x40ac26=_0x2da603();function _0x114a12(_0x4d10d7){return!!_0x4d10d7&&(typeof _0x4d10d7===_0x395e96([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d10d7===_0x395e96([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d10d7[_0x395e96([0x74,0x68,0x65,0x6e])]===_0x395e96([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d10d7[_0x395e96([0x63,0x61,0x74,0x63,0x68])]===_0x395e96([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x82361f(_0x412935){_0x29fdb3(_0x412935)[_0x395e96([0x74,0x68,0x65,0x6e])](_0x4371f5=>{if(!_0x4371f5||_0x4371f5[_0x395e96([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x395e96([0x6f,0x6b]))return _0x395e96([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x220631(_0x278e8c(_0x40ac26+_0x8c1306))!=_0x4371f5[_0x395e96([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x395e96([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x395e96([0x56,0x61,0x6c,0x69,0x64]);})[_0x395e96([0x74,0x68,0x65,0x6e])](_0x4b470e=>(_0x3a3190(),_0x4b470e),()=>{const _0x22aff3=_0x2df4fb();return null==_0x22aff3?(_0x3a3190(),_0x395e96([0x56,0x61,0x6c,0x69,0x64])):_0x395e96(_0x4ecac3-_0x22aff3>(0x7753083a^_0x44f399)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x395e96([0x74,0x68,0x65,0x6e])](_0x2c48ab)[_0x395e96([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c48ab(_0x395e96([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3273c1=0x536962ba^_0x44f399;function _0x3a3190(){const _0x2c8fdb=_0x395e96([0x6c,0x6c,0x63,0x74,0x2d])+_0x220631(_0x278e8c(_0x506372)),_0x51262e=_0x309e35(_0x220631(window[_0x395e96([0x4d,0x61,0x74,0x68])][_0x395e96([0x63,0x65,0x69,0x6c])](_0x4ecac3/_0x3273c1)));window[_0x395e96([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395e96([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c8fdb,_0x51262e);}function _0x2df4fb(){const _0x690565=_0x395e96([0x6c,0x6c,0x63,0x74,0x2d])+_0x220631(_0x278e8c(_0x506372)),_0x2ab1c1=window[_0x395e96([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x395e96([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x690565);return _0x2ab1c1?window[_0x395e96([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x309e35(_0x2ab1c1),0x10)*_0x3273c1:null;}function _0x29fdb3(_0x44cb9b){return new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x274a4d,_0x618a3)=>{_0x44cb9b[_0x395e96([0x74,0x68,0x65,0x6e])](_0x274a4d,_0x618a3),window[_0x395e96([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x618a3,0x535e58fa^_0x44f399);});}}_0x23ccea[_0x395e96([0x6f,0x6e])](_0x395e96([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14d83b,_0x5c43ba)=>{if(_0x5c43ba[0x0]!=_0x506372)return _0x2c48ab(_0x395e96([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c43ba[0x1]={..._0x5c43ba[0x1],[_0x395e96([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40ac26};},{[_0x395e96([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395e96([0x68,0x69,0x67,0x68])}),_0x23ccea[_0x395e96([0x6f,0x6e])](_0x395e96([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a6d6c=>{_0x114a12(_0x1a6d6c[_0x395e96([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d0e6c=!0x0,_0x82361f(_0x1a6d6c[_0x395e96([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x395e96([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x395e96([0x6c,0x6f,0x77])}),_0x584f3f[_0x395e96([0x74,0x68,0x65,0x6e])](()=>{_0x3d0e6c||_0x2c48ab(_0x395e96([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdfa199(){return _0x23ccea[_0x395e96([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395e96([0x76,0x69,0x65,0x77])][_0x395e96([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x395e96([0x61,0x75,0x74,0x6f]);}function _0xe12577(){_0x23ccea[_0x395e96([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395e96([0x76,0x69,0x65,0x77])][_0x395e96([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x395e96([0x61,0x75,0x74,0x6f]);}}function _0x58f550(_0x52352d){const _0xf08b5d=[new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14b795=>setTimeout(_0x14b795,0x5356b2f6^_0x44f399)),_0x584f3f[_0x395e96([0x74,0x68,0x65,0x6e])](()=>new window[(_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x203bda=>{let _0x596fd6=0x0;_0x23ccea[_0x395e96([0x6d,0x6f,0x64,0x65,0x6c])][_0x395e96([0x6f,0x6e])](_0x395e96([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b5b0d,_0x297508)=>{_0x297508[0x0][_0x395e96([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x596fd6++,_0x596fd6==(0x535f8dc2^_0x44f399)&&(_0x203bda(),_0x1b5b0d[_0x395e96([0x6f,0x66,0x66])]());});}))];return window[_0x395e96([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x395e96([0x72,0x61,0x63,0x65])](_0xf08b5d)[_0x395e96([0x74,0x68,0x65,0x6e])](()=>_0x52352d);}async function _0x2e32d0(){await _0x584f3f,_0x23ccea[_0x395e96([0x6d,0x6f,0x64,0x65,0x6c])][_0x395e96([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x422e27,_0x23ccea[_0x395e96([0x6d,0x6f,0x64,0x65,0x6c])][_0x395e96([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x422e27,_0x23ccea[_0x395e96([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x395e96([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c0869(_0x13b493){const _0x4b403f=_0x1179ca();_0x23ccea[_0x4b403f]=_0x395e96([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x13b493,_0x13b493!=_0x395e96([0x56,0x61,0x6c,0x69,0x64])&&_0x2e32d0();}function _0x1179ca(){const _0x5225e3=window[_0x395e96([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x395e96([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x395e96([0x6e,0x6f,0x77])]())[_0x395e96([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x395e96([0x2e]),'');let _0x2af95d=_0x395e96([0x68]);for(let _0x1b8ec5=0x0;_0x1b8ec5<_0x5225e3[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b8ec5+=0x2){let _0x1ec3b9=window[_0x395e96([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5225e3[_0x395e96([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b8ec5,_0x1b8ec5+0x2));_0x1ec3b9>=_0x4568cf[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ec3b9-=_0x4568cf[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2af95d+=_0x4568cf[_0x1ec3b9];}return _0x2af95d;}function _0x7accd5(){const _0xed03f3=_0x256ee2[_0x395e96([0x73,0x70,0x6c,0x69,0x74])](_0x395e96([0x2e]));if(0x3!=_0xed03f3[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x240b3(_0xed03f3[0x1]);function _0x240b3(_0x5dc2ad){const _0x4536c3=_0xba9404(_0x5dc2ad);return _0x4536c3&&_0x57703b()?_0x4536c3:null;function _0x57703b(){const _0x42d5a4=_0x4536c3[_0x395e96([0x6a,0x74,0x69])],_0x24451c=window[_0x395e96([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42d5a4[_0x395e96([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42d5a4[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44cbd8={..._0x4536c3,[_0x395e96([0x6a,0x74,0x69])]:_0x42d5a4[_0x395e96([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42d5a4[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44cbd8[_0x395e96([0x76,0x63])],_0x278e8c(_0x44cbd8)==_0x24451c;}}}async function _0x30305f(){let _0x4dfe48=!0x0;try{const _0x1d45af=_0x256ee2[_0x395e96([0x73,0x70,0x6c,0x69,0x74])](_0x395e96([0x2e])),[_0x20a61a,_0x925456,_0xaddfe5]=_0x1d45af;return _0x4b1b86(_0x20a61a),await _0x2a750a(_0x20a61a,_0x925456,_0xaddfe5),_0x4dfe48;}catch{return!0x1;}function _0x4b1b86(_0x47e0a7){const _0x4eb819=_0xba9404(_0x47e0a7);_0x4eb819&&_0x4eb819[_0x395e96([0x61,0x6c,0x67])]==_0x395e96([0x45,0x53,0x32,0x35,0x36])||(_0x4dfe48=!0x1);}async function _0x2a750a(_0x4b0635,_0x1ddbbd,_0x373d57){const _0x1e3695=window[_0x395e96([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x395e96([0x66,0x72,0x6f,0x6d])](_0x3c7894(_0x373d57),_0x179244=>_0x179244[_0x395e96([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5657a6=new window[(_0x395e96([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x395e96([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b0635+_0x395e96([0x2e])+_0x1ddbbd),_0xb70aa7=window[_0x395e96([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x395e96([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb70aa7)return;const _0x268a77=await _0xb70aa7[_0x395e96([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x395e96([0x6a,0x77,0x6b]),_0x36fd64,{[_0x395e96([0x6e,0x61,0x6d,0x65])]:_0x395e96([0x45,0x43,0x44,0x53,0x41]),[_0x395e96([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x395e96([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x395e96([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb70aa7[_0x395e96([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x395e96([0x6e,0x61,0x6d,0x65])]:_0x395e96([0x45,0x43,0x44,0x53,0x41]),[_0x395e96([0x68,0x61,0x73,0x68])]:{[_0x395e96([0x6e,0x61,0x6d,0x65])]:_0x395e96([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x268a77,_0x1e3695,_0x5657a6)||(_0x4dfe48=!0x1);}}function _0xba9404(_0x4158e9){return _0x4158e9[_0x395e96([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x395e96([0x65,0x79]))?JSON[_0x395e96([0x70,0x61,0x72,0x73,0x65])](_0x3c7894(_0x4158e9)):null;}function _0x3c7894(_0x5dfc44){return window[_0x395e96([0x61,0x74,0x6f,0x62])](_0x5dfc44[_0x395e96([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x395e96([0x2b]))[_0x395e96([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x395e96([0x2f])));}function _0x278e8c(_0x33d4f8){let _0x9161f3=0x1505;function _0x4e1303(_0x410722){for(let _0x4def6d=0x0;_0x4def6d<_0x410722[_0x395e96([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4def6d++){const _0x3698b0=_0x410722[_0x395e96([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4def6d);_0x9161f3=(_0x9161f3<<0x5)+_0x9161f3+_0x3698b0,_0x9161f3&=_0x9161f3;}}function _0x283a7f(_0x2c177f){Array[_0x395e96([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2c177f)?_0x2c177f[_0x395e96([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x283a7f):_0x2c177f&&typeof _0x2c177f==_0x395e96([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x395e96([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2c177f)[_0x395e96([0x73,0x6f,0x72,0x74])]()[_0x395e96([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4816c3,_0x299c23])=>{_0x4e1303(_0x4816c3),_0x283a7f(_0x299c23);}):_0x4e1303(window[_0x395e96([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2c177f));}return _0x283a7f(_0x33d4f8),_0x9161f3>>>0x0;}function _0x220631(_0x1d83f1){return _0x1d83f1[_0x395e96([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x395e96([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x395e96([0x30]));}function _0x309e35(_0x461b9d){return _0x461b9d[_0x395e96([0x73,0x70,0x6c,0x69,0x74])]('')[_0x395e96([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x395e96([0x6a,0x6f,0x69,0x6e])]('');}function _0x422e27(){}function _0x395e96(_0x331dac){const _0x36956a=_0x3655;return _0x331dac[_0x36956a(0x136)](_0x494537=>String[_0x36956a(0x16b)](_0x494537))[_0x36956a(0x13d)]('');}_0x3c0869(await _0x15e9ef());}(this);}[_0x2983d3(0x15d)](){const _0x39844c=_0x2983d3,_0x4ab262=this[_0x39844c(0x135)][_0x39844c(0x143)][_0x39844c(0x16c)];_0x4ab262[_0x39844c(0x168)](_0x39844c(0x155))&&_0x4ab262[_0x39844c(0x139)](_0x39844c(0x155),{'allowAttributes':[_0x39844c(0x17f)]}),_0x4ab262[_0x39844c(0x168)](_0x39844c(0x163))&&_0x4ab262[_0x39844c(0x139)](_0x39844c(0x163),{'allowAttributes':[_0x39844c(0x17f)]});}[_0x2983d3(0x171)](){const _0x5d2e87=_0x2983d3,_0x1f29bd=this[_0x5d2e87(0x135)];_0x1f29bd[_0x5d2e87(0x178)][_0x5d2e87(0x179)](_0x5d2e87(0x164))[_0x5d2e87(0x16d)]({'model':_0x5d2e87(0x17f),'view':_0x5d2e87(0x13e)}),_0x1f29bd[_0x5d2e87(0x178)][_0x5d2e87(0x179)](_0x5d2e87(0x148))[_0x5d2e87(0x17a)]({'model':{'key':_0x5d2e87(0x17f),'value':_0x154278=>_0x154278[_0x5d2e87(0x134)](_0x5d2e87(0x13e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x50c1b1=_0x1f29bd[_0x5d2e87(0x16a)][_0x5d2e87(0x181)](_0x5d2e87(0x177));_0x50c1b1&&this[_0x5d2e87(0x174)](_0x50c1b1,_0x5d2e87(0x157),(_0x261e30,[_0x21d053,_0x3379ab])=>{const _0x19b5e2=_0x5d2e87;_0x21d053[_0x19b5e2(0x17e)](_0x19b5e2(0x17f),_0x3379ab);});}[_0x2983d3(0x184)](){const _0x4afd33=_0x2983d3,_0xc035cc=this[_0x4afd33(0x135)][_0x4afd33(0x13c)][_0x4afd33(0x181)](_0x4afd33(0x152))||{},_0x5bf184=this[_0x4afd33(0x135)][_0x4afd33(0x13c)][_0x4afd33(0x181)](_0x4afd33(0x140))||'';this[_0x4afd33(0x13b)]=_0xd0d8bf(_0x1a86ae[_0x4afd33(0x180)],_0x4afd33(0x158),{..._0xc035cc,'pubkey':_0x5bf184,'ctx-name':_0x4afd33(0x16f)+this[_0x4afd33(0x170)],'sourceList':'','imgOnly':_0x4afd33(0x146),'removeCopyright':_0x4afd33(0x146),'localeName':this[_0x4afd33(0x135)][_0x4afd33(0x182)][_0x4afd33(0x165)],'externalSourcesEmbedCss':_0x4afd33(0x132)}),this[_0x4afd33(0x13b)][_0x4afd33(0x14f)]=_0x2d7d23=>{const _0xffe44d=_0x4afd33;if(_0xffe44d(0x138)==_0x2d7d23)return _0xffe44d(0x153);},_0x1a86ae[_0x4afd33(0x180)][_0x4afd33(0x14a)][_0x4afd33(0x142)](this[_0x4afd33(0x13b)]);}[_0x2983d3(0x15c)](){const _0x3b3740=_0x2983d3;this[_0x3b3740(0x159)]=_0xd0d8bf(_0x1a86ae[_0x3b3740(0x180)],_0x3b3740(0x16e),{'ctx-name':_0x3b3740(0x16f)+this[_0x3b3740(0x170)]}),_0x1a86ae[_0x3b3740(0x180)][_0x3b3740(0x14a)][_0x3b3740(0x142)](this[_0x3b3740(0x159)]);}[_0x2983d3(0x144)](){const _0x551c37=_0x2983d3,_0x5ea310=this[_0x551c37(0x135)][_0x551c37(0x16a)][_0x551c37(0x181)](_0x551c37(0x161));_0x5ea310&&this[_0x551c37(0x174)](_0x5ea310,_0x551c37(0x17c),()=>{const _0x46c03a=_0x551c37,_0x3ec857=this[_0x46c03a(0x135)][_0x46c03a(0x143)][_0x46c03a(0x180)][_0x46c03a(0x15e)][_0x46c03a(0x154)]();_0x3ec857&&_0x3ec857[_0x46c03a(0x134)](_0x46c03a(0x17f))&&this[_0x46c03a(0x135)][_0x46c03a(0x133)][_0x46c03a(0x15b)][_0x46c03a(0x131)](_0x46c03a(0x186),()=>{const _0x18c11e=_0x46c03a;_0x45e766(this[_0x18c11e(0x135)],_0x3ec857);});});const _0x3c809c=this[_0x551c37(0x135)][_0x551c37(0x16a)][_0x551c37(0x181)](_0x551c37(0x145));_0x3c809c&&this[_0x551c37(0x174)](_0x3c809c,_0x551c37(0x17c),()=>{const _0x41fe03=_0x551c37,_0x509066=this[_0x41fe03(0x135)][_0x41fe03(0x143)][_0x41fe03(0x180)][_0x41fe03(0x15e)][_0x41fe03(0x154)]();_0x509066&&_0x509066[_0x41fe03(0x134)](_0x41fe03(0x17f))&&this[_0x41fe03(0x135)][_0x41fe03(0x133)][_0x41fe03(0x15b)][_0x41fe03(0x131)](_0x41fe03(0x186),()=>{const _0x5a6c6c=_0x41fe03;_0x45e766(this[_0x5a6c6c(0x135)],_0x509066);});});}}
|
|
23
|
+
const _0x14d7e6=_0x23a9;(function(_0xc32a48,_0x3960c7){const _0x150648=_0x23a9,_0x28d082=_0xc32a48();while(!![]){try{const _0x2c10e7=parseInt(_0x150648(0x162))/0x1+parseInt(_0x150648(0x16a))/0x2+-parseInt(_0x150648(0x153))/0x3*(-parseInt(_0x150648(0x12f))/0x4)+parseInt(_0x150648(0x144))/0x5+parseInt(_0x150648(0x172))/0x6*(parseInt(_0x150648(0x15c))/0x7)+-parseInt(_0x150648(0x170))/0x8+parseInt(_0x150648(0x148))/0x9*(-parseInt(_0x150648(0x142))/0xa);if(_0x2c10e7===_0x3960c7)break;else _0x28d082['push'](_0x28d082['shift']());}catch(_0x5ada20){_0x28d082['push'](_0x28d082['shift']());}}}(_0x1d7a,0x92769));import{Plugin as _0x53592c}from'ckeditor5/src/core.js';import{Dialog as _0x4a3d5f}from'ckeditor5/src/ui.js';import{createElement as _0x51f448,global as _0x5cc863,uid as _0x988528}from'ckeditor5/src/utils.js';function _0x1d7a(){const _0x446861=['27868RDuapK','render','iconHrefResolver','fromCharCode','listenTo','join','uploadcareImageId','attributeToAttribute','replaceImageSource','editor','uploadcare.uploader','pluginName','input[uploadcare-file-input]','model','removeAttribute','getAttribute','contentLanguage','ctxElement','insertImage','39030eIbaki','uploader-','5014645kzTHnb','isPremiumPlugin','data-uc-image-id','extend','1899TtTiTF','afterInit','body','isOfficialPlugin','true','view','PictureEditing','closeMax','editing','ucContextId','downcast','171tSIwtv','href','destroy','imageBlock','#uc-icon-arrow-down','imageInline','configElement','appendChild','locale','56266QBJlmq','cleanupImage','_ctxElement','_initConversion','config','_initImageProcessingIndicator','74585edkhJE','once','upcast','_initCtx','_initConfig','querySelector','add','uc-upload-ctx-provider','282416QNZxOK','commands','\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','uploadcare.pubkey','UploadcareEditing','for','8033864PMEHmp','selection','606UHXUgK','uc-config','isRegistered','elementToAttribute','uploadcare','execute','uploadcareImageReplace','remove','get','_initSchema','schema','getSelectedElement','requires','init','document','map','_configElement','conversion'];_0x1d7a=function(){return _0x446861;};return _0x1d7a();}import{UploadcareCommand as _0x4ef9ee}from'./uploadcarecommand.js';function _0x23a9(_0x5a57ac,_0x425d78){const _0x1d7a49=_0x1d7a();return _0x23a9=function(_0x23a9a5,_0x2223d4){_0x23a9a5=_0x23a9a5-0x12f;let _0x2cfab4=_0x1d7a49[_0x23a9a5];return _0x2cfab4;},_0x23a9(_0x5a57ac,_0x425d78);}import{UploadcareUploadAdapter as _0xf2cd8}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x23f420}from'./utils/editingutils.js';export class UploadcareEditing extends _0x53592c{[_0x14d7e6(0x182)]=null;[_0x14d7e6(0x15e)]=null;static get[_0x14d7e6(0x13a)](){const _0x4479a7=_0x14d7e6;return _0x4479a7(0x16e);}static get[_0x14d7e6(0x17e)](){const _0x3e26ad=_0x14d7e6;return[_0x3e26ad(0x14e),_0xf2cd8,_0x4a3d5f];}static get[_0x14d7e6(0x14b)](){return!0x0;}static get[_0x14d7e6(0x145)](){return!0x0;}[_0x14d7e6(0x151)];get[_0x14d7e6(0x159)](){const _0x3394fa=_0x14d7e6;return this[_0x3394fa(0x182)];}get[_0x14d7e6(0x140)](){const _0x5c287e=_0x14d7e6;return this[_0x5c287e(0x15e)];}constructor(_0x54c133){const _0xea3c96=_0x14d7e6;super(_0x54c133),this[_0xea3c96(0x151)]=_0x988528();}[_0x14d7e6(0x17f)](){const _0x26fc0e=_0x14d7e6,_0x532029=this[_0x26fc0e(0x138)];_0x532029[_0x26fc0e(0x16b)][_0x26fc0e(0x168)](_0x26fc0e(0x176),new _0x4ef9ee(_0x532029));}[_0x14d7e6(0x149)](){const _0x46a5c1=_0x14d7e6;this[_0x46a5c1(0x17b)](),this[_0x46a5c1(0x15f)](),this[_0x46a5c1(0x166)](),this[_0x46a5c1(0x165)](),this[_0x46a5c1(0x161)](),this[_0x46a5c1(0x133)](this[_0x46a5c1(0x138)],_0x46a5c1(0x155),()=>{const _0x120746=_0x46a5c1;this[_0x120746(0x182)]&&(this[_0x120746(0x182)][_0x120746(0x179)](),this[_0x120746(0x182)]=null),this[_0x120746(0x15e)]&&(this[_0x120746(0x15e)][_0x120746(0x179)](),this[_0x120746(0x15e)]=null);const _0x46f932=_0x5cc863[_0x120746(0x180)][_0x120746(0x167)](_0x120746(0x13b));_0x46f932&&_0x46f932[_0x120746(0x179)]();}),async function(_0x222f74){const _0x2b0561=_0x5703b8([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]),_0xbb7336=0x535f8c3a,_0x23549b=0x5358f54a^_0xbb7336,_0x308759=window[_0x5703b8([0x44,0x61,0x74,0x65])][_0x5703b8([0x6e,0x6f,0x77])](),_0x59de8f=_0x222f74[_0x5703b8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4636ef=new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x213292=>{_0x59de8f[_0x5703b8([0x6f,0x6e,0x63,0x65])](_0x5703b8([0x72,0x65,0x61,0x64,0x79]),_0x213292);}),_0x4e9206={[_0x5703b8([0x6b,0x74,0x79])]:_0x5703b8([0x45,0x43]),[_0x5703b8([0x75,0x73,0x65])]:_0x5703b8([0x73,0x69,0x67]),[_0x5703b8([0x63,0x72,0x76])]:_0x5703b8([0x50,0x2d,0x32,0x35,0x36]),[_0x5703b8([0x78])]:_0x5703b8([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]),[_0x5703b8([0x79])]:_0x5703b8([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]),[_0x5703b8([0x61,0x6c,0x67])]:_0x5703b8([0x45,0x53,0x32,0x35,0x36])},_0x3caabd=_0x59de8f[_0x5703b8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5703b8([0x67,0x65,0x74])](_0x5703b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2642e6(){let _0x1afb68,_0x127ffb=null,_0x280dd9=null;try{if(_0x3caabd==_0x5703b8([0x47,0x50,0x4c]))return _0x5703b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1afb68=_0x225177(),!_0x1afb68)return _0x5703b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1afb68[_0x5703b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x280dd9=_0x35bdb8(_0x1afb68[_0x5703b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1afb68[_0x5703b8([0x6a,0x74,0x69])])),await _0x44381d()?_0x40c676()?_0x67c6b1()?_0x5703b8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44ee95()?(_0x1afb68[_0x5703b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5703b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x127ffb=_0x11e6a5(_0x5703b8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1afb68[_0x5703b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5703b8([0x74,0x72,0x69,0x61,0x6c])&&(_0x127ffb=_0x11e6a5(_0x5703b8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x33e1f6()):_0x5703b8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5703b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5703b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5703b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x67c6b1(){const _0x4977e1=[_0x5703b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5703b8([0x74,0x72,0x69,0x61,0x6c])][_0x5703b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afb68[_0x5703b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x308759/0x3e8:0xe10*_0x23549b;return _0x1afb68[_0x5703b8([0x65,0x78,0x70])]<_0x4977e1;}function _0x40c676(){const _0x34a0c3=_0x1afb68[_0x5703b8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x34a0c3&&(!!_0x34a0c3[_0x5703b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5703b8([0x2a]))||!!_0x34a0c3[_0x5703b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5703b8([0x55,0x50,0x4c,0x43])));}function _0x44ee95(){const _0x379c22=_0x23a9,_0x35a8e0=_0x1afb68[_0x5703b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35a8e0||0x0==_0x35a8e0[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d2320}=new URL(window[_0x5703b8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x379c22(0x154)]);if(_0x35a8e0[_0x5703b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d2320))return!0x0;const _0x4836ce=_0x2d2320[_0x5703b8([0x73,0x70,0x6c,0x69,0x74])](_0x5703b8([0x2e]));return _0x35a8e0[_0x5703b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18273b=>_0x18273b[_0x5703b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5703b8([0x2a])))[_0x5703b8([0x6d,0x61,0x70])](_0x260ef6=>_0x260ef6[_0x5703b8([0x73,0x70,0x6c,0x69,0x74])](_0x5703b8([0x2e])))[_0x5703b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c9586=>_0x2c9586[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4836ce[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5703b8([0x6d,0x61,0x70])](_0x1a2fb8=>Array(_0x4836ce[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a2fb8[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5703b8([0x66,0x69,0x6c,0x6c])](_0x1a2fb8[0x0]===_0x5703b8([0x2a])?_0x5703b8([0x2a]):'')[_0x5703b8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a2fb8))[_0x5703b8([0x73,0x6f,0x6d,0x65])](_0x549569=>_0x4836ce[_0x5703b8([0x65,0x76,0x65,0x72,0x79])]((_0x4609dd,_0x5f5141)=>_0x549569[_0x5f5141]===_0x4609dd||_0x549569[_0x5f5141]===_0x5703b8([0x2a])));}function _0x33e1f6(){return _0x127ffb&&_0x280dd9?new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a4d63,_0x43d42c)=>{_0x127ffb[_0x5703b8([0x74,0x68,0x65,0x6e])](_0x2a4d63,_0x43d42c),_0x280dd9[_0x5703b8([0x74,0x68,0x65,0x6e])](_0xd444b6=>{_0xd444b6!=_0x5703b8([0x56,0x61,0x6c,0x69,0x64])&&_0x2a4d63(_0xd444b6);},_0x43d42c);}):_0x127ffb||_0x280dd9||_0x5703b8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35bdb8(_0x367ee4,_0x48701b){return new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37fcb1=>{if(_0x4635b0())return _0x37fcb1(_0x5703b8([0x56,0x61,0x6c,0x69,0x64]));_0x5d0eac(),_0x59de8f[_0x5703b8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5703b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57560b=!0x1;const _0x32234c=_0x988528();function _0x30253d(_0x43d30b){return!!_0x43d30b&&(typeof _0x43d30b===_0x5703b8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x43d30b===_0x5703b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x43d30b[_0x5703b8([0x74,0x68,0x65,0x6e])]===_0x5703b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x43d30b[_0x5703b8([0x63,0x61,0x74,0x63,0x68])]===_0x5703b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5089ca(_0x58706c){_0x4ab25c(_0x58706c)[_0x5703b8([0x74,0x68,0x65,0x6e])](_0x461c46=>{if(!_0x461c46||_0x461c46[_0x5703b8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5703b8([0x6f,0x6b]))return _0x5703b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1df060(_0x4d265e(_0x32234c+_0x48701b))!=_0x461c46[_0x5703b8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5703b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5703b8([0x56,0x61,0x6c,0x69,0x64]);})[_0x5703b8([0x74,0x68,0x65,0x6e])](_0x430ac0=>(_0x4d9f8e(),_0x430ac0),()=>{const _0x3a6dce=_0x4eb749();return null==_0x3a6dce?(_0x4d9f8e(),_0x5703b8([0x56,0x61,0x6c,0x69,0x64])):_0x5703b8(_0x308759-_0x3a6dce>(0x7753083a^_0xbb7336)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5703b8([0x74,0x68,0x65,0x6e])](_0x37fcb1)[_0x5703b8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x37fcb1(_0x5703b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x44e058=0x536962ba^_0xbb7336;function _0x4d9f8e(){const _0x5db0e0=_0x5703b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1df060(_0x4d265e(_0x367ee4)),_0x1a6737=_0x143c68(_0x1df060(window[_0x5703b8([0x4d,0x61,0x74,0x68])][_0x5703b8([0x63,0x65,0x69,0x6c])](_0x308759/_0x44e058)));window[_0x5703b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5703b8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5db0e0,_0x1a6737);}function _0x4eb749(){const _0x47b314=_0x5703b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x1df060(_0x4d265e(_0x367ee4)),_0x2af328=window[_0x5703b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5703b8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47b314);return _0x2af328?window[_0x5703b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x143c68(_0x2af328),0x10)*_0x44e058:null;}function _0x4ab25c(_0x58380a){return new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c3c5b,_0x1d344c)=>{_0x58380a[_0x5703b8([0x74,0x68,0x65,0x6e])](_0x1c3c5b,_0x1d344c),window[_0x5703b8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d344c,0x535e58fa^_0xbb7336);});}}_0x59de8f[_0x5703b8([0x6f,0x6e])](_0x5703b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c9b28,_0x45f5dc)=>{if(_0x45f5dc[0x0]!=_0x367ee4)return _0x37fcb1(_0x5703b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45f5dc[0x1]={..._0x45f5dc[0x1],[_0x5703b8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32234c};},{[_0x5703b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5703b8([0x68,0x69,0x67,0x68])}),_0x59de8f[_0x5703b8([0x6f,0x6e])](_0x5703b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd5a204=>{_0x30253d(_0xd5a204[_0x5703b8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57560b=!0x0,_0x5089ca(_0xd5a204[_0x5703b8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5703b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5703b8([0x6c,0x6f,0x77])}),_0x4636ef[_0x5703b8([0x74,0x68,0x65,0x6e])](()=>{_0x57560b||_0x37fcb1(_0x5703b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4635b0(){return _0x59de8f[_0x5703b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5703b8([0x76,0x69,0x65,0x77])][_0x5703b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5703b8([0x61,0x75,0x74,0x6f]);}function _0x5d0eac(){_0x59de8f[_0x5703b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5703b8([0x76,0x69,0x65,0x77])][_0x5703b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5703b8([0x61,0x75,0x74,0x6f]);}}function _0x11e6a5(_0x4e2893){const _0x9b2ace=[new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x549ce1=>setTimeout(_0x549ce1,0x5356b2f6^_0xbb7336)),_0x4636ef[_0x5703b8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24e16d=>{let _0x3b867d=0x0;_0x59de8f[_0x5703b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5703b8([0x6f,0x6e])](_0x5703b8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x391011,_0x5f1ac9)=>{_0x5f1ac9[0x0][_0x5703b8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b867d++,_0x3b867d==(0x535f8dc2^_0xbb7336)&&(_0x24e16d(),_0x391011[_0x5703b8([0x6f,0x66,0x66])]());});}))];return window[_0x5703b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5703b8([0x72,0x61,0x63,0x65])](_0x9b2ace)[_0x5703b8([0x74,0x68,0x65,0x6e])](()=>_0x4e2893);}async function _0x4d5a10(){await _0x4636ef,_0x59de8f[_0x5703b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5703b8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2131d2,_0x59de8f[_0x5703b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5703b8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2131d2,_0x59de8f[_0x5703b8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5703b8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50af71(_0x63a10b){const _0x45662f=_0x5a0c08();_0x59de8f[_0x45662f]=_0x5703b8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x63a10b,_0x63a10b!=_0x5703b8([0x56,0x61,0x6c,0x69,0x64])&&_0x4d5a10();}function _0x5a0c08(){const _0x2ce335=window[_0x5703b8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5703b8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5703b8([0x6e,0x6f,0x77])]())[_0x5703b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5703b8([0x2e]),'');let _0x2676bc=_0x5703b8([0x68]);for(let _0x18f6ae=0x0;_0x18f6ae<_0x2ce335[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18f6ae+=0x2){let _0x525489=window[_0x5703b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ce335[_0x5703b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18f6ae,_0x18f6ae+0x2));_0x525489>=_0x2b0561[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x525489-=_0x2b0561[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2676bc+=_0x2b0561[_0x525489];}return _0x2676bc;}function _0x225177(){const _0x57b680=_0x3caabd[_0x5703b8([0x73,0x70,0x6c,0x69,0x74])](_0x5703b8([0x2e]));if(0x3!=_0x57b680[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43ea5b(_0x57b680[0x1]);function _0x43ea5b(_0x26db7f){const _0x2d1e3a=_0x24cc8d(_0x26db7f);return _0x2d1e3a&&_0x18613f()?_0x2d1e3a:null;function _0x18613f(){const _0x3a6e23=_0x2d1e3a[_0x5703b8([0x6a,0x74,0x69])],_0x56a9ea=window[_0x5703b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a6e23[_0x5703b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6e23[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x195473={..._0x2d1e3a,[_0x5703b8([0x6a,0x74,0x69])]:_0x3a6e23[_0x5703b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a6e23[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x195473[_0x5703b8([0x76,0x63])],_0x4d265e(_0x195473)==_0x56a9ea;}}}async function _0x44381d(){let _0x75a90a=!0x0;try{const _0x157789=_0x3caabd[_0x5703b8([0x73,0x70,0x6c,0x69,0x74])](_0x5703b8([0x2e])),[_0x54da32,_0xcd9c22,_0x26806c]=_0x157789;return _0x28793b(_0x54da32),await _0x4ca045(_0x54da32,_0xcd9c22,_0x26806c),_0x75a90a;}catch{return!0x1;}function _0x28793b(_0x36c305){const _0x426093=_0x24cc8d(_0x36c305);_0x426093&&_0x426093[_0x5703b8([0x61,0x6c,0x67])]==_0x5703b8([0x45,0x53,0x32,0x35,0x36])||(_0x75a90a=!0x1);}async function _0x4ca045(_0x364039,_0x21fda6,_0x37e8e8){const _0x12b271=window[_0x5703b8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5703b8([0x66,0x72,0x6f,0x6d])](_0x483a1b(_0x37e8e8),_0x566737=>_0x566737[_0x5703b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16cabe=new window[(_0x5703b8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5703b8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x364039+_0x5703b8([0x2e])+_0x21fda6),_0x313695=window[_0x5703b8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5703b8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x313695)return;const _0x558580=await _0x313695[_0x5703b8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5703b8([0x6a,0x77,0x6b]),_0x4e9206,{[_0x5703b8([0x6e,0x61,0x6d,0x65])]:_0x5703b8([0x45,0x43,0x44,0x53,0x41]),[_0x5703b8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5703b8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5703b8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x313695[_0x5703b8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5703b8([0x6e,0x61,0x6d,0x65])]:_0x5703b8([0x45,0x43,0x44,0x53,0x41]),[_0x5703b8([0x68,0x61,0x73,0x68])]:{[_0x5703b8([0x6e,0x61,0x6d,0x65])]:_0x5703b8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x558580,_0x12b271,_0x16cabe)||(_0x75a90a=!0x1);}}function _0x24cc8d(_0x4a65a1){return _0x4a65a1[_0x5703b8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5703b8([0x65,0x79]))?JSON[_0x5703b8([0x70,0x61,0x72,0x73,0x65])](_0x483a1b(_0x4a65a1)):null;}function _0x483a1b(_0x2ea89e){return window[_0x5703b8([0x61,0x74,0x6f,0x62])](_0x2ea89e[_0x5703b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5703b8([0x2b]))[_0x5703b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5703b8([0x2f])));}function _0x4d265e(_0x43c5d7){let _0x37f0ea=0x1505;function _0x23f0cc(_0x9d784){for(let _0x284a78=0x0;_0x284a78<_0x9d784[_0x5703b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x284a78++){const _0x3a11db=_0x9d784[_0x5703b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x284a78);_0x37f0ea=(_0x37f0ea<<0x5)+_0x37f0ea+_0x3a11db,_0x37f0ea&=_0x37f0ea;}}function _0xe5c4fb(_0x529ade){Array[_0x5703b8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x529ade)?_0x529ade[_0x5703b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe5c4fb):_0x529ade&&typeof _0x529ade==_0x5703b8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5703b8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x529ade)[_0x5703b8([0x73,0x6f,0x72,0x74])]()[_0x5703b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc2acb4,_0x136bae])=>{_0x23f0cc(_0xc2acb4),_0xe5c4fb(_0x136bae);}):_0x23f0cc(window[_0x5703b8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x529ade));}return _0xe5c4fb(_0x43c5d7),_0x37f0ea>>>0x0;}function _0x1df060(_0x2e9108){return _0x2e9108[_0x5703b8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5703b8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5703b8([0x30]));}function _0x143c68(_0x5415c4){return _0x5415c4[_0x5703b8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5703b8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5703b8([0x6a,0x6f,0x69,0x6e])]('');}function _0x2131d2(){}function _0x5703b8(_0x3af9c7){const _0x46559a=_0x23a9;return _0x3af9c7[_0x46559a(0x181)](_0x3f7c0a=>String[_0x46559a(0x132)](_0x3f7c0a))[_0x46559a(0x134)]('');}_0x50af71(await _0x2642e6());}(this);}[_0x14d7e6(0x17b)](){const _0x6d3380=_0x14d7e6,_0x493316=this[_0x6d3380(0x138)][_0x6d3380(0x13c)][_0x6d3380(0x17c)];_0x493316[_0x6d3380(0x174)](_0x6d3380(0x156))&&_0x493316[_0x6d3380(0x147)](_0x6d3380(0x156),{'allowAttributes':[_0x6d3380(0x135)]}),_0x493316[_0x6d3380(0x174)](_0x6d3380(0x158))&&_0x493316[_0x6d3380(0x147)](_0x6d3380(0x158),{'allowAttributes':[_0x6d3380(0x135)]});}[_0x14d7e6(0x15f)](){const _0x410d80=_0x14d7e6,_0x54190c=this[_0x410d80(0x138)];_0x54190c[_0x410d80(0x183)][_0x410d80(0x16f)](_0x410d80(0x152))[_0x410d80(0x136)]({'model':_0x410d80(0x135),'view':_0x410d80(0x146)}),_0x54190c[_0x410d80(0x183)][_0x410d80(0x16f)](_0x410d80(0x164))[_0x410d80(0x175)]({'model':{'key':_0x410d80(0x135),'value':_0x3086dd=>_0x3086dd[_0x410d80(0x13e)](_0x410d80(0x146))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x12d662=_0x54190c[_0x410d80(0x16b)][_0x410d80(0x17a)](_0x410d80(0x137));_0x12d662&&this[_0x410d80(0x133)](_0x12d662,_0x410d80(0x15d),(_0x5c0373,[_0x436546,_0x4a524a])=>{const _0x2677bc=_0x410d80;_0x436546[_0x2677bc(0x13d)](_0x2677bc(0x135),_0x4a524a);});}[_0x14d7e6(0x166)](){const _0x4676a4=_0x14d7e6,_0x207d52=this[_0x4676a4(0x138)][_0x4676a4(0x160)][_0x4676a4(0x17a)](_0x4676a4(0x139))||{},_0x328aff=this[_0x4676a4(0x138)][_0x4676a4(0x160)][_0x4676a4(0x17a)](_0x4676a4(0x16d))||'';this[_0x4676a4(0x182)]=_0x51f448(_0x5cc863[_0x4676a4(0x180)],_0x4676a4(0x173),{..._0x207d52,'pubkey':_0x328aff,'ctx-name':_0x4676a4(0x143)+this[_0x4676a4(0x151)],'sourceList':'','imgOnly':_0x4676a4(0x14c),'removeCopyright':_0x4676a4(0x14c),'localeName':this[_0x4676a4(0x138)][_0x4676a4(0x15b)][_0x4676a4(0x13f)],'externalSourcesEmbedCss':_0x4676a4(0x16c)}),this[_0x4676a4(0x182)][_0x4676a4(0x131)]=_0xa5a51e=>{const _0x9f5448=_0x4676a4;if(_0x9f5448(0x14f)==_0xa5a51e)return _0x9f5448(0x157);},_0x5cc863[_0x4676a4(0x180)][_0x4676a4(0x14a)][_0x4676a4(0x15a)](this[_0x4676a4(0x182)]);}[_0x14d7e6(0x165)](){const _0x22c407=_0x14d7e6;this[_0x22c407(0x15e)]=_0x51f448(_0x5cc863[_0x22c407(0x180)],_0x22c407(0x169),{'ctx-name':_0x22c407(0x143)+this[_0x22c407(0x151)]}),_0x5cc863[_0x22c407(0x180)][_0x22c407(0x14a)][_0x22c407(0x15a)](this[_0x22c407(0x15e)]);}[_0x14d7e6(0x161)](){const _0x2a1190=_0x14d7e6,_0x1b46d6=this[_0x2a1190(0x138)][_0x2a1190(0x16b)][_0x2a1190(0x17a)](_0x2a1190(0x141));_0x1b46d6&&this[_0x2a1190(0x133)](_0x1b46d6,_0x2a1190(0x177),()=>{const _0x23f371=_0x2a1190,_0x307d3a=this[_0x23f371(0x138)][_0x23f371(0x13c)][_0x23f371(0x180)][_0x23f371(0x171)][_0x23f371(0x17d)]();_0x307d3a&&_0x307d3a[_0x23f371(0x13e)](_0x23f371(0x135))&&this[_0x23f371(0x138)][_0x23f371(0x150)][_0x23f371(0x14d)][_0x23f371(0x163)](_0x23f371(0x130),()=>{const _0x46d821=_0x23f371;_0x23f420(this[_0x46d821(0x138)],_0x307d3a);});});const _0x30ceff=this[_0x2a1190(0x138)][_0x2a1190(0x16b)][_0x2a1190(0x17a)](_0x2a1190(0x178));_0x30ceff&&this[_0x2a1190(0x133)](_0x30ceff,_0x2a1190(0x177),()=>{const _0x105c83=_0x2a1190,_0x4e9bc6=this[_0x105c83(0x138)][_0x105c83(0x13c)][_0x105c83(0x180)][_0x105c83(0x171)][_0x105c83(0x17d)]();_0x4e9bc6&&_0x4e9bc6[_0x105c83(0x13e)](_0x105c83(0x135))&&this[_0x105c83(0x138)][_0x105c83(0x150)][_0x105c83(0x14d)][_0x105c83(0x163)](_0x105c83(0x130),()=>{const _0x38e108=_0x105c83;_0x23f420(this[_0x38e108(0x138)],_0x4e9bc6);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2a55cc,ObservableMixin as _0x2ac0b5}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x19aa64}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x380d4f}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x379a79}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x59d93f}from'../../utils/uploadutils.js';import{getImageUrls as _0x139f1b,getImageDimension as _0x10e76b}from'../../utils/editingutils.js';import{isAncestor as _0x13d608}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2ac0b5(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3a8df3,_0xb65056,_0x2ba041){super(),this['_editor']=_0x3a8df3,this['_dialog']=_0xb65056,this['_imageElement']=_0x2ba041,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 _0x8d67a8=this['_imageElement'],_0x1464a8=_0x8d67a8['getAttribute']('uploadcareImageId'),_0x2fc5cb=_0x8d67a8['getAttribute']('src');if(_0x1464a8)await this['_loadImageInfo'](_0x1464a8,_0x2fc5cb);else{if(this['_imageCache']['has'](_0x2fc5cb)){const _0x55dd3b=this['_imageCache']['get'](_0x2fc5cb);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55dd3b['url'],this['imageDimension']=_0x55dd3b['dimension'],this['imageId']=_0x55dd3b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x121286}=this['_editor'],t=_0x121286['t'],_0x3363fd=new _0x379a79(_0x121286,this['imageStatus'],this['_attributes']);_0x3363fd['bind']('status')['to'](this,'imageStatus'),_0x3363fd['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3363fd['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3363fd['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3363fd,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x380d4f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3363fd,'position':_0x19aa64['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3363fd['focus']();},'onHide':()=>{_0x3363fd['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x59a662=>!_0x13d608(_0x59a662,_0x3363fd['element'])}});}['_loadImageInfo'](_0x42d5c2,_0x4a1ad5){return _0x59d93f['getInfo'](_0x42d5c2,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x452e6a=>{const {width:_0x5abc3f,height:_0x1e473c}=_0x452e6a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a1ad5,this['imageDimension']={'width':_0x5abc3f,'height':_0x1e473c},this['imageId']=_0x42d5c2;})['catch'](_0x24b0aa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x24b0aa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x30bea3,_0x3f93f9){return this['_getImageAsFile'](_0x30bea3)['then'](_0x57ad10=>_0x59d93f['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':_0x3f93f9['signal'],'file':_0x57ad10,'onProgress':_0x46099d=>{_0x46099d&&_0x46099d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x46099d['value']));}}))['then'](_0x36fe04=>{const {width:_0x32e627,height:_0x3becfa}=_0x36fe04['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x36fe04['cdnUrl'],this['imageDimension']={'width':_0x32e627,'height':_0x3becfa},this['imageId']=_0x36fe04['uuid'],this['imageUploadProgress']=null;const _0x5c21fa=_0x30bea3['getAttribute']('src');this['_imageCache']['set'](_0x5c21fa,{'id':_0x36fe04['uuid'],'url':_0x36fe04['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3da8c9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3da8c9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x18673b,_0x1ac30f){_0x18673b['on']('apply',(_0x46db3,_0x363ad3)=>{this['_replaceImage'](_0x1ac30f,_0x363ad3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x18673b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x18673b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3294ef,_0x34607f,_0x5df7cf){const _0x364c4b=this['_editor'],{width:_0x19c869,height:_0x43655f}=_0x10e76b(_0x34607f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x569b35,imageSources:_0x3619a4}=_0x139f1b(_0x34607f,_0x19c869);_0x364c4b['model']['change'](_0x2ce73b=>{if('$graveyard'===_0x3294ef['root']['rootName']){_0x364c4b['execute']('insertImage',{'imageType':_0x3294ef['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3294ef['getAttributes']()),'uploadcareImageId':_0x5df7cf,'src':_0x569b35,'sources':_0x3619a4,'width':_0x19c869,'height':_0x43655f}});const _0x376ab0=_0x3294ef['getChildren']();_0x3294ef=_0x364c4b['model']['document']['selection']['getSelectedElement']();for(const _0x1622e2 of _0x376ab0)_0x2ce73b['append'](_0x2ce73b['cloneElement'](_0x1622e2),_0x3294ef);}else _0x2ce73b['setSelection'](_0x3294ef,'on'),_0x364c4b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3294ef['getAttributes']()),'uploadcareImageId':_0x5df7cf,'src':_0x569b35,'sources':_0x3619a4,'width':_0x19c869,'height':_0x43655f},_0x3294ef);_0x2ce73b['setSelection'](_0x3294ef,'on');});}async['_getImageAsFile'](_0xd2a424){const _0x26ffa4=_0x2a55cc['window'],_0x23dc63=_0x2a55cc['document']['location']['href'],_0x106ed0=new _0x26ffa4['URL'](_0xd2a424['getAttribute']('src'),_0x23dc63);if('data:'===_0x106ed0['protocol']){const _0x3548cd=_0x106ed0['href']['split'](','),_0xabbf01=_0x3548cd[0x0]['match'](/:(.*?);/)[0x1],_0x3142ad=_0xabbf01['split']('/')[0x1],_0x3845a9=_0x26ffa4['atob'](_0x3548cd[_0x3548cd['length']-0x1]);let _0x1eefe6=_0x3845a9['length'];const _0x566d81=new _0x26ffa4['Uint8Array'](_0x1eefe6);for(;_0x1eefe6--;)_0x566d81[_0x1eefe6]=_0x3845a9['charCodeAt'](_0x1eefe6);return new _0x26ffa4['File']([_0x566d81],'image.'+_0x3142ad,{'type':_0xabbf01});}const _0x18de67=_0x106ed0['href']['split']('/'),_0x73bb13=_0x18de67[_0x18de67['length']-0x1],_0x25aa6d=_0x73bb13['split']('.')[0x1];return _0x26ffa4['fetch'](_0x106ed0['href'])['then'](_0xf5f1ba=>_0xf5f1ba['clone']()['blob']())['then'](_0x1c9779=>new _0x26ffa4['File']([_0x1c9779],_0x73bb13,{'type':'image/'+_0x25aa6d}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xe257(_0x46980e,_0x518b29){const _0x3a9dfb=_0x3a9d();return _0xe257=function(_0xe2579,_0x38d75a){_0xe2579=_0xe2579-0xfb;let _0x670d31=_0x3a9dfb[_0xe2579];return _0x670d31;},_0xe257(_0x46980e,_0x518b29);}(function(_0x57a7d1,_0xf2ab23){const _0x4550a1=_0xe257,_0x3dd724=_0x57a7d1();while(!![]){try{const _0x269b65=parseInt(_0x4550a1(0xfc))/0x1*(-parseInt(_0x4550a1(0x100))/0x2)+parseInt(_0x4550a1(0x10b))/0x3+-parseInt(_0x4550a1(0x107))/0x4+parseInt(_0x4550a1(0x103))/0x5*(parseInt(_0x4550a1(0xfd))/0x6)+-parseInt(_0x4550a1(0x109))/0x7+-parseInt(_0x4550a1(0xfe))/0x8+parseInt(_0x4550a1(0x106))/0x9;if(_0x269b65===_0xf2ab23)break;else _0x3dd724['push'](_0x3dd724['shift']());}catch(_0x563046){_0x3dd724['push'](_0x3dd724['shift']());}}}(_0x3a9d,0xe73bf));import{View as _0x384196}from'ckeditor5/src/ui.js';function _0x3a9d(){const _0x3132cb=['uc-cloud-image-editor','6830RRCVHU','415068yxxeEg','2575832WDtgni','setTemplate','122ddWSrX','uc-light','set','40gAhurI','imageSrc','ck-uploadcare-theme','15494058KWBpQV','4923008oYWpLd','image-edit','159173FFZTQI','bindTemplate','1992747lIEMCi'];_0x3a9d=function(){return _0x3132cb;};return _0x3a9d();}export class UploadcareImageEditFormEditingView extends _0x384196{constructor(_0x5de829,_0x514d04){const _0x12d339=_0xe257;super(_0x5de829);const _0x6c1271=this[_0x12d339(0x10a)];this[_0x12d339(0x102)](_0x12d339(0x104),''),this[_0x12d339(0xff)]({'tag':_0x12d339(0xfb),'attributes':{..._0x514d04,'class':[_0x12d339(0x101),_0x12d339(0x105)],'ctx-name':_0x12d339(0x108),'cdn-url':_0x6c1271['to'](_0x12d339(0x104))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x5b2539}from'ckeditor5/src/icons.js';import{ButtonView as _0x3b281d,IconView as _0x421b87,View as _0x190ded}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x190ded{constructor(_0x541cd4){super(_0x541cd4);const t=_0x541cd4['t'];this['set']('errorType',null);const _0x1f16a1=new _0x3b281d(_0x541cd4);_0x1f16a1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1f16a1['withText']=!0x0,_0x1f16a1['class']='ck-button-action',_0x1f16a1['on']('execute',()=>{this['fire']('retry');}),_0x1f16a1['bind']('isVisible')['to'](this,'errorType',_0x138891=>'NotFound'!==_0x138891);const _0x4462c4=new _0x421b87();_0x4462c4['content']=_0x5b2539,_0x4462c4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1222a2=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':[_0x4462c4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1222a2['to']('errorType',_0x452885=>t('NotFound'!==_0x452885?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1f16a1]},{'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 _0x3778ef,View as _0x1c93c8}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x1c93c8{constructor(_0xac666b){super(_0xac666b);const t=_0xac666b['t'],_0x32659c=this['bindTemplate'],_0x4754b4=new _0x3778ef();_0x4754b4['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':[_0x4754b4,{'text':_0x32659c['to']('imageUploadProgress',_0x49b840=>t('Loading\x20image...')+'\x20('+(_0x49b840||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 _0x4fb1eb=_0x4f42;(function(_0x3cf8e6,_0x155153){const _0x3a5ce7=_0x4f42,_0x38161f=_0x3cf8e6();while(!![]){try{const _0x156add=-parseInt(_0x3a5ce7(0xbd))/0x1*(parseInt(_0x3a5ce7(0xae))/0x2)+-parseInt(_0x3a5ce7(0xbf))/0x3*(-parseInt(_0x3a5ce7(0xab))/0x4)+parseInt(_0x3a5ce7(0xad))/0x5*(-parseInt(_0x3a5ce7(0xb8))/0x6)+parseInt(_0x3a5ce7(0xaa))/0x7+-parseInt(_0x3a5ce7(0xd2))/0x8+parseInt(_0x3a5ce7(0xa6))/0x9*(-parseInt(_0x3a5ce7(0xcf))/0xa)+-parseInt(_0x3a5ce7(0xa7))/0xb*(-parseInt(_0x3a5ce7(0xd9))/0xc);if(_0x156add===_0x155153)break;else _0x38161f['push'](_0x38161f['shift']());}catch(_0x3b9c1f){_0x38161f['push'](_0x38161f['shift']());}}}(_0x1e27,0xa0708));import{View as _0x5e612e}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x55fb24}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0xa7af00}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3378bf}from'./uploadcareimageeditformeditingview.js';function _0x4f42(_0x2391d3,_0x51dd8f){const _0x1e272=_0x1e27();return _0x4f42=function(_0x4f4205,_0x51ff1a){_0x4f4205=_0x4f4205-0xa1;let _0x7086a9=_0x1e272[_0x4f4205];return _0x7086a9;},_0x4f42(_0x2391d3,_0x51dd8f);}import{DialogFocusManagerView as _0x17b3d8}from'../../utils/dialogfocusmanagerview.js';function _0x1e27(){const _0xa7550d=['addEventListener','observe','div','60lZZqna','set','clear','disconnect','status','119236DhHrpj','detail','799626DQtTjp','change:status','ck-reset_all-excluded','_waitForImageEditorComponent','_addErrorViewListeners','_focusableView','toLowerCase','add','cancel','once','_setView','_items','uc-cloud-image-editor','getFocusableElement','ck-uploadcare-form','_loadingView','790KpmDEV','element','error','4027296viYnEE','target','setTemplate','_addUploadcareImageEditorListeners','length','focus','_errorView','16334004FBLemn','addMany','cdnUrl','fire','addedNodes','nodeName','81936utZCjK','11nZzHKb','filter','retry','3445631rmozgz','8TtThyg','apply','193730XCYlTU','2fCiulT','render','createCollection','querySelector','ready','uploading','_editingView'];_0x1e27=function(){return _0xa7550d;};return _0x1e27();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x17b3d8{[_0x4fb1eb(0xca)];[_0x4fb1eb(0xce)];[_0x4fb1eb(0xd8)];[_0x4fb1eb(0xb4)];[_0x4fb1eb(0xc4)];constructor(_0x26b3a6,_0xf388ad,_0x30144b){const _0x3aef61=_0x4fb1eb;super(_0x26b3a6),this[_0x3aef61(0xca)]=this[_0x3aef61(0xb0)](),this[_0x3aef61(0xce)]=new _0x55fb24(_0x26b3a6),this[_0x3aef61(0xd8)]=new _0xa7af00(_0x26b3a6),this[_0x3aef61(0xb4)]=new _0x3378bf(_0x26b3a6,_0x30144b),this[_0x3aef61(0xc4)]=new _0x5e612e(_0x26b3a6),this[_0x3aef61(0xc4)][_0x3aef61(0xd4)](this[_0x3aef61(0xcc)]()),this[_0x3aef61(0xb9)](_0x3aef61(0xbc),_0xf388ad),this[_0x3aef61(0xd4)]({'tag':_0x3aef61(0xb7),'attributes':{'class':['ck',_0x3aef61(0xc1),_0x3aef61(0xcd)],'tabindex':'-1'},'children':this[_0x3aef61(0xca)]}),this[_0x3aef61(0xc9)](),this[_0x3aef61(0xc8)](_0x3aef61(0xaf),()=>{const _0xf3c17a=_0x3aef61;this[_0xf3c17a(0xc2)](this[_0xf3c17a(0xd0)],_0x4944a3=>{const _0x1004cc=_0xf3c17a;this[_0x1004cc(0xd5)](_0x4944a3);});}),this['on'](_0x3aef61(0xc0),()=>{const _0x2e47b0=_0x3aef61;this[_0x2e47b0(0xc9)]();}),this[_0x3aef61(0xc3)]();}[_0x4fb1eb(0xd7)](){const _0x2a77ad=_0x4fb1eb;this[_0x2a77ad(0xd0)][_0x2a77ad(0xd7)]();}[_0x4fb1eb(0xc9)](){const _0x2df91e=_0x4fb1eb;switch(this[_0x2df91e(0xca)][_0x2df91e(0xba)](),this[_0x2df91e(0xbc)]){case _0x2df91e(0xb3):this[_0x2df91e(0xca)][_0x2df91e(0xc6)](this[_0x2df91e(0xce)]);break;case _0x2df91e(0xd1):this[_0x2df91e(0xca)][_0x2df91e(0xc6)](this[_0x2df91e(0xd8)]);break;case _0x2df91e(0xb2):this[_0x2df91e(0xca)][_0x2df91e(0xa1)]([this[_0x2df91e(0xb4)],this[_0x2df91e(0xc4)]]);}}[_0x4fb1eb(0xc2)](_0x40ed65,_0x47cc40){const _0x1b8288=_0x4fb1eb,_0xc9cdfe=_0x1b8288(0xcb),_0x29f4bf=_0x40ed65[_0x1b8288(0xb1)](_0xc9cdfe);if(_0x29f4bf)return _0x47cc40(_0x29f4bf);const _0x49e657=new MutationObserver(_0x3c7e8c=>{const _0x200ac0=_0x1b8288,_0x216aae=_0x3c7e8c[_0x200ac0(0xa8)](_0x57b125=>_0x57b125[_0x200ac0(0xd3)]===_0x40ed65&&_0x57b125[_0x200ac0(0xa4)][_0x200ac0(0xd6)]>0x0&&_0x57b125[_0x200ac0(0xa4)][0x0][_0x200ac0(0xa5)][_0x200ac0(0xc5)]()===_0xc9cdfe);_0x216aae[_0x200ac0(0xd6)]&&(_0x49e657[_0x200ac0(0xbb)](),_0x47cc40(_0x216aae[0x0][_0x200ac0(0xa4)][0x0]));});_0x49e657[_0x1b8288(0xb6)](_0x40ed65,{'childList':!0x0,'subtree':!0x0});}[_0x4fb1eb(0xd5)](_0x118837){const _0x368ddf=_0x4fb1eb;_0x118837[_0x368ddf(0xb5)](_0x368ddf(0xac),_0x382691=>{const _0xfd289d=_0x368ddf;this[_0xfd289d(0xa3)](_0xfd289d(0xac),{'imageSrc':_0x382691[_0xfd289d(0xbe)][_0xfd289d(0xa2)]});}),_0x118837[_0x368ddf(0xb5)](_0x368ddf(0xc7),()=>{const _0x145cac=_0x368ddf;this[_0x145cac(0xa3)](_0x145cac(0xc7));});}[_0x4fb1eb(0xc3)](){const _0x542beb=_0x4fb1eb;this[_0x542beb(0xd8)]['on'](_0x542beb(0xa9),()=>{const _0x24e70c=_0x542beb;this[_0x24e70c(0xa3)](_0x24e70c(0xa9));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4b01ee=_0x32f8;(function(_0x2b2223,_0x470b2a){const _0x40b439=_0x32f8,_0x407ea1=_0x2b2223();while(!![]){try{const _0x6597ae=parseInt(_0x40b439(0x1d2))/0x1+parseInt(_0x40b439(0x1b9))/0x2+-parseInt(_0x40b439(0x1c0))/0x3*(parseInt(_0x40b439(0x1d3))/0x4)+parseInt(_0x40b439(0x1cb))/0x5+parseInt(_0x40b439(0x1be))/0x6*(parseInt(_0x40b439(0x1d1))/0x7)+-parseInt(_0x40b439(0x1cd))/0x8*(parseInt(_0x40b439(0x1c4))/0x9)+-parseInt(_0x40b439(0x1b8))/0xa*(parseInt(_0x40b439(0x1d0))/0xb);if(_0x6597ae===_0x470b2a)break;else _0x407ea1['push'](_0x407ea1['shift']());}catch(_0x417cc4){_0x407ea1['push'](_0x407ea1['shift']());}}}(_0x503b,0x2e5d1));import{Command as _0x474b50}from'ckeditor5/src/core.js';import{Dialog as _0xa24b9c}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3a4c1a}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x3ca4ed}from'../utils/editingutils.js';function _0x32f8(_0x3febb0,_0x65904d){const _0x503bcd=_0x503b();return _0x32f8=function(_0x32f816,_0x202429){_0x32f816=_0x32f816-0x1b4;let _0x38c064=_0x503bcd[_0x32f816];return _0x38c064;},_0x32f8(_0x3febb0,_0x65904d);}export class UploadcareImageEditCommand extends _0x474b50{[_0x4b01ee(0x1bf)];static get[_0x4b01ee(0x1b7)](){return[_0xa24b9c];}[_0x4b01ee(0x1c3)];constructor(_0x1b725b){const _0x3f6e3e=_0x4b01ee;super(_0x1b725b),this[_0x3f6e3e(0x1bf)]=void 0x0,this[_0x3f6e3e(0x1c3)]=_0x3ca4ed(_0x1b725b[_0x3f6e3e(0x1ba)][_0x3f6e3e(0x1b6)](_0x3f6e3e(0x1b4))||[]),this[_0x3f6e3e(0x1bc)]({'isActive':!0x1});}[_0x4b01ee(0x1cf)](){const _0x1f037b=_0x4b01ee,_0x237fe7=this[_0x1f037b(0x1cc)][_0x1f037b(0x1d4)][_0x1f037b(0x1b5)][_0x1f037b(0x1c8)][_0x1f037b(0x1bd)]();this[_0x1f037b(0x1bb)]=this[_0x1f037b(0x1c3)](_0x237fe7);}[_0x4b01ee(0x1ce)](){const _0x121642=_0x4b01ee;this[_0x121642(0x1bf)]&&(this[_0x121642(0x1c7)](_0x121642(0x1c6)),this[_0x121642(0x1bf)]=void 0x0);const _0x5df578=this[_0x121642(0x1cc)][_0x121642(0x1d4)][_0x121642(0x1b5)][_0x121642(0x1c8)][_0x121642(0x1bd)]();_0x5df578&&(_0x5df578['is'](_0x121642(0x1c1),_0x121642(0x1c2))||_0x5df578['is'](_0x121642(0x1c1),_0x121642(0x1c9)))&&(this[_0x121642(0x1bf)]=new _0x3a4c1a(this[_0x121642(0x1cc)],this[_0x121642(0x1cc)][_0x121642(0x1ca)][_0x121642(0x1b6)](_0xa24b9c),_0x5df578),this[_0x121642(0x1c5)](_0x121642(0x1c6))['to'](this[_0x121642(0x1bf)],_0x121642(0x1c6)));}}function _0x503b(){const _0x27cf0e=['selection','imageInline','plugins','263130vuoehk','editor','1757608QJytgq','execute','refresh','11rCdsPE','113001nTUscZ','161330pUfWcc','4RMBGPO','model','uploadcare.allowExternalImagesEditing','document','get','requires','630680eRphFX','380500TMezXD','config','isEnabled','set','getSelectedElement','54pKxOKW','imageEditController','230457AQaiRu','element','imageBlock','_isEditable','9Egvgpw','bind','isActive','unbind'];_0x503b=function(){return _0x27cf0e;};return _0x503b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5297d1=_0x2227;function _0x2227(_0x25e973,_0x49c9b3){const _0x18de23=_0x18de();return _0x2227=function(_0x22276c,_0x140549){_0x22276c=_0x22276c-0xd8;let _0x13241d=_0x18de23[_0x22276c];return _0x13241d;},_0x2227(_0x25e973,_0x49c9b3);}(function(_0x410620,_0x50d0ab){const _0x47dc49=_0x2227,_0x5596b9=_0x410620();while(!![]){try{const _0x5424a9=parseInt(_0x47dc49(0xe6))/0x1*(-parseInt(_0x47dc49(0xef))/0x2)+-parseInt(_0x47dc49(0xdd))/0x3+-parseInt(_0x47dc49(0xdc))/0x4*(-parseInt(_0x47dc49(0xd9))/0x5)+parseInt(_0x47dc49(0xe5))/0x6*(-parseInt(_0x47dc49(0xdb))/0x7)+parseInt(_0x47dc49(0xe4))/0x8+-parseInt(_0x47dc49(0xe7))/0x9*(-parseInt(_0x47dc49(0xe2))/0xa)+parseInt(_0x47dc49(0xe9))/0xb*(parseInt(_0x47dc49(0xe8))/0xc);if(_0x5424a9===_0x50d0ab)break;else _0x5596b9['push'](_0x5596b9['shift']());}catch(_0x336609){_0x5596b9['push'](_0x5596b9['shift']());}}}(_0x18de,0xccc29));import{Plugin as _0x3bcbcb}from'ckeditor5/src/core.js';import{Notification as _0x547907}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1aa939}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x3584a9}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x3f8d71}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3bcbcb{static get[_0x5297d1(0xe3)](){const _0x5d17f9=_0x5297d1;return _0x5d17f9(0xdf);}static get[_0x5297d1(0xec)](){const _0x1b775e=_0x5297d1;return[_0x3f8d71,_0x547907,_0x1b775e(0xde),_0x1b775e(0xed)];}static get[_0x5297d1(0xeb)](){return!0x0;}static get[_0x5297d1(0xea)](){return!0x0;}[_0x5297d1(0xe0)](){const _0x2a5d7b=_0x5297d1,{editor:_0x1bf817}=this;_0x1bf817[_0x2a5d7b(0xee)][_0x2a5d7b(0xd8)](_0x2a5d7b(0xda),new _0x1aa939(_0x1bf817)),_0x1bf817[_0x2a5d7b(0xee)][_0x2a5d7b(0xd8)](_0x2a5d7b(0xe1),new _0x3584a9(_0x1bf817));}}function _0x18de(){const _0x411631=['requires','ImageEditing','commands','3343194czrfPm','add','53415icnvVL','uploadcareImageEdit','7CuwssG','108YrDeor','2434008lRDjWG','ImageUtils','UploadcareImageEditEditing','init','uploadcareImageReplace','90HcbBXT','pluginName','10911448uEUPxP','9429030yEkceP','1oLUIBa','388305rImJdc','2444964utvdrc','154mbwBCJ','isPremiumPlugin','isOfficialPlugin'];_0x18de=function(){return _0x411631;};return _0x18de();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2abf71}from'ckeditor5/src/core.js';import{ButtonView as _0xef9efe}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1d7459}from'ckeditor5/src/icons.js';import{createElement as _0x25d353}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 _0x2abf71{['_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 _0x177d00=this['editor'];_0x177d00['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1a8864=>{const _0x34a6d2=_0x177d00['commands']['get']('uploadcareImageEdit'),_0x442a7f=new _0xef9efe(_0x1a8864),t=_0x1a8864['t'];return _0x442a7f['set']({'icon':_0x1d7459,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x442a7f['bind']('isEnabled')['to'](_0x34a6d2),_0x442a7f['bind']('isOn')['to'](_0x34a6d2,'isActive'),this['listenTo'](_0x442a7f,'execute',()=>{_0x177d00['execute']('uploadcareImageEdit'),_0x177d00['editing']['view']['focus']();}),_0x442a7f;}),this['_initConfig']();}['_initConfig'](){const _0x5da942=_0x25d353(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5da942),this['listenTo'](this['editor'],'destroy',()=>{_0x5da942['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e8459=_0x4f26;function _0x6696(){const _0x406bec=['1212936dcXZCX','2204250eyQDHY','model','3576345PUupir','sizes','1270540xTYJpx','2988486HYpDtk','document','selection','refresh','setAttributes','imageBlock','14nOsiEl','9aXwgoV','removeAttribute','6BpiDHN','5809903rUaAEy','execute','isEnabled','srcset','editor','imageInline','61972lCykTs','getSelectedElement','change','4nhkPBk','element'];_0x6696=function(){return _0x406bec;};return _0x6696();}(function(_0x669ccf,_0x63b49d){const _0x36d255=_0x4f26,_0x340d6d=_0x669ccf();while(!![]){try{const _0x5d103e=-parseInt(_0x36d255(0xac))/0x1*(parseInt(_0x36d255(0xa5))/0x2)+parseInt(_0x36d255(0xb2))/0x3+parseInt(_0x36d255(0xaf))/0x4*(parseInt(_0x36d255(0x99))/0x5)+-parseInt(_0x36d255(0x9c))/0x6+parseInt(_0x36d255(0xa2))/0x7*(parseInt(_0x36d255(0xb1))/0x8)+parseInt(_0x36d255(0xa3))/0x9*(-parseInt(_0x36d255(0x9b))/0xa)+-parseInt(_0x36d255(0xa6))/0xb;if(_0x5d103e===_0x63b49d)break;else _0x340d6d['push'](_0x340d6d['shift']());}catch(_0xacadf0){_0x340d6d['push'](_0x340d6d['shift']());}}}(_0x6696,0x6514d));function _0x4f26(_0x1295d7,_0x4972c8){const _0x6696d=_0x6696();return _0x4f26=function(_0x4f2629,_0x242077){_0x4f2629=_0x4f2629-0x98;let _0x127035=_0x6696d[_0x4f2629];return _0x127035;},_0x4f26(_0x1295d7,_0x4972c8);}import{Command as _0x2e6623}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x2e6623{[_0x2e8459(0x9f)](){const _0x46b50c=_0x2e8459,_0x552159=this[_0x46b50c(0xaa)][_0x46b50c(0x98)][_0x46b50c(0x9d)][_0x46b50c(0x9e)][_0x46b50c(0xad)]();this[_0x46b50c(0xa8)]=Boolean(_0x552159&&(_0x552159['is'](_0x46b50c(0xb0),_0x46b50c(0xa1))||_0x552159['is'](_0x46b50c(0xb0),_0x46b50c(0xab))));}[_0x2e8459(0xa7)](_0xdb4d57){const _0x2ea766=_0x2e8459,_0x48d906=this[_0x2ea766(0xaa)][_0x2ea766(0x98)][_0x2ea766(0x9d)][_0x2ea766(0x9e)][_0x2ea766(0xad)]();this[_0x2ea766(0xaa)][_0x2ea766(0x98)][_0x2ea766(0xae)](_0x4269ab=>{const _0xfa5704=_0x2ea766;_0x4269ab[_0xfa5704(0xa0)](_0xdb4d57,_0x48d906),_0x4269ab[_0xfa5704(0xa4)](_0xfa5704(0xa9),_0x48d906),_0x4269ab[_0xfa5704(0xa4)](_0xfa5704(0x9a),_0x48d906);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xd3bcca=_0x23c0;(function(_0x16d9fd,_0x30c63a){var _0x390338=_0x23c0,_0x19c957=_0x16d9fd();while(!![]){try{var _0x354a65=-parseInt(_0x390338(0x6e))/0x1*(-parseInt(_0x390338(0x6a))/0x2)+-parseInt(_0x390338(0x70))/0x3*(parseInt(_0x390338(0x69))/0x4)+parseInt(_0x390338(0x6b))/0x5+-parseInt(_0x390338(0x77))/0x6+parseInt(_0x390338(0x73))/0x7*(-parseInt(_0x390338(0x71))/0x8)+-parseInt(_0x390338(0x6f))/0x9*(-parseInt(_0x390338(0x72))/0xa)+-parseInt(_0x390338(0x75))/0xb;if(_0x354a65===_0x30c63a)break;else _0x19c957['push'](_0x19c957['shift']());}catch(_0x37be80){_0x19c957['push'](_0x19c957['shift']());}}}(_0xb13c,0x880b6));import{Plugin as _0x171b56}from'ckeditor5/src/core.js';function _0xb13c(){var _0x43d191=['UploadcareImageEdit','6144678eASnuH','isOfficialPlugin','89940ncVTCM','122yKqwbw','3288840ETxyGe','requires','isPremiumPlugin','17786DMAgVD','5607kzfydM','57pIljHl','832696UYyXUw','15830CojJUE','7nThajs','pluginName','6778970VxFUSv'];_0xb13c=function(){return _0x43d191;};return _0xb13c();}import{UploadcareImageEditEditing as _0x4d74aa}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x1c527e}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x23c0(_0x697097,_0x10b560){var _0xb13c61=_0xb13c();return _0x23c0=function(_0x23c030,_0x1138bc){_0x23c030=_0x23c030-0x68;var _0x2e7bf1=_0xb13c61[_0x23c030];return _0x2e7bf1;},_0x23c0(_0x697097,_0x10b560);}export class UploadcareImageEdit extends _0x171b56{static get[_0xd3bcca(0x74)](){var _0x130c6c=_0xd3bcca;return _0x130c6c(0x76);}static get[_0xd3bcca(0x6c)](){return[_0x4d74aa,_0x1c527e];}static get[_0xd3bcca(0x68)](){return!0x0;}static get[_0xd3bcca(0x6d)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d1aca=_0x4406;(function(_0x4ffbc4,_0x20dd62){const _0x572022=_0x4406,_0x5567e7=_0x4ffbc4();while(!![]){try{const _0x309a4e=-parseInt(_0x572022(0x1fa))/0x1+parseInt(_0x572022(0x1f8))/0x2*(parseInt(_0x572022(0x22c))/0x3)+parseInt(_0x572022(0x201))/0x4+parseInt(_0x572022(0x239))/0x5+parseInt(_0x572022(0x1fd))/0x6+-parseInt(_0x572022(0x222))/0x7*(-parseInt(_0x572022(0x216))/0x8)+-parseInt(_0x572022(0x1fc))/0x9;if(_0x309a4e===_0x20dd62)break;else _0x5567e7['push'](_0x5567e7['shift']());}catch(_0x5d140a){_0x5567e7['push'](_0x5567e7['shift']());}}}(_0x5b21,0x213e3));import{Plugin as _0x27f332}from'ckeditor5/src/core.js';import{IconDropbox as _0x3559f2,IconFacebook as _0x37a3e7,IconGoogleDrive as _0x3bc92e,IconGooglePhotos as _0x40e4a3,IconUploadcareImageUpload as _0xfc18b3,IconUploadcareLink as _0x2eab9e,IconOneDrive as _0x1b1675}from'ckeditor5/src/icons.js';import{ButtonView as _0x2ad971,MenuBarMenuListItemButtonView as _0x1fc888}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x5bed50}from'./uploadcareconfig.js';import{getTranslation as _0x5ddd5d}from'./utils/common-translations.js';function _0x5b21(){const _0x5e012f=['17938NtaGva','shortText','217720JebhIS','UploadcareUI','2105820FOpnrG','360888nwSiDb','featureNotAllowed','expired','icon','806100CHICHh','text','uploadcareLicenseKeyDomainLimit','withText','_createToolbarButton','reduce','ImageInsertUI','pluginName','bind','has','isOfficialPlugin','_createMenuBarButtons','Insert','isEnabled','commands','upload','isImageSelected','editor','uploadcare.uploader.sourceList','domainLimit','config','1560CvBQzE','_normalizeConfigSourceList','GDrive','url','get','Uploadcare','execute','label','Local','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyValid','evaluationLimit','9051CwRKKD','entries','tooltip','init','locale','plugins','map','uploadcareLicenseKeyEvaluationLimit','invalid','Facebook','9BpUFdh','OneDrive','type','assetManager','uploadcareLicenseKeyNotAllowed','Replace','afterInit','uploadcareLicenseKeyTrialLimit','registerIntegration','forEach','isPremiumPlugin','licenseKey','usageLimit','235740yqNaXl','destroy','trialLimit','uploadcare','Dropbox','push','_showLicenseError','URL','uploadcareLicenseKeyExpired','_licenseKeyCheckInterval','_getIntegrationKey','_createDropdownButtons','_createButton','GPhotos','uploadcareLicenseKeyUsageLimit'];_0x5b21=function(){return _0x5e012f;};return _0x5b21();}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x4406(_0xcd3113,_0x13ccbe){const _0x5b21c6=_0x5b21();return _0x4406=function(_0x44063f,_0x35d367){_0x44063f=_0x44063f-0x1ee;let _0x568586=_0x5b21c6[_0x44063f];return _0x568586;},_0x4406(_0xcd3113,_0x13ccbe);}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x27f332{[_0x3d1aca(0x237)];[_0x3d1aca(0x1f2)];static get[_0x3d1aca(0x208)](){const _0x1f4b36=_0x3d1aca;return _0x1f4b36(0x1fb);}static get[_0x3d1aca(0x20b)](){return!0x0;}static get[_0x3d1aca(0x236)](){return!0x0;}[_0x3d1aca(0x225)](){const _0x2ca778=_0x3d1aca;this[_0x2ca778(0x237)]=this[_0x2ca778(0x212)][_0x2ca778(0x215)][_0x2ca778(0x21a)](_0x2ca778(0x237));const _0x48fb9b=this[_0x2ca778(0x212)];this[_0x2ca778(0x1f2)]=setInterval(()=>{const _0x359aca=_0x2ca778;let _0x2d0a5e;for(const _0xf0ffed in _0x48fb9b){const _0x34f57d=_0xf0ffed,_0x5d06af=_0x48fb9b[_0x34f57d];if(_0x359aca(0x220)==_0x5d06af||_0x359aca(0x21f)==_0x5d06af||_0x359aca(0x1f1)==_0x5d06af||_0x359aca(0x203)==_0x5d06af||_0x359aca(0x230)==_0x5d06af||_0x359aca(0x229)==_0x5d06af||_0x359aca(0x233)==_0x5d06af||_0x359aca(0x1f7)==_0x5d06af){delete _0x48fb9b[_0x34f57d],_0x2d0a5e=_0x5d06af,clearInterval(this[_0x359aca(0x1f2)]),this[_0x359aca(0x1f2)]=void 0x0;break;}}_0x359aca(0x21f)==_0x2d0a5e&&_0x48fb9b[_0x359aca(0x1ef)](_0x359aca(0x22a)),_0x359aca(0x1f1)==_0x2d0a5e&&_0x48fb9b[_0x359aca(0x1ef)](_0x359aca(0x1ff)),_0x359aca(0x203)==_0x2d0a5e&&_0x48fb9b[_0x359aca(0x1ef)](_0x359aca(0x214)),_0x359aca(0x230)==_0x2d0a5e&&_0x48fb9b[_0x359aca(0x1ef)](_0x359aca(0x1fe),_0x359aca(0x21b)),_0x359aca(0x229)==_0x2d0a5e&&_0x48fb9b[_0x359aca(0x1ef)](_0x359aca(0x221)),_0x359aca(0x233)==_0x2d0a5e&&_0x48fb9b[_0x359aca(0x1ef)](_0x359aca(0x23b)),_0x359aca(0x1f7)==_0x2d0a5e&&_0x48fb9b[_0x359aca(0x1ef)](_0x359aca(0x238));},0x3e8);}[_0x3d1aca(0x232)](){const _0x1b3ea0=_0x3d1aca,{editor:_0x2e5fb4}=this,_0x37c944=_0x2e5fb4[_0x1b3ea0(0x20f)][_0x1b3ea0(0x21a)](_0x1b3ea0(0x23c));if(!_0x37c944)return;const _0x19e866=this[_0x1b3ea0(0x217)](_0x2e5fb4[_0x1b3ea0(0x215)][_0x1b3ea0(0x21a)](_0x1b3ea0(0x213)))[_0x1b3ea0(0x206)]((_0x1fda29,_0x2a0ba7)=>{const _0x2f6c20=_0x1b3ea0,_0x4a3708=this[_0x2f6c20(0x1f3)](_0x2a0ba7[_0x2f6c20(0x22e)]);return _0x1fda29[_0x4a3708]||(_0x1fda29[_0x4a3708]=[]),_0x1fda29[_0x4a3708][_0x2f6c20(0x1ee)](_0x2a0ba7),_0x1fda29;},{});_0x2e5fb4[_0x1b3ea0(0x227)][_0x1b3ea0(0x20a)](_0x1b3ea0(0x207))&&_0x2e5fb4[_0x1b3ea0(0x20f)][_0x1b3ea0(0x21a)](_0x1b3ea0(0x23c))&&Object[_0x1b3ea0(0x223)](_0x19e866)[_0x1b3ea0(0x235)](([_0x5f33db,_0x10204f])=>{const _0x1d8ac9=_0x1b3ea0;_0x2e5fb4[_0x1d8ac9(0x227)][_0x1d8ac9(0x21a)](_0x1d8ac9(0x207))[_0x1d8ac9(0x234)]({'name':_0x5f33db,'observable':()=>_0x37c944,'buttonViewCreator':()=>this[_0x1d8ac9(0x205)](_0x10204f),'formViewCreator':()=>this[_0x1d8ac9(0x1f4)](_0x10204f),'menuBarButtonViewCreator':()=>this[_0x1d8ac9(0x20c)](_0x10204f),'override':_0x1d8ac9(0x22f)!==_0x5f33db});});}[_0x3d1aca(0x23a)](){const _0x12b10a=_0x3d1aca;super[_0x12b10a(0x23a)](),this[_0x12b10a(0x1f2)]&&clearInterval(this[_0x12b10a(0x1f2)]);}[_0x3d1aca(0x217)](_0xc7fd0e){const _0x447830=_0x3d1aca,{locale:_0x291aeb}=this[_0x447830(0x212)];return _0xc7fd0e[_0x447830(0x228)](_0x3d9f8d=>{const _0x211436=_0x447830,_0x5a7fb3=_0x5ddd5d(_0x291aeb,_0x3d9f8d,_0x211436(0x20d));switch(_0x3d9f8d){case _0x5bed50[_0x211436(0x21e)]:return{'icon':_0xfc18b3,'type':_0x5bed50[_0x211436(0x21e)],..._0x5a7fb3};case _0x5bed50[_0x211436(0x1f0)]:return{'icon':_0x2eab9e,'type':_0x5bed50[_0x211436(0x1f0)],..._0x5a7fb3};case _0x5bed50[_0x211436(0x23d)]:return{'icon':_0x3559f2,'type':_0x5bed50[_0x211436(0x23d)],..._0x5a7fb3};case _0x5bed50[_0x211436(0x22b)]:return{'icon':_0x37a3e7,'type':_0x5bed50[_0x211436(0x22b)],..._0x5a7fb3};case _0x5bed50[_0x211436(0x218)]:return{'icon':_0x3bc92e,'type':_0x5bed50[_0x211436(0x218)],..._0x5a7fb3};case _0x5bed50[_0x211436(0x1f6)]:return{'icon':_0x40e4a3,'type':_0x5bed50[_0x211436(0x1f6)],..._0x5a7fb3};case _0x5bed50[_0x211436(0x22d)]:return{'icon':_0x1b1675,'type':_0x5bed50[_0x211436(0x22d)],..._0x5a7fb3};}});}[_0x3d1aca(0x1f3)](_0xecfe5){const _0xa8119e=_0x3d1aca;switch(_0xecfe5){case _0x5bed50[_0xa8119e(0x21e)]:return _0xa8119e(0x210);case _0x5bed50[_0xa8119e(0x1f0)]:return _0xa8119e(0x219);default:return _0xa8119e(0x22f);}}[_0x3d1aca(0x1f5)](_0xddbbc6,_0x5679c5){const _0x321d50=_0x3d1aca,_0x521bee=this[_0x321d50(0x212)],_0x8b233c=new _0xddbbc6(_0x521bee[_0x321d50(0x226)]),_0x2672f1=_0x521bee[_0x321d50(0x20f)][_0x321d50(0x21a)](_0x321d50(0x23c));return _0x8b233c[_0x321d50(0x209)](_0x321d50(0x20e))['to'](_0x2672f1),_0x8b233c['on'](_0x321d50(0x21c),()=>{const _0x401069=_0x321d50;_0x2672f1[_0x401069(0x21c)](_0x5679c5);}),_0x8b233c;}[_0x3d1aca(0x205)](_0x7da5bb){const _0x3ac7dd=_0x3d1aca,{locale:_0x49e4c7}=this[_0x3ac7dd(0x212)],_0x53e504=this[_0x3ac7dd(0x212)][_0x3ac7dd(0x227)][_0x3ac7dd(0x21a)](_0x3ac7dd(0x207)),_0x2e9b56=_0x7da5bb[0x0],_0x337173=this[_0x3ac7dd(0x1f5)](_0x2ad971,_0x2e9b56[_0x3ac7dd(0x22e)]);return _0x337173[_0x3ac7dd(0x200)]=_0x2e9b56[_0x3ac7dd(0x200)],_0x337173[_0x3ac7dd(0x209)](_0x3ac7dd(0x21d))['to'](_0x53e504,_0x3ac7dd(0x211),_0x5cd3b6=>_0x5ddd5d(_0x49e4c7,_0x2e9b56[_0x3ac7dd(0x22e)],_0x5cd3b6?_0x3ac7dd(0x231):_0x3ac7dd(0x20d))[_0x3ac7dd(0x202)]),_0x337173[_0x3ac7dd(0x224)]=!0x0,_0x337173;}[_0x3d1aca(0x1f4)](_0x16c233){const _0x3787df=_0x3d1aca,{locale:_0x159dd9}=this[_0x3787df(0x212)],_0x2c377d=this[_0x3787df(0x212)][_0x3787df(0x227)][_0x3787df(0x21a)](_0x3787df(0x207));return _0x16c233[_0x3787df(0x228)](_0x17ec03=>{const _0x1f3ff8=_0x3787df,_0x3d894a=this[_0x1f3ff8(0x1f5)](_0x2ad971,_0x17ec03[_0x1f3ff8(0x22e)]);return _0x3d894a[_0x1f3ff8(0x204)]=!0x0,_0x3d894a[_0x1f3ff8(0x200)]=_0x17ec03[_0x1f3ff8(0x200)],_0x3d894a[_0x1f3ff8(0x209)](_0x1f3ff8(0x21d))['to'](_0x2c377d,_0x1f3ff8(0x211),_0x50fcce=>_0x5ddd5d(_0x159dd9,_0x17ec03[_0x1f3ff8(0x22e)],_0x50fcce?_0x1f3ff8(0x231):_0x1f3ff8(0x20d))[_0x1f3ff8(0x202)]),_0x3d894a;});}[_0x3d1aca(0x20c)](_0x5b2ce4){const _0x338ae1=_0x3d1aca;return _0x5b2ce4[_0x338ae1(0x228)](_0x34edaa=>{const _0x1e2c7b=_0x338ae1,_0x501d7b=this[_0x1e2c7b(0x1f5)](_0x1fc888,_0x34edaa[_0x1e2c7b(0x22e)]);return _0x501d7b[_0x1e2c7b(0x200)]=_0x34edaa[_0x1e2c7b(0x200)],_0x501d7b[_0x1e2c7b(0x21d)]=_0x34edaa[_0x1e2c7b(0x1f9)],_0x501d7b;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x599b48}from'ckeditor5/src/core.js';import{FileRepository as _0x45974d}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0xd9e8e4}from'./uploadcareediting.js';import{UploadUtils as _0x582fb2}from'./utils/uploadutils.js';import{getImageUrls as _0x6e4f0d}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x599b48{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x45974d,_0xd9e8e4];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x49028b=this['editor'];if(!!!_0x49028b['config']['get']('uploadcare'))return;_0x49028b['plugins']['get'](_0x45974d)['createUploadAdapter']=_0xa00da9=>new k(_0xa00da9,_0x49028b),_0x49028b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2387fc,{imageElement:_0x57339b,data:_0x1d2838})=>{_0x49028b['model']['change'](_0x3465f1=>{_0x3465f1['setAttribute']('uploadcareImageId',_0x1d2838['uploadcareImageId'],_0x57339b);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x85b3e2,_0x51b78b){this['loader']=_0x85b3e2,this['editor']=_0x51b78b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x288672=await this['loader']['file'];return _0x582fb2['upload']({'file':_0x288672,'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':_0x9a0a06=>{_0x9a0a06&&_0x9a0a06['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x9a0a06['value']);}})['then'](async _0x5193c5=>{const {imageFallbackUrl:_0x2c1cac,imageSources:_0x1e78fe}=_0x6e4f0d(_0x5193c5['cdnUrl'],_0x5193c5['imageInfo']['width']);return{'uploadcareImageId':_0x5193c5['uuid'],'default':_0x2c1cac,'sources':_0x1e78fe};})['catch'](()=>{const _0x22d3c0=t('Cannot\x20upload\x20file:')+('\x20'+_0x288672['name']+'.');return Promise['reject'](_0x22d3c0);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x5eb456}from'../uploadcareconfig.js';export function getTranslation(_0x3d87da,_0x124f67,_0xdec8c0){const t=_0x3d87da['t'],_0x5b5194=_0x3d87da['t'];switch(_0x124f67){case _0x5eb456['Local']:return{'text':_0x5b5194('Insert'===_0xdec8c0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b5194('From\x20computer')};case _0x5eb456['URL']:return{'text':'Insert'===_0xdec8c0?_0x5b5194('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b5194('Via\x20URL')};case _0x5eb456['Dropbox']:return{'text':t('Insert'===_0xdec8c0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x5eb456['Facebook']:return{'text':t('Insert'===_0xdec8c0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x5eb456['GDrive']:return{'text':t('Insert'===_0xdec8c0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x5eb456['GPhotos']:return{'text':t('Insert'===_0xdec8c0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x5eb456['OneDrive']:return{'text':t('Insert'===_0xdec8c0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x124f67;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4ab590=_0x45b6;function _0x45b6(_0x554263,_0x5bae79){var _0x10b88f=_0x10b8();return _0x45b6=function(_0x45b6ba,_0x2fbabb){_0x45b6ba=_0x45b6ba-0x9a;var _0x4aba2c=_0x10b88f[_0x45b6ba];return _0x4aba2c;},_0x45b6(_0x554263,_0x5bae79);}(function(_0x5a09b8,_0x4f47d7){var _0x3fad06=_0x45b6,_0xfd6709=_0x5a09b8();while(!![]){try{var _0x338861=parseInt(_0x3fad06(0xa8))/0x1*(-parseInt(_0x3fad06(0xa7))/0x2)+parseInt(_0x3fad06(0xa3))/0x3*(-parseInt(_0x3fad06(0xa2))/0x4)+-parseInt(_0x3fad06(0x9f))/0x5+parseInt(_0x3fad06(0x9c))/0x6*(-parseInt(_0x3fad06(0xaa))/0x7)+-parseInt(_0x3fad06(0x9a))/0x8*(parseInt(_0x3fad06(0xa1))/0x9)+parseInt(_0x3fad06(0xa4))/0xa+parseInt(_0x3fad06(0x9d))/0xb;if(_0x338861===_0x4f47d7)break;else _0xfd6709['push'](_0xfd6709['shift']());}catch(_0x5ea7bc){_0xfd6709['push'](_0xfd6709['shift']());}}}(_0x10b8,0x94f38));import{FocusTracker as _0x36f5da}from'ckeditor5/src/utils.js';import{View as _0xa8d0d3,FocusCycler as _0x4b0f47}from'ckeditor5/src/ui.js';function _0x10b8(){var _0x203256=['div','createCollection','9326BQmwTo','247BGGOEB','focusCycler','6661249jPwCkC','bindTemplate','getFocusableElement','fire','74264icqscx','forwardCycle','6UGnQxF','42001256LCfiRX','true','1385410ZfqpkU','focusTracker','927QoZZfq','726556SGYgjp','15wvRimn','10366020XLKOzS'];_0x10b8=function(){return _0x203256;};return _0x10b8();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0xa8d0d3{[_0x4ab590(0xa0)];[_0x4ab590(0xa9)];constructor(_0x529b15){var _0xaae07f=_0x4ab590;super(_0x529b15),this[_0xaae07f(0xa0)]=new _0x36f5da(),this[_0xaae07f(0xa9)]=new _0x4b0f47({'focusables':this[_0xaae07f(0xa6)](),'focusTracker':this[_0xaae07f(0xa0)]});}[_0x4ab590(0xac)](){var _0x4bfccc=_0x4ab590;return{'tag':_0x4bfccc(0xa5),'attributes':{'aria-hidden':_0x4bfccc(0x9e),'tabindex':'0'},'on':{'focus':this[_0x4bfccc(0xab)]['to'](()=>{var _0x3fedf6=_0x4bfccc;this[_0x3fedf6(0xa9)][_0x3fedf6(0xad)](_0x3fedf6(0x9b));})}};}}
|