@ckeditor/ckeditor5-uploadcare 45.0.0-alpha.11 → 45.0.0-alpha.12
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 _0x32964a=_0x3b18;(function(_0x473b88,_0x3ae0f4){const _0x50159b=_0x3b18,_0x46fcb7=_0x473b88();while(!![]){try{const _0x22de9a=-parseInt(_0x50159b(0xb7))/0x1*(-parseInt(_0x50159b(0xd5))/0x2)+-parseInt(_0x50159b(0xd7))/0x3*(parseInt(_0x50159b(0xa6))/0x4)+-parseInt(_0x50159b(0xc9))/0x5*(parseInt(_0x50159b(0xae))/0x6)+parseInt(_0x50159b(0xab))/0x7+-parseInt(_0x50159b(0xdb))/0x8+parseInt(_0x50159b(0xc1))/0x9*(parseInt(_0x50159b(0xa7))/0xa)+-parseInt(_0x50159b(0xb3))/0xb*(-parseInt(_0x50159b(0xd0))/0xc);if(_0x22de9a===_0x3ae0f4)break;else _0x46fcb7['push'](_0x46fcb7['shift']());}catch(_0x477767){_0x46fcb7['push'](_0x46fcb7['shift']());}}}(_0x4a20,0xd0d7f));import{View as _0x393e31}from'ckeditor5/src/ui.js';import _0x492b49 from'./uploadcareimageeditformloadingview.js';import _0x28e890 from'./uploadcareimageeditformerrorview.js';function _0x4a20(){const _0x20b766=['render','_errorView','add','addMany','13750UanKim','addedNodes','1809aPIVmj','uc-cloud-image-editor','status','error','1778136jVqrTi','element','_addErrorViewListeners','setTemplate','580CHjRRN','10ejymMx','ck-reset_all-excluded','filter','cancel','3214911fTBVyI','retry','change:status','9990114vcbbUY','disconnect','nodeName','clear','once','55QVaFse','_loadingView','observe','cdnUrl','143pQFEnJ','_focusableView','toLowerCase','_setView','apply','length','addEventListener','_editingView','ck-uploadcare-form','target','9894519utShOw','focus','_items','getFocusableElement','querySelector','div','_addUploadcareImageEditorListeners','detail','5JeilSi','uploading','_waitForImageEditorComponent','createCollection','ready','set','fire','692052oVoMMI'];_0x4a20=function(){return _0x20b766;};return _0x4a20();}import _0x5316e0 from'./uploadcareimageeditformeditingview.js';import _0x255a7f from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x3b18(_0x324884,_0x2339f2){const _0x4a201a=_0x4a20();return _0x3b18=function(_0x3b18bf,_0x4f00d4){_0x3b18bf=_0x3b18bf-0xa5;let _0x58d96a=_0x4a201a[_0x3b18bf];return _0x58d96a;},_0x3b18(_0x324884,_0x2339f2);}export default class Z extends _0x255a7f{[_0x32964a(0xc3)];[_0x32964a(0xb4)];[_0x32964a(0xd2)];[_0x32964a(0xbe)];[_0x32964a(0xb8)];constructor(_0x2e9189,_0x22ed71,_0x52d797){const _0x65cf2f=_0x32964a;super(_0x2e9189),this[_0x65cf2f(0xc3)]=this[_0x65cf2f(0xcc)](),this[_0x65cf2f(0xb4)]=new _0x492b49(_0x2e9189),this[_0x65cf2f(0xd2)]=new _0x28e890(_0x2e9189),this[_0x65cf2f(0xbe)]=new _0x5316e0(_0x2e9189,_0x52d797),this[_0x65cf2f(0xb8)]=new _0x393e31(_0x2e9189),this[_0x65cf2f(0xb8)][_0x65cf2f(0xa5)](this[_0x65cf2f(0xc4)]()),this[_0x65cf2f(0xce)](_0x65cf2f(0xd9),_0x22ed71),this[_0x65cf2f(0xa5)]({'tag':_0x65cf2f(0xc6),'attributes':{'class':['ck',_0x65cf2f(0xa8),_0x65cf2f(0xbf)],'tabindex':'-1'},'children':this[_0x65cf2f(0xc3)]}),this[_0x65cf2f(0xba)](),this[_0x65cf2f(0xb2)](_0x65cf2f(0xd1),()=>{const _0x26a9b1=_0x65cf2f;this[_0x26a9b1(0xcb)](this[_0x26a9b1(0xdc)],_0x1f6e09=>{const _0x4a284b=_0x26a9b1;this[_0x4a284b(0xc7)](_0x1f6e09);});}),this['on'](_0x65cf2f(0xad),()=>{const _0x15b777=_0x65cf2f;this[_0x15b777(0xba)]();}),this[_0x65cf2f(0xdd)]();}[_0x32964a(0xc2)](){const _0x46ae87=_0x32964a;this[_0x46ae87(0xdc)][_0x46ae87(0xc2)]();}[_0x32964a(0xba)](){const _0x1bfd48=_0x32964a;switch(this[_0x1bfd48(0xc3)][_0x1bfd48(0xb1)](),this[_0x1bfd48(0xd9)]){case _0x1bfd48(0xca):this[_0x1bfd48(0xc3)][_0x1bfd48(0xd3)](this[_0x1bfd48(0xb4)]);break;case _0x1bfd48(0xda):this[_0x1bfd48(0xc3)][_0x1bfd48(0xd3)](this[_0x1bfd48(0xd2)]);break;case _0x1bfd48(0xcd):this[_0x1bfd48(0xc3)][_0x1bfd48(0xd4)]([this[_0x1bfd48(0xbe)],this[_0x1bfd48(0xb8)]]);}}[_0x32964a(0xcb)](_0x3b9410,_0x275731){const _0x3caa67=_0x32964a,_0x1b7a94=_0x3caa67(0xd8),_0x2e8050=_0x3b9410[_0x3caa67(0xc5)](_0x1b7a94);if(_0x2e8050)return _0x275731(_0x2e8050);const _0x5af978=new MutationObserver(_0x5c4f73=>{const _0x3478de=_0x3caa67,_0x413fe2=_0x5c4f73[_0x3478de(0xa9)](_0x2b4905=>_0x2b4905[_0x3478de(0xc0)]===_0x3b9410&&_0x2b4905[_0x3478de(0xd6)][_0x3478de(0xbc)]>0x0&&_0x2b4905[_0x3478de(0xd6)][0x0][_0x3478de(0xb0)][_0x3478de(0xb9)]()===_0x1b7a94);_0x413fe2[_0x3478de(0xbc)]&&(_0x5af978[_0x3478de(0xaf)](),_0x275731(_0x413fe2[0x0][_0x3478de(0xd6)][0x0]));});_0x5af978[_0x3caa67(0xb5)](_0x3b9410,{'childList':!0x0,'subtree':!0x0});}[_0x32964a(0xc7)](_0x169449){const _0x40e4ac=_0x32964a;_0x169449[_0x40e4ac(0xbd)](_0x40e4ac(0xbb),_0x5cec57=>{const _0x276c7d=_0x40e4ac;this[_0x276c7d(0xcf)](_0x276c7d(0xbb),{'imageSrc':_0x5cec57[_0x276c7d(0xc8)][_0x276c7d(0xb6)]});}),_0x169449[_0x40e4ac(0xbd)](_0x40e4ac(0xaa),()=>{const _0x5f293b=_0x40e4ac;this[_0x5f293b(0xcf)](_0x5f293b(0xaa));});}[_0x32964a(0xdd)](){const _0x512589=_0x32964a;this[_0x512589(0xd2)]['on'](_0x512589(0xac),()=>{const _0x329fa6=_0x512589;this[_0x329fa6(0xcf)](_0x329fa6(0xac));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd7f2cb=_0x2107;(function(_0x30bc02,_0x1d60c6){const _0x5ddf2b=_0x2107,_0x1ebf4c=_0x30bc02();while(!![]){try{const _0xda1061=-parseInt(_0x5ddf2b(0xf2))/0x1*(parseInt(_0x5ddf2b(0xf4))/0x2)+parseInt(_0x5ddf2b(0xd9))/0x3+parseInt(_0x5ddf2b(0xe9))/0x4*(-parseInt(_0x5ddf2b(0xee))/0x5)+-parseInt(_0x5ddf2b(0xec))/0x6*(-parseInt(_0x5ddf2b(0xe3))/0x7)+-parseInt(_0x5ddf2b(0xed))/0x8+-parseInt(_0x5ddf2b(0xd5))/0x9+-parseInt(_0x5ddf2b(0xd6))/0xa*(-parseInt(_0x5ddf2b(0xe0))/0xb);if(_0xda1061===_0x1d60c6)break;else _0x1ebf4c['push'](_0x1ebf4c['shift']());}catch(_0xb72b0){_0x1ebf4c['push'](_0x1ebf4c['shift']());}}}(_0x20b2,0x6e200));import{Command as _0x4b5209}from'ckeditor5/src/core.js';function _0x2107(_0x4f6367,_0x486cc6){const _0x20b232=_0x20b2();return _0x2107=function(_0x210774,_0x4b695d){_0x210774=_0x210774-0xd4;let _0x41f65c=_0x20b232[_0x210774];return _0x41f65c;},_0x2107(_0x4f6367,_0x486cc6);}import{Dialog as _0x13c153}from'ckeditor5/src/ui.js';import _0x384b16 from'./ui/uploadcareimageeditcontroller.js';function _0x20b2(){const _0x2dcd07=['imageBlock','345546fdRpCc','requires','4709799BOCMnq','5050vPYaCB','imageInline','editor','1832166UCezlX','_isEditable','uploadcare.allowExternalImagesEditing','element','imageEditController','unbind','get','21604aZviny','selection','model','328097EFULeb','set','isActive','config','bind','getSelectedElement','340788jDHOQj','document','isEnabled','18kveEdf','3404840YEVSeW','10fRFTiN','execute','plugins','refresh','1HOUnHF'];_0x20b2=function(){return _0x2dcd07;};return _0x20b2();}import{createEditabilityChecker as _0xcd024}from'../utils/editingutils.js';export default class J extends _0x4b5209{[_0xd7f2cb(0xdd)];static get[_0xd7f2cb(0xd4)](){return[_0x13c153];}[_0xd7f2cb(0xda)];constructor(_0x391211){const _0x1cbf9f=_0xd7f2cb;super(_0x391211),this[_0x1cbf9f(0xdd)]=void 0x0,this[_0x1cbf9f(0xda)]=_0xcd024(_0x391211[_0x1cbf9f(0xe6)][_0x1cbf9f(0xdf)](_0x1cbf9f(0xdb))||[]),this[_0x1cbf9f(0xe4)]({'isActive':!0x1});}[_0xd7f2cb(0xf1)](){const _0x2ef5b8=_0xd7f2cb,_0x3b0cb9=this[_0x2ef5b8(0xd8)][_0x2ef5b8(0xe2)][_0x2ef5b8(0xea)][_0x2ef5b8(0xe1)][_0x2ef5b8(0xe8)]();this[_0x2ef5b8(0xeb)]=this[_0x2ef5b8(0xda)](_0x3b0cb9);}[_0xd7f2cb(0xef)](){const _0x1c9501=_0xd7f2cb;this[_0x1c9501(0xdd)]&&(this[_0x1c9501(0xde)](_0x1c9501(0xe5)),this[_0x1c9501(0xdd)]=void 0x0);const _0x1c765b=this[_0x1c9501(0xd8)][_0x1c9501(0xe2)][_0x1c9501(0xea)][_0x1c9501(0xe1)][_0x1c9501(0xe8)]();_0x1c765b&&(_0x1c765b['is'](_0x1c9501(0xdc),_0x1c9501(0xf3))||_0x1c765b['is'](_0x1c9501(0xdc),_0x1c9501(0xd7)))&&(this[_0x1c9501(0xdd)]=new _0x384b16(this[_0x1c9501(0xd8)],this[_0x1c9501(0xd8)][_0x1c9501(0xf0)][_0x1c9501(0xdf)](_0x13c153),_0x1c765b),this[_0x1c9501(0xe7)](_0x1c9501(0xe5))['to'](this[_0x1c9501(0xdd)],_0x1c9501(0xe5)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59f84a=_0x256b;(function(_0x1bd5f7,_0x21df74){const _0x301f4f=_0x256b,_0x5a2932=_0x1bd5f7();while(!![]){try{const _0x4f1429=-parseInt(_0x301f4f(0xb4))/0x1*(parseInt(_0x301f4f(0xa7))/0x2)+-parseInt(_0x301f4f(0xb2))/0x3*(-parseInt(_0x301f4f(0xae))/0x4)+-parseInt(_0x301f4f(0xa2))/0x5+parseInt(_0x301f4f(0xad))/0x6+-parseInt(_0x301f4f(0xac))/0x7*(parseInt(_0x301f4f(0xa6))/0x8)+-parseInt(_0x301f4f(0xaa))/0x9+parseInt(_0x301f4f(0xa5))/0xa;if(_0x4f1429===_0x21df74)break;else _0x5a2932['push'](_0x5a2932['shift']());}catch(_0xb8d526){_0x5a2932['push'](_0x5a2932['shift']());}}}(_0x4699,0xd4277));import{Plugin as _0x191b19}from'ckeditor5/src/core.js';function _0x4699(){const _0x54e98b=['isPremiumPlugin','ImageEditing','6918395FThjGt','ImageUtils','isOfficialPlugin','22104400vbTnar','573176OzYEct','44838Hoskez','add','UploadcareImageEditEditing','4476546Abescs','init','105YUHMFd','7826112NKnKDY','1236RnvMoU','uploadcareImageEdit','pluginName','commands','16722kVsKjS','requires','63KKaxWg','uploadcareImageReplace'];_0x4699=function(){return _0x54e98b;};return _0x4699();}function _0x256b(_0x285f3e,_0x197c69){const _0x4699ec=_0x4699();return _0x256b=function(_0x256ba3,_0x2bdb6c){_0x256ba3=_0x256ba3-0xa0;let _0x33aac3=_0x4699ec[_0x256ba3];return _0x33aac3;},_0x256b(_0x285f3e,_0x197c69);}import{Notification as _0x1c9f3f}from'ckeditor5/src/ui.js';import _0x4fe774 from'./uploadcareimageeditcommand.js';import _0x3a0b6f from'./uploadcareimagereplacecommand.js';import _0x1b3c6c from'../uploadcareediting.js';export default class g extends _0x191b19{static get[_0x59f84a(0xb0)](){const _0x3bdb0d=_0x59f84a;return _0x3bdb0d(0xa9);}static get[_0x59f84a(0xb3)](){const _0x331932=_0x59f84a;return[_0x1b3c6c,_0x1c9f3f,_0x331932(0xa3),_0x331932(0xa1)];}static get[_0x59f84a(0xa4)](){return!0x0;}static get[_0x59f84a(0xa0)](){return!0x0;}[_0x59f84a(0xab)](){const _0x3fd999=_0x59f84a,{editor:_0x151101}=this;_0x151101[_0x3fd999(0xb1)][_0x3fd999(0xa8)](_0x3fd999(0xaf),new _0x4fe774(_0x151101)),_0x151101[_0x3fd999(0xb1)][_0x3fd999(0xa8)](_0x3fd999(0xb5),new _0x3a0b6f(_0x151101));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x183cd8}from'ckeditor5/src/core.js';import{ButtonView as _0x52b884}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x474cd6}from'ckeditor5/src/icons.js';import{createElement as _0x2ea3e6}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 _0x183cd8{['_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 _0x156ade=this['editor'];_0x156ade['ui']['componentFactory']['add']('uploadcareImageEdit',_0x40647f=>{const _0x1a5538=_0x156ade['commands']['get']('uploadcareImageEdit'),_0x4384d9=new _0x52b884(_0x40647f),t=_0x40647f['t'];return _0x4384d9['set']({'icon':_0x474cd6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4384d9['bind']('isEnabled')['to'](_0x1a5538),_0x4384d9['bind']('isOn')['to'](_0x1a5538,'isActive'),this['listenTo'](_0x4384d9,'execute',()=>{_0x156ade['execute']('uploadcareImageEdit'),_0x156ade['editing']['view']['focus']();}),_0x4384d9;}),this['_initConfig']();}['_initConfig'](){const _0x3060c8=_0x2ea3e6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3060c8),this['listenTo'](this['editor'],'destroy',()=>{_0x3060c8['remove']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x388e(){const _0x229838=['change','refresh','234DHaOkT','editor','imageBlock','execute','7odTsUW','4365650mAyxdw','2365647YjgrPj','344120dvhMmz','98080ahNgsW','document','sizes','model','2347554GBRbuM','isEnabled','imageInline','2508776QHXoIM','element','srcset','removeAttribute','15993yWDNeO','setAttributes','2JpzGui','getSelectedElement','selection'];_0x388e=function(){return _0x229838;};return _0x388e();}const _0xa37a45=_0xcdc2;function _0xcdc2(_0x3554d7,_0x4977a1){const _0x388e42=_0x388e();return _0xcdc2=function(_0xcdc24a,_0x4c9ac1){_0xcdc24a=_0xcdc24a-0x1da;let _0x34e5c2=_0x388e42[_0xcdc24a];return _0x34e5c2;},_0xcdc2(_0x3554d7,_0x4977a1);}(function(_0x16fa8b,_0x2274ac){const _0x236a5b=_0xcdc2,_0x3c5f2a=_0x16fa8b();while(!![]){try{const _0x574933=-parseInt(_0x236a5b(0x1f2))/0x1+parseInt(_0x236a5b(0x1da))/0x2*(parseInt(_0x236a5b(0x1e5))/0x3)+-parseInt(_0x236a5b(0x1ee))/0x4+-parseInt(_0x236a5b(0x1e6))/0x5+-parseInt(_0x236a5b(0x1eb))/0x6*(parseInt(_0x236a5b(0x1e3))/0x7)+-parseInt(_0x236a5b(0x1e7))/0x8*(-parseInt(_0x236a5b(0x1df))/0x9)+parseInt(_0x236a5b(0x1e4))/0xa;if(_0x574933===_0x2274ac)break;else _0x3c5f2a['push'](_0x3c5f2a['shift']());}catch(_0xd39c00){_0x3c5f2a['push'](_0x3c5f2a['shift']());}}}(_0x388e,0x6b91c));import{Command as _0x2b1a37}from'ckeditor5/src/core.js';export default class O extends _0x2b1a37{[_0xa37a45(0x1de)](){const _0x59db79=_0xa37a45,_0x4458d6=this[_0x59db79(0x1e0)][_0x59db79(0x1ea)][_0x59db79(0x1e8)][_0x59db79(0x1dc)][_0x59db79(0x1db)]();this[_0x59db79(0x1ec)]=Boolean(_0x4458d6&&(_0x4458d6['is'](_0x59db79(0x1ef),_0x59db79(0x1e1))||_0x4458d6['is'](_0x59db79(0x1ef),_0x59db79(0x1ed))));}[_0xa37a45(0x1e2)](_0x3f8e6f){const _0xf67223=_0xa37a45,_0x21d137=this[_0xf67223(0x1e0)][_0xf67223(0x1ea)][_0xf67223(0x1e8)][_0xf67223(0x1dc)][_0xf67223(0x1db)]();this[_0xf67223(0x1e0)][_0xf67223(0x1ea)][_0xf67223(0x1dd)](_0x59a71f=>{const _0x3686f5=_0xf67223;_0x59a71f[_0x3686f5(0x1f3)](_0x3f8e6f,_0x21d137),_0x59a71f[_0x3686f5(0x1f1)](_0x3686f5(0x1f0),_0x21d137),_0x59a71f[_0x3686f5(0x1f1)](_0x3686f5(0x1e9),_0x21d137);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x135f6a=_0x40f4;(function(_0xc3f7da,_0x4dbcc1){var _0x5dc2b2=_0x40f4,_0x47c7c7=_0xc3f7da();while(!![]){try{var _0x2fe4c0=-parseInt(_0x5dc2b2(0x1f0))/0x1+-parseInt(_0x5dc2b2(0x1f4))/0x2+-parseInt(_0x5dc2b2(0x1ea))/0x3+parseInt(_0x5dc2b2(0x1f1))/0x4+parseInt(_0x5dc2b2(0x1e9))/0x5*(-parseInt(_0x5dc2b2(0x1f2))/0x6)+parseInt(_0x5dc2b2(0x1e7))/0x7+-parseInt(_0x5dc2b2(0x1eb))/0x8*(-parseInt(_0x5dc2b2(0x1ee))/0x9);if(_0x2fe4c0===_0x4dbcc1)break;else _0x47c7c7['push'](_0x47c7c7['shift']());}catch(_0x2147d6){_0x47c7c7['push'](_0x47c7c7['shift']());}}}(_0xc110,0xcd4ed));import{FocusTracker as _0x286453}from'ckeditor5/src/utils.js';function _0xc110(){var _0x10c168=['88QeFbjq','focusCycler','div','1719684qlfdyI','focusTracker','453571SdqUYB','1197764hZcYlj','191874abShtp','bindTemplate','596740XtXeBG','createCollection','fire','true','forwardCycle','8851031ixJJLE','getFocusableElement','245NaqHRU','1517571MMmxiw'];_0xc110=function(){return _0x10c168;};return _0xc110();}function _0x40f4(_0x52d624,_0x3a6126){var _0xc1106=_0xc110();return _0x40f4=function(_0x40f47b,_0x45b19c){_0x40f47b=_0x40f47b-0x1e6;var _0x2b2fc1=_0xc1106[_0x40f47b];return _0x2b2fc1;},_0x40f4(_0x52d624,_0x3a6126);}import{View as _0x24f793,FocusCycler as _0x25ef24}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class q extends _0x24f793{[_0x135f6a(0x1ef)];[_0x135f6a(0x1ec)];constructor(_0x548667){var _0x28e315=_0x135f6a;super(_0x548667),this[_0x28e315(0x1ef)]=new _0x286453(),this[_0x28e315(0x1ec)]=new _0x25ef24({'focusables':this[_0x28e315(0x1f5)](),'focusTracker':this[_0x28e315(0x1ef)]});}[_0x135f6a(0x1e8)](){var _0x1da4c2=_0x135f6a;return{'tag':_0x1da4c2(0x1ed),'attributes':{'aria-hidden':_0x1da4c2(0x1f7),'tabindex':'0'},'on':{'focus':this[_0x1da4c2(0x1f3)]['to'](()=>{var _0x1d3a78=_0x1da4c2;this[_0x1d3a78(0x1ec)][_0x1d3a78(0x1f6)](_0x1d3a78(0x1e6));})}};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3e73f2,_0x3d16fa){const _0x2bfcf9=_0x53d0,_0x102c2a=_0x3e73f2();while(!![]){try{const _0x5d90d9=-parseInt(_0x2bfcf9(0x9f))/0x1*(-parseInt(_0x2bfcf9(0xb1))/0x2)+parseInt(_0x2bfcf9(0xa2))/0x3*(-parseInt(_0x2bfcf9(0xb9))/0x4)+-parseInt(_0x2bfcf9(0xb6))/0x5*(parseInt(_0x2bfcf9(0xc0))/0x6)+parseInt(_0x2bfcf9(0xa6))/0x7+parseInt(_0x2bfcf9(0xbb))/0x8+-parseInt(_0x2bfcf9(0xb7))/0x9*(parseInt(_0x2bfcf9(0xba))/0xa)+-parseInt(_0x2bfcf9(0xa8))/0xb*(-parseInt(_0x2bfcf9(0xbd))/0xc);if(_0x5d90d9===_0x3d16fa)break;else _0x102c2a['push'](_0x102c2a['shift']());}catch(_0x1ba10c){_0x102c2a['push'](_0x102c2a['shift']());}}}(_0x5cc9,0xa9a32));import{global as _0x4feb3b,DomEmitterMixin as _0x3f64ba}from'ckeditor5/src/utils.js';function _0x5cc9(){const _0x427aa5=['1276352ZCqVPl','findViewImgElement','209sYqkik','replace','uploadcareImageId','mapper','imageBlock','setStyle','removeClass','some','toViewElement','316194GbVCwD','filter','px)\x20100vw,\x20','view','baseURI','535wMYHkW','18nKbQrA','(max-width:\x20','4ZKhGXs','4066390arrDcj','11093232sOCbPC','match','650244cKpZEO','viewToDom','plugins','29658zKfVHv','isArray','domConverter','window','image/webp','hasAttribute','stopListening','image-processing','join','create','load','removeStyle','function','src','x/\x20','map','/-/resize/','getAttribute','location','width','origin','change','height','aspect-ratio','addClass','get','imageInline','1ZXWMPE','element','listenTo','2158881jcRhbW','editing','document','ImageUtils'];_0x5cc9=function(){return _0x427aa5;};return _0x5cc9();}export function createEditabilityChecker(_0x5c8cbe){const _0x45d5c8=_0x53d0,_0x5de843=V(_0x5c8cbe);return _0x3d6e47=>!(!_0x3d6e47||!_0x3d6e47['is'](_0x45d5c8(0xa0),_0x45d5c8(0xac))&&!_0x3d6e47['is'](_0x45d5c8(0xa0),_0x45d5c8(0x9e)))&&(!!_0x3d6e47[_0x45d5c8(0xc5)](_0x45d5c8(0xaa))||!!_0x3d6e47[_0x45d5c8(0xc5)](_0x45d5c8(0xcd))&&_0x5de843(_0x3d6e47[_0x45d5c8(0xd1)](_0x45d5c8(0xcd))));}export function getImageUrls(_0x4410a2,_0xf7cd2b){const _0x6994f8=_0x53d0,_0x423f58=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x6994f8(0xb2)](_0x3c0eea=>_0x3c0eea<=_0xf7cd2b)[_0x6994f8(0xcf)](_0x531a50=>_0x4410a2[_0x6994f8(0xa9)](/\/$/,'')+_0x6994f8(0xd0)+_0x531a50+_0x6994f8(0xce)+_0x531a50+'w');return{'imageFallbackUrl':_0x4410a2,'imageSources':[{'srcset':_0x423f58[_0x6994f8(0xc8)](',\x20'),'sizes':_0x6994f8(0xb8)+_0xf7cd2b+_0x6994f8(0xb3)+_0xf7cd2b+'px','type':_0x6994f8(0xc4)}]};}export function getImageDimension(_0x3aa860,_0x13e56e,_0x201a8d){const _0x832a45=_0x53d0,_0x14bbb7=_0x3aa860[_0x832a45(0xbc)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x14bbb7?parseInt(_0x14bbb7[0x1],0xa):_0x13e56e,'height':_0x14bbb7?parseInt(_0x14bbb7[0x2],0xa):_0x201a8d};}export function showImageProcessingIndicator(_0x35b190,_0xcee95a){const _0x395b99=_0x53d0,_0x183ef4=Object[_0x395b99(0xc9)](_0x3f64ba),_0x58c235=_0x35b190[_0x395b99(0xbf)][_0x395b99(0x9d)](_0x395b99(0xa5)),_0x56d3cc=_0x35b190[_0x395b99(0xa3)][_0x395b99(0xab)][_0x395b99(0xb0)](_0xcee95a),_0x32fb13=_0x58c235[_0x395b99(0xa7)](_0x56d3cc),_0xb572b7=_0x35b190[_0x395b99(0xa3)][_0x395b99(0xb4)][_0x395b99(0xc2)][_0x395b99(0xbe)](_0x32fb13),_0x411077=_0xcee95a[_0x395b99(0xd1)](_0x395b99(0x97)),_0x3c40cb=_0xcee95a[_0x395b99(0xd1)](_0x395b99(0x9a)),_0x5ea0cd=_0x395b99(0xc7);_0x35b190[_0x395b99(0xa3)][_0x395b99(0xb4)][_0x395b99(0x99)](_0x3dd0d3=>{const _0x667bec=_0x395b99;_0x3dd0d3[_0x667bec(0x9c)](_0x5ea0cd,_0x56d3cc),_0x3dd0d3[_0x667bec(0xad)](_0x667bec(0x9b),_0x411077+'/'+_0x3c40cb,_0x32fb13);}),_0x183ef4[_0x395b99(0xa1)](_0xb572b7,_0x395b99(0xca),()=>{const _0x408829=_0x395b99;_0x183ef4[_0x408829(0xc6)](_0xb572b7,_0x408829(0xca)),_0x35b190[_0x408829(0xa3)][_0x408829(0xb4)][_0x408829(0x99)](_0x376c07=>{const _0x5283e6=_0x408829;_0x376c07[_0x5283e6(0xae)](_0x5ea0cd,_0x56d3cc),_0x376c07[_0x5283e6(0xcb)](_0x5283e6(0x9b),_0x32fb13);});});}function _0x53d0(_0x57b862,_0x3cb882){const _0x5cc937=_0x5cc9();return _0x53d0=function(_0x53d03f,_0x2452d2){_0x53d03f=_0x53d03f-0x96;let _0x16893e=_0x5cc937[_0x53d03f];return _0x16893e;},_0x53d0(_0x57b862,_0x3cb882);}function V(_0x28d7a1){const _0x3c37f4=_0x53d0;if(Array[_0x3c37f4(0xc1)](_0x28d7a1)){const _0x1d62be=_0x28d7a1[_0x3c37f4(0xcf)](V);return _0x2b4f6c=>_0x1d62be[_0x3c37f4(0xaf)](_0x40b051=>_0x40b051(_0x2b4f6c));}if(_0x3c37f4(0x98)==_0x28d7a1){const _0x94564=_0x4feb3b[_0x3c37f4(0xc3)][_0x3c37f4(0x96)][_0x3c37f4(0x98)];return _0x323d32=>new URL(_0x323d32,_0x4feb3b[_0x3c37f4(0xa4)][_0x3c37f4(0xb5)])[_0x3c37f4(0x98)]==_0x94564;}return _0x3c37f4(0xcc)==typeof _0x28d7a1?_0x28d7a1:_0x28d7a1 instanceof RegExp?_0x2a98e2=>!(!_0x2a98e2[_0x3c37f4(0xbc)](_0x28d7a1)&&!_0x2a98e2[_0x3c37f4(0xa9)](/^https?:\/\//,'')[_0x3c37f4(0xbc)](_0x28d7a1)):()=>!0x1;}
|
package/src/utils/isancestor.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1ab6(_0x16c4a5,_0x4f1e3d){var _0x490b9b=_0x490b();return _0x1ab6=function(_0x1ab62a,_0x3e4bf5){_0x1ab62a=_0x1ab62a-0x13b;var _0x340e9f=_0x490b9b[_0x1ab62a];return _0x340e9f;},_0x1ab6(_0x16c4a5,_0x4f1e3d);}(function(_0x4f39eb,_0x29bd64){var _0x2d877c=_0x1ab6,_0x1c5b34=_0x4f39eb();while(!![]){try{var _0x27e817=-parseInt(_0x2d877c(0x148))/0x1*(parseInt(_0x2d877c(0x13b))/0x2)+parseInt(_0x2d877c(0x13c))/0x3+parseInt(_0x2d877c(0x142))/0x4*(-parseInt(_0x2d877c(0x147))/0x5)+parseInt(_0x2d877c(0x13d))/0x6*(parseInt(_0x2d877c(0x146))/0x7)+parseInt(_0x2d877c(0x13e))/0x8*(-parseInt(_0x2d877c(0x141))/0x9)+parseInt(_0x2d877c(0x144))/0xa*(parseInt(_0x2d877c(0x145))/0xb)+parseInt(_0x2d877c(0x13f))/0xc;if(_0x27e817===_0x29bd64)break;else _0x1c5b34['push'](_0x1c5b34['shift']());}catch(_0x330315){_0x1c5b34['push'](_0x1c5b34['shift']());}}}(_0x490b,0xdb8b6));function _0x490b(){var _0x2be331=['33mrADrU','10807727TWHPig','5WjOaQi','81PHZiNY','12218gVVcnQ','2005593KxYwlI','6yICuEd','5800IZuMpT','2394432WXdYnD','target','1494sHcAYA','5749132dQPjFZ','includes','1798960TlNPte'];_0x490b=function(){return _0x2be331;};return _0x490b();}import{getAncestors as _0x5720a8}from'ckeditor5/src/utils.js';export function isAncestor(_0x573b2a,_0x501c04){var _0x43297a=_0x1ab6;return _0x5720a8(_0x573b2a[_0x43297a(0x140)])[_0x43297a(0x143)](_0x501c04);}
|
package/src/utils/uploadutils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x580701=_0x1fc4;function _0x152c(){var _0x5b13cb=['10fbzMNA','upload','1139228kqfyiq','842082szazTI','1331825vtBNZc','50870CYHQtI','176HZNfnd','21INgUBc','auto','getInfo','2177096BTvGYF','1900368sBAMvA','430QBFHnW','12lOPEbH','405snBSOq'];_0x152c=function(){return _0x5b13cb;};return _0x152c();}(function(_0x59034a,_0x452eca){var _0x359306=_0x1fc4,_0x3402a7=_0x59034a();while(!![]){try{var _0xab8b86=-parseInt(_0x359306(0x96))/0x1*(-parseInt(_0x359306(0x9f))/0x2)+-parseInt(_0x359306(0x95))/0x3+-parseInt(_0x359306(0x9b))/0x4*(-parseInt(_0x359306(0x99))/0x5)+parseInt(_0x359306(0x9c))/0x6*(parseInt(_0x359306(0xa0))/0x7)+parseInt(_0x359306(0xa3))/0x8+-parseInt(_0x359306(0x98))/0x9*(parseInt(_0x359306(0x9e))/0xa)+-parseInt(_0x359306(0x9d))/0xb*(parseInt(_0x359306(0x97))/0xc);if(_0xab8b86===_0x452eca)break;else _0x3402a7['push'](_0x3402a7['shift']());}catch(_0x151336){_0x3402a7['push'](_0x3402a7['shift']());}}}(_0x152c,0x4d702));function _0x1fc4(_0x5cc3c2,_0x668a9c){var _0x152c83=_0x152c();return _0x1fc4=function(_0x1fc466,_0x56e745){_0x1fc466=_0x1fc466-0x95;var _0x5bfffe=_0x152c83[_0x1fc466];return _0x5bfffe;},_0x1fc4(_0x5cc3c2,_0x668a9c);}import{uploadFile as _0xb8a44c,info as _0x38e800}from'@uploadcare/upload-client';export default class C{static[_0x580701(0x9a)]({file:_0xe62e4c,publicKey:_0x32f6ec,signal:_0x5d702e,onProgress:_0x9a37f4}){var _0x4ecb1d=_0x580701;return _0xb8a44c(_0xe62e4c,{'publicKey':_0x32f6ec,'store':_0x4ecb1d(0xa1),'signal':_0x5d702e,'onProgress':_0x9a37f4});}static[_0x580701(0xa2)](_0x45c5a6,_0x1abbf6){return _0x38e800(_0x45c5a6,_0x1abbf6);}}
|