@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251213.0 → 0.0.0-nightly-next-20251214.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 _0x46cfbe,View as _0xfb2fec}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0xfb2fec{constructor(_0x251870){super(_0x251870);const t=_0x251870['t'],_0x59a891=this['bindTemplate'],_0x3f36e4=new _0x46cfbe();_0x3f36e4['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':[_0x3f36e4,{'text':_0x59a891['to']('imageUploadProgress',_0x3113bb=>t('Loading\x20image...')+'\x20('+(_0x3113bb||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 _0x3107(){const _0x1c0534=['addMany','nodeName','_focusableView','fire','1861992BcgsdV','set','observe','_editingView','render','element','detail','setTemplate','apply','addEventListener','retry','createCollection','_setView','target','_waitForImageEditorComponent','ck-uploadcare-form','2RhZUaU','getFocusableElement','error','cancel','clear','244886ejMnKI','_errorView','516mcAcuq','length','cdnUrl','add','722583qAZvAg','ready','change:status','once','_loadingView','status','div','disconnect','addedNodes','_items','uc-cloud-image-editor','uploading','filter','10077GKAvBU','929840sYZzKR','focus','toLowerCase','querySelector','9863nQbxSy','_addErrorViewListeners','494200sYmYtK','_addUploadcareImageEditorListeners','ck-reset_all-excluded','40HUmJFE'];_0x3107=function(){return _0x1c0534;};return _0x3107();}const _0x48647=_0x28e6;(function(_0x5a4fc4,_0x6d1b5){const _0x5c3904=_0x28e6,_0x58fd12=_0x5a4fc4();while(!![]){try{const _0xb67d2f=-parseInt(_0x5c3904(0xb2))/0x1*(parseInt(_0x5c3904(0xad))/0x2)+parseInt(_0x5c3904(0x8e))/0x3+-parseInt(_0x5c3904(0x95))/0x4+-parseInt(_0x5c3904(0x8f))/0x5+-parseInt(_0x5c3904(0xb4))/0x6*(-parseInt(_0x5c3904(0x93))/0x7)+parseInt(_0x5c3904(0x9d))/0x8+-parseInt(_0x5c3904(0x81))/0x9*(-parseInt(_0x5c3904(0x98))/0xa);if(_0xb67d2f===_0x6d1b5)break;else _0x58fd12['push'](_0x58fd12['shift']());}catch(_0x483a2e){_0x58fd12['push'](_0x58fd12['shift']());}}}(_0x3107,0x1e47a));import{View as _0x14d6bd}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x3749aa}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3afba4}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x8425c9}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x29a0a3}from'../../utils/dialogfocusmanagerview.js';function _0x28e6(_0x3a944c,_0x1a6f29){const _0x310783=_0x3107();return _0x28e6=function(_0x28e64a,_0x345dd5){_0x28e64a=_0x28e64a-0x7f;let _0x1f0e05=_0x310783[_0x28e64a];return _0x1f0e05;},_0x28e6(_0x3a944c,_0x1a6f29);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x29a0a3{[_0x48647(0x8a)];[_0x48647(0x85)];[_0x48647(0xb3)];[_0x48647(0xa0)];[_0x48647(0x9b)];constructor(_0x2b8b01,_0x4cbbc7,_0x4fdc71){const _0x187485=_0x48647;super(_0x2b8b01),this[_0x187485(0x8a)]=this[_0x187485(0xa8)](),this[_0x187485(0x85)]=new _0x3749aa(_0x2b8b01),this[_0x187485(0xb3)]=new _0x3afba4(_0x2b8b01),this[_0x187485(0xa0)]=new _0x8425c9(_0x2b8b01,_0x4fdc71),this[_0x187485(0x9b)]=new _0x14d6bd(_0x2b8b01),this[_0x187485(0x9b)][_0x187485(0xa4)](this[_0x187485(0xae)]()),this[_0x187485(0x9e)](_0x187485(0x86),_0x4cbbc7),this[_0x187485(0xa4)]({'tag':_0x187485(0x87),'attributes':{'class':['ck',_0x187485(0x97),_0x187485(0xac)],'tabindex':'-1'},'children':this[_0x187485(0x8a)]}),this[_0x187485(0xa9)](),this[_0x187485(0x84)](_0x187485(0xa1),()=>{const _0x1a66b4=_0x187485;this[_0x1a66b4(0xab)](this[_0x1a66b4(0xa2)],_0x112b76=>{const _0x3f5b9d=_0x1a66b4;this[_0x3f5b9d(0x96)](_0x112b76);});}),this['on'](_0x187485(0x83),()=>{const _0x583c2a=_0x187485;this[_0x583c2a(0xa9)]();}),this[_0x187485(0x94)]();}[_0x48647(0x90)](){const _0x14cf0a=_0x48647;this[_0x14cf0a(0xa2)][_0x14cf0a(0x90)]();}[_0x48647(0xa9)](){const _0x5a4b96=_0x48647;switch(this[_0x5a4b96(0x8a)][_0x5a4b96(0xb1)](),this[_0x5a4b96(0x86)]){case _0x5a4b96(0x8c):this[_0x5a4b96(0x8a)][_0x5a4b96(0x80)](this[_0x5a4b96(0x85)]);break;case _0x5a4b96(0xaf):this[_0x5a4b96(0x8a)][_0x5a4b96(0x80)](this[_0x5a4b96(0xb3)]);break;case _0x5a4b96(0x82):this[_0x5a4b96(0x8a)][_0x5a4b96(0x99)]([this[_0x5a4b96(0xa0)],this[_0x5a4b96(0x9b)]]);}}[_0x48647(0xab)](_0x29783b,_0x543b00){const _0xd2446a=_0x48647,_0x76cb7c=_0xd2446a(0x8b),_0x1a6970=_0x29783b[_0xd2446a(0x92)](_0x76cb7c);if(_0x1a6970)return _0x543b00(_0x1a6970);const _0x4ace2a=new MutationObserver(_0x4b9e35=>{const _0x3c808e=_0xd2446a,_0x5b599b=_0x4b9e35[_0x3c808e(0x8d)](_0x349c0c=>_0x349c0c[_0x3c808e(0xaa)]===_0x29783b&&_0x349c0c[_0x3c808e(0x89)][_0x3c808e(0xb5)]>0x0&&_0x349c0c[_0x3c808e(0x89)][0x0][_0x3c808e(0x9a)][_0x3c808e(0x91)]()===_0x76cb7c);_0x5b599b[_0x3c808e(0xb5)]&&(_0x4ace2a[_0x3c808e(0x88)](),_0x543b00(_0x5b599b[0x0][_0x3c808e(0x89)][0x0]));});_0x4ace2a[_0xd2446a(0x9f)](_0x29783b,{'childList':!0x0,'subtree':!0x0});}[_0x48647(0x96)](_0x49783a){const _0x2ffe97=_0x48647;_0x49783a[_0x2ffe97(0xa6)](_0x2ffe97(0xa5),_0x2498c9=>{const _0xc3b2f6=_0x2ffe97;this[_0xc3b2f6(0x9c)](_0xc3b2f6(0xa5),{'imageSrc':_0x2498c9[_0xc3b2f6(0xa3)][_0xc3b2f6(0x7f)]});}),_0x49783a[_0x2ffe97(0xa6)](_0x2ffe97(0xb0),()=>{const _0x46a7b1=_0x2ffe97;this[_0x46a7b1(0x9c)](_0x46a7b1(0xb0));});}[_0x48647(0x94)](){const _0x4e4987=_0x48647;this[_0x4e4987(0xb3)]['on'](_0x4e4987(0xa7),()=>{const _0x12f41a=_0x4e4987;this[_0x12f41a(0x9c)](_0x12f41a(0xa7));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x273ea8=_0x2be5;(function(_0x3533b0,_0x4749e4){const _0x17b24b=_0x2be5,_0x3d3a3a=_0x3533b0();while(!![]){try{const _0x508466=parseInt(_0x17b24b(0x8d))/0x1*(-parseInt(_0x17b24b(0x82))/0x2)+-parseInt(_0x17b24b(0x83))/0x3+parseInt(_0x17b24b(0x84))/0x4*(-parseInt(_0x17b24b(0x92))/0x5)+-parseInt(_0x17b24b(0x7b))/0x6+parseInt(_0x17b24b(0x77))/0x7+parseInt(_0x17b24b(0x73))/0x8*(-parseInt(_0x17b24b(0x93))/0x9)+-parseInt(_0x17b24b(0x8f))/0xa*(-parseInt(_0x17b24b(0x80))/0xb);if(_0x508466===_0x4749e4)break;else _0x3d3a3a['push'](_0x3d3a3a['shift']());}catch(_0x3d854f){_0x3d3a3a['push'](_0x3d3a3a['shift']());}}}(_0x4993,0x32d9c));import{Command as _0x400659}from'ckeditor5/src/core.js';import{Dialog as _0x310dbb}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x234e1c}from'./ui/uploadcareimageeditcontroller.js';function _0x2be5(_0x2615a8,_0x2807cf){const _0x4993a1=_0x4993();return _0x2be5=function(_0x2be5db,_0x46acd1){_0x2be5db=_0x2be5db-0x73;let _0xd200dc=_0x4993a1[_0x2be5db];return _0xd200dc;},_0x2be5(_0x2615a8,_0x2807cf);}import{createEditabilityChecker as _0xdafa76}from'../utils/editingutils.js';function _0x4993(){const _0x54b19c=['model','1485512KVReCD','isActive','get','requires','1979700bClpbn','imageEditController','config','set','imageBlock','40997SoUpzs','imageInline','8EEZYRH','931782zjNmAC','528rdDGlE','bind','_isEditable','element','uploadcare.allowExternalImagesEditing','editor','unbind','isEnabled','getSelectedElement','50681VfUNcC','refresh','3590mIILUl','plugins','execute','12920waMiim','1431dkVqZI','7928mEyKgU','selection','document'];_0x4993=function(){return _0x54b19c;};return _0x4993();}export class UploadcareImageEditCommand extends _0x400659{[_0x273ea8(0x7c)];static get[_0x273ea8(0x7a)](){return[_0x310dbb];}[_0x273ea8(0x86)];constructor(_0x217c15){const _0x3b0fe5=_0x273ea8;super(_0x217c15),this[_0x3b0fe5(0x7c)]=void 0x0,this[_0x3b0fe5(0x86)]=_0xdafa76(_0x217c15[_0x3b0fe5(0x7d)][_0x3b0fe5(0x79)](_0x3b0fe5(0x88))||[]),this[_0x3b0fe5(0x7e)]({'isActive':!0x1});}[_0x273ea8(0x8e)](){const _0x4983c5=_0x273ea8,_0x2ae18d=this[_0x4983c5(0x89)][_0x4983c5(0x76)][_0x4983c5(0x75)][_0x4983c5(0x74)][_0x4983c5(0x8c)]();this[_0x4983c5(0x8b)]=this[_0x4983c5(0x86)](_0x2ae18d);}[_0x273ea8(0x91)](){const _0x1198db=_0x273ea8;this[_0x1198db(0x7c)]&&(this[_0x1198db(0x8a)](_0x1198db(0x78)),this[_0x1198db(0x7c)]=void 0x0);const _0x3d20ac=this[_0x1198db(0x89)][_0x1198db(0x76)][_0x1198db(0x75)][_0x1198db(0x74)][_0x1198db(0x8c)]();_0x3d20ac&&(_0x3d20ac['is'](_0x1198db(0x87),_0x1198db(0x7f))||_0x3d20ac['is'](_0x1198db(0x87),_0x1198db(0x81)))&&(this[_0x1198db(0x7c)]=new _0x234e1c(this[_0x1198db(0x89)],this[_0x1198db(0x89)][_0x1198db(0x90)][_0x1198db(0x79)](_0x310dbb),_0x3d20ac),this[_0x1198db(0x85)](_0x1198db(0x78))['to'](this[_0x1198db(0x7c)],_0x1198db(0x78)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4302b9=_0x53ab;(function(_0x408c21,_0x359838){const _0x5ab6bf=_0x53ab,_0x2f006e=_0x408c21();while(!![]){try{const _0x3f9539=parseInt(_0x5ab6bf(0x1d9))/0x1+-parseInt(_0x5ab6bf(0x1e8))/0x2+parseInt(_0x5ab6bf(0x1e3))/0x3+parseInt(_0x5ab6bf(0x1e1))/0x4*(parseInt(_0x5ab6bf(0x1da))/0x5)+parseInt(_0x5ab6bf(0x1dc))/0x6*(-parseInt(_0x5ab6bf(0x1db))/0x7)+-parseInt(_0x5ab6bf(0x1ec))/0x8*(parseInt(_0x5ab6bf(0x1de))/0x9)+parseInt(_0x5ab6bf(0x1e9))/0xa;if(_0x3f9539===_0x359838)break;else _0x2f006e['push'](_0x2f006e['shift']());}catch(_0x10ce7c){_0x2f006e['push'](_0x2f006e['shift']());}}}(_0x407b,0x3c875));import{Plugin as _0x3368ab}from'ckeditor5/src/core.js';import{Notification as _0xc32748}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1f6355}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x10715e}from'./uploadcareimagereplacecommand.js';function _0x53ab(_0x1393d4,_0x463e7d){const _0x407bcf=_0x407b();return _0x53ab=function(_0x53ab41,_0x2ed31f){_0x53ab41=_0x53ab41-0x1d7;let _0x764175=_0x407bcf[_0x53ab41];return _0x764175;},_0x53ab(_0x1393d4,_0x463e7d);}import{UploadcareEditing as _0x9f9e49}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x3368ab{static get[_0x4302b9(0x1e0)](){const _0x12de2b=_0x4302b9;return _0x12de2b(0x1eb);}static get[_0x4302b9(0x1e6)](){const _0x1af4ed=_0x4302b9;return[_0x9f9e49,_0xc32748,_0x1af4ed(0x1ea),_0x1af4ed(0x1e5)];}static get[_0x4302b9(0x1df)](){return!0x0;}static get[_0x4302b9(0x1dd)](){return!0x0;}[_0x4302b9(0x1d7)](){const _0x103a49=_0x4302b9,{editor:_0x475b73}=this;_0x475b73[_0x103a49(0x1e4)][_0x103a49(0x1e7)](_0x103a49(0x1d8),new _0x1f6355(_0x475b73)),_0x475b73[_0x103a49(0x1e4)][_0x103a49(0x1e7)](_0x103a49(0x1e2),new _0x10715e(_0x475b73));}}function _0x407b(){const _0x314541=['623399aeAMIy','30EEEwVH','isPremiumPlugin','9kQgyCL','isOfficialPlugin','pluginName','36804WxNeYu','uploadcareImageReplace','415362Cpuvme','commands','ImageEditing','requires','add','158744cNXzIm','3308170PFOPzi','ImageUtils','UploadcareImageEditEditing','926872qNtxYs','init','uploadcareImageEdit','317959lUOggi','55DbLxxK'];_0x407b=function(){return _0x314541;};return _0x407b();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1fa909}from'ckeditor5/src/core.js';import{ButtonView as _0x48c017}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4c1cd7}from'ckeditor5/src/icons.js';import{createElement as _0x37c580}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 _0x1fa909{['_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 _0x329efe=this['editor'];_0x329efe['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1d6553=>{const _0x162e4f=_0x329efe['commands']['get']('uploadcareImageEdit'),_0x44ce59=new _0x48c017(_0x1d6553),t=_0x1d6553['t'];return _0x44ce59['set']({'icon':_0x4c1cd7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x44ce59['bind']('isEnabled')['to'](_0x162e4f),_0x44ce59['bind']('isOn')['to'](_0x162e4f,'isActive'),this['listenTo'](_0x44ce59,'execute',()=>{_0x329efe['execute']('uploadcareImageEdit'),_0x329efe['editing']['view']['focus']();}),_0x44ce59;}),this['_initConfig']();}['_initConfig'](){const _0x1fad7b=_0x37c580(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1fad7b),this['listenTo'](this['editor'],'destroy',()=>{_0x1fad7b['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x42e7a5=_0x10de;(function(_0x28d40c,_0x3e6866){var _0x1e9989=_0x10de,_0x13392c=_0x28d40c();while(!![]){try{var _0x74f8d7=parseInt(_0x1e9989(0x15f))/0x1*(-parseInt(_0x1e9989(0x15e))/0x2)+-parseInt(_0x1e9989(0x162))/0x3*(parseInt(_0x1e9989(0x166))/0x4)+parseInt(_0x1e9989(0x164))/0x5+-parseInt(_0x1e9989(0x15b))/0x6+parseInt(_0x1e9989(0x15c))/0x7+parseInt(_0x1e9989(0x158))/0x8+-parseInt(_0x1e9989(0x160))/0x9*(-parseInt(_0x1e9989(0x165))/0xa);if(_0x74f8d7===_0x3e6866)break;else _0x13392c['push'](_0x13392c['shift']());}catch(_0x143fd5){_0x13392c['push'](_0x13392c['shift']());}}}(_0x4125,0x1894a));import{FocusTracker as _0x4fc894}from'ckeditor5/src/utils.js';import{View as _0x5d9760,FocusCycler as _0x424bce}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x10de(_0x18f69f,_0x1cc105){var _0x412539=_0x4125();return _0x10de=function(_0x10dea8,_0x599cdc){_0x10dea8=_0x10dea8-0x156;var _0x201e39=_0x412539[_0x10dea8];return _0x201e39;},_0x10de(_0x18f69f,_0x1cc105);}export class DialogFocusManagerView extends _0x5d9760{[_0x42e7a5(0x161)];[_0x42e7a5(0x157)];constructor(_0x23156c){var _0x491027=_0x42e7a5;super(_0x23156c),this[_0x491027(0x161)]=new _0x4fc894(),this[_0x491027(0x157)]=new _0x424bce({'focusables':this[_0x491027(0x15d)](),'focusTracker':this[_0x491027(0x161)]});}[_0x42e7a5(0x15a)](){var _0x1a9d7=_0x42e7a5;return{'tag':_0x1a9d7(0x167),'attributes':{'aria-hidden':_0x1a9d7(0x159),'tabindex':'0'},'on':{'focus':this[_0x1a9d7(0x156)]['to'](()=>{var _0x33f3fd=_0x1a9d7;this[_0x33f3fd(0x157)][_0x33f3fd(0x163)](_0x33f3fd(0x168));})}};}}function _0x4125(){var _0xaef80c=['div','forwardCycle','bindTemplate','focusCycler','386240bxrocr','true','getFocusableElement','339588zoEwXa','600901UnkANu','createCollection','14ehVmVd','6325iBWeNI','2080431awKIGD','focusTracker','14871hNdKhR','fire','147980fZWPsw','10fPVMuz','156bnpjvs'];_0x4125=function(){return _0xaef80c;};return _0x4125();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4d129b,_0x156864){const _0xcce26b=_0x5d84,_0x4da54e=_0x4d129b();while(!![]){try{const _0x17d17a=parseInt(_0xcce26b(0x1b4))/0x1*(-parseInt(_0xcce26b(0x1ad))/0x2)+-parseInt(_0xcce26b(0x1db))/0x3*(-parseInt(_0xcce26b(0x1d5))/0x4)+parseInt(_0xcce26b(0x1d0))/0x5*(parseInt(_0xcce26b(0x1ae))/0x6)+parseInt(_0xcce26b(0x1d3))/0x7*(parseInt(_0xcce26b(0x1cc))/0x8)+parseInt(_0xcce26b(0x1d9))/0x9*(-parseInt(_0xcce26b(0x1d6))/0xa)+parseInt(_0xcce26b(0x1bc))/0xb+-parseInt(_0xcce26b(0x1b3))/0xc*(parseInt(_0xcce26b(0x1ac))/0xd);if(_0x17d17a===_0x156864)break;else _0x4da54e['push'](_0x4da54e['shift']());}catch(_0x2bbdf5){_0x4da54e['push'](_0x4da54e['shift']());}}}(_0x2b70,0x840d1));function _0x5d84(_0x37a8f0,_0x1801bb){const _0x2b705a=_0x2b70();return _0x5d84=function(_0x5d84fe,_0x30f3b3){_0x5d84fe=_0x5d84fe-0x1a0;let _0x4f9825=_0x2b705a[_0x5d84fe];return _0x4f9825;},_0x5d84(_0x37a8f0,_0x1801bb);}import{global as _0x35f733,DomEmitterMixin as _0x5c6bcd}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x2b39eb){const _0x210ecc=_0x5d84,_0x3e055f=z(_0x2b39eb);return _0x5697ac=>!(!_0x5697ac||!_0x5697ac['is'](_0x210ecc(0x1c6),_0x210ecc(0x1a0))&&!_0x5697ac['is'](_0x210ecc(0x1c6),_0x210ecc(0x1a8)))&&(!!_0x5697ac[_0x210ecc(0x1a9)](_0x210ecc(0x1cd))||!!_0x5697ac[_0x210ecc(0x1a9)](_0x210ecc(0x1a6))&&_0x3e055f(_0x5697ac[_0x210ecc(0x1ab)](_0x210ecc(0x1a6))));}export function getImageUrls(_0x1c20dc,_0x3d6803){const _0x430419=_0x5d84,_0x256b8f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x430419(0x1be)](_0x6ac79b=>_0x6ac79b<=_0x3d6803)[_0x430419(0x1c1)](_0x2abb35=>_0x1c20dc[_0x430419(0x1c2)](/\/$/,'')+_0x430419(0x1af)+_0x2abb35+_0x430419(0x1cb)+_0x2abb35+'w');return{'imageFallbackUrl':_0x1c20dc,'imageSources':[{'srcset':_0x256b8f[_0x430419(0x1c7)](',\x20'),'sizes':_0x430419(0x1c3)+_0x3d6803+_0x430419(0x1ce)+_0x3d6803+'px','type':_0x430419(0x1ba)}]};}export function getImageDimension(_0x428cb6,_0x21b866,_0xac023){const _0x2310e2=_0x5d84,_0x1c19d4=_0x428cb6[_0x2310e2(0x1a2)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1c19d4?parseInt(_0x1c19d4[0x1],0xa):_0x21b866,'height':_0x1c19d4?parseInt(_0x1c19d4[0x2],0xa):_0xac023};}export function showImageProcessingIndicator(_0x47a038,_0xd56cba){const _0xba8f98=_0x5d84,_0x4a481b=new(_0x5c6bcd())(),_0x2624f7=_0x47a038[_0xba8f98(0x1b7)][_0xba8f98(0x1a3)](_0xba8f98(0x1a5)),_0x520283=_0x47a038[_0xba8f98(0x1c8)][_0xba8f98(0x1a4)][_0xba8f98(0x1d7)](_0xd56cba),_0x2d23b9=_0x2624f7[_0xba8f98(0x1d8)](_0x520283),_0x424139=_0x47a038[_0xba8f98(0x1c8)][_0xba8f98(0x1ca)][_0xba8f98(0x1da)][_0xba8f98(0x1c0)](_0x2d23b9),_0x4ecef8=_0xd56cba[_0xba8f98(0x1ab)](_0xba8f98(0x1bd)),_0x36a069=_0xd56cba[_0xba8f98(0x1ab)](_0xba8f98(0x1a7)),_0x1fb9bb=_0xba8f98(0x1aa);_0x47a038[_0xba8f98(0x1c8)][_0xba8f98(0x1ca)][_0xba8f98(0x1a1)](_0x233065=>{const _0x1bfb15=_0xba8f98;_0x233065[_0x1bfb15(0x1bf)](_0x1fb9bb,_0x520283),_0x233065[_0x1bfb15(0x1d4)](_0x1bfb15(0x1b9),_0x4ecef8+'/'+_0x36a069,_0x2d23b9);}),_0x4a481b[_0xba8f98(0x1bb)](_0x424139,_0xba8f98(0x1b8),()=>{const _0x15fcd3=_0xba8f98;_0x4a481b[_0x15fcd3(0x1b6)](_0x424139,_0x15fcd3(0x1b8)),_0x47a038[_0x15fcd3(0x1c8)][_0x15fcd3(0x1ca)][_0x15fcd3(0x1a1)](_0xffb09=>{const _0x592717=_0x15fcd3;_0xffb09[_0x592717(0x1d2)](_0x1fb9bb,_0x520283),_0xffb09[_0x592717(0x1b5)](_0x592717(0x1b9),_0x2d23b9);});});}function z(_0x5799b7){const _0x157524=_0x5d84;if(Array[_0x157524(0x1c9)](_0x5799b7)){const _0x221c6c=_0x5799b7[_0x157524(0x1c1)](z);return _0x18c7b6=>_0x221c6c[_0x157524(0x1c4)](_0x2afd33=>_0x2afd33(_0x18c7b6));}if(_0x157524(0x1cf)==_0x5799b7){const _0x34ba09=_0x35f733[_0x157524(0x1d1)][_0x157524(0x1b1)][_0x157524(0x1cf)];return _0x48c7b5=>new URL(_0x48c7b5,_0x35f733[_0x157524(0x1c5)][_0x157524(0x1b2)])[_0x157524(0x1cf)]==_0x34ba09;}return _0x157524(0x1b0)==typeof _0x5799b7?_0x5799b7:_0x5799b7 instanceof RegExp?_0x29bf26=>!(!_0x29bf26[_0x157524(0x1a2)](_0x5799b7)&&!_0x29bf26[_0x157524(0x1c2)](/^https?:\/\//,'')[_0x157524(0x1a2)](_0x5799b7)):()=>!0x1;}function _0x2b70(){const _0x1ac87f=['load','aspect-ratio','image/webp','listenTo','5497426qgjUkF','width','filter','addClass','viewToDom','map','replace','(max-width:\x20','some','document','element','join','editing','isArray','view','x/\x20','1913872iBhnTw','uploadcareImageId','px)\x20100vw,\x20','origin','996295bIfnYO','window','removeClass','14NZVyJB','setStyle','104hVoLTl','30450AhXCsb','toViewElement','findViewImgElement','1935VRBfDd','domConverter','118071gBLKra','imageBlock','change','match','get','mapper','ImageUtils','src','height','imageInline','hasAttribute','image-processing','getAttribute','13JMPyCA','58gJxFSS','6tSOfCw','/-/resize/','function','location','baseURI','2592504MuRVZE','27213giRJcx','removeStyle','stopListening','plugins'];_0x2b70=function(){return _0x1ac87f;};return _0x2b70();}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2b42d5,_0x1d1d07){var _0x48e7ae=_0x2302,_0x307ae0=_0x2b42d5();while(!![]){try{var _0x171fa8=parseInt(_0x48e7ae(0x15b))/0x1*(-parseInt(_0x48e7ae(0x159))/0x2)+-parseInt(_0x48e7ae(0x157))/0x3*(-parseInt(_0x48e7ae(0x15e))/0x4)+-parseInt(_0x48e7ae(0x160))/0x5+-parseInt(_0x48e7ae(0x15a))/0x6*(parseInt(_0x48e7ae(0x162))/0x7)+parseInt(_0x48e7ae(0x156))/0x8+parseInt(_0x48e7ae(0x15d))/0x9*(parseInt(_0x48e7ae(0x158))/0xa)+parseInt(_0x48e7ae(0x15f))/0xb;if(_0x171fa8===_0x1d1d07)break;else _0x307ae0['push'](_0x307ae0['shift']());}catch(_0xa90de3){_0x307ae0['push'](_0x307ae0['shift']());}}}(_0x532e,0x4baa4));function _0x2302(_0x52fef9,_0x2f7de5){var _0x532e27=_0x532e();return _0x2302=function(_0x230244,_0x26322e){_0x230244=_0x230244-0x156;var _0x4946ed=_0x532e27[_0x230244];return _0x4946ed;},_0x2302(_0x52fef9,_0x2f7de5);}function _0x532e(){var _0x257793=['9587GloUih','includes','18syCsZG','348meSoqI','10291358NLaYzY','2760860hCjYIM','target','4026491evdDnH','3337880IWtrDn','1713FQGaoX','509640LXTpDx','14nvDDVm','6IdSVZq'];_0x532e=function(){return _0x257793;};return _0x532e();}import{getAncestors as _0xcb8a78}from'ckeditor5/src/utils.js';export function isAncestor(_0x26f782,_0x48bff6){var _0x47b6cd=_0x2302;return _0xcb8a78(_0x26f782[_0x47b6cd(0x161)])[_0x47b6cd(0x15c)](_0x48bff6);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4b0d68=_0x239c;(function(_0x3b59e8,_0x3782e2){var _0x56840e=_0x239c,_0x355128=_0x3b59e8();while(!![]){try{var _0x19ef44=-parseInt(_0x56840e(0x159))/0x1*(-parseInt(_0x56840e(0x151))/0x2)+parseInt(_0x56840e(0x154))/0x3+-parseInt(_0x56840e(0x15c))/0x4*(-parseInt(_0x56840e(0x153))/0x5)+-parseInt(_0x56840e(0x158))/0x6*(parseInt(_0x56840e(0x157))/0x7)+-parseInt(_0x56840e(0x156))/0x8*(parseInt(_0x56840e(0x150))/0x9)+parseInt(_0x56840e(0x15b))/0xa*(parseInt(_0x56840e(0x15d))/0xb)+parseInt(_0x56840e(0x155))/0xc*(parseInt(_0x56840e(0x152))/0xd);if(_0x19ef44===_0x3782e2)break;else _0x355128['push'](_0x355128['shift']());}catch(_0x225b15){_0x355128['push'](_0x355128['shift']());}}}(_0x3983,0xd996c));function _0x3983(){var _0x198ece=['5352KydLue','4jTynJA','upload','1200660zXhFSy','5352HxSDME','88vVsXMF','getInfo','297BxCVuL','25786YNOajJ','13dlYjFv','2270NJwiax','3575742zNwdAm','6323532sPEgZK','278840NnScRb','10178SyJjHA'];_0x3983=function(){return _0x198ece;};return _0x3983();}function _0x239c(_0x159287,_0x2c8623){var _0x398364=_0x3983();return _0x239c=function(_0x239c31,_0x4dbb86){_0x239c31=_0x239c31-0x150;var _0x4e464d=_0x398364[_0x239c31];return _0x4e464d;},_0x239c(_0x159287,_0x2c8623);}import{uploadFile as _0x42be08,info as _0x365214}from'@uploadcare/upload-client';export class UploadUtils{static[_0x4b0d68(0x15a)]({file:_0x3d17d3,..._0x2f5f1e}){return _0x42be08(_0x3d17d3,_0x2f5f1e);}static[_0x4b0d68(0x15e)](_0x180bf2,_0x15af03){return _0x365214(_0x180bf2,_0x15af03);}}
|