@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250224.0 → 0.0.0-nightly-next-20250225.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
|
-
|
|
23
|
+
const _0xc87ec4=_0x1107;(function(_0x1611fd,_0x571f2f){const _0x4d2d05=_0x1107,_0x15f702=_0x1611fd();while(!![]){try{const _0x539d8f=parseInt(_0x4d2d05(0xaa))/0x1+-parseInt(_0x4d2d05(0xa7))/0x2*(-parseInt(_0x4d2d05(0xa4))/0x3)+-parseInt(_0x4d2d05(0xa1))/0x4+-parseInt(_0x4d2d05(0xad))/0x5*(-parseInt(_0x4d2d05(0x8c))/0x6)+-parseInt(_0x4d2d05(0x8d))/0x7*(parseInt(_0x4d2d05(0x9d))/0x8)+-parseInt(_0x4d2d05(0x8f))/0x9*(-parseInt(_0x4d2d05(0x83))/0xa)+-parseInt(_0x4d2d05(0xae))/0xb*(parseInt(_0x4d2d05(0xb1))/0xc);if(_0x539d8f===_0x571f2f)break;else _0x15f702['push'](_0x15f702['shift']());}catch(_0x27f4e8){_0x15f702['push'](_0x15f702['shift']());}}}(_0x5d1a,0xd7ecf));import{View as _0x172721}from'ckeditor5/src/ui.js';function _0x1107(_0x15a230,_0x22132f){const _0x5d1af1=_0x5d1a();return _0x1107=function(_0x1107bb,_0x22a7fd){_0x1107bb=_0x1107bb-0x7d;let _0x3ed67c=_0x5d1af1[_0x1107bb];return _0x3ed67c;},_0x1107(_0x15a230,_0x22132f);}function _0x5d1a(){const _0x39d44b=['_waitForImageEditorComponent','setTemplate','addEventListener','_items','22352BojIah','render','_addUploadcareImageEditorListeners','_loadingView','2329120RdKFTg','retry','cdnUrl','230199ffjnGT','uc-cloud-image-editor','addedNodes','12SuEuUn','once','div','1437696JoEMjb','nodeName','target','1372315oLjKHl','720269iBDyYY','fire','_focusableView','204EVhyyW','cancel','_setView','_editingView','addMany','createCollection','toLowerCase','set','clear','ready','status','1817830qFXofD','disconnect','length','observe','apply','_errorView','focus','error','element','18hAZwfm','2632CKTMNq','change:status','45CxUpcu','add','getFocusableElement','detail','ck-uploadcare-form','filter','querySelector','uploading','_addErrorViewListeners','ck-reset_all-excluded'];_0x5d1a=function(){return _0x39d44b;};return _0x5d1a();}import _0x493261 from'./uploadcareimageeditformloadingview.js';import _0x25cc32 from'./uploadcareimageeditformerrorview.js';import _0x1c8125 from'./uploadcareimageeditformeditingview.js';import _0x176c87 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x176c87{[_0xc87ec4(0x9c)];[_0xc87ec4(0xa0)];[_0xc87ec4(0x88)];[_0xc87ec4(0xb4)];[_0xc87ec4(0xb0)];constructor(_0x49cc7b,_0x10ea18,_0x1e65f8){const _0x406cc7=_0xc87ec4;super(_0x49cc7b),this[_0x406cc7(0x9c)]=this[_0x406cc7(0x7d)](),this[_0x406cc7(0xa0)]=new _0x493261(_0x49cc7b),this[_0x406cc7(0x88)]=new _0x25cc32(_0x49cc7b),this[_0x406cc7(0xb4)]=new _0x1c8125(_0x49cc7b,_0x1e65f8),this[_0x406cc7(0xb0)]=new _0x172721(_0x49cc7b),this[_0x406cc7(0xb0)][_0x406cc7(0x9a)](this[_0x406cc7(0x91)]()),this[_0x406cc7(0x7f)](_0x406cc7(0x82),_0x10ea18),this[_0x406cc7(0x9a)]({'tag':_0x406cc7(0xa9),'attributes':{'class':['ck',_0x406cc7(0x98),_0x406cc7(0x93)],'tabindex':'-1'},'children':this[_0x406cc7(0x9c)]}),this[_0x406cc7(0xb3)](),this[_0x406cc7(0xa8)](_0x406cc7(0x9e),()=>{const _0x44bbcc=_0x406cc7;this[_0x44bbcc(0x99)](this[_0x44bbcc(0x8b)],_0x1ee9c2=>{const _0x541b2f=_0x44bbcc;this[_0x541b2f(0x9f)](_0x1ee9c2);});}),this['on'](_0x406cc7(0x8e),()=>{const _0x558fd4=_0x406cc7;this[_0x558fd4(0xb3)]();}),this[_0x406cc7(0x97)]();}[_0xc87ec4(0x89)](){const _0x2b1d96=_0xc87ec4;this[_0x2b1d96(0x8b)][_0x2b1d96(0x89)]();}[_0xc87ec4(0xb3)](){const _0x51c120=_0xc87ec4;switch(this[_0x51c120(0x9c)][_0x51c120(0x80)](),this[_0x51c120(0x82)]){case _0x51c120(0x96):this[_0x51c120(0x9c)][_0x51c120(0x90)](this[_0x51c120(0xa0)]);break;case _0x51c120(0x8a):this[_0x51c120(0x9c)][_0x51c120(0x90)](this[_0x51c120(0x88)]);break;case _0x51c120(0x81):this[_0x51c120(0x9c)][_0x51c120(0xb5)]([this[_0x51c120(0xb4)],this[_0x51c120(0xb0)]]);}}[_0xc87ec4(0x99)](_0x4a8fbc,_0x196f55){const _0x30beef=_0xc87ec4,_0x29fb9c=_0x30beef(0xa5),_0xa24663=_0x4a8fbc[_0x30beef(0x95)](_0x29fb9c);if(_0xa24663)return _0x196f55(_0xa24663);const _0x6c3f73=new MutationObserver(_0xe047c8=>{const _0xb556c7=_0x30beef,_0x4f5542=_0xe047c8[_0xb556c7(0x94)](_0x360e9e=>_0x360e9e[_0xb556c7(0xac)]===_0x4a8fbc&&_0x360e9e[_0xb556c7(0xa6)][_0xb556c7(0x85)]>0x0&&_0x360e9e[_0xb556c7(0xa6)][0x0][_0xb556c7(0xab)][_0xb556c7(0x7e)]()===_0x29fb9c);_0x4f5542[_0xb556c7(0x85)]&&(_0x6c3f73[_0xb556c7(0x84)](),_0x196f55(_0x4f5542[0x0][_0xb556c7(0xa6)][0x0]));});_0x6c3f73[_0x30beef(0x86)](_0x4a8fbc,{'childList':!0x0,'subtree':!0x0});}[_0xc87ec4(0x9f)](_0x2462a7){const _0x50a700=_0xc87ec4;_0x2462a7[_0x50a700(0x9b)](_0x50a700(0x87),_0x1c931e=>{const _0x5e1919=_0x50a700;this[_0x5e1919(0xaf)](_0x5e1919(0x87),{'imageSrc':_0x1c931e[_0x5e1919(0x92)][_0x5e1919(0xa3)]});}),_0x2462a7[_0x50a700(0x9b)](_0x50a700(0xb2),()=>{const _0x440772=_0x50a700;this[_0x440772(0xaf)](_0x440772(0xb2));});}[_0xc87ec4(0x97)](){const _0x21a42e=_0xc87ec4;this[_0x21a42e(0x88)]['on'](_0x21a42e(0xa2),()=>{const _0x469a11=_0x21a42e;this[_0x469a11(0xaf)](_0x469a11(0xa2));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b9965=_0x1c2d;(function(_0x3deef8,_0xa57c4){const _0x188a6a=_0x1c2d,_0x14a9c2=_0x3deef8();while(!![]){try{const _0x2f9b58=-parseInt(_0x188a6a(0x196))/0x1*(parseInt(_0x188a6a(0x1a1))/0x2)+-parseInt(_0x188a6a(0x197))/0x3+-parseInt(_0x188a6a(0x1a6))/0x4+-parseInt(_0x188a6a(0x1ae))/0x5*(parseInt(_0x188a6a(0x195))/0x6)+-parseInt(_0x188a6a(0x1ac))/0x7+parseInt(_0x188a6a(0x1a5))/0x8*(-parseInt(_0x188a6a(0x1aa))/0x9)+parseInt(_0x188a6a(0x1b1))/0xa;if(_0x2f9b58===_0xa57c4)break;else _0x14a9c2['push'](_0x14a9c2['shift']());}catch(_0xf2a29e){_0x14a9c2['push'](_0x14a9c2['shift']());}}}(_0x32df,0x4ed6e));import{Command as _0x51192a}from'ckeditor5/src/core.js';import{Dialog as _0x4a4820}from'ckeditor5/src/ui.js';import _0x1c93c9 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xbe0f33}from'../utils/editingutils.js';function _0x32df(){const _0x5e4d31=['set','uploadcare.allowExternalImagesEditing','45CQrGKz','_isEditable','1407049JmniWs','refresh','5SgKkjc','editor','document','14580390ibstxD','bind','execute','getSelectedElement','169842zXXHup','218809UaAjoz','826527lrzsop','imageInline','model','imageEditController','requires','plugins','selection','imageBlock','get','isEnabled','2aHVoFt','isActive','element','config','617896ePmYiV','101184qWfUdc','unbind'];_0x32df=function(){return _0x5e4d31;};return _0x32df();}function _0x1c2d(_0x88b698,_0x1cf06c){const _0x32df4a=_0x32df();return _0x1c2d=function(_0x1c2d77,_0x41771c){_0x1c2d77=_0x1c2d77-0x193;let _0x340e11=_0x32df4a[_0x1c2d77];return _0x340e11;},_0x1c2d(_0x88b698,_0x1cf06c);}export default class J extends _0x51192a{[_0x2b9965(0x19a)];static get[_0x2b9965(0x19b)](){return[_0x4a4820];}[_0x2b9965(0x1ab)];constructor(_0x279d1a){const _0xea77e=_0x2b9965;super(_0x279d1a),this[_0xea77e(0x19a)]=void 0x0,this[_0xea77e(0x1ab)]=_0xbe0f33(_0x279d1a[_0xea77e(0x1a4)][_0xea77e(0x19f)](_0xea77e(0x1a9))||[]),this[_0xea77e(0x1a8)]({'isActive':!0x1});}[_0x2b9965(0x1ad)](){const _0x2320dc=_0x2b9965,_0x15c736=this[_0x2320dc(0x1af)][_0x2320dc(0x199)][_0x2320dc(0x1b0)][_0x2320dc(0x19d)][_0x2320dc(0x194)]();this[_0x2320dc(0x1a0)]=this[_0x2320dc(0x1ab)](_0x15c736);}[_0x2b9965(0x193)](){const _0x2a934e=_0x2b9965;this[_0x2a934e(0x19a)]&&(this[_0x2a934e(0x1a7)](_0x2a934e(0x1a2)),this[_0x2a934e(0x19a)]=void 0x0);const _0x5774d6=this[_0x2a934e(0x1af)][_0x2a934e(0x199)][_0x2a934e(0x1b0)][_0x2a934e(0x19d)][_0x2a934e(0x194)]();_0x5774d6&&(_0x5774d6['is'](_0x2a934e(0x1a3),_0x2a934e(0x19e))||_0x5774d6['is'](_0x2a934e(0x1a3),_0x2a934e(0x198)))&&(this[_0x2a934e(0x19a)]=new _0x1c93c9(this[_0x2a934e(0x1af)],this[_0x2a934e(0x1af)][_0x2a934e(0x19c)][_0x2a934e(0x19f)](_0x4a4820),_0x5774d6),this[_0x2a934e(0x1b2)](_0x2a934e(0x1a2))['to'](this[_0x2a934e(0x19a)],_0x2a934e(0x1a2)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26ca7c=_0x56f7;(function(_0x4cc3c5,_0x33aba9){const _0x1274ba=_0x56f7,_0x590521=_0x4cc3c5();while(!![]){try{const _0x3c9722=-parseInt(_0x1274ba(0x180))/0x1*(-parseInt(_0x1274ba(0x192))/0x2)+-parseInt(_0x1274ba(0x17e))/0x3*(parseInt(_0x1274ba(0x185))/0x4)+-parseInt(_0x1274ba(0x18b))/0x5*(parseInt(_0x1274ba(0x194))/0x6)+-parseInt(_0x1274ba(0x18a))/0x7+parseInt(_0x1274ba(0x18f))/0x8*(parseInt(_0x1274ba(0x18d))/0x9)+-parseInt(_0x1274ba(0x17f))/0xa*(-parseInt(_0x1274ba(0x189))/0xb)+parseInt(_0x1274ba(0x193))/0xc;if(_0x3c9722===_0x33aba9)break;else _0x590521['push'](_0x590521['shift']());}catch(_0x3e4232){_0x590521['push'](_0x590521['shift']());}}}(_0x9169,0x66e25));import{Plugin as _0x1fca15}from'ckeditor5/src/core.js';import{Notification as _0x3056cc}from'ckeditor5/src/ui.js';import _0x44f155 from'./uploadcareimageeditcommand.js';import _0x1b9d22 from'./uploadcareimagereplacecommand.js';function _0x9169(){const _0x3a0add=['isOfficialPlugin','ImageUtils','UploadcareImageEditEditing','32527ZFuCJF','3252305eTkwKK','7090uANpGm','pluginName','26559FRUBVZ','requires','424uObzCo','isPremiumPlugin','ImageEditing','1406SIdHCY','8754168mDhAqc','3270TOEtev','uploadcareImageReplace','2652DlnsWx','1010bMYTLP','1116rvfMif','add','uploadcareImageEdit','init','commands','1404GmdeIT'];_0x9169=function(){return _0x3a0add;};return _0x9169();}import _0x15b60c from'../uploadcareediting.js';function _0x56f7(_0x1b4a6b,_0x26bd4f){const _0x916966=_0x9169();return _0x56f7=function(_0x56f73d,_0x82d31b){_0x56f73d=_0x56f73d-0x17d;let _0x17130e=_0x916966[_0x56f73d];return _0x17130e;},_0x56f7(_0x1b4a6b,_0x26bd4f);}export default class g extends _0x1fca15{static get[_0x26ca7c(0x18c)](){const _0x2d18fc=_0x26ca7c;return _0x2d18fc(0x188);}static get[_0x26ca7c(0x18e)](){const _0x5de552=_0x26ca7c;return[_0x15b60c,_0x3056cc,_0x5de552(0x187),_0x5de552(0x191)];}static get[_0x26ca7c(0x186)](){return!0x0;}static get[_0x26ca7c(0x190)](){return!0x0;}[_0x26ca7c(0x183)](){const _0x3722e2=_0x26ca7c,{editor:_0xc9cf7b}=this;_0xc9cf7b[_0x3722e2(0x184)][_0x3722e2(0x181)](_0x3722e2(0x182),new _0x44f155(_0xc9cf7b)),_0xc9cf7b[_0x3722e2(0x184)][_0x3722e2(0x181)](_0x3722e2(0x17d),new _0x1b9d22(_0xc9cf7b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x24297b}from'ckeditor5/src/core.js';import{ButtonView as _0x24c78e}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x283e52}from'ckeditor5/src/icons.js';import{createElement as _0x4910c2}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 _0x24297b{['_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 _0x3ea78b=this['editor'];_0x3ea78b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2ebde4=>{const _0x50d4d5=_0x3ea78b['commands']['get']('uploadcareImageEdit'),_0x41da66=new _0x24c78e(_0x2ebde4),t=_0x2ebde4['t'];return _0x41da66['set']({'icon':_0x283e52,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x41da66['bind']('isEnabled')['to'](_0x50d4d5),_0x41da66['bind']('isOn')['to'](_0x50d4d5,'isActive'),this['listenTo'](_0x41da66,'execute',()=>{_0x3ea78b['execute']('uploadcareImageEdit'),_0x3ea78b['editing']['view']['focus']();}),_0x41da66;}),this['_initConfig']();}['_initConfig'](){const _0x36324c=_0x4910c2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x36324c),this['listenTo'](this['editor'],'destroy',()=>{_0x36324c['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f27dc=_0x20db;(function(_0x3369d1,_0x5c613c){const _0x531c30=_0x20db,_0x22e23a=_0x3369d1();while(!![]){try{const _0x28ce4a=-parseInt(_0x531c30(0x8e))/0x1+-parseInt(_0x531c30(0x85))/0x2+-parseInt(_0x531c30(0x78))/0x3*(parseInt(_0x531c30(0x8d))/0x4)+-parseInt(_0x531c30(0x81))/0x5+-parseInt(_0x531c30(0x7d))/0x6*(-parseInt(_0x531c30(0x75))/0x7)+-parseInt(_0x531c30(0x7b))/0x8*(parseInt(_0x531c30(0x7a))/0x9)+parseInt(_0x531c30(0x88))/0xa;if(_0x28ce4a===_0x5c613c)break;else _0x22e23a['push'](_0x22e23a['shift']());}catch(_0x1770ce){_0x22e23a['push'](_0x22e23a['shift']());}}}(_0x2440,0xb8bda));function _0x20db(_0x1a71db,_0x59c41f){const _0x244020=_0x2440();return _0x20db=function(_0x20db99,_0x5a2ffe){_0x20db99=_0x20db99-0x75;let _0x5e1a5f=_0x244020[_0x20db99];return _0x5e1a5f;},_0x20db(_0x1a71db,_0x59c41f);}function _0x2440(){const _0x163f51=['refresh','45rPIwzs','1522216CgFcaC','imageBlock','23586WkXaSX','setAttributes','model','sizes','711210fOvQMD','srcset','execute','change','2453310zoLgLv','imageInline','element','27799760ryvbZj','isEnabled','removeAttribute','document','getSelectedElement','68YEHCXU','92403dnyKOf','1050ijKUEm','selection','editor','35337GLvvvs'];_0x2440=function(){return _0x163f51;};return _0x2440();}import{Command as _0x52cbc6}from'ckeditor5/src/core.js';export default class O extends _0x52cbc6{[_0x3f27dc(0x79)](){const _0x55b30a=_0x3f27dc,_0x3d8f12=this[_0x55b30a(0x77)][_0x55b30a(0x7f)][_0x55b30a(0x8b)][_0x55b30a(0x76)][_0x55b30a(0x8c)]();this[_0x55b30a(0x89)]=Boolean(_0x3d8f12&&(_0x3d8f12['is'](_0x55b30a(0x87),_0x55b30a(0x7c))||_0x3d8f12['is'](_0x55b30a(0x87),_0x55b30a(0x86))));}[_0x3f27dc(0x83)](_0x558fa2){const _0x497072=_0x3f27dc,_0x255b12=this[_0x497072(0x77)][_0x497072(0x7f)][_0x497072(0x8b)][_0x497072(0x76)][_0x497072(0x8c)]();this[_0x497072(0x77)][_0x497072(0x7f)][_0x497072(0x84)](_0x5b0678=>{const _0x1403e3=_0x497072;_0x5b0678[_0x1403e3(0x7e)](_0x558fa2,_0x255b12),_0x5b0678[_0x1403e3(0x8a)](_0x1403e3(0x82),_0x255b12),_0x5b0678[_0x1403e3(0x8a)](_0x1403e3(0x80),_0x255b12);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x28292a=_0x482f;(function(_0x1e7ca3,_0x34de28){var _0x58987c=_0x482f,_0x9e6f1c=_0x1e7ca3();while(!![]){try{var _0x4a4555=-parseInt(_0x58987c(0xcb))/0x1+-parseInt(_0x58987c(0xca))/0x2+parseInt(_0x58987c(0xd5))/0x3*(-parseInt(_0x58987c(0xcc))/0x4)+parseInt(_0x58987c(0xd2))/0x5*(parseInt(_0x58987c(0xcf))/0x6)+parseInt(_0x58987c(0xcd))/0x7+-parseInt(_0x58987c(0xd1))/0x8*(parseInt(_0x58987c(0xd8))/0x9)+-parseInt(_0x58987c(0xd0))/0xa*(-parseInt(_0x58987c(0xd3))/0xb);if(_0x4a4555===_0x34de28)break;else _0x9e6f1c['push'](_0x9e6f1c['shift']());}catch(_0x112efe){_0x9e6f1c['push'](_0x9e6f1c['shift']());}}}(_0xc7e5,0x1de1d));function _0xc7e5(){var _0x32cd49=['createCollection','fire','true','focusCycler','focusTracker','410878cHbbEL','224107eCcBIE','116Gcpcnl','1287475lkJIXT','div','570AGuKRg','5846270ePsBXd','48NBUeeT','12100wsdXay','11KWUXNG','bindTemplate','25287PKrjyW','getFocusableElement','forwardCycle','303102HprSCx'];_0xc7e5=function(){return _0x32cd49;};return _0xc7e5();}import{FocusTracker as _0x3d22d3}from'ckeditor5/src/utils.js';import{View as _0x5dfa8f,FocusCycler as _0x2144d2}from'ckeditor5/src/ui.js';function _0x482f(_0x593a8c,_0x4b2d21){var _0xc7e5e2=_0xc7e5();return _0x482f=function(_0x482f31,_0xee92d4){_0x482f31=_0x482f31-0xc5;var _0x4c7b72=_0xc7e5e2[_0x482f31];return _0x4c7b72;},_0x482f(_0x593a8c,_0x4b2d21);}import'../../theme/uploadcare-form.css';export default class q extends _0x5dfa8f{[_0x28292a(0xc9)];[_0x28292a(0xc8)];constructor(_0x56b17e){var _0x4e7954=_0x28292a;super(_0x56b17e),this[_0x4e7954(0xc9)]=new _0x3d22d3(),this[_0x4e7954(0xc8)]=new _0x2144d2({'focusables':this[_0x4e7954(0xc5)](),'focusTracker':this[_0x4e7954(0xc9)]});}[_0x28292a(0xd6)](){var _0x24876d=_0x28292a;return{'tag':_0x24876d(0xce),'attributes':{'aria-hidden':_0x24876d(0xc7),'tabindex':'0'},'on':{'focus':this[_0x24876d(0xd4)]['to'](()=>{var _0xf55565=_0x24876d;this[_0xf55565(0xc8)][_0xf55565(0xc6)](_0xf55565(0xd7));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x32ab6c,_0x427f47){const _0x21663a=_0x9624,_0x2ceef7=_0x32ab6c();while(!![]){try{const _0xe0c268=parseInt(_0x21663a(0x150))/0x1*(-parseInt(_0x21663a(0x136))/0x2)+parseInt(_0x21663a(0x13e))/0x3*(-parseInt(_0x21663a(0x14b))/0x4)+-parseInt(_0x21663a(0x141))/0x5+-parseInt(_0x21663a(0x13b))/0x6*(parseInt(_0x21663a(0x140))/0x7)+-parseInt(_0x21663a(0x139))/0x8*(parseInt(_0x21663a(0x16a))/0x9)+-parseInt(_0x21663a(0x14d))/0xa+parseInt(_0x21663a(0x148))/0xb*(parseInt(_0x21663a(0x134))/0xc);if(_0xe0c268===_0x427f47)break;else _0x2ceef7['push'](_0x2ceef7['shift']());}catch(_0xb7c3ce){_0x2ceef7['push'](_0x2ceef7['shift']());}}}(_0xa112,0xbe546));function _0x9624(_0x40e42c,_0x589639){const _0xa112af=_0xa112();return _0x9624=function(_0x962435,_0x1b57ec){_0x962435=_0x962435-0x133;let _0xe7b5d7=_0xa112af[_0x962435];return _0xe7b5d7;},_0x9624(_0x40e42c,_0x589639);}import{global as _0x2e5cdf,DomEmitterMixin as _0x17e0a9}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x3e255e){const _0xc753e8=_0x9624,_0x3711bb=V(_0x3e255e);return _0xc58a48=>!(!_0xc58a48||!_0xc58a48['is'](_0xc753e8(0x149),_0xc753e8(0x145))&&!_0xc58a48['is'](_0xc753e8(0x149),_0xc753e8(0x144)))&&(!!_0xc58a48[_0xc753e8(0x152)](_0xc753e8(0x147))||!!_0xc58a48[_0xc753e8(0x152)](_0xc753e8(0x14e))&&_0x3711bb(_0xc58a48[_0xc753e8(0x16d)](_0xc753e8(0x14e))));}export function getImageUrls(_0x5646f8,_0x3bb7f3){const _0x1490d1=_0x9624,_0x3ce39e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x1490d1(0x13a)](_0x5b0edb=>_0x5b0edb<=_0x3bb7f3)[_0x1490d1(0x169)](_0x3c5c82=>_0x5646f8[_0x1490d1(0x162)](/\/$/,'')+_0x1490d1(0x151)+_0x3c5c82+_0x1490d1(0x16c)+_0x3c5c82+'w');return{'imageFallbackUrl':_0x5646f8,'imageSources':[{'srcset':_0x3ce39e[_0x1490d1(0x15a)](',\x20'),'sizes':_0x1490d1(0x143)+_0x3bb7f3+_0x1490d1(0x15b)+_0x3bb7f3+'px','type':_0x1490d1(0x167)}]};}function _0xa112(){const _0xaff142=['x/\x20','getAttribute','stopListening','aspect-ratio','2004TOpIzE','origin','3089338xbYLXl','document','viewToDom','576704jyATHG','filter','648azOtJS','editing','change','117sTZreY','get','20993HpurJZ','1458325hprBnq','ImageUtils','(max-width:\x20','imageInline','imageBlock','some','uploadcareImageId','268609WMSMUa','element','view','60232EjVnRI','mapper','4788070nNzXyo','src','toViewElement','1DuVAkh','/-/resize/','hasAttribute','image-processing','isArray','create','match','height','domConverter','baseURI','join','px)\x20100vw,\x20','removeClass','location','load','findViewImgElement','listenTo','addClass','replace','setStyle','window','function','plugins','image/webp','removeStyle','map','9arZOML','width'];_0xa112=function(){return _0xaff142;};return _0xa112();}export function getImageDimension(_0x1fb663,_0x1a6bf3,_0x3711d7){const _0x456138=_0x9624,_0x4e907b=_0x1fb663[_0x456138(0x156)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4e907b?parseInt(_0x4e907b[0x1],0xa):_0x1a6bf3,'height':_0x4e907b?parseInt(_0x4e907b[0x2],0xa):_0x3711d7};}export function showImageProcessingIndicator(_0x56bbfd,_0x2227fd){const _0x37aa58=_0x9624,_0x27f752=Object[_0x37aa58(0x155)](_0x17e0a9),_0x1e6a04=_0x56bbfd[_0x37aa58(0x166)][_0x37aa58(0x13f)](_0x37aa58(0x142)),_0x3027f8=_0x56bbfd[_0x37aa58(0x13c)][_0x37aa58(0x14c)][_0x37aa58(0x14f)](_0x2227fd),_0x842f62=_0x1e6a04[_0x37aa58(0x15f)](_0x3027f8),_0x404feb=_0x56bbfd[_0x37aa58(0x13c)][_0x37aa58(0x14a)][_0x37aa58(0x158)][_0x37aa58(0x138)](_0x842f62),_0x16a642=_0x2227fd[_0x37aa58(0x16d)](_0x37aa58(0x16b)),_0x238ef4=_0x2227fd[_0x37aa58(0x16d)](_0x37aa58(0x157)),_0x49ed45=_0x37aa58(0x153);_0x56bbfd[_0x37aa58(0x13c)][_0x37aa58(0x14a)][_0x37aa58(0x13d)](_0x23fe2d=>{const _0x1ceaeb=_0x37aa58;_0x23fe2d[_0x1ceaeb(0x161)](_0x49ed45,_0x3027f8),_0x23fe2d[_0x1ceaeb(0x163)](_0x1ceaeb(0x133),_0x16a642+'/'+_0x238ef4,_0x842f62);}),_0x27f752[_0x37aa58(0x160)](_0x404feb,_0x37aa58(0x15e),()=>{const _0x307a3e=_0x37aa58;_0x27f752[_0x307a3e(0x16e)](_0x404feb,_0x307a3e(0x15e)),_0x56bbfd[_0x307a3e(0x13c)][_0x307a3e(0x14a)][_0x307a3e(0x13d)](_0x2c2c98=>{const _0x27376f=_0x307a3e;_0x2c2c98[_0x27376f(0x15c)](_0x49ed45,_0x3027f8),_0x2c2c98[_0x27376f(0x168)](_0x27376f(0x133),_0x842f62);});});}function V(_0x25a8b1){const _0x484d54=_0x9624;if(Array[_0x484d54(0x154)](_0x25a8b1)){const _0x2616a1=_0x25a8b1[_0x484d54(0x169)](V);return _0x2dbcc2=>_0x2616a1[_0x484d54(0x146)](_0x4f0c99=>_0x4f0c99(_0x2dbcc2));}if(_0x484d54(0x135)==_0x25a8b1){const _0x207eed=_0x2e5cdf[_0x484d54(0x164)][_0x484d54(0x15d)][_0x484d54(0x135)];return _0x119ad3=>new URL(_0x119ad3,_0x2e5cdf[_0x484d54(0x137)][_0x484d54(0x159)])[_0x484d54(0x135)]==_0x207eed;}return _0x484d54(0x165)==typeof _0x25a8b1?_0x25a8b1:_0x25a8b1 instanceof RegExp?_0x4e94d1=>!(!_0x4e94d1[_0x484d54(0x156)](_0x25a8b1)&&!_0x4e94d1[_0x484d54(0x162)](/^https?:\/\//,'')[_0x484d54(0x156)](_0x25a8b1)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4b7e(_0x1c49fa,_0x59cfd1){var _0x4447ca=_0x4447();return _0x4b7e=function(_0x4b7ea8,_0xcc8ef7){_0x4b7ea8=_0x4b7ea8-0x1dc;var _0x202dff=_0x4447ca[_0x4b7ea8];return _0x202dff;},_0x4b7e(_0x1c49fa,_0x59cfd1);}(function(_0x1d4869,_0x3b1725){var _0x4327a3=_0x4b7e,_0xd8ffe8=_0x1d4869();while(!![]){try{var _0x2d3c4d=parseInt(_0x4327a3(0x1dc))/0x1*(parseInt(_0x4327a3(0x1e2))/0x2)+parseInt(_0x4327a3(0x1e1))/0x3*(-parseInt(_0x4327a3(0x1e3))/0x4)+-parseInt(_0x4327a3(0x1df))/0x5+parseInt(_0x4327a3(0x1e8))/0x6*(parseInt(_0x4327a3(0x1e0))/0x7)+-parseInt(_0x4327a3(0x1e7))/0x8+parseInt(_0x4327a3(0x1de))/0x9*(parseInt(_0x4327a3(0x1e4))/0xa)+parseInt(_0x4327a3(0x1e6))/0xb*(parseInt(_0x4327a3(0x1dd))/0xc);if(_0x2d3c4d===_0x3b1725)break;else _0xd8ffe8['push'](_0xd8ffe8['shift']());}catch(_0x3f281b){_0xd8ffe8['push'](_0xd8ffe8['shift']());}}}(_0x4447,0x3face));import{getAncestors as _0x428fd4}from'ckeditor5/src/utils.js';function _0x4447(){var _0x33acad=['includes','10875898baRxzf','3377808EPjDrd','1944ektZTa','target','246009zEPhhM','12ihYrnH','153WBukXH','1566995VFUYGx','2079CAvpsI','10383LZkUwN','2baWRgZ','472sWgkVN','43460ghKbgw'];_0x4447=function(){return _0x33acad;};return _0x4447();}export function isAncestor(_0x54ab98,_0x3db85a){var _0x401077=_0x4b7e;return _0x428fd4(_0x54ab98[_0x401077(0x1e9)])[_0x401077(0x1e5)](_0x3db85a);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5c2d35=_0x13de;function _0x13de(_0x21634f,_0x3f0028){var _0x24491a=_0x2449();return _0x13de=function(_0x13deec,_0x15ff6f){_0x13deec=_0x13deec-0xa3;var _0x2dbc0f=_0x24491a[_0x13deec];return _0x2dbc0f;},_0x13de(_0x21634f,_0x3f0028);}(function(_0x1db214,_0x367349){var _0x418dbf=_0x13de,_0x392f7d=_0x1db214();while(!![]){try{var _0x5b8ef0=parseInt(_0x418dbf(0xa3))/0x1*(parseInt(_0x418dbf(0xa8))/0x2)+-parseInt(_0x418dbf(0xad))/0x3+-parseInt(_0x418dbf(0xaa))/0x4+parseInt(_0x418dbf(0xa6))/0x5+parseInt(_0x418dbf(0xaf))/0x6*(-parseInt(_0x418dbf(0xae))/0x7)+parseInt(_0x418dbf(0xa9))/0x8+parseInt(_0x418dbf(0xa7))/0x9*(-parseInt(_0x418dbf(0xab))/0xa);if(_0x5b8ef0===_0x367349)break;else _0x392f7d['push'](_0x392f7d['shift']());}catch(_0x1b5f99){_0x392f7d['push'](_0x392f7d['shift']());}}}(_0x2449,0x78af0));function _0x2449(){var _0x30d82a=['424403YuqJXi','6CVCPdq','41761NuuiYh','auto','upload','4439485NfbzgC','153bkSMjx','22WTrCrG','7362616iVVfww','873128sINckI','379580CtfARj','getInfo','2547234VIxkRa'];_0x2449=function(){return _0x30d82a;};return _0x2449();}import{uploadFile as _0x2f0f13,info as _0x4efe57}from'@uploadcare/upload-client';export default class C{static[_0x5c2d35(0xa5)]({file:_0x273e48,publicKey:_0x2be9b4,signal:_0x1a184f,onProgress:_0x1b7cb1}){var _0x1b9c4f=_0x5c2d35;return _0x2f0f13(_0x273e48,{'publicKey':_0x2be9b4,'store':_0x1b9c4f(0xa4),'signal':_0x1a184f,'onProgress':_0x1b7cb1});}static[_0x5c2d35(0xac)](_0x52cb7c,_0x51b1e5){return _0x4efe57(_0x52cb7c,_0x51b1e5);}}
|