@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251012.0 → 0.0.0-nightly-20251013.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 _0x3f6f8f,View as _0xaa3f9e}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0xaa3f9e{constructor(_0x4558a1){super(_0x4558a1);const t=_0x4558a1['t'],_0x3cb72f=this['bindTemplate'],_0x5b8e31=new _0x3f6f8f();_0x5b8e31['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':[_0x5b8e31,{'text':_0x3cb72f['to']('imageUploadProgress',_0x57ac89=>t('Loading\x20image...')+'\x20('+(_0x57ac89||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x36304d=_0x2eac;(function(_0x354d52,_0x19eda3){const _0x1050b1=_0x2eac,_0x3da430=_0x354d52();while(!![]){try{const _0x28baf6=parseInt(_0x1050b1(0x85))/0x1+-parseInt(_0x1050b1(0x6f))/0x2+-parseInt(_0x1050b1(0x6d))/0x3*(-parseInt(_0x1050b1(0x9d))/0x4)+parseInt(_0x1050b1(0x79))/0x5*(parseInt(_0x1050b1(0xa1))/0x6)+parseInt(_0x1050b1(0x98))/0x7*(-parseInt(_0x1050b1(0x9b))/0x8)+-parseInt(_0x1050b1(0x97))/0x9*(parseInt(_0x1050b1(0x8e))/0xa)+parseInt(_0x1050b1(0x74))/0xb;if(_0x28baf6===_0x19eda3)break;else _0x3da430['push'](_0x3da430['shift']());}catch(_0x4fc608){_0x3da430['push'](_0x3da430['shift']());}}}(_0x25e2,0x41452));function _0x2eac(_0x307ab7,_0x5d1e58){const _0x25e20e=_0x25e2();return _0x2eac=function(_0x2eac17,_0x3a638d){_0x2eac17=_0x2eac17-0x6d;let _0x3dea8e=_0x25e20e[_0x2eac17];return _0x3dea8e;},_0x2eac(_0x307ab7,_0x5d1e58);}import{View as _0x162bd4}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x288ead}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x5bdc7b}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x2302d7}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x1884aa}from'../../utils/dialogfocusmanagerview.js';function _0x25e2(){const _0x27d282=['2952004wdlcFi','once','addEventListener','_setView','add','171965iLYehf','apply','setTemplate','_editingView','target','toLowerCase','filter','cdnUrl','nodeName','retry','_errorView','cancel','308671LhVLFZ','getFocusableElement','div','observe','querySelector','status','_focusableView','length','detail','10JQfogJ','change:status','ready','_addUploadcareImageEditorListeners','_items','fire','createCollection','ck-uploadcare-form','_addErrorViewListeners','4139793xPNFiW','7xaZPEl','set','uploading','4053688xuTMTY','_waitForImageEditorComponent','548OcMUsv','ck-reset_all-excluded','error','render','90GiuxjS','addedNodes','disconnect','_loadingView','7386AsUcwD','element','392380gCpzfD','focus','clear','addMany','uc-cloud-image-editor'];_0x25e2=function(){return _0x27d282;};return _0x25e2();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x1884aa{[_0x36304d(0x92)];[_0x36304d(0xa4)];[_0x36304d(0x83)];[_0x36304d(0x7c)];[_0x36304d(0x8b)];constructor(_0xa8e148,_0x31953e,_0x14979e){const _0x10ee10=_0x36304d;super(_0xa8e148),this[_0x10ee10(0x92)]=this[_0x10ee10(0x94)](),this[_0x10ee10(0xa4)]=new _0x288ead(_0xa8e148),this[_0x10ee10(0x83)]=new _0x5bdc7b(_0xa8e148),this[_0x10ee10(0x7c)]=new _0x2302d7(_0xa8e148,_0x14979e),this[_0x10ee10(0x8b)]=new _0x162bd4(_0xa8e148),this[_0x10ee10(0x8b)][_0x10ee10(0x7b)](this[_0x10ee10(0x86)]()),this[_0x10ee10(0x99)](_0x10ee10(0x8a),_0x31953e),this[_0x10ee10(0x7b)]({'tag':_0x10ee10(0x87),'attributes':{'class':['ck',_0x10ee10(0x9e),_0x10ee10(0x95)],'tabindex':'-1'},'children':this[_0x10ee10(0x92)]}),this[_0x10ee10(0x77)](),this[_0x10ee10(0x75)](_0x10ee10(0xa0),()=>{const _0xf2b322=_0x10ee10;this[_0xf2b322(0x9c)](this[_0xf2b322(0x6e)],_0x4d1c2a=>{const _0x4a2b6c=_0xf2b322;this[_0x4a2b6c(0x91)](_0x4d1c2a);});}),this['on'](_0x10ee10(0x8f),()=>{const _0x36f2df=_0x10ee10;this[_0x36f2df(0x77)]();}),this[_0x10ee10(0x96)]();}[_0x36304d(0x70)](){const _0x6f3358=_0x36304d;this[_0x6f3358(0x6e)][_0x6f3358(0x70)]();}[_0x36304d(0x77)](){const _0x16faa5=_0x36304d;switch(this[_0x16faa5(0x92)][_0x16faa5(0x71)](),this[_0x16faa5(0x8a)]){case _0x16faa5(0x9a):this[_0x16faa5(0x92)][_0x16faa5(0x78)](this[_0x16faa5(0xa4)]);break;case _0x16faa5(0x9f):this[_0x16faa5(0x92)][_0x16faa5(0x78)](this[_0x16faa5(0x83)]);break;case _0x16faa5(0x90):this[_0x16faa5(0x92)][_0x16faa5(0x72)]([this[_0x16faa5(0x7c)],this[_0x16faa5(0x8b)]]);}}[_0x36304d(0x9c)](_0x299935,_0xf4554d){const _0x2af837=_0x36304d,_0x5a3b53=_0x2af837(0x73),_0x40c76f=_0x299935[_0x2af837(0x89)](_0x5a3b53);if(_0x40c76f)return _0xf4554d(_0x40c76f);const _0x1d0d4e=new MutationObserver(_0x55789a=>{const _0x2ea022=_0x2af837,_0x8125f8=_0x55789a[_0x2ea022(0x7f)](_0x1ab70b=>_0x1ab70b[_0x2ea022(0x7d)]===_0x299935&&_0x1ab70b[_0x2ea022(0xa2)][_0x2ea022(0x8c)]>0x0&&_0x1ab70b[_0x2ea022(0xa2)][0x0][_0x2ea022(0x81)][_0x2ea022(0x7e)]()===_0x5a3b53);_0x8125f8[_0x2ea022(0x8c)]&&(_0x1d0d4e[_0x2ea022(0xa3)](),_0xf4554d(_0x8125f8[0x0][_0x2ea022(0xa2)][0x0]));});_0x1d0d4e[_0x2af837(0x88)](_0x299935,{'childList':!0x0,'subtree':!0x0});}[_0x36304d(0x91)](_0x35c2d4){const _0x398f7e=_0x36304d;_0x35c2d4[_0x398f7e(0x76)](_0x398f7e(0x7a),_0x55a571=>{const _0x37db77=_0x398f7e;this[_0x37db77(0x93)](_0x37db77(0x7a),{'imageSrc':_0x55a571[_0x37db77(0x8d)][_0x37db77(0x80)]});}),_0x35c2d4[_0x398f7e(0x76)](_0x398f7e(0x84),()=>{const _0x2892db=_0x398f7e;this[_0x2892db(0x93)](_0x2892db(0x84));});}[_0x36304d(0x96)](){const _0x2b1aa5=_0x36304d;this[_0x2b1aa5(0x83)]['on'](_0x2b1aa5(0x82),()=>{const _0x1e1392=_0x2b1aa5;this[_0x1e1392(0x93)](_0x1e1392(0x82));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x416d(_0x2bde9a,_0xa6f996){const _0x22d953=_0x22d9();return _0x416d=function(_0x416ddd,_0x573a3b){_0x416ddd=_0x416ddd-0xda;let _0x556475=_0x22d953[_0x416ddd];return _0x556475;},_0x416d(_0x2bde9a,_0xa6f996);}const _0x2638c8=_0x416d;(function(_0x2c8176,_0x27dd2c){const _0x123c93=_0x416d,_0x143165=_0x2c8176();while(!![]){try{const _0x2f7a8f=parseInt(_0x123c93(0xdb))/0x1+parseInt(_0x123c93(0xef))/0x2+parseInt(_0x123c93(0xdd))/0x3+-parseInt(_0x123c93(0xf4))/0x4+parseInt(_0x123c93(0xe2))/0x5+parseInt(_0x123c93(0xda))/0x6*(parseInt(_0x123c93(0xdf))/0x7)+-parseInt(_0x123c93(0xdc))/0x8*(parseInt(_0x123c93(0xee))/0x9);if(_0x2f7a8f===_0x27dd2c)break;else _0x143165['push'](_0x143165['shift']());}catch(_0x461338){_0x143165['push'](_0x143165['shift']());}}}(_0x22d9,0x71250));import{Command as _0x2bb904}from'ckeditor5/src/core.js';import{Dialog as _0x398e02}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x26f99c}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0xddd8e9}from'../utils/editingutils.js';function _0x22d9(){const _0x4cc264=['imageEditController','uploadcare.allowExternalImagesEditing','selection','plugins','isEnabled','editor','model','imageBlock','1531233BgSxkM','59692MTQjgE','execute','bind','imageInline','getSelectedElement','2139708tLkOYS','element','isActive','refresh','document','233202IgqfoA','581546RXlGFY','16cNxgFJ','134718XSsStn','_isEditable','49rLEqxX','config','unbind','2051370BLDFUn','requires','set','get'];_0x22d9=function(){return _0x4cc264;};return _0x22d9();}export class UploadcareImageEditCommand extends _0x2bb904{[_0x2638c8(0xe6)];static get[_0x2638c8(0xe3)](){return[_0x398e02];}[_0x2638c8(0xde)];constructor(_0x4ff492){const _0x15a7fe=_0x2638c8;super(_0x4ff492),this[_0x15a7fe(0xe6)]=void 0x0,this[_0x15a7fe(0xde)]=_0xddd8e9(_0x4ff492[_0x15a7fe(0xe0)][_0x15a7fe(0xe5)](_0x15a7fe(0xe7))||[]),this[_0x15a7fe(0xe4)]({'isActive':!0x1});}[_0x2638c8(0xf7)](){const _0x2962ab=_0x2638c8,_0x32ae6e=this[_0x2962ab(0xeb)][_0x2962ab(0xec)][_0x2962ab(0xf8)][_0x2962ab(0xe8)][_0x2962ab(0xf3)]();this[_0x2962ab(0xea)]=this[_0x2962ab(0xde)](_0x32ae6e);}[_0x2638c8(0xf0)](){const _0x5cc93e=_0x2638c8;this[_0x5cc93e(0xe6)]&&(this[_0x5cc93e(0xe1)](_0x5cc93e(0xf6)),this[_0x5cc93e(0xe6)]=void 0x0);const _0x3850b0=this[_0x5cc93e(0xeb)][_0x5cc93e(0xec)][_0x5cc93e(0xf8)][_0x5cc93e(0xe8)][_0x5cc93e(0xf3)]();_0x3850b0&&(_0x3850b0['is'](_0x5cc93e(0xf5),_0x5cc93e(0xed))||_0x3850b0['is'](_0x5cc93e(0xf5),_0x5cc93e(0xf2)))&&(this[_0x5cc93e(0xe6)]=new _0x26f99c(this[_0x5cc93e(0xeb)],this[_0x5cc93e(0xeb)][_0x5cc93e(0xe9)][_0x5cc93e(0xe5)](_0x398e02),_0x3850b0),this[_0x5cc93e(0xf1)](_0x5cc93e(0xf6))['to'](this[_0x5cc93e(0xe6)],_0x5cc93e(0xf6)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51a206=_0x3dfd;(function(_0x53439f,_0x14c1fb){const _0x5c68e8=_0x3dfd,_0x5f0f49=_0x53439f();while(!![]){try{const _0x3e726e=parseInt(_0x5c68e8(0x75))/0x1*(parseInt(_0x5c68e8(0x85))/0x2)+parseInt(_0x5c68e8(0x73))/0x3*(-parseInt(_0x5c68e8(0x7a))/0x4)+-parseInt(_0x5c68e8(0x82))/0x5+-parseInt(_0x5c68e8(0x7c))/0x6+parseInt(_0x5c68e8(0x81))/0x7*(parseInt(_0x5c68e8(0x83))/0x8)+-parseInt(_0x5c68e8(0x79))/0x9*(-parseInt(_0x5c68e8(0x76))/0xa)+-parseInt(_0x5c68e8(0x7d))/0xb;if(_0x3e726e===_0x14c1fb)break;else _0x5f0f49['push'](_0x5f0f49['shift']());}catch(_0xa7a4f){_0x5f0f49['push'](_0x5f0f49['shift']());}}}(_0x5f36,0xaca1e));import{Plugin as _0x73739e}from'ckeditor5/src/core.js';import{Notification as _0x2140bb}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x1e0958}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x34d1e3}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x4c2af3}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x73739e{static get[_0x51a206(0x74)](){const _0x2785a2=_0x51a206;return _0x2785a2(0x87);}static get[_0x51a206(0x7f)](){const _0x1e956b=_0x51a206;return[_0x4c2af3,_0x2140bb,_0x1e956b(0x77),_0x1e956b(0x84)];}static get[_0x51a206(0x86)](){return!0x0;}static get[_0x51a206(0x78)](){return!0x0;}[_0x51a206(0x88)](){const _0x23df99=_0x51a206,{editor:_0x21a1c3}=this;_0x21a1c3[_0x23df99(0x72)][_0x23df99(0x80)](_0x23df99(0x7b),new _0x1e0958(_0x21a1c3)),_0x21a1c3[_0x23df99(0x72)][_0x23df99(0x80)](_0x23df99(0x7e),new _0x34d1e3(_0x21a1c3));}}function _0x3dfd(_0x352cb2,_0x2b6546){const _0x5f36cb=_0x5f36();return _0x3dfd=function(_0x3dfdc9,_0x298877){_0x3dfdc9=_0x3dfdc9-0x72;let _0xb2d014=_0x5f36cb[_0x3dfdc9];return _0xb2d014;},_0x3dfd(_0x352cb2,_0x2b6546);}function _0x5f36(){const _0x274fd9=['4440810TANZqO','8886888ZcFicz','ImageEditing','982xCRDUd','isOfficialPlugin','UploadcareImageEditEditing','init','commands','33129RmOzJA','pluginName','437pMxkqZ','30LYseCd','ImageUtils','isPremiumPlugin','2338011WImumM','132xlSMBL','uploadcareImageEdit','214026fYxlGb','1203521hILOMS','uploadcareImageReplace','requires','add','7XYyKcR'];_0x5f36=function(){return _0x274fd9;};return _0x5f36();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x1420b2}from'ckeditor5/src/core.js';import{ButtonView as _0x58232b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1b659d}from'ckeditor5/src/icons.js';import{createElement as _0x537490}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 _0x1420b2{['_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 _0x47d522=this['editor'];_0x47d522['ui']['componentFactory']['add']('uploadcareImageEdit',_0x256489=>{const _0x647a21=_0x47d522['commands']['get']('uploadcareImageEdit'),_0x20f347=new _0x58232b(_0x256489),t=_0x256489['t'];return _0x20f347['set']({'icon':_0x1b659d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x20f347['bind']('isEnabled')['to'](_0x647a21),_0x20f347['bind']('isOn')['to'](_0x647a21,'isActive'),this['listenTo'](_0x20f347,'execute',()=>{_0x47d522['execute']('uploadcareImageEdit'),_0x47d522['editing']['view']['focus']();}),_0x20f347;}),this['_initConfig']();}['_initConfig'](){const _0x18e6c9=_0x537490(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x18e6c9),this['listenTo'](this['editor'],'destroy',()=>{_0x18e6c9['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x33d0(_0x149f34,_0x1409bd){var _0x45570c=_0x4557();return _0x33d0=function(_0x33d003,_0x161721){_0x33d003=_0x33d003-0x127;var _0x576a2e=_0x45570c[_0x33d003];return _0x576a2e;},_0x33d0(_0x149f34,_0x1409bd);}var _0x480d92=_0x33d0;(function(_0x511f34,_0x53c447){var _0x4b0aec=_0x33d0,_0x182a71=_0x511f34();while(!![]){try{var _0x30980b=-parseInt(_0x4b0aec(0x13b))/0x1*(-parseInt(_0x4b0aec(0x12d))/0x2)+-parseInt(_0x4b0aec(0x138))/0x3*(-parseInt(_0x4b0aec(0x128))/0x4)+-parseInt(_0x4b0aec(0x127))/0x5*(-parseInt(_0x4b0aec(0x135))/0x6)+-parseInt(_0x4b0aec(0x136))/0x7*(parseInt(_0x4b0aec(0x137))/0x8)+-parseInt(_0x4b0aec(0x131))/0x9*(-parseInt(_0x4b0aec(0x12f))/0xa)+-parseInt(_0x4b0aec(0x13a))/0xb*(-parseInt(_0x4b0aec(0x12a))/0xc)+-parseInt(_0x4b0aec(0x134))/0xd;if(_0x30980b===_0x53c447)break;else _0x182a71['push'](_0x182a71['shift']());}catch(_0x40ce37){_0x182a71['push'](_0x182a71['shift']());}}}(_0x4557,0x4602d));import{FocusTracker as _0x2680cd}from'ckeditor5/src/utils.js';function _0x4557(){var _0x399e87=['4BKItqn','fire','5zlsyXd','880rNscZz','getFocusableElement','708lJNSuJ','forwardCycle','true','44708HOFFsV','focusTracker','358760YxsGWE','createCollection','135fnrlpU','focusCycler','bindTemplate','16655561ApXunR','541182KzYxgj','7IDGNhk','1106992HGOfRQ','6918lJmlhx','div','89727SRcAZm'];_0x4557=function(){return _0x399e87;};return _0x4557();}import{View as _0x130550,FocusCycler as _0x13a0d2}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x130550{[_0x480d92(0x12e)];[_0x480d92(0x132)];constructor(_0x767344){var _0xa21750=_0x480d92;super(_0x767344),this[_0xa21750(0x12e)]=new _0x2680cd(),this[_0xa21750(0x132)]=new _0x13a0d2({'focusables':this[_0xa21750(0x130)](),'focusTracker':this[_0xa21750(0x12e)]});}[_0x480d92(0x129)](){var _0x1a7ddf=_0x480d92;return{'tag':_0x1a7ddf(0x139),'attributes':{'aria-hidden':_0x1a7ddf(0x12c),'tabindex':'0'},'on':{'focus':this[_0x1a7ddf(0x133)]['to'](()=>{var _0x20df06=_0x1a7ddf;this[_0x20df06(0x132)][_0x20df06(0x13c)](_0x20df06(0x12b));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3a7a1b,_0x4cb233){const _0x3ba445=_0xb700,_0x106c37=_0x3a7a1b();while(!![]){try{const _0x2dac64=parseInt(_0x3ba445(0x15b))/0x1*(-parseInt(_0x3ba445(0x180))/0x2)+parseInt(_0x3ba445(0x173))/0x3*(parseInt(_0x3ba445(0x163))/0x4)+parseInt(_0x3ba445(0x187))/0x5*(parseInt(_0x3ba445(0x18b))/0x6)+-parseInt(_0x3ba445(0x184))/0x7+parseInt(_0x3ba445(0x179))/0x8+parseInt(_0x3ba445(0x15d))/0x9*(parseInt(_0x3ba445(0x152))/0xa)+-parseInt(_0x3ba445(0x160))/0xb;if(_0x2dac64===_0x4cb233)break;else _0x106c37['push'](_0x106c37['shift']());}catch(_0x4e8453){_0x106c37['push'](_0x106c37['shift']());}}}(_0x2b64,0x3b5f0));import{global as _0x520716,DomEmitterMixin as _0x5b4dc9}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x32d711){const _0x5746ab=_0xb700,_0x4bf969=G(_0x32d711);return _0x1c8974=>!(!_0x1c8974||!_0x1c8974['is'](_0x5746ab(0x17e),_0x5746ab(0x159))&&!_0x1c8974['is'](_0x5746ab(0x17e),_0x5746ab(0x182)))&&(!!_0x1c8974[_0x5746ab(0x170)](_0x5746ab(0x157))||!!_0x1c8974[_0x5746ab(0x170)](_0x5746ab(0x16f))&&_0x4bf969(_0x1c8974[_0x5746ab(0x16e)](_0x5746ab(0x16f))));}export function getImageUrls(_0x175eec,_0x3a9f92){const _0x3f1ff5=_0xb700,_0x32ba0b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x3f1ff5(0x17b)](_0x4d5f73=>_0x4d5f73<=_0x3a9f92)[_0x3f1ff5(0x176)](_0x1628f4=>_0x175eec[_0x3f1ff5(0x154)](/\/$/,'')+_0x3f1ff5(0x17d)+_0x1628f4+_0x3f1ff5(0x177)+_0x1628f4+'w');return{'imageFallbackUrl':_0x175eec,'imageSources':[{'srcset':_0x32ba0b[_0x3f1ff5(0x161)](',\x20'),'sizes':_0x3f1ff5(0x17c)+_0x3a9f92+_0x3f1ff5(0x172)+_0x3a9f92+'px','type':_0x3f1ff5(0x183)}]};}export function getImageDimension(_0x5661b2,_0x288da6,_0x3740e8){const _0x41cb96=_0xb700,_0x3c8367=_0x5661b2[_0x41cb96(0x168)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3c8367?parseInt(_0x3c8367[0x1],0xa):_0x288da6,'height':_0x3c8367?parseInt(_0x3c8367[0x2],0xa):_0x3740e8};}export function showImageProcessingIndicator(_0x3a8041,_0x2f14ef){const _0x41980e=_0xb700,_0x383b80=new(_0x5b4dc9())(),_0x3e5060=_0x3a8041[_0x41980e(0x16b)][_0x41980e(0x189)](_0x41980e(0x15e)),_0x1fb0c1=_0x3a8041[_0x41980e(0x174)][_0x41980e(0x15a)][_0x41980e(0x185)](_0x2f14ef),_0x3a576c=_0x3e5060[_0x41980e(0x164)](_0x1fb0c1),_0x49b472=_0x3a8041[_0x41980e(0x174)][_0x41980e(0x17f)][_0x41980e(0x181)][_0x41980e(0x165)](_0x3a576c),_0x17fb67=_0x2f14ef[_0x41980e(0x16e)](_0x41980e(0x169)),_0x5ef22a=_0x2f14ef[_0x41980e(0x16e)](_0x41980e(0x18a)),_0x537a34=_0x41980e(0x188);_0x3a8041[_0x41980e(0x174)][_0x41980e(0x17f)][_0x41980e(0x153)](_0x51d37a=>{const _0x103c26=_0x41980e;_0x51d37a[_0x103c26(0x158)](_0x537a34,_0x1fb0c1),_0x51d37a[_0x103c26(0x16d)](_0x103c26(0x15c),_0x17fb67+'/'+_0x5ef22a,_0x3a576c);}),_0x383b80[_0x41980e(0x17a)](_0x49b472,_0x41980e(0x15f),()=>{const _0x5812ef=_0x41980e;_0x383b80[_0x5812ef(0x162)](_0x49b472,_0x5812ef(0x15f)),_0x3a8041[_0x5812ef(0x174)][_0x5812ef(0x17f)][_0x5812ef(0x153)](_0x258bc7=>{const _0x1f888a=_0x5812ef;_0x258bc7[_0x1f888a(0x175)](_0x537a34,_0x1fb0c1),_0x258bc7[_0x1f888a(0x171)](_0x1f888a(0x15c),_0x3a576c);});});}function _0xb700(_0x145c19,_0x19d54b){const _0x2b648f=_0x2b64();return _0xb700=function(_0xb7004d,_0x20e891){_0xb7004d=_0xb7004d-0x152;let _0x142eb4=_0x2b648f[_0xb7004d];return _0x142eb4;},_0xb700(_0x145c19,_0x19d54b);}function _0x2b64(){const _0x3208c5=['imageBlock','mapper','229133FRmUPc','aspect-ratio','9ywDkmG','ImageUtils','load','2870120ugbYgK','join','stopListening','4mkNWlC','findViewImgElement','viewToDom','function','document','match','width','window','plugins','some','setStyle','getAttribute','src','hasAttribute','removeStyle','px)\x20100vw,\x20','558837wbcwGG','editing','removeClass','map','x/\x20','location','1011720rGIJbq','listenTo','filter','(max-width:\x20','/-/resize/','element','view','2LSDruA','domConverter','imageInline','image/webp','1000776yXIPxe','toViewElement','origin','15WZxRpX','image-processing','get','height','420726vWDhgm','3530980rFYfgi','change','replace','baseURI','isArray','uploadcareImageId','addClass'];_0x2b64=function(){return _0x3208c5;};return _0x2b64();}function G(_0x57ad82){const _0x3ef62e=_0xb700;if(Array[_0x3ef62e(0x156)](_0x57ad82)){const _0x3dbc68=_0x57ad82[_0x3ef62e(0x176)](G);return _0x76a658=>_0x3dbc68[_0x3ef62e(0x16c)](_0x694329=>_0x694329(_0x76a658));}if(_0x3ef62e(0x186)==_0x57ad82){const _0x37e393=_0x520716[_0x3ef62e(0x16a)][_0x3ef62e(0x178)][_0x3ef62e(0x186)];return _0x3c599f=>new URL(_0x3c599f,_0x520716[_0x3ef62e(0x167)][_0x3ef62e(0x155)])[_0x3ef62e(0x186)]==_0x37e393;}return _0x3ef62e(0x166)==typeof _0x57ad82?_0x57ad82:_0x57ad82 instanceof RegExp?_0xaf0bd7=>!(!_0xaf0bd7[_0x3ef62e(0x168)](_0x57ad82)&&!_0xaf0bd7[_0x3ef62e(0x154)](/^https?:\/\//,'')[_0x3ef62e(0x168)](_0x57ad82)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xf5c831,_0x10c48c){var _0x555e4d=_0x1071,_0x360a3b=_0xf5c831();while(!![]){try{var _0x4babea=-parseInt(_0x555e4d(0x18c))/0x1+-parseInt(_0x555e4d(0x18a))/0x2*(-parseInt(_0x555e4d(0x190))/0x3)+-parseInt(_0x555e4d(0x18b))/0x4+-parseInt(_0x555e4d(0x18d))/0x5*(-parseInt(_0x555e4d(0x188))/0x6)+parseInt(_0x555e4d(0x186))/0x7+-parseInt(_0x555e4d(0x187))/0x8+-parseInt(_0x555e4d(0x189))/0x9*(-parseInt(_0x555e4d(0x18e))/0xa);if(_0x4babea===_0x10c48c)break;else _0x360a3b['push'](_0x360a3b['shift']());}catch(_0x46412d){_0x360a3b['push'](_0x360a3b['shift']());}}}(_0x33ac,0xb81ed));import{getAncestors as _0x602da4}from'ckeditor5/src/utils.js';function _0x33ac(){var _0x52c1db=['includes','226563TBuoes','target','2374001xWLnlr','1555528DMOpLq','1218rSORxX','9GMJPpa','4jVdpOi','4855364OKkvfP','1058520JcIDNr','24625DHzVjy','17309990ZuTqIR'];_0x33ac=function(){return _0x52c1db;};return _0x33ac();}function _0x1071(_0x18f8ad,_0x238dc6){var _0x33ac59=_0x33ac();return _0x1071=function(_0x1071be,_0x358830){_0x1071be=_0x1071be-0x185;var _0x1928ad=_0x33ac59[_0x1071be];return _0x1928ad;},_0x1071(_0x18f8ad,_0x238dc6);}export function isAncestor(_0x5e8a7b,_0x1967df){var _0x31ac12=_0x1071;return _0x602da4(_0x5e8a7b[_0x31ac12(0x185)])[_0x31ac12(0x18f)](_0x1967df);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0xc8401c=_0x3830;(function(_0x2ec316,_0x2a3c78){var _0x5b309c=_0x3830,_0x39dcc8=_0x2ec316();while(!![]){try{var _0x1c4cab=parseInt(_0x5b309c(0x1bc))/0x1*(parseInt(_0x5b309c(0x1c4))/0x2)+-parseInt(_0x5b309c(0x1bb))/0x3*(parseInt(_0x5b309c(0x1bd))/0x4)+-parseInt(_0x5b309c(0x1c2))/0x5+-parseInt(_0x5b309c(0x1c3))/0x6+parseInt(_0x5b309c(0x1bf))/0x7+-parseInt(_0x5b309c(0x1c6))/0x8+-parseInt(_0x5b309c(0x1be))/0x9*(-parseInt(_0x5b309c(0x1c1))/0xa);if(_0x1c4cab===_0x2a3c78)break;else _0x39dcc8['push'](_0x39dcc8['shift']());}catch(_0xfe91f9){_0x39dcc8['push'](_0x39dcc8['shift']());}}}(_0x2674,0x5f380));import{uploadFile as _0x7cdbf2,info as _0x32ba46}from'@uploadcare/upload-client';function _0x2674(){var _0x465087=['2754600VfRjMB','249963lVdGqN','89qlabwh','28KwGXPr','7194087EoDyNK','3159723MnFSYi','upload','10rOLsIS','1659495VOVuwW','195234XCfQUl','9692FFQCVo','getInfo'];_0x2674=function(){return _0x465087;};return _0x2674();}function _0x3830(_0x37f136,_0x1a02b1){var _0x267423=_0x2674();return _0x3830=function(_0x383076,_0x444b79){_0x383076=_0x383076-0x1bb;var _0x1f1c36=_0x267423[_0x383076];return _0x1f1c36;},_0x3830(_0x37f136,_0x1a02b1);}export class UploadUtils{static[_0xc8401c(0x1c0)]({file:_0x5b3fb7,..._0x145a5f}){return _0x7cdbf2(_0x5b3fb7,_0x145a5f);}static[_0xc8401c(0x1c5)](_0x15fd12,_0x41bfc9){return _0x32ba46(_0x15fd12,_0x41bfc9);}}
|