@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251108.0 → 0.0.0-nightly-20251110.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 _0x15e712,View as _0x559f88}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x559f88{constructor(_0x33f730){super(_0x33f730);const t=_0x33f730['t'],_0x3d3fe7=this['bindTemplate'],_0x6b549e=new _0x15e712();_0x6b549e['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':[_0x6b549e,{'text':_0x3d3fe7['to']('imageUploadProgress',_0x27d603=>t('Loading\x20image...')+'\x20('+(_0x27d603||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 _0x2157(_0xefd6d9,_0x3560fa){const _0x1e869b=_0x1e86();return _0x2157=function(_0x2157de,_0x55513f){_0x2157de=_0x2157de-0x1a2;let _0x544c85=_0x1e869b[_0x2157de];return _0x544c85;},_0x2157(_0xefd6d9,_0x3560fa);}const _0x197bd2=_0x2157;(function(_0x23bcff,_0x5ce50e){const _0x5aa3fd=_0x2157,_0xa815d7=_0x23bcff();while(!![]){try{const _0x49354c=parseInt(_0x5aa3fd(0x1d6))/0x1+-parseInt(_0x5aa3fd(0x1ab))/0x2+-parseInt(_0x5aa3fd(0x1c8))/0x3*(parseInt(_0x5aa3fd(0x1ca))/0x4)+parseInt(_0x5aa3fd(0x1cd))/0x5*(parseInt(_0x5aa3fd(0x1d3))/0x6)+parseInt(_0x5aa3fd(0x1b7))/0x7*(-parseInt(_0x5aa3fd(0x1d5))/0x8)+-parseInt(_0x5aa3fd(0x1ae))/0x9+parseInt(_0x5aa3fd(0x1a4))/0xa*(parseInt(_0x5aa3fd(0x1ba))/0xb);if(_0x49354c===_0x5ce50e)break;else _0xa815d7['push'](_0xa815d7['shift']());}catch(_0x319eab){_0xa815d7['push'](_0xa815d7['shift']());}}}(_0x1e86,0x376c8));import{View as _0x448017}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x511557}from'./uploadcareimageeditformloadingview.js';function _0x1e86(){const _0x3e9a73=['_addUploadcareImageEditorListeners','fire','setTemplate','render','_setView','_errorView','58017kxyLVn','observe','24axPzAB','addedNodes','uc-cloud-image-editor','185EqUpEE','ck-uploadcare-form','_items','createCollection','status','target','6738cYdknS','_focusableView','24eZzyaV','281435ablpWr','length','_loadingView','cdnUrl','getFocusableElement','addEventListener','756680ZPbsZn','addMany','_editingView','focus','div','_waitForImageEditorComponent','set','430598RMgXVp','ready','toLowerCase','2612259TlPKBc','nodeName','clear','element','uploading','retry','detail','error','once','9478DjcdGK','add','cancel','77oQrNfL','filter','disconnect','apply','change:status','ck-reset_all-excluded','querySelector','_addErrorViewListeners'];_0x1e86=function(){return _0x3e9a73;};return _0x1e86();}import{UploadcareImageEditFormErrorView as _0x4328e4}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x57bd64}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x17ad86}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x17ad86{[_0x197bd2(0x1cf)];[_0x197bd2(0x1d8)];[_0x197bd2(0x1c7)];[_0x197bd2(0x1a6)];[_0x197bd2(0x1d4)];constructor(_0x5052f9,_0x5aba65,_0x1ad43e){const _0x4fcb28=_0x197bd2;super(_0x5052f9),this[_0x4fcb28(0x1cf)]=this[_0x4fcb28(0x1d0)](),this[_0x4fcb28(0x1d8)]=new _0x511557(_0x5052f9),this[_0x4fcb28(0x1c7)]=new _0x4328e4(_0x5052f9),this[_0x4fcb28(0x1a6)]=new _0x57bd64(_0x5052f9,_0x1ad43e),this[_0x4fcb28(0x1d4)]=new _0x448017(_0x5052f9),this[_0x4fcb28(0x1d4)][_0x4fcb28(0x1c4)](this[_0x4fcb28(0x1a2)]()),this[_0x4fcb28(0x1aa)](_0x4fcb28(0x1d1),_0x5aba65),this[_0x4fcb28(0x1c4)]({'tag':_0x4fcb28(0x1a8),'attributes':{'class':['ck',_0x4fcb28(0x1bf),_0x4fcb28(0x1ce)],'tabindex':'-1'},'children':this[_0x4fcb28(0x1cf)]}),this[_0x4fcb28(0x1c6)](),this[_0x4fcb28(0x1b6)](_0x4fcb28(0x1c5),()=>{const _0x485616=_0x4fcb28;this[_0x485616(0x1a9)](this[_0x485616(0x1b1)],_0x3928af=>{const _0x5723ea=_0x485616;this[_0x5723ea(0x1c2)](_0x3928af);});}),this['on'](_0x4fcb28(0x1be),()=>{const _0x18027c=_0x4fcb28;this[_0x18027c(0x1c6)]();}),this[_0x4fcb28(0x1c1)]();}[_0x197bd2(0x1a7)](){const _0x30b73e=_0x197bd2;this[_0x30b73e(0x1b1)][_0x30b73e(0x1a7)]();}[_0x197bd2(0x1c6)](){const _0x9b4196=_0x197bd2;switch(this[_0x9b4196(0x1cf)][_0x9b4196(0x1b0)](),this[_0x9b4196(0x1d1)]){case _0x9b4196(0x1b2):this[_0x9b4196(0x1cf)][_0x9b4196(0x1b8)](this[_0x9b4196(0x1d8)]);break;case _0x9b4196(0x1b5):this[_0x9b4196(0x1cf)][_0x9b4196(0x1b8)](this[_0x9b4196(0x1c7)]);break;case _0x9b4196(0x1ac):this[_0x9b4196(0x1cf)][_0x9b4196(0x1a5)]([this[_0x9b4196(0x1a6)],this[_0x9b4196(0x1d4)]]);}}[_0x197bd2(0x1a9)](_0x40dbef,_0x5c1539){const _0x4b1485=_0x197bd2,_0x46cf10=_0x4b1485(0x1cc),_0x1c40eb=_0x40dbef[_0x4b1485(0x1c0)](_0x46cf10);if(_0x1c40eb)return _0x5c1539(_0x1c40eb);const _0x375b1c=new MutationObserver(_0x181856=>{const _0xdc3de9=_0x4b1485,_0x2cb1c1=_0x181856[_0xdc3de9(0x1bb)](_0x2e3c08=>_0x2e3c08[_0xdc3de9(0x1d2)]===_0x40dbef&&_0x2e3c08[_0xdc3de9(0x1cb)][_0xdc3de9(0x1d7)]>0x0&&_0x2e3c08[_0xdc3de9(0x1cb)][0x0][_0xdc3de9(0x1af)][_0xdc3de9(0x1ad)]()===_0x46cf10);_0x2cb1c1[_0xdc3de9(0x1d7)]&&(_0x375b1c[_0xdc3de9(0x1bc)](),_0x5c1539(_0x2cb1c1[0x0][_0xdc3de9(0x1cb)][0x0]));});_0x375b1c[_0x4b1485(0x1c9)](_0x40dbef,{'childList':!0x0,'subtree':!0x0});}[_0x197bd2(0x1c2)](_0x328e5e){const _0x11f135=_0x197bd2;_0x328e5e[_0x11f135(0x1a3)](_0x11f135(0x1bd),_0x3c7fc9=>{const _0xb3d185=_0x11f135;this[_0xb3d185(0x1c3)](_0xb3d185(0x1bd),{'imageSrc':_0x3c7fc9[_0xb3d185(0x1b4)][_0xb3d185(0x1d9)]});}),_0x328e5e[_0x11f135(0x1a3)](_0x11f135(0x1b9),()=>{const _0x5b9550=_0x11f135;this[_0x5b9550(0x1c3)](_0x5b9550(0x1b9));});}[_0x197bd2(0x1c1)](){const _0x5c5e7d=_0x197bd2;this[_0x5c5e7d(0x1c7)]['on'](_0x5c5e7d(0x1b3),()=>{const _0x3d4d52=_0x5c5e7d;this[_0x3d4d52(0x1c3)](_0x3d4d52(0x1b3));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x528650=_0x1680;(function(_0x205dac,_0x2cd79e){const _0x1582df=_0x1680,_0x4ed3d6=_0x205dac();while(!![]){try{const _0x4f0ba8=-parseInt(_0x1582df(0x205))/0x1*(parseInt(_0x1582df(0x206))/0x2)+parseInt(_0x1582df(0x1f5))/0x3+-parseInt(_0x1582df(0x1f0))/0x4+-parseInt(_0x1582df(0x1fc))/0x5*(-parseInt(_0x1582df(0x1f9))/0x6)+parseInt(_0x1582df(0x201))/0x7+parseInt(_0x1582df(0x204))/0x8+-parseInt(_0x1582df(0x1f4))/0x9;if(_0x4f0ba8===_0x2cd79e)break;else _0x4ed3d6['push'](_0x4ed3d6['shift']());}catch(_0xf98bca){_0x4ed3d6['push'](_0x4ed3d6['shift']());}}}(_0x7298,0x40ae3));import{Command as _0x415b10}from'ckeditor5/src/core.js';import{Dialog as _0x39cf76}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x2affc1}from'./ui/uploadcareimageeditcontroller.js';function _0x1680(_0x374d27,_0x48dc1e){const _0x729851=_0x7298();return _0x1680=function(_0x168008,_0x347cd0){_0x168008=_0x168008-0x1e8;let _0x578557=_0x729851[_0x168008];return _0x578557;},_0x1680(_0x374d27,_0x48dc1e);}function _0x7298(){const _0x5bcd91=['isActive','bind','3060631BHliUW','execute','isEnabled','3066752PacbAP','209659lfWjEP','2SgITjk','plugins','config','uploadcare.allowExternalImagesEditing','get','element','refresh','editor','unbind','1375376GFzcHZ','getSelectedElement','imageBlock','set','4245444qqMOJe','712041KizRkl','_isEditable','imageInline','document','1393356vcypQV','model','imageEditController','5CsXJzO','requires','selection'];_0x7298=function(){return _0x5bcd91;};return _0x7298();}import{createEditabilityChecker as _0x19e890}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x415b10{[_0x528650(0x1fb)];static get[_0x528650(0x1fd)](){return[_0x39cf76];}[_0x528650(0x1f6)];constructor(_0x3346a7){const _0xacc63b=_0x528650;super(_0x3346a7),this[_0xacc63b(0x1fb)]=void 0x0,this[_0xacc63b(0x1f6)]=_0x19e890(_0x3346a7[_0xacc63b(0x1e9)][_0xacc63b(0x1eb)](_0xacc63b(0x1ea))||[]),this[_0xacc63b(0x1f3)]({'isActive':!0x1});}[_0x528650(0x1ed)](){const _0x362a83=_0x528650,_0x32a986=this[_0x362a83(0x1ee)][_0x362a83(0x1fa)][_0x362a83(0x1f8)][_0x362a83(0x1fe)][_0x362a83(0x1f1)]();this[_0x362a83(0x203)]=this[_0x362a83(0x1f6)](_0x32a986);}[_0x528650(0x202)](){const _0xe2b4bf=_0x528650;this[_0xe2b4bf(0x1fb)]&&(this[_0xe2b4bf(0x1ef)](_0xe2b4bf(0x1ff)),this[_0xe2b4bf(0x1fb)]=void 0x0);const _0x7cb724=this[_0xe2b4bf(0x1ee)][_0xe2b4bf(0x1fa)][_0xe2b4bf(0x1f8)][_0xe2b4bf(0x1fe)][_0xe2b4bf(0x1f1)]();_0x7cb724&&(_0x7cb724['is'](_0xe2b4bf(0x1ec),_0xe2b4bf(0x1f2))||_0x7cb724['is'](_0xe2b4bf(0x1ec),_0xe2b4bf(0x1f7)))&&(this[_0xe2b4bf(0x1fb)]=new _0x2affc1(this[_0xe2b4bf(0x1ee)],this[_0xe2b4bf(0x1ee)][_0xe2b4bf(0x1e8)][_0xe2b4bf(0x1eb)](_0x39cf76),_0x7cb724),this[_0xe2b4bf(0x200)](_0xe2b4bf(0x1ff))['to'](this[_0xe2b4bf(0x1fb)],_0xe2b4bf(0x1ff)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b0d2d=_0xb39c;function _0xb39c(_0x26c085,_0x5db990){const _0x2ba931=_0x2ba9();return _0xb39c=function(_0xb39c3b,_0x495266){_0xb39c3b=_0xb39c3b-0xd2;let _0x4693bd=_0x2ba931[_0xb39c3b];return _0x4693bd;},_0xb39c(_0x26c085,_0x5db990);}(function(_0x27947f,_0x30042d){const _0x3b56bf=_0xb39c,_0x4c2337=_0x27947f();while(!![]){try{const _0x2cb9d4=-parseInt(_0x3b56bf(0xd2))/0x1*(-parseInt(_0x3b56bf(0xd5))/0x2)+parseInt(_0x3b56bf(0xe4))/0x3*(parseInt(_0x3b56bf(0xd3))/0x4)+parseInt(_0x3b56bf(0xe7))/0x5*(-parseInt(_0x3b56bf(0xe3))/0x6)+parseInt(_0x3b56bf(0xdf))/0x7+-parseInt(_0x3b56bf(0xdb))/0x8*(parseInt(_0x3b56bf(0xe2))/0x9)+-parseInt(_0x3b56bf(0xd4))/0xa*(-parseInt(_0x3b56bf(0xde))/0xb)+parseInt(_0x3b56bf(0xd9))/0xc*(-parseInt(_0x3b56bf(0xdc))/0xd);if(_0x2cb9d4===_0x30042d)break;else _0x4c2337['push'](_0x4c2337['shift']());}catch(_0x444f0d){_0x4c2337['push'](_0x4c2337['shift']());}}}(_0x2ba9,0xb8e6d));function _0x2ba9(){const _0x354a0f=['48mVMPDZ','52clfiLs','uploadcareImageReplace','33JTXeYA','3501344GTXubq','ImageUtils','requires','789201UAjEnS','4140oEbYWX','155667ePyfAn','isOfficialPlugin','commands','9290rcVafZ','ImageEditing','pluginName','uploadcareImageEdit','25304Udaqtg','112FLsoDV','310410mhFPWI','86xLHjtw','isPremiumPlugin','init','UploadcareImageEditEditing','1706304yPDklI','add'];_0x2ba9=function(){return _0x354a0f;};return _0x2ba9();}import{Plugin as _0x13aa4f}from'ckeditor5/src/core.js';import{Notification as _0xe2581a}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0xa65ed}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2fccf5}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x219a3e}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x13aa4f{static get[_0x1b0d2d(0xe9)](){const _0x373e46=_0x1b0d2d;return _0x373e46(0xd8);}static get[_0x1b0d2d(0xe1)](){const _0x5739b6=_0x1b0d2d;return[_0x219a3e,_0xe2581a,_0x5739b6(0xe0),_0x5739b6(0xe8)];}static get[_0x1b0d2d(0xe5)](){return!0x0;}static get[_0x1b0d2d(0xd6)](){return!0x0;}[_0x1b0d2d(0xd7)](){const _0xe089ac=_0x1b0d2d,{editor:_0x4fb587}=this;_0x4fb587[_0xe089ac(0xe6)][_0xe089ac(0xda)](_0xe089ac(0xea),new _0xa65ed(_0x4fb587)),_0x4fb587[_0xe089ac(0xe6)][_0xe089ac(0xda)](_0xe089ac(0xdd),new _0x2fccf5(_0x4fb587));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x52c1d3}from'ckeditor5/src/core.js';import{ButtonView as _0x302b76}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x59decc}from'ckeditor5/src/icons.js';import{createElement as _0x9f3a59}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 _0x52c1d3{['_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 _0x412535=this['editor'];_0x412535['ui']['componentFactory']['add']('uploadcareImageEdit',_0x453ee3=>{const _0x29ffcd=_0x412535['commands']['get']('uploadcareImageEdit'),_0x537eb4=new _0x302b76(_0x453ee3),t=_0x453ee3['t'];return _0x537eb4['set']({'icon':_0x59decc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x537eb4['bind']('isEnabled')['to'](_0x29ffcd),_0x537eb4['bind']('isOn')['to'](_0x29ffcd,'isActive'),this['listenTo'](_0x537eb4,'execute',()=>{_0x412535['execute']('uploadcareImageEdit'),_0x412535['editing']['view']['focus']();}),_0x537eb4;}),this['_initConfig']();}['_initConfig'](){const _0x3d5651=_0x9f3a59(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3d5651),this['listenTo'](this['editor'],'destroy',()=>{_0x3d5651['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x401d45=_0x51c5;function _0x504e(){var _0x2796b1=['4aWEwpm','3124275dzqAcH','div','56394SqNZLL','bindTemplate','focusCycler','true','560YldPDm','99FPKltJ','getFocusableElement','fire','4293280EDvIwI','10462200PgWeNC','createCollection','forwardCycle','18QPMxKT','1373311zvjfEt','focusTracker','2984580dMryhW','81806ckNTSo'];_0x504e=function(){return _0x2796b1;};return _0x504e();}(function(_0x2e32d5,_0xae0715){var _0x3bb4f9=_0x51c5,_0x5504ac=_0x2e32d5();while(!![]){try{var _0x2819c4=parseInt(_0x3bb4f9(0xe5))/0x1+-parseInt(_0x3bb4f9(0xe8))/0x2*(-parseInt(_0x3bb4f9(0xe4))/0x3)+parseInt(_0x3bb4f9(0xe9))/0x4*(parseInt(_0x3bb4f9(0xea))/0x5)+parseInt(_0x3bb4f9(0xe7))/0x6+parseInt(_0x3bb4f9(0xe1))/0x7+parseInt(_0x3bb4f9(0xdc))/0x8*(parseInt(_0x3bb4f9(0xec))/0x9)+-parseInt(_0x3bb4f9(0xe0))/0xa*(parseInt(_0x3bb4f9(0xdd))/0xb);if(_0x2819c4===_0xae0715)break;else _0x5504ac['push'](_0x5504ac['shift']());}catch(_0x2fc469){_0x5504ac['push'](_0x5504ac['shift']());}}}(_0x504e,0xc5d2a));import{FocusTracker as _0x8e79d8}from'ckeditor5/src/utils.js';import{View as _0x21b845,FocusCycler as _0x43e6fb}from'ckeditor5/src/ui.js';function _0x51c5(_0x554cd6,_0x30bfbf){var _0x504e66=_0x504e();return _0x51c5=function(_0x51c5ea,_0xbbf67a){_0x51c5ea=_0x51c5ea-0xd9;var _0xc64b72=_0x504e66[_0x51c5ea];return _0xc64b72;},_0x51c5(_0x554cd6,_0x30bfbf);}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x21b845{[_0x401d45(0xe6)];[_0x401d45(0xda)];constructor(_0x1256c8){var _0x16d94b=_0x401d45;super(_0x1256c8),this[_0x16d94b(0xe6)]=new _0x8e79d8(),this[_0x16d94b(0xda)]=new _0x43e6fb({'focusables':this[_0x16d94b(0xe2)](),'focusTracker':this[_0x16d94b(0xe6)]});}[_0x401d45(0xde)](){var _0x1ae25e=_0x401d45;return{'tag':_0x1ae25e(0xeb),'attributes':{'aria-hidden':_0x1ae25e(0xdb),'tabindex':'0'},'on':{'focus':this[_0x1ae25e(0xd9)]['to'](()=>{var _0x1ff1b7=_0x1ae25e;this[_0x1ff1b7(0xda)][_0x1ff1b7(0xdf)](_0x1ff1b7(0xe3));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3738(){const _0x42604e=['width','x/\x20','(max-width:\x20','/-/resize/','1085365lmXBrp','replace','8NqQJFZ','change','stopListening','aspect-ratio','hasAttribute','3290949QDThzv','setStyle','isArray','782472BhHkhz','877283OoIQRP','domConverter','px)\x20100vw,\x20','toViewElement','uploadcareImageId','filter','map','2955510Micdkb','match','addClass','src','get','146qeRrxP','location','viewToDom','50134LctDoN','load','window','join','findViewImgElement','height','36EAlOPD','imageBlock','function','document','element','imageInline','baseURI','824FenXwu','removeStyle','view','getAttribute','origin','removeClass','listenTo','ImageUtils','image/webp','plugins','some','5831Lscqpv','mapper','editing','image-processing'];_0x3738=function(){return _0x42604e;};return _0x3738();}(function(_0x44100a,_0x16a8a8){const _0x19bb0b=_0x3262,_0x2017cf=_0x44100a();while(!![]){try{const _0x589a87=parseInt(_0x19bb0b(0x1bb))/0x1*(parseInt(_0x19bb0b(0x1a0))/0x2)+-parseInt(_0x19bb0b(0x190))/0x3+parseInt(_0x19bb0b(0x18b))/0x4*(-parseInt(_0x19bb0b(0x189))/0x5)+-parseInt(_0x19bb0b(0x193))/0x6+parseInt(_0x19bb0b(0x1a3))/0x7*(parseInt(_0x19bb0b(0x1b0))/0x8)+-parseInt(_0x19bb0b(0x1a9))/0x9*(-parseInt(_0x19bb0b(0x19b))/0xa)+-parseInt(_0x19bb0b(0x194))/0xb;if(_0x589a87===_0x16a8a8)break;else _0x2017cf['push'](_0x2017cf['shift']());}catch(_0x285cbe){_0x2017cf['push'](_0x2017cf['shift']());}}}(_0x3738,0x93863));import{global as _0x52ddc8,DomEmitterMixin as _0x1f2150}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x303c5b){const _0x746689=_0x3262,_0x4d4818=G(_0x303c5b);return _0x59e62b=>!(!_0x59e62b||!_0x59e62b['is'](_0x746689(0x1ad),_0x746689(0x1aa))&&!_0x59e62b['is'](_0x746689(0x1ad),_0x746689(0x1ae)))&&(!!_0x59e62b[_0x746689(0x18f)](_0x746689(0x198))||!!_0x59e62b[_0x746689(0x18f)](_0x746689(0x19e))&&_0x4d4818(_0x59e62b[_0x746689(0x1b3)](_0x746689(0x19e))));}export function getImageUrls(_0x8a9516,_0x2e7441){const _0x1c1bf8=_0x3262,_0x2778bc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1c1bf8(0x199)](_0xb4a8d6=>_0xb4a8d6<=_0x2e7441)[_0x1c1bf8(0x19a)](_0x2cacf7=>_0x8a9516[_0x1c1bf8(0x18a)](/\/$/,'')+_0x1c1bf8(0x188)+_0x2cacf7+_0x1c1bf8(0x1c0)+_0x2cacf7+'w');return{'imageFallbackUrl':_0x8a9516,'imageSources':[{'srcset':_0x2778bc[_0x1c1bf8(0x1a6)](',\x20'),'sizes':_0x1c1bf8(0x187)+_0x2e7441+_0x1c1bf8(0x196)+_0x2e7441+'px','type':_0x1c1bf8(0x1b8)}]};}export function getImageDimension(_0x104813,_0x486ed7,_0x122d03){const _0x18aca0=_0x3262,_0x47390e=_0x104813[_0x18aca0(0x19c)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x47390e?parseInt(_0x47390e[0x1],0xa):_0x486ed7,'height':_0x47390e?parseInt(_0x47390e[0x2],0xa):_0x122d03};}export function showImageProcessingIndicator(_0x49dbe7,_0x434440){const _0x538a4d=_0x3262,_0x4822a9=new(_0x1f2150())(),_0x107d36=_0x49dbe7[_0x538a4d(0x1b9)][_0x538a4d(0x19f)](_0x538a4d(0x1b7)),_0x5107a8=_0x49dbe7[_0x538a4d(0x1bd)][_0x538a4d(0x1bc)][_0x538a4d(0x197)](_0x434440),_0x1a5747=_0x107d36[_0x538a4d(0x1a7)](_0x5107a8),_0x4c29b8=_0x49dbe7[_0x538a4d(0x1bd)][_0x538a4d(0x1b2)][_0x538a4d(0x195)][_0x538a4d(0x1a2)](_0x1a5747),_0x1e26d5=_0x434440[_0x538a4d(0x1b3)](_0x538a4d(0x1bf)),_0x20f4f7=_0x434440[_0x538a4d(0x1b3)](_0x538a4d(0x1a8)),_0x18c2cb=_0x538a4d(0x1be);_0x49dbe7[_0x538a4d(0x1bd)][_0x538a4d(0x1b2)][_0x538a4d(0x18c)](_0x487b05=>{const _0x411588=_0x538a4d;_0x487b05[_0x411588(0x19d)](_0x18c2cb,_0x5107a8),_0x487b05[_0x411588(0x191)](_0x411588(0x18e),_0x1e26d5+'/'+_0x20f4f7,_0x1a5747);}),_0x4822a9[_0x538a4d(0x1b6)](_0x4c29b8,_0x538a4d(0x1a4),()=>{const _0x3cf52e=_0x538a4d;_0x4822a9[_0x3cf52e(0x18d)](_0x4c29b8,_0x3cf52e(0x1a4)),_0x49dbe7[_0x3cf52e(0x1bd)][_0x3cf52e(0x1b2)][_0x3cf52e(0x18c)](_0x5f0df3=>{const _0x59db89=_0x3cf52e;_0x5f0df3[_0x59db89(0x1b5)](_0x18c2cb,_0x5107a8),_0x5f0df3[_0x59db89(0x1b1)](_0x59db89(0x18e),_0x1a5747);});});}function _0x3262(_0x5d3518,_0x310a9f){const _0x373852=_0x3738();return _0x3262=function(_0x326299,_0x3d00bb){_0x326299=_0x326299-0x187;let _0x4408f4=_0x373852[_0x326299];return _0x4408f4;},_0x3262(_0x5d3518,_0x310a9f);}function G(_0x1d8497){const _0x4f9c58=_0x3262;if(Array[_0x4f9c58(0x192)](_0x1d8497)){const _0x9bc5d4=_0x1d8497[_0x4f9c58(0x19a)](G);return _0x4a0ad0=>_0x9bc5d4[_0x4f9c58(0x1ba)](_0x1bf44d=>_0x1bf44d(_0x4a0ad0));}if(_0x4f9c58(0x1b4)==_0x1d8497){const _0x234b9c=_0x52ddc8[_0x4f9c58(0x1a5)][_0x4f9c58(0x1a1)][_0x4f9c58(0x1b4)];return _0xdd167=>new URL(_0xdd167,_0x52ddc8[_0x4f9c58(0x1ac)][_0x4f9c58(0x1af)])[_0x4f9c58(0x1b4)]==_0x234b9c;}return _0x4f9c58(0x1ab)==typeof _0x1d8497?_0x1d8497:_0x1d8497 instanceof RegExp?_0x47317f=>!(!_0x47317f[_0x4f9c58(0x19c)](_0x1d8497)&&!_0x47317f[_0x4f9c58(0x18a)](/^https?:\/\//,'')[_0x4f9c58(0x19c)](_0x1d8497)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x36cc23,_0x6045aa){var _0x438479=_0x16c4,_0x47203c=_0x36cc23();while(!![]){try{var _0x24f390=parseInt(_0x438479(0xd3))/0x1*(parseInt(_0x438479(0xd4))/0x2)+-parseInt(_0x438479(0xd5))/0x3+parseInt(_0x438479(0xcf))/0x4*(-parseInt(_0x438479(0xd1))/0x5)+-parseInt(_0x438479(0xd8))/0x6*(parseInt(_0x438479(0xdb))/0x7)+parseInt(_0x438479(0xd9))/0x8*(parseInt(_0x438479(0xdc))/0x9)+-parseInt(_0x438479(0xd0))/0xa*(-parseInt(_0x438479(0xd2))/0xb)+parseInt(_0x438479(0xd6))/0xc*(parseInt(_0x438479(0xce))/0xd);if(_0x24f390===_0x6045aa)break;else _0x47203c['push'](_0x47203c['shift']());}catch(_0x17d7b7){_0x47203c['push'](_0x47203c['shift']());}}}(_0xa062,0x7d4e5));import{getAncestors as _0x45ef5b}from'ckeditor5/src/utils.js';function _0x16c4(_0x2f3430,_0x533a51){var _0xa062bc=_0xa062();return _0x16c4=function(_0x16c4e1,_0x4fa8ca){_0x16c4e1=_0x16c4e1-0xce;var _0x12761c=_0xa062bc[_0x16c4e1];return _0x12761c;},_0x16c4(_0x2f3430,_0x533a51);}function _0xa062(){var _0x532828=['21jgDAuf','2813688oCbYdn','13AkDrPU','152MgjpWh','5550szyZLo','94485lZnuNc','1991DZKjGV','5037amnQym','320CuZgge','2304480KkaDVR','14153712eqvYeO','target','2048496MIDSUK','24OQkrIT','includes'];_0xa062=function(){return _0x532828;};return _0xa062();}export function isAncestor(_0x379964,_0x1f1f66){var _0x1d4f7c=_0x16c4;return _0x45ef5b(_0x379964[_0x1d4f7c(0xd7)])[_0x1d4f7c(0xda)](_0x1f1f66);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3604c8=_0x4c0e;(function(_0x1f00e4,_0x317c50){var _0x18a3d2=_0x4c0e,_0x511ccb=_0x1f00e4();while(!![]){try{var _0x8136a0=-parseInt(_0x18a3d2(0xdd))/0x1+-parseInt(_0x18a3d2(0xd6))/0x2+-parseInt(_0x18a3d2(0xd7))/0x3*(-parseInt(_0x18a3d2(0xda))/0x4)+-parseInt(_0x18a3d2(0xd4))/0x5+parseInt(_0x18a3d2(0xd5))/0x6*(parseInt(_0x18a3d2(0xd3))/0x7)+-parseInt(_0x18a3d2(0xdc))/0x8+parseInt(_0x18a3d2(0xdb))/0x9;if(_0x8136a0===_0x317c50)break;else _0x511ccb['push'](_0x511ccb['shift']());}catch(_0x35799f){_0x511ccb['push'](_0x511ccb['shift']());}}}(_0x3387,0xea8e5));import{uploadFile as _0x34ad29,info as _0x491090}from'@uploadcare/upload-client';function _0x3387(){var _0x2b917b=['1331830bxoIXK','1112151mhwoNw','upload','getInfo','4YLTsLp','24339708HTPKDd','13371664wQlttN','526723eYgsqD','2947nUbIfe','3385305tWzibc','20334XLbnKv'];_0x3387=function(){return _0x2b917b;};return _0x3387();}function _0x4c0e(_0x5a687d,_0x9089c3){var _0x3387f3=_0x3387();return _0x4c0e=function(_0x4c0ede,_0x382f7a){_0x4c0ede=_0x4c0ede-0xd3;var _0x3c8f90=_0x3387f3[_0x4c0ede];return _0x3c8f90;},_0x4c0e(_0x5a687d,_0x9089c3);}export class UploadUtils{static[_0x3604c8(0xd8)]({file:_0x42cec6,..._0x49dc48}){return _0x34ad29(_0x42cec6,_0x49dc48);}static[_0x3604c8(0xd9)](_0x3cbe55,_0x526760){return _0x491090(_0x3cbe55,_0x526760);}}
|