@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250824.0 → 0.0.0-nightly-20250825.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 _0x5d7c0d,View as _0x4bd353}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x4bd353{constructor(_0x18e565){super(_0x18e565);const t=_0x18e565['t'],_0x502ce9=this['bindTemplate'],_0x1cb001=new _0x5d7c0d();_0x1cb001['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':[_0x1cb001,{'text':_0x502ce9['to']('imageUploadProgress',_0x3627d0=>t('Loading\x20image...')+'\x20('+(_0x3627d0||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 _0x135c13=_0x2d1a;(function(_0x382457,_0x50c833){const _0xc9a8ca=_0x2d1a,_0x330052=_0x382457();while(!![]){try{const _0x465dde=parseInt(_0xc9a8ca(0x1fa))/0x1+parseInt(_0xc9a8ca(0x220))/0x2*(-parseInt(_0xc9a8ca(0x21f))/0x3)+-parseInt(_0xc9a8ca(0x1f4))/0x4+-parseInt(_0xc9a8ca(0x207))/0x5*(parseInt(_0xc9a8ca(0x202))/0x6)+parseInt(_0xc9a8ca(0x20b))/0x7+parseInt(_0xc9a8ca(0x1ff))/0x8*(-parseInt(_0xc9a8ca(0x20f))/0x9)+parseInt(_0xc9a8ca(0x20d))/0xa;if(_0x465dde===_0x50c833)break;else _0x330052['push'](_0x330052['shift']());}catch(_0x28b76d){_0x330052['push'](_0x330052['shift']());}}}(_0x207a,0x997cf));import{View as _0x1d4431}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x549d4b}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x47f956}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x3a2afa}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x5eda10}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x2d1a(_0x288ed1,_0x1f20cb){const _0x207a04=_0x207a();return _0x2d1a=function(_0x2d1a2e,_0x49923e){_0x2d1a2e=_0x2d1a2e-0x1f1;let _0x4c3f78=_0x207a04[_0x2d1a2e];return _0x4c3f78;},_0x2d1a(_0x288ed1,_0x1f20cb);}export class UploadcareImageEditFormView extends _0x5eda10{[_0x135c13(0x201)];[_0x135c13(0x21e)];[_0x135c13(0x216)];[_0x135c13(0x209)];[_0x135c13(0x20a)];constructor(_0x41c372,_0x25314c,_0x565627){const _0x4d9687=_0x135c13;super(_0x41c372),this[_0x4d9687(0x201)]=this[_0x4d9687(0x219)](),this[_0x4d9687(0x21e)]=new _0x549d4b(_0x41c372),this[_0x4d9687(0x216)]=new _0x47f956(_0x41c372),this[_0x4d9687(0x209)]=new _0x3a2afa(_0x41c372,_0x565627),this[_0x4d9687(0x20a)]=new _0x1d4431(_0x41c372),this[_0x4d9687(0x20a)][_0x4d9687(0x1fe)](this[_0x4d9687(0x1f9)]()),this[_0x4d9687(0x21a)](_0x4d9687(0x1f8),_0x25314c),this[_0x4d9687(0x1fe)]({'tag':_0x4d9687(0x210),'attributes':{'class':['ck',_0x4d9687(0x1f5),_0x4d9687(0x21c)],'tabindex':'-1'},'children':this[_0x4d9687(0x201)]}),this[_0x4d9687(0x225)](),this[_0x4d9687(0x203)](_0x4d9687(0x208),()=>{const _0x24460e=_0x4d9687;this[_0x24460e(0x212)](this[_0x24460e(0x20e)],_0x5cf4d5=>{const _0x2c02ff=_0x24460e;this[_0x2c02ff(0x1fb)](_0x5cf4d5);});}),this['on'](_0x4d9687(0x214),()=>{const _0x3ee510=_0x4d9687;this[_0x3ee510(0x225)]();}),this[_0x4d9687(0x200)]();}[_0x135c13(0x20c)](){const _0x5d91f6=_0x135c13;this[_0x5d91f6(0x20e)][_0x5d91f6(0x20c)]();}[_0x135c13(0x225)](){const _0x107996=_0x135c13;switch(this[_0x107996(0x201)][_0x107996(0x213)](),this[_0x107996(0x1f8)]){case _0x107996(0x222):this[_0x107996(0x201)][_0x107996(0x21d)](this[_0x107996(0x21e)]);break;case _0x107996(0x1fc):this[_0x107996(0x201)][_0x107996(0x21d)](this[_0x107996(0x216)]);break;case _0x107996(0x224):this[_0x107996(0x201)][_0x107996(0x226)]([this[_0x107996(0x209)],this[_0x107996(0x20a)]]);}}[_0x135c13(0x212)](_0x2e5160,_0x14b0b8){const _0x377e1f=_0x135c13,_0x1b9286=_0x377e1f(0x204),_0xaab651=_0x2e5160[_0x377e1f(0x221)](_0x1b9286);if(_0xaab651)return _0x14b0b8(_0xaab651);const _0x49040e=new MutationObserver(_0x252c31=>{const _0x188ba7=_0x377e1f,_0x2c7971=_0x252c31[_0x188ba7(0x1f6)](_0x47fa99=>_0x47fa99[_0x188ba7(0x211)]===_0x2e5160&&_0x47fa99[_0x188ba7(0x206)][_0x188ba7(0x217)]>0x0&&_0x47fa99[_0x188ba7(0x206)][0x0][_0x188ba7(0x1f1)][_0x188ba7(0x215)]()===_0x1b9286);_0x2c7971[_0x188ba7(0x217)]&&(_0x49040e[_0x188ba7(0x218)](),_0x14b0b8(_0x2c7971[0x0][_0x188ba7(0x206)][0x0]));});_0x49040e[_0x377e1f(0x223)](_0x2e5160,{'childList':!0x0,'subtree':!0x0});}[_0x135c13(0x1fb)](_0x1383f2){const _0x4d90e4=_0x135c13;_0x1383f2[_0x4d90e4(0x1f2)](_0x4d90e4(0x1fd),_0xe4be3=>{const _0x4f5e09=_0x4d90e4;this[_0x4f5e09(0x227)](_0x4f5e09(0x1fd),{'imageSrc':_0xe4be3[_0x4f5e09(0x1f7)][_0x4f5e09(0x205)]});}),_0x1383f2[_0x4d90e4(0x1f2)](_0x4d90e4(0x1f3),()=>{const _0xd0f9b2=_0x4d90e4;this[_0xd0f9b2(0x227)](_0xd0f9b2(0x1f3));});}[_0x135c13(0x200)](){const _0x28914a=_0x135c13;this[_0x28914a(0x216)]['on'](_0x28914a(0x21b),()=>{const _0x2704ac=_0x28914a;this[_0x2704ac(0x227)](_0x2704ac(0x21b));});}}function _0x207a(){const _0x5e1813=['createCollection','set','retry','ck-uploadcare-form','add','_loadingView','2465793PNvyYF','2eOOqxB','querySelector','uploading','observe','ready','_setView','addMany','fire','nodeName','addEventListener','cancel','2333164aFiIcQ','ck-reset_all-excluded','filter','detail','status','getFocusableElement','171277xnjFNe','_addUploadcareImageEditorListeners','error','apply','setTemplate','8lUeqXV','_addErrorViewListeners','_items','242622YaDNDY','once','uc-cloud-image-editor','cdnUrl','addedNodes','5gCIueM','render','_editingView','_focusableView','2087015DxNxvY','focus','23288570VtXQGI','element','6515397oMeJzp','div','target','_waitForImageEditorComponent','clear','change:status','toLowerCase','_errorView','length','disconnect'];_0x207a=function(){return _0x5e1813;};return _0x207a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1180f7=_0x2c07;function _0x2c07(_0x2834ef,_0x5529fb){const _0x39c62d=_0x39c6();return _0x2c07=function(_0x2c0777,_0x5a40d8){_0x2c0777=_0x2c0777-0x1dd;let _0x204840=_0x39c62d[_0x2c0777];return _0x204840;},_0x2c07(_0x2834ef,_0x5529fb);}(function(_0x6c8fb9,_0x5349aa){const _0x35d4d6=_0x2c07,_0x5d9aab=_0x6c8fb9();while(!![]){try{const _0x344646=parseInt(_0x35d4d6(0x1fb))/0x1+parseInt(_0x35d4d6(0x1df))/0x2+parseInt(_0x35d4d6(0x1fc))/0x3*(parseInt(_0x35d4d6(0x1fe))/0x4)+-parseInt(_0x35d4d6(0x1f7))/0x5*(parseInt(_0x35d4d6(0x1f6))/0x6)+-parseInt(_0x35d4d6(0x1e7))/0x7*(parseInt(_0x35d4d6(0x1fa))/0x8)+parseInt(_0x35d4d6(0x1ec))/0x9*(parseInt(_0x35d4d6(0x1f8))/0xa)+parseInt(_0x35d4d6(0x1fd))/0xb*(-parseInt(_0x35d4d6(0x1f3))/0xc);if(_0x344646===_0x5349aa)break;else _0x5d9aab['push'](_0x5d9aab['shift']());}catch(_0x557e69){_0x5d9aab['push'](_0x5d9aab['shift']());}}}(_0x39c6,0x57c15));import{Command as _0x1a3fbf}from'ckeditor5/src/core.js';import{Dialog as _0x553b6e}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x15e29f}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x80fb2d}from'../utils/editingutils.js';function _0x39c6(){const _0x3fa994=['set','1199086dJdHBA','bind','document','unbind','plugins','requires','imageInline','element','191562DdfXqK','_isEditable','model','isActive','isEnabled','6420501TYZqOl','execute','editor','refresh','config','get','imageBlock','547980nYqKZl','getSelectedElement','selection','879006qaxCzQ','10aDVnij','10nYqOIm','imageEditController','8oYEnfE','393911OqdYIP','370146KfgKrJ','396wqbwGe','20EOSXPS','uploadcare.allowExternalImagesEditing'];_0x39c6=function(){return _0x3fa994;};return _0x39c6();}export class UploadcareImageEditCommand extends _0x1a3fbf{[_0x1180f7(0x1f9)];static get[_0x1180f7(0x1e4)](){return[_0x553b6e];}[_0x1180f7(0x1e8)];constructor(_0x15a290){const _0x27e43e=_0x1180f7;super(_0x15a290),this[_0x27e43e(0x1f9)]=void 0x0,this[_0x27e43e(0x1e8)]=_0x80fb2d(_0x15a290[_0x27e43e(0x1f0)][_0x27e43e(0x1f1)](_0x27e43e(0x1dd))||[]),this[_0x27e43e(0x1de)]({'isActive':!0x1});}[_0x1180f7(0x1ef)](){const _0x43d209=_0x1180f7,_0xfcdbe7=this[_0x43d209(0x1ee)][_0x43d209(0x1e9)][_0x43d209(0x1e1)][_0x43d209(0x1f5)][_0x43d209(0x1f4)]();this[_0x43d209(0x1eb)]=this[_0x43d209(0x1e8)](_0xfcdbe7);}[_0x1180f7(0x1ed)](){const _0x41a3d8=_0x1180f7;this[_0x41a3d8(0x1f9)]&&(this[_0x41a3d8(0x1e2)](_0x41a3d8(0x1ea)),this[_0x41a3d8(0x1f9)]=void 0x0);const _0x525123=this[_0x41a3d8(0x1ee)][_0x41a3d8(0x1e9)][_0x41a3d8(0x1e1)][_0x41a3d8(0x1f5)][_0x41a3d8(0x1f4)]();_0x525123&&(_0x525123['is'](_0x41a3d8(0x1e6),_0x41a3d8(0x1f2))||_0x525123['is'](_0x41a3d8(0x1e6),_0x41a3d8(0x1e5)))&&(this[_0x41a3d8(0x1f9)]=new _0x15e29f(this[_0x41a3d8(0x1ee)],this[_0x41a3d8(0x1ee)][_0x41a3d8(0x1e3)][_0x41a3d8(0x1f1)](_0x553b6e),_0x525123),this[_0x41a3d8(0x1e0)](_0x41a3d8(0x1ea))['to'](this[_0x41a3d8(0x1f9)],_0x41a3d8(0x1ea)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1228(_0x52a040,_0x4b0dc3){const _0x52f8d5=_0x52f8();return _0x1228=function(_0x12285b,_0x575c67){_0x12285b=_0x12285b-0x6d;let _0x585613=_0x52f8d5[_0x12285b];return _0x585613;},_0x1228(_0x52a040,_0x4b0dc3);}const _0x1caaa1=_0x1228;(function(_0x9548c8,_0x35f741){const _0x193504=_0x1228,_0x4bf25b=_0x9548c8();while(!![]){try{const _0x53d61f=-parseInt(_0x193504(0x83))/0x1*(-parseInt(_0x193504(0x72))/0x2)+parseInt(_0x193504(0x7d))/0x3*(-parseInt(_0x193504(0x7c))/0x4)+parseInt(_0x193504(0x75))/0x5*(parseInt(_0x193504(0x76))/0x6)+-parseInt(_0x193504(0x74))/0x7*(parseInt(_0x193504(0x7f))/0x8)+-parseInt(_0x193504(0x85))/0x9*(-parseInt(_0x193504(0x80))/0xa)+parseInt(_0x193504(0x70))/0xb*(parseInt(_0x193504(0x82))/0xc)+-parseInt(_0x193504(0x7e))/0xd;if(_0x53d61f===_0x35f741)break;else _0x4bf25b['push'](_0x4bf25b['shift']());}catch(_0x1e25cb){_0x4bf25b['push'](_0x4bf25b['shift']());}}}(_0x52f8,0x66f6e));function _0x52f8(){const _0x5e32b4=['765fRpIlI','UploadcareImageEditEditing','isPremiumPlugin','pluginName','60742bdPxED','init','364hjUqEz','add','56833jnBJAm','3215MUcHDo','7404TTgAUF','uploadcareImageEdit','isOfficialPlugin','ImageUtils','commands','ImageEditing','252684JIYgua','15UMjwVI','10410985YRKptc','568ohLnph','8870fVWFAl','requires','1104YPmlbQ','4055lGWxoA','uploadcareImageReplace'];_0x52f8=function(){return _0x5e32b4;};return _0x52f8();}import{Plugin as _0xf1f3f0}from'ckeditor5/src/core.js';import{Notification as _0x6b9c3b}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x44ae8d}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0xe8022f}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0xf2d462}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0xf1f3f0{static get[_0x1caaa1(0x6f)](){const _0x43a28e=_0x1caaa1;return _0x43a28e(0x6d);}static get[_0x1caaa1(0x81)](){const _0x2fbeb9=_0x1caaa1;return[_0xf2d462,_0x6b9c3b,_0x2fbeb9(0x79),_0x2fbeb9(0x7b)];}static get[_0x1caaa1(0x78)](){return!0x0;}static get[_0x1caaa1(0x6e)](){return!0x0;}[_0x1caaa1(0x71)](){const _0x3268bc=_0x1caaa1,{editor:_0x2f56f7}=this;_0x2f56f7[_0x3268bc(0x7a)][_0x3268bc(0x73)](_0x3268bc(0x77),new _0x44ae8d(_0x2f56f7)),_0x2f56f7[_0x3268bc(0x7a)][_0x3268bc(0x73)](_0x3268bc(0x84),new _0xe8022f(_0x2f56f7));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x34c94d}from'ckeditor5/src/core.js';import{ButtonView as _0x174982}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x49150f}from'ckeditor5/src/icons.js';import{createElement as _0x160c14}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 _0x34c94d{['_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 _0x163823=this['editor'];_0x163823['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1940a1=>{const _0x8b94d5=_0x163823['commands']['get']('uploadcareImageEdit'),_0x31699f=new _0x174982(_0x1940a1),t=_0x1940a1['t'];return _0x31699f['set']({'icon':_0x49150f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x31699f['bind']('isEnabled')['to'](_0x8b94d5),_0x31699f['bind']('isOn')['to'](_0x8b94d5,'isActive'),this['listenTo'](_0x31699f,'execute',()=>{_0x163823['execute']('uploadcareImageEdit'),_0x163823['editing']['view']['focus']();}),_0x31699f;}),this['_initConfig']();}['_initConfig'](){const _0x3d0b7e=_0x160c14(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3d0b7e),this['listenTo'](this['editor'],'destroy',()=>{_0x3d0b7e['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4fe583=_0xc147;function _0xc147(_0x4bb8c3,_0xbe1cc8){var _0x2f3198=_0x2f31();return _0xc147=function(_0xc147e6,_0x1dc00f){_0xc147e6=_0xc147e6-0xaf;var _0x860650=_0x2f3198[_0xc147e6];return _0x860650;},_0xc147(_0x4bb8c3,_0xbe1cc8);}(function(_0x5411ed,_0x3d4976){var _0x16e641=_0xc147,_0x36156e=_0x5411ed();while(!![]){try{var _0x5c9ed2=-parseInt(_0x16e641(0xc0))/0x1*(-parseInt(_0x16e641(0xb5))/0x2)+-parseInt(_0x16e641(0xba))/0x3*(-parseInt(_0x16e641(0xb1))/0x4)+-parseInt(_0x16e641(0xb4))/0x5*(parseInt(_0x16e641(0xc3))/0x6)+-parseInt(_0x16e641(0xb3))/0x7+parseInt(_0x16e641(0xc1))/0x8*(-parseInt(_0x16e641(0xb2))/0x9)+-parseInt(_0x16e641(0xbc))/0xa*(parseInt(_0x16e641(0xbd))/0xb)+parseInt(_0x16e641(0xaf))/0xc*(parseInt(_0x16e641(0xb9))/0xd);if(_0x5c9ed2===_0x3d4976)break;else _0x36156e['push'](_0x36156e['shift']());}catch(_0x1c1d39){_0x36156e['push'](_0x36156e['shift']());}}}(_0x2f31,0x84ec4));import{FocusTracker as _0x1c2be1}from'ckeditor5/src/utils.js';import{View as _0x1a2eb5,FocusCycler as _0xb8b1a3}from'ckeditor5/src/ui.js';function _0x2f31(){var _0x5c2bd8=['fire','20IEqXcY','45YaySmw','4562901YFvlFQ','4564160ibFpxZ','16brafIq','createCollection','forwardCycle','focusCycler','441051QFOGGX','377817GkaRoK','bindTemplate','6967670bgmxLr','11wqGqZr','true','div','123143jgiMkv','265640hqqskj','getFocusableElement','6zpCfIO','focusTracker','480jyQCqF'];_0x2f31=function(){return _0x5c2bd8;};return _0x2f31();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x1a2eb5{[_0x4fe583(0xc4)];[_0x4fe583(0xb8)];constructor(_0x23be45){var _0xcd45bf=_0x4fe583;super(_0x23be45),this[_0xcd45bf(0xc4)]=new _0x1c2be1(),this[_0xcd45bf(0xb8)]=new _0xb8b1a3({'focusables':this[_0xcd45bf(0xb6)](),'focusTracker':this[_0xcd45bf(0xc4)]});}[_0x4fe583(0xc2)](){var _0x3fa01f=_0x4fe583;return{'tag':_0x3fa01f(0xbf),'attributes':{'aria-hidden':_0x3fa01f(0xbe),'tabindex':'0'},'on':{'focus':this[_0x3fa01f(0xbb)]['to'](()=>{var _0x17c43e=_0x3fa01f;this[_0x17c43e(0xb8)][_0x17c43e(0xb0)](_0x17c43e(0xb7));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4288a2,_0xaa19d9){const _0x44c10f=_0x8d0c,_0x47a266=_0x4288a2();while(!![]){try{const _0x58bd91=-parseInt(_0x44c10f(0xe9))/0x1*(-parseInt(_0x44c10f(0x10c))/0x2)+parseInt(_0x44c10f(0x10b))/0x3+parseInt(_0x44c10f(0xfa))/0x4+parseInt(_0x44c10f(0x100))/0x5*(parseInt(_0x44c10f(0x10a))/0x6)+-parseInt(_0x44c10f(0x110))/0x7*(parseInt(_0x44c10f(0xe7))/0x8)+-parseInt(_0x44c10f(0x104))/0x9+parseInt(_0x44c10f(0x116))/0xa;if(_0x58bd91===_0xaa19d9)break;else _0x47a266['push'](_0x47a266['shift']());}catch(_0x89e94a){_0x47a266['push'](_0x47a266['shift']());}}}(_0x2495,0xaf956));import{global as _0x2a9060,DomEmitterMixin as _0x36780e}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x5df529){const _0x14b47f=_0x8d0c,_0x2c3776=z(_0x5df529);return _0x37187c=>!(!_0x37187c||!_0x37187c['is'](_0x14b47f(0x10d),_0x14b47f(0xed))&&!_0x37187c['is'](_0x14b47f(0x10d),_0x14b47f(0xe8)))&&(!!_0x37187c[_0x14b47f(0xfb)](_0x14b47f(0xf7))||!!_0x37187c[_0x14b47f(0xfb)](_0x14b47f(0x103))&&_0x2c3776(_0x37187c[_0x14b47f(0xf1)](_0x14b47f(0x103))));}export function getImageUrls(_0x159648,_0x1ce1d2){const _0x4210a3=_0x8d0c,_0x3f5408=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x4210a3(0x106)](_0x4488a0=>_0x4488a0<=_0x1ce1d2)[_0x4210a3(0x112)](_0x12190d=>_0x159648[_0x4210a3(0xfc)](/\/$/,'')+_0x4210a3(0x113)+_0x12190d+_0x4210a3(0xf9)+_0x12190d+'w');return{'imageFallbackUrl':_0x159648,'imageSources':[{'srcset':_0x3f5408[_0x4210a3(0xea)](',\x20'),'sizes':_0x4210a3(0xf0)+_0x1ce1d2+_0x4210a3(0x118)+_0x1ce1d2+'px','type':_0x4210a3(0xec)}]};}function _0x8d0c(_0x3f311b,_0x53c168){const _0x24952b=_0x2495();return _0x8d0c=function(_0x8d0c1b,_0x80dfc7){_0x8d0c1b=_0x8d0c1b-0xe1;let _0x1a0d09=_0x24952b[_0x8d0c1b];return _0x1a0d09;},_0x8d0c(_0x3f311b,_0x53c168);}export function getImageDimension(_0x3d0c92,_0x2413a0,_0xeb6738){const _0x4fe422=_0x8d0c,_0x33bc83=_0x3d0c92[_0x4fe422(0x114)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x33bc83?parseInt(_0x33bc83[0x1],0xa):_0x2413a0,'height':_0x33bc83?parseInt(_0x33bc83[0x2],0xa):_0xeb6738};}function _0x2495(){const _0x577e98=['mapper','px)\x20100vw,\x20','viewToDom','get','view','origin','domConverter','some','findViewImgElement','168EANJNa','imageInline','82835pveSFW','join','window','image/webp','imageBlock','baseURI','aspect-ratio','(max-width:\x20','getAttribute','editing','image-processing','change','ImageUtils','height','uploadcareImageId','location','x/\x20','646464bGtmxA','hasAttribute','replace','document','isArray','width','130GzIcfb','plugins','setStyle','src','4780818KDxjfu','listenTo','filter','function','removeClass','addClass','3972BNpNCX','2104521tRlIoa','14VqBJqG','element','removeStyle','stopListening','75670gbGqmn','load','map','/-/resize/','match','toViewElement','172220DqUhlw'];_0x2495=function(){return _0x577e98;};return _0x2495();}export function showImageProcessingIndicator(_0x5e53d5,_0x474776){const _0x7654a6=_0x8d0c,_0x55b113=new(_0x36780e())(),_0xecedb1=_0x5e53d5[_0x7654a6(0x101)][_0x7654a6(0xe1)](_0x7654a6(0xf5)),_0x11ebd9=_0x5e53d5[_0x7654a6(0xf2)][_0x7654a6(0x117)][_0x7654a6(0x115)](_0x474776),_0x23b8df=_0xecedb1[_0x7654a6(0xe6)](_0x11ebd9),_0x5ec448=_0x5e53d5[_0x7654a6(0xf2)][_0x7654a6(0xe2)][_0x7654a6(0xe4)][_0x7654a6(0x119)](_0x23b8df),_0x111777=_0x474776[_0x7654a6(0xf1)](_0x7654a6(0xff)),_0x4fa9c2=_0x474776[_0x7654a6(0xf1)](_0x7654a6(0xf6)),_0x2d17cf=_0x7654a6(0xf3);_0x5e53d5[_0x7654a6(0xf2)][_0x7654a6(0xe2)][_0x7654a6(0xf4)](_0x43d1ac=>{const _0x3ae239=_0x7654a6;_0x43d1ac[_0x3ae239(0x109)](_0x2d17cf,_0x11ebd9),_0x43d1ac[_0x3ae239(0x102)](_0x3ae239(0xef),_0x111777+'/'+_0x4fa9c2,_0x23b8df);}),_0x55b113[_0x7654a6(0x105)](_0x5ec448,_0x7654a6(0x111),()=>{const _0x50f061=_0x7654a6;_0x55b113[_0x50f061(0x10f)](_0x5ec448,_0x50f061(0x111)),_0x5e53d5[_0x50f061(0xf2)][_0x50f061(0xe2)][_0x50f061(0xf4)](_0x1fc961=>{const _0x28bdba=_0x50f061;_0x1fc961[_0x28bdba(0x108)](_0x2d17cf,_0x11ebd9),_0x1fc961[_0x28bdba(0x10e)](_0x28bdba(0xef),_0x23b8df);});});}function z(_0x168be8){const _0x5b1006=_0x8d0c;if(Array[_0x5b1006(0xfe)](_0x168be8)){const _0x426a0d=_0x168be8[_0x5b1006(0x112)](z);return _0x161c61=>_0x426a0d[_0x5b1006(0xe5)](_0x3a7d7e=>_0x3a7d7e(_0x161c61));}if(_0x5b1006(0xe3)==_0x168be8){const _0x5d4cea=_0x2a9060[_0x5b1006(0xeb)][_0x5b1006(0xf8)][_0x5b1006(0xe3)];return _0x29a779=>new URL(_0x29a779,_0x2a9060[_0x5b1006(0xfd)][_0x5b1006(0xee)])[_0x5b1006(0xe3)]==_0x5d4cea;}return _0x5b1006(0x107)==typeof _0x168be8?_0x168be8:_0x168be8 instanceof RegExp?_0xca8279=>!(!_0xca8279[_0x5b1006(0x114)](_0x168be8)&&!_0xca8279[_0x5b1006(0xfc)](/^https?:\/\//,'')[_0x5b1006(0x114)](_0x168be8)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x447f29,_0x4ad60c){var _0x388ed5=_0x5e9d,_0x39dafa=_0x447f29();while(!![]){try{var _0x37807f=-parseInt(_0x388ed5(0x1b3))/0x1*(-parseInt(_0x388ed5(0x1b1))/0x2)+parseInt(_0x388ed5(0x1b2))/0x3+parseInt(_0x388ed5(0x1b9))/0x4*(-parseInt(_0x388ed5(0x1b6))/0x5)+parseInt(_0x388ed5(0x1bd))/0x6*(-parseInt(_0x388ed5(0x1be))/0x7)+-parseInt(_0x388ed5(0x1b8))/0x8*(parseInt(_0x388ed5(0x1ba))/0x9)+parseInt(_0x388ed5(0x1bc))/0xa+parseInt(_0x388ed5(0x1b5))/0xb*(parseInt(_0x388ed5(0x1b7))/0xc);if(_0x37807f===_0x4ad60c)break;else _0x39dafa['push'](_0x39dafa['shift']());}catch(_0x4a618b){_0x39dafa['push'](_0x39dafa['shift']());}}}(_0x598c,0x7119a));function _0x5e9d(_0x3afc3e,_0x4da5b8){var _0x598c87=_0x598c();return _0x5e9d=function(_0x5e9d87,_0x282244){_0x5e9d87=_0x5e9d87-0x1b1;var _0x328a0e=_0x598c87[_0x5e9d87];return _0x328a0e;},_0x5e9d(_0x3afc3e,_0x4da5b8);}import{getAncestors as _0x4a71a6}from'ckeditor5/src/utils.js';function _0x598c(){var _0x43219d=['2160QlPBQq','target','14990eBGsQf','132OWvfOB','184709VAeaVL','14046JlXYgH','2005122mwQbsJ','111sQsoSB','includes','8855SPXPUE','2241245QtRyir','8148WlEegh','16800nzVBxO','4ZCwSUP'];_0x598c=function(){return _0x43219d;};return _0x598c();}export function isAncestor(_0x4c3889,_0x512241){var _0x1f9009=_0x5e9d;return _0x4a71a6(_0x4c3889[_0x1f9009(0x1bb)])[_0x1f9009(0x1b4)](_0x512241);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x14f3cd=_0x3dac;(function(_0x5499ba,_0x10c047){var _0x2e6b6d=_0x3dac,_0x43a120=_0x5499ba();while(!![]){try{var _0x3b4ed8=-parseInt(_0x2e6b6d(0x1ee))/0x1+parseInt(_0x2e6b6d(0x1f8))/0x2+-parseInt(_0x2e6b6d(0x1f4))/0x3+parseInt(_0x2e6b6d(0x1f3))/0x4+-parseInt(_0x2e6b6d(0x1f7))/0x5*(parseInt(_0x2e6b6d(0x1f1))/0x6)+parseInt(_0x2e6b6d(0x1f5))/0x7+-parseInt(_0x2e6b6d(0x1f2))/0x8;if(_0x3b4ed8===_0x10c047)break;else _0x43a120['push'](_0x43a120['shift']());}catch(_0x5e74b3){_0x43a120['push'](_0x43a120['shift']());}}}(_0x5532,0x489b0));function _0x5532(){var _0x43d257=['auto','getInfo','5424TBDxQl','1870464LSaBsZ','513600ZPWrgk','613503DtHwdh','3463194LOJkCx','upload','665iZiUSi','894930jYGiuc','214674qZZjOw'];_0x5532=function(){return _0x43d257;};return _0x5532();}function _0x3dac(_0xe7ff77,_0xe34e50){var _0x5532af=_0x5532();return _0x3dac=function(_0x3dacd7,_0x1e9f7c){_0x3dacd7=_0x3dacd7-0x1ee;var _0x4715fc=_0x5532af[_0x3dacd7];return _0x4715fc;},_0x3dac(_0xe7ff77,_0xe34e50);}import{uploadFile as _0x3cfa85,info as _0x935721}from'@uploadcare/upload-client';export class UploadUtils{static[_0x14f3cd(0x1f6)]({file:_0x274f28,publicKey:_0x4ca1da,signal:_0x2c086e,onProgress:_0x2e9f6d}){var _0x1b22b8=_0x14f3cd;return _0x3cfa85(_0x274f28,{'publicKey':_0x4ca1da,'store':_0x1b22b8(0x1ef),'signal':_0x2c086e,'onProgress':_0x2e9f6d});}static[_0x14f3cd(0x1f0)](_0x2f251d,_0xf0f74b){return _0x935721(_0x2f251d,_0xf0f74b);}}
|