@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260118.0 → 0.0.0-nightly-20260119.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 _0x899387,View as _0x3e15f7}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3e15f7{constructor(_0x3f8b40){super(_0x3f8b40);const t=_0x3f8b40['t'],_0x43b1ce=this['bindTemplate'],_0x2caa69=new _0x899387();_0x2caa69['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':[_0x2caa69,{'text':_0x43b1ce['to']('imageUploadProgress',_0x2d3651=>t('Loading\x20image...')+'\x20('+(_0x2d3651||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
|
-
|
|
23
|
+
const _0x166b65=_0x18e3;(function(_0x2e2520,_0x14a72e){const _0x177e47=_0x18e3,_0x40889c=_0x2e2520();while(!![]){try{const _0x3e733c=parseInt(_0x177e47(0x15e))/0x1*(parseInt(_0x177e47(0x15f))/0x2)+parseInt(_0x177e47(0x14a))/0x3*(parseInt(_0x177e47(0x134))/0x4)+-parseInt(_0x177e47(0x13d))/0x5+parseInt(_0x177e47(0x14d))/0x6*(parseInt(_0x177e47(0x14c))/0x7)+-parseInt(_0x177e47(0x155))/0x8*(-parseInt(_0x177e47(0x15b))/0x9)+-parseInt(_0x177e47(0x165))/0xa*(parseInt(_0x177e47(0x14e))/0xb)+parseInt(_0x177e47(0x13a))/0xc*(parseInt(_0x177e47(0x164))/0xd);if(_0x3e733c===_0x14a72e)break;else _0x40889c['push'](_0x40889c['shift']());}catch(_0x45d41a){_0x40889c['push'](_0x40889c['shift']());}}}(_0x397b,0x198d1));import{View as _0x59f721}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x2d4b84}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x1da795}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x5f1df1}from'./uploadcareimageeditformeditingview.js';function _0x397b(){const _0x13dfcf=['_addErrorViewListeners','toLowerCase','set','disconnect','addedNodes','1068472lFVaVL','detail','error','target','ck-reset_all-excluded','_addUploadcareImageEditorListeners','9BpqATW','_items','render','34574nXpahU','2PanckG','focus','filter','nodeName','clear','7527axoJbx','3780AFtIag','apply','status','querySelector','getFocusableElement','_waitForImageEditorComponent','uc-cloud-image-editor','ready','_setView','87452TeYOFy','cancel','uploading','change:status','_focusableView','_editingView','12KHkPJU','fire','_errorView','827400wicrfq','observe','createCollection','_loadingView','addMany','div','add','retry','once','setTemplate','addEventListener','length','ck-uploadcare-form','21zuJUwQ','element','28yBIBbx','60924CzUVYd','2684gWQlei','cdnUrl'];_0x397b=function(){return _0x13dfcf;};return _0x397b();}import{DialogFocusManagerView as _0x510f12}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x18e3(_0xab3e89,_0x5ab079){const _0x397b12=_0x397b();return _0x18e3=function(_0x18e363,_0x42d3f8){_0x18e363=_0x18e363-0x12c;let _0x1f9737=_0x397b12[_0x18e363];return _0x1f9737;},_0x18e3(_0xab3e89,_0x5ab079);}export class UploadcareImageEditFormView extends _0x510f12{[_0x166b65(0x15c)];[_0x166b65(0x140)];[_0x166b65(0x13c)];[_0x166b65(0x139)];[_0x166b65(0x138)];constructor(_0x31cec1,_0x44ebde,_0x51e9e6){const _0x4271da=_0x166b65;super(_0x31cec1),this[_0x4271da(0x15c)]=this[_0x4271da(0x13f)](),this[_0x4271da(0x140)]=new _0x2d4b84(_0x31cec1),this[_0x4271da(0x13c)]=new _0x1da795(_0x31cec1),this[_0x4271da(0x139)]=new _0x5f1df1(_0x31cec1,_0x51e9e6),this[_0x4271da(0x138)]=new _0x59f721(_0x31cec1),this[_0x4271da(0x138)][_0x4271da(0x146)](this[_0x4271da(0x12f)]()),this[_0x4271da(0x152)](_0x4271da(0x12d),_0x44ebde),this[_0x4271da(0x146)]({'tag':_0x4271da(0x142),'attributes':{'class':['ck',_0x4271da(0x159),_0x4271da(0x149)],'tabindex':'-1'},'children':this[_0x4271da(0x15c)]}),this[_0x4271da(0x133)](),this[_0x4271da(0x145)](_0x4271da(0x15d),()=>{const _0x5a142b=_0x4271da;this[_0x5a142b(0x130)](this[_0x5a142b(0x14b)],_0x259331=>{const _0x37577d=_0x5a142b;this[_0x37577d(0x15a)](_0x259331);});}),this['on'](_0x4271da(0x137),()=>{const _0x32598f=_0x4271da;this[_0x32598f(0x133)]();}),this[_0x4271da(0x150)]();}[_0x166b65(0x160)](){const _0x1f8502=_0x166b65;this[_0x1f8502(0x14b)][_0x1f8502(0x160)]();}[_0x166b65(0x133)](){const _0x476477=_0x166b65;switch(this[_0x476477(0x15c)][_0x476477(0x163)](),this[_0x476477(0x12d)]){case _0x476477(0x136):this[_0x476477(0x15c)][_0x476477(0x143)](this[_0x476477(0x140)]);break;case _0x476477(0x157):this[_0x476477(0x15c)][_0x476477(0x143)](this[_0x476477(0x13c)]);break;case _0x476477(0x132):this[_0x476477(0x15c)][_0x476477(0x141)]([this[_0x476477(0x139)],this[_0x476477(0x138)]]);}}[_0x166b65(0x130)](_0x549ec6,_0x446c15){const _0x25d509=_0x166b65,_0x1ae9cb=_0x25d509(0x131),_0x198b34=_0x549ec6[_0x25d509(0x12e)](_0x1ae9cb);if(_0x198b34)return _0x446c15(_0x198b34);const _0x3711e=new MutationObserver(_0x2593fe=>{const _0x956ac0=_0x25d509,_0x2b5620=_0x2593fe[_0x956ac0(0x161)](_0x14b10e=>_0x14b10e[_0x956ac0(0x158)]===_0x549ec6&&_0x14b10e[_0x956ac0(0x154)][_0x956ac0(0x148)]>0x0&&_0x14b10e[_0x956ac0(0x154)][0x0][_0x956ac0(0x162)][_0x956ac0(0x151)]()===_0x1ae9cb);_0x2b5620[_0x956ac0(0x148)]&&(_0x3711e[_0x956ac0(0x153)](),_0x446c15(_0x2b5620[0x0][_0x956ac0(0x154)][0x0]));});_0x3711e[_0x25d509(0x13e)](_0x549ec6,{'childList':!0x0,'subtree':!0x0});}[_0x166b65(0x15a)](_0x45824c){const _0x3b20c2=_0x166b65;_0x45824c[_0x3b20c2(0x147)](_0x3b20c2(0x12c),_0x4b773d=>{const _0x5f36e0=_0x3b20c2;this[_0x5f36e0(0x13b)](_0x5f36e0(0x12c),{'imageSrc':_0x4b773d[_0x5f36e0(0x156)][_0x5f36e0(0x14f)]});}),_0x45824c[_0x3b20c2(0x147)](_0x3b20c2(0x135),()=>{const _0xde48ea=_0x3b20c2;this[_0xde48ea(0x13b)](_0xde48ea(0x135));});}[_0x166b65(0x150)](){const _0x4c3654=_0x166b65;this[_0x4c3654(0x13c)]['on'](_0x4c3654(0x144),()=>{const _0x83225f=_0x4c3654;this[_0x83225f(0x13b)](_0x83225f(0x144));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10ff71=_0x49d3;(function(_0x2d33a3,_0x51307c){const _0x1bfea5=_0x49d3,_0xc0c1d6=_0x2d33a3();while(!![]){try{const _0x359ba7=-parseInt(_0x1bfea5(0x16c))/0x1*(-parseInt(_0x1bfea5(0x169))/0x2)+parseInt(_0x1bfea5(0x168))/0x3+parseInt(_0x1bfea5(0x15f))/0x4*(-parseInt(_0x1bfea5(0x17a))/0x5)+-parseInt(_0x1bfea5(0x15c))/0x6+parseInt(_0x1bfea5(0x162))/0x7+-parseInt(_0x1bfea5(0x178))/0x8+-parseInt(_0x1bfea5(0x160))/0x9*(parseInt(_0x1bfea5(0x17b))/0xa);if(_0x359ba7===_0x51307c)break;else _0xc0c1d6['push'](_0xc0c1d6['shift']());}catch(_0x5f00eb){_0xc0c1d6['push'](_0xc0c1d6['shift']());}}}(_0x7a3f,0x6f1d6));function _0x49d3(_0x386d1c,_0x1fedd5){const _0x7a3fd6=_0x7a3f();return _0x49d3=function(_0x49d3e9,_0x3d4ec9){_0x49d3e9=_0x49d3e9-0x15c;let _0x1339d3=_0x7a3fd6[_0x49d3e9];return _0x1339d3;},_0x49d3(_0x386d1c,_0x1fedd5);}import{Command as _0x40392a}from'ckeditor5/src/core.js';import{Dialog as _0x48ae18}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x5de412}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xf88e5f}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x40392a{[_0x10ff71(0x174)];static get[_0x10ff71(0x15e)](){return[_0x48ae18];}[_0x10ff71(0x16a)];constructor(_0x5eb93e){const _0xed9810=_0x10ff71;super(_0x5eb93e),this[_0xed9810(0x174)]=void 0x0,this[_0xed9810(0x16a)]=_0xf88e5f(_0x5eb93e[_0xed9810(0x15d)][_0xed9810(0x165)](_0xed9810(0x161))||[]),this[_0xed9810(0x164)]({'isActive':!0x1});}[_0x10ff71(0x171)](){const _0x49d0a1=_0x10ff71,_0x5a15a3=this[_0x49d0a1(0x163)][_0x49d0a1(0x16b)][_0x49d0a1(0x166)][_0x49d0a1(0x173)][_0x49d0a1(0x175)]();this[_0x49d0a1(0x172)]=this[_0x49d0a1(0x16a)](_0x5a15a3);}[_0x10ff71(0x177)](){const _0x44ca1e=_0x10ff71;this[_0x44ca1e(0x174)]&&(this[_0x44ca1e(0x179)](_0x44ca1e(0x16e)),this[_0x44ca1e(0x174)]=void 0x0);const _0xe3ae29=this[_0x44ca1e(0x163)][_0x44ca1e(0x16b)][_0x44ca1e(0x166)][_0x44ca1e(0x173)][_0x44ca1e(0x175)]();_0xe3ae29&&(_0xe3ae29['is'](_0x44ca1e(0x176),_0x44ca1e(0x167))||_0xe3ae29['is'](_0x44ca1e(0x176),_0x44ca1e(0x16f)))&&(this[_0x44ca1e(0x174)]=new _0x5de412(this[_0x44ca1e(0x163)],this[_0x44ca1e(0x163)][_0x44ca1e(0x16d)][_0x44ca1e(0x165)](_0x48ae18),_0xe3ae29),this[_0x44ca1e(0x170)](_0x44ca1e(0x16e))['to'](this[_0x44ca1e(0x174)],_0x44ca1e(0x16e)));}}function _0x7a3f(){const _0x155e0a=['getSelectedElement','element','execute','1318512sABDGF','unbind','125875NXmSRg','490jAxENN','5319474rkXvzH','config','requires','20hHedDo','116541qKUsSo','uploadcare.allowExternalImagesEditing','5174498iOFJCZ','editor','set','get','document','imageBlock','2366577Xgypcl','2154vkgKPu','_isEditable','model','686HqEihp','plugins','isActive','imageInline','bind','refresh','isEnabled','selection','imageEditController'];_0x7a3f=function(){return _0x155e0a;};return _0x7a3f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x270573=_0x5b86;(function(_0x251e97,_0x5931da){const _0x174c98=_0x5b86,_0xe20df6=_0x251e97();while(!![]){try{const _0x468fdf=parseInt(_0x174c98(0x1f9))/0x1+parseInt(_0x174c98(0x1f8))/0x2*(-parseInt(_0x174c98(0x1ed))/0x3)+-parseInt(_0x174c98(0x1eb))/0x4*(parseInt(_0x174c98(0x1f5))/0x5)+-parseInt(_0x174c98(0x1ea))/0x6*(-parseInt(_0x174c98(0x1ff))/0x7)+parseInt(_0x174c98(0x1fb))/0x8+parseInt(_0x174c98(0x1f7))/0x9*(-parseInt(_0x174c98(0x1f6))/0xa)+parseInt(_0x174c98(0x1f4))/0xb;if(_0x468fdf===_0x5931da)break;else _0xe20df6['push'](_0xe20df6['shift']());}catch(_0x3e4a4f){_0xe20df6['push'](_0xe20df6['shift']());}}}(_0x2aa2,0xb4a1e));import{Plugin as _0x15656e}from'ckeditor5/src/core.js';import{Notification as _0x3f96b2}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x144ff5}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x5d7624}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x10bd81}from'../uploadcareediting.js';function _0x5b86(_0x4c8381,_0x2445fd){const _0x2aa2ef=_0x2aa2();return _0x5b86=function(_0x5b86d9,_0x2a9857){_0x5b86d9=_0x5b86d9-0x1ea;let _0x32a167=_0x2aa2ef[_0x5b86d9];return _0x32a167;},_0x5b86(_0x4c8381,_0x2445fd);}function _0x2aa2(){const _0x5f2657=['103628vgoqSs','isOfficialPlugin','498cNOrCk','28FgGwjE','uploadcareImageReplace','102QDNeEI','pluginName','isPremiumPlugin','ImageEditing','add','ImageUtils','UploadcareImageEditEditing','7849523cgjoDM','238215ShfhhL','374830dwIjAM','315riSjuC','61930wRDmTS','1419286jHvpnm','commands','611800XqETpF','init','uploadcareImageEdit','requires'];_0x2aa2=function(){return _0x5f2657;};return _0x2aa2();}export class UploadcareImageEditEditing extends _0x15656e{static get[_0x270573(0x1ee)](){const _0xc7d7e6=_0x270573;return _0xc7d7e6(0x1f3);}static get[_0x270573(0x1fe)](){const _0x291a83=_0x270573;return[_0x10bd81,_0x3f96b2,_0x291a83(0x1f2),_0x291a83(0x1f0)];}static get[_0x270573(0x200)](){return!0x0;}static get[_0x270573(0x1ef)](){return!0x0;}[_0x270573(0x1fc)](){const _0x368b1c=_0x270573,{editor:_0x2fcd0b}=this;_0x2fcd0b[_0x368b1c(0x1fa)][_0x368b1c(0x1f1)](_0x368b1c(0x1fd),new _0x144ff5(_0x2fcd0b)),_0x2fcd0b[_0x368b1c(0x1fa)][_0x368b1c(0x1f1)](_0x368b1c(0x1ec),new _0x5d7624(_0x2fcd0b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x6cfac5}from'ckeditor5/src/core.js';import{ButtonView as _0x207e0b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x553a97}from'ckeditor5/src/icons.js';import{createElement as _0x1f13a3}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 _0x6cfac5{['_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 _0x50e31d=this['editor'];_0x50e31d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x11484a=>{const _0x22518e=_0x50e31d['commands']['get']('uploadcareImageEdit'),_0x3b2720=new _0x207e0b(_0x11484a),t=_0x11484a['t'];return _0x3b2720['set']({'icon':_0x553a97,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3b2720['bind']('isEnabled')['to'](_0x22518e),_0x3b2720['bind']('isOn')['to'](_0x22518e,'isActive'),this['listenTo'](_0x3b2720,'execute',()=>{_0x50e31d['execute']('uploadcareImageEdit'),_0x50e31d['editing']['view']['focus']();}),_0x3b2720;}),this['_initConfig']();}['_initConfig'](){const _0x206fb9=_0x1f13a3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x206fb9),this['listenTo'](this['editor'],'destroy',()=>{_0x206fb9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1da7(_0x4e7fcd,_0x4fb166){var _0x19a91c=_0x19a9();return _0x1da7=function(_0x1da7a1,_0x629043){_0x1da7a1=_0x1da7a1-0x17c;var _0x2b0545=_0x19a91c[_0x1da7a1];return _0x2b0545;},_0x1da7(_0x4e7fcd,_0x4fb166);}var _0x352ae3=_0x1da7;(function(_0x3b4d27,_0x3686c4){var _0x495400=_0x1da7,_0x23a47b=_0x3b4d27();while(!![]){try{var _0x582d90=parseInt(_0x495400(0x18e))/0x1*(-parseInt(_0x495400(0x18c))/0x2)+-parseInt(_0x495400(0x17e))/0x3+parseInt(_0x495400(0x17d))/0x4+-parseInt(_0x495400(0x188))/0x5*(parseInt(_0x495400(0x184))/0x6)+-parseInt(_0x495400(0x183))/0x7+parseInt(_0x495400(0x185))/0x8+parseInt(_0x495400(0x17c))/0x9*(parseInt(_0x495400(0x18d))/0xa);if(_0x582d90===_0x3686c4)break;else _0x23a47b['push'](_0x23a47b['shift']());}catch(_0x39353f){_0x23a47b['push'](_0x23a47b['shift']());}}}(_0x19a9,0x8a883));import{FocusTracker as _0xcec784}from'ckeditor5/src/utils.js';import{View as _0x542d87,FocusCycler as _0x2300ec}from'ckeditor5/src/ui.js';function _0x19a9(){var _0x36eb88=['886324VvDspJ','2103480WUgfZW','focusTracker','createCollection','bindTemplate','forwardCycle','5077373lnshTV','36eyFNjP','5015568VqtpUq','true','fire','42980HESWJn','focusCycler','div','getFocusableElement','1236190lkvBoG','955300XDbBva','1xBmGfE','171EgjBLg'];_0x19a9=function(){return _0x36eb88;};return _0x19a9();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x542d87{[_0x352ae3(0x17f)];[_0x352ae3(0x189)];constructor(_0x10de26){var _0x2158dd=_0x352ae3;super(_0x10de26),this[_0x2158dd(0x17f)]=new _0xcec784(),this[_0x2158dd(0x189)]=new _0x2300ec({'focusables':this[_0x2158dd(0x180)](),'focusTracker':this[_0x2158dd(0x17f)]});}[_0x352ae3(0x18b)](){var _0x3cd412=_0x352ae3;return{'tag':_0x3cd412(0x18a),'attributes':{'aria-hidden':_0x3cd412(0x186),'tabindex':'0'},'on':{'focus':this[_0x3cd412(0x181)]['to'](()=>{var _0x3da7a2=_0x3cd412;this[_0x3da7a2(0x189)][_0x3da7a2(0x187)](_0x3da7a2(0x182));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x47c529,_0x3f4039){const _0x4cc736=_0x59e1,_0x1f8c24=_0x47c529();while(!![]){try{const _0x3cca35=parseInt(_0x4cc736(0x189))/0x1*(-parseInt(_0x4cc736(0x18f))/0x2)+parseInt(_0x4cc736(0x18c))/0x3+-parseInt(_0x4cc736(0x16c))/0x4*(-parseInt(_0x4cc736(0x171))/0x5)+-parseInt(_0x4cc736(0x175))/0x6*(parseInt(_0x4cc736(0x17a))/0x7)+parseInt(_0x4cc736(0x193))/0x8*(-parseInt(_0x4cc736(0x195))/0x9)+-parseInt(_0x4cc736(0x173))/0xa+parseInt(_0x4cc736(0x187))/0xb;if(_0x3cca35===_0x3f4039)break;else _0x1f8c24['push'](_0x1f8c24['shift']());}catch(_0x360052){_0x1f8c24['push'](_0x1f8c24['shift']());}}}(_0x4b72,0x457e4));import{global as _0x20fa18,DomEmitterMixin as _0x1adad4}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x579dd9){const _0x11a189=_0x59e1,_0x3045e9=z(_0x579dd9);return _0x3b52b0=>!(!_0x3b52b0||!_0x3b52b0['is'](_0x11a189(0x186),_0x11a189(0x184))&&!_0x3b52b0['is'](_0x11a189(0x186),_0x11a189(0x16b)))&&(!!_0x3b52b0[_0x11a189(0x188)](_0x11a189(0x180))||!!_0x3b52b0[_0x11a189(0x188)](_0x11a189(0x194))&&_0x3045e9(_0x3b52b0[_0x11a189(0x166)](_0x11a189(0x194))));}function _0x4b72(){const _0x14ce96=['removeClass','match','(max-width:\x20','getAttribute','join','/-/resize/','change','plugins','imageInline','12KGUhco','get','ImageUtils','function','editing','102815CVBYws','mapper','4726440VjwFCS','setStyle','2273268Dtqzoy','baseURI','isArray','document','listenTo','7dxTidK','viewToDom','stopListening','location','window','image-processing','uploadcareImageId','removeStyle','toViewElement','px)\x20100vw,\x20','imageBlock','origin','element','13841036cVDcAt','hasAttribute','3mNshfv','domConverter','findViewImgElement','1690767UsHMjs','height','x/\x20','157302luzQnE','replace','map','image/webp','17560sMmjpx','src','2097vVTLne','load','addClass','aspect-ratio','filter','width','view','some'];_0x4b72=function(){return _0x14ce96;};return _0x4b72();}function _0x59e1(_0x4dd82c,_0x3935af){const _0x4b7276=_0x4b72();return _0x59e1=function(_0x59e145,_0x477266){_0x59e145=_0x59e145-0x163;let _0x40c155=_0x4b7276[_0x59e145];return _0x40c155;},_0x59e1(_0x4dd82c,_0x3935af);}export function getImageUrls(_0x123109,_0x2155bb){const _0x3842c9=_0x59e1,_0x1a7ac1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x3842c9(0x199)](_0x1eaebb=>_0x1eaebb<=_0x2155bb)[_0x3842c9(0x191)](_0x121525=>_0x123109[_0x3842c9(0x190)](/\/$/,'')+_0x3842c9(0x168)+_0x121525+_0x3842c9(0x18e)+_0x121525+'w');return{'imageFallbackUrl':_0x123109,'imageSources':[{'srcset':_0x1a7ac1[_0x3842c9(0x167)](',\x20'),'sizes':_0x3842c9(0x165)+_0x2155bb+_0x3842c9(0x183)+_0x2155bb+'px','type':_0x3842c9(0x192)}]};}export function getImageDimension(_0x5eb40a,_0x3c9d13,_0x5b79e7){const _0x551ba2=_0x59e1,_0x5248d5=_0x5eb40a[_0x551ba2(0x164)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5248d5?parseInt(_0x5248d5[0x1],0xa):_0x3c9d13,'height':_0x5248d5?parseInt(_0x5248d5[0x2],0xa):_0x5b79e7};}export function showImageProcessingIndicator(_0x4453fe,_0x40d918){const _0x5530ab=_0x59e1,_0x1cdbc2=new(_0x1adad4())(),_0x1fef64=_0x4453fe[_0x5530ab(0x16a)][_0x5530ab(0x16d)](_0x5530ab(0x16e)),_0x2a9e38=_0x4453fe[_0x5530ab(0x170)][_0x5530ab(0x172)][_0x5530ab(0x182)](_0x40d918),_0x45fcbb=_0x1fef64[_0x5530ab(0x18b)](_0x2a9e38),_0x61e4a9=_0x4453fe[_0x5530ab(0x170)][_0x5530ab(0x19b)][_0x5530ab(0x18a)][_0x5530ab(0x17b)](_0x45fcbb),_0x3fc63d=_0x40d918[_0x5530ab(0x166)](_0x5530ab(0x19a)),_0x2b4ee1=_0x40d918[_0x5530ab(0x166)](_0x5530ab(0x18d)),_0x9f8f5c=_0x5530ab(0x17f);_0x4453fe[_0x5530ab(0x170)][_0x5530ab(0x19b)][_0x5530ab(0x169)](_0x4dada9=>{const _0x1d08d6=_0x5530ab;_0x4dada9[_0x1d08d6(0x197)](_0x9f8f5c,_0x2a9e38),_0x4dada9[_0x1d08d6(0x174)](_0x1d08d6(0x198),_0x3fc63d+'/'+_0x2b4ee1,_0x45fcbb);}),_0x1cdbc2[_0x5530ab(0x179)](_0x61e4a9,_0x5530ab(0x196),()=>{const _0x54c2d0=_0x5530ab;_0x1cdbc2[_0x54c2d0(0x17c)](_0x61e4a9,_0x54c2d0(0x196)),_0x4453fe[_0x54c2d0(0x170)][_0x54c2d0(0x19b)][_0x54c2d0(0x169)](_0x18c088=>{const _0x57c12d=_0x54c2d0;_0x18c088[_0x57c12d(0x163)](_0x9f8f5c,_0x2a9e38),_0x18c088[_0x57c12d(0x181)](_0x57c12d(0x198),_0x45fcbb);});});}function z(_0x3fab09){const _0x2d3f05=_0x59e1;if(Array[_0x2d3f05(0x177)](_0x3fab09)){const _0x476b96=_0x3fab09[_0x2d3f05(0x191)](z);return _0x3b3d2b=>_0x476b96[_0x2d3f05(0x19c)](_0x5b9ec6=>_0x5b9ec6(_0x3b3d2b));}if(_0x2d3f05(0x185)==_0x3fab09){const _0x4c0144=_0x20fa18[_0x2d3f05(0x17e)][_0x2d3f05(0x17d)][_0x2d3f05(0x185)];return _0x135e45=>new URL(_0x135e45,_0x20fa18[_0x2d3f05(0x178)][_0x2d3f05(0x176)])[_0x2d3f05(0x185)]==_0x4c0144;}return _0x2d3f05(0x16f)==typeof _0x3fab09?_0x3fab09:_0x3fab09 instanceof RegExp?_0x44f63d=>!(!_0x44f63d[_0x2d3f05(0x164)](_0x3fab09)&&!_0x44f63d[_0x2d3f05(0x190)](/^https?:\/\//,'')[_0x2d3f05(0x164)](_0x3fab09)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2fbf(){var _0x2edd9b=['1528376eClEfl','38943580aPGnBU','2253XeQVBt','4ODYAQe','target','18yreGIN','1926930dnQxoi','includes','6901720QzzciM','919366GUfQKN','2126lJlrSZ','1070526OfUItG'];_0x2fbf=function(){return _0x2edd9b;};return _0x2fbf();}(function(_0x3ba6a0,_0xe31fd8){var _0x182114=_0x3f08,_0x4e5827=_0x3ba6a0();while(!![]){try{var _0x487ff8=-parseInt(_0x182114(0x12d))/0x1+-parseInt(_0x182114(0x12e))/0x2*(parseInt(_0x182114(0x132))/0x3)+parseInt(_0x182114(0x133))/0x4*(-parseInt(_0x182114(0x136))/0x5)+parseInt(_0x182114(0x12f))/0x6+-parseInt(_0x182114(0x12c))/0x7+-parseInt(_0x182114(0x130))/0x8*(parseInt(_0x182114(0x135))/0x9)+parseInt(_0x182114(0x131))/0xa;if(_0x487ff8===_0xe31fd8)break;else _0x4e5827['push'](_0x4e5827['shift']());}catch(_0x39c710){_0x4e5827['push'](_0x4e5827['shift']());}}}(_0x2fbf,0x92e3c));function _0x3f08(_0x40add8,_0x2a4127){var _0x2fbfc9=_0x2fbf();return _0x3f08=function(_0x3f082c,_0x566b12){_0x3f082c=_0x3f082c-0x12c;var _0x2333de=_0x2fbfc9[_0x3f082c];return _0x2333de;},_0x3f08(_0x40add8,_0x2a4127);}import{getAncestors as _0x270004}from'ckeditor5/src/utils.js';export function isAncestor(_0x37d54c,_0x3720fb){var _0x37048e=_0x3f08;return _0x270004(_0x37d54c[_0x37048e(0x134)])[_0x37048e(0x137)](_0x3720fb);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x23854a=_0x2f8b;function _0x2f8b(_0x21f889,_0x2e5e0b){var _0x5b2f3c=_0x5b2f();return _0x2f8b=function(_0x2f8b1,_0x4205bc){_0x2f8b1=_0x2f8b1-0x1db;var _0x2d3901=_0x5b2f3c[_0x2f8b1];return _0x2d3901;},_0x2f8b(_0x21f889,_0x2e5e0b);}(function(_0x335ef7,_0x21152a){var _0x445f60=_0x2f8b,_0x442a42=_0x335ef7();while(!![]){try{var _0x3758ae=-parseInt(_0x445f60(0x1e0))/0x1+-parseInt(_0x445f60(0x1de))/0x2*(-parseInt(_0x445f60(0x1dd))/0x3)+parseInt(_0x445f60(0x1dc))/0x4+parseInt(_0x445f60(0x1df))/0x5+-parseInt(_0x445f60(0x1e5))/0x6+parseInt(_0x445f60(0x1e4))/0x7+parseInt(_0x445f60(0x1e2))/0x8*(-parseInt(_0x445f60(0x1e3))/0x9);if(_0x3758ae===_0x21152a)break;else _0x442a42['push'](_0x442a42['shift']());}catch(_0x2318a0){_0x442a42['push'](_0x442a42['shift']());}}}(_0x5b2f,0xcb7b5));import{uploadFile as _0x5ad977,info as _0x1a76cd}from'@uploadcare/upload-client';export class UploadUtils{static[_0x23854a(0x1e1)]({file:_0x2b5d6f,..._0x4a225b}){return _0x5ad977(_0x2b5d6f,_0x4a225b);}static[_0x23854a(0x1db)](_0x36663d,_0x102f00){return _0x1a76cd(_0x36663d,_0x102f00);}}function _0x5b2f(){var _0x5707f0=['1908035QvUwSI','546681quQJIU','upload','4168104JrKdOW','9BchbJL','8578815lejInN','9046332FEpsSt','getInfo','5303568frkmMN','1427499dOBWSt','2sLkVxD'];_0x5b2f=function(){return _0x5707f0;};return _0x5b2f();}
|