@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251025.0 → 0.0.0-nightly-20251026.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 _0xb33290,View as _0x5567a1}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x5567a1{constructor(_0x76fa93){super(_0x76fa93);const t=_0x76fa93['t'],_0x178dc4=this['bindTemplate'],_0x4ab08b=new _0xb33290();_0x4ab08b['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':[_0x4ab08b,{'text':_0x178dc4['to']('imageUploadProgress',_0x5c50c0=>t('Loading\x20image...')+'\x20('+(_0x5c50c0||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 _0xa72918=_0x4dd1;(function(_0x123a16,_0x47eda7){const _0x2802ce=_0x4dd1,_0xd9037d=_0x123a16();while(!![]){try{const _0x5e4329=-parseInt(_0x2802ce(0x1aa))/0x1+parseInt(_0x2802ce(0x18b))/0x2*(-parseInt(_0x2802ce(0x195))/0x3)+-parseInt(_0x2802ce(0x184))/0x4*(parseInt(_0x2802ce(0x175))/0x5)+-parseInt(_0x2802ce(0x188))/0x6*(-parseInt(_0x2802ce(0x190))/0x7)+parseInt(_0x2802ce(0x19a))/0x8*(-parseInt(_0x2802ce(0x1a7))/0x9)+parseInt(_0x2802ce(0x1a4))/0xa*(parseInt(_0x2802ce(0x19f))/0xb)+parseInt(_0x2802ce(0x1a0))/0xc;if(_0x5e4329===_0x47eda7)break;else _0xd9037d['push'](_0xd9037d['shift']());}catch(_0x47bc24){_0xd9037d['push'](_0xd9037d['shift']());}}}(_0xf717,0xa8a8e));import{View as _0x98438d}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1949ac}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x4ad166}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x87f6ab}from'./uploadcareimageeditformeditingview.js';function _0x4dd1(_0xd01fce,_0x17dcec){const _0xf717db=_0xf717();return _0x4dd1=function(_0x4dd1ad,_0x5328c6){_0x4dd1ad=_0x4dd1ad-0x175;let _0x1bac2c=_0xf717db[_0x4dd1ad];return _0x1bac2c;},_0x4dd1(_0xd01fce,_0x17dcec);}import{DialogFocusManagerView as _0x323cc1}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x323cc1{[_0xa72918(0x18f)];[_0xa72918(0x1a9)];[_0xa72918(0x186)];[_0xa72918(0x196)];[_0xa72918(0x19d)];constructor(_0x10a6cf,_0x55dbc5,_0x56325b){const _0x309445=_0xa72918;super(_0x10a6cf),this[_0x309445(0x18f)]=this[_0x309445(0x1a1)](),this[_0x309445(0x1a9)]=new _0x1949ac(_0x10a6cf),this[_0x309445(0x186)]=new _0x4ad166(_0x10a6cf),this[_0x309445(0x196)]=new _0x87f6ab(_0x10a6cf,_0x56325b),this[_0x309445(0x19d)]=new _0x98438d(_0x10a6cf),this[_0x309445(0x19d)][_0x309445(0x189)](this[_0x309445(0x1a3)]()),this[_0x309445(0x181)](_0x309445(0x194),_0x55dbc5),this[_0x309445(0x189)]({'tag':_0x309445(0x19e),'attributes':{'class':['ck',_0x309445(0x18d),_0x309445(0x182)],'tabindex':'-1'},'children':this[_0x309445(0x18f)]}),this[_0x309445(0x1ab)](),this[_0x309445(0x1a8)](_0x309445(0x198),()=>{const _0x1071c3=_0x309445;this[_0x1071c3(0x179)](this[_0x1071c3(0x187)],_0xee0088=>{const _0xb37b94=_0x1071c3;this[_0xb37b94(0x17a)](_0xee0088);});}),this['on'](_0x309445(0x178),()=>{const _0x1a513a=_0x309445;this[_0x1a513a(0x1ab)]();}),this[_0x309445(0x18a)]();}[_0xa72918(0x183)](){const _0xa37019=_0xa72918;this[_0xa37019(0x187)][_0xa37019(0x183)]();}[_0xa72918(0x1ab)](){const _0x5af5c2=_0xa72918;switch(this[_0x5af5c2(0x18f)][_0x5af5c2(0x19c)](),this[_0x5af5c2(0x194)]){case _0x5af5c2(0x1a2):this[_0x5af5c2(0x18f)][_0x5af5c2(0x1a6)](this[_0x5af5c2(0x1a9)]);break;case _0x5af5c2(0x1ac):this[_0x5af5c2(0x18f)][_0x5af5c2(0x1a6)](this[_0x5af5c2(0x186)]);break;case _0x5af5c2(0x176):this[_0x5af5c2(0x18f)][_0x5af5c2(0x192)]([this[_0x5af5c2(0x196)],this[_0x5af5c2(0x19d)]]);}}[_0xa72918(0x179)](_0x24fb79,_0x1c98f5){const _0x590ac8=_0xa72918,_0x287329=_0x590ac8(0x1ad),_0x4b87af=_0x24fb79[_0x590ac8(0x185)](_0x287329);if(_0x4b87af)return _0x1c98f5(_0x4b87af);const _0x23a0b7=new MutationObserver(_0x34c795=>{const _0x1646ba=_0x590ac8,_0x5db49e=_0x34c795[_0x1646ba(0x17e)](_0xb0ceb8=>_0xb0ceb8[_0x1646ba(0x191)]===_0x24fb79&&_0xb0ceb8[_0x1646ba(0x17d)][_0x1646ba(0x193)]>0x0&&_0xb0ceb8[_0x1646ba(0x17d)][0x0][_0x1646ba(0x1a5)][_0x1646ba(0x17f)]()===_0x287329);_0x5db49e[_0x1646ba(0x193)]&&(_0x23a0b7[_0x1646ba(0x18e)](),_0x1c98f5(_0x5db49e[0x0][_0x1646ba(0x17d)][0x0]));});_0x23a0b7[_0x590ac8(0x177)](_0x24fb79,{'childList':!0x0,'subtree':!0x0});}[_0xa72918(0x17a)](_0x1d97e0){const _0x217ba5=_0xa72918;_0x1d97e0[_0x217ba5(0x17b)](_0x217ba5(0x19b),_0x39935c=>{const _0x476728=_0x217ba5;this[_0x476728(0x17c)](_0x476728(0x19b),{'imageSrc':_0x39935c[_0x476728(0x197)][_0x476728(0x18c)]});}),_0x1d97e0[_0x217ba5(0x17b)](_0x217ba5(0x180),()=>{const _0x38f4f9=_0x217ba5;this[_0x38f4f9(0x17c)](_0x38f4f9(0x180));});}[_0xa72918(0x18a)](){const _0x191f8a=_0xa72918;this[_0x191f8a(0x186)]['on'](_0x191f8a(0x199),()=>{const _0x3d1ef9=_0x191f8a;this[_0x3d1ef9(0x17c)](_0x3d1ef9(0x199));});}}function _0xf717(){const _0x1ee5e3=['361356bVuevC','setTemplate','_addErrorViewListeners','7142xqUGLV','cdnUrl','ck-reset_all-excluded','disconnect','_items','133JGKcuq','target','addMany','length','status','204oCapYu','_editingView','detail','render','retry','1688nGAVsZ','apply','clear','_focusableView','div','4763ILeSwe','7482204WLMhjU','createCollection','uploading','getFocusableElement','19210dLeWkz','nodeName','add','43353SGfxqK','once','_loadingView','145702AwZdHD','_setView','error','uc-cloud-image-editor','5YTROCv','ready','observe','change:status','_waitForImageEditorComponent','_addUploadcareImageEditorListeners','addEventListener','fire','addedNodes','filter','toLowerCase','cancel','set','ck-uploadcare-form','focus','2015428eBowjV','querySelector','_errorView','element'];_0xf717=function(){return _0x1ee5e3;};return _0xf717();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5274bf=_0x1d29;(function(_0x3a0388,_0x260a09){const _0x1ca073=_0x1d29,_0x126b40=_0x3a0388();while(!![]){try{const _0x1c41e2=parseInt(_0x1ca073(0x1ab))/0x1*(parseInt(_0x1ca073(0x19b))/0x2)+parseInt(_0x1ca073(0x190))/0x3+parseInt(_0x1ca073(0x192))/0x4*(-parseInt(_0x1ca073(0x199))/0x5)+-parseInt(_0x1ca073(0x193))/0x6*(-parseInt(_0x1ca073(0x1a8))/0x7)+-parseInt(_0x1ca073(0x191))/0x8+-parseInt(_0x1ca073(0x1a1))/0x9+parseInt(_0x1ca073(0x196))/0xa*(parseInt(_0x1ca073(0x1a0))/0xb);if(_0x1c41e2===_0x260a09)break;else _0x126b40['push'](_0x126b40['shift']());}catch(_0x17dda1){_0x126b40['push'](_0x126b40['shift']());}}}(_0x1f87,0x4b8f2));import{Command as _0x38df83}from'ckeditor5/src/core.js';import{Dialog as _0x513e60}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x11d8c5}from'./ui/uploadcareimageeditcontroller.js';function _0x1d29(_0x8c0b22,_0x31fde6){const _0x1f8727=_0x1f87();return _0x1d29=function(_0x1d2913,_0x27a027){_0x1d2913=_0x1d2913-0x18c;let _0xb623cd=_0x1f8727[_0x1d2913];return _0xb623cd;},_0x1d29(_0x8c0b22,_0x31fde6);}import{createEditabilityChecker as _0x113f77}from'../utils/editingutils.js';function _0x1f87(){const _0x2c37ec=['set','_isEditable','5ckbGrw','selection','2086XFjSFz','imageEditController','element','uploadcare.allowExternalImagesEditing','bind','2590951wZwhoO','1881306CeOOWW','plugins','requires','isActive','refresh','unbind','document','91847EpClXl','getSelectedElement','imageInline','291ChTGCs','isEnabled','imageBlock','model','config','get','263556UBixMu','4741472YZHWeZ','1941512Rnimcq','228dSPqqg','execute','editor','30ViaBnf'];_0x1f87=function(){return _0x2c37ec;};return _0x1f87();}export class UploadcareImageEditCommand extends _0x38df83{[_0x5274bf(0x19c)];static get[_0x5274bf(0x1a3)](){return[_0x513e60];}[_0x5274bf(0x198)];constructor(_0x3f7f6d){const _0x336240=_0x5274bf;super(_0x3f7f6d),this[_0x336240(0x19c)]=void 0x0,this[_0x336240(0x198)]=_0x113f77(_0x3f7f6d[_0x336240(0x18e)][_0x336240(0x18f)](_0x336240(0x19e))||[]),this[_0x336240(0x197)]({'isActive':!0x1});}[_0x5274bf(0x1a5)](){const _0x4e08ea=_0x5274bf,_0x31430e=this[_0x4e08ea(0x195)][_0x4e08ea(0x18d)][_0x4e08ea(0x1a7)][_0x4e08ea(0x19a)][_0x4e08ea(0x1a9)]();this[_0x4e08ea(0x1ac)]=this[_0x4e08ea(0x198)](_0x31430e);}[_0x5274bf(0x194)](){const _0x363349=_0x5274bf;this[_0x363349(0x19c)]&&(this[_0x363349(0x1a6)](_0x363349(0x1a4)),this[_0x363349(0x19c)]=void 0x0);const _0x227baa=this[_0x363349(0x195)][_0x363349(0x18d)][_0x363349(0x1a7)][_0x363349(0x19a)][_0x363349(0x1a9)]();_0x227baa&&(_0x227baa['is'](_0x363349(0x19d),_0x363349(0x18c))||_0x227baa['is'](_0x363349(0x19d),_0x363349(0x1aa)))&&(this[_0x363349(0x19c)]=new _0x11d8c5(this[_0x363349(0x195)],this[_0x363349(0x195)][_0x363349(0x1a2)][_0x363349(0x18f)](_0x513e60),_0x227baa),this[_0x363349(0x19f)](_0x363349(0x1a4))['to'](this[_0x363349(0x19c)],_0x363349(0x1a4)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x52b0(_0x3f46b3,_0x1b1db6){const _0x5d09ac=_0x5d09();return _0x52b0=function(_0x52b001,_0xfb5189){_0x52b001=_0x52b001-0x1df;let _0x15280c=_0x5d09ac[_0x52b001];return _0x15280c;},_0x52b0(_0x3f46b3,_0x1b1db6);}const _0x55ae22=_0x52b0;(function(_0x3044dc,_0x327a6b){const _0x458020=_0x52b0,_0x17674b=_0x3044dc();while(!![]){try{const _0x497121=parseInt(_0x458020(0x1ef))/0x1*(-parseInt(_0x458020(0x1e3))/0x2)+parseInt(_0x458020(0x1ea))/0x3*(parseInt(_0x458020(0x1e0))/0x4)+-parseInt(_0x458020(0x1e4))/0x5+parseInt(_0x458020(0x1e7))/0x6+-parseInt(_0x458020(0x1e9))/0x7*(-parseInt(_0x458020(0x1f4))/0x8)+-parseInt(_0x458020(0x1e6))/0x9+parseInt(_0x458020(0x1df))/0xa;if(_0x497121===_0x327a6b)break;else _0x17674b['push'](_0x17674b['shift']());}catch(_0x20bab4){_0x17674b['push'](_0x17674b['shift']());}}}(_0x5d09,0x7499b));import{Plugin as _0x4c1c7b}from'ckeditor5/src/core.js';import{Notification as _0x1e6744}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x35fe7f}from'./uploadcareimageeditcommand.js';function _0x5d09(){const _0x508d81=['ImageEditing','6804414rrJSfH','3521124gnYwFR','commands','528283vqrGGh','2358579rmOvbf','uploadcareImageReplace','isPremiumPlugin','UploadcareImageEditEditing','ImageUtils','23RHvOqE','init','isOfficialPlugin','add','uploadcareImageEdit','24bFALug','6994530TZgSyo','4sAfckA','pluginName','requires','32862fCHBeu','3436765TnAjCE'];_0x5d09=function(){return _0x508d81;};return _0x5d09();}import{UploadcareImageReplaceCommand as _0x21bb9e}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x72460e}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4c1c7b{static get[_0x55ae22(0x1e1)](){const _0x223b82=_0x55ae22;return _0x223b82(0x1ed);}static get[_0x55ae22(0x1e2)](){const _0x1bf2a1=_0x55ae22;return[_0x72460e,_0x1e6744,_0x1bf2a1(0x1ee),_0x1bf2a1(0x1e5)];}static get[_0x55ae22(0x1f1)](){return!0x0;}static get[_0x55ae22(0x1ec)](){return!0x0;}[_0x55ae22(0x1f0)](){const _0x2aa8a4=_0x55ae22,{editor:_0x467281}=this;_0x467281[_0x2aa8a4(0x1e8)][_0x2aa8a4(0x1f2)](_0x2aa8a4(0x1f3),new _0x35fe7f(_0x467281)),_0x467281[_0x2aa8a4(0x1e8)][_0x2aa8a4(0x1f2)](_0x2aa8a4(0x1eb),new _0x21bb9e(_0x467281));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1953fe}from'ckeditor5/src/core.js';import{ButtonView as _0x560b5b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x196c8e}from'ckeditor5/src/icons.js';import{createElement as _0x2c5b2e}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 _0x1953fe{['_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 _0x58c946=this['editor'];_0x58c946['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4352fa=>{const _0x14aa93=_0x58c946['commands']['get']('uploadcareImageEdit'),_0x53ecfc=new _0x560b5b(_0x4352fa),t=_0x4352fa['t'];return _0x53ecfc['set']({'icon':_0x196c8e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x53ecfc['bind']('isEnabled')['to'](_0x14aa93),_0x53ecfc['bind']('isOn')['to'](_0x14aa93,'isActive'),this['listenTo'](_0x53ecfc,'execute',()=>{_0x58c946['execute']('uploadcareImageEdit'),_0x58c946['editing']['view']['focus']();}),_0x53ecfc;}),this['_initConfig']();}['_initConfig'](){const _0x47b6e2=_0x2c5b2e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x47b6e2),this['listenTo'](this['editor'],'destroy',()=>{_0x47b6e2['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0xc92c(_0x1b9be4,_0x572838){var _0xe0b48a=_0xe0b4();return _0xc92c=function(_0xc92c9a,_0x507e14){_0xc92c9a=_0xc92c9a-0xb7;var _0x19a810=_0xe0b48a[_0xc92c9a];return _0x19a810;},_0xc92c(_0x1b9be4,_0x572838);}var _0x368d3e=_0xc92c;(function(_0x4558e8,_0x2a4b0e){var _0x1901e6=_0xc92c,_0x46e97e=_0x4558e8();while(!![]){try{var _0xec1682=-parseInt(_0x1901e6(0xc5))/0x1+-parseInt(_0x1901e6(0xbe))/0x2*(-parseInt(_0x1901e6(0xb9))/0x3)+parseInt(_0x1901e6(0xc9))/0x4*(parseInt(_0x1901e6(0xc6))/0x5)+-parseInt(_0x1901e6(0xbf))/0x6*(-parseInt(_0x1901e6(0xca))/0x7)+-parseInt(_0x1901e6(0xb7))/0x8+parseInt(_0x1901e6(0xbd))/0x9+-parseInt(_0x1901e6(0xc2))/0xa*(parseInt(_0x1901e6(0xba))/0xb);if(_0xec1682===_0x2a4b0e)break;else _0x46e97e['push'](_0x46e97e['shift']());}catch(_0x12224f){_0x46e97e['push'](_0x46e97e['shift']());}}}(_0xe0b4,0x4beea));function _0xe0b4(){var _0x21df6a=['3975216bssIuU','fire','1646031YsvsAI','5318951gcJPnT','focusCycler','bindTemplate','2541204TulYZg','2pNFMJJ','48TlBmnE','getFocusableElement','true','10UHUkba','forwardCycle','createCollection','134855YugCZs','9965MytHQD','focusTracker','div','172jgygfW','445886dGHubY'];_0xe0b4=function(){return _0x21df6a;};return _0xe0b4();}import{FocusTracker as _0x5f526a}from'ckeditor5/src/utils.js';import{View as _0x4b83b7,FocusCycler as _0x1ec68e}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4b83b7{[_0x368d3e(0xc7)];[_0x368d3e(0xbb)];constructor(_0x7dd129){var _0x358d0a=_0x368d3e;super(_0x7dd129),this[_0x358d0a(0xc7)]=new _0x5f526a(),this[_0x358d0a(0xbb)]=new _0x1ec68e({'focusables':this[_0x358d0a(0xc4)](),'focusTracker':this[_0x358d0a(0xc7)]});}[_0x368d3e(0xc0)](){var _0x238d78=_0x368d3e;return{'tag':_0x238d78(0xc8),'attributes':{'aria-hidden':_0x238d78(0xc1),'tabindex':'0'},'on':{'focus':this[_0x238d78(0xbc)]['to'](()=>{var _0x5e2f5d=_0x238d78;this[_0x5e2f5d(0xbb)][_0x5e2f5d(0xb8)](_0x5e2f5d(0xc3));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
(function(_0x575618,_0x48a643){const _0x56300a=_0x1deb,_0x53133c=_0x575618();while(!![]){try{const _0x41705e=-parseInt(_0x56300a(0x1ec))/0x1+parseInt(_0x56300a(0x206))/0x2+-parseInt(_0x56300a(0x21e))/0x3*(-parseInt(_0x56300a(0x1fc))/0x4)+-parseInt(_0x56300a(0x1fd))/0x5*(-parseInt(_0x56300a(0x1fe))/0x6)+-parseInt(_0x56300a(0x201))/0x7+-parseInt(_0x56300a(0x20c))/0x8+-parseInt(_0x56300a(0x21d))/0x9;if(_0x41705e===_0x48a643)break;else _0x53133c['push'](_0x53133c['shift']());}catch(_0x3153cd){_0x53133c['push'](_0x53133c['shift']());}}}(_0x2c65,0x974de));import{global as _0x120077,DomEmitterMixin as _0x486080}from'ckeditor5/src/utils.js';function _0x2c65(){const _0x4df2e9=['px)\x20100vw,\x20','load','width','viewToDom','image/webp','window','location','328528jXSHji','95DDOEkv','127266DXPtOx','aspect-ratio','element','1243543LwQJIB','origin','setStyle','editing','src','971218XQmIKa','replace','get','isArray','getAttribute','match','1910432rqoYXv','mapper','x/\x20','/-/resize/','ImageUtils','removeClass','join','map','toViewElement','addClass','hasAttribute','removeStyle','listenTo','view','some','change','function','7359957mlWMtd','45MLgPSP','domConverter','imageBlock','imageInline','(max-width:\x20','filter','266630uqoMlR','uploadcareImageId','plugins','stopListening','document','findViewImgElement','image-processing','height','baseURI'];_0x2c65=function(){return _0x4df2e9;};return _0x2c65();}export function createEditabilityChecker(_0x5db674){const _0x1a6ea3=_0x1deb,_0x81a250=z(_0x5db674);return _0x4e986b=>!(!_0x4e986b||!_0x4e986b['is'](_0x1a6ea3(0x200),_0x1a6ea3(0x220))&&!_0x4e986b['is'](_0x1a6ea3(0x200),_0x1a6ea3(0x221)))&&(!!_0x4e986b[_0x1a6ea3(0x216)](_0x1a6ea3(0x1ed))||!!_0x4e986b[_0x1a6ea3(0x216)](_0x1a6ea3(0x205))&&_0x81a250(_0x4e986b[_0x1a6ea3(0x20a)](_0x1a6ea3(0x205))));}export function getImageUrls(_0x2da122,_0x5557fe){const _0xe189e4=_0x1deb,_0x4b8eeb=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0xe189e4(0x223)](_0x4ba8e2=>_0x4ba8e2<=_0x5557fe)[_0xe189e4(0x213)](_0x49e2f8=>_0x2da122[_0xe189e4(0x207)](/\/$/,'')+_0xe189e4(0x20f)+_0x49e2f8+_0xe189e4(0x20e)+_0x49e2f8+'w');return{'imageFallbackUrl':_0x2da122,'imageSources':[{'srcset':_0x4b8eeb[_0xe189e4(0x212)](',\x20'),'sizes':_0xe189e4(0x222)+_0x5557fe+_0xe189e4(0x1f5)+_0x5557fe+'px','type':_0xe189e4(0x1f9)}]};}function _0x1deb(_0x519e85,_0x3e03d1){const _0x2c6583=_0x2c65();return _0x1deb=function(_0x1debd2,_0x116133){_0x1debd2=_0x1debd2-0x1ec;let _0x3e44fc=_0x2c6583[_0x1debd2];return _0x3e44fc;},_0x1deb(_0x519e85,_0x3e03d1);}export function getImageDimension(_0x5930ca,_0x35bb55,_0x5ea483){const _0x57d65b=_0x1deb,_0x4f1e3e=_0x5930ca[_0x57d65b(0x20b)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f1e3e?parseInt(_0x4f1e3e[0x1],0xa):_0x35bb55,'height':_0x4f1e3e?parseInt(_0x4f1e3e[0x2],0xa):_0x5ea483};}export function showImageProcessingIndicator(_0x44a4c8,_0x1b317f){const _0x232adf=_0x1deb,_0x5318f1=new(_0x486080())(),_0x3f2319=_0x44a4c8[_0x232adf(0x1ee)][_0x232adf(0x208)](_0x232adf(0x210)),_0x3ed819=_0x44a4c8[_0x232adf(0x204)][_0x232adf(0x20d)][_0x232adf(0x214)](_0x1b317f),_0x46ab78=_0x3f2319[_0x232adf(0x1f1)](_0x3ed819),_0x281f13=_0x44a4c8[_0x232adf(0x204)][_0x232adf(0x219)][_0x232adf(0x21f)][_0x232adf(0x1f8)](_0x46ab78),_0x4acfd7=_0x1b317f[_0x232adf(0x20a)](_0x232adf(0x1f7)),_0x526ac7=_0x1b317f[_0x232adf(0x20a)](_0x232adf(0x1f3)),_0x40c4dc=_0x232adf(0x1f2);_0x44a4c8[_0x232adf(0x204)][_0x232adf(0x219)][_0x232adf(0x21b)](_0x28f01a=>{const _0x4620b3=_0x232adf;_0x28f01a[_0x4620b3(0x215)](_0x40c4dc,_0x3ed819),_0x28f01a[_0x4620b3(0x203)](_0x4620b3(0x1ff),_0x4acfd7+'/'+_0x526ac7,_0x46ab78);}),_0x5318f1[_0x232adf(0x218)](_0x281f13,_0x232adf(0x1f6),()=>{const _0x43bb09=_0x232adf;_0x5318f1[_0x43bb09(0x1ef)](_0x281f13,_0x43bb09(0x1f6)),_0x44a4c8[_0x43bb09(0x204)][_0x43bb09(0x219)][_0x43bb09(0x21b)](_0xec8554=>{const _0x186c1c=_0x43bb09;_0xec8554[_0x186c1c(0x211)](_0x40c4dc,_0x3ed819),_0xec8554[_0x186c1c(0x217)](_0x186c1c(0x1ff),_0x46ab78);});});}function z(_0x2e6dff){const _0x2bbf0c=_0x1deb;if(Array[_0x2bbf0c(0x209)](_0x2e6dff)){const _0x4b13a6=_0x2e6dff[_0x2bbf0c(0x213)](z);return _0x4d67c0=>_0x4b13a6[_0x2bbf0c(0x21a)](_0x4ea458=>_0x4ea458(_0x4d67c0));}if(_0x2bbf0c(0x202)==_0x2e6dff){const _0x21131b=_0x120077[_0x2bbf0c(0x1fa)][_0x2bbf0c(0x1fb)][_0x2bbf0c(0x202)];return _0x5810a4=>new URL(_0x5810a4,_0x120077[_0x2bbf0c(0x1f0)][_0x2bbf0c(0x1f4)])[_0x2bbf0c(0x202)]==_0x21131b;}return _0x2bbf0c(0x21c)==typeof _0x2e6dff?_0x2e6dff:_0x2e6dff instanceof RegExp?_0x40830d=>!(!_0x40830d[_0x2bbf0c(0x20b)](_0x2e6dff)&&!_0x40830d[_0x2bbf0c(0x207)](/^https?:\/\//,'')[_0x2bbf0c(0x20b)](_0x2e6dff)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1d9d(){var _0x2273b7=['5973ZFWuww','5svyxOO','target','includes','4376REygwR','1575464wqptsP','5768910pezKbv','897234axAXXS','9117EJoCoY','362rmgAPT','242831lcldOq','1910272QovVIU'];_0x1d9d=function(){return _0x2273b7;};return _0x1d9d();}(function(_0x501e8a,_0x361e17){var _0x419027=_0x3892,_0x99754a=_0x501e8a();while(!![]){try{var _0x2b537e=-parseInt(_0x419027(0x157))/0x1+-parseInt(_0x419027(0x156))/0x2*(-parseInt(_0x419027(0x159))/0x3)+parseInt(_0x419027(0x15e))/0x4+-parseInt(_0x419027(0x15a))/0x5*(parseInt(_0x419027(0x160))/0x6)+parseInt(_0x419027(0x158))/0x7+parseInt(_0x419027(0x15d))/0x8*(parseInt(_0x419027(0x161))/0x9)+-parseInt(_0x419027(0x15f))/0xa;if(_0x2b537e===_0x361e17)break;else _0x99754a['push'](_0x99754a['shift']());}catch(_0x2a8e98){_0x99754a['push'](_0x99754a['shift']());}}}(_0x1d9d,0x9568f));import{getAncestors as _0x1a2ab3}from'ckeditor5/src/utils.js';function _0x3892(_0x5abccb,_0x2575fa){var _0x1d9d0a=_0x1d9d();return _0x3892=function(_0x38922f,_0x59c83f){_0x38922f=_0x38922f-0x156;var _0x5884ce=_0x1d9d0a[_0x38922f];return _0x5884ce;},_0x3892(_0x5abccb,_0x2575fa);}export function isAncestor(_0x36f735,_0x736816){var _0x56b4eb=_0x3892;return _0x1a2ab3(_0x36f735[_0x56b4eb(0x15b)])[_0x56b4eb(0x15c)](_0x736816);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2a5a75=_0x51a5;(function(_0x230443,_0x2ad3df){var _0x228224=_0x51a5,_0x5bdcac=_0x230443();while(!![]){try{var _0x24a97f=parseInt(_0x228224(0x1a7))/0x1+-parseInt(_0x228224(0x1ac))/0x2+-parseInt(_0x228224(0x1a8))/0x3+-parseInt(_0x228224(0x1a9))/0x4*(-parseInt(_0x228224(0x1ad))/0x5)+-parseInt(_0x228224(0x1a6))/0x6*(-parseInt(_0x228224(0x1a5))/0x7)+-parseInt(_0x228224(0x1ab))/0x8+parseInt(_0x228224(0x1a3))/0x9;if(_0x24a97f===_0x2ad3df)break;else _0x5bdcac['push'](_0x5bdcac['shift']());}catch(_0x508abc){_0x5bdcac['push'](_0x5bdcac['shift']());}}}(_0x1670,0xd2ac0));import{uploadFile as _0x1a4205,info as _0x408478}from'@uploadcare/upload-client';function _0x51a5(_0x534d35,_0x3c1cea){var _0x167057=_0x1670();return _0x51a5=function(_0x51a523,_0x33339a){_0x51a523=_0x51a523-0x1a3;var _0x5a55c4=_0x167057[_0x51a523];return _0x5a55c4;},_0x51a5(_0x534d35,_0x3c1cea);}function _0x1670(){var _0x39d9ff=['2834366fpSGke','21415CUfcTy','16255017kSiiaV','upload','7gVyHUj','54294zhYoSJ','163832LcOQIq','580800aDAmef','572xZrWeh','getInfo','942144SuHwSe'];_0x1670=function(){return _0x39d9ff;};return _0x1670();}export class UploadUtils{static[_0x2a5a75(0x1a4)]({file:_0x3b8609,..._0x181e6c}){return _0x1a4205(_0x3b8609,_0x181e6c);}static[_0x2a5a75(0x1aa)](_0x656c70,_0x2f18f5){return _0x408478(_0x656c70,_0x2f18f5);}}
|