@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260105.0 → 0.0.0-nightly-next-20260105.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 _0x3c776b=_0x46b7;(function(_0x1a6bb6,_0x367a04){const _0x15a621=_0x46b7,_0x564b46=_0x1a6bb6();while(!![]){try{const _0x3ab9ac=-parseInt(_0x15a621(0x1f0))/0x1+-parseInt(_0x15a621(0x1c1))/0x2*(parseInt(_0x15a621(0x201))/0x3)+parseInt(_0x15a621(0x20b))/0x4*(-parseInt(_0x15a621(0x1d4))/0x5)+parseInt(_0x15a621(0x1fb))/0x6*(-parseInt(_0x15a621(0x1f1))/0x7)+parseInt(_0x15a621(0x1da))/0x8*(-parseInt(_0x15a621(0x202))/0x9)+parseInt(_0x15a621(0x206))/0xa+parseInt(_0x15a621(0x1fe))/0xb;if(_0x3ab9ac===_0x367a04)break;else _0x564b46['push'](_0x564b46['shift']());}catch(_0x237277){_0x564b46['push'](_0x564b46['shift']());}}}(_0x1753,0xd3dd2));import{Plugin as _0x57e60d}from'ckeditor5/src/core.js';function _0x1753(){const _0x5555a=['replaceImageSource','imageInline','querySelector','_initSchema','for','appendChild','downcast','_initImageProcessingIndicator','1544431HJgqbY','434AMiSSL','uploadcare.pubkey','selection','editor','destroy','map','upcast','uploadcare.uploader','true','_initConversion','11292bXMyRQ','view','pluginName','53635263WfoYvA','data-uc-image-id','conversion','2510751twWnLo','50211uNWyvG','document','render','body','811130vkthFd','uc-config','_initCtx','get','uploadcareImageReplace','4BLdMlI','iconHrefResolver','join','isOfficialPlugin','uploadcareImageId','init','ucContextId','UploadcareEditing','_configElement','afterInit','#uc-icon-arrow-down','getSelectedElement','2VsrNBK','removeAttribute','commands','add','listenTo','imageBlock','cleanupImage','\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','model','extend','isPremiumPlugin','ctxElement','config','PictureEditing','configElement','elementToAttribute','once','schema','editing','5696605pEtIpg','closeMax','uploader-','input[uploadcare-file-input]','uploadcare','attributeToAttribute','648fYPUlI','contentLanguage','fromCharCode','locale','remove','isRegistered','_ctxElement','_initConfig','execute','requires','uc-upload-ctx-provider','insertImage','href','getAttribute'];_0x1753=function(){return _0x5555a;};return _0x1753();}import{Dialog as _0x468353}from'ckeditor5/src/ui.js';import{createElement as _0x10cb33,global as _0x365182,uid as _0x519bc3}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x234c49}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2e1967}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x401820}from'./utils/editingutils.js';function _0x46b7(_0x195295,_0x4eb1b6){const _0x175326=_0x1753();return _0x46b7=function(_0x46b7cf,_0x4301bc){_0x46b7cf=_0x46b7cf-0x1be;let _0x5305d6=_0x175326[_0x46b7cf];return _0x5305d6;},_0x46b7(_0x195295,_0x4eb1b6);}export class UploadcareEditing extends _0x57e60d{[_0x3c776b(0x213)]=null;[_0x3c776b(0x1e0)]=null;static get[_0x3c776b(0x1fd)](){const _0x1b1c3b=_0x3c776b;return _0x1b1c3b(0x212);}static get[_0x3c776b(0x1e3)](){const _0x136b3e=_0x3c776b;return[_0x136b3e(0x1ce),_0x2e1967,_0x468353];}static get[_0x3c776b(0x20e)](){return!0x0;}static get[_0x3c776b(0x1cb)](){return!0x0;}[_0x3c776b(0x211)];get[_0x3c776b(0x1cf)](){const _0x51f0bd=_0x3c776b;return this[_0x51f0bd(0x213)];}get[_0x3c776b(0x1cc)](){const _0x124e80=_0x3c776b;return this[_0x124e80(0x1e0)];}constructor(_0x5ca385){const _0x2eacd5=_0x3c776b;super(_0x5ca385),this[_0x2eacd5(0x211)]=_0x519bc3();}[_0x3c776b(0x210)](){const _0x1b1413=_0x3c776b,_0x3048ae=this[_0x1b1413(0x1f4)];_0x3048ae[_0x1b1413(0x1c3)][_0x1b1413(0x1c4)](_0x1b1413(0x1d8),new _0x234c49(_0x3048ae));}[_0x3c776b(0x1be)](){const _0x12517a=_0x3c776b;this[_0x12517a(0x1eb)](),this[_0x12517a(0x1fa)](),this[_0x12517a(0x1e1)](),this[_0x12517a(0x208)](),this[_0x12517a(0x1ef)](),this[_0x12517a(0x1c5)](this[_0x12517a(0x1f4)],_0x12517a(0x1f5),()=>{const _0x5ecc4d=_0x12517a;this[_0x5ecc4d(0x213)]&&(this[_0x5ecc4d(0x213)][_0x5ecc4d(0x1de)](),this[_0x5ecc4d(0x213)]=null),this[_0x5ecc4d(0x1e0)]&&(this[_0x5ecc4d(0x1e0)][_0x5ecc4d(0x1de)](),this[_0x5ecc4d(0x1e0)]=null);const _0x1968d9=_0x365182[_0x5ecc4d(0x203)][_0x5ecc4d(0x1ea)](_0x5ecc4d(0x1d7));_0x1968d9&&_0x1968d9[_0x5ecc4d(0x1de)]();}),async function(_0x2bb71a){const _0x20a6cb=_0x3172e7([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x245125=0x535f8c3a,_0x2e729a=0x5358f1ca^_0x245125,_0x5bdabf=window[_0x3172e7([0x44,0x61,0x74,0x65])][_0x3172e7([0x6e,0x6f,0x77])](),_0x1a5641=_0x2bb71a[_0x3172e7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47f5b7=new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x289ac7=>{_0x1a5641[_0x3172e7([0x6f,0x6e,0x63,0x65])](_0x3172e7([0x72,0x65,0x61,0x64,0x79]),_0x289ac7);}),_0x580cd6={[_0x3172e7([0x6b,0x74,0x79])]:_0x3172e7([0x45,0x43]),[_0x3172e7([0x75,0x73,0x65])]:_0x3172e7([0x73,0x69,0x67]),[_0x3172e7([0x63,0x72,0x76])]:_0x3172e7([0x50,0x2d,0x32,0x35,0x36]),[_0x3172e7([0x78])]:_0x3172e7([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]),[_0x3172e7([0x79])]:_0x3172e7([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]),[_0x3172e7([0x61,0x6c,0x67])]:_0x3172e7([0x45,0x53,0x32,0x35,0x36])},_0x58cb1f=_0x1a5641[_0x3172e7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3172e7([0x67,0x65,0x74])](_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x482f57(){let _0x43f38d,_0x4d8d79=null,_0x1fd881=null;try{if(_0x58cb1f==_0x3172e7([0x47,0x50,0x4c]))return _0x3172e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43f38d=_0x327137(),!_0x43f38d)return _0x3172e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43f38d[_0x3172e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fd881=_0x2d0b93(_0x43f38d[_0x3172e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43f38d[_0x3172e7([0x6a,0x74,0x69])])),await _0x409a0d()?_0x433359()?_0x1934af()?_0x3172e7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4cef20()?(_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3172e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d8d79=_0x15ffff(_0x3172e7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3172e7([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d8d79=_0x15ffff(_0x3172e7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x232700()):_0x3172e7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3172e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3172e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3172e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1934af(){const _0x52740d=[_0x3172e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3172e7([0x74,0x72,0x69,0x61,0x6c])][_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bdabf/0x3e8:0xe10*_0x2e729a;return _0x43f38d[_0x3172e7([0x65,0x78,0x70])]<_0x52740d;}function _0x433359(){const _0x317e07=_0x43f38d[_0x3172e7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x317e07&&(!!_0x317e07[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3172e7([0x2a]))||!!_0x317e07[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3172e7([0x55,0x50,0x4c,0x43])));}function _0x4cef20(){const _0x31b40c=_0x46b7,_0x16e934=_0x43f38d[_0x3172e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16e934||0x0==_0x16e934[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x37512e}=new URL(window[_0x3172e7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x31b40c(0x1e6)]);if(_0x16e934[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37512e))return!0x0;const _0x12d857=_0x37512e[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e]));return _0x16e934[_0x3172e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12eba4=>_0x12eba4[_0x3172e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3172e7([0x2a])))[_0x3172e7([0x6d,0x61,0x70])](_0x3bc265=>_0x3bc265[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e])))[_0x3172e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9c2cfe=>_0x9c2cfe[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x12d857[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3172e7([0x6d,0x61,0x70])](_0x1e65cb=>Array(_0x12d857[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1e65cb[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3172e7([0x66,0x69,0x6c,0x6c])](_0x1e65cb[0x0]===_0x3172e7([0x2a])?_0x3172e7([0x2a]):'')[_0x3172e7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1e65cb))[_0x3172e7([0x73,0x6f,0x6d,0x65])](_0x246490=>_0x12d857[_0x3172e7([0x65,0x76,0x65,0x72,0x79])]((_0x420bf4,_0x10886f)=>_0x246490[_0x10886f]===_0x420bf4||_0x246490[_0x10886f]===_0x3172e7([0x2a])));}function _0x232700(){return _0x4d8d79&&_0x1fd881?new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x389d62,_0x365086)=>{_0x4d8d79[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x389d62,_0x365086),_0x1fd881[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x495908=>{_0x495908!=_0x3172e7([0x56,0x61,0x6c,0x69,0x64])&&_0x389d62(_0x495908);},_0x365086);}):_0x4d8d79||_0x1fd881||_0x3172e7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d0b93(_0xade74e,_0x5cf74c){return new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x561791=>{if(_0x23760f())return _0x561791(_0x3172e7([0x56,0x61,0x6c,0x69,0x64]));_0x2ab2e9(),_0x1a5641[_0x3172e7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3172e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c40ca=!0x1;const _0x449ca5=_0x519bc3();function _0x412ca3(_0x2632e6){return!!_0x2632e6&&(typeof _0x2632e6===_0x3172e7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2632e6===_0x3172e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2632e6[_0x3172e7([0x74,0x68,0x65,0x6e])]===_0x3172e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2632e6[_0x3172e7([0x63,0x61,0x74,0x63,0x68])]===_0x3172e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x419c62(_0x1851a2){_0x42c926(_0x1851a2)[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x5e995b=>{if(!_0x5e995b||_0x5e995b[_0x3172e7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3172e7([0x6f,0x6b]))return _0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x536463(_0x59c2ee(_0x449ca5+_0x5cf74c))!=_0x5e995b[_0x3172e7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3172e7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x3f3fd6=>(_0x4ba8af(),_0x3f3fd6),()=>{const _0x10d0ee=_0x2fb474();return null==_0x10d0ee?(_0x4ba8af(),_0x3172e7([0x56,0x61,0x6c,0x69,0x64])):_0x3172e7(_0x5bdabf-_0x10d0ee>(0x7753083a^_0x245125)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x561791)[_0x3172e7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x561791(_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x380fac=0x536962ba^_0x245125;function _0x4ba8af(){const _0x124e64=_0x3172e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x536463(_0x59c2ee(_0xade74e)),_0xdb9e61=_0x151267(_0x536463(window[_0x3172e7([0x4d,0x61,0x74,0x68])][_0x3172e7([0x63,0x65,0x69,0x6c])](_0x5bdabf/_0x380fac)));window[_0x3172e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3172e7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x124e64,_0xdb9e61);}function _0x2fb474(){const _0x2a2887=_0x3172e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x536463(_0x59c2ee(_0xade74e)),_0x1b381c=window[_0x3172e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3172e7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a2887);return _0x1b381c?window[_0x3172e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x151267(_0x1b381c),0x10)*_0x380fac:null;}function _0x42c926(_0xe7b15){return new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31e6ae,_0x22a4df)=>{_0xe7b15[_0x3172e7([0x74,0x68,0x65,0x6e])](_0x31e6ae,_0x22a4df),window[_0x3172e7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22a4df,0x535e58fa^_0x245125);});}}_0x1a5641[_0x3172e7([0x6f,0x6e])](_0x3172e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48c270,_0x40556d)=>{if(_0x40556d[0x0]!=_0xade74e)return _0x561791(_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40556d[0x1]={..._0x40556d[0x1],[_0x3172e7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x449ca5};},{[_0x3172e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3172e7([0x68,0x69,0x67,0x68])}),_0x1a5641[_0x3172e7([0x6f,0x6e])](_0x3172e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x354776=>{_0x412ca3(_0x354776[_0x3172e7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c40ca=!0x0,_0x419c62(_0x354776[_0x3172e7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3172e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3172e7([0x6c,0x6f,0x77])}),_0x47f5b7[_0x3172e7([0x74,0x68,0x65,0x6e])](()=>{_0x5c40ca||_0x561791(_0x3172e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23760f(){return _0x1a5641[_0x3172e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3172e7([0x76,0x69,0x65,0x77])][_0x3172e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3172e7([0x61,0x75,0x74,0x6f]);}function _0x2ab2e9(){_0x1a5641[_0x3172e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3172e7([0x76,0x69,0x65,0x77])][_0x3172e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3172e7([0x61,0x75,0x74,0x6f]);}}function _0x15ffff(_0x491830){const _0x3e9d22=[new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a8e18=>setTimeout(_0x4a8e18,0x5356b2f6^_0x245125)),_0x47f5b7[_0x3172e7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf68d=>{let _0x4150c3=0x0;_0x1a5641[_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3172e7([0x6f,0x6e])](_0x3172e7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b5715,_0x596d8e)=>{_0x596d8e[0x0][_0x3172e7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4150c3++,_0x4150c3==(0x535f89d2^_0x245125)&&(_0x4cf68d(),_0x1b5715[_0x3172e7([0x6f,0x66,0x66])]());});}))];return window[_0x3172e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3172e7([0x72,0x61,0x63,0x65])](_0x3e9d22)[_0x3172e7([0x74,0x68,0x65,0x6e])](()=>_0x491830);}async function _0x3761f7(){await _0x47f5b7,_0x1a5641[_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3172e7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa5e5dd,_0x1a5641[_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3172e7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa5e5dd,_0x1a5641[_0x3172e7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3172e7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23b57f(_0x3dbcec){const _0x4e9535=_0x4ecb18();_0x1a5641[_0x4e9535]=_0x3172e7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3dbcec,_0x3dbcec!=_0x3172e7([0x56,0x61,0x6c,0x69,0x64])&&_0x3761f7();}function _0x4ecb18(){const _0x34c933=window[_0x3172e7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3172e7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3172e7([0x6e,0x6f,0x77])]())[_0x3172e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3172e7([0x2e]),'');let _0x4e8fac=_0x3172e7([0x68]);for(let _0x2086b7=0x0;_0x2086b7<_0x34c933[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2086b7+=0x2){let _0x325451=window[_0x3172e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34c933[_0x3172e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2086b7,_0x2086b7+0x2));_0x325451>=_0x20a6cb[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x325451-=_0x20a6cb[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e8fac+=_0x20a6cb[_0x325451];}return _0x4e8fac;}function _0x327137(){const _0x447795=_0x58cb1f[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e]));if(0x3!=_0x447795[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ae8dd(_0x447795[0x1]);function _0x5ae8dd(_0x600d3c){const _0x5e3d12=_0x252645(_0x600d3c);return _0x5e3d12&&_0x93192e()?_0x5e3d12:null;function _0x93192e(){const _0x30989c=_0x5e3d12[_0x3172e7([0x6a,0x74,0x69])],_0x1a55d9=window[_0x3172e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30989c[_0x3172e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30989c[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1329cc={..._0x5e3d12,[_0x3172e7([0x6a,0x74,0x69])]:_0x30989c[_0x3172e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30989c[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1329cc[_0x3172e7([0x76,0x63])],_0x59c2ee(_0x1329cc)==_0x1a55d9;}}}async function _0x409a0d(){let _0x317517=!0x0;try{const _0x2dbfbc=_0x58cb1f[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])](_0x3172e7([0x2e])),[_0x2519a1,_0x1a3f0f,_0x4d84a0]=_0x2dbfbc;return _0x137edb(_0x2519a1),await _0x383c6d(_0x2519a1,_0x1a3f0f,_0x4d84a0),_0x317517;}catch{return!0x1;}function _0x137edb(_0x506b0c){const _0x2f6a33=_0x252645(_0x506b0c);_0x2f6a33&&_0x2f6a33[_0x3172e7([0x61,0x6c,0x67])]==_0x3172e7([0x45,0x53,0x32,0x35,0x36])||(_0x317517=!0x1);}async function _0x383c6d(_0x4fa268,_0x37d548,_0x59cbdd){const _0x4a30e8=window[_0x3172e7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3172e7([0x66,0x72,0x6f,0x6d])](_0xb20dcf(_0x59cbdd),_0x39feed=>_0x39feed[_0x3172e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x153a4f=new window[(_0x3172e7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3172e7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fa268+_0x3172e7([0x2e])+_0x37d548),_0x4ac306=window[_0x3172e7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3172e7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ac306)return;const _0x40ab55=await _0x4ac306[_0x3172e7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3172e7([0x6a,0x77,0x6b]),_0x580cd6,{[_0x3172e7([0x6e,0x61,0x6d,0x65])]:_0x3172e7([0x45,0x43,0x44,0x53,0x41]),[_0x3172e7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3172e7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3172e7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ac306[_0x3172e7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3172e7([0x6e,0x61,0x6d,0x65])]:_0x3172e7([0x45,0x43,0x44,0x53,0x41]),[_0x3172e7([0x68,0x61,0x73,0x68])]:{[_0x3172e7([0x6e,0x61,0x6d,0x65])]:_0x3172e7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40ab55,_0x4a30e8,_0x153a4f)||(_0x317517=!0x1);}}function _0x252645(_0x57a3d0){return _0x57a3d0[_0x3172e7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3172e7([0x65,0x79]))?JSON[_0x3172e7([0x70,0x61,0x72,0x73,0x65])](_0xb20dcf(_0x57a3d0)):null;}function _0xb20dcf(_0x459d83){return window[_0x3172e7([0x61,0x74,0x6f,0x62])](_0x459d83[_0x3172e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3172e7([0x2b]))[_0x3172e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3172e7([0x2f])));}function _0x59c2ee(_0x2a7613){let _0x2a706c=0x1505;function _0x274031(_0x23f0d0){for(let _0x5ae0a6=0x0;_0x5ae0a6<_0x23f0d0[_0x3172e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ae0a6++){const _0x576d66=_0x23f0d0[_0x3172e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ae0a6);_0x2a706c=(_0x2a706c<<0x5)+_0x2a706c+_0x576d66,_0x2a706c&=_0x2a706c;}}function _0x50c897(_0x511a76){Array[_0x3172e7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x511a76)?_0x511a76[_0x3172e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50c897):_0x511a76&&typeof _0x511a76==_0x3172e7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3172e7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x511a76)[_0x3172e7([0x73,0x6f,0x72,0x74])]()[_0x3172e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55b21f,_0x3c6458])=>{_0x274031(_0x55b21f),_0x50c897(_0x3c6458);}):_0x274031(window[_0x3172e7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x511a76));}return _0x50c897(_0x2a7613),_0x2a706c>>>0x0;}function _0x536463(_0x106beb){return _0x106beb[_0x3172e7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3172e7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3172e7([0x30]));}function _0x151267(_0x396a99){return _0x396a99[_0x3172e7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3172e7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3172e7([0x6a,0x6f,0x69,0x6e])]('');}function _0xa5e5dd(){}function _0x3172e7(_0x4145e5){const _0x49b5fb=_0x46b7;return _0x4145e5[_0x49b5fb(0x1f6)](_0x26f6d0=>String[_0x49b5fb(0x1dc)](_0x26f6d0))[_0x49b5fb(0x20d)]('');}_0x23b57f(await _0x482f57());}(this);}[_0x3c776b(0x1eb)](){const _0x442520=_0x3c776b,_0x45a268=this[_0x442520(0x1f4)][_0x442520(0x1c9)][_0x442520(0x1d2)];_0x45a268[_0x442520(0x1df)](_0x442520(0x1c6))&&_0x45a268[_0x442520(0x1ca)](_0x442520(0x1c6),{'allowAttributes':[_0x442520(0x20f)]}),_0x45a268[_0x442520(0x1df)](_0x442520(0x1e9))&&_0x45a268[_0x442520(0x1ca)](_0x442520(0x1e9),{'allowAttributes':[_0x442520(0x20f)]});}[_0x3c776b(0x1fa)](){const _0x4d67b0=_0x3c776b,_0x4dae5d=this[_0x4d67b0(0x1f4)];_0x4dae5d[_0x4d67b0(0x200)][_0x4d67b0(0x1ec)](_0x4d67b0(0x1ee))[_0x4d67b0(0x1d9)]({'model':_0x4d67b0(0x20f),'view':_0x4d67b0(0x1ff)}),_0x4dae5d[_0x4d67b0(0x200)][_0x4d67b0(0x1ec)](_0x4d67b0(0x1f7))[_0x4d67b0(0x1d0)]({'model':{'key':_0x4d67b0(0x20f),'value':_0x89c082=>_0x89c082[_0x4d67b0(0x1e7)](_0x4d67b0(0x1ff))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x20804c=_0x4dae5d[_0x4d67b0(0x1c3)][_0x4d67b0(0x209)](_0x4d67b0(0x1e8));_0x20804c&&this[_0x4d67b0(0x1c5)](_0x20804c,_0x4d67b0(0x1c7),(_0x3cea6c,[_0x34e950,_0x508362])=>{const _0xb9638f=_0x4d67b0;_0x34e950[_0xb9638f(0x1c2)](_0xb9638f(0x20f),_0x508362);});}[_0x3c776b(0x1e1)](){const _0x35ad2a=_0x3c776b,_0x46b20c=this[_0x35ad2a(0x1f4)][_0x35ad2a(0x1cd)][_0x35ad2a(0x209)](_0x35ad2a(0x1f8))||{},_0x515bbe=this[_0x35ad2a(0x1f4)][_0x35ad2a(0x1cd)][_0x35ad2a(0x209)](_0x35ad2a(0x1f2))||'';this[_0x35ad2a(0x213)]=_0x10cb33(_0x365182[_0x35ad2a(0x203)],_0x35ad2a(0x207),{..._0x46b20c,'pubkey':_0x515bbe,'ctx-name':_0x35ad2a(0x1d6)+this[_0x35ad2a(0x211)],'sourceList':'','imgOnly':_0x35ad2a(0x1f9),'removeCopyright':_0x35ad2a(0x1f9),'localeName':this[_0x35ad2a(0x1f4)][_0x35ad2a(0x1dd)][_0x35ad2a(0x1db)],'externalSourcesEmbedCss':_0x35ad2a(0x1c8)}),this[_0x35ad2a(0x213)][_0x35ad2a(0x20c)]=_0x1ce8b1=>{const _0x2cde45=_0x35ad2a;if(_0x2cde45(0x1d5)==_0x1ce8b1)return _0x2cde45(0x1bf);},_0x365182[_0x35ad2a(0x203)][_0x35ad2a(0x205)][_0x35ad2a(0x1ed)](this[_0x35ad2a(0x213)]);}[_0x3c776b(0x208)](){const _0x152f59=_0x3c776b;this[_0x152f59(0x1e0)]=_0x10cb33(_0x365182[_0x152f59(0x203)],_0x152f59(0x1e4),{'ctx-name':_0x152f59(0x1d6)+this[_0x152f59(0x211)]}),_0x365182[_0x152f59(0x203)][_0x152f59(0x205)][_0x152f59(0x1ed)](this[_0x152f59(0x1e0)]);}[_0x3c776b(0x1ef)](){const _0x456f5b=_0x3c776b,_0x5bc739=this[_0x456f5b(0x1f4)][_0x456f5b(0x1c3)][_0x456f5b(0x209)](_0x456f5b(0x1e5));_0x5bc739&&this[_0x456f5b(0x1c5)](_0x5bc739,_0x456f5b(0x1e2),()=>{const _0x216b67=_0x456f5b,_0x2015ba=this[_0x216b67(0x1f4)][_0x216b67(0x1c9)][_0x216b67(0x203)][_0x216b67(0x1f3)][_0x216b67(0x1c0)]();_0x2015ba&&_0x2015ba[_0x216b67(0x1e7)](_0x216b67(0x20f))&&this[_0x216b67(0x1f4)][_0x216b67(0x1d3)][_0x216b67(0x1fc)][_0x216b67(0x1d1)](_0x216b67(0x204),()=>{const _0x2fe63c=_0x216b67;_0x401820(this[_0x2fe63c(0x1f4)],_0x2015ba);});});const _0x2f64f5=this[_0x456f5b(0x1f4)][_0x456f5b(0x1c3)][_0x456f5b(0x209)](_0x456f5b(0x20a));_0x2f64f5&&this[_0x456f5b(0x1c5)](_0x2f64f5,_0x456f5b(0x1e2),()=>{const _0x13cbae=_0x456f5b,_0x30919b=this[_0x13cbae(0x1f4)][_0x13cbae(0x1c9)][_0x13cbae(0x203)][_0x13cbae(0x1f3)][_0x13cbae(0x1c0)]();_0x30919b&&_0x30919b[_0x13cbae(0x1e7)](_0x13cbae(0x20f))&&this[_0x13cbae(0x1f4)][_0x13cbae(0x1d3)][_0x13cbae(0x1fc)][_0x13cbae(0x1d1)](_0x13cbae(0x204),()=>{const _0x2d144a=_0x13cbae;_0x401820(this[_0x2d144a(0x1f4)],_0x30919b);});});}}
|
|
23
|
+
const _0x4d6a0d=_0x2a06;function _0x2f1c(){const _0x248c18=['commands','downcast','contentLanguage','configElement','uploadcareImageId','data-uc-image-id','4puLJPa','execute','ucContextId','imageBlock','2CommXL','view','editor','5605555cJTsND','UploadcareEditing','init','editing','_initConversion','uc-config','uploadcare.uploader','imageInline','once','selection','upcast','querySelector','3848rpfkCZ','appendChild','_initCtx','elementToAttribute','isPremiumPlugin','_ctxElement','closeMax','5557032YygFJc','4519452IGnxLq','extend','replaceImageSource','_initImageProcessingIndicator','add','fromCharCode','join','getAttribute','uploader-','9247YoCfKw','getSelectedElement','model','uc-upload-ctx-provider','remove','afterInit','schema','requires','destroy','957851SlUMkD','insertImage','_initSchema','#uc-icon-arrow-down','2218107pzvvHh','true','pluginName','config','removeAttribute','25772879AhjJxo','input[uploadcare-file-input]','render','10fULvph','document','uploadcareImageReplace','uploadcare.pubkey','_initConfig','listenTo','\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','isRegistered','PictureEditing','locale','iconHrefResolver','cleanupImage','attributeToAttribute','uploadcare','body','get','for','map','isOfficialPlugin','_configElement','href','conversion','ctxElement'];_0x2f1c=function(){return _0x248c18;};return _0x2f1c();}(function(_0x3a818c,_0x373fb7){const _0x13e1f5=_0x2a06,_0x88fcfb=_0x3a818c();while(!![]){try{const _0x1f1db5=parseInt(_0x13e1f5(0x164))/0x1*(-parseInt(_0x13e1f5(0x13b))/0x2)+parseInt(_0x13e1f5(0x168))/0x3*(parseInt(_0x13e1f5(0x18d))/0x4)+parseInt(_0x13e1f5(0x13e))/0x5+parseInt(_0x13e1f5(0x152))/0x6+parseInt(_0x13e1f5(0x15b))/0x7*(parseInt(_0x13e1f5(0x14a))/0x8)+parseInt(_0x13e1f5(0x151))/0x9+-parseInt(_0x13e1f5(0x170))/0xa*(parseInt(_0x13e1f5(0x16d))/0xb);if(_0x1f1db5===_0x373fb7)break;else _0x88fcfb['push'](_0x88fcfb['shift']());}catch(_0x1050bc){_0x88fcfb['push'](_0x88fcfb['shift']());}}}(_0x2f1c,0x8a1e3));import{Plugin as _0xecf7e8}from'ckeditor5/src/core.js';import{Dialog as _0x1fdeb8}from'ckeditor5/src/ui.js';import{createElement as _0x3a842a,global as _0x3ced27,uid as _0x406430}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5ced74}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x27b222}from'./uploadcareuploadadapter.js';function _0x2a06(_0x5bba01,_0x48137c){const _0x2f1c61=_0x2f1c();return _0x2a06=function(_0x2a0681,_0x705002){_0x2a0681=_0x2a0681-0x139;let _0x472c19=_0x2f1c61[_0x2a0681];return _0x472c19;},_0x2a06(_0x5bba01,_0x48137c);}import{showImageProcessingIndicator as _0x503da2}from'./utils/editingutils.js';export class UploadcareEditing extends _0xecf7e8{[_0x4d6a0d(0x183)]=null;[_0x4d6a0d(0x14f)]=null;static get[_0x4d6a0d(0x16a)](){const _0x143726=_0x4d6a0d;return _0x143726(0x13f);}static get[_0x4d6a0d(0x162)](){const _0x4bcd5a=_0x4d6a0d;return[_0x4bcd5a(0x178),_0x27b222,_0x1fdeb8];}static get[_0x4d6a0d(0x182)](){return!0x0;}static get[_0x4d6a0d(0x14e)](){return!0x0;}[_0x4d6a0d(0x139)];get[_0x4d6a0d(0x18a)](){const _0x2ebb6b=_0x4d6a0d;return this[_0x2ebb6b(0x183)];}get[_0x4d6a0d(0x186)](){const _0x4c9a55=_0x4d6a0d;return this[_0x4c9a55(0x14f)];}constructor(_0x1d754f){const _0xc6a7b0=_0x4d6a0d;super(_0x1d754f),this[_0xc6a7b0(0x139)]=_0x406430();}[_0x4d6a0d(0x140)](){const _0x2e0a70=_0x4d6a0d,_0x44a852=this[_0x2e0a70(0x13d)];_0x44a852[_0x2e0a70(0x187)][_0x2e0a70(0x156)](_0x2e0a70(0x17d),new _0x5ced74(_0x44a852));}[_0x4d6a0d(0x160)](){const _0x53f40c=_0x4d6a0d;this[_0x53f40c(0x166)](),this[_0x53f40c(0x142)](),this[_0x53f40c(0x174)](),this[_0x53f40c(0x14c)](),this[_0x53f40c(0x155)](),this[_0x53f40c(0x175)](this[_0x53f40c(0x13d)],_0x53f40c(0x163),()=>{const _0x4c4d4a=_0x53f40c;this[_0x4c4d4a(0x183)]&&(this[_0x4c4d4a(0x183)][_0x4c4d4a(0x15f)](),this[_0x4c4d4a(0x183)]=null),this[_0x4c4d4a(0x14f)]&&(this[_0x4c4d4a(0x14f)][_0x4c4d4a(0x15f)](),this[_0x4c4d4a(0x14f)]=null);const _0x56abaa=_0x3ced27[_0x4c4d4a(0x171)][_0x4c4d4a(0x149)](_0x4c4d4a(0x16e));_0x56abaa&&_0x56abaa[_0x4c4d4a(0x15f)]();}),async function(_0x34fc33){const _0x5ef54b=_0x2f8119([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xe1b460=0x535f8c3a,_0x3e6d70=0x5358f1ca^_0xe1b460,_0x11f478=window[_0x2f8119([0x44,0x61,0x74,0x65])][_0x2f8119([0x6e,0x6f,0x77])](),_0x391b91=_0x34fc33[_0x2f8119([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c76b2=new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a84a8=>{_0x391b91[_0x2f8119([0x6f,0x6e,0x63,0x65])](_0x2f8119([0x72,0x65,0x61,0x64,0x79]),_0x5a84a8);}),_0x2c6b88={[_0x2f8119([0x6b,0x74,0x79])]:_0x2f8119([0x45,0x43]),[_0x2f8119([0x75,0x73,0x65])]:_0x2f8119([0x73,0x69,0x67]),[_0x2f8119([0x63,0x72,0x76])]:_0x2f8119([0x50,0x2d,0x32,0x35,0x36]),[_0x2f8119([0x78])]:_0x2f8119([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]),[_0x2f8119([0x79])]:_0x2f8119([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]),[_0x2f8119([0x61,0x6c,0x67])]:_0x2f8119([0x45,0x53,0x32,0x35,0x36])},_0x408d91=_0x391b91[_0x2f8119([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f8119([0x67,0x65,0x74])](_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c0fb2(){let _0x12f04c,_0x52a4a9=null,_0x3aa38e=null;try{if(_0x408d91==_0x2f8119([0x47,0x50,0x4c]))return _0x2f8119([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12f04c=_0x18c66f(),!_0x12f04c)return _0x2f8119([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12f04c[_0x2f8119([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3aa38e=_0x1fea45(_0x12f04c[_0x2f8119([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12f04c[_0x2f8119([0x6a,0x74,0x69])])),await _0x47817e()?_0x599b6f()?_0x2c133f()?_0x2f8119([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45e493()?(_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f8119([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x52a4a9=_0x13bf8b(_0x2f8119([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f8119([0x74,0x72,0x69,0x61,0x6c])&&(_0x52a4a9=_0x13bf8b(_0x2f8119([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a672b()):_0x2f8119([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f8119([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f8119([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f8119([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c133f(){const _0x3906a2=[_0x2f8119([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f8119([0x74,0x72,0x69,0x61,0x6c])][_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11f478/0x3e8:0xe10*_0x3e6d70;return _0x12f04c[_0x2f8119([0x65,0x78,0x70])]<_0x3906a2;}function _0x599b6f(){const _0x756314=_0x12f04c[_0x2f8119([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x756314&&(!!_0x756314[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8119([0x2a]))||!!_0x756314[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8119([0x55,0x50,0x4c,0x43])));}function _0x45e493(){const _0x4d32ee=_0x2a06,_0xb6921f=_0x12f04c[_0x2f8119([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb6921f||0x0==_0xb6921f[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x463ddf}=new URL(window[_0x2f8119([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4d32ee(0x184)]);if(_0xb6921f[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x463ddf))return!0x0;const _0x508ac5=_0x463ddf[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e]));return _0xb6921f[_0x2f8119([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x116ab4=>_0x116ab4[_0x2f8119([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f8119([0x2a])))[_0x2f8119([0x6d,0x61,0x70])](_0x46bb13=>_0x46bb13[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e])))[_0x2f8119([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10a1e3=>_0x10a1e3[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x508ac5[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f8119([0x6d,0x61,0x70])](_0x1a3951=>Array(_0x508ac5[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a3951[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f8119([0x66,0x69,0x6c,0x6c])](_0x1a3951[0x0]===_0x2f8119([0x2a])?_0x2f8119([0x2a]):'')[_0x2f8119([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a3951))[_0x2f8119([0x73,0x6f,0x6d,0x65])](_0x247efc=>_0x508ac5[_0x2f8119([0x65,0x76,0x65,0x72,0x79])]((_0x1aff3a,_0x18a3b6)=>_0x247efc[_0x18a3b6]===_0x1aff3a||_0x247efc[_0x18a3b6]===_0x2f8119([0x2a])));}function _0x5a672b(){return _0x52a4a9&&_0x3aa38e?new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22a10b,_0x12fd44)=>{_0x52a4a9[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x22a10b,_0x12fd44),_0x3aa38e[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x29a3df=>{_0x29a3df!=_0x2f8119([0x56,0x61,0x6c,0x69,0x64])&&_0x22a10b(_0x29a3df);},_0x12fd44);}):_0x52a4a9||_0x3aa38e||_0x2f8119([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1fea45(_0x4928d1,_0x16e42c){return new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53afdf=>{if(_0xed3e11())return _0x53afdf(_0x2f8119([0x56,0x61,0x6c,0x69,0x64]));_0x352bbe(),_0x391b91[_0x2f8119([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f8119([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3db2a6=!0x1;const _0x310611=_0x406430();function _0x42f95e(_0x494011){return!!_0x494011&&(typeof _0x494011===_0x2f8119([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x494011===_0x2f8119([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x494011[_0x2f8119([0x74,0x68,0x65,0x6e])]===_0x2f8119([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x494011[_0x2f8119([0x63,0x61,0x74,0x63,0x68])]===_0x2f8119([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x510f6d(_0x5df6ce){_0x144913(_0x5df6ce)[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x40c3b3=>{if(!_0x40c3b3||_0x40c3b3[_0x2f8119([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f8119([0x6f,0x6b]))return _0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xda6dec(_0x9d51d4(_0x310611+_0x16e42c))!=_0x40c3b3[_0x2f8119([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f8119([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x28d13b=>(_0x23ebcf(),_0x28d13b),()=>{const _0x1b4d2a=_0x5b9d4c();return null==_0x1b4d2a?(_0x23ebcf(),_0x2f8119([0x56,0x61,0x6c,0x69,0x64])):_0x2f8119(_0x11f478-_0x1b4d2a>(0x7753083a^_0xe1b460)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x53afdf)[_0x2f8119([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53afdf(_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x396e72=0x536962ba^_0xe1b460;function _0x23ebcf(){const _0x4c5c0a=_0x2f8119([0x6c,0x6c,0x63,0x74,0x2d])+_0xda6dec(_0x9d51d4(_0x4928d1)),_0x121db6=_0x221ab3(_0xda6dec(window[_0x2f8119([0x4d,0x61,0x74,0x68])][_0x2f8119([0x63,0x65,0x69,0x6c])](_0x11f478/_0x396e72)));window[_0x2f8119([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f8119([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c5c0a,_0x121db6);}function _0x5b9d4c(){const _0x15329c=_0x2f8119([0x6c,0x6c,0x63,0x74,0x2d])+_0xda6dec(_0x9d51d4(_0x4928d1)),_0x2ab563=window[_0x2f8119([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f8119([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15329c);return _0x2ab563?window[_0x2f8119([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x221ab3(_0x2ab563),0x10)*_0x396e72:null;}function _0x144913(_0x2076f7){return new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52e11a,_0x446eb6)=>{_0x2076f7[_0x2f8119([0x74,0x68,0x65,0x6e])](_0x52e11a,_0x446eb6),window[_0x2f8119([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x446eb6,0x535e58fa^_0xe1b460);});}}_0x391b91[_0x2f8119([0x6f,0x6e])](_0x2f8119([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d9969,_0x43feef)=>{if(_0x43feef[0x0]!=_0x4928d1)return _0x53afdf(_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43feef[0x1]={..._0x43feef[0x1],[_0x2f8119([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x310611};},{[_0x2f8119([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f8119([0x68,0x69,0x67,0x68])}),_0x391b91[_0x2f8119([0x6f,0x6e])](_0x2f8119([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d83c6=>{_0x42f95e(_0x3d83c6[_0x2f8119([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3db2a6=!0x0,_0x510f6d(_0x3d83c6[_0x2f8119([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f8119([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f8119([0x6c,0x6f,0x77])}),_0x1c76b2[_0x2f8119([0x74,0x68,0x65,0x6e])](()=>{_0x3db2a6||_0x53afdf(_0x2f8119([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xed3e11(){return _0x391b91[_0x2f8119([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f8119([0x76,0x69,0x65,0x77])][_0x2f8119([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f8119([0x61,0x75,0x74,0x6f]);}function _0x352bbe(){_0x391b91[_0x2f8119([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f8119([0x76,0x69,0x65,0x77])][_0x2f8119([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f8119([0x61,0x75,0x74,0x6f]);}}function _0x13bf8b(_0x19deaf){const _0x29f76d=[new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c9858=>setTimeout(_0x4c9858,0x5356b2f6^_0xe1b460)),_0x1c76b2[_0x2f8119([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53e3f4=>{let _0xe8f5b0=0x0;_0x391b91[_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8119([0x6f,0x6e])](_0x2f8119([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59c003,_0x230e86)=>{_0x230e86[0x0][_0x2f8119([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe8f5b0++,_0xe8f5b0==(0x535f89d2^_0xe1b460)&&(_0x53e3f4(),_0x59c003[_0x2f8119([0x6f,0x66,0x66])]());});}))];return window[_0x2f8119([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f8119([0x72,0x61,0x63,0x65])](_0x29f76d)[_0x2f8119([0x74,0x68,0x65,0x6e])](()=>_0x19deaf);}async function _0x292c60(){await _0x1c76b2,_0x391b91[_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8119([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2485be,_0x391b91[_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f8119([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2485be,_0x391b91[_0x2f8119([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f8119([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5cd0d7(_0x5d9436){const _0x55b46c=_0x5a533e();_0x391b91[_0x55b46c]=_0x2f8119([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d9436,_0x5d9436!=_0x2f8119([0x56,0x61,0x6c,0x69,0x64])&&_0x292c60();}function _0x5a533e(){const _0x4ebd48=window[_0x2f8119([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f8119([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f8119([0x6e,0x6f,0x77])]())[_0x2f8119([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f8119([0x2e]),'');let _0x334508=_0x2f8119([0x68]);for(let _0x27a212=0x0;_0x27a212<_0x4ebd48[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27a212+=0x2){let _0xb449ac=window[_0x2f8119([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ebd48[_0x2f8119([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27a212,_0x27a212+0x2));_0xb449ac>=_0x5ef54b[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb449ac-=_0x5ef54b[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x334508+=_0x5ef54b[_0xb449ac];}return _0x334508;}function _0x18c66f(){const _0x41d9fb=_0x408d91[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e]));if(0x3!=_0x41d9fb[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe9822b(_0x41d9fb[0x1]);function _0xe9822b(_0x214a1a){const _0x32b703=_0x5b158e(_0x214a1a);return _0x32b703&&_0x4290c4()?_0x32b703:null;function _0x4290c4(){const _0x2b8bf3=_0x32b703[_0x2f8119([0x6a,0x74,0x69])],_0x17ddac=window[_0x2f8119([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b8bf3[_0x2f8119([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b8bf3[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d1b87={..._0x32b703,[_0x2f8119([0x6a,0x74,0x69])]:_0x2b8bf3[_0x2f8119([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b8bf3[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d1b87[_0x2f8119([0x76,0x63])],_0x9d51d4(_0x2d1b87)==_0x17ddac;}}}async function _0x47817e(){let _0x43200f=!0x0;try{const _0x19106d=_0x408d91[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])](_0x2f8119([0x2e])),[_0xa90250,_0x167ef9,_0x5e2de4]=_0x19106d;return _0x260374(_0xa90250),await _0x14a028(_0xa90250,_0x167ef9,_0x5e2de4),_0x43200f;}catch{return!0x1;}function _0x260374(_0x5e6520){const _0x28a6aa=_0x5b158e(_0x5e6520);_0x28a6aa&&_0x28a6aa[_0x2f8119([0x61,0x6c,0x67])]==_0x2f8119([0x45,0x53,0x32,0x35,0x36])||(_0x43200f=!0x1);}async function _0x14a028(_0x204610,_0x4f79b1,_0x3e232c){const _0x5397f3=window[_0x2f8119([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f8119([0x66,0x72,0x6f,0x6d])](_0x2cd892(_0x3e232c),_0x18e22a=>_0x18e22a[_0x2f8119([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20ca54=new window[(_0x2f8119([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f8119([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x204610+_0x2f8119([0x2e])+_0x4f79b1),_0x2cc056=window[_0x2f8119([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f8119([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cc056)return;const _0x21be06=await _0x2cc056[_0x2f8119([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f8119([0x6a,0x77,0x6b]),_0x2c6b88,{[_0x2f8119([0x6e,0x61,0x6d,0x65])]:_0x2f8119([0x45,0x43,0x44,0x53,0x41]),[_0x2f8119([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f8119([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f8119([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cc056[_0x2f8119([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f8119([0x6e,0x61,0x6d,0x65])]:_0x2f8119([0x45,0x43,0x44,0x53,0x41]),[_0x2f8119([0x68,0x61,0x73,0x68])]:{[_0x2f8119([0x6e,0x61,0x6d,0x65])]:_0x2f8119([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21be06,_0x5397f3,_0x20ca54)||(_0x43200f=!0x1);}}function _0x5b158e(_0x423826){return _0x423826[_0x2f8119([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f8119([0x65,0x79]))?JSON[_0x2f8119([0x70,0x61,0x72,0x73,0x65])](_0x2cd892(_0x423826)):null;}function _0x2cd892(_0x285271){return window[_0x2f8119([0x61,0x74,0x6f,0x62])](_0x285271[_0x2f8119([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f8119([0x2b]))[_0x2f8119([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f8119([0x2f])));}function _0x9d51d4(_0x25ed58){let _0xa2d79a=0x1505;function _0x3fa235(_0x484bf4){for(let _0x452b3d=0x0;_0x452b3d<_0x484bf4[_0x2f8119([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x452b3d++){const _0x436ea9=_0x484bf4[_0x2f8119([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x452b3d);_0xa2d79a=(_0xa2d79a<<0x5)+_0xa2d79a+_0x436ea9,_0xa2d79a&=_0xa2d79a;}}function _0x7f9997(_0xfc8ec2){Array[_0x2f8119([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfc8ec2)?_0xfc8ec2[_0x2f8119([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7f9997):_0xfc8ec2&&typeof _0xfc8ec2==_0x2f8119([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f8119([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfc8ec2)[_0x2f8119([0x73,0x6f,0x72,0x74])]()[_0x2f8119([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x449cae,_0x24bd21])=>{_0x3fa235(_0x449cae),_0x7f9997(_0x24bd21);}):_0x3fa235(window[_0x2f8119([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfc8ec2));}return _0x7f9997(_0x25ed58),_0xa2d79a>>>0x0;}function _0xda6dec(_0x3d5b08){return _0x3d5b08[_0x2f8119([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f8119([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f8119([0x30]));}function _0x221ab3(_0x4f504f){return _0x4f504f[_0x2f8119([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f8119([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f8119([0x6a,0x6f,0x69,0x6e])]('');}function _0x2485be(){}function _0x2f8119(_0x45706d){const _0x296188=_0x2a06;return _0x45706d[_0x296188(0x181)](_0x9df452=>String[_0x296188(0x157)](_0x9df452))[_0x296188(0x158)]('');}_0x5cd0d7(await _0x3c0fb2());}(this);}[_0x4d6a0d(0x166)](){const _0x2d411c=_0x4d6a0d,_0x7e974=this[_0x2d411c(0x13d)][_0x2d411c(0x15d)][_0x2d411c(0x161)];_0x7e974[_0x2d411c(0x177)](_0x2d411c(0x13a))&&_0x7e974[_0x2d411c(0x153)](_0x2d411c(0x13a),{'allowAttributes':[_0x2d411c(0x18b)]}),_0x7e974[_0x2d411c(0x177)](_0x2d411c(0x145))&&_0x7e974[_0x2d411c(0x153)](_0x2d411c(0x145),{'allowAttributes':[_0x2d411c(0x18b)]});}[_0x4d6a0d(0x142)](){const _0x55836b=_0x4d6a0d,_0x196ceb=this[_0x55836b(0x13d)];_0x196ceb[_0x55836b(0x185)][_0x55836b(0x180)](_0x55836b(0x188))[_0x55836b(0x17c)]({'model':_0x55836b(0x18b),'view':_0x55836b(0x18c)}),_0x196ceb[_0x55836b(0x185)][_0x55836b(0x180)](_0x55836b(0x148))[_0x55836b(0x14d)]({'model':{'key':_0x55836b(0x18b),'value':_0x22a5dd=>_0x22a5dd[_0x55836b(0x159)](_0x55836b(0x18c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x182d26=_0x196ceb[_0x55836b(0x187)][_0x55836b(0x17f)](_0x55836b(0x154));_0x182d26&&this[_0x55836b(0x175)](_0x182d26,_0x55836b(0x17b),(_0x5f238b,[_0x1cf2c4,_0x146c1a])=>{const _0xb5b253=_0x55836b;_0x1cf2c4[_0xb5b253(0x16c)](_0xb5b253(0x18b),_0x146c1a);});}[_0x4d6a0d(0x174)](){const _0x3e72e7=_0x4d6a0d,_0x5c4903=this[_0x3e72e7(0x13d)][_0x3e72e7(0x16b)][_0x3e72e7(0x17f)](_0x3e72e7(0x144))||{},_0x64c8bd=this[_0x3e72e7(0x13d)][_0x3e72e7(0x16b)][_0x3e72e7(0x17f)](_0x3e72e7(0x173))||'';this[_0x3e72e7(0x183)]=_0x3a842a(_0x3ced27[_0x3e72e7(0x171)],_0x3e72e7(0x143),{..._0x5c4903,'pubkey':_0x64c8bd,'ctx-name':_0x3e72e7(0x15a)+this[_0x3e72e7(0x139)],'sourceList':'','imgOnly':_0x3e72e7(0x169),'removeCopyright':_0x3e72e7(0x169),'localeName':this[_0x3e72e7(0x13d)][_0x3e72e7(0x179)][_0x3e72e7(0x189)],'externalSourcesEmbedCss':_0x3e72e7(0x176)}),this[_0x3e72e7(0x183)][_0x3e72e7(0x17a)]=_0x16e680=>{const _0x5bfb86=_0x3e72e7;if(_0x5bfb86(0x150)==_0x16e680)return _0x5bfb86(0x167);},_0x3ced27[_0x3e72e7(0x171)][_0x3e72e7(0x17e)][_0x3e72e7(0x14b)](this[_0x3e72e7(0x183)]);}[_0x4d6a0d(0x14c)](){const _0x212da4=_0x4d6a0d;this[_0x212da4(0x14f)]=_0x3a842a(_0x3ced27[_0x212da4(0x171)],_0x212da4(0x15e),{'ctx-name':_0x212da4(0x15a)+this[_0x212da4(0x139)]}),_0x3ced27[_0x212da4(0x171)][_0x212da4(0x17e)][_0x212da4(0x14b)](this[_0x212da4(0x14f)]);}[_0x4d6a0d(0x155)](){const _0xf4e80f=_0x4d6a0d,_0x48f3a7=this[_0xf4e80f(0x13d)][_0xf4e80f(0x187)][_0xf4e80f(0x17f)](_0xf4e80f(0x165));_0x48f3a7&&this[_0xf4e80f(0x175)](_0x48f3a7,_0xf4e80f(0x18e),()=>{const _0x3c1c0e=_0xf4e80f,_0x2fc1cc=this[_0x3c1c0e(0x13d)][_0x3c1c0e(0x15d)][_0x3c1c0e(0x171)][_0x3c1c0e(0x147)][_0x3c1c0e(0x15c)]();_0x2fc1cc&&_0x2fc1cc[_0x3c1c0e(0x159)](_0x3c1c0e(0x18b))&&this[_0x3c1c0e(0x13d)][_0x3c1c0e(0x141)][_0x3c1c0e(0x13c)][_0x3c1c0e(0x146)](_0x3c1c0e(0x16f),()=>{const _0x5bc694=_0x3c1c0e;_0x503da2(this[_0x5bc694(0x13d)],_0x2fc1cc);});});const _0x2af56e=this[_0xf4e80f(0x13d)][_0xf4e80f(0x187)][_0xf4e80f(0x17f)](_0xf4e80f(0x172));_0x2af56e&&this[_0xf4e80f(0x175)](_0x2af56e,_0xf4e80f(0x18e),()=>{const _0x4e8b95=_0xf4e80f,_0x434000=this[_0x4e8b95(0x13d)][_0x4e8b95(0x15d)][_0x4e8b95(0x171)][_0x4e8b95(0x147)][_0x4e8b95(0x15c)]();_0x434000&&_0x434000[_0x4e8b95(0x159)](_0x4e8b95(0x18b))&&this[_0x4e8b95(0x13d)][_0x4e8b95(0x141)][_0x4e8b95(0x13c)][_0x4e8b95(0x146)](_0x4e8b95(0x16f),()=>{const _0x2137e2=_0x4e8b95;_0x503da2(this[_0x2137e2(0x13d)],_0x434000);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x2e0fac,ObservableMixin as _0x18c15a}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1a460a}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1ac5a7}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x1d790d}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x5a7516}from'../../utils/uploadutils.js';import{getImageUrls as _0x101311,getImageDimension as _0x5e7389}from'../../utils/editingutils.js';import{isAncestor as _0x35d780}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x18c15a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x51809a,_0x7ed88,_0x1c115a){super(),this['_editor']=_0x51809a,this['_dialog']=_0x7ed88,this['_imageElement']=_0x1c115a,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 _0x48d076=this['_imageElement'],_0x199216=_0x48d076['getAttribute']('uploadcareImageId'),_0x11d185=_0x48d076['getAttribute']('src');if(_0x199216)await this['_loadImageInfo'](_0x199216,_0x11d185);else{if(this['_imageCache']['has'](_0x11d185)){const _0x3ace58=this['_imageCache']['get'](_0x11d185);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3ace58['url'],this['imageDimension']=_0x3ace58['dimension'],this['imageId']=_0x3ace58['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x26638d}=this['_editor'],t=_0x26638d['t'],_0x46c4bf=new _0x1d790d(_0x26638d,this['imageStatus'],this['_attributes']);_0x46c4bf['bind']('status')['to'](this,'imageStatus'),_0x46c4bf['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x46c4bf['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x46c4bf['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x46c4bf,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1ac5a7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x46c4bf,'position':_0x1a460a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x46c4bf['focus']();},'onHide':()=>{_0x46c4bf['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x43aad4=>!_0x35d780(_0x43aad4,_0x46c4bf['element'])}});}['_loadImageInfo'](_0x433239,_0x50b848){return _0x5a7516['getInfo'](_0x433239,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x558c5d=>{const {width:_0x3fcbd2,height:_0x369576}=_0x558c5d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50b848,this['imageDimension']={'width':_0x3fcbd2,'height':_0x369576},this['imageId']=_0x433239;})['catch'](_0x3aa8d8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3aa8d8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x111ed8,_0x83e3ba){return this['_getImageAsFile'](_0x111ed8)['then'](_0x3ad967=>_0x5a7516['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x83e3ba['signal'],'file':_0x3ad967,'onProgress':_0x36b701=>{_0x36b701&&_0x36b701['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x36b701['value']));}}))['then'](_0x581a8a=>{const {width:_0x2c2379,height:_0x43dc40}=_0x581a8a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x581a8a['cdnUrl'],this['imageDimension']={'width':_0x2c2379,'height':_0x43dc40},this['imageId']=_0x581a8a['uuid'],this['imageUploadProgress']=null;const _0x1e5c5c=_0x111ed8['getAttribute']('src');this['_imageCache']['set'](_0x1e5c5c,{'id':_0x581a8a['uuid'],'url':_0x581a8a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1a2fa1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1a2fa1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x18c5c7,_0x434c0d){_0x18c5c7['on']('apply',(_0x5dee1e,_0x34e198)=>{this['_replaceImage'](_0x434c0d,_0x34e198['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x18c5c7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x18c5c7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xddc7d8,_0x45a7ea,_0x315cb9){const _0x31b07d=this['_editor'],{width:_0x229d64,height:_0x1024cd}=_0x5e7389(_0x45a7ea,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4dd22e,imageSources:_0x29b12a}=_0x101311(_0x45a7ea,_0x229d64);_0x31b07d['model']['change'](_0x2c2686=>{if('$graveyard'===_0xddc7d8['root']['rootName']){_0x31b07d['execute']('insertImage',{'imageType':_0xddc7d8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xddc7d8['getAttributes']()),'uploadcareImageId':_0x315cb9,'src':_0x4dd22e,'sources':_0x29b12a,'width':_0x229d64,'height':_0x1024cd}});const _0x471ca7=_0xddc7d8['getChildren']();_0xddc7d8=_0x31b07d['model']['document']['selection']['getSelectedElement']();for(const _0x39396e of _0x471ca7)_0x2c2686['append'](_0x2c2686['cloneElement'](_0x39396e),_0xddc7d8);}else _0x2c2686['setSelection'](_0xddc7d8,'on'),_0x31b07d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xddc7d8['getAttributes']()),'uploadcareImageId':_0x315cb9,'src':_0x4dd22e,'sources':_0x29b12a,'width':_0x229d64,'height':_0x1024cd},_0xddc7d8);_0x2c2686['setSelection'](_0xddc7d8,'on');});}async['_getImageAsFile'](_0x483946){const _0x5d65c3=_0x2e0fac['window'],_0x34897b=_0x2e0fac['document']['location']['href'],_0x3f8f07=new _0x5d65c3['URL'](_0x483946['getAttribute']('src'),_0x34897b);if('data:'===_0x3f8f07['protocol']){const _0x165c46=_0x3f8f07['href']['split'](','),_0x38e3bd=_0x165c46[0x0]['match'](/:(.*?);/)[0x1],_0x742b8=_0x38e3bd['split']('/')[0x1],_0x1dc38a=_0x5d65c3['atob'](_0x165c46[_0x165c46['length']-0x1]);let _0x1901e2=_0x1dc38a['length'];const _0x6a4ea6=new _0x5d65c3['Uint8Array'](_0x1901e2);for(;_0x1901e2--;)_0x6a4ea6[_0x1901e2]=_0x1dc38a['charCodeAt'](_0x1901e2);return new _0x5d65c3['File']([_0x6a4ea6],'image.'+_0x742b8,{'type':_0x38e3bd});}const _0x16db71=_0x3f8f07['href']['split']('/'),_0xbd87d7=_0x16db71[_0x16db71['length']-0x1],_0x18c784=_0xbd87d7['split']('.')[0x1];return _0x5d65c3['fetch'](_0x3f8f07['href'])['then'](_0x45669a=>_0x45669a['clone']()['blob']())['then'](_0x328bcc=>new _0x5d65c3['File']([_0x328bcc],_0xbd87d7,{'type':'image/'+_0x18c784}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x5aba(_0x45523b,_0x22aa91){const _0x28c962=_0x28c9();return _0x5aba=function(_0x5aba4a,_0x402f8a){_0x5aba4a=_0x5aba4a-0x95;let _0x219181=_0x28c962[_0x5aba4a];return _0x219181;},_0x5aba(_0x45523b,_0x22aa91);}function _0x28c9(){const _0xce3aa0=['1062018dCLTba','uc-cloud-image-editor','2518764qUxihX','2926490xItbvv','set','18OgCZQs','1445830BQVWol','uc-light','24FGyibL','setTemplate','bindTemplate','ck-uploadcare-theme','269694GcpGYm','641110KaojLb','image-edit','398583xxWKAX','imageSrc'];_0x28c9=function(){return _0xce3aa0;};return _0x28c9();}(function(_0x962f71,_0x4a79dd){const _0x39bd41=_0x5aba,_0x394e69=_0x962f71();while(!![]){try{const _0x318f58=-parseInt(_0x39bd41(0xa1))/0x1+parseInt(_0x39bd41(0x98))/0x2+parseInt(_0x39bd41(0xa3))/0x3+parseInt(_0x39bd41(0xa5))/0x4+-parseInt(_0x39bd41(0x9f))/0x5*(parseInt(_0x39bd41(0x97))/0x6)+-parseInt(_0x39bd41(0x95))/0x7+-parseInt(_0x39bd41(0x9a))/0x8*(parseInt(_0x39bd41(0x9e))/0x9);if(_0x318f58===_0x4a79dd)break;else _0x394e69['push'](_0x394e69['shift']());}catch(_0x4b2dcd){_0x394e69['push'](_0x394e69['shift']());}}}(_0x28c9,0x656a3));import{View as _0x5697bd}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x5697bd{constructor(_0x2b581a,_0x3f5225){const _0x243fd2=_0x5aba;super(_0x2b581a);const _0x3e7ad0=this[_0x243fd2(0x9c)];this[_0x243fd2(0x96)](_0x243fd2(0xa2),''),this[_0x243fd2(0x9b)]({'tag':_0x243fd2(0xa4),'attributes':{..._0x3f5225,'class':[_0x243fd2(0x99),_0x243fd2(0x9d)],'ctx-name':_0x243fd2(0xa0),'cdn-url':_0x3e7ad0['to'](_0x243fd2(0xa2))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as
|
|
23
|
+
import{IconError as _0x1f6e26}from'ckeditor5/src/icons.js';import{ButtonView as _0x3a963d,IconView as _0x3aa2a0,View as _0x6ea6c6}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x6ea6c6{constructor(_0x433299){super(_0x433299);const t=_0x433299['t'];this['set']('errorType',null);const _0x31336b=new _0x3a963d(_0x433299);_0x31336b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x31336b['withText']=!0x0,_0x31336b['class']='ck-button-action',_0x31336b['on']('execute',()=>{this['fire']('retry');}),_0x31336b['bind']('isVisible')['to'](this,'errorType',_0x2289d4=>'NotFound'!==_0x2289d4);const _0x500d45=new _0x3aa2a0();_0x500d45['content']=_0x1f6e26,_0x500d45['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2e8410=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':[_0x500d45,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2e8410['to']('errorType',_0x5e20ba=>t('NotFound'!==_0x5e20ba?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x31336b]},{'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 _0x5a3a64,View as _0x592e2f}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x592e2f{constructor(_0x39f9a0){super(_0x39f9a0);const t=_0x39f9a0['t'],_0x52b053=this['bindTemplate'],_0x18a783=new _0x5a3a64();_0x18a783['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':[_0x18a783,{'text':_0x52b053['to']('imageUploadProgress',_0x273b20=>t('Loading\x20image...')+'\x20('+(_0x273b20||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 _0x4a80a8=_0x579e;function _0x3e5a(){const _0x447ba8=['observe','apply','_editingView','toLowerCase','91749ZjUwtI','8PHAjIo','_waitForImageEditorComponent','nodeName','5NVgRif','render','122968PwYQAh','ready','detail','set','cdnUrl','add','addEventListener','uc-cloud-image-editor','15130uhqHDZ','disconnect','target','change:status','2388591cBkjTL','_items','querySelector','ck-reset_all-excluded','_setView','fire','3531fmWmcW','addMany','_errorView','div','uploading','clear','element','_addErrorViewListeners','setTemplate','focus','_focusableView','length','762816vaoNAZ','once','error','415479vBxEZW','retry','createCollection','ck-uploadcare-form','status','4ZvpTDP','186786RvCcpq','_loadingView','_addUploadcareImageEditorListeners','addedNodes','filter','getFocusableElement','cancel'];_0x3e5a=function(){return _0x447ba8;};return _0x3e5a();}(function(_0x1393be,_0x2c1703){const _0x2af0fd=_0x579e,_0x14c56e=_0x1393be();while(!![]){try{const _0x1b3ac6=-parseInt(_0x2af0fd(0x13f))/0x1+parseInt(_0x2af0fd(0x12d))/0x2*(parseInt(_0x2af0fd(0x128))/0x3)+-parseInt(_0x2af0fd(0x125))/0x4+parseInt(_0x2af0fd(0x13d))/0x5*(-parseInt(_0x2af0fd(0x12e))/0x6)+parseInt(_0x2af0fd(0x139))/0x7*(-parseInt(_0x2af0fd(0x13a))/0x8)+-parseInt(_0x2af0fd(0x113))/0x9+-parseInt(_0x2af0fd(0x10f))/0xa*(-parseInt(_0x2af0fd(0x119))/0xb);if(_0x1b3ac6===_0x2c1703)break;else _0x14c56e['push'](_0x14c56e['shift']());}catch(_0x236c10){_0x14c56e['push'](_0x14c56e['shift']());}}}(_0x3e5a,0x22056));import{View as _0x15071e}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5577d7}from'./uploadcareimageeditformloadingview.js';function _0x579e(_0x3d908c,_0x47b1e8){const _0x3e5a6e=_0x3e5a();return _0x579e=function(_0x579e70,_0x2968cd){_0x579e70=_0x579e70-0x10e;let _0x500cbc=_0x3e5a6e[_0x579e70];return _0x500cbc;},_0x579e(_0x3d908c,_0x47b1e8);}import{UploadcareImageEditFormErrorView as _0x499060}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x328f21}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x4a51f7}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x4a51f7{[_0x4a80a8(0x114)];[_0x4a80a8(0x12f)];[_0x4a80a8(0x11b)];[_0x4a80a8(0x137)];[_0x4a80a8(0x123)];constructor(_0x13024b,_0x31cc6d,_0xa58f7f){const _0x579082=_0x4a80a8;super(_0x13024b),this[_0x579082(0x114)]=this[_0x579082(0x12a)](),this[_0x579082(0x12f)]=new _0x5577d7(_0x13024b),this[_0x579082(0x11b)]=new _0x499060(_0x13024b),this[_0x579082(0x137)]=new _0x328f21(_0x13024b,_0xa58f7f),this[_0x579082(0x123)]=new _0x15071e(_0x13024b),this[_0x579082(0x123)][_0x579082(0x121)](this[_0x579082(0x133)]()),this[_0x579082(0x142)](_0x579082(0x12c),_0x31cc6d),this[_0x579082(0x121)]({'tag':_0x579082(0x11c),'attributes':{'class':['ck',_0x579082(0x116),_0x579082(0x12b)],'tabindex':'-1'},'children':this[_0x579082(0x114)]}),this[_0x579082(0x117)](),this[_0x579082(0x126)](_0x579082(0x13e),()=>{const _0x845143=_0x579082;this[_0x845143(0x13b)](this[_0x845143(0x11f)],_0x1ecb9c=>{const _0x741098=_0x845143;this[_0x741098(0x130)](_0x1ecb9c);});}),this['on'](_0x579082(0x112),()=>{const _0x5c9e65=_0x579082;this[_0x5c9e65(0x117)]();}),this[_0x579082(0x120)]();}[_0x4a80a8(0x122)](){const _0x2d8e7f=_0x4a80a8;this[_0x2d8e7f(0x11f)][_0x2d8e7f(0x122)]();}[_0x4a80a8(0x117)](){const _0x29565d=_0x4a80a8;switch(this[_0x29565d(0x114)][_0x29565d(0x11e)](),this[_0x29565d(0x12c)]){case _0x29565d(0x11d):this[_0x29565d(0x114)][_0x29565d(0x144)](this[_0x29565d(0x12f)]);break;case _0x29565d(0x127):this[_0x29565d(0x114)][_0x29565d(0x144)](this[_0x29565d(0x11b)]);break;case _0x29565d(0x140):this[_0x29565d(0x114)][_0x29565d(0x11a)]([this[_0x29565d(0x137)],this[_0x29565d(0x123)]]);}}[_0x4a80a8(0x13b)](_0x2a69e0,_0x49470c){const _0x95b444=_0x4a80a8,_0xcd846a=_0x95b444(0x10e),_0x3157ac=_0x2a69e0[_0x95b444(0x115)](_0xcd846a);if(_0x3157ac)return _0x49470c(_0x3157ac);const _0x3e4d72=new MutationObserver(_0x204b1=>{const _0x10e26a=_0x95b444,_0x54bf49=_0x204b1[_0x10e26a(0x132)](_0x3fecca=>_0x3fecca[_0x10e26a(0x111)]===_0x2a69e0&&_0x3fecca[_0x10e26a(0x131)][_0x10e26a(0x124)]>0x0&&_0x3fecca[_0x10e26a(0x131)][0x0][_0x10e26a(0x13c)][_0x10e26a(0x138)]()===_0xcd846a);_0x54bf49[_0x10e26a(0x124)]&&(_0x3e4d72[_0x10e26a(0x110)](),_0x49470c(_0x54bf49[0x0][_0x10e26a(0x131)][0x0]));});_0x3e4d72[_0x95b444(0x135)](_0x2a69e0,{'childList':!0x0,'subtree':!0x0});}[_0x4a80a8(0x130)](_0x241139){const _0x3f9a3c=_0x4a80a8;_0x241139[_0x3f9a3c(0x145)](_0x3f9a3c(0x136),_0x3e6518=>{const _0xbe0e92=_0x3f9a3c;this[_0xbe0e92(0x118)](_0xbe0e92(0x136),{'imageSrc':_0x3e6518[_0xbe0e92(0x141)][_0xbe0e92(0x143)]});}),_0x241139[_0x3f9a3c(0x145)](_0x3f9a3c(0x134),()=>{const _0x275b60=_0x3f9a3c;this[_0x275b60(0x118)](_0x275b60(0x134));});}[_0x4a80a8(0x120)](){const _0x169570=_0x4a80a8;this[_0x169570(0x11b)]['on'](_0x169570(0x129),()=>{const _0x53d77d=_0x169570;this[_0x53d77d(0x118)](_0x53d77d(0x129));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x302e01=_0x3d92;(function(_0x5191c1,_0x83267f){const _0x47ff7d=_0x3d92,_0x1049b6=_0x5191c1();while(!![]){try{const _0x4aba2c=-parseInt(_0x47ff7d(0xd0))/0x1*(-parseInt(_0x47ff7d(0xd8))/0x2)+-parseInt(_0x47ff7d(0xe5))/0x3+parseInt(_0x47ff7d(0xe0))/0x4+-parseInt(_0x47ff7d(0xdc))/0x5+parseInt(_0x47ff7d(0xdf))/0x6+parseInt(_0x47ff7d(0xdd))/0x7*(-parseInt(_0x47ff7d(0xde))/0x8)+-parseInt(_0x47ff7d(0xea))/0x9*(-parseInt(_0x47ff7d(0xe8))/0xa);if(_0x4aba2c===_0x83267f)break;else _0x1049b6['push'](_0x1049b6['shift']());}catch(_0x40c933){_0x1049b6['push'](_0x1049b6['shift']());}}}(_0x37b3,0x45caa));import{Command as _0x4c6bd6}from'ckeditor5/src/core.js';function _0x3d92(_0x20616d,_0x324fe0){const _0x37b31c=_0x37b3();return _0x3d92=function(_0x3d92fc,_0x3fe125){_0x3d92fc=_0x3d92fc-0xcf;let _0x56bff6=_0x37b31c[_0x3d92fc];return _0x56bff6;},_0x3d92(_0x20616d,_0x324fe0);}import{Dialog as _0x31bd87}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x16dbaa}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2816ef}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x4c6bd6{[_0x302e01(0xd2)];static get[_0x302e01(0xe3)](){return[_0x31bd87];}[_0x302e01(0xd1)];constructor(_0x15644c){const _0x16bea5=_0x302e01;super(_0x15644c),this[_0x16bea5(0xd2)]=void 0x0,this[_0x16bea5(0xd1)]=_0x2816ef(_0x15644c[_0x16bea5(0xe1)][_0x16bea5(0xd9)](_0x16bea5(0xd5))||[]),this[_0x16bea5(0xe2)]({'isActive':!0x1});}[_0x302e01(0xd6)](){const _0x564f28=_0x302e01,_0x153556=this[_0x564f28(0xe4)][_0x564f28(0xe6)][_0x564f28(0xdb)][_0x564f28(0xec)][_0x564f28(0xed)]();this[_0x564f28(0xe7)]=this[_0x564f28(0xd1)](_0x153556);}[_0x302e01(0xcf)](){const _0x22f2aa=_0x302e01;this[_0x22f2aa(0xd2)]&&(this[_0x22f2aa(0xee)](_0x22f2aa(0xeb)),this[_0x22f2aa(0xd2)]=void 0x0);const _0x15409a=this[_0x22f2aa(0xe4)][_0x22f2aa(0xe6)][_0x22f2aa(0xdb)][_0x22f2aa(0xec)][_0x22f2aa(0xed)]();_0x15409a&&(_0x15409a['is'](_0x22f2aa(0xda),_0x22f2aa(0xe9))||_0x15409a['is'](_0x22f2aa(0xda),_0x22f2aa(0xd4)))&&(this[_0x22f2aa(0xd2)]=new _0x16dbaa(this[_0x22f2aa(0xe4)],this[_0x22f2aa(0xe4)][_0x22f2aa(0xd7)][_0x22f2aa(0xd9)](_0x31bd87),_0x15409a),this[_0x22f2aa(0xd3)](_0x22f2aa(0xeb))['to'](this[_0x22f2aa(0xd2)],_0x22f2aa(0xeb)));}}function _0x37b3(){const _0x1edef8=['requires','editor','1606362tlPRzF','model','isEnabled','56850SSjrwJ','imageBlock','864dCjSzY','isActive','selection','getSelectedElement','unbind','execute','188827jXcXIG','_isEditable','imageEditController','bind','imageInline','uploadcare.allowExternalImagesEditing','refresh','plugins','4PhqAoG','get','element','document','2512730fzuwFM','13643FmERJb','56gkTTFg','737034mQlcxr','1165024jrGWOy','config','set'];_0x37b3=function(){return _0x1edef8;};return _0x37b3();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x900f7a=_0x41ec;(function(_0x209fe6,_0x4d793b){const _0x2ea236=_0x41ec,_0x480d9d=_0x209fe6();while(!![]){try{const _0x27ce05=parseInt(_0x2ea236(0x1c8))/0x1+parseInt(_0x2ea236(0x1c1))/0x2+parseInt(_0x2ea236(0x1c4))/0x3+-parseInt(_0x2ea236(0x1cc))/0x4*(-parseInt(_0x2ea236(0x1bc))/0x5)+parseInt(_0x2ea236(0x1c7))/0x6*(-parseInt(_0x2ea236(0x1cb))/0x7)+-parseInt(_0x2ea236(0x1c6))/0x8*(-parseInt(_0x2ea236(0x1c5))/0x9)+-parseInt(_0x2ea236(0x1c0))/0xa*(parseInt(_0x2ea236(0x1ca))/0xb);if(_0x27ce05===_0x4d793b)break;else _0x480d9d['push'](_0x480d9d['shift']());}catch(_0x2c178a){_0x480d9d['push'](_0x480d9d['shift']());}}}(_0x7fbd,0x1bc20));import{Plugin as _0x16e827}from'ckeditor5/src/core.js';import{Notification as _0x39bd88}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x16012c}from'./uploadcareimageeditcommand.js';function _0x7fbd(){const _0x545e1c=['35zOiUFp','UploadcareImageEditEditing','pluginName','init','5443730dvUTWB','403260IgGrhN','uploadcareImageReplace','isOfficialPlugin','385737qfreOm','1807911KRlnBg','8nOdDFQ','1458oqQPRH','133655dGqamF','commands','11bRRgst','3346uheqvu','62560YHNwEs','ImageEditing','ImageUtils','isPremiumPlugin','add','requires','uploadcareImageEdit'];_0x7fbd=function(){return _0x545e1c;};return _0x7fbd();}function _0x41ec(_0x478065,_0x5e6d15){const _0x7fbd4a=_0x7fbd();return _0x41ec=function(_0x41ecfe,_0x519266){_0x41ecfe=_0x41ecfe-0x1bc;let _0xfe5d92=_0x7fbd4a[_0x41ecfe];return _0xfe5d92;},_0x41ec(_0x478065,_0x5e6d15);}import{UploadcareImageReplaceCommand as _0x1b743e}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x217293}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x16e827{static get[_0x900f7a(0x1be)](){const _0x5c10f3=_0x900f7a;return _0x5c10f3(0x1bd);}static get[_0x900f7a(0x1d1)](){const _0x3cdfa0=_0x900f7a;return[_0x217293,_0x39bd88,_0x3cdfa0(0x1ce),_0x3cdfa0(0x1cd)];}static get[_0x900f7a(0x1c3)](){return!0x0;}static get[_0x900f7a(0x1cf)](){return!0x0;}[_0x900f7a(0x1bf)](){const _0x2e33f5=_0x900f7a,{editor:_0x4499e6}=this;_0x4499e6[_0x2e33f5(0x1c9)][_0x2e33f5(0x1d0)](_0x2e33f5(0x1d2),new _0x16012c(_0x4499e6)),_0x4499e6[_0x2e33f5(0x1c9)][_0x2e33f5(0x1d0)](_0x2e33f5(0x1c2),new _0x1b743e(_0x4499e6));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x44f71b}from'ckeditor5/src/core.js';import{ButtonView as _0x402da8}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x14ca08}from'ckeditor5/src/icons.js';import{createElement as _0x408c54}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 _0x44f71b{['_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 _0x2076da=this['editor'];_0x2076da['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2f2090=>{const _0x75bd4a=_0x2076da['commands']['get']('uploadcareImageEdit'),_0x187b1d=new _0x402da8(_0x2f2090),t=_0x2f2090['t'];return _0x187b1d['set']({'icon':_0x14ca08,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x187b1d['bind']('isEnabled')['to'](_0x75bd4a),_0x187b1d['bind']('isOn')['to'](_0x75bd4a,'isActive'),this['listenTo'](_0x187b1d,'execute',()=>{_0x2076da['execute']('uploadcareImageEdit'),_0x2076da['editing']['view']['focus']();}),_0x187b1d;}),this['_initConfig']();}['_initConfig'](){const _0x54f255=_0x408c54(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x54f255),this['listenTo'](this['editor'],'destroy',()=>{_0x54f255['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ba63c=_0x5776;function _0x373f(){const _0x5e33e4=['5924216BPVFAB','sizes','srcset','editor','refresh','imageBlock','getSelectedElement','2yWWVEl','execute','45dnfqoi','change','imageInline','element','6200670KSDjXx','5343095vieweR','setAttributes','3003069QWswKz','document','removeAttribute','3440304dqKasz','274648meNSCM','4634334JpDEfD','model','isEnabled','selection'];_0x373f=function(){return _0x5e33e4;};return _0x373f();}(function(_0xac0807,_0x4c31c2){const _0x42de02=_0x5776,_0x2eaccd=_0xac0807();while(!![]){try{const _0x90181c=-parseInt(_0x42de02(0x1d7))/0x1+-parseInt(_0x42de02(0x1ca))/0x2*(parseInt(_0x42de02(0x1d3))/0x3)+parseInt(_0x42de02(0x1d6))/0x4+-parseInt(_0x42de02(0x1d1))/0x5+-parseInt(_0x42de02(0x1d8))/0x6+-parseInt(_0x42de02(0x1d0))/0x7+parseInt(_0x42de02(0x1dc))/0x8*(parseInt(_0x42de02(0x1cc))/0x9);if(_0x90181c===_0x4c31c2)break;else _0x2eaccd['push'](_0x2eaccd['shift']());}catch(_0x1911c2){_0x2eaccd['push'](_0x2eaccd['shift']());}}}(_0x373f,0x88c5e));import{Command as _0x3b5b9a}from'ckeditor5/src/core.js';function _0x5776(_0x370599,_0x17864c){const _0x373f71=_0x373f();return _0x5776=function(_0x577697,_0x510e9b){_0x577697=_0x577697-0x1c4;let _0x252c69=_0x373f71[_0x577697];return _0x252c69;},_0x5776(_0x370599,_0x17864c);}export class UploadcareImageReplaceCommand extends _0x3b5b9a{[_0x2ba63c(0x1c7)](){const _0x1e1020=_0x2ba63c,_0x1c9cce=this[_0x1e1020(0x1c6)][_0x1e1020(0x1d9)][_0x1e1020(0x1d4)][_0x1e1020(0x1db)][_0x1e1020(0x1c9)]();this[_0x1e1020(0x1da)]=Boolean(_0x1c9cce&&(_0x1c9cce['is'](_0x1e1020(0x1cf),_0x1e1020(0x1c8))||_0x1c9cce['is'](_0x1e1020(0x1cf),_0x1e1020(0x1ce))));}[_0x2ba63c(0x1cb)](_0x193b3a){const _0x23a299=_0x2ba63c,_0xd60872=this[_0x23a299(0x1c6)][_0x23a299(0x1d9)][_0x23a299(0x1d4)][_0x23a299(0x1db)][_0x23a299(0x1c9)]();this[_0x23a299(0x1c6)][_0x23a299(0x1d9)][_0x23a299(0x1cd)](_0x386872=>{const _0x2511f5=_0x23a299;_0x386872[_0x2511f5(0x1d2)](_0x193b3a,_0xd60872),_0x386872[_0x2511f5(0x1d5)](_0x2511f5(0x1c5),_0xd60872),_0x386872[_0x2511f5(0x1d5)](_0x2511f5(0x1c4),_0xd60872);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0xa1a5d8=_0x2780;function _0x21bc(){var _0x38962a=['pluginName','7xaticO','requires','3856670PuhEXG','1669242afagIU','4151720xfIYcK','UploadcareImageEdit','isPremiumPlugin','6568056AsFsal','549796QuYGdm','195742fuWNhx','15ZKQmXW','isOfficialPlugin','691856TzJKyl'];_0x21bc=function(){return _0x38962a;};return _0x21bc();}(function(_0xd2237a,_0x19229d){var _0x257227=_0x2780,_0x5df7e9=_0xd2237a();while(!![]){try{var _0x1a01fc=parseInt(_0x257227(0x141))/0x1+parseInt(_0x257227(0x142))/0x2*(-parseInt(_0x257227(0x143))/0x3)+-parseInt(_0x257227(0x145))/0x4+parseInt(_0x257227(0x13b))/0x5+parseInt(_0x257227(0x13c))/0x6+-parseInt(_0x257227(0x147))/0x7*(-parseInt(_0x257227(0x13d))/0x8)+-parseInt(_0x257227(0x140))/0x9;if(_0x1a01fc===_0x19229d)break;else _0x5df7e9['push'](_0x5df7e9['shift']());}catch(_0x9a681a){_0x5df7e9['push'](_0x5df7e9['shift']());}}}(_0x21bc,0xb14b7));import{Plugin as _0x514355}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x550f91}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x497439}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x2780(_0x21db61,_0x16cf54){var _0x21bc61=_0x21bc();return _0x2780=function(_0x2780c5,_0x5a6055){_0x2780c5=_0x2780c5-0x13a;var _0x238ed2=_0x21bc61[_0x2780c5];return _0x238ed2;},_0x2780(_0x21db61,_0x16cf54);}export class UploadcareImageEdit extends _0x514355{static get[_0xa1a5d8(0x146)](){var _0x33a61c=_0xa1a5d8;return _0x33a61c(0x13e);}static get[_0xa1a5d8(0x13a)](){return[_0x550f91,_0x497439];}static get[_0xa1a5d8(0x144)](){return!0x0;}static get[_0xa1a5d8(0x13f)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x25c3(){const _0x56623d=['_createButton','13mvEnke','trialLimit','Uploadcare','licenseKey','Local','destroy','uploadcareLicenseKeyTrialLimit','5641908FhKOQP','_createDropdownButtons','bind','text','isEnabled','has','featureNotAllowed','reduce','OneDrive','tooltip','Replace','1158681JrffHO','shortText','UploadcareUI','plugins','5MHJmqT','7TjFALS','Insert','_licenseKeyCheckInterval','upload','_showLicenseError','push','assetManager','editor','url','init','afterInit','ImageInsertUI','_createToolbarButton','execute','config','31390CBnyQo','_createMenuBarButtons','uploadcareLicenseKeyUsageLimit','_getIntegrationKey','icon','get','commands','31072PUtlad','902xBMUxd','GPhotos','uploadcareLicenseKeyNotAllowed','entries','type','uploadcareLicenseKeyValid','isOfficialPlugin','withText','Dropbox','uploadcareLicenseKeyInvalid','expired','registerIntegration','20669196jbRTZK','map','Facebook','forEach','uploadcareLicenseKeyDomainLimit','isPremiumPlugin','1cCRmEP','3481020wCtGRC','GDrive','domainLimit','3438UDbdDH','evaluationLimit','URL','1078694bLmDHi','locale','pluginName','usageLimit','uploadcareLicenseKeyExpired','isImageSelected','label','uploadcare','uploadcareLicenseKeyEvaluationLimit','_normalizeConfigSourceList','invalid','uploadcare.uploader.sourceList'];_0x25c3=function(){return _0x56623d;};return _0x25c3();}const _0x508bc5=_0x1d6d;(function(_0x2c9559,_0x4eb71b){const _0x561fb2=_0x1d6d,_0x2c83da=_0x2c9559();while(!![]){try{const _0x6b5ac3=parseInt(_0x561fb2(0x110))/0x1*(parseInt(_0x561fb2(0x117))/0x2)+parseInt(_0x561fb2(0x136))/0x3+parseInt(_0x561fb2(0x111))/0x4*(parseInt(_0x561fb2(0xe6))/0x5)+parseInt(_0x561fb2(0x12b))/0x6*(-parseInt(_0x561fb2(0xe7))/0x7)+-parseInt(_0x561fb2(0xfd))/0x8*(parseInt(_0x561fb2(0x114))/0x9)+parseInt(_0x561fb2(0xf6))/0xa*(-parseInt(_0x561fb2(0xfe))/0xb)+parseInt(_0x561fb2(0x10a))/0xc*(parseInt(_0x561fb2(0x124))/0xd);if(_0x6b5ac3===_0x4eb71b)break;else _0x2c83da['push'](_0x2c83da['shift']());}catch(_0x23cacc){_0x2c83da['push'](_0x2c83da['shift']());}}}(_0x25c3,0xcc4fa));function _0x1d6d(_0x297ab9,_0x568141){const _0x25c3b9=_0x25c3();return _0x1d6d=function(_0x1d6d9e,_0x4a3cb6){_0x1d6d9e=_0x1d6d9e-0xe6;let _0x5d5c63=_0x25c3b9[_0x1d6d9e];return _0x5d5c63;},_0x1d6d(_0x297ab9,_0x568141);}import{Plugin as _0x5d786f}from'ckeditor5/src/core.js';import{IconDropbox as _0x1e61f7,IconFacebook as _0x329e3e,IconGoogleDrive as _0x557fec,IconGooglePhotos as _0x291b77,IconUploadcareImageUpload as _0x3bdbdf,IconUploadcareLink as _0x867b0a,IconOneDrive as _0xa0bf20}from'ckeditor5/src/icons.js';import{ButtonView as _0x4b299b,MenuBarMenuListItemButtonView as _0x5778fc}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x25784f}from'./uploadcareconfig.js';import{getTranslation as _0x2164b5}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 _0x5d786f{[_0x508bc5(0x127)];[_0x508bc5(0xe9)];static get[_0x508bc5(0x119)](){const _0x59179a=_0x508bc5;return _0x59179a(0x138);}static get[_0x508bc5(0x104)](){return!0x0;}static get[_0x508bc5(0x10f)](){return!0x0;}[_0x508bc5(0xf0)](){const _0x45ed5d=_0x508bc5;this[_0x45ed5d(0x127)]=this[_0x45ed5d(0xee)][_0x45ed5d(0xf5)][_0x45ed5d(0xfb)](_0x45ed5d(0x127));const _0x4c301c=this[_0x45ed5d(0xee)];this[_0x45ed5d(0xe9)]=setInterval(()=>{const _0x138901=_0x45ed5d;let _0x8cbf5b;for(const _0x244c9d in _0x4c301c){const _0x3702f9=_0x244c9d,_0x437a12=_0x4c301c[_0x3702f9];if(_0x138901(0x103)==_0x437a12||_0x138901(0x107)==_0x437a12||_0x138901(0x11b)==_0x437a12||_0x138901(0x10e)==_0x437a12||_0x138901(0x100)==_0x437a12||_0x138901(0x11f)==_0x437a12||_0x138901(0x12a)==_0x437a12||_0x138901(0xf8)==_0x437a12){delete _0x4c301c[_0x3702f9],_0x8cbf5b=_0x437a12,clearInterval(this[_0x138901(0xe9)]),this[_0x138901(0xe9)]=void 0x0;break;}}_0x138901(0x107)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x121)),_0x138901(0x11b)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x108)),_0x138901(0x10e)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x113)),_0x138901(0x100)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x131),_0x138901(0x126)),_0x138901(0x11f)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x115)),_0x138901(0x12a)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x125)),_0x138901(0xf8)==_0x8cbf5b&&_0x4c301c[_0x138901(0xeb)](_0x138901(0x11a));},0x3e8);}[_0x508bc5(0xf1)](){const _0x2b602f=_0x508bc5,{editor:_0x497d9a}=this,_0x2daf2c=_0x497d9a[_0x2b602f(0xfc)][_0x2b602f(0xfb)](_0x2b602f(0x11e));if(!_0x2daf2c)return;const _0x3c5178=this[_0x2b602f(0x120)](_0x497d9a[_0x2b602f(0xf5)][_0x2b602f(0xfb)](_0x2b602f(0x122)))[_0x2b602f(0x132)]((_0x53b81c,_0x364365)=>{const _0x409c2c=_0x2b602f,_0x358ca0=this[_0x409c2c(0xf9)](_0x364365[_0x409c2c(0x102)]);return _0x53b81c[_0x358ca0]||(_0x53b81c[_0x358ca0]=[]),_0x53b81c[_0x358ca0][_0x409c2c(0xec)](_0x364365),_0x53b81c;},{});_0x497d9a[_0x2b602f(0x139)][_0x2b602f(0x130)](_0x2b602f(0xf2))&&_0x497d9a[_0x2b602f(0xfc)][_0x2b602f(0xfb)](_0x2b602f(0x11e))&&Object[_0x2b602f(0x101)](_0x3c5178)[_0x2b602f(0x10d)](([_0x176d0b,_0x440a2b])=>{const _0xb3db63=_0x2b602f;_0x497d9a[_0xb3db63(0x139)][_0xb3db63(0xfb)](_0xb3db63(0xf2))[_0xb3db63(0x109)]({'name':_0x176d0b,'observable':()=>_0x2daf2c,'buttonViewCreator':()=>this[_0xb3db63(0xf3)](_0x440a2b),'formViewCreator':()=>this[_0xb3db63(0x12c)](_0x440a2b),'menuBarButtonViewCreator':()=>this[_0xb3db63(0xf7)](_0x440a2b),'override':_0xb3db63(0xed)!==_0x176d0b});});}[_0x508bc5(0x129)](){const _0x41c21f=_0x508bc5;super[_0x41c21f(0x129)](),this[_0x41c21f(0xe9)]&&clearInterval(this[_0x41c21f(0xe9)]);}[_0x508bc5(0x120)](_0x3e2e74){const _0x3ea81b=_0x508bc5,{locale:_0x4cf9b3}=this[_0x3ea81b(0xee)];return _0x3e2e74[_0x3ea81b(0x10b)](_0x168d43=>{const _0x414954=_0x3ea81b,_0x20848f=_0x2164b5(_0x4cf9b3,_0x168d43,_0x414954(0xe8));switch(_0x168d43){case _0x25784f[_0x414954(0x128)]:return{'icon':_0x3bdbdf,'type':_0x25784f[_0x414954(0x128)],..._0x20848f};case _0x25784f[_0x414954(0x116)]:return{'icon':_0x867b0a,'type':_0x25784f[_0x414954(0x116)],..._0x20848f};case _0x25784f[_0x414954(0x106)]:return{'icon':_0x1e61f7,'type':_0x25784f[_0x414954(0x106)],..._0x20848f};case _0x25784f[_0x414954(0x10c)]:return{'icon':_0x329e3e,'type':_0x25784f[_0x414954(0x10c)],..._0x20848f};case _0x25784f[_0x414954(0x112)]:return{'icon':_0x557fec,'type':_0x25784f[_0x414954(0x112)],..._0x20848f};case _0x25784f[_0x414954(0xff)]:return{'icon':_0x291b77,'type':_0x25784f[_0x414954(0xff)],..._0x20848f};case _0x25784f[_0x414954(0x133)]:return{'icon':_0xa0bf20,'type':_0x25784f[_0x414954(0x133)],..._0x20848f};}});}[_0x508bc5(0xf9)](_0x32cd59){const _0x5c4e9f=_0x508bc5;switch(_0x32cd59){case _0x25784f[_0x5c4e9f(0x128)]:return _0x5c4e9f(0xea);case _0x25784f[_0x5c4e9f(0x116)]:return _0x5c4e9f(0xef);default:return _0x5c4e9f(0xed);}}[_0x508bc5(0x123)](_0x311c61,_0x1f708b){const _0xf6812f=_0x508bc5,_0x1ae5de=this[_0xf6812f(0xee)],_0x38e92f=new _0x311c61(_0x1ae5de[_0xf6812f(0x118)]),_0x2f2b78=_0x1ae5de[_0xf6812f(0xfc)][_0xf6812f(0xfb)](_0xf6812f(0x11e));return _0x38e92f[_0xf6812f(0x12d)](_0xf6812f(0x12f))['to'](_0x2f2b78),_0x38e92f['on'](_0xf6812f(0xf4),()=>{const _0x35d1e2=_0xf6812f;_0x2f2b78[_0x35d1e2(0xf4)](_0x1f708b);}),_0x38e92f;}[_0x508bc5(0xf3)](_0x2f6029){const _0x275cfd=_0x508bc5,{locale:_0x5c81d3}=this[_0x275cfd(0xee)],_0x91e9a6=this[_0x275cfd(0xee)][_0x275cfd(0x139)][_0x275cfd(0xfb)](_0x275cfd(0xf2)),_0x26008e=_0x2f6029[0x0],_0xf06b0d=this[_0x275cfd(0x123)](_0x4b299b,_0x26008e[_0x275cfd(0x102)]);return _0xf06b0d[_0x275cfd(0xfa)]=_0x26008e[_0x275cfd(0xfa)],_0xf06b0d[_0x275cfd(0x12d)](_0x275cfd(0x11d))['to'](_0x91e9a6,_0x275cfd(0x11c),_0x5b6385=>_0x2164b5(_0x5c81d3,_0x26008e[_0x275cfd(0x102)],_0x5b6385?_0x275cfd(0x135):_0x275cfd(0xe8))[_0x275cfd(0x12e)]),_0xf06b0d[_0x275cfd(0x134)]=!0x0,_0xf06b0d;}[_0x508bc5(0x12c)](_0x1019a9){const _0x14a1b6=_0x508bc5,{locale:_0x4d1d58}=this[_0x14a1b6(0xee)],_0xa7373c=this[_0x14a1b6(0xee)][_0x14a1b6(0x139)][_0x14a1b6(0xfb)](_0x14a1b6(0xf2));return _0x1019a9[_0x14a1b6(0x10b)](_0x55bd8b=>{const _0x388f1f=_0x14a1b6,_0x1ef5c7=this[_0x388f1f(0x123)](_0x4b299b,_0x55bd8b[_0x388f1f(0x102)]);return _0x1ef5c7[_0x388f1f(0x105)]=!0x0,_0x1ef5c7[_0x388f1f(0xfa)]=_0x55bd8b[_0x388f1f(0xfa)],_0x1ef5c7[_0x388f1f(0x12d)](_0x388f1f(0x11d))['to'](_0xa7373c,_0x388f1f(0x11c),_0x2ba888=>_0x2164b5(_0x4d1d58,_0x55bd8b[_0x388f1f(0x102)],_0x2ba888?_0x388f1f(0x135):_0x388f1f(0xe8))[_0x388f1f(0x12e)]),_0x1ef5c7;});}[_0x508bc5(0xf7)](_0x175453){const _0x5336f8=_0x508bc5;return _0x175453[_0x5336f8(0x10b)](_0xe82bff=>{const _0x37ce08=_0x5336f8,_0x5902a5=this[_0x37ce08(0x123)](_0x5778fc,_0xe82bff[_0x37ce08(0x102)]);return _0x5902a5[_0x37ce08(0xfa)]=_0xe82bff[_0x37ce08(0xfa)],_0x5902a5[_0x37ce08(0x11d)]=_0xe82bff[_0x37ce08(0x137)],_0x5902a5;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x23a851}from'ckeditor5/src/core.js';import{FileRepository as _0x2ca938}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x1ebfbb}from'./uploadcareediting.js';import{UploadUtils as _0x27b8f1}from'./utils/uploadutils.js';import{getImageUrls as _0x25d019}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x23a851{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2ca938,_0x1ebfbb];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5d98f6=this['editor'];if(!!!_0x5d98f6['config']['get']('uploadcare'))return;_0x5d98f6['plugins']['get'](_0x2ca938)['createUploadAdapter']=_0x5d2bd4=>new k(_0x5d2bd4,_0x5d98f6),_0x5d98f6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x393f7d,{imageElement:_0x1d7603,data:_0x3cd618})=>{_0x5d98f6['model']['change'](_0x308563=>{_0x308563['setAttribute']('uploadcareImageId',_0x3cd618['uploadcareImageId'],_0x1d7603);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3daeeb,_0x5f2ca7){this['loader']=_0x3daeeb,this['editor']=_0x5f2ca7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x443af8=await this['loader']['file'];return _0x27b8f1['upload']({'file':_0x443af8,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x236c39=>{_0x236c39&&_0x236c39['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x236c39['value']);}})['then'](async _0x2648c0=>{const {imageFallbackUrl:_0x4f5745,imageSources:_0x410ee3}=_0x25d019(_0x2648c0['cdnUrl'],_0x2648c0['imageInfo']['width']);return{'uploadcareImageId':_0x2648c0['uuid'],'default':_0x4f5745,'sources':_0x410ee3};})['catch'](()=>{const _0x400e5d=t('Cannot\x20upload\x20file:')+('\x20'+_0x443af8['name']+'.');return Promise['reject'](_0x400e5d);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0xc3d7ec}from'../uploadcareconfig.js';export function getTranslation(_0x49efac,_0x58d8f5,_0x391729){const t=_0x49efac['t'],_0x8960c4=_0x49efac['t'];switch(_0x58d8f5){case _0xc3d7ec['Local']:return{'text':_0x8960c4('Insert'===_0x391729?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x8960c4('From\x20computer')};case _0xc3d7ec['URL']:return{'text':'Insert'===_0x391729?_0x8960c4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x8960c4('Via\x20URL')};case _0xc3d7ec['Dropbox']:return{'text':t('Insert'===_0x391729?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0xc3d7ec['Facebook']:return{'text':t('Insert'===_0x391729?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0xc3d7ec['GDrive']:return{'text':t('Insert'===_0x391729?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0xc3d7ec['GPhotos']:return{'text':t('Insert'===_0x391729?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0xc3d7ec['OneDrive']:return{'text':t('Insert'===_0x391729?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x58d8f5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x4225(_0x25e47d,_0x56207c){var _0x313bcb=_0x313b();return _0x4225=function(_0x4225e0,_0x521f45){_0x4225e0=_0x4225e0-0x189;var _0x8fb624=_0x313bcb[_0x4225e0];return _0x8fb624;},_0x4225(_0x25e47d,_0x56207c);}var _0x4cc643=_0x4225;(function(_0x503444,_0x22154d){var _0x5ce740=_0x4225,_0x194560=_0x503444();while(!![]){try{var _0x53ef5c=-parseInt(_0x5ce740(0x193))/0x1*(parseInt(_0x5ce740(0x18f))/0x2)+-parseInt(_0x5ce740(0x19c))/0x3*(parseInt(_0x5ce740(0x198))/0x4)+parseInt(_0x5ce740(0x189))/0x5*(-parseInt(_0x5ce740(0x19a))/0x6)+parseInt(_0x5ce740(0x18a))/0x7+parseInt(_0x5ce740(0x18b))/0x8+-parseInt(_0x5ce740(0x192))/0x9*(parseInt(_0x5ce740(0x19d))/0xa)+parseInt(_0x5ce740(0x18d))/0xb*(parseInt(_0x5ce740(0x195))/0xc);if(_0x53ef5c===_0x22154d)break;else _0x194560['push'](_0x194560['shift']());}catch(_0x50b9c2){_0x194560['push'](_0x194560['shift']());}}}(_0x313b,0x7711f));import{FocusTracker as _0x5ab4ea}from'ckeditor5/src/utils.js';import{View as _0xf7bfff,FocusCycler as _0x129cbe}from'ckeditor5/src/ui.js';function _0x313b(){var _0x305fff=['27647IvKfTe','true','1512036aeUOZl','div','createCollection','4204IabGPn','forwardCycle','62958DdaVFV','focusCycler','2319FtBFhC','9130rwuhkg','40roxVDs','5680269QMHDPF','793416bzwZAY','focusTracker','165AlUYBx','getFocusableElement','54WRXJYv','bindTemplate','fire','6606DcRdCL'];_0x313b=function(){return _0x305fff;};return _0x313b();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0xf7bfff{[_0x4cc643(0x18c)];[_0x4cc643(0x19b)];constructor(_0x37d376){var _0x21c629=_0x4cc643;super(_0x37d376),this[_0x21c629(0x18c)]=new _0x5ab4ea(),this[_0x21c629(0x19b)]=new _0x129cbe({'focusables':this[_0x21c629(0x197)](),'focusTracker':this[_0x21c629(0x18c)]});}[_0x4cc643(0x18e)](){var _0x1842cb=_0x4cc643;return{'tag':_0x1842cb(0x196),'attributes':{'aria-hidden':_0x1842cb(0x194),'tabindex':'0'},'on':{'focus':this[_0x1842cb(0x190)]['to'](()=>{var _0x475d4d=_0x1842cb;this[_0x475d4d(0x19b)][_0x475d4d(0x191)](_0x475d4d(0x199));})}};}}
|