@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250311.0 → 0.0.0-nightly-20250313.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/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 _0x3475c2=_0x107b;(function(_0x4cc7b3,_0x4f4912){const _0x34dd26=_0x107b,_0x15f70e=_0x4cc7b3();while(!![]){try{const _0x56f457=parseInt(_0x34dd26(0xff))/0x1*(parseInt(_0x34dd26(0xed))/0x2)+-parseInt(_0x34dd26(0x104))/0x3+parseInt(_0x34dd26(0xc7))/0x4+parseInt(_0x34dd26(0xfb))/0x5+parseInt(_0x34dd26(0xfa))/0x6*(parseInt(_0x34dd26(0xd8))/0x7)+parseInt(_0x34dd26(0xdd))/0x8+parseInt(_0x34dd26(0xc0))/0x9*(-parseInt(_0x34dd26(0xbd))/0xa);if(_0x56f457===_0x4f4912)break;else _0x15f70e['push'](_0x15f70e['shift']());}catch(_0x50a71a){_0x15f70e['push'](_0x15f70e['shift']());}}}(_0x393a,0x472dc));import{Plugin as _0x16f08a}from'ckeditor5/src/core.js';import{Dialog as _0x564405}from'ckeditor5/src/ui.js';function _0x393a(){const _0x195e32=['destroy','2035600htXDPF','insertImage','init','listenTo','_initCtx','uc-config','render','map','uploader','getAttribute','\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','elementToAttribute','afterInit','execute','get','join','uploadcare.uploader','14ShTuEY','iconHrefResolver','body','_initSchema','_ctxElement','1421272xFgQaz','removeAttribute','editor','for','requires','locale','imageBlock','ctxElement','_initImageProcessingIndicator','cleanupImage','extend','config','configElement','editing','querySelector','#uc-icon-arrow-down','2Hwpwxm','isPremiumPlugin','commands','uploadcareImageReplace','once','_initConfig','closeMax','_configElement','schema','contentLanguage','isRegistered','attributeToAttribute','uploadcare.pubkey','458988ZUWZJw','1063520cIQnJI','href','add','getSelectedElement','500219tPtcuh','upcast','UploadcareEditing','view','remove','204300uvWgdQ','model','conversion','fromCharCode','_initConversion','document','uc-upload-ctx-provider','appendChild','imageInline','replaceImageSource','uploadcare','selection','PictureEditing','60vJMkQt','downcast','data-uc-image-id','1789245CiSpNs','pluginName','uploadcareImageId','true','isOfficialPlugin','input[uploadcare-file-input]'];_0x393a=function(){return _0x195e32;};return _0x393a();}function _0x107b(_0x58f7ce,_0x103a11){const _0x393a7=_0x393a();return _0x107b=function(_0x107b6f,_0x20d275){_0x107b6f=_0x107b6f-0xb9;let _0x4c49b0=_0x393a7[_0x107b6f];return _0x4c49b0;},_0x107b(_0x58f7ce,_0x103a11);}import{createElement as _0x329171,global as _0x4cf1a2,uid as _0x21a500}from'ckeditor5/src/utils.js';import _0x307ee7 from'./uploadcarecommand.js';import _0x15ed34 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x29a7d9}from'./utils/editingutils.js';export default class i extends _0x16f08a{[_0x3475c2(0xf4)]=null;[_0x3475c2(0xdc)]=null;static get[_0x3475c2(0xc1)](){const _0x1c0e2e=_0x3475c2;return _0x1c0e2e(0x101);}static get[_0x3475c2(0xe1)](){const _0x586acc=_0x3475c2;return[_0x586acc(0xbc),_0x15ed34,_0x564405];}static get[_0x3475c2(0xc4)](){return!0x0;}static get[_0x3475c2(0xee)](){return!0x0;}get[_0x3475c2(0xe9)](){const _0x10b602=_0x3475c2;return this[_0x10b602(0xf4)];}get[_0x3475c2(0xe4)](){const _0x58d371=_0x3475c2;return this[_0x58d371(0xdc)];}[_0x3475c2(0xc9)](){const _0x3f8488=_0x3475c2,_0x2b8e5c=this[_0x3f8488(0xdf)];_0x2b8e5c[_0x3f8488(0xef)][_0x3f8488(0xfd)](_0x3f8488(0xba),new _0x307ee7(_0x2b8e5c));}[_0x3475c2(0xd3)](){const _0x3b1095=_0x3475c2;this[_0x3b1095(0xdb)](),this[_0x3b1095(0x108)](),this[_0x3b1095(0xf2)](),this[_0x3b1095(0xcb)](),this[_0x3b1095(0xe5)](),this[_0x3b1095(0xca)](this[_0x3b1095(0xdf)],_0x3b1095(0xc6),()=>{const _0x5decb7=_0x3b1095;this[_0x5decb7(0xf4)]&&(this[_0x5decb7(0xf4)][_0x5decb7(0x103)](),this[_0x5decb7(0xf4)]=null),this[_0x5decb7(0xdc)]&&(this[_0x5decb7(0xdc)][_0x5decb7(0x103)](),this[_0x5decb7(0xdc)]=null);const _0x24d07b=_0x4cf1a2[_0x5decb7(0x109)][_0x5decb7(0xeb)](_0x5decb7(0xc5));_0x24d07b&&_0x24d07b[_0x5decb7(0x103)]();}),async function(_0x504e1c){const _0x1bc395=_0x1f2ffd([0x58,0x4b,0x6f,0x44,0x4e,0x59,0x6d,0x4d,0x47,0x78,0x50,0x51,0x75,0x6c,0x79,0x42,0x61,0x62,0x64,0x71,0x68,0x74,0x5a,0x41,0x7a,0x54,0x46,0x77,0x73,0x32,0x37,0x30,0x34,0x52,0x49,0x43,0x67,0x55,0x4a,0x4f,0x70,0x33,0x65,0x72,0x57,0x48,0x76,0x39,0x31,0x45,0x6b,0x4c,0x35,0x36,0x53,0x38,0x6e,0x63,0x66,0x69,0x56,0x6a]),_0xa5ff83=0x7262738e,_0xbd43f9=0x7265125e^_0xa5ff83,_0x4af2e7=window[_0x1f2ffd([0x44,0x61,0x74,0x65])][_0x1f2ffd([0x6e,0x6f,0x77])](),_0x57b30b=_0x504e1c[_0x1f2ffd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4271d2=new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2541b7=>{_0x57b30b[_0x1f2ffd([0x6f,0x6e,0x63,0x65])](_0x1f2ffd([0x72,0x65,0x61,0x64,0x79]),_0x2541b7);}),_0x3a0d53={[_0x1f2ffd([0x6b,0x74,0x79])]:_0x1f2ffd([0x45,0x43]),[_0x1f2ffd([0x75,0x73,0x65])]:_0x1f2ffd([0x73,0x69,0x67]),[_0x1f2ffd([0x63,0x72,0x76])]:_0x1f2ffd([0x50,0x2d,0x32,0x35,0x36]),[_0x1f2ffd([0x78])]:_0x1f2ffd([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]),[_0x1f2ffd([0x79])]:_0x1f2ffd([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]),[_0x1f2ffd([0x61,0x6c,0x67])]:_0x1f2ffd([0x45,0x53,0x32,0x35,0x36])},_0x7ada7f=_0x57b30b[_0x1f2ffd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f2ffd([0x67,0x65,0x74])](_0x1f2ffd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a5850(){let _0x18c162,_0x3706d0=null,_0x38fdba=null;try{if(_0x7ada7f==_0x1f2ffd([0x47,0x50,0x4c]))return _0x1f2ffd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18c162=_0x5da811(),!_0x18c162)return _0x1f2ffd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18c162[_0x1f2ffd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38fdba=_0x3b3ce3(_0x18c162[_0x1f2ffd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18c162[_0x1f2ffd([0x6a,0x74,0x69])])),await _0x1ea894()?_0x30695b()?_0x5d80fa()?_0x1f2ffd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4dcafc()?(_0x18c162[_0x1f2ffd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f2ffd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3706d0=_0xe644bc(_0x1f2ffd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x18c162[_0x1f2ffd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f2ffd([0x74,0x72,0x69,0x61,0x6c])&&(_0x3706d0=_0xe644bc(_0x1f2ffd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2cab76()):_0x1f2ffd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f2ffd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f2ffd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2b4296){return _0x1f2ffd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d80fa(){const _0x5cf44a=[_0x1f2ffd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f2ffd([0x74,0x72,0x69,0x61,0x6c])][_0x1f2ffd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18c162[_0x1f2ffd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4af2e7/0x3e8:0xe10*_0xbd43f9;return _0x18c162[_0x1f2ffd([0x65,0x78,0x70])]<_0x5cf44a;}function _0x30695b(){const _0x9c52d1=_0x18c162[_0x1f2ffd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9c52d1&&(!!_0x9c52d1[_0x1f2ffd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2ffd([0x2a]))||!!_0x9c52d1[_0x1f2ffd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2ffd([0x55,0x50,0x4c,0x43])));}function _0x4dcafc(){const _0x1730bc=_0x107b,_0x36d4f4=_0x18c162[_0x1f2ffd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x36d4f4||0x0==_0x36d4f4[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x403aee}=new URL(window[_0x1f2ffd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1730bc(0xfc)]);if(_0x36d4f4[_0x1f2ffd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x403aee))return!0x0;const _0x3db904=_0x403aee[_0x1f2ffd([0x73,0x70,0x6c,0x69,0x74])](_0x1f2ffd([0x2e]));return _0x36d4f4[_0x1f2ffd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47df0c=>_0x47df0c[_0x1f2ffd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2ffd([0x2a])))[_0x1f2ffd([0x6d,0x61,0x70])](_0x4d19ce=>_0x4d19ce[_0x1f2ffd([0x73,0x70,0x6c,0x69,0x74])](_0x1f2ffd([0x2e])))[_0x1f2ffd([0x73,0x6f,0x6d,0x65])](_0x19e228=>_0x3db904[_0x1f2ffd([0x65,0x76,0x65,0x72,0x79])]((_0x32bd23,_0x4013d8)=>_0x19e228[_0x4013d8]===_0x32bd23||_0x19e228[_0x4013d8]===_0x1f2ffd([0x2a])));}function _0x2cab76(){return _0x3706d0&&_0x38fdba?new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3061bf,_0x50b285)=>{_0x3706d0[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0x3061bf,_0x50b285),_0x38fdba[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0x531448=>{_0x531448!=_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64])&&_0x3061bf(_0x531448);},_0x50b285);}):_0x3706d0||_0x38fdba||_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b3ce3(_0x5a22f2,_0x5d2ff5){return new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdc6088=>{if(_0x380181())return _0xdc6088(_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64]));_0x5e700a(),_0x57b30b[_0x1f2ffd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f2ffd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22fc16=!0x1;const _0x33ec33=_0x21a500();function _0x1e5c7e(_0x574ecf){return!!_0x574ecf&&(typeof _0x574ecf===_0x1f2ffd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x574ecf===_0x1f2ffd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x574ecf[_0x1f2ffd([0x74,0x68,0x65,0x6e])]===_0x1f2ffd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x574ecf[_0x1f2ffd([0x63,0x61,0x74,0x63,0x68])]===_0x1f2ffd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b93db(_0x5d46f7){_0x4b1465(_0x5d46f7)[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0x160ddc=>{if(!_0x160ddc||_0x160ddc[_0x1f2ffd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f2ffd([0x6f,0x6b]))return _0x1f2ffd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d27fc(_0x3cdf0e(_0x33ec33+_0x5d2ff5))!=_0x160ddc[_0x1f2ffd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f2ffd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0x25e0dc=>(_0x21dd8e(),_0x25e0dc),()=>{const _0x474f8a=_0xe583f8();return null==_0x474f8a?(_0x21dd8e(),_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64])):_0x1f2ffd(_0x4af2e7-_0x474f8a>(0x566ef78e^_0xa5ff83)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0xdc6088)[_0x1f2ffd([0x63,0x61,0x74,0x63,0x68])](()=>{_0xdc6088(_0x1f2ffd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x549242=0x72549d0e^_0xa5ff83;function _0x21dd8e(){const _0x1a0ff7=_0x1f2ffd([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d27fc(_0x3cdf0e(_0x5a22f2)),_0x2df939=_0x430549(_0x2d27fc(window[_0x1f2ffd([0x4d,0x61,0x74,0x68])][_0x1f2ffd([0x63,0x65,0x69,0x6c])](_0x4af2e7/_0x549242)));window[_0x1f2ffd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f2ffd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a0ff7,_0x2df939);}function _0xe583f8(){const _0x53013b=_0x1f2ffd([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d27fc(_0x3cdf0e(_0x5a22f2)),_0x3b155c=window[_0x1f2ffd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f2ffd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53013b);return _0x3b155c?window[_0x1f2ffd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x430549(_0x3b155c),0x10)*_0x549242:null;}function _0x4b1465(_0x54d29d){return new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21136e,_0x15adbc)=>{_0x54d29d[_0x1f2ffd([0x74,0x68,0x65,0x6e])](_0x21136e,_0x15adbc),window[_0x1f2ffd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15adbc,0x7263a74e^_0xa5ff83);});}}_0x57b30b[_0x1f2ffd([0x6f,0x6e])](_0x1f2ffd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f408e,_0xb7462d)=>{if(_0xb7462d[0x0]!=_0x5a22f2)return _0xdc6088(_0x1f2ffd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb7462d[0x1]={..._0xb7462d[0x1],[_0x1f2ffd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33ec33};},{[_0x1f2ffd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f2ffd([0x68,0x69,0x67,0x68])}),_0x57b30b[_0x1f2ffd([0x6f,0x6e])](_0x1f2ffd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa00656=>{_0x1e5c7e(_0xa00656[_0x1f2ffd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22fc16=!0x0,_0x4b93db(_0xa00656[_0x1f2ffd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f2ffd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f2ffd([0x6c,0x6f,0x77])}),_0x4271d2[_0x1f2ffd([0x74,0x68,0x65,0x6e])](()=>{_0x22fc16||_0xdc6088(_0x1f2ffd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x380181(){return _0x57b30b[_0x1f2ffd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f2ffd([0x76,0x69,0x65,0x77])][_0x1f2ffd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f2ffd([0x61,0x75,0x74,0x6f]);}function _0x5e700a(){_0x57b30b[_0x1f2ffd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f2ffd([0x76,0x69,0x65,0x77])][_0x1f2ffd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f2ffd([0x61,0x75,0x74,0x6f]);}}function _0xe644bc(_0x7feb1e){const _0x1c191f=[new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xff3d28=>setTimeout(_0xff3d28,0x726b4d42^_0xa5ff83)),_0x4271d2[_0x1f2ffd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21490e=>{let _0x113c2e=0x0;_0x57b30b[_0x1f2ffd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f2ffd([0x6f,0x6e])](_0x1f2ffd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe4313f,_0x41856d)=>{_0x41856d[0x0][_0x1f2ffd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x113c2e++,_0x113c2e==(0x72627276^_0xa5ff83)&&(_0x21490e(),_0xe4313f[_0x1f2ffd([0x6f,0x66,0x66])]());});}))];return window[_0x1f2ffd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f2ffd([0x72,0x61,0x63,0x65])](_0x1c191f)[_0x1f2ffd([0x74,0x68,0x65,0x6e])](()=>_0x7feb1e);}async function _0x204a6b(){await _0x4271d2,_0x57b30b[_0x1f2ffd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f2ffd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x597f8a,_0x57b30b[_0x1f2ffd([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f2ffd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x597f8a,_0x57b30b[_0x1f2ffd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f2ffd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e60dd(_0x5f4429){const _0x4b4826=_0x419c00();_0x57b30b[_0x4b4826]=_0x1f2ffd([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5f4429,_0x5f4429!=_0x1f2ffd([0x56,0x61,0x6c,0x69,0x64])&&_0x204a6b();}function _0x419c00(){const _0x451bdf=window[_0x1f2ffd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f2ffd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f2ffd([0x6e,0x6f,0x77])]())[_0x1f2ffd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f2ffd([0x2e]),'');let _0x41ba63=_0x1f2ffd([0x58]);for(let _0x9857d3=0x0;_0x9857d3<_0x451bdf[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9857d3+=0x2){let _0x5d283c=window[_0x1f2ffd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x451bdf[_0x1f2ffd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x9857d3,_0x9857d3+0x2));_0x5d283c>=_0x1bc395[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d283c-=_0x1bc395[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41ba63+=_0x1bc395[_0x5d283c];}return _0x41ba63;}function _0x5da811(){const _0x57d5af=_0x7ada7f[_0x1f2ffd([0x73,0x70,0x6c,0x69,0x74])](_0x1f2ffd([0x2e]));if(0x3!=_0x57d5af[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1097e1(_0x57d5af[0x1]);function _0x1097e1(_0x38d9ec){const _0x3d4ab6=_0xd99242(_0x38d9ec);return _0x3d4ab6&&_0x220e84()?_0x3d4ab6:null;function _0x220e84(){const _0x1ed835=_0x3d4ab6[_0x1f2ffd([0x6a,0x74,0x69])],_0x310460=window[_0x1f2ffd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ed835[_0x1f2ffd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ed835[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x13ed3d={..._0x3d4ab6,[_0x1f2ffd([0x6a,0x74,0x69])]:_0x1ed835[_0x1f2ffd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ed835[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x13ed3d[_0x1f2ffd([0x76,0x63])],_0x3cdf0e(_0x13ed3d)==_0x310460;}}}async function _0x1ea894(){let _0x31289a=!0x0;try{const _0x39d550=_0x7ada7f[_0x1f2ffd([0x73,0x70,0x6c,0x69,0x74])](_0x1f2ffd([0x2e])),[_0x388148,_0x5d803d,_0x44e43c]=_0x39d550;return _0x1589c9(_0x388148),await _0xc258b8(_0x388148,_0x5d803d,_0x44e43c),_0x31289a;}catch(_0x273ab3){return!0x1;}function _0x1589c9(_0x3724b5){const _0x2f822c=_0xd99242(_0x3724b5);_0x2f822c&&_0x2f822c[_0x1f2ffd([0x61,0x6c,0x67])]==_0x1f2ffd([0x45,0x53,0x32,0x35,0x36])||(_0x31289a=!0x1);}async function _0xc258b8(_0x375b47,_0x37003a,_0x562e13){const _0x97f8c7=window[_0x1f2ffd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f2ffd([0x66,0x72,0x6f,0x6d])](_0x5ef8a4(_0x562e13),_0x3c0a21=>_0x3c0a21[_0x1f2ffd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x612490=new window[(_0x1f2ffd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f2ffd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x375b47+_0x1f2ffd([0x2e])+_0x37003a),_0x1e9e6d=window[_0x1f2ffd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f2ffd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e9e6d)return;const _0x20d4c5=await _0x1e9e6d[_0x1f2ffd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f2ffd([0x6a,0x77,0x6b]),_0x3a0d53,{[_0x1f2ffd([0x6e,0x61,0x6d,0x65])]:_0x1f2ffd([0x45,0x43,0x44,0x53,0x41]),[_0x1f2ffd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f2ffd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f2ffd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e9e6d[_0x1f2ffd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f2ffd([0x6e,0x61,0x6d,0x65])]:_0x1f2ffd([0x45,0x43,0x44,0x53,0x41]),[_0x1f2ffd([0x68,0x61,0x73,0x68])]:{[_0x1f2ffd([0x6e,0x61,0x6d,0x65])]:_0x1f2ffd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x20d4c5,_0x97f8c7,_0x612490)||(_0x31289a=!0x1);}}function _0xd99242(_0x4c3cb5){return _0x4c3cb5[_0x1f2ffd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f2ffd([0x65,0x79]))?JSON[_0x1f2ffd([0x70,0x61,0x72,0x73,0x65])](_0x5ef8a4(_0x4c3cb5)):null;}function _0x5ef8a4(_0x511b33){return window[_0x1f2ffd([0x61,0x74,0x6f,0x62])](_0x511b33[_0x1f2ffd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f2ffd([0x2b]))[_0x1f2ffd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f2ffd([0x2f])));}function _0x3cdf0e(_0x2a1375){let _0x4ce120=0x1505;function _0x5d606e(_0x4a010d){for(let _0x142886=0x0;_0x142886<_0x4a010d[_0x1f2ffd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x142886++){const _0x45c16f=_0x4a010d[_0x1f2ffd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x142886);_0x4ce120=(_0x4ce120<<0x5)+_0x4ce120+_0x45c16f,_0x4ce120&=_0x4ce120;}}function _0x5099c1(_0x6ab615){Array[_0x1f2ffd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6ab615)?_0x6ab615[_0x1f2ffd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5099c1):_0x6ab615&&typeof _0x6ab615==_0x1f2ffd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f2ffd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6ab615)[_0x1f2ffd([0x73,0x6f,0x72,0x74])]()[_0x1f2ffd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x31cf61,_0x927516])=>{_0x5d606e(_0x31cf61),_0x5099c1(_0x927516);}):_0x5d606e(window[_0x1f2ffd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6ab615));}return _0x5099c1(_0x2a1375),_0x4ce120>>>0x0;}function _0x2d27fc(_0xe50730){return _0xe50730[_0x1f2ffd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f2ffd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f2ffd([0x30]));}function _0x430549(_0x3c3073){return _0x3c3073[_0x1f2ffd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f2ffd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f2ffd([0x6a,0x6f,0x69,0x6e])]('');}function _0x597f8a(){}function _0x1f2ffd(_0x411559){const _0x33e390=_0x107b;return _0x411559[_0x33e390(0xce)](_0x24c937=>String[_0x33e390(0x107)](_0x24c937))[_0x33e390(0xd6)]('');}_0x2e60dd(await _0x2a5850());}(this);}[_0x3475c2(0xdb)](){const _0x583b5f=_0x3475c2,_0x70b203=this[_0x583b5f(0xdf)][_0x583b5f(0x105)][_0x583b5f(0xf5)];_0x70b203[_0x583b5f(0xf7)](_0x583b5f(0xe3))&&_0x70b203[_0x583b5f(0xe7)](_0x583b5f(0xe3),{'allowAttributes':[_0x583b5f(0xc2)]}),_0x70b203[_0x583b5f(0xf7)](_0x583b5f(0x10c))&&_0x70b203[_0x583b5f(0xe7)](_0x583b5f(0x10c),{'allowAttributes':[_0x583b5f(0xc2)]});}[_0x3475c2(0x108)](){const _0xaec4a5=_0x3475c2,_0x3dcde0=this[_0xaec4a5(0xdf)];_0x3dcde0[_0xaec4a5(0x106)][_0xaec4a5(0xe0)](_0xaec4a5(0xbe))[_0xaec4a5(0xf8)]({'model':_0xaec4a5(0xc2),'view':_0xaec4a5(0xbf)}),_0x3dcde0[_0xaec4a5(0x106)][_0xaec4a5(0xe0)](_0xaec4a5(0x100))[_0xaec4a5(0xd2)]({'model':{'key':_0xaec4a5(0xc2),'value':_0x49edc5=>_0x49edc5[_0xaec4a5(0xd0)](_0xaec4a5(0xbf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x256f98=_0x3dcde0[_0xaec4a5(0xef)][_0xaec4a5(0xd5)](_0xaec4a5(0xb9));_0x256f98&&this[_0xaec4a5(0xca)](_0x256f98,_0xaec4a5(0xe6),(_0x361d8d,[_0x1f60fb,_0x437246])=>{const _0x86cf33=_0xaec4a5;_0x1f60fb[_0x86cf33(0xde)](_0x86cf33(0xc2),_0x437246);});}[_0x3475c2(0xf2)](){const _0x420f4e=_0x3475c2,_0x5d2107=this[_0x420f4e(0xdf)][_0x420f4e(0xe8)][_0x420f4e(0xd5)](_0x420f4e(0xd7))||{},_0x2b342e=this[_0x420f4e(0xdf)][_0x420f4e(0xe8)][_0x420f4e(0xd5)](_0x420f4e(0xf9))||'';this[_0x420f4e(0xf4)]=_0x329171(_0x4cf1a2[_0x420f4e(0x109)],_0x420f4e(0xcc),{..._0x5d2107,'pubkey':_0x2b342e,'ctx-name':_0x420f4e(0xcf),'sourceList':'','imgOnly':_0x420f4e(0xc3),'removeCopyright':_0x420f4e(0xc3),'localeName':this[_0x420f4e(0xdf)][_0x420f4e(0xe2)][_0x420f4e(0xf6)],'externalSourcesEmbedCss':_0x420f4e(0xd1)}),this[_0x420f4e(0xf4)][_0x420f4e(0xd9)]=_0x1405b2=>{const _0x3a5749=_0x420f4e;if(_0x3a5749(0xf3)==_0x1405b2)return _0x3a5749(0xec);},_0x4cf1a2[_0x420f4e(0x109)][_0x420f4e(0xda)][_0x420f4e(0x10b)](this[_0x420f4e(0xf4)]);}[_0x3475c2(0xcb)](){const _0x2f8c22=_0x3475c2;this[_0x2f8c22(0xdc)]=_0x329171(_0x4cf1a2[_0x2f8c22(0x109)],_0x2f8c22(0x10a),{'ctx-name':_0x2f8c22(0xcf)}),_0x4cf1a2[_0x2f8c22(0x109)][_0x2f8c22(0xda)][_0x2f8c22(0x10b)](this[_0x2f8c22(0xdc)]);}[_0x3475c2(0xe5)](){const _0x142efb=_0x3475c2,_0x20dcf1=this[_0x142efb(0xdf)][_0x142efb(0xef)][_0x142efb(0xd5)](_0x142efb(0xc8));_0x20dcf1&&this[_0x142efb(0xca)](_0x20dcf1,_0x142efb(0xd4),()=>{const _0x4ac618=_0x142efb,_0x5919c3=this[_0x4ac618(0xdf)][_0x4ac618(0x105)][_0x4ac618(0x109)][_0x4ac618(0xbb)][_0x4ac618(0xfe)]();_0x5919c3&&_0x5919c3[_0x4ac618(0xd0)](_0x4ac618(0xc2))&&this[_0x4ac618(0xdf)][_0x4ac618(0xea)][_0x4ac618(0x102)][_0x4ac618(0xf1)](_0x4ac618(0xcd),()=>{const _0x5986db=_0x4ac618;_0x29a7d9(this[_0x5986db(0xdf)],_0x5919c3);});});const _0x424945=this[_0x142efb(0xdf)][_0x142efb(0xef)][_0x142efb(0xd5)](_0x142efb(0xf0));_0x424945&&this[_0x142efb(0xca)](_0x424945,_0x142efb(0xd4),()=>{const _0x513fde=_0x142efb,_0x45f1d9=this[_0x513fde(0xdf)][_0x513fde(0x105)][_0x513fde(0x109)][_0x513fde(0xbb)][_0x513fde(0xfe)]();_0x45f1d9&&_0x45f1d9[_0x513fde(0xd0)](_0x513fde(0xc2))&&this[_0x513fde(0xdf)][_0x513fde(0xea)][_0x513fde(0x102)][_0x513fde(0xf1)](_0x513fde(0xcd),()=>{const _0x2e3c3a=_0x513fde;_0x29a7d9(this[_0x2e3c3a(0xdf)],_0x45f1d9);});});}}
|
|
23
|
+
const _0x15fa57=_0xf652;(function(_0x572fea,_0x3a79a8){const _0x19cb1b=_0xf652,_0x543195=_0x572fea();while(!![]){try{const _0x263128=-parseInt(_0x19cb1b(0x146))/0x1*(parseInt(_0x19cb1b(0x197))/0x2)+-parseInt(_0x19cb1b(0x182))/0x3*(parseInt(_0x19cb1b(0x16a))/0x4)+parseInt(_0x19cb1b(0x187))/0x5*(-parseInt(_0x19cb1b(0x17f))/0x6)+parseInt(_0x19cb1b(0x152))/0x7*(parseInt(_0x19cb1b(0x194))/0x8)+-parseInt(_0x19cb1b(0x15e))/0x9+parseInt(_0x19cb1b(0x14c))/0xa+parseInt(_0x19cb1b(0x15b))/0xb;if(_0x263128===_0x3a79a8)break;else _0x543195['push'](_0x543195['shift']());}catch(_0x4646fd){_0x543195['push'](_0x543195['shift']());}}}(_0x1d65,0x998f8));import{Plugin as _0x3056d6}from'ckeditor5/src/core.js';function _0x1d65(){const _0x2b14cc=['extend','get','uploader','commands','elementToAttribute','_initSchema','downcast','attributeToAttribute','insertImage','imageBlock','href','\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','appendChild','editor','imageInline','model','replaceImageSource','init','afterInit','78198zTZgGa','editing','requires','3zDNZyM','ctxElement','configElement','cleanupImage','uc-config','65eqKPFV','view','join','_initImageProcessingIndicator','input[uploadcare-file-input]','config','fromCharCode','iconHrefResolver','querySelector','getAttribute','uploadcare.uploader','UploadcareEditing','closeMax','3486536kZrwSw','remove','uploadcareImageId','2CwPxXD','PictureEditing','isPremiumPlugin','_ctxElement','1139232SYygCw','selection','locale','isOfficialPlugin','once','#uc-icon-arrow-down','8563510lBUgBn','body','isRegistered','_initConfig','uploadcare','upcast','14shXhhd','uploadcareImageReplace','render','destroy','uploadcare.pubkey','conversion','uc-upload-ctx-provider','listenTo','execute','16619691oYYuAt','contentLanguage','document','3591810eOVJEM','getSelectedElement','true','pluginName','data-uc-image-id','for','removeAttribute','add','_initCtx','map','_initConversion','_configElement','3608524PEVnYP','schema'];_0x1d65=function(){return _0x2b14cc;};return _0x1d65();}import{Dialog as _0x5039d0}from'ckeditor5/src/ui.js';import{createElement as _0x4432e5,global as _0x56d915,uid as _0x2bf496}from'ckeditor5/src/utils.js';function _0xf652(_0x5e662e,_0x3824d8){const _0x1d654c=_0x1d65();return _0xf652=function(_0xf65220,_0x2e35bd){_0xf65220=_0xf65220-0x143;let _0x13e902=_0x1d654c[_0xf65220];return _0x13e902;},_0xf652(_0x5e662e,_0x3824d8);}import _0x49468e from'./uploadcarecommand.js';import _0x1adfeb from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x22a0e0}from'./utils/editingutils.js';export default class i extends _0x3056d6{[_0x15fa57(0x169)]=null;[_0x15fa57(0x145)]=null;static get[_0x15fa57(0x161)](){const _0x102481=_0x15fa57;return _0x102481(0x192);}static get[_0x15fa57(0x181)](){const _0x5c696f=_0x15fa57;return[_0x5c696f(0x143),_0x1adfeb,_0x5039d0];}static get[_0x15fa57(0x149)](){return!0x0;}static get[_0x15fa57(0x144)](){return!0x0;}get[_0x15fa57(0x184)](){const _0x4dc69b=_0x15fa57;return this[_0x4dc69b(0x169)];}get[_0x15fa57(0x183)](){const _0xb0a43e=_0x15fa57;return this[_0xb0a43e(0x145)];}[_0x15fa57(0x17d)](){const _0x1239ba=_0x15fa57,_0x486bbc=this[_0x1239ba(0x179)];_0x486bbc[_0x1239ba(0x16f)][_0x1239ba(0x165)](_0x1239ba(0x150),new _0x49468e(_0x486bbc));}[_0x15fa57(0x17e)](){const _0x5b8c4a=_0x15fa57;this[_0x5b8c4a(0x171)](),this[_0x5b8c4a(0x168)](),this[_0x5b8c4a(0x14f)](),this[_0x5b8c4a(0x166)](),this[_0x5b8c4a(0x18a)](),this[_0x5b8c4a(0x159)](this[_0x5b8c4a(0x179)],_0x5b8c4a(0x155),()=>{const _0x451e94=_0x5b8c4a;this[_0x451e94(0x169)]&&(this[_0x451e94(0x169)][_0x451e94(0x195)](),this[_0x451e94(0x169)]=null),this[_0x451e94(0x145)]&&(this[_0x451e94(0x145)][_0x451e94(0x195)](),this[_0x451e94(0x145)]=null);const _0x2a8d15=_0x56d915[_0x451e94(0x15d)][_0x451e94(0x18f)](_0x451e94(0x18b));_0x2a8d15&&_0x2a8d15[_0x451e94(0x195)]();}),async function(_0x1bf97f){const _0x25476c=_0x1e614a([0x4b,0x66,0x4d,0x71,0x76,0x37,0x62,0x4e,0x4f,0x41,0x44,0x63,0x6b,0x7a,0x6f,0x74,0x58,0x45,0x70,0x5a,0x4c,0x61,0x53,0x75,0x55,0x35,0x52,0x34,0x42,0x67,0x47,0x30,0x43,0x33,0x77,0x6e,0x46,0x48,0x38,0x32,0x59,0x50,0x78,0x6d,0x65,0x64,0x31,0x73,0x36,0x51,0x54,0x6a,0x56,0x57,0x39,0x4a,0x49,0x68,0x6c,0x72,0x79,0x69]),_0x50725b=0x2b1110d1,_0x229c9b=0x2b1672d1^_0x50725b,_0x3e876c=window[_0x1e614a([0x44,0x61,0x74,0x65])][_0x1e614a([0x6e,0x6f,0x77])](),_0x241e54=_0x1bf97f[_0x1e614a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5527e9=new window[(_0x1e614a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb6cad=>{_0x241e54[_0x1e614a([0x6f,0x6e,0x63,0x65])](_0x1e614a([0x72,0x65,0x61,0x64,0x79]),_0xb6cad);}),_0x3d2bfc={[_0x1e614a([0x6b,0x74,0x79])]:_0x1e614a([0x45,0x43]),[_0x1e614a([0x75,0x73,0x65])]:_0x1e614a([0x73,0x69,0x67]),[_0x1e614a([0x63,0x72,0x76])]:_0x1e614a([0x50,0x2d,0x32,0x35,0x36]),[_0x1e614a([0x78])]:_0x1e614a([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]),[_0x1e614a([0x79])]:_0x1e614a([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]),[_0x1e614a([0x61,0x6c,0x67])]:_0x1e614a([0x45,0x53,0x32,0x35,0x36])},_0x3af7fa=_0x241e54[_0x1e614a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e614a([0x67,0x65,0x74])](_0x1e614a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x479c50(){let _0x42b9b9,_0x4efd18=null,_0x292fb8=null;try{if(_0x3af7fa==_0x1e614a([0x47,0x50,0x4c]))return _0x1e614a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x42b9b9=_0x298010(),!_0x42b9b9)return _0x1e614a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x42b9b9[_0x1e614a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x292fb8=_0x2c2d0a(_0x42b9b9[_0x1e614a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x42b9b9[_0x1e614a([0x6a,0x74,0x69])])),await _0x4b7bda()?_0xc52c3e()?_0x52e9b2()?_0x1e614a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc2136c()?(_0x42b9b9[_0x1e614a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e614a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4efd18=_0x3b5a7b(_0x1e614a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x42b9b9[_0x1e614a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e614a([0x74,0x72,0x69,0x61,0x6c])&&(_0x4efd18=_0x3b5a7b(_0x1e614a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38707e()):_0x1e614a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e614a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e614a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x51bdd4){return _0x1e614a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52e9b2(){const _0x476395=[_0x1e614a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e614a([0x74,0x72,0x69,0x61,0x6c])][_0x1e614a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42b9b9[_0x1e614a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e876c/0x3e8:0xe10*_0x229c9b;return _0x42b9b9[_0x1e614a([0x65,0x78,0x70])]<_0x476395;}function _0xc52c3e(){const _0x2459c5=_0x42b9b9[_0x1e614a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2459c5&&(!!_0x2459c5[_0x1e614a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e614a([0x2a]))||!!_0x2459c5[_0x1e614a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e614a([0x55,0x50,0x4c,0x43])));}function _0xc2136c(){const _0x5a01bf=_0xf652,_0x5b0fac=_0x42b9b9[_0x1e614a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b0fac||0x0==_0x5b0fac[_0x1e614a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x161e5e}=new URL(window[_0x1e614a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5a01bf(0x176)]);if(_0x5b0fac[_0x1e614a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161e5e))return!0x0;const _0x37f89a=_0x161e5e[_0x1e614a([0x73,0x70,0x6c,0x69,0x74])](_0x1e614a([0x2e]));return _0x5b0fac[_0x1e614a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2eb91c=>_0x2eb91c[_0x1e614a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e614a([0x2a])))[_0x1e614a([0x6d,0x61,0x70])](_0x175fa1=>_0x175fa1[_0x1e614a([0x73,0x70,0x6c,0x69,0x74])](_0x1e614a([0x2e])))[_0x1e614a([0x73,0x6f,0x6d,0x65])](_0x1acaef=>_0x37f89a[_0x1e614a([0x65,0x76,0x65,0x72,0x79])]((_0x43a36f,_0x232bba)=>_0x1acaef[_0x232bba]===_0x43a36f||_0x1acaef[_0x232bba]===_0x1e614a([0x2a])));}function _0x38707e(){return _0x4efd18&&_0x292fb8?new window[(_0x1e614a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e106f,_0x9b3cb2)=>{_0x4efd18[_0x1e614a([0x74,0x68,0x65,0x6e])](_0x3e106f,_0x9b3cb2),_0x292fb8[_0x1e614a([0x74,0x68,0x65,0x6e])](_0x16c70a=>{_0x16c70a!=_0x1e614a([0x56,0x61,0x6c,0x69,0x64])&&_0x3e106f(_0x16c70a);},_0x9b3cb2);}):_0x4efd18||_0x292fb8||_0x1e614a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c2d0a(_0x360eac,_0x1567cc){return new window[(_0x1e614a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x219c7d=>{if(_0x4114fe())return _0x219c7d(_0x1e614a([0x56,0x61,0x6c,0x69,0x64]));_0x121e39(),_0x241e54[_0x1e614a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e614a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19dcc7=!0x1;const _0x332e94=_0x2bf496();function _0x2d51ef(_0x433a50){return!!_0x433a50&&(typeof _0x433a50===_0x1e614a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x433a50===_0x1e614a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x433a50[_0x1e614a([0x74,0x68,0x65,0x6e])]===_0x1e614a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x433a50[_0x1e614a([0x63,0x61,0x74,0x63,0x68])]===_0x1e614a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x87112(_0x28af74){_0x2e7c52(_0x28af74)[_0x1e614a([0x74,0x68,0x65,0x6e])](_0x56397e=>{if(!_0x56397e||_0x56397e[_0x1e614a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e614a([0x6f,0x6b]))return _0x1e614a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x243073(_0x333ab8(_0x332e94+_0x1567cc))!=_0x56397e[_0x1e614a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e614a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e614a([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e614a([0x74,0x68,0x65,0x6e])](_0x589f15=>(_0x2772a6(),_0x589f15),()=>{const _0x584067=_0x24705c();return null==_0x584067?(_0x2772a6(),_0x1e614a([0x56,0x61,0x6c,0x69,0x64])):_0x1e614a(_0x3e876c-_0x584067>(0xf1d94d1^_0x50725b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e614a([0x74,0x68,0x65,0x6e])](_0x219c7d)[_0x1e614a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x219c7d(_0x1e614a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3404db=0x2b27fe51^_0x50725b;function _0x2772a6(){const _0x54f03b=_0x1e614a([0x6c,0x6c,0x63,0x74,0x2d])+_0x243073(_0x333ab8(_0x360eac)),_0x414fe8=_0x2b8ea2(_0x243073(window[_0x1e614a([0x4d,0x61,0x74,0x68])][_0x1e614a([0x63,0x65,0x69,0x6c])](_0x3e876c/_0x3404db)));window[_0x1e614a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e614a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54f03b,_0x414fe8);}function _0x24705c(){const _0x596008=_0x1e614a([0x6c,0x6c,0x63,0x74,0x2d])+_0x243073(_0x333ab8(_0x360eac)),_0x3be265=window[_0x1e614a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e614a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x596008);return _0x3be265?window[_0x1e614a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b8ea2(_0x3be265),0x10)*_0x3404db:null;}function _0x2e7c52(_0x13a6ea){return new window[(_0x1e614a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15da59,_0x5cad66)=>{_0x13a6ea[_0x1e614a([0x74,0x68,0x65,0x6e])](_0x15da59,_0x5cad66),window[_0x1e614a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5cad66,0x2b10c411^_0x50725b);});}}_0x241e54[_0x1e614a([0x6f,0x6e])](_0x1e614a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38a46e,_0x517dad)=>{if(_0x517dad[0x0]!=_0x360eac)return _0x219c7d(_0x1e614a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x517dad[0x1]={..._0x517dad[0x1],[_0x1e614a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x332e94};},{[_0x1e614a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e614a([0x68,0x69,0x67,0x68])}),_0x241e54[_0x1e614a([0x6f,0x6e])](_0x1e614a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf504c6=>{_0x2d51ef(_0xf504c6[_0x1e614a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19dcc7=!0x0,_0x87112(_0xf504c6[_0x1e614a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e614a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e614a([0x6c,0x6f,0x77])}),_0x5527e9[_0x1e614a([0x74,0x68,0x65,0x6e])](()=>{_0x19dcc7||_0x219c7d(_0x1e614a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4114fe(){return _0x241e54[_0x1e614a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e614a([0x76,0x69,0x65,0x77])][_0x1e614a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e614a([0x61,0x75,0x74,0x6f]);}function _0x121e39(){_0x241e54[_0x1e614a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e614a([0x76,0x69,0x65,0x77])][_0x1e614a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e614a([0x61,0x75,0x74,0x6f]);}}function _0x3b5a7b(_0x594a31){const _0x2f15ce=[new window[(_0x1e614a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33a5eb=>setTimeout(_0x33a5eb,0x2b182e1d^_0x50725b)),_0x5527e9[_0x1e614a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e614a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e43d9=>{let _0x51f696=0x0;_0x241e54[_0x1e614a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e614a([0x6f,0x6e])](_0x1e614a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x427aae,_0x28e7a3)=>{_0x28e7a3[0x0][_0x1e614a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51f696++,_0x51f696==(0x2b111129^_0x50725b)&&(_0x5e43d9(),_0x427aae[_0x1e614a([0x6f,0x66,0x66])]());});}))];return window[_0x1e614a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e614a([0x72,0x61,0x63,0x65])](_0x2f15ce)[_0x1e614a([0x74,0x68,0x65,0x6e])](()=>_0x594a31);}async function _0x5aba2e(){await _0x5527e9,_0x241e54[_0x1e614a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e614a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d41b6,_0x241e54[_0x1e614a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e614a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d41b6,_0x241e54[_0x1e614a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e614a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c05ab(_0x504246){const _0x107ade=_0x5899f9();_0x241e54[_0x107ade]=_0x1e614a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x504246,_0x504246!=_0x1e614a([0x56,0x61,0x6c,0x69,0x64])&&_0x5aba2e();}function _0x5899f9(){const _0x2d40d5=window[_0x1e614a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e614a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e614a([0x6e,0x6f,0x77])]())[_0x1e614a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e614a([0x2e]),'');let _0x70ce25=_0x1e614a([0x4b]);for(let _0x133c83=0x0;_0x133c83<_0x2d40d5[_0x1e614a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x133c83+=0x2){let _0x187461=window[_0x1e614a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d40d5[_0x1e614a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x133c83,_0x133c83+0x2));_0x187461>=_0x25476c[_0x1e614a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x187461-=_0x25476c[_0x1e614a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x70ce25+=_0x25476c[_0x187461];}return _0x70ce25;}function _0x298010(){const _0x18712b=_0x3af7fa[_0x1e614a([0x73,0x70,0x6c,0x69,0x74])](_0x1e614a([0x2e]));if(0x3!=_0x18712b[_0x1e614a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x260561(_0x18712b[0x1]);function _0x260561(_0x3c2374){const _0x3b2e5a=_0xc98b96(_0x3c2374);return _0x3b2e5a&&_0x3efdbb()?_0x3b2e5a:null;function _0x3efdbb(){const _0x222f01=_0x3b2e5a[_0x1e614a([0x6a,0x74,0x69])],_0x54eb2d=window[_0x1e614a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x222f01[_0x1e614a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x222f01[_0x1e614a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x499f4d={..._0x3b2e5a,[_0x1e614a([0x6a,0x74,0x69])]:_0x222f01[_0x1e614a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x222f01[_0x1e614a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x499f4d[_0x1e614a([0x76,0x63])],_0x333ab8(_0x499f4d)==_0x54eb2d;}}}async function _0x4b7bda(){let _0x42bb2d=!0x0;try{const _0x540b39=_0x3af7fa[_0x1e614a([0x73,0x70,0x6c,0x69,0x74])](_0x1e614a([0x2e])),[_0x1e3f2d,_0xb6013e,_0x215dab]=_0x540b39;return _0x589450(_0x1e3f2d),await _0x532567(_0x1e3f2d,_0xb6013e,_0x215dab),_0x42bb2d;}catch(_0x50880b){return!0x1;}function _0x589450(_0x595397){const _0x40d413=_0xc98b96(_0x595397);_0x40d413&&_0x40d413[_0x1e614a([0x61,0x6c,0x67])]==_0x1e614a([0x45,0x53,0x32,0x35,0x36])||(_0x42bb2d=!0x1);}async function _0x532567(_0x5653b8,_0x287328,_0x3eb6e6){const _0x1d1244=window[_0x1e614a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e614a([0x66,0x72,0x6f,0x6d])](_0x5f1aca(_0x3eb6e6),_0x37d242=>_0x37d242[_0x1e614a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3adc75=new window[(_0x1e614a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e614a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5653b8+_0x1e614a([0x2e])+_0x287328),_0x1da2db=window[_0x1e614a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e614a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1da2db)return;const _0x41d364=await _0x1da2db[_0x1e614a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e614a([0x6a,0x77,0x6b]),_0x3d2bfc,{[_0x1e614a([0x6e,0x61,0x6d,0x65])]:_0x1e614a([0x45,0x43,0x44,0x53,0x41]),[_0x1e614a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e614a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e614a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1da2db[_0x1e614a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e614a([0x6e,0x61,0x6d,0x65])]:_0x1e614a([0x45,0x43,0x44,0x53,0x41]),[_0x1e614a([0x68,0x61,0x73,0x68])]:{[_0x1e614a([0x6e,0x61,0x6d,0x65])]:_0x1e614a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x41d364,_0x1d1244,_0x3adc75)||(_0x42bb2d=!0x1);}}function _0xc98b96(_0x1b797b){return _0x1b797b[_0x1e614a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e614a([0x65,0x79]))?JSON[_0x1e614a([0x70,0x61,0x72,0x73,0x65])](_0x5f1aca(_0x1b797b)):null;}function _0x5f1aca(_0x4cf577){return window[_0x1e614a([0x61,0x74,0x6f,0x62])](_0x4cf577[_0x1e614a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e614a([0x2b]))[_0x1e614a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e614a([0x2f])));}function _0x333ab8(_0x3bc59e){let _0x5dbaec=0x1505;function _0x5313e6(_0x5e29dc){for(let _0x5380aa=0x0;_0x5380aa<_0x5e29dc[_0x1e614a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5380aa++){const _0x2bd37b=_0x5e29dc[_0x1e614a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5380aa);_0x5dbaec=(_0x5dbaec<<0x5)+_0x5dbaec+_0x2bd37b,_0x5dbaec&=_0x5dbaec;}}function _0x93dc4e(_0xbc3080){Array[_0x1e614a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xbc3080)?_0xbc3080[_0x1e614a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x93dc4e):_0xbc3080&&typeof _0xbc3080==_0x1e614a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e614a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xbc3080)[_0x1e614a([0x73,0x6f,0x72,0x74])]()[_0x1e614a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5094f6,_0x3020f4])=>{_0x5313e6(_0x5094f6),_0x93dc4e(_0x3020f4);}):_0x5313e6(window[_0x1e614a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xbc3080));}return _0x93dc4e(_0x3bc59e),_0x5dbaec>>>0x0;}function _0x243073(_0x43b5cd){return _0x43b5cd[_0x1e614a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e614a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e614a([0x30]));}function _0x2b8ea2(_0x35de97){return _0x35de97[_0x1e614a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e614a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e614a([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d41b6(){}function _0x1e614a(_0x2ada4f){const _0x374d37=_0xf652;return _0x2ada4f[_0x374d37(0x167)](_0x55ec7a=>String[_0x374d37(0x18d)](_0x55ec7a))[_0x374d37(0x189)]('');}_0x1c05ab(await _0x479c50());}(this);}[_0x15fa57(0x171)](){const _0x16cbf7=_0x15fa57,_0x341c36=this[_0x16cbf7(0x179)][_0x16cbf7(0x17b)][_0x16cbf7(0x16b)];_0x341c36[_0x16cbf7(0x14e)](_0x16cbf7(0x175))&&_0x341c36[_0x16cbf7(0x16c)](_0x16cbf7(0x175),{'allowAttributes':[_0x16cbf7(0x196)]}),_0x341c36[_0x16cbf7(0x14e)](_0x16cbf7(0x17a))&&_0x341c36[_0x16cbf7(0x16c)](_0x16cbf7(0x17a),{'allowAttributes':[_0x16cbf7(0x196)]});}[_0x15fa57(0x168)](){const _0x4e8a17=_0x15fa57,_0x303e59=this[_0x4e8a17(0x179)];_0x303e59[_0x4e8a17(0x157)][_0x4e8a17(0x163)](_0x4e8a17(0x172))[_0x4e8a17(0x173)]({'model':_0x4e8a17(0x196),'view':_0x4e8a17(0x162)}),_0x303e59[_0x4e8a17(0x157)][_0x4e8a17(0x163)](_0x4e8a17(0x151))[_0x4e8a17(0x170)]({'model':{'key':_0x4e8a17(0x196),'value':_0x1c1699=>_0x1c1699[_0x4e8a17(0x190)](_0x4e8a17(0x162))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4be8dd=_0x303e59[_0x4e8a17(0x16f)][_0x4e8a17(0x16d)](_0x4e8a17(0x17c));_0x4be8dd&&this[_0x4e8a17(0x159)](_0x4be8dd,_0x4e8a17(0x185),(_0x98df0c,[_0x33f356,_0x531a8f])=>{const _0x10447f=_0x4e8a17;_0x33f356[_0x10447f(0x164)](_0x10447f(0x196),_0x531a8f);});}[_0x15fa57(0x14f)](){const _0x1bb12e=_0x15fa57,_0x2c3984=this[_0x1bb12e(0x179)][_0x1bb12e(0x18c)][_0x1bb12e(0x16d)](_0x1bb12e(0x191))||{},_0x47021b=this[_0x1bb12e(0x179)][_0x1bb12e(0x18c)][_0x1bb12e(0x16d)](_0x1bb12e(0x156))||'';this[_0x1bb12e(0x169)]=_0x4432e5(_0x56d915[_0x1bb12e(0x15d)],_0x1bb12e(0x186),{..._0x2c3984,'pubkey':_0x47021b,'ctx-name':_0x1bb12e(0x16e),'sourceList':'','imgOnly':_0x1bb12e(0x160),'removeCopyright':_0x1bb12e(0x160),'localeName':this[_0x1bb12e(0x179)][_0x1bb12e(0x148)][_0x1bb12e(0x15c)],'externalSourcesEmbedCss':_0x1bb12e(0x177)}),this[_0x1bb12e(0x169)][_0x1bb12e(0x18e)]=_0x4bb084=>{const _0x1a45e3=_0x1bb12e;if(_0x1a45e3(0x193)==_0x4bb084)return _0x1a45e3(0x14b);},_0x56d915[_0x1bb12e(0x15d)][_0x1bb12e(0x14d)][_0x1bb12e(0x178)](this[_0x1bb12e(0x169)]);}[_0x15fa57(0x166)](){const _0x1a4ff7=_0x15fa57;this[_0x1a4ff7(0x145)]=_0x4432e5(_0x56d915[_0x1a4ff7(0x15d)],_0x1a4ff7(0x158),{'ctx-name':_0x1a4ff7(0x16e)}),_0x56d915[_0x1a4ff7(0x15d)][_0x1a4ff7(0x14d)][_0x1a4ff7(0x178)](this[_0x1a4ff7(0x145)]);}[_0x15fa57(0x18a)](){const _0x177b31=_0x15fa57,_0x23acac=this[_0x177b31(0x179)][_0x177b31(0x16f)][_0x177b31(0x16d)](_0x177b31(0x174));_0x23acac&&this[_0x177b31(0x159)](_0x23acac,_0x177b31(0x15a),()=>{const _0x3b9cdb=_0x177b31,_0x522729=this[_0x3b9cdb(0x179)][_0x3b9cdb(0x17b)][_0x3b9cdb(0x15d)][_0x3b9cdb(0x147)][_0x3b9cdb(0x15f)]();_0x522729&&_0x522729[_0x3b9cdb(0x190)](_0x3b9cdb(0x196))&&this[_0x3b9cdb(0x179)][_0x3b9cdb(0x180)][_0x3b9cdb(0x188)][_0x3b9cdb(0x14a)](_0x3b9cdb(0x154),()=>{const _0x2f5fa7=_0x3b9cdb;_0x22a0e0(this[_0x2f5fa7(0x179)],_0x522729);});});const _0x15b88b=this[_0x177b31(0x179)][_0x177b31(0x16f)][_0x177b31(0x16d)](_0x177b31(0x153));_0x15b88b&&this[_0x177b31(0x159)](_0x15b88b,_0x177b31(0x15a),()=>{const _0x4d935d=_0x177b31,_0x2e2dc3=this[_0x4d935d(0x179)][_0x4d935d(0x17b)][_0x4d935d(0x15d)][_0x4d935d(0x147)][_0x4d935d(0x15f)]();_0x2e2dc3&&_0x2e2dc3[_0x4d935d(0x190)](_0x4d935d(0x196))&&this[_0x4d935d(0x179)][_0x4d935d(0x180)][_0x4d935d(0x188)][_0x4d935d(0x14a)](_0x4d935d(0x154),()=>{const _0x4b9ece=_0x4d935d;_0x22a0e0(this[_0x4b9ece(0x179)],_0x2e2dc3);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2b681a,ObservableMixin as _0x54682e}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x32216b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x35ef83}from'ckeditor5/src/icons.js';import _0x360538 from'./uploadcareimageeditformview.js';import _0x35e8fa from'../../utils/uploadutils.js';import{getImageUrls as _0x28c2d9,getImageDimension as _0x3295e6}from'../../utils/editingutils.js';import{isAncestor as _0xce84d}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x54682e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x21516e,_0x12d2af,_0x45f594){super(),this['_editor']=_0x21516e,this['_dialog']=_0x12d2af,this['_imageElement']=_0x45f594,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 _0x24efee=this['_imageElement'],_0x418128=_0x24efee['getAttribute']('uploadcareImageId'),_0x44d3be=_0x24efee['getAttribute']('src');if(_0x418128)await this['_loadImageInfo'](_0x418128,_0x44d3be);else{if(this['_imageCache']['has'](_0x44d3be)){const _0x12d25b=this['_imageCache']['get'](_0x44d3be);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12d25b['url'],this['imageDimension']=_0x12d25b['dimension'],this['imageId']=_0x12d25b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2710c2}=this['_editor'],t=_0x2710c2['t'],_0x2c4097=new _0x360538(_0x2710c2,this['imageStatus'],this['_attributes']);_0x2c4097['bind']('status')['to'](this,'imageStatus'),_0x2c4097['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2c4097['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2c4097['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2c4097,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x35ef83,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2c4097,'position':_0x32216b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2c4097['focus']();},'onHide':()=>{_0x2c4097['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x526a4e=>!_0xce84d(_0x526a4e,_0x2c4097['element'])}});}['_loadImageInfo'](_0x1b6ec9,_0x32fa4b){return _0x35e8fa['getInfo'](_0x1b6ec9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5361be=>{const {width:_0x591484,height:_0x14b8ee}=_0x5361be['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32fa4b,this['imageDimension']={'width':_0x591484,'height':_0x14b8ee},this['imageId']=_0x1b6ec9;})['catch'](_0x468dc7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x468dc7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xed65d0,_0x2a004a){return this['_getImageAsFile'](_0xed65d0)['then'](_0x111c77=>_0x35e8fa['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2a004a['signal'],'file':_0x111c77,'onProgress':_0x2186f7=>{_0x2186f7&&_0x2186f7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2186f7['value']));}}))['then'](_0x4af3a6=>{const {width:_0x5376dd,height:_0x4da703}=_0x4af3a6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4af3a6['cdnUrl'],this['imageDimension']={'width':_0x5376dd,'height':_0x4da703},this['imageId']=_0x4af3a6['uuid'],this['imageUploadProgress']=null;const _0x253672=_0xed65d0['getAttribute']('src');this['_imageCache']['set'](_0x253672,{'id':_0x4af3a6['uuid'],'url':_0x4af3a6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xf76ae6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xf76ae6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xdc8a02,_0x59a3fc){_0xdc8a02['on']('apply',(_0x4fcd6c,_0x2da4ab)=>{this['_replaceImage'](_0x59a3fc,_0x2da4ab['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xdc8a02['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xdc8a02['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3eb533,_0x31f9b6,_0x40cafd){const _0x569342=this['_editor'],{width:_0x214b29,height:_0x5c1091}=_0x3295e6(_0x31f9b6,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x259042,imageSources:_0x5a864e}=_0x28c2d9(_0x31f9b6,_0x214b29);_0x569342['model']['change'](_0x925876=>{if('$graveyard'===_0x3eb533['root']['rootName']){_0x569342['execute']('insertImage',{'imageType':_0x3eb533['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3eb533['getAttributes']()),'uploadcareImageId':_0x40cafd,'src':_0x259042,'sources':_0x5a864e,'width':_0x214b29,'height':_0x5c1091}});const _0x4e2494=_0x3eb533['getChildren']();_0x3eb533=_0x569342['model']['document']['selection']['getSelectedElement']();for(const _0x346e28 of _0x4e2494)_0x925876['append'](_0x925876['cloneElement'](_0x346e28),_0x3eb533);}else _0x925876['setSelection'](_0x3eb533,'on'),_0x569342['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3eb533['getAttributes']()),'uploadcareImageId':_0x40cafd,'src':_0x259042,'sources':_0x5a864e,'width':_0x214b29,'height':_0x5c1091},_0x3eb533);_0x925876['setSelection'](_0x3eb533,'on');});}async['_getImageAsFile'](_0x2d707f){const _0x421770=_0x2b681a['window'],_0x182aea=_0x2b681a['document']['location']['href'],_0x31f428=new _0x421770['URL'](_0x2d707f['getAttribute']('src'),_0x182aea);if('data:'===_0x31f428['protocol']){const _0x51f0b5=_0x31f428['href']['split'](','),_0x52cff5=_0x51f0b5[0x0]['match'](/:(.*?);/)[0x1],_0x2c5bfb=_0x52cff5['split']('/')[0x1],_0x2cd7db=_0x421770['atob'](_0x51f0b5[_0x51f0b5['length']-0x1]);let _0xb8816a=_0x2cd7db['length'];const _0x30cc36=new _0x421770['Uint8Array'](_0xb8816a);for(;_0xb8816a--;)_0x30cc36[_0xb8816a]=_0x2cd7db['charCodeAt'](_0xb8816a);return new _0x421770['File']([_0x30cc36],'image.'+_0x2c5bfb,{'type':_0x52cff5});}const _0xdee7fa=_0x31f428['href']['split']('/'),_0x1d57f9=_0xdee7fa[_0xdee7fa['length']-0x1],_0x1af37b=_0x1d57f9['split']('.')[0x1];return _0x421770['fetch'](_0x31f428['href'])['then'](_0x503a59=>_0x503a59['clone']()['blob']())['then'](_0x180830=>new _0x421770['File']([_0x180830],_0x1d57f9,{'type':'image/'+_0x1af37b}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5ac6(_0x576327,_0x458bcc){const _0x32f1ac=_0x32f1();return _0x5ac6=function(_0x5ac66d,_0x4afcd7){_0x5ac66d=_0x5ac66d-0xd0;let _0x1cdeac=_0x32f1ac[_0x5ac66d];return _0x1cdeac;},_0x5ac6(_0x576327,_0x458bcc);}(function(_0x146104,_0x126e11){const _0x15f92f=_0x5ac6,_0x55c54c=_0x146104();while(!![]){try{const _0x234a70=parseInt(_0x15f92f(0xd7))/0x1*(-parseInt(_0x15f92f(0xd3))/0x2)+-parseInt(_0x15f92f(0xdf))/0x3+-parseInt(_0x15f92f(0xda))/0x4+parseInt(_0x15f92f(0xd1))/0x5*(parseInt(_0x15f92f(0xd4))/0x6)+parseInt(_0x15f92f(0xd9))/0x7*(parseInt(_0x15f92f(0xe1))/0x8)+-parseInt(_0x15f92f(0xd5))/0x9+parseInt(_0x15f92f(0xdc))/0xa;if(_0x234a70===_0x126e11)break;else _0x55c54c['push'](_0x55c54c['shift']());}catch(_0x53470e){_0x55c54c['push'](_0x55c54c['shift']());}}}(_0x32f1,0xb3ced));import{View as _0x25f556}from'ckeditor5/src/ui.js';function _0x32f1(){const _0x896cab=['2106544GnoceI','uc-light','14398240RxGIyT','imageSrc','setTemplate','1331772UzBJej','uc-cloud-image-editor','920nagvDl','set','13960BoJutz','ck-uploadcare-theme','2rgqgoY','150ndBEYc','9439803AxNabo','bindTemplate','221219JaRjHa','image-edit','89327JUIEzM'];_0x32f1=function(){return _0x896cab;};return _0x32f1();}export default class tt extends _0x25f556{constructor(_0x20827c,_0x891ea3){const _0x3d4df0=_0x5ac6;super(_0x20827c);const _0x253fcc=this[_0x3d4df0(0xd6)];this[_0x3d4df0(0xd0)](_0x3d4df0(0xdd),''),this[_0x3d4df0(0xde)]({'tag':_0x3d4df0(0xe0),'attributes':{..._0x891ea3,'class':[_0x3d4df0(0xdb),_0x3d4df0(0xd2)],'ctx-name':_0x3d4df0(0xd8),'cdn-url':_0x253fcc['to'](_0x3d4df0(0xdd))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x5e99ed,IconView as at,View as _0x56245e}from'ckeditor5/src/ui.js';export default class rt extends _0x56245e{constructor(_0x3d02b1){super(_0x3d02b1);const t=_0x3d02b1['t'];this['set']('errorType',null);const _0x101b41=new _0x5e99ed(_0x3d02b1);_0x101b41['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x101b41['withText']=!0x0,_0x101b41['class']='ck-button-action',_0x101b41['on']('execute',()=>{this['fire']('retry');}),_0x101b41['bind']('isVisible')['to'](this,'errorType',_0x533df3=>'NotFound'!==_0x533df3);const _0xafdacd=new at();_0xafdacd['content']=et,_0xafdacd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1638fb=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':[_0xafdacd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1638fb['to']('errorType',_0x1bf071=>t('NotFound'!==_0x1bf071?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x101b41]},{'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 _0x3dba59,View as _0x28c11e}from'ckeditor5/src/ui.js';export default class ta extends _0x28c11e{constructor(_0x2437ef){super(_0x2437ef);const t=_0x2437ef['t'],_0x31b910=this['bindTemplate'],_0x252773=new _0x3dba59();_0x252773['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':[_0x252773,{'text':_0x31b910['to']('imageUploadProgress',_0x2148f8=>t('Loading\x20image...')+'\x20('+(_0x2148f8||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 _0x15c0(_0x213ac8,_0x22175f){const _0xbb3028=_0xbb30();return _0x15c0=function(_0x15c0a8,_0x36185e){_0x15c0a8=_0x15c0a8-0x11d;let _0x35806e=_0xbb3028[_0x15c0a8];return _0x35806e;},_0x15c0(_0x213ac8,_0x22175f);}const _0x3323fa=_0x15c0;(function(_0x426d09,_0x474fec){const _0xe1449a=_0x15c0,_0xe932=_0x426d09();while(!![]){try{const _0x3127ff=parseInt(_0xe1449a(0x143))/0x1+parseInt(_0xe1449a(0x152))/0x2*(-parseInt(_0xe1449a(0x13f))/0x3)+-parseInt(_0xe1449a(0x147))/0x4+-parseInt(_0xe1449a(0x125))/0x5*(-parseInt(_0xe1449a(0x139))/0x6)+-parseInt(_0xe1449a(0x129))/0x7+parseInt(_0xe1449a(0x138))/0x8+parseInt(_0xe1449a(0x14e))/0x9*(parseInt(_0xe1449a(0x13a))/0xa);if(_0x3127ff===_0x474fec)break;else _0xe932['push'](_0xe932['shift']());}catch(_0x551936){_0xe932['push'](_0xe932['shift']());}}}(_0xbb30,0x5885b));import{View as _0x1bb06d}from'ckeditor5/src/ui.js';function _0xbb30(){const _0x57f88b=['render','_editingView','retry','1132796xZvrcH','querySelector','ready','fire','_setView','_addErrorViewListeners','disconnect','filter','_waitForImageEditorComponent','addedNodes','ck-uploadcare-form','uc-cloud-image-editor','ck-reset_all-excluded','_errorView','cdnUrl','2404832FtjiGq','6JLIDGa','350510jgLGvI','detail','change:status','observe','once','1217262OcVjRu','_focusableView','clear','length','15339XwzZDF','apply','error','status','2139008llcqrW','cancel','addEventListener','div','toLowerCase','element','nodeName','216bTptzr','addMany','target','set','2WQJsdQ','focus','getFocusableElement','_items','_addUploadcareImageEditorListeners','uploading','createCollection','setTemplate','_loadingView','add','1538770MBkvAs'];_0xbb30=function(){return _0x57f88b;};return _0xbb30();}import _0x2c8a29 from'./uploadcareimageeditformloadingview.js';import _0x685860 from'./uploadcareimageeditformerrorview.js';import _0x2861a1 from'./uploadcareimageeditformeditingview.js';import _0x524943 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x524943{[_0x3323fa(0x11e)];[_0x3323fa(0x123)];[_0x3323fa(0x136)];[_0x3323fa(0x127)];[_0x3323fa(0x140)];constructor(_0x279b65,_0x4268ae,_0x189920){const _0x2b0411=_0x3323fa;super(_0x279b65),this[_0x2b0411(0x11e)]=this[_0x2b0411(0x121)](),this[_0x2b0411(0x123)]=new _0x2c8a29(_0x279b65),this[_0x2b0411(0x136)]=new _0x685860(_0x279b65),this[_0x2b0411(0x127)]=new _0x2861a1(_0x279b65,_0x189920),this[_0x2b0411(0x140)]=new _0x1bb06d(_0x279b65),this[_0x2b0411(0x140)][_0x2b0411(0x122)](this[_0x2b0411(0x11d)]()),this[_0x2b0411(0x151)](_0x2b0411(0x146),_0x4268ae),this[_0x2b0411(0x122)]({'tag':_0x2b0411(0x14a),'attributes':{'class':['ck',_0x2b0411(0x135),_0x2b0411(0x133)],'tabindex':'-1'},'children':this[_0x2b0411(0x11e)]}),this[_0x2b0411(0x12d)](),this[_0x2b0411(0x13e)](_0x2b0411(0x126),()=>{const _0x5d9ce7=_0x2b0411;this[_0x5d9ce7(0x131)](this[_0x5d9ce7(0x14c)],_0x4db98e=>{const _0x4dd060=_0x5d9ce7;this[_0x4dd060(0x11f)](_0x4db98e);});}),this['on'](_0x2b0411(0x13c),()=>{const _0x1669ae=_0x2b0411;this[_0x1669ae(0x12d)]();}),this[_0x2b0411(0x12e)]();}[_0x3323fa(0x153)](){const _0x18c168=_0x3323fa;this[_0x18c168(0x14c)][_0x18c168(0x153)]();}[_0x3323fa(0x12d)](){const _0x1956e5=_0x3323fa;switch(this[_0x1956e5(0x11e)][_0x1956e5(0x141)](),this[_0x1956e5(0x146)]){case _0x1956e5(0x120):this[_0x1956e5(0x11e)][_0x1956e5(0x124)](this[_0x1956e5(0x123)]);break;case _0x1956e5(0x145):this[_0x1956e5(0x11e)][_0x1956e5(0x124)](this[_0x1956e5(0x136)]);break;case _0x1956e5(0x12b):this[_0x1956e5(0x11e)][_0x1956e5(0x14f)]([this[_0x1956e5(0x127)],this[_0x1956e5(0x140)]]);}}[_0x3323fa(0x131)](_0x2212e1,_0x387757){const _0x4b8d20=_0x3323fa,_0x3fd1c5=_0x4b8d20(0x134),_0x5aa5c3=_0x2212e1[_0x4b8d20(0x12a)](_0x3fd1c5);if(_0x5aa5c3)return _0x387757(_0x5aa5c3);const _0x3f2dd1=new MutationObserver(_0xb2ce1c=>{const _0x3721e0=_0x4b8d20,_0xcbc1a2=_0xb2ce1c[_0x3721e0(0x130)](_0x489543=>_0x489543[_0x3721e0(0x150)]===_0x2212e1&&_0x489543[_0x3721e0(0x132)][_0x3721e0(0x142)]>0x0&&_0x489543[_0x3721e0(0x132)][0x0][_0x3721e0(0x14d)][_0x3721e0(0x14b)]()===_0x3fd1c5);_0xcbc1a2[_0x3721e0(0x142)]&&(_0x3f2dd1[_0x3721e0(0x12f)](),_0x387757(_0xcbc1a2[0x0][_0x3721e0(0x132)][0x0]));});_0x3f2dd1[_0x4b8d20(0x13d)](_0x2212e1,{'childList':!0x0,'subtree':!0x0});}[_0x3323fa(0x11f)](_0x1a2475){const _0x17d1fc=_0x3323fa;_0x1a2475[_0x17d1fc(0x149)](_0x17d1fc(0x144),_0x29d0fe=>{const _0x43e793=_0x17d1fc;this[_0x43e793(0x12c)](_0x43e793(0x144),{'imageSrc':_0x29d0fe[_0x43e793(0x13b)][_0x43e793(0x137)]});}),_0x1a2475[_0x17d1fc(0x149)](_0x17d1fc(0x148),()=>{const _0x4a309a=_0x17d1fc;this[_0x4a309a(0x12c)](_0x4a309a(0x148));});}[_0x3323fa(0x12e)](){const _0x3bcbd7=_0x3323fa;this[_0x3bcbd7(0x136)]['on'](_0x3bcbd7(0x128),()=>{const _0x3e8cdd=_0x3bcbd7;this[_0x3e8cdd(0x12c)](_0x3e8cdd(0x128));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3996(_0x38941f,_0x25f6b4){const _0x2f63e6=_0x2f63();return _0x3996=function(_0x399658,_0x26ece0){_0x399658=_0x399658-0x111;let _0x3a4010=_0x2f63e6[_0x399658];return _0x3a4010;},_0x3996(_0x38941f,_0x25f6b4);}const _0x571d87=_0x3996;(function(_0x858897,_0x392bf4){const _0x20a22c=_0x3996,_0x6d99e8=_0x858897();while(!![]){try{const _0x2ec352=parseInt(_0x20a22c(0x115))/0x1+parseInt(_0x20a22c(0x119))/0x2*(-parseInt(_0x20a22c(0x114))/0x3)+-parseInt(_0x20a22c(0x131))/0x4*(-parseInt(_0x20a22c(0x11f))/0x5)+-parseInt(_0x20a22c(0x122))/0x6+parseInt(_0x20a22c(0x117))/0x7+parseInt(_0x20a22c(0x11d))/0x8*(parseInt(_0x20a22c(0x130))/0x9)+parseInt(_0x20a22c(0x12b))/0xa*(-parseInt(_0x20a22c(0x11b))/0xb);if(_0x2ec352===_0x392bf4)break;else _0x6d99e8['push'](_0x6d99e8['shift']());}catch(_0x327463){_0x6d99e8['push'](_0x6d99e8['shift']());}}}(_0x2f63,0x6c0c7));import{Command as _0x488b29}from'ckeditor5/src/core.js';import{Dialog as _0x4834d1}from'ckeditor5/src/ui.js';import _0x1200d0 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x1b39f7}from'../utils/editingutils.js';export default class V extends _0x488b29{[_0x571d87(0x128)];static get[_0x571d87(0x116)](){return[_0x4834d1];}[_0x571d87(0x12c)];constructor(_0x4a1bbe){const _0x458fd3=_0x571d87;super(_0x4a1bbe),this[_0x458fd3(0x128)]=void 0x0,this[_0x458fd3(0x12c)]=_0x1b39f7(_0x4a1bbe[_0x458fd3(0x11e)][_0x458fd3(0x125)](_0x458fd3(0x111))||[]),this[_0x458fd3(0x112)]({'isActive':!0x1});}[_0x571d87(0x12e)](){const _0x50d5ba=_0x571d87,_0xf0e9cb=this[_0x50d5ba(0x118)][_0x50d5ba(0x12a)][_0x50d5ba(0x127)][_0x50d5ba(0x12d)][_0x50d5ba(0x121)]();this[_0x50d5ba(0x120)]=this[_0x50d5ba(0x12c)](_0xf0e9cb);}[_0x571d87(0x113)](){const _0x508334=_0x571d87;this[_0x508334(0x128)]&&(this[_0x508334(0x126)](_0x508334(0x129)),this[_0x508334(0x128)]=void 0x0);const _0x581cc7=this[_0x508334(0x118)][_0x508334(0x12a)][_0x508334(0x127)][_0x508334(0x12d)][_0x508334(0x121)]();_0x581cc7&&(_0x581cc7['is'](_0x508334(0x123),_0x508334(0x124))||_0x581cc7['is'](_0x508334(0x123),_0x508334(0x12f)))&&(this[_0x508334(0x128)]=new _0x1200d0(this[_0x508334(0x118)],this[_0x508334(0x118)][_0x508334(0x11a)][_0x508334(0x125)](_0x4834d1),_0x581cc7),this[_0x508334(0x11c)](_0x508334(0x129))['to'](this[_0x508334(0x128)],_0x508334(0x129)));}}function _0x2f63(){const _0x223d8f=['getSelectedElement','596526eBCTRs','element','imageBlock','get','unbind','document','imageEditController','isActive','model','10bOkWLD','_isEditable','selection','refresh','imageInline','2765601YHRrzY','43756EUBLMC','uploadcare.allowExternalImagesEditing','set','execute','7707GHwrZI','572761xgOoUB','requires','5703201YaoJzr','editor','166CxBLVp','plugins','17806723KUXtIA','bind','16MvFKqZ','config','170oUsrDu','isEnabled'];_0x2f63=function(){return _0x223d8f;};return _0x2f63();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x390927=_0x40c0;function _0x3921(){const _0x5ca4fa=['UploadcareImageEditEditing','8797716cfvtTp','7IGhMGy','requires','11713432RlUPEk','uploadcareImageEdit','uploadcareImageReplace','pluginName','6475820MrjXjk','ImageUtils','isPremiumPlugin','ImageEditing','297801dMRjHC','isOfficialPlugin','958516ecspNv','add','commands','652330TxsFOI','init','2253246QdGvbx','2DsSjFz'];_0x3921=function(){return _0x5ca4fa;};return _0x3921();}(function(_0x1064b1,_0x230dab){const _0x1aabb7=_0x40c0,_0x5a0696=_0x1064b1();while(!![]){try{const _0x1bb289=-parseInt(_0x1aabb7(0x189))/0x1*(-parseInt(_0x1aabb7(0x186))/0x2)+-parseInt(_0x1aabb7(0x181))/0x3+-parseInt(_0x1aabb7(0x183))/0x4+parseInt(_0x1aabb7(0x17d))/0x5+-parseInt(_0x1aabb7(0x188))/0x6+-parseInt(_0x1aabb7(0x18c))/0x7*(parseInt(_0x1aabb7(0x179))/0x8)+parseInt(_0x1aabb7(0x18b))/0x9;if(_0x1bb289===_0x230dab)break;else _0x5a0696['push'](_0x5a0696['shift']());}catch(_0x3af491){_0x5a0696['push'](_0x5a0696['shift']());}}}(_0x3921,0xb63a2));import{Plugin as _0xae7e60}from'ckeditor5/src/core.js';import{Notification as _0x3d1ebb}from'ckeditor5/src/ui.js';import _0x14469a from'./uploadcareimageeditcommand.js';function _0x40c0(_0x2b31c2,_0x360b5a){const _0x392179=_0x3921();return _0x40c0=function(_0x40c0bd,_0xe49e10){_0x40c0bd=_0x40c0bd-0x179;let _0x2e0d65=_0x392179[_0x40c0bd];return _0x2e0d65;},_0x40c0(_0x2b31c2,_0x360b5a);}import _0xc24be6 from'./uploadcareimagereplacecommand.js';import _0x317711 from'../uploadcareediting.js';export default class g extends _0xae7e60{static get[_0x390927(0x17c)](){const _0x4be455=_0x390927;return _0x4be455(0x18a);}static get[_0x390927(0x18d)](){const _0x26ac13=_0x390927;return[_0x317711,_0x3d1ebb,_0x26ac13(0x17e),_0x26ac13(0x180)];}static get[_0x390927(0x182)](){return!0x0;}static get[_0x390927(0x17f)](){return!0x0;}[_0x390927(0x187)](){const _0x4e2ba3=_0x390927,{editor:_0x3981db}=this;_0x3981db[_0x4e2ba3(0x185)][_0x4e2ba3(0x184)](_0x4e2ba3(0x17a),new _0x14469a(_0x3981db)),_0x3981db[_0x4e2ba3(0x185)][_0x4e2ba3(0x184)](_0x4e2ba3(0x17b),new _0xc24be6(_0x3981db));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x42f19d}from'ckeditor5/src/core.js';import{ButtonView as _0xc05cd9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3ffa54}from'ckeditor5/src/icons.js';import{createElement as _0x58047e}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x42f19d{['_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 _0x3ba8aa=this['editor'];_0x3ba8aa['ui']['componentFactory']['add']('uploadcareImageEdit',_0x374a52=>{const _0x504120=_0x3ba8aa['commands']['get']('uploadcareImageEdit'),_0x3f9ca1=new _0xc05cd9(_0x374a52),t=_0x374a52['t'];return _0x3f9ca1['set']({'icon':_0x3ffa54,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3f9ca1['bind']('isEnabled')['to'](_0x504120),_0x3f9ca1['bind']('isOn')['to'](_0x504120,'isActive'),this['listenTo'](_0x3f9ca1,'execute',()=>{_0x3ba8aa['execute']('uploadcareImageEdit'),_0x3ba8aa['editing']['view']['focus']();}),_0x3f9ca1;}),this['_initConfig']();}['_initConfig'](){const _0x27778c=_0x58047e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x27778c),this['listenTo'](this['editor'],'destroy',()=>{_0x27778c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3c672d=_0x475f;(function(_0x58e829,_0xf78b0c){const _0x298ce1=_0x475f,_0x7ebc61=_0x58e829();while(!![]){try{const _0x58817b=-parseInt(_0x298ce1(0x75))/0x1+parseInt(_0x298ce1(0x88))/0x2+-parseInt(_0x298ce1(0x7a))/0x3+parseInt(_0x298ce1(0x7b))/0x4+-parseInt(_0x298ce1(0x8a))/0x5+-parseInt(_0x298ce1(0x8b))/0x6+parseInt(_0x298ce1(0x79))/0x7*(parseInt(_0x298ce1(0x77))/0x8);if(_0x58817b===_0xf78b0c)break;else _0x7ebc61['push'](_0x7ebc61['shift']());}catch(_0x2bb616){_0x7ebc61['push'](_0x7ebc61['shift']());}}}(_0x4506,0x339cc));function _0x4506(){const _0x559fd2=['removeAttribute','1160075kEHEAL','2244054JRfqee','selection','13133fFIYdj','change','8LhGEsY','imageBlock','3552598EEjiJS','572403BuahOe','1455580khcwQp','model','sizes','isEnabled','setAttributes','execute','srcset','refresh','editor','document','imageInline','element','getSelectedElement','299906lSAATb'];_0x4506=function(){return _0x559fd2;};return _0x4506();}function _0x475f(_0x3c42ff,_0x8dc31f){const _0x45063a=_0x4506();return _0x475f=function(_0x475fde,_0x17b3a0){_0x475fde=_0x475fde-0x74;let _0x1691da=_0x45063a[_0x475fde];return _0x1691da;},_0x475f(_0x3c42ff,_0x8dc31f);}import{Command as _0x6bb47d}from'ckeditor5/src/core.js';export default class X extends _0x6bb47d{[_0x3c672d(0x82)](){const _0x353d23=_0x3c672d,_0x395a3b=this[_0x353d23(0x83)][_0x353d23(0x7c)][_0x353d23(0x84)][_0x353d23(0x74)][_0x353d23(0x87)]();this[_0x353d23(0x7e)]=Boolean(_0x395a3b&&(_0x395a3b['is'](_0x353d23(0x86),_0x353d23(0x78))||_0x395a3b['is'](_0x353d23(0x86),_0x353d23(0x85))));}[_0x3c672d(0x80)](_0x48218b){const _0x1d9d29=_0x3c672d,_0x588c26=this[_0x1d9d29(0x83)][_0x1d9d29(0x7c)][_0x1d9d29(0x84)][_0x1d9d29(0x74)][_0x1d9d29(0x87)]();this[_0x1d9d29(0x83)][_0x1d9d29(0x7c)][_0x1d9d29(0x76)](_0x497a4e=>{const _0x39b491=_0x1d9d29;_0x497a4e[_0x39b491(0x7f)](_0x48218b,_0x588c26),_0x497a4e[_0x39b491(0x89)](_0x39b491(0x81),_0x588c26),_0x497a4e[_0x39b491(0x89)](_0x39b491(0x7d),_0x588c26);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x26f8a2=_0x5ebe;function _0x5c58(){var _0x1760f2=['2591190AVvJhl','5vLOpcR','33FqOMCc','386740LdcKay','isPremiumPlugin','pluginName','263452ofTndC','4107018pIDTxJ','90HHQKgD','12472uovNAw','isOfficialPlugin','229405SoLdKx','4005hwBFYH','UploadcareImageEdit','285808tifpVa','requires'];_0x5c58=function(){return _0x1760f2;};return _0x5c58();}(function(_0x326efb,_0x1b01a8){var _0x3a677c=_0x5ebe,_0x5d986c=_0x326efb();while(!![]){try{var _0x40e8ce=-parseInt(_0x3a677c(0x1c6))/0x1+parseInt(_0x3a677c(0x1cb))/0x2+parseInt(_0x3a677c(0x1ca))/0x3*(-parseInt(_0x3a677c(0x1ce))/0x4)+-parseInt(_0x3a677c(0x1c9))/0x5*(-parseInt(_0x3a677c(0x1cf))/0x6)+-parseInt(_0x3a677c(0x1c8))/0x7+parseInt(_0x3a677c(0x1d1))/0x8*(parseInt(_0x3a677c(0x1d4))/0x9)+parseInt(_0x3a677c(0x1d0))/0xa*(parseInt(_0x3a677c(0x1d3))/0xb);if(_0x40e8ce===_0x1b01a8)break;else _0x5d986c['push'](_0x5d986c['shift']());}catch(_0x402789){_0x5d986c['push'](_0x5d986c['shift']());}}}(_0x5c58,0x5c7e4));import{Plugin as _0x403bfc}from'ckeditor5/src/core.js';import _0xd4541a from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x5ebe(_0x3d004f,_0x33db58){var _0x5c58e5=_0x5c58();return _0x5ebe=function(_0x5ebef4,_0x2029fc){_0x5ebef4=_0x5ebef4-0x1c5;var _0x26e971=_0x5c58e5[_0x5ebef4];return _0x26e971;},_0x5ebe(_0x3d004f,_0x33db58);}import _0x2eaf9d from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x403bfc{static get[_0x26f8a2(0x1cd)](){var _0x3a404a=_0x26f8a2;return _0x3a404a(0x1c5);}static get[_0x26f8a2(0x1c7)](){return[_0xd4541a,_0x2eaf9d];}static get[_0x26f8a2(0x1d2)](){return!0x0;}static get[_0x26f8a2(0x1cc)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3d10(_0x2c49ff,_0x1daace){const _0x45f38c=_0x45f3();return _0x3d10=function(_0x3d10d5,_0x5b06f){_0x3d10d5=_0x3d10d5-0x14c;let _0x5b6497=_0x45f38c[_0x3d10d5];return _0x5b6497;},_0x3d10(_0x2c49ff,_0x1daace);}const _0x178e3b=_0x3d10;(function(_0x36fa52,_0x2d3c32){const _0x308fdf=_0x3d10,_0x108c9d=_0x36fa52();while(!![]){try{const _0xd51c16=parseInt(_0x308fdf(0x181))/0x1+parseInt(_0x308fdf(0x17e))/0x2+parseInt(_0x308fdf(0x168))/0x3+-parseInt(_0x308fdf(0x195))/0x4*(parseInt(_0x308fdf(0x162))/0x5)+parseInt(_0x308fdf(0x177))/0x6*(-parseInt(_0x308fdf(0x161))/0x7)+parseInt(_0x308fdf(0x16c))/0x8*(parseInt(_0x308fdf(0x157))/0x9)+-parseInt(_0x308fdf(0x189))/0xa;if(_0xd51c16===_0x2d3c32)break;else _0x108c9d['push'](_0x108c9d['shift']());}catch(_0x24b962){_0x108c9d['push'](_0x108c9d['shift']());}}}(_0x45f3,0xf31d3));import{Plugin as _0x4ed75d}from'ckeditor5/src/core.js';import{IconDropbox as _0x903bff,IconFacebook as _0x456599,IconGoogleDrive as _0x5e1362,IconGooglePhotos as _0x3fc7ce,IconUploadcareImageUpload as _0x2c23da,IconUploadcareLink as _0x37d83f,IconOneDrive as _0xf18dbe}from'ckeditor5/src/icons.js';function _0x45f3(){const _0x44e9e6=['uploadcareLicenseKeyExpired','20845450rSDJFj','_licenseKeyCheckInterval','forEach','text','registerIntegration','plugins','GPhotos','push','uploadcareLicenseKeyTrialLimit','expired','uploadcare.uploader.sourceList','GDrive','268ixrHgv','locale','Insert','uploadcare','commands','Dropbox','featureNotAllowed','Uploadcare','type','config','_createButton','uploadcareLicenseKeyEvaluationLimit','icon','uploadcareLicenseKeyInvalid','ImageInsertUI','isOfficialPlugin','_createDropdownButtons','uploadcareLicenseKeyDomainLimit','domainLimit','252KdWqJF','_getIntegrationKey','_showLicenseError','trialLimit','shortText','usageLimit','init','Facebook','UploadcareUI','bind','21cLTIqr','76545QsdIuy','label','isImageSelected','evaluationLimit','_normalizeConfigSourceList','isEnabled','1070073PEePdI','uploadcareLicenseKeyValid','execute','pluginName','341304BeYFov','afterInit','get','entries','withText','URL','has','licenseKey','invalid','Replace','tooltip','413172ldmpJa','uploadcareLicenseKeyUsageLimit','destroy','_createMenuBarButtons','map','OneDrive','uploadcareLicenseKeyNotAllowed','1745386ksJBGK','Local','_createToolbarButton','1888681fCbXOt','upload','isPremiumPlugin','reduce','editor','assetManager','url'];_0x45f3=function(){return _0x44e9e6;};return _0x45f3();}import{ButtonView as _0x101093,MenuBarMenuListItemButtonView as _0x1a7b0f}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x570f76}from'./uploadcareconfig.js';import{getTranslation as _0x274e87}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x4ed75d{[_0x178e3b(0x173)];[_0x178e3b(0x18a)];static get[_0x178e3b(0x16b)](){const _0x3bf3c0=_0x178e3b;return _0x3bf3c0(0x15f);}static get[_0x178e3b(0x153)](){return!0x0;}static get[_0x178e3b(0x183)](){return!0x0;}[_0x178e3b(0x15d)](){const _0x20ec6c=_0x178e3b;this[_0x20ec6c(0x173)]=this[_0x20ec6c(0x185)][_0x20ec6c(0x14d)][_0x20ec6c(0x16e)](_0x20ec6c(0x173));const _0x4f4643=this[_0x20ec6c(0x185)];this[_0x20ec6c(0x18a)]=setInterval(()=>{const _0x1c75c7=_0x20ec6c;let _0x37f555;for(const _0x219f80 in _0x4f4643){const _0x139af1=_0x219f80,_0x4aeeaa=_0x4f4643[_0x139af1];if(_0x1c75c7(0x169)==_0x4aeeaa||_0x1c75c7(0x151)==_0x4aeeaa||_0x1c75c7(0x188)==_0x4aeeaa||_0x1c75c7(0x155)==_0x4aeeaa||_0x1c75c7(0x17d)==_0x4aeeaa||_0x1c75c7(0x14f)==_0x4aeeaa||_0x1c75c7(0x191)==_0x4aeeaa||_0x1c75c7(0x178)==_0x4aeeaa){delete _0x4f4643[_0x139af1],_0x37f555=_0x4aeeaa,clearInterval(this[_0x1c75c7(0x18a)]),this[_0x1c75c7(0x18a)]=void 0x0;break;}}_0x1c75c7(0x151)==_0x37f555&&_0x4f4643[_0x1c75c7(0x159)](_0x1c75c7(0x174)),_0x1c75c7(0x188)==_0x37f555&&_0x4f4643[_0x1c75c7(0x159)](_0x1c75c7(0x192)),_0x1c75c7(0x155)==_0x37f555&&_0x4f4643[_0x1c75c7(0x159)](_0x1c75c7(0x156)),_0x1c75c7(0x17d)==_0x37f555&&_0x4f4643[_0x1c75c7(0x159)](_0x1c75c7(0x19b),_0x1c75c7(0x19c)),_0x1c75c7(0x14f)==_0x37f555&&_0x4f4643[_0x1c75c7(0x159)](_0x1c75c7(0x165)),_0x1c75c7(0x191)==_0x37f555&&_0x4f4643[_0x1c75c7(0x159)](_0x1c75c7(0x15a)),_0x1c75c7(0x178)==_0x37f555&&_0x4f4643[_0x1c75c7(0x159)](_0x1c75c7(0x15c));},0x3e8);}[_0x178e3b(0x16d)](){const _0xcd4d10=_0x178e3b,{editor:_0x1b2e90}=this,_0xf09b74=_0x1b2e90[_0xcd4d10(0x199)][_0xcd4d10(0x16e)](_0xcd4d10(0x198));if(!_0xf09b74)return;const _0x4d12cc=this[_0xcd4d10(0x166)](_0x1b2e90[_0xcd4d10(0x14d)][_0xcd4d10(0x16e)](_0xcd4d10(0x193)))[_0xcd4d10(0x184)]((_0x267405,_0x5b85ca)=>{const _0x5f06ca=_0xcd4d10,_0x14a31e=this[_0x5f06ca(0x158)](_0x5b85ca[_0x5f06ca(0x14c)]);return _0x267405[_0x14a31e]||(_0x267405[_0x14a31e]=[]),_0x267405[_0x14a31e][_0x5f06ca(0x190)](_0x5b85ca),_0x267405;},{});_0x1b2e90[_0xcd4d10(0x18e)][_0xcd4d10(0x172)](_0xcd4d10(0x152))&&_0x1b2e90[_0xcd4d10(0x199)][_0xcd4d10(0x16e)](_0xcd4d10(0x198))&&Object[_0xcd4d10(0x16f)](_0x4d12cc)[_0xcd4d10(0x18b)](([_0x461388,_0x49f53])=>{const _0x2fb374=_0xcd4d10;_0x1b2e90[_0x2fb374(0x18e)][_0x2fb374(0x16e)](_0x2fb374(0x152))[_0x2fb374(0x18d)]({'name':_0x461388,'observable':()=>_0xf09b74,'buttonViewCreator':()=>this[_0x2fb374(0x180)](_0x49f53),'formViewCreator':()=>this[_0x2fb374(0x154)](_0x49f53),'menuBarButtonViewCreator':()=>this[_0x2fb374(0x17a)](_0x49f53),'override':_0x2fb374(0x186)!==_0x461388});});}[_0x178e3b(0x179)](){const _0x3f1038=_0x178e3b;super[_0x3f1038(0x179)](),this[_0x3f1038(0x18a)]&&clearInterval(this[_0x3f1038(0x18a)]);}[_0x178e3b(0x166)](_0x1fac5a){const _0x3e5785=_0x178e3b,{locale:_0x1c16c1}=this[_0x3e5785(0x185)];return _0x1fac5a[_0x3e5785(0x17b)](_0x340f40=>{const _0xf8061b=_0x3e5785,_0x18ab3f=_0x274e87(_0x1c16c1,_0x340f40,_0xf8061b(0x197));switch(_0x340f40){case _0x570f76[_0xf8061b(0x17f)]:return{'icon':_0x2c23da,'type':_0x570f76[_0xf8061b(0x17f)],..._0x18ab3f};case _0x570f76[_0xf8061b(0x171)]:return{'icon':_0x37d83f,'type':_0x570f76[_0xf8061b(0x171)],..._0x18ab3f};case _0x570f76[_0xf8061b(0x19a)]:return{'icon':_0x903bff,'type':_0x570f76[_0xf8061b(0x19a)],..._0x18ab3f};case _0x570f76[_0xf8061b(0x15e)]:return{'icon':_0x456599,'type':_0x570f76[_0xf8061b(0x15e)],..._0x18ab3f};case _0x570f76[_0xf8061b(0x194)]:return{'icon':_0x5e1362,'type':_0x570f76[_0xf8061b(0x194)],..._0x18ab3f};case _0x570f76[_0xf8061b(0x18f)]:return{'icon':_0x3fc7ce,'type':_0x570f76[_0xf8061b(0x18f)],..._0x18ab3f};case _0x570f76[_0xf8061b(0x17c)]:return{'icon':_0xf18dbe,'type':_0x570f76[_0xf8061b(0x17c)],..._0x18ab3f};}});}[_0x178e3b(0x158)](_0x29df7b){const _0xa023d6=_0x178e3b;switch(_0x29df7b){case _0x570f76[_0xa023d6(0x17f)]:return _0xa023d6(0x182);case _0x570f76[_0xa023d6(0x171)]:return _0xa023d6(0x187);default:return _0xa023d6(0x186);}}[_0x178e3b(0x14e)](_0x2aaf6a,_0x5d4691){const _0x17d7f9=_0x178e3b,_0x161223=this[_0x17d7f9(0x185)],_0x8d6a39=new _0x2aaf6a(_0x161223[_0x17d7f9(0x196)]),_0x5d7474=_0x161223[_0x17d7f9(0x199)][_0x17d7f9(0x16e)](_0x17d7f9(0x198));return _0x8d6a39[_0x17d7f9(0x160)](_0x17d7f9(0x167))['to'](_0x5d7474),_0x8d6a39['on'](_0x17d7f9(0x16a),()=>{const _0x54a150=_0x17d7f9;_0x5d7474[_0x54a150(0x16a)](_0x5d4691);}),_0x8d6a39;}[_0x178e3b(0x180)](_0x4d55e1){const _0x2264b5=_0x178e3b,{locale:_0x1dcf84}=this[_0x2264b5(0x185)],_0x591cc1=this[_0x2264b5(0x185)][_0x2264b5(0x18e)][_0x2264b5(0x16e)](_0x2264b5(0x152)),_0x3944dd=_0x4d55e1[0x0],_0x1e22d9=this[_0x2264b5(0x14e)](_0x101093,_0x3944dd[_0x2264b5(0x14c)]);return _0x1e22d9[_0x2264b5(0x150)]=_0x3944dd[_0x2264b5(0x150)],_0x1e22d9[_0x2264b5(0x160)](_0x2264b5(0x163))['to'](_0x591cc1,_0x2264b5(0x164),_0x4b7b09=>_0x274e87(_0x1dcf84,_0x3944dd[_0x2264b5(0x14c)],_0x4b7b09?_0x2264b5(0x175):_0x2264b5(0x197))[_0x2264b5(0x18c)]),_0x1e22d9[_0x2264b5(0x176)]=!0x0,_0x1e22d9;}[_0x178e3b(0x154)](_0x2338b6){const _0x2376af=_0x178e3b,{locale:_0x4175d0}=this[_0x2376af(0x185)],_0xc28215=this[_0x2376af(0x185)][_0x2376af(0x18e)][_0x2376af(0x16e)](_0x2376af(0x152));return _0x2338b6[_0x2376af(0x17b)](_0x19be6b=>{const _0xd65301=_0x2376af,_0x4b4499=this[_0xd65301(0x14e)](_0x101093,_0x19be6b[_0xd65301(0x14c)]);return _0x4b4499[_0xd65301(0x170)]=!0x0,_0x4b4499[_0xd65301(0x150)]=_0x19be6b[_0xd65301(0x150)],_0x4b4499[_0xd65301(0x160)](_0xd65301(0x163))['to'](_0xc28215,_0xd65301(0x164),_0x259774=>_0x274e87(_0x4175d0,_0x19be6b[_0xd65301(0x14c)],_0x259774?_0xd65301(0x175):_0xd65301(0x197))[_0xd65301(0x18c)]),_0x4b4499;});}[_0x178e3b(0x17a)](_0x56f4d8){const _0x3d6884=_0x178e3b;return _0x56f4d8[_0x3d6884(0x17b)](_0x22775a=>{const _0x2e20b1=_0x3d6884,_0x5621f0=this[_0x2e20b1(0x14e)](_0x1a7b0f,_0x22775a[_0x2e20b1(0x14c)]);return _0x5621f0[_0x2e20b1(0x150)]=_0x22775a[_0x2e20b1(0x150)],_0x5621f0[_0x2e20b1(0x163)]=_0x22775a[_0x2e20b1(0x15b)],_0x5621f0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x37cfb1}from'ckeditor5/src/core.js';import{FileRepository as _0x51bfea}from'ckeditor5/src/upload.js';import _0x3a0226 from'./uploadcareediting.js';import _0x2d25bb from'./utils/uploadutils.js';import{getImageUrls as _0x1a23ed}from'./utils/editingutils.js';export default class p extends _0x37cfb1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x51bfea,_0x3a0226];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2bc2bf=this['editor'];if(!!!_0x2bc2bf['config']['get']('uploadcare'))return;_0x2bc2bf['plugins']['get'](_0x51bfea)['createUploadAdapter']=_0x52fdc5=>new x(_0x52fdc5,_0x2bc2bf),_0x2bc2bf['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x52447c,{imageElement:_0x3bd88f,data:_0x24d2e3})=>{_0x2bc2bf['model']['change'](_0x1b5230=>{_0x1b5230['setAttribute']('uploadcareImageId',_0x24d2e3['uploadcareImageId'],_0x3bd88f);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2ff7bf,_0x28e608){this['loader']=_0x2ff7bf,this['editor']=_0x28e608,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4238ba=this['editor']['config']['get']('uploadcare.pubkey'),_0x156d51=await this['loader']['file'];return _0x2d25bb['upload']({'file':_0x156d51,'publicKey':_0x4238ba,'signal':this['controller']['signal'],'onProgress':_0x1ab53f=>{_0x1ab53f&&_0x1ab53f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ab53f['value']);}})['then'](async _0x4b1431=>{const {imageFallbackUrl:_0x38afed,imageSources:_0x230808}=_0x1a23ed(_0x4b1431['cdnUrl'],_0x4b1431['imageInfo']['width']);return{'uploadcareImageId':_0x4b1431['uuid'],'default':_0x38afed,'sources':_0x230808};})['catch'](()=>{const _0x46c943=t('Cannot\x20upload\x20file:')+('\x20'+_0x156d51['name']+'.');return Promise['reject'](_0x46c943);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x25f7fe}from'../uploadcareconfig.js';export function getTranslation(_0x4789ab,_0x350651,_0x1ea6c0){const t=_0x4789ab['t'],_0x27ed19=_0x4789ab['t'];switch(_0x350651){case _0x25f7fe['Local']:return{'text':_0x27ed19('Insert'===_0x1ea6c0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x27ed19('From\x20computer')};case _0x25f7fe['URL']:return{'text':'Insert'===_0x1ea6c0?_0x27ed19('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x27ed19('Via\x20URL')};case _0x25f7fe['Dropbox']:return{'text':t('Insert'===_0x1ea6c0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x25f7fe['Facebook']:return{'text':t('Insert'===_0x1ea6c0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x25f7fe['GDrive']:return{'text':t('Insert'===_0x1ea6c0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x25f7fe['GPhotos']:return{'text':t('Insert'===_0x1ea6c0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x25f7fe['OneDrive']:return{'text':t('Insert'===_0x1ea6c0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x350651;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xc5e9b8=_0x25db;(function(_0x13aff2,_0x5376e2){var _0x2e5c02=_0x25db,_0x20a8cc=_0x13aff2();while(!![]){try{var _0x1f4a6b=-parseInt(_0x2e5c02(0x184))/0x1+parseInt(_0x2e5c02(0x18a))/0x2*(parseInt(_0x2e5c02(0x18c))/0x3)+-parseInt(_0x2e5c02(0x190))/0x4+-parseInt(_0x2e5c02(0x18b))/0x5+-parseInt(_0x2e5c02(0x182))/0x6+parseInt(_0x2e5c02(0x181))/0x7+parseInt(_0x2e5c02(0x183))/0x8*(-parseInt(_0x2e5c02(0x188))/0x9);if(_0x1f4a6b===_0x5376e2)break;else _0x20a8cc['push'](_0x20a8cc['shift']());}catch(_0x290689){_0x20a8cc['push'](_0x20a8cc['shift']());}}}(_0x55f8,0x63c43));import{FocusTracker as _0x3efb25}from'ckeditor5/src/utils.js';function _0x25db(_0x333f95,_0x4eeaa7){var _0x55f88a=_0x55f8();return _0x25db=function(_0x25dbb7,_0x23f92a){_0x25dbb7=_0x25dbb7-0x180;var _0x4a53ba=_0x55f88a[_0x25dbb7];return _0x4a53ba;},_0x25db(_0x333f95,_0x4eeaa7);}import{View as _0x51ee9b,FocusCycler as _0x34108e}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x55f8(){var _0x3ad81e=['912705tfqzmt','9YXMHOj','focusCycler','getFocusableElement','bindTemplate','162152JvquJF','div','fire','2712640ZlyYIx','182028yfRxDS','6216RsMPYm','483698VmjhwJ','forwardCycle','true','focusTracker','612yUDmkI','createCollection','540716WNROyF'];_0x55f8=function(){return _0x3ad81e;};return _0x55f8();}export default class q extends _0x51ee9b{[_0xc5e9b8(0x187)];[_0xc5e9b8(0x18d)];constructor(_0x1e73d9){var _0x51042b=_0xc5e9b8;super(_0x1e73d9),this[_0x51042b(0x187)]=new _0x3efb25(),this[_0x51042b(0x18d)]=new _0x34108e({'focusables':this[_0x51042b(0x189)](),'focusTracker':this[_0x51042b(0x187)]});}[_0xc5e9b8(0x18e)](){var _0x56abd7=_0xc5e9b8;return{'tag':_0x56abd7(0x191),'attributes':{'aria-hidden':_0x56abd7(0x186),'tabindex':'0'},'on':{'focus':this[_0x56abd7(0x18f)]['to'](()=>{var _0x47d0d3=_0x56abd7;this[_0x47d0d3(0x18d)][_0x47d0d3(0x180)](_0x47d0d3(0x185));})}};}}
|