@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251004.0 → 0.0.0-nightly-20251006.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 _0x384253,View as _0x891f2c}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x891f2c{constructor(_0x5d6726){super(_0x5d6726);const t=_0x5d6726['t'],_0x299705=this['bindTemplate'],_0x456f95=new _0x384253();_0x456f95['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':[_0x456f95,{'text':_0x299705['to']('imageUploadProgress',_0x4fdaa7=>t('Loading\x20image...')+'\x20('+(_0x4fdaa7||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
|
+
function _0x482b(_0x463afe,_0x43cd7b){const _0x2f00ba=_0x2f00();return _0x482b=function(_0x482b9c,_0x675c98){_0x482b9c=_0x482b9c-0x11f;let _0x4d6e90=_0x2f00ba[_0x482b9c];return _0x4d6e90;},_0x482b(_0x463afe,_0x43cd7b);}const _0xbf3e48=_0x482b;(function(_0xe023ea,_0x57b377){const _0x3bcaf3=_0x482b,_0x4840b6=_0xe023ea();while(!![]){try{const _0x5828b6=-parseInt(_0x3bcaf3(0x132))/0x1*(parseInt(_0x3bcaf3(0x130))/0x2)+parseInt(_0x3bcaf3(0x125))/0x3*(parseInt(_0x3bcaf3(0x13a))/0x4)+-parseInt(_0x3bcaf3(0x137))/0x5*(-parseInt(_0x3bcaf3(0x14f))/0x6)+-parseInt(_0x3bcaf3(0x135))/0x7*(parseInt(_0x3bcaf3(0x13d))/0x8)+parseInt(_0x3bcaf3(0x122))/0x9+parseInt(_0x3bcaf3(0x129))/0xa*(parseInt(_0x3bcaf3(0x145))/0xb)+-parseInt(_0x3bcaf3(0x146))/0xc;if(_0x5828b6===_0x57b377)break;else _0x4840b6['push'](_0x4840b6['shift']());}catch(_0xdbc7ab){_0x4840b6['push'](_0x4840b6['shift']());}}}(_0x2f00,0x27e6e));import{View as _0x488726}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x5b3fc0}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x167027}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x4dc520}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x572f3f}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x572f3f{[_0xbf3e48(0x12b)];[_0xbf3e48(0x120)];[_0xbf3e48(0x14c)];[_0xbf3e48(0x13f)];[_0xbf3e48(0x143)];constructor(_0xf59a4a,_0x3d8ac6,_0x459582){const _0x183526=_0xbf3e48;super(_0xf59a4a),this[_0x183526(0x12b)]=this[_0x183526(0x151)](),this[_0x183526(0x120)]=new _0x5b3fc0(_0xf59a4a),this[_0x183526(0x14c)]=new _0x167027(_0xf59a4a),this[_0x183526(0x13f)]=new _0x4dc520(_0xf59a4a,_0x459582),this[_0x183526(0x143)]=new _0x488726(_0xf59a4a),this[_0x183526(0x143)][_0x183526(0x136)](this[_0x183526(0x147)]()),this[_0x183526(0x14e)](_0x183526(0x126),_0x3d8ac6),this[_0x183526(0x136)]({'tag':_0x183526(0x131),'attributes':{'class':['ck',_0x183526(0x14a),_0x183526(0x12a)],'tabindex':'-1'},'children':this[_0x183526(0x12b)]}),this[_0x183526(0x128)](),this[_0x183526(0x13e)](_0x183526(0x13b),()=>{const _0x5be623=_0x183526;this[_0x5be623(0x12f)](this[_0x5be623(0x12e)],_0x372ca7=>{const _0x167cd2=_0x5be623;this[_0x167cd2(0x121)](_0x372ca7);});}),this['on'](_0x183526(0x144),()=>{const _0xe82c90=_0x183526;this[_0xe82c90(0x128)]();}),this[_0x183526(0x138)]();}[_0xbf3e48(0x12d)](){const _0x3b329d=_0xbf3e48;this[_0x3b329d(0x12e)][_0x3b329d(0x12d)]();}[_0xbf3e48(0x128)](){const _0x503c14=_0xbf3e48;switch(this[_0x503c14(0x12b)][_0x503c14(0x150)](),this[_0x503c14(0x126)]){case _0x503c14(0x155):this[_0x503c14(0x12b)][_0x503c14(0x153)](this[_0x503c14(0x120)]);break;case _0x503c14(0x127):this[_0x503c14(0x12b)][_0x503c14(0x153)](this[_0x503c14(0x14c)]);break;case _0x503c14(0x156):this[_0x503c14(0x12b)][_0x503c14(0x123)]([this[_0x503c14(0x13f)],this[_0x503c14(0x143)]]);}}[_0xbf3e48(0x12f)](_0xc72090,_0x21b109){const _0x453da5=_0xbf3e48,_0x2cd4bb=_0x453da5(0x124),_0x11e043=_0xc72090[_0x453da5(0x11f)](_0x2cd4bb);if(_0x11e043)return _0x21b109(_0x11e043);const _0x333a09=new MutationObserver(_0x19cc53=>{const _0x48afef=_0x453da5,_0x100725=_0x19cc53[_0x48afef(0x154)](_0x23efad=>_0x23efad[_0x48afef(0x149)]===_0xc72090&&_0x23efad[_0x48afef(0x13c)][_0x48afef(0x133)]>0x0&&_0x23efad[_0x48afef(0x13c)][0x0][_0x48afef(0x152)][_0x48afef(0x157)]()===_0x2cd4bb);_0x100725[_0x48afef(0x133)]&&(_0x333a09[_0x48afef(0x134)](),_0x21b109(_0x100725[0x0][_0x48afef(0x13c)][0x0]));});_0x333a09[_0x453da5(0x14d)](_0xc72090,{'childList':!0x0,'subtree':!0x0});}[_0xbf3e48(0x121)](_0x321479){const _0x1cd4df=_0xbf3e48;_0x321479[_0x1cd4df(0x12c)](_0x1cd4df(0x14b),_0x2b2571=>{const _0x3950c7=_0x1cd4df;this[_0x3950c7(0x139)](_0x3950c7(0x14b),{'imageSrc':_0x2b2571[_0x3950c7(0x140)][_0x3950c7(0x142)]});}),_0x321479[_0x1cd4df(0x12c)](_0x1cd4df(0x148),()=>{const _0x1da6a2=_0x1cd4df;this[_0x1da6a2(0x139)](_0x1da6a2(0x148));});}[_0xbf3e48(0x138)](){const _0x5b2aad=_0xbf3e48;this[_0x5b2aad(0x14c)]['on'](_0x5b2aad(0x141),()=>{const _0x4258df=_0x5b2aad;this[_0x4258df(0x139)](_0x4258df(0x141));});}}function _0x2f00(){const _0x4d5cc2=['259422ZrhSLi','clear','createCollection','nodeName','add','filter','uploading','ready','toLowerCase','querySelector','_loadingView','_addUploadcareImageEditorListeners','1985751HdjGRO','addMany','uc-cloud-image-editor','9BMTLAa','status','error','_setView','20DndJno','ck-uploadcare-form','_items','addEventListener','focus','element','_waitForImageEditorComponent','718pJVUZe','div','387vAScfT','length','disconnect','7LKXyPw','setTemplate','10Mupvmn','_addErrorViewListeners','fire','193580rOpYFx','render','addedNodes','1277464SyxAuA','once','_editingView','detail','retry','cdnUrl','_focusableView','change:status','1569898PSNUXE','3308160nWrQIG','getFocusableElement','cancel','target','ck-reset_all-excluded','apply','_errorView','observe','set'];_0x2f00=function(){return _0x4d5cc2;};return _0x2f00();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1168(_0x2f0d19,_0x2abeec){const _0x2da94d=_0x2da9();return _0x1168=function(_0x116813,_0x456966){_0x116813=_0x116813-0x1ba;let _0x36e1b1=_0x2da94d[_0x116813];return _0x36e1b1;},_0x1168(_0x2f0d19,_0x2abeec);}const _0xf9eb65=_0x1168;(function(_0x588e62,_0x50e40f){const _0x227006=_0x1168,_0x5e1298=_0x588e62();while(!![]){try{const _0x5ca268=-parseInt(_0x227006(0x1cf))/0x1+-parseInt(_0x227006(0x1bd))/0x2+parseInt(_0x227006(0x1cd))/0x3*(parseInt(_0x227006(0x1bc))/0x4)+parseInt(_0x227006(0x1ce))/0x5*(-parseInt(_0x227006(0x1d1))/0x6)+parseInt(_0x227006(0x1c0))/0x7*(-parseInt(_0x227006(0x1cb))/0x8)+-parseInt(_0x227006(0x1c9))/0x9+parseInt(_0x227006(0x1c2))/0xa;if(_0x5ca268===_0x50e40f)break;else _0x5e1298['push'](_0x5e1298['shift']());}catch(_0x5440ca){_0x5e1298['push'](_0x5e1298['shift']());}}}(_0x2da9,0xf2102));import{Command as _0x3de8e9}from'ckeditor5/src/core.js';import{Dialog as _0x3d9735}from'ckeditor5/src/ui.js';function _0x2da9(){const _0x42255c=['set','23520rSZsNg','isActive','49622830qyoDUZ','getSelectedElement','editor','_isEditable','imageInline','unbind','imageEditController','11349531kfkXHz','refresh','3352XPHTXX','model','4312032HdryNd','4855GKZXRw','1194494bmLmEP','imageBlock','6144EvjqgG','uploadcare.allowExternalImagesEditing','bind','document','config','execute','requires','element','isEnabled','selection','plugins','4OoZwRn','1100880QwtTMf','get'];_0x2da9=function(){return _0x42255c;};return _0x2da9();}import{UploadcareImageEditController as _0xc99190}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x39b4c7}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x3de8e9{[_0xf9eb65(0x1c8)];static get[_0xf9eb65(0x1d7)](){return[_0x3d9735];}[_0xf9eb65(0x1c5)];constructor(_0x3071b7){const _0x4916fd=_0xf9eb65;super(_0x3071b7),this[_0x4916fd(0x1c8)]=void 0x0,this[_0x4916fd(0x1c5)]=_0x39b4c7(_0x3071b7[_0x4916fd(0x1d5)][_0x4916fd(0x1be)](_0x4916fd(0x1d2))||[]),this[_0x4916fd(0x1bf)]({'isActive':!0x1});}[_0xf9eb65(0x1ca)](){const _0x195ba5=_0xf9eb65,_0x208784=this[_0x195ba5(0x1c4)][_0x195ba5(0x1cc)][_0x195ba5(0x1d4)][_0x195ba5(0x1ba)][_0x195ba5(0x1c3)]();this[_0x195ba5(0x1d9)]=this[_0x195ba5(0x1c5)](_0x208784);}[_0xf9eb65(0x1d6)](){const _0xbc1153=_0xf9eb65;this[_0xbc1153(0x1c8)]&&(this[_0xbc1153(0x1c7)](_0xbc1153(0x1c1)),this[_0xbc1153(0x1c8)]=void 0x0);const _0x5bf927=this[_0xbc1153(0x1c4)][_0xbc1153(0x1cc)][_0xbc1153(0x1d4)][_0xbc1153(0x1ba)][_0xbc1153(0x1c3)]();_0x5bf927&&(_0x5bf927['is'](_0xbc1153(0x1d8),_0xbc1153(0x1d0))||_0x5bf927['is'](_0xbc1153(0x1d8),_0xbc1153(0x1c6)))&&(this[_0xbc1153(0x1c8)]=new _0xc99190(this[_0xbc1153(0x1c4)],this[_0xbc1153(0x1c4)][_0xbc1153(0x1bb)][_0xbc1153(0x1be)](_0x3d9735),_0x5bf927),this[_0xbc1153(0x1d3)](_0xbc1153(0x1c1))['to'](this[_0xbc1153(0x1c8)],_0xbc1153(0x1c1)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3f97(){const _0x5d845d=['4JUeuQY','ImageEditing','2076348hcEOHo','872pSpnGq','2264988kuskQj','pluginName','uploadcareImageReplace','commands','isPremiumPlugin','isOfficialPlugin','2598346khUlZt','8096035MHvDlk','38951001bIWEpi','requires','ImageUtils','1095524PSwEdL','add','UploadcareImageEditEditing','uploadcareImageEdit','107429diDvMw','init'];_0x3f97=function(){return _0x5d845d;};return _0x3f97();}const _0x308db5=_0x51bb;(function(_0xc8d09b,_0x30df94){const _0x3e41a1=_0x51bb,_0x258451=_0xc8d09b();while(!![]){try{const _0x47ae3b=parseInt(_0x3e41a1(0x6d))/0x1+parseInt(_0x3e41a1(0x7d))/0x2+-parseInt(_0x3e41a1(0x77))/0x3+parseInt(_0x3e41a1(0x73))/0x4*(parseInt(_0x3e41a1(0x7e))/0x5)+parseInt(_0x3e41a1(0x75))/0x6+-parseInt(_0x3e41a1(0x71))/0x7*(-parseInt(_0x3e41a1(0x76))/0x8)+-parseInt(_0x3e41a1(0x7f))/0x9;if(_0x47ae3b===_0x30df94)break;else _0x258451['push'](_0x258451['shift']());}catch(_0x530118){_0x258451['push'](_0x258451['shift']());}}}(_0x3f97,0xe7e8c));import{Plugin as _0x282fff}from'ckeditor5/src/core.js';function _0x51bb(_0x557918,_0x201123){const _0x3f9750=_0x3f97();return _0x51bb=function(_0x51bb16,_0x6e40b4){_0x51bb16=_0x51bb16-0x6b;let _0x4202f7=_0x3f9750[_0x51bb16];return _0x4202f7;},_0x51bb(_0x557918,_0x201123);}import{Notification as _0x2ccd85}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x555cda}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x325b1a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x20fe1f}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x282fff{static get[_0x308db5(0x78)](){const _0x32489e=_0x308db5;return _0x32489e(0x6f);}static get[_0x308db5(0x6b)](){const _0x500d83=_0x308db5;return[_0x20fe1f,_0x2ccd85,_0x500d83(0x6c),_0x500d83(0x74)];}static get[_0x308db5(0x7c)](){return!0x0;}static get[_0x308db5(0x7b)](){return!0x0;}[_0x308db5(0x72)](){const _0x23e95b=_0x308db5,{editor:_0x33d1f9}=this;_0x33d1f9[_0x23e95b(0x7a)][_0x23e95b(0x6e)](_0x23e95b(0x70),new _0x555cda(_0x33d1f9)),_0x33d1f9[_0x23e95b(0x7a)][_0x23e95b(0x6e)](_0x23e95b(0x79),new _0x325b1a(_0x33d1f9));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x4fe65f}from'ckeditor5/src/core.js';import{ButtonView as _0x2db7be}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x363a2d}from'ckeditor5/src/icons.js';import{createElement as _0x18aadb}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 _0x4fe65f{['_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 _0x5909b5=this['editor'];_0x5909b5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4b0481=>{const _0x111850=_0x5909b5['commands']['get']('uploadcareImageEdit'),_0x56c464=new _0x2db7be(_0x4b0481),t=_0x4b0481['t'];return _0x56c464['set']({'icon':_0x363a2d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x56c464['bind']('isEnabled')['to'](_0x111850),_0x56c464['bind']('isOn')['to'](_0x111850,'isActive'),this['listenTo'](_0x56c464,'execute',()=>{_0x5909b5['execute']('uploadcareImageEdit'),_0x5909b5['editing']['view']['focus']();}),_0x56c464;}),this['_initConfig']();}['_initConfig'](){const _0x100bef=_0x18aadb(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x100bef),this['listenTo'](this['editor'],'destroy',()=>{_0x100bef['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x50f38c=_0x4084;(function(_0x4f52e5,_0x35d2de){var _0x590b6c=_0x4084,_0x312e24=_0x4f52e5();while(!![]){try{var _0x6ad529=-parseInt(_0x590b6c(0x101))/0x1*(parseInt(_0x590b6c(0xfe))/0x2)+-parseInt(_0x590b6c(0xf9))/0x3+parseInt(_0x590b6c(0x10a))/0x4+-parseInt(_0x590b6c(0x106))/0x5*(-parseInt(_0x590b6c(0x105))/0x6)+parseInt(_0x590b6c(0x103))/0x7*(parseInt(_0x590b6c(0xff))/0x8)+-parseInt(_0x590b6c(0xfd))/0x9+-parseInt(_0x590b6c(0xf8))/0xa*(-parseInt(_0x590b6c(0x100))/0xb);if(_0x6ad529===_0x35d2de)break;else _0x312e24['push'](_0x312e24['shift']());}catch(_0x115b6f){_0x312e24['push'](_0x312e24['shift']());}}}(_0x52b9,0x804e3));import{FocusTracker as _0x4f19e4}from'ckeditor5/src/utils.js';import{View as _0x461a2b,FocusCycler as _0x319952}from'ckeditor5/src/ui.js';function _0x4084(_0x293489,_0x28e845){var _0x52b9a8=_0x52b9();return _0x4084=function(_0x4084fa,_0x5bdb0a){_0x4084fa=_0x4084fa-0xf8;var _0x134a21=_0x52b9a8[_0x4084fa];return _0x134a21;},_0x4084(_0x293489,_0x28e845);}import'../../theme/uploadcare-form.css';function _0x52b9(){var _0x4f8057=['bindTemplate','focusCycler','focusTracker','1459412XWwlIV','forwardCycle','9153670wBSPfT','1555617hzpkWN','getFocusableElement','createCollection','true','6031854HiTHNm','2738JBxDzZ','23768OAOMqA','11IJUBWS','662yENGrf','div','2275JfcTTn','fire','77538BeWicX','145FmmzFG'];_0x52b9=function(){return _0x4f8057;};return _0x52b9();}export class DialogFocusManagerView extends _0x461a2b{[_0x50f38c(0x109)];[_0x50f38c(0x108)];constructor(_0x15471f){var _0x8012b7=_0x50f38c;super(_0x15471f),this[_0x8012b7(0x109)]=new _0x4f19e4(),this[_0x8012b7(0x108)]=new _0x319952({'focusables':this[_0x8012b7(0xfb)](),'focusTracker':this[_0x8012b7(0x109)]});}[_0x50f38c(0xfa)](){var _0x16c681=_0x50f38c;return{'tag':_0x16c681(0x102),'attributes':{'aria-hidden':_0x16c681(0xfc),'tabindex':'0'},'on':{'focus':this[_0x16c681(0x107)]['to'](()=>{var _0x380d51=_0x16c681;this[_0x380d51(0x108)][_0x380d51(0x104)](_0x380d51(0x10b));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1cd2(_0x25cdd3,_0x1175c0){const _0x49caf6=_0x49ca();return _0x1cd2=function(_0x1cd227,_0x4b6ba0){_0x1cd227=_0x1cd227-0xba;let _0x47f07b=_0x49caf6[_0x1cd227];return _0x47f07b;},_0x1cd2(_0x25cdd3,_0x1175c0);}(function(_0x2ff1c5,_0x557b47){const _0x52914d=_0x1cd2,_0x4b567=_0x2ff1c5();while(!![]){try{const _0x137b21=parseInt(_0x52914d(0xea))/0x1*(-parseInt(_0x52914d(0xec))/0x2)+parseInt(_0x52914d(0xdd))/0x3+parseInt(_0x52914d(0xbf))/0x4+-parseInt(_0x52914d(0xdc))/0x5+parseInt(_0x52914d(0xd7))/0x6+-parseInt(_0x52914d(0xc1))/0x7*(parseInt(_0x52914d(0xef))/0x8)+parseInt(_0x52914d(0xf0))/0x9*(parseInt(_0x52914d(0xcf))/0xa);if(_0x137b21===_0x557b47)break;else _0x4b567['push'](_0x4b567['shift']());}catch(_0x5d5e2e){_0x4b567['push'](_0x4b567['shift']());}}}(_0x49ca,0x90273));function _0x49ca(){const _0x1e03a3=['viewToDom','446504LYrPZV','src','4907945UbQgaj','uploadcareImageId','load','removeClass','replace','x/\x20','image/webp','/-/resize/','setStyle','filter','image-processing','element','location','change','6020110lnmcNC','listenTo','map','imageInline','aspect-ratio','addClass','function','origin','1308888tKMjJr','isArray','hasAttribute','editing','toViewElement','298285YyJlEg','222150vBGgjd','plugins','view','getAttribute','baseURI','get','width','height','document','mapper','stopListening','match','(max-width:\x20','1AzJkBL','removeStyle','513206UPytbH','findViewImgElement','join','8ldVvtH','18NPBpgi','window','px)\x20100vw,\x20','ImageUtils','domConverter','some','imageBlock'];_0x49ca=function(){return _0x1e03a3;};return _0x49ca();}import{global as _0x2a3717,DomEmitterMixin as _0x735c8e}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x25c471){const _0xd40acf=_0x1cd2,_0xa2a3d5=z(_0x25c471);return _0x57676d=>!(!_0x57676d||!_0x57676d['is'](_0xd40acf(0xcc),_0xd40acf(0xbd))&&!_0x57676d['is'](_0xd40acf(0xcc),_0xd40acf(0xd2)))&&(!!_0x57676d[_0xd40acf(0xd9)](_0xd40acf(0xc2))||!!_0x57676d[_0xd40acf(0xd9)](_0xd40acf(0xc0))&&_0xa2a3d5(_0x57676d[_0xd40acf(0xe0)](_0xd40acf(0xc0))));}export function getImageUrls(_0x42ab20,_0x4bf900){const _0x172b83=_0x1cd2,_0x5d8955=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x172b83(0xca)](_0xda634f=>_0xda634f<=_0x4bf900)[_0x172b83(0xd1)](_0x321179=>_0x42ab20[_0x172b83(0xc5)](/\/$/,'')+_0x172b83(0xc8)+_0x321179+_0x172b83(0xc6)+_0x321179+'w');return{'imageFallbackUrl':_0x42ab20,'imageSources':[{'srcset':_0x5d8955[_0x172b83(0xee)](',\x20'),'sizes':_0x172b83(0xe9)+_0x4bf900+_0x172b83(0xf2)+_0x4bf900+'px','type':_0x172b83(0xc7)}]};}export function getImageDimension(_0x2e6854,_0x1ae165,_0x49cfbe){const _0x1a315d=_0x1cd2,_0x362794=_0x2e6854[_0x1a315d(0xe8)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x362794?parseInt(_0x362794[0x1],0xa):_0x1ae165,'height':_0x362794?parseInt(_0x362794[0x2],0xa):_0x49cfbe};}export function showImageProcessingIndicator(_0x4c3453,_0x464829){const _0x1ef741=_0x1cd2,_0x4096fe=new(_0x735c8e())(),_0x498580=_0x4c3453[_0x1ef741(0xde)][_0x1ef741(0xe2)](_0x1ef741(0xba)),_0x5a8d87=_0x4c3453[_0x1ef741(0xda)][_0x1ef741(0xe6)][_0x1ef741(0xdb)](_0x464829),_0xcf0862=_0x498580[_0x1ef741(0xed)](_0x5a8d87),_0x4eca2f=_0x4c3453[_0x1ef741(0xda)][_0x1ef741(0xdf)][_0x1ef741(0xbb)][_0x1ef741(0xbe)](_0xcf0862),_0x9a7fa9=_0x464829[_0x1ef741(0xe0)](_0x1ef741(0xe3)),_0x5b952a=_0x464829[_0x1ef741(0xe0)](_0x1ef741(0xe4)),_0x578c00=_0x1ef741(0xcb);_0x4c3453[_0x1ef741(0xda)][_0x1ef741(0xdf)][_0x1ef741(0xce)](_0x316ede=>{const _0x2dadce=_0x1ef741;_0x316ede[_0x2dadce(0xd4)](_0x578c00,_0x5a8d87),_0x316ede[_0x2dadce(0xc9)](_0x2dadce(0xd3),_0x9a7fa9+'/'+_0x5b952a,_0xcf0862);}),_0x4096fe[_0x1ef741(0xd0)](_0x4eca2f,_0x1ef741(0xc3),()=>{const _0x17ae50=_0x1ef741;_0x4096fe[_0x17ae50(0xe7)](_0x4eca2f,_0x17ae50(0xc3)),_0x4c3453[_0x17ae50(0xda)][_0x17ae50(0xdf)][_0x17ae50(0xce)](_0x4dbeb3=>{const _0x1cb667=_0x17ae50;_0x4dbeb3[_0x1cb667(0xc4)](_0x578c00,_0x5a8d87),_0x4dbeb3[_0x1cb667(0xeb)](_0x1cb667(0xd3),_0xcf0862);});});}function z(_0x3ef9b3){const _0x5e24e2=_0x1cd2;if(Array[_0x5e24e2(0xd8)](_0x3ef9b3)){const _0x473df7=_0x3ef9b3[_0x5e24e2(0xd1)](z);return _0x59d252=>_0x473df7[_0x5e24e2(0xbc)](_0x1995ea=>_0x1995ea(_0x59d252));}if(_0x5e24e2(0xd6)==_0x3ef9b3){const _0x3bd301=_0x2a3717[_0x5e24e2(0xf1)][_0x5e24e2(0xcd)][_0x5e24e2(0xd6)];return _0x253af8=>new URL(_0x253af8,_0x2a3717[_0x5e24e2(0xe5)][_0x5e24e2(0xe1)])[_0x5e24e2(0xd6)]==_0x3bd301;}return _0x5e24e2(0xd5)==typeof _0x3ef9b3?_0x3ef9b3:_0x3ef9b3 instanceof RegExp?_0x262147=>!(!_0x262147[_0x5e24e2(0xe8)](_0x3ef9b3)&&!_0x262147[_0x5e24e2(0xc5)](/^https?:\/\//,'')[_0x5e24e2(0xe8)](_0x3ef9b3)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4be6(){var _0x527b06=['13850VkuFNM','148893xfoJcU','668xLLdDX','371278WErWTG','30141dKsnUo','20211411qwsMhy','target','includes','4243260FPGRNC','1352jspdgq','10QLEQBs','1725294KMqNey','9pPqyAE'];_0x4be6=function(){return _0x527b06;};return _0x4be6();}(function(_0xdf3b17,_0xf712d7){var _0x3fde9d=_0x2894,_0x541933=_0xdf3b17();while(!![]){try{var _0x4064e0=-parseInt(_0x3fde9d(0x188))/0x1+-parseInt(_0x3fde9d(0x18a))/0x2*(-parseInt(_0x3fde9d(0x193))/0x3)+parseInt(_0x3fde9d(0x189))/0x4*(-parseInt(_0x3fde9d(0x187))/0x5)+-parseInt(_0x3fde9d(0x192))/0x6+-parseInt(_0x3fde9d(0x18f))/0x7+-parseInt(_0x3fde9d(0x190))/0x8*(parseInt(_0x3fde9d(0x18b))/0x9)+-parseInt(_0x3fde9d(0x191))/0xa*(-parseInt(_0x3fde9d(0x18c))/0xb);if(_0x4064e0===_0xf712d7)break;else _0x541933['push'](_0x541933['shift']());}catch(_0x125300){_0x541933['push'](_0x541933['shift']());}}}(_0x4be6,0x4ee35));function _0x2894(_0x505d71,_0x16f4fc){var _0x4be635=_0x4be6();return _0x2894=function(_0x289484,_0x13d1ed){_0x289484=_0x289484-0x187;var _0x5c2fb7=_0x4be635[_0x289484];return _0x5c2fb7;},_0x2894(_0x505d71,_0x16f4fc);}import{getAncestors as _0x4d55bb}from'ckeditor5/src/utils.js';export function isAncestor(_0x559a9b,_0x2b6524){var _0x1984d9=_0x2894;return _0x4d55bb(_0x559a9b[_0x1984d9(0x18d)])[_0x1984d9(0x18e)](_0x2b6524);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x9c59a2=_0x3213;function _0x3213(_0x1e92ce,_0x1def8c){var _0x110006=_0x1100();return _0x3213=function(_0x3213b6,_0x59bd0d){_0x3213b6=_0x3213b6-0x189;var _0x48fab0=_0x110006[_0x3213b6];return _0x48fab0;},_0x3213(_0x1e92ce,_0x1def8c);}(function(_0x1be599,_0x26bbe4){var _0x2a2563=_0x3213,_0x278c22=_0x1be599();while(!![]){try{var _0x4d9311=parseInt(_0x2a2563(0x189))/0x1+parseInt(_0x2a2563(0x18c))/0x2+-parseInt(_0x2a2563(0x191))/0x3*(-parseInt(_0x2a2563(0x18a))/0x4)+-parseInt(_0x2a2563(0x18b))/0x5*(-parseInt(_0x2a2563(0x18e))/0x6)+parseInt(_0x2a2563(0x192))/0x7*(-parseInt(_0x2a2563(0x18d))/0x8)+-parseInt(_0x2a2563(0x190))/0x9+-parseInt(_0x2a2563(0x193))/0xa;if(_0x4d9311===_0x26bbe4)break;else _0x278c22['push'](_0x278c22['shift']());}catch(_0x3f40cb){_0x278c22['push'](_0x278c22['shift']());}}}(_0x1100,0x92c8e));import{uploadFile as _0x2fb017,info as _0x5d44df}from'@uploadcare/upload-client';export class UploadUtils{static[_0x9c59a2(0x18f)]({file:_0x58235f,..._0x18f75b}){return _0x2fb017(_0x58235f,_0x18f75b);}static[_0x9c59a2(0x194)](_0xb38302,_0x2711a3){return _0x5d44df(_0xb38302,_0x2711a3);}}function _0x1100(){var _0x3ff1a2=['25611sOHLXB','241283fLvMgP','1429260uKbKtQ','getInfo','158655eKZjdo','292aJuCBS','4354405MeebDn','373226auKpPw','152mFymTT','6ucUhwm','upload','3962547ENEnUS'];_0x1100=function(){return _0x3ff1a2;};return _0x1100();}
|