@ckeditor/ckeditor5-uploadcare 46.0.2-alpha.1 → 46.0.2
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 _0x239e47,View as _0x6bf995}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x6bf995{constructor(_0x450ddf){super(_0x450ddf);const t=_0x450ddf['t'],_0x2b7a75=this['bindTemplate'],_0x3947f3=new _0x239e47();_0x3947f3['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':[_0x3947f3,{'text':_0x2b7a75['to']('imageUploadProgress',_0x217294=>t('Loading\x20image...')+'\x20('+(_0x217294||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 _0xec2c0b=_0xe42c;(function(_0x27975b,_0x490108){const _0x1574b9=_0xe42c,_0x3d75cb=_0x27975b();while(!![]){try{const _0x45634a=-parseInt(_0x1574b9(0x200))/0x1+parseInt(_0x1574b9(0x1f1))/0x2*(-parseInt(_0x1574b9(0x1fa))/0x3)+parseInt(_0x1574b9(0x1ee))/0x4*(parseInt(_0x1574b9(0x1f9))/0x5)+-parseInt(_0x1574b9(0x1e5))/0x6*(-parseInt(_0x1574b9(0x201))/0x7)+parseInt(_0x1574b9(0x1f2))/0x8*(-parseInt(_0x1574b9(0x1ef))/0x9)+parseInt(_0x1574b9(0x208))/0xa+parseInt(_0x1574b9(0x1fc))/0xb*(parseInt(_0x1574b9(0x1f3))/0xc);if(_0x45634a===_0x490108)break;else _0x3d75cb['push'](_0x3d75cb['shift']());}catch(_0x2aadc4){_0x3d75cb['push'](_0x3d75cb['shift']());}}}(_0x4d0a,0x85898));function _0xe42c(_0x31cccb,_0x4707d5){const _0x4d0a12=_0x4d0a();return _0xe42c=function(_0xe42cdd,_0x1b37a3){_0xe42cdd=_0xe42cdd-0x1e4;let _0x2d48af=_0x4d0a12[_0xe42cdd];return _0x2d48af;},_0xe42c(_0x31cccb,_0x4707d5);}import{View as _0x5b1fe1}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x515472}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x93080c}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x44f690}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xac70dd}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x4d0a(){const _0x263f98=['cancel','_loadingView','_editingView','ck-uploadcare-form','_addErrorViewListeners','set','_waitForImageEditorComponent','2945346hoDHxi','element','render','addedNodes','once','change:status','status','div','ck-reset_all-excluded','668hYpUCN','213606nAPefZ','uploading','15220yklpfD','336xHNEHK','25472208wLpsSp','cdnUrl','uc-cloud-image-editor','_focusableView','retry','createCollection','10995MQFoWY','351eYlHDp','focus','11EBjPyL','_addUploadcareImageEditorListeners','_items','querySelector','890326dphinE','7nastaw','addMany','length','setTemplate','detail','fire','_setView','3436840UpSjAQ','disconnect','filter','addEventListener','add','getFocusableElement','error','observe','clear','apply','ready','nodeName','toLowerCase','target','_errorView'];_0x4d0a=function(){return _0x263f98;};return _0x4d0a();}export class UploadcareImageEditFormView extends _0xac70dd{[_0xec2c0b(0x1fe)];[_0xec2c0b(0x218)];[_0xec2c0b(0x216)];[_0xec2c0b(0x219)];[_0xec2c0b(0x1f6)];constructor(_0x4036ee,_0x5c406c,_0x43cada){const _0x4069c1=_0xec2c0b;super(_0x4036ee),this[_0x4069c1(0x1fe)]=this[_0x4069c1(0x1f8)](),this[_0x4069c1(0x218)]=new _0x515472(_0x4036ee),this[_0x4069c1(0x216)]=new _0x93080c(_0x4036ee),this[_0x4069c1(0x219)]=new _0x44f690(_0x4036ee,_0x43cada),this[_0x4069c1(0x1f6)]=new _0x5b1fe1(_0x4036ee),this[_0x4069c1(0x1f6)][_0x4069c1(0x204)](this[_0x4069c1(0x20d)]()),this[_0x4069c1(0x21c)](_0x4069c1(0x1eb),_0x5c406c),this[_0x4069c1(0x204)]({'tag':_0x4069c1(0x1ec),'attributes':{'class':['ck',_0x4069c1(0x1ed),_0x4069c1(0x21a)],'tabindex':'-1'},'children':this[_0x4069c1(0x1fe)]}),this[_0x4069c1(0x207)](),this[_0x4069c1(0x1e9)](_0x4069c1(0x1e7),()=>{const _0x430822=_0x4069c1;this[_0x430822(0x1e4)](this[_0x430822(0x1e6)],_0x2b0279=>{const _0x2135dc=_0x430822;this[_0x2135dc(0x1fd)](_0x2b0279);});}),this['on'](_0x4069c1(0x1ea),()=>{const _0x1211f2=_0x4069c1;this[_0x1211f2(0x207)]();}),this[_0x4069c1(0x21b)]();}[_0xec2c0b(0x1fb)](){const _0x4b9bc8=_0xec2c0b;this[_0x4b9bc8(0x1e6)][_0x4b9bc8(0x1fb)]();}[_0xec2c0b(0x207)](){const _0x149342=_0xec2c0b;switch(this[_0x149342(0x1fe)][_0x149342(0x210)](),this[_0x149342(0x1eb)]){case _0x149342(0x1f0):this[_0x149342(0x1fe)][_0x149342(0x20c)](this[_0x149342(0x218)]);break;case _0x149342(0x20e):this[_0x149342(0x1fe)][_0x149342(0x20c)](this[_0x149342(0x216)]);break;case _0x149342(0x212):this[_0x149342(0x1fe)][_0x149342(0x202)]([this[_0x149342(0x219)],this[_0x149342(0x1f6)]]);}}[_0xec2c0b(0x1e4)](_0x5a505d,_0x59e78c){const _0x119740=_0xec2c0b,_0x2333f6=_0x119740(0x1f5),_0x42dcae=_0x5a505d[_0x119740(0x1ff)](_0x2333f6);if(_0x42dcae)return _0x59e78c(_0x42dcae);const _0x88f366=new MutationObserver(_0x471cdb=>{const _0x49332a=_0x119740,_0xc2d8a8=_0x471cdb[_0x49332a(0x20a)](_0x2665da=>_0x2665da[_0x49332a(0x215)]===_0x5a505d&&_0x2665da[_0x49332a(0x1e8)][_0x49332a(0x203)]>0x0&&_0x2665da[_0x49332a(0x1e8)][0x0][_0x49332a(0x213)][_0x49332a(0x214)]()===_0x2333f6);_0xc2d8a8[_0x49332a(0x203)]&&(_0x88f366[_0x49332a(0x209)](),_0x59e78c(_0xc2d8a8[0x0][_0x49332a(0x1e8)][0x0]));});_0x88f366[_0x119740(0x20f)](_0x5a505d,{'childList':!0x0,'subtree':!0x0});}[_0xec2c0b(0x1fd)](_0x112a12){const _0x214309=_0xec2c0b;_0x112a12[_0x214309(0x20b)](_0x214309(0x211),_0x277a98=>{const _0x1d6fd5=_0x214309;this[_0x1d6fd5(0x206)](_0x1d6fd5(0x211),{'imageSrc':_0x277a98[_0x1d6fd5(0x205)][_0x1d6fd5(0x1f4)]});}),_0x112a12[_0x214309(0x20b)](_0x214309(0x217),()=>{const _0x4aa9ff=_0x214309;this[_0x4aa9ff(0x206)](_0x4aa9ff(0x217));});}[_0xec2c0b(0x21b)](){const _0x213e8d=_0xec2c0b;this[_0x213e8d(0x216)]['on'](_0x213e8d(0x1f7),()=>{const _0x1b2d44=_0x213e8d;this[_0x1b2d44(0x206)](_0x1b2d44(0x1f7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xcaf2cb=_0x5695;function _0x5906(){const _0x2d1ec3=['requires','refresh','isActive','156959NfXSga','get','2168776DUNitm','imageInline','config','getSelectedElement','46VeXQVj','7EWODhe','imageEditController','68mAkrFG','218745IwGxsA','element','139551DGcNgC','unbind','5577813YgelqJ','bind','selection','970aAcLka','set','plugins','uploadcare.allowExternalImagesEditing','model','_isEditable','1148914pBoEwO','13128FTefmc','editor','document','isEnabled','execute','imageBlock'];_0x5906=function(){return _0x2d1ec3;};return _0x5906();}function _0x5695(_0x3be3c8,_0x662dfa){const _0x5906a6=_0x5906();return _0x5695=function(_0x569576,_0x2d84a2){_0x569576=_0x569576-0x151;let _0xed2b81=_0x5906a6[_0x569576];return _0xed2b81;},_0x5695(_0x3be3c8,_0x662dfa);}(function(_0x33a052,_0x1b643d){const _0x34c7f6=_0x5695,_0x1f0503=_0x33a052();while(!![]){try{const _0x36b073=parseInt(_0x34c7f6(0x16e))/0x1+-parseInt(_0x34c7f6(0x15d))/0x2*(-parseInt(_0x34c7f6(0x163))/0x3)+parseInt(_0x34c7f6(0x160))/0x4*(parseInt(_0x34c7f6(0x161))/0x5)+parseInt(_0x34c7f6(0x16f))/0x6+parseInt(_0x34c7f6(0x15e))/0x7*(-parseInt(_0x34c7f6(0x159))/0x8)+-parseInt(_0x34c7f6(0x165))/0x9+parseInt(_0x34c7f6(0x168))/0xa*(-parseInt(_0x34c7f6(0x157))/0xb);if(_0x36b073===_0x1b643d)break;else _0x1f0503['push'](_0x1f0503['shift']());}catch(_0x54de70){_0x1f0503['push'](_0x1f0503['shift']());}}}(_0x5906,0xa8673));import{Command as _0x113b66}from'ckeditor5/src/core.js';import{Dialog as _0x475356}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x50d3fe}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2c7a5d}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x113b66{[_0xcaf2cb(0x15f)];static get[_0xcaf2cb(0x154)](){return[_0x475356];}[_0xcaf2cb(0x16d)];constructor(_0xb0009c){const _0x2138b8=_0xcaf2cb;super(_0xb0009c),this[_0x2138b8(0x15f)]=void 0x0,this[_0x2138b8(0x16d)]=_0x2c7a5d(_0xb0009c[_0x2138b8(0x15b)][_0x2138b8(0x158)](_0x2138b8(0x16b))||[]),this[_0x2138b8(0x169)]({'isActive':!0x1});}[_0xcaf2cb(0x155)](){const _0x4528c1=_0xcaf2cb,_0x13a46e=this[_0x4528c1(0x170)][_0x4528c1(0x16c)][_0x4528c1(0x171)][_0x4528c1(0x167)][_0x4528c1(0x15c)]();this[_0x4528c1(0x151)]=this[_0x4528c1(0x16d)](_0x13a46e);}[_0xcaf2cb(0x152)](){const _0x30101b=_0xcaf2cb;this[_0x30101b(0x15f)]&&(this[_0x30101b(0x164)](_0x30101b(0x156)),this[_0x30101b(0x15f)]=void 0x0);const _0xd8c79e=this[_0x30101b(0x170)][_0x30101b(0x16c)][_0x30101b(0x171)][_0x30101b(0x167)][_0x30101b(0x15c)]();_0xd8c79e&&(_0xd8c79e['is'](_0x30101b(0x162),_0x30101b(0x153))||_0xd8c79e['is'](_0x30101b(0x162),_0x30101b(0x15a)))&&(this[_0x30101b(0x15f)]=new _0x50d3fe(this[_0x30101b(0x170)],this[_0x30101b(0x170)][_0x30101b(0x16a)][_0x30101b(0x158)](_0x475356),_0xd8c79e),this[_0x30101b(0x166)](_0x30101b(0x156))['to'](this[_0x30101b(0x15f)],_0x30101b(0x156)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e1887=_0x451c;(function(_0x178347,_0x3ff239){const _0x4ef634=_0x451c,_0x480a26=_0x178347();while(!![]){try{const _0x371038=-parseInt(_0x4ef634(0x1ad))/0x1+-parseInt(_0x4ef634(0x1af))/0x2*(parseInt(_0x4ef634(0x1ac))/0x3)+parseInt(_0x4ef634(0x1c0))/0x4*(parseInt(_0x4ef634(0x1aa))/0x5)+-parseInt(_0x4ef634(0x1b0))/0x6*(parseInt(_0x4ef634(0x1ae))/0x7)+-parseInt(_0x4ef634(0x1b2))/0x8*(parseInt(_0x4ef634(0x1b8))/0x9)+-parseInt(_0x4ef634(0x1b5))/0xa+-parseInt(_0x4ef634(0x1b9))/0xb*(-parseInt(_0x4ef634(0x1b3))/0xc);if(_0x371038===_0x3ff239)break;else _0x480a26['push'](_0x480a26['shift']());}catch(_0x1999f5){_0x480a26['push'](_0x480a26['shift']());}}}(_0x1876,0x5bd03));import{Plugin as _0x329d79}from'ckeditor5/src/core.js';import{Notification as _0x2500f6}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x31d3cb}from'./uploadcareimageeditcommand.js';function _0x451c(_0x56869c,_0x58bc35){const _0x18764f=_0x1876();return _0x451c=function(_0x451c1d,_0x18ed70){_0x451c1d=_0x451c1d-0x1aa;let _0x2632cd=_0x18764f[_0x451c1d];return _0x2632cd;},_0x451c(_0x56869c,_0x58bc35);}import{UploadcareImageReplaceCommand as _0x8e79fe}from'./uploadcareimagereplacecommand.js';function _0x1876(){const _0x26a60f=['540750SfPugd','isOfficialPlugin','uploadcareImageReplace','767691cMydwp','3938dyRRhz','add','requires','pluginName','commands','UploadcareImageEditEditing','isPremiumPlugin','1090984jhAtLB','ImageEditing','5xoYysU','ImageUtils','18yyHAXO','56422rVDzHw','13881GgzQDd','84606uWguqP','1686KeIVFq','uploadcareImageEdit','8kPOUqj','37212TTiEDd','init'];_0x1876=function(){return _0x26a60f;};return _0x1876();}import{UploadcareEditing as _0x5be62f}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x329d79{static get[_0x3e1887(0x1bc)](){const _0x10384a=_0x3e1887;return _0x10384a(0x1be);}static get[_0x3e1887(0x1bb)](){const _0x44995f=_0x3e1887;return[_0x5be62f,_0x2500f6,_0x44995f(0x1ab),_0x44995f(0x1c1)];}static get[_0x3e1887(0x1b6)](){return!0x0;}static get[_0x3e1887(0x1bf)](){return!0x0;}[_0x3e1887(0x1b4)](){const _0x61c0e5=_0x3e1887,{editor:_0x198327}=this;_0x198327[_0x61c0e5(0x1bd)][_0x61c0e5(0x1ba)](_0x61c0e5(0x1b1),new _0x31d3cb(_0x198327)),_0x198327[_0x61c0e5(0x1bd)][_0x61c0e5(0x1ba)](_0x61c0e5(0x1b7),new _0x8e79fe(_0x198327));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4ebb93}from'ckeditor5/src/core.js';import{ButtonView as _0x40bd50}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x254323}from'ckeditor5/src/icons.js';import{createElement as _0x4aa470}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 _0x4ebb93{['_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 _0x341353=this['editor'];_0x341353['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5b4b0f=>{const _0x32018e=_0x341353['commands']['get']('uploadcareImageEdit'),_0x2e0237=new _0x40bd50(_0x5b4b0f),t=_0x5b4b0f['t'];return _0x2e0237['set']({'icon':_0x254323,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2e0237['bind']('isEnabled')['to'](_0x32018e),_0x2e0237['bind']('isOn')['to'](_0x32018e,'isActive'),this['listenTo'](_0x2e0237,'execute',()=>{_0x341353['execute']('uploadcareImageEdit'),_0x341353['editing']['view']['focus']();}),_0x2e0237;}),this['_initConfig']();}['_initConfig'](){const _0x99ae7d=_0x4aa470(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x99ae7d),this['listenTo'](this['editor'],'destroy',()=>{_0x99ae7d['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x34e5(_0x31d617,_0x474577){var _0x28f570=_0x28f5();return _0x34e5=function(_0x34e540,_0xdeb99e){_0x34e540=_0x34e540-0xfe;var _0x34fa69=_0x28f570[_0x34e540];return _0x34fa69;},_0x34e5(_0x31d617,_0x474577);}function _0x28f5(){var _0x3ca2f1=['bindTemplate','true','88SBAdCR','689432siQubZ','110152ANFxIb','forwardCycle','263586LyAOVV','2490954ZoqMCc','1197035icTTPc','251736sqBTVA','fire','2551470EbZDHs','createCollection','div','16AGUPCR','getFocusableElement','9GEHIXZ','focusCycler','focusTracker'];_0x28f5=function(){return _0x3ca2f1;};return _0x28f5();}var _0xf2d160=_0x34e5;(function(_0x4a85d7,_0x146d99){var _0x14ca80=_0x34e5,_0x33b3a2=_0x4a85d7();while(!![]){try{var _0x592138=-parseInt(_0x14ca80(0x10a))/0x1+-parseInt(_0x14ca80(0x107))/0x2+parseInt(_0x14ca80(0x10d))/0x3*(parseInt(_0x14ca80(0xff))/0x4)+-parseInt(_0x14ca80(0x10c))/0x5+parseInt(_0x14ca80(0x10b))/0x6+parseInt(_0x14ca80(0x108))/0x7*(parseInt(_0x14ca80(0x106))/0x8)+-parseInt(_0x14ca80(0x101))/0x9*(-parseInt(_0x14ca80(0x10f))/0xa);if(_0x592138===_0x146d99)break;else _0x33b3a2['push'](_0x33b3a2['shift']());}catch(_0x5dde13){_0x33b3a2['push'](_0x33b3a2['shift']());}}}(_0x28f5,0x50e4d));import{FocusTracker as _0x20db43}from'ckeditor5/src/utils.js';import{View as _0x3ff48c,FocusCycler as _0xf79350}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3ff48c{[_0xf2d160(0x103)];[_0xf2d160(0x102)];constructor(_0x36a27c){var _0x3087db=_0xf2d160;super(_0x36a27c),this[_0x3087db(0x103)]=new _0x20db43(),this[_0x3087db(0x102)]=new _0xf79350({'focusables':this[_0x3087db(0x110)](),'focusTracker':this[_0x3087db(0x103)]});}[_0xf2d160(0x100)](){var _0x4e78fd=_0xf2d160;return{'tag':_0x4e78fd(0xfe),'attributes':{'aria-hidden':_0x4e78fd(0x105),'tabindex':'0'},'on':{'focus':this[_0x4e78fd(0x104)]['to'](()=>{var _0x5e6632=_0x4e78fd;this[_0x5e6632(0x102)][_0x5e6632(0x10e)](_0x5e6632(0x109));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5abd87,_0x2210eb){const _0x4b55b2=_0x4be2,_0xd7b34c=_0x5abd87();while(!![]){try{const _0x118b68=parseInt(_0x4b55b2(0xd1))/0x1*(parseInt(_0x4b55b2(0xdc))/0x2)+-parseInt(_0x4b55b2(0xfe))/0x3+parseInt(_0x4b55b2(0xe4))/0x4+-parseInt(_0x4b55b2(0xdf))/0x5*(-parseInt(_0x4b55b2(0xe9))/0x6)+-parseInt(_0x4b55b2(0xd9))/0x7+-parseInt(_0x4b55b2(0xe0))/0x8+-parseInt(_0x4b55b2(0xd4))/0x9*(-parseInt(_0x4b55b2(0xfd))/0xa);if(_0x118b68===_0x2210eb)break;else _0xd7b34c['push'](_0xd7b34c['shift']());}catch(_0x5c20b0){_0xd7b34c['push'](_0xd7b34c['shift']());}}}(_0x15fd,0x46aa2));import{global as _0x53dcb6,DomEmitterMixin as _0x2f0dc4}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x51560c){const _0x237005=_0x4be2,_0x31d909=z(_0x51560c);return _0x3a7d08=>!(!_0x3a7d08||!_0x3a7d08['is'](_0x237005(0xf8),_0x237005(0xf0))&&!_0x3a7d08['is'](_0x237005(0xf8),_0x237005(0xeb)))&&(!!_0x3a7d08[_0x237005(0xda)](_0x237005(0xfb))||!!_0x3a7d08[_0x237005(0xda)](_0x237005(0xec))&&_0x31d909(_0x3a7d08[_0x237005(0xed)](_0x237005(0xec))));}export function getImageUrls(_0x518816,_0x45ca53){const _0x214351=_0x4be2,_0x5bc022=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x214351(0xea)](_0x5b2a4f=>_0x5b2a4f<=_0x45ca53)[_0x214351(0xe6)](_0x47d7c5=>_0x518816[_0x214351(0xc7)](/\/$/,'')+_0x214351(0xee)+_0x47d7c5+_0x214351(0xdd)+_0x47d7c5+'w');return{'imageFallbackUrl':_0x518816,'imageSources':[{'srcset':_0x5bc022[_0x214351(0xd5)](',\x20'),'sizes':_0x214351(0xd0)+_0x45ca53+_0x214351(0xdb)+_0x45ca53+'px','type':_0x214351(0xe5)}]};}function _0x4be2(_0x474770,_0x3741cb){const _0x15fd10=_0x15fd();return _0x4be2=function(_0x4be211,_0x6bcd27){_0x4be211=_0x4be211-0xc6;let _0x44be86=_0x15fd10[_0x4be211];return _0x44be86;},_0x4be2(_0x474770,_0x3741cb);}export function getImageDimension(_0xdeedf8,_0x9fe947,_0x52e257){const _0x1ae97d=_0x4be2,_0x2d0df2=_0xdeedf8[_0x1ae97d(0xf6)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2d0df2?parseInt(_0x2d0df2[0x1],0xa):_0x9fe947,'height':_0x2d0df2?parseInt(_0x2d0df2[0x2],0xa):_0x52e257};}export function showImageProcessingIndicator(_0x2a52f2,_0x2be1a8){const _0x2ea2cb=_0x4be2,_0xbb3185=new(_0x2f0dc4())(),_0x2a5961=_0x2a52f2[_0x2ea2cb(0xcb)][_0x2ea2cb(0xfa)](_0x2ea2cb(0xd8)),_0x3a6728=_0x2a52f2[_0x2ea2cb(0xce)][_0x2ea2cb(0xe1)][_0x2ea2cb(0xc9)](_0x2be1a8),_0x58dba9=_0x2a5961[_0x2ea2cb(0xcf)](_0x3a6728),_0x3b658d=_0x2a52f2[_0x2ea2cb(0xce)][_0x2ea2cb(0xd3)][_0x2ea2cb(0xfc)][_0x2ea2cb(0xf4)](_0x58dba9),_0x39921f=_0x2be1a8[_0x2ea2cb(0xed)](_0x2ea2cb(0xc8)),_0x3eeb1a=_0x2be1a8[_0x2ea2cb(0xed)](_0x2ea2cb(0xef)),_0x3b4560=_0x2ea2cb(0xf9);_0x2a52f2[_0x2ea2cb(0xce)][_0x2ea2cb(0xd3)][_0x2ea2cb(0xe3)](_0x397cc5=>{const _0x593e71=_0x2ea2cb;_0x397cc5[_0x593e71(0xcd)](_0x3b4560,_0x3a6728),_0x397cc5[_0x593e71(0xf1)](_0x593e71(0xf2),_0x39921f+'/'+_0x3eeb1a,_0x58dba9);}),_0xbb3185[_0x2ea2cb(0xf5)](_0x3b658d,_0x2ea2cb(0xca),()=>{const _0x449bbe=_0x2ea2cb;_0xbb3185[_0x449bbe(0xe7)](_0x3b658d,_0x449bbe(0xca)),_0x2a52f2[_0x449bbe(0xce)][_0x449bbe(0xd3)][_0x449bbe(0xe3)](_0x38c6c7=>{const _0x2101e8=_0x449bbe;_0x38c6c7[_0x2101e8(0xe2)](_0x3b4560,_0x3a6728),_0x38c6c7[_0x2101e8(0xf3)](_0x2101e8(0xf2),_0x58dba9);});});}function z(_0x4ffc65){const _0x473c51=_0x4be2;if(Array[_0x473c51(0xd6)](_0x4ffc65)){const _0x3c112f=_0x4ffc65[_0x473c51(0xe6)](z);return _0x3d0021=>_0x3c112f[_0x473c51(0xcc)](_0x2ce91f=>_0x2ce91f(_0x3d0021));}if(_0x473c51(0xe8)==_0x4ffc65){const _0x509864=_0x53dcb6[_0x473c51(0xf7)][_0x473c51(0xc6)][_0x473c51(0xe8)];return _0x13d49c=>new URL(_0x13d49c,_0x53dcb6[_0x473c51(0xde)][_0x473c51(0xd7)])[_0x473c51(0xe8)]==_0x509864;}return _0x473c51(0xd2)==typeof _0x4ffc65?_0x4ffc65:_0x4ffc65 instanceof RegExp?_0x4f8895=>!(!_0x4f8895[_0x473c51(0xf6)](_0x4ffc65)&&!_0x4f8895[_0x473c51(0xc7)](/^https?:\/\//,'')[_0x473c51(0xf6)](_0x4ffc65)):()=>!0x1;}function _0x15fd(){const _0x1cd7ae=['getAttribute','/-/resize/','height','imageBlock','setStyle','aspect-ratio','removeStyle','viewToDom','listenTo','match','window','element','image-processing','get','uploadcareImageId','domConverter','80ZxQyTy','497136ZVcvvi','location','replace','width','toViewElement','load','plugins','some','addClass','editing','findViewImgElement','(max-width:\x20','1gJeVdN','function','view','556974AaAgRk','join','isArray','baseURI','ImageUtils','2399341IbLNbT','hasAttribute','px)\x20100vw,\x20','1089612ISPhPO','x/\x20','document','1179065DThaUu','4580600rdKhoY','mapper','removeClass','change','379140JnHeLV','image/webp','map','stopListening','origin','6fDvxio','filter','imageInline','src'];_0x15fd=function(){return _0x1cd7ae;};return _0x15fd();}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x228fe,_0x3c8f2f){var _0x37c485=_0x387b,_0x445910=_0x228fe();while(!![]){try{var _0x17907a=parseInt(_0x37c485(0x192))/0x1*(parseInt(_0x37c485(0x195))/0x2)+-parseInt(_0x37c485(0x18a))/0x3*(-parseInt(_0x37c485(0x18b))/0x4)+-parseInt(_0x37c485(0x18f))/0x5+parseInt(_0x37c485(0x18c))/0x6+parseInt(_0x37c485(0x190))/0x7*(parseInt(_0x37c485(0x18d))/0x8)+-parseInt(_0x37c485(0x194))/0x9*(-parseInt(_0x37c485(0x191))/0xa)+-parseInt(_0x37c485(0x18e))/0xb;if(_0x17907a===_0x3c8f2f)break;else _0x445910['push'](_0x445910['shift']());}catch(_0x12c843){_0x445910['push'](_0x445910['shift']());}}}(_0x1651,0x8488c));function _0x387b(_0x906c4e,_0x5dd22f){var _0x16515a=_0x1651();return _0x387b=function(_0x387bef,_0x42285a){_0x387bef=_0x387bef-0x18a;var _0x183d13=_0x16515a[_0x387bef];return _0x183d13;},_0x387b(_0x906c4e,_0x5dd22f);}function _0x1651(){var _0x325fff=['includes','190275WaaBqJ','56qDfABn','5482218SxCvJK','90944VDUqWn','30848829UvxUWN','286940Mmhryj','336MaKjVT','246910IahVGV','87sBzYCY','target','153OLlVrO','14658NjUrtI'];_0x1651=function(){return _0x325fff;};return _0x1651();}import{getAncestors as _0x55c2e8}from'ckeditor5/src/utils.js';export function isAncestor(_0x2dad88,_0x5a50c3){var _0x2d743f=_0x387b;return _0x55c2e8(_0x2dad88[_0x2d743f(0x193)])[_0x2d743f(0x196)](_0x5a50c3);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2cc5da=_0x3c75;function _0x305e(){var _0x409285=['53473380gMYNax','getInfo','auto','upload','6294664hnLrFk','4VscMSd','2GYjaxP','209197qYSnLY','9972204exvtPb','3021402KmQyKk','16340832whRbuA','9007655CttIZG','14eijwSE'];_0x305e=function(){return _0x409285;};return _0x305e();}function _0x3c75(_0x9702d9,_0x165127){var _0x305ed7=_0x305e();return _0x3c75=function(_0x3c753b,_0x527f5a){_0x3c753b=_0x3c753b-0x195;var _0x2c6edb=_0x305ed7[_0x3c753b];return _0x2c6edb;},_0x3c75(_0x9702d9,_0x165127);}(function(_0x296cdd,_0x5415dd){var _0x928d12=_0x3c75,_0x4d687d=_0x296cdd();while(!![]){try{var _0x41fce7=-parseInt(_0x928d12(0x197))/0x1*(parseInt(_0x928d12(0x196))/0x2)+-parseInt(_0x928d12(0x199))/0x3+-parseInt(_0x928d12(0x195))/0x4*(parseInt(_0x928d12(0x19b))/0x5)+-parseInt(_0x928d12(0x198))/0x6+-parseInt(_0x928d12(0x19c))/0x7*(parseInt(_0x928d12(0x1a1))/0x8)+parseInt(_0x928d12(0x19a))/0x9+parseInt(_0x928d12(0x19d))/0xa;if(_0x41fce7===_0x5415dd)break;else _0x4d687d['push'](_0x4d687d['shift']());}catch(_0x4f9779){_0x4d687d['push'](_0x4d687d['shift']());}}}(_0x305e,0xde070));import{uploadFile as _0x57266c,info as _0x317643}from'@uploadcare/upload-client';export class UploadUtils{static[_0x2cc5da(0x1a0)]({file:_0x288fb2,publicKey:_0x32a21f,signal:_0x1c50fa,onProgress:_0x3c091f}){var _0x390523=_0x2cc5da;return _0x57266c(_0x288fb2,{'publicKey':_0x32a21f,'store':_0x390523(0x19f),'signal':_0x1c50fa,'onProgress':_0x3c091f});}static[_0x2cc5da(0x19e)](_0x466a97,_0x2d9978){return _0x317643(_0x466a97,_0x2d9978);}}
|