@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250326.2 → 0.0.0-nightly-20250327.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/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- 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/utils/dialogfocusmanagerview.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x122a8f,ObservableMixin as _0x18bf99}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x47fa1d}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4b0bb2}from'ckeditor5/src/icons.js';import _0x11512f from'./uploadcareimageeditformview.js';import _0x12100c from'../../utils/uploadutils.js';import{getImageUrls as _0x363d25,getImageDimension as _0x18d03a}from'../../utils/editingutils.js';import{isAncestor as _0x5147af}from'../../utils/isancestor.js';export default class A extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x18bf99(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2dde92,_0x5aadf6,_0x528571){super(),this['_editor']=_0x2dde92,this['_dialog']=_0x5aadf6,this['_imageElement']=_0x528571,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x4af56d=this['_imageElement'],_0x3f8396=_0x4af56d['getAttribute']('uploadcareImageId'),_0x7f88b5=_0x4af56d['getAttribute']('src');if(_0x3f8396)await this['_loadImageInfo'](_0x3f8396,_0x7f88b5);else{if(this['_imageCache']['has'](_0x7f88b5)){const _0x2365ab=this['_imageCache']['get'](_0x7f88b5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2365ab['url'],this['imageDimension']=_0x2365ab['dimension'],this['imageId']=_0x2365ab['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5cae14}=this['_editor'],t=_0x5cae14['t'],_0xae06b6=new _0x11512f(_0x5cae14,this['imageStatus'],this['_attributes']);_0xae06b6['bind']('status')['to'](this,'imageStatus'),_0xae06b6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xae06b6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xae06b6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xae06b6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4b0bb2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xae06b6,'position':_0x47fa1d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xae06b6['focus']();},'onHide':()=>{_0xae06b6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53fbeb=>!_0x5147af(_0x53fbeb,_0xae06b6['element'])}});}['_loadImageInfo'](_0x5d18c3,_0x4e6554){return _0x12100c['getInfo'](_0x5d18c3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x767897=>{const {width:_0x5f2090,height:_0x3dd5f4}=_0x767897['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e6554,this['imageDimension']={'width':_0x5f2090,'height':_0x3dd5f4},this['imageId']=_0x5d18c3;})['catch'](_0x29a0e2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x29a0e2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3d122d,_0x246c1d){return this['_getImageAsFile'](_0x3d122d)['then'](_0x1d428a=>_0x12100c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x246c1d['signal'],'file':_0x1d428a,'onProgress':_0x5679d5=>{_0x5679d5&&_0x5679d5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5679d5['value']));}}))['then'](_0x5933fd=>{const {width:_0x36d218,height:_0x1375f7}=_0x5933fd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5933fd['cdnUrl'],this['imageDimension']={'width':_0x36d218,'height':_0x1375f7},this['imageId']=_0x5933fd['uuid'],this['imageUploadProgress']=null;const _0x4d7cb3=_0x3d122d['getAttribute']('src');this['_imageCache']['set'](_0x4d7cb3,{'id':_0x5933fd['uuid'],'url':_0x5933fd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x186aa4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x186aa4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x34979d,_0x4418b7){_0x34979d['on']('apply',(_0x2c0639,_0x3a4290)=>{this['_replaceImage'](_0x4418b7,_0x3a4290['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x34979d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x34979d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x37bf61,_0x1b1d83,_0x4425f6){const _0x3ce0f2=this['_editor'],{width:_0x3a9330,height:_0x2c26b7}=_0x18d03a(_0x1b1d83,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x14694f,imageSources:_0x4fa81c}=_0x363d25(_0x1b1d83,_0x3a9330);_0x3ce0f2['model']['change'](_0x14cb09=>{if('$graveyard'===_0x37bf61['root']['rootName']){_0x3ce0f2['execute']('insertImage',{'imageType':_0x37bf61['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x37bf61['getAttributes']()),'uploadcareImageId':_0x4425f6,'src':_0x14694f,'sources':_0x4fa81c,'width':_0x3a9330,'height':_0x2c26b7}});const _0x3f757f=_0x37bf61['getChildren']();_0x37bf61=_0x3ce0f2['model']['document']['selection']['getSelectedElement']();for(const _0x311af4 of _0x3f757f)_0x14cb09['append'](_0x14cb09['cloneElement'](_0x311af4),_0x37bf61);}else _0x14cb09['setSelection'](_0x37bf61,'on'),_0x3ce0f2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x37bf61['getAttributes']()),'uploadcareImageId':_0x4425f6,'src':_0x14694f,'sources':_0x4fa81c,'width':_0x3a9330,'height':_0x2c26b7},_0x37bf61);_0x14cb09['setSelection'](_0x37bf61,'on');});}async['_getImageAsFile'](_0x4a69a8){const _0x40a6bb=_0x122a8f['window'],_0x15b379=_0x122a8f['document']['location']['href'],_0x44e326=new _0x40a6bb['URL'](_0x4a69a8['getAttribute']('src'),_0x15b379);if('data:'===_0x44e326['protocol']){const _0x49d1ca=_0x44e326['href']['split'](','),_0x5ee702=_0x49d1ca[0x0]['match'](/:(.*?);/)[0x1],_0x4c585d=_0x5ee702['split']('/')[0x1],_0x42459d=_0x40a6bb['atob'](_0x49d1ca[_0x49d1ca['length']-0x1]);let _0x538ddd=_0x42459d['length'];const _0x121d7e=new _0x40a6bb['Uint8Array'](_0x538ddd);for(;_0x538ddd--;)_0x121d7e[_0x538ddd]=_0x42459d['charCodeAt'](_0x538ddd);return new _0x40a6bb['File']([_0x121d7e],'image.'+_0x4c585d,{'type':_0x5ee702});}const _0x2ca1c1=_0x44e326['href']['split']('/'),_0x1ad92d=_0x2ca1c1[_0x2ca1c1['length']-0x1],_0x2e9bdb=_0x1ad92d['split']('.')[0x1];return _0x40a6bb['fetch'](_0x44e326['href'])['then'](_0x4b0c66=>_0x4b0c66['clone']()['blob']())['then'](_0x2ebf36=>new _0x40a6bb['File']([_0x2ebf36],_0x1ad92d,{'type':'image/'+_0x2e9bdb}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x301c59,_0xa4b6de){const _0xe15f5f=_0x2978,_0x246213=_0x301c59();while(!![]){try{const _0x1b4cda=-parseInt(_0xe15f5f(0x194))/0x1*(-parseInt(_0xe15f5f(0x191))/0x2)+-parseInt(_0xe15f5f(0x193))/0x3*(parseInt(_0xe15f5f(0x185))/0x4)+parseInt(_0xe15f5f(0x195))/0x5+-parseInt(_0xe15f5f(0x18c))/0x6*(-parseInt(_0xe15f5f(0x196))/0x7)+-parseInt(_0xe15f5f(0x197))/0x8+-parseInt(_0xe15f5f(0x186))/0x9+parseInt(_0xe15f5f(0x18a))/0xa*(parseInt(_0xe15f5f(0x18f))/0xb);if(_0x1b4cda===_0xa4b6de)break;else _0x246213['push'](_0x246213['shift']());}catch(_0x23ebbc){_0x246213['push'](_0x246213['shift']());}}}(_0x7564,0xa726b));function _0x2978(_0x8565cd,_0x556cdb){const _0x756412=_0x7564();return _0x2978=function(_0x29783d,_0x51c5b3){_0x29783d=_0x29783d-0x185;let _0x5edd83=_0x756412[_0x29783d];return _0x5edd83;},_0x2978(_0x8565cd,_0x556cdb);}import{View as _0xd80cb}from'ckeditor5/src/ui.js';function _0x7564(){const _0x395d85=['6428560TXzKKj','3524FGCxbp','11988306DSebTM','set','imageSrc','bindTemplate','19307950Lnncbg','ck-uploadcare-theme','4214706xfhyPP','uc-light','uc-cloud-image-editor','11QjsfbW','image-edit','1392998GJbuAG','setTemplate','2985QAkiSV','1NasZvU','1835525ZzYENx','7CzHpUj'];_0x7564=function(){return _0x395d85;};return _0x7564();}export default class tt extends _0xd80cb{constructor(_0x13a3fe,_0x100b59){const _0x1bf4df=_0x2978;super(_0x13a3fe);const _0x4c3abe=this[_0x1bf4df(0x189)];this[_0x1bf4df(0x187)](_0x1bf4df(0x188),''),this[_0x1bf4df(0x192)]({'tag':_0x1bf4df(0x18e),'attributes':{..._0x100b59,'class':[_0x1bf4df(0x18d),_0x1bf4df(0x18b)],'ctx-name':_0x1bf4df(0x190),'cdn-url':_0x4c3abe['to'](_0x1bf4df(0x188))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x3c620a,IconView as at,View as _0x36dc82}from'ckeditor5/src/ui.js';export default class rt extends _0x36dc82{constructor(_0x310591){super(_0x310591);const t=_0x310591['t'];this['set']('errorType',null);const _0x5088a6=new _0x3c620a(_0x310591);_0x5088a6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5088a6['withText']=!0x0,_0x5088a6['class']='ck-button-action',_0x5088a6['on']('execute',()=>{this['fire']('retry');}),_0x5088a6['bind']('isVisible')['to'](this,'errorType',_0x388190=>'NotFound'!==_0x388190);const _0x456061=new at();_0x456061['content']=et,_0x456061['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2aa95b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x456061,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2aa95b['to']('errorType',_0x2c72e6=>t('NotFound'!==_0x2c72e6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5088a6]},{'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
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0x5377d1,View as _0x38734b}from'ckeditor5/src/ui.js';export default class ta extends _0x38734b{constructor(_0x397b7b){super(_0x397b7b);const t=_0x397b7b['t'],_0x53419e=this['bindTemplate'],_0x345077=new _0x5377d1();_0x345077['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':[_0x345077,{'text':_0x53419e['to']('imageUploadProgress',_0x59538c=>t('Loading\x20image...')+'\x20('+(_0x59538c||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17e8ef=_0x1dc2;function _0x21b3(){const _0x5917ed=['_focusableView','disconnect','set','_editingView','29562Gnqjfy','add','122724fmepuq','ck-reset_all-excluded','_items','length','filter','uploading','change:status','detail','retry','apply','render','addMany','element','clear','5999076oXTJLK','addedNodes','focus','_waitForImageEditorComponent','status','279aFyKFK','_errorView','error','151389DCwjcB','observe','18Yhwheg','ck-uploadcare-form','174TVYZaX','_addErrorViewListeners','cancel','nodeName','div','95624oDcvND','cdnUrl','addEventListener','once','target','fire','uc-cloud-image-editor','2671915CMRfMY','44mBPlMN','toLowerCase','setTemplate','2060460WCSsKO','querySelector','_loadingView','22kPRwCf','_setView','createCollection','_addUploadcareImageEditorListeners','getFocusableElement','ready'];_0x21b3=function(){return _0x5917ed;};return _0x21b3();}function _0x1dc2(_0x3cc677,_0x5afcee){const _0x21b337=_0x21b3();return _0x1dc2=function(_0x1dc2a3,_0x523547){_0x1dc2a3=_0x1dc2a3-0x66;let _0x3ed47e=_0x21b337[_0x1dc2a3];return _0x3ed47e;},_0x1dc2(_0x3cc677,_0x5afcee);}(function(_0x13f441,_0x56f06f){const _0x56f11c=_0x1dc2,_0x4c499e=_0x13f441();while(!![]){try{const _0xf60081=-parseInt(_0x56f11c(0x70))/0x1*(parseInt(_0x56f11c(0x80))/0x2)+parseInt(_0x56f11c(0x9a))/0x3*(-parseInt(_0x56f11c(0x82))/0x4)+parseInt(_0x56f11c(0x6f))/0x5+parseInt(_0x56f11c(0x9c))/0x6*(-parseInt(_0x56f11c(0x98))/0x7)+-parseInt(_0x56f11c(0x68))/0x8*(-parseInt(_0x56f11c(0x95))/0x9)+parseInt(_0x56f11c(0x73))/0xa*(parseInt(_0x56f11c(0x76))/0xb)+parseInt(_0x56f11c(0x90))/0xc;if(_0xf60081===_0x56f06f)break;else _0x4c499e['push'](_0x4c499e['shift']());}catch(_0xce70f7){_0x4c499e['push'](_0x4c499e['shift']());}}}(_0x21b3,0x56bec));import{View as _0x451009}from'ckeditor5/src/ui.js';import _0x26ac67 from'./uploadcareimageeditformloadingview.js';import _0x11da70 from'./uploadcareimageeditformerrorview.js';import _0x14e0ef from'./uploadcareimageeditformeditingview.js';import _0x445100 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x445100{[_0x17e8ef(0x84)];[_0x17e8ef(0x75)];[_0x17e8ef(0x96)];[_0x17e8ef(0x7f)];[_0x17e8ef(0x7c)];constructor(_0x561e1e,_0x5a9674,_0x1fd59a){const _0x3ba694=_0x17e8ef;super(_0x561e1e),this[_0x3ba694(0x84)]=this[_0x3ba694(0x78)](),this[_0x3ba694(0x75)]=new _0x26ac67(_0x561e1e),this[_0x3ba694(0x96)]=new _0x11da70(_0x561e1e),this[_0x3ba694(0x7f)]=new _0x14e0ef(_0x561e1e,_0x1fd59a),this[_0x3ba694(0x7c)]=new _0x451009(_0x561e1e),this[_0x3ba694(0x7c)][_0x3ba694(0x72)](this[_0x3ba694(0x7a)]()),this[_0x3ba694(0x7e)](_0x3ba694(0x94),_0x5a9674),this[_0x3ba694(0x72)]({'tag':_0x3ba694(0x67),'attributes':{'class':['ck',_0x3ba694(0x83),_0x3ba694(0x9b)],'tabindex':'-1'},'children':this[_0x3ba694(0x84)]}),this[_0x3ba694(0x77)](),this[_0x3ba694(0x6b)](_0x3ba694(0x8c),()=>{const _0xc6c881=_0x3ba694;this[_0xc6c881(0x93)](this[_0xc6c881(0x8e)],_0x4f8175=>{const _0x1961e6=_0xc6c881;this[_0x1961e6(0x79)](_0x4f8175);});}),this['on'](_0x3ba694(0x88),()=>{const _0x2ae94d=_0x3ba694;this[_0x2ae94d(0x77)]();}),this[_0x3ba694(0x9d)]();}[_0x17e8ef(0x92)](){const _0xc90549=_0x17e8ef;this[_0xc90549(0x8e)][_0xc90549(0x92)]();}[_0x17e8ef(0x77)](){const _0x2d95a9=_0x17e8ef;switch(this[_0x2d95a9(0x84)][_0x2d95a9(0x8f)](),this[_0x2d95a9(0x94)]){case _0x2d95a9(0x87):this[_0x2d95a9(0x84)][_0x2d95a9(0x81)](this[_0x2d95a9(0x75)]);break;case _0x2d95a9(0x97):this[_0x2d95a9(0x84)][_0x2d95a9(0x81)](this[_0x2d95a9(0x96)]);break;case _0x2d95a9(0x7b):this[_0x2d95a9(0x84)][_0x2d95a9(0x8d)]([this[_0x2d95a9(0x7f)],this[_0x2d95a9(0x7c)]]);}}[_0x17e8ef(0x93)](_0x5257b5,_0x1892dc){const _0x5361fd=_0x17e8ef,_0x1741c1=_0x5361fd(0x6e),_0x3518de=_0x5257b5[_0x5361fd(0x74)](_0x1741c1);if(_0x3518de)return _0x1892dc(_0x3518de);const _0x5afab0=new MutationObserver(_0x5e07bd=>{const _0x5849a6=_0x5361fd,_0xf21d64=_0x5e07bd[_0x5849a6(0x86)](_0x5bf0e3=>_0x5bf0e3[_0x5849a6(0x6c)]===_0x5257b5&&_0x5bf0e3[_0x5849a6(0x91)][_0x5849a6(0x85)]>0x0&&_0x5bf0e3[_0x5849a6(0x91)][0x0][_0x5849a6(0x66)][_0x5849a6(0x71)]()===_0x1741c1);_0xf21d64[_0x5849a6(0x85)]&&(_0x5afab0[_0x5849a6(0x7d)](),_0x1892dc(_0xf21d64[0x0][_0x5849a6(0x91)][0x0]));});_0x5afab0[_0x5361fd(0x99)](_0x5257b5,{'childList':!0x0,'subtree':!0x0});}[_0x17e8ef(0x79)](_0x1ca581){const _0x2d14e7=_0x17e8ef;_0x1ca581[_0x2d14e7(0x6a)](_0x2d14e7(0x8b),_0x53b02c=>{const _0x2ae28a=_0x2d14e7;this[_0x2ae28a(0x6d)](_0x2ae28a(0x8b),{'imageSrc':_0x53b02c[_0x2ae28a(0x89)][_0x2ae28a(0x69)]});}),_0x1ca581[_0x2d14e7(0x6a)](_0x2d14e7(0x9e),()=>{const _0xa78444=_0x2d14e7;this[_0xa78444(0x6d)](_0xa78444(0x9e));});}[_0x17e8ef(0x9d)](){const _0x3ef99d=_0x17e8ef;this[_0x3ef99d(0x96)]['on'](_0x3ef99d(0x8a),()=>{const _0x4e2cd8=_0x3ef99d;this[_0x4e2cd8(0x6d)](_0x4e2cd8(0x8a));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4fdc57=_0x5dae;(function(_0x58f485,_0x33f412){const _0x7e1162=_0x5dae,_0x3ec019=_0x58f485();while(!![]){try{const _0x559e8a=parseInt(_0x7e1162(0x1bd))/0x1+parseInt(_0x7e1162(0x1d2))/0x2+-parseInt(_0x7e1162(0x1cc))/0x3+-parseInt(_0x7e1162(0x1c4))/0x4*(-parseInt(_0x7e1162(0x1c0))/0x5)+-parseInt(_0x7e1162(0x1c6))/0x6+-parseInt(_0x7e1162(0x1c7))/0x7+parseInt(_0x7e1162(0x1bb))/0x8;if(_0x559e8a===_0x33f412)break;else _0x3ec019['push'](_0x3ec019['shift']());}catch(_0x533734){_0x3ec019['push'](_0x3ec019['shift']());}}}(_0x5740,0x633e3));import{Command as _0x2f15d6}from'ckeditor5/src/core.js';import{Dialog as _0x11532b}from'ckeditor5/src/ui.js';import _0x40bc46 from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x2bf1ca}from'../utils/editingutils.js';function _0x5dae(_0x1ebf9e,_0x157019){const _0x57403b=_0x5740();return _0x5dae=function(_0x5daef4,_0x3b9cb8){_0x5daef4=_0x5daef4-0x1b8;let _0x286df0=_0x57403b[_0x5daef4];return _0x286df0;},_0x5dae(_0x1ebf9e,_0x157019);}export default class z extends _0x2f15d6{[_0x4fdc57(0x1cd)];static get[_0x4fdc57(0x1d5)](){return[_0x11532b];}[_0x4fdc57(0x1c5)];constructor(_0x57fe0b){const _0x56a123=_0x4fdc57;super(_0x57fe0b),this[_0x56a123(0x1cd)]=void 0x0,this[_0x56a123(0x1c5)]=_0x2bf1ca(_0x57fe0b[_0x56a123(0x1c3)][_0x56a123(0x1b8)](_0x56a123(0x1d3))||[]),this[_0x56a123(0x1cb)]({'isActive':!0x1});}[_0x4fdc57(0x1ce)](){const _0x7d848f=_0x4fdc57,_0x3dfe4a=this[_0x7d848f(0x1b9)][_0x7d848f(0x1d4)][_0x7d848f(0x1ba)][_0x7d848f(0x1bc)][_0x7d848f(0x1c9)]();this[_0x7d848f(0x1d1)]=this[_0x7d848f(0x1c5)](_0x3dfe4a);}[_0x4fdc57(0x1bf)](){const _0x1e2cee=_0x4fdc57;this[_0x1e2cee(0x1cd)]&&(this[_0x1e2cee(0x1d0)](_0x1e2cee(0x1ca)),this[_0x1e2cee(0x1cd)]=void 0x0);const _0x2c55a7=this[_0x1e2cee(0x1b9)][_0x1e2cee(0x1d4)][_0x1e2cee(0x1ba)][_0x1e2cee(0x1bc)][_0x1e2cee(0x1c9)]();_0x2c55a7&&(_0x2c55a7['is'](_0x1e2cee(0x1be),_0x1e2cee(0x1cf))||_0x2c55a7['is'](_0x1e2cee(0x1be),_0x1e2cee(0x1c2)))&&(this[_0x1e2cee(0x1cd)]=new _0x40bc46(this[_0x1e2cee(0x1b9)],this[_0x1e2cee(0x1b9)][_0x1e2cee(0x1c1)][_0x1e2cee(0x1b8)](_0x11532b),_0x2c55a7),this[_0x1e2cee(0x1c8)](_0x1e2cee(0x1ca))['to'](this[_0x1e2cee(0x1cd)],_0x1e2cee(0x1ca)));}}function _0x5740(){const _0x21a387=['getSelectedElement','isActive','set','1861377vAVtnT','imageEditController','refresh','imageBlock','unbind','isEnabled','1312922ohEPad','uploadcare.allowExternalImagesEditing','model','requires','get','editor','document','7118736yEDhhv','selection','264293sFmCCo','element','execute','4835AQVzto','plugins','imageInline','config','820qejwLg','_isEditable','2049420aVLjBb','4482121iiFNNX','bind'];_0x5740=function(){return _0x21a387;};return _0x5740();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc0a00f=_0x2fa8;function _0x2fa8(_0x34c851,_0x2fae83){const _0x191763=_0x1917();return _0x2fa8=function(_0x2fa81d,_0x5888d5){_0x2fa81d=_0x2fa81d-0x18d;let _0x321b00=_0x191763[_0x2fa81d];return _0x321b00;},_0x2fa8(_0x34c851,_0x2fae83);}(function(_0x557b98,_0x586eed){const _0x28f96e=_0x2fa8,_0x1bc460=_0x557b98();while(!![]){try{const _0x404ee7=-parseInt(_0x28f96e(0x190))/0x1+parseInt(_0x28f96e(0x1a1))/0x2+parseInt(_0x28f96e(0x19d))/0x3+-parseInt(_0x28f96e(0x194))/0x4*(-parseInt(_0x28f96e(0x18e))/0x5)+parseInt(_0x28f96e(0x19f))/0x6*(parseInt(_0x28f96e(0x1a2))/0x7)+-parseInt(_0x28f96e(0x196))/0x8*(parseInt(_0x28f96e(0x19c))/0x9)+-parseInt(_0x28f96e(0x199))/0xa;if(_0x404ee7===_0x586eed)break;else _0x1bc460['push'](_0x1bc460['shift']());}catch(_0x2b349a){_0x1bc460['push'](_0x1bc460['shift']());}}}(_0x1917,0xc345c));import{Plugin as _0x58da82}from'ckeditor5/src/core.js';import{Notification as _0x49dab6}from'ckeditor5/src/ui.js';function _0x1917(){const _0x21b249=['init','uploadcareImageReplace','9XfPZUS','2423064IStOSh','UploadcareImageEditEditing','6NOtOKy','pluginName','3089880kjhAnF','7433279pOChMS','commands','141755qwcXkE','add','314336gRsZJV','ImageEditing','requires','isPremiumPlugin','220NMOKBZ','isOfficialPlugin','5673488ldqNJK','ImageUtils','uploadcareImageEdit','31504720sznjQl'];_0x1917=function(){return _0x21b249;};return _0x1917();}import _0x575abd from'./uploadcareimageeditcommand.js';import _0x21bf11 from'./uploadcareimagereplacecommand.js';import _0x5648ca from'../uploadcareediting.js';export default class g extends _0x58da82{static get[_0xc0a00f(0x1a0)](){const _0x3974fb=_0xc0a00f;return _0x3974fb(0x19e);}static get[_0xc0a00f(0x192)](){const _0x5a883e=_0xc0a00f;return[_0x5648ca,_0x49dab6,_0x5a883e(0x197),_0x5a883e(0x191)];}static get[_0xc0a00f(0x195)](){return!0x0;}static get[_0xc0a00f(0x193)](){return!0x0;}[_0xc0a00f(0x19a)](){const _0xb54c73=_0xc0a00f,{editor:_0x587153}=this;_0x587153[_0xb54c73(0x18d)][_0xb54c73(0x18f)](_0xb54c73(0x198),new _0x575abd(_0x587153)),_0x587153[_0xb54c73(0x18d)][_0xb54c73(0x18f)](_0xb54c73(0x19b),new _0x21bf11(_0x587153));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3b299d=_0x26fe;(function(_0x32ae51,_0x45398e){var _0x1878aa=_0x26fe,_0x1d07dc=_0x32ae51();while(!![]){try{var _0x30b31d=-parseInt(_0x1878aa(0xfa))/0x1+parseInt(_0x1878aa(0xfb))/0x2*(-parseInt(_0x1878aa(0xf9))/0x3)+parseInt(_0x1878aa(0xfc))/0x4*(-parseInt(_0x1878aa(0x104))/0x5)+parseInt(_0x1878aa(0xf8))/0x6*(-parseInt(_0x1878aa(0x106))/0x7)+-parseInt(_0x1878aa(0x100))/0x8+parseInt(_0x1878aa(0x105))/0x9*(parseInt(_0x1878aa(0xfd))/0xa)+parseInt(_0x1878aa(0x103))/0xb;if(_0x30b31d===_0x45398e)break;else _0x1d07dc['push'](_0x1d07dc['shift']());}catch(_0x11231a){_0x1d07dc['push'](_0x1d07dc['shift']());}}}(_0x539a,0x38ee3));function _0x26fe(_0x30438b,_0x3f76e4){var _0x539aa8=_0x539a();return _0x26fe=function(_0x26feda,_0x150999){_0x26feda=_0x26feda-0xf6;var _0x133b9d=_0x539aa8[_0x26feda];return _0x133b9d;},_0x26fe(_0x30438b,_0x3f76e4);}import{FocusTracker as _0x4aa11b}from'ckeditor5/src/utils.js';import{View as _0x1a402d,FocusCycler as _0x2253ed}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x539a(){var _0x106b39=['forwardCycle','focusTracker','getFocusableElement','fire','312ZUTZVg','436143OmiBip','93511KxbCwz','4jAJfJL','780928IQcgMH','115460vEhICR','focusCycler','bindTemplate','1512968McGeSN','true','createCollection','12998623IQdDOS','10SErOmN','54gUyEiw','7259HkfIpK','div'];_0x539a=function(){return _0x106b39;};return _0x539a();}export default class G extends _0x1a402d{[_0x3b299d(0x109)];[_0x3b299d(0xfe)];constructor(_0x1b8fd3){var _0x3414f6=_0x3b299d;super(_0x1b8fd3),this[_0x3414f6(0x109)]=new _0x4aa11b(),this[_0x3414f6(0xfe)]=new _0x2253ed({'focusables':this[_0x3414f6(0x102)](),'focusTracker':this[_0x3414f6(0x109)]});}[_0x3b299d(0xf6)](){var _0x2b2a0b=_0x3b299d;return{'tag':_0x2b2a0b(0x107),'attributes':{'aria-hidden':_0x2b2a0b(0x101),'tabindex':'0'},'on':{'focus':this[_0x2b2a0b(0xff)]['to'](()=>{var _0x164d85=_0x2b2a0b;this[_0x164d85(0xfe)][_0x164d85(0xf7)](_0x164d85(0x108));})}};}}
|