@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250212.0 → 0.0.0-nightly-next-20250213.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/ckeditor5-metadata.json +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.d.ts +2 -6
- 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.d.ts +1 -4
- 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/theme/icons/dropbox.svg +0 -11
- package/theme/icons/error.svg +0 -1
- package/theme/icons/facebook.svg +0 -11
- package/theme/icons/google-drive.svg +0 -11
- package/theme/icons/google-photos.svg +0 -11
- package/theme/icons/image-upload.svg +0 -11
- package/theme/icons/instagram.svg +0 -11
- package/theme/icons/link.svg +0 -11
- package/theme/icons/local.svg +0 -11
- package/theme/icons/onedrive.svg +0 -11
- package/theme/icons/uploadcare-image-edit.svg +0 -11
package/src/uploadcareconfig.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x339f(){var _0x486d1a=['Local','3965910OmYZkQ','744594kOZWuR','10PwfnTN','108TVtpRu','448fioZwv','Dropbox','gphotos','OneDrive','gdrive','247650EIyPld','facebook','GDrive','GPhotos','instagram','18489FBJaEJ','dropbox','onedrive','103672jDSDOB','url','Instagram','1801314DsHcap','Facebook','890944UUyfWP','local','URL'];_0x339f=function(){return _0x486d1a;};return _0x339f();}(function(_0x40ed30,_0x377742){var _0x44e42a=_0x3d10,_0x57dcae=_0x40ed30();while(!![]){try{var _0x5aec46=parseInt(_0x44e42a(0xa2))/0x1*(parseInt(_0x44e42a(0x97))/0x2)+parseInt(_0x44e42a(0x9d))/0x3+-parseInt(_0x44e42a(0x90))/0x4+parseInt(_0x44e42a(0x96))/0x5*(parseInt(_0x44e42a(0x95))/0x6)+parseInt(_0x44e42a(0x98))/0x7*(-parseInt(_0x44e42a(0x8b))/0x8)+parseInt(_0x44e42a(0x8e))/0x9+parseInt(_0x44e42a(0x94))/0xa;if(_0x5aec46===_0x377742)break;else _0x57dcae['push'](_0x57dcae['shift']());}catch(_0x2fd16f){_0x57dcae['push'](_0x57dcae['shift']());}}}(_0x339f,0xd5533));function _0x3d10(_0x57f069,_0x1c65a7){var _0x339fb4=_0x339f();return _0x3d10=function(_0x3d1031,_0x5e5e5f){_0x3d1031=_0x3d1031-0x89;var _0x3a03cf=_0x339fb4[_0x3d1031];return _0x3a03cf;},_0x3d10(_0x57f069,_0x1c65a7);}export var UploadcareSource;!function(_0x107531){var _0x3ba6fd=_0x3d10;_0x107531[_0x3ba6fd(0x93)]=_0x3ba6fd(0x91),_0x107531[_0x3ba6fd(0x92)]=_0x3ba6fd(0x8c),_0x107531[_0x3ba6fd(0x99)]=_0x3ba6fd(0x89),_0x107531[_0x3ba6fd(0x9f)]=_0x3ba6fd(0x9c),_0x107531[_0x3ba6fd(0x8f)]=_0x3ba6fd(0x9e),_0x107531[_0x3ba6fd(0xa0)]=_0x3ba6fd(0x9a),_0x107531[_0x3ba6fd(0x8d)]=_0x3ba6fd(0xa1),_0x107531[_0x3ba6fd(0x9b)]=_0x3ba6fd(0x8a);}(UploadcareSource||(UploadcareSource={}));
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x346cbb=_0x5013;(function(_0x35d560,_0x566cce){const _0x4350e7=_0x5013,_0x1d696b=_0x35d560();while(!![]){try{const _0x5d6b76=parseInt(_0x4350e7(0x1c7))/0x1*(-parseInt(_0x4350e7(0x1c3))/0x2)+-parseInt(_0x4350e7(0x19a))/0x3*(-parseInt(_0x4350e7(0x1a7))/0x4)+-parseInt(_0x4350e7(0x1bc))/0x5+-parseInt(_0x4350e7(0x19d))/0x6+parseInt(_0x4350e7(0x1a3))/0x7*(-parseInt(_0x4350e7(0x1c6))/0x8)+parseInt(_0x4350e7(0x1cb))/0x9*(parseInt(_0x4350e7(0x1b2))/0xa)+parseInt(_0x4350e7(0x195))/0xb;if(_0x5d6b76===_0x566cce)break;else _0x1d696b['push'](_0x1d696b['shift']());}catch(_0x1012f7){_0x1d696b['push'](_0x1d696b['shift']());}}}(_0x50e7,0x1e837));import{Plugin as _0xe1692}from'ckeditor5/src/core.js';import{Dialog as _0x7e5f98}from'ckeditor5/src/ui.js';import{createElement as _0x7dbbdc,global as _0x50b6a6,uid as _0x4dfc16}from'ckeditor5/src/utils.js';import _0xd74b81 from'./uploadcarecommand.js';function _0x5013(_0x5ca966,_0x52d2ff){const _0x50e79c=_0x50e7();return _0x5013=function(_0x5013e2,_0x48c6a7){_0x5013e2=_0x5013e2-0x17d;let _0xc65d21=_0x50e79c[_0x5013e2];return _0xc65d21;},_0x5013(_0x5ca966,_0x52d2ff);}function _0x50e7(){const _0x7bf66a=['init','_configElement','#uc-icon-arrow-down','UploadcareEditing','selection','locale','_initImageProcessingIndicator','uploadcare','href','uc-config','10870qXrgUu','_initCtx','requires','\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','remove','once','_initConfig','iconHrefResolver','imageInline','removeAttribute','767160GUCoFB','true','body','data-uc-image-id','appendChild','closeMax','commands','8YCwkjt','conversion','listenTo','718784TMlEER','61633dBhLZD','PictureEditing','input[uploadcare-file-input]','isPremiumPlugin','1179hSbJkY','upcast','extend','uploadcare.uploader','for','attributeToAttribute','uploadcareImageId','get','getSelectedElement','model','editing','config','add','render','uploadcareImageReplace','contentLanguage','downcast','pluginName','view','imageBlock','insertImage','join','_initSchema','getAttribute','isRegistered','editor','destroy','querySelector','_ctxElement','_initConversion','configElement','4484898bJSJwI','uc-upload-ctx-provider','schema','map','execute','27AZBqNO','replaceImageSource','uploadcare.pubkey','302634QbCQNl','document','isOfficialPlugin','elementToAttribute','afterInit','ctxElement','7CXazEt','uploader','fromCharCode','cleanupImage','51164XQWYkM'];_0x50e7=function(){return _0x7bf66a;};return _0x50e7();}import _0x238623 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x39c014}from'./utils/editingutils.js';export default class i extends _0xe1692{constructor(){const _0x3506b4=_0x5013;super(...arguments),this[_0x3506b4(0x1a9)]=null,this[_0x3506b4(0x192)]=null;}static get[_0x346cbb(0x187)](){const _0x12d8d2=_0x346cbb;return _0x12d8d2(0x1ab);}static get[_0x346cbb(0x1b4)](){const _0x623755=_0x346cbb;return[_0x623755(0x1c8),_0x238623,_0x7e5f98];}static get[_0x346cbb(0x19f)](){return!0x0;}static get[_0x346cbb(0x1ca)](){return!0x0;}get[_0x346cbb(0x194)](){const _0x289286=_0x346cbb;return this[_0x289286(0x1a9)];}get[_0x346cbb(0x1a2)](){const _0x12bf96=_0x346cbb;return this[_0x12bf96(0x192)];}[_0x346cbb(0x1a8)](){const _0x9ced17=_0x346cbb,_0x555d29=this[_0x9ced17(0x18f)];_0x555d29[_0x9ced17(0x1c2)][_0x9ced17(0x182)](_0x9ced17(0x1af),new _0xd74b81(_0x555d29));}[_0x346cbb(0x1a1)](){const _0xcc6909=_0x346cbb;this[_0xcc6909(0x18c)](),this[_0xcc6909(0x193)](),this[_0xcc6909(0x1b8)](),this[_0xcc6909(0x1b3)](),this[_0xcc6909(0x1ae)](),this[_0xcc6909(0x1c5)](this[_0xcc6909(0x18f)],_0xcc6909(0x190),()=>{const _0x2257c8=_0xcc6909;this[_0x2257c8(0x1a9)]&&(this[_0x2257c8(0x1a9)][_0x2257c8(0x1b6)](),this[_0x2257c8(0x1a9)]=null),this[_0x2257c8(0x192)]&&(this[_0x2257c8(0x192)][_0x2257c8(0x1b6)](),this[_0x2257c8(0x192)]=null);const _0x2e244c=_0x50b6a6[_0x2257c8(0x19e)][_0x2257c8(0x191)](_0x2257c8(0x1c9));_0x2e244c&&_0x2e244c[_0x2257c8(0x1b6)]();}),async function(_0xd35935){const _0x717a88=_0x55ae2f([0x50,0x77,0x73,0x33,0x52,0x4f,0x53,0x45,0x42,0x4e,0x56,0x35,0x37,0x67,0x36,0x74,0x76,0x79,0x69,0x59,0x6a,0x31,0x7a,0x75,0x6f,0x61,0x6b,0x6c,0x5a,0x48,0x46,0x38,0x63,0x70,0x65,0x62,0x4b,0x49,0x72,0x6e,0x43,0x71,0x4a,0x39,0x34,0x47,0x30,0x68,0x4d,0x32,0x55,0x4c,0x41,0x57,0x58,0x6d,0x66,0x54,0x51,0x44,0x64,0x78]),_0x507f84=0x31ba59ee,_0x28f65c=0x31bd06a6^_0x507f84,_0x6f736c=window[_0x55ae2f([0x44,0x61,0x74,0x65])][_0x55ae2f([0x6e,0x6f,0x77])](),_0x380243=_0xd35935[_0x55ae2f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x584d79=new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149d9e=>{_0x380243[_0x55ae2f([0x6f,0x6e,0x63,0x65])](_0x55ae2f([0x72,0x65,0x61,0x64,0x79]),_0x149d9e);}),_0x44052c={[_0x55ae2f([0x6b,0x74,0x79])]:_0x55ae2f([0x45,0x43]),[_0x55ae2f([0x75,0x73,0x65])]:_0x55ae2f([0x73,0x69,0x67]),[_0x55ae2f([0x63,0x72,0x76])]:_0x55ae2f([0x50,0x2d,0x32,0x35,0x36]),[_0x55ae2f([0x78])]:_0x55ae2f([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]),[_0x55ae2f([0x79])]:_0x55ae2f([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]),[_0x55ae2f([0x61,0x6c,0x67])]:_0x55ae2f([0x45,0x53,0x32,0x35,0x36])},_0x2696de=_0x380243[_0x55ae2f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55ae2f([0x67,0x65,0x74])](_0x55ae2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2b2342(){let _0xcafb4b,_0x48f9a0=null,_0x3dc2d8=null;try{if(_0x2696de==_0x55ae2f([0x47,0x50,0x4c]))return _0x55ae2f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xcafb4b=_0x2797a7(),!_0xcafb4b)return _0x55ae2f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xcafb4b[_0x55ae2f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3dc2d8=_0x106fe7(_0xcafb4b[_0x55ae2f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xcafb4b[_0x55ae2f([0x6a,0x74,0x69])])),await _0x300755()?_0x59dc3c()?_0x239790()?_0x55ae2f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x83e91f()?(_0xcafb4b[_0x55ae2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55ae2f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x48f9a0=_0x9daaee(_0x55ae2f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xcafb4b[_0x55ae2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55ae2f([0x74,0x72,0x69,0x61,0x6c])&&(_0x48f9a0=_0x9daaee(_0x55ae2f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x206b58()):_0x55ae2f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55ae2f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55ae2f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x822989){return _0x55ae2f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x239790(){const _0x423f51=[_0x55ae2f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55ae2f([0x74,0x72,0x69,0x61,0x6c])][_0x55ae2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcafb4b[_0x55ae2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6f736c/0x3e8:0xe10*_0x28f65c;return _0xcafb4b[_0x55ae2f([0x65,0x78,0x70])]<_0x423f51;}function _0x59dc3c(){const _0x47bab0=_0xcafb4b[_0x55ae2f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x47bab0&&(!!_0x47bab0[_0x55ae2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ae2f([0x2a]))||!!_0x47bab0[_0x55ae2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ae2f([0x55,0x50,0x4c,0x43])));}function _0x83e91f(){const _0x96479=_0x5013,_0x22e696=_0xcafb4b[_0x55ae2f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22e696||0x0==_0x22e696[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x42d4ab}=new URL(window[_0x55ae2f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x96479(0x1b0)]);if(_0x22e696[_0x55ae2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42d4ab))return!0x0;const _0x32e1d7=_0x42d4ab[_0x55ae2f([0x73,0x70,0x6c,0x69,0x74])](_0x55ae2f([0x2e]));return _0x22e696[_0x55ae2f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x445e27=>_0x445e27[_0x55ae2f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55ae2f([0x2a])))[_0x55ae2f([0x6d,0x61,0x70])](_0x4ed931=>_0x4ed931[_0x55ae2f([0x73,0x70,0x6c,0x69,0x74])](_0x55ae2f([0x2e])))[_0x55ae2f([0x73,0x6f,0x6d,0x65])](_0x126ebf=>_0x32e1d7[_0x55ae2f([0x65,0x76,0x65,0x72,0x79])]((_0x2841da,_0x38fe40)=>_0x126ebf[_0x38fe40]===_0x2841da||_0x126ebf[_0x38fe40]===_0x55ae2f([0x2a])));}function _0x206b58(){return _0x48f9a0&&_0x3dc2d8?new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35658d,_0x859453)=>{_0x48f9a0[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x35658d,_0x859453),_0x3dc2d8[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x5a6a04=>{_0x5a6a04!=_0x55ae2f([0x56,0x61,0x6c,0x69,0x64])&&_0x35658d(_0x5a6a04);},_0x859453);}):_0x48f9a0||_0x3dc2d8||_0x55ae2f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x106fe7(_0x54d6e6,_0x538fb9){return new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f1d20=>{if(_0x3edd60())return _0x5f1d20(_0x55ae2f([0x56,0x61,0x6c,0x69,0x64]));_0x32ad37(),_0x380243[_0x55ae2f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55ae2f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bf46f=!0x1;const _0x5802ee=_0x4dfc16();function _0x1d0c57(_0x520333){return!!_0x520333&&(typeof _0x520333===_0x55ae2f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x520333===_0x55ae2f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x520333[_0x55ae2f([0x74,0x68,0x65,0x6e])]===_0x55ae2f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x520333[_0x55ae2f([0x63,0x61,0x74,0x63,0x68])]===_0x55ae2f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x87fd26(_0x53159d){_0xb0add3(_0x53159d)[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x25d078=>{if(!_0x25d078||_0x25d078[_0x55ae2f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55ae2f([0x6f,0x6b]))return _0x55ae2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ccde1(_0x48e315(_0x5802ee+_0x538fb9))!=_0x25d078[_0x55ae2f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55ae2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55ae2f([0x56,0x61,0x6c,0x69,0x64]);})[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x4e88a6=>(_0x23ba6a(),_0x4e88a6),()=>{const _0x18514c=_0x4c7e55();return null==_0x18514c?(_0x23ba6a(),_0x55ae2f([0x56,0x61,0x6c,0x69,0x64])):_0x55ae2f(_0x6f736c-_0x18514c>(0x15b6ddee^_0x507f84)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x5f1d20)[_0x55ae2f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f1d20(_0x55ae2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x201213=0x318cb76e^_0x507f84;function _0x23ba6a(){const _0xe7c6be=_0x55ae2f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ccde1(_0x48e315(_0x54d6e6)),_0x77d506=_0x2de62e(_0x4ccde1(window[_0x55ae2f([0x4d,0x61,0x74,0x68])][_0x55ae2f([0x63,0x65,0x69,0x6c])](_0x6f736c/_0x201213)));window[_0x55ae2f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55ae2f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe7c6be,_0x77d506);}function _0x4c7e55(){const _0x4ebae2=_0x55ae2f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ccde1(_0x48e315(_0x54d6e6)),_0x5cfc76=window[_0x55ae2f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55ae2f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ebae2);return _0x5cfc76?window[_0x55ae2f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2de62e(_0x5cfc76),0x10)*_0x201213:null;}function _0xb0add3(_0x5e45f9){return new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c1b0d,_0x380851)=>{_0x5e45f9[_0x55ae2f([0x74,0x68,0x65,0x6e])](_0x2c1b0d,_0x380851),window[_0x55ae2f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x380851,0x31bb8d2e^_0x507f84);});}}_0x380243[_0x55ae2f([0x6f,0x6e])](_0x55ae2f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1500f7,_0x4cd43d)=>{if(_0x4cd43d[0x0]!=_0x54d6e6)return _0x5f1d20(_0x55ae2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4cd43d[0x1]={..._0x4cd43d[0x1],[_0x55ae2f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5802ee};},{[_0x55ae2f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55ae2f([0x68,0x69,0x67,0x68])}),_0x380243[_0x55ae2f([0x6f,0x6e])](_0x55ae2f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1884ab=>{_0x1d0c57(_0x1884ab[_0x55ae2f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bf46f=!0x0,_0x87fd26(_0x1884ab[_0x55ae2f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55ae2f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55ae2f([0x6c,0x6f,0x77])}),_0x584d79[_0x55ae2f([0x74,0x68,0x65,0x6e])](()=>{_0x4bf46f||_0x5f1d20(_0x55ae2f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3edd60(){return _0x380243[_0x55ae2f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55ae2f([0x76,0x69,0x65,0x77])][_0x55ae2f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55ae2f([0x61,0x75,0x74,0x6f]);}function _0x32ad37(){_0x380243[_0x55ae2f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55ae2f([0x76,0x69,0x65,0x77])][_0x55ae2f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55ae2f([0x61,0x75,0x74,0x6f]);}}function _0x9daaee(_0x137164){const _0xa6b5e0=[new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e9427=>setTimeout(_0x2e9427,0x31b36722^_0x507f84)),_0x584d79[_0x55ae2f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6b2720=>{let _0x16765a=0x0;_0x380243[_0x55ae2f([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ae2f([0x6f,0x6e])](_0x55ae2f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x477a84,_0x1b66a7)=>{_0x1b66a7[0x0][_0x55ae2f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16765a++,_0x16765a==(0x31ba5816^_0x507f84)&&(_0x6b2720(),_0x477a84[_0x55ae2f([0x6f,0x66,0x66])]());});}))];return window[_0x55ae2f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55ae2f([0x72,0x61,0x63,0x65])](_0xa6b5e0)[_0x55ae2f([0x74,0x68,0x65,0x6e])](()=>_0x137164);}async function _0x1b4988(){await _0x584d79,_0x380243[_0x55ae2f([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ae2f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x656d20,_0x380243[_0x55ae2f([0x6d,0x6f,0x64,0x65,0x6c])][_0x55ae2f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x656d20,_0x380243[_0x55ae2f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55ae2f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a8225(_0x46e9f9){const _0x16fcad=_0x4a87ef();_0x380243[_0x16fcad]=_0x55ae2f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x46e9f9,_0x46e9f9!=_0x55ae2f([0x56,0x61,0x6c,0x69,0x64])&&_0x1b4988();}function _0x4a87ef(){const _0x2c48ea=window[_0x55ae2f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55ae2f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55ae2f([0x6e,0x6f,0x77])]())[_0x55ae2f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55ae2f([0x2e]),'');let _0x2cb3b1=_0x55ae2f([0x50]);for(let _0xa02ead=0x0;_0xa02ead<_0x2c48ea[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa02ead+=0x2){let _0x1b534f=window[_0x55ae2f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c48ea[_0x55ae2f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa02ead,_0xa02ead+0x2));_0x1b534f>=_0x717a88[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b534f-=_0x717a88[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2cb3b1+=_0x717a88[_0x1b534f];}return _0x2cb3b1;}function _0x2797a7(){const _0x1b789d=_0x2696de[_0x55ae2f([0x73,0x70,0x6c,0x69,0x74])](_0x55ae2f([0x2e]));if(0x3!=_0x1b789d[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x410b64(_0x1b789d[0x1]);function _0x410b64(_0x38c7d0){const _0x18f327=_0x5f8289(_0x38c7d0);return _0x18f327&&_0x31ddca()?_0x18f327:null;function _0x31ddca(){const _0x17b2d9=_0x18f327[_0x55ae2f([0x6a,0x74,0x69])],_0x35344b=window[_0x55ae2f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17b2d9[_0x55ae2f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17b2d9[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1ac7c6={..._0x18f327,[_0x55ae2f([0x6a,0x74,0x69])]:_0x17b2d9[_0x55ae2f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17b2d9[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1ac7c6[_0x55ae2f([0x76,0x63])],_0x48e315(_0x1ac7c6)==_0x35344b;}}}async function _0x300755(){let _0x4c0ecd=!0x0;try{const _0x4404ea=_0x2696de[_0x55ae2f([0x73,0x70,0x6c,0x69,0x74])](_0x55ae2f([0x2e])),[_0x28165c,_0x3682c2,_0x411919]=_0x4404ea;return _0x48d2c4(_0x28165c),await _0x5bbba6(_0x28165c,_0x3682c2,_0x411919),_0x4c0ecd;}catch(_0x3d860a){return!0x1;}function _0x48d2c4(_0x507b0f){const _0x37908f=_0x5f8289(_0x507b0f);_0x37908f&&_0x37908f[_0x55ae2f([0x61,0x6c,0x67])]==_0x55ae2f([0x45,0x53,0x32,0x35,0x36])||(_0x4c0ecd=!0x1);}async function _0x5bbba6(_0x115ad6,_0x223f5d,_0x56221d){const _0x2f8745=window[_0x55ae2f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55ae2f([0x66,0x72,0x6f,0x6d])](_0x56d5fa(_0x56221d),_0x45d8b4=>_0x45d8b4[_0x55ae2f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43454c=new window[(_0x55ae2f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55ae2f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x115ad6+_0x55ae2f([0x2e])+_0x223f5d),_0x33df93=window[_0x55ae2f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55ae2f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x33df93)return;const _0x2d2531=await _0x33df93[_0x55ae2f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55ae2f([0x6a,0x77,0x6b]),_0x44052c,{[_0x55ae2f([0x6e,0x61,0x6d,0x65])]:_0x55ae2f([0x45,0x43,0x44,0x53,0x41]),[_0x55ae2f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55ae2f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55ae2f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x33df93[_0x55ae2f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55ae2f([0x6e,0x61,0x6d,0x65])]:_0x55ae2f([0x45,0x43,0x44,0x53,0x41]),[_0x55ae2f([0x68,0x61,0x73,0x68])]:{[_0x55ae2f([0x6e,0x61,0x6d,0x65])]:_0x55ae2f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d2531,_0x2f8745,_0x43454c)||(_0x4c0ecd=!0x1);}}function _0x5f8289(_0x4687e7){return _0x4687e7[_0x55ae2f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55ae2f([0x65,0x79]))?JSON[_0x55ae2f([0x70,0x61,0x72,0x73,0x65])](_0x56d5fa(_0x4687e7)):null;}function _0x56d5fa(_0x5d709a){return window[_0x55ae2f([0x61,0x74,0x6f,0x62])](_0x5d709a[_0x55ae2f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55ae2f([0x2b]))[_0x55ae2f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55ae2f([0x2f])));}function _0x48e315(_0x10fa8b){let _0x29dd7f=0x1505;function _0x2739cc(_0x4df155){for(let _0x5ac618=0x0;_0x5ac618<_0x4df155[_0x55ae2f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ac618++){const _0x2c74b8=_0x4df155[_0x55ae2f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ac618);_0x29dd7f=(_0x29dd7f<<0x5)+_0x29dd7f+_0x2c74b8,_0x29dd7f&=_0x29dd7f;}}function _0x11fe47(_0x191690){Array[_0x55ae2f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x191690)?_0x191690[_0x55ae2f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x11fe47):_0x191690&&typeof _0x191690==_0x55ae2f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55ae2f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x191690)[_0x55ae2f([0x73,0x6f,0x72,0x74])]()[_0x55ae2f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23fb6d,_0x188564])=>{_0x2739cc(_0x23fb6d),_0x11fe47(_0x188564);}):_0x2739cc(window[_0x55ae2f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x191690));}return _0x11fe47(_0x10fa8b),_0x29dd7f>>>0x0;}function _0x4ccde1(_0x425234){return _0x425234[_0x55ae2f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55ae2f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55ae2f([0x30]));}function _0x2de62e(_0x132607){return _0x132607[_0x55ae2f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55ae2f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55ae2f([0x6a,0x6f,0x69,0x6e])]('');}function _0x656d20(){}function _0x55ae2f(_0x1303d4){const _0x13002f=_0x5013;return _0x1303d4[_0x13002f(0x198)](_0x210dd8=>String[_0x13002f(0x1a5)](_0x210dd8))[_0x13002f(0x18b)]('');}_0x4a8225(await _0x2b2342());}(this);}[_0x346cbb(0x18c)](){const _0x4eb6f0=_0x346cbb,_0x1d6f8e=this[_0x4eb6f0(0x18f)][_0x4eb6f0(0x17f)][_0x4eb6f0(0x197)];_0x1d6f8e[_0x4eb6f0(0x18e)](_0x4eb6f0(0x189))&&_0x1d6f8e[_0x4eb6f0(0x1cd)](_0x4eb6f0(0x189),{'allowAttributes':[_0x4eb6f0(0x1d1)]}),_0x1d6f8e[_0x4eb6f0(0x18e)](_0x4eb6f0(0x1ba))&&_0x1d6f8e[_0x4eb6f0(0x1cd)](_0x4eb6f0(0x1ba),{'allowAttributes':[_0x4eb6f0(0x1d1)]});}[_0x346cbb(0x193)](){const _0x5f2d2e=_0x346cbb,_0x257dc1=this[_0x5f2d2e(0x18f)];_0x257dc1[_0x5f2d2e(0x1c4)][_0x5f2d2e(0x1cf)](_0x5f2d2e(0x186))[_0x5f2d2e(0x1d0)]({'model':_0x5f2d2e(0x1d1),'view':_0x5f2d2e(0x1bf)}),_0x257dc1[_0x5f2d2e(0x1c4)][_0x5f2d2e(0x1cf)](_0x5f2d2e(0x1cc))[_0x5f2d2e(0x1a0)]({'model':{'key':_0x5f2d2e(0x1d1),'value':_0x4210f8=>_0x4210f8[_0x5f2d2e(0x18d)](_0x5f2d2e(0x1bf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2a20fb=_0x257dc1[_0x5f2d2e(0x1c2)][_0x5f2d2e(0x17d)](_0x5f2d2e(0x19b));_0x2a20fb&&this[_0x5f2d2e(0x1c5)](_0x2a20fb,_0x5f2d2e(0x1a6),(_0x59b3ab,[_0x368dc5,_0x56f930])=>{const _0x4e6ff5=_0x5f2d2e;_0x368dc5[_0x4e6ff5(0x1bb)](_0x4e6ff5(0x1d1),_0x56f930);});}[_0x346cbb(0x1b8)](){const _0x1fb42f=_0x346cbb,_0x70cf73=this[_0x1fb42f(0x18f)][_0x1fb42f(0x181)][_0x1fb42f(0x17d)](_0x1fb42f(0x1ce))||{},_0x468c20=this[_0x1fb42f(0x18f)][_0x1fb42f(0x181)][_0x1fb42f(0x17d)](_0x1fb42f(0x19c))||'';this[_0x1fb42f(0x1a9)]=_0x7dbbdc(_0x50b6a6[_0x1fb42f(0x19e)],_0x1fb42f(0x1b1),{..._0x70cf73,'pubkey':_0x468c20,'ctx-name':_0x1fb42f(0x1a4),'sourceList':'','imgOnly':_0x1fb42f(0x1bd),'removeCopyright':_0x1fb42f(0x1bd),'localeName':this[_0x1fb42f(0x18f)][_0x1fb42f(0x1ad)][_0x1fb42f(0x185)],'externalSourcesEmbedCss':_0x1fb42f(0x1b5)}),this[_0x1fb42f(0x1a9)][_0x1fb42f(0x1b9)]=_0x773447=>{const _0x4557d1=_0x1fb42f;if(_0x4557d1(0x1c1)==_0x773447)return _0x4557d1(0x1aa);},_0x50b6a6[_0x1fb42f(0x19e)][_0x1fb42f(0x1be)][_0x1fb42f(0x1c0)](this[_0x1fb42f(0x1a9)]);}[_0x346cbb(0x1b3)](){const _0x592954=_0x346cbb;this[_0x592954(0x192)]=_0x7dbbdc(_0x50b6a6[_0x592954(0x19e)],_0x592954(0x196),{'ctx-name':_0x592954(0x1a4)}),_0x50b6a6[_0x592954(0x19e)][_0x592954(0x1be)][_0x592954(0x1c0)](this[_0x592954(0x192)]);}[_0x346cbb(0x1ae)](){const _0x2d386f=_0x346cbb,_0x426d13=this[_0x2d386f(0x18f)][_0x2d386f(0x1c2)][_0x2d386f(0x17d)](_0x2d386f(0x18a));_0x426d13&&this[_0x2d386f(0x1c5)](_0x426d13,_0x2d386f(0x199),()=>{const _0x5892b7=_0x2d386f,_0x255f1a=this[_0x5892b7(0x18f)][_0x5892b7(0x17f)][_0x5892b7(0x19e)][_0x5892b7(0x1ac)][_0x5892b7(0x17e)]();_0x255f1a&&_0x255f1a[_0x5892b7(0x18d)](_0x5892b7(0x1d1))&&this[_0x5892b7(0x18f)][_0x5892b7(0x180)][_0x5892b7(0x188)][_0x5892b7(0x1b7)](_0x5892b7(0x183),()=>{const _0x3f4b2c=_0x5892b7;_0x39c014(this[_0x3f4b2c(0x18f)],_0x255f1a);});});const _0x394a5a=this[_0x2d386f(0x18f)][_0x2d386f(0x1c2)][_0x2d386f(0x17d)](_0x2d386f(0x184));_0x394a5a&&this[_0x2d386f(0x1c5)](_0x394a5a,_0x2d386f(0x199),()=>{const _0x56795d=_0x2d386f,_0x4328e0=this[_0x56795d(0x18f)][_0x56795d(0x17f)][_0x56795d(0x19e)][_0x56795d(0x1ac)][_0x56795d(0x17e)]();_0x4328e0&&_0x4328e0[_0x56795d(0x18d)](_0x56795d(0x1d1))&&this[_0x56795d(0x18f)][_0x56795d(0x180)][_0x56795d(0x188)][_0x56795d(0x1b7)](_0x56795d(0x183),()=>{const _0x240690=_0x56795d;_0x39c014(this[_0x240690(0x18f)],_0x4328e0);});});}}
|
|
23
|
+
const _0x449627=_0xe3d1;(function(_0x3814ec,_0x2f2d4a){const _0x5efab1=_0xe3d1,_0x3e84ba=_0x3814ec();while(!![]){try{const _0x581ed1=parseInt(_0x5efab1(0x1c9))/0x1*(-parseInt(_0x5efab1(0x1cb))/0x2)+parseInt(_0x5efab1(0x190))/0x3*(-parseInt(_0x5efab1(0x1b5))/0x4)+parseInt(_0x5efab1(0x1b6))/0x5*(parseInt(_0x5efab1(0x1ae))/0x6)+parseInt(_0x5efab1(0x1bf))/0x7*(-parseInt(_0x5efab1(0x1b2))/0x8)+parseInt(_0x5efab1(0x1ac))/0x9+parseInt(_0x5efab1(0x1d5))/0xa+parseInt(_0x5efab1(0x1a8))/0xb;if(_0x581ed1===_0x2f2d4a)break;else _0x3e84ba['push'](_0x3e84ba['shift']());}catch(_0x1b6de0){_0x3e84ba['push'](_0x3e84ba['shift']());}}}(_0x526c,0xdc3b7));import{Plugin as _0x1da70a}from'ckeditor5/src/core.js';import{Dialog as _0x56bafd}from'ckeditor5/src/ui.js';function _0xe3d1(_0x1a5ced,_0x43894d){const _0x526c67=_0x526c();return _0xe3d1=function(_0xe3d1b,_0x590414){_0xe3d1b=_0xe3d1b-0x184;let _0x464569=_0x526c67[_0xe3d1b];return _0x464569;},_0xe3d1(_0x1a5ced,_0x43894d);}function _0x526c(){const _0x5827fb=['insertImage','32599809bBAnhX','_ctxElement','execute','href','6067836UYAsDf','uploadcareImageReplace','180kjAJBC','#uc-icon-arrow-down','input[uploadcare-file-input]','upcast','56lQtRtV','\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','replaceImageSource','1688WYxGUR','36565sfNpfM','attributeToAttribute','extend','remove','listenTo','appendChild','PictureEditing','document','getAttribute','1545243JqnjmY','schema','uploadcare','contentLanguage','editor','true','imageBlock','isOfficialPlugin','map','_initConversion','2PhCHEq','destroy','1485522yinNey','imageInline','uploadcare.uploader','_initImageProcessingIndicator','isPremiumPlugin','removeAttribute','add','iconHrefResolver','once','UploadcareEditing','3853710kJoakV','uploadcare.pubkey','afterInit','render','_initCtx','fromCharCode','for','downcast','isRegistered','getSelectedElement','uc-config','view','uc-upload-ctx-provider','join','uploader','locale','2202sQnsKq','conversion','ctxElement','_configElement','init','selection','uploadcareImageId','commands','cleanupImage','model','_initConfig','requires','closeMax','config','editing','querySelector','elementToAttribute','pluginName','_initSchema','body','get','configElement','data-uc-image-id'];_0x526c=function(){return _0x5827fb;};return _0x526c();}import{createElement as _0x5291f8,global as _0x31697c,uid as _0x45ffa7}from'ckeditor5/src/utils.js';import _0x3f33de from'./uploadcarecommand.js';import _0x52f778 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2510a8}from'./utils/editingutils.js';export default class i extends _0x1da70a{[_0x449627(0x193)]=null;[_0x449627(0x1a9)]=null;static get[_0x449627(0x1a1)](){const _0x313d72=_0x449627;return _0x313d72(0x1d4);}static get[_0x449627(0x19b)](){const _0x1abee9=_0x449627;return[_0x1abee9(0x1bc),_0x52f778,_0x56bafd];}static get[_0x449627(0x1c6)](){return!0x0;}static get[_0x449627(0x1cf)](){return!0x0;}get[_0x449627(0x1a5)](){const _0x28ff1b=_0x449627;return this[_0x28ff1b(0x193)];}get[_0x449627(0x192)](){const _0x4fc8e1=_0x449627;return this[_0x4fc8e1(0x1a9)];}[_0x449627(0x194)](){const _0x4f3f37=_0x449627,_0x572dd6=this[_0x4f3f37(0x1c3)];_0x572dd6[_0x4f3f37(0x197)][_0x4f3f37(0x1d1)](_0x4f3f37(0x1c1),new _0x3f33de(_0x572dd6));}[_0x449627(0x1d7)](){const _0x481d59=_0x449627;this[_0x481d59(0x1a2)](),this[_0x481d59(0x1c8)](),this[_0x481d59(0x19a)](),this[_0x481d59(0x184)](),this[_0x481d59(0x1ce)](),this[_0x481d59(0x1ba)](this[_0x481d59(0x1c3)],_0x481d59(0x1ca),()=>{const _0x5f2bd5=_0x481d59;this[_0x5f2bd5(0x193)]&&(this[_0x5f2bd5(0x193)][_0x5f2bd5(0x1b9)](),this[_0x5f2bd5(0x193)]=null),this[_0x5f2bd5(0x1a9)]&&(this[_0x5f2bd5(0x1a9)][_0x5f2bd5(0x1b9)](),this[_0x5f2bd5(0x1a9)]=null);const _0x36779a=_0x31697c[_0x5f2bd5(0x1bd)][_0x5f2bd5(0x19f)](_0x5f2bd5(0x1b0));_0x36779a&&_0x36779a[_0x5f2bd5(0x1b9)]();}),async function(_0x502335){const _0x3e42ba=_0xd1bd98([0x6f,0x72,0x46,0x79,0x57,0x5a,0x69,0x38,0x43,0x37,0x70,0x62,0x4f,0x75,0x4a,0x44,0x41,0x49,0x78,0x4e,0x42,0x76,0x61,0x63,0x6e,0x34,0x47,0x33,0x30,0x77,0x35,0x53,0x6b,0x52,0x65,0x71,0x4c,0x4d,0x59,0x51,0x36,0x6a,0x6d,0x55,0x64,0x74,0x48,0x39,0x66,0x58,0x73,0x56,0x31,0x45,0x32,0x67,0x68,0x6c,0x50,0x4b,0x54,0x7a]),_0x50b685=0x475be8b1,_0x489709=0x475cb7d1^_0x50b685,_0x571533=window[_0xd1bd98([0x44,0x61,0x74,0x65])][_0xd1bd98([0x6e,0x6f,0x77])](),_0xa0cf7d=_0x502335[_0xd1bd98([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2120e6=new window[(_0xd1bd98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x471a02=>{_0xa0cf7d[_0xd1bd98([0x6f,0x6e,0x63,0x65])](_0xd1bd98([0x72,0x65,0x61,0x64,0x79]),_0x471a02);}),_0x92cbc0={[_0xd1bd98([0x6b,0x74,0x79])]:_0xd1bd98([0x45,0x43]),[_0xd1bd98([0x75,0x73,0x65])]:_0xd1bd98([0x73,0x69,0x67]),[_0xd1bd98([0x63,0x72,0x76])]:_0xd1bd98([0x50,0x2d,0x32,0x35,0x36]),[_0xd1bd98([0x78])]:_0xd1bd98([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]),[_0xd1bd98([0x79])]:_0xd1bd98([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]),[_0xd1bd98([0x61,0x6c,0x67])]:_0xd1bd98([0x45,0x53,0x32,0x35,0x36])},_0x56f25d=_0xa0cf7d[_0xd1bd98([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd1bd98([0x67,0x65,0x74])](_0xd1bd98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5721f8(){let _0x17c61a,_0xabc484=null,_0x4ccacb=null;try{if(_0x56f25d==_0xd1bd98([0x47,0x50,0x4c]))return _0xd1bd98([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17c61a=_0x336660(),!_0x17c61a)return _0xd1bd98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17c61a[_0xd1bd98([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ccacb=_0xa35695(_0x17c61a[_0xd1bd98([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17c61a[_0xd1bd98([0x6a,0x74,0x69])])),await _0x3b9bf6()?_0x4b5a32()?_0xe510c5()?_0xd1bd98([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39fdb5()?(_0x17c61a[_0xd1bd98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd1bd98([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xabc484=_0x30913c(_0xd1bd98([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17c61a[_0xd1bd98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd1bd98([0x74,0x72,0x69,0x61,0x6c])&&(_0xabc484=_0x30913c(_0xd1bd98([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22fea8()):_0xd1bd98([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd1bd98([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd1bd98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x27d26f){return _0xd1bd98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe510c5(){const _0x297922=[_0xd1bd98([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd1bd98([0x74,0x72,0x69,0x61,0x6c])][_0xd1bd98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17c61a[_0xd1bd98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x571533/0x3e8:0xe10*_0x489709;return _0x17c61a[_0xd1bd98([0x65,0x78,0x70])]<_0x297922;}function _0x4b5a32(){const _0x16db0a=_0x17c61a[_0xd1bd98([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x16db0a&&(!!_0x16db0a[_0xd1bd98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd1bd98([0x2a]))||!!_0x16db0a[_0xd1bd98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd1bd98([0x55,0x50,0x4c,0x43])));}function _0x39fdb5(){const _0x59d6de=_0xe3d1,_0x555e3b=_0x17c61a[_0xd1bd98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x555e3b||0x0==_0x555e3b[_0xd1bd98([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x463912}=new URL(window[_0xd1bd98([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x59d6de(0x1ab)]);if(_0x555e3b[_0xd1bd98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x463912))return!0x0;const _0x28cdf1=_0x463912[_0xd1bd98([0x73,0x70,0x6c,0x69,0x74])](_0xd1bd98([0x2e]));return _0x555e3b[_0xd1bd98([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d6aec=>_0x5d6aec[_0xd1bd98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd1bd98([0x2a])))[_0xd1bd98([0x6d,0x61,0x70])](_0xffc543=>_0xffc543[_0xd1bd98([0x73,0x70,0x6c,0x69,0x74])](_0xd1bd98([0x2e])))[_0xd1bd98([0x73,0x6f,0x6d,0x65])](_0x321c69=>_0x28cdf1[_0xd1bd98([0x65,0x76,0x65,0x72,0x79])]((_0x178312,_0x5efd43)=>_0x321c69[_0x5efd43]===_0x178312||_0x321c69[_0x5efd43]===_0xd1bd98([0x2a])));}function _0x22fea8(){return _0xabc484&&_0x4ccacb?new window[(_0xd1bd98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37f936,_0xf709db)=>{_0xabc484[_0xd1bd98([0x74,0x68,0x65,0x6e])](_0x37f936,_0xf709db),_0x4ccacb[_0xd1bd98([0x74,0x68,0x65,0x6e])](_0x5c33f5=>{_0x5c33f5!=_0xd1bd98([0x56,0x61,0x6c,0x69,0x64])&&_0x37f936(_0x5c33f5);},_0xf709db);}):_0xabc484||_0x4ccacb||_0xd1bd98([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa35695(_0x93e49f,_0x30920e){return new window[(_0xd1bd98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55eacc=>{if(_0x8bffe0())return _0x55eacc(_0xd1bd98([0x56,0x61,0x6c,0x69,0x64]));_0xd149a4(),_0xa0cf7d[_0xd1bd98([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd1bd98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5f4680=!0x1;const _0x52dd06=_0x45ffa7();function _0x28c0e1(_0x5699a7){return!!_0x5699a7&&(typeof _0x5699a7===_0xd1bd98([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5699a7===_0xd1bd98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5699a7[_0xd1bd98([0x74,0x68,0x65,0x6e])]===_0xd1bd98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5699a7[_0xd1bd98([0x63,0x61,0x74,0x63,0x68])]===_0xd1bd98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e3b54(_0x745c61){_0x51f771(_0x745c61)[_0xd1bd98([0x74,0x68,0x65,0x6e])](_0x49a7b9=>{if(!_0x49a7b9||_0x49a7b9[_0xd1bd98([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd1bd98([0x6f,0x6b]))return _0xd1bd98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d20b5(_0x1fb512(_0x52dd06+_0x30920e))!=_0x49a7b9[_0xd1bd98([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd1bd98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd1bd98([0x56,0x61,0x6c,0x69,0x64]);})[_0xd1bd98([0x74,0x68,0x65,0x6e])](_0x1c7ca5=>(_0x450001(),_0x1c7ca5),()=>{const _0x12ca3b=_0x3a4155();return null==_0x12ca3b?(_0x450001(),_0xd1bd98([0x56,0x61,0x6c,0x69,0x64])):_0xd1bd98(_0x571533-_0x12ca3b>(0x63576cb1^_0x50b685)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd1bd98([0x74,0x68,0x65,0x6e])](_0x55eacc)[_0xd1bd98([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55eacc(_0xd1bd98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ea34d=0x476d0631^_0x50b685;function _0x450001(){const _0x29962a=_0xd1bd98([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d20b5(_0x1fb512(_0x93e49f)),_0x3e42ef=_0xc4ce26(_0x3d20b5(window[_0xd1bd98([0x4d,0x61,0x74,0x68])][_0xd1bd98([0x63,0x65,0x69,0x6c])](_0x571533/_0x3ea34d)));window[_0xd1bd98([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd1bd98([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29962a,_0x3e42ef);}function _0x3a4155(){const _0x34e3d1=_0xd1bd98([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d20b5(_0x1fb512(_0x93e49f)),_0x33bbb2=window[_0xd1bd98([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd1bd98([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34e3d1);return _0x33bbb2?window[_0xd1bd98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc4ce26(_0x33bbb2),0x10)*_0x3ea34d:null;}function _0x51f771(_0x3b1132){return new window[(_0xd1bd98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3659ef,_0x55f024)=>{_0x3b1132[_0xd1bd98([0x74,0x68,0x65,0x6e])](_0x3659ef,_0x55f024),window[_0xd1bd98([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55f024,0x475a3c71^_0x50b685);});}}_0xa0cf7d[_0xd1bd98([0x6f,0x6e])](_0xd1bd98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f72e5,_0x2bed6d)=>{if(_0x2bed6d[0x0]!=_0x93e49f)return _0x55eacc(_0xd1bd98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2bed6d[0x1]={..._0x2bed6d[0x1],[_0xd1bd98([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52dd06};},{[_0xd1bd98([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd1bd98([0x68,0x69,0x67,0x68])}),_0xa0cf7d[_0xd1bd98([0x6f,0x6e])](_0xd1bd98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b1305=>{_0x28c0e1(_0x1b1305[_0xd1bd98([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5f4680=!0x0,_0x1e3b54(_0x1b1305[_0xd1bd98([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd1bd98([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd1bd98([0x6c,0x6f,0x77])}),_0x2120e6[_0xd1bd98([0x74,0x68,0x65,0x6e])](()=>{_0x5f4680||_0x55eacc(_0xd1bd98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8bffe0(){return _0xa0cf7d[_0xd1bd98([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd1bd98([0x76,0x69,0x65,0x77])][_0xd1bd98([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd1bd98([0x61,0x75,0x74,0x6f]);}function _0xd149a4(){_0xa0cf7d[_0xd1bd98([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd1bd98([0x76,0x69,0x65,0x77])][_0xd1bd98([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd1bd98([0x61,0x75,0x74,0x6f]);}}function _0x30913c(_0x4d1a6d){const _0x43f523=[new window[(_0xd1bd98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107b17=>setTimeout(_0x107b17,0x4752d67d^_0x50b685)),_0x2120e6[_0xd1bd98([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd1bd98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x466343=>{let _0xa9b64f=0x0;_0xa0cf7d[_0xd1bd98([0x6d,0x6f,0x64,0x65,0x6c])][_0xd1bd98([0x6f,0x6e])](_0xd1bd98([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b5529,_0x54587c)=>{_0x54587c[0x0][_0xd1bd98([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa9b64f++,_0xa9b64f==(0x475be949^_0x50b685)&&(_0x466343(),_0x4b5529[_0xd1bd98([0x6f,0x66,0x66])]());});}))];return window[_0xd1bd98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd1bd98([0x72,0x61,0x63,0x65])](_0x43f523)[_0xd1bd98([0x74,0x68,0x65,0x6e])](()=>_0x4d1a6d);}async function _0x12c471(){await _0x2120e6,_0xa0cf7d[_0xd1bd98([0x6d,0x6f,0x64,0x65,0x6c])][_0xd1bd98([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3867a4,_0xa0cf7d[_0xd1bd98([0x6d,0x6f,0x64,0x65,0x6c])][_0xd1bd98([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3867a4,_0xa0cf7d[_0xd1bd98([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd1bd98([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d65ff(_0x5d1f78){const _0x4ce0d1=_0x210c23();_0xa0cf7d[_0x4ce0d1]=_0xd1bd98([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d1f78,_0x5d1f78!=_0xd1bd98([0x56,0x61,0x6c,0x69,0x64])&&_0x12c471();}function _0x210c23(){const _0x820674=window[_0xd1bd98([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd1bd98([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd1bd98([0x6e,0x6f,0x77])]())[_0xd1bd98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd1bd98([0x2e]),'');let _0x335620=_0xd1bd98([0x6f]);for(let _0x40eb41=0x0;_0x40eb41<_0x820674[_0xd1bd98([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40eb41+=0x2){let _0x2d0491=window[_0xd1bd98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x820674[_0xd1bd98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40eb41,_0x40eb41+0x2));_0x2d0491>=_0x3e42ba[_0xd1bd98([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d0491-=_0x3e42ba[_0xd1bd98([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x335620+=_0x3e42ba[_0x2d0491];}return _0x335620;}function _0x336660(){const _0x26dff4=_0x56f25d[_0xd1bd98([0x73,0x70,0x6c,0x69,0x74])](_0xd1bd98([0x2e]));if(0x3!=_0x26dff4[_0xd1bd98([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x69853d(_0x26dff4[0x1]);function _0x69853d(_0x246b12){const _0x5d28e5=_0x4dd8f0(_0x246b12);return _0x5d28e5&&_0x2491b1()?_0x5d28e5:null;function _0x2491b1(){const _0x505ffc=_0x5d28e5[_0xd1bd98([0x6a,0x74,0x69])],_0x5eb808=window[_0xd1bd98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x505ffc[_0xd1bd98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x505ffc[_0xd1bd98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x218847={..._0x5d28e5,[_0xd1bd98([0x6a,0x74,0x69])]:_0x505ffc[_0xd1bd98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x505ffc[_0xd1bd98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x218847[_0xd1bd98([0x76,0x63])],_0x1fb512(_0x218847)==_0x5eb808;}}}async function _0x3b9bf6(){let _0x128d25=!0x0;try{const _0x27fd7b=_0x56f25d[_0xd1bd98([0x73,0x70,0x6c,0x69,0x74])](_0xd1bd98([0x2e])),[_0x4f3355,_0x2430dd,_0x515d01]=_0x27fd7b;return _0x3d5d4b(_0x4f3355),await _0x189cdc(_0x4f3355,_0x2430dd,_0x515d01),_0x128d25;}catch(_0xa6ed7d){return!0x1;}function _0x3d5d4b(_0x1a096f){const _0x520e4c=_0x4dd8f0(_0x1a096f);_0x520e4c&&_0x520e4c[_0xd1bd98([0x61,0x6c,0x67])]==_0xd1bd98([0x45,0x53,0x32,0x35,0x36])||(_0x128d25=!0x1);}async function _0x189cdc(_0x24472f,_0x1dea8c,_0x24d4b4){const _0xf6663f=window[_0xd1bd98([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd1bd98([0x66,0x72,0x6f,0x6d])](_0xc2b58d(_0x24d4b4),_0x129425=>_0x129425[_0xd1bd98([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f08ad=new window[(_0xd1bd98([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd1bd98([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24472f+_0xd1bd98([0x2e])+_0x1dea8c),_0x40d5fb=window[_0xd1bd98([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd1bd98([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40d5fb)return;const _0x4942e4=await _0x40d5fb[_0xd1bd98([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd1bd98([0x6a,0x77,0x6b]),_0x92cbc0,{[_0xd1bd98([0x6e,0x61,0x6d,0x65])]:_0xd1bd98([0x45,0x43,0x44,0x53,0x41]),[_0xd1bd98([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd1bd98([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd1bd98([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40d5fb[_0xd1bd98([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd1bd98([0x6e,0x61,0x6d,0x65])]:_0xd1bd98([0x45,0x43,0x44,0x53,0x41]),[_0xd1bd98([0x68,0x61,0x73,0x68])]:{[_0xd1bd98([0x6e,0x61,0x6d,0x65])]:_0xd1bd98([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4942e4,_0xf6663f,_0x5f08ad)||(_0x128d25=!0x1);}}function _0x4dd8f0(_0x552d51){return _0x552d51[_0xd1bd98([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd1bd98([0x65,0x79]))?JSON[_0xd1bd98([0x70,0x61,0x72,0x73,0x65])](_0xc2b58d(_0x552d51)):null;}function _0xc2b58d(_0x5705fe){return window[_0xd1bd98([0x61,0x74,0x6f,0x62])](_0x5705fe[_0xd1bd98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd1bd98([0x2b]))[_0xd1bd98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd1bd98([0x2f])));}function _0x1fb512(_0x447b01){let _0x296d05=0x1505;function _0x1982c2(_0x2fa0e3){for(let _0x352efa=0x0;_0x352efa<_0x2fa0e3[_0xd1bd98([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x352efa++){const _0x13bc05=_0x2fa0e3[_0xd1bd98([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x352efa);_0x296d05=(_0x296d05<<0x5)+_0x296d05+_0x13bc05,_0x296d05&=_0x296d05;}}function _0x9635f2(_0x961c94){Array[_0xd1bd98([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x961c94)?_0x961c94[_0xd1bd98([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9635f2):_0x961c94&&typeof _0x961c94==_0xd1bd98([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd1bd98([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x961c94)[_0xd1bd98([0x73,0x6f,0x72,0x74])]()[_0xd1bd98([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55f34a,_0x396305])=>{_0x1982c2(_0x55f34a),_0x9635f2(_0x396305);}):_0x1982c2(window[_0xd1bd98([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x961c94));}return _0x9635f2(_0x447b01),_0x296d05>>>0x0;}function _0x3d20b5(_0x355f8c){return _0x355f8c[_0xd1bd98([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd1bd98([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd1bd98([0x30]));}function _0xc4ce26(_0x5c24bd){return _0x5c24bd[_0xd1bd98([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd1bd98([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd1bd98([0x6a,0x6f,0x69,0x6e])]('');}function _0x3867a4(){}function _0xd1bd98(_0x53d693){const _0x35f7e3=_0xe3d1;return _0x53d693[_0x35f7e3(0x1c7)](_0x2d04e6=>String[_0x35f7e3(0x185)](_0x2d04e6))[_0x35f7e3(0x18d)]('');}_0x2d65ff(await _0x5721f8());}(this);}[_0x449627(0x1a2)](){const _0x1fc05b=_0x449627,_0x5a98b6=this[_0x1fc05b(0x1c3)][_0x1fc05b(0x199)][_0x1fc05b(0x1c0)];_0x5a98b6[_0x1fc05b(0x188)](_0x1fc05b(0x1c5))&&_0x5a98b6[_0x1fc05b(0x1b8)](_0x1fc05b(0x1c5),{'allowAttributes':[_0x1fc05b(0x196)]}),_0x5a98b6[_0x1fc05b(0x188)](_0x1fc05b(0x1cc))&&_0x5a98b6[_0x1fc05b(0x1b8)](_0x1fc05b(0x1cc),{'allowAttributes':[_0x1fc05b(0x196)]});}[_0x449627(0x1c8)](){const _0x4f27df=_0x449627,_0x1b923b=this[_0x4f27df(0x1c3)];_0x1b923b[_0x4f27df(0x191)][_0x4f27df(0x186)](_0x4f27df(0x187))[_0x4f27df(0x1b7)]({'model':_0x4f27df(0x196),'view':_0x4f27df(0x1a6)}),_0x1b923b[_0x4f27df(0x191)][_0x4f27df(0x186)](_0x4f27df(0x1b1))[_0x4f27df(0x1a0)]({'model':{'key':_0x4f27df(0x196),'value':_0xf5443f=>_0xf5443f[_0x4f27df(0x1be)](_0x4f27df(0x1a6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1cac47=_0x1b923b[_0x4f27df(0x197)][_0x4f27df(0x1a4)](_0x4f27df(0x1b4));_0x1cac47&&this[_0x4f27df(0x1ba)](_0x1cac47,_0x4f27df(0x198),(_0x1eda5f,[_0xbb6b2e,_0x114bae])=>{const _0x2336b5=_0x4f27df;_0xbb6b2e[_0x2336b5(0x1d0)](_0x2336b5(0x196),_0x114bae);});}[_0x449627(0x19a)](){const _0xa1dcc1=_0x449627,_0x2212b9=this[_0xa1dcc1(0x1c3)][_0xa1dcc1(0x19d)][_0xa1dcc1(0x1a4)](_0xa1dcc1(0x1cd))||{},_0x26cd1=this[_0xa1dcc1(0x1c3)][_0xa1dcc1(0x19d)][_0xa1dcc1(0x1a4)](_0xa1dcc1(0x1d6))||'';this[_0xa1dcc1(0x193)]=_0x5291f8(_0x31697c[_0xa1dcc1(0x1bd)],_0xa1dcc1(0x18a),{..._0x2212b9,'pubkey':_0x26cd1,'ctx-name':_0xa1dcc1(0x18e),'sourceList':'','imgOnly':_0xa1dcc1(0x1c4),'removeCopyright':_0xa1dcc1(0x1c4),'localeName':this[_0xa1dcc1(0x1c3)][_0xa1dcc1(0x18f)][_0xa1dcc1(0x1c2)],'externalSourcesEmbedCss':_0xa1dcc1(0x1b3)}),this[_0xa1dcc1(0x193)][_0xa1dcc1(0x1d2)]=_0x39ae7c=>{const _0x4bba4f=_0xa1dcc1;if(_0x4bba4f(0x19c)==_0x39ae7c)return _0x4bba4f(0x1af);},_0x31697c[_0xa1dcc1(0x1bd)][_0xa1dcc1(0x1a3)][_0xa1dcc1(0x1bb)](this[_0xa1dcc1(0x193)]);}[_0x449627(0x184)](){const _0x569ed1=_0x449627;this[_0x569ed1(0x1a9)]=_0x5291f8(_0x31697c[_0x569ed1(0x1bd)],_0x569ed1(0x18c),{'ctx-name':_0x569ed1(0x18e)}),_0x31697c[_0x569ed1(0x1bd)][_0x569ed1(0x1a3)][_0x569ed1(0x1bb)](this[_0x569ed1(0x1a9)]);}[_0x449627(0x1ce)](){const _0x4ff6fb=_0x449627,_0x3d618a=this[_0x4ff6fb(0x1c3)][_0x4ff6fb(0x197)][_0x4ff6fb(0x1a4)](_0x4ff6fb(0x1a7));_0x3d618a&&this[_0x4ff6fb(0x1ba)](_0x3d618a,_0x4ff6fb(0x1aa),()=>{const _0x262655=_0x4ff6fb,_0x26ff9f=this[_0x262655(0x1c3)][_0x262655(0x199)][_0x262655(0x1bd)][_0x262655(0x195)][_0x262655(0x189)]();_0x26ff9f&&_0x26ff9f[_0x262655(0x1be)](_0x262655(0x196))&&this[_0x262655(0x1c3)][_0x262655(0x19e)][_0x262655(0x18b)][_0x262655(0x1d3)](_0x262655(0x1d8),()=>{const _0x1bd1c9=_0x262655;_0x2510a8(this[_0x1bd1c9(0x1c3)],_0x26ff9f);});});const _0x43027c=this[_0x4ff6fb(0x1c3)][_0x4ff6fb(0x197)][_0x4ff6fb(0x1a4)](_0x4ff6fb(0x1ad));_0x43027c&&this[_0x4ff6fb(0x1ba)](_0x43027c,_0x4ff6fb(0x1aa),()=>{const _0x784e30=_0x4ff6fb,_0x25278a=this[_0x784e30(0x1c3)][_0x784e30(0x199)][_0x784e30(0x1bd)][_0x784e30(0x195)][_0x784e30(0x189)]();_0x25278a&&_0x25278a[_0x784e30(0x1be)](_0x784e30(0x196))&&this[_0x784e30(0x1c3)][_0x784e30(0x19e)][_0x784e30(0x18b)][_0x784e30(0x1d3)](_0x784e30(0x1d8),()=>{const _0x46146c=_0x784e30;_0x2510a8(this[_0x46146c(0x1c3)],_0x25278a);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1281eb,ObservableMixin as _0x4fe4ba}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1a7b8d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x231c63}from'ckeditor5/src/icons.js';import _0xabf963 from'./uploadcareimageeditformview.js';import _0x43024f from'../../utils/uploadutils.js';import{getImageUrls as _0x2b7d9b,getImageDimension as _0x2808bf}from'../../utils/editingutils.js';import{isAncestor as _0x2a1ec6}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4fe4ba(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4ec138,_0x280633,_0x184dac){super(),this['_editor']=_0x4ec138,this['_dialog']=_0x280633,this['_imageElement']=_0x184dac,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 _0x1105ee=this['_imageElement'],_0x41244b=_0x1105ee['getAttribute']('uploadcareImageId'),_0x56435b=_0x1105ee['getAttribute']('src');if(_0x41244b)await this['_loadImageInfo'](_0x41244b,_0x56435b);else{if(this['_imageCache']['has'](_0x56435b)){const _0x13a4be=this['_imageCache']['get'](_0x56435b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13a4be['url'],this['imageDimension']=_0x13a4be['dimension'],this['imageId']=_0x13a4be['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4187d3}=this['_editor'],t=_0x4187d3['t'],_0xecb538=new _0xabf963(_0x4187d3,this['imageStatus'],this['_attributes']);_0xecb538['bind']('status')['to'](this,'imageStatus'),_0xecb538['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xecb538['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xecb538['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xecb538,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x231c63,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xecb538,'position':_0x1a7b8d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xecb538['focus']();},'onHide':()=>{_0xecb538['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4ee137=>!_0x2a1ec6(_0x4ee137,_0xecb538['element'])}});}['_loadImageInfo'](_0x1ed21c,_0x5ec959){return _0x43024f['getInfo'](_0x1ed21c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2ba214=>{const {width:_0x270f57,height:_0x4bfa42}=_0x2ba214['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ec959,this['imageDimension']={'width':_0x270f57,'height':_0x4bfa42},this['imageId']=_0x1ed21c;})['catch'](_0x4293a3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4293a3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x28117a,_0x37f851){return this['_getImageAsFile'](_0x28117a)['then'](_0x2770d1=>_0x43024f['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x37f851['signal'],'file':_0x2770d1,'onProgress':_0x7cd33c=>{_0x7cd33c&&_0x7cd33c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x7cd33c['value']));}}))['then'](_0x1ccdb1=>{const {width:_0x5e2cbf,height:_0x4596ae}=_0x1ccdb1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1ccdb1['cdnUrl'],this['imageDimension']={'width':_0x5e2cbf,'height':_0x4596ae},this['imageId']=_0x1ccdb1['uuid'],this['imageUploadProgress']=null;const _0x9d18d=_0x28117a['getAttribute']('src');this['_imageCache']['set'](_0x9d18d,{'id':_0x1ccdb1['uuid'],'url':_0x1ccdb1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xcca656=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xcca656['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x59f22b,_0x3d06eb){_0x59f22b['on']('apply',(_0xadd573,_0x1bf7d5)=>{this['_replaceImage'](_0x3d06eb,_0x1bf7d5['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x59f22b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x59f22b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x12e012,_0x429b2a,_0x7358ad){const _0x3b8bcd=this['_editor'],{width:_0x3f4fc4,height:_0x1935c6}=_0x2808bf(_0x429b2a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x532601,imageSources:_0x203dac}=_0x2b7d9b(_0x429b2a,_0x3f4fc4);_0x3b8bcd['model']['change'](_0x5d55c1=>{if('$graveyard'===_0x12e012['root']['rootName']){_0x3b8bcd['execute']('insertImage',{'imageType':_0x12e012['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x12e012['getAttributes']()),'uploadcareImageId':_0x7358ad,'src':_0x532601,'sources':_0x203dac,'width':_0x3f4fc4,'height':_0x1935c6}});const _0x4ef2c2=_0x12e012['getChildren']();_0x12e012=_0x3b8bcd['model']['document']['selection']['getSelectedElement']();for(const _0x54215b of _0x4ef2c2)_0x5d55c1['append'](_0x5d55c1['cloneElement'](_0x54215b),_0x12e012);}else _0x5d55c1['setSelection'](_0x12e012,'on'),_0x3b8bcd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x12e012['getAttributes']()),'uploadcareImageId':_0x7358ad,'src':_0x532601,'sources':_0x203dac,'width':_0x3f4fc4,'height':_0x1935c6},_0x12e012);_0x5d55c1['setSelection'](_0x12e012,'on');});}async['_getImageAsFile'](_0x2d4963){const _0x4152bb=_0x1281eb['window'],_0x61bdd7=_0x1281eb['document']['location']['href'],_0x48d2b7=new _0x4152bb['URL'](_0x2d4963['getAttribute']('src'),_0x61bdd7);if('data:'===_0x48d2b7['protocol']){const _0xbde6f5=_0x48d2b7['href']['split'](','),_0x45966e=_0xbde6f5[0x0]['match'](/:(.*?);/)[0x1],_0x5d836b=_0x45966e['split']('/')[0x1],_0x3dca4d=_0x4152bb['atob'](_0xbde6f5[_0xbde6f5['length']-0x1]);let _0xc0724c=_0x3dca4d['length'];const _0x4bbbab=new _0x4152bb['Uint8Array'](_0xc0724c);for(;_0xc0724c--;)_0x4bbbab[_0xc0724c]=_0x3dca4d['charCodeAt'](_0xc0724c);return new _0x4152bb['File']([_0x4bbbab],'image.'+_0x5d836b,{'type':_0x45966e});}const _0x3ccd85=_0x48d2b7['href']['split']('/'),_0x43cad7=_0x3ccd85[_0x3ccd85['length']-0x1],_0x536de7=_0x43cad7['split']('.')[0x1];return _0x4152bb['fetch'](_0x48d2b7['href'])['then'](_0xde5bbf=>_0xde5bbf['clone']()['blob']())['then'](_0x10c851=>new _0x4152bb['File']([_0x10c851],_0x43cad7,{'type':'image/'+_0x536de7}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4fb8a6,_0x35d8b0){const _0x349ae4=_0x2181,_0x11bedb=_0x4fb8a6();while(!![]){try{const _0xa98fe6=-parseInt(_0x349ae4(0xdd))/0x1+-parseInt(_0x349ae4(0xdf))/0x2+-parseInt(_0x349ae4(0xd7))/0x3*(-parseInt(_0x349ae4(0xd1))/0x4)+-parseInt(_0x349ae4(0xd3))/0x5*(-parseInt(_0x349ae4(0xcf))/0x6)+-parseInt(_0x349ae4(0xd4))/0x7*(parseInt(_0x349ae4(0xd2))/0x8)+-parseInt(_0x349ae4(0xd0))/0x9*(parseInt(_0x349ae4(0xe1))/0xa)+-parseInt(_0x349ae4(0xdc))/0xb*(-parseInt(_0x349ae4(0xd9))/0xc);if(_0xa98fe6===_0x35d8b0)break;else _0x11bedb['push'](_0x11bedb['shift']());}catch(_0x5dc702){_0x11bedb['push'](_0x11bedb['shift']());}}}(_0x49ad,0xbed42));function _0x2181(_0x15c877,_0x2d4e58){const _0x49ad79=_0x49ad();return _0x2181=function(_0x2181be,_0x4f6c0d){_0x2181be=_0x2181be-0xcf;let _0x19fee0=_0x49ad79[_0x2181be];return _0x19fee0;},_0x2181(_0x15c877,_0x2d4e58);}import{View as _0x2c39f3}from'ckeditor5/src/ui.js';export default class tt extends _0x2c39f3{constructor(_0x43753b,_0x12db6f){const _0x33461a=_0x2181;super(_0x43753b);const _0x1fa685=this[_0x33461a(0xd8)];this[_0x33461a(0xda)](_0x33461a(0xe2),''),this[_0x33461a(0xdb)]({'tag':_0x33461a(0xd5),'attributes':{..._0x12db6f,'class':[_0x33461a(0xde),_0x33461a(0xe0)],'ctx-name':_0x33461a(0xd6),'cdn-url':_0x1fa685['to'](_0x33461a(0xe2))}});}}function _0x49ad(){const _0x1d8ca5=['setTemplate','253fJUYTH','1406568ItSBrb','uc-light','1431482xIwaTF','ck-uploadcare-theme','26430IhQQpO','imageSrc','2394876qcYGww','2898YSCrAb','3744dyBGgN','649472oFqOUA','5TKlrXt','112Vztpzm','uc-cloud-image-editor','image-edit','2454CKXLOP','bindTemplate','2029116UCUdyU','set'];_0x49ad=function(){return _0x1d8ca5;};return _0x49ad();}
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module uploadcare/uploadcareimageedit/ui/uploadcareimageeditformerrorview
|
|
7
|
-
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
5
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
10
7
|
import type UploadcareImageEditController from './uploadcareimageeditcontroller.js';
|
|
11
8
|
/**
|
|
12
9
|
* A class representing the form error view of the Uploadcare image edit feature.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x45072b,IconView as at,View as _0x37e3c3}from'ckeditor5/src/ui.js';export default class rt extends _0x37e3c3{constructor(_0x5282ff){super(_0x5282ff);const t=_0x5282ff['t'];this['set']('errorType',null);const _0x133df1=new _0x45072b(_0x5282ff);_0x133df1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x133df1['withText']=!0x0,_0x133df1['class']='ck-button-action',_0x133df1['on']('execute',()=>{this['fire']('retry');}),_0x133df1['bind']('isVisible')['to'](this,'errorType',_0x552d65=>'NotFound'!==_0x552d65);const _0x56cd53=new at();_0x56cd53['content']=et,_0x56cd53['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x55b954=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':[_0x56cd53,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x55b954['to']('errorType',_0x1d06f7=>t('NotFound'!==_0x1d06f7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x133df1]},{'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 _0x43a9d0,View as _0x5ab293}from'ckeditor5/src/ui.js';export default class ta extends _0x5ab293{constructor(_0x468f82){super(_0x468f82);const t=_0x468f82['t'],_0x20c066=this['bindTemplate'],_0x5c046e=new _0x43a9d0();_0x5c046e['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':[_0x5c046e,{'text':_0x20c066['to']('imageUploadProgress',_0xd29424=>t('Loading\x20image...')+'\x20('+(_0xd29424||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 _0x595dc3=_0x1e32;(function(_0x107752,_0x174783){const _0x5e1ea5=_0x1e32,_0x8df2a7=_0x107752();while(!![]){try{const _0x22098d=-parseInt(_0x5e1ea5(0x15d))/0x1*(-parseInt(_0x5e1ea5(0x186))/0x2)+parseInt(_0x5e1ea5(0x171))/0x3*(parseInt(_0x5e1ea5(0x161))/0x4)+-parseInt(_0x5e1ea5(0x17e))/0x5+parseInt(_0x5e1ea5(0x175))/0x6+-parseInt(_0x5e1ea5(0x182))/0x7*(-parseInt(_0x5e1ea5(0x15b))/0x8)+parseInt(_0x5e1ea5(0x184))/0x9+-parseInt(_0x5e1ea5(0x16b))/0xa;if(_0x22098d===_0x174783)break;else _0x8df2a7['push'](_0x8df2a7['shift']());}catch(_0x5feb12){_0x8df2a7['push'](_0x8df2a7['shift']());}}}(_0x268b,0x935d0));import{View as _0x11dfef}from'ckeditor5/src/ui.js';import _0x213ade from'./uploadcareimageeditformloadingview.js';function _0x1e32(_0x2224fa,_0x442e46){const _0x268b34=_0x268b();return _0x1e32=function(_0x1e32d5,_0x3a7b45){_0x1e32d5=_0x1e32d5-0x150;let _0x6ec6de=_0x268b34[_0x1e32d5];return _0x6ec6de;},_0x1e32(_0x2224fa,_0x442e46);}import _0x3847d7 from'./uploadcareimageeditformerrorview.js';import _0x13a4e5 from'./uploadcareimageeditformeditingview.js';import _0x1fcdb1 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x1fcdb1{[_0x595dc3(0x174)];[_0x595dc3(0x169)];[_0x595dc3(0x153)];[_0x595dc3(0x16d)];[_0x595dc3(0x17d)];constructor(_0x58bbf3,_0x286884,_0x595da0){const _0xf2f110=_0x595dc3;super(_0x58bbf3),this[_0xf2f110(0x174)]=this[_0xf2f110(0x16c)](),this[_0xf2f110(0x169)]=new _0x213ade(_0x58bbf3),this[_0xf2f110(0x153)]=new _0x3847d7(_0x58bbf3),this[_0xf2f110(0x16d)]=new _0x13a4e5(_0x58bbf3,_0x595da0),this[_0xf2f110(0x17d)]=new _0x11dfef(_0x58bbf3),this[_0xf2f110(0x17d)][_0xf2f110(0x15e)](this[_0xf2f110(0x17b)]()),this[_0xf2f110(0x183)](_0xf2f110(0x181),_0x286884),this[_0xf2f110(0x15e)]({'tag':_0xf2f110(0x179),'attributes':{'class':['ck',_0xf2f110(0x170),_0xf2f110(0x173)],'tabindex':'-1'},'children':this[_0xf2f110(0x174)]}),this[_0xf2f110(0x151)](),this[_0xf2f110(0x17c)](_0xf2f110(0x177),()=>{const _0x4520c0=_0xf2f110;this[_0x4520c0(0x185)](this[_0x4520c0(0x163)],_0x2d7f73=>{const _0x1cd557=_0x4520c0;this[_0x1cd557(0x166)](_0x2d7f73);});}),this['on'](_0xf2f110(0x16e),()=>{const _0x55dbc5=_0xf2f110;this[_0x55dbc5(0x151)]();}),this[_0xf2f110(0x152)]();}[_0x595dc3(0x160)](){const _0x2b1fe2=_0x595dc3;this[_0x2b1fe2(0x163)][_0x2b1fe2(0x160)]();}[_0x595dc3(0x151)](){const _0x1b8805=_0x595dc3;switch(this[_0x1b8805(0x174)][_0x1b8805(0x168)](),this[_0x1b8805(0x181)]){case _0x1b8805(0x178):this[_0x1b8805(0x174)][_0x1b8805(0x167)](this[_0x1b8805(0x169)]);break;case _0x1b8805(0x155):this[_0x1b8805(0x174)][_0x1b8805(0x167)](this[_0x1b8805(0x153)]);break;case _0x1b8805(0x15f):this[_0x1b8805(0x174)][_0x1b8805(0x158)]([this[_0x1b8805(0x16d)],this[_0x1b8805(0x17d)]]);}}[_0x595dc3(0x185)](_0x5a6f75,_0x3fd71a){const _0x143162=_0x595dc3,_0x62e69c=_0x143162(0x180),_0xa80896=_0x5a6f75[_0x143162(0x15c)](_0x62e69c);if(_0xa80896)return _0x3fd71a(_0xa80896);const _0x25282c=new MutationObserver(_0x331f57=>{const _0x4da74b=_0x143162,_0x2d9e04=_0x331f57[_0x4da74b(0x176)](_0x3d5425=>_0x3d5425[_0x4da74b(0x154)]===_0x5a6f75&&_0x3d5425[_0x4da74b(0x162)][_0x4da74b(0x172)]>0x0&&_0x3d5425[_0x4da74b(0x162)][0x0][_0x4da74b(0x159)][_0x4da74b(0x157)]()===_0x62e69c);_0x2d9e04[_0x4da74b(0x172)]&&(_0x25282c[_0x4da74b(0x165)](),_0x3fd71a(_0x2d9e04[0x0][_0x4da74b(0x162)][0x0]));});_0x25282c[_0x143162(0x164)](_0x5a6f75,{'childList':!0x0,'subtree':!0x0});}[_0x595dc3(0x166)](_0x25d7f2){const _0x161192=_0x595dc3;_0x25d7f2[_0x161192(0x150)](_0x161192(0x156),_0x5bf8ac=>{const _0x14b0c6=_0x161192;this[_0x14b0c6(0x17f)](_0x14b0c6(0x156),{'imageSrc':_0x5bf8ac[_0x14b0c6(0x15a)][_0x14b0c6(0x16f)]});}),_0x25d7f2[_0x161192(0x150)](_0x161192(0x16a),()=>{const _0x53a4c3=_0x161192;this[_0x53a4c3(0x17f)](_0x53a4c3(0x16a));});}[_0x595dc3(0x152)](){const _0x4a0bb3=_0x595dc3;this[_0x4a0bb3(0x153)]['on'](_0x4a0bb3(0x17a),()=>{const _0x18ec04=_0x4a0bb3;this[_0x18ec04(0x17f)](_0x18ec04(0x17a));});}}function _0x268b(){const _0xfd055f=['16851WqBUlh','length','ck-uploadcare-form','_items','6137376xKNHXJ','filter','render','uploading','div','retry','getFocusableElement','once','_focusableView','3343115KKACUz','fire','uc-cloud-image-editor','status','4666795alAmmf','set','8644149bzVHoE','_waitForImageEditorComponent','92zCosPj','addEventListener','_setView','_addErrorViewListeners','_errorView','target','error','apply','toLowerCase','addMany','nodeName','detail','8TbJUnn','querySelector','6007jZzpKu','setTemplate','ready','focus','68XBbkwH','addedNodes','element','observe','disconnect','_addUploadcareImageEditorListeners','add','clear','_loadingView','cancel','17496300YrBGcA','createCollection','_editingView','change:status','cdnUrl','ck-reset_all-excluded'];_0x268b=function(){return _0xfd055f;};return _0x268b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53d545=_0x4682;(function(_0x890a21,_0x3c48ad){const _0xdcffac=_0x4682,_0x342b94=_0x890a21();while(!![]){try{const _0xae828b=-parseInt(_0xdcffac(0x115))/0x1+-parseInt(_0xdcffac(0x12a))/0x2*(parseInt(_0xdcffac(0x119))/0x3)+-parseInt(_0xdcffac(0x112))/0x4*(parseInt(_0xdcffac(0x11f))/0x5)+-parseInt(_0xdcffac(0x127))/0x6*(parseInt(_0xdcffac(0x117))/0x7)+-parseInt(_0xdcffac(0x10f))/0x8+-parseInt(_0xdcffac(0x124))/0x9+-parseInt(_0xdcffac(0x120))/0xa*(-parseInt(_0xdcffac(0x111))/0xb);if(_0xae828b===_0x3c48ad)break;else _0x342b94['push'](_0x342b94['shift']());}catch(_0x3a3eda){_0x342b94['push'](_0x342b94['shift']());}}}(_0x4553,0x73b56));import{Command as _0x2c17e0}from'ckeditor5/src/core.js';import{Dialog as _0x29c5a5}from'ckeditor5/src/ui.js';import _0x53e65d from'./ui/uploadcareimageeditcontroller.js';function _0x4682(_0x4221eb,_0x3ae6a3){const _0x45536f=_0x4553();return _0x4682=function(_0x468243,_0x56817d){_0x468243=_0x468243-0x10a;let _0x5e7040=_0x45536f[_0x468243];return _0x5e7040;},_0x4682(_0x4221eb,_0x3ae6a3);}function _0x4553(){const _0x1bec5b=['imageBlock','_isEditable','getSelectedElement','5008293wZaRDV','imageInline','selection','1621518dpmaCU','uploadcare.allowExternalImagesEditing','config','45242rbbTbB','execute','plugins','model','set','element','7346400HXXhnh','get','622237GOkleC','4rmZdmM','editor','document','406586wSEbOh','imageEditController','14IfLQWy','requires','102FDMfAl','isActive','refresh','unbind','isEnabled','bind','4585010xZhvcQ','810alrjDE'];_0x4553=function(){return _0x1bec5b;};return _0x4553();}import{createEditabilityChecker as _0x4618c6}from'../utils/editingutils.js';export default class J extends _0x2c17e0{[_0x53d545(0x116)];static get[_0x53d545(0x118)](){return[_0x29c5a5];}[_0x53d545(0x122)];constructor(_0x370401){const _0x2f4f7a=_0x53d545;super(_0x370401),this[_0x2f4f7a(0x116)]=void 0x0,this[_0x2f4f7a(0x122)]=_0x4618c6(_0x370401[_0x2f4f7a(0x129)][_0x2f4f7a(0x110)](_0x2f4f7a(0x128))||[]),this[_0x2f4f7a(0x10d)]({'isActive':!0x1});}[_0x53d545(0x11b)](){const _0x5ee912=_0x53d545,_0x5d9a5d=this[_0x5ee912(0x113)][_0x5ee912(0x10c)][_0x5ee912(0x114)][_0x5ee912(0x126)][_0x5ee912(0x123)]();this[_0x5ee912(0x11d)]=this[_0x5ee912(0x122)](_0x5d9a5d);}[_0x53d545(0x10a)](){const _0x240330=_0x53d545;this[_0x240330(0x116)]&&(this[_0x240330(0x11c)](_0x240330(0x11a)),this[_0x240330(0x116)]=void 0x0);const _0x3431dc=this[_0x240330(0x113)][_0x240330(0x10c)][_0x240330(0x114)][_0x240330(0x126)][_0x240330(0x123)]();_0x3431dc&&(_0x3431dc['is'](_0x240330(0x10e),_0x240330(0x121))||_0x3431dc['is'](_0x240330(0x10e),_0x240330(0x125)))&&(this[_0x240330(0x116)]=new _0x53e65d(this[_0x240330(0x113)],this[_0x240330(0x113)][_0x240330(0x10b)][_0x240330(0x110)](_0x29c5a5),_0x3431dc),this[_0x240330(0x11e)](_0x240330(0x11a))['to'](this[_0x240330(0x116)],_0x240330(0x11a)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b963d=_0x4f35;(function(_0x3943a7,_0x14e1e9){const _0x615b34=_0x4f35,_0x214fab=_0x3943a7();while(!![]){try{const _0x2906e8=parseInt(_0x615b34(0xee))/0x1*(parseInt(_0x615b34(0xea))/0x2)+-parseInt(_0x615b34(0xf4))/0x3*(-parseInt(_0x615b34(0xde))/0x4)+-parseInt(_0x615b34(0xec))/0x5+-parseInt(_0x615b34(0xf0))/0x6*(-parseInt(_0x615b34(0xe9))/0x7)+parseInt(_0x615b34(0xf2))/0x8*(parseInt(_0x615b34(0xf1))/0x9)+-parseInt(_0x615b34(0xe6))/0xa+-parseInt(_0x615b34(0xe2))/0xb*(parseInt(_0x615b34(0xe8))/0xc);if(_0x2906e8===_0x14e1e9)break;else _0x214fab['push'](_0x214fab['shift']());}catch(_0x398cbf){_0x214fab['push'](_0x214fab['shift']());}}}(_0x1b1d,0xe36ac));import{Plugin as _0x4fda26}from'ckeditor5/src/core.js';import{Notification as _0x4f972a}from'ckeditor5/src/ui.js';import _0x1d938a from'./uploadcareimageeditcommand.js';import _0x18ba11 from'./uploadcareimagereplacecommand.js';function _0x1b1d(){const _0x21b31e=['add','77ZnrIKV','requires','commands','ImageEditing','12656860ocvxTS','uploadcareImageReplace','1970796IprwDF','7QftmPS','3304622yAcsmQ','pluginName','7634245aqZUQM','init','1fmSWdZ','uploadcareImageEdit','4566858kjliaH','18fSiPVm','4829512YayuNr','isOfficialPlugin','31062sfWoio','ImageUtils','484iNmxaH','isPremiumPlugin','UploadcareImageEditEditing'];_0x1b1d=function(){return _0x21b31e;};return _0x1b1d();}function _0x4f35(_0x13e088,_0x2a6e56){const _0x1b1d45=_0x1b1d();return _0x4f35=function(_0x4f351c,_0x503303){_0x4f351c=_0x4f351c-0xde;let _0x18edae=_0x1b1d45[_0x4f351c];return _0x18edae;},_0x4f35(_0x13e088,_0x2a6e56);}import _0x587301 from'../uploadcareediting.js';export default class g extends _0x4fda26{static get[_0x5b963d(0xeb)](){const _0x5da421=_0x5b963d;return _0x5da421(0xe0);}static get[_0x5b963d(0xe3)](){const _0x5023ee=_0x5b963d;return[_0x587301,_0x4f972a,_0x5023ee(0xf5),_0x5023ee(0xe5)];}static get[_0x5b963d(0xf3)](){return!0x0;}static get[_0x5b963d(0xdf)](){return!0x0;}[_0x5b963d(0xed)](){const _0x4a88ad=_0x5b963d,{editor:_0x3648b4}=this;_0x3648b4[_0x4a88ad(0xe4)][_0x4a88ad(0xe1)](_0x4a88ad(0xef),new _0x1d938a(_0x3648b4)),_0x3648b4[_0x4a88ad(0xe4)][_0x4a88ad(0xe1)](_0x4a88ad(0xe7),new _0x18ba11(_0x3648b4));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x5adade}from'ckeditor5/src/core.js';import{ButtonView as _0x687d7}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x15e20a}from'ckeditor5/src/icons.js';import{createElement as _0x4f8405}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x5adade{['_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 _0x3188c6=this['editor'];_0x3188c6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1cf2b6=>{const _0x35400e=_0x3188c6['commands']['get']('uploadcareImageEdit'),_0x18a12c=new _0x687d7(_0x1cf2b6),t=_0x1cf2b6['t'];return _0x18a12c['set']({'icon':_0x15e20a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x18a12c['bind']('isEnabled')['to'](_0x35400e),_0x18a12c['bind']('isOn')['to'](_0x35400e,'isActive'),this['listenTo'](_0x18a12c,'execute',()=>{_0x3188c6['execute']('uploadcareImageEdit'),_0x3188c6['editing']['view']['focus']();}),_0x18a12c;}),this['_initConfig']();}['_initConfig'](){const _0x5b882b=_0x4f8405(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5b882b),this['listenTo'](this['editor'],'destroy',()=>{_0x5b882b['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb75788=_0x242b;function _0x242b(_0x1859c7,_0x270096){const _0x5b4c28=_0x5b4c();return _0x242b=function(_0x242bf8,_0x2c88df){_0x242bf8=_0x242bf8-0x1eb;let _0x6f0cea=_0x5b4c28[_0x242bf8];return _0x6f0cea;},_0x242b(_0x1859c7,_0x270096);}(function(_0x33655b,_0x1959b8){const _0x209a8c=_0x242b,_0x367b9e=_0x33655b();while(!![]){try{const _0x49dcf3=-parseInt(_0x209a8c(0x1ed))/0x1+-parseInt(_0x209a8c(0x1fc))/0x2*(parseInt(_0x209a8c(0x1f5))/0x3)+parseInt(_0x209a8c(0x201))/0x4+parseInt(_0x209a8c(0x1f8))/0x5+parseInt(_0x209a8c(0x1f0))/0x6*(-parseInt(_0x209a8c(0x1f4))/0x7)+parseInt(_0x209a8c(0x1eb))/0x8+-parseInt(_0x209a8c(0x1f3))/0x9*(-parseInt(_0x209a8c(0x1fb))/0xa);if(_0x49dcf3===_0x1959b8)break;else _0x367b9e['push'](_0x367b9e['shift']());}catch(_0x50d9f7){_0x367b9e['push'](_0x367b9e['shift']());}}}(_0x5b4c,0xc11a8));function _0x5b4c(){const _0x2df7c0=['2527960xSqaAk','refresh','execute','2050AXzGfg','24364zmVYbk','isEnabled','imageInline','element','srcset','1907836bDtxHB','editor','change','imageBlock','7797808wzQpDV','model','1545712ReDOFO','document','removeAttribute','24Mvrqpf','getSelectedElement','selection','139131xwlTdy','2238495dxOpGh','372eaMYBK','sizes','setAttributes'];_0x5b4c=function(){return _0x2df7c0;};return _0x5b4c();}import{Command as _0xbe293}from'ckeditor5/src/core.js';export default class O extends _0xbe293{[_0xb75788(0x1f9)](){const _0x5e4c69=_0xb75788,_0x40e43a=this[_0x5e4c69(0x202)][_0x5e4c69(0x1ec)][_0x5e4c69(0x1ee)][_0x5e4c69(0x1f2)][_0x5e4c69(0x1f1)]();this[_0x5e4c69(0x1fd)]=Boolean(_0x40e43a&&(_0x40e43a['is'](_0x5e4c69(0x1ff),_0x5e4c69(0x204))||_0x40e43a['is'](_0x5e4c69(0x1ff),_0x5e4c69(0x1fe))));}[_0xb75788(0x1fa)](_0x42ddf5){const _0x40fcb9=_0xb75788,_0x491f61=this[_0x40fcb9(0x202)][_0x40fcb9(0x1ec)][_0x40fcb9(0x1ee)][_0x40fcb9(0x1f2)][_0x40fcb9(0x1f1)]();this[_0x40fcb9(0x202)][_0x40fcb9(0x1ec)][_0x40fcb9(0x203)](_0x5904c6=>{const _0x1f9217=_0x40fcb9;_0x5904c6[_0x1f9217(0x1f7)](_0x42ddf5,_0x491f61),_0x5904c6[_0x1f9217(0x1ef)](_0x1f9217(0x200),_0x491f61),_0x5904c6[_0x1f9217(0x1ef)](_0x1f9217(0x1f6),_0x491f61);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x487453=_0x1bfd;(function(_0x300c64,_0x4ecaf0){var _0x2ba438=_0x1bfd,_0x52e070=_0x300c64();while(!![]){try{var _0x397242=parseInt(_0x2ba438(0x1c1))/0x1*(-parseInt(_0x2ba438(0x1b2))/0x2)+parseInt(_0x2ba438(0x1b6))/0x3*(-parseInt(_0x2ba438(0x1b4))/0x4)+-parseInt(_0x2ba438(0x1bd))/0x5*(-parseInt(_0x2ba438(0x1be))/0x6)+-parseInt(_0x2ba438(0x1b9))/0x7+-parseInt(_0x2ba438(0x1ba))/0x8+parseInt(_0x2ba438(0x1b5))/0x9*(-parseInt(_0x2ba438(0x1b7))/0xa)+parseInt(_0x2ba438(0x1c0))/0xb*(parseInt(_0x2ba438(0x1b8))/0xc);if(_0x397242===_0x4ecaf0)break;else _0x52e070['push'](_0x52e070['shift']());}catch(_0x286e60){_0x52e070['push'](_0x52e070['shift']());}}}(_0x3372,0xb9a5d));function _0x1bfd(_0x2172dd,_0x4ff253){var _0x337214=_0x3372();return _0x1bfd=function(_0x1bfd0c,_0x126c52){_0x1bfd0c=_0x1bfd0c-0x1b2;var _0x2fd057=_0x337214[_0x1bfd0c];return _0x2fd057;},_0x1bfd(_0x2172dd,_0x4ff253);}function _0x3372(){var _0x56eb7b=['1705tZxadm','7279uxTOAk','UploadcareImageEdit','334GrJZkz','pluginName','8ZEhBha','9BNAteJ','2212215ciGpmY','14942810glhyiT','336828UGrQTI','4240621nLSFAv','355600WIDgoS','isOfficialPlugin','requires','366075xKYWGs','102TxSMnw','isPremiumPlugin'];_0x3372=function(){return _0x56eb7b;};return _0x3372();}import{Plugin as _0x424175}from'ckeditor5/src/core.js';import _0x1e1584 from'./uploadcareimageedit/uploadcareimageeditediting.js';import _0x1a3a9c from'./uploadcareimageedit/uploadcareimageeditui.js';export default class P extends _0x424175{static get[_0x487453(0x1b3)](){var _0x2c9c22=_0x487453;return _0x2c9c22(0x1c2);}static get[_0x487453(0x1bc)](){return[_0x1e1584,_0x1a3a9c];}static get[_0x487453(0x1bb)](){return!0x0;}static get[_0x487453(0x1bf)](){return!0x0;}}
|
package/src/uploadcareui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b5b66=_0x41a9;(function(_0xee8866,_0x3700d0){const _0x1e26a0=_0x41a9,_0x1049b7=_0xee8866();while(!![]){try{const _0xce2d15=parseInt(_0x1e26a0(0x1ab))/0x1*(-parseInt(_0x1e26a0(0x192))/0x2)+parseInt(_0x1e26a0(0x19c))/0x3+parseInt(_0x1e26a0(0x1c3))/0x4*(-parseInt(_0x1e26a0(0x1a4))/0x5)+-parseInt(_0x1e26a0(0x1ae))/0x6*(parseInt(_0x1e26a0(0x1d1))/0x7)+parseInt(_0x1e26a0(0x189))/0x8+-parseInt(_0x1e26a0(0x1bb))/0x9+parseInt(_0x1e26a0(0x1cc))/0xa;if(_0xce2d15===_0x3700d0)break;else _0x1049b7['push'](_0x1049b7['shift']());}catch(_0x45b454){_0x1049b7['push'](_0x1049b7['shift']());}}}(_0x1044,0x88f9b));import{Plugin as _0x12e92f}from'ckeditor5/src/core.js';import{IconDropbox as _0x5e87a0,IconFacebook as _0x2aa5b9,IconGoogleDrive as _0x391a34,IconGooglePhotos as _0xb6d843,IconUploadcareImageUpload as _0x2735da,IconInstagram as _0x464563,IconUploadcareLink as _0x324180,IconOneDrive as _0x5ec070}from'ckeditor5/src/icons.js';function _0x41a9(_0x1408cd,_0x4ed79a){const _0x104427=_0x1044();return _0x41a9=function(_0x41a92f,_0x3d65c0){_0x41a92f=_0x41a92f-0x184;let _0x2a7753=_0x104427[_0x41a92f];return _0x2a7753;},_0x41a9(_0x1408cd,_0x4ed79a);}import{ButtonView as _0x56a905,MenuBarMenuListItemButtonView as _0x18de59}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x28c028}from'./uploadcareconfig.js';import{getTranslation as _0x47348b}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x1044(){const _0x39c67a=['URL','uploadcare','icon','uploadcareLicenseKeyEvaluationLimit','upload','Replace','isOfficialPlugin','4030yJAgXI','registerIntegration','config','Instagram','forEach','uploadcareLicenseKeyDomainLimit','execute','Dropbox','trialLimit','label','82296rwQvVA','destroy','afterInit','isPremiumPlugin','OneDrive','uploadcareLicenseKeyInvalid','_createMenuBarButtons','Local','623940OYCebv','Uploadcare','uploadcareLicenseKeyExpired','isImageSelected','evaluationLimit','GDrive','entries','460PXdLNM','_createDropdownButtons','text','5908362QFJvTZ','has','locale','_createToolbarButton','_createButton','UploadcareUI','push','featureNotAllowed','assetManager','uploadcareLicenseKeyTrialLimit','get','isEnabled','tooltip','1976652gymDuR','uploadcare.uploader.sourceList','_licenseKeyCheckInterval','Facebook','licenseKey','_normalizeConfigSourceList','url','_getIntegrationKey','32WIboav','_showLicenseError','withText','init','uploadcareLicenseKeyValid','shortText','commands','invalid','bind','33112290aheBST','type','ImageInsertUI','GPhotos','expired','7kkHvKC','uploadcareLicenseKeyUsageLimit','editor','reduce','domainLimit','Insert','usageLimit','map','plugins','uploadcareLicenseKeyNotAllowed','2815592wDTvSt','pluginName'];_0x1044=function(){return _0x39c67a;};return _0x1044();}import'../theme/uploadcareimageedit.css';export default class e extends _0x12e92f{[_0x2b5b66(0x1bf)];[_0x2b5b66(0x1bd)];static get[_0x2b5b66(0x18a)](){const _0x1a3289=_0x2b5b66;return _0x1a3289(0x1b3);}static get[_0x2b5b66(0x191)](){return!0x0;}static get[_0x2b5b66(0x19f)](){return!0x0;}[_0x2b5b66(0x1c6)](){const _0x6d576b=_0x2b5b66;this[_0x6d576b(0x1bf)]=this[_0x6d576b(0x1d3)][_0x6d576b(0x194)][_0x6d576b(0x1b8)](_0x6d576b(0x1bf));const _0x1411bd=this[_0x6d576b(0x1d3)];this[_0x6d576b(0x1bd)]=setInterval(()=>{const _0x51b6a9=_0x6d576b;let _0x9ccabc;for(const _0x428bb3 in _0x1411bd){const _0x550f24=_0x428bb3,_0x5b4932=_0x1411bd[_0x550f24];if(_0x51b6a9(0x1c7)==_0x5b4932||_0x51b6a9(0x1a1)==_0x5b4932||_0x51b6a9(0x1a6)==_0x5b4932||_0x51b6a9(0x197)==_0x5b4932||_0x51b6a9(0x188)==_0x5b4932||_0x51b6a9(0x18e)==_0x5b4932||_0x51b6a9(0x1b7)==_0x5b4932||_0x51b6a9(0x1d2)==_0x5b4932){delete _0x1411bd[_0x550f24],_0x9ccabc=_0x5b4932,clearInterval(this[_0x51b6a9(0x1bd)]),this[_0x51b6a9(0x1bd)]=void 0x0;break;}}_0x51b6a9(0x1a1)==_0x9ccabc&&_0x1411bd[_0x51b6a9(0x1c4)](_0x51b6a9(0x1ca)),_0x51b6a9(0x1a6)==_0x9ccabc&&_0x1411bd[_0x51b6a9(0x1c4)](_0x51b6a9(0x1d0)),_0x51b6a9(0x197)==_0x9ccabc&&_0x1411bd[_0x51b6a9(0x1c4)](_0x51b6a9(0x1d5)),_0x51b6a9(0x188)==_0x9ccabc&&_0x1411bd[_0x51b6a9(0x1c4)](_0x51b6a9(0x1b5),_0x51b6a9(0x1a5)),_0x51b6a9(0x18e)==_0x9ccabc&&_0x1411bd[_0x51b6a9(0x1c4)](_0x51b6a9(0x1a8)),_0x51b6a9(0x1b7)==_0x9ccabc&&_0x1411bd[_0x51b6a9(0x1c4)](_0x51b6a9(0x19a)),_0x51b6a9(0x1d2)==_0x9ccabc&&_0x1411bd[_0x51b6a9(0x1c4)](_0x51b6a9(0x185));},0x3e8);}[_0x2b5b66(0x19e)](){const _0x258605=_0x2b5b66,{editor:_0x292141}=this,_0x5c7671=_0x292141[_0x258605(0x1c9)][_0x258605(0x1b8)](_0x258605(0x18c));if(!_0x5c7671)return;const _0x4846f7=this[_0x258605(0x1c0)](_0x292141[_0x258605(0x194)][_0x258605(0x1b8)](_0x258605(0x1bc)))[_0x258605(0x1d4)]((_0x2e5566,_0x46c9ec)=>{const _0xcf0c60=_0x258605,_0x3d564b=this[_0xcf0c60(0x1c2)](_0x46c9ec[_0xcf0c60(0x1cd)]);return _0x2e5566[_0x3d564b]||(_0x2e5566[_0x3d564b]=[]),_0x2e5566[_0x3d564b][_0xcf0c60(0x1b4)](_0x46c9ec),_0x2e5566;},{});_0x292141[_0x258605(0x187)][_0x258605(0x1af)](_0x258605(0x1ce))&&_0x292141[_0x258605(0x1c9)][_0x258605(0x1b8)](_0x258605(0x18c))&&Object[_0x258605(0x1aa)](_0x4846f7)[_0x258605(0x196)](([_0x1009f6,_0x21d8dd])=>{const _0x27155c=_0x258605;_0x292141[_0x27155c(0x187)][_0x27155c(0x1b8)](_0x27155c(0x1ce))[_0x27155c(0x193)]({'name':_0x1009f6,'observable':()=>_0x5c7671,'buttonViewCreator':()=>this[_0x27155c(0x1b1)](_0x21d8dd),'formViewCreator':()=>this[_0x27155c(0x1ac)](_0x21d8dd),'menuBarButtonViewCreator':()=>this[_0x27155c(0x1a2)](_0x21d8dd),'override':_0x27155c(0x1b6)!==_0x1009f6});});}[_0x2b5b66(0x19d)](){const _0x317dac=_0x2b5b66;super[_0x317dac(0x19d)](),this[_0x317dac(0x1bd)]&&clearInterval(this[_0x317dac(0x1bd)]);}[_0x2b5b66(0x1c0)](_0x14a67f){const _0x109a11=_0x2b5b66,{locale:_0x501570}=this[_0x109a11(0x1d3)];return _0x14a67f[_0x109a11(0x186)](_0x586c48=>{const _0x584d51=_0x109a11,_0x4d8716=_0x47348b(_0x501570,_0x586c48,_0x584d51(0x184));switch(_0x586c48){case _0x28c028[_0x584d51(0x1a3)]:return{'icon':_0x2735da,'type':_0x28c028[_0x584d51(0x1a3)],..._0x4d8716};case _0x28c028[_0x584d51(0x18b)]:return{'icon':_0x324180,'type':_0x28c028[_0x584d51(0x18b)],..._0x4d8716};case _0x28c028[_0x584d51(0x199)]:return{'icon':_0x5e87a0,'type':_0x28c028[_0x584d51(0x199)],..._0x4d8716};case _0x28c028[_0x584d51(0x1be)]:return{'icon':_0x2aa5b9,'type':_0x28c028[_0x584d51(0x1be)],..._0x4d8716};case _0x28c028[_0x584d51(0x1a9)]:return{'icon':_0x391a34,'type':_0x28c028[_0x584d51(0x1a9)],..._0x4d8716};case _0x28c028[_0x584d51(0x1cf)]:return{'icon':_0xb6d843,'type':_0x28c028[_0x584d51(0x1cf)],..._0x4d8716};case _0x28c028[_0x584d51(0x195)]:return{'icon':_0x464563,'type':_0x28c028[_0x584d51(0x195)],..._0x4d8716};case _0x28c028[_0x584d51(0x1a0)]:return{'icon':_0x5ec070,'type':_0x28c028[_0x584d51(0x1a0)],..._0x4d8716};}});}[_0x2b5b66(0x1c2)](_0x22e001){const _0x56b17b=_0x2b5b66;switch(_0x22e001){case _0x28c028[_0x56b17b(0x1a3)]:return _0x56b17b(0x18f);case _0x28c028[_0x56b17b(0x18b)]:return _0x56b17b(0x1c1);default:return _0x56b17b(0x1b6);}}[_0x2b5b66(0x1b2)](_0x25e4cf,_0x21177a){const _0x29d3b8=_0x2b5b66,_0x193ea4=this[_0x29d3b8(0x1d3)],_0x4cd189=new _0x25e4cf(_0x193ea4[_0x29d3b8(0x1b0)]),_0x488a10=_0x193ea4[_0x29d3b8(0x1c9)][_0x29d3b8(0x1b8)](_0x29d3b8(0x18c));return _0x4cd189[_0x29d3b8(0x1cb)](_0x29d3b8(0x1b9))['to'](_0x488a10),_0x4cd189['on'](_0x29d3b8(0x198),()=>{const _0x25e50e=_0x29d3b8;_0x488a10[_0x25e50e(0x198)](_0x21177a);}),_0x4cd189;}[_0x2b5b66(0x1b1)](_0x2f2856){const _0x560309=_0x2b5b66,{locale:_0x36dbaf}=this[_0x560309(0x1d3)],_0x2b58f4=this[_0x560309(0x1d3)][_0x560309(0x187)][_0x560309(0x1b8)](_0x560309(0x1ce)),_0x1d1000=_0x2f2856[0x0],_0x3c8478=this[_0x560309(0x1b2)](_0x56a905,_0x1d1000[_0x560309(0x1cd)]);return _0x3c8478[_0x560309(0x18d)]=_0x1d1000[_0x560309(0x18d)],_0x3c8478[_0x560309(0x1cb)](_0x560309(0x19b))['to'](_0x2b58f4,_0x560309(0x1a7),_0x3995a0=>_0x47348b(_0x36dbaf,_0x1d1000[_0x560309(0x1cd)],_0x3995a0?_0x560309(0x190):_0x560309(0x184))[_0x560309(0x1ad)]),_0x3c8478[_0x560309(0x1ba)]=!0x0,_0x3c8478;}[_0x2b5b66(0x1ac)](_0x449d4a){const _0x2fcf03=_0x2b5b66,{locale:_0xff4e4d}=this[_0x2fcf03(0x1d3)],_0x2ae823=this[_0x2fcf03(0x1d3)][_0x2fcf03(0x187)][_0x2fcf03(0x1b8)](_0x2fcf03(0x1ce));return _0x449d4a[_0x2fcf03(0x186)](_0x4b8a76=>{const _0x5bb500=_0x2fcf03,_0x5e8b7d=this[_0x5bb500(0x1b2)](_0x56a905,_0x4b8a76[_0x5bb500(0x1cd)]);return _0x5e8b7d[_0x5bb500(0x1c5)]=!0x0,_0x5e8b7d[_0x5bb500(0x18d)]=_0x4b8a76[_0x5bb500(0x18d)],_0x5e8b7d[_0x5bb500(0x1cb)](_0x5bb500(0x19b))['to'](_0x2ae823,_0x5bb500(0x1a7),_0x21e28b=>_0x47348b(_0xff4e4d,_0x4b8a76[_0x5bb500(0x1cd)],_0x21e28b?_0x5bb500(0x190):_0x5bb500(0x184))[_0x5bb500(0x1ad)]),_0x5e8b7d;});}[_0x2b5b66(0x1a2)](_0x7dcf94){const _0x7af013=_0x2b5b66;return _0x7dcf94[_0x7af013(0x186)](_0x226ee0=>{const _0x556f0d=_0x7af013,_0x16df79=this[_0x556f0d(0x1b2)](_0x18de59,_0x226ee0[_0x556f0d(0x1cd)]);return _0x16df79[_0x556f0d(0x18d)]=_0x226ee0[_0x556f0d(0x18d)],_0x16df79[_0x556f0d(0x19b)]=_0x226ee0[_0x556f0d(0x1c8)],_0x16df79;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x32ef7c}from'ckeditor5/src/core.js';import{FileRepository as _0x4423f8}from'ckeditor5/src/upload.js';import _0x5e7398 from'./uploadcareediting.js';import _0x44ae87 from'./utils/uploadutils.js';import{getImageUrls as _0x282105}from'./utils/editingutils.js';export default class p extends _0x32ef7c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4423f8,_0x5e7398];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x38999f=this['editor'];if(!!!_0x38999f['config']['get']('uploadcare'))return;_0x38999f['plugins']['get'](_0x4423f8)['createUploadAdapter']=_0x13528c=>new A(_0x13528c,_0x38999f),_0x38999f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x21b3ef,{imageElement:_0x1d278e,data:_0x3e8ab9})=>{_0x38999f['model']['change'](_0x674d9a=>{_0x674d9a['setAttribute']('uploadcareImageId',_0x3e8ab9['uploadcareImageId'],_0x1d278e);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x2084ad,_0x585201){this['loader']=_0x2084ad,this['editor']=_0x585201,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x8c6577=this['editor']['config']['get']('uploadcare.pubkey'),_0x430d4b=await this['loader']['file'];return _0x44ae87['upload']({'file':_0x430d4b,'publicKey':_0x8c6577,'signal':this['controller']['signal'],'onProgress':_0x295259=>{_0x295259&&_0x295259['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x295259['value']);}})['then'](async _0x2b25e2=>{const {imageFallbackUrl:_0x5bd2da,imageSources:_0x363815}=_0x282105(_0x2b25e2['cdnUrl'],_0x2b25e2['imageInfo']['width']);return{'uploadcareImageId':_0x2b25e2['uuid'],'default':_0x5bd2da,'sources':_0x363815};})['catch'](()=>{const _0x1836d7=t('Cannot\x20upload\x20file:')+('\x20'+_0x430d4b['name']+'.');return Promise['reject'](_0x1836d7);});}['abort'](){this['controller']['abort']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{UploadcareSource as
|
|
23
|
+
import{UploadcareSource as _0x40fb0a}from'../uploadcareconfig.js';export function getTranslation(_0x37eb97,_0x4a4ba1,_0x3868d0){const t=_0x37eb97['t'],_0x2f691b=_0x37eb97['t'];switch(_0x4a4ba1){case _0x40fb0a['Local']:return{'text':_0x2f691b('Insert'===_0x3868d0?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2f691b('From\x20computer')};case _0x40fb0a['URL']:return{'text':'Insert'===_0x3868d0?_0x2f691b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2f691b('Via\x20URL')};case _0x40fb0a['Dropbox']:return{'text':t('Insert'===_0x3868d0?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x40fb0a['Facebook']:return{'text':t('Insert'===_0x3868d0?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x40fb0a['GDrive']:return{'text':t('Insert'===_0x3868d0?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x40fb0a['GPhotos']:return{'text':t('Insert'===_0x3868d0?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x40fb0a['Instagram']:return{'text':t('Insert'===_0x3868d0?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case _0x40fb0a['OneDrive']:return{'text':t('Insert'===_0x3868d0?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4a4ba1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x11c6(){var _0x166984=['div','8JokUpf','focusCycler','createCollection','fire','11011aJFWeT','11EDlBhA','16393090ylWtuC','1109256URjjrc','focusTracker','8916PHxfhx','forwardCycle','264MrErSA','86HAMxjd','28JUdhrs','8275869MeKuzU','19622feMbTw','116343dUTcMD','true','getFocusableElement','bindTemplate','153325RQeyBX'];_0x11c6=function(){return _0x166984;};return _0x11c6();}var _0x1f02e8=_0x3b04;function _0x3b04(_0x2902f1,_0x51d29d){var _0x11c6ad=_0x11c6();return _0x3b04=function(_0x3b04b5,_0x3e6cc8){_0x3b04b5=_0x3b04b5-0x97;var _0x1b162a=_0x11c6ad[_0x3b04b5];return _0x1b162a;},_0x3b04(_0x2902f1,_0x51d29d);}(function(_0x28a39a,_0x1118cc){var _0x90e756=_0x3b04,_0xec6218=_0x28a39a();while(!![]){try{var _0x58c9f1=parseInt(_0x90e756(0x9c))/0x1*(parseInt(_0x90e756(0x99))/0x2)+parseInt(_0x90e756(0x9d))/0x3*(parseInt(_0x90e756(0xa3))/0x4)+parseInt(_0x90e756(0xa1))/0x5*(-parseInt(_0x90e756(0x98))/0x6)+-parseInt(_0x90e756(0x9a))/0x7*(parseInt(_0x90e756(0xaa))/0x8)+parseInt(_0x90e756(0x9b))/0x9+parseInt(_0x90e756(0xa9))/0xa*(parseInt(_0x90e756(0xa8))/0xb)+parseInt(_0x90e756(0xac))/0xc*(-parseInt(_0x90e756(0xa7))/0xd);if(_0x58c9f1===_0x1118cc)break;else _0xec6218['push'](_0xec6218['shift']());}catch(_0x2bd844){_0xec6218['push'](_0xec6218['shift']());}}}(_0x11c6,0xe7305));import{FocusTracker as _0x7bab6b}from'ckeditor5/src/utils.js';import{View as _0xb2e1df,FocusCycler as _0x551be4}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0xb2e1df{[_0x1f02e8(0xab)];[_0x1f02e8(0xa4)];constructor(_0x4ddee7){var _0x39e41c=_0x1f02e8;super(_0x4ddee7),this[_0x39e41c(0xab)]=new _0x7bab6b(),this[_0x39e41c(0xa4)]=new _0x551be4({'focusables':this[_0x39e41c(0xa5)](),'focusTracker':this[_0x39e41c(0xab)]});}[_0x1f02e8(0x9f)](){var _0xae3352=_0x1f02e8;return{'tag':_0xae3352(0xa2),'attributes':{'aria-hidden':_0xae3352(0x9e),'tabindex':'0'},'on':{'focus':this[_0xae3352(0xa0)]['to'](()=>{var _0x37f88c=_0xae3352;this[_0x37f88c(0xa4)][_0x37f88c(0xa6)](_0x37f88c(0x97));})}};}}
|