@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251226.0 → 0.0.0-nightly-20251227.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 _0x4f2456,View as _0x16e48e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x16e48e{constructor(_0x49fc0a){super(_0x49fc0a);const t=_0x49fc0a['t'],_0x41de83=this['bindTemplate'],_0x1e68f=new _0x4f2456();_0x1e68f['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':[_0x1e68f,{'text':_0x41de83['to']('imageUploadProgress',_0x7d2370=>t('Loading\x20image...')+'\x20('+(_0x7d2370||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 _0x43bc(){const _0x180c79=['_addErrorViewListeners','focus','_loadingView','_errorView','filter','561761JjfZOc','uc-cloud-image-editor','disconnect','ready','toLowerCase','length','7005528HlhtlB','fire','cancel','ck-uploadcare-form','_items','788UmVuiU','clear','cdnUrl','_addUploadcareImageEditorListeners','change:status','43404IhEMFv','899560wpjmRU','nodeName','createCollection','getFocusableElement','_editingView','addedNodes','96LJaCLY','apply','setTemplate','35PUIRbc','target','addEventListener','631074zKWeFY','uploading','querySelector','error','set','observe','_setView','add','element','status','once','_focusableView','render','11685YEFIao','addMany','retry','div','_waitForImageEditorComponent','detail','ck-reset_all-excluded','3424336SBkVVm'];_0x43bc=function(){return _0x180c79;};return _0x43bc();}const _0x436d01=_0x5aab;function _0x5aab(_0x4b355b,_0x41bbac){const _0x43bc9b=_0x43bc();return _0x5aab=function(_0x5aab0a,_0x1fc7c4){_0x5aab0a=_0x5aab0a-0xc8;let _0x1ed4d9=_0x43bc9b[_0x5aab0a];return _0x1ed4d9;},_0x5aab(_0x4b355b,_0x41bbac);}(function(_0x549a24,_0xef25d0){const _0x143e90=_0x5aab,_0x55cff8=_0x549a24();while(!![]){try{const _0x1a5b15=parseInt(_0x143e90(0xf4))/0x1+parseInt(_0x143e90(0xd4))/0x2*(-parseInt(_0x143e90(0xcd))/0x3)+-parseInt(_0x143e90(0xc8))/0x4*(-parseInt(_0x143e90(0xe7))/0x5)+-parseInt(_0x143e90(0xda))/0x6*(-parseInt(_0x143e90(0xd7))/0x7)+parseInt(_0x143e90(0xee))/0x8+-parseInt(_0x143e90(0xfa))/0x9+-parseInt(_0x143e90(0xce))/0xa;if(_0x1a5b15===_0xef25d0)break;else _0x55cff8['push'](_0x55cff8['shift']());}catch(_0x179e1f){_0x55cff8['push'](_0x55cff8['shift']());}}}(_0x43bc,0x64e5b));import{View as _0x215c26}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3d2607}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x181f74}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x4c4376}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2c7505}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2c7505{[_0x436d01(0xfe)];[_0x436d01(0xf1)];[_0x436d01(0xf2)];[_0x436d01(0xd2)];[_0x436d01(0xe5)];constructor(_0xb8d8f3,_0x814906,_0x13956e){const _0x3aed7d=_0x436d01;super(_0xb8d8f3),this[_0x3aed7d(0xfe)]=this[_0x3aed7d(0xd0)](),this[_0x3aed7d(0xf1)]=new _0x3d2607(_0xb8d8f3),this[_0x3aed7d(0xf2)]=new _0x181f74(_0xb8d8f3),this[_0x3aed7d(0xd2)]=new _0x4c4376(_0xb8d8f3,_0x13956e),this[_0x3aed7d(0xe5)]=new _0x215c26(_0xb8d8f3),this[_0x3aed7d(0xe5)][_0x3aed7d(0xd6)](this[_0x3aed7d(0xd1)]()),this[_0x3aed7d(0xde)](_0x3aed7d(0xe3),_0x814906),this[_0x3aed7d(0xd6)]({'tag':_0x3aed7d(0xea),'attributes':{'class':['ck',_0x3aed7d(0xed),_0x3aed7d(0xfd)],'tabindex':'-1'},'children':this[_0x3aed7d(0xfe)]}),this[_0x3aed7d(0xe0)](),this[_0x3aed7d(0xe4)](_0x3aed7d(0xe6),()=>{const _0x139d0d=_0x3aed7d;this[_0x139d0d(0xeb)](this[_0x139d0d(0xe2)],_0x70a2f3=>{const _0x556c8f=_0x139d0d;this[_0x556c8f(0xcb)](_0x70a2f3);});}),this['on'](_0x3aed7d(0xcc),()=>{const _0x3830c4=_0x3aed7d;this[_0x3830c4(0xe0)]();}),this[_0x3aed7d(0xef)]();}[_0x436d01(0xf0)](){const _0x3b8d46=_0x436d01;this[_0x3b8d46(0xe2)][_0x3b8d46(0xf0)]();}[_0x436d01(0xe0)](){const _0x5e9e2f=_0x436d01;switch(this[_0x5e9e2f(0xfe)][_0x5e9e2f(0xc9)](),this[_0x5e9e2f(0xe3)]){case _0x5e9e2f(0xdb):this[_0x5e9e2f(0xfe)][_0x5e9e2f(0xe1)](this[_0x5e9e2f(0xf1)]);break;case _0x5e9e2f(0xdd):this[_0x5e9e2f(0xfe)][_0x5e9e2f(0xe1)](this[_0x5e9e2f(0xf2)]);break;case _0x5e9e2f(0xf7):this[_0x5e9e2f(0xfe)][_0x5e9e2f(0xe8)]([this[_0x5e9e2f(0xd2)],this[_0x5e9e2f(0xe5)]]);}}[_0x436d01(0xeb)](_0x16f7df,_0x8887e3){const _0x4c4907=_0x436d01,_0xc0cc4=_0x4c4907(0xf5),_0x5ef4a9=_0x16f7df[_0x4c4907(0xdc)](_0xc0cc4);if(_0x5ef4a9)return _0x8887e3(_0x5ef4a9);const _0x43b03a=new MutationObserver(_0xfeb583=>{const _0x3d46f7=_0x4c4907,_0x1714a9=_0xfeb583[_0x3d46f7(0xf3)](_0x314c3c=>_0x314c3c[_0x3d46f7(0xd8)]===_0x16f7df&&_0x314c3c[_0x3d46f7(0xd3)][_0x3d46f7(0xf9)]>0x0&&_0x314c3c[_0x3d46f7(0xd3)][0x0][_0x3d46f7(0xcf)][_0x3d46f7(0xf8)]()===_0xc0cc4);_0x1714a9[_0x3d46f7(0xf9)]&&(_0x43b03a[_0x3d46f7(0xf6)](),_0x8887e3(_0x1714a9[0x0][_0x3d46f7(0xd3)][0x0]));});_0x43b03a[_0x4c4907(0xdf)](_0x16f7df,{'childList':!0x0,'subtree':!0x0});}[_0x436d01(0xcb)](_0x16528e){const _0x2d8941=_0x436d01;_0x16528e[_0x2d8941(0xd9)](_0x2d8941(0xd5),_0x2f3198=>{const _0x5804c3=_0x2d8941;this[_0x5804c3(0xfb)](_0x5804c3(0xd5),{'imageSrc':_0x2f3198[_0x5804c3(0xec)][_0x5804c3(0xca)]});}),_0x16528e[_0x2d8941(0xd9)](_0x2d8941(0xfc),()=>{const _0x483a40=_0x2d8941;this[_0x483a40(0xfb)](_0x483a40(0xfc));});}[_0x436d01(0xef)](){const _0x2748c9=_0x436d01;this[_0x2748c9(0xf2)]['on'](_0x2748c9(0xe9),()=>{const _0x1304ba=_0x2748c9;this[_0x1304ba(0xfb)](_0x1304ba(0xe9));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2e5269=_0x595d;(function(_0x395db2,_0x2be924){const _0x311018=_0x595d,_0x5bfc27=_0x395db2();while(!![]){try{const _0x13befc=parseInt(_0x311018(0x7c))/0x1*(parseInt(_0x311018(0x7e))/0x2)+parseInt(_0x311018(0x7b))/0x3+parseInt(_0x311018(0x76))/0x4+parseInt(_0x311018(0x90))/0x5+-parseInt(_0x311018(0x7d))/0x6+parseInt(_0x311018(0x88))/0x7+-parseInt(_0x311018(0x81))/0x8;if(_0x13befc===_0x2be924)break;else _0x5bfc27['push'](_0x5bfc27['shift']());}catch(_0x29c7a8){_0x5bfc27['push'](_0x5bfc27['shift']());}}}(_0x26b9,0x2b620));import{Command as _0x55ff97}from'ckeditor5/src/core.js';import{Dialog as _0x31943b}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x3ba2ac}from'./ui/uploadcareimageeditcontroller.js';function _0x26b9(){const _0x179a14=['document','2027396IThseX','uploadcare.allowExternalImagesEditing','imageBlock','unbind','plugins','element','refresh','editor','1689795JWTkQq','imageInline','execute','isEnabled','1017980EtgPer','set','getSelectedElement','_isEditable','model','739311SbOEZQ','2KSNusl','1755240NLfnvo','285302gfKcZr','requires','config','7548680mcGGsu','bind','get','imageEditController','selection','isActive'];_0x26b9=function(){return _0x179a14;};return _0x26b9();}function _0x595d(_0x51ea94,_0x23d0f9){const _0x26b9d2=_0x26b9();return _0x595d=function(_0x595d15,_0x3b6d46){_0x595d15=_0x595d15-0x76;let _0x5bee18=_0x26b9d2[_0x595d15];return _0x5bee18;},_0x595d(_0x51ea94,_0x23d0f9);}import{createEditabilityChecker as _0x3393dd}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x55ff97{[_0x2e5269(0x84)];static get[_0x2e5269(0x7f)](){return[_0x31943b];}[_0x2e5269(0x79)];constructor(_0x27b3dd){const _0xac1445=_0x2e5269;super(_0x27b3dd),this[_0xac1445(0x84)]=void 0x0,this[_0xac1445(0x79)]=_0x3393dd(_0x27b3dd[_0xac1445(0x80)][_0xac1445(0x83)](_0xac1445(0x89))||[]),this[_0xac1445(0x77)]({'isActive':!0x1});}[_0x2e5269(0x8e)](){const _0x1c2818=_0x2e5269,_0x27bbcc=this[_0x1c2818(0x8f)][_0x1c2818(0x7a)][_0x1c2818(0x87)][_0x1c2818(0x85)][_0x1c2818(0x78)]();this[_0x1c2818(0x93)]=this[_0x1c2818(0x79)](_0x27bbcc);}[_0x2e5269(0x92)](){const _0x46eee1=_0x2e5269;this[_0x46eee1(0x84)]&&(this[_0x46eee1(0x8b)](_0x46eee1(0x86)),this[_0x46eee1(0x84)]=void 0x0);const _0x2df693=this[_0x46eee1(0x8f)][_0x46eee1(0x7a)][_0x46eee1(0x87)][_0x46eee1(0x85)][_0x46eee1(0x78)]();_0x2df693&&(_0x2df693['is'](_0x46eee1(0x8d),_0x46eee1(0x8a))||_0x2df693['is'](_0x46eee1(0x8d),_0x46eee1(0x91)))&&(this[_0x46eee1(0x84)]=new _0x3ba2ac(this[_0x46eee1(0x8f)],this[_0x46eee1(0x8f)][_0x46eee1(0x8c)][_0x46eee1(0x83)](_0x31943b),_0x2df693),this[_0x46eee1(0x82)](_0x46eee1(0x86))['to'](this[_0x46eee1(0x84)],_0x46eee1(0x86)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a683d=_0x1892;(function(_0x4f2de4,_0x4ad5bd){const _0x17c0f6=_0x1892,_0x96f93f=_0x4f2de4();while(!![]){try{const _0x54efe8=-parseInt(_0x17c0f6(0x185))/0x1*(-parseInt(_0x17c0f6(0x183))/0x2)+-parseInt(_0x17c0f6(0x190))/0x3+parseInt(_0x17c0f6(0x181))/0x4*(-parseInt(_0x17c0f6(0x195))/0x5)+parseInt(_0x17c0f6(0x186))/0x6+parseInt(_0x17c0f6(0x18d))/0x7*(parseInt(_0x17c0f6(0x193))/0x8)+-parseInt(_0x17c0f6(0x18e))/0x9*(parseInt(_0x17c0f6(0x18b))/0xa)+-parseInt(_0x17c0f6(0x17f))/0xb;if(_0x54efe8===_0x4ad5bd)break;else _0x96f93f['push'](_0x96f93f['shift']());}catch(_0xb66dcb){_0x96f93f['push'](_0x96f93f['shift']());}}}(_0x161b,0x6f1f6));import{Plugin as _0x68082e}from'ckeditor5/src/core.js';import{Notification as _0x2a1c81}from'ckeditor5/src/ui.js';function _0x1892(_0x2f2851,_0x52ddad){const _0x161b97=_0x161b();return _0x1892=function(_0x1892c7,_0x5612da){_0x1892c7=_0x1892c7-0x17f;let _0x33e594=_0x161b97[_0x1892c7];return _0x33e594;},_0x1892(_0x2f2851,_0x52ddad);}import{UploadcareImageEditCommand as _0x31fec5}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x265ea3}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x100e5a}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x68082e{static get[_0x2a683d(0x194)](){const _0x303f5b=_0x2a683d;return _0x303f5b(0x182);}static get[_0x2a683d(0x18f)](){const _0x639932=_0x2a683d;return[_0x100e5a,_0x2a1c81,_0x639932(0x18a),_0x639932(0x180)];}static get[_0x2a683d(0x184)](){return!0x0;}static get[_0x2a683d(0x191)](){return!0x0;}[_0x2a683d(0x192)](){const _0x4ff5f1=_0x2a683d,{editor:_0x3e7da9}=this;_0x3e7da9[_0x4ff5f1(0x18c)][_0x4ff5f1(0x187)](_0x4ff5f1(0x189),new _0x31fec5(_0x3e7da9)),_0x3e7da9[_0x4ff5f1(0x18c)][_0x4ff5f1(0x187)](_0x4ff5f1(0x188),new _0x265ea3(_0x3e7da9));}}function _0x161b(){const _0x547770=['requires','18489fdOqKN','isPremiumPlugin','init','27464cLaxHR','pluginName','640eCEXev','5186434UzUCun','ImageEditing','3640VcJmav','UploadcareImageEditEditing','1194kUFxGp','isOfficialPlugin','1069jgdbXy','3305880uVaceV','add','uploadcareImageReplace','uploadcareImageEdit','ImageUtils','2255010oLcfhY','commands','1554krOnpX','36dDkATf'];_0x161b=function(){return _0x547770;};return _0x161b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x27c9c9}from'ckeditor5/src/core.js';import{ButtonView as _0x3b5afe}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x18dfad}from'ckeditor5/src/icons.js';import{createElement as _0x40c1a7}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 _0x27c9c9{['_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 _0x17d71d=this['editor'];_0x17d71d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x117ee9=>{const _0x1a1364=_0x17d71d['commands']['get']('uploadcareImageEdit'),_0x480bb8=new _0x3b5afe(_0x117ee9),t=_0x117ee9['t'];return _0x480bb8['set']({'icon':_0x18dfad,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x480bb8['bind']('isEnabled')['to'](_0x1a1364),_0x480bb8['bind']('isOn')['to'](_0x1a1364,'isActive'),this['listenTo'](_0x480bb8,'execute',()=>{_0x17d71d['execute']('uploadcareImageEdit'),_0x17d71d['editing']['view']['focus']();}),_0x480bb8;}),this['_initConfig']();}['_initConfig'](){const _0x4b4c3e=_0x40c1a7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4b4c3e),this['listenTo'](this['editor'],'destroy',()=>{_0x4b4c3e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x232749=_0x5d2b;(function(_0x4da068,_0x1af5a6){var _0x420f40=_0x5d2b,_0x3a8ea7=_0x4da068();while(!![]){try{var _0xbaf1d9=-parseInt(_0x420f40(0x87))/0x1*(-parseInt(_0x420f40(0x86))/0x2)+-parseInt(_0x420f40(0x7e))/0x3*(parseInt(_0x420f40(0x76))/0x4)+parseInt(_0x420f40(0x7b))/0x5+-parseInt(_0x420f40(0x85))/0x6+parseInt(_0x420f40(0x80))/0x7*(parseInt(_0x420f40(0x74))/0x8)+parseInt(_0x420f40(0x81))/0x9+parseInt(_0x420f40(0x7d))/0xa*(-parseInt(_0x420f40(0x84))/0xb);if(_0xbaf1d9===_0x1af5a6)break;else _0x3a8ea7['push'](_0x3a8ea7['shift']());}catch(_0x56160e){_0x3a8ea7['push'](_0x3a8ea7['shift']());}}}(_0x2c4b,0xcfe69));function _0x5d2b(_0x1fcbbe,_0x37301f){var _0x2c4bb9=_0x2c4b();return _0x5d2b=function(_0x5d2b72,_0x1db8b5){_0x5d2b72=_0x5d2b72-0x74;var _0x545d46=_0x2c4bb9[_0x5d2b72];return _0x545d46;},_0x5d2b(_0x1fcbbe,_0x37301f);}import{FocusTracker as _0x4f278e}from'ckeditor5/src/utils.js';import{View as _0x4d6cf2,FocusCycler as _0x4572c6}from'ckeditor5/src/ui.js';function _0x2c4b(){var _0x7e573f=['focusCycler','948908vKRlGw','getFocusableElement','forwardCycle','focusTracker','bindTemplate','4460995KwzpHP','true','703510VbVjdc','9uRyOmo','div','10536295wvLxqi','7383060gRCKwS','fire','createCollection','253SvHwDP','5142126bleari','8oGfQvy','205153qVbuNM','8IxgFdS'];_0x2c4b=function(){return _0x7e573f;};return _0x2c4b();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x4d6cf2{[_0x232749(0x79)];[_0x232749(0x75)];constructor(_0x1013c5){var _0x16a263=_0x232749;super(_0x1013c5),this[_0x16a263(0x79)]=new _0x4f278e(),this[_0x16a263(0x75)]=new _0x4572c6({'focusables':this[_0x16a263(0x83)](),'focusTracker':this[_0x16a263(0x79)]});}[_0x232749(0x77)](){var _0x18039f=_0x232749;return{'tag':_0x18039f(0x7f),'attributes':{'aria-hidden':_0x18039f(0x7c),'tabindex':'0'},'on':{'focus':this[_0x18039f(0x7a)]['to'](()=>{var _0x48595d=_0x18039f;this[_0x48595d(0x75)][_0x48595d(0x82)](_0x48595d(0x78));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4098(){const _0x25f270=['/-/resize/','toViewElement','10zZKeee','plugins','function','1391007JRdgmC','origin','12531828EwhZtK','71430hqJKhK','map','document','window','imageBlock','match','addClass','ImageUtils','filter','2024heZPig','some','removeStyle','(max-width:\x20','src','change','imageInline','element','join','image/webp','view','mapper','1971823itYyaC','height','aspect-ratio','width','517cYTwlZ','px)\x20100vw,\x20','uploadcareImageId','findViewImgElement','domConverter','hasAttribute','baseURI','6aNyaJX','setStyle','2zjPXPj','getAttribute','removeClass','12420mllGMi','isArray','location','image-processing','viewToDom','get','2191160dkAlzF','editing','load','x/\x20','replace','779076htBfCj','listenTo','stopListening'];_0x4098=function(){return _0x25f270;};return _0x4098();}(function(_0x26d8eb,_0x4069be){const _0x345548=_0x26bc,_0x3bb150=_0x26d8eb();while(!![]){try{const _0x457ca6=-parseInt(_0x345548(0x19d))/0x1+-parseInt(_0x345548(0x187))/0x2*(parseInt(_0x345548(0x195))/0x3)+-parseInt(_0x345548(0x190))/0x4*(-parseInt(_0x345548(0x19a))/0x5)+parseInt(_0x345548(0x185))/0x6*(parseInt(_0x345548(0x17a))/0x7)+-parseInt(_0x345548(0x16e))/0x8*(parseInt(_0x345548(0x18a))/0x9)+parseInt(_0x345548(0x1a0))/0xa*(parseInt(_0x345548(0x17e))/0xb)+parseInt(_0x345548(0x19f))/0xc;if(_0x457ca6===_0x4069be)break;else _0x3bb150['push'](_0x3bb150['shift']());}catch(_0x1216d8){_0x3bb150['push'](_0x3bb150['shift']());}}}(_0x4098,0xb8ede));import{global as _0x55430d,DomEmitterMixin as _0x5afa59}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x42ccd1){const _0x204454=_0x26bc,_0x2b0c68=G(_0x42ccd1);return _0x1a397c=>!(!_0x1a397c||!_0x1a397c['is'](_0x204454(0x175),_0x204454(0x1a4))&&!_0x1a397c['is'](_0x204454(0x175),_0x204454(0x174)))&&(!!_0x1a397c[_0x204454(0x183)](_0x204454(0x180))||!!_0x1a397c[_0x204454(0x183)](_0x204454(0x172))&&_0x2b0c68(_0x1a397c[_0x204454(0x188)](_0x204454(0x172))));}export function getImageUrls(_0x3f287c,_0x289c1e){const _0x1157d1=_0x26bc,_0x98a6fb=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1157d1(0x16d)](_0x4f4bc3=>_0x4f4bc3<=_0x289c1e)[_0x1157d1(0x1a1)](_0x69931d=>_0x3f287c[_0x1157d1(0x194)](/\/$/,'')+_0x1157d1(0x198)+_0x69931d+_0x1157d1(0x193)+_0x69931d+'w');return{'imageFallbackUrl':_0x3f287c,'imageSources':[{'srcset':_0x98a6fb[_0x1157d1(0x176)](',\x20'),'sizes':_0x1157d1(0x171)+_0x289c1e+_0x1157d1(0x17f)+_0x289c1e+'px','type':_0x1157d1(0x177)}]};}function _0x26bc(_0x27195f,_0x31b5fc){const _0x4098b9=_0x4098();return _0x26bc=function(_0x26bc3e,_0x4381fb){_0x26bc3e=_0x26bc3e-0x16b;let _0x3fd2ca=_0x4098b9[_0x26bc3e];return _0x3fd2ca;},_0x26bc(_0x27195f,_0x31b5fc);}export function getImageDimension(_0x257fc1,_0x11ca32,_0x20cac7){const _0x30412b=_0x26bc,_0x3a6cc8=_0x257fc1[_0x30412b(0x1a5)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3a6cc8?parseInt(_0x3a6cc8[0x1],0xa):_0x11ca32,'height':_0x3a6cc8?parseInt(_0x3a6cc8[0x2],0xa):_0x20cac7};}export function showImageProcessingIndicator(_0x418754,_0x1eea24){const _0xc3d4d4=_0x26bc,_0x45be0=new(_0x5afa59())(),_0x1a4cee=_0x418754[_0xc3d4d4(0x19b)][_0xc3d4d4(0x18f)](_0xc3d4d4(0x16c)),_0x584210=_0x418754[_0xc3d4d4(0x191)][_0xc3d4d4(0x179)][_0xc3d4d4(0x199)](_0x1eea24),_0x6a2bb6=_0x1a4cee[_0xc3d4d4(0x181)](_0x584210),_0x639b66=_0x418754[_0xc3d4d4(0x191)][_0xc3d4d4(0x178)][_0xc3d4d4(0x182)][_0xc3d4d4(0x18e)](_0x6a2bb6),_0x26bf5c=_0x1eea24[_0xc3d4d4(0x188)](_0xc3d4d4(0x17d)),_0xdc4bb0=_0x1eea24[_0xc3d4d4(0x188)](_0xc3d4d4(0x17b)),_0x14cf51=_0xc3d4d4(0x18d);_0x418754[_0xc3d4d4(0x191)][_0xc3d4d4(0x178)][_0xc3d4d4(0x173)](_0x3df469=>{const _0x5c605d=_0xc3d4d4;_0x3df469[_0x5c605d(0x16b)](_0x14cf51,_0x584210),_0x3df469[_0x5c605d(0x186)](_0x5c605d(0x17c),_0x26bf5c+'/'+_0xdc4bb0,_0x6a2bb6);}),_0x45be0[_0xc3d4d4(0x196)](_0x639b66,_0xc3d4d4(0x192),()=>{const _0x89161e=_0xc3d4d4;_0x45be0[_0x89161e(0x197)](_0x639b66,_0x89161e(0x192)),_0x418754[_0x89161e(0x191)][_0x89161e(0x178)][_0x89161e(0x173)](_0x4602b7=>{const _0x11f741=_0x89161e;_0x4602b7[_0x11f741(0x189)](_0x14cf51,_0x584210),_0x4602b7[_0x11f741(0x170)](_0x11f741(0x17c),_0x6a2bb6);});});}function G(_0x4fda4e){const _0xfddb1c=_0x26bc;if(Array[_0xfddb1c(0x18b)](_0x4fda4e)){const _0x10127a=_0x4fda4e[_0xfddb1c(0x1a1)](G);return _0x100fa0=>_0x10127a[_0xfddb1c(0x16f)](_0x3e251=>_0x3e251(_0x100fa0));}if(_0xfddb1c(0x19e)==_0x4fda4e){const _0x4f6445=_0x55430d[_0xfddb1c(0x1a3)][_0xfddb1c(0x18c)][_0xfddb1c(0x19e)];return _0x392a1e=>new URL(_0x392a1e,_0x55430d[_0xfddb1c(0x1a2)][_0xfddb1c(0x184)])[_0xfddb1c(0x19e)]==_0x4f6445;}return _0xfddb1c(0x19c)==typeof _0x4fda4e?_0x4fda4e:_0x4fda4e instanceof RegExp?_0x1a5aae=>!(!_0x1a5aae[_0xfddb1c(0x1a5)](_0x4fda4e)&&!_0x1a5aae[_0xfddb1c(0x194)](/^https?:\/\//,'')[_0xfddb1c(0x1a5)](_0x4fda4e)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5e16f0,_0x12b33c){var _0x44de59=_0x8313,_0x5e55fa=_0x5e16f0();while(!![]){try{var _0x401363=-parseInt(_0x44de59(0x15f))/0x1+-parseInt(_0x44de59(0x160))/0x2+parseInt(_0x44de59(0x161))/0x3*(-parseInt(_0x44de59(0x159))/0x4)+-parseInt(_0x44de59(0x15a))/0x5*(-parseInt(_0x44de59(0x157))/0x6)+parseInt(_0x44de59(0x15b))/0x7*(parseInt(_0x44de59(0x158))/0x8)+parseInt(_0x44de59(0x15e))/0x9*(-parseInt(_0x44de59(0x15c))/0xa)+parseInt(_0x44de59(0x15d))/0xb;if(_0x401363===_0x12b33c)break;else _0x5e55fa['push'](_0x5e55fa['shift']());}catch(_0xe7a1b2){_0x5e55fa['push'](_0x5e55fa['shift']());}}}(_0x153c,0x1f377));function _0x153c(){var _0xce5571=['8JCQffv','2868fWQkZa','5wXzZEa','401786MkKaPZ','763790YZDHud','4489859hCyDzs','9DkYmKH','149030RfWUaB','151806nUvvBq','390zhsVdL','target','includes','340908DOLyWB'];_0x153c=function(){return _0xce5571;};return _0x153c();}function _0x8313(_0x13ec52,_0x4c558f){var _0x153c80=_0x153c();return _0x8313=function(_0x83134e,_0x83b95b){_0x83134e=_0x83134e-0x155;var _0x712321=_0x153c80[_0x83134e];return _0x712321;},_0x8313(_0x13ec52,_0x4c558f);}import{getAncestors as _0x42383d}from'ckeditor5/src/utils.js';export function isAncestor(_0x3d928a,_0x391358){var _0x498da5=_0x8313;return _0x42383d(_0x3d928a[_0x498da5(0x155)])[_0x498da5(0x156)](_0x391358);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5affe3=_0x27f1;(function(_0x4402a3,_0x3d318a){var _0x454a16=_0x27f1,_0x5e3603=_0x4402a3();while(!![]){try{var _0x25917b=parseInt(_0x454a16(0xed))/0x1+-parseInt(_0x454a16(0xee))/0x2*(-parseInt(_0x454a16(0xf1))/0x3)+-parseInt(_0x454a16(0xe6))/0x4*(parseInt(_0x454a16(0xeb))/0x5)+-parseInt(_0x454a16(0xef))/0x6*(-parseInt(_0x454a16(0xf0))/0x7)+parseInt(_0x454a16(0xf2))/0x8*(-parseInt(_0x454a16(0xe5))/0x9)+parseInt(_0x454a16(0xec))/0xa*(-parseInt(_0x454a16(0xe9))/0xb)+-parseInt(_0x454a16(0xea))/0xc*(-parseInt(_0x454a16(0xe8))/0xd);if(_0x25917b===_0x3d318a)break;else _0x5e3603['push'](_0x5e3603['shift']());}catch(_0x32f3b1){_0x5e3603['push'](_0x5e3603['shift']());}}}(_0x4009,0x1a702));function _0x27f1(_0x43ba48,_0x2eee3c){var _0x400961=_0x4009();return _0x27f1=function(_0x27f119,_0x5ae912){_0x27f119=_0x27f119-0xe4;var _0x23a12c=_0x400961[_0x27f119];return _0x23a12c;},_0x27f1(_0x43ba48,_0x2eee3c);}import{uploadFile as _0x436f63,info as _0x15a358}from'@uploadcare/upload-client';function _0x4009(){var _0x10e77f=['34908yfKxbY','9435kZoZHw','30qQaMlX','178196tkrJCF','10yPiVad','12SzxQHJ','677957JPvurI','50877mZnklQ','149752CXRNAp','upload','36nQsUnR','340kpveCp','getInfo','377JdOdRT','724141TSQJLi'];_0x4009=function(){return _0x10e77f;};return _0x4009();}export class UploadUtils{static[_0x5affe3(0xe4)]({file:_0x5bdcb8,..._0x2a6abf}){return _0x436f63(_0x5bdcb8,_0x2a6abf);}static[_0x5affe3(0xe7)](_0x3296e7,_0x2dddae){return _0x15a358(_0x3296e7,_0x2dddae);}}
|