@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250524.0 → 0.0.0-nightly-20250525.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 _0x46abfd=_0x3240;(function(_0x786510,_0x1267b3){const _0xc26ff0=_0x3240,_0x168f1a=_0x786510();while(!![]){try{const _0x20c0fc=-parseInt(_0xc26ff0(0x17b))/0x1*(parseInt(_0xc26ff0(0x16b))/0x2)+-parseInt(_0xc26ff0(0x182))/0x3*(-parseInt(_0xc26ff0(0x197))/0x4)+parseInt(_0xc26ff0(0x186))/0x5*(-parseInt(_0xc26ff0(0x16c))/0x6)+-parseInt(_0xc26ff0(0x18d))/0x7*(-parseInt(_0xc26ff0(0x169))/0x8)+-parseInt(_0xc26ff0(0x196))/0x9+parseInt(_0xc26ff0(0x16d))/0xa*(parseInt(_0xc26ff0(0x191))/0xb)+parseInt(_0xc26ff0(0x195))/0xc;if(_0x20c0fc===_0x1267b3)break;else _0x168f1a['push'](_0x168f1a['shift']());}catch(_0x4169e7){_0x168f1a['push'](_0x168f1a['shift']());}}}(_0x1cb0,0xbceed));import{View as _0x2619e3}from'ckeditor5/src/ui.js';import _0x31dd31 from'./uploadcareimageeditformloadingview.js';import _0x3208e6 from'./uploadcareimageeditformerrorview.js';import _0x4b41a7 from'./uploadcareimageeditformeditingview.js';function _0x1cb0(){const _0x38254d=['observe','11mcDFNs','_focusableView','target','retry','15628692eSwMaV','3218670rerpKT','27452rpmEUs','_loadingView','cancel','createCollection','apply','addMany','change:status','setTemplate','_setView','nodeName','clear','39552NWIUOa','set','1851722sKKmAg','18iuVlGd','3982140aDahVm','_items','error','_waitForImageEditorComponent','querySelector','toLowerCase','length','filter','uploading','render','uc-cloud-image-editor','fire','focus','_errorView','1ArcOwR','ck-uploadcare-form','element','_editingView','div','status','_addErrorViewListeners','6VlsxHC','ready','getFocusableElement','cdnUrl','1018605SPudNk','_addUploadcareImageEditorListeners','addedNodes','disconnect','once','detail','ck-reset_all-excluded','1351znNnlQ','add','addEventListener'];_0x1cb0=function(){return _0x38254d;};return _0x1cb0();}import _0x1334db from'../../utils/dialogfocusmanagerview.js';function _0x3240(_0x535acd,_0x10ff86){const _0x1cb0ab=_0x1cb0();return _0x3240=function(_0x3240f6,_0x456aec){_0x3240f6=_0x3240f6-0x168;let _0x555f99=_0x1cb0ab[_0x3240f6];return _0x555f99;},_0x3240(_0x535acd,_0x10ff86);}import'../../../theme/uploadcare-form.css';export default class Z extends _0x1334db{[_0x46abfd(0x16e)];[_0x46abfd(0x198)];[_0x46abfd(0x17a)];[_0x46abfd(0x17e)];[_0x46abfd(0x192)];constructor(_0x488a1a,_0x4a135c,_0x17640c){const _0x4b16a6=_0x46abfd;super(_0x488a1a),this[_0x4b16a6(0x16e)]=this[_0x4b16a6(0x19a)](),this[_0x4b16a6(0x198)]=new _0x31dd31(_0x488a1a),this[_0x4b16a6(0x17a)]=new _0x3208e6(_0x488a1a),this[_0x4b16a6(0x17e)]=new _0x4b41a7(_0x488a1a,_0x17640c),this[_0x4b16a6(0x192)]=new _0x2619e3(_0x488a1a),this[_0x4b16a6(0x192)][_0x4b16a6(0x19e)](this[_0x4b16a6(0x184)]()),this[_0x4b16a6(0x16a)](_0x4b16a6(0x180),_0x4a135c),this[_0x4b16a6(0x19e)]({'tag':_0x4b16a6(0x17f),'attributes':{'class':['ck',_0x4b16a6(0x18c),_0x4b16a6(0x17c)],'tabindex':'-1'},'children':this[_0x4b16a6(0x16e)]}),this[_0x4b16a6(0x19f)](),this[_0x4b16a6(0x18a)](_0x4b16a6(0x176),()=>{const _0x4868b3=_0x4b16a6;this[_0x4868b3(0x170)](this[_0x4868b3(0x17d)],_0x3a9116=>{const _0x33a4a2=_0x4868b3;this[_0x33a4a2(0x187)](_0x3a9116);});}),this['on'](_0x4b16a6(0x19d),()=>{const _0x7f7916=_0x4b16a6;this[_0x7f7916(0x19f)]();}),this[_0x4b16a6(0x181)]();}[_0x46abfd(0x179)](){const _0x59dbbb=_0x46abfd;this[_0x59dbbb(0x17d)][_0x59dbbb(0x179)]();}[_0x46abfd(0x19f)](){const _0x4706f9=_0x46abfd;switch(this[_0x4706f9(0x16e)][_0x4706f9(0x168)](),this[_0x4706f9(0x180)]){case _0x4706f9(0x175):this[_0x4706f9(0x16e)][_0x4706f9(0x18e)](this[_0x4706f9(0x198)]);break;case _0x4706f9(0x16f):this[_0x4706f9(0x16e)][_0x4706f9(0x18e)](this[_0x4706f9(0x17a)]);break;case _0x4706f9(0x183):this[_0x4706f9(0x16e)][_0x4706f9(0x19c)]([this[_0x4706f9(0x17e)],this[_0x4706f9(0x192)]]);}}[_0x46abfd(0x170)](_0x1ad031,_0x58ea25){const _0x5cd5e6=_0x46abfd,_0x272bb8=_0x5cd5e6(0x177),_0x24778e=_0x1ad031[_0x5cd5e6(0x171)](_0x272bb8);if(_0x24778e)return _0x58ea25(_0x24778e);const _0x1f2544=new MutationObserver(_0x49202f=>{const _0x41406c=_0x5cd5e6,_0x4564e8=_0x49202f[_0x41406c(0x174)](_0x48deee=>_0x48deee[_0x41406c(0x193)]===_0x1ad031&&_0x48deee[_0x41406c(0x188)][_0x41406c(0x173)]>0x0&&_0x48deee[_0x41406c(0x188)][0x0][_0x41406c(0x1a0)][_0x41406c(0x172)]()===_0x272bb8);_0x4564e8[_0x41406c(0x173)]&&(_0x1f2544[_0x41406c(0x189)](),_0x58ea25(_0x4564e8[0x0][_0x41406c(0x188)][0x0]));});_0x1f2544[_0x5cd5e6(0x190)](_0x1ad031,{'childList':!0x0,'subtree':!0x0});}[_0x46abfd(0x187)](_0x579367){const _0x1d6179=_0x46abfd;_0x579367[_0x1d6179(0x18f)](_0x1d6179(0x19b),_0x3a92d8=>{const _0x301e72=_0x1d6179;this[_0x301e72(0x178)](_0x301e72(0x19b),{'imageSrc':_0x3a92d8[_0x301e72(0x18b)][_0x301e72(0x185)]});}),_0x579367[_0x1d6179(0x18f)](_0x1d6179(0x199),()=>{const _0x5d8ce0=_0x1d6179;this[_0x5d8ce0(0x178)](_0x5d8ce0(0x199));});}[_0x46abfd(0x181)](){const _0x4ea30e=_0x46abfd;this[_0x4ea30e(0x17a)]['on'](_0x4ea30e(0x194),()=>{const _0x5cddea=_0x4ea30e;this[_0x5cddea(0x178)](_0x5cddea(0x194));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x324eb2=_0x1327;(function(_0x3b866f,_0x18fb26){const _0x1f3208=_0x1327,_0x419806=_0x3b866f();while(!![]){try{const _0x35a5ab=parseInt(_0x1f3208(0x8d))/0x1+-parseInt(_0x1f3208(0x8f))/0x2*(-parseInt(_0x1f3208(0x86))/0x3)+parseInt(_0x1f3208(0x8e))/0x4*(-parseInt(_0x1f3208(0x81))/0x5)+-parseInt(_0x1f3208(0x92))/0x6+parseInt(_0x1f3208(0x7c))/0x7*(-parseInt(_0x1f3208(0x97))/0x8)+parseInt(_0x1f3208(0x87))/0x9*(-parseInt(_0x1f3208(0x82))/0xa)+parseInt(_0x1f3208(0x89))/0xb;if(_0x35a5ab===_0x18fb26)break;else _0x419806['push'](_0x419806['shift']());}catch(_0x199df0){_0x419806['push'](_0x419806['shift']());}}}(_0x407a,0x7ddb9));import{Command as _0x3914a9}from'ckeditor5/src/core.js';function _0x1327(_0x5ee6f1,_0x192bf1){const _0x407ac5=_0x407a();return _0x1327=function(_0x132797,_0x312f55){_0x132797=_0x132797-0x7a;let _0x3604b6=_0x407ac5[_0x132797];return _0x3604b6;},_0x1327(_0x5ee6f1,_0x192bf1);}import{Dialog as _0x398113}from'ckeditor5/src/ui.js';import _0xbe4f82 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xa9a3d0}from'../utils/editingutils.js';export default class V extends _0x3914a9{[_0x324eb2(0x95)];static get[_0x324eb2(0x7b)](){return[_0x398113];}[_0x324eb2(0x84)];constructor(_0x3e8603){const _0x4edd99=_0x324eb2;super(_0x3e8603),this[_0x4edd99(0x95)]=void 0x0,this[_0x4edd99(0x84)]=_0xa9a3d0(_0x3e8603[_0x4edd99(0x98)][_0x4edd99(0x93)](_0x4edd99(0x8a))||[]),this[_0x4edd99(0x83)]({'isActive':!0x1});}[_0x324eb2(0x8c)](){const _0x5364ef=_0x324eb2,_0x415657=this[_0x5364ef(0x90)][_0x5364ef(0x85)][_0x5364ef(0x96)][_0x5364ef(0x91)][_0x5364ef(0x99)]();this[_0x5364ef(0x80)]=this[_0x5364ef(0x84)](_0x415657);}[_0x324eb2(0x88)](){const _0x5a09b9=_0x324eb2;this[_0x5a09b9(0x95)]&&(this[_0x5a09b9(0x7e)](_0x5a09b9(0x7f)),this[_0x5a09b9(0x95)]=void 0x0);const _0xdf3c65=this[_0x5a09b9(0x90)][_0x5a09b9(0x85)][_0x5a09b9(0x96)][_0x5a09b9(0x91)][_0x5a09b9(0x99)]();_0xdf3c65&&(_0xdf3c65['is'](_0x5a09b9(0x7d),_0x5a09b9(0x8b))||_0xdf3c65['is'](_0x5a09b9(0x7d),_0x5a09b9(0x7a)))&&(this[_0x5a09b9(0x95)]=new _0xbe4f82(this[_0x5a09b9(0x90)],this[_0x5a09b9(0x90)][_0x5a09b9(0x94)][_0x5a09b9(0x93)](_0x398113),_0xdf3c65),this[_0x5a09b9(0x9a)](_0x5a09b9(0x7f))['to'](this[_0x5a09b9(0x95)],_0x5a09b9(0x7f)));}}function _0x407a(){const _0x529e44=['isEnabled','67345nXEDgf','1983880GEIXvn','set','_isEditable','model','3DIIFzG','45iBwJwl','execute','24349457LvhoDn','uploadcare.allowExternalImagesEditing','imageBlock','refresh','803687wbpiAs','104MDYVZs','661266EolngQ','editor','selection','5137776NqcjIq','get','plugins','imageEditController','document','8McVrWR','config','getSelectedElement','bind','imageInline','requires','4437748oZhCle','element','unbind','isActive'];_0x407a=function(){return _0x529e44;};return _0x407a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x277987=_0x9087;(function(_0x21894,_0x4df5e3){const _0x875b9d=_0x9087,_0x535328=_0x21894();while(!![]){try{const _0x5eff15=parseInt(_0x875b9d(0x130))/0x1+parseInt(_0x875b9d(0x131))/0x2*(-parseInt(_0x875b9d(0x13a))/0x3)+-parseInt(_0x875b9d(0x12d))/0x4+parseInt(_0x875b9d(0x139))/0x5*(parseInt(_0x875b9d(0x126))/0x6)+parseInt(_0x875b9d(0x137))/0x7*(-parseInt(_0x875b9d(0x132))/0x8)+-parseInt(_0x875b9d(0x138))/0x9+-parseInt(_0x875b9d(0x127))/0xa*(-parseInt(_0x875b9d(0x12a))/0xb);if(_0x5eff15===_0x4df5e3)break;else _0x535328['push'](_0x535328['shift']());}catch(_0x4c0e67){_0x535328['push'](_0x535328['shift']());}}}(_0x279c,0x79980));import{Plugin as _0x30e476}from'ckeditor5/src/core.js';function _0x279c(){const _0x2d24c4=['UploadcareImageEditEditing','6SwflBR','10vqPsCQ','add','isPremiumPlugin','22209209QTaJoK','uploadcareImageReplace','ImageEditing','2221804XdgJpV','requires','uploadcareImageEdit','353154ixwTWj','1198ZSqpoT','424jcGxfB','init','isOfficialPlugin','commands','pluginName','93009JaFINm','1241037ZWTYqM','2501995VhlfFE','4893nNIflF','ImageUtils'];_0x279c=function(){return _0x2d24c4;};return _0x279c();}import{Notification as _0x3ead33}from'ckeditor5/src/ui.js';import _0x126328 from'./uploadcareimageeditcommand.js';import _0x8b85bb from'./uploadcareimagereplacecommand.js';function _0x9087(_0x17161f,_0x27633d){const _0x279ccd=_0x279c();return _0x9087=function(_0x9087f6,_0x37e7ef){_0x9087f6=_0x9087f6-0x125;let _0x5972e6=_0x279ccd[_0x9087f6];return _0x5972e6;},_0x9087(_0x17161f,_0x27633d);}import _0x1ff3c8 from'../uploadcareediting.js';export default class g extends _0x30e476{static get[_0x277987(0x136)](){const _0x4bbfbc=_0x277987;return _0x4bbfbc(0x125);}static get[_0x277987(0x12e)](){const _0x1baa72=_0x277987;return[_0x1ff3c8,_0x3ead33,_0x1baa72(0x13b),_0x1baa72(0x12c)];}static get[_0x277987(0x134)](){return!0x0;}static get[_0x277987(0x129)](){return!0x0;}[_0x277987(0x133)](){const _0x1b0efc=_0x277987,{editor:_0x4e2a59}=this;_0x4e2a59[_0x1b0efc(0x135)][_0x1b0efc(0x128)](_0x1b0efc(0x12f),new _0x126328(_0x4e2a59)),_0x4e2a59[_0x1b0efc(0x135)][_0x1b0efc(0x128)](_0x1b0efc(0x12b),new _0x8b85bb(_0x4e2a59));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x514cab}from'ckeditor5/src/core.js';import{ButtonView as _0x1622e6}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x48f66c}from'ckeditor5/src/icons.js';import{createElement as _0x1befbe}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 _0x514cab{['_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 _0x4bf524=this['editor'];_0x4bf524['ui']['componentFactory']['add']('uploadcareImageEdit',_0x475cfe=>{const _0x571047=_0x4bf524['commands']['get']('uploadcareImageEdit'),_0x332ed8=new _0x1622e6(_0x475cfe),t=_0x475cfe['t'];return _0x332ed8['set']({'icon':_0x48f66c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x332ed8['bind']('isEnabled')['to'](_0x571047),_0x332ed8['bind']('isOn')['to'](_0x571047,'isActive'),this['listenTo'](_0x332ed8,'execute',()=>{_0x4bf524['execute']('uploadcareImageEdit'),_0x4bf524['editing']['view']['focus']();}),_0x332ed8;}),this['_initConfig']();}['_initConfig'](){const _0x5a8766=_0x1befbe(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5a8766),this['listenTo'](this['editor'],'destroy',()=>{_0x5a8766['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1233c3=_0x2a9d;(function(_0x311f7c,_0x4c126b){const _0xa8db10=_0x2a9d,_0x3242ef=_0x311f7c();while(!![]){try{const _0x3332d5=-parseInt(_0xa8db10(0x1d5))/0x1+-parseInt(_0xa8db10(0x1cc))/0x2+-parseInt(_0xa8db10(0x1da))/0x3*(parseInt(_0xa8db10(0x1c6))/0x4)+parseInt(_0xa8db10(0x1d6))/0x5*(-parseInt(_0xa8db10(0x1d3))/0x6)+parseInt(_0xa8db10(0x1d2))/0x7*(-parseInt(_0xa8db10(0x1c1))/0x8)+parseInt(_0xa8db10(0x1ce))/0x9*(-parseInt(_0xa8db10(0x1c2))/0xa)+-parseInt(_0xa8db10(0x1d0))/0xb*(-parseInt(_0xa8db10(0x1c7))/0xc);if(_0x3332d5===_0x4c126b)break;else _0x3242ef['push'](_0x3242ef['shift']());}catch(_0x3497ae){_0x3242ef['push'](_0x3242ef['shift']());}}}(_0x2d1d,0xd49ab));import{Command as _0x10815f}from'ckeditor5/src/core.js';export default class X extends _0x10815f{[_0x1233c3(0x1bf)](){const _0x7a12bc=_0x1233c3,_0x1a1362=this[_0x7a12bc(0x1c5)][_0x7a12bc(0x1d9)][_0x7a12bc(0x1d4)][_0x7a12bc(0x1cf)][_0x7a12bc(0x1d1)]();this[_0x7a12bc(0x1c4)]=Boolean(_0x1a1362&&(_0x1a1362['is'](_0x7a12bc(0x1c3),_0x7a12bc(0x1d8))||_0x1a1362['is'](_0x7a12bc(0x1c3),_0x7a12bc(0x1cd))));}[_0x1233c3(0x1c8)](_0xe5c5d5){const _0x3f58f4=_0x1233c3,_0x332483=this[_0x3f58f4(0x1c5)][_0x3f58f4(0x1d9)][_0x3f58f4(0x1d4)][_0x3f58f4(0x1cf)][_0x3f58f4(0x1d1)]();this[_0x3f58f4(0x1c5)][_0x3f58f4(0x1d9)][_0x3f58f4(0x1cb)](_0x43ce4f=>{const _0x35b8a4=_0x3f58f4;_0x43ce4f[_0x35b8a4(0x1ca)](_0xe5c5d5,_0x332483),_0x43ce4f[_0x35b8a4(0x1d7)](_0x35b8a4(0x1c0),_0x332483),_0x43ce4f[_0x35b8a4(0x1d7)](_0x35b8a4(0x1c9),_0x332483);});}}function _0x2a9d(_0x36780b,_0x3cac26){const _0x2d1d70=_0x2d1d();return _0x2a9d=function(_0x2a9ddb,_0x279e11){_0x2a9ddb=_0x2a9ddb-0x1bf;let _0x42798d=_0x2d1d70[_0x2a9ddb];return _0x42798d;},_0x2a9d(_0x36780b,_0x3cac26);}function _0x2d1d(){const _0x65ba72=['editor','35348oFOQjz','12GeQJvd','execute','sizes','setAttributes','change','1322470xOvCvN','imageInline','19719kWrIBB','selection','52883831lTuqlX','getSelectedElement','1757pDzAUb','751230AkVJVg','document','981094fqkygc','5VKmcog','removeAttribute','imageBlock','model','276HvHRPK','refresh','srcset','20392AoRPEi','3270FzBrIG','element','isEnabled'];_0x2d1d=function(){return _0x65ba72;};return _0x2d1d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x22232b=_0x5686;(function(_0x414d76,_0x50e03b){var _0x1ae05d=_0x5686,_0x75b45f=_0x414d76();while(!![]){try{var _0x346b7f=-parseInt(_0x1ae05d(0x11e))/0x1*(-parseInt(_0x1ae05d(0x121))/0x2)+parseInt(_0x1ae05d(0x120))/0x3+-parseInt(_0x1ae05d(0x117))/0x4+-parseInt(_0x1ae05d(0x124))/0x5+-parseInt(_0x1ae05d(0x11b))/0x6+parseInt(_0x1ae05d(0x122))/0x7*(-parseInt(_0x1ae05d(0x11a))/0x8)+-parseInt(_0x1ae05d(0x114))/0x9*(-parseInt(_0x1ae05d(0x126))/0xa);if(_0x346b7f===_0x50e03b)break;else _0x75b45f['push'](_0x75b45f['shift']());}catch(_0x3dfb52){_0x75b45f['push'](_0x75b45f['shift']());}}}(_0x4214,0x46240));import{FocusTracker as _0x3f3473}from'ckeditor5/src/utils.js';function _0x4214(){var _0x25ed67=['div','14192ksBJIg','763974CpLNEA','focusTracker','createCollection','1fJxxRk','true','1606404FJVxgI','928976qaUjVc','1421lcixpR','forwardCycle','2182120HOimzy','fire','10BdsjpV','2237967brBYjm','focusCycler','getFocusableElement','149792zFBSwA','bindTemplate'];_0x4214=function(){return _0x25ed67;};return _0x4214();}function _0x5686(_0x5d3648,_0x5340ac){var _0x421424=_0x4214();return _0x5686=function(_0x5686d0,_0x292c81){_0x5686d0=_0x5686d0-0x114;var _0x251839=_0x421424[_0x5686d0];return _0x251839;},_0x5686(_0x5d3648,_0x5340ac);}import{View as _0x1bbfa1,FocusCycler as _0x24d27e}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x1bbfa1{[_0x22232b(0x11c)];[_0x22232b(0x115)];constructor(_0x245fb8){var _0xf71122=_0x22232b;super(_0x245fb8),this[_0xf71122(0x11c)]=new _0x3f3473(),this[_0xf71122(0x115)]=new _0x24d27e({'focusables':this[_0xf71122(0x11d)](),'focusTracker':this[_0xf71122(0x11c)]});}[_0x22232b(0x116)](){var _0x199799=_0x22232b;return{'tag':_0x199799(0x119),'attributes':{'aria-hidden':_0x199799(0x11f),'tabindex':'0'},'on':{'focus':this[_0x199799(0x118)]['to'](()=>{var _0x49d356=_0x199799;this[_0x49d356(0x115)][_0x49d356(0x125)](_0x49d356(0x123));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1653(_0x5e8a84,_0x43efe2){const _0x7a90b2=_0x7a90();return _0x1653=function(_0x165362,_0x3af24c){_0x165362=_0x165362-0x1ba;let _0x228600=_0x7a90b2[_0x165362];return _0x228600;},_0x1653(_0x5e8a84,_0x43efe2);}(function(_0x12ed62,_0xcd5ef5){const _0x5aa826=_0x1653,_0x177815=_0x12ed62();while(!![]){try{const _0x2130de=-parseInt(_0x5aa826(0x1e9))/0x1*(parseInt(_0x5aa826(0x1e7))/0x2)+parseInt(_0x5aa826(0x1e6))/0x3*(-parseInt(_0x5aa826(0x1c2))/0x4)+parseInt(_0x5aa826(0x1d5))/0x5+parseInt(_0x5aa826(0x1c9))/0x6*(-parseInt(_0x5aa826(0x1d6))/0x7)+parseInt(_0x5aa826(0x1ec))/0x8*(parseInt(_0x5aa826(0x1e1))/0x9)+parseInt(_0x5aa826(0x1da))/0xa+parseInt(_0x5aa826(0x1bb))/0xb;if(_0x2130de===_0xcd5ef5)break;else _0x177815['push'](_0x177815['shift']());}catch(_0x21bff7){_0x177815['push'](_0x177815['shift']());}}}(_0x7a90,0x78392));import{global as _0x5496a3,DomEmitterMixin as _0x4e92de}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x36d13c){const _0x517113=_0x1653,_0x3e806b=R(_0x36d13c);return _0x187517=>!(!_0x187517||!_0x187517['is'](_0x517113(0x1cc),_0x517113(0x1de))&&!_0x187517['is'](_0x517113(0x1cc),_0x517113(0x1d7)))&&(!!_0x187517[_0x517113(0x1e0)](_0x517113(0x1ef))||!!_0x187517[_0x517113(0x1e0)](_0x517113(0x1bd))&&_0x3e806b(_0x187517[_0x517113(0x1bc)](_0x517113(0x1bd))));}export function getImageUrls(_0x13450d,_0xe0594f){const _0x481bf6=_0x1653,_0x4f5d36=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x481bf6(0x1be)](_0x22f508=>_0x22f508<=_0xe0594f)[_0x481bf6(0x1d9)](_0xb95efe=>_0x13450d[_0x481bf6(0x1df)](/\/$/,'')+_0x481bf6(0x1c0)+_0xb95efe+_0x481bf6(0x1c1)+_0xb95efe+'w');return{'imageFallbackUrl':_0x13450d,'imageSources':[{'srcset':_0x4f5d36[_0x481bf6(0x1dc)](',\x20'),'sizes':_0x481bf6(0x1ed)+_0xe0594f+_0x481bf6(0x1c7)+_0xe0594f+'px','type':_0x481bf6(0x1cd)}]};}export function getImageDimension(_0x32a07a,_0x1f4be2,_0x5ef411){const _0x2d7a09=_0x1653,_0x269d2b=_0x32a07a[_0x2d7a09(0x1ce)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x269d2b?parseInt(_0x269d2b[0x1],0xa):_0x1f4be2,'height':_0x269d2b?parseInt(_0x269d2b[0x2],0xa):_0x5ef411};}function _0x7a90(){const _0x196c75=['isArray','2806050hyzvFQ','5663FjRmWL','imageInline','create','map','3262970vGQqgo','editing','join','removeStyle','imageBlock','replace','hasAttribute','203121AlHHiW','domConverter','get','viewToDom','load','2055lMkHYh','8yKlVIr','ImageUtils','66739xNWxrl','setStyle','mapper','72zUzrdB','(max-width:\x20','findViewImgElement','uploadcareImageId','plugins','aspect-ratio','image-processing','window','width','height','5669169NiDHKZ','getAttribute','src','filter','document','/-/resize/','x/\x20','796aLxtcG','change','location','stopListening','addClass','px)\x20100vw,\x20','removeClass','5268vkmrOZ','baseURI','toViewElement','element','image/webp','match','origin','listenTo','some','function','view'];_0x7a90=function(){return _0x196c75;};return _0x7a90();}export function showImageProcessingIndicator(_0x51726a,_0xa5e109){const _0x3241da=_0x1653,_0x8df0a6=Object[_0x3241da(0x1d8)](_0x4e92de),_0x5dd3fa=_0x51726a[_0x3241da(0x1f0)][_0x3241da(0x1e3)](_0x3241da(0x1e8)),_0x3836cb=_0x51726a[_0x3241da(0x1db)][_0x3241da(0x1eb)][_0x3241da(0x1cb)](_0xa5e109),_0x23133d=_0x5dd3fa[_0x3241da(0x1ee)](_0x3836cb),_0xdab192=_0x51726a[_0x3241da(0x1db)][_0x3241da(0x1d3)][_0x3241da(0x1e2)][_0x3241da(0x1e4)](_0x23133d),_0x19bdfe=_0xa5e109[_0x3241da(0x1bc)](_0x3241da(0x1f4)),_0xc367c9=_0xa5e109[_0x3241da(0x1bc)](_0x3241da(0x1ba)),_0x3a1614=_0x3241da(0x1f2);_0x51726a[_0x3241da(0x1db)][_0x3241da(0x1d3)][_0x3241da(0x1c3)](_0x3f8952=>{const _0x1e2036=_0x3241da;_0x3f8952[_0x1e2036(0x1c6)](_0x3a1614,_0x3836cb),_0x3f8952[_0x1e2036(0x1ea)](_0x1e2036(0x1f1),_0x19bdfe+'/'+_0xc367c9,_0x23133d);}),_0x8df0a6[_0x3241da(0x1d0)](_0xdab192,_0x3241da(0x1e5),()=>{const _0x34d033=_0x3241da;_0x8df0a6[_0x34d033(0x1c5)](_0xdab192,_0x34d033(0x1e5)),_0x51726a[_0x34d033(0x1db)][_0x34d033(0x1d3)][_0x34d033(0x1c3)](_0x4933fa=>{const _0x4b6278=_0x34d033;_0x4933fa[_0x4b6278(0x1c8)](_0x3a1614,_0x3836cb),_0x4933fa[_0x4b6278(0x1dd)](_0x4b6278(0x1f1),_0x23133d);});});}function R(_0x5595df){const _0x96d40b=_0x1653;if(Array[_0x96d40b(0x1d4)](_0x5595df)){const _0x5ae36f=_0x5595df[_0x96d40b(0x1d9)](R);return _0x3b686d=>_0x5ae36f[_0x96d40b(0x1d1)](_0x81049d=>_0x81049d(_0x3b686d));}if(_0x96d40b(0x1cf)==_0x5595df){const _0x1d5c66=_0x5496a3[_0x96d40b(0x1f3)][_0x96d40b(0x1c4)][_0x96d40b(0x1cf)];return _0x52e480=>new URL(_0x52e480,_0x5496a3[_0x96d40b(0x1bf)][_0x96d40b(0x1ca)])[_0x96d40b(0x1cf)]==_0x1d5c66;}return _0x96d40b(0x1d2)==typeof _0x5595df?_0x5595df:_0x5595df instanceof RegExp?_0x51a8f2=>!(!_0x51a8f2[_0x96d40b(0x1ce)](_0x5595df)&&!_0x51a8f2[_0x96d40b(0x1df)](/^https?:\/\//,'')[_0x96d40b(0x1ce)](_0x5595df)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3123(){var _0x5ad9bc=['58541fDNMEc','14hjXrNw','includes','1356550OdZVmu','2167104UuVJFp','7492541NBASKT','16812477YNrCPh','6slMufX','1284uhYsSv','target','290540HQdqeS','891lqtfZA','4722kOOoca'];_0x3123=function(){return _0x5ad9bc;};return _0x3123();}(function(_0x120a3d,_0x6e55e2){var _0x891708=_0x57da,_0x4091ec=_0x120a3d();while(!![]){try{var _0x454186=parseInt(_0x891708(0x1ea))/0x1*(parseInt(_0x891708(0x1eb))/0x2)+-parseInt(_0x891708(0x1e9))/0x3*(-parseInt(_0x891708(0x1e5))/0x4)+-parseInt(_0x891708(0x1ed))/0x5+-parseInt(_0x891708(0x1e4))/0x6*(-parseInt(_0x891708(0x1ef))/0x7)+-parseInt(_0x891708(0x1ee))/0x8+parseInt(_0x891708(0x1e3))/0x9+-parseInt(_0x891708(0x1e7))/0xa*(parseInt(_0x891708(0x1e8))/0xb);if(_0x454186===_0x6e55e2)break;else _0x4091ec['push'](_0x4091ec['shift']());}catch(_0x1104d6){_0x4091ec['push'](_0x4091ec['shift']());}}}(_0x3123,0xe9dbd));function _0x57da(_0x1617bc,_0x30d142){var _0x3123da=_0x3123();return _0x57da=function(_0x57da1b,_0x5dc522){_0x57da1b=_0x57da1b-0x1e3;var _0x67100a=_0x3123da[_0x57da1b];return _0x67100a;},_0x57da(_0x1617bc,_0x30d142);}import{getAncestors as _0x15b354}from'ckeditor5/src/utils.js';export function isAncestor(_0x16598d,_0x1130e4){var _0x39c4d8=_0x57da;return _0x15b354(_0x16598d[_0x39c4d8(0x1e6)])[_0x39c4d8(0x1ec)](_0x1130e4);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x1b8f2e=_0x25eb;(function(_0x5a5b37,_0x13aa02){var _0x262743=_0x25eb,_0x163e44=_0x5a5b37();while(!![]){try{var _0x1f7150=-parseInt(_0x262743(0x95))/0x1+-parseInt(_0x262743(0x91))/0x2*(parseInt(_0x262743(0x9b))/0x3)+-parseInt(_0x262743(0x98))/0x4+-parseInt(_0x262743(0x92))/0x5*(parseInt(_0x262743(0x94))/0x6)+-parseInt(_0x262743(0x99))/0x7+parseInt(_0x262743(0x96))/0x8*(parseInt(_0x262743(0x9a))/0x9)+parseInt(_0x262743(0x9d))/0xa*(parseInt(_0x262743(0x97))/0xb);if(_0x1f7150===_0x13aa02)break;else _0x163e44['push'](_0x163e44['shift']());}catch(_0x18411d){_0x163e44['push'](_0x163e44['shift']());}}}(_0x1707,0x44d74));function _0x25eb(_0x53201f,_0x35ee7a){var _0x17076c=_0x1707();return _0x25eb=function(_0x25eb48,_0x28d0ac){_0x25eb48=_0x25eb48-0x90;var _0x5c60a5=_0x17076c[_0x25eb48];return _0x5c60a5;},_0x25eb(_0x53201f,_0x35ee7a);}function _0x1707(){var _0x529905=['auto','6FhYaCz','210733xMAcAD','1528GtOTFe','4973353USkNio','767248luHQgd','3054772IFXoUB','11619Toelkp','3AaEKdZ','getInfo','30cvUErq','upload','782006uhKksR','455170dfcuKU'];_0x1707=function(){return _0x529905;};return _0x1707();}import{uploadFile as _0x9475a5,info as _0x5c0d49}from'@uploadcare/upload-client';export default class C{static[_0x1b8f2e(0x90)]({file:_0x3ebcd5,publicKey:_0x18826c,signal:_0x28af2e,onProgress:_0x212e40}){var _0x191fbf=_0x1b8f2e;return _0x9475a5(_0x3ebcd5,{'publicKey':_0x18826c,'store':_0x191fbf(0x93),'signal':_0x28af2e,'onProgress':_0x212e40});}static[_0x1b8f2e(0x9c)](_0x52ad0f,_0x2fbb0a){return _0x5c0d49(_0x52ad0f,_0x2fbb0a);}}
|