@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250211.0 → 0.0.0-nightly-next-20250212.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/uploadcareimageedit/uploadcareimagereplacecommand.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
|
-
const
|
|
23
|
+
const _0xb7f00=_0x43ee;(function(_0x149da6,_0x216a75){const _0x3eb20c=_0x43ee,_0x4f7bca=_0x149da6();while(!![]){try{const _0x162866=parseInt(_0x3eb20c(0x192))/0x1*(parseInt(_0x3eb20c(0x16b))/0x2)+-parseInt(_0x3eb20c(0x191))/0x3+-parseInt(_0x3eb20c(0x196))/0x4+parseInt(_0x3eb20c(0x198))/0x5+parseInt(_0x3eb20c(0x171))/0x6+parseInt(_0x3eb20c(0x188))/0x7*(-parseInt(_0x3eb20c(0x16e))/0x8)+-parseInt(_0x3eb20c(0x17e))/0x9;if(_0x162866===_0x216a75)break;else _0x4f7bca['push'](_0x4f7bca['shift']());}catch(_0x3cc2fe){_0x4f7bca['push'](_0x4f7bca['shift']());}}}(_0x2169,0x98cb9));import{View as _0x300389}from'ckeditor5/src/ui.js';function _0x2169(){const _0x3a4dc4=['nodeName','cancel','addEventListener','_focusableView','add','_errorView','12DPTEql','clear','ready','356656DPlQQk','length','element','1039374hdmYca','_editingView','detail','set','fire','status','getFocusableElement','disconnect','setTemplate','toLowerCase','_addErrorViewListeners','addMany','focus','4441257ARHLll','once','render','change:status','_loadingView','target','observe','div','querySelector','cdnUrl','49gWDkVF','createCollection','uploading','ck-reset_all-excluded','_addUploadcareImageEditorListeners','filter','_items','_waitForImageEditorComponent','addedNodes','1652091VfEglW','202168CzFSnt','_setView','uc-cloud-image-editor','apply','1388740MJbhXR','error','4715205AplTKL','retry','ck-uploadcare-form'];_0x2169=function(){return _0x3a4dc4;};return _0x2169();}function _0x43ee(_0x1d1d92,_0x5ebbf5){const _0x216973=_0x2169();return _0x43ee=function(_0x43ee23,_0x5a69bb){_0x43ee23=_0x43ee23-0x16a;let _0x2ab733=_0x216973[_0x43ee23];return _0x2ab733;},_0x43ee(_0x1d1d92,_0x5ebbf5);}import _0x298ba5 from'./uploadcareimageeditformloadingview.js';import _0x2a5d2e from'./uploadcareimageeditformerrorview.js';import _0x2fc005 from'./uploadcareimageeditformeditingview.js';import _0x4e59ad from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class ii extends _0x4e59ad{[_0xb7f00(0x18e)];[_0xb7f00(0x182)];[_0xb7f00(0x16a)];[_0xb7f00(0x172)];[_0xb7f00(0x19e)];constructor(_0xb212ac,_0x5aea7c,_0x26fe70){const _0x526532=_0xb7f00;super(_0xb212ac),this[_0x526532(0x18e)]=this[_0x526532(0x189)](),this[_0x526532(0x182)]=new _0x298ba5(_0xb212ac),this[_0x526532(0x16a)]=new _0x2a5d2e(_0xb212ac),this[_0x526532(0x172)]=new _0x2fc005(_0xb212ac,_0x26fe70),this[_0x526532(0x19e)]=new _0x300389(_0xb212ac),this[_0x526532(0x19e)][_0x526532(0x179)](this[_0x526532(0x177)]()),this[_0x526532(0x174)](_0x526532(0x176),_0x5aea7c),this[_0x526532(0x179)]({'tag':_0x526532(0x185),'attributes':{'class':['ck',_0x526532(0x18b),_0x526532(0x19a)],'tabindex':'-1'},'children':this[_0x526532(0x18e)]}),this[_0x526532(0x193)](),this[_0x526532(0x17f)](_0x526532(0x180),()=>{const _0x366fe6=_0x526532;this[_0x366fe6(0x18f)](this[_0x366fe6(0x170)],_0x3c76e3=>{const _0x15ac7d=_0x366fe6;this[_0x15ac7d(0x18c)](_0x3c76e3);});}),this['on'](_0x526532(0x181),()=>{const _0x204ca8=_0x526532;this[_0x204ca8(0x193)]();}),this[_0x526532(0x17b)]();}[_0xb7f00(0x17d)](){const _0xacd6d6=_0xb7f00;this[_0xacd6d6(0x170)][_0xacd6d6(0x17d)]();}[_0xb7f00(0x193)](){const _0x4c0e46=_0xb7f00;switch(this[_0x4c0e46(0x18e)][_0x4c0e46(0x16c)](),this[_0x4c0e46(0x176)]){case _0x4c0e46(0x18a):this[_0x4c0e46(0x18e)][_0x4c0e46(0x19f)](this[_0x4c0e46(0x182)]);break;case _0x4c0e46(0x197):this[_0x4c0e46(0x18e)][_0x4c0e46(0x19f)](this[_0x4c0e46(0x16a)]);break;case _0x4c0e46(0x16d):this[_0x4c0e46(0x18e)][_0x4c0e46(0x17c)]([this[_0x4c0e46(0x172)],this[_0x4c0e46(0x19e)]]);}}[_0xb7f00(0x18f)](_0x2a2fda,_0x3e07cd){const _0x230736=_0xb7f00,_0x36cbc4=_0x230736(0x194),_0x48165e=_0x2a2fda[_0x230736(0x186)](_0x36cbc4);if(_0x48165e)return _0x3e07cd(_0x48165e);const _0x131921=new MutationObserver(_0x250ac8=>{const _0x4b60e7=_0x230736,_0x154be8=_0x250ac8[_0x4b60e7(0x18d)](_0x3afa64=>_0x3afa64[_0x4b60e7(0x183)]===_0x2a2fda&&_0x3afa64[_0x4b60e7(0x190)][_0x4b60e7(0x16f)]>0x0&&_0x3afa64[_0x4b60e7(0x190)][0x0][_0x4b60e7(0x19b)][_0x4b60e7(0x17a)]()===_0x36cbc4);_0x154be8[_0x4b60e7(0x16f)]&&(_0x131921[_0x4b60e7(0x178)](),_0x3e07cd(_0x154be8[0x0][_0x4b60e7(0x190)][0x0]));});_0x131921[_0x230736(0x184)](_0x2a2fda,{'childList':!0x0,'subtree':!0x0});}[_0xb7f00(0x18c)](_0x4f8798){const _0x280ca0=_0xb7f00;_0x4f8798[_0x280ca0(0x19d)](_0x280ca0(0x195),_0x1b64c1=>{const _0xba27b7=_0x280ca0;this[_0xba27b7(0x175)](_0xba27b7(0x195),{'imageSrc':_0x1b64c1[_0xba27b7(0x173)][_0xba27b7(0x187)]});}),_0x4f8798[_0x280ca0(0x19d)](_0x280ca0(0x19c),()=>{const _0x50ebfc=_0x280ca0;this[_0x50ebfc(0x175)](_0x50ebfc(0x19c));});}[_0xb7f00(0x17b)](){const _0x57af51=_0xb7f00;this[_0x57af51(0x16a)]['on'](_0x57af51(0x199),()=>{const _0x4f171c=_0x57af51;this[_0x4f171c(0x175)](_0x4f171c(0x199));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x29cd44=_0x22fd;(function(_0x136574,_0x5d8446){const _0x13dad7=_0x22fd,_0x202a64=_0x136574();while(!![]){try{const _0x5d27a8=-parseInt(_0x13dad7(0x1e0))/0x1+-parseInt(_0x13dad7(0x1f5))/0x2+parseInt(_0x13dad7(0x1ef))/0x3*(-parseInt(_0x13dad7(0x1da))/0x4)+parseInt(_0x13dad7(0x1d8))/0x5*(parseInt(_0x13dad7(0x1de))/0x6)+parseInt(_0x13dad7(0x1dc))/0x7*(-parseInt(_0x13dad7(0x1f6))/0x8)+-parseInt(_0x13dad7(0x1db))/0x9+parseInt(_0x13dad7(0x1e6))/0xa*(parseInt(_0x13dad7(0x1e8))/0xb);if(_0x5d27a8===_0x5d8446)break;else _0x202a64['push'](_0x202a64['shift']());}catch(_0x24bc1d){_0x202a64['push'](_0x202a64['shift']());}}}(_0x2f96,0x5776a));import{Command as _0x1dbb91}from'ckeditor5/src/core.js';function _0x22fd(_0x30ec13,_0x3ae301){const _0x2f962d=_0x2f96();return _0x22fd=function(_0x22fdb2,_0x4638d9){_0x22fdb2=_0x22fdb2-0x1d7;let _0x17234d=_0x2f962d[_0x22fdb2];return _0x17234d;},_0x22fd(_0x30ec13,_0x3ae301);}import{Dialog as _0x370394}from'ckeditor5/src/ui.js';function _0x2f96(){const _0x57bfa7=['bind','19294yafOrA','document','imageEditController','isActive','element','config','selection','231wCqyVC','imageBlock','requires','isEnabled','imageInline','_isEditable','30372RPHknA','125920AdRjyo','uploadcare.allowExternalImagesEditing','unbind','5SZADaK','set','3332QyOjaU','4357512gaAYTf','294NKVUvU','execute','1911774XSMOtn','refresh','72352NYmVVO','model','editor','get','plugins','getSelectedElement','7620jfwCIf'];_0x2f96=function(){return _0x57bfa7;};return _0x2f96();}import _0x294194 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x225dbf}from'../utils/editingutils.js';export default class J extends _0x1dbb91{[_0x29cd44(0x1ea)];static get[_0x29cd44(0x1f1)](){return[_0x370394];}[_0x29cd44(0x1f4)];constructor(_0x491712){const _0x144b80=_0x29cd44;super(_0x491712),this[_0x144b80(0x1ea)]=void 0x0,this[_0x144b80(0x1f4)]=_0x225dbf(_0x491712[_0x144b80(0x1ed)][_0x144b80(0x1e3)](_0x144b80(0x1f7))||[]),this[_0x144b80(0x1d9)]({'isActive':!0x1});}[_0x29cd44(0x1df)](){const _0x1c71f7=_0x29cd44,_0x1557ee=this[_0x1c71f7(0x1e2)][_0x1c71f7(0x1e1)][_0x1c71f7(0x1e9)][_0x1c71f7(0x1ee)][_0x1c71f7(0x1e5)]();this[_0x1c71f7(0x1f2)]=this[_0x1c71f7(0x1f4)](_0x1557ee);}[_0x29cd44(0x1dd)](){const _0x2a3e35=_0x29cd44;this[_0x2a3e35(0x1ea)]&&(this[_0x2a3e35(0x1d7)](_0x2a3e35(0x1eb)),this[_0x2a3e35(0x1ea)]=void 0x0);const _0xac1aea=this[_0x2a3e35(0x1e2)][_0x2a3e35(0x1e1)][_0x2a3e35(0x1e9)][_0x2a3e35(0x1ee)][_0x2a3e35(0x1e5)]();_0xac1aea&&(_0xac1aea['is'](_0x2a3e35(0x1ec),_0x2a3e35(0x1f0))||_0xac1aea['is'](_0x2a3e35(0x1ec),_0x2a3e35(0x1f3)))&&(this[_0x2a3e35(0x1ea)]=new _0x294194(this[_0x2a3e35(0x1e2)],this[_0x2a3e35(0x1e2)][_0x2a3e35(0x1e4)][_0x2a3e35(0x1e3)](_0x370394),_0xac1aea),this[_0x2a3e35(0x1e7)](_0x2a3e35(0x1eb))['to'](this[_0x2a3e35(0x1ea)],_0x2a3e35(0x1eb)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e582b=_0x5699;(function(_0x27fbf7,_0x11206c){const _0xeb468a=_0x5699,_0x406690=_0x27fbf7();while(!![]){try{const _0x80b9dc=parseInt(_0xeb468a(0x14c))/0x1+-parseInt(_0xeb468a(0x14e))/0x2*(-parseInt(_0xeb468a(0x15e))/0x3)+-parseInt(_0xeb468a(0x152))/0x4*(-parseInt(_0xeb468a(0x153))/0x5)+-parseInt(_0xeb468a(0x15d))/0x6+-parseInt(_0xeb468a(0x155))/0x7*(parseInt(_0xeb468a(0x154))/0x8)+parseInt(_0xeb468a(0x15a))/0x9*(-parseInt(_0xeb468a(0x14b))/0xa)+parseInt(_0xeb468a(0x15c))/0xb;if(_0x80b9dc===_0x11206c)break;else _0x406690['push'](_0x406690['shift']());}catch(_0xc5ade8){_0x406690['push'](_0x406690['shift']());}}}(_0x25b4,0x6e805));function _0x5699(_0x1393ac,_0x20799c){const _0x25b4d4=_0x25b4();return _0x5699=function(_0x5699e0,_0x2cbed1){_0x5699e0=_0x5699e0-0x148;let _0x44eb62=_0x25b4d4[_0x5699e0];return _0x44eb62;},_0x5699(_0x1393ac,_0x20799c);}function _0x25b4(){const _0x2319f7=['ImageEditing','404372ivcEuu','isPremiumPlugin','UploadcareImageEditEditing','init','20gUbDuB','668210lSPTmM','768ykBRfF','59318dfIwKv','uploadcareImageEdit','commands','pluginName','isOfficialPlugin','28143NfXQKc','ImageUtils','7055994CkRhyF','2434662fSBkXi','3EGZJST','uploadcareImageReplace','requires','add','260Zsgzcf','241346ToKGJJ'];_0x25b4=function(){return _0x2319f7;};return _0x25b4();}import{Plugin as _0x421108}from'ckeditor5/src/core.js';import{Notification as _0x3a2a75}from'ckeditor5/src/ui.js';import _0x1f5be9 from'./uploadcareimageeditcommand.js';import _0x3967b4 from'./uploadcareimagereplacecommand.js';import _0x424a28 from'../uploadcareediting.js';export default class g extends _0x421108{static get[_0x3e582b(0x158)](){const _0x189d54=_0x3e582b;return _0x189d54(0x150);}static get[_0x3e582b(0x149)](){const _0x5a64b0=_0x3e582b;return[_0x424a28,_0x3a2a75,_0x5a64b0(0x15b),_0x5a64b0(0x14d)];}static get[_0x3e582b(0x159)](){return!0x0;}static get[_0x3e582b(0x14f)](){return!0x0;}[_0x3e582b(0x151)](){const _0x19ca39=_0x3e582b,{editor:_0x3c5978}=this;_0x3c5978[_0x19ca39(0x157)][_0x19ca39(0x14a)](_0x19ca39(0x156),new _0x1f5be9(_0x3c5978)),_0x3c5978[_0x19ca39(0x157)][_0x19ca39(0x14a)](_0x19ca39(0x148),new _0x3967b4(_0x3c5978));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x2beeca}from'ckeditor5/src/core.js';import{ButtonView as _0x2e7f71}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x226a94}from'ckeditor5/src/icons.js';import{createElement as _0x408658}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export default class j extends _0x2beeca{['_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 _0x2b6434=this['editor'];_0x2b6434['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5143cb=>{const _0x4fd74d=_0x2b6434['commands']['get']('uploadcareImageEdit'),_0x42ceea=new _0x2e7f71(_0x5143cb),t=_0x5143cb['t'];return _0x42ceea['set']({'icon':_0x226a94,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x42ceea['bind']('isEnabled')['to'](_0x4fd74d),_0x42ceea['bind']('isOn')['to'](_0x4fd74d,'isActive'),this['listenTo'](_0x42ceea,'execute',()=>{_0x2b6434['execute']('uploadcareImageEdit'),_0x2b6434['editing']['view']['focus']();}),_0x42ceea;}),this['_initConfig']();}['_initConfig'](){const _0x180eae=_0x408658(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x180eae),this['listenTo'](this['editor'],'destroy',()=>{_0x180eae['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4c7a(_0x5459af,_0x5a5a1f){const _0x31df8b=_0x31df();return _0x4c7a=function(_0x4c7ae4,_0x437d48){_0x4c7ae4=_0x4c7ae4-0xbb;let _0x32012d=_0x31df8b[_0x4c7ae4];return _0x32012d;},_0x4c7a(_0x5459af,_0x5a5a1f);}const _0x281d28=_0x4c7a;function _0x31df(){const _0x24513a=['removeAttribute','execute','setAttributes','sizes','element','639674RLgVJr','10gKIsuG','document','getSelectedElement','model','srcset','4837yKQhgj','36894WnGqEw','11518326PbOrbz','refresh','imageBlock','6243736xmSEuz','selection','6186rPKckn','imageInline','editor','isEnabled','577325IsvhrD','2130232EGbOza','57GovFRn','change'];_0x31df=function(){return _0x24513a;};return _0x31df();}(function(_0x30ee41,_0x5498d5){const _0x22ac8e=_0x4c7a,_0x215ef9=_0x30ee41();while(!![]){try{const _0x4fc0bf=parseInt(_0x22ac8e(0xd0))/0x1+parseInt(_0x22ac8e(0xbd))/0x2*(parseInt(_0x22ac8e(0xc9))/0x3)+parseInt(_0x22ac8e(0xc8))/0x4+parseInt(_0x22ac8e(0xc7))/0x5+-parseInt(_0x22ac8e(0xc3))/0x6*(parseInt(_0x22ac8e(0xbc))/0x7)+parseInt(_0x22ac8e(0xc1))/0x8+-parseInt(_0x22ac8e(0xbe))/0x9*(parseInt(_0x22ac8e(0xd1))/0xa);if(_0x4fc0bf===_0x5498d5)break;else _0x215ef9['push'](_0x215ef9['shift']());}catch(_0x562966){_0x215ef9['push'](_0x215ef9['shift']());}}}(_0x31df,0x681b6));import{Command as _0x1d9022}from'ckeditor5/src/core.js';export default class O extends _0x1d9022{[_0x281d28(0xbf)](){const _0x28904b=_0x281d28,_0x53ed50=this[_0x28904b(0xc5)][_0x28904b(0xd4)][_0x28904b(0xd2)][_0x28904b(0xc2)][_0x28904b(0xd3)]();this[_0x28904b(0xc6)]=Boolean(_0x53ed50&&(_0x53ed50['is'](_0x28904b(0xcf),_0x28904b(0xc0))||_0x53ed50['is'](_0x28904b(0xcf),_0x28904b(0xc4))));}[_0x281d28(0xcc)](_0x484ebe){const _0x2ecfde=_0x281d28,_0x2502fd=this[_0x2ecfde(0xc5)][_0x2ecfde(0xd4)][_0x2ecfde(0xd2)][_0x2ecfde(0xc2)][_0x2ecfde(0xd3)]();this[_0x2ecfde(0xc5)][_0x2ecfde(0xd4)][_0x2ecfde(0xca)](_0xdde3e8=>{const _0x3771b4=_0x2ecfde;_0xdde3e8[_0x3771b4(0xcd)](_0x484ebe,_0x2502fd),_0xdde3e8[_0x3771b4(0xcb)](_0x3771b4(0xbb),_0x2502fd),_0xdde3e8[_0x3771b4(0xcb)](_0x3771b4(0xce),_0x2502fd);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x17c5(_0x16178a,_0x2d2615){var _0x1b2ae9=_0x1b2a();return _0x17c5=function(_0x17c5ff,_0x38cdd7){_0x17c5ff=_0x17c5ff-0xe2;var _0x44b681=_0x1b2ae9[_0x17c5ff];return _0x44b681;},_0x17c5(_0x16178a,_0x2d2615);}var _0xc7b861=_0x17c5;(function(_0x1afb8d,_0x5c39ad){var _0x3cef80=_0x17c5,_0x4922a4=_0x1afb8d();while(!![]){try{var _0x489b86=-parseInt(_0x3cef80(0xed))/0x1*(parseInt(_0x3cef80(0xe5))/0x2)+-parseInt(_0x3cef80(0xe4))/0x3*(parseInt(_0x3cef80(0xee))/0x4)+parseInt(_0x3cef80(0xe8))/0x5+-parseInt(_0x3cef80(0xf0))/0x6*(-parseInt(_0x3cef80(0xf2))/0x7)+parseInt(_0x3cef80(0xeb))/0x8+-parseInt(_0x3cef80(0xef))/0x9+-parseInt(_0x3cef80(0xe9))/0xa*(-parseInt(_0x3cef80(0xe6))/0xb);if(_0x489b86===_0x5c39ad)break;else _0x4922a4['push'](_0x4922a4['shift']());}catch(_0x129986){_0x4922a4['push'](_0x4922a4['shift']());}}}(_0x1b2a,0x46cb7));import{FocusTracker as _0x729e63}from'ckeditor5/src/utils.js';function _0x1b2a(){var _0x314498=['bindTemplate','2963429myIzUK','focusCycler','createCollection','forwardCycle','focusTracker','fire','1075521GYmKwI','95042CalYrs','22LVRGvL','getFocusableElement','264745zWKvcy','2980520FtZFjy','true','546640HwJZWW','div','5FqTqyj','4TZDCLp','2291787RllRhL','6ULWiTy'];_0x1b2a=function(){return _0x314498;};return _0x1b2a();}import{View as _0x18bf4c,FocusCycler as _0x50bb2e}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x18bf4c{[_0xc7b861(0xe2)];[_0xc7b861(0xf3)];constructor(_0x1c6fbb){var _0x572ab5=_0xc7b861;super(_0x1c6fbb),this[_0x572ab5(0xe2)]=new _0x729e63(),this[_0x572ab5(0xf3)]=new _0x50bb2e({'focusables':this[_0x572ab5(0xf4)](),'focusTracker':this[_0x572ab5(0xe2)]});}[_0xc7b861(0xe7)](){var _0x2c5ec9=_0xc7b861;return{'tag':_0x2c5ec9(0xec),'attributes':{'aria-hidden':_0x2c5ec9(0xea),'tabindex':'0'},'on':{'focus':this[_0x2c5ec9(0xf1)]['to'](()=>{var _0x230c7f=_0x2c5ec9;this[_0x230c7f(0xf3)][_0x230c7f(0xe3)](_0x230c7f(0xf5));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2a43(_0x4b8e8e,_0x172163){const _0x2957a8=_0x2957();return _0x2a43=function(_0x2a4369,_0x3f726e){_0x2a4369=_0x2a4369-0xf4;let _0x56f044=_0x2957a8[_0x2a4369];return _0x56f044;},_0x2a43(_0x4b8e8e,_0x172163);}(function(_0x272ced,_0x2803f1){const _0x58401e=_0x2a43,_0x528904=_0x272ced();while(!![]){try{const _0x56af3c=-parseInt(_0x58401e(0x10a))/0x1*(-parseInt(_0x58401e(0x121))/0x2)+-parseInt(_0x58401e(0x123))/0x3*(parseInt(_0x58401e(0xfd))/0x4)+parseInt(_0x58401e(0x113))/0x5+-parseInt(_0x58401e(0x103))/0x6*(parseInt(_0x58401e(0x12e))/0x7)+-parseInt(_0x58401e(0x12f))/0x8*(-parseInt(_0x58401e(0x11c))/0x9)+parseInt(_0x58401e(0x124))/0xa*(-parseInt(_0x58401e(0x126))/0xb)+-parseInt(_0x58401e(0x118))/0xc;if(_0x56af3c===_0x2803f1)break;else _0x528904['push'](_0x528904['shift']());}catch(_0x25149e){_0x528904['push'](_0x528904['shift']());}}}(_0x2957,0xe8f0a));import{global as _0x1cf4d9,DomEmitterMixin as _0x1f6ae0}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x8e7860){const _0x5f3fdf=_0x2a43,_0x4ee8a8=W(_0x8e7860);return _0xccb72e=>!(!_0xccb72e||!_0xccb72e['is'](_0x5f3fdf(0x11b),_0x5f3fdf(0x105))&&!_0xccb72e['is'](_0x5f3fdf(0x11b),_0x5f3fdf(0x115)))&&(!!_0xccb72e[_0x5f3fdf(0xf9)](_0x5f3fdf(0xf7))||!!_0xccb72e[_0x5f3fdf(0xf9)](_0x5f3fdf(0x125))&&_0x4ee8a8(_0xccb72e[_0x5f3fdf(0xfb)](_0x5f3fdf(0x125))));}export function getImageUrls(_0xfc4fb6,_0x66bce7){const _0x3ffc0f=_0x2a43,_0x24d6df=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x3ffc0f(0x104)](_0x46f777=>_0x46f777<=_0x66bce7)[_0x3ffc0f(0x10d)](_0x25b3ac=>_0xfc4fb6[_0x3ffc0f(0xf8)](/\/$/,'')+_0x3ffc0f(0x11e)+_0x25b3ac+_0x3ffc0f(0x111)+_0x25b3ac+'w');return{'imageFallbackUrl':_0xfc4fb6,'imageSources':[{'srcset':_0x24d6df[_0x3ffc0f(0x109)](',\x20'),'sizes':_0x3ffc0f(0xff)+_0x66bce7+_0x3ffc0f(0x12a)+_0x66bce7+'px','type':_0x3ffc0f(0x128)}]};}export function getImageDimension(_0x4f1138,_0x48d848,_0x50f465){const _0x387fa4=_0x2a43,_0x1029dc=_0x4f1138[_0x387fa4(0x129)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1029dc?parseInt(_0x1029dc[0x1],0xa):_0x48d848,'height':_0x1029dc?parseInt(_0x1029dc[0x2],0xa):_0x50f465};}export function showImageProcessingIndicator(_0x55e85e,_0x4eadde){const _0x4c5fa2=_0x2a43,_0x4dff4f=Object[_0x4c5fa2(0x112)](_0x1f6ae0),_0x282db7=_0x55e85e[_0x4c5fa2(0x107)][_0x4c5fa2(0x100)](_0x4c5fa2(0x110)),_0x4de7ec=_0x55e85e[_0x4c5fa2(0x122)][_0x4c5fa2(0xf4)][_0x4c5fa2(0x116)](_0x4eadde),_0x5c2d33=_0x282db7[_0x4c5fa2(0x106)](_0x4de7ec),_0x4f81b6=_0x55e85e[_0x4c5fa2(0x122)][_0x4c5fa2(0xfa)][_0x4c5fa2(0xfc)][_0x4c5fa2(0x11d)](_0x5c2d33),_0x5cbc20=_0x4eadde[_0x4c5fa2(0xfb)](_0x4c5fa2(0x114)),_0x249e91=_0x4eadde[_0x4c5fa2(0xfb)](_0x4c5fa2(0x11a)),_0x2cd300=_0x4c5fa2(0x12b);_0x55e85e[_0x4c5fa2(0x122)][_0x4c5fa2(0xfa)][_0x4c5fa2(0x10b)](_0x35f436=>{const _0x5398ab=_0x4c5fa2;_0x35f436[_0x5398ab(0x12c)](_0x2cd300,_0x4de7ec),_0x35f436[_0x5398ab(0x10f)](_0x5398ab(0x101),_0x5cbc20+'/'+_0x249e91,_0x5c2d33);}),_0x4dff4f[_0x4c5fa2(0x127)](_0x4f81b6,_0x4c5fa2(0x11f),()=>{const _0x28df6d=_0x4c5fa2;_0x4dff4f[_0x28df6d(0x12d)](_0x4f81b6,_0x28df6d(0x11f)),_0x55e85e[_0x28df6d(0x122)][_0x28df6d(0xfa)][_0x28df6d(0x10b)](_0x5037c0=>{const _0x1f11d8=_0x28df6d;_0x5037c0[_0x1f11d8(0x108)](_0x2cd300,_0x4de7ec),_0x5037c0[_0x1f11d8(0x10c)](_0x1f11d8(0x101),_0x5c2d33);});});}function _0x2957(){const _0x82a327=['src','222926hocbyT','listenTo','image/webp','match','px)\x20100vw,\x20','image-processing','addClass','stopListening','112GwsJgT','1564328XHROry','mapper','baseURI','location','uploadcareImageId','replace','hasAttribute','view','getAttribute','domConverter','529712JrUdet','document','(max-width:\x20','get','aspect-ratio','origin','28182LbSjjA','filter','imageBlock','findViewImgElement','plugins','removeClass','join','1hymtkI','change','removeStyle','map','function','setStyle','ImageUtils','x/\x20','create','4769115UhwtzH','width','imageInline','toViewElement','window','16621332Ykrgdi','isArray','height','element','63KLIzxX','viewToDom','/-/resize/','load','some','753794HiHikB','editing','6GnkGTy','10krLZCy'];_0x2957=function(){return _0x82a327;};return _0x2957();}function W(_0x5bdcba){const _0x26486d=_0x2a43;if(Array[_0x26486d(0x119)](_0x5bdcba)){const _0x242c6b=_0x5bdcba[_0x26486d(0x10d)](W);return _0x3cd114=>_0x242c6b[_0x26486d(0x120)](_0x105eea=>_0x105eea(_0x3cd114));}if(_0x26486d(0x102)==_0x5bdcba){const _0x48214b=_0x1cf4d9[_0x26486d(0x117)][_0x26486d(0xf6)][_0x26486d(0x102)];return _0x31164b=>new URL(_0x31164b,_0x1cf4d9[_0x26486d(0xfe)][_0x26486d(0xf5)])[_0x26486d(0x102)]==_0x48214b;}return _0x26486d(0x10e)==typeof _0x5bdcba?_0x5bdcba:_0x5bdcba instanceof RegExp?_0x116c03=>!(!_0x116c03[_0x26486d(0x129)](_0x5bdcba)&&!_0x116c03[_0x26486d(0xf8)](/^https?:\/\//,'')[_0x26486d(0x129)](_0x5bdcba)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x526b(){var _0x3b07a8=['1705580eAZlcT','12148OZqGuz','4550119zJSzPq','includes','6BkPRas','2605996ryjOFw','6541224oEdqWH','target','33beOEhY','3cjoEpN','16PLhjnk','6EBxbzt','3716046MTdhzF','6040990KbFzko'];_0x526b=function(){return _0x3b07a8;};return _0x526b();}function _0x2069(_0x18ca14,_0x268619){var _0x526bfb=_0x526b();return _0x2069=function(_0x20696a,_0x318b4b){_0x20696a=_0x20696a-0x8a;var _0x295079=_0x526bfb[_0x20696a];return _0x295079;},_0x2069(_0x18ca14,_0x268619);}(function(_0x261766,_0x1eceac){var _0x3e4fd9=_0x2069,_0x338ef4=_0x261766();while(!![]){try{var _0x24ba05=-parseInt(_0x3e4fd9(0x93))/0x1*(-parseInt(_0x3e4fd9(0x96))/0x2)+parseInt(_0x3e4fd9(0x8d))/0x3*(parseInt(_0x3e4fd9(0x97))/0x4)+-parseInt(_0x3e4fd9(0x91))/0x5+parseInt(_0x3e4fd9(0x8f))/0x6*(-parseInt(_0x3e4fd9(0x94))/0x7)+parseInt(_0x3e4fd9(0x8e))/0x8*(parseInt(_0x3e4fd9(0x90))/0x9)+parseInt(_0x3e4fd9(0x92))/0xa*(parseInt(_0x3e4fd9(0x8c))/0xb)+parseInt(_0x3e4fd9(0x8a))/0xc;if(_0x24ba05===_0x1eceac)break;else _0x338ef4['push'](_0x338ef4['shift']());}catch(_0x35456e){_0x338ef4['push'](_0x338ef4['shift']());}}}(_0x526b,0xade64));import{getAncestors as _0x3b79ef}from'ckeditor5/src/utils.js';export function isAncestor(_0x277883,_0x23d9ed){var _0x17c9bf=_0x2069;return _0x3b79ef(_0x277883[_0x17c9bf(0x8b)])[_0x17c9bf(0x95)](_0x23d9ed);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x31f4(){var _0x4f5242=['665106xrZYSB','43033880RcengJ','auto','9848776FdRkeW','6655fkUHZA','129sEdgLE','2737287zhBwiM','35PdoANC','1796CAOriv','10218rZWfSE','590945EWVfHp','upload','getInfo'];_0x31f4=function(){return _0x4f5242;};return _0x31f4();}function _0x2b01(_0x45f50a,_0x28b99b){var _0x31f4a4=_0x31f4();return _0x2b01=function(_0x2b0173,_0xdca5a1){_0x2b0173=_0x2b0173-0x182;var _0x3cda5c=_0x31f4a4[_0x2b0173];return _0x3cda5c;},_0x2b01(_0x45f50a,_0x28b99b);}var _0x1cbb60=_0x2b01;(function(_0x4fbeac,_0x270132){var _0x2593ed=_0x2b01,_0x3f2b53=_0x4fbeac();while(!![]){try{var _0x9f0c03=-parseInt(_0x2593ed(0x183))/0x1+parseInt(_0x2593ed(0x182))/0x2*(-parseInt(_0x2593ed(0x18b))/0x3)+-parseInt(_0x2593ed(0x18e))/0x4*(parseInt(_0x2593ed(0x18a))/0x5)+parseInt(_0x2593ed(0x186))/0x6*(-parseInt(_0x2593ed(0x18d))/0x7)+-parseInt(_0x2593ed(0x189))/0x8+-parseInt(_0x2593ed(0x18c))/0x9+parseInt(_0x2593ed(0x187))/0xa;if(_0x9f0c03===_0x270132)break;else _0x3f2b53['push'](_0x3f2b53['shift']());}catch(_0x5c8eae){_0x3f2b53['push'](_0x3f2b53['shift']());}}}(_0x31f4,0xc4b0a));import{uploadFile as _0x17271e,info as _0x51843d}from'@uploadcare/upload-client';export default class C{static[_0x1cbb60(0x184)]({file:_0xb5426e,publicKey:_0x4e6ca2,signal:_0x114a7e,onProgress:_0x3d9f66}){var _0x15d301=_0x1cbb60;return _0x17271e(_0xb5426e,{'publicKey':_0x4e6ca2,'store':_0x15d301(0x188),'signal':_0x114a7e,'onProgress':_0x3d9f66});}static[_0x1cbb60(0x185)](_0x38dffb,_0x537907){return _0x51843d(_0x38dffb,_0x537907);}}
|