@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251226.0 → 0.0.0-nightly-20251227.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x512f5d=_0x122d;(function(_0x1ce8b0,_0x4e7f0a){const _0x5519ec=_0x122d,_0xdb1d4d=_0x1ce8b0();while(!![]){try{const _0x22b971=parseInt(_0x5519ec(0xdf))/0x1+parseInt(_0x5519ec(0xe0))/0x2*(-parseInt(_0x5519ec(0x108))/0x3)+-parseInt(_0x5519ec(0xee))/0x4*(parseInt(_0x5519ec(0xe7))/0x5)+-parseInt(_0x5519ec(0x10a))/0x6*(parseInt(_0x5519ec(0x114))/0x7)+-parseInt(_0x5519ec(0x111))/0x8*(-parseInt(_0x5519ec(0x10f))/0x9)+parseInt(_0x5519ec(0x11f))/0xa+-parseInt(_0x5519ec(0xf9))/0xb;if(_0x22b971===_0x4e7f0a)break;else _0xdb1d4d['push'](_0xdb1d4d['shift']());}catch(_0x16ba61){_0xdb1d4d['push'](_0xdb1d4d['shift']());}}}(_0x11ca,0x3a290));import{Plugin as _0x428293}from'ckeditor5/src/core.js';import{Dialog as _0x39ced6}from'ckeditor5/src/ui.js';import{createElement as _0x4211fe,global as _0xe13190,uid as _0x5ca483}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x46179a}from'./uploadcarecommand.js';function _0x11ca(){const _0x193b10=['435710LUzoUC','10796jpkgyC','_configElement','getAttribute','_initImageProcessingIndicator','isPremiumPlugin','view','uploadcareImageId','119740QFzSRH','document','join','appendChild','#uc-icon-arrow-down','model','pluginName','12lmgeWk','conversion','contentLanguage','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','extend','true','configElement','querySelector','downcast','once','1209549EJWlgo','elementToAttribute','iconHrefResolver','removeAttribute','init','add','closeMax','map','afterInit','isOfficialPlugin','listenTo','_initConfig','schema','imageInline','ctxElement','51leLgEM','selection','7548HnypeN','attributeToAttribute','_initCtx','uploadcareImageReplace','uploadcare','9iuzFbA','isRegistered','1030552CuYuDg','fromCharCode','remove','1841rAaAUE','getSelectedElement','cleanupImage','destroy','render','execute','replaceImageSource','_initConversion','uploader-','config','uc-config','2781180DFCgLf','uc-upload-ctx-provider','upcast','data-uc-image-id','editing','ucContextId','get','uploadcare.uploader','insertImage','PictureEditing','imageBlock','href','editor','_ctxElement','for','body','UploadcareEditing','_initSchema','locale','requires','input[uploadcare-file-input]','uploadcare.pubkey'];_0x11ca=function(){return _0x193b10;};return _0x11ca();}import{UploadcareUploadAdapter as _0x4a79c5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x378aad}from'./utils/editingutils.js';function _0x122d(_0xacf34,_0x3fac5b){const _0x11caae=_0x11ca();return _0x122d=function(_0x122da7,_0xd3e4f4){_0x122da7=_0x122da7-0xcf;let _0x33e149=_0x11caae[_0x122da7];return _0x33e149;},_0x122d(_0xacf34,_0x3fac5b);}export class UploadcareEditing extends _0x428293{[_0x512f5d(0xe1)]=null;[_0x512f5d(0xd6)]=null;static get[_0x512f5d(0xed)](){const _0x4cd4a5=_0x512f5d;return _0x4cd4a5(0xd9);}static get[_0x512f5d(0xdc)](){const _0x32ede5=_0x512f5d;return[_0x32ede5(0xd2),_0x4a79c5,_0x39ced6];}static get[_0x512f5d(0x102)](){return!0x0;}static get[_0x512f5d(0xe4)](){return!0x0;}[_0x512f5d(0x124)];get[_0x512f5d(0xf5)](){const _0x2d8638=_0x512f5d;return this[_0x2d8638(0xe1)];}get[_0x512f5d(0x107)](){const _0x3791d2=_0x512f5d;return this[_0x3791d2(0xd6)];}constructor(_0x445cec){const _0x1c0d89=_0x512f5d;super(_0x445cec),this[_0x1c0d89(0x124)]=_0x5ca483();}[_0x512f5d(0xfd)](){const _0x1f686a=_0x512f5d,_0x428ef1=this[_0x1f686a(0xd5)];_0x428ef1[_0x1f686a(0xf1)][_0x1f686a(0xfe)](_0x1f686a(0x10e),new _0x46179a(_0x428ef1));}[_0x512f5d(0x101)](){const _0x177fc1=_0x512f5d;this[_0x177fc1(0xda)](),this[_0x177fc1(0x11b)](),this[_0x177fc1(0x104)](),this[_0x177fc1(0x10c)](),this[_0x177fc1(0xe3)](),this[_0x177fc1(0x103)](this[_0x177fc1(0xd5)],_0x177fc1(0x117),()=>{const _0x1f0d58=_0x177fc1;this[_0x1f0d58(0xe1)]&&(this[_0x1f0d58(0xe1)][_0x1f0d58(0x113)](),this[_0x1f0d58(0xe1)]=null),this[_0x1f0d58(0xd6)]&&(this[_0x1f0d58(0xd6)][_0x1f0d58(0x113)](),this[_0x1f0d58(0xd6)]=null);const _0x41b762=_0xe13190[_0x1f0d58(0xe8)][_0x1f0d58(0xf6)](_0x1f0d58(0xdd));_0x41b762&&_0x41b762[_0x1f0d58(0x113)]();}),async function(_0x5850ca){const _0x5a63f8=_0x2b7a6d([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]),_0x5a0c97=0x535f8c3a,_0xbd59ce=0x5358f13a^_0x5a0c97,_0x19a028=window[_0x2b7a6d([0x44,0x61,0x74,0x65])][_0x2b7a6d([0x6e,0x6f,0x77])](),_0x16ee63=_0x5850ca[_0x2b7a6d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58bdac=new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b28f6=>{_0x16ee63[_0x2b7a6d([0x6f,0x6e,0x63,0x65])](_0x2b7a6d([0x72,0x65,0x61,0x64,0x79]),_0x3b28f6);}),_0x16313a={[_0x2b7a6d([0x6b,0x74,0x79])]:_0x2b7a6d([0x45,0x43]),[_0x2b7a6d([0x75,0x73,0x65])]:_0x2b7a6d([0x73,0x69,0x67]),[_0x2b7a6d([0x63,0x72,0x76])]:_0x2b7a6d([0x50,0x2d,0x32,0x35,0x36]),[_0x2b7a6d([0x78])]:_0x2b7a6d([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]),[_0x2b7a6d([0x79])]:_0x2b7a6d([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]),[_0x2b7a6d([0x61,0x6c,0x67])]:_0x2b7a6d([0x45,0x53,0x32,0x35,0x36])},_0x53f678=_0x16ee63[_0x2b7a6d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b7a6d([0x67,0x65,0x74])](_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d12f4(){let _0x4674ca,_0x259a1b=null,_0x4c4bf9=null;try{if(_0x53f678==_0x2b7a6d([0x47,0x50,0x4c]))return _0x2b7a6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4674ca=_0x4d3ae7(),!_0x4674ca)return _0x2b7a6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4674ca[_0x2b7a6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c4bf9=_0x1be4c5(_0x4674ca[_0x2b7a6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4674ca[_0x2b7a6d([0x6a,0x74,0x69])])),await _0x1490ad()?_0x5aa564()?_0x55209f()?_0x2b7a6d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3432a1()?(_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7a6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x259a1b=_0x254669(_0x2b7a6d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b7a6d([0x74,0x72,0x69,0x61,0x6c])&&(_0x259a1b=_0x254669(_0x2b7a6d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e48d7()):_0x2b7a6d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7a6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b7a6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b7a6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55209f(){const _0x1a22d1=[_0x2b7a6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b7a6d([0x74,0x72,0x69,0x61,0x6c])][_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19a028/0x3e8:0xe10*_0xbd59ce;return _0x4674ca[_0x2b7a6d([0x65,0x78,0x70])]<_0x1a22d1;}function _0x5aa564(){const _0x2222f9=_0x4674ca[_0x2b7a6d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2222f9&&(!!_0x2222f9[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7a6d([0x2a]))||!!_0x2222f9[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7a6d([0x55,0x50,0x4c,0x43])));}function _0x3432a1(){const _0x2c758a=_0x122d,_0x13d2dc=_0x4674ca[_0x2b7a6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13d2dc||0x0==_0x13d2dc[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f3d5a}=new URL(window[_0x2b7a6d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2c758a(0xd4)]);if(_0x13d2dc[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f3d5a))return!0x0;const _0x33e309=_0x4f3d5a[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e]));return _0x13d2dc[_0x2b7a6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1afde4=>_0x1afde4[_0x2b7a6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b7a6d([0x2a])))[_0x2b7a6d([0x6d,0x61,0x70])](_0x20f03f=>_0x20f03f[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e])))[_0x2b7a6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ae7c7=>_0x4ae7c7[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x33e309[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7a6d([0x6d,0x61,0x70])](_0xfd0a39=>Array(_0x33e309[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfd0a39[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b7a6d([0x66,0x69,0x6c,0x6c])](_0xfd0a39[0x0]===_0x2b7a6d([0x2a])?_0x2b7a6d([0x2a]):'')[_0x2b7a6d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfd0a39))[_0x2b7a6d([0x73,0x6f,0x6d,0x65])](_0x21409f=>_0x33e309[_0x2b7a6d([0x65,0x76,0x65,0x72,0x79])]((_0xa9c617,_0x4cff08)=>_0x21409f[_0x4cff08]===_0xa9c617||_0x21409f[_0x4cff08]===_0x2b7a6d([0x2a])));}function _0x3e48d7(){return _0x259a1b&&_0x4c4bf9?new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d8eee,_0x4fed90)=>{_0x259a1b[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x1d8eee,_0x4fed90),_0x4c4bf9[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x268a18=>{_0x268a18!=_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64])&&_0x1d8eee(_0x268a18);},_0x4fed90);}):_0x259a1b||_0x4c4bf9||_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1be4c5(_0x319e31,_0x2447b2){return new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x287533=>{if(_0x179bff())return _0x287533(_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64]));_0x32702e(),_0x16ee63[_0x2b7a6d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b7a6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x565e0a=!0x1;const _0x1baf09=_0x5ca483();function _0x58e0dc(_0x5b76ee){return!!_0x5b76ee&&(typeof _0x5b76ee===_0x2b7a6d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b76ee===_0x2b7a6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b76ee[_0x2b7a6d([0x74,0x68,0x65,0x6e])]===_0x2b7a6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b76ee[_0x2b7a6d([0x63,0x61,0x74,0x63,0x68])]===_0x2b7a6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bf226(_0x5354dd){_0x149e5b(_0x5354dd)[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x305a0e=>{if(!_0x305a0e||_0x305a0e[_0x2b7a6d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b7a6d([0x6f,0x6b]))return _0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e0726(_0x26b0b4(_0x1baf09+_0x2447b2))!=_0x305a0e[_0x2b7a6d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0xf0e20b=>(_0x5eebf5(),_0xf0e20b),()=>{const _0x355b0e=_0xdd4613();return null==_0x355b0e?(_0x5eebf5(),_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64])):_0x2b7a6d(_0x19a028-_0x355b0e>(0x7753083a^_0x5a0c97)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x287533)[_0x2b7a6d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x287533(_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24014d=0x536962ba^_0x5a0c97;function _0x5eebf5(){const _0x396e38=_0x2b7a6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e0726(_0x26b0b4(_0x319e31)),_0x508e9d=_0x2f9337(_0x4e0726(window[_0x2b7a6d([0x4d,0x61,0x74,0x68])][_0x2b7a6d([0x63,0x65,0x69,0x6c])](_0x19a028/_0x24014d)));window[_0x2b7a6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7a6d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x396e38,_0x508e9d);}function _0xdd4613(){const _0x5eb1af=_0x2b7a6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e0726(_0x26b0b4(_0x319e31)),_0x23241f=window[_0x2b7a6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b7a6d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5eb1af);return _0x23241f?window[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f9337(_0x23241f),0x10)*_0x24014d:null;}function _0x149e5b(_0x4fecf2){return new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40263a,_0x16624a)=>{_0x4fecf2[_0x2b7a6d([0x74,0x68,0x65,0x6e])](_0x40263a,_0x16624a),window[_0x2b7a6d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16624a,0x535e58fa^_0x5a0c97);});}}_0x16ee63[_0x2b7a6d([0x6f,0x6e])](_0x2b7a6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b0bb9,_0x389aca)=>{if(_0x389aca[0x0]!=_0x319e31)return _0x287533(_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x389aca[0x1]={..._0x389aca[0x1],[_0x2b7a6d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1baf09};},{[_0x2b7a6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7a6d([0x68,0x69,0x67,0x68])}),_0x16ee63[_0x2b7a6d([0x6f,0x6e])](_0x2b7a6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5daec8=>{_0x58e0dc(_0x5daec8[_0x2b7a6d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x565e0a=!0x0,_0x3bf226(_0x5daec8[_0x2b7a6d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b7a6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b7a6d([0x6c,0x6f,0x77])}),_0x58bdac[_0x2b7a6d([0x74,0x68,0x65,0x6e])](()=>{_0x565e0a||_0x287533(_0x2b7a6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x179bff(){return _0x16ee63[_0x2b7a6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7a6d([0x76,0x69,0x65,0x77])][_0x2b7a6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b7a6d([0x61,0x75,0x74,0x6f]);}function _0x32702e(){_0x16ee63[_0x2b7a6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b7a6d([0x76,0x69,0x65,0x77])][_0x2b7a6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b7a6d([0x61,0x75,0x74,0x6f]);}}function _0x254669(_0x39c0b5){const _0x32502d=[new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34ca62=>setTimeout(_0x34ca62,0x5356b2f6^_0x5a0c97)),_0x58bdac[_0x2b7a6d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d33aa=>{let _0x3d7a4d=0x0;_0x16ee63[_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7a6d([0x6f,0x6e])](_0x2b7a6d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x591f4e,_0x2c7cbb)=>{_0x2c7cbb[0x0][_0x2b7a6d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d7a4d++,_0x3d7a4d==(0x535f89d2^_0x5a0c97)&&(_0x2d33aa(),_0x591f4e[_0x2b7a6d([0x6f,0x66,0x66])]());});}))];return window[_0x2b7a6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b7a6d([0x72,0x61,0x63,0x65])](_0x32502d)[_0x2b7a6d([0x74,0x68,0x65,0x6e])](()=>_0x39c0b5);}async function _0x727b77(){await _0x58bdac,_0x16ee63[_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7a6d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3bc6ff,_0x16ee63[_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b7a6d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3bc6ff,_0x16ee63[_0x2b7a6d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b7a6d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f7209(_0x3ea7a6){const _0x322575=_0x380e15();_0x16ee63[_0x322575]=_0x2b7a6d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ea7a6,_0x3ea7a6!=_0x2b7a6d([0x56,0x61,0x6c,0x69,0x64])&&_0x727b77();}function _0x380e15(){const _0x49f778=window[_0x2b7a6d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b7a6d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b7a6d([0x6e,0x6f,0x77])]())[_0x2b7a6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b7a6d([0x2e]),'');let _0x2b2245=_0x2b7a6d([0x68]);for(let _0x339725=0x0;_0x339725<_0x49f778[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x339725+=0x2){let _0x153335=window[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49f778[_0x2b7a6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x339725,_0x339725+0x2));_0x153335>=_0x5a63f8[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x153335-=_0x5a63f8[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b2245+=_0x5a63f8[_0x153335];}return _0x2b2245;}function _0x4d3ae7(){const _0x3c6336=_0x53f678[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e]));if(0x3!=_0x3c6336[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x551eb5(_0x3c6336[0x1]);function _0x551eb5(_0x1a113b){const _0x250a12=_0x7085a(_0x1a113b);return _0x250a12&&_0xae7499()?_0x250a12:null;function _0xae7499(){const _0x8eb77f=_0x250a12[_0x2b7a6d([0x6a,0x74,0x69])],_0x3ab6b9=window[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8eb77f[_0x2b7a6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8eb77f[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x193fbd={..._0x250a12,[_0x2b7a6d([0x6a,0x74,0x69])]:_0x8eb77f[_0x2b7a6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8eb77f[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x193fbd[_0x2b7a6d([0x76,0x63])],_0x26b0b4(_0x193fbd)==_0x3ab6b9;}}}async function _0x1490ad(){let _0xee7ad6=!0x0;try{const _0xe59db0=_0x53f678[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])](_0x2b7a6d([0x2e])),[_0x52135b,_0x62c254,_0x4107d9]=_0xe59db0;return _0x17225b(_0x52135b),await _0x5cedfc(_0x52135b,_0x62c254,_0x4107d9),_0xee7ad6;}catch{return!0x1;}function _0x17225b(_0x526969){const _0x4e5f9e=_0x7085a(_0x526969);_0x4e5f9e&&_0x4e5f9e[_0x2b7a6d([0x61,0x6c,0x67])]==_0x2b7a6d([0x45,0x53,0x32,0x35,0x36])||(_0xee7ad6=!0x1);}async function _0x5cedfc(_0x336909,_0x23d880,_0x2c8c26){const _0x5cbeb4=window[_0x2b7a6d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b7a6d([0x66,0x72,0x6f,0x6d])](_0x1e3962(_0x2c8c26),_0x52ecd5=>_0x52ecd5[_0x2b7a6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49d812=new window[(_0x2b7a6d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b7a6d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x336909+_0x2b7a6d([0x2e])+_0x23d880),_0x211241=window[_0x2b7a6d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b7a6d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x211241)return;const _0x4f2d2a=await _0x211241[_0x2b7a6d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b7a6d([0x6a,0x77,0x6b]),_0x16313a,{[_0x2b7a6d([0x6e,0x61,0x6d,0x65])]:_0x2b7a6d([0x45,0x43,0x44,0x53,0x41]),[_0x2b7a6d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b7a6d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b7a6d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x211241[_0x2b7a6d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b7a6d([0x6e,0x61,0x6d,0x65])]:_0x2b7a6d([0x45,0x43,0x44,0x53,0x41]),[_0x2b7a6d([0x68,0x61,0x73,0x68])]:{[_0x2b7a6d([0x6e,0x61,0x6d,0x65])]:_0x2b7a6d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f2d2a,_0x5cbeb4,_0x49d812)||(_0xee7ad6=!0x1);}}function _0x7085a(_0x1d669a){return _0x1d669a[_0x2b7a6d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b7a6d([0x65,0x79]))?JSON[_0x2b7a6d([0x70,0x61,0x72,0x73,0x65])](_0x1e3962(_0x1d669a)):null;}function _0x1e3962(_0x2bfe49){return window[_0x2b7a6d([0x61,0x74,0x6f,0x62])](_0x2bfe49[_0x2b7a6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b7a6d([0x2b]))[_0x2b7a6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b7a6d([0x2f])));}function _0x26b0b4(_0x2db3f0){let _0x5d15a5=0x1505;function _0x350043(_0x2474f0){for(let _0x50f794=0x0;_0x50f794<_0x2474f0[_0x2b7a6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50f794++){const _0x1c27de=_0x2474f0[_0x2b7a6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50f794);_0x5d15a5=(_0x5d15a5<<0x5)+_0x5d15a5+_0x1c27de,_0x5d15a5&=_0x5d15a5;}}function _0x1913cb(_0x33aea2){Array[_0x2b7a6d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33aea2)?_0x33aea2[_0x2b7a6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1913cb):_0x33aea2&&typeof _0x33aea2==_0x2b7a6d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b7a6d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33aea2)[_0x2b7a6d([0x73,0x6f,0x72,0x74])]()[_0x2b7a6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d178d,_0x588f13])=>{_0x350043(_0x2d178d),_0x1913cb(_0x588f13);}):_0x350043(window[_0x2b7a6d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33aea2));}return _0x1913cb(_0x2db3f0),_0x5d15a5>>>0x0;}function _0x4e0726(_0x5f0d9a){return _0x5f0d9a[_0x2b7a6d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b7a6d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b7a6d([0x30]));}function _0x2f9337(_0x5af57c){return _0x5af57c[_0x2b7a6d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b7a6d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b7a6d([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bc6ff(){}function _0x2b7a6d(_0x535416){const _0x2e24a9=_0x122d;return _0x535416[_0x2e24a9(0x100)](_0x9cca94=>String[_0x2e24a9(0x112)](_0x9cca94))[_0x2e24a9(0xe9)]('');}_0x4f7209(await _0x3d12f4());}(this);}[_0x512f5d(0xda)](){const _0x26b553=_0x512f5d,_0x5a1d26=this[_0x26b553(0xd5)][_0x26b553(0xec)][_0x26b553(0x105)];_0x5a1d26[_0x26b553(0x110)](_0x26b553(0xd3))&&_0x5a1d26[_0x26b553(0xf3)](_0x26b553(0xd3),{'allowAttributes':[_0x26b553(0xe6)]}),_0x5a1d26[_0x26b553(0x110)](_0x26b553(0x106))&&_0x5a1d26[_0x26b553(0xf3)](_0x26b553(0x106),{'allowAttributes':[_0x26b553(0xe6)]});}[_0x512f5d(0x11b)](){const _0x1b143d=_0x512f5d,_0x2c5319=this[_0x1b143d(0xd5)];_0x2c5319[_0x1b143d(0xef)][_0x1b143d(0xd7)](_0x1b143d(0xf7))[_0x1b143d(0x10b)]({'model':_0x1b143d(0xe6),'view':_0x1b143d(0x122)}),_0x2c5319[_0x1b143d(0xef)][_0x1b143d(0xd7)](_0x1b143d(0x121))[_0x1b143d(0xfa)]({'model':{'key':_0x1b143d(0xe6),'value':_0x470a5e=>_0x470a5e[_0x1b143d(0xe2)](_0x1b143d(0x122))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x9eb520=_0x2c5319[_0x1b143d(0xf1)][_0x1b143d(0xcf)](_0x1b143d(0x11a));_0x9eb520&&this[_0x1b143d(0x103)](_0x9eb520,_0x1b143d(0x116),(_0x2478b9,[_0x25f1e9,_0x564f4d])=>{const _0x3edb72=_0x1b143d;_0x25f1e9[_0x3edb72(0xfc)](_0x3edb72(0xe6),_0x564f4d);});}[_0x512f5d(0x104)](){const _0x23a981=_0x512f5d,_0x4ed519=this[_0x23a981(0xd5)][_0x23a981(0x11d)][_0x23a981(0xcf)](_0x23a981(0xd0))||{},_0x4cab0f=this[_0x23a981(0xd5)][_0x23a981(0x11d)][_0x23a981(0xcf)](_0x23a981(0xde))||'';this[_0x23a981(0xe1)]=_0x4211fe(_0xe13190[_0x23a981(0xe8)],_0x23a981(0x11e),{..._0x4ed519,'pubkey':_0x4cab0f,'ctx-name':_0x23a981(0x11c)+this[_0x23a981(0x124)],'sourceList':'','imgOnly':_0x23a981(0xf4),'removeCopyright':_0x23a981(0xf4),'localeName':this[_0x23a981(0xd5)][_0x23a981(0xdb)][_0x23a981(0xf0)],'externalSourcesEmbedCss':_0x23a981(0xf2)}),this[_0x23a981(0xe1)][_0x23a981(0xfb)]=_0x2dfff8=>{const _0x48293c=_0x23a981;if(_0x48293c(0xff)==_0x2dfff8)return _0x48293c(0xeb);},_0xe13190[_0x23a981(0xe8)][_0x23a981(0xd8)][_0x23a981(0xea)](this[_0x23a981(0xe1)]);}[_0x512f5d(0x10c)](){const _0x32c6ec=_0x512f5d;this[_0x32c6ec(0xd6)]=_0x4211fe(_0xe13190[_0x32c6ec(0xe8)],_0x32c6ec(0x120),{'ctx-name':_0x32c6ec(0x11c)+this[_0x32c6ec(0x124)]}),_0xe13190[_0x32c6ec(0xe8)][_0x32c6ec(0xd8)][_0x32c6ec(0xea)](this[_0x32c6ec(0xd6)]);}[_0x512f5d(0xe3)](){const _0x335e52=_0x512f5d,_0x2e8077=this[_0x335e52(0xd5)][_0x335e52(0xf1)][_0x335e52(0xcf)](_0x335e52(0xd1));_0x2e8077&&this[_0x335e52(0x103)](_0x2e8077,_0x335e52(0x119),()=>{const _0xfebfe0=_0x335e52,_0x2a3cc9=this[_0xfebfe0(0xd5)][_0xfebfe0(0xec)][_0xfebfe0(0xe8)][_0xfebfe0(0x109)][_0xfebfe0(0x115)]();_0x2a3cc9&&_0x2a3cc9[_0xfebfe0(0xe2)](_0xfebfe0(0xe6))&&this[_0xfebfe0(0xd5)][_0xfebfe0(0x123)][_0xfebfe0(0xe5)][_0xfebfe0(0xf8)](_0xfebfe0(0x118),()=>{const _0x2d4511=_0xfebfe0;_0x378aad(this[_0x2d4511(0xd5)],_0x2a3cc9);});});const _0x33afab=this[_0x335e52(0xd5)][_0x335e52(0xf1)][_0x335e52(0xcf)](_0x335e52(0x10d));_0x33afab&&this[_0x335e52(0x103)](_0x33afab,_0x335e52(0x119),()=>{const _0x4de7f6=_0x335e52,_0x24ead8=this[_0x4de7f6(0xd5)][_0x4de7f6(0xec)][_0x4de7f6(0xe8)][_0x4de7f6(0x109)][_0x4de7f6(0x115)]();_0x24ead8&&_0x24ead8[_0x4de7f6(0xe2)](_0x4de7f6(0xe6))&&this[_0x4de7f6(0xd5)][_0x4de7f6(0x123)][_0x4de7f6(0xe5)][_0x4de7f6(0xf8)](_0x4de7f6(0x118),()=>{const _0x2f8a98=_0x4de7f6;_0x378aad(this[_0x2f8a98(0xd5)],_0x24ead8);});});}}
|
|
23
|
+
const _0x1f4eb0=_0x580d;(function(_0x205b4e,_0x3cbcca){const _0x4a3c06=_0x580d,_0x3be843=_0x205b4e();while(!![]){try{const _0x4dd3f9=parseInt(_0x4a3c06(0xa7))/0x1+-parseInt(_0x4a3c06(0xb4))/0x2+-parseInt(_0x4a3c06(0xf1))/0x3*(-parseInt(_0x4a3c06(0xae))/0x4)+-parseInt(_0x4a3c06(0xf7))/0x5+parseInt(_0x4a3c06(0xc1))/0x6*(-parseInt(_0x4a3c06(0xc9))/0x7)+-parseInt(_0x4a3c06(0xe7))/0x8*(-parseInt(_0x4a3c06(0xba))/0x9)+-parseInt(_0x4a3c06(0xee))/0xa*(-parseInt(_0x4a3c06(0xc0))/0xb);if(_0x4dd3f9===_0x3cbcca)break;else _0x3be843['push'](_0x3be843['shift']());}catch(_0xc3d102){_0x3be843['push'](_0x3be843['shift']());}}}(_0x5be0,0xdec29));import{Plugin as _0xb1dbae}from'ckeditor5/src/core.js';import{Dialog as _0x449b62}from'ckeditor5/src/ui.js';import{createElement as _0x3b7332,global as _0x5d8335,uid as _0x1ead40}from'ckeditor5/src/utils.js';function _0x580d(_0x2df81a,_0x5479b5){const _0x5be0ec=_0x5be0();return _0x580d=function(_0x580d5f,_0x281881){_0x580d5f=_0x580d5f-0xa5;let _0x18be37=_0x5be0ec[_0x580d5f];return _0x18be37;},_0x580d(_0x2df81a,_0x5479b5);}import{UploadcareCommand as _0x9ac18a}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x507f15}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3d2cb9}from'./utils/editingutils.js';export class UploadcareEditing extends _0xb1dbae{[_0x1f4eb0(0xe0)]=null;[_0x1f4eb0(0xdb)]=null;static get[_0x1f4eb0(0xf3)](){const _0x4fa7b1=_0x1f4eb0;return _0x4fa7b1(0xf0);}static get[_0x1f4eb0(0xf4)](){const _0x2256d0=_0x1f4eb0;return[_0x2256d0(0xdc),_0x507f15,_0x449b62];}static get[_0x1f4eb0(0xe3)](){return!0x0;}static get[_0x1f4eb0(0xd8)](){return!0x0;}[_0x1f4eb0(0xe2)];get[_0x1f4eb0(0xe9)](){const _0x2b90a6=_0x1f4eb0;return this[_0x2b90a6(0xe0)];}get[_0x1f4eb0(0xf8)](){const _0x37029d=_0x1f4eb0;return this[_0x37029d(0xdb)];}constructor(_0x454cbd){const _0x113f01=_0x1f4eb0;super(_0x454cbd),this[_0x113f01(0xe2)]=_0x1ead40();}[_0x1f4eb0(0xa8)](){const _0x9af40b=_0x1f4eb0,_0x3da37a=this[_0x9af40b(0xbc)];_0x3da37a[_0x9af40b(0xa6)][_0x9af40b(0xcf)](_0x9af40b(0xc3),new _0x9ac18a(_0x3da37a));}[_0x1f4eb0(0xc5)](){const _0x1f336f=_0x1f4eb0;this[_0x1f336f(0xac)](),this[_0x1f336f(0xcc)](),this[_0x1f336f(0xe5)](),this[_0x1f336f(0xd2)](),this[_0x1f336f(0xbd)](),this[_0x1f336f(0xbf)](this[_0x1f336f(0xbc)],_0x1f336f(0xce),()=>{const _0x1cfd83=_0x1f336f;this[_0x1cfd83(0xe0)]&&(this[_0x1cfd83(0xe0)][_0x1cfd83(0xb2)](),this[_0x1cfd83(0xe0)]=null),this[_0x1cfd83(0xdb)]&&(this[_0x1cfd83(0xdb)][_0x1cfd83(0xb2)](),this[_0x1cfd83(0xdb)]=null);const _0x22245c=_0x5d8335[_0x1cfd83(0xec)][_0x1cfd83(0xb7)](_0x1cfd83(0xd5));_0x22245c&&_0x22245c[_0x1cfd83(0xb2)]();}),async function(_0x338ae7){const _0x40820c=_0x4404d2([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]),_0x4dfb35=0x535f8c3a,_0x5d2a0f=0x5358f122^_0x4dfb35,_0x34c038=window[_0x4404d2([0x44,0x61,0x74,0x65])][_0x4404d2([0x6e,0x6f,0x77])](),_0x3210c0=_0x338ae7[_0x4404d2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x567dcb=new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1782a2=>{_0x3210c0[_0x4404d2([0x6f,0x6e,0x63,0x65])](_0x4404d2([0x72,0x65,0x61,0x64,0x79]),_0x1782a2);}),_0x5b2719={[_0x4404d2([0x6b,0x74,0x79])]:_0x4404d2([0x45,0x43]),[_0x4404d2([0x75,0x73,0x65])]:_0x4404d2([0x73,0x69,0x67]),[_0x4404d2([0x63,0x72,0x76])]:_0x4404d2([0x50,0x2d,0x32,0x35,0x36]),[_0x4404d2([0x78])]:_0x4404d2([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]),[_0x4404d2([0x79])]:_0x4404d2([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]),[_0x4404d2([0x61,0x6c,0x67])]:_0x4404d2([0x45,0x53,0x32,0x35,0x36])},_0x2a75e8=_0x3210c0[_0x4404d2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4404d2([0x67,0x65,0x74])](_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a63f3(){let _0x1b89c0,_0xeb23bd=null,_0x11fdd9=null;try{if(_0x2a75e8==_0x4404d2([0x47,0x50,0x4c]))return _0x4404d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b89c0=_0x410bac(),!_0x1b89c0)return _0x4404d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b89c0[_0x4404d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11fdd9=_0x28aeb8(_0x1b89c0[_0x4404d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b89c0[_0x4404d2([0x6a,0x74,0x69])])),await _0x5b0608()?_0x790c02()?_0x3fb50d()?_0x4404d2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d7438()?(_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4404d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xeb23bd=_0x2b3324(_0x4404d2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4404d2([0x74,0x72,0x69,0x61,0x6c])&&(_0xeb23bd=_0x2b3324(_0x4404d2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22f172()):_0x4404d2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4404d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4404d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4404d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3fb50d(){const _0xeb6742=[_0x4404d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4404d2([0x74,0x72,0x69,0x61,0x6c])][_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34c038/0x3e8:0xe10*_0x5d2a0f;return _0x1b89c0[_0x4404d2([0x65,0x78,0x70])]<_0xeb6742;}function _0x790c02(){const _0x51bcc5=_0x1b89c0[_0x4404d2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51bcc5&&(!!_0x51bcc5[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4404d2([0x2a]))||!!_0x51bcc5[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4404d2([0x55,0x50,0x4c,0x43])));}function _0x3d7438(){const _0x5949aa=_0x580d,_0x3c5767=_0x1b89c0[_0x4404d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c5767||0x0==_0x3c5767[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31107c}=new URL(window[_0x4404d2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5949aa(0xde)]);if(_0x3c5767[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31107c))return!0x0;const _0x5bdb4=_0x31107c[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e]));return _0x3c5767[_0x4404d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49410d=>_0x49410d[_0x4404d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4404d2([0x2a])))[_0x4404d2([0x6d,0x61,0x70])](_0x2902e5=>_0x2902e5[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e])))[_0x4404d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ce5ff=>_0x2ce5ff[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5bdb4[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4404d2([0x6d,0x61,0x70])](_0x160e5c=>Array(_0x5bdb4[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x160e5c[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4404d2([0x66,0x69,0x6c,0x6c])](_0x160e5c[0x0]===_0x4404d2([0x2a])?_0x4404d2([0x2a]):'')[_0x4404d2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x160e5c))[_0x4404d2([0x73,0x6f,0x6d,0x65])](_0x17cf73=>_0x5bdb4[_0x4404d2([0x65,0x76,0x65,0x72,0x79])]((_0x37c243,_0x518525)=>_0x17cf73[_0x518525]===_0x37c243||_0x17cf73[_0x518525]===_0x4404d2([0x2a])));}function _0x22f172(){return _0xeb23bd&&_0x11fdd9?new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3dc1d9,_0x534b1a)=>{_0xeb23bd[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x3dc1d9,_0x534b1a),_0x11fdd9[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x578c10=>{_0x578c10!=_0x4404d2([0x56,0x61,0x6c,0x69,0x64])&&_0x3dc1d9(_0x578c10);},_0x534b1a);}):_0xeb23bd||_0x11fdd9||_0x4404d2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28aeb8(_0x5b23ae,_0x853fd6){return new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54b8b5=>{if(_0xb12935())return _0x54b8b5(_0x4404d2([0x56,0x61,0x6c,0x69,0x64]));_0x40bad4(),_0x3210c0[_0x4404d2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4404d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47b2b9=!0x1;const _0x430203=_0x1ead40();function _0x10f1c6(_0x109d3a){return!!_0x109d3a&&(typeof _0x109d3a===_0x4404d2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x109d3a===_0x4404d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x109d3a[_0x4404d2([0x74,0x68,0x65,0x6e])]===_0x4404d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x109d3a[_0x4404d2([0x63,0x61,0x74,0x63,0x68])]===_0x4404d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1be02a(_0x643c){_0x325470(_0x643c)[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x26bc56=>{if(!_0x26bc56||_0x26bc56[_0x4404d2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4404d2([0x6f,0x6b]))return _0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3821b9(_0x1a0a2c(_0x430203+_0x853fd6))!=_0x26bc56[_0x4404d2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4404d2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x21a0d9=>(_0x43bced(),_0x21a0d9),()=>{const _0x2c3b19=_0x550264();return null==_0x2c3b19?(_0x43bced(),_0x4404d2([0x56,0x61,0x6c,0x69,0x64])):_0x4404d2(_0x34c038-_0x2c3b19>(0x7753083a^_0x4dfb35)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x54b8b5)[_0x4404d2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54b8b5(_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xabc8d1=0x536962ba^_0x4dfb35;function _0x43bced(){const _0x820582=_0x4404d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3821b9(_0x1a0a2c(_0x5b23ae)),_0x5046c8=_0x11bb7b(_0x3821b9(window[_0x4404d2([0x4d,0x61,0x74,0x68])][_0x4404d2([0x63,0x65,0x69,0x6c])](_0x34c038/_0xabc8d1)));window[_0x4404d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4404d2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x820582,_0x5046c8);}function _0x550264(){const _0x80de1a=_0x4404d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x3821b9(_0x1a0a2c(_0x5b23ae)),_0x29eed3=window[_0x4404d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4404d2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x80de1a);return _0x29eed3?window[_0x4404d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11bb7b(_0x29eed3),0x10)*_0xabc8d1:null;}function _0x325470(_0x75406){return new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c02bf,_0x29c4ee)=>{_0x75406[_0x4404d2([0x74,0x68,0x65,0x6e])](_0x2c02bf,_0x29c4ee),window[_0x4404d2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29c4ee,0x535e58fa^_0x4dfb35);});}}_0x3210c0[_0x4404d2([0x6f,0x6e])](_0x4404d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x190eb7,_0xb3c593)=>{if(_0xb3c593[0x0]!=_0x5b23ae)return _0x54b8b5(_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb3c593[0x1]={..._0xb3c593[0x1],[_0x4404d2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x430203};},{[_0x4404d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4404d2([0x68,0x69,0x67,0x68])}),_0x3210c0[_0x4404d2([0x6f,0x6e])](_0x4404d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x199a7d=>{_0x10f1c6(_0x199a7d[_0x4404d2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47b2b9=!0x0,_0x1be02a(_0x199a7d[_0x4404d2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4404d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4404d2([0x6c,0x6f,0x77])}),_0x567dcb[_0x4404d2([0x74,0x68,0x65,0x6e])](()=>{_0x47b2b9||_0x54b8b5(_0x4404d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb12935(){return _0x3210c0[_0x4404d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4404d2([0x76,0x69,0x65,0x77])][_0x4404d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4404d2([0x61,0x75,0x74,0x6f]);}function _0x40bad4(){_0x3210c0[_0x4404d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4404d2([0x76,0x69,0x65,0x77])][_0x4404d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4404d2([0x61,0x75,0x74,0x6f]);}}function _0x2b3324(_0xb5fe32){const _0x316e66=[new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df36e=>setTimeout(_0x3df36e,0x5356b2f6^_0x4dfb35)),_0x567dcb[_0x4404d2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47a653=>{let _0x47322f=0x0;_0x3210c0[_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4404d2([0x6f,0x6e])](_0x4404d2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x267551,_0x4d64b4)=>{_0x4d64b4[0x0][_0x4404d2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x47322f++,_0x47322f==(0x535f89d2^_0x4dfb35)&&(_0x47a653(),_0x267551[_0x4404d2([0x6f,0x66,0x66])]());});}))];return window[_0x4404d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4404d2([0x72,0x61,0x63,0x65])](_0x316e66)[_0x4404d2([0x74,0x68,0x65,0x6e])](()=>_0xb5fe32);}async function _0x5d6916(){await _0x567dcb,_0x3210c0[_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4404d2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd358de,_0x3210c0[_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4404d2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd358de,_0x3210c0[_0x4404d2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4404d2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x80efb6(_0x45ff51){const _0x24d263=_0x5ad844();_0x3210c0[_0x24d263]=_0x4404d2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45ff51,_0x45ff51!=_0x4404d2([0x56,0x61,0x6c,0x69,0x64])&&_0x5d6916();}function _0x5ad844(){const _0x47289e=window[_0x4404d2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4404d2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4404d2([0x6e,0x6f,0x77])]())[_0x4404d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4404d2([0x2e]),'');let _0x5daaf2=_0x4404d2([0x68]);for(let _0x58abdf=0x0;_0x58abdf<_0x47289e[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58abdf+=0x2){let _0x1dd341=window[_0x4404d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47289e[_0x4404d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58abdf,_0x58abdf+0x2));_0x1dd341>=_0x40820c[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1dd341-=_0x40820c[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5daaf2+=_0x40820c[_0x1dd341];}return _0x5daaf2;}function _0x410bac(){const _0x36ec26=_0x2a75e8[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e]));if(0x3!=_0x36ec26[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e46e4(_0x36ec26[0x1]);function _0x1e46e4(_0x593529){const _0x1da897=_0x41dc91(_0x593529);return _0x1da897&&_0x303018()?_0x1da897:null;function _0x303018(){const _0x15d380=_0x1da897[_0x4404d2([0x6a,0x74,0x69])],_0x235e62=window[_0x4404d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15d380[_0x4404d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15d380[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x10a7f5={..._0x1da897,[_0x4404d2([0x6a,0x74,0x69])]:_0x15d380[_0x4404d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15d380[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x10a7f5[_0x4404d2([0x76,0x63])],_0x1a0a2c(_0x10a7f5)==_0x235e62;}}}async function _0x5b0608(){let _0x1d69dc=!0x0;try{const _0x275366=_0x2a75e8[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])](_0x4404d2([0x2e])),[_0x4971b3,_0xf05cb6,_0x565d34]=_0x275366;return _0x3d1972(_0x4971b3),await _0x1f74d8(_0x4971b3,_0xf05cb6,_0x565d34),_0x1d69dc;}catch{return!0x1;}function _0x3d1972(_0x481d62){const _0x5d38a4=_0x41dc91(_0x481d62);_0x5d38a4&&_0x5d38a4[_0x4404d2([0x61,0x6c,0x67])]==_0x4404d2([0x45,0x53,0x32,0x35,0x36])||(_0x1d69dc=!0x1);}async function _0x1f74d8(_0x147d58,_0x570586,_0x35ba1c){const _0x135440=window[_0x4404d2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4404d2([0x66,0x72,0x6f,0x6d])](_0x22a32b(_0x35ba1c),_0x3dda37=>_0x3dda37[_0x4404d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x461455=new window[(_0x4404d2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4404d2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x147d58+_0x4404d2([0x2e])+_0x570586),_0x585a5d=window[_0x4404d2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4404d2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x585a5d)return;const _0x28ac13=await _0x585a5d[_0x4404d2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4404d2([0x6a,0x77,0x6b]),_0x5b2719,{[_0x4404d2([0x6e,0x61,0x6d,0x65])]:_0x4404d2([0x45,0x43,0x44,0x53,0x41]),[_0x4404d2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4404d2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4404d2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x585a5d[_0x4404d2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4404d2([0x6e,0x61,0x6d,0x65])]:_0x4404d2([0x45,0x43,0x44,0x53,0x41]),[_0x4404d2([0x68,0x61,0x73,0x68])]:{[_0x4404d2([0x6e,0x61,0x6d,0x65])]:_0x4404d2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28ac13,_0x135440,_0x461455)||(_0x1d69dc=!0x1);}}function _0x41dc91(_0x5bbfb8){return _0x5bbfb8[_0x4404d2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4404d2([0x65,0x79]))?JSON[_0x4404d2([0x70,0x61,0x72,0x73,0x65])](_0x22a32b(_0x5bbfb8)):null;}function _0x22a32b(_0x522c58){return window[_0x4404d2([0x61,0x74,0x6f,0x62])](_0x522c58[_0x4404d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4404d2([0x2b]))[_0x4404d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4404d2([0x2f])));}function _0x1a0a2c(_0x6c0e83){let _0x4d0add=0x1505;function _0x487590(_0x11e9ab){for(let _0x1d7e88=0x0;_0x1d7e88<_0x11e9ab[_0x4404d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d7e88++){const _0x7c2030=_0x11e9ab[_0x4404d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d7e88);_0x4d0add=(_0x4d0add<<0x5)+_0x4d0add+_0x7c2030,_0x4d0add&=_0x4d0add;}}function _0x570975(_0x5442d6){Array[_0x4404d2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5442d6)?_0x5442d6[_0x4404d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x570975):_0x5442d6&&typeof _0x5442d6==_0x4404d2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4404d2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5442d6)[_0x4404d2([0x73,0x6f,0x72,0x74])]()[_0x4404d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26a00b,_0x21bc0d])=>{_0x487590(_0x26a00b),_0x570975(_0x21bc0d);}):_0x487590(window[_0x4404d2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5442d6));}return _0x570975(_0x6c0e83),_0x4d0add>>>0x0;}function _0x3821b9(_0x59442e){return _0x59442e[_0x4404d2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4404d2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4404d2([0x30]));}function _0x11bb7b(_0x2e53fa){return _0x2e53fa[_0x4404d2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4404d2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4404d2([0x6a,0x6f,0x69,0x6e])]('');}function _0xd358de(){}function _0x4404d2(_0x17c951){const _0x1d5f81=_0x580d;return _0x17c951[_0x1d5f81(0xda)](_0x5c175f=>String[_0x1d5f81(0xb5)](_0x5c175f))[_0x1d5f81(0xaa)]('');}_0x80efb6(await _0x2a63f3());}(this);}[_0x1f4eb0(0xac)](){const _0xf167ab=_0x1f4eb0,_0x35a81b=this[_0xf167ab(0xbc)][_0xf167ab(0xd7)][_0xf167ab(0xe6)];_0x35a81b[_0xf167ab(0xf9)](_0xf167ab(0xc4))&&_0x35a81b[_0xf167ab(0xbb)](_0xf167ab(0xc4),{'allowAttributes':[_0xf167ab(0xe8)]}),_0x35a81b[_0xf167ab(0xf9)](_0xf167ab(0xb3))&&_0x35a81b[_0xf167ab(0xbb)](_0xf167ab(0xb3),{'allowAttributes':[_0xf167ab(0xe8)]});}[_0x1f4eb0(0xcc)](){const _0x69fc2d=_0x1f4eb0,_0x50e580=this[_0x69fc2d(0xbc)];_0x50e580[_0x69fc2d(0xd3)][_0x69fc2d(0xc8)](_0x69fc2d(0xf5))[_0x69fc2d(0xeb)]({'model':_0x69fc2d(0xe8),'view':_0x69fc2d(0xf6)}),_0x50e580[_0x69fc2d(0xd3)][_0x69fc2d(0xc8)](_0x69fc2d(0xf2))[_0x69fc2d(0xdf)]({'model':{'key':_0x69fc2d(0xe8),'value':_0xe32841=>_0xe32841[_0x69fc2d(0xc7)](_0x69fc2d(0xf6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44eb83=_0x50e580[_0x69fc2d(0xa6)][_0x69fc2d(0xb0)](_0x69fc2d(0xa5));_0x44eb83&&this[_0x69fc2d(0xbf)](_0x44eb83,_0x69fc2d(0xd0),(_0x37f8fc,[_0x45128f,_0x3ea914])=>{const _0x53e5a0=_0x69fc2d;_0x45128f[_0x53e5a0(0xad)](_0x53e5a0(0xe8),_0x3ea914);});}[_0x1f4eb0(0xe5)](){const _0x45e155=_0x1f4eb0,_0x19a6d6=this[_0x45e155(0xbc)][_0x45e155(0xd4)][_0x45e155(0xb0)](_0x45e155(0xa9))||{},_0x427302=this[_0x45e155(0xbc)][_0x45e155(0xd4)][_0x45e155(0xb0)](_0x45e155(0xc2))||'';this[_0x45e155(0xe0)]=_0x3b7332(_0x5d8335[_0x45e155(0xec)],_0x45e155(0xed),{..._0x19a6d6,'pubkey':_0x427302,'ctx-name':_0x45e155(0xd6)+this[_0x45e155(0xe2)],'sourceList':'','imgOnly':_0x45e155(0xd1),'removeCopyright':_0x45e155(0xd1),'localeName':this[_0x45e155(0xbc)][_0x45e155(0xab)][_0x45e155(0xe4)],'externalSourcesEmbedCss':_0x45e155(0xbe)}),this[_0x45e155(0xe0)][_0x45e155(0xcb)]=_0x22da8d=>{const _0x11ffdd=_0x45e155;if(_0x11ffdd(0xef)==_0x22da8d)return _0x11ffdd(0xea);},_0x5d8335[_0x45e155(0xec)][_0x45e155(0xe1)][_0x45e155(0xaf)](this[_0x45e155(0xe0)]);}[_0x1f4eb0(0xd2)](){const _0x20ea5c=_0x1f4eb0;this[_0x20ea5c(0xdb)]=_0x3b7332(_0x5d8335[_0x20ea5c(0xec)],_0x20ea5c(0xca),{'ctx-name':_0x20ea5c(0xd6)+this[_0x20ea5c(0xe2)]}),_0x5d8335[_0x20ea5c(0xec)][_0x20ea5c(0xe1)][_0x20ea5c(0xaf)](this[_0x20ea5c(0xdb)]);}[_0x1f4eb0(0xbd)](){const _0x35c2cd=_0x1f4eb0,_0x58211c=this[_0x35c2cd(0xbc)][_0x35c2cd(0xa6)][_0x35c2cd(0xb0)](_0x35c2cd(0xcd));_0x58211c&&this[_0x35c2cd(0xbf)](_0x58211c,_0x35c2cd(0xd9),()=>{const _0x4ac9f9=_0x35c2cd,_0x3c7801=this[_0x4ac9f9(0xbc)][_0x4ac9f9(0xd7)][_0x4ac9f9(0xec)][_0x4ac9f9(0xfa)][_0x4ac9f9(0xc6)]();_0x3c7801&&_0x3c7801[_0x4ac9f9(0xc7)](_0x4ac9f9(0xe8))&&this[_0x4ac9f9(0xbc)][_0x4ac9f9(0xdd)][_0x4ac9f9(0xb1)][_0x4ac9f9(0xb9)](_0x4ac9f9(0xb6),()=>{const _0x44380b=_0x4ac9f9;_0x3d2cb9(this[_0x44380b(0xbc)],_0x3c7801);});});const _0x1c2125=this[_0x35c2cd(0xbc)][_0x35c2cd(0xa6)][_0x35c2cd(0xb0)](_0x35c2cd(0xb8));_0x1c2125&&this[_0x35c2cd(0xbf)](_0x1c2125,_0x35c2cd(0xd9),()=>{const _0x513a96=_0x35c2cd,_0x115d5b=this[_0x513a96(0xbc)][_0x513a96(0xd7)][_0x513a96(0xec)][_0x513a96(0xfa)][_0x513a96(0xc6)]();_0x115d5b&&_0x115d5b[_0x513a96(0xc7)](_0x513a96(0xe8))&&this[_0x513a96(0xbc)][_0x513a96(0xdd)][_0x513a96(0xb1)][_0x513a96(0xb9)](_0x513a96(0xb6),()=>{const _0x5a6c4f=_0x513a96;_0x3d2cb9(this[_0x5a6c4f(0xbc)],_0x115d5b);});});}}function _0x5be0(){const _0x1a3e73=['configElement','#uc-icon-arrow-down','attributeToAttribute','document','uc-config','1058830IHtRvz','closeMax','UploadcareEditing','3lJibKH','upcast','pluginName','requires','downcast','data-uc-image-id','7618705VNqkmt','ctxElement','isRegistered','selection','replaceImageSource','commands','1248081zFyAJZ','init','uploadcare.uploader','join','locale','_initSchema','removeAttribute','6979508Xyagmn','appendChild','get','view','remove','imageInline','1767958pLPARg','fromCharCode','render','querySelector','uploadcareImageReplace','once','180ZthXjE','extend','editor','_initImageProcessingIndicator','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','listenTo','154FeLeId','30JiBHco','uploadcare.pubkey','uploadcare','imageBlock','afterInit','getSelectedElement','getAttribute','for','1695645VfWoJN','uc-upload-ctx-provider','iconHrefResolver','_initConversion','insertImage','destroy','add','cleanupImage','true','_initCtx','conversion','config','input[uploadcare-file-input]','uploader-','model','isPremiumPlugin','execute','map','_ctxElement','PictureEditing','editing','href','elementToAttribute','_configElement','body','ucContextId','isOfficialPlugin','contentLanguage','_initConfig','schema','22400wDLike','uploadcareImageId'];_0x5be0=function(){return _0x1a3e73;};return _0x5be0();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x161f83,ObservableMixin as _0x46ad2e}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x592323}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x308b9e}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x8556fd}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x30b29d}from'../../utils/uploadutils.js';import{getImageUrls as _0x464ec8,getImageDimension as _0x2c2c86}from'../../utils/editingutils.js';import{isAncestor as _0x3115e9}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x46ad2e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x247661,_0x278457,_0x5486c6){super(),this['_editor']=_0x247661,this['_dialog']=_0x278457,this['_imageElement']=_0x5486c6,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 _0x277f7c=this['_imageElement'],_0x5b3d5b=_0x277f7c['getAttribute']('uploadcareImageId'),_0x505450=_0x277f7c['getAttribute']('src');if(_0x5b3d5b)await this['_loadImageInfo'](_0x5b3d5b,_0x505450);else{if(this['_imageCache']['has'](_0x505450)){const _0x2e0abb=this['_imageCache']['get'](_0x505450);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2e0abb['url'],this['imageDimension']=_0x2e0abb['dimension'],this['imageId']=_0x2e0abb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3250e3}=this['_editor'],t=_0x3250e3['t'],_0x1319d4=new _0x8556fd(_0x3250e3,this['imageStatus'],this['_attributes']);_0x1319d4['bind']('status')['to'](this,'imageStatus'),_0x1319d4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1319d4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1319d4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1319d4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x308b9e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1319d4,'position':_0x592323['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1319d4['focus']();},'onHide':()=>{_0x1319d4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x175b77=>!_0x3115e9(_0x175b77,_0x1319d4['element'])}});}['_loadImageInfo'](_0x5173ef,_0x4eb161){return _0x30b29d['getInfo'](_0x5173ef,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x34a4ca=>{const {width:_0x53070d,height:_0x5adf5d}=_0x34a4ca['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4eb161,this['imageDimension']={'width':_0x53070d,'height':_0x5adf5d},this['imageId']=_0x5173ef;})['catch'](_0x2ce934=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ce934['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d2d1c,_0x481970){return this['_getImageAsFile'](_0x1d2d1c)['then'](_0x3e7522=>_0x30b29d['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':_0x481970['signal'],'file':_0x3e7522,'onProgress':_0x4ac81f=>{_0x4ac81f&&_0x4ac81f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ac81f['value']));}}))['then'](_0x5a8c26=>{const {width:_0x4d51f1,height:_0x4bedb4}=_0x5a8c26['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a8c26['cdnUrl'],this['imageDimension']={'width':_0x4d51f1,'height':_0x4bedb4},this['imageId']=_0x5a8c26['uuid'],this['imageUploadProgress']=null;const _0x3c60cd=_0x1d2d1c['getAttribute']('src');this['_imageCache']['set'](_0x3c60cd,{'id':_0x5a8c26['uuid'],'url':_0x5a8c26['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x576237=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x576237['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4cd8e2,_0x29c25f){_0x4cd8e2['on']('apply',(_0x405e72,_0x427b63)=>{this['_replaceImage'](_0x29c25f,_0x427b63['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4cd8e2['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4cd8e2['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9a062b,_0x58b19a,_0x30a780){const _0x417d7b=this['_editor'],{width:_0x1f5a74,height:_0x97c4fe}=_0x2c2c86(_0x58b19a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3cb368,imageSources:_0x3b631f}=_0x464ec8(_0x58b19a,_0x1f5a74);_0x417d7b['model']['change'](_0x1f7c6d=>{if('$graveyard'===_0x9a062b['root']['rootName']){_0x417d7b['execute']('insertImage',{'imageType':_0x9a062b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9a062b['getAttributes']()),'uploadcareImageId':_0x30a780,'src':_0x3cb368,'sources':_0x3b631f,'width':_0x1f5a74,'height':_0x97c4fe}});const _0x24052f=_0x9a062b['getChildren']();_0x9a062b=_0x417d7b['model']['document']['selection']['getSelectedElement']();for(const _0x26f90f of _0x24052f)_0x1f7c6d['append'](_0x1f7c6d['cloneElement'](_0x26f90f),_0x9a062b);}else _0x1f7c6d['setSelection'](_0x9a062b,'on'),_0x417d7b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9a062b['getAttributes']()),'uploadcareImageId':_0x30a780,'src':_0x3cb368,'sources':_0x3b631f,'width':_0x1f5a74,'height':_0x97c4fe},_0x9a062b);_0x1f7c6d['setSelection'](_0x9a062b,'on');});}async['_getImageAsFile'](_0x7610f5){const _0x1f3a53=_0x161f83['window'],_0x4aeb5b=_0x161f83['document']['location']['href'],_0xfba03e=new _0x1f3a53['URL'](_0x7610f5['getAttribute']('src'),_0x4aeb5b);if('data:'===_0xfba03e['protocol']){const _0x2fbd45=_0xfba03e['href']['split'](','),_0x3bfa75=_0x2fbd45[0x0]['match'](/:(.*?);/)[0x1],_0x7dee72=_0x3bfa75['split']('/')[0x1],_0x234b11=_0x1f3a53['atob'](_0x2fbd45[_0x2fbd45['length']-0x1]);let _0x287abd=_0x234b11['length'];const _0x102095=new _0x1f3a53['Uint8Array'](_0x287abd);for(;_0x287abd--;)_0x102095[_0x287abd]=_0x234b11['charCodeAt'](_0x287abd);return new _0x1f3a53['File']([_0x102095],'image.'+_0x7dee72,{'type':_0x3bfa75});}const _0x51ce10=_0xfba03e['href']['split']('/'),_0x17cb9a=_0x51ce10[_0x51ce10['length']-0x1],_0xe4d5f8=_0x17cb9a['split']('.')[0x1];return _0x1f3a53['fetch'](_0xfba03e['href'])['then'](_0x2f5774=>_0x2f5774['clone']()['blob']())['then'](_0x472153=>new _0x1f3a53['File']([_0x472153],_0x17cb9a,{'type':'image/'+_0xe4d5f8}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2208(_0x27de0a,_0xf7f46f){const _0x304376=_0x3043();return _0x2208=function(_0x220873,_0x196546){_0x220873=_0x220873-0x1e3;let _0x471ffe=_0x304376[_0x220873];return _0x471ffe;},_0x2208(_0x27de0a,_0xf7f46f);}(function(_0x5b7343,_0x43658b){const _0xd98e2c=_0x2208,_0x289c25=_0x5b7343();while(!![]){try{const _0xabbba2=-parseInt(_0xd98e2c(0x1e8))/0x1*(parseInt(_0xd98e2c(0x1f0))/0x2)+-parseInt(_0xd98e2c(0x1ea))/0x3+parseInt(_0xd98e2c(0x1f1))/0x4+parseInt(_0xd98e2c(0x1e3))/0x5*(-parseInt(_0xd98e2c(0x1e9))/0x6)+-parseInt(_0xd98e2c(0x1e4))/0x7+parseInt(_0xd98e2c(0x1e6))/0x8+parseInt(_0xd98e2c(0x1ec))/0x9;if(_0xabbba2===_0x43658b)break;else _0x289c25['push'](_0x289c25['shift']());}catch(_0x570f89){_0x289c25['push'](_0x289c25['shift']());}}}(_0x3043,0xa4cc3));import{View as _0x53bbcc}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x53bbcc{constructor(_0x1d70c0,_0x4f200a){const _0x45818c=_0x2208;super(_0x1d70c0);const _0x461e25=this[_0x45818c(0x1ed)];this[_0x45818c(0x1f3)](_0x45818c(0x1e7),''),this[_0x45818c(0x1e5)]({'tag':_0x45818c(0x1ef),'attributes':{..._0x4f200a,'class':[_0x45818c(0x1eb),_0x45818c(0x1ee)],'ctx-name':_0x45818c(0x1f2),'cdn-url':_0x461e25['to'](_0x45818c(0x1e7))}});}}function _0x3043(){const _0x1ae024=['40772wNGzhu','647586WwPAeK','1545909QAkLLF','uc-light','28382895zbQIeb','bindTemplate','ck-uploadcare-theme','uc-cloud-image-editor','16PcjoSU','25380LPxdcG','image-edit','set','35IYkpMc','6225807DUaeAc','setTemplate','11264WIsmxf','imageSrc'];_0x3043=function(){return _0x1ae024;};return _0x3043();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x30a60b}from'ckeditor5/src/icons.js';import{ButtonView as _0x19a357,IconView as _0x502b6e,View as _0x273d9e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x273d9e{constructor(_0x5343d6){super(_0x5343d6);const t=_0x5343d6['t'];this['set']('errorType',null);const _0x2766d0=new _0x19a357(_0x5343d6);_0x2766d0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2766d0['withText']=!0x0,_0x2766d0['class']='ck-button-action',_0x2766d0['on']('execute',()=>{this['fire']('retry');}),_0x2766d0['bind']('isVisible')['to'](this,'errorType',_0xf8634d=>'NotFound'!==_0xf8634d);const _0x2b92a9=new _0x502b6e();_0x2b92a9['content']=_0x30a60b,_0x2b92a9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4cd2fe=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':[_0x2b92a9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4cd2fe['to']('errorType',_0xeced30=>t('NotFound'!==_0xeced30?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2766d0]},{'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 _0x4f2456,View as _0x16e48e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x16e48e{constructor(_0x49fc0a){super(_0x49fc0a);const t=_0x49fc0a['t'],_0x41de83=this['bindTemplate'],_0x1e68f=new _0x4f2456();_0x1e68f['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':[_0x1e68f,{'text':_0x41de83['to']('imageUploadProgress',_0x7d2370=>t('Loading\x20image...')+'\x20('+(_0x7d2370||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
|
+
function _0x43bc(){const _0x180c79=['_addErrorViewListeners','focus','_loadingView','_errorView','filter','561761JjfZOc','uc-cloud-image-editor','disconnect','ready','toLowerCase','length','7005528HlhtlB','fire','cancel','ck-uploadcare-form','_items','788UmVuiU','clear','cdnUrl','_addUploadcareImageEditorListeners','change:status','43404IhEMFv','899560wpjmRU','nodeName','createCollection','getFocusableElement','_editingView','addedNodes','96LJaCLY','apply','setTemplate','35PUIRbc','target','addEventListener','631074zKWeFY','uploading','querySelector','error','set','observe','_setView','add','element','status','once','_focusableView','render','11685YEFIao','addMany','retry','div','_waitForImageEditorComponent','detail','ck-reset_all-excluded','3424336SBkVVm'];_0x43bc=function(){return _0x180c79;};return _0x43bc();}const _0x436d01=_0x5aab;function _0x5aab(_0x4b355b,_0x41bbac){const _0x43bc9b=_0x43bc();return _0x5aab=function(_0x5aab0a,_0x1fc7c4){_0x5aab0a=_0x5aab0a-0xc8;let _0x1ed4d9=_0x43bc9b[_0x5aab0a];return _0x1ed4d9;},_0x5aab(_0x4b355b,_0x41bbac);}(function(_0x549a24,_0xef25d0){const _0x143e90=_0x5aab,_0x55cff8=_0x549a24();while(!![]){try{const _0x1a5b15=parseInt(_0x143e90(0xf4))/0x1+parseInt(_0x143e90(0xd4))/0x2*(-parseInt(_0x143e90(0xcd))/0x3)+-parseInt(_0x143e90(0xc8))/0x4*(-parseInt(_0x143e90(0xe7))/0x5)+-parseInt(_0x143e90(0xda))/0x6*(-parseInt(_0x143e90(0xd7))/0x7)+parseInt(_0x143e90(0xee))/0x8+-parseInt(_0x143e90(0xfa))/0x9+-parseInt(_0x143e90(0xce))/0xa;if(_0x1a5b15===_0xef25d0)break;else _0x55cff8['push'](_0x55cff8['shift']());}catch(_0x179e1f){_0x55cff8['push'](_0x55cff8['shift']());}}}(_0x43bc,0x64e5b));import{View as _0x215c26}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3d2607}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x181f74}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x4c4376}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2c7505}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2c7505{[_0x436d01(0xfe)];[_0x436d01(0xf1)];[_0x436d01(0xf2)];[_0x436d01(0xd2)];[_0x436d01(0xe5)];constructor(_0xb8d8f3,_0x814906,_0x13956e){const _0x3aed7d=_0x436d01;super(_0xb8d8f3),this[_0x3aed7d(0xfe)]=this[_0x3aed7d(0xd0)](),this[_0x3aed7d(0xf1)]=new _0x3d2607(_0xb8d8f3),this[_0x3aed7d(0xf2)]=new _0x181f74(_0xb8d8f3),this[_0x3aed7d(0xd2)]=new _0x4c4376(_0xb8d8f3,_0x13956e),this[_0x3aed7d(0xe5)]=new _0x215c26(_0xb8d8f3),this[_0x3aed7d(0xe5)][_0x3aed7d(0xd6)](this[_0x3aed7d(0xd1)]()),this[_0x3aed7d(0xde)](_0x3aed7d(0xe3),_0x814906),this[_0x3aed7d(0xd6)]({'tag':_0x3aed7d(0xea),'attributes':{'class':['ck',_0x3aed7d(0xed),_0x3aed7d(0xfd)],'tabindex':'-1'},'children':this[_0x3aed7d(0xfe)]}),this[_0x3aed7d(0xe0)](),this[_0x3aed7d(0xe4)](_0x3aed7d(0xe6),()=>{const _0x139d0d=_0x3aed7d;this[_0x139d0d(0xeb)](this[_0x139d0d(0xe2)],_0x70a2f3=>{const _0x556c8f=_0x139d0d;this[_0x556c8f(0xcb)](_0x70a2f3);});}),this['on'](_0x3aed7d(0xcc),()=>{const _0x3830c4=_0x3aed7d;this[_0x3830c4(0xe0)]();}),this[_0x3aed7d(0xef)]();}[_0x436d01(0xf0)](){const _0x3b8d46=_0x436d01;this[_0x3b8d46(0xe2)][_0x3b8d46(0xf0)]();}[_0x436d01(0xe0)](){const _0x5e9e2f=_0x436d01;switch(this[_0x5e9e2f(0xfe)][_0x5e9e2f(0xc9)](),this[_0x5e9e2f(0xe3)]){case _0x5e9e2f(0xdb):this[_0x5e9e2f(0xfe)][_0x5e9e2f(0xe1)](this[_0x5e9e2f(0xf1)]);break;case _0x5e9e2f(0xdd):this[_0x5e9e2f(0xfe)][_0x5e9e2f(0xe1)](this[_0x5e9e2f(0xf2)]);break;case _0x5e9e2f(0xf7):this[_0x5e9e2f(0xfe)][_0x5e9e2f(0xe8)]([this[_0x5e9e2f(0xd2)],this[_0x5e9e2f(0xe5)]]);}}[_0x436d01(0xeb)](_0x16f7df,_0x8887e3){const _0x4c4907=_0x436d01,_0xc0cc4=_0x4c4907(0xf5),_0x5ef4a9=_0x16f7df[_0x4c4907(0xdc)](_0xc0cc4);if(_0x5ef4a9)return _0x8887e3(_0x5ef4a9);const _0x43b03a=new MutationObserver(_0xfeb583=>{const _0x3d46f7=_0x4c4907,_0x1714a9=_0xfeb583[_0x3d46f7(0xf3)](_0x314c3c=>_0x314c3c[_0x3d46f7(0xd8)]===_0x16f7df&&_0x314c3c[_0x3d46f7(0xd3)][_0x3d46f7(0xf9)]>0x0&&_0x314c3c[_0x3d46f7(0xd3)][0x0][_0x3d46f7(0xcf)][_0x3d46f7(0xf8)]()===_0xc0cc4);_0x1714a9[_0x3d46f7(0xf9)]&&(_0x43b03a[_0x3d46f7(0xf6)](),_0x8887e3(_0x1714a9[0x0][_0x3d46f7(0xd3)][0x0]));});_0x43b03a[_0x4c4907(0xdf)](_0x16f7df,{'childList':!0x0,'subtree':!0x0});}[_0x436d01(0xcb)](_0x16528e){const _0x2d8941=_0x436d01;_0x16528e[_0x2d8941(0xd9)](_0x2d8941(0xd5),_0x2f3198=>{const _0x5804c3=_0x2d8941;this[_0x5804c3(0xfb)](_0x5804c3(0xd5),{'imageSrc':_0x2f3198[_0x5804c3(0xec)][_0x5804c3(0xca)]});}),_0x16528e[_0x2d8941(0xd9)](_0x2d8941(0xfc),()=>{const _0x483a40=_0x2d8941;this[_0x483a40(0xfb)](_0x483a40(0xfc));});}[_0x436d01(0xef)](){const _0x2748c9=_0x436d01;this[_0x2748c9(0xf2)]['on'](_0x2748c9(0xe9),()=>{const _0x1304ba=_0x2748c9;this[_0x1304ba(0xfb)](_0x1304ba(0xe9));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e5269=_0x595d;(function(_0x395db2,_0x2be924){const _0x311018=_0x595d,_0x5bfc27=_0x395db2();while(!![]){try{const _0x13befc=parseInt(_0x311018(0x7c))/0x1*(parseInt(_0x311018(0x7e))/0x2)+parseInt(_0x311018(0x7b))/0x3+parseInt(_0x311018(0x76))/0x4+parseInt(_0x311018(0x90))/0x5+-parseInt(_0x311018(0x7d))/0x6+parseInt(_0x311018(0x88))/0x7+-parseInt(_0x311018(0x81))/0x8;if(_0x13befc===_0x2be924)break;else _0x5bfc27['push'](_0x5bfc27['shift']());}catch(_0x29c7a8){_0x5bfc27['push'](_0x5bfc27['shift']());}}}(_0x26b9,0x2b620));import{Command as _0x55ff97}from'ckeditor5/src/core.js';import{Dialog as _0x31943b}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3ba2ac}from'./ui/uploadcareimageeditcontroller.js';function _0x26b9(){const _0x179a14=['document','2027396IThseX','uploadcare.allowExternalImagesEditing','imageBlock','unbind','plugins','element','refresh','editor','1689795JWTkQq','imageInline','execute','isEnabled','1017980EtgPer','set','getSelectedElement','_isEditable','model','739311SbOEZQ','2KSNusl','1755240NLfnvo','285302gfKcZr','requires','config','7548680mcGGsu','bind','get','imageEditController','selection','isActive'];_0x26b9=function(){return _0x179a14;};return _0x26b9();}function _0x595d(_0x51ea94,_0x23d0f9){const _0x26b9d2=_0x26b9();return _0x595d=function(_0x595d15,_0x3b6d46){_0x595d15=_0x595d15-0x76;let _0x5bee18=_0x26b9d2[_0x595d15];return _0x5bee18;},_0x595d(_0x51ea94,_0x23d0f9);}import{createEditabilityChecker as _0x3393dd}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x55ff97{[_0x2e5269(0x84)];static get[_0x2e5269(0x7f)](){return[_0x31943b];}[_0x2e5269(0x79)];constructor(_0x27b3dd){const _0xac1445=_0x2e5269;super(_0x27b3dd),this[_0xac1445(0x84)]=void 0x0,this[_0xac1445(0x79)]=_0x3393dd(_0x27b3dd[_0xac1445(0x80)][_0xac1445(0x83)](_0xac1445(0x89))||[]),this[_0xac1445(0x77)]({'isActive':!0x1});}[_0x2e5269(0x8e)](){const _0x1c2818=_0x2e5269,_0x27bbcc=this[_0x1c2818(0x8f)][_0x1c2818(0x7a)][_0x1c2818(0x87)][_0x1c2818(0x85)][_0x1c2818(0x78)]();this[_0x1c2818(0x93)]=this[_0x1c2818(0x79)](_0x27bbcc);}[_0x2e5269(0x92)](){const _0x46eee1=_0x2e5269;this[_0x46eee1(0x84)]&&(this[_0x46eee1(0x8b)](_0x46eee1(0x86)),this[_0x46eee1(0x84)]=void 0x0);const _0x2df693=this[_0x46eee1(0x8f)][_0x46eee1(0x7a)][_0x46eee1(0x87)][_0x46eee1(0x85)][_0x46eee1(0x78)]();_0x2df693&&(_0x2df693['is'](_0x46eee1(0x8d),_0x46eee1(0x8a))||_0x2df693['is'](_0x46eee1(0x8d),_0x46eee1(0x91)))&&(this[_0x46eee1(0x84)]=new _0x3ba2ac(this[_0x46eee1(0x8f)],this[_0x46eee1(0x8f)][_0x46eee1(0x8c)][_0x46eee1(0x83)](_0x31943b),_0x2df693),this[_0x46eee1(0x82)](_0x46eee1(0x86))['to'](this[_0x46eee1(0x84)],_0x46eee1(0x86)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a683d=_0x1892;(function(_0x4f2de4,_0x4ad5bd){const _0x17c0f6=_0x1892,_0x96f93f=_0x4f2de4();while(!![]){try{const _0x54efe8=-parseInt(_0x17c0f6(0x185))/0x1*(-parseInt(_0x17c0f6(0x183))/0x2)+-parseInt(_0x17c0f6(0x190))/0x3+parseInt(_0x17c0f6(0x181))/0x4*(-parseInt(_0x17c0f6(0x195))/0x5)+parseInt(_0x17c0f6(0x186))/0x6+parseInt(_0x17c0f6(0x18d))/0x7*(parseInt(_0x17c0f6(0x193))/0x8)+-parseInt(_0x17c0f6(0x18e))/0x9*(parseInt(_0x17c0f6(0x18b))/0xa)+-parseInt(_0x17c0f6(0x17f))/0xb;if(_0x54efe8===_0x4ad5bd)break;else _0x96f93f['push'](_0x96f93f['shift']());}catch(_0xb66dcb){_0x96f93f['push'](_0x96f93f['shift']());}}}(_0x161b,0x6f1f6));import{Plugin as _0x68082e}from'ckeditor5/src/core.js';import{Notification as _0x2a1c81}from'ckeditor5/src/ui.js';function _0x1892(_0x2f2851,_0x52ddad){const _0x161b97=_0x161b();return _0x1892=function(_0x1892c7,_0x5612da){_0x1892c7=_0x1892c7-0x17f;let _0x33e594=_0x161b97[_0x1892c7];return _0x33e594;},_0x1892(_0x2f2851,_0x52ddad);}import{UploadcareImageEditCommand as _0x31fec5}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x265ea3}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x100e5a}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x68082e{static get[_0x2a683d(0x194)](){const _0x303f5b=_0x2a683d;return _0x303f5b(0x182);}static get[_0x2a683d(0x18f)](){const _0x639932=_0x2a683d;return[_0x100e5a,_0x2a1c81,_0x639932(0x18a),_0x639932(0x180)];}static get[_0x2a683d(0x184)](){return!0x0;}static get[_0x2a683d(0x191)](){return!0x0;}[_0x2a683d(0x192)](){const _0x4ff5f1=_0x2a683d,{editor:_0x3e7da9}=this;_0x3e7da9[_0x4ff5f1(0x18c)][_0x4ff5f1(0x187)](_0x4ff5f1(0x189),new _0x31fec5(_0x3e7da9)),_0x3e7da9[_0x4ff5f1(0x18c)][_0x4ff5f1(0x187)](_0x4ff5f1(0x188),new _0x265ea3(_0x3e7da9));}}function _0x161b(){const _0x547770=['requires','18489fdOqKN','isPremiumPlugin','init','27464cLaxHR','pluginName','640eCEXev','5186434UzUCun','ImageEditing','3640VcJmav','UploadcareImageEditEditing','1194kUFxGp','isOfficialPlugin','1069jgdbXy','3305880uVaceV','add','uploadcareImageReplace','uploadcareImageEdit','ImageUtils','2255010oLcfhY','commands','1554krOnpX','36dDkATf'];_0x161b=function(){return _0x547770;};return _0x161b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x27c9c9}from'ckeditor5/src/core.js';import{ButtonView as _0x3b5afe}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x18dfad}from'ckeditor5/src/icons.js';import{createElement as _0x40c1a7}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 _0x27c9c9{['_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 _0x17d71d=this['editor'];_0x17d71d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x117ee9=>{const _0x1a1364=_0x17d71d['commands']['get']('uploadcareImageEdit'),_0x480bb8=new _0x3b5afe(_0x117ee9),t=_0x117ee9['t'];return _0x480bb8['set']({'icon':_0x18dfad,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x480bb8['bind']('isEnabled')['to'](_0x1a1364),_0x480bb8['bind']('isOn')['to'](_0x1a1364,'isActive'),this['listenTo'](_0x480bb8,'execute',()=>{_0x17d71d['execute']('uploadcareImageEdit'),_0x17d71d['editing']['view']['focus']();}),_0x480bb8;}),this['_initConfig']();}['_initConfig'](){const _0x4b4c3e=_0x40c1a7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4b4c3e),this['listenTo'](this['editor'],'destroy',()=>{_0x4b4c3e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3a5f(){const _0x3a2fdb=['getSelectedElement','4xsyMrP','100dEufgn','element','2574565eWHRjf','imageBlock','imageInline','setAttributes','isEnabled','123111FyeNTk','editor','selection','2685140KOUdPH','8329849hdjRhL','removeAttribute','model','128XbTnGG','change','563KHNclo','4954944SxtNSU','558399CcGCui','sizes','document','srcset','refresh','5AwPTjS','execute'];_0x3a5f=function(){return _0x3a2fdb;};return _0x3a5f();}const _0x4931d3=_0x21eb;function _0x21eb(_0x4293f1,_0x367efc){const _0x3a5f8d=_0x3a5f();return _0x21eb=function(_0x21ebd2,_0x3a4df5){_0x21ebd2=_0x21ebd2-0xfa;let _0x59fbba=_0x3a5f8d[_0x21ebd2];return _0x59fbba;},_0x21eb(_0x4293f1,_0x367efc);}(function(_0x21f523,_0x85007f){const _0x319ec8=_0x21eb,_0x475ccf=_0x21f523();while(!![]){try{const _0x3e0909=-parseInt(_0x319ec8(0x110))/0x1*(parseInt(_0x319ec8(0x100))/0x2)+-parseInt(_0x319ec8(0x112))/0x3*(parseInt(_0x319ec8(0xff))/0x4)+parseInt(_0x319ec8(0xfc))/0x5*(parseInt(_0x319ec8(0x111))/0x6)+parseInt(_0x319ec8(0x102))/0x7+-parseInt(_0x319ec8(0x10e))/0x8*(-parseInt(_0x319ec8(0x107))/0x9)+parseInt(_0x319ec8(0x10a))/0xa+-parseInt(_0x319ec8(0x10b))/0xb;if(_0x3e0909===_0x85007f)break;else _0x475ccf['push'](_0x475ccf['shift']());}catch(_0x5b09b8){_0x475ccf['push'](_0x475ccf['shift']());}}}(_0x3a5f,0xad34f));import{Command as _0x21d66c}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x21d66c{[_0x4931d3(0xfb)](){const _0x4cea2=_0x4931d3,_0x160900=this[_0x4cea2(0x108)][_0x4cea2(0x10d)][_0x4cea2(0x114)][_0x4cea2(0x109)][_0x4cea2(0xfe)]();this[_0x4cea2(0x106)]=Boolean(_0x160900&&(_0x160900['is'](_0x4cea2(0x101),_0x4cea2(0x103))||_0x160900['is'](_0x4cea2(0x101),_0x4cea2(0x104))));}[_0x4931d3(0xfd)](_0x5f4a8a){const _0x1d314f=_0x4931d3,_0x49a8d2=this[_0x1d314f(0x108)][_0x1d314f(0x10d)][_0x1d314f(0x114)][_0x1d314f(0x109)][_0x1d314f(0xfe)]();this[_0x1d314f(0x108)][_0x1d314f(0x10d)][_0x1d314f(0x10f)](_0x4430af=>{const _0x194ffe=_0x1d314f;_0x4430af[_0x194ffe(0x105)](_0x5f4a8a,_0x49a8d2),_0x4430af[_0x194ffe(0x10c)](_0x194ffe(0xfa),_0x49a8d2),_0x4430af[_0x194ffe(0x10c)](_0x194ffe(0x113),_0x49a8d2);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3f4bf9=_0x3d02;(function(_0x437f9c,_0x30af8d){var _0x5d3d23=_0x3d02,_0x1e4d74=_0x437f9c();while(!![]){try{var _0x317859=-parseInt(_0x5d3d23(0x10e))/0x1*(parseInt(_0x5d3d23(0x105))/0x2)+-parseInt(_0x5d3d23(0x102))/0x3+parseInt(_0x5d3d23(0x110))/0x4+-parseInt(_0x5d3d23(0x10d))/0x5*(parseInt(_0x5d3d23(0x104))/0x6)+parseInt(_0x5d3d23(0x10c))/0x7*(parseInt(_0x5d3d23(0x103))/0x8)+parseInt(_0x5d3d23(0x10f))/0x9*(-parseInt(_0x5d3d23(0x109))/0xa)+parseInt(_0x5d3d23(0x10b))/0xb;if(_0x317859===_0x30af8d)break;else _0x1e4d74['push'](_0x1e4d74['shift']());}catch(_0x4e7ef1){_0x1e4d74['push'](_0x1e4d74['shift']());}}}(_0x24c1,0x39e0c));import{Plugin as _0x2b75e2}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x57385b}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x24c1(){var _0x5482d4=['12313oAggbJ','55WXZrDj','3FLfmFQ','228645wuBTLR','1842936xliJNB','requires','851643NMLGvp','640UKOeqh','224082FQSCGd','3772PaQaiP','pluginName','UploadcareImageEdit','isPremiumPlugin','150ywiItU','isOfficialPlugin','7887495TIyeje'];_0x24c1=function(){return _0x5482d4;};return _0x24c1();}function _0x3d02(_0x548d02,_0xcabe8a){var _0x24c1a6=_0x24c1();return _0x3d02=function(_0x3d0210,_0x53a07e){_0x3d0210=_0x3d0210-0x102;var _0x498c2f=_0x24c1a6[_0x3d0210];return _0x498c2f;},_0x3d02(_0x548d02,_0xcabe8a);}import{UploadcareImageEditUI as _0x3dc993}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x2b75e2{static get[_0x3f4bf9(0x106)](){var _0x364fd4=_0x3f4bf9;return _0x364fd4(0x107);}static get[_0x3f4bf9(0x111)](){return[_0x57385b,_0x3dc993];}static get[_0x3f4bf9(0x10a)](){return!0x0;}static get[_0x3f4bf9(0x108)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5f2f49=_0x91c9;(function(_0x554957,_0x4cacb3){const _0x200920=_0x91c9,_0x29dece=_0x554957();while(!![]){try{const _0x40ab38=-parseInt(_0x200920(0x1a0))/0x1*(-parseInt(_0x200920(0x1c1))/0x2)+-parseInt(_0x200920(0x1dd))/0x3*(-parseInt(_0x200920(0x1b7))/0x4)+-parseInt(_0x200920(0x1ae))/0x5+parseInt(_0x200920(0x1e2))/0x6*(-parseInt(_0x200920(0x1d2))/0x7)+-parseInt(_0x200920(0x1ac))/0x8+parseInt(_0x200920(0x1bb))/0x9+parseInt(_0x200920(0x1c4))/0xa;if(_0x40ab38===_0x4cacb3)break;else _0x29dece['push'](_0x29dece['shift']());}catch(_0x5c348d){_0x29dece['push'](_0x29dece['shift']());}}}(_0x3d67,0x7ee32));import{Plugin as _0x2af71d}from'ckeditor5/src/core.js';import{IconDropbox as _0x1b80dc,IconFacebook as _0x5a8e0f,IconGoogleDrive as _0x245d3a,IconGooglePhotos as _0x3db27f,IconUploadcareImageUpload as _0x1355f6,IconUploadcareLink as _0x461b2c,IconOneDrive as _0x95db3c}from'ckeditor5/src/icons.js';import{ButtonView as _0x26a325,MenuBarMenuListItemButtonView as _0x2f1a59}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x30dae6}from'./uploadcareconfig.js';function _0x91c9(_0x5e9ea9,_0x2208cd){const _0x3d6785=_0x3d67();return _0x91c9=function(_0x91c94a,_0x521be7){_0x91c94a=_0x91c94a-0x19d;let _0x3081ee=_0x3d6785[_0x91c94a];return _0x3081ee;},_0x91c9(_0x5e9ea9,_0x2208cd);}import{getTranslation as _0x36aa82}from'./utils/common-translations.js';function _0x3d67(){const _0x57c847=['upload','get','reduce','_createButton','entries','withText','ImageInsertUI','isImageSelected','_createDropdownButtons','582KtReqk','uploadcareLicenseKeyEvaluationLimit','init','trialLimit','forEach','715314OsxzMB','uploadcareLicenseKeyUsageLimit','_showLicenseError','plugins','GDrive','URL','isOfficialPlugin','UploadcareUI','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyValid','featureNotAllowed','execute','GPhotos','editor','config','42eeOyKp','bind','_getIntegrationKey','text','domainLimit','isPremiumPlugin','invalid','uploadcare','evaluationLimit','usageLimit','Facebook','expired','5209512VEKZMS','Dropbox','4642955DkkcZj','tooltip','isEnabled','shortText','uploadcareLicenseKeyTrialLimit','map','uploadcareLicenseKeyDomainLimit','_createMenuBarButtons','assetManager','15364dMPwyV','uploadcareLicenseKeyExpired','registerIntegration','Insert','1674108UcvnvQ','locale','_normalizeConfigSourceList','pluginName','push','commands','30436XZTymn','uploadcareLicenseKeyNotAllowed','Local','7676260OsYpet','label','licenseKey','has','icon','url','Uploadcare','OneDrive','Replace','afterInit','uploadcare.uploader.sourceList','type','destroy','_createToolbarButton','14aHYoSF','_licenseKeyCheckInterval'];_0x3d67=function(){return _0x57c847;};return _0x3d67();}import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x2af71d{[_0x5f2f49(0x1c6)];[_0x5f2f49(0x1d3)];static get[_0x5f2f49(0x1be)](){const _0x3d63e6=_0x5f2f49;return _0x3d63e6(0x1e9);}static get[_0x5f2f49(0x1e8)](){return!0x0;}static get[_0x5f2f49(0x1a5)](){return!0x0;}[_0x5f2f49(0x1df)](){const _0x5e7896=_0x5f2f49;this[_0x5e7896(0x1c6)]=this[_0x5e7896(0x19e)][_0x5e7896(0x19f)][_0x5e7896(0x1d5)](_0x5e7896(0x1c6));const _0x23a988=this[_0x5e7896(0x19e)];this[_0x5e7896(0x1d3)]=setInterval(()=>{const _0x84acd2=_0x5e7896;let _0x292dda;for(const _0x4bc77b in _0x23a988){const _0x478d94=_0x4bc77b,_0x2af4d9=_0x23a988[_0x478d94];if(_0x84acd2(0x1eb)==_0x2af4d9||_0x84acd2(0x1ea)==_0x2af4d9||_0x84acd2(0x1b8)==_0x2af4d9||_0x84acd2(0x1b4)==_0x2af4d9||_0x84acd2(0x1c2)==_0x2af4d9||_0x84acd2(0x1de)==_0x2af4d9||_0x84acd2(0x1b2)==_0x2af4d9||_0x84acd2(0x1e3)==_0x2af4d9){delete _0x23a988[_0x478d94],_0x292dda=_0x2af4d9,clearInterval(this[_0x84acd2(0x1d3)]),this[_0x84acd2(0x1d3)]=void 0x0;break;}}_0x84acd2(0x1ea)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a6)),_0x84acd2(0x1b8)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1ab)),_0x84acd2(0x1b4)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a4)),_0x84acd2(0x1c2)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1ec),_0x84acd2(0x1ca)),_0x84acd2(0x1de)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a8)),_0x84acd2(0x1b2)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1e0)),_0x84acd2(0x1e3)==_0x292dda&&_0x23a988[_0x84acd2(0x1e4)](_0x84acd2(0x1a9));},0x3e8);}[_0x5f2f49(0x1cd)](){const _0x2599ae=_0x5f2f49,{editor:_0x2b9965}=this,_0x3a3730=_0x2b9965[_0x2599ae(0x1c0)][_0x2599ae(0x1d5)](_0x2599ae(0x1a7));if(!_0x3a3730)return;const _0x2a8bab=this[_0x2599ae(0x1bd)](_0x2b9965[_0x2599ae(0x19f)][_0x2599ae(0x1d5)](_0x2599ae(0x1ce)))[_0x2599ae(0x1d6)]((_0x3cdffa,_0x4de9f9)=>{const _0x590c52=_0x2599ae,_0x3411bc=this[_0x590c52(0x1a2)](_0x4de9f9[_0x590c52(0x1cf)]);return _0x3cdffa[_0x3411bc]||(_0x3cdffa[_0x3411bc]=[]),_0x3cdffa[_0x3411bc][_0x590c52(0x1bf)](_0x4de9f9),_0x3cdffa;},{});_0x2b9965[_0x2599ae(0x1e5)][_0x2599ae(0x1c7)](_0x2599ae(0x1da))&&_0x2b9965[_0x2599ae(0x1c0)][_0x2599ae(0x1d5)](_0x2599ae(0x1a7))&&Object[_0x2599ae(0x1d8)](_0x2a8bab)[_0x2599ae(0x1e1)](([_0x5caa32,_0x51a5eb])=>{const _0x20b704=_0x2599ae;_0x2b9965[_0x20b704(0x1e5)][_0x20b704(0x1d5)](_0x20b704(0x1da))[_0x20b704(0x1b9)]({'name':_0x5caa32,'observable':()=>_0x3a3730,'buttonViewCreator':()=>this[_0x20b704(0x1d1)](_0x51a5eb),'formViewCreator':()=>this[_0x20b704(0x1dc)](_0x51a5eb),'menuBarButtonViewCreator':()=>this[_0x20b704(0x1b5)](_0x51a5eb),'override':_0x20b704(0x1b6)!==_0x5caa32});});}[_0x5f2f49(0x1d0)](){const _0x22b0df=_0x5f2f49;super[_0x22b0df(0x1d0)](),this[_0x22b0df(0x1d3)]&&clearInterval(this[_0x22b0df(0x1d3)]);}[_0x5f2f49(0x1bd)](_0x5c469d){const _0x5076dd=_0x5f2f49,{locale:_0x5581d6}=this[_0x5076dd(0x19e)];return _0x5c469d[_0x5076dd(0x1b3)](_0x550e7a=>{const _0x31793b=_0x5076dd,_0x31c9ec=_0x36aa82(_0x5581d6,_0x550e7a,_0x31793b(0x1ba));switch(_0x550e7a){case _0x30dae6[_0x31793b(0x1c3)]:return{'icon':_0x1355f6,'type':_0x30dae6[_0x31793b(0x1c3)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1e7)]:return{'icon':_0x461b2c,'type':_0x30dae6[_0x31793b(0x1e7)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1ad)]:return{'icon':_0x1b80dc,'type':_0x30dae6[_0x31793b(0x1ad)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1aa)]:return{'icon':_0x5a8e0f,'type':_0x30dae6[_0x31793b(0x1aa)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1e6)]:return{'icon':_0x245d3a,'type':_0x30dae6[_0x31793b(0x1e6)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x19d)]:return{'icon':_0x3db27f,'type':_0x30dae6[_0x31793b(0x19d)],..._0x31c9ec};case _0x30dae6[_0x31793b(0x1cb)]:return{'icon':_0x95db3c,'type':_0x30dae6[_0x31793b(0x1cb)],..._0x31c9ec};}});}[_0x5f2f49(0x1a2)](_0x3eaa99){const _0x16aa15=_0x5f2f49;switch(_0x3eaa99){case _0x30dae6[_0x16aa15(0x1c3)]:return _0x16aa15(0x1d4);case _0x30dae6[_0x16aa15(0x1e7)]:return _0x16aa15(0x1c9);default:return _0x16aa15(0x1b6);}}[_0x5f2f49(0x1d7)](_0x3231e0,_0x5ae4eb){const _0x2b2016=_0x5f2f49,_0x2ba857=this[_0x2b2016(0x19e)],_0x2b8e18=new _0x3231e0(_0x2ba857[_0x2b2016(0x1bc)]),_0x29a62c=_0x2ba857[_0x2b2016(0x1c0)][_0x2b2016(0x1d5)](_0x2b2016(0x1a7));return _0x2b8e18[_0x2b2016(0x1a1)](_0x2b2016(0x1b0))['to'](_0x29a62c),_0x2b8e18['on'](_0x2b2016(0x1ed),()=>{const _0xfd79ef=_0x2b2016;_0x29a62c[_0xfd79ef(0x1ed)](_0x5ae4eb);}),_0x2b8e18;}[_0x5f2f49(0x1d1)](_0x1056b7){const _0x52d637=_0x5f2f49,{locale:_0x32fe61}=this[_0x52d637(0x19e)],_0x4cfc7b=this[_0x52d637(0x19e)][_0x52d637(0x1e5)][_0x52d637(0x1d5)](_0x52d637(0x1da)),_0x511f84=_0x1056b7[0x0],_0x22c2ce=this[_0x52d637(0x1d7)](_0x26a325,_0x511f84[_0x52d637(0x1cf)]);return _0x22c2ce[_0x52d637(0x1c8)]=_0x511f84[_0x52d637(0x1c8)],_0x22c2ce[_0x52d637(0x1a1)](_0x52d637(0x1c5))['to'](_0x4cfc7b,_0x52d637(0x1db),_0x210f68=>_0x36aa82(_0x32fe61,_0x511f84[_0x52d637(0x1cf)],_0x210f68?_0x52d637(0x1cc):_0x52d637(0x1ba))[_0x52d637(0x1a3)]),_0x22c2ce[_0x52d637(0x1af)]=!0x0,_0x22c2ce;}[_0x5f2f49(0x1dc)](_0x3af4ae){const _0x276e2c=_0x5f2f49,{locale:_0x4360f6}=this[_0x276e2c(0x19e)],_0x1041e2=this[_0x276e2c(0x19e)][_0x276e2c(0x1e5)][_0x276e2c(0x1d5)](_0x276e2c(0x1da));return _0x3af4ae[_0x276e2c(0x1b3)](_0x44da42=>{const _0x1ed72b=_0x276e2c,_0x4825d9=this[_0x1ed72b(0x1d7)](_0x26a325,_0x44da42[_0x1ed72b(0x1cf)]);return _0x4825d9[_0x1ed72b(0x1d9)]=!0x0,_0x4825d9[_0x1ed72b(0x1c8)]=_0x44da42[_0x1ed72b(0x1c8)],_0x4825d9[_0x1ed72b(0x1a1)](_0x1ed72b(0x1c5))['to'](_0x1041e2,_0x1ed72b(0x1db),_0x4d3e05=>_0x36aa82(_0x4360f6,_0x44da42[_0x1ed72b(0x1cf)],_0x4d3e05?_0x1ed72b(0x1cc):_0x1ed72b(0x1ba))[_0x1ed72b(0x1a3)]),_0x4825d9;});}[_0x5f2f49(0x1b5)](_0x1b7f63){const _0x45a252=_0x5f2f49;return _0x1b7f63[_0x45a252(0x1b3)](_0x294f6d=>{const _0x418ba3=_0x45a252,_0x4c71f7=this[_0x418ba3(0x1d7)](_0x2f1a59,_0x294f6d[_0x418ba3(0x1cf)]);return _0x4c71f7[_0x418ba3(0x1c8)]=_0x294f6d[_0x418ba3(0x1c8)],_0x4c71f7[_0x418ba3(0x1c5)]=_0x294f6d[_0x418ba3(0x1b1)],_0x4c71f7;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x300b66}from'ckeditor5/src/core.js';import{FileRepository as _0x1ff5c2}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x80ff36}from'./uploadcareediting.js';import{UploadUtils as _0x3b85ae}from'./utils/uploadutils.js';import{getImageUrls as _0x186642}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x300b66{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1ff5c2,_0x80ff36];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x19e91e=this['editor'];if(!!!_0x19e91e['config']['get']('uploadcare'))return;_0x19e91e['plugins']['get'](_0x1ff5c2)['createUploadAdapter']=_0x5f3d0a=>new k(_0x5f3d0a,_0x19e91e),_0x19e91e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x54a68e,{imageElement:_0x46502d,data:_0x45416e})=>{_0x19e91e['model']['change'](_0x14cc0d=>{_0x14cc0d['setAttribute']('uploadcareImageId',_0x45416e['uploadcareImageId'],_0x46502d);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5ee5c5,_0x4dc1c6){this['loader']=_0x5ee5c5,this['editor']=_0x4dc1c6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x36cf4d=await this['loader']['file'];return _0x3b85ae['upload']({'file':_0x36cf4d,'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':_0x3a3abe=>{_0x3a3abe&&_0x3a3abe['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a3abe['value']);}})['then'](async _0x2e8818=>{const {imageFallbackUrl:_0x362aa3,imageSources:_0x3be0e4}=_0x186642(_0x2e8818['cdnUrl'],_0x2e8818['imageInfo']['width']);return{'uploadcareImageId':_0x2e8818['uuid'],'default':_0x362aa3,'sources':_0x3be0e4};})['catch'](()=>{const _0x54ac86=t('Cannot\x20upload\x20file:')+('\x20'+_0x36cf4d['name']+'.');return Promise['reject'](_0x54ac86);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x405392}from'../uploadcareconfig.js';export function getTranslation(_0x1f06f7,_0x78f089,_0x50b700){const t=_0x1f06f7['t'],_0x53081d=_0x1f06f7['t'];switch(_0x78f089){case _0x405392['Local']:return{'text':_0x53081d('Insert'===_0x50b700?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x53081d('From\x20computer')};case _0x405392['URL']:return{'text':'Insert'===_0x50b700?_0x53081d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x53081d('Via\x20URL')};case _0x405392['Dropbox']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x405392['Facebook']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x405392['GDrive']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x405392['GPhotos']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x405392['OneDrive']:return{'text':t('Insert'===_0x50b700?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x78f089;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x232749=_0x5d2b;(function(_0x4da068,_0x1af5a6){var _0x420f40=_0x5d2b,_0x3a8ea7=_0x4da068();while(!![]){try{var _0xbaf1d9=-parseInt(_0x420f40(0x87))/0x1*(-parseInt(_0x420f40(0x86))/0x2)+-parseInt(_0x420f40(0x7e))/0x3*(parseInt(_0x420f40(0x76))/0x4)+parseInt(_0x420f40(0x7b))/0x5+-parseInt(_0x420f40(0x85))/0x6+parseInt(_0x420f40(0x80))/0x7*(parseInt(_0x420f40(0x74))/0x8)+parseInt(_0x420f40(0x81))/0x9+parseInt(_0x420f40(0x7d))/0xa*(-parseInt(_0x420f40(0x84))/0xb);if(_0xbaf1d9===_0x1af5a6)break;else _0x3a8ea7['push'](_0x3a8ea7['shift']());}catch(_0x56160e){_0x3a8ea7['push'](_0x3a8ea7['shift']());}}}(_0x2c4b,0xcfe69));function _0x5d2b(_0x1fcbbe,_0x37301f){var _0x2c4bb9=_0x2c4b();return _0x5d2b=function(_0x5d2b72,_0x1db8b5){_0x5d2b72=_0x5d2b72-0x74;var _0x545d46=_0x2c4bb9[_0x5d2b72];return _0x545d46;},_0x5d2b(_0x1fcbbe,_0x37301f);}import{FocusTracker as _0x4f278e}from'ckeditor5/src/utils.js';import{View as _0x4d6cf2,FocusCycler as _0x4572c6}from'ckeditor5/src/ui.js';function _0x2c4b(){var _0x7e573f=['focusCycler','948908vKRlGw','getFocusableElement','forwardCycle','focusTracker','bindTemplate','4460995KwzpHP','true','703510VbVjdc','9uRyOmo','div','10536295wvLxqi','7383060gRCKwS','fire','createCollection','253SvHwDP','5142126bleari','8oGfQvy','205153qVbuNM','8IxgFdS'];_0x2c4b=function(){return _0x7e573f;};return _0x2c4b();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4d6cf2{[_0x232749(0x79)];[_0x232749(0x75)];constructor(_0x1013c5){var _0x16a263=_0x232749;super(_0x1013c5),this[_0x16a263(0x79)]=new _0x4f278e(),this[_0x16a263(0x75)]=new _0x4572c6({'focusables':this[_0x16a263(0x83)](),'focusTracker':this[_0x16a263(0x79)]});}[_0x232749(0x77)](){var _0x18039f=_0x232749;return{'tag':_0x18039f(0x7f),'attributes':{'aria-hidden':_0x18039f(0x7c),'tabindex':'0'},'on':{'focus':this[_0x18039f(0x7a)]['to'](()=>{var _0x48595d=_0x18039f;this[_0x48595d(0x75)][_0x48595d(0x82)](_0x48595d(0x78));})}};}}
|