@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251126.0 → 0.0.0-nightly-20251127.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 _0x5e87b4,View as _0x164e03}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x164e03{constructor(_0x1f2206){super(_0x1f2206);const t=_0x1f2206['t'],_0x5cb8a1=this['bindTemplate'],_0x2ff7d5=new _0x5e87b4();_0x2ff7d5['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':[_0x2ff7d5,{'text':_0x5cb8a1['to']('imageUploadProgress',_0x34b92e=>t('Loading\x20image...')+'\x20('+(_0x34b92e||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 _0x8f2179=_0xe557;function _0xe557(_0x372b07,_0x7df4d2){const _0x176a09=_0x176a();return _0xe557=function(_0xe5572a,_0x9ae341){_0xe5572a=_0xe5572a-0x1b5;let _0x1b44f1=_0x176a09[_0xe5572a];return _0x1b44f1;},_0xe557(_0x372b07,_0x7df4d2);}(function(_0x33e142,_0x3ea574){const _0x2e631c=_0xe557,_0x2f9454=_0x33e142();while(!![]){try{const _0x3bd6d1=-parseInt(_0x2e631c(0x1b9))/0x1*(-parseInt(_0x2e631c(0x1d4))/0x2)+parseInt(_0x2e631c(0x1bf))/0x3+parseInt(_0x2e631c(0x1c5))/0x4+parseInt(_0x2e631c(0x1cd))/0x5+parseInt(_0x2e631c(0x1d9))/0x6+parseInt(_0x2e631c(0x1bc))/0x7*(-parseInt(_0x2e631c(0x1e2))/0x8)+-parseInt(_0x2e631c(0x1c6))/0x9*(parseInt(_0x2e631c(0x1be))/0xa);if(_0x3bd6d1===_0x3ea574)break;else _0x2f9454['push'](_0x2f9454['shift']());}catch(_0x197a40){_0x2f9454['push'](_0x2f9454['shift']());}}}(_0x176a,0x88844));import{View as _0x3d4128}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x217d25}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x243c25}from'./uploadcareimageeditformerrorview.js';function _0x176a(){const _0x31b940=['ready','render','clear','toLowerCase','addedNodes','uc-cloud-image-editor','createCollection','cdnUrl','retry','2qIfODi','nodeName','add','7hvKdWp','querySelector','260tFnfwE','3276255OKatVw','set','div','once','element','_errorView','2442028ahjadc','1067076FPTnuQ','focus','uploading','addEventListener','ck-uploadcare-form','target','_loadingView','2120890ttOGnG','ck-reset_all-excluded','_addErrorViewListeners','change:status','detail','_addUploadcareImageEditorListeners','_setView','967418GQnfKm','_focusableView','filter','cancel','_items','3500406wnzIQT','length','apply','_waitForImageEditorComponent','fire','disconnect','error','getFocusableElement','addMany','286024GdkxdS','setTemplate','observe','_editingView','status'];_0x176a=function(){return _0x31b940;};return _0x176a();}import{UploadcareImageEditFormEditingView as _0x518f10}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x83a42b}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x83a42b{[_0x8f2179(0x1d8)];[_0x8f2179(0x1cc)];[_0x8f2179(0x1c4)];[_0x8f2179(0x1e5)];[_0x8f2179(0x1d5)];constructor(_0x37b41f,_0xbe3a7e,_0x208ffe){const _0x42c35c=_0x8f2179;super(_0x37b41f),this[_0x42c35c(0x1d8)]=this[_0x42c35c(0x1b6)](),this[_0x42c35c(0x1cc)]=new _0x217d25(_0x37b41f),this[_0x42c35c(0x1c4)]=new _0x243c25(_0x37b41f),this[_0x42c35c(0x1e5)]=new _0x518f10(_0x37b41f,_0x208ffe),this[_0x42c35c(0x1d5)]=new _0x3d4128(_0x37b41f),this[_0x42c35c(0x1d5)][_0x42c35c(0x1e3)](this[_0x42c35c(0x1e0)]()),this[_0x42c35c(0x1c0)](_0x42c35c(0x1e6),_0xbe3a7e),this[_0x42c35c(0x1e3)]({'tag':_0x42c35c(0x1c1),'attributes':{'class':['ck',_0x42c35c(0x1ce),_0x42c35c(0x1ca)],'tabindex':'-1'},'children':this[_0x42c35c(0x1d8)]}),this[_0x42c35c(0x1d3)](),this[_0x42c35c(0x1c2)](_0x42c35c(0x1e8),()=>{const _0x1d0cf7=_0x42c35c;this[_0x1d0cf7(0x1dc)](this[_0x1d0cf7(0x1c3)],_0x327b0a=>{const _0x5866e1=_0x1d0cf7;this[_0x5866e1(0x1d2)](_0x327b0a);});}),this['on'](_0x42c35c(0x1d0),()=>{const _0x56c7cd=_0x42c35c;this[_0x56c7cd(0x1d3)]();}),this[_0x42c35c(0x1cf)]();}[_0x8f2179(0x1c7)](){const _0x2fdc60=_0x8f2179;this[_0x2fdc60(0x1c3)][_0x2fdc60(0x1c7)]();}[_0x8f2179(0x1d3)](){const _0x1cd851=_0x8f2179;switch(this[_0x1cd851(0x1d8)][_0x1cd851(0x1e9)](),this[_0x1cd851(0x1e6)]){case _0x1cd851(0x1c8):this[_0x1cd851(0x1d8)][_0x1cd851(0x1bb)](this[_0x1cd851(0x1cc)]);break;case _0x1cd851(0x1df):this[_0x1cd851(0x1d8)][_0x1cd851(0x1bb)](this[_0x1cd851(0x1c4)]);break;case _0x1cd851(0x1e7):this[_0x1cd851(0x1d8)][_0x1cd851(0x1e1)]([this[_0x1cd851(0x1e5)],this[_0x1cd851(0x1d5)]]);}}[_0x8f2179(0x1dc)](_0x7db01f,_0x2d593b){const _0x3d9cf6=_0x8f2179,_0x44a0f5=_0x3d9cf6(0x1b5),_0x1215bf=_0x7db01f[_0x3d9cf6(0x1bd)](_0x44a0f5);if(_0x1215bf)return _0x2d593b(_0x1215bf);const _0x592cfc=new MutationObserver(_0x1b8333=>{const _0x338982=_0x3d9cf6,_0x5e4167=_0x1b8333[_0x338982(0x1d6)](_0x24ff79=>_0x24ff79[_0x338982(0x1cb)]===_0x7db01f&&_0x24ff79[_0x338982(0x1eb)][_0x338982(0x1da)]>0x0&&_0x24ff79[_0x338982(0x1eb)][0x0][_0x338982(0x1ba)][_0x338982(0x1ea)]()===_0x44a0f5);_0x5e4167[_0x338982(0x1da)]&&(_0x592cfc[_0x338982(0x1de)](),_0x2d593b(_0x5e4167[0x0][_0x338982(0x1eb)][0x0]));});_0x592cfc[_0x3d9cf6(0x1e4)](_0x7db01f,{'childList':!0x0,'subtree':!0x0});}[_0x8f2179(0x1d2)](_0x3ab6b4){const _0x13ab52=_0x8f2179;_0x3ab6b4[_0x13ab52(0x1c9)](_0x13ab52(0x1db),_0x35a66e=>{const _0x4db2a0=_0x13ab52;this[_0x4db2a0(0x1dd)](_0x4db2a0(0x1db),{'imageSrc':_0x35a66e[_0x4db2a0(0x1d1)][_0x4db2a0(0x1b7)]});}),_0x3ab6b4[_0x13ab52(0x1c9)](_0x13ab52(0x1d7),()=>{const _0x54a30c=_0x13ab52;this[_0x54a30c(0x1dd)](_0x54a30c(0x1d7));});}[_0x8f2179(0x1cf)](){const _0x4006f0=_0x8f2179;this[_0x4006f0(0x1c4)]['on'](_0x4006f0(0x1b8),()=>{const _0x414f3b=_0x4006f0;this[_0x414f3b(0x1dd)](_0x414f3b(0x1b8));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x46cd(){const _0x3a0fc8=['model','getSelectedElement','289600yaRSwT','5102328ZQCGZF','674991SEJIsK','get','plugins','1250SHdXnD','2ZYzZIW','uploadcare.allowExternalImagesEditing','editor','imageEditController','bind','requires','504pbmlVu','config','isActive','selection','imageBlock','680943vWvaSM','refresh','_isEditable','4XxpUIc','imageInline','execute','9800ngkjnl','isEnabled','unbind','34331CbAUia','199583VnPLKe','element','set','24ccKopH','document'];_0x46cd=function(){return _0x3a0fc8;};return _0x46cd();}const _0x35a759=_0x1381;(function(_0x16dc44,_0x5b0551){const _0x574e09=_0x1381,_0x100a55=_0x16dc44();while(!![]){try{const _0x20db8d=-parseInt(_0x574e09(0xcb))/0x1*(-parseInt(_0x574e09(0xd8))/0x2)+-parseInt(_0x574e09(0xc1))/0x3*(-parseInt(_0x574e09(0xc4))/0x4)+parseInt(_0x574e09(0xd2))/0x5*(-parseInt(_0x574e09(0xce))/0x6)+parseInt(_0x574e09(0xc7))/0x7*(-parseInt(_0x574e09(0xbc))/0x8)+parseInt(_0x574e09(0xd4))/0x9+parseInt(_0x574e09(0xd7))/0xa*(-parseInt(_0x574e09(0xca))/0xb)+parseInt(_0x574e09(0xd3))/0xc;if(_0x20db8d===_0x5b0551)break;else _0x100a55['push'](_0x100a55['shift']());}catch(_0x112d8d){_0x100a55['push'](_0x100a55['shift']());}}}(_0x46cd,0x34eb0));import{Command as _0x51cae4}from'ckeditor5/src/core.js';import{Dialog as _0x133622}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x6e2f6f}from'./ui/uploadcareimageeditcontroller.js';function _0x1381(_0x58b753,_0x725a57){const _0x46cd5a=_0x46cd();return _0x1381=function(_0x1381f5,_0x4b4231){_0x1381f5=_0x1381f5-0xb7;let _0xae53c3=_0x46cd5a[_0x1381f5];return _0xae53c3;},_0x1381(_0x58b753,_0x725a57);}import{createEditabilityChecker as _0x44356f}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x51cae4{[_0x35a759(0xb9)];static get[_0x35a759(0xbb)](){return[_0x133622];}[_0x35a759(0xc3)];constructor(_0x308a8c){const _0x4ab916=_0x35a759;super(_0x308a8c),this[_0x4ab916(0xb9)]=void 0x0,this[_0x4ab916(0xc3)]=_0x44356f(_0x308a8c[_0x4ab916(0xbd)][_0x4ab916(0xd5)](_0x4ab916(0xb7))||[]),this[_0x4ab916(0xcd)]({'isActive':!0x1});}[_0x35a759(0xc2)](){const _0x87990c=_0x35a759,_0x1a5322=this[_0x87990c(0xb8)][_0x87990c(0xd0)][_0x87990c(0xcf)][_0x87990c(0xbf)][_0x87990c(0xd1)]();this[_0x87990c(0xc8)]=this[_0x87990c(0xc3)](_0x1a5322);}[_0x35a759(0xc6)](){const _0x34ed18=_0x35a759;this[_0x34ed18(0xb9)]&&(this[_0x34ed18(0xc9)](_0x34ed18(0xbe)),this[_0x34ed18(0xb9)]=void 0x0);const _0x2a0b2e=this[_0x34ed18(0xb8)][_0x34ed18(0xd0)][_0x34ed18(0xcf)][_0x34ed18(0xbf)][_0x34ed18(0xd1)]();_0x2a0b2e&&(_0x2a0b2e['is'](_0x34ed18(0xcc),_0x34ed18(0xc0))||_0x2a0b2e['is'](_0x34ed18(0xcc),_0x34ed18(0xc5)))&&(this[_0x34ed18(0xb9)]=new _0x6e2f6f(this[_0x34ed18(0xb8)],this[_0x34ed18(0xb8)][_0x34ed18(0xd6)][_0x34ed18(0xd5)](_0x133622),_0x2a0b2e),this[_0x34ed18(0xba)](_0x34ed18(0xbe))['to'](this[_0x34ed18(0xb9)],_0x34ed18(0xbe)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4b0aee=_0x3b9a;(function(_0x226bbe,_0x422d4f){const _0x388423=_0x3b9a,_0x49914a=_0x226bbe();while(!![]){try{const _0x341a21=parseInt(_0x388423(0x14e))/0x1*(-parseInt(_0x388423(0x14b))/0x2)+-parseInt(_0x388423(0x14f))/0x3+-parseInt(_0x388423(0x158))/0x4+parseInt(_0x388423(0x146))/0x5*(-parseInt(_0x388423(0x152))/0x6)+-parseInt(_0x388423(0x154))/0x7*(parseInt(_0x388423(0x14c))/0x8)+-parseInt(_0x388423(0x148))/0x9+-parseInt(_0x388423(0x150))/0xa*(-parseInt(_0x388423(0x155))/0xb);if(_0x341a21===_0x422d4f)break;else _0x49914a['push'](_0x49914a['shift']());}catch(_0x3ff308){_0x49914a['push'](_0x49914a['shift']());}}}(_0x3293,0x3d98b));import{Plugin as _0x4c7d2e}from'ckeditor5/src/core.js';import{Notification as _0xc78c79}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x488ed3}from'./uploadcareimageeditcommand.js';function _0x3b9a(_0x4cb9d7,_0x23734c){const _0x32935b=_0x3293();return _0x3b9a=function(_0x3b9a86,_0xa27943){_0x3b9a86=_0x3b9a86-0x142;let _0x2ba506=_0x32935b[_0x3b9a86];return _0x2ba506;},_0x3b9a(_0x4cb9d7,_0x23734c);}function _0x3293(){const _0x15afe6=['1bcIeNX','1143600NHwqAm','19463770QXxooP','ImageUtils','6CiVIFX','init','84sReHhj','11vkLmNR','isOfficialPlugin','isPremiumPlugin','1715220eSdddU','add','uploadcareImageReplace','ImageEditing','commands','340905ppLPIu','UploadcareImageEditEditing','1154457RYAnUG','requires','pluginName','466958WtgZkG','302760pOEbJm','uploadcareImageEdit'];_0x3293=function(){return _0x15afe6;};return _0x3293();}import{UploadcareImageReplaceCommand as _0x3d739e}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x5bd11b}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4c7d2e{static get[_0x4b0aee(0x14a)](){const _0x33d899=_0x4b0aee;return _0x33d899(0x147);}static get[_0x4b0aee(0x149)](){const _0x137325=_0x4b0aee;return[_0x5bd11b,_0xc78c79,_0x137325(0x151),_0x137325(0x144)];}static get[_0x4b0aee(0x156)](){return!0x0;}static get[_0x4b0aee(0x157)](){return!0x0;}[_0x4b0aee(0x153)](){const _0x1e8b63=_0x4b0aee,{editor:_0x198d46}=this;_0x198d46[_0x1e8b63(0x145)][_0x1e8b63(0x142)](_0x1e8b63(0x14d),new _0x488ed3(_0x198d46)),_0x198d46[_0x1e8b63(0x145)][_0x1e8b63(0x142)](_0x1e8b63(0x143),new _0x3d739e(_0x198d46));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1b3f06}from'ckeditor5/src/core.js';import{ButtonView as _0x303e64}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x30c793}from'ckeditor5/src/icons.js';import{createElement as _0x3a9b4d}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 _0x1b3f06{['_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 _0x27d3df=this['editor'];_0x27d3df['ui']['componentFactory']['add']('uploadcareImageEdit',_0x284ea4=>{const _0x3490b0=_0x27d3df['commands']['get']('uploadcareImageEdit'),_0x2d5633=new _0x303e64(_0x284ea4),t=_0x284ea4['t'];return _0x2d5633['set']({'icon':_0x30c793,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2d5633['bind']('isEnabled')['to'](_0x3490b0),_0x2d5633['bind']('isOn')['to'](_0x3490b0,'isActive'),this['listenTo'](_0x2d5633,'execute',()=>{_0x27d3df['execute']('uploadcareImageEdit'),_0x27d3df['editing']['view']['focus']();}),_0x2d5633;}),this['_initConfig']();}['_initConfig'](){const _0x31fb98=_0x3a9b4d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x31fb98),this['listenTo'](this['editor'],'destroy',()=>{_0x31fb98['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xc9db6a=_0x701b;function _0x701b(_0x3d4d1b,_0x21a033){var _0x3ae1b0=_0x3ae1();return _0x701b=function(_0x701bdf,_0x456457){_0x701bdf=_0x701bdf-0xab;var _0x53d32e=_0x3ae1b0[_0x701bdf];return _0x53d32e;},_0x701b(_0x3d4d1b,_0x21a033);}(function(_0x24058c,_0x2402b2){var _0x6ee60e=_0x701b,_0x3677ed=_0x24058c();while(!![]){try{var _0x159fbd=parseInt(_0x6ee60e(0xad))/0x1+parseInt(_0x6ee60e(0xb2))/0x2+-parseInt(_0x6ee60e(0xb7))/0x3*(parseInt(_0x6ee60e(0xac))/0x4)+parseInt(_0x6ee60e(0xb6))/0x5+-parseInt(_0x6ee60e(0xb3))/0x6+-parseInt(_0x6ee60e(0xb1))/0x7*(-parseInt(_0x6ee60e(0xb5))/0x8)+parseInt(_0x6ee60e(0xaf))/0x9*(-parseInt(_0x6ee60e(0xb9))/0xa);if(_0x159fbd===_0x2402b2)break;else _0x3677ed['push'](_0x3677ed['shift']());}catch(_0x1fd60f){_0x3677ed['push'](_0x3677ed['shift']());}}}(_0x3ae1,0xa3bc0));import{FocusTracker as _0x2ae569}from'ckeditor5/src/utils.js';import{View as _0x4b4f09,FocusCycler as _0x17e5ce}from'ckeditor5/src/ui.js';function _0x3ae1(){var _0x3b1216=['fire','191583yWTvlD','true','7BfdxHn','1984882GADquO','4885170NsFpXs','createCollection','4988992IEvfau','5269170mgPqRq','4539sksvyL','focusCycler','430dYjFAH','focusTracker','bindTemplate','getFocusableElement','div','forwardCycle','3092jOrYIh','899842rdhKeZ'];_0x3ae1=function(){return _0x3b1216;};return _0x3ae1();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4b4f09{[_0xc9db6a(0xba)];[_0xc9db6a(0xb8)];constructor(_0x554aad){var _0x5996b3=_0xc9db6a;super(_0x554aad),this[_0x5996b3(0xba)]=new _0x2ae569(),this[_0x5996b3(0xb8)]=new _0x17e5ce({'focusables':this[_0x5996b3(0xb4)](),'focusTracker':this[_0x5996b3(0xba)]});}[_0xc9db6a(0xbc)](){var _0x31fc42=_0xc9db6a;return{'tag':_0x31fc42(0xbd),'attributes':{'aria-hidden':_0x31fc42(0xb0),'tabindex':'0'},'on':{'focus':this[_0x31fc42(0xbb)]['to'](()=>{var _0xbba577=_0x31fc42;this[_0xbba577(0xb8)][_0xbba577(0xae)](_0xbba577(0xab));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4ef4ef,_0x21f067){const _0x13531e=_0xac7f,_0x10493b=_0x4ef4ef();while(!![]){try{const _0xd9df46=parseInt(_0x13531e(0x1ed))/0x1*(parseInt(_0x13531e(0x21b))/0x2)+parseInt(_0x13531e(0x1fe))/0x3+parseInt(_0x13531e(0x208))/0x4*(-parseInt(_0x13531e(0x21c))/0x5)+parseInt(_0x13531e(0x1e7))/0x6*(parseInt(_0x13531e(0x21e))/0x7)+-parseInt(_0x13531e(0x21a))/0x8*(-parseInt(_0x13531e(0x20f))/0x9)+parseInt(_0x13531e(0x202))/0xa*(parseInt(_0x13531e(0x1ea))/0xb)+parseInt(_0x13531e(0x1e6))/0xc;if(_0xd9df46===_0x21f067)break;else _0x10493b['push'](_0x10493b['shift']());}catch(_0x1e55f9){_0x10493b['push'](_0x10493b['shift']());}}}(_0x4c5f,0x25438));import{global as _0x46f003,DomEmitterMixin as _0x7bf0b2}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x42f01d){const _0x5b3f0b=_0xac7f,_0x3b9a68=z(_0x42f01d);return _0x5c4a4c=>!(!_0x5c4a4c||!_0x5c4a4c['is'](_0x5b3f0b(0x209),_0x5b3f0b(0x211))&&!_0x5c4a4c['is'](_0x5b3f0b(0x209),_0x5b3f0b(0x1e5)))&&(!!_0x5c4a4c[_0x5b3f0b(0x20e)](_0x5b3f0b(0x217))||!!_0x5c4a4c[_0x5b3f0b(0x20e)](_0x5b3f0b(0x1ec))&&_0x3b9a68(_0x5c4a4c[_0x5b3f0b(0x20c)](_0x5b3f0b(0x1ec))));}export function getImageUrls(_0x20c679,_0x4e0f76){const _0x4b7db4=_0xac7f,_0x5e8422=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x4b7db4(0x1eb)](_0x4ad585=>_0x4ad585<=_0x4e0f76)[_0x4b7db4(0x1e8)](_0x491e04=>_0x20c679[_0x4b7db4(0x210)](/\/$/,'')+_0x4b7db4(0x1f0)+_0x491e04+_0x4b7db4(0x1f3)+_0x491e04+'w');return{'imageFallbackUrl':_0x20c679,'imageSources':[{'srcset':_0x5e8422[_0x4b7db4(0x1fc)](',\x20'),'sizes':_0x4b7db4(0x1f8)+_0x4e0f76+_0x4b7db4(0x206)+_0x4e0f76+'px','type':_0x4b7db4(0x1e9)}]};}export function getImageDimension(_0x16afa5,_0x449617,_0x1e0d5f){const _0x21feee=_0xac7f,_0x5b08a0=_0x16afa5[_0x21feee(0x218)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5b08a0?parseInt(_0x5b08a0[0x1],0xa):_0x449617,'height':_0x5b08a0?parseInt(_0x5b08a0[0x2],0xa):_0x1e0d5f};}function _0xac7f(_0x20871b,_0x3f900f){const _0x4c5ff1=_0x4c5f();return _0xac7f=function(_0xac7f00,_0x1a1db7){_0xac7f00=_0xac7f00-0x1e5;let _0x4a4c84=_0x4c5ff1[_0xac7f00];return _0x4a4c84;},_0xac7f(_0x20871b,_0x3f900f);}function _0x4c5f(){const _0x5ed8f9=['uploadcareImageId','match','aspect-ratio','120NOuimu','10714KLUcUX','504215BiyjnK','function','22274YfzjEk','width','imageInline','1183500qNbsGB','270aYsZhy','map','image/webp','814RXiNLi','filter','src','11mrcFtg','document','load','/-/resize/','toViewElement','editing','x/\x20','plugins','domConverter','mapper','setStyle','(max-width:\x20','location','image-processing','ImageUtils','join','view','70005sdoFtA','height','baseURI','listenTo','17710zvAuBQ','addClass','viewToDom','removeStyle','px)\x20100vw,\x20','isArray','12xlfGYg','element','findViewImgElement','window','getAttribute','stopListening','hasAttribute','18CZHIhz','replace','imageBlock','origin','get','removeClass','change','some'];_0x4c5f=function(){return _0x5ed8f9;};return _0x4c5f();}export function showImageProcessingIndicator(_0x1492d7,_0x2e2bf3){const _0x2ebba7=_0xac7f,_0x2dbabd=new(_0x7bf0b2())(),_0x39a48d=_0x1492d7[_0x2ebba7(0x1f4)][_0x2ebba7(0x213)](_0x2ebba7(0x1fb)),_0x560b3b=_0x1492d7[_0x2ebba7(0x1f2)][_0x2ebba7(0x1f6)][_0x2ebba7(0x1f1)](_0x2e2bf3),_0x4649b4=_0x39a48d[_0x2ebba7(0x20a)](_0x560b3b),_0x2cbf6e=_0x1492d7[_0x2ebba7(0x1f2)][_0x2ebba7(0x1fd)][_0x2ebba7(0x1f5)][_0x2ebba7(0x204)](_0x4649b4),_0x455214=_0x2e2bf3[_0x2ebba7(0x20c)](_0x2ebba7(0x21f)),_0x3cb777=_0x2e2bf3[_0x2ebba7(0x20c)](_0x2ebba7(0x1ff)),_0x3e6c8e=_0x2ebba7(0x1fa);_0x1492d7[_0x2ebba7(0x1f2)][_0x2ebba7(0x1fd)][_0x2ebba7(0x215)](_0x323579=>{const _0x2e9690=_0x2ebba7;_0x323579[_0x2e9690(0x203)](_0x3e6c8e,_0x560b3b),_0x323579[_0x2e9690(0x1f7)](_0x2e9690(0x219),_0x455214+'/'+_0x3cb777,_0x4649b4);}),_0x2dbabd[_0x2ebba7(0x201)](_0x2cbf6e,_0x2ebba7(0x1ef),()=>{const _0x5283d9=_0x2ebba7;_0x2dbabd[_0x5283d9(0x20d)](_0x2cbf6e,_0x5283d9(0x1ef)),_0x1492d7[_0x5283d9(0x1f2)][_0x5283d9(0x1fd)][_0x5283d9(0x215)](_0x29d4c0=>{const _0x2979ff=_0x5283d9;_0x29d4c0[_0x2979ff(0x214)](_0x3e6c8e,_0x560b3b),_0x29d4c0[_0x2979ff(0x205)](_0x2979ff(0x219),_0x4649b4);});});}function z(_0x3c4959){const _0x3b4220=_0xac7f;if(Array[_0x3b4220(0x207)](_0x3c4959)){const _0x1c18cc=_0x3c4959[_0x3b4220(0x1e8)](z);return _0x53349d=>_0x1c18cc[_0x3b4220(0x216)](_0x4b1211=>_0x4b1211(_0x53349d));}if(_0x3b4220(0x212)==_0x3c4959){const _0x1c74bb=_0x46f003[_0x3b4220(0x20b)][_0x3b4220(0x1f9)][_0x3b4220(0x212)];return _0xc5b01=>new URL(_0xc5b01,_0x46f003[_0x3b4220(0x1ee)][_0x3b4220(0x200)])[_0x3b4220(0x212)]==_0x1c74bb;}return _0x3b4220(0x21d)==typeof _0x3c4959?_0x3c4959:_0x3c4959 instanceof RegExp?_0x2e9180=>!(!_0x2e9180[_0x3b4220(0x218)](_0x3c4959)&&!_0x2e9180[_0x3b4220(0x210)](/^https?:\/\//,'')[_0x3b4220(0x218)](_0x3c4959)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x158a53,_0x26d68d){var _0x5a8921=_0x260d,_0x80f7e1=_0x158a53();while(!![]){try{var _0x432e8d=parseInt(_0x5a8921(0x176))/0x1*(parseInt(_0x5a8921(0x17b))/0x2)+-parseInt(_0x5a8921(0x175))/0x3+parseInt(_0x5a8921(0x173))/0x4+parseInt(_0x5a8921(0x179))/0x5*(parseInt(_0x5a8921(0x17d))/0x6)+-parseInt(_0x5a8921(0x174))/0x7*(-parseInt(_0x5a8921(0x17c))/0x8)+-parseInt(_0x5a8921(0x172))/0x9*(parseInt(_0x5a8921(0x17a))/0xa)+-parseInt(_0x5a8921(0x178))/0xb;if(_0x432e8d===_0x26d68d)break;else _0x80f7e1['push'](_0x80f7e1['shift']());}catch(_0x2b3996){_0x80f7e1['push'](_0x80f7e1['shift']());}}}(_0x22f2,0xe0f4d));function _0x260d(_0xdf1198,_0x4577d8){var _0x22f2ee=_0x22f2();return _0x260d=function(_0x260dfb,_0x24c1a2){_0x260dfb=_0x260dfb-0x171;var _0x5ea2c9=_0x22f2ee[_0x260dfb];return _0x5ea2c9;},_0x260d(_0xdf1198,_0x4577d8);}function _0x22f2(){var _0x52a9de=['6RQsmdb','includes','231993usUMbQ','6649764cpfJpD','987518DhqDmD','4204839ZdzLiF','1dJQQZI','target','8613242DoIzWv','1996425csFREY','400XGgAWt','1611488rsljGd','72idUfnc'];_0x22f2=function(){return _0x52a9de;};return _0x22f2();}import{getAncestors as _0x1faf84}from'ckeditor5/src/utils.js';export function isAncestor(_0x5e959f,_0x74840){var _0x1bad70=_0x260d;return _0x1faf84(_0x5e959f[_0x1bad70(0x177)])[_0x1bad70(0x171)](_0x74840);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1ad63e=_0x29b2;function _0x29b2(_0x1b53ae,_0x25a28b){var _0xa7d61a=_0xa7d6();return _0x29b2=function(_0x29b224,_0xc30240){_0x29b224=_0x29b224-0x161;var _0x259206=_0xa7d61a[_0x29b224];return _0x259206;},_0x29b2(_0x1b53ae,_0x25a28b);}function _0xa7d6(){var _0x67fa3d=['14pluhsW','4vrLGgo','1574008FbnKRe','2410EeanWs','2598020oTtxeQ','3635490TboHsy','26226LwGuqE','2949492JjKfGI','upload','4685274VZJKAx','getInfo','158IkhwAG'];_0xa7d6=function(){return _0x67fa3d;};return _0xa7d6();}(function(_0x5f03ed,_0x245086){var _0x31f78e=_0x29b2,_0x559df2=_0x5f03ed();while(!![]){try{var _0x518c4d=parseInt(_0x31f78e(0x164))/0x1*(-parseInt(_0x31f78e(0x16c))/0x2)+-parseInt(_0x31f78e(0x167))/0x3+-parseInt(_0x31f78e(0x162))/0x4*(parseInt(_0x31f78e(0x165))/0x5)+parseInt(_0x31f78e(0x168))/0x6+parseInt(_0x31f78e(0x161))/0x7*(parseInt(_0x31f78e(0x163))/0x8)+parseInt(_0x31f78e(0x16a))/0x9+-parseInt(_0x31f78e(0x166))/0xa;if(_0x518c4d===_0x245086)break;else _0x559df2['push'](_0x559df2['shift']());}catch(_0x1c1c83){_0x559df2['push'](_0x559df2['shift']());}}}(_0xa7d6,0x4ef39));import{uploadFile as _0x9684e8,info as _0x82a877}from'@uploadcare/upload-client';export class UploadUtils{static[_0x1ad63e(0x169)]({file:_0x560af9,..._0xbe3e55}){return _0x9684e8(_0x560af9,_0xbe3e55);}static[_0x1ad63e(0x16b)](_0x5083a6,_0xeec15c){return _0x82a877(_0x5083a6,_0xeec15c);}}
|