@ckeditor/ckeditor5-uploadcare 46.0.0-alpha.0 → 46.0.0-alpha.1
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 _0x9e786,View as _0x215e63}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x215e63{constructor(_0x43cfc4){super(_0x43cfc4);const t=_0x43cfc4['t'],_0x3dc3db=this['bindTemplate'],_0x323146=new _0x9e786();_0x323146['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':[_0x323146,{'text':_0x3dc3db['to']('imageUploadProgress',_0x550333=>t('Loading\x20image...')+'\x20('+(_0x550333||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 _0x59a6fc=_0x52f3;(function(_0x7edc9a,_0x1d7ed5){const _0x40cd6d=_0x52f3,_0x49d185=_0x7edc9a();while(!![]){try{const _0x229b36=parseInt(_0x40cd6d(0x131))/0x1+parseInt(_0x40cd6d(0x135))/0x2+-parseInt(_0x40cd6d(0x120))/0x3+parseInt(_0x40cd6d(0x124))/0x4+-parseInt(_0x40cd6d(0x12c))/0x5+-parseInt(_0x40cd6d(0x14b))/0x6*(parseInt(_0x40cd6d(0x143))/0x7)+parseInt(_0x40cd6d(0x125))/0x8;if(_0x229b36===_0x1d7ed5)break;else _0x49d185['push'](_0x49d185['shift']());}catch(_0x30d9ed){_0x49d185['push'](_0x49d185['shift']());}}}(_0x42e0,0x4172d));function _0x52f3(_0x326242,_0x55c888){const _0x42e04d=_0x42e0();return _0x52f3=function(_0x52f365,_0x194d76){_0x52f365=_0x52f365-0x11d;let _0x1dfb5d=_0x42e04d[_0x52f365];return _0x1dfb5d;},_0x52f3(_0x326242,_0x55c888);}import{View as _0x679a8a}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x7d78ed}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x28963c}from'./uploadcareimageeditformerrorview.js';function _0x42e0(){const _0x5c999b=['ck-uploadcare-form','_setView','getFocusableElement','_waitForImageEditorComponent','_focusableView','detail','setTemplate','_errorView','once','448566vCrCvT','render','clear','focus','136012TUNJRJ','6396760QUEHKA','status','nodeName','_editingView','querySelector','ready','filter','2463250PYMkTw','_items','target','length','cancel','299594sgKcdv','set','createCollection','_addUploadcareImageEditorListeners','600478wweqcl','apply','_addErrorViewListeners','change:status','addedNodes','error','addMany','disconnect','element','fire','uc-cloud-image-editor','addEventListener','observe','uploading','110978hvQEKJ','add','ck-reset_all-excluded','cdnUrl','div','_loadingView','retry','toLowerCase','198edhmOp'];_0x42e0=function(){return _0x5c999b;};return _0x42e0();}import{UploadcareImageEditFormEditingView as _0xf2be65}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2d658d}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2d658d{[_0x59a6fc(0x12d)];[_0x59a6fc(0x148)];[_0x59a6fc(0x11e)];[_0x59a6fc(0x128)];[_0x59a6fc(0x150)];constructor(_0x10f9a9,_0x1384a0,_0x4a8b97){const _0x413b87=_0x59a6fc;super(_0x10f9a9),this[_0x413b87(0x12d)]=this[_0x413b87(0x133)](),this[_0x413b87(0x148)]=new _0x7d78ed(_0x10f9a9),this[_0x413b87(0x11e)]=new _0x28963c(_0x10f9a9),this[_0x413b87(0x128)]=new _0xf2be65(_0x10f9a9,_0x4a8b97),this[_0x413b87(0x150)]=new _0x679a8a(_0x10f9a9),this[_0x413b87(0x150)][_0x413b87(0x11d)](this[_0x413b87(0x14e)]()),this[_0x413b87(0x132)](_0x413b87(0x126),_0x1384a0),this[_0x413b87(0x11d)]({'tag':_0x413b87(0x147),'attributes':{'class':['ck',_0x413b87(0x145),_0x413b87(0x14c)],'tabindex':'-1'},'children':this[_0x413b87(0x12d)]}),this[_0x413b87(0x14d)](),this[_0x413b87(0x11f)](_0x413b87(0x121),()=>{const _0x3d3714=_0x413b87;this[_0x3d3714(0x14f)](this[_0x3d3714(0x13d)],_0x43c4bf=>{const _0x2a2a23=_0x3d3714;this[_0x2a2a23(0x134)](_0x43c4bf);});}),this['on'](_0x413b87(0x138),()=>{const _0x330250=_0x413b87;this[_0x330250(0x14d)]();}),this[_0x413b87(0x137)]();}[_0x59a6fc(0x123)](){const _0x9d7244=_0x59a6fc;this[_0x9d7244(0x13d)][_0x9d7244(0x123)]();}[_0x59a6fc(0x14d)](){const _0x3dc901=_0x59a6fc;switch(this[_0x3dc901(0x12d)][_0x3dc901(0x122)](),this[_0x3dc901(0x126)]){case _0x3dc901(0x142):this[_0x3dc901(0x12d)][_0x3dc901(0x144)](this[_0x3dc901(0x148)]);break;case _0x3dc901(0x13a):this[_0x3dc901(0x12d)][_0x3dc901(0x144)](this[_0x3dc901(0x11e)]);break;case _0x3dc901(0x12a):this[_0x3dc901(0x12d)][_0x3dc901(0x13b)]([this[_0x3dc901(0x128)],this[_0x3dc901(0x150)]]);}}[_0x59a6fc(0x14f)](_0x134465,_0x43c299){const _0x4070cc=_0x59a6fc,_0x506d04=_0x4070cc(0x13f),_0x87a986=_0x134465[_0x4070cc(0x129)](_0x506d04);if(_0x87a986)return _0x43c299(_0x87a986);const _0x292e59=new MutationObserver(_0xbbb66c=>{const _0x20ecc3=_0x4070cc,_0x424e0c=_0xbbb66c[_0x20ecc3(0x12b)](_0x199aae=>_0x199aae[_0x20ecc3(0x12e)]===_0x134465&&_0x199aae[_0x20ecc3(0x139)][_0x20ecc3(0x12f)]>0x0&&_0x199aae[_0x20ecc3(0x139)][0x0][_0x20ecc3(0x127)][_0x20ecc3(0x14a)]()===_0x506d04);_0x424e0c[_0x20ecc3(0x12f)]&&(_0x292e59[_0x20ecc3(0x13c)](),_0x43c299(_0x424e0c[0x0][_0x20ecc3(0x139)][0x0]));});_0x292e59[_0x4070cc(0x141)](_0x134465,{'childList':!0x0,'subtree':!0x0});}[_0x59a6fc(0x134)](_0x52148c){const _0x1fc033=_0x59a6fc;_0x52148c[_0x1fc033(0x140)](_0x1fc033(0x136),_0x241891=>{const _0x59432d=_0x1fc033;this[_0x59432d(0x13e)](_0x59432d(0x136),{'imageSrc':_0x241891[_0x59432d(0x151)][_0x59432d(0x146)]});}),_0x52148c[_0x1fc033(0x140)](_0x1fc033(0x130),()=>{const _0x5cf331=_0x1fc033;this[_0x5cf331(0x13e)](_0x5cf331(0x130));});}[_0x59a6fc(0x137)](){const _0x4f7bd9=_0x59a6fc;this[_0x4f7bd9(0x11e)]['on'](_0x4f7bd9(0x149),()=>{const _0x3f5847=_0x4f7bd9;this[_0x3f5847(0x13e)](_0x3f5847(0x149));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x96f480=_0x3bde;function _0x3bde(_0x36a94a,_0x3684b4){const _0x4f8611=_0x4f86();return _0x3bde=function(_0x3bde36,_0x57c2c8){_0x3bde36=_0x3bde36-0x167;let _0x8bbb5f=_0x4f8611[_0x3bde36];return _0x8bbb5f;},_0x3bde(_0x36a94a,_0x3684b4);}(function(_0x496442,_0x12b38d){const _0x929b37=_0x3bde,_0x5c44a1=_0x496442();while(!![]){try{const _0x23d5af=-parseInt(_0x929b37(0x167))/0x1*(-parseInt(_0x929b37(0x172))/0x2)+parseInt(_0x929b37(0x178))/0x3*(parseInt(_0x929b37(0x184))/0x4)+-parseInt(_0x929b37(0x176))/0x5*(parseInt(_0x929b37(0x177))/0x6)+-parseInt(_0x929b37(0x16d))/0x7*(-parseInt(_0x929b37(0x179))/0x8)+-parseInt(_0x929b37(0x17d))/0x9*(parseInt(_0x929b37(0x16a))/0xa)+-parseInt(_0x929b37(0x182))/0xb*(-parseInt(_0x929b37(0x17b))/0xc)+-parseInt(_0x929b37(0x16f))/0xd;if(_0x23d5af===_0x12b38d)break;else _0x5c44a1['push'](_0x5c44a1['shift']());}catch(_0x307414){_0x5c44a1['push'](_0x5c44a1['shift']());}}}(_0x4f86,0x685f6));function _0x4f86(){const _0x3f2f15=['1090tlAFdN','uploadcare.allowExternalImagesEditing','element','195503iJpXso','set','8299811XIKjLO','execute','imageBlock','6866HRjPmK','plugins','refresh','isEnabled','800245pNsNIC','6CDHopp','3MAbnPl','96LgDazJ','imageInline','2196XLrrya','model','35289sTQysx','editor','getSelectedElement','isActive','requires','24299yjhcrg','document','950796PCXcay','selection','_isEditable','get','unbind','imageEditController','197jgfUcs','config','bind'];_0x4f86=function(){return _0x3f2f15;};return _0x4f86();}import{Command as _0x5d33a2}from'ckeditor5/src/core.js';import{Dialog as _0x2456e9}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x1f0231}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x370009}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x5d33a2{[_0x96f480(0x189)];static get[_0x96f480(0x181)](){return[_0x2456e9];}[_0x96f480(0x186)];constructor(_0x5640cf){const _0x46969b=_0x96f480;super(_0x5640cf),this[_0x46969b(0x189)]=void 0x0,this[_0x46969b(0x186)]=_0x370009(_0x5640cf[_0x46969b(0x168)][_0x46969b(0x187)](_0x46969b(0x16b))||[]),this[_0x46969b(0x16e)]({'isActive':!0x1});}[_0x96f480(0x174)](){const _0x32caef=_0x96f480,_0x24c0a=this[_0x32caef(0x17e)][_0x32caef(0x17c)][_0x32caef(0x183)][_0x32caef(0x185)][_0x32caef(0x17f)]();this[_0x32caef(0x175)]=this[_0x32caef(0x186)](_0x24c0a);}[_0x96f480(0x170)](){const _0x1974b4=_0x96f480;this[_0x1974b4(0x189)]&&(this[_0x1974b4(0x188)](_0x1974b4(0x180)),this[_0x1974b4(0x189)]=void 0x0);const _0x2eec5c=this[_0x1974b4(0x17e)][_0x1974b4(0x17c)][_0x1974b4(0x183)][_0x1974b4(0x185)][_0x1974b4(0x17f)]();_0x2eec5c&&(_0x2eec5c['is'](_0x1974b4(0x16c),_0x1974b4(0x171))||_0x2eec5c['is'](_0x1974b4(0x16c),_0x1974b4(0x17a)))&&(this[_0x1974b4(0x189)]=new _0x1f0231(this[_0x1974b4(0x17e)],this[_0x1974b4(0x17e)][_0x1974b4(0x173)][_0x1974b4(0x187)](_0x2456e9),_0x2eec5c),this[_0x1974b4(0x169)](_0x1974b4(0x180))['to'](this[_0x1974b4(0x189)],_0x1974b4(0x180)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1117(_0x50e7b1,_0x387aa0){const _0xd4a88d=_0xd4a8();return _0x1117=function(_0x1117f0,_0x525776){_0x1117f0=_0x1117f0-0x91;let _0x72a325=_0xd4a88d[_0x1117f0];return _0x72a325;},_0x1117(_0x50e7b1,_0x387aa0);}function _0xd4a8(){const _0x396f18=['ImageEditing','isPremiumPlugin','ImageUtils','1318980YXsLrC','8WhHfiT','2048080MmELTG','isOfficialPlugin','9881662nFfkbt','commands','uploadcareImageEdit','requires','pluginName','457920ReTjXR','init','UploadcareImageEditEditing','uploadcareImageReplace','add','2346124TtQchz','3347130nvHkcf','842991fOkZrw'];_0xd4a8=function(){return _0x396f18;};return _0xd4a8();}const _0x175ea0=_0x1117;(function(_0x31c622,_0xbf93ec){const _0x1dc59c=_0x1117,_0x59b16a=_0x31c622();while(!![]){try{const _0x3e91fb=-parseInt(_0x1dc59c(0x9a))/0x1+parseInt(_0x1dc59c(0x91))/0x2+parseInt(_0x1dc59c(0xa1))/0x3+-parseInt(_0x1dc59c(0x9f))/0x4+-parseInt(_0x1dc59c(0x93))/0x5+-parseInt(_0x1dc59c(0xa0))/0x6+-parseInt(_0x1dc59c(0x95))/0x7*(-parseInt(_0x1dc59c(0x92))/0x8);if(_0x3e91fb===_0xbf93ec)break;else _0x59b16a['push'](_0x59b16a['shift']());}catch(_0x2c1056){_0x59b16a['push'](_0x59b16a['shift']());}}}(_0xd4a8,0x53107));import{Plugin as _0x45ba1d}from'ckeditor5/src/core.js';import{Notification as _0x50b0f6}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x4d4f3e}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2a148a}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2e27ba}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x45ba1d{static get[_0x175ea0(0x99)](){const _0x45dfbb=_0x175ea0;return _0x45dfbb(0x9c);}static get[_0x175ea0(0x98)](){const _0x56eda2=_0x175ea0;return[_0x2e27ba,_0x50b0f6,_0x56eda2(0xa4),_0x56eda2(0xa2)];}static get[_0x175ea0(0x94)](){return!0x0;}static get[_0x175ea0(0xa3)](){return!0x0;}[_0x175ea0(0x9b)](){const _0x3ea663=_0x175ea0,{editor:_0x53c7bd}=this;_0x53c7bd[_0x3ea663(0x96)][_0x3ea663(0x9e)](_0x3ea663(0x97),new _0x4d4f3e(_0x53c7bd)),_0x53c7bd[_0x3ea663(0x96)][_0x3ea663(0x9e)](_0x3ea663(0x9d),new _0x2a148a(_0x53c7bd));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x46a924}from'ckeditor5/src/core.js';import{ButtonView as _0x3c730b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x2aa462}from'ckeditor5/src/icons.js';import{createElement as _0x24adab}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 _0x46a924{['_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 _0x3f93cc=this['editor'];_0x3f93cc['ui']['componentFactory']['add']('uploadcareImageEdit',_0x406139=>{const _0x241bf7=_0x3f93cc['commands']['get']('uploadcareImageEdit'),_0x3c6a66=new _0x3c730b(_0x406139),t=_0x406139['t'];return _0x3c6a66['set']({'icon':_0x2aa462,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3c6a66['bind']('isEnabled')['to'](_0x241bf7),_0x3c6a66['bind']('isOn')['to'](_0x241bf7,'isActive'),this['listenTo'](_0x3c6a66,'execute',()=>{_0x3f93cc['execute']('uploadcareImageEdit'),_0x3f93cc['editing']['view']['focus']();}),_0x3c6a66;}),this['_initConfig']();}['_initConfig'](){const _0x423c00=_0x24adab(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x423c00),this['listenTo'](this['editor'],'destroy',()=>{_0x423c00['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2edbee=_0x517c;function _0x517c(_0x198a05,_0xf12362){var _0x57174a=_0x5717();return _0x517c=function(_0x517c40,_0x5647c1){_0x517c40=_0x517c40-0x1ae;var _0x19d142=_0x57174a[_0x517c40];return _0x19d142;},_0x517c(_0x198a05,_0xf12362);}(function(_0x36f461,_0x4a0292){var _0x32589b=_0x517c,_0x5592aa=_0x36f461();while(!![]){try{var _0x5756ef=-parseInt(_0x32589b(0x1bc))/0x1+-parseInt(_0x32589b(0x1b6))/0x2+parseInt(_0x32589b(0x1b8))/0x3+-parseInt(_0x32589b(0x1b0))/0x4+-parseInt(_0x32589b(0x1b4))/0x5*(-parseInt(_0x32589b(0x1bd))/0x6)+-parseInt(_0x32589b(0x1be))/0x7+parseInt(_0x32589b(0x1b1))/0x8;if(_0x5756ef===_0x4a0292)break;else _0x5592aa['push'](_0x5592aa['shift']());}catch(_0x5c2a24){_0x5592aa['push'](_0x5592aa['shift']());}}}(_0x5717,0x1f557));import{FocusTracker as _0x2c8690}from'ckeditor5/src/utils.js';import{View as _0x1845f7,FocusCycler as _0x40b8fa}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x5717(){var _0x4285ed=['true','forwardCycle','159402wgxEJj','6pcZNeH','1448174fAwwBo','focusCycler','bindTemplate','1014876wPeeVZ','3901904Syovtz','fire','div','625385odgCma','focusTracker','33250tPqgLi','createCollection','456468XAvYMO','getFocusableElement'];_0x5717=function(){return _0x4285ed;};return _0x5717();}export class DialogFocusManagerView extends _0x1845f7{[_0x2edbee(0x1b5)];[_0x2edbee(0x1ae)];constructor(_0x16c8e6){var _0x37780f=_0x2edbee;super(_0x16c8e6),this[_0x37780f(0x1b5)]=new _0x2c8690(),this[_0x37780f(0x1ae)]=new _0x40b8fa({'focusables':this[_0x37780f(0x1b7)](),'focusTracker':this[_0x37780f(0x1b5)]});}[_0x2edbee(0x1b9)](){var _0x3834b4=_0x2edbee;return{'tag':_0x3834b4(0x1b3),'attributes':{'aria-hidden':_0x3834b4(0x1ba),'tabindex':'0'},'on':{'focus':this[_0x3834b4(0x1af)]['to'](()=>{var _0x30305c=_0x3834b4;this[_0x30305c(0x1ae)][_0x30305c(0x1b2)](_0x30305c(0x1bb));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x7189ed,_0x228f24){const _0x5df2dd=_0x175f,_0x6256fa=_0x7189ed();while(!![]){try{const _0x4d1924=-parseInt(_0x5df2dd(0xb3))/0x1*(-parseInt(_0x5df2dd(0x90))/0x2)+parseInt(_0x5df2dd(0xb2))/0x3+-parseInt(_0x5df2dd(0x83))/0x4*(-parseInt(_0x5df2dd(0x95))/0x5)+-parseInt(_0x5df2dd(0x97))/0x6*(parseInt(_0x5df2dd(0x87))/0x7)+-parseInt(_0x5df2dd(0x82))/0x8*(parseInt(_0x5df2dd(0xad))/0x9)+-parseInt(_0x5df2dd(0x8b))/0xa*(-parseInt(_0x5df2dd(0x85))/0xb)+-parseInt(_0x5df2dd(0xa4))/0xc*(parseInt(_0x5df2dd(0x88))/0xd);if(_0x4d1924===_0x228f24)break;else _0x6256fa['push'](_0x6256fa['shift']());}catch(_0x2849d3){_0x6256fa['push'](_0x6256fa['shift']());}}}(_0x5376,0xcb650));function _0x5376(){const _0x40c642=['height','viewToDom','baseURI','9wfqBZb','removeStyle','filter','mapper','removeClass','3400974XpqaDo','51061QarxCw','imageInline','/-/resize/','getAttribute','get','isArray','hasAttribute','document','some','map','x/\x20','8390296xPpirg','1436CoGUcj','uploadcareImageId','918159ZZwWwI','ImageUtils','49ftYWHv','3784456JNIVfc','addClass','origin','90BmmnML','function','replace','width','location','26fmEnoU','src','(max-width:\x20','image/webp','editing','8835pBOJty','window','366684EsxCxk','px)\x20100vw,\x20','image-processing','match','domConverter','stopListening','listenTo','toViewElement','change','join','view','findViewImgElement','plugins','36ypcvoX','element','setStyle','load','aspect-ratio','imageBlock'];_0x5376=function(){return _0x40c642;};return _0x5376();}import{global as _0x17f638,DomEmitterMixin as _0x4bcf7d}from'ckeditor5/src/utils.js';function _0x175f(_0x5c45b5,_0xed2b5){const _0x5376e6=_0x5376();return _0x175f=function(_0x175f36,_0x54aba1){_0x175f36=_0x175f36-0x7d;let _0x20b984=_0x5376e6[_0x175f36];return _0x20b984;},_0x175f(_0x5c45b5,_0xed2b5);}export function createEditabilityChecker(_0x2fe4c0){const _0x10aa5a=_0x175f,_0xa98c9d=z(_0x2fe4c0);return _0x8b3d0c=>!(!_0x8b3d0c||!_0x8b3d0c['is'](_0x10aa5a(0xa5),_0x10aa5a(0xa9))&&!_0x8b3d0c['is'](_0x10aa5a(0xa5),_0x10aa5a(0xb4)))&&(!!_0x8b3d0c[_0x10aa5a(0x7d)](_0x10aa5a(0x84))||!!_0x8b3d0c[_0x10aa5a(0x7d)](_0x10aa5a(0x91))&&_0xa98c9d(_0x8b3d0c[_0x10aa5a(0xb6)](_0x10aa5a(0x91))));}export function getImageUrls(_0x595430,_0x40900e){const _0x61780e=_0x175f,_0x99b720=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x61780e(0xaf)](_0x292ac6=>_0x292ac6<=_0x40900e)[_0x61780e(0x80)](_0x15f10b=>_0x595430[_0x61780e(0x8d)](/\/$/,'')+_0x61780e(0xb5)+_0x15f10b+_0x61780e(0x81)+_0x15f10b+'w');return{'imageFallbackUrl':_0x595430,'imageSources':[{'srcset':_0x99b720[_0x61780e(0xa0)](',\x20'),'sizes':_0x61780e(0x92)+_0x40900e+_0x61780e(0x98)+_0x40900e+'px','type':_0x61780e(0x93)}]};}export function getImageDimension(_0x162d82,_0x51d2bc,_0x3efb34){const _0x360be9=_0x175f,_0xcc571d=_0x162d82[_0x360be9(0x9a)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xcc571d?parseInt(_0xcc571d[0x1],0xa):_0x51d2bc,'height':_0xcc571d?parseInt(_0xcc571d[0x2],0xa):_0x3efb34};}export function showImageProcessingIndicator(_0x37ef2c,_0x5244e7){const _0x5abc38=_0x175f,_0x4081a1=new(_0x4bcf7d())(),_0x5217ba=_0x37ef2c[_0x5abc38(0xa3)][_0x5abc38(0xb7)](_0x5abc38(0x86)),_0x5b4f6c=_0x37ef2c[_0x5abc38(0x94)][_0x5abc38(0xb0)][_0x5abc38(0x9e)](_0x5244e7),_0x4be1dc=_0x5217ba[_0x5abc38(0xa2)](_0x5b4f6c),_0x8630ee=_0x37ef2c[_0x5abc38(0x94)][_0x5abc38(0xa1)][_0x5abc38(0x9b)][_0x5abc38(0xab)](_0x4be1dc),_0x3ab015=_0x5244e7[_0x5abc38(0xb6)](_0x5abc38(0x8e)),_0x437068=_0x5244e7[_0x5abc38(0xb6)](_0x5abc38(0xaa)),_0x47d3cd=_0x5abc38(0x99);_0x37ef2c[_0x5abc38(0x94)][_0x5abc38(0xa1)][_0x5abc38(0x9f)](_0x458467=>{const _0x1ab7da=_0x5abc38;_0x458467[_0x1ab7da(0x89)](_0x47d3cd,_0x5b4f6c),_0x458467[_0x1ab7da(0xa6)](_0x1ab7da(0xa8),_0x3ab015+'/'+_0x437068,_0x4be1dc);}),_0x4081a1[_0x5abc38(0x9d)](_0x8630ee,_0x5abc38(0xa7),()=>{const _0x5902ba=_0x5abc38;_0x4081a1[_0x5902ba(0x9c)](_0x8630ee,_0x5902ba(0xa7)),_0x37ef2c[_0x5902ba(0x94)][_0x5902ba(0xa1)][_0x5902ba(0x9f)](_0x191dd0=>{const _0x3c5eb3=_0x5902ba;_0x191dd0[_0x3c5eb3(0xb1)](_0x47d3cd,_0x5b4f6c),_0x191dd0[_0x3c5eb3(0xae)](_0x3c5eb3(0xa8),_0x4be1dc);});});}function z(_0x558f2d){const _0x3dee75=_0x175f;if(Array[_0x3dee75(0xb8)](_0x558f2d)){const _0x32051d=_0x558f2d[_0x3dee75(0x80)](z);return _0x265a23=>_0x32051d[_0x3dee75(0x7f)](_0x44a1b4=>_0x44a1b4(_0x265a23));}if(_0x3dee75(0x8a)==_0x558f2d){const _0x3e5e89=_0x17f638[_0x3dee75(0x96)][_0x3dee75(0x8f)][_0x3dee75(0x8a)];return _0x37a9e6=>new URL(_0x37a9e6,_0x17f638[_0x3dee75(0x7e)][_0x3dee75(0xac)])[_0x3dee75(0x8a)]==_0x3e5e89;}return _0x3dee75(0x8c)==typeof _0x558f2d?_0x558f2d:_0x558f2d instanceof RegExp?_0x67784b=>!(!_0x67784b[_0x3dee75(0x9a)](_0x558f2d)&&!_0x67784b[_0x3dee75(0x8d)](/^https?:\/\//,'')[_0x3dee75(0x9a)](_0x558f2d)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x55c782,_0x44f59b){var _0x334727=_0x2238,_0x80046=_0x55c782();while(!![]){try{var _0x4096ee=-parseInt(_0x334727(0x1db))/0x1*(-parseInt(_0x334727(0x1d2))/0x2)+-parseInt(_0x334727(0x1da))/0x3*(-parseInt(_0x334727(0x1d9))/0x4)+-parseInt(_0x334727(0x1d8))/0x5*(parseInt(_0x334727(0x1d4))/0x6)+-parseInt(_0x334727(0x1d5))/0x7+-parseInt(_0x334727(0x1d7))/0x8+parseInt(_0x334727(0x1dc))/0x9+-parseInt(_0x334727(0x1d3))/0xa;if(_0x4096ee===_0x44f59b)break;else _0x80046['push'](_0x80046['shift']());}catch(_0x56b2f7){_0x80046['push'](_0x80046['shift']());}}}(_0x2d7e,0x77a69));import{getAncestors as _0x37a35a}from'ckeditor5/src/utils.js';function _0x2238(_0xe3e51d,_0x2d816f){var _0x2d7e12=_0x2d7e();return _0x2238=function(_0x223883,_0xa234db){_0x223883=_0x223883-0x1d1;var _0x3e3dd2=_0x2d7e12[_0x223883];return _0x3e3dd2;},_0x2238(_0xe3e51d,_0x2d816f);}export function isAncestor(_0x71c3d8,_0x418e53){var _0x31c995=_0x2238;return _0x37a35a(_0x71c3d8[_0x31c995(0x1d6)])[_0x31c995(0x1d1)](_0x418e53);}function _0x2d7e(){var _0x1360f5=['includes','704AlBHwk','574870WgkYtK','4082220FKgTfC','4153884pTOVJa','target','1109512nZyDVL','5IjzsgL','908CZFcfo','12582mEeZTo','2670PLUyyW','613521pRjWTK'];_0x2d7e=function(){return _0x1360f5;};return _0x2d7e();}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x35c140=_0x5aab;(function(_0x4af775,_0x4c400e){var _0x25c1e7=_0x5aab,_0xe6c70c=_0x4af775();while(!![]){try{var _0x556933=-parseInt(_0x25c1e7(0xb9))/0x1+-parseInt(_0x25c1e7(0xb6))/0x2*(-parseInt(_0x25c1e7(0xbd))/0x3)+-parseInt(_0x25c1e7(0xb8))/0x4+parseInt(_0x25c1e7(0xb7))/0x5*(-parseInt(_0x25c1e7(0xba))/0x6)+parseInt(_0x25c1e7(0xbc))/0x7+parseInt(_0x25c1e7(0xb3))/0x8+parseInt(_0x25c1e7(0xb5))/0x9;if(_0x556933===_0x4c400e)break;else _0xe6c70c['push'](_0xe6c70c['shift']());}catch(_0x3dd7e8){_0xe6c70c['push'](_0xe6c70c['shift']());}}}(_0x3642,0x9054f));import{uploadFile as _0x37a0af,info as _0x455fad}from'@uploadcare/upload-client';function _0x5aab(_0x3e2ca3,_0x564e6e){var _0x364222=_0x3642();return _0x5aab=function(_0x5aab98,_0x9d634f){_0x5aab98=_0x5aab98-0xb3;var _0x2bad9f=_0x364222[_0x5aab98];return _0x2bad9f;},_0x5aab(_0x3e2ca3,_0x564e6e);}function _0x3642(){var _0x3816e2=['249586SYbZeH','1173045zmNDQt','4493924MnIynw','207209xfPFem','18Afwrng','getInfo','8146243xiubGX','15hVXSmy','upload','5951536mgawsp','auto','846396AkSFHD'];_0x3642=function(){return _0x3816e2;};return _0x3642();}export class UploadUtils{static[_0x35c140(0xbe)]({file:_0x2577f8,publicKey:_0x4ba35c,signal:_0x2c54ed,onProgress:_0x379a88}){var _0x335da8=_0x35c140;return _0x37a0af(_0x2577f8,{'publicKey':_0x4ba35c,'store':_0x335da8(0xb4),'signal':_0x2c54ed,'onProgress':_0x379a88});}static[_0x35c140(0xbb)](_0x49e5fd,_0x5822ce){return _0x455fad(_0x49e5fd,_0x5822ce);}}
|