@ckeditor/ckeditor5-uploadcare 44.3.0-alpha.3 → 44.3.0-alpha.5
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 +8 -8
- 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 _0x5daa58=_0x52ea;(function(_0x30c94b,_0x33daa7){const _0x9b0050=_0x52ea,_0x104bf1=_0x30c94b();while(!![]){try{const _0x38b8e2=-parseInt(_0x9b0050(0x13b))/0x1*(-parseInt(_0x9b0050(0x109))/0x2)+-parseInt(_0x9b0050(0x12a))/0x3*(-parseInt(_0x9b0050(0x103))/0x4)+-parseInt(_0x9b0050(0xfd))/0x5*(-parseInt(_0x9b0050(0x121))/0x6)+parseInt(_0x9b0050(0x101))/0x7*(parseInt(_0x9b0050(0xf7))/0x8)+parseInt(_0x9b0050(0x136))/0x9+-parseInt(_0x9b0050(0x100))/0xa+-parseInt(_0x9b0050(0x12b))/0xb*(parseInt(_0x9b0050(0xfc))/0xc);if(_0x38b8e2===_0x33daa7)break;else _0x104bf1['push'](_0x104bf1['shift']());}catch(_0x3decef){_0x104bf1['push'](_0x104bf1['shift']());}}}(_0x3df5,0xb1bec));import{Plugin as _0x41e768}from'ckeditor5/src/core.js';import{Dialog as _0x22481c}from'ckeditor5/src/ui.js';import{createElement as _0x44ed3a,global as _0x1be687,uid as _0x4d6ca9}from'ckeditor5/src/utils.js';import _0xd17580 from'./uploadcarecommand.js';import _0x1d7cb4 from'./uploadcareuploadadapter.js';function _0x52ea(_0x568b96,_0x325f74){const _0x3df550=_0x3df5();return _0x52ea=function(_0x52ea31,_0x14ebf0){_0x52ea31=_0x52ea31-0xe6;let _0x5d2ef1=_0x3df550[_0x52ea31];return _0x5d2ef1;},_0x52ea(_0x568b96,_0x325f74);}import{showImageProcessingIndicator as _0x56629e}from'./utils/editingutils.js';function _0x3df5(){const _0x20c1c8=['_initConfig','_initConversion','closeMax','5113917pKONuE','href','replaceImageSource','uploader','body','1CoFZvl','downcast','locale','destroy','editing','appendChild','cleanupImage','uc-config','view','UploadcareEditing','\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','_ctxElement','#uc-icon-arrow-down','listenTo','getSelectedElement','_configElement','remove','_initImageProcessingIndicator','8AMCipP','requires','init','isRegistered','uc-upload-ctx-provider','732GqVLSh','150805dvcnRu','once','data-uc-image-id','2137040GoVNWA','5259751BYjhej','_initCtx','12QUgBib','uploadcareImageId','document','render','model','map','891938bHYUUr','contentLanguage','true','schema','selection','insertImage','isPremiumPlugin','imageInline','afterInit','pluginName','imageBlock','elementToAttribute','uploadcareImageReplace','fromCharCode','execute','attributeToAttribute','input[uploadcare-file-input]','commands','PictureEditing','getAttribute','iconHrefResolver','upcast','editor','configElement','66OcLKgO','uploadcare.uploader','get','querySelector','uploadcare','for','uploadcare.pubkey','_initSchema','join','1290441kPVuPK','441089XNUJbN','ctxElement','conversion','add','config','isOfficialPlugin','removeAttribute','extend'];_0x3df5=function(){return _0x20c1c8;};return _0x3df5();}export default class i extends _0x41e768{constructor(){const _0xa6094c=_0x52ea;super(...arguments),this[_0xa6094c(0xf4)]=null,this[_0xa6094c(0xf0)]=null;}static get[_0x5daa58(0x112)](){const _0x5d871d=_0x5daa58;return _0x5d871d(0xee);}static get[_0x5daa58(0xf8)](){const _0x27cf4f=_0x5daa58;return[_0x27cf4f(0x11b),_0x1d7cb4,_0x22481c];}static get[_0x5daa58(0x130)](){return!0x0;}static get[_0x5daa58(0x10f)](){return!0x0;}get[_0x5daa58(0x120)](){const _0x2bb1ee=_0x5daa58;return this[_0x2bb1ee(0xf4)];}get[_0x5daa58(0x12c)](){const _0x28fecb=_0x5daa58;return this[_0x28fecb(0xf0)];}[_0x5daa58(0xf9)](){const _0x47b524=_0x5daa58,_0x35c80b=this[_0x47b524(0x11f)];_0x35c80b[_0x47b524(0x11a)][_0x47b524(0x12e)](_0x47b524(0x125),new _0xd17580(_0x35c80b));}[_0x5daa58(0x111)](){const _0x17dd5b=_0x5daa58;this[_0x17dd5b(0x128)](),this[_0x17dd5b(0x134)](),this[_0x17dd5b(0x133)](),this[_0x17dd5b(0x102)](),this[_0x17dd5b(0xf6)](),this[_0x17dd5b(0xf2)](this[_0x17dd5b(0x11f)],_0x17dd5b(0xe8),()=>{const _0x5d63c8=_0x17dd5b;this[_0x5d63c8(0xf4)]&&(this[_0x5d63c8(0xf4)][_0x5d63c8(0xf5)](),this[_0x5d63c8(0xf4)]=null),this[_0x5d63c8(0xf0)]&&(this[_0x5d63c8(0xf0)][_0x5d63c8(0xf5)](),this[_0x5d63c8(0xf0)]=null);const _0x2305c6=_0x1be687[_0x5d63c8(0x105)][_0x5d63c8(0x124)](_0x5d63c8(0x119));_0x2305c6&&_0x2305c6[_0x5d63c8(0xf5)]();}),async function(_0x45475c){const _0x48d193=_0x55520b([0x44,0x43,0x6f,0x30,0x71,0x72,0x33,0x47,0x75,0x4e,0x77,0x39,0x4c,0x32,0x42,0x74,0x50,0x7a,0x59,0x6b,0x4b,0x36,0x52,0x49,0x51,0x68,0x4f,0x79,0x66,0x45,0x6e,0x4a,0x4d,0x6d,0x63,0x61,0x35,0x54,0x78,0x38,0x5a,0x41,0x53,0x76,0x6c,0x73,0x67,0x65,0x62,0x58,0x46,0x70,0x57,0x69,0x34,0x37,0x6a,0x56,0x55,0x48,0x64,0x31]),_0x4e852c=0x67902e45,_0x10048b=0x67974ea5^_0x4e852c,_0x2d7bba=window[_0x55520b([0x44,0x61,0x74,0x65])][_0x55520b([0x6e,0x6f,0x77])](),_0x50c9b5=_0x45475c[_0x55520b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12b0b3=new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5984d8=>{_0x50c9b5[_0x55520b([0x6f,0x6e,0x63,0x65])](_0x55520b([0x72,0x65,0x61,0x64,0x79]),_0x5984d8);}),_0x3496f8={[_0x55520b([0x6b,0x74,0x79])]:_0x55520b([0x45,0x43]),[_0x55520b([0x75,0x73,0x65])]:_0x55520b([0x73,0x69,0x67]),[_0x55520b([0x63,0x72,0x76])]:_0x55520b([0x50,0x2d,0x32,0x35,0x36]),[_0x55520b([0x78])]:_0x55520b([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]),[_0x55520b([0x79])]:_0x55520b([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]),[_0x55520b([0x61,0x6c,0x67])]:_0x55520b([0x45,0x53,0x32,0x35,0x36])},_0x40b495=_0x50c9b5[_0x55520b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55520b([0x67,0x65,0x74])](_0x55520b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x320d5a(){let _0x17bdf1,_0x43edb8=null,_0x4739c1=null;try{if(_0x40b495==_0x55520b([0x47,0x50,0x4c]))return _0x55520b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17bdf1=_0x329854(),!_0x17bdf1)return _0x55520b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17bdf1[_0x55520b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4739c1=_0x2b2c06(_0x17bdf1[_0x55520b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17bdf1[_0x55520b([0x6a,0x74,0x69])])),await _0x3199c1()?_0x26b47d()?_0x1e647b()?_0x55520b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x332ad8()?(_0x17bdf1[_0x55520b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55520b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43edb8=_0x510b9f(_0x55520b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17bdf1[_0x55520b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55520b([0x74,0x72,0x69,0x61,0x6c])&&(_0x43edb8=_0x510b9f(_0x55520b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57a609()):_0x55520b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55520b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55520b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x21e30e){return _0x55520b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e647b(){const _0x265fcc=[_0x55520b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55520b([0x74,0x72,0x69,0x61,0x6c])][_0x55520b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17bdf1[_0x55520b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d7bba/0x3e8:0xe10*_0x10048b;return _0x17bdf1[_0x55520b([0x65,0x78,0x70])]<_0x265fcc;}function _0x26b47d(){const _0x496f8b=_0x17bdf1[_0x55520b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x496f8b&&(!!_0x496f8b[_0x55520b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55520b([0x2a]))||!!_0x496f8b[_0x55520b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55520b([0x55,0x50,0x4c,0x43])));}function _0x332ad8(){const _0x418ef7=_0x52ea,_0x265ca8=_0x17bdf1[_0x55520b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x265ca8||0x0==_0x265ca8[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1bc0dd}=new URL(window[_0x55520b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x418ef7(0x137)]);if(_0x265ca8[_0x55520b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc0dd))return!0x0;const _0x142d21=_0x1bc0dd[_0x55520b([0x73,0x70,0x6c,0x69,0x74])](_0x55520b([0x2e]));return _0x265ca8[_0x55520b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52e6a2=>_0x52e6a2[_0x55520b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55520b([0x2a])))[_0x55520b([0x6d,0x61,0x70])](_0x3cd1cc=>_0x3cd1cc[_0x55520b([0x73,0x70,0x6c,0x69,0x74])](_0x55520b([0x2e])))[_0x55520b([0x73,0x6f,0x6d,0x65])](_0x33d069=>_0x142d21[_0x55520b([0x65,0x76,0x65,0x72,0x79])]((_0x11a7ad,_0x2cab2e)=>_0x33d069[_0x2cab2e]===_0x11a7ad||_0x33d069[_0x2cab2e]===_0x55520b([0x2a])));}function _0x57a609(){return _0x43edb8&&_0x4739c1?new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x165005,_0x2307ed)=>{_0x43edb8[_0x55520b([0x74,0x68,0x65,0x6e])](_0x165005,_0x2307ed),_0x4739c1[_0x55520b([0x74,0x68,0x65,0x6e])](_0x53c1c2=>{_0x53c1c2!=_0x55520b([0x56,0x61,0x6c,0x69,0x64])&&_0x165005(_0x53c1c2);},_0x2307ed);}):_0x43edb8||_0x4739c1||_0x55520b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b2c06(_0x41cc59,_0x5aab7e){return new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26543e=>{if(_0x48788d())return _0x26543e(_0x55520b([0x56,0x61,0x6c,0x69,0x64]));_0x4211e2(),_0x50c9b5[_0x55520b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55520b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x451c79=!0x1;const _0xb9a2d1=_0x4d6ca9();function _0x34eae2(_0xb62650){return!!_0xb62650&&(typeof _0xb62650===_0x55520b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb62650===_0x55520b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb62650[_0x55520b([0x74,0x68,0x65,0x6e])]===_0x55520b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb62650[_0x55520b([0x63,0x61,0x74,0x63,0x68])]===_0x55520b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3eac17(_0x10f5aa){_0x1ea776(_0x10f5aa)[_0x55520b([0x74,0x68,0x65,0x6e])](_0x33bd72=>{if(!_0x33bd72||_0x33bd72[_0x55520b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55520b([0x6f,0x6b]))return _0x55520b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a5655(_0x1bf38f(_0xb9a2d1+_0x5aab7e))!=_0x33bd72[_0x55520b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55520b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55520b([0x56,0x61,0x6c,0x69,0x64]);})[_0x55520b([0x74,0x68,0x65,0x6e])](_0x19abee=>(_0x3a03e(),_0x19abee),()=>{const _0x562197=_0x3f53e1();return null==_0x562197?(_0x3a03e(),_0x55520b([0x56,0x61,0x6c,0x69,0x64])):_0x55520b(_0x2d7bba-_0x562197>(0x439caa45^_0x4e852c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55520b([0x74,0x68,0x65,0x6e])](_0x26543e)[_0x55520b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26543e(_0x55520b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x333ddb=0x67a6c0c5^_0x4e852c;function _0x3a03e(){const _0x36ed55=_0x55520b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a5655(_0x1bf38f(_0x41cc59)),_0x45dc42=_0x34abf2(_0x4a5655(window[_0x55520b([0x4d,0x61,0x74,0x68])][_0x55520b([0x63,0x65,0x69,0x6c])](_0x2d7bba/_0x333ddb)));window[_0x55520b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55520b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36ed55,_0x45dc42);}function _0x3f53e1(){const _0x5718a5=_0x55520b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a5655(_0x1bf38f(_0x41cc59)),_0x26fa3c=window[_0x55520b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55520b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5718a5);return _0x26fa3c?window[_0x55520b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34abf2(_0x26fa3c),0x10)*_0x333ddb:null;}function _0x1ea776(_0x24c1fc){return new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4497ef,_0x205313)=>{_0x24c1fc[_0x55520b([0x74,0x68,0x65,0x6e])](_0x4497ef,_0x205313),window[_0x55520b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x205313,0x6791fa85^_0x4e852c);});}}_0x50c9b5[_0x55520b([0x6f,0x6e])](_0x55520b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcb8113,_0x4d8da1)=>{if(_0x4d8da1[0x0]!=_0x41cc59)return _0x26543e(_0x55520b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4d8da1[0x1]={..._0x4d8da1[0x1],[_0x55520b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb9a2d1};},{[_0x55520b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55520b([0x68,0x69,0x67,0x68])}),_0x50c9b5[_0x55520b([0x6f,0x6e])](_0x55520b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x11c165=>{_0x34eae2(_0x11c165[_0x55520b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x451c79=!0x0,_0x3eac17(_0x11c165[_0x55520b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55520b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55520b([0x6c,0x6f,0x77])}),_0x12b0b3[_0x55520b([0x74,0x68,0x65,0x6e])](()=>{_0x451c79||_0x26543e(_0x55520b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x48788d(){return _0x50c9b5[_0x55520b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55520b([0x76,0x69,0x65,0x77])][_0x55520b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55520b([0x61,0x75,0x74,0x6f]);}function _0x4211e2(){_0x50c9b5[_0x55520b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55520b([0x76,0x69,0x65,0x77])][_0x55520b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55520b([0x61,0x75,0x74,0x6f]);}}function _0x510b9f(_0x11c0fd){const _0x565710=[new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc5e00a=>setTimeout(_0xc5e00a,0x67991089^_0x4e852c)),_0x12b0b3[_0x55520b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46f07a=>{let _0x13aa04=0x0;_0x50c9b5[_0x55520b([0x6d,0x6f,0x64,0x65,0x6c])][_0x55520b([0x6f,0x6e])](_0x55520b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11e726,_0x5cd034)=>{_0x5cd034[0x0][_0x55520b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13aa04++,_0x13aa04==(0x67902fbd^_0x4e852c)&&(_0x46f07a(),_0x11e726[_0x55520b([0x6f,0x66,0x66])]());});}))];return window[_0x55520b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55520b([0x72,0x61,0x63,0x65])](_0x565710)[_0x55520b([0x74,0x68,0x65,0x6e])](()=>_0x11c0fd);}async function _0x2425ed(){await _0x12b0b3,_0x50c9b5[_0x55520b([0x6d,0x6f,0x64,0x65,0x6c])][_0x55520b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10ebea,_0x50c9b5[_0x55520b([0x6d,0x6f,0x64,0x65,0x6c])][_0x55520b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10ebea,_0x50c9b5[_0x55520b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55520b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ff5d2(_0x29896c){const _0x55f886=_0x348e4c();_0x50c9b5[_0x55f886]=_0x55520b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29896c,_0x29896c!=_0x55520b([0x56,0x61,0x6c,0x69,0x64])&&_0x2425ed();}function _0x348e4c(){const _0x44ff3e=window[_0x55520b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55520b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55520b([0x6e,0x6f,0x77])]())[_0x55520b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55520b([0x2e]),'');let _0x3ff545=_0x55520b([0x44]);for(let _0x2666af=0x0;_0x2666af<_0x44ff3e[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2666af+=0x2){let _0x5c9511=window[_0x55520b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44ff3e[_0x55520b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2666af,_0x2666af+0x2));_0x5c9511>=_0x48d193[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c9511-=_0x48d193[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ff545+=_0x48d193[_0x5c9511];}return _0x3ff545;}function _0x329854(){const _0x5cd3f5=_0x40b495[_0x55520b([0x73,0x70,0x6c,0x69,0x74])](_0x55520b([0x2e]));if(0x3!=_0x5cd3f5[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb228c2(_0x5cd3f5[0x1]);function _0xb228c2(_0x5a5b46){const _0x34397a=_0x1688bd(_0x5a5b46);return _0x34397a&&_0x2b1184()?_0x34397a:null;function _0x2b1184(){const _0x10a3a9=_0x34397a[_0x55520b([0x6a,0x74,0x69])],_0x173f55=window[_0x55520b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10a3a9[_0x55520b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10a3a9[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36cfc6={..._0x34397a,[_0x55520b([0x6a,0x74,0x69])]:_0x10a3a9[_0x55520b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10a3a9[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36cfc6[_0x55520b([0x76,0x63])],_0x1bf38f(_0x36cfc6)==_0x173f55;}}}async function _0x3199c1(){let _0x52f62a=!0x0;try{const _0x1ecf96=_0x40b495[_0x55520b([0x73,0x70,0x6c,0x69,0x74])](_0x55520b([0x2e])),[_0x3ea9a9,_0x49edb1,_0x4ba2d1]=_0x1ecf96;return _0x3668da(_0x3ea9a9),await _0x2555f6(_0x3ea9a9,_0x49edb1,_0x4ba2d1),_0x52f62a;}catch(_0x169639){return!0x1;}function _0x3668da(_0x305e2b){const _0x42458e=_0x1688bd(_0x305e2b);_0x42458e&&_0x42458e[_0x55520b([0x61,0x6c,0x67])]==_0x55520b([0x45,0x53,0x32,0x35,0x36])||(_0x52f62a=!0x1);}async function _0x2555f6(_0x559f67,_0x51fbdf,_0x3e2792){const _0x1fd8a4=window[_0x55520b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55520b([0x66,0x72,0x6f,0x6d])](_0x4cbc44(_0x3e2792),_0x2febb1=>_0x2febb1[_0x55520b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x525bcb=new window[(_0x55520b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55520b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x559f67+_0x55520b([0x2e])+_0x51fbdf),_0x461c59=window[_0x55520b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55520b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x461c59)return;const _0x598a1f=await _0x461c59[_0x55520b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55520b([0x6a,0x77,0x6b]),_0x3496f8,{[_0x55520b([0x6e,0x61,0x6d,0x65])]:_0x55520b([0x45,0x43,0x44,0x53,0x41]),[_0x55520b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55520b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55520b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x461c59[_0x55520b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55520b([0x6e,0x61,0x6d,0x65])]:_0x55520b([0x45,0x43,0x44,0x53,0x41]),[_0x55520b([0x68,0x61,0x73,0x68])]:{[_0x55520b([0x6e,0x61,0x6d,0x65])]:_0x55520b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x598a1f,_0x1fd8a4,_0x525bcb)||(_0x52f62a=!0x1);}}function _0x1688bd(_0x4390e4){return _0x4390e4[_0x55520b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55520b([0x65,0x79]))?JSON[_0x55520b([0x70,0x61,0x72,0x73,0x65])](_0x4cbc44(_0x4390e4)):null;}function _0x4cbc44(_0x170c95){return window[_0x55520b([0x61,0x74,0x6f,0x62])](_0x170c95[_0x55520b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55520b([0x2b]))[_0x55520b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55520b([0x2f])));}function _0x1bf38f(_0x303853){let _0x4c4d2a=0x1505;function _0x4538f8(_0x176a80){for(let _0x12a141=0x0;_0x12a141<_0x176a80[_0x55520b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12a141++){const _0x2ab056=_0x176a80[_0x55520b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12a141);_0x4c4d2a=(_0x4c4d2a<<0x5)+_0x4c4d2a+_0x2ab056,_0x4c4d2a&=_0x4c4d2a;}}function _0x1b716e(_0x158dd6){Array[_0x55520b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x158dd6)?_0x158dd6[_0x55520b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b716e):_0x158dd6&&typeof _0x158dd6==_0x55520b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55520b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x158dd6)[_0x55520b([0x73,0x6f,0x72,0x74])]()[_0x55520b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1473ba,_0x236911])=>{_0x4538f8(_0x1473ba),_0x1b716e(_0x236911);}):_0x4538f8(window[_0x55520b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x158dd6));}return _0x1b716e(_0x303853),_0x4c4d2a>>>0x0;}function _0x4a5655(_0x5a4960){return _0x5a4960[_0x55520b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55520b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55520b([0x30]));}function _0x34abf2(_0xf06958){return _0xf06958[_0x55520b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55520b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55520b([0x6a,0x6f,0x69,0x6e])]('');}function _0x10ebea(){}function _0x55520b(_0x44b6dc){const _0x2916f8=_0x52ea;return _0x44b6dc[_0x2916f8(0x108)](_0x295bb8=>String[_0x2916f8(0x116)](_0x295bb8))[_0x2916f8(0x129)]('');}_0x3ff5d2(await _0x320d5a());}(this);}[_0x5daa58(0x128)](){const _0x582c63=_0x5daa58,_0x4af341=this[_0x582c63(0x11f)][_0x582c63(0x107)][_0x582c63(0x10c)];_0x4af341[_0x582c63(0xfa)](_0x582c63(0x113))&&_0x4af341[_0x582c63(0x132)](_0x582c63(0x113),{'allowAttributes':[_0x582c63(0x104)]}),_0x4af341[_0x582c63(0xfa)](_0x582c63(0x110))&&_0x4af341[_0x582c63(0x132)](_0x582c63(0x110),{'allowAttributes':[_0x582c63(0x104)]});}[_0x5daa58(0x134)](){const _0x53d1ed=_0x5daa58,_0x1cdaee=this[_0x53d1ed(0x11f)];_0x1cdaee[_0x53d1ed(0x12d)][_0x53d1ed(0x126)](_0x53d1ed(0xe6))[_0x53d1ed(0x118)]({'model':_0x53d1ed(0x104),'view':_0x53d1ed(0xff)}),_0x1cdaee[_0x53d1ed(0x12d)][_0x53d1ed(0x126)](_0x53d1ed(0x11e))[_0x53d1ed(0x114)]({'model':{'key':_0x53d1ed(0x104),'value':_0x2517fd=>_0x2517fd[_0x53d1ed(0x11c)](_0x53d1ed(0xff))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x21efa4=_0x1cdaee[_0x53d1ed(0x11a)][_0x53d1ed(0x123)](_0x53d1ed(0x138));_0x21efa4&&this[_0x53d1ed(0xf2)](_0x21efa4,_0x53d1ed(0xeb),(_0x5a386d,[_0x5aaa81,_0x46dc5b])=>{const _0x205684=_0x53d1ed;_0x5aaa81[_0x205684(0x131)](_0x205684(0x104),_0x46dc5b);});}[_0x5daa58(0x133)](){const _0x21f7b7=_0x5daa58,_0x1f22a4=this[_0x21f7b7(0x11f)][_0x21f7b7(0x12f)][_0x21f7b7(0x123)](_0x21f7b7(0x122))||{},_0x54e582=this[_0x21f7b7(0x11f)][_0x21f7b7(0x12f)][_0x21f7b7(0x123)](_0x21f7b7(0x127))||'';this[_0x21f7b7(0xf4)]=_0x44ed3a(_0x1be687[_0x21f7b7(0x105)],_0x21f7b7(0xec),{..._0x1f22a4,'pubkey':_0x54e582,'ctx-name':_0x21f7b7(0x139),'sourceList':'','imgOnly':_0x21f7b7(0x10b),'removeCopyright':_0x21f7b7(0x10b),'localeName':this[_0x21f7b7(0x11f)][_0x21f7b7(0xe7)][_0x21f7b7(0x10a)],'externalSourcesEmbedCss':_0x21f7b7(0xef)}),this[_0x21f7b7(0xf4)][_0x21f7b7(0x11d)]=_0x10a163=>{const _0x389f55=_0x21f7b7;if(_0x389f55(0x135)==_0x10a163)return _0x389f55(0xf1);},_0x1be687[_0x21f7b7(0x105)][_0x21f7b7(0x13a)][_0x21f7b7(0xea)](this[_0x21f7b7(0xf4)]);}[_0x5daa58(0x102)](){const _0x2ad5d7=_0x5daa58;this[_0x2ad5d7(0xf0)]=_0x44ed3a(_0x1be687[_0x2ad5d7(0x105)],_0x2ad5d7(0xfb),{'ctx-name':_0x2ad5d7(0x139)}),_0x1be687[_0x2ad5d7(0x105)][_0x2ad5d7(0x13a)][_0x2ad5d7(0xea)](this[_0x2ad5d7(0xf0)]);}[_0x5daa58(0xf6)](){const _0x2b0a4e=_0x5daa58,_0x5a4e4f=this[_0x2b0a4e(0x11f)][_0x2b0a4e(0x11a)][_0x2b0a4e(0x123)](_0x2b0a4e(0x10e));_0x5a4e4f&&this[_0x2b0a4e(0xf2)](_0x5a4e4f,_0x2b0a4e(0x117),()=>{const _0x1f5f4e=_0x2b0a4e,_0x24970e=this[_0x1f5f4e(0x11f)][_0x1f5f4e(0x107)][_0x1f5f4e(0x105)][_0x1f5f4e(0x10d)][_0x1f5f4e(0xf3)]();_0x24970e&&_0x24970e[_0x1f5f4e(0x11c)](_0x1f5f4e(0x104))&&this[_0x1f5f4e(0x11f)][_0x1f5f4e(0xe9)][_0x1f5f4e(0xed)][_0x1f5f4e(0xfe)](_0x1f5f4e(0x106),()=>{const _0x2c5bac=_0x1f5f4e;_0x56629e(this[_0x2c5bac(0x11f)],_0x24970e);});});const _0x59eb79=this[_0x2b0a4e(0x11f)][_0x2b0a4e(0x11a)][_0x2b0a4e(0x123)](_0x2b0a4e(0x115));_0x59eb79&&this[_0x2b0a4e(0xf2)](_0x59eb79,_0x2b0a4e(0x117),()=>{const _0x13f14c=_0x2b0a4e,_0x107471=this[_0x13f14c(0x11f)][_0x13f14c(0x107)][_0x13f14c(0x105)][_0x13f14c(0x10d)][_0x13f14c(0xf3)]();_0x107471&&_0x107471[_0x13f14c(0x11c)](_0x13f14c(0x104))&&this[_0x13f14c(0x11f)][_0x13f14c(0xe9)][_0x13f14c(0xed)][_0x13f14c(0xfe)](_0x13f14c(0x106),()=>{const _0x95b94c=_0x13f14c;_0x56629e(this[_0x95b94c(0x11f)],_0x107471);});});}}
|
|
23
|
+
const _0x5002d4=_0x555a;(function(_0x375838,_0x1c269b){const _0x113fb5=_0x555a,_0x5d42e1=_0x375838();while(!![]){try{const _0x27aca0=-parseInt(_0x113fb5(0xc5))/0x1*(parseInt(_0x113fb5(0xf6))/0x2)+parseInt(_0x113fb5(0xd7))/0x3+parseInt(_0x113fb5(0xb6))/0x4*(parseInt(_0x113fb5(0xdb))/0x5)+parseInt(_0x113fb5(0xc1))/0x6*(-parseInt(_0x113fb5(0xd4))/0x7)+parseInt(_0x113fb5(0x105))/0x8+parseInt(_0x113fb5(0xec))/0x9*(parseInt(_0x113fb5(0xf8))/0xa)+-parseInt(_0x113fb5(0xb5))/0xb*(-parseInt(_0x113fb5(0xdd))/0xc);if(_0x27aca0===_0x1c269b)break;else _0x5d42e1['push'](_0x5d42e1['shift']());}catch(_0x755049){_0x5d42e1['push'](_0x5d42e1['shift']());}}}(_0x3779,0xb120b));import{Plugin as _0x451509}from'ckeditor5/src/core.js';function _0x3779(){const _0x39060b=['href','upcast','uploadcare.pubkey','10BAldRp','replaceImageSource','324YfAWov','afterInit','data-uc-image-id','closeMax','requires','_configElement','insertImage','_initConfig','input[uploadcare-file-input]','extend','body','removeAttribute','uc-config','get','true','393615CkRpTp','ctxElement','execute','querySelector','PictureEditing','getAttribute','fromCharCode','editor','editing','UploadcareEditing','1013902ltEaqK','join','50wVRDls','_initConversion','_ctxElement','downcast','cleanupImage','configElement','uploadcareImageReplace','destroy','listenTo','schema','model','selection','#uc-icon-arrow-down','777024OZwdrO','isRegistered','uc-upload-ctx-provider','_initSchema','uploadcare.uploader','view','316239gsKmRj','2791636PqZvkz','appendChild','map','document','conversion','elementToAttribute','add','imageInline','locale','uploadcareImageId','isOfficialPlugin','6GorgbF','once','getSelectedElement','\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','1xXEeLX','init','config','for','render','commands','remove','imageBlock','contentLanguage','iconHrefResolver','pluginName','uploadcare','attributeToAttribute','_initCtx','isPremiumPlugin','9390227gIJrho','_initImageProcessingIndicator','uploader','258249YhoEQz'];_0x3779=function(){return _0x39060b;};return _0x3779();}function _0x555a(_0x314601,_0x105823){const _0x3779dd=_0x3779();return _0x555a=function(_0x555a3d,_0x4458fc){_0x555a3d=_0x555a3d-0xb0;let _0x2e837e=_0x3779dd[_0x555a3d];return _0x2e837e;},_0x555a(_0x314601,_0x105823);}import{Dialog as _0x34d271}from'ckeditor5/src/ui.js';import{createElement as _0x4fd0bc,global as _0x25338,uid as _0x51454f}from'ckeditor5/src/utils.js';import _0x3a1643 from'./uploadcarecommand.js';import _0xc97aa7 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x30f00a}from'./utils/editingutils.js';export default class i extends _0x451509{constructor(){const _0x51fbd3=_0x555a;super(...arguments),this[_0x51fbd3(0xe2)]=null,this[_0x51fbd3(0xfa)]=null;}static get[_0x5002d4(0xcf)](){const _0x9c3c48=_0x5002d4;return _0x9c3c48(0xf5);}static get[_0x5002d4(0xe1)](){const _0x2e37b7=_0x5002d4;return[_0x2e37b7(0xf0),_0xc97aa7,_0x34d271];}static get[_0x5002d4(0xc0)](){return!0x0;}static get[_0x5002d4(0xd3)](){return!0x0;}get[_0x5002d4(0xfd)](){const _0x2cdb6c=_0x5002d4;return this[_0x2cdb6c(0xe2)];}get[_0x5002d4(0xed)](){const _0x1f7a9f=_0x5002d4;return this[_0x1f7a9f(0xfa)];}[_0x5002d4(0xc6)](){const _0xbd284e=_0x5002d4,_0x412173=this[_0xbd284e(0xf3)];_0x412173[_0xbd284e(0xca)][_0xbd284e(0xbc)](_0xbd284e(0xd0),new _0x3a1643(_0x412173));}[_0x5002d4(0xde)](){const _0x92d690=_0x5002d4;this[_0x92d690(0xb2)](),this[_0x92d690(0xf9)](),this[_0x92d690(0xe4)](),this[_0x92d690(0xd2)](),this[_0x92d690(0xd5)](),this[_0x92d690(0x100)](this[_0x92d690(0xf3)],_0x92d690(0xff),()=>{const _0x36aacc=_0x92d690;this[_0x36aacc(0xe2)]&&(this[_0x36aacc(0xe2)][_0x36aacc(0xcb)](),this[_0x36aacc(0xe2)]=null),this[_0x36aacc(0xfa)]&&(this[_0x36aacc(0xfa)][_0x36aacc(0xcb)](),this[_0x36aacc(0xfa)]=null);const _0x3c1951=_0x25338[_0x36aacc(0xb9)][_0x36aacc(0xef)](_0x36aacc(0xe5));_0x3c1951&&_0x3c1951[_0x36aacc(0xcb)]();}),async function(_0x4e1f0b){const _0x265f52=_0x3f0182([0x6c,0x6b,0x68,0x6f,0x69,0x75,0x39,0x52,0x6a,0x74,0x33,0x58,0x37,0x55,0x51,0x44,0x31,0x66,0x7a,0x61,0x72,0x30,0x4b,0x4d,0x70,0x34,0x64,0x71,0x42,0x4a,0x47,0x36,0x4f,0x77,0x76,0x53,0x4c,0x67,0x62,0x5a,0x49,0x50,0x65,0x43,0x38,0x41,0x54,0x73,0x35,0x59,0x4e,0x79,0x57,0x6d,0x63,0x6e,0x32,0x45,0x48,0x56,0x46,0x78]),_0x3ae254=0x346b89ae,_0x256f6d=0x346ce8be^_0x3ae254,_0x384546=window[_0x3f0182([0x44,0x61,0x74,0x65])][_0x3f0182([0x6e,0x6f,0x77])](),_0x55e023=_0x4e1f0b[_0x3f0182([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ff38e=new window[(_0x3f0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d91de=>{_0x55e023[_0x3f0182([0x6f,0x6e,0x63,0x65])](_0x3f0182([0x72,0x65,0x61,0x64,0x79]),_0x3d91de);}),_0x37ac3d={[_0x3f0182([0x6b,0x74,0x79])]:_0x3f0182([0x45,0x43]),[_0x3f0182([0x75,0x73,0x65])]:_0x3f0182([0x73,0x69,0x67]),[_0x3f0182([0x63,0x72,0x76])]:_0x3f0182([0x50,0x2d,0x32,0x35,0x36]),[_0x3f0182([0x78])]:_0x3f0182([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]),[_0x3f0182([0x79])]:_0x3f0182([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]),[_0x3f0182([0x61,0x6c,0x67])]:_0x3f0182([0x45,0x53,0x32,0x35,0x36])},_0x1a5a09=_0x55e023[_0x3f0182([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f0182([0x67,0x65,0x74])](_0x3f0182([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27bed5(){let _0x161ce4,_0x34268b=null,_0x59e76a=null;try{if(_0x1a5a09==_0x3f0182([0x47,0x50,0x4c]))return _0x3f0182([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x161ce4=_0x104cfb(),!_0x161ce4)return _0x3f0182([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x161ce4[_0x3f0182([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x59e76a=_0x572279(_0x161ce4[_0x3f0182([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x161ce4[_0x3f0182([0x6a,0x74,0x69])])),await _0xf5891()?_0x4b6138()?_0x184a02()?_0x3f0182([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53a78c()?(_0x161ce4[_0x3f0182([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f0182([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34268b=_0x2b2de8(_0x3f0182([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x161ce4[_0x3f0182([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f0182([0x74,0x72,0x69,0x61,0x6c])&&(_0x34268b=_0x2b2de8(_0x3f0182([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x386233()):_0x3f0182([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f0182([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f0182([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x15feb5){return _0x3f0182([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x184a02(){const _0x3a53e9=[_0x3f0182([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f0182([0x74,0x72,0x69,0x61,0x6c])][_0x3f0182([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161ce4[_0x3f0182([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x384546/0x3e8:0xe10*_0x256f6d;return _0x161ce4[_0x3f0182([0x65,0x78,0x70])]<_0x3a53e9;}function _0x4b6138(){const _0x19cc37=_0x161ce4[_0x3f0182([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x19cc37&&(!!_0x19cc37[_0x3f0182([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f0182([0x2a]))||!!_0x19cc37[_0x3f0182([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f0182([0x55,0x50,0x4c,0x43])));}function _0x53a78c(){const _0x4af4da=_0x555a,_0x539942=_0x161ce4[_0x3f0182([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x539942||0x0==_0x539942[_0x3f0182([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x343009}=new URL(window[_0x3f0182([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4af4da(0xd8)]);if(_0x539942[_0x3f0182([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343009))return!0x0;const _0x4eaa11=_0x343009[_0x3f0182([0x73,0x70,0x6c,0x69,0x74])](_0x3f0182([0x2e]));return _0x539942[_0x3f0182([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c0027=>_0x5c0027[_0x3f0182([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f0182([0x2a])))[_0x3f0182([0x6d,0x61,0x70])](_0x2f9f49=>_0x2f9f49[_0x3f0182([0x73,0x70,0x6c,0x69,0x74])](_0x3f0182([0x2e])))[_0x3f0182([0x73,0x6f,0x6d,0x65])](_0x3e2d3b=>_0x4eaa11[_0x3f0182([0x65,0x76,0x65,0x72,0x79])]((_0x5a11d0,_0x1f8958)=>_0x3e2d3b[_0x1f8958]===_0x5a11d0||_0x3e2d3b[_0x1f8958]===_0x3f0182([0x2a])));}function _0x386233(){return _0x34268b&&_0x59e76a?new window[(_0x3f0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32b3a2,_0x548397)=>{_0x34268b[_0x3f0182([0x74,0x68,0x65,0x6e])](_0x32b3a2,_0x548397),_0x59e76a[_0x3f0182([0x74,0x68,0x65,0x6e])](_0x5a41a9=>{_0x5a41a9!=_0x3f0182([0x56,0x61,0x6c,0x69,0x64])&&_0x32b3a2(_0x5a41a9);},_0x548397);}):_0x34268b||_0x59e76a||_0x3f0182([0x56,0x61,0x6c,0x69,0x64]);}}function _0x572279(_0x13b0d5,_0x152156){return new window[(_0x3f0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cd4c7=>{if(_0x54d914())return _0x5cd4c7(_0x3f0182([0x56,0x61,0x6c,0x69,0x64]));_0x2c4145(),_0x55e023[_0x3f0182([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f0182([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e45cb=!0x1;const _0x163386=_0x51454f();function _0x451bed(_0x533eae){return!!_0x533eae&&(typeof _0x533eae===_0x3f0182([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x533eae===_0x3f0182([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x533eae[_0x3f0182([0x74,0x68,0x65,0x6e])]===_0x3f0182([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x533eae[_0x3f0182([0x63,0x61,0x74,0x63,0x68])]===_0x3f0182([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dd93b(_0x51fea1){_0x15ecb0(_0x51fea1)[_0x3f0182([0x74,0x68,0x65,0x6e])](_0x57d7b9=>{if(!_0x57d7b9||_0x57d7b9[_0x3f0182([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f0182([0x6f,0x6b]))return _0x3f0182([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d9bc5(_0x3b587e(_0x163386+_0x152156))!=_0x57d7b9[_0x3f0182([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f0182([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f0182([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f0182([0x74,0x68,0x65,0x6e])](_0x27b5b6=>(_0x1f8903(),_0x27b5b6),()=>{const _0x41a0e1=_0x5ebc34();return null==_0x41a0e1?(_0x1f8903(),_0x3f0182([0x56,0x61,0x6c,0x69,0x64])):_0x3f0182(_0x384546-_0x41a0e1>(0x10670dae^_0x3ae254)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f0182([0x74,0x68,0x65,0x6e])](_0x5cd4c7)[_0x3f0182([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5cd4c7(_0x3f0182([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ddba8=0x345d672e^_0x3ae254;function _0x1f8903(){const _0x403eed=_0x3f0182([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d9bc5(_0x3b587e(_0x13b0d5)),_0x177375=_0x49adc3(_0x3d9bc5(window[_0x3f0182([0x4d,0x61,0x74,0x68])][_0x3f0182([0x63,0x65,0x69,0x6c])](_0x384546/_0x2ddba8)));window[_0x3f0182([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f0182([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x403eed,_0x177375);}function _0x5ebc34(){const _0x199e51=_0x3f0182([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d9bc5(_0x3b587e(_0x13b0d5)),_0x293f06=window[_0x3f0182([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f0182([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x199e51);return _0x293f06?window[_0x3f0182([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49adc3(_0x293f06),0x10)*_0x2ddba8:null;}function _0x15ecb0(_0x397b7b){return new window[(_0x3f0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ea387,_0x14dabf)=>{_0x397b7b[_0x3f0182([0x74,0x68,0x65,0x6e])](_0x2ea387,_0x14dabf),window[_0x3f0182([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14dabf,0x346a5d6e^_0x3ae254);});}}_0x55e023[_0x3f0182([0x6f,0x6e])](_0x3f0182([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51f033,_0x377920)=>{if(_0x377920[0x0]!=_0x13b0d5)return _0x5cd4c7(_0x3f0182([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x377920[0x1]={..._0x377920[0x1],[_0x3f0182([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x163386};},{[_0x3f0182([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f0182([0x68,0x69,0x67,0x68])}),_0x55e023[_0x3f0182([0x6f,0x6e])](_0x3f0182([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x59eddf=>{_0x451bed(_0x59eddf[_0x3f0182([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e45cb=!0x0,_0x5dd93b(_0x59eddf[_0x3f0182([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f0182([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f0182([0x6c,0x6f,0x77])}),_0x2ff38e[_0x3f0182([0x74,0x68,0x65,0x6e])](()=>{_0x5e45cb||_0x5cd4c7(_0x3f0182([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54d914(){return _0x55e023[_0x3f0182([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f0182([0x76,0x69,0x65,0x77])][_0x3f0182([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f0182([0x61,0x75,0x74,0x6f]);}function _0x2c4145(){_0x55e023[_0x3f0182([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f0182([0x76,0x69,0x65,0x77])][_0x3f0182([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f0182([0x61,0x75,0x74,0x6f]);}}function _0x2b2de8(_0x9d0769){const _0x265a88=[new window[(_0x3f0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x284b9d=>setTimeout(_0x284b9d,0x3462b762^_0x3ae254)),_0x2ff38e[_0x3f0182([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x585148=>{let _0x5a5c95=0x0;_0x55e023[_0x3f0182([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f0182([0x6f,0x6e])](_0x3f0182([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xdf4232,_0xc1014f)=>{_0xc1014f[0x0][_0x3f0182([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a5c95++,_0x5a5c95==(0x346b8856^_0x3ae254)&&(_0x585148(),_0xdf4232[_0x3f0182([0x6f,0x66,0x66])]());});}))];return window[_0x3f0182([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f0182([0x72,0x61,0x63,0x65])](_0x265a88)[_0x3f0182([0x74,0x68,0x65,0x6e])](()=>_0x9d0769);}async function _0x36e834(){await _0x2ff38e,_0x55e023[_0x3f0182([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f0182([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a819c,_0x55e023[_0x3f0182([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f0182([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a819c,_0x55e023[_0x3f0182([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f0182([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4fe6e1(_0x386be2){const _0x43f2c8=_0x11cd83();_0x55e023[_0x43f2c8]=_0x3f0182([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x386be2,_0x386be2!=_0x3f0182([0x56,0x61,0x6c,0x69,0x64])&&_0x36e834();}function _0x11cd83(){const _0x41ae19=window[_0x3f0182([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f0182([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f0182([0x6e,0x6f,0x77])]())[_0x3f0182([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f0182([0x2e]),'');let _0x32719f=_0x3f0182([0x6c]);for(let _0x172c18=0x0;_0x172c18<_0x41ae19[_0x3f0182([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x172c18+=0x2){let _0x1cf6ea=window[_0x3f0182([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41ae19[_0x3f0182([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x172c18,_0x172c18+0x2));_0x1cf6ea>=_0x265f52[_0x3f0182([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1cf6ea-=_0x265f52[_0x3f0182([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32719f+=_0x265f52[_0x1cf6ea];}return _0x32719f;}function _0x104cfb(){const _0x3c02c4=_0x1a5a09[_0x3f0182([0x73,0x70,0x6c,0x69,0x74])](_0x3f0182([0x2e]));if(0x3!=_0x3c02c4[_0x3f0182([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1aa423(_0x3c02c4[0x1]);function _0x1aa423(_0x1b1adc){const _0x1ef5be=_0x47233f(_0x1b1adc);return _0x1ef5be&&_0x477621()?_0x1ef5be:null;function _0x477621(){const _0x27bd48=_0x1ef5be[_0x3f0182([0x6a,0x74,0x69])],_0x10cca6=window[_0x3f0182([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27bd48[_0x3f0182([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27bd48[_0x3f0182([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5360bd={..._0x1ef5be,[_0x3f0182([0x6a,0x74,0x69])]:_0x27bd48[_0x3f0182([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27bd48[_0x3f0182([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5360bd[_0x3f0182([0x76,0x63])],_0x3b587e(_0x5360bd)==_0x10cca6;}}}async function _0xf5891(){let _0xab7f5=!0x0;try{const _0x376a69=_0x1a5a09[_0x3f0182([0x73,0x70,0x6c,0x69,0x74])](_0x3f0182([0x2e])),[_0x2bf2a0,_0x148369,_0x272ea0]=_0x376a69;return _0x35e1af(_0x2bf2a0),await _0x4276c6(_0x2bf2a0,_0x148369,_0x272ea0),_0xab7f5;}catch(_0x3a89d0){return!0x1;}function _0x35e1af(_0x2b0f90){const _0x4a6097=_0x47233f(_0x2b0f90);_0x4a6097&&_0x4a6097[_0x3f0182([0x61,0x6c,0x67])]==_0x3f0182([0x45,0x53,0x32,0x35,0x36])||(_0xab7f5=!0x1);}async function _0x4276c6(_0x51e25b,_0x59520e,_0x59da98){const _0x57f057=window[_0x3f0182([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f0182([0x66,0x72,0x6f,0x6d])](_0x3bc9a8(_0x59da98),_0x2184d3=>_0x2184d3[_0x3f0182([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x479ec4=new window[(_0x3f0182([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f0182([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51e25b+_0x3f0182([0x2e])+_0x59520e),_0xa3d812=window[_0x3f0182([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f0182([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa3d812)return;const _0x17e3ff=await _0xa3d812[_0x3f0182([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f0182([0x6a,0x77,0x6b]),_0x37ac3d,{[_0x3f0182([0x6e,0x61,0x6d,0x65])]:_0x3f0182([0x45,0x43,0x44,0x53,0x41]),[_0x3f0182([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f0182([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f0182([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa3d812[_0x3f0182([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f0182([0x6e,0x61,0x6d,0x65])]:_0x3f0182([0x45,0x43,0x44,0x53,0x41]),[_0x3f0182([0x68,0x61,0x73,0x68])]:{[_0x3f0182([0x6e,0x61,0x6d,0x65])]:_0x3f0182([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x17e3ff,_0x57f057,_0x479ec4)||(_0xab7f5=!0x1);}}function _0x47233f(_0x330ce5){return _0x330ce5[_0x3f0182([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f0182([0x65,0x79]))?JSON[_0x3f0182([0x70,0x61,0x72,0x73,0x65])](_0x3bc9a8(_0x330ce5)):null;}function _0x3bc9a8(_0x570b53){return window[_0x3f0182([0x61,0x74,0x6f,0x62])](_0x570b53[_0x3f0182([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f0182([0x2b]))[_0x3f0182([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f0182([0x2f])));}function _0x3b587e(_0x3c28c3){let _0x5573f4=0x1505;function _0x520c1e(_0x4ebfba){for(let _0x354359=0x0;_0x354359<_0x4ebfba[_0x3f0182([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x354359++){const _0x9090bc=_0x4ebfba[_0x3f0182([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x354359);_0x5573f4=(_0x5573f4<<0x5)+_0x5573f4+_0x9090bc,_0x5573f4&=_0x5573f4;}}function _0x58ccaa(_0x196f6a){Array[_0x3f0182([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x196f6a)?_0x196f6a[_0x3f0182([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58ccaa):_0x196f6a&&typeof _0x196f6a==_0x3f0182([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f0182([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x196f6a)[_0x3f0182([0x73,0x6f,0x72,0x74])]()[_0x3f0182([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39aada,_0x258ce5])=>{_0x520c1e(_0x39aada),_0x58ccaa(_0x258ce5);}):_0x520c1e(window[_0x3f0182([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x196f6a));}return _0x58ccaa(_0x3c28c3),_0x5573f4>>>0x0;}function _0x3d9bc5(_0x27ef71){return _0x27ef71[_0x3f0182([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f0182([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f0182([0x30]));}function _0x49adc3(_0x4ddf62){return _0x4ddf62[_0x3f0182([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f0182([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f0182([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a819c(){}function _0x3f0182(_0x2c6020){const _0x210b11=_0x555a;return _0x2c6020[_0x210b11(0xb8)](_0x1bd4e5=>String[_0x210b11(0xf2)](_0x1bd4e5))[_0x210b11(0xf7)]('');}_0x4fe6e1(await _0x27bed5());}(this);}[_0x5002d4(0xb2)](){const _0x470055=_0x5002d4,_0x3d9d24=this[_0x470055(0xf3)][_0x470055(0x102)][_0x470055(0x101)];_0x3d9d24[_0x470055(0xb0)](_0x470055(0xcc))&&_0x3d9d24[_0x470055(0xe6)](_0x470055(0xcc),{'allowAttributes':[_0x470055(0xbf)]}),_0x3d9d24[_0x470055(0xb0)](_0x470055(0xbd))&&_0x3d9d24[_0x470055(0xe6)](_0x470055(0xbd),{'allowAttributes':[_0x470055(0xbf)]});}[_0x5002d4(0xf9)](){const _0x27ae5e=_0x5002d4,_0x225307=this[_0x27ae5e(0xf3)];_0x225307[_0x27ae5e(0xba)][_0x27ae5e(0xc8)](_0x27ae5e(0xfb))[_0x27ae5e(0xd1)]({'model':_0x27ae5e(0xbf),'view':_0x27ae5e(0xdf)}),_0x225307[_0x27ae5e(0xba)][_0x27ae5e(0xc8)](_0x27ae5e(0xd9))[_0x27ae5e(0xbb)]({'model':{'key':_0x27ae5e(0xbf),'value':_0x4151ae=>_0x4151ae[_0x27ae5e(0xf1)](_0x27ae5e(0xdf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x25384e=_0x225307[_0x27ae5e(0xca)][_0x27ae5e(0xea)](_0x27ae5e(0xdc));_0x25384e&&this[_0x27ae5e(0x100)](_0x25384e,_0x27ae5e(0xfc),(_0x258da9,[_0x12ac77,_0x518a1c])=>{const _0x32f6c8=_0x27ae5e;_0x12ac77[_0x32f6c8(0xe8)](_0x32f6c8(0xbf),_0x518a1c);});}[_0x5002d4(0xe4)](){const _0x78ff31=_0x5002d4,_0x250612=this[_0x78ff31(0xf3)][_0x78ff31(0xc7)][_0x78ff31(0xea)](_0x78ff31(0xb3))||{},_0x2200cc=this[_0x78ff31(0xf3)][_0x78ff31(0xc7)][_0x78ff31(0xea)](_0x78ff31(0xda))||'';this[_0x78ff31(0xe2)]=_0x4fd0bc(_0x25338[_0x78ff31(0xb9)],_0x78ff31(0xe9),{..._0x250612,'pubkey':_0x2200cc,'ctx-name':_0x78ff31(0xd6),'sourceList':'','imgOnly':_0x78ff31(0xeb),'removeCopyright':_0x78ff31(0xeb),'localeName':this[_0x78ff31(0xf3)][_0x78ff31(0xbe)][_0x78ff31(0xcd)],'externalSourcesEmbedCss':_0x78ff31(0xc4)}),this[_0x78ff31(0xe2)][_0x78ff31(0xce)]=_0x308dca=>{const _0x795c21=_0x78ff31;if(_0x795c21(0xe0)==_0x308dca)return _0x795c21(0x104);},_0x25338[_0x78ff31(0xb9)][_0x78ff31(0xe7)][_0x78ff31(0xb7)](this[_0x78ff31(0xe2)]);}[_0x5002d4(0xd2)](){const _0x39f862=_0x5002d4;this[_0x39f862(0xfa)]=_0x4fd0bc(_0x25338[_0x39f862(0xb9)],_0x39f862(0xb1),{'ctx-name':_0x39f862(0xd6)}),_0x25338[_0x39f862(0xb9)][_0x39f862(0xe7)][_0x39f862(0xb7)](this[_0x39f862(0xfa)]);}[_0x5002d4(0xd5)](){const _0x35a016=_0x5002d4,_0xe9f5ca=this[_0x35a016(0xf3)][_0x35a016(0xca)][_0x35a016(0xea)](_0x35a016(0xe3));_0xe9f5ca&&this[_0x35a016(0x100)](_0xe9f5ca,_0x35a016(0xee),()=>{const _0x5ab572=_0x35a016,_0x3ac1fc=this[_0x5ab572(0xf3)][_0x5ab572(0x102)][_0x5ab572(0xb9)][_0x5ab572(0x103)][_0x5ab572(0xc3)]();_0x3ac1fc&&_0x3ac1fc[_0x5ab572(0xf1)](_0x5ab572(0xbf))&&this[_0x5ab572(0xf3)][_0x5ab572(0xf4)][_0x5ab572(0xb4)][_0x5ab572(0xc2)](_0x5ab572(0xc9),()=>{const _0x1f89fa=_0x5ab572;_0x30f00a(this[_0x1f89fa(0xf3)],_0x3ac1fc);});});const _0x4731cd=this[_0x35a016(0xf3)][_0x35a016(0xca)][_0x35a016(0xea)](_0x35a016(0xfe));_0x4731cd&&this[_0x35a016(0x100)](_0x4731cd,_0x35a016(0xee),()=>{const _0x4e2efe=_0x35a016,_0x15a3d2=this[_0x4e2efe(0xf3)][_0x4e2efe(0x102)][_0x4e2efe(0xb9)][_0x4e2efe(0x103)][_0x4e2efe(0xc3)]();_0x15a3d2&&_0x15a3d2[_0x4e2efe(0xf1)](_0x4e2efe(0xbf))&&this[_0x4e2efe(0xf3)][_0x4e2efe(0xf4)][_0x4e2efe(0xb4)][_0x4e2efe(0xc2)](_0x4e2efe(0xc9),()=>{const _0x2f32bb=_0x4e2efe;_0x30f00a(this[_0x2f32bb(0xf3)],_0x15a3d2);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1bc5c5,ObservableMixin as _0x69f636}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1d2dbb}from'ckeditor5/src/ui.js';import _0xda9734 from'./uploadcareimageeditformview.js';import _0x3c2194 from'../../utils/uploadutils.js';import _0x5914eb from'../../../theme/icons/uploadcare-image-edit.svg';import{getImageUrls as _0x57b248,getImageDimension as _0x5b0581}from'../../utils/editingutils.js';import{isAncestor as _0x124b20}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x69f636(){constructor(_0x4c128a,_0x1c6c47,_0x2e5289){super(),this['_editor']=_0x4c128a,this['_dialog']=_0x1c6c47,this['_imageElement']=_0x2e5289,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 _0x1fd399=this['_imageElement'],_0x5e4398=_0x1fd399['getAttribute']('uploadcareImageId'),_0x5cfd4c=_0x1fd399['getAttribute']('src');if(_0x5e4398)await this['_loadImageInfo'](_0x5e4398,_0x5cfd4c);else{if(this['_imageCache']['has'](_0x5cfd4c)){const _0x5083df=this['_imageCache']['get'](_0x5cfd4c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5083df['url'],this['imageDimension']=_0x5083df['dimension'],this['imageId']=_0x5083df['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xcf684}=this['_editor'],t=_0xcf684['t'],_0x2fca39=new _0xda9734(_0xcf684,this['imageStatus'],this['_attributes']);_0x2fca39['bind']('status')['to'](this,'imageStatus'),_0x2fca39['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2fca39['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2fca39['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2fca39,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5914eb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2fca39,'position':_0x1d2dbb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2fca39['focus']();},'onHide':()=>{_0x2fca39['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57d92f=>!_0x124b20(_0x57d92f,_0x2fca39['element'])}});}['_loadImageInfo'](_0x1bf47d,_0x20eb4e){return _0x3c2194['getInfo'](_0x1bf47d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3d6eeb=>{const {width:_0x572a9b,height:_0xe4568}=_0x3d6eeb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x20eb4e,this['imageDimension']={'width':_0x572a9b,'height':_0xe4568},this['imageId']=_0x1bf47d;})['catch'](_0xaaf3ea=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xaaf3ea['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x583bd5,_0xf2fb20){return this['_getImageAsFile'](_0x583bd5)['then'](_0x223afb=>_0x3c2194['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xf2fb20['signal'],'file':_0x223afb,'onProgress':_0x537f0b=>{_0x537f0b&&_0x537f0b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x537f0b['value']));}}))['then'](_0x5aea35=>{const {width:_0x2e4608,height:_0x55a3cb}=_0x5aea35['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5aea35['cdnUrl'],this['imageDimension']={'width':_0x2e4608,'height':_0x55a3cb},this['imageId']=_0x5aea35['uuid'],this['imageUploadProgress']=null;const _0x3ddf44=_0x583bd5['getAttribute']('src');this['_imageCache']['set'](_0x3ddf44,{'id':_0x5aea35['uuid'],'url':_0x5aea35['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4f1823=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f1823['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x38f3a6,_0x2bd633){_0x38f3a6['on']('apply',(_0x124423,_0x4c63ce)=>{this['_replaceImage'](_0x2bd633,_0x4c63ce['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x38f3a6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x38f3a6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x282757,_0x6c7c49,_0xfdfeca){const _0xa41234=this['_editor'],{width:_0x174b5a,height:_0x17c874}=_0x5b0581(_0x6c7c49,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3aeaa7,imageSources:_0x457424}=_0x57b248(_0x6c7c49,_0x174b5a);_0xa41234['model']['change'](_0x342006=>{if('$graveyard'===_0x282757['root']['rootName']){_0xa41234['execute']('insertImage',{'imageType':_0x282757['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x282757['getAttributes']()),'uploadcareImageId':_0xfdfeca,'src':_0x3aeaa7,'sources':_0x457424,'width':_0x174b5a,'height':_0x17c874}});const _0x2b18ba=_0x282757['getChildren']();_0x282757=_0xa41234['model']['document']['selection']['getSelectedElement']();for(const _0x21ff15 of _0x2b18ba)_0x342006['append'](_0x342006['cloneElement'](_0x21ff15),_0x282757);}else _0x342006['setSelection'](_0x282757,'on'),_0xa41234['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x282757['getAttributes']()),'uploadcareImageId':_0xfdfeca,'src':_0x3aeaa7,'sources':_0x457424,'width':_0x174b5a,'height':_0x17c874},_0x282757);_0x342006['setSelection'](_0x282757,'on');});}async['_getImageAsFile'](_0x37dcf0){const _0x182f72=_0x1bc5c5['window'],_0x1a3f5f=_0x1bc5c5['document']['location']['href'],_0x1e9e36=new _0x182f72['URL'](_0x37dcf0['getAttribute']('src'),_0x1a3f5f);if('data:'===_0x1e9e36['protocol']){const _0x14576c=_0x1e9e36['href']['split'](','),_0xab9c85=_0x14576c[0x0]['match'](/:(.*?);/)[0x1],_0x2c3ca4=_0xab9c85['split']('/')[0x1],_0x385a80=_0x182f72['atob'](_0x14576c[_0x14576c['length']-0x1]);let _0x8dbf11=_0x385a80['length'];const _0x1d4729=new _0x182f72['Uint8Array'](_0x8dbf11);for(;_0x8dbf11--;)_0x1d4729[_0x8dbf11]=_0x385a80['charCodeAt'](_0x8dbf11);return new _0x182f72['File']([_0x1d4729],'image.'+_0x2c3ca4,{'type':_0xab9c85});}const _0x3d9440=_0x1e9e36['href']['split']('/'),_0x5bd824=_0x3d9440[_0x3d9440['length']-0x1],_0x20bd8f=_0x5bd824['split']('.')[0x1];return _0x182f72['fetch'](_0x1e9e36['href'])['then'](_0x24d528=>_0x24d528['clone']()['blob']())['then'](_0x156ff4=>new _0x182f72['File']([_0x156ff4],_0x5bd824,{'type':'image/'+_0x20bd8f}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4243(){const _0x45557e=['uc-light','4058HIBmAu','591939FVvYMq','830tFDvzW','set','imageSrc','image-edit','12BibiyB','bindTemplate','2618OQHLYl','469ApUEVq','60vzppOR','20058aVUCXA','uc-cloud-image-editor','12081EyXsMv','428jrIYQF','setTemplate','ck-uploadcare-theme','26tYyxHU','53079RfjnLs','33632EPmJdt','2225619BRPojX'];_0x4243=function(){return _0x45557e;};return _0x4243();}(function(_0x37b565,_0x5ed1e5){const _0x29f2f3=_0x5798,_0x20a39e=_0x37b565();while(!![]){try{const _0x50889b=parseInt(_0x29f2f3(0xd2))/0x1*(parseInt(_0x29f2f3(0xcd))/0x2)+parseInt(_0x29f2f3(0xdf))/0x3*(-parseInt(_0x29f2f3(0xe0))/0x4)+-parseInt(_0x29f2f3(0xd4))/0x5*(parseInt(_0x29f2f3(0xdd))/0x6)+parseInt(_0x29f2f3(0xdb))/0x7*(parseInt(_0x29f2f3(0xcf))/0x8)+-parseInt(_0x29f2f3(0xd3))/0x9*(-parseInt(_0x29f2f3(0xdc))/0xa)+-parseInt(_0x29f2f3(0xd0))/0xb*(parseInt(_0x29f2f3(0xd8))/0xc)+-parseInt(_0x29f2f3(0xce))/0xd*(-parseInt(_0x29f2f3(0xda))/0xe);if(_0x50889b===_0x5ed1e5)break;else _0x20a39e['push'](_0x20a39e['shift']());}catch(_0x457b78){_0x20a39e['push'](_0x20a39e['shift']());}}}(_0x4243,0x4a51d));import{View as _0x1306a3}from'ckeditor5/src/ui.js';function _0x5798(_0x385e88,_0x161244){const _0x424351=_0x4243();return _0x5798=function(_0x579823,_0x32db9e){_0x579823=_0x579823-0xcb;let _0x516b42=_0x424351[_0x579823];return _0x516b42;},_0x5798(_0x385e88,_0x161244);}export default class tt extends _0x1306a3{constructor(_0x2f0571,_0x1ac6f7){const _0x2a6c32=_0x5798;super(_0x2f0571);const _0x1ed5c2=this[_0x2a6c32(0xd9)];this[_0x2a6c32(0xd5)](_0x2a6c32(0xd6),''),this[_0x2a6c32(0xcb)]({'tag':_0x2a6c32(0xde),'attributes':{..._0x1ac6f7,'class':[_0x2a6c32(0xd1),_0x2a6c32(0xcc)],'ctx-name':_0x2a6c32(0xd7),'cdn-url':_0x1ed5c2['to'](_0x2a6c32(0xd6))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x5a9909,IconView as et,View as _0x411c40}from'ckeditor5/src/ui.js';import at from'../../../theme/icons/error.svg';export default class rt extends _0x411c40{constructor(_0x40d321){super(_0x40d321);const t=_0x40d321['t'];this['set']('errorType',null);const _0x388ad2=new _0x5a9909(_0x40d321);_0x388ad2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x388ad2['withText']=!0x0,_0x388ad2['class']='ck-button-action',_0x388ad2['on']('execute',()=>{this['fire']('retry');}),_0x388ad2['bind']('isVisible')['to'](this,'errorType',_0x174ee1=>'NotFound'!==_0x174ee1);const _0x545e46=new et();_0x545e46['content']=at,_0x545e46['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x437306=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':[_0x545e46,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x437306['to']('errorType',_0x2b896f=>t('NotFound'!==_0x2b896f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x388ad2]},{'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 _0x1b7c19,View as _0x42fcf6}from'ckeditor5/src/ui.js';export default class ta extends _0x42fcf6{constructor(_0x4a8717){super(_0x4a8717);const t=_0x4a8717['t'],_0x42b8d3=this['bindTemplate'],_0x43f98d=new _0x1b7c19();_0x43f98d['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':[_0x43f98d,{'text':_0x42b8d3['to']('imageUploadProgress',_0x3714ce=>t('Loading\x20image...')+'\x20('+(_0x3714ce||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x435d2e=_0x3707;(function(_0x4cc4ae,_0xc0f33b){const _0x3b6963=_0x3707,_0x2958da=_0x4cc4ae();while(!![]){try{const _0x1341c4=-parseInt(_0x3b6963(0xa0))/0x1*(-parseInt(_0x3b6963(0xae))/0x2)+parseInt(_0x3b6963(0xb7))/0x3+-parseInt(_0x3b6963(0xd4))/0x4+parseInt(_0x3b6963(0xc6))/0x5+-parseInt(_0x3b6963(0xc1))/0x6+parseInt(_0x3b6963(0xb0))/0x7*(-parseInt(_0x3b6963(0xbd))/0x8)+parseInt(_0x3b6963(0xc2))/0x9*(-parseInt(_0x3b6963(0xb3))/0xa);if(_0x1341c4===_0xc0f33b)break;else _0x2958da['push'](_0x2958da['shift']());}catch(_0x56eae2){_0x2958da['push'](_0x2958da['shift']());}}}(_0x4fca,0x9c0eb));function _0x3707(_0x151c61,_0x4f6e24){const _0x4fca27=_0x4fca();return _0x3707=function(_0x370708,_0x44221d){_0x370708=_0x370708-0x9e;let _0x23ff8b=_0x4fca27[_0x370708];return _0x23ff8b;},_0x3707(_0x151c61,_0x4f6e24);}function _0x4fca(){const _0x25060e=['_focusableView','1459580etLmLD','uc-cloud-image-editor','filter','77oOSWSb','clear','ck-uploadcare-form','toLowerCase','change:status','render','error','nodeName','addedNodes','_errorView','_addUploadcareImageEditorListeners','_setView','getFocusableElement','set','10196YAHWPu','ready','1995oQbJEp','observe','cancel','1104650gKKfYE','target','once','apply','2509608dbAnCh','addMany','uploading','_editingView','querySelector','focus','19016JzTKTs','createCollection','element','div','3350448dCFBxX','9lmbEDu','status','detail','_loadingView','5606710YnDigO','add','disconnect','_addErrorViewListeners','setTemplate','fire','addEventListener','retry','_items','_waitForImageEditorComponent','length','cdnUrl','ck-reset_all-excluded'];_0x4fca=function(){return _0x25060e;};return _0x4fca();}import{View as _0x3c7d74}from'ckeditor5/src/ui.js';import _0x5a31e7 from'./uploadcareimageeditformloadingview.js';import _0x17feaa from'./uploadcareimageeditformerrorview.js';import _0x48a262 from'./uploadcareimageeditformeditingview.js';import _0x370392 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x370392{constructor(_0x39520d,_0x30a7d6,_0x21afe8){const _0x19e3a3=_0x3707;super(_0x39520d),this[_0x19e3a3(0xce)]=this[_0x19e3a3(0xbe)](),this[_0x19e3a3(0xc5)]=new _0x5a31e7(_0x39520d),this[_0x19e3a3(0xa9)]=new _0x17feaa(_0x39520d),this[_0x19e3a3(0xba)]=new _0x48a262(_0x39520d,_0x21afe8),this[_0x19e3a3(0xd3)]=new _0x3c7d74(_0x39520d),this[_0x19e3a3(0xd3)][_0x19e3a3(0xca)](this[_0x19e3a3(0xac)]()),this[_0x19e3a3(0xad)](_0x19e3a3(0xc3),_0x30a7d6),this[_0x19e3a3(0xca)]({'tag':_0x19e3a3(0xc0),'attributes':{'class':['ck',_0x19e3a3(0xd2),_0x19e3a3(0xa2)],'tabindex':'-1'},'children':this[_0x19e3a3(0xce)]}),this[_0x19e3a3(0xab)](),this[_0x19e3a3(0xb5)](_0x19e3a3(0xa5),()=>{const _0x2844c7=_0x19e3a3;this[_0x2844c7(0xcf)](this[_0x2844c7(0xbf)],_0x3482f2=>{const _0x51f4a9=_0x2844c7;this[_0x51f4a9(0xaa)](_0x3482f2);});}),this['on'](_0x19e3a3(0xa4),()=>{const _0x37c776=_0x19e3a3;this[_0x37c776(0xab)]();}),this[_0x19e3a3(0xc9)]();}[_0x435d2e(0xbc)](){const _0x35c97b=_0x435d2e;this[_0x35c97b(0xbf)][_0x35c97b(0xbc)]();}[_0x435d2e(0xab)](){const _0x2354c3=_0x435d2e;switch(this[_0x2354c3(0xce)][_0x2354c3(0xa1)](),this[_0x2354c3(0xc3)]){case _0x2354c3(0xb9):this[_0x2354c3(0xce)][_0x2354c3(0xc7)](this[_0x2354c3(0xc5)]);break;case _0x2354c3(0xa6):this[_0x2354c3(0xce)][_0x2354c3(0xc7)](this[_0x2354c3(0xa9)]);break;case _0x2354c3(0xaf):this[_0x2354c3(0xce)][_0x2354c3(0xb8)]([this[_0x2354c3(0xba)],this[_0x2354c3(0xd3)]]);}}[_0x435d2e(0xcf)](_0x5e168f,_0x136ee9){const _0x4b5ef9=_0x435d2e,_0x4f87ae=_0x4b5ef9(0x9e),_0x236c39=_0x5e168f[_0x4b5ef9(0xbb)](_0x4f87ae);if(_0x236c39)return _0x136ee9(_0x236c39);const _0x2c8991=new MutationObserver(_0x5d07dd=>{const _0x1cd45c=_0x4b5ef9,_0x410ecc=_0x5d07dd[_0x1cd45c(0x9f)](_0x1f9fde=>_0x1f9fde[_0x1cd45c(0xb4)]===_0x5e168f&&_0x1f9fde[_0x1cd45c(0xa8)][_0x1cd45c(0xd0)]>0x0&&_0x1f9fde[_0x1cd45c(0xa8)][0x0][_0x1cd45c(0xa7)][_0x1cd45c(0xa3)]()===_0x4f87ae);_0x410ecc[_0x1cd45c(0xd0)]&&(_0x2c8991[_0x1cd45c(0xc8)](),_0x136ee9(_0x410ecc[0x0][_0x1cd45c(0xa8)][0x0]));});_0x2c8991[_0x4b5ef9(0xb1)](_0x5e168f,{'childList':!0x0,'subtree':!0x0});}[_0x435d2e(0xaa)](_0xb06451){const _0x48ea27=_0x435d2e;_0xb06451[_0x48ea27(0xcc)](_0x48ea27(0xb6),_0x4dc931=>{const _0x158b24=_0x48ea27;this[_0x158b24(0xcb)](_0x158b24(0xb6),{'imageSrc':_0x4dc931[_0x158b24(0xc4)][_0x158b24(0xd1)]});}),_0xb06451[_0x48ea27(0xcc)](_0x48ea27(0xb2),()=>{const _0x9c6e2=_0x48ea27;this[_0x9c6e2(0xcb)](_0x9c6e2(0xb2));});}[_0x435d2e(0xc9)](){const _0x4dbb0b=_0x435d2e;this[_0x4dbb0b(0xa9)]['on'](_0x4dbb0b(0xcd),()=>{const _0x120b3e=_0x4dbb0b;this[_0x120b3e(0xcb)](_0x120b3e(0xcd));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4a20(_0x2e1bfd,_0x532f6b){const _0x4ca3b8=_0x4ca3();return _0x4a20=function(_0x4a20a4,_0x4cc63d){_0x4a20a4=_0x4a20a4-0x1d3;let _0x5e774f=_0x4ca3b8[_0x4a20a4];return _0x5e774f;},_0x4a20(_0x2e1bfd,_0x532f6b);}const _0x2cc66e=_0x4a20;(function(_0x14c4c2,_0x3e72ca){const _0x2986bf=_0x4a20,_0x5c8956=_0x14c4c2();while(!![]){try{const _0xb2b3c1=parseInt(_0x2986bf(0x1df))/0x1*(parseInt(_0x2986bf(0x1d4))/0x2)+-parseInt(_0x2986bf(0x1f0))/0x3*(parseInt(_0x2986bf(0x1ef))/0x4)+-parseInt(_0x2986bf(0x1de))/0x5+parseInt(_0x2986bf(0x1e6))/0x6*(parseInt(_0x2986bf(0x1e8))/0x7)+parseInt(_0x2986bf(0x1f2))/0x8+-parseInt(_0x2986bf(0x1e3))/0x9+parseInt(_0x2986bf(0x1d9))/0xa;if(_0xb2b3c1===_0x3e72ca)break;else _0x5c8956['push'](_0x5c8956['shift']());}catch(_0x416f87){_0x5c8956['push'](_0x5c8956['shift']());}}}(_0x4ca3,0x9ceab));import{Command as _0x17acef}from'ckeditor5/src/core.js';import{Dialog as _0x47c77a}from'ckeditor5/src/ui.js';import _0x11c9cb from'./ui/uploadcareimageeditcontroller.js';function _0x4ca3(){const _0x1dd97d=['plugins','config','uploadcare.allowExternalImagesEditing','element','4342990RrcPvb','29qULtvN','refresh','document','isEnabled','10055061mgpBfs','set','requires','708JFuNyM','imageEditController','32893IMsPpe','imageInline','getSelectedElement','selection','model','_isEditable','execute','4348FJGObl','1173tgoxQP','editor','7085592xaWwIg','unbind','24968tbSTLP','bind','isActive','get','imageBlock','12513580PRzgeq'];_0x4ca3=function(){return _0x1dd97d;};return _0x4ca3();}import{createEditabilityChecker as _0x3113fe}from'../utils/editingutils.js';export default class J extends _0x17acef{static get[_0x2cc66e(0x1e5)](){return[_0x47c77a];}constructor(_0x1a3678){const _0x2b0861=_0x2cc66e;super(_0x1a3678),this[_0x2b0861(0x1e7)]=void 0x0,this[_0x2b0861(0x1ed)]=_0x3113fe(_0x1a3678[_0x2b0861(0x1db)][_0x2b0861(0x1d7)](_0x2b0861(0x1dc))||[]),this[_0x2b0861(0x1e4)]({'isActive':!0x1});}[_0x2cc66e(0x1e0)](){const _0x4a58b9=_0x2cc66e,_0x22a4ca=this[_0x4a58b9(0x1f1)][_0x4a58b9(0x1ec)][_0x4a58b9(0x1e1)][_0x4a58b9(0x1eb)][_0x4a58b9(0x1ea)]();this[_0x4a58b9(0x1e2)]=this[_0x4a58b9(0x1ed)](_0x22a4ca);}[_0x2cc66e(0x1ee)](){const _0x5a2106=_0x2cc66e;this[_0x5a2106(0x1e7)]&&(this[_0x5a2106(0x1d3)](_0x5a2106(0x1d6)),this[_0x5a2106(0x1e7)]=void 0x0);const _0x90e80d=this[_0x5a2106(0x1f1)][_0x5a2106(0x1ec)][_0x5a2106(0x1e1)][_0x5a2106(0x1eb)][_0x5a2106(0x1ea)]();_0x90e80d&&(_0x90e80d['is'](_0x5a2106(0x1dd),_0x5a2106(0x1d8))||_0x90e80d['is'](_0x5a2106(0x1dd),_0x5a2106(0x1e9)))&&(this[_0x5a2106(0x1e7)]=new _0x11c9cb(this[_0x5a2106(0x1f1)],this[_0x5a2106(0x1f1)][_0x5a2106(0x1da)][_0x5a2106(0x1d7)](_0x47c77a),_0x90e80d),this[_0x5a2106(0x1d5)](_0x5a2106(0x1d6))['to'](this[_0x5a2106(0x1e7)],_0x5a2106(0x1d6)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32f22f=_0xc61b;(function(_0x3434e4,_0x5e2632){const _0x309042=_0xc61b,_0x157f73=_0x3434e4();while(!![]){try{const _0x1fbcb7=parseInt(_0x309042(0x1d2))/0x1+parseInt(_0x309042(0x1d3))/0x2*(parseInt(_0x309042(0x1df))/0x3)+parseInt(_0x309042(0x1dc))/0x4*(parseInt(_0x309042(0x1e2))/0x5)+-parseInt(_0x309042(0x1d1))/0x6*(-parseInt(_0x309042(0x1e0))/0x7)+parseInt(_0x309042(0x1db))/0x8*(parseInt(_0x309042(0x1e5))/0x9)+-parseInt(_0x309042(0x1d0))/0xa+parseInt(_0x309042(0x1d9))/0xb*(-parseInt(_0x309042(0x1dd))/0xc);if(_0x1fbcb7===_0x5e2632)break;else _0x157f73['push'](_0x157f73['shift']());}catch(_0x3db6e0){_0x157f73['push'](_0x157f73['shift']());}}}(_0xeaf2,0x8c01d));import{Plugin as _0x550024}from'ckeditor5/src/core.js';import{Notification as _0x200424}from'ckeditor5/src/ui.js';import _0x5ad061 from'./uploadcareimageeditcommand.js';import _0x4dfe00 from'./uploadcareimagereplacecommand.js';function _0xc61b(_0x5df027,_0x331680){const _0xeaf2a1=_0xeaf2();return _0xc61b=function(_0xc61be1,_0xbb3cc5){_0xc61be1=_0xc61be1-0x1ce;let _0xbe01e9=_0xeaf2a1[_0xc61be1];return _0xbe01e9;},_0xc61b(_0x5df027,_0x331680);}import _0x4bb17c from'../uploadcareediting.js';export default class m extends _0x550024{static get[_0x32f22f(0x1e1)](){const _0x10bc94=_0x32f22f;return _0x10bc94(0x1de);}static get[_0x32f22f(0x1e3)](){const _0x1d5aae=_0x32f22f;return[_0x4bb17c,_0x200424,_0x1d5aae(0x1d4),_0x1d5aae(0x1d6)];}static get[_0x32f22f(0x1d7)](){return!0x0;}static get[_0x32f22f(0x1da)](){return!0x0;}[_0x32f22f(0x1cf)](){const _0x17c661=_0x32f22f,{editor:_0x242c60}=this;_0x242c60[_0x17c661(0x1d8)][_0x17c661(0x1e4)](_0x17c661(0x1ce),new _0x5ad061(_0x242c60)),_0x242c60[_0x17c661(0x1d8)][_0x17c661(0x1e4)](_0x17c661(0x1d5),new _0x4dfe00(_0x242c60));}}function _0xeaf2(){const _0x2a4bb5=['uploadcareImageEdit','init','4246660ssiDOu','1566hOqnmY','478870XdoeIJ','7176FRXSHV','ImageUtils','uploadcareImageReplace','ImageEditing','isOfficialPlugin','commands','60566faqRaO','isPremiumPlugin','891976IZiCPU','2128276sDNDLD','6060sqCvcy','UploadcareImageEditEditing','933PacpFs','29351mkupqn','pluginName','5PLEmzy','requires','add','45IAipoJ'];_0xeaf2=function(){return _0x2a4bb5;};return _0xeaf2();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4eff1d}from'ckeditor5/src/core.js';import{ButtonView as _0x591cf9}from'ckeditor5/src/ui.js';import{createElement as _0x4c4bd9}from'ckeditor5/src/utils.js';import _0x3030fb from'../../theme/icons/uploadcare-image-edit.svg';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class g extends _0x4eff1d{constructor(){super(...arguments),this['_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 _0x27c81f=this['editor'];_0x27c81f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x225ee9=>{const _0x13ff77=_0x27c81f['commands']['get']('uploadcareImageEdit'),_0x26379a=new _0x591cf9(_0x225ee9),t=_0x225ee9['t'];return _0x26379a['set']({'icon':_0x3030fb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26379a['bind']('isEnabled')['to'](_0x13ff77),_0x26379a['bind']('isOn')['to'](_0x13ff77,'isActive'),this['listenTo'](_0x26379a,'execute',()=>{_0x27c81f['execute']('uploadcareImageEdit'),_0x27c81f['editing']['view']['focus']();}),_0x26379a;}),this['_initConfig']();}['_initConfig'](){const _0xa50033=_0x4c4bd9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xa50033),this['listenTo'](this['editor'],'destroy',()=>{_0xa50033['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x310376=_0x43bd;function _0x43bd(_0x26e7b1,_0xa0f003){const _0x1f977f=_0x1f97();return _0x43bd=function(_0x43bd37,_0x5702ac){_0x43bd37=_0x43bd37-0x156;let _0x438e8f=_0x1f977f[_0x43bd37];return _0x438e8f;},_0x43bd(_0x26e7b1,_0xa0f003);}(function(_0x5523a5,_0x3467a3){const _0x74c640=_0x43bd,_0x3296b0=_0x5523a5();while(!![]){try{const _0x543ca4=-parseInt(_0x74c640(0x157))/0x1*(parseInt(_0x74c640(0x16a))/0x2)+-parseInt(_0x74c640(0x162))/0x3+parseInt(_0x74c640(0x15b))/0x4+parseInt(_0x74c640(0x165))/0x5+parseInt(_0x74c640(0x163))/0x6+-parseInt(_0x74c640(0x164))/0x7*(parseInt(_0x74c640(0x15f))/0x8)+-parseInt(_0x74c640(0x16f))/0x9*(-parseInt(_0x74c640(0x16b))/0xa);if(_0x543ca4===_0x3467a3)break;else _0x3296b0['push'](_0x3296b0['shift']());}catch(_0x5748b6){_0x3296b0['push'](_0x3296b0['shift']());}}}(_0x1f97,0xecc68));import{Command as _0x319910}from'ckeditor5/src/core.js';function _0x1f97(){const _0x7ed4d5=['5392365VoDKxR','removeAttribute','imageInline','setAttributes','getSelectedElement','2HPOqzy','30HokmCt','model','element','sizes','7756839QRNWMS','change','1780691MhDACg','imageBlock','selection','srcset','615992wOuGbJ','document','isEnabled','editor','216hGmbzS','refresh','execute','2861070intREQ','6595272SZxrkF','314503ioRZOq'];_0x1f97=function(){return _0x7ed4d5;};return _0x1f97();}export default class O extends _0x319910{[_0x310376(0x160)](){const _0x5dd07b=_0x310376,_0x4b453c=this[_0x5dd07b(0x15e)][_0x5dd07b(0x16c)][_0x5dd07b(0x15c)][_0x5dd07b(0x159)][_0x5dd07b(0x169)]();this[_0x5dd07b(0x15d)]=Boolean(_0x4b453c&&(_0x4b453c['is'](_0x5dd07b(0x16d),_0x5dd07b(0x158))||_0x4b453c['is'](_0x5dd07b(0x16d),_0x5dd07b(0x167))));}[_0x310376(0x161)](_0x267d51){const _0x343eb2=_0x310376,_0x36e369=this[_0x343eb2(0x15e)][_0x343eb2(0x16c)][_0x343eb2(0x15c)][_0x343eb2(0x159)][_0x343eb2(0x169)]();this[_0x343eb2(0x15e)][_0x343eb2(0x16c)][_0x343eb2(0x156)](_0x150b43=>{const _0x27daee=_0x343eb2;_0x150b43[_0x27daee(0x168)](_0x267d51,_0x36e369),_0x150b43[_0x27daee(0x166)](_0x27daee(0x15a),_0x36e369),_0x150b43[_0x27daee(0x166)](_0x27daee(0x16e),_0x36e369);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x44cf2b=_0x5e68;(function(_0x283a28,_0x37deee){var _0x522147=_0x5e68,_0x115597=_0x283a28();while(!![]){try{var _0x5942cb=parseInt(_0x522147(0x1c3))/0x1+parseInt(_0x522147(0x1bb))/0x2+-parseInt(_0x522147(0x1bd))/0x3+parseInt(_0x522147(0x1bf))/0x4+-parseInt(_0x522147(0x1b5))/0x5*(parseInt(_0x522147(0x1c2))/0x6)+-parseInt(_0x522147(0x1b6))/0x7*(-parseInt(_0x522147(0x1c0))/0x8)+parseInt(_0x522147(0x1b9))/0x9*(-parseInt(_0x522147(0x1be))/0xa);if(_0x5942cb===_0x37deee)break;else _0x115597['push'](_0x115597['shift']());}catch(_0x130400){_0x115597['push'](_0x115597['shift']());}}}(_0x4770,0xda2bd));import{Plugin as _0xe15afe}from'ckeditor5/src/core.js';import _0x49c994 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x115d6d from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x5e68(_0x546d74,_0x53f410){var _0x477073=_0x4770();return _0x5e68=function(_0x5e6847,_0x272003){_0x5e6847=_0x5e6847-0x1b5;var _0x4cf81f=_0x477073[_0x5e6847];return _0x4cf81f;},_0x5e68(_0x546d74,_0x53f410);}export default class j extends _0xe15afe{static get[_0x44cf2b(0x1b8)](){var _0x15d441=_0x44cf2b;return _0x15d441(0x1bc);}static get[_0x44cf2b(0x1b7)](){return[_0x49c994,_0x115d6d];}static get[_0x44cf2b(0x1ba)](){return!0x0;}static get[_0x44cf2b(0x1c1)](){return!0x0;}}function _0x4770(){var _0x1890e2=['1239360nxsYDm','1290WeisyX','5205080oxiTKy','8WeqszB','isPremiumPlugin','6qQVccz','1678136mAvgdM','3278630wqhJGF','12423299KgkdRz','requires','pluginName','312525nbBzvB','isOfficialPlugin','3375674LUTtGO','UploadcareImageEdit'];_0x4770=function(){return _0x1890e2;};return _0x4770();}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x143da3=_0x22f7;(function(_0x5e7cb,_0x1444ce){const _0x2361b2=_0x22f7,_0x556e6f=_0x5e7cb();while(!![]){try{const _0xf0b158=-parseInt(_0x2361b2(0xac))/0x1+parseInt(_0x2361b2(0xdc))/0x2*(-parseInt(_0x2361b2(0xa8))/0x3)+-parseInt(_0x2361b2(0xe4))/0x4+-parseInt(_0x2361b2(0xd8))/0x5*(parseInt(_0x2361b2(0xf2))/0x6)+-parseInt(_0x2361b2(0xad))/0x7*(parseInt(_0x2361b2(0xee))/0x8)+parseInt(_0x2361b2(0xd4))/0x9+-parseInt(_0x2361b2(0xcd))/0xa*(-parseInt(_0x2361b2(0xd1))/0xb);if(_0xf0b158===_0x1444ce)break;else _0x556e6f['push'](_0x556e6f['shift']());}catch(_0x427d56){_0x556e6f['push'](_0x556e6f['shift']());}}}(_0x2259,0xd9e95));function _0x2259(){const _0x2c1046=['OneDrive','_showLicenseError','Insert','3399344yrRvAc','isOfficialPlugin','expired','icon','_createDropdownButtons','evaluationLimit','init','isPremiumPlugin','featureNotAllowed','type','10696Caaybz','map','uploadcare','URL','78OgdBDA','has','_licenseKeyCheckInterval','Facebook','GDrive','uploadcareLicenseKeyTrialLimit','_createMenuBarButtons','uploadcareLicenseKeyEvaluationLimit','shortText','204351BpNenk','bind','label','Local','994138MDAlGn','7714yIpzHb','Uploadcare','Replace','licenseKey','_createButton','pluginName','_createToolbarButton','reduce','plugins','url','trialLimit','entries','editor','_normalizeConfigSourceList','GPhotos','registerIntegration','domainLimit','config','uploadcareLicenseKeyDomainLimit','UploadcareUI','uploadcareLicenseKeyValid','get','text','commands','upload','uploadcareLicenseKeyInvalid','imageUpload','usageLimit','isImageSelected','push','uploadcare.uploader.sourceList','uploadcareLicenseKeyNotAllowed','10nNneIF','destroy','Dropbox','locale','52829205qYcHzQ','invalid','assetManager','14365440kYPJyD','execute','uploadcareLicenseKeyExpired','tooltip','396505iECIat','_getIntegrationKey','ImageInsertUI','forEach','34JmpAKl','isEnabled','withText','uploadcareLicenseKeyUsageLimit','afterInit'];_0x2259=function(){return _0x2c1046;};return _0x2259();}import{Plugin as _0x1fa5d3,icons as _0x4eada6}from'ckeditor5/src/core.js';import{ButtonView as _0x273cfe,MenuBarMenuListItemButtonView as _0x3d1e92}from'ckeditor5/src/ui.js';import _0x3f24d0 from'../theme/icons/dropbox.svg';import _0x4a9823 from'../theme/icons/facebook.svg';import _0x35b077 from'../theme/icons/google-drive.svg';import _0x5c539 from'../theme/icons/google-photos.svg';import _0xebb31d from'../theme/icons/link.svg';import _0x39ccd4 from'../theme/icons/onedrive.svg';import{UploadcareSource as _0x57ceac}from'./uploadcareconfig.js';import{getTranslation as _0x1be5e0}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x22f7(_0xb83f97,_0x99d2fe){const _0x225978=_0x2259();return _0x22f7=function(_0x22f740,_0x5a68e7){_0x22f740=_0x22f740-0xa1;let _0x47c6cc=_0x225978[_0x22f740];return _0x47c6cc;},_0x22f7(_0xb83f97,_0x99d2fe);}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export default class e extends _0x1fa5d3{static get[_0x143da3(0xb2)](){const _0x564f40=_0x143da3;return _0x564f40(0xc0);}static get[_0x143da3(0xe5)](){return!0x0;}static get[_0x143da3(0xeb)](){return!0x0;}[_0x143da3(0xea)](){const _0x1bad78=_0x143da3;this[_0x1bad78(0xb0)]=this[_0x1bad78(0xb9)][_0x1bad78(0xbe)][_0x1bad78(0xc2)](_0x1bad78(0xb0));const _0x273348=this[_0x1bad78(0xb9)];this[_0x1bad78(0xa1)]=setInterval(()=>{const _0x488506=_0x1bad78;let _0x1f653b;for(const _0x16a18d in _0x273348){const _0x28a312=_0x16a18d,_0x5dd825=_0x273348[_0x28a312];if(_0x488506(0xc1)==_0x5dd825||_0x488506(0xc6)==_0x5dd825||_0x488506(0xd6)==_0x5dd825||_0x488506(0xbf)==_0x5dd825||_0x488506(0xcc)==_0x5dd825||_0x488506(0xa6)==_0x5dd825||_0x488506(0xa4)==_0x5dd825||_0x488506(0xdf)==_0x5dd825){delete _0x273348[_0x28a312],_0x1f653b=_0x5dd825,clearInterval(this[_0x488506(0xa1)]),this[_0x488506(0xa1)]=void 0x0;break;}}_0x488506(0xc6)==_0x1f653b&&_0x273348[_0x488506(0xe2)](_0x488506(0xd2)),_0x488506(0xd6)==_0x1f653b&&_0x273348[_0x488506(0xe2)](_0x488506(0xe6)),_0x488506(0xbf)==_0x1f653b&&_0x273348[_0x488506(0xe2)](_0x488506(0xbd)),_0x488506(0xcc)==_0x1f653b&&_0x273348[_0x488506(0xe2)](_0x488506(0xec),_0x488506(0xae)),_0x488506(0xa6)==_0x1f653b&&_0x273348[_0x488506(0xe2)](_0x488506(0xe9)),_0x488506(0xa4)==_0x1f653b&&_0x273348[_0x488506(0xe2)](_0x488506(0xb7)),_0x488506(0xdf)==_0x1f653b&&_0x273348[_0x488506(0xe2)](_0x488506(0xc8));},0x3e8);}[_0x143da3(0xe0)](){const _0x4e71b5=_0x143da3,{editor:_0x55d7a4}=this,_0xa18740=_0x55d7a4[_0x4e71b5(0xc4)][_0x4e71b5(0xc2)](_0x4e71b5(0xf0));if(!_0xa18740)return;const _0x49ed17=this[_0x4e71b5(0xba)](_0x55d7a4[_0x4e71b5(0xbe)][_0x4e71b5(0xc2)](_0x4e71b5(0xcb)))[_0x4e71b5(0xb4)]((_0x1ed0d8,_0x48382a)=>{const _0x1e4740=_0x4e71b5,_0x4ed2a7=this[_0x1e4740(0xd9)](_0x48382a[_0x1e4740(0xed)]);return _0x1ed0d8[_0x4ed2a7]||(_0x1ed0d8[_0x4ed2a7]=[]),_0x1ed0d8[_0x4ed2a7][_0x1e4740(0xca)](_0x48382a),_0x1ed0d8;},{});_0x55d7a4[_0x4e71b5(0xb5)][_0x4e71b5(0xf3)](_0x4e71b5(0xda))&&_0x55d7a4[_0x4e71b5(0xc4)][_0x4e71b5(0xc2)](_0x4e71b5(0xf0))&&Object[_0x4e71b5(0xb8)](_0x49ed17)[_0x4e71b5(0xdb)](([_0x27a42a,_0x1214ff])=>{const _0x2221c1=_0x4e71b5;_0x55d7a4[_0x2221c1(0xb5)][_0x2221c1(0xc2)](_0x2221c1(0xda))[_0x2221c1(0xbc)]({'name':_0x27a42a,'observable':()=>_0xa18740,'buttonViewCreator':()=>this[_0x2221c1(0xb3)](_0x1214ff),'formViewCreator':()=>this[_0x2221c1(0xe8)](_0x1214ff),'menuBarButtonViewCreator':()=>this[_0x2221c1(0xa5)](_0x1214ff),'override':_0x2221c1(0xd3)!==_0x27a42a});});}[_0x143da3(0xce)](){const _0x4c22c1=_0x143da3;super[_0x4c22c1(0xce)](),this[_0x4c22c1(0xa1)]&&clearInterval(this[_0x4c22c1(0xa1)]);}[_0x143da3(0xba)](_0x42d222){const _0x52ae4b=_0x143da3,{locale:_0x5787ff}=this[_0x52ae4b(0xb9)];return _0x42d222[_0x52ae4b(0xef)](_0x39f58d=>{const _0x38f690=_0x52ae4b,_0x31e94a=_0x1be5e0(_0x5787ff,_0x39f58d,_0x38f690(0xe3));switch(_0x39f58d){case _0x57ceac[_0x38f690(0xab)]:return{'icon':_0x4eada6[_0x38f690(0xc7)],'type':_0x57ceac[_0x38f690(0xab)],..._0x31e94a};case _0x57ceac[_0x38f690(0xf1)]:return{'icon':_0xebb31d,'type':_0x57ceac[_0x38f690(0xf1)],..._0x31e94a};case _0x57ceac[_0x38f690(0xcf)]:return{'icon':_0x3f24d0,'type':_0x57ceac[_0x38f690(0xcf)],..._0x31e94a};case _0x57ceac[_0x38f690(0xa2)]:return{'icon':_0x4a9823,'type':_0x57ceac[_0x38f690(0xa2)],..._0x31e94a};case _0x57ceac[_0x38f690(0xa3)]:return{'icon':_0x35b077,'type':_0x57ceac[_0x38f690(0xa3)],..._0x31e94a};case _0x57ceac[_0x38f690(0xbb)]:return{'icon':_0x5c539,'type':_0x57ceac[_0x38f690(0xbb)],..._0x31e94a};case _0x57ceac[_0x38f690(0xe1)]:return{'icon':_0x39ccd4,'type':_0x57ceac[_0x38f690(0xe1)],..._0x31e94a};}});}[_0x143da3(0xd9)](_0xf231ff){const _0x1cdbfa=_0x143da3;switch(_0xf231ff){case _0x57ceac[_0x1cdbfa(0xab)]:return _0x1cdbfa(0xc5);case _0x57ceac[_0x1cdbfa(0xf1)]:return _0x1cdbfa(0xb6);default:return _0x1cdbfa(0xd3);}}[_0x143da3(0xb1)](_0x78e44a,_0x402f1d){const _0x42e8bf=_0x143da3,_0x37a259=this[_0x42e8bf(0xb9)],_0x19934b=new _0x78e44a(_0x37a259[_0x42e8bf(0xd0)]),_0xcfa02c=_0x37a259[_0x42e8bf(0xc4)][_0x42e8bf(0xc2)](_0x42e8bf(0xf0));return _0x19934b[_0x42e8bf(0xa9)](_0x42e8bf(0xdd))['to'](_0xcfa02c),_0x19934b['on'](_0x42e8bf(0xd5),()=>{const _0x25e5c1=_0x42e8bf;_0xcfa02c[_0x25e5c1(0xd5)](_0x402f1d);}),_0x19934b;}[_0x143da3(0xb3)](_0x34ae35){const _0x4082c5=_0x143da3,{locale:_0xa58f05}=this[_0x4082c5(0xb9)],_0x2fdbc8=this[_0x4082c5(0xb9)][_0x4082c5(0xb5)][_0x4082c5(0xc2)](_0x4082c5(0xda)),_0x414b63=_0x34ae35[0x0],_0x4024d2=this[_0x4082c5(0xb1)](_0x273cfe,_0x414b63[_0x4082c5(0xed)]);return _0x4024d2[_0x4082c5(0xe7)]=_0x414b63[_0x4082c5(0xe7)],_0x4024d2[_0x4082c5(0xa9)](_0x4082c5(0xaa))['to'](_0x2fdbc8,_0x4082c5(0xc9),_0x5caa9d=>_0x1be5e0(_0xa58f05,_0x414b63[_0x4082c5(0xed)],_0x5caa9d?_0x4082c5(0xaf):_0x4082c5(0xe3))[_0x4082c5(0xc3)]),_0x4024d2[_0x4082c5(0xd7)]=!0x0,_0x4024d2;}[_0x143da3(0xe8)](_0x5535ad){const _0x7b4f4e=_0x143da3,{locale:_0x5ef2db}=this[_0x7b4f4e(0xb9)],_0xc3d814=this[_0x7b4f4e(0xb9)][_0x7b4f4e(0xb5)][_0x7b4f4e(0xc2)](_0x7b4f4e(0xda));return _0x5535ad[_0x7b4f4e(0xef)](_0x55a7f2=>{const _0x247fb5=_0x7b4f4e,_0x29ba5f=this[_0x247fb5(0xb1)](_0x273cfe,_0x55a7f2[_0x247fb5(0xed)]);return _0x29ba5f[_0x247fb5(0xde)]=!0x0,_0x29ba5f[_0x247fb5(0xe7)]=_0x55a7f2[_0x247fb5(0xe7)],_0x29ba5f[_0x247fb5(0xa9)](_0x247fb5(0xaa))['to'](_0xc3d814,_0x247fb5(0xc9),_0xbadbaa=>_0x1be5e0(_0x5ef2db,_0x55a7f2[_0x247fb5(0xed)],_0xbadbaa?_0x247fb5(0xaf):_0x247fb5(0xe3))[_0x247fb5(0xc3)]),_0x29ba5f;});}[_0x143da3(0xa5)](_0x57d7f6){const _0x1d15be=_0x143da3;return _0x57d7f6[_0x1d15be(0xef)](_0x3aaf94=>{const _0x14282a=_0x1d15be,_0x5bdc45=this[_0x14282a(0xb1)](_0x3d1e92,_0x3aaf94[_0x14282a(0xed)]);return _0x5bdc45[_0x14282a(0xe7)]=_0x3aaf94[_0x14282a(0xe7)],_0x5bdc45[_0x14282a(0xaa)]=_0x3aaf94[_0x14282a(0xa7)],_0x5bdc45;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x565d35}from'ckeditor5/src/core.js';import{FileRepository as _0x3f9268}from'ckeditor5/src/upload.js';import _0x2046c8 from'./uploadcareediting.js';import _0x55d267 from'./utils/uploadutils.js';import{getImageUrls as _0x52b32b}from'./utils/editingutils.js';export default class f extends _0x565d35{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3f9268,_0x2046c8];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3bf9d1=this['editor'];if(!!!_0x3bf9d1['config']['get']('uploadcare'))return;_0x3bf9d1['plugins']['get'](_0x3f9268)['createUploadAdapter']=_0x2bce7f=>new E(_0x2bce7f,_0x3bf9d1),_0x3bf9d1['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x359a6f,{imageElement:_0x39d603,data:_0x444f6a})=>{_0x3bf9d1['model']['change'](_0x2e2223=>{_0x2e2223['setAttribute']('uploadcareImageId',_0x444f6a['uploadcareImageId'],_0x39d603);});});}}class E{constructor(_0x2f343c,_0x7598aa){this['loader']=_0x2f343c,this['editor']=_0x7598aa,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x12c692=this['editor']['config']['get']('uploadcare.pubkey'),_0x2efa55=await this['loader']['file'];return _0x55d267['upload']({'file':_0x2efa55,'publicKey':_0x12c692,'signal':this['controller']['signal'],'onProgress':_0x10d406=>{_0x10d406&&_0x10d406['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x10d406['value']);}})['then'](async _0x5a954c=>{const {imageFallbackUrl:_0x1ad2d0,imageSources:_0x27e73f}=_0x52b32b(_0x5a954c['cdnUrl'],_0x5a954c['imageInfo']['width']);return{'uploadcareImageId':_0x5a954c['uuid'],'default':_0x1ad2d0,'sources':_0x27e73f};})['catch'](()=>{const _0x35b6c4=t('Cannot\x20upload\x20file:')+('\x20'+_0x2efa55['name']+'.');return Promise['reject'](_0x35b6c4);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x353705}from'../uploadcareconfig.js';export function getTranslation(_0x1b0c5c,_0x54f21a,_0x6206d5){const t=_0x1b0c5c['t'],_0x1c12b0=_0x1b0c5c['t'];switch(_0x54f21a){case _0x353705['Local']:return{'text':_0x1c12b0('Insert'===_0x6206d5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1c12b0('From\x20computer')};case _0x353705['URL']:return{'text':'Insert'===_0x6206d5?_0x1c12b0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1c12b0('Via\x20URL')};case _0x353705['Dropbox']:return{'text':t('Insert'===_0x6206d5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x353705['Facebook']:return{'text':t('Insert'===_0x6206d5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x353705['GDrive']:return{'text':t('Insert'===_0x6206d5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x353705['GPhotos']:return{'text':t('Insert'===_0x6206d5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x353705['OneDrive']:return{'text':t('Insert'===_0x6206d5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x54f21a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5b73(_0x21a706,_0x5d1b74){var _0x50ecc8=_0x50ec();return _0x5b73=function(_0x5b7396,_0x270860){_0x5b7396=_0x5b7396-0x1ae;var _0x2c3141=_0x50ecc8[_0x5b7396];return _0x2c3141;},_0x5b73(_0x21a706,_0x5d1b74);}var _0x3b2a03=_0x5b73;(function(_0x83cecf,_0x39d04e){var _0x53e7ef=_0x5b73,_0x42cf82=_0x83cecf();while(!![]){try{var _0xc86e9f=-parseInt(_0x53e7ef(0x1c0))/0x1*(-parseInt(_0x53e7ef(0x1bf))/0x2)+-parseInt(_0x53e7ef(0x1b6))/0x3+-parseInt(_0x53e7ef(0x1b7))/0x4+-parseInt(_0x53e7ef(0x1b3))/0x5*(-parseInt(_0x53e7ef(0x1bd))/0x6)+parseInt(_0x53e7ef(0x1af))/0x7+parseInt(_0x53e7ef(0x1b5))/0x8*(-parseInt(_0x53e7ef(0x1b1))/0x9)+parseInt(_0x53e7ef(0x1ae))/0xa*(parseInt(_0x53e7ef(0x1be))/0xb);if(_0xc86e9f===_0x39d04e)break;else _0x42cf82['push'](_0x42cf82['shift']());}catch(_0x138946){_0x42cf82['push'](_0x42cf82['shift']());}}}(_0x50ec,0xab5a1));import{FocusTracker as _0x3dab2d}from'ckeditor5/src/utils.js';import{View as _0x15ff5a,FocusCycler as _0xe29621}from'ckeditor5/src/ui.js';function _0x50ec(){var _0xd2df38=['getFocusableElement','5506896SPPRcj','4044753ZLDssv','5061248RYSjRG','fire','forwardCycle','focusCycler','div','focusTracker','5418OGLgIm','16379MVtdRU','1183478uhsnaK','2kXYBby','createCollection','10990bXxpXE','6399204NIVKfL','bindTemplate','18bMHVFK','true','5305baZOyr'];_0x50ec=function(){return _0xd2df38;};return _0x50ec();}import'../../theme/uploadcare-form.css';export default class q extends _0x15ff5a{constructor(_0x1714d9){var _0x45cbee=_0x5b73;super(_0x1714d9),this[_0x45cbee(0x1bc)]=new _0x3dab2d(),this[_0x45cbee(0x1ba)]=new _0xe29621({'focusables':this[_0x45cbee(0x1c1)](),'focusTracker':this[_0x45cbee(0x1bc)]});}[_0x3b2a03(0x1b4)](){var _0x2f3e48=_0x3b2a03;return{'tag':_0x2f3e48(0x1bb),'attributes':{'aria-hidden':_0x2f3e48(0x1b2),'tabindex':'0'},'on':{'focus':this[_0x2f3e48(0x1b0)]['to'](()=>{var _0xb087f8=_0x2f3e48;this[_0xb087f8(0x1ba)][_0xb087f8(0x1b8)](_0xb087f8(0x1b9));})}};}}
|