@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251206.0 → 0.0.0-nightly-20251208.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x253a3b,View as _0x3f88db}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3f88db{constructor(_0x4c3d49){super(_0x4c3d49);const t=_0x4c3d49['t'],_0x27123e=this['bindTemplate'],_0x33dcf7=new _0x253a3b();_0x33dcf7['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':[_0x33dcf7,{'text':_0x27123e['to']('imageUploadProgress',_0x29de8d=>t('Loading\x20image...')+'\x20('+(_0x29de8d||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 _0x8cf5c=_0x2aca;(function(_0x10a6a6,_0x5f0f85){const _0x5a820e=_0x2aca,_0x1550dd=_0x10a6a6();while(!![]){try{const _0x4b677c=parseInt(_0x5a820e(0xc8))/0x1+-parseInt(_0x5a820e(0xe7))/0x2*(-parseInt(_0x5a820e(0xe0))/0x3)+parseInt(_0x5a820e(0xdf))/0x4*(parseInt(_0x5a820e(0xcd))/0x5)+-parseInt(_0x5a820e(0xd0))/0x6+parseInt(_0x5a820e(0xbc))/0x7*(-parseInt(_0x5a820e(0xe1))/0x8)+parseInt(_0x5a820e(0xc4))/0x9+-parseInt(_0x5a820e(0xdb))/0xa*(-parseInt(_0x5a820e(0xe9))/0xb);if(_0x4b677c===_0x5f0f85)break;else _0x1550dd['push'](_0x1550dd['shift']());}catch(_0x3d4a92){_0x1550dd['push'](_0x1550dd['shift']());}}}(_0x105a,0x5d3a6));import{View as _0x5f1ccd}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4fa364}from'./uploadcareimageeditformloadingview.js';function _0x105a(){const _0x29b17c=['ready','focus','_loadingView','div','fire','_focusableView','7210WnirLQ','observe','target','ck-uploadcare-form','toLowerCase','addEventListener','querySelector','ck-reset_all-excluded','2950506CZsICH','add','getFocusableElement','_items','138537mfqAxx','createCollection','uploading','addMany','_addErrorViewListeners','5hINXrT','addedNodes','_setView','4237002XgMmnC','_editingView','change:status','error','filter','nodeName','once','render','element','status','uc-cloud-image-editor','40AshUIA','_addUploadcareImageEditorListeners','length','detail','978412xKNpfF','8799TPXHmH','3488SQQyFW','retry','cancel','_errorView','apply','clear','302HmLhBp','setTemplate','1053943UUZGUQ','cdnUrl','_waitForImageEditorComponent','set','disconnect'];_0x105a=function(){return _0x29b17c;};return _0x105a();}import{UploadcareImageEditFormErrorView as _0x3d30e1}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x19cde7}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xac7a02}from'../../utils/dialogfocusmanagerview.js';function _0x2aca(_0x209257,_0x26f978){const _0x105a65=_0x105a();return _0x2aca=function(_0x2aca98,_0x1c3b52){_0x2aca98=_0x2aca98-0xb5;let _0x503583=_0x105a65[_0x2aca98];return _0x503583;},_0x2aca(_0x209257,_0x26f978);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0xac7a02{[_0x8cf5c(0xc7)];[_0x8cf5c(0xb8)];[_0x8cf5c(0xe4)];[_0x8cf5c(0xd1)];[_0x8cf5c(0xbb)];constructor(_0x335485,_0x456946,_0x4bdbc2){const _0x234426=_0x8cf5c;super(_0x335485),this[_0x234426(0xc7)]=this[_0x234426(0xc9)](),this[_0x234426(0xb8)]=new _0x4fa364(_0x335485),this[_0x234426(0xe4)]=new _0x3d30e1(_0x335485),this[_0x234426(0xd1)]=new _0x19cde7(_0x335485,_0x4bdbc2),this[_0x234426(0xbb)]=new _0x5f1ccd(_0x335485),this[_0x234426(0xbb)][_0x234426(0xe8)](this[_0x234426(0xc6)]()),this[_0x234426(0xec)](_0x234426(0xd9),_0x456946),this[_0x234426(0xe8)]({'tag':_0x234426(0xb9),'attributes':{'class':['ck',_0x234426(0xc3),_0x234426(0xbf)],'tabindex':'-1'},'children':this[_0x234426(0xc7)]}),this[_0x234426(0xcf)](),this[_0x234426(0xd6)](_0x234426(0xd7),()=>{const _0x1615d3=_0x234426;this[_0x1615d3(0xeb)](this[_0x1615d3(0xd8)],_0x501c27=>{const _0xa75660=_0x1615d3;this[_0xa75660(0xdc)](_0x501c27);});}),this['on'](_0x234426(0xd2),()=>{const _0x116ada=_0x234426;this[_0x116ada(0xcf)]();}),this[_0x234426(0xcc)]();}[_0x8cf5c(0xb7)](){const _0x2c66c6=_0x8cf5c;this[_0x2c66c6(0xd8)][_0x2c66c6(0xb7)]();}[_0x8cf5c(0xcf)](){const _0x29a8f5=_0x8cf5c;switch(this[_0x29a8f5(0xc7)][_0x29a8f5(0xe6)](),this[_0x29a8f5(0xd9)]){case _0x29a8f5(0xca):this[_0x29a8f5(0xc7)][_0x29a8f5(0xc5)](this[_0x29a8f5(0xb8)]);break;case _0x29a8f5(0xd3):this[_0x29a8f5(0xc7)][_0x29a8f5(0xc5)](this[_0x29a8f5(0xe4)]);break;case _0x29a8f5(0xb6):this[_0x29a8f5(0xc7)][_0x29a8f5(0xcb)]([this[_0x29a8f5(0xd1)],this[_0x29a8f5(0xbb)]]);}}[_0x8cf5c(0xeb)](_0x204a92,_0x44c1bb){const _0x58a698=_0x8cf5c,_0x447176=_0x58a698(0xda),_0x89a76f=_0x204a92[_0x58a698(0xc2)](_0x447176);if(_0x89a76f)return _0x44c1bb(_0x89a76f);const _0xc9451d=new MutationObserver(_0x194683=>{const _0x3c51bd=_0x58a698,_0x474589=_0x194683[_0x3c51bd(0xd4)](_0x531a91=>_0x531a91[_0x3c51bd(0xbe)]===_0x204a92&&_0x531a91[_0x3c51bd(0xce)][_0x3c51bd(0xdd)]>0x0&&_0x531a91[_0x3c51bd(0xce)][0x0][_0x3c51bd(0xd5)][_0x3c51bd(0xc0)]()===_0x447176);_0x474589[_0x3c51bd(0xdd)]&&(_0xc9451d[_0x3c51bd(0xb5)](),_0x44c1bb(_0x474589[0x0][_0x3c51bd(0xce)][0x0]));});_0xc9451d[_0x58a698(0xbd)](_0x204a92,{'childList':!0x0,'subtree':!0x0});}[_0x8cf5c(0xdc)](_0x227f4e){const _0x1eb4af=_0x8cf5c;_0x227f4e[_0x1eb4af(0xc1)](_0x1eb4af(0xe5),_0x4daca8=>{const _0x26ef4b=_0x1eb4af;this[_0x26ef4b(0xba)](_0x26ef4b(0xe5),{'imageSrc':_0x4daca8[_0x26ef4b(0xde)][_0x26ef4b(0xea)]});}),_0x227f4e[_0x1eb4af(0xc1)](_0x1eb4af(0xe3),()=>{const _0x71bc0d=_0x1eb4af;this[_0x71bc0d(0xba)](_0x71bc0d(0xe3));});}[_0x8cf5c(0xcc)](){const _0x5b1cbf=_0x8cf5c;this[_0x5b1cbf(0xe4)]['on'](_0x5b1cbf(0xe2),()=>{const _0x336962=_0x5b1cbf;this[_0x336962(0xba)](_0x336962(0xe2));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c543f=_0x47ba;function _0x47ba(_0x4b2557,_0x23bf5c){const _0x2ea06c=_0x2ea0();return _0x47ba=function(_0x47ba4d,_0x54f384){_0x47ba4d=_0x47ba4d-0x115;let _0x19b9ce=_0x2ea06c[_0x47ba4d];return _0x19b9ce;},_0x47ba(_0x4b2557,_0x23bf5c);}(function(_0x3970aa,_0x589045){const _0x1b269d=_0x47ba,_0x229477=_0x3970aa();while(!![]){try{const _0x370ac5=-parseInt(_0x1b269d(0x134))/0x1*(-parseInt(_0x1b269d(0x121))/0x2)+-parseInt(_0x1b269d(0x11d))/0x3+parseInt(_0x1b269d(0x116))/0x4+parseInt(_0x1b269d(0x127))/0x5*(parseInt(_0x1b269d(0x123))/0x6)+-parseInt(_0x1b269d(0x118))/0x7*(parseInt(_0x1b269d(0x11e))/0x8)+parseInt(_0x1b269d(0x12a))/0x9+-parseInt(_0x1b269d(0x130))/0xa*(-parseInt(_0x1b269d(0x12c))/0xb);if(_0x370ac5===_0x589045)break;else _0x229477['push'](_0x229477['shift']());}catch(_0x30cb6e){_0x229477['push'](_0x229477['shift']());}}}(_0x2ea0,0xcbdb9));import{Command as _0xf339f5}from'ckeditor5/src/core.js';import{Dialog as _0x59cbe5}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x41846a}from'./ui/uploadcareimageeditcontroller.js';function _0x2ea0(){const _0x375414=['685165JXmyOA','isActive','config','5391153YyDXgL','plugins','196724zGpQrM','selection','imageEditController','element','460ZhADvy','model','get','uploadcare.allowExternalImagesEditing','3DzCgxp','isEnabled','refresh','2279132FOrzPh','_isEditable','1199891AhqzQR','getSelectedElement','bind','execute','imageInline','4355202YAOgZu','32MlLTWD','requires','document','197172qIfeXL','set','30zBiDCo','unbind','editor','imageBlock'];_0x2ea0=function(){return _0x375414;};return _0x2ea0();}import{createEditabilityChecker as _0x540877}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xf339f5{[_0x5c543f(0x12e)];static get[_0x5c543f(0x11f)](){return[_0x59cbe5];}[_0x5c543f(0x117)];constructor(_0x1cd19e){const _0x165b8a=_0x5c543f;super(_0x1cd19e),this[_0x165b8a(0x12e)]=void 0x0,this[_0x165b8a(0x117)]=_0x540877(_0x1cd19e[_0x165b8a(0x129)][_0x165b8a(0x132)](_0x165b8a(0x133))||[]),this[_0x165b8a(0x122)]({'isActive':!0x1});}[_0x5c543f(0x115)](){const _0x4859fb=_0x5c543f,_0x27b2be=this[_0x4859fb(0x125)][_0x4859fb(0x131)][_0x4859fb(0x120)][_0x4859fb(0x12d)][_0x4859fb(0x119)]();this[_0x4859fb(0x135)]=this[_0x4859fb(0x117)](_0x27b2be);}[_0x5c543f(0x11b)](){const _0x14e456=_0x5c543f;this[_0x14e456(0x12e)]&&(this[_0x14e456(0x124)](_0x14e456(0x128)),this[_0x14e456(0x12e)]=void 0x0);const _0x3ccde8=this[_0x14e456(0x125)][_0x14e456(0x131)][_0x14e456(0x120)][_0x14e456(0x12d)][_0x14e456(0x119)]();_0x3ccde8&&(_0x3ccde8['is'](_0x14e456(0x12f),_0x14e456(0x126))||_0x3ccde8['is'](_0x14e456(0x12f),_0x14e456(0x11c)))&&(this[_0x14e456(0x12e)]=new _0x41846a(this[_0x14e456(0x125)],this[_0x14e456(0x125)][_0x14e456(0x12b)][_0x14e456(0x132)](_0x59cbe5),_0x3ccde8),this[_0x14e456(0x11a)](_0x14e456(0x128))['to'](this[_0x14e456(0x12e)],_0x14e456(0x128)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1ba6(_0x27e83c,_0x5ef488){const _0x351fb5=_0x351f();return _0x1ba6=function(_0x1ba65e,_0x3207c7){_0x1ba65e=_0x1ba65e-0x1a8;let _0xf1a4f0=_0x351fb5[_0x1ba65e];return _0xf1a4f0;},_0x1ba6(_0x27e83c,_0x5ef488);}function _0x351f(){const _0x3766f7=['ImageUtils','requires','ImageEditing','add','init','commands','isPremiumPlugin','pluginName','9223911DlIoUL','5489640IGBXwv','326277OMTacE','726192MTMdpc','uploadcareImageEdit','927204RhUgud','isOfficialPlugin','5506ZwQlAT','21WSqvHC','240RhaOrA','UploadcareImageEditEditing','579515AJvGvn','uploadcareImageReplace'];_0x351f=function(){return _0x3766f7;};return _0x351f();}const _0x4e81c8=_0x1ba6;(function(_0x3ec565,_0x418439){const _0x2e974d=_0x1ba6,_0x3d5be6=_0x3ec565();while(!![]){try{const _0x1bf850=parseInt(_0x2e974d(0x1b3))/0x1*(parseInt(_0x2e974d(0x1b5))/0x2)+parseInt(_0x2e974d(0x1ae))/0x3+-parseInt(_0x2e974d(0x1af))/0x4+-parseInt(_0x2e974d(0x1b7))/0x5+-parseInt(_0x2e974d(0x1b1))/0x6*(parseInt(_0x2e974d(0x1b4))/0x7)+-parseInt(_0x2e974d(0x1ad))/0x8+parseInt(_0x2e974d(0x1ac))/0x9;if(_0x1bf850===_0x418439)break;else _0x3d5be6['push'](_0x3d5be6['shift']());}catch(_0x2cd9ff){_0x3d5be6['push'](_0x3d5be6['shift']());}}}(_0x351f,0x54bdc));import{Plugin as _0x1a33b5}from'ckeditor5/src/core.js';import{Notification as _0x5669ad}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x24e918}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x51f2fc}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x21f0e7}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1a33b5{static get[_0x4e81c8(0x1ab)](){const _0x38d0f3=_0x4e81c8;return _0x38d0f3(0x1b6);}static get[_0x4e81c8(0x1ba)](){const _0x27f440=_0x4e81c8;return[_0x21f0e7,_0x5669ad,_0x27f440(0x1b9),_0x27f440(0x1bb)];}static get[_0x4e81c8(0x1b2)](){return!0x0;}static get[_0x4e81c8(0x1aa)](){return!0x0;}[_0x4e81c8(0x1a8)](){const _0x4ba7a0=_0x4e81c8,{editor:_0x2a95ef}=this;_0x2a95ef[_0x4ba7a0(0x1a9)][_0x4ba7a0(0x1bc)](_0x4ba7a0(0x1b0),new _0x24e918(_0x2a95ef)),_0x2a95ef[_0x4ba7a0(0x1a9)][_0x4ba7a0(0x1bc)](_0x4ba7a0(0x1b8),new _0x51f2fc(_0x2a95ef));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x537c37}from'ckeditor5/src/core.js';import{ButtonView as _0x4e22b5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x31b7ca}from'ckeditor5/src/icons.js';import{createElement as _0x5beac4}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x537c37{['_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 _0x5a3eae=this['editor'];_0x5a3eae['ui']['componentFactory']['add']('uploadcareImageEdit',_0x258ce9=>{const _0x335f5e=_0x5a3eae['commands']['get']('uploadcareImageEdit'),_0x2a2fe5=new _0x4e22b5(_0x258ce9),t=_0x258ce9['t'];return _0x2a2fe5['set']({'icon':_0x31b7ca,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2a2fe5['bind']('isEnabled')['to'](_0x335f5e),_0x2a2fe5['bind']('isOn')['to'](_0x335f5e,'isActive'),this['listenTo'](_0x2a2fe5,'execute',()=>{_0x5a3eae['execute']('uploadcareImageEdit'),_0x5a3eae['editing']['view']['focus']();}),_0x2a2fe5;}),this['_initConfig']();}['_initConfig'](){const _0x36bbe7=_0x5beac4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x36bbe7),this['listenTo'](this['editor'],'destroy',()=>{_0x36bbe7['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3706(_0x4b4d14,_0x148f36){var _0x3951d8=_0x3951();return _0x3706=function(_0x37062d,_0x192985){_0x37062d=_0x37062d-0x16f;var _0x7696f4=_0x3951d8[_0x37062d];return _0x7696f4;},_0x3706(_0x4b4d14,_0x148f36);}var _0x27a09e=_0x3706;(function(_0x31d14c,_0x34487c){var _0x3e91da=_0x3706,_0x2f2eed=_0x31d14c();while(!![]){try{var _0x12f45b=-parseInt(_0x3e91da(0x17c))/0x1*(parseInt(_0x3e91da(0x172))/0x2)+-parseInt(_0x3e91da(0x16f))/0x3+parseInt(_0x3e91da(0x171))/0x4+-parseInt(_0x3e91da(0x175))/0x5*(parseInt(_0x3e91da(0x17d))/0x6)+parseInt(_0x3e91da(0x17e))/0x7+parseInt(_0x3e91da(0x17f))/0x8+parseInt(_0x3e91da(0x178))/0x9;if(_0x12f45b===_0x34487c)break;else _0x2f2eed['push'](_0x2f2eed['shift']());}catch(_0x2831ce){_0x2f2eed['push'](_0x2f2eed['shift']());}}}(_0x3951,0x7ba18));import{FocusTracker as _0x2eea2f}from'ckeditor5/src/utils.js';import{View as _0x469884,FocusCycler as _0x3fb544}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x469884{[_0x27a09e(0x177)];[_0x27a09e(0x17a)];constructor(_0xa4904d){var _0x11c3c6=_0x27a09e;super(_0xa4904d),this[_0x11c3c6(0x177)]=new _0x2eea2f(),this[_0x11c3c6(0x17a)]=new _0x3fb544({'focusables':this[_0x11c3c6(0x173)](),'focusTracker':this[_0x11c3c6(0x177)]});}[_0x27a09e(0x170)](){var _0x3eb236=_0x27a09e;return{'tag':_0x3eb236(0x180),'attributes':{'aria-hidden':_0x3eb236(0x179),'tabindex':'0'},'on':{'focus':this[_0x3eb236(0x176)]['to'](()=>{var _0x5d6c38=_0x3eb236;this[_0x5d6c38(0x17a)][_0x5d6c38(0x17b)](_0x5d6c38(0x174));})}};}}function _0x3951(){var _0x26b9c9=['div','985518dbQKXK','getFocusableElement','3531308VwSzpo','1893026EbHOTN','createCollection','forwardCycle','5yvmOTh','bindTemplate','focusTracker','4980906uEZBFL','true','focusCycler','fire','1XurECg','77316fPJVKA','1548988rJRjlj','1094016vqdwWo'];_0x3951=function(){return _0x26b9c9;};return _0x3951();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3e7c(){const _0x3be068=['join','viewToDom','16wfyfNt','removeStyle','function','4530FXgTpD','imageBlock','imageInline','getAttribute','image-processing','(max-width:\x20','view','2541eTwdcO','/-/resize/','ImageUtils','2052wVeXGd','width','removeClass','917513QUptfy','mapper','stopListening','height','editing','x/\x20','get','image/webp','document','setStyle','toViewElement','aspect-ratio','load','change','180IAMdDU','px)\x20100vw,\x20','map','hasAttribute','baseURI','filter','8467250HiCEYU','findViewImgElement','origin','1988757VQYDoJ','3lvGZyy','isArray','114565aCHxMk','plugins','src','uploadcareImageId','match','addClass','replace','domConverter','element','location','7730GGlrbU','some','2035688xbjGQJ','window','listenTo'];_0x3e7c=function(){return _0x3be068;};return _0x3e7c();}(function(_0xef791f,_0x186c40){const _0x1e2731=_0x3bfe,_0x3994ae=_0xef791f();while(!![]){try{const _0x5e57a2=parseInt(_0x1e2731(0xba))/0x1+parseInt(_0x1e2731(0xe0))/0x2*(-parseInt(_0x1e2731(0xd2))/0x3)+parseInt(_0x1e2731(0xb7))/0x4*(-parseInt(_0x1e2731(0xde))/0x5)+-parseInt(_0x1e2731(0xad))/0x6*(-parseInt(_0x1e2731(0xb4))/0x7)+parseInt(_0x1e2731(0xaa))/0x8*(parseInt(_0x1e2731(0xd1))/0x9)+parseInt(_0x1e2731(0xce))/0xa+parseInt(_0x1e2731(0xd4))/0xb*(-parseInt(_0x1e2731(0xc8))/0xc);if(_0x5e57a2===_0x186c40)break;else _0x3994ae['push'](_0x3994ae['shift']());}catch(_0x292960){_0x3994ae['push'](_0x3994ae['shift']());}}}(_0x3e7c,0x7d43a));function _0x3bfe(_0xbcb172,_0x34ecc4){const _0x3e7cec=_0x3e7c();return _0x3bfe=function(_0x3bfe28,_0x2ac8d0){_0x3bfe28=_0x3bfe28-0xa7;let _0x333f28=_0x3e7cec[_0x3bfe28];return _0x333f28;},_0x3bfe(_0xbcb172,_0x34ecc4);}import{global as _0x182846,DomEmitterMixin as _0x2a3a0b}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x172877){const _0x35d518=_0x3bfe,_0x15106f=z(_0x172877);return _0x583fc2=>!(!_0x583fc2||!_0x583fc2['is'](_0x35d518(0xdc),_0x35d518(0xae))&&!_0x583fc2['is'](_0x35d518(0xdc),_0x35d518(0xaf)))&&(!!_0x583fc2[_0x35d518(0xcb)](_0x35d518(0xd7))||!!_0x583fc2[_0x35d518(0xcb)](_0x35d518(0xd6))&&_0x15106f(_0x583fc2[_0x35d518(0xb0)](_0x35d518(0xd6))));}export function getImageUrls(_0x3a3ed9,_0xcf548c){const _0x12d4f2=_0x3bfe,_0x107610=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x12d4f2(0xcd)](_0xed5513=>_0xed5513<=_0xcf548c)[_0x12d4f2(0xca)](_0x1a02a7=>_0x3a3ed9[_0x12d4f2(0xda)](/\/$/,'')+_0x12d4f2(0xb5)+_0x1a02a7+_0x12d4f2(0xbf)+_0x1a02a7+'w');return{'imageFallbackUrl':_0x3a3ed9,'imageSources':[{'srcset':_0x107610[_0x12d4f2(0xa8)](',\x20'),'sizes':_0x12d4f2(0xb2)+_0xcf548c+_0x12d4f2(0xc9)+_0xcf548c+'px','type':_0x12d4f2(0xc1)}]};}export function getImageDimension(_0x3d1e89,_0x265f7d,_0x23f000){const _0x3b5136=_0x3bfe,_0xd61481=_0x3d1e89[_0x3b5136(0xd8)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xd61481?parseInt(_0xd61481[0x1],0xa):_0x265f7d,'height':_0xd61481?parseInt(_0xd61481[0x2],0xa):_0x23f000};}export function showImageProcessingIndicator(_0x5377cd,_0x356ad2){const _0x82f990=_0x3bfe,_0x35b467=new(_0x2a3a0b())(),_0x425845=_0x5377cd[_0x82f990(0xd5)][_0x82f990(0xc0)](_0x82f990(0xb6)),_0x47f06f=_0x5377cd[_0x82f990(0xbe)][_0x82f990(0xbb)][_0x82f990(0xc4)](_0x356ad2),_0x173b2c=_0x425845[_0x82f990(0xcf)](_0x47f06f),_0x29c334=_0x5377cd[_0x82f990(0xbe)][_0x82f990(0xb3)][_0x82f990(0xdb)][_0x82f990(0xa9)](_0x173b2c),_0x2a0fcf=_0x356ad2[_0x82f990(0xb0)](_0x82f990(0xb8)),_0x1a14c3=_0x356ad2[_0x82f990(0xb0)](_0x82f990(0xbd)),_0x23d71d=_0x82f990(0xb1);_0x5377cd[_0x82f990(0xbe)][_0x82f990(0xb3)][_0x82f990(0xc7)](_0x20aae5=>{const _0x4aea08=_0x82f990;_0x20aae5[_0x4aea08(0xd9)](_0x23d71d,_0x47f06f),_0x20aae5[_0x4aea08(0xc3)](_0x4aea08(0xc5),_0x2a0fcf+'/'+_0x1a14c3,_0x173b2c);}),_0x35b467[_0x82f990(0xa7)](_0x29c334,_0x82f990(0xc6),()=>{const _0x3f9cea=_0x82f990;_0x35b467[_0x3f9cea(0xbc)](_0x29c334,_0x3f9cea(0xc6)),_0x5377cd[_0x3f9cea(0xbe)][_0x3f9cea(0xb3)][_0x3f9cea(0xc7)](_0x31b94e=>{const _0x214048=_0x3f9cea;_0x31b94e[_0x214048(0xb9)](_0x23d71d,_0x47f06f),_0x31b94e[_0x214048(0xab)](_0x214048(0xc5),_0x173b2c);});});}function z(_0x406eac){const _0x5ab094=_0x3bfe;if(Array[_0x5ab094(0xd3)](_0x406eac)){const _0x24e3b6=_0x406eac[_0x5ab094(0xca)](z);return _0x5546ca=>_0x24e3b6[_0x5ab094(0xdf)](_0x5ce306=>_0x5ce306(_0x5546ca));}if(_0x5ab094(0xd0)==_0x406eac){const _0xdd921b=_0x182846[_0x5ab094(0xe1)][_0x5ab094(0xdd)][_0x5ab094(0xd0)];return _0x3b7852=>new URL(_0x3b7852,_0x182846[_0x5ab094(0xc2)][_0x5ab094(0xcc)])[_0x5ab094(0xd0)]==_0xdd921b;}return _0x5ab094(0xac)==typeof _0x406eac?_0x406eac:_0x406eac instanceof RegExp?_0xe999b1=>!(!_0xe999b1[_0x5ab094(0xd8)](_0x406eac)&&!_0xe999b1[_0x5ab094(0xda)](/^https?:\/\//,'')[_0x5ab094(0xd8)](_0x406eac)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x11c7d5,_0x3fb2f4){var _0x504aa9=_0x5c9c,_0x1be0e1=_0x11c7d5();while(!![]){try{var _0x4533f5=parseInt(_0x504aa9(0xd4))/0x1+parseInt(_0x504aa9(0xd7))/0x2*(parseInt(_0x504aa9(0xd9))/0x3)+parseInt(_0x504aa9(0xd8))/0x4+-parseInt(_0x504aa9(0xd3))/0x5+parseInt(_0x504aa9(0xd2))/0x6+-parseInt(_0x504aa9(0xd6))/0x7+-parseInt(_0x504aa9(0xd5))/0x8;if(_0x4533f5===_0x3fb2f4)break;else _0x1be0e1['push'](_0x1be0e1['shift']());}catch(_0x333273){_0x1be0e1['push'](_0x1be0e1['shift']());}}}(_0x5b02,0xf12e0));function _0x5c9c(_0x5bceba,_0x29744d){var _0x5b027f=_0x5b02();return _0x5c9c=function(_0x5c9c87,_0x5454c9){_0x5c9c87=_0x5c9c87-0xd2;var _0x516954=_0x5b027f[_0x5c9c87];return _0x516954;},_0x5c9c(_0x5bceba,_0x29744d);}import{getAncestors as _0x459b22}from'ckeditor5/src/utils.js';function _0x5b02(){var _0x12af01=['16720160JuQJUn','7460824qeNgxJ','3359528RwiYyZ','3642072nwLOhi','3vKricC','target','includes','9906804xNzQQS','3327325pymYFF','567773jJGbPf'];_0x5b02=function(){return _0x12af01;};return _0x5b02();}export function isAncestor(_0xd2961c,_0x4195fa){var _0x175a21=_0x5c9c;return _0x459b22(_0xd2961c[_0x175a21(0xda)])[_0x175a21(0xdb)](_0x4195fa);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x984c(){var _0x6edfed=['78203qxiaDL','38NSLiEF','8dBemrQ','6274652EbFAyf','661052oKxacz','158521asKuhk','getInfo','14581460pHWVpI','upload','839712npAoWY','5FpWKod','9RpXxpP','4236iFeScN','6101838podoZw'];_0x984c=function(){return _0x6edfed;};return _0x984c();}function _0x4565(_0x46e41b,_0x39ed46){var _0x984c0b=_0x984c();return _0x4565=function(_0x45657f,_0x399730){_0x45657f=_0x45657f-0x9d;var _0x3f35b7=_0x984c0b[_0x45657f];return _0x3f35b7;},_0x4565(_0x46e41b,_0x39ed46);}var _0x532d27=_0x4565;(function(_0x690219,_0x49612f){var _0x148ff2=_0x4565,_0x444881=_0x690219();while(!![]){try{var _0x6f1998=parseInt(_0x148ff2(0x9f))/0x1*(parseInt(_0x148ff2(0xa0))/0x2)+parseInt(_0x148ff2(0xa8))/0x3+parseInt(_0x148ff2(0xa2))/0x4+parseInt(_0x148ff2(0xa9))/0x5*(parseInt(_0x148ff2(0x9e))/0x6)+parseInt(_0x148ff2(0xa3))/0x7*(parseInt(_0x148ff2(0xa1))/0x8)+-parseInt(_0x148ff2(0xaa))/0x9*(-parseInt(_0x148ff2(0xa6))/0xa)+-parseInt(_0x148ff2(0xa4))/0xb*(parseInt(_0x148ff2(0x9d))/0xc);if(_0x6f1998===_0x49612f)break;else _0x444881['push'](_0x444881['shift']());}catch(_0x1a2ea2){_0x444881['push'](_0x444881['shift']());}}}(_0x984c,0xc7700));import{uploadFile as _0x1d1e10,info as _0x1c75a8}from'@uploadcare/upload-client';export class UploadUtils{static[_0x532d27(0xa7)]({file:_0x185063,..._0x2abaa4}){return _0x1d1e10(_0x185063,_0x2abaa4);}static[_0x532d27(0xa5)](_0xe5d168,_0x1de312){return _0x1c75a8(_0xe5d168,_0x1de312);}}
|