@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250619.0 → 0.0.0-nightly-20250621.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4b3863=_0x214e;(function(_0xad4752,_0x4eef3a){const _0x17fb67=_0x214e,_0x5c9bfa=_0xad4752();while(!![]){try{const _0x59fddd=-parseInt(_0x17fb67(0xbc))/0x1+parseInt(_0x17fb67(0xec))/0x2+parseInt(_0x17fb67(0xb3))/0x3*(-parseInt(_0x17fb67(0xf5))/0x4)+parseInt(_0x17fb67(0xc9))/0x5*(-parseInt(_0x17fb67(0xc8))/0x6)+-parseInt(_0x17fb67(0xb2))/0x7*(-parseInt(_0x17fb67(0xf2))/0x8)+parseInt(_0x17fb67(0xc6))/0x9+parseInt(_0x17fb67(0xd8))/0xa;if(_0x59fddd===_0x4eef3a)break;else _0x5c9bfa['push'](_0x5c9bfa['shift']());}catch(_0x5f138b){_0x5c9bfa['push'](_0x5c9bfa['shift']());}}}(_0x2b67,0xb0eaa));function _0x2b67(){const _0x1804fe=['querySelector','execute','body','add','ctxElement','init','remove','_initSchema','11414439EbdJKd','_configElement','20226GJGUFW','865sFOkqd','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','elementToAttribute','getSelectedElement','afterInit','uc-config','getAttribute','document','locale','_initConversion','selection','ucContextId','_initImageProcessingIndicator','view','map','10064610FlUxRz','contentLanguage','insertImage','uploadcareImageId','replaceImageSource','uploadcare','uploader-','schema','imageBlock','PictureEditing','input[uploadcare-file-input]','once','editing','get','href','removeAttribute','config','extend','appendChild','_initCtx','2142854ArkEBg','UploadcareEditing','editor','_ctxElement','closeMax','uploadcare.pubkey','9144UZuqUl','#uc-icon-arrow-down','listenTo','926556QwEHjR','true','data-uc-image-id','pluginName','isPremiumPlugin','imageInline','isRegistered','fromCharCode','configElement','uploadcareImageReplace','conversion','uc-upload-ctx-provider','downcast','model','join','_initConfig','cleanupImage','upcast','2975HaEEia','18BPBVrg','attributeToAttribute','for','render','uploadcare.uploader','iconHrefResolver','commands','isOfficialPlugin','destroy','1134267IRQSCL','requires'];_0x2b67=function(){return _0x1804fe;};return _0x2b67();}import{Plugin as _0x45134b}from'ckeditor5/src/core.js';function _0x214e(_0x3b322e,_0x206376){const _0x2b6776=_0x2b67();return _0x214e=function(_0x214ef3,_0x3b7679){_0x214ef3=_0x214ef3-0xb2;let _0x42ec81=_0x2b6776[_0x214ef3];return _0x42ec81;},_0x214e(_0x3b322e,_0x206376);}import{Dialog as _0x2884de}from'ckeditor5/src/ui.js';import{createElement as _0xa354a7,global as _0x111a30,uid as _0x40f7f4}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x222127}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x472b88}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x406f12}from'./utils/editingutils.js';export class UploadcareEditing extends _0x45134b{[_0x4b3863(0xc7)]=null;[_0x4b3863(0xef)]=null;static get[_0x4b3863(0xf8)](){const _0x267001=_0x4b3863;return _0x267001(0xed);}static get[_0x4b3863(0xbd)](){const _0x128370=_0x4b3863;return[_0x128370(0xe1),_0x472b88,_0x2884de];}static get[_0x4b3863(0xba)](){return!0x0;}static get[_0x4b3863(0xf9)](){return!0x0;}[_0x4b3863(0xd4)];get[_0x4b3863(0xfd)](){const _0x4d5092=_0x4b3863;return this[_0x4d5092(0xc7)];}get[_0x4b3863(0xc2)](){const _0x149375=_0x4b3863;return this[_0x149375(0xef)];}constructor(_0x4e02a8){const _0x363379=_0x4b3863;super(_0x4e02a8),this[_0x363379(0xd4)]=_0x40f7f4();}[_0x4b3863(0xc3)](){const _0x55086c=_0x4b3863,_0xb4b4c4=this[_0x55086c(0xee)];_0xb4b4c4[_0x55086c(0xb9)][_0x55086c(0xc1)](_0x55086c(0xdd),new _0x222127(_0xb4b4c4));}[_0x4b3863(0xcd)](){const _0x41980d=_0x4b3863;this[_0x41980d(0xc5)](),this[_0x41980d(0xd2)](),this[_0x41980d(0x104)](),this[_0x41980d(0xeb)](),this[_0x41980d(0xd5)](),this[_0x41980d(0xf4)](this[_0x41980d(0xee)],_0x41980d(0xbb),()=>{const _0x53c325=_0x41980d;this[_0x53c325(0xc7)]&&(this[_0x53c325(0xc7)][_0x53c325(0xc4)](),this[_0x53c325(0xc7)]=null),this[_0x53c325(0xef)]&&(this[_0x53c325(0xef)][_0x53c325(0xc4)](),this[_0x53c325(0xef)]=null);const _0x1b0705=_0x111a30[_0x53c325(0xd0)][_0x53c325(0xbe)](_0x53c325(0xe2));_0x1b0705&&_0x1b0705[_0x53c325(0xc4)]();}),async function(_0x429ffe){const _0x57044e=_0x63e864([0x38,0x31,0x41,0x74,0x45,0x42,0x58,0x56,0x4a,0x48,0x63,0x76,0x73,0x4d,0x59,0x6b,0x67,0x54,0x39,0x46,0x6f,0x64,0x43,0x50,0x35,0x44,0x4e,0x6c,0x72,0x7a,0x5a,0x51,0x55,0x6e,0x6d,0x33,0x36,0x77,0x6a,0x69,0x32,0x68,0x70,0x30,0x75,0x61,0x47,0x66,0x4f,0x71,0x52,0x78,0x57,0x62,0x34,0x79,0x4b,0x53,0x37,0x65,0x49,0x4c]),_0x1b89bd=0x2fc52870,_0x23a650=0x2fc24340^_0x1b89bd,_0x14d5fc=window[_0x63e864([0x44,0x61,0x74,0x65])][_0x63e864([0x6e,0x6f,0x77])](),_0x7838a0=_0x429ffe[_0x63e864([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e5c64=new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x301d1a=>{_0x7838a0[_0x63e864([0x6f,0x6e,0x63,0x65])](_0x63e864([0x72,0x65,0x61,0x64,0x79]),_0x301d1a);}),_0x1c67bf={[_0x63e864([0x6b,0x74,0x79])]:_0x63e864([0x45,0x43]),[_0x63e864([0x75,0x73,0x65])]:_0x63e864([0x73,0x69,0x67]),[_0x63e864([0x63,0x72,0x76])]:_0x63e864([0x50,0x2d,0x32,0x35,0x36]),[_0x63e864([0x78])]:_0x63e864([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]),[_0x63e864([0x79])]:_0x63e864([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]),[_0x63e864([0x61,0x6c,0x67])]:_0x63e864([0x45,0x53,0x32,0x35,0x36])},_0x3b1df3=_0x7838a0[_0x63e864([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x63e864([0x67,0x65,0x74])](_0x63e864([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e388f(){let _0xed3379,_0x12c84b=null,_0x46a6e7=null;try{if(_0x3b1df3==_0x63e864([0x47,0x50,0x4c]))return _0x63e864([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xed3379=_0x374999(),!_0xed3379)return _0x63e864([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xed3379[_0x63e864([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x46a6e7=_0x2b8261(_0xed3379[_0x63e864([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xed3379[_0x63e864([0x6a,0x74,0x69])])),await _0xf2ea7a()?_0x38fdbc()?_0x33131c()?_0x63e864([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x191c73()?(_0xed3379[_0x63e864([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x63e864([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x12c84b=_0x3f9ca3(_0x63e864([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xed3379[_0x63e864([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x63e864([0x74,0x72,0x69,0x61,0x6c])&&(_0x12c84b=_0x3f9ca3(_0x63e864([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x257d0a()):_0x63e864([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x63e864([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x63e864([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x63e864([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33131c(){const _0x575ff3=[_0x63e864([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x63e864([0x74,0x72,0x69,0x61,0x6c])][_0x63e864([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xed3379[_0x63e864([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14d5fc/0x3e8:0xe10*_0x23a650;return _0xed3379[_0x63e864([0x65,0x78,0x70])]<_0x575ff3;}function _0x38fdbc(){const _0x47037d=_0xed3379[_0x63e864([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x47037d&&(!!_0x47037d[_0x63e864([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x63e864([0x2a]))||!!_0x47037d[_0x63e864([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x63e864([0x55,0x50,0x4c,0x43])));}function _0x191c73(){const _0x1b2729=_0x214e,_0x55ead3=_0xed3379[_0x63e864([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x55ead3||0x0==_0x55ead3[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f022a}=new URL(window[_0x63e864([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1b2729(0xe6)]);if(_0x55ead3[_0x63e864([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f022a))return!0x0;const _0x264eb4=_0x4f022a[_0x63e864([0x73,0x70,0x6c,0x69,0x74])](_0x63e864([0x2e]));return _0x55ead3[_0x63e864([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30166b=>_0x30166b[_0x63e864([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x63e864([0x2a])))[_0x63e864([0x6d,0x61,0x70])](_0x3b7b9a=>_0x3b7b9a[_0x63e864([0x73,0x70,0x6c,0x69,0x74])](_0x63e864([0x2e])))[_0x63e864([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ca091=>_0x4ca091[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x264eb4[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x63e864([0x6d,0x61,0x70])](_0x412409=>Array(_0x264eb4[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x412409[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x63e864([0x66,0x69,0x6c,0x6c])](_0x412409[0x0]===_0x63e864([0x2a])?_0x63e864([0x2a]):'')[_0x63e864([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x412409))[_0x63e864([0x73,0x6f,0x6d,0x65])](_0x48e08d=>_0x264eb4[_0x63e864([0x65,0x76,0x65,0x72,0x79])]((_0x17a59a,_0x3174de)=>_0x48e08d[_0x3174de]===_0x17a59a||_0x48e08d[_0x3174de]===_0x63e864([0x2a])));}function _0x257d0a(){return _0x12c84b&&_0x46a6e7?new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd8161d,_0x42b2cc)=>{_0x12c84b[_0x63e864([0x74,0x68,0x65,0x6e])](_0xd8161d,_0x42b2cc),_0x46a6e7[_0x63e864([0x74,0x68,0x65,0x6e])](_0x3f439f=>{_0x3f439f!=_0x63e864([0x56,0x61,0x6c,0x69,0x64])&&_0xd8161d(_0x3f439f);},_0x42b2cc);}):_0x12c84b||_0x46a6e7||_0x63e864([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b8261(_0x576d4a,_0x310772){return new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x277fd4=>{if(_0x23c881())return _0x277fd4(_0x63e864([0x56,0x61,0x6c,0x69,0x64]));_0x4ca843(),_0x7838a0[_0x63e864([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x63e864([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3faf4a=!0x1;const _0x48a58a=_0x40f7f4();function _0x467455(_0x265e20){return!!_0x265e20&&(typeof _0x265e20===_0x63e864([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x265e20===_0x63e864([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x265e20[_0x63e864([0x74,0x68,0x65,0x6e])]===_0x63e864([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x265e20[_0x63e864([0x63,0x61,0x74,0x63,0x68])]===_0x63e864([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7bec92(_0x26bbb2){_0xb027c7(_0x26bbb2)[_0x63e864([0x74,0x68,0x65,0x6e])](_0x9d1cb3=>{if(!_0x9d1cb3||_0x9d1cb3[_0x63e864([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x63e864([0x6f,0x6b]))return _0x63e864([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b7229(_0x4fba07(_0x48a58a+_0x310772))!=_0x9d1cb3[_0x63e864([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x63e864([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x63e864([0x56,0x61,0x6c,0x69,0x64]);})[_0x63e864([0x74,0x68,0x65,0x6e])](_0x2a82d8=>(_0x4497a4(),_0x2a82d8),()=>{const _0x5c7770=_0xdb7498();return null==_0x5c7770?(_0x4497a4(),_0x63e864([0x56,0x61,0x6c,0x69,0x64])):_0x63e864(_0x14d5fc-_0x5c7770>(0xbc9ac70^_0x1b89bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x63e864([0x74,0x68,0x65,0x6e])](_0x277fd4)[_0x63e864([0x63,0x61,0x74,0x63,0x68])](()=>{_0x277fd4(_0x63e864([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ab264=0x2ff3c6f0^_0x1b89bd;function _0x4497a4(){const _0x4fbf6f=_0x63e864([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b7229(_0x4fba07(_0x576d4a)),_0x18ee06=_0x107ed0(_0x4b7229(window[_0x63e864([0x4d,0x61,0x74,0x68])][_0x63e864([0x63,0x65,0x69,0x6c])](_0x14d5fc/_0x1ab264)));window[_0x63e864([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x63e864([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fbf6f,_0x18ee06);}function _0xdb7498(){const _0x129ff7=_0x63e864([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b7229(_0x4fba07(_0x576d4a)),_0x2c650f=window[_0x63e864([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x63e864([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x129ff7);return _0x2c650f?window[_0x63e864([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x107ed0(_0x2c650f),0x10)*_0x1ab264:null;}function _0xb027c7(_0x43aaca){return new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30bcdb,_0x33df49)=>{_0x43aaca[_0x63e864([0x74,0x68,0x65,0x6e])](_0x30bcdb,_0x33df49),window[_0x63e864([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x33df49,0x2fc4fcb0^_0x1b89bd);});}}_0x7838a0[_0x63e864([0x6f,0x6e])](_0x63e864([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46aef4,_0x3e9985)=>{if(_0x3e9985[0x0]!=_0x576d4a)return _0x277fd4(_0x63e864([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e9985[0x1]={..._0x3e9985[0x1],[_0x63e864([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48a58a};},{[_0x63e864([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x63e864([0x68,0x69,0x67,0x68])}),_0x7838a0[_0x63e864([0x6f,0x6e])](_0x63e864([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5945b8=>{_0x467455(_0x5945b8[_0x63e864([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3faf4a=!0x0,_0x7bec92(_0x5945b8[_0x63e864([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x63e864([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x63e864([0x6c,0x6f,0x77])}),_0x2e5c64[_0x63e864([0x74,0x68,0x65,0x6e])](()=>{_0x3faf4a||_0x277fd4(_0x63e864([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23c881(){return _0x7838a0[_0x63e864([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x63e864([0x76,0x69,0x65,0x77])][_0x63e864([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x63e864([0x61,0x75,0x74,0x6f]);}function _0x4ca843(){_0x7838a0[_0x63e864([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x63e864([0x76,0x69,0x65,0x77])][_0x63e864([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x63e864([0x61,0x75,0x74,0x6f]);}}function _0x3f9ca3(_0x212aa6){const _0x160393=[new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a30ca=>setTimeout(_0x3a30ca,0x2fcc16bc^_0x1b89bd)),_0x2e5c64[_0x63e864([0x74,0x68,0x65,0x6e])](()=>new window[(_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x344477=>{let _0x440fdd=0x0;_0x7838a0[_0x63e864([0x6d,0x6f,0x64,0x65,0x6c])][_0x63e864([0x6f,0x6e])](_0x63e864([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x523ea2,_0x3eacd3)=>{_0x3eacd3[0x0][_0x63e864([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x440fdd++,_0x440fdd==(0x2fc52988^_0x1b89bd)&&(_0x344477(),_0x523ea2[_0x63e864([0x6f,0x66,0x66])]());});}))];return window[_0x63e864([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x63e864([0x72,0x61,0x63,0x65])](_0x160393)[_0x63e864([0x74,0x68,0x65,0x6e])](()=>_0x212aa6);}async function _0x6d1b89(){await _0x2e5c64,_0x7838a0[_0x63e864([0x6d,0x6f,0x64,0x65,0x6c])][_0x63e864([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x107174,_0x7838a0[_0x63e864([0x6d,0x6f,0x64,0x65,0x6c])][_0x63e864([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x107174,_0x7838a0[_0x63e864([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x63e864([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36d05f(_0x1bc534){const _0x50c908=_0x2d8a1f();_0x7838a0[_0x50c908]=_0x63e864([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bc534,_0x1bc534!=_0x63e864([0x56,0x61,0x6c,0x69,0x64])&&_0x6d1b89();}function _0x2d8a1f(){const _0x2d5c78=window[_0x63e864([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x63e864([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x63e864([0x6e,0x6f,0x77])]())[_0x63e864([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x63e864([0x2e]),'');let _0x2cefbd=_0x63e864([0x41]);for(let _0x16b408=0x0;_0x16b408<_0x2d5c78[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16b408+=0x2){let _0x1bad79=window[_0x63e864([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d5c78[_0x63e864([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16b408,_0x16b408+0x2));_0x1bad79>=_0x57044e[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bad79-=_0x57044e[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2cefbd+=_0x57044e[_0x1bad79];}return _0x2cefbd;}function _0x374999(){const _0x2c142e=_0x3b1df3[_0x63e864([0x73,0x70,0x6c,0x69,0x74])](_0x63e864([0x2e]));if(0x3!=_0x2c142e[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e6c95(_0x2c142e[0x1]);function _0x1e6c95(_0x5afb52){const _0x4ba8fd=_0x360fff(_0x5afb52);return _0x4ba8fd&&_0x29b354()?_0x4ba8fd:null;function _0x29b354(){const _0x1f8cfe=_0x4ba8fd[_0x63e864([0x6a,0x74,0x69])],_0xa16e04=window[_0x63e864([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f8cfe[_0x63e864([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f8cfe[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9a66b0={..._0x4ba8fd,[_0x63e864([0x6a,0x74,0x69])]:_0x1f8cfe[_0x63e864([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f8cfe[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9a66b0[_0x63e864([0x76,0x63])],_0x4fba07(_0x9a66b0)==_0xa16e04;}}}async function _0xf2ea7a(){let _0x4f408d=!0x0;try{const _0xcf1868=_0x3b1df3[_0x63e864([0x73,0x70,0x6c,0x69,0x74])](_0x63e864([0x2e])),[_0x53e41f,_0x5ea97b,_0x41be5f]=_0xcf1868;return _0x4b67db(_0x53e41f),await _0x38a375(_0x53e41f,_0x5ea97b,_0x41be5f),_0x4f408d;}catch{return!0x1;}function _0x4b67db(_0x2a11b6){const _0x3bc5b9=_0x360fff(_0x2a11b6);_0x3bc5b9&&_0x3bc5b9[_0x63e864([0x61,0x6c,0x67])]==_0x63e864([0x45,0x53,0x32,0x35,0x36])||(_0x4f408d=!0x1);}async function _0x38a375(_0xe73dd3,_0x2cfaea,_0x4bb640){const _0x1c4d28=window[_0x63e864([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x63e864([0x66,0x72,0x6f,0x6d])](_0x41a75a(_0x4bb640),_0x2e4950=>_0x2e4950[_0x63e864([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b9563=new window[(_0x63e864([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x63e864([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xe73dd3+_0x63e864([0x2e])+_0x2cfaea),_0xd7782e=window[_0x63e864([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x63e864([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd7782e)return;const _0x383285=await _0xd7782e[_0x63e864([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x63e864([0x6a,0x77,0x6b]),_0x1c67bf,{[_0x63e864([0x6e,0x61,0x6d,0x65])]:_0x63e864([0x45,0x43,0x44,0x53,0x41]),[_0x63e864([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x63e864([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x63e864([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd7782e[_0x63e864([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x63e864([0x6e,0x61,0x6d,0x65])]:_0x63e864([0x45,0x43,0x44,0x53,0x41]),[_0x63e864([0x68,0x61,0x73,0x68])]:{[_0x63e864([0x6e,0x61,0x6d,0x65])]:_0x63e864([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x383285,_0x1c4d28,_0x1b9563)||(_0x4f408d=!0x1);}}function _0x360fff(_0x1d64e1){return _0x1d64e1[_0x63e864([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x63e864([0x65,0x79]))?JSON[_0x63e864([0x70,0x61,0x72,0x73,0x65])](_0x41a75a(_0x1d64e1)):null;}function _0x41a75a(_0x2a848f){return window[_0x63e864([0x61,0x74,0x6f,0x62])](_0x2a848f[_0x63e864([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x63e864([0x2b]))[_0x63e864([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x63e864([0x2f])));}function _0x4fba07(_0x1b4a47){let _0x24b3d8=0x1505;function _0xea93f(_0x725494){for(let _0xdf510=0x0;_0xdf510<_0x725494[_0x63e864([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdf510++){const _0x32db1e=_0x725494[_0x63e864([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xdf510);_0x24b3d8=(_0x24b3d8<<0x5)+_0x24b3d8+_0x32db1e,_0x24b3d8&=_0x24b3d8;}}function _0x5db781(_0x1f3910){Array[_0x63e864([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f3910)?_0x1f3910[_0x63e864([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5db781):_0x1f3910&&typeof _0x1f3910==_0x63e864([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x63e864([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f3910)[_0x63e864([0x73,0x6f,0x72,0x74])]()[_0x63e864([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ebdb1,_0x3c2da0])=>{_0xea93f(_0x1ebdb1),_0x5db781(_0x3c2da0);}):_0xea93f(window[_0x63e864([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f3910));}return _0x5db781(_0x1b4a47),_0x24b3d8>>>0x0;}function _0x4b7229(_0x12d0d1){return _0x12d0d1[_0x63e864([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x63e864([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x63e864([0x30]));}function _0x107ed0(_0x21cff6){return _0x21cff6[_0x63e864([0x73,0x70,0x6c,0x69,0x74])]('')[_0x63e864([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x63e864([0x6a,0x6f,0x69,0x6e])]('');}function _0x107174(){}function _0x63e864(_0x57bf4a){const _0x34e319=_0x214e;return _0x57bf4a[_0x34e319(0xd7)](_0x2a7716=>String[_0x34e319(0xfc)](_0x2a7716))[_0x34e319(0x103)]('');}_0x36d05f(await _0x5e388f());}(this);}[_0x4b3863(0xc5)](){const _0x1d8766=_0x4b3863,_0x46d8c2=this[_0x1d8766(0xee)][_0x1d8766(0x102)][_0x1d8766(0xdf)];_0x46d8c2[_0x1d8766(0xfb)](_0x1d8766(0xe0))&&_0x46d8c2[_0x1d8766(0xe9)](_0x1d8766(0xe0),{'allowAttributes':[_0x1d8766(0xdb)]}),_0x46d8c2[_0x1d8766(0xfb)](_0x1d8766(0xfa))&&_0x46d8c2[_0x1d8766(0xe9)](_0x1d8766(0xfa),{'allowAttributes':[_0x1d8766(0xdb)]});}[_0x4b3863(0xd2)](){const _0x5dfbc7=_0x4b3863,_0x735d44=this[_0x5dfbc7(0xee)];_0x735d44[_0x5dfbc7(0xff)][_0x5dfbc7(0xb5)](_0x5dfbc7(0x101))[_0x5dfbc7(0xb4)]({'model':_0x5dfbc7(0xdb),'view':_0x5dfbc7(0xf7)}),_0x735d44[_0x5dfbc7(0xff)][_0x5dfbc7(0xb5)](_0x5dfbc7(0x106))[_0x5dfbc7(0xcb)]({'model':{'key':_0x5dfbc7(0xdb),'value':_0x17492b=>_0x17492b[_0x5dfbc7(0xcf)](_0x5dfbc7(0xf7))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xc5f6ac=_0x735d44[_0x5dfbc7(0xb9)][_0x5dfbc7(0xe5)](_0x5dfbc7(0xdc));_0xc5f6ac&&this[_0x5dfbc7(0xf4)](_0xc5f6ac,_0x5dfbc7(0x105),(_0x593700,[_0x3a6d83,_0xd04f91])=>{const _0x47fb1d=_0x5dfbc7;_0x3a6d83[_0x47fb1d(0xe7)](_0x47fb1d(0xdb),_0xd04f91);});}[_0x4b3863(0x104)](){const _0x5d3b50=_0x4b3863,_0x583fd2=this[_0x5d3b50(0xee)][_0x5d3b50(0xe8)][_0x5d3b50(0xe5)](_0x5d3b50(0xb7))||{},_0x33bd0c=this[_0x5d3b50(0xee)][_0x5d3b50(0xe8)][_0x5d3b50(0xe5)](_0x5d3b50(0xf1))||'';this[_0x5d3b50(0xc7)]=_0xa354a7(_0x111a30[_0x5d3b50(0xd0)],_0x5d3b50(0xce),{..._0x583fd2,'pubkey':_0x33bd0c,'ctx-name':_0x5d3b50(0xde)+this[_0x5d3b50(0xd4)],'sourceList':'','imgOnly':_0x5d3b50(0xf6),'removeCopyright':_0x5d3b50(0xf6),'localeName':this[_0x5d3b50(0xee)][_0x5d3b50(0xd1)][_0x5d3b50(0xd9)],'externalSourcesEmbedCss':_0x5d3b50(0xca)}),this[_0x5d3b50(0xc7)][_0x5d3b50(0xb8)]=_0x1e7e8a=>{const _0x3ad716=_0x5d3b50;if(_0x3ad716(0xf0)==_0x1e7e8a)return _0x3ad716(0xf3);},_0x111a30[_0x5d3b50(0xd0)][_0x5d3b50(0xc0)][_0x5d3b50(0xea)](this[_0x5d3b50(0xc7)]);}[_0x4b3863(0xeb)](){const _0xd0d7a3=_0x4b3863;this[_0xd0d7a3(0xef)]=_0xa354a7(_0x111a30[_0xd0d7a3(0xd0)],_0xd0d7a3(0x100),{'ctx-name':_0xd0d7a3(0xde)+this[_0xd0d7a3(0xd4)]}),_0x111a30[_0xd0d7a3(0xd0)][_0xd0d7a3(0xc0)][_0xd0d7a3(0xea)](this[_0xd0d7a3(0xef)]);}[_0x4b3863(0xd5)](){const _0x4dc5f6=_0x4b3863,_0x33ea83=this[_0x4dc5f6(0xee)][_0x4dc5f6(0xb9)][_0x4dc5f6(0xe5)](_0x4dc5f6(0xda));_0x33ea83&&this[_0x4dc5f6(0xf4)](_0x33ea83,_0x4dc5f6(0xbf),()=>{const _0xafafd4=_0x4dc5f6,_0x439d3f=this[_0xafafd4(0xee)][_0xafafd4(0x102)][_0xafafd4(0xd0)][_0xafafd4(0xd3)][_0xafafd4(0xcc)]();_0x439d3f&&_0x439d3f[_0xafafd4(0xcf)](_0xafafd4(0xdb))&&this[_0xafafd4(0xee)][_0xafafd4(0xe4)][_0xafafd4(0xd6)][_0xafafd4(0xe3)](_0xafafd4(0xb6),()=>{const _0x4ee321=_0xafafd4;_0x406f12(this[_0x4ee321(0xee)],_0x439d3f);});});const _0x13dc48=this[_0x4dc5f6(0xee)][_0x4dc5f6(0xb9)][_0x4dc5f6(0xe5)](_0x4dc5f6(0xfe));_0x13dc48&&this[_0x4dc5f6(0xf4)](_0x13dc48,_0x4dc5f6(0xbf),()=>{const _0x3b9175=_0x4dc5f6,_0x43be5d=this[_0x3b9175(0xee)][_0x3b9175(0x102)][_0x3b9175(0xd0)][_0x3b9175(0xd3)][_0x3b9175(0xcc)]();_0x43be5d&&_0x43be5d[_0x3b9175(0xcf)](_0x3b9175(0xdb))&&this[_0x3b9175(0xee)][_0x3b9175(0xe4)][_0x3b9175(0xd6)][_0x3b9175(0xe3)](_0x3b9175(0xb6),()=>{const _0x5cefcd=_0x3b9175;_0x406f12(this[_0x5cefcd(0xee)],_0x43be5d);});});}}
|
|
23
|
+
const _0x647b7e=_0x3abe;(function(_0x360759,_0x13d3f2){const _0x3b39ec=_0x3abe,_0x37139c=_0x360759();while(!![]){try{const _0x4e9802=parseInt(_0x3b39ec(0x1ef))/0x1*(-parseInt(_0x3b39ec(0x1e5))/0x2)+parseInt(_0x3b39ec(0x220))/0x3*(-parseInt(_0x3b39ec(0x1dd))/0x4)+parseInt(_0x3b39ec(0x201))/0x5*(parseInt(_0x3b39ec(0x1f9))/0x6)+-parseInt(_0x3b39ec(0x20e))/0x7*(-parseInt(_0x3b39ec(0x221))/0x8)+-parseInt(_0x3b39ec(0x218))/0x9*(parseInt(_0x3b39ec(0x1f1))/0xa)+parseInt(_0x3b39ec(0x229))/0xb+-parseInt(_0x3b39ec(0x215))/0xc;if(_0x4e9802===_0x13d3f2)break;else _0x37139c['push'](_0x37139c['shift']());}catch(_0x3cb7af){_0x37139c['push'](_0x37139c['shift']());}}}(_0x5a39,0x917b6));import{Plugin as _0x534055}from'ckeditor5/src/core.js';import{Dialog as _0x624eff}from'ckeditor5/src/ui.js';import{createElement as _0x3dfc85,global as _0x23523e,uid as _0xf74211}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4ed09e}from'./uploadcarecommand.js';function _0x3abe(_0x3f307a,_0x8d7881){const _0x5a399f=_0x5a39();return _0x3abe=function(_0x3abe36,_0x10c245){_0x3abe36=_0x3abe36-0x1db;let _0x2ffb23=_0x5a399f[_0x3abe36];return _0x2ffb23;},_0x3abe(_0x3f307a,_0x8d7881);}function _0x5a39(){const _0xc92c2b=['contentLanguage','pluginName','destroy','8904IFLdyp','_initSchema','downcast','querySelector','view','uploader-','uploadcareImageId','833880pHwITA','elementToAttribute','config','5967PGToGP','model','insertImage','replaceImageSource','listenTo','add','iconHrefResolver','uploadcare.uploader','3099LTwEFl','928jQYKjv','_initConversion','uploadcareImageReplace','join','conversion','isOfficialPlugin','_initConfig','extend','7915864eezfmO','true','uc-upload-ctx-provider','for','imageInline','PictureEditing','input[uploadcare-file-input]','afterInit','once','attributeToAttribute','isPremiumPlugin','716ipFeNC','fromCharCode','data-uc-image-id','isRegistered','document','_ctxElement','commands','render','6QPfPlD','removeAttribute','uploadcare','selection','requires','UploadcareEditing','editing','schema','getSelectedElement','_initImageProcessingIndicator','42765PijtsV','upcast','15790zuqyvl','#uc-icon-arrow-down','_configElement','uploadcare.pubkey','init','imageBlock','_initCtx','getAttribute','6949722dXyXAQ','uc-config','cleanupImage','execute','href','appendChild','map','ucContextId','5xSFLxl','editor','closeMax','locale','remove','\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','configElement','ctxElement','body','get'];_0x5a39=function(){return _0xc92c2b;};return _0x5a39();}import{UploadcareUploadAdapter as _0x28dce3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4b588b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x534055{[_0x647b7e(0x1f3)]=null;[_0x647b7e(0x1e2)]=null;static get[_0x647b7e(0x20c)](){const _0x2c6af1=_0x647b7e;return _0x2c6af1(0x1ea);}static get[_0x647b7e(0x1e9)](){const _0x333239=_0x647b7e;return[_0x333239(0x22e),_0x28dce3,_0x624eff];}static get[_0x647b7e(0x226)](){return!0x0;}static get[_0x647b7e(0x1dc)](){return!0x0;}[_0x647b7e(0x200)];get[_0x647b7e(0x207)](){const _0x351033=_0x647b7e;return this[_0x351033(0x1f3)];}get[_0x647b7e(0x208)](){const _0x163afc=_0x647b7e;return this[_0x163afc(0x1e2)];}constructor(_0x3a93f7){const _0x49482f=_0x647b7e;super(_0x3a93f7),this[_0x49482f(0x200)]=_0xf74211();}[_0x647b7e(0x1f5)](){const _0x45f457=_0x647b7e,_0x14755f=this[_0x45f457(0x202)];_0x14755f[_0x45f457(0x1e3)][_0x45f457(0x21d)](_0x45f457(0x1e7),new _0x4ed09e(_0x14755f));}[_0x647b7e(0x230)](){const _0x294fd9=_0x647b7e;this[_0x294fd9(0x20f)](),this[_0x294fd9(0x222)](),this[_0x294fd9(0x227)](),this[_0x294fd9(0x1f7)](),this[_0x294fd9(0x1ee)](),this[_0x294fd9(0x21c)](this[_0x294fd9(0x202)],_0x294fd9(0x20d),()=>{const _0x4bfb4f=_0x294fd9;this[_0x4bfb4f(0x1f3)]&&(this[_0x4bfb4f(0x1f3)][_0x4bfb4f(0x205)](),this[_0x4bfb4f(0x1f3)]=null),this[_0x4bfb4f(0x1e2)]&&(this[_0x4bfb4f(0x1e2)][_0x4bfb4f(0x205)](),this[_0x4bfb4f(0x1e2)]=null);const _0x1dd5de=_0x23523e[_0x4bfb4f(0x1e1)][_0x4bfb4f(0x211)](_0x4bfb4f(0x22f));_0x1dd5de&&_0x1dd5de[_0x4bfb4f(0x205)]();}),async function(_0x4efd29){const _0x2bf916=_0x25c4ec([0x4e,0x34,0x41,0x46,0x38,0x59,0x4d,0x45,0x58,0x47,0x4f,0x43,0x51,0x44,0x32,0x67,0x42,0x33,0x52,0x64,0x6f,0x4b,0x61,0x73,0x77,0x5a,0x6e,0x56,0x39,0x4c,0x50,0x68,0x71,0x66,0x6b,0x53,0x49,0x70,0x79,0x35,0x31,0x7a,0x72,0x6c,0x4a,0x48,0x37,0x57,0x75,0x54,0x62,0x63,0x76,0x69,0x6a,0x65,0x6d,0x55,0x30,0x36,0x74,0x78]),_0x2888a2=0x31aa5c0f,_0x37d712=0x31ad376f^_0x2888a2,_0xc41196=window[_0x25c4ec([0x44,0x61,0x74,0x65])][_0x25c4ec([0x6e,0x6f,0x77])](),_0x221557=_0x4efd29[_0x25c4ec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x223cad=new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20bfec=>{_0x221557[_0x25c4ec([0x6f,0x6e,0x63,0x65])](_0x25c4ec([0x72,0x65,0x61,0x64,0x79]),_0x20bfec);}),_0x3724ca={[_0x25c4ec([0x6b,0x74,0x79])]:_0x25c4ec([0x45,0x43]),[_0x25c4ec([0x75,0x73,0x65])]:_0x25c4ec([0x73,0x69,0x67]),[_0x25c4ec([0x63,0x72,0x76])]:_0x25c4ec([0x50,0x2d,0x32,0x35,0x36]),[_0x25c4ec([0x78])]:_0x25c4ec([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]),[_0x25c4ec([0x79])]:_0x25c4ec([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]),[_0x25c4ec([0x61,0x6c,0x67])]:_0x25c4ec([0x45,0x53,0x32,0x35,0x36])},_0x899a91=_0x221557[_0x25c4ec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x25c4ec([0x67,0x65,0x74])](_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a84bb(){let _0x4d334b,_0x3266a9=null,_0x4ca72f=null;try{if(_0x899a91==_0x25c4ec([0x47,0x50,0x4c]))return _0x25c4ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d334b=_0x255183(),!_0x4d334b)return _0x25c4ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d334b[_0x25c4ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ca72f=_0x1bcaf7(_0x4d334b[_0x25c4ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d334b[_0x25c4ec([0x6a,0x74,0x69])])),await _0x3bd583()?_0x46556b()?_0x517033()?_0x25c4ec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29d3cc()?(_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25c4ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3266a9=_0x3b429e(_0x25c4ec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x25c4ec([0x74,0x72,0x69,0x61,0x6c])&&(_0x3266a9=_0x3b429e(_0x25c4ec([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e8057()):_0x25c4ec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x25c4ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x25c4ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x25c4ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x517033(){const _0x37c59e=[_0x25c4ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x25c4ec([0x74,0x72,0x69,0x61,0x6c])][_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc41196/0x3e8:0xe10*_0x37d712;return _0x4d334b[_0x25c4ec([0x65,0x78,0x70])]<_0x37c59e;}function _0x46556b(){const _0x80d27a=_0x4d334b[_0x25c4ec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x80d27a&&(!!_0x80d27a[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c4ec([0x2a]))||!!_0x80d27a[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c4ec([0x55,0x50,0x4c,0x43])));}function _0x29d3cc(){const _0x59400f=_0x3abe,_0x4a3555=_0x4d334b[_0x25c4ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4a3555||0x0==_0x4a3555[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x520008}=new URL(window[_0x25c4ec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x59400f(0x1fd)]);if(_0x4a3555[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x520008))return!0x0;const _0x438df9=_0x520008[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e]));return _0x4a3555[_0x25c4ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2520cc=>_0x2520cc[_0x25c4ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25c4ec([0x2a])))[_0x25c4ec([0x6d,0x61,0x70])](_0x362953=>_0x362953[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e])))[_0x25c4ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe5913=>_0xe5913[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x438df9[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25c4ec([0x6d,0x61,0x70])](_0x3fe27=>Array(_0x438df9[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3fe27[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x25c4ec([0x66,0x69,0x6c,0x6c])](_0x3fe27[0x0]===_0x25c4ec([0x2a])?_0x25c4ec([0x2a]):'')[_0x25c4ec([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3fe27))[_0x25c4ec([0x73,0x6f,0x6d,0x65])](_0x78ac75=>_0x438df9[_0x25c4ec([0x65,0x76,0x65,0x72,0x79])]((_0x1385ec,_0xe08cfa)=>_0x78ac75[_0xe08cfa]===_0x1385ec||_0x78ac75[_0xe08cfa]===_0x25c4ec([0x2a])));}function _0x1e8057(){return _0x3266a9&&_0x4ca72f?new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ca7a1,_0xeb1cdc)=>{_0x3266a9[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x4ca7a1,_0xeb1cdc),_0x4ca72f[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0xa5ad0c=>{_0xa5ad0c!=_0x25c4ec([0x56,0x61,0x6c,0x69,0x64])&&_0x4ca7a1(_0xa5ad0c);},_0xeb1cdc);}):_0x3266a9||_0x4ca72f||_0x25c4ec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1bcaf7(_0x40e35a,_0x58f6ba){return new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cad9f=>{if(_0x371cc3())return _0x4cad9f(_0x25c4ec([0x56,0x61,0x6c,0x69,0x64]));_0x1d114f(),_0x221557[_0x25c4ec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x25c4ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x531694=!0x1;const _0x3df78e=_0xf74211();function _0x13276b(_0x4e1e3f){return!!_0x4e1e3f&&(typeof _0x4e1e3f===_0x25c4ec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e1e3f===_0x25c4ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e1e3f[_0x25c4ec([0x74,0x68,0x65,0x6e])]===_0x25c4ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e1e3f[_0x25c4ec([0x63,0x61,0x74,0x63,0x68])]===_0x25c4ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x696d23(_0x3d3d32){_0x2bdf43(_0x3d3d32)[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x38b5ca=>{if(!_0x38b5ca||_0x38b5ca[_0x25c4ec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x25c4ec([0x6f,0x6b]))return _0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f3e41(_0x30c266(_0x3df78e+_0x58f6ba))!=_0x38b5ca[_0x25c4ec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x25c4ec([0x56,0x61,0x6c,0x69,0x64]);})[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x7fa639=>(_0x1a514d(),_0x7fa639),()=>{const _0xa60be6=_0x4f2a5d();return null==_0xa60be6?(_0x1a514d(),_0x25c4ec([0x56,0x61,0x6c,0x69,0x64])):_0x25c4ec(_0xc41196-_0xa60be6>(0x15a6d80f^_0x2888a2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x4cad9f)[_0x25c4ec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cad9f(_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xfed880=0x319cb28f^_0x2888a2;function _0x1a514d(){const _0x8f501=_0x25c4ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f3e41(_0x30c266(_0x40e35a)),_0x295a22=_0x1e11f4(_0x1f3e41(window[_0x25c4ec([0x4d,0x61,0x74,0x68])][_0x25c4ec([0x63,0x65,0x69,0x6c])](_0xc41196/_0xfed880)));window[_0x25c4ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25c4ec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8f501,_0x295a22);}function _0x4f2a5d(){const _0x338364=_0x25c4ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f3e41(_0x30c266(_0x40e35a)),_0x5cd1b5=window[_0x25c4ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x25c4ec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x338364);return _0x5cd1b5?window[_0x25c4ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e11f4(_0x5cd1b5),0x10)*_0xfed880:null;}function _0x2bdf43(_0x470e75){return new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cee93,_0x1644bd)=>{_0x470e75[_0x25c4ec([0x74,0x68,0x65,0x6e])](_0x4cee93,_0x1644bd),window[_0x25c4ec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1644bd,0x31ab88cf^_0x2888a2);});}}_0x221557[_0x25c4ec([0x6f,0x6e])](_0x25c4ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24a157,_0x46f25a)=>{if(_0x46f25a[0x0]!=_0x40e35a)return _0x4cad9f(_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46f25a[0x1]={..._0x46f25a[0x1],[_0x25c4ec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3df78e};},{[_0x25c4ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25c4ec([0x68,0x69,0x67,0x68])}),_0x221557[_0x25c4ec([0x6f,0x6e])](_0x25c4ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28ffcb=>{_0x13276b(_0x28ffcb[_0x25c4ec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x531694=!0x0,_0x696d23(_0x28ffcb[_0x25c4ec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x25c4ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x25c4ec([0x6c,0x6f,0x77])}),_0x223cad[_0x25c4ec([0x74,0x68,0x65,0x6e])](()=>{_0x531694||_0x4cad9f(_0x25c4ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x371cc3(){return _0x221557[_0x25c4ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25c4ec([0x76,0x69,0x65,0x77])][_0x25c4ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x25c4ec([0x61,0x75,0x74,0x6f]);}function _0x1d114f(){_0x221557[_0x25c4ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x25c4ec([0x76,0x69,0x65,0x77])][_0x25c4ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x25c4ec([0x61,0x75,0x74,0x6f]);}}function _0x3b429e(_0x475b5b){const _0x272b3e=[new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7eb9db=>setTimeout(_0x7eb9db,0x31a362c3^_0x2888a2)),_0x223cad[_0x25c4ec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x517a94=>{let _0x52ca8=0x0;_0x221557[_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c4ec([0x6f,0x6e])](_0x25c4ec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1226df,_0x434f7a)=>{_0x434f7a[0x0][_0x25c4ec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52ca8++,_0x52ca8==(0x31aa5df7^_0x2888a2)&&(_0x517a94(),_0x1226df[_0x25c4ec([0x6f,0x66,0x66])]());});}))];return window[_0x25c4ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x25c4ec([0x72,0x61,0x63,0x65])](_0x272b3e)[_0x25c4ec([0x74,0x68,0x65,0x6e])](()=>_0x475b5b);}async function _0x5ec1d4(){await _0x223cad,_0x221557[_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c4ec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c1c21,_0x221557[_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x25c4ec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c1c21,_0x221557[_0x25c4ec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x25c4ec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25ac4c(_0x416e67){const _0x5be85b=_0x102e0d();_0x221557[_0x5be85b]=_0x25c4ec([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x416e67,_0x416e67!=_0x25c4ec([0x56,0x61,0x6c,0x69,0x64])&&_0x5ec1d4();}function _0x102e0d(){const _0xdc7a3f=window[_0x25c4ec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x25c4ec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x25c4ec([0x6e,0x6f,0x77])]())[_0x25c4ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x25c4ec([0x2e]),'');let _0x11f118=_0x25c4ec([0x4e]);for(let _0x310d08=0x0;_0x310d08<_0xdc7a3f[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x310d08+=0x2){let _0x171120=window[_0x25c4ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdc7a3f[_0x25c4ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x310d08,_0x310d08+0x2));_0x171120>=_0x2bf916[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x171120-=_0x2bf916[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11f118+=_0x2bf916[_0x171120];}return _0x11f118;}function _0x255183(){const _0x29879e=_0x899a91[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e]));if(0x3!=_0x29879e[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45b334(_0x29879e[0x1]);function _0x45b334(_0x5d46cb){const _0x7270f4=_0xe28410(_0x5d46cb);return _0x7270f4&&_0x2d572f()?_0x7270f4:null;function _0x2d572f(){const _0x1f6089=_0x7270f4[_0x25c4ec([0x6a,0x74,0x69])],_0x5608b1=window[_0x25c4ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f6089[_0x25c4ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f6089[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2959a8={..._0x7270f4,[_0x25c4ec([0x6a,0x74,0x69])]:_0x1f6089[_0x25c4ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f6089[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2959a8[_0x25c4ec([0x76,0x63])],_0x30c266(_0x2959a8)==_0x5608b1;}}}async function _0x3bd583(){let _0x1b1037=!0x0;try{const _0x430f5d=_0x899a91[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])](_0x25c4ec([0x2e])),[_0x1c3763,_0x12f3da,_0x2d7d56]=_0x430f5d;return _0x31c3b2(_0x1c3763),await _0x348065(_0x1c3763,_0x12f3da,_0x2d7d56),_0x1b1037;}catch{return!0x1;}function _0x31c3b2(_0x3ad3ab){const _0x9b37ad=_0xe28410(_0x3ad3ab);_0x9b37ad&&_0x9b37ad[_0x25c4ec([0x61,0x6c,0x67])]==_0x25c4ec([0x45,0x53,0x32,0x35,0x36])||(_0x1b1037=!0x1);}async function _0x348065(_0xf8a247,_0x4a4b7f,_0x4161cc){const _0x29d356=window[_0x25c4ec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x25c4ec([0x66,0x72,0x6f,0x6d])](_0x3e62d6(_0x4161cc),_0x413cc3=>_0x413cc3[_0x25c4ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a1132=new window[(_0x25c4ec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x25c4ec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf8a247+_0x25c4ec([0x2e])+_0x4a4b7f),_0x1d85ac=window[_0x25c4ec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x25c4ec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d85ac)return;const _0x47ee71=await _0x1d85ac[_0x25c4ec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x25c4ec([0x6a,0x77,0x6b]),_0x3724ca,{[_0x25c4ec([0x6e,0x61,0x6d,0x65])]:_0x25c4ec([0x45,0x43,0x44,0x53,0x41]),[_0x25c4ec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x25c4ec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x25c4ec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d85ac[_0x25c4ec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x25c4ec([0x6e,0x61,0x6d,0x65])]:_0x25c4ec([0x45,0x43,0x44,0x53,0x41]),[_0x25c4ec([0x68,0x61,0x73,0x68])]:{[_0x25c4ec([0x6e,0x61,0x6d,0x65])]:_0x25c4ec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47ee71,_0x29d356,_0x2a1132)||(_0x1b1037=!0x1);}}function _0xe28410(_0x4916cc){return _0x4916cc[_0x25c4ec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x25c4ec([0x65,0x79]))?JSON[_0x25c4ec([0x70,0x61,0x72,0x73,0x65])](_0x3e62d6(_0x4916cc)):null;}function _0x3e62d6(_0x57683d){return window[_0x25c4ec([0x61,0x74,0x6f,0x62])](_0x57683d[_0x25c4ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x25c4ec([0x2b]))[_0x25c4ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x25c4ec([0x2f])));}function _0x30c266(_0x80ed3a){let _0x25795b=0x1505;function _0x248528(_0x15f795){for(let _0x33cf00=0x0;_0x33cf00<_0x15f795[_0x25c4ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33cf00++){const _0x4bec40=_0x15f795[_0x25c4ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x33cf00);_0x25795b=(_0x25795b<<0x5)+_0x25795b+_0x4bec40,_0x25795b&=_0x25795b;}}function _0xa026de(_0x8cc4fd){Array[_0x25c4ec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8cc4fd)?_0x8cc4fd[_0x25c4ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa026de):_0x8cc4fd&&typeof _0x8cc4fd==_0x25c4ec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x25c4ec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8cc4fd)[_0x25c4ec([0x73,0x6f,0x72,0x74])]()[_0x25c4ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1243a9,_0x212d55])=>{_0x248528(_0x1243a9),_0xa026de(_0x212d55);}):_0x248528(window[_0x25c4ec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8cc4fd));}return _0xa026de(_0x80ed3a),_0x25795b>>>0x0;}function _0x1f3e41(_0x1b838a){return _0x1b838a[_0x25c4ec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x25c4ec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x25c4ec([0x30]));}function _0x1e11f4(_0x4f96d0){return _0x4f96d0[_0x25c4ec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x25c4ec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x25c4ec([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c1c21(){}function _0x25c4ec(_0xbec39c){const _0x4810ad=_0x3abe;return _0xbec39c[_0x4810ad(0x1ff)](_0x2c487e=>String[_0x4810ad(0x1de)](_0x2c487e))[_0x4810ad(0x224)]('');}_0x25ac4c(await _0x1a84bb());}(this);}[_0x647b7e(0x20f)](){const _0x5cab71=_0x647b7e,_0x4b4bb5=this[_0x5cab71(0x202)][_0x5cab71(0x219)][_0x5cab71(0x1ec)];_0x4b4bb5[_0x5cab71(0x1e0)](_0x5cab71(0x1f6))&&_0x4b4bb5[_0x5cab71(0x228)](_0x5cab71(0x1f6),{'allowAttributes':[_0x5cab71(0x214)]}),_0x4b4bb5[_0x5cab71(0x1e0)](_0x5cab71(0x22d))&&_0x4b4bb5[_0x5cab71(0x228)](_0x5cab71(0x22d),{'allowAttributes':[_0x5cab71(0x214)]});}[_0x647b7e(0x222)](){const _0x1e79d5=_0x647b7e,_0x6a1777=this[_0x1e79d5(0x202)];_0x6a1777[_0x1e79d5(0x225)][_0x1e79d5(0x22c)](_0x1e79d5(0x210))[_0x1e79d5(0x1db)]({'model':_0x1e79d5(0x214),'view':_0x1e79d5(0x1df)}),_0x6a1777[_0x1e79d5(0x225)][_0x1e79d5(0x22c)](_0x1e79d5(0x1f0))[_0x1e79d5(0x216)]({'model':{'key':_0x1e79d5(0x214),'value':_0x2de14b=>_0x2de14b[_0x1e79d5(0x1f8)](_0x1e79d5(0x1df))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x20e550=_0x6a1777[_0x1e79d5(0x1e3)][_0x1e79d5(0x20a)](_0x1e79d5(0x21b));_0x20e550&&this[_0x1e79d5(0x21c)](_0x20e550,_0x1e79d5(0x1fb),(_0x2efca7,[_0x28455d,_0x129b82])=>{const _0x401d09=_0x1e79d5;_0x28455d[_0x401d09(0x1e6)](_0x401d09(0x214),_0x129b82);});}[_0x647b7e(0x227)](){const _0x17e5aa=_0x647b7e,_0x292641=this[_0x17e5aa(0x202)][_0x17e5aa(0x217)][_0x17e5aa(0x20a)](_0x17e5aa(0x21f))||{},_0xdd76b0=this[_0x17e5aa(0x202)][_0x17e5aa(0x217)][_0x17e5aa(0x20a)](_0x17e5aa(0x1f4))||'';this[_0x17e5aa(0x1f3)]=_0x3dfc85(_0x23523e[_0x17e5aa(0x1e1)],_0x17e5aa(0x1fa),{..._0x292641,'pubkey':_0xdd76b0,'ctx-name':_0x17e5aa(0x213)+this[_0x17e5aa(0x200)],'sourceList':'','imgOnly':_0x17e5aa(0x22a),'removeCopyright':_0x17e5aa(0x22a),'localeName':this[_0x17e5aa(0x202)][_0x17e5aa(0x204)][_0x17e5aa(0x20b)],'externalSourcesEmbedCss':_0x17e5aa(0x206)}),this[_0x17e5aa(0x1f3)][_0x17e5aa(0x21e)]=_0x436c80=>{const _0x1eec13=_0x17e5aa;if(_0x1eec13(0x203)==_0x436c80)return _0x1eec13(0x1f2);},_0x23523e[_0x17e5aa(0x1e1)][_0x17e5aa(0x209)][_0x17e5aa(0x1fe)](this[_0x17e5aa(0x1f3)]);}[_0x647b7e(0x1f7)](){const _0x4ca5f3=_0x647b7e;this[_0x4ca5f3(0x1e2)]=_0x3dfc85(_0x23523e[_0x4ca5f3(0x1e1)],_0x4ca5f3(0x22b),{'ctx-name':_0x4ca5f3(0x213)+this[_0x4ca5f3(0x200)]}),_0x23523e[_0x4ca5f3(0x1e1)][_0x4ca5f3(0x209)][_0x4ca5f3(0x1fe)](this[_0x4ca5f3(0x1e2)]);}[_0x647b7e(0x1ee)](){const _0x58991c=_0x647b7e,_0x34647d=this[_0x58991c(0x202)][_0x58991c(0x1e3)][_0x58991c(0x20a)](_0x58991c(0x21a));_0x34647d&&this[_0x58991c(0x21c)](_0x34647d,_0x58991c(0x1fc),()=>{const _0x43ec2c=_0x58991c,_0x4413c1=this[_0x43ec2c(0x202)][_0x43ec2c(0x219)][_0x43ec2c(0x1e1)][_0x43ec2c(0x1e8)][_0x43ec2c(0x1ed)]();_0x4413c1&&_0x4413c1[_0x43ec2c(0x1f8)](_0x43ec2c(0x214))&&this[_0x43ec2c(0x202)][_0x43ec2c(0x1eb)][_0x43ec2c(0x212)][_0x43ec2c(0x231)](_0x43ec2c(0x1e4),()=>{const _0x16cb7d=_0x43ec2c;_0x4b588b(this[_0x16cb7d(0x202)],_0x4413c1);});});const _0x2ff9d6=this[_0x58991c(0x202)][_0x58991c(0x1e3)][_0x58991c(0x20a)](_0x58991c(0x223));_0x2ff9d6&&this[_0x58991c(0x21c)](_0x2ff9d6,_0x58991c(0x1fc),()=>{const _0x2dbf8f=_0x58991c,_0x45400e=this[_0x2dbf8f(0x202)][_0x2dbf8f(0x219)][_0x2dbf8f(0x1e1)][_0x2dbf8f(0x1e8)][_0x2dbf8f(0x1ed)]();_0x45400e&&_0x45400e[_0x2dbf8f(0x1f8)](_0x2dbf8f(0x214))&&this[_0x2dbf8f(0x202)][_0x2dbf8f(0x1eb)][_0x2dbf8f(0x212)][_0x2dbf8f(0x231)](_0x2dbf8f(0x1e4),()=>{const _0x5d13fe=_0x2dbf8f;_0x4b588b(this[_0x5d13fe(0x202)],_0x45400e);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2e006f,ObservableMixin as _0x513fd8}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x560d5e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5a6b11}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4860a4}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xbe5b7a}from'../../utils/uploadutils.js';import{getImageUrls as _0x19b11f,getImageDimension as _0x3a1b87}from'../../utils/editingutils.js';import{isAncestor as _0x22ac85}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x513fd8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x579ff6,_0x38f95e,_0x4b3f44){super(),this['_editor']=_0x579ff6,this['_dialog']=_0x38f95e,this['_imageElement']=_0x4b3f44,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 _0x3550ce=this['_imageElement'],_0x251ff7=_0x3550ce['getAttribute']('uploadcareImageId'),_0x953e37=_0x3550ce['getAttribute']('src');if(_0x251ff7)await this['_loadImageInfo'](_0x251ff7,_0x953e37);else{if(this['_imageCache']['has'](_0x953e37)){const _0x231298=this['_imageCache']['get'](_0x953e37);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x231298['url'],this['imageDimension']=_0x231298['dimension'],this['imageId']=_0x231298['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x531c7c}=this['_editor'],t=_0x531c7c['t'],_0x19f99f=new _0x4860a4(_0x531c7c,this['imageStatus'],this['_attributes']);_0x19f99f['bind']('status')['to'](this,'imageStatus'),_0x19f99f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x19f99f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x19f99f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x19f99f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5a6b11,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x19f99f,'position':_0x560d5e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x19f99f['focus']();},'onHide':()=>{_0x19f99f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x440aaf=>!_0x22ac85(_0x440aaf,_0x19f99f['element'])}});}['_loadImageInfo'](_0x4cc8b0,_0x3b4b3c){return _0xbe5b7a['getInfo'](_0x4cc8b0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x36becc=>{const {width:_0x1b6111,height:_0x8471d9}=_0x36becc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b4b3c,this['imageDimension']={'width':_0x1b6111,'height':_0x8471d9},this['imageId']=_0x4cc8b0;})['catch'](_0x1ed6bb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1ed6bb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x36c18f,_0x1bce32){return this['_getImageAsFile'](_0x36c18f)['then'](_0x3d2944=>_0xbe5b7a['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1bce32['signal'],'file':_0x3d2944,'onProgress':_0x228a60=>{_0x228a60&&_0x228a60['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x228a60['value']));}}))['then'](_0x3060b1=>{const {width:_0x4f6a7e,height:_0x56ff99}=_0x3060b1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3060b1['cdnUrl'],this['imageDimension']={'width':_0x4f6a7e,'height':_0x56ff99},this['imageId']=_0x3060b1['uuid'],this['imageUploadProgress']=null;const _0x22af8d=_0x36c18f['getAttribute']('src');this['_imageCache']['set'](_0x22af8d,{'id':_0x3060b1['uuid'],'url':_0x3060b1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x58834b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x58834b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2a0987,_0x400b2c){_0x2a0987['on']('apply',(_0x288c96,_0x4a5687)=>{this['_replaceImage'](_0x400b2c,_0x4a5687['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2a0987['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2a0987['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x7c772,_0x1fc270,_0xdb0233){const _0x480605=this['_editor'],{width:_0x158a3c,height:_0x296086}=_0x3a1b87(_0x1fc270,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f88e6,imageSources:_0x2da71e}=_0x19b11f(_0x1fc270,_0x158a3c);_0x480605['model']['change'](_0x489e02=>{if('$graveyard'===_0x7c772['root']['rootName']){_0x480605['execute']('insertImage',{'imageType':_0x7c772['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x7c772['getAttributes']()),'uploadcareImageId':_0xdb0233,'src':_0x4f88e6,'sources':_0x2da71e,'width':_0x158a3c,'height':_0x296086}});const _0x2d6776=_0x7c772['getChildren']();_0x7c772=_0x480605['model']['document']['selection']['getSelectedElement']();for(const _0x120a45 of _0x2d6776)_0x489e02['append'](_0x489e02['cloneElement'](_0x120a45),_0x7c772);}else _0x489e02['setSelection'](_0x7c772,'on'),_0x480605['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x7c772['getAttributes']()),'uploadcareImageId':_0xdb0233,'src':_0x4f88e6,'sources':_0x2da71e,'width':_0x158a3c,'height':_0x296086},_0x7c772);_0x489e02['setSelection'](_0x7c772,'on');});}async['_getImageAsFile'](_0x7cb635){const _0x526f71=_0x2e006f['window'],_0x4ceb41=_0x2e006f['document']['location']['href'],_0x8f2cb7=new _0x526f71['URL'](_0x7cb635['getAttribute']('src'),_0x4ceb41);if('data:'===_0x8f2cb7['protocol']){const _0x5e710e=_0x8f2cb7['href']['split'](','),_0x876046=_0x5e710e[0x0]['match'](/:(.*?);/)[0x1],_0x1a6db5=_0x876046['split']('/')[0x1],_0x16747b=_0x526f71['atob'](_0x5e710e[_0x5e710e['length']-0x1]);let _0x3bbfbc=_0x16747b['length'];const _0x1ca766=new _0x526f71['Uint8Array'](_0x3bbfbc);for(;_0x3bbfbc--;)_0x1ca766[_0x3bbfbc]=_0x16747b['charCodeAt'](_0x3bbfbc);return new _0x526f71['File']([_0x1ca766],'image.'+_0x1a6db5,{'type':_0x876046});}const _0x6e6457=_0x8f2cb7['href']['split']('/'),_0x4a7da8=_0x6e6457[_0x6e6457['length']-0x1],_0x50df4a=_0x4a7da8['split']('.')[0x1];return _0x526f71['fetch'](_0x8f2cb7['href'])['then'](_0x4e09ac=>_0x4e09ac['clone']()['blob']())['then'](_0x216149=>new _0x526f71['File']([_0x216149],_0x4a7da8,{'type':'image/'+_0x50df4a}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x455e(_0x2ab975,_0x37f765){const _0x1f7e42=_0x1f7e();return _0x455e=function(_0x455e4b,_0x3c01ea){_0x455e4b=_0x455e4b-0xbb;let _0x448e39=_0x1f7e42[_0x455e4b];return _0x448e39;},_0x455e(_0x2ab975,_0x37f765);}(function(_0x167c5b,_0x36d5aa){const _0x3f47c9=_0x455e,_0x3bc298=_0x167c5b();while(!![]){try{const _0x13acfc=parseInt(_0x3f47c9(0xbb))/0x1+parseInt(_0x3f47c9(0xc2))/0x2*(-parseInt(_0x3f47c9(0xc3))/0x3)+parseInt(_0x3f47c9(0xbe))/0x4+parseInt(_0x3f47c9(0xc0))/0x5+-parseInt(_0x3f47c9(0xca))/0x6*(-parseInt(_0x3f47c9(0xcb))/0x7)+parseInt(_0x3f47c9(0xc8))/0x8+-parseInt(_0x3f47c9(0xc6))/0x9;if(_0x13acfc===_0x36d5aa)break;else _0x3bc298['push'](_0x3bc298['shift']());}catch(_0x3b8826){_0x3bc298['push'](_0x3bc298['shift']());}}}(_0x1f7e,0x68d71));function _0x1f7e(){const _0x465c37=['3538810xeKkKF','image-edit','56094zzMOkD','72tVdLOz','setTemplate','ck-uploadcare-theme','21415878tpBVpy','imageSrc','4512496xNTshT','bindTemplate','4286616rEEtSi','7wgbkSA','816134OXTedM','set','uc-light','2718804dxJRXL','uc-cloud-image-editor'];_0x1f7e=function(){return _0x465c37;};return _0x1f7e();}import{View as _0x5c0d3f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x5c0d3f{constructor(_0x4c62c4,_0x3f843f){const _0x4c5796=_0x455e;super(_0x4c62c4);const _0x25d323=this[_0x4c5796(0xc9)];this[_0x4c5796(0xbc)](_0x4c5796(0xc7),''),this[_0x4c5796(0xc4)]({'tag':_0x4c5796(0xbf),'attributes':{..._0x3f843f,'class':[_0x4c5796(0xbd),_0x4c5796(0xc5)],'ctx-name':_0x4c5796(0xc1),'cdn-url':_0x25d323['to'](_0x4c5796(0xc7))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x18247d}from'ckeditor5/src/icons.js';import{ButtonView as _0xfb1c52,IconView as _0x4a093b,View as _0x2ff01a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x2ff01a{constructor(_0x46e56b){super(_0x46e56b);const t=_0x46e56b['t'];this['set']('errorType',null);const _0x3c01fa=new _0xfb1c52(_0x46e56b);_0x3c01fa['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3c01fa['withText']=!0x0,_0x3c01fa['class']='ck-button-action',_0x3c01fa['on']('execute',()=>{this['fire']('retry');}),_0x3c01fa['bind']('isVisible')['to'](this,'errorType',_0x344af6=>'NotFound'!==_0x344af6);const _0xf70d4=new _0x4a093b();_0xf70d4['content']=_0x18247d,_0xf70d4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5d45f0=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':[_0xf70d4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5d45f0['to']('errorType',_0xec55d6=>t('NotFound'!==_0xec55d6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3c01fa]},{'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 _0x8f82bb,View as _0x49afb1}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x49afb1{constructor(_0x3c3765){super(_0x3c3765);const t=_0x3c3765['t'],_0x5dac07=this['bindTemplate'],_0x4dc842=new _0x8f82bb();_0x4dc842['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':[_0x4dc842,{'text':_0x5dac07['to']('imageUploadProgress',_0x2dda69=>t('Loading\x20image...')+'\x20('+(_0x2dda69||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 _0x2d7858=_0x20ec;function _0x20ec(_0x16a6b7,_0x35f10a){const _0x29b4fd=_0x29b4();return _0x20ec=function(_0x20ec6b,_0x30252c){_0x20ec6b=_0x20ec6b-0x193;let _0x3b9416=_0x29b4fd[_0x20ec6b];return _0x3b9416;},_0x20ec(_0x16a6b7,_0x35f10a);}(function(_0xb81f1d,_0x1b9213){const _0x4a9fae=_0x20ec,_0x3c14f3=_0xb81f1d();while(!![]){try{const _0x397261=-parseInt(_0x4a9fae(0x1b9))/0x1+-parseInt(_0x4a9fae(0x1ba))/0x2+parseInt(_0x4a9fae(0x1c5))/0x3+parseInt(_0x4a9fae(0x1c6))/0x4+parseInt(_0x4a9fae(0x1a8))/0x5+parseInt(_0x4a9fae(0x1b3))/0x6*(-parseInt(_0x4a9fae(0x1c7))/0x7)+parseInt(_0x4a9fae(0x1ac))/0x8;if(_0x397261===_0x1b9213)break;else _0x3c14f3['push'](_0x3c14f3['shift']());}catch(_0x5b3106){_0x3c14f3['push'](_0x3c14f3['shift']());}}}(_0x29b4,0x63061));import{View as _0x48c6c5}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x17fa56}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x4a0bf6}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x4cd2ad}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1ba314}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x29b4(){const _0x53e456=['nodeName','querySelector','8991896tHjbaY','fire','once','_items','cancel','error','_addUploadcareImageEditorListeners','18IVSZSF','set','div','_waitForImageEditorComponent','addMany','ck-reset_all-excluded','541091VqjpEo','428780nnxZKf','_setView','_addErrorViewListeners','clear','createCollection','toLowerCase','addEventListener','add','_focusableView','target','observe','188844fHcWzh','321816wINaVs','637063FputyC','apply','change:status','_loadingView','_editingView','render','uploading','length','status','_errorView','retry','getFocusableElement','addedNodes','cdnUrl','detail','uc-cloud-image-editor','element','ck-uploadcare-form','ready','disconnect','focus','filter','833600rmKHuQ','setTemplate'];_0x29b4=function(){return _0x53e456;};return _0x29b4();}export class UploadcareImageEditFormView extends _0x1ba314{[_0x2d7858(0x1af)];[_0x2d7858(0x195)];[_0x2d7858(0x19b)];[_0x2d7858(0x196)];[_0x2d7858(0x1c2)];constructor(_0x5d6579,_0x27426c,_0x147ae0){const _0x2b9f7d=_0x2d7858;super(_0x5d6579),this[_0x2b9f7d(0x1af)]=this[_0x2b9f7d(0x1be)](),this[_0x2b9f7d(0x195)]=new _0x17fa56(_0x5d6579),this[_0x2b9f7d(0x19b)]=new _0x4a0bf6(_0x5d6579),this[_0x2b9f7d(0x196)]=new _0x4cd2ad(_0x5d6579,_0x147ae0),this[_0x2b9f7d(0x1c2)]=new _0x48c6c5(_0x5d6579),this[_0x2b9f7d(0x1c2)][_0x2b9f7d(0x1a9)](this[_0x2b9f7d(0x19d)]()),this[_0x2b9f7d(0x1b4)](_0x2b9f7d(0x19a),_0x27426c),this[_0x2b9f7d(0x1a9)]({'tag':_0x2b9f7d(0x1b5),'attributes':{'class':['ck',_0x2b9f7d(0x1b8),_0x2b9f7d(0x1a3)],'tabindex':'-1'},'children':this[_0x2b9f7d(0x1af)]}),this[_0x2b9f7d(0x1bb)](),this[_0x2b9f7d(0x1ae)](_0x2b9f7d(0x197),()=>{const _0x544c43=_0x2b9f7d;this[_0x544c43(0x1b6)](this[_0x544c43(0x1a2)],_0x1774c4=>{const _0x450731=_0x544c43;this[_0x450731(0x1b2)](_0x1774c4);});}),this['on'](_0x2b9f7d(0x194),()=>{const _0x4182ca=_0x2b9f7d;this[_0x4182ca(0x1bb)]();}),this[_0x2b9f7d(0x1bc)]();}[_0x2d7858(0x1a6)](){const _0x4f912d=_0x2d7858;this[_0x4f912d(0x1a2)][_0x4f912d(0x1a6)]();}[_0x2d7858(0x1bb)](){const _0x4ee73c=_0x2d7858;switch(this[_0x4ee73c(0x1af)][_0x4ee73c(0x1bd)](),this[_0x4ee73c(0x19a)]){case _0x4ee73c(0x198):this[_0x4ee73c(0x1af)][_0x4ee73c(0x1c1)](this[_0x4ee73c(0x195)]);break;case _0x4ee73c(0x1b1):this[_0x4ee73c(0x1af)][_0x4ee73c(0x1c1)](this[_0x4ee73c(0x19b)]);break;case _0x4ee73c(0x1a4):this[_0x4ee73c(0x1af)][_0x4ee73c(0x1b7)]([this[_0x4ee73c(0x196)],this[_0x4ee73c(0x1c2)]]);}}[_0x2d7858(0x1b6)](_0x515328,_0x1a1b37){const _0x10a955=_0x2d7858,_0x402244=_0x10a955(0x1a1),_0x49f4db=_0x515328[_0x10a955(0x1ab)](_0x402244);if(_0x49f4db)return _0x1a1b37(_0x49f4db);const _0x4538e8=new MutationObserver(_0x21a552=>{const _0x413f47=_0x10a955,_0x44c76c=_0x21a552[_0x413f47(0x1a7)](_0x2958c4=>_0x2958c4[_0x413f47(0x1c3)]===_0x515328&&_0x2958c4[_0x413f47(0x19e)][_0x413f47(0x199)]>0x0&&_0x2958c4[_0x413f47(0x19e)][0x0][_0x413f47(0x1aa)][_0x413f47(0x1bf)]()===_0x402244);_0x44c76c[_0x413f47(0x199)]&&(_0x4538e8[_0x413f47(0x1a5)](),_0x1a1b37(_0x44c76c[0x0][_0x413f47(0x19e)][0x0]));});_0x4538e8[_0x10a955(0x1c4)](_0x515328,{'childList':!0x0,'subtree':!0x0});}[_0x2d7858(0x1b2)](_0x3288ae){const _0x57228f=_0x2d7858;_0x3288ae[_0x57228f(0x1c0)](_0x57228f(0x193),_0x41f731=>{const _0x4704cb=_0x57228f;this[_0x4704cb(0x1ad)](_0x4704cb(0x193),{'imageSrc':_0x41f731[_0x4704cb(0x1a0)][_0x4704cb(0x19f)]});}),_0x3288ae[_0x57228f(0x1c0)](_0x57228f(0x1b0),()=>{const _0x411d9b=_0x57228f;this[_0x411d9b(0x1ad)](_0x411d9b(0x1b0));});}[_0x2d7858(0x1bc)](){const _0x39b00b=_0x2d7858;this[_0x39b00b(0x19b)]['on'](_0x39b00b(0x19c),()=>{const _0x13245e=_0x39b00b;this[_0x13245e(0x1ad)](_0x13245e(0x19c));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x490e49=_0x5858;(function(_0x1d8af2,_0x3bd9e7){const _0x3f1d0c=_0x5858,_0x3d91e6=_0x1d8af2();while(!![]){try{const _0x9a7bff=parseInt(_0x3f1d0c(0xcc))/0x1+-parseInt(_0x3f1d0c(0xd5))/0x2*(-parseInt(_0x3f1d0c(0xd7))/0x3)+-parseInt(_0x3f1d0c(0xc8))/0x4+-parseInt(_0x3f1d0c(0xc4))/0x5*(parseInt(_0x3f1d0c(0xd6))/0x6)+parseInt(_0x3f1d0c(0xdd))/0x7+-parseInt(_0x3f1d0c(0xcb))/0x8+parseInt(_0x3f1d0c(0xd3))/0x9;if(_0x9a7bff===_0x3bd9e7)break;else _0x3d91e6['push'](_0x3d91e6['shift']());}catch(_0x4d0fe0){_0x3d91e6['push'](_0x3d91e6['shift']());}}}(_0x2934,0xc4b45));import{Command as _0x300134}from'ckeditor5/src/core.js';import{Dialog as _0x2f736a}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x376c0f}from'./ui/uploadcareimageeditcontroller.js';function _0x5858(_0xdb8645,_0xf61c2a){const _0x293497=_0x2934();return _0x5858=function(_0x585888,_0x263fc4){_0x585888=_0x585888-0xc1;let _0x5ad658=_0x293497[_0x585888];return _0x5ad658;},_0x5858(_0xdb8645,_0xf61c2a);}import{createEditabilityChecker as _0x1bd732}from'../utils/editingutils.js';function _0x2934(){const _0x581035=['25nhxkeo','config','isActive','_isEditable','1122440qjGlEA','imageEditController','imageInline','5390768eZiyEX','488500lMlyTR','refresh','imageBlock','unbind','selection','document','uploadcare.allowExternalImagesEditing','9235575xmsZzU','plugins','4cOCZvo','1436172VujmKC','1542096hlEDoD','set','editor','isEnabled','get','bind','2899596xNnDYo','requires','model','execute','element','getSelectedElement'];_0x2934=function(){return _0x581035;};return _0x2934();}export class UploadcareImageEditCommand extends _0x300134{[_0x490e49(0xc9)];static get[_0x490e49(0xde)](){return[_0x2f736a];}[_0x490e49(0xc7)];constructor(_0x2d4a83){const _0x1aa5f3=_0x490e49;super(_0x2d4a83),this[_0x1aa5f3(0xc9)]=void 0x0,this[_0x1aa5f3(0xc7)]=_0x1bd732(_0x2d4a83[_0x1aa5f3(0xc5)][_0x1aa5f3(0xdb)](_0x1aa5f3(0xd2))||[]),this[_0x1aa5f3(0xd8)]({'isActive':!0x1});}[_0x490e49(0xcd)](){const _0x1d0256=_0x490e49,_0x1c6ca0=this[_0x1d0256(0xd9)][_0x1d0256(0xdf)][_0x1d0256(0xd1)][_0x1d0256(0xd0)][_0x1d0256(0xc3)]();this[_0x1d0256(0xda)]=this[_0x1d0256(0xc7)](_0x1c6ca0);}[_0x490e49(0xc1)](){const _0x2a7d82=_0x490e49;this[_0x2a7d82(0xc9)]&&(this[_0x2a7d82(0xcf)](_0x2a7d82(0xc6)),this[_0x2a7d82(0xc9)]=void 0x0);const _0xf937c2=this[_0x2a7d82(0xd9)][_0x2a7d82(0xdf)][_0x2a7d82(0xd1)][_0x2a7d82(0xd0)][_0x2a7d82(0xc3)]();_0xf937c2&&(_0xf937c2['is'](_0x2a7d82(0xc2),_0x2a7d82(0xce))||_0xf937c2['is'](_0x2a7d82(0xc2),_0x2a7d82(0xca)))&&(this[_0x2a7d82(0xc9)]=new _0x376c0f(this[_0x2a7d82(0xd9)],this[_0x2a7d82(0xd9)][_0x2a7d82(0xd4)][_0x2a7d82(0xdb)](_0x2f736a),_0xf937c2),this[_0x2a7d82(0xdc)](_0x2a7d82(0xc6))['to'](this[_0x2a7d82(0xc9)],_0x2a7d82(0xc6)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3244e8=_0x1f72;(function(_0x528fc5,_0x2652fc){const _0x55f90a=_0x1f72,_0x3b3263=_0x528fc5();while(!![]){try{const _0x1372a0=parseInt(_0x55f90a(0x200))/0x1+-parseInt(_0x55f90a(0x208))/0x2*(-parseInt(_0x55f90a(0x1f3))/0x3)+parseInt(_0x55f90a(0x1f6))/0x4+parseInt(_0x55f90a(0x1f7))/0x5*(-parseInt(_0x55f90a(0x207))/0x6)+-parseInt(_0x55f90a(0x1ff))/0x7*(parseInt(_0x55f90a(0x206))/0x8)+-parseInt(_0x55f90a(0x1fc))/0x9+parseInt(_0x55f90a(0x1f4))/0xa*(parseInt(_0x55f90a(0x1f9))/0xb);if(_0x1372a0===_0x2652fc)break;else _0x3b3263['push'](_0x3b3263['shift']());}catch(_0x552ca9){_0x3b3263['push'](_0x3b3263['shift']());}}}(_0x7977,0x7b5c3));import{Plugin as _0x383d68}from'ckeditor5/src/core.js';import{Notification as _0x37346b}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x573265}from'./uploadcareimageeditcommand.js';function _0x1f72(_0x237d34,_0x3b4ad1){const _0x79779d=_0x7977();return _0x1f72=function(_0x1f72c1,_0xdc98d7){_0x1f72c1=_0x1f72c1-0x1f2;let _0x52e018=_0x79779d[_0x1f72c1];return _0x52e018;},_0x1f72(_0x237d34,_0x3b4ad1);}function _0x7977(){const _0x2cd9ca=['2663332ilQBqe','265aljLfa','commands','33URwFCW','requires','uploadcareImageReplace','8696061gDXUSK','ImageUtils','pluginName','399HZzRQg','837649jqSnsQ','UploadcareImageEditEditing','ImageEditing','add','init','uploadcareImageEdit','29504GjXOEo','84876vFCsUi','6lwSJdn','isOfficialPlugin','103773SkDlxK','2747370XiIDEa','isPremiumPlugin'];_0x7977=function(){return _0x2cd9ca;};return _0x7977();}import{UploadcareImageReplaceCommand as _0x176dbb}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x4f14ae}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x383d68{static get[_0x3244e8(0x1fe)](){const _0x1d3017=_0x3244e8;return _0x1d3017(0x201);}static get[_0x3244e8(0x1fa)](){const _0x1bcea3=_0x3244e8;return[_0x4f14ae,_0x37346b,_0x1bcea3(0x1fd),_0x1bcea3(0x202)];}static get[_0x3244e8(0x1f2)](){return!0x0;}static get[_0x3244e8(0x1f5)](){return!0x0;}[_0x3244e8(0x204)](){const _0x36f8db=_0x3244e8,{editor:_0x23452f}=this;_0x23452f[_0x36f8db(0x1f8)][_0x36f8db(0x203)](_0x36f8db(0x205),new _0x573265(_0x23452f)),_0x23452f[_0x36f8db(0x1f8)][_0x36f8db(0x203)](_0x36f8db(0x1fb),new _0x176dbb(_0x23452f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2d90f7}from'ckeditor5/src/core.js';import{ButtonView as _0x189348}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x37418b}from'ckeditor5/src/icons.js';import{createElement as _0x301036}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x2d90f7{['_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 _0x1acfa8=this['editor'];_0x1acfa8['ui']['componentFactory']['add']('uploadcareImageEdit',_0x40f975=>{const _0x512ad0=_0x1acfa8['commands']['get']('uploadcareImageEdit'),_0x2f21a5=new _0x189348(_0x40f975),t=_0x40f975['t'];return _0x2f21a5['set']({'icon':_0x37418b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2f21a5['bind']('isEnabled')['to'](_0x512ad0),_0x2f21a5['bind']('isOn')['to'](_0x512ad0,'isActive'),this['listenTo'](_0x2f21a5,'execute',()=>{_0x1acfa8['execute']('uploadcareImageEdit'),_0x1acfa8['editing']['view']['focus']();}),_0x2f21a5;}),this['_initConfig']();}['_initConfig'](){const _0x2adcdf=_0x301036(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2adcdf),this['listenTo'](this['editor'],'destroy',()=>{_0x2adcdf['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55eb5c=_0x4f0a;(function(_0x899cd4,_0x1e67aa){const _0x818f92=_0x4f0a,_0x2c208d=_0x899cd4();while(!![]){try{const _0x3f68df=parseInt(_0x818f92(0x13c))/0x1*(parseInt(_0x818f92(0x134))/0x2)+-parseInt(_0x818f92(0x13a))/0x3+-parseInt(_0x818f92(0x145))/0x4*(-parseInt(_0x818f92(0x13b))/0x5)+-parseInt(_0x818f92(0x142))/0x6+-parseInt(_0x818f92(0x13e))/0x7+-parseInt(_0x818f92(0x138))/0x8+parseInt(_0x818f92(0x137))/0x9;if(_0x3f68df===_0x1e67aa)break;else _0x2c208d['push'](_0x2c208d['shift']());}catch(_0x455811){_0x2c208d['push'](_0x2c208d['shift']());}}}(_0x85a4,0x44377));function _0x85a4(){const _0x5d00de=['567210oeXjDa','29655SBZppT','550035EZprSo','execute','3115119OXZYWl','refresh','editor','document','806268RgxlKA','element','model','284euxjif','sizes','imageBlock','change','setAttributes','selection','srcset','isEnabled','2dsbzJJ','getSelectedElement','imageInline','5033790kPasnA','3860528GICyJL','removeAttribute'];_0x85a4=function(){return _0x5d00de;};return _0x85a4();}import{Command as _0x3920b1}from'ckeditor5/src/core.js';function _0x4f0a(_0x11c534,_0x39d840){const _0x85a409=_0x85a4();return _0x4f0a=function(_0x4f0ab2,_0x19d34c){_0x4f0ab2=_0x4f0ab2-0x131;let _0x33715c=_0x85a409[_0x4f0ab2];return _0x33715c;},_0x4f0a(_0x11c534,_0x39d840);}export class UploadcareImageReplaceCommand extends _0x3920b1{[_0x55eb5c(0x13f)](){const _0x14636f=_0x55eb5c,_0x525910=this[_0x14636f(0x140)][_0x14636f(0x144)][_0x14636f(0x141)][_0x14636f(0x131)][_0x14636f(0x135)]();this[_0x14636f(0x133)]=Boolean(_0x525910&&(_0x525910['is'](_0x14636f(0x143),_0x14636f(0x147))||_0x525910['is'](_0x14636f(0x143),_0x14636f(0x136))));}[_0x55eb5c(0x13d)](_0xf4b9e){const _0x3b88fb=_0x55eb5c,_0x20fd75=this[_0x3b88fb(0x140)][_0x3b88fb(0x144)][_0x3b88fb(0x141)][_0x3b88fb(0x131)][_0x3b88fb(0x135)]();this[_0x3b88fb(0x140)][_0x3b88fb(0x144)][_0x3b88fb(0x148)](_0x94d9ff=>{const _0x4bc96c=_0x3b88fb;_0x94d9ff[_0x4bc96c(0x149)](_0xf4b9e,_0x20fd75),_0x94d9ff[_0x4bc96c(0x139)](_0x4bc96c(0x132),_0x20fd75),_0x94d9ff[_0x4bc96c(0x139)](_0x4bc96c(0x146),_0x20fd75);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1d9ea3=_0xdb89;(function(_0x2fbd69,_0x4cd5b5){var _0x407982=_0xdb89,_0x2f2f05=_0x2fbd69();while(!![]){try{var _0x36873b=-parseInt(_0x407982(0x9a))/0x1+parseInt(_0x407982(0x9d))/0x2+parseInt(_0x407982(0xa4))/0x3+parseInt(_0x407982(0x99))/0x4+parseInt(_0x407982(0x9c))/0x5+-parseInt(_0x407982(0x9f))/0x6+-parseInt(_0x407982(0x9e))/0x7*(-parseInt(_0x407982(0xa3))/0x8);if(_0x36873b===_0x4cd5b5)break;else _0x2f2f05['push'](_0x2f2f05['shift']());}catch(_0x5e10f0){_0x2f2f05['push'](_0x2f2f05['shift']());}}}(_0x8b6b,0x46f4c));import{Plugin as _0x29b25a}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x36867f}from'./uploadcareimageedit/uploadcareimageeditediting.js';function _0x8b6b(){var _0x33f6bb=['3288990KZuDca','UploadcareImageEdit','isPremiumPlugin','isOfficialPlugin','184ngvjKe','1225011JrmBSl','requires','849952Noxyvo','386908YoJXbS','pluginName','2079620VNwpXP','241392ppnSVy','20776QmphYY'];_0x8b6b=function(){return _0x33f6bb;};return _0x8b6b();}function _0xdb89(_0x5389e1,_0x330a22){var _0x8b6b84=_0x8b6b();return _0xdb89=function(_0xdb892f,_0x492604){_0xdb892f=_0xdb892f-0x98;var _0x51b427=_0x8b6b84[_0xdb892f];return _0x51b427;},_0xdb89(_0x5389e1,_0x330a22);}import{UploadcareImageEditUI as _0x1f2ebb}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x29b25a{static get[_0x1d9ea3(0x9b)](){var _0x110192=_0x1d9ea3;return _0x110192(0xa0);}static get[_0x1d9ea3(0x98)](){return[_0x36867f,_0x1f2ebb];}static get[_0x1d9ea3(0xa2)](){return!0x0;}static get[_0x1d9ea3(0xa1)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d85e5=_0x4299;(function(_0x4f4518,_0x131254){const _0xcf40eb=_0x4299,_0x266526=_0x4f4518();while(!![]){try{const _0x56cc71=-parseInt(_0xcf40eb(0x1fa))/0x1+parseInt(_0xcf40eb(0x201))/0x2*(-parseInt(_0xcf40eb(0x213))/0x3)+parseInt(_0xcf40eb(0x21b))/0x4+parseInt(_0xcf40eb(0x1e8))/0x5*(parseInt(_0xcf40eb(0x1f0))/0x6)+parseInt(_0xcf40eb(0x22b))/0x7*(parseInt(_0xcf40eb(0x230))/0x8)+-parseInt(_0xcf40eb(0x1f5))/0x9*(parseInt(_0xcf40eb(0x20e))/0xa)+parseInt(_0xcf40eb(0x225))/0xb;if(_0x56cc71===_0x131254)break;else _0x266526['push'](_0x266526['shift']());}catch(_0x465efb){_0x266526['push'](_0x266526['shift']());}}}(_0x2fd0,0xf06ba));import{Plugin as _0x127dc6}from'ckeditor5/src/core.js';function _0x4299(_0x16f2e1,_0x414bb6){const _0x2fd037=_0x2fd0();return _0x4299=function(_0x4299eb,_0x10b29b){_0x4299eb=_0x4299eb-0x1df;let _0x5558ea=_0x2fd037[_0x4299eb];return _0x5558ea;},_0x4299(_0x16f2e1,_0x414bb6);}function _0x2fd0(){const _0x3d06cc=['_createDropdownButtons','domainLimit','_getIntegrationKey','uploadcareLicenseKeyInvalid','uploadcare','label','114ArBdnw','has','ImageInsertUI','Replace','shortText','Facebook','isImageSelected','assetManager','trialLimit','featureNotAllowed','upload','editor','init','10bcODKD','uploadcare.uploader.sourceList','destroy','icon','_createToolbarButton','35979RXDEIU','Insert','GPhotos','forEach','registerIntegration','text','Dropbox','uploadcareLicenseKeyValid','2021560fmxbzo','invalid','withText','isEnabled','uploadcareLicenseKeyDomainLimit','_normalizeConfigSourceList','afterInit','uploadcareLicenseKeyTrialLimit','bind','plugins','11438845rBRqgr','commands','get','config','OneDrive','pluginName','28sHCoEd','uploadcareLicenseKeyUsageLimit','isOfficialPlugin','Local','type','1530392TMhcxe','evaluationLimit','UploadcareUI','usageLimit','uploadcareLicenseKeyEvaluationLimit','execute','_createMenuBarButtons','expired','reduce','url','63970fplyKf','licenseKey','isPremiumPlugin','uploadcareLicenseKeyExpired','_createButton','Uploadcare','entries','locale','366EOcQLI','tooltip','map','_licenseKeyCheckInterval','uploadcareLicenseKeyNotAllowed','6321069yTbtIp','_showLicenseError','push','URL','GDrive','720211WpmegF'];_0x2fd0=function(){return _0x3d06cc;};return _0x2fd0();}import{IconDropbox as _0x5d7554,IconFacebook as _0x7dba8b,IconGoogleDrive as _0x380673,IconGooglePhotos as _0x5b0897,IconUploadcareImageUpload as _0xf799e8,IconUploadcareLink as _0x50ca44,IconOneDrive as _0x3e45d9}from'ckeditor5/src/icons.js';import{ButtonView as _0x5b42ae,MenuBarMenuListItemButtonView as _0x56c382}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x54df2c}from'./uploadcareconfig.js';import{getTranslation as _0x1442bc}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x127dc6{[_0x1d85e5(0x1e9)];[_0x1d85e5(0x1f3)];static get[_0x1d85e5(0x22a)](){const _0x390b7f=_0x1d85e5;return _0x390b7f(0x1e0);}static get[_0x1d85e5(0x22d)](){return!0x0;}static get[_0x1d85e5(0x1ea)](){return!0x0;}[_0x1d85e5(0x20d)](){const _0x469757=_0x1d85e5;this[_0x469757(0x1e9)]=this[_0x469757(0x20c)][_0x469757(0x228)][_0x469757(0x227)](_0x469757(0x1e9));const _0x4855cf=this[_0x469757(0x20c)];this[_0x469757(0x1f3)]=setInterval(()=>{const _0x209e54=_0x469757;let _0x2df497;for(const _0x341169 in _0x4855cf){const _0xb0e002=_0x341169,_0x58bbdb=_0x4855cf[_0xb0e002];if(_0x209e54(0x21a)==_0x58bbdb||_0x209e54(0x1fe)==_0x58bbdb||_0x209e54(0x1eb)==_0x58bbdb||_0x209e54(0x21f)==_0x58bbdb||_0x209e54(0x1f4)==_0x58bbdb||_0x209e54(0x1e2)==_0x58bbdb||_0x209e54(0x222)==_0x58bbdb||_0x209e54(0x22c)==_0x58bbdb){delete _0x4855cf[_0xb0e002],_0x2df497=_0x58bbdb,clearInterval(this[_0x209e54(0x1f3)]),this[_0x209e54(0x1f3)]=void 0x0;break;}}_0x209e54(0x1fe)==_0x2df497&&_0x4855cf[_0x209e54(0x1f6)](_0x209e54(0x21c)),_0x209e54(0x1eb)==_0x2df497&&_0x4855cf[_0x209e54(0x1f6)](_0x209e54(0x1e5)),_0x209e54(0x21f)==_0x2df497&&_0x4855cf[_0x209e54(0x1f6)](_0x209e54(0x1fc)),_0x209e54(0x1f4)==_0x2df497&&_0x4855cf[_0x209e54(0x1f6)](_0x209e54(0x20a),_0x209e54(0x1ed)),_0x209e54(0x1e2)==_0x2df497&&_0x4855cf[_0x209e54(0x1f6)](_0x209e54(0x1df)),_0x209e54(0x222)==_0x2df497&&_0x4855cf[_0x209e54(0x1f6)](_0x209e54(0x209)),_0x209e54(0x22c)==_0x2df497&&_0x4855cf[_0x209e54(0x1f6)](_0x209e54(0x1e1));},0x3e8);}[_0x1d85e5(0x221)](){const _0x3ac7c2=_0x1d85e5,{editor:_0x76e3b6}=this,_0x530e0d=_0x76e3b6[_0x3ac7c2(0x226)][_0x3ac7c2(0x227)](_0x3ac7c2(0x1ff));if(!_0x530e0d)return;const _0xa7bbe9=this[_0x3ac7c2(0x220)](_0x76e3b6[_0x3ac7c2(0x228)][_0x3ac7c2(0x227)](_0x3ac7c2(0x20f)))[_0x3ac7c2(0x1e6)]((_0x554bb0,_0x1a0d27)=>{const _0x440d06=_0x3ac7c2,_0x162e19=this[_0x440d06(0x1fd)](_0x1a0d27[_0x440d06(0x22f)]);return _0x554bb0[_0x162e19]||(_0x554bb0[_0x162e19]=[]),_0x554bb0[_0x162e19][_0x440d06(0x1f7)](_0x1a0d27),_0x554bb0;},{});_0x76e3b6[_0x3ac7c2(0x224)][_0x3ac7c2(0x202)](_0x3ac7c2(0x203))&&_0x76e3b6[_0x3ac7c2(0x226)][_0x3ac7c2(0x227)](_0x3ac7c2(0x1ff))&&Object[_0x3ac7c2(0x1ee)](_0xa7bbe9)[_0x3ac7c2(0x216)](([_0x230c1e,_0x4d188a])=>{const _0x1acb1b=_0x3ac7c2;_0x76e3b6[_0x1acb1b(0x224)][_0x1acb1b(0x227)](_0x1acb1b(0x203))[_0x1acb1b(0x217)]({'name':_0x230c1e,'observable':()=>_0x530e0d,'buttonViewCreator':()=>this[_0x1acb1b(0x212)](_0x4d188a),'formViewCreator':()=>this[_0x1acb1b(0x1fb)](_0x4d188a),'menuBarButtonViewCreator':()=>this[_0x1acb1b(0x1e4)](_0x4d188a),'override':_0x1acb1b(0x208)!==_0x230c1e});});}[_0x1d85e5(0x210)](){const _0x4f04b6=_0x1d85e5;super[_0x4f04b6(0x210)](),this[_0x4f04b6(0x1f3)]&&clearInterval(this[_0x4f04b6(0x1f3)]);}[_0x1d85e5(0x220)](_0x70f2c7){const _0x2f4b8a=_0x1d85e5,{locale:_0x4637c9}=this[_0x2f4b8a(0x20c)];return _0x70f2c7[_0x2f4b8a(0x1f2)](_0x21f8da=>{const _0x55f19b=_0x2f4b8a,_0x148f33=_0x1442bc(_0x4637c9,_0x21f8da,_0x55f19b(0x214));switch(_0x21f8da){case _0x54df2c[_0x55f19b(0x22e)]:return{'icon':_0xf799e8,'type':_0x54df2c[_0x55f19b(0x22e)],..._0x148f33};case _0x54df2c[_0x55f19b(0x1f8)]:return{'icon':_0x50ca44,'type':_0x54df2c[_0x55f19b(0x1f8)],..._0x148f33};case _0x54df2c[_0x55f19b(0x219)]:return{'icon':_0x5d7554,'type':_0x54df2c[_0x55f19b(0x219)],..._0x148f33};case _0x54df2c[_0x55f19b(0x206)]:return{'icon':_0x7dba8b,'type':_0x54df2c[_0x55f19b(0x206)],..._0x148f33};case _0x54df2c[_0x55f19b(0x1f9)]:return{'icon':_0x380673,'type':_0x54df2c[_0x55f19b(0x1f9)],..._0x148f33};case _0x54df2c[_0x55f19b(0x215)]:return{'icon':_0x5b0897,'type':_0x54df2c[_0x55f19b(0x215)],..._0x148f33};case _0x54df2c[_0x55f19b(0x229)]:return{'icon':_0x3e45d9,'type':_0x54df2c[_0x55f19b(0x229)],..._0x148f33};}});}[_0x1d85e5(0x1fd)](_0x164cc5){const _0x41395c=_0x1d85e5;switch(_0x164cc5){case _0x54df2c[_0x41395c(0x22e)]:return _0x41395c(0x20b);case _0x54df2c[_0x41395c(0x1f8)]:return _0x41395c(0x1e7);default:return _0x41395c(0x208);}}[_0x1d85e5(0x1ec)](_0x59a58b,_0x2d0fa0){const _0x1d902f=_0x1d85e5,_0x9cdd=this[_0x1d902f(0x20c)],_0x255bef=new _0x59a58b(_0x9cdd[_0x1d902f(0x1ef)]),_0x2f7bd9=_0x9cdd[_0x1d902f(0x226)][_0x1d902f(0x227)](_0x1d902f(0x1ff));return _0x255bef[_0x1d902f(0x223)](_0x1d902f(0x21e))['to'](_0x2f7bd9),_0x255bef['on'](_0x1d902f(0x1e3),()=>{const _0x5ea1a1=_0x1d902f;_0x2f7bd9[_0x5ea1a1(0x1e3)](_0x2d0fa0);}),_0x255bef;}[_0x1d85e5(0x212)](_0x202791){const _0x5ea03f=_0x1d85e5,{locale:_0x4ae0b8}=this[_0x5ea03f(0x20c)],_0x26b510=this[_0x5ea03f(0x20c)][_0x5ea03f(0x224)][_0x5ea03f(0x227)](_0x5ea03f(0x203)),_0x50d216=_0x202791[0x0],_0x6421fc=this[_0x5ea03f(0x1ec)](_0x5b42ae,_0x50d216[_0x5ea03f(0x22f)]);return _0x6421fc[_0x5ea03f(0x211)]=_0x50d216[_0x5ea03f(0x211)],_0x6421fc[_0x5ea03f(0x223)](_0x5ea03f(0x200))['to'](_0x26b510,_0x5ea03f(0x207),_0x3bb894=>_0x1442bc(_0x4ae0b8,_0x50d216[_0x5ea03f(0x22f)],_0x3bb894?_0x5ea03f(0x204):_0x5ea03f(0x214))[_0x5ea03f(0x218)]),_0x6421fc[_0x5ea03f(0x1f1)]=!0x0,_0x6421fc;}[_0x1d85e5(0x1fb)](_0x4d28d2){const _0x46f0f6=_0x1d85e5,{locale:_0x3557c7}=this[_0x46f0f6(0x20c)],_0x3512e6=this[_0x46f0f6(0x20c)][_0x46f0f6(0x224)][_0x46f0f6(0x227)](_0x46f0f6(0x203));return _0x4d28d2[_0x46f0f6(0x1f2)](_0x59eaf5=>{const _0x2821c1=_0x46f0f6,_0x1d87f7=this[_0x2821c1(0x1ec)](_0x5b42ae,_0x59eaf5[_0x2821c1(0x22f)]);return _0x1d87f7[_0x2821c1(0x21d)]=!0x0,_0x1d87f7[_0x2821c1(0x211)]=_0x59eaf5[_0x2821c1(0x211)],_0x1d87f7[_0x2821c1(0x223)](_0x2821c1(0x200))['to'](_0x3512e6,_0x2821c1(0x207),_0x4e0bf3=>_0x1442bc(_0x3557c7,_0x59eaf5[_0x2821c1(0x22f)],_0x4e0bf3?_0x2821c1(0x204):_0x2821c1(0x214))[_0x2821c1(0x218)]),_0x1d87f7;});}[_0x1d85e5(0x1e4)](_0x3dfb64){const _0x552aa1=_0x1d85e5;return _0x3dfb64[_0x552aa1(0x1f2)](_0x2183ca=>{const _0x391a89=_0x552aa1,_0x39fd59=this[_0x391a89(0x1ec)](_0x56c382,_0x2183ca[_0x391a89(0x22f)]);return _0x39fd59[_0x391a89(0x211)]=_0x2183ca[_0x391a89(0x211)],_0x39fd59[_0x391a89(0x200)]=_0x2183ca[_0x391a89(0x205)],_0x39fd59;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x193651}from'ckeditor5/src/core.js';import{FileRepository as _0x11d055}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x552d00}from'./uploadcareediting.js';import{UploadUtils as _0x137530}from'./utils/uploadutils.js';import{getImageUrls as _0xb31d7d}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x193651{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x11d055,_0x552d00];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x57b95f=this['editor'];if(!!!_0x57b95f['config']['get']('uploadcare'))return;_0x57b95f['plugins']['get'](_0x11d055)['createUploadAdapter']=_0x9eb395=>new A(_0x9eb395,_0x57b95f),_0x57b95f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4e5d47,{imageElement:_0x5eeaaa,data:_0x3bf2cb})=>{_0x57b95f['model']['change'](_0x36056d=>{_0x36056d['setAttribute']('uploadcareImageId',_0x3bf2cb['uploadcareImageId'],_0x5eeaaa);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x34f3d6,_0x59ac7a){this['loader']=_0x34f3d6,this['editor']=_0x59ac7a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x96a54c=this['editor']['config']['get']('uploadcare.pubkey'),_0x523855=await this['loader']['file'];return _0x137530['upload']({'file':_0x523855,'publicKey':_0x96a54c,'signal':this['controller']['signal'],'onProgress':_0x427ce5=>{_0x427ce5&&_0x427ce5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x427ce5['value']);}})['then'](async _0x102333=>{const {imageFallbackUrl:_0x26d476,imageSources:_0x7d421f}=_0xb31d7d(_0x102333['cdnUrl'],_0x102333['imageInfo']['width']);return{'uploadcareImageId':_0x102333['uuid'],'default':_0x26d476,'sources':_0x7d421f};})['catch'](()=>{const _0x5d5094=t('Cannot\x20upload\x20file:')+('\x20'+_0x523855['name']+'.');return Promise['reject'](_0x5d5094);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x41b1cf}from'../uploadcareconfig.js';export function getTranslation(_0x417d6f,_0x4686f0,_0x367fd1){const t=_0x417d6f['t'],_0x333873=_0x417d6f['t'];switch(_0x4686f0){case _0x41b1cf['Local']:return{'text':_0x333873('Insert'===_0x367fd1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x333873('From\x20computer')};case _0x41b1cf['URL']:return{'text':'Insert'===_0x367fd1?_0x333873('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x333873('Via\x20URL')};case _0x41b1cf['Dropbox']:return{'text':t('Insert'===_0x367fd1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x41b1cf['Facebook']:return{'text':t('Insert'===_0x367fd1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x41b1cf['GDrive']:return{'text':t('Insert'===_0x367fd1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x41b1cf['GPhotos']:return{'text':t('Insert'===_0x367fd1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x41b1cf['OneDrive']:return{'text':t('Insert'===_0x367fd1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4686f0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x43d9c7=_0x5c1e;function _0x5c1e(_0x207b71,_0x228837){var _0x1be614=_0x1be6();return _0x5c1e=function(_0x5c1e30,_0x44acd0){_0x5c1e30=_0x5c1e30-0x1d4;var _0x3c0fd8=_0x1be614[_0x5c1e30];return _0x3c0fd8;},_0x5c1e(_0x207b71,_0x228837);}(function(_0x28fc04,_0x17c241){var _0x2c0f3e=_0x5c1e,_0x1ec927=_0x28fc04();while(!![]){try{var _0x129fe2=parseInt(_0x2c0f3e(0x1e2))/0x1+-parseInt(_0x2c0f3e(0x1e7))/0x2+-parseInt(_0x2c0f3e(0x1d8))/0x3*(parseInt(_0x2c0f3e(0x1e3))/0x4)+-parseInt(_0x2c0f3e(0x1e1))/0x5*(parseInt(_0x2c0f3e(0x1df))/0x6)+-parseInt(_0x2c0f3e(0x1e6))/0x7*(parseInt(_0x2c0f3e(0x1db))/0x8)+-parseInt(_0x2c0f3e(0x1d7))/0x9*(-parseInt(_0x2c0f3e(0x1dd))/0xa)+parseInt(_0x2c0f3e(0x1dc))/0xb*(parseInt(_0x2c0f3e(0x1d5))/0xc);if(_0x129fe2===_0x17c241)break;else _0x1ec927['push'](_0x1ec927['shift']());}catch(_0x3ec2e0){_0x1ec927['push'](_0x1ec927['shift']());}}}(_0x1be6,0x98795));import{FocusTracker as _0x120117}from'ckeditor5/src/utils.js';import{View as _0x34b97f,FocusCycler as _0x21ef22}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x34b97f{[_0x43d9c7(0x1da)];[_0x43d9c7(0x1e4)];constructor(_0x7b0dbc){var _0x205fc5=_0x43d9c7;super(_0x7b0dbc),this[_0x205fc5(0x1da)]=new _0x120117(),this[_0x205fc5(0x1e4)]=new _0x21ef22({'focusables':this[_0x205fc5(0x1e5)](),'focusTracker':this[_0x205fc5(0x1da)]});}[_0x43d9c7(0x1d6)](){var _0x2c9600=_0x43d9c7;return{'tag':_0x2c9600(0x1e8),'attributes':{'aria-hidden':_0x2c9600(0x1d4),'tabindex':'0'},'on':{'focus':this[_0x2c9600(0x1de)]['to'](()=>{var _0x548a59=_0x2c9600;this[_0x548a59(0x1e4)][_0x548a59(0x1e0)](_0x548a59(0x1d9));})}};}}function _0x1be6(){var _0x230448=['focusCycler','createCollection','45815IokCdd','1426634uwHsER','div','true','4596Qpbbmf','getFocusableElement','9KYgCTf','3SuYJtS','forwardCycle','focusTracker','1224WTconS','83677JmDxhA','5560770dTpnCv','bindTemplate','394122ShrXOR','fire','95PgHYer','577038YLqjND','1837232FdqEOd'];_0x1be6=function(){return _0x230448;};return _0x1be6();}
|