@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250222.0 → 0.0.0-nightly-next-20250223.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 _0x54309f,ObservableMixin as _0x47fadc}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2842f6}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x360df2}from'ckeditor5/src/icons.js';import _0x56e9be from'./uploadcareimageeditformview.js';import _0x455cae from'../../utils/uploadutils.js';import{getImageUrls as _0x59e74a,getImageDimension as _0x1029d5}from'../../utils/editingutils.js';import{isAncestor as _0x5f5d7d}from'../../utils/isancestor.js';export default class A extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47fadc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5811b1,_0x337e17,_0x13e03c){super(),this['_editor']=_0x5811b1,this['_dialog']=_0x337e17,this['_imageElement']=_0x13e03c,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 _0x4fc0b4=this['_imageElement'],_0x816ed=_0x4fc0b4['getAttribute']('uploadcareImageId'),_0x494b22=_0x4fc0b4['getAttribute']('src');if(_0x816ed)await this['_loadImageInfo'](_0x816ed,_0x494b22);else{if(this['_imageCache']['has'](_0x494b22)){const _0x5b735a=this['_imageCache']['get'](_0x494b22);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b735a['url'],this['imageDimension']=_0x5b735a['dimension'],this['imageId']=_0x5b735a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1e1837}=this['_editor'],t=_0x1e1837['t'],_0x450aaa=new _0x56e9be(_0x1e1837,this['imageStatus'],this['_attributes']);_0x450aaa['bind']('status')['to'](this,'imageStatus'),_0x450aaa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x450aaa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x450aaa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x450aaa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x360df2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x450aaa,'position':_0x2842f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x450aaa['focus']();},'onHide':()=>{_0x450aaa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58f304=>!_0x5f5d7d(_0x58f304,_0x450aaa['element'])}});}['_loadImageInfo'](_0x536f0f,_0x3c204b){return _0x455cae['getInfo'](_0x536f0f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xa3d4d2=>{const {width:_0x2fac19,height:_0x3b2374}=_0xa3d4d2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c204b,this['imageDimension']={'width':_0x2fac19,'height':_0x3b2374},this['imageId']=_0x536f0f;})['catch'](_0x40358a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x40358a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x511c40,_0x18d49a){return this['_getImageAsFile'](_0x511c40)['then'](_0xfd934d=>_0x455cae['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x18d49a['signal'],'file':_0xfd934d,'onProgress':_0x136413=>{_0x136413&&_0x136413['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x136413['value']));}}))['then'](_0x8a6875=>{const {width:_0x33e96a,height:_0x317379}=_0x8a6875['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x8a6875['cdnUrl'],this['imageDimension']={'width':_0x33e96a,'height':_0x317379},this['imageId']=_0x8a6875['uuid'],this['imageUploadProgress']=null;const _0x55f483=_0x511c40['getAttribute']('src');this['_imageCache']['set'](_0x55f483,{'id':_0x8a6875['uuid'],'url':_0x8a6875['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x589daa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x589daa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x414319,_0xbcc3d0){_0x414319['on']('apply',(_0x450b5b,_0x1e105e)=>{this['_replaceImage'](_0xbcc3d0,_0x1e105e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x414319['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x414319['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4302ac,_0x22a853,_0x448b75){const _0x5613fc=this['_editor'],{width:_0x290f04,height:_0x5d3c3d}=_0x1029d5(_0x22a853,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4bc949,imageSources:_0x3f1c38}=_0x59e74a(_0x22a853,_0x290f04);_0x5613fc['model']['change'](_0x5686b4=>{if('$graveyard'===_0x4302ac['root']['rootName']){_0x5613fc['execute']('insertImage',{'imageType':_0x4302ac['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4302ac['getAttributes']()),'uploadcareImageId':_0x448b75,'src':_0x4bc949,'sources':_0x3f1c38,'width':_0x290f04,'height':_0x5d3c3d}});const _0xaf1929=_0x4302ac['getChildren']();_0x4302ac=_0x5613fc['model']['document']['selection']['getSelectedElement']();for(const _0x5e25f9 of _0xaf1929)_0x5686b4['append'](_0x5686b4['cloneElement'](_0x5e25f9),_0x4302ac);}else _0x5686b4['setSelection'](_0x4302ac,'on'),_0x5613fc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4302ac['getAttributes']()),'uploadcareImageId':_0x448b75,'src':_0x4bc949,'sources':_0x3f1c38,'width':_0x290f04,'height':_0x5d3c3d},_0x4302ac);_0x5686b4['setSelection'](_0x4302ac,'on');});}async['_getImageAsFile'](_0x22297c){const _0x4e2fd7=_0x54309f['window'],_0x27692c=_0x54309f['document']['location']['href'],_0x2b990c=new _0x4e2fd7['URL'](_0x22297c['getAttribute']('src'),_0x27692c);if('data:'===_0x2b990c['protocol']){const _0x188c15=_0x2b990c['href']['split'](','),_0x55dbfa=_0x188c15[0x0]['match'](/:(.*?);/)[0x1],_0x2166b8=_0x55dbfa['split']('/')[0x1],_0x32b084=_0x4e2fd7['atob'](_0x188c15[_0x188c15['length']-0x1]);let _0x44bff3=_0x32b084['length'];const _0x374a16=new _0x4e2fd7['Uint8Array'](_0x44bff3);for(;_0x44bff3--;)_0x374a16[_0x44bff3]=_0x32b084['charCodeAt'](_0x44bff3);return new _0x4e2fd7['File']([_0x374a16],'image.'+_0x2166b8,{'type':_0x55dbfa});}const _0xb4fac=_0x2b990c['href']['split']('/'),_0x18ae9f=_0xb4fac[_0xb4fac['length']-0x1],_0x4a06c4=_0x18ae9f['split']('.')[0x1];return _0x4e2fd7['fetch'](_0x2b990c['href'])['then'](_0x52576c=>_0x52576c['clone']()['blob']())['then'](_0x1f8852=>new _0x4e2fd7['File']([_0x1f8852],_0x18ae9f,{'type':'image/'+_0x4a06c4}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4211a3,_0x4cd8b2){const _0x26c7e1=_0x503b,_0x33dd91=_0x4211a3();while(!![]){try{const _0x2a6542=-parseInt(_0x26c7e1(0x18d))/0x1+parseInt(_0x26c7e1(0x18b))/0x2+-parseInt(_0x26c7e1(0x18a))/0x3*(-parseInt(_0x26c7e1(0x18c))/0x4)+-parseInt(_0x26c7e1(0x18e))/0x5+parseInt(_0x26c7e1(0x196))/0x6+parseInt(_0x26c7e1(0x193))/0x7*(parseInt(_0x26c7e1(0x186))/0x8)+-parseInt(_0x26c7e1(0x192))/0x9;if(_0x2a6542===_0x4cd8b2)break;else _0x33dd91['push'](_0x33dd91['shift']());}catch(_0x57749d){_0x33dd91['push'](_0x33dd91['shift']());}}}(_0x1413,0x20ddd));import{View as _0x56914d}from'ckeditor5/src/ui.js';function _0x503b(_0x354d47,_0x585b99){const _0x141399=_0x1413();return _0x503b=function(_0x503b2a,_0x3ffcc){_0x503b2a=_0x503b2a-0x186;let _0x4d1276=_0x141399[_0x503b2a];return _0x4d1276;},_0x503b(_0x354d47,_0x585b99);}export default class tt extends _0x56914d{constructor(_0x46b092,_0x59e349){const _0x1b7a7a=_0x503b;super(_0x46b092);const _0x2f63a5=this[_0x1b7a7a(0x189)];this[_0x1b7a7a(0x194)](_0x1b7a7a(0x188),''),this[_0x1b7a7a(0x187)]({'tag':_0x1b7a7a(0x190),'attributes':{..._0x59e349,'class':[_0x1b7a7a(0x191),_0x1b7a7a(0x18f)],'ctx-name':_0x1b7a7a(0x195),'cdn-url':_0x2f63a5['to'](_0x1b7a7a(0x188))}});}}function _0x1413(){const _0x5e6920=['uc-light','381924dECPiy','56AfEZrA','set','image-edit','1251294aPTdPO','140648YhpnHv','setTemplate','imageSrc','bindTemplate','135ghkVGi','235438pycyDn','3156brHHGm','100518krjslg','1124230OQWmjW','ck-uploadcare-theme','uc-cloud-image-editor'];_0x1413=function(){return _0x5e6920;};return _0x1413();}
|
|
@@ -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 _0x3057d6,IconView as at,View as _0x48b622}from'ckeditor5/src/ui.js';export default class rt extends _0x48b622{constructor(_0x51d6c1){super(_0x51d6c1);const t=_0x51d6c1['t'];this['set']('errorType',null);const _0x212744=new _0x3057d6(_0x51d6c1);_0x212744['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x212744['withText']=!0x0,_0x212744['class']='ck-button-action',_0x212744['on']('execute',()=>{this['fire']('retry');}),_0x212744['bind']('isVisible')['to'](this,'errorType',_0x170918=>'NotFound'!==_0x170918);const _0x2d0490=new at();_0x2d0490['content']=et,_0x2d0490['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16ad50=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':[_0x2d0490,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16ad50['to']('errorType',_0x5d0dcb=>t('NotFound'!==_0x5d0dcb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x212744]},{'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 _0xd1cb26,View as _0x4d71c9}from'ckeditor5/src/ui.js';export default class ta extends _0x4d71c9{constructor(_0x463785){super(_0x463785);const t=_0x463785['t'],_0x542090=this['bindTemplate'],_0x24e828=new _0xd1cb26();_0x24e828['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':[_0x24e828,{'text':_0x542090['to']('imageUploadProgress',_0x92e790=>t('Loading\x20image...')+'\x20('+(_0x92e790||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
|
+
function _0x4a46(){const _0x105ca1=['494720TfzLbz','clear','uc-cloud-image-editor','error','uploading','target','204790ZhIlpz','5621864XMQMQB','639784HjdgWJ','setTemplate','_errorView','7yOODXV','disconnect','once','_focusableView','_items','ck-reset_all-excluded','addEventListener','apply','add','cancel','5GgPmGd','_editingView','_loadingView','14182272XLClsA','toLowerCase','_addErrorViewListeners','_addUploadcareImageEditorListeners','2830908RVJAhC','addMany','ready','1711143NzaZHD','_waitForImageEditorComponent','change:status','filter','retry','element','createCollection','addedNodes','div','cdnUrl','detail','getFocusableElement','focus','ck-uploadcare-form','observe','_setView','nodeName','set','querySelector','fire','length','render','status'];_0x4a46=function(){return _0x105ca1;};return _0x4a46();}const _0xccab62=_0x2567;(function(_0x193e6d,_0x5dd975){const _0x1245ef=_0x2567,_0x2b4a68=_0x193e6d();while(!![]){try{const _0x2f9a81=-parseInt(_0x1245ef(0x1bb))/0x1+-parseInt(_0x1245ef(0x1b5))/0x2+-parseInt(_0x1245ef(0x19e))/0x3+parseInt(_0x1245ef(0x1bd))/0x4*(parseInt(_0x1245ef(0x194))/0x5)+-parseInt(_0x1245ef(0x19b))/0x6*(-parseInt(_0x1245ef(0x1c0))/0x7)+-parseInt(_0x1245ef(0x1bc))/0x8+parseInt(_0x1245ef(0x197))/0x9;if(_0x2f9a81===_0x5dd975)break;else _0x2b4a68['push'](_0x2b4a68['shift']());}catch(_0xe00299){_0x2b4a68['push'](_0x2b4a68['shift']());}}}(_0x4a46,0x75c04));import{View as _0x2c17b2}from'ckeditor5/src/ui.js';function _0x2567(_0x230acb,_0x563c4b){const _0x4a464e=_0x4a46();return _0x2567=function(_0x25672e,_0x4e1d11){_0x25672e=_0x25672e-0x18f;let _0x3c6513=_0x4a464e[_0x25672e];return _0x3c6513;},_0x2567(_0x230acb,_0x563c4b);}import _0x3f690a from'./uploadcareimageeditformloadingview.js';import _0x55f1b0 from'./uploadcareimageeditformerrorview.js';import _0x1040fd from'./uploadcareimageeditformeditingview.js';import _0x17b4e5 from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export default class Z extends _0x17b4e5{[_0xccab62(0x1c4)];[_0xccab62(0x196)];[_0xccab62(0x1bf)];[_0xccab62(0x195)];[_0xccab62(0x1c3)];constructor(_0x31f06c,_0x5af1f4,_0x57e619){const _0x1dfbd4=_0xccab62;super(_0x31f06c),this[_0x1dfbd4(0x1c4)]=this[_0x1dfbd4(0x1a4)](),this[_0x1dfbd4(0x196)]=new _0x3f690a(_0x31f06c),this[_0x1dfbd4(0x1bf)]=new _0x55f1b0(_0x31f06c),this[_0x1dfbd4(0x195)]=new _0x1040fd(_0x31f06c,_0x57e619),this[_0x1dfbd4(0x1c3)]=new _0x2c17b2(_0x31f06c),this[_0x1dfbd4(0x1c3)][_0x1dfbd4(0x1be)](this[_0x1dfbd4(0x1a9)]()),this[_0x1dfbd4(0x1af)](_0x1dfbd4(0x1b4),_0x5af1f4),this[_0x1dfbd4(0x1be)]({'tag':_0x1dfbd4(0x1a6),'attributes':{'class':['ck',_0x1dfbd4(0x18f),_0x1dfbd4(0x1ab)],'tabindex':'-1'},'children':this[_0x1dfbd4(0x1c4)]}),this[_0x1dfbd4(0x1ad)](),this[_0x1dfbd4(0x1c2)](_0x1dfbd4(0x1b3),()=>{const _0x10a1dd=_0x1dfbd4;this[_0x10a1dd(0x19f)](this[_0x10a1dd(0x1a3)],_0xfaac6c=>{const _0x44030e=_0x10a1dd;this[_0x44030e(0x19a)](_0xfaac6c);});}),this['on'](_0x1dfbd4(0x1a0),()=>{const _0x2f1340=_0x1dfbd4;this[_0x2f1340(0x1ad)]();}),this[_0x1dfbd4(0x199)]();}[_0xccab62(0x1aa)](){const _0x4d6049=_0xccab62;this[_0x4d6049(0x1a3)][_0x4d6049(0x1aa)]();}[_0xccab62(0x1ad)](){const _0x4ef702=_0xccab62;switch(this[_0x4ef702(0x1c4)][_0x4ef702(0x1b6)](),this[_0x4ef702(0x1b4)]){case _0x4ef702(0x1b9):this[_0x4ef702(0x1c4)][_0x4ef702(0x192)](this[_0x4ef702(0x196)]);break;case _0x4ef702(0x1b8):this[_0x4ef702(0x1c4)][_0x4ef702(0x192)](this[_0x4ef702(0x1bf)]);break;case _0x4ef702(0x19d):this[_0x4ef702(0x1c4)][_0x4ef702(0x19c)]([this[_0x4ef702(0x195)],this[_0x4ef702(0x1c3)]]);}}[_0xccab62(0x19f)](_0x10d6ba,_0x4b3def){const _0x38fe6a=_0xccab62,_0x12fcab=_0x38fe6a(0x1b7),_0x32ffe5=_0x10d6ba[_0x38fe6a(0x1b0)](_0x12fcab);if(_0x32ffe5)return _0x4b3def(_0x32ffe5);const _0x5c653d=new MutationObserver(_0x46bbd5=>{const _0x4972c2=_0x38fe6a,_0x3fbbe3=_0x46bbd5[_0x4972c2(0x1a1)](_0x4d29b3=>_0x4d29b3[_0x4972c2(0x1ba)]===_0x10d6ba&&_0x4d29b3[_0x4972c2(0x1a5)][_0x4972c2(0x1b2)]>0x0&&_0x4d29b3[_0x4972c2(0x1a5)][0x0][_0x4972c2(0x1ae)][_0x4972c2(0x198)]()===_0x12fcab);_0x3fbbe3[_0x4972c2(0x1b2)]&&(_0x5c653d[_0x4972c2(0x1c1)](),_0x4b3def(_0x3fbbe3[0x0][_0x4972c2(0x1a5)][0x0]));});_0x5c653d[_0x38fe6a(0x1ac)](_0x10d6ba,{'childList':!0x0,'subtree':!0x0});}[_0xccab62(0x19a)](_0x2297b4){const _0x459fe6=_0xccab62;_0x2297b4[_0x459fe6(0x190)](_0x459fe6(0x191),_0x2c31f2=>{const _0x812fc5=_0x459fe6;this[_0x812fc5(0x1b1)](_0x812fc5(0x191),{'imageSrc':_0x2c31f2[_0x812fc5(0x1a8)][_0x812fc5(0x1a7)]});}),_0x2297b4[_0x459fe6(0x190)](_0x459fe6(0x193),()=>{const _0x37b551=_0x459fe6;this[_0x37b551(0x1b1)](_0x37b551(0x193));});}[_0xccab62(0x199)](){const _0x4af99a=_0xccab62;this[_0x4af99a(0x1bf)]['on'](_0x4af99a(0x1a2),()=>{const _0x55c7ef=_0x4af99a;this[_0x55c7ef(0x1b1)](_0x55c7ef(0x1a2));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x362194=_0x1f21;(function(_0x145ec6,_0x585d5e){const _0x350b6c=_0x1f21,_0x3075d0=_0x145ec6();while(!![]){try{const _0x171bb5=-parseInt(_0x350b6c(0x117))/0x1*(-parseInt(_0x350b6c(0x121))/0x2)+parseInt(_0x350b6c(0x127))/0x3+-parseInt(_0x350b6c(0x12d))/0x4*(-parseInt(_0x350b6c(0x119))/0x5)+-parseInt(_0x350b6c(0x11a))/0x6+-parseInt(_0x350b6c(0x12c))/0x7+-parseInt(_0x350b6c(0x112))/0x8+-parseInt(_0x350b6c(0x111))/0x9*(-parseInt(_0x350b6c(0x114))/0xa);if(_0x171bb5===_0x585d5e)break;else _0x3075d0['push'](_0x3075d0['shift']());}catch(_0x4273bb){_0x3075d0['push'](_0x3075d0['shift']());}}}(_0xafc5,0xd21de));function _0xafc5(){const _0x4e0baa=['refresh','editor','bind','imageBlock','5105555lwFSTn','17876uMQcud','imageEditController','unbind','selection','161523RgCBic','9711464WtijMu','isEnabled','1390lUhqZI','_isEditable','document','33671jTpOyN','config','835gJqCFq','8040060wwmOxY','model','getSelectedElement','execute','plugins','requires','imageInline','40TzhuUa','uploadcare.allowExternalImagesEditing','get','set','isActive','element','688710WPHRgd'];_0xafc5=function(){return _0x4e0baa;};return _0xafc5();}import{Command as _0x161b02}from'ckeditor5/src/core.js';import{Dialog as _0x2e8002}from'ckeditor5/src/ui.js';import _0x22a9ee from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x47585d}from'../utils/editingutils.js';function _0x1f21(_0x3696b4,_0x31ba9a){const _0xafc506=_0xafc5();return _0x1f21=function(_0x1f2112,_0xf9ef6c){_0x1f2112=_0x1f2112-0x10e;let _0x1a1063=_0xafc506[_0x1f2112];return _0x1a1063;},_0x1f21(_0x3696b4,_0x31ba9a);}export default class z extends _0x161b02{[_0x362194(0x10e)];static get[_0x362194(0x11f)](){return[_0x2e8002];}[_0x362194(0x115)];constructor(_0x1795b1){const _0x764aff=_0x362194;super(_0x1795b1),this[_0x764aff(0x10e)]=void 0x0,this[_0x764aff(0x115)]=_0x47585d(_0x1795b1[_0x764aff(0x118)][_0x764aff(0x123)](_0x764aff(0x122))||[]),this[_0x764aff(0x124)]({'isActive':!0x1});}[_0x362194(0x128)](){const _0x98dc9c=_0x362194,_0x6ee38c=this[_0x98dc9c(0x129)][_0x98dc9c(0x11b)][_0x98dc9c(0x116)][_0x98dc9c(0x110)][_0x98dc9c(0x11c)]();this[_0x98dc9c(0x113)]=this[_0x98dc9c(0x115)](_0x6ee38c);}[_0x362194(0x11d)](){const _0xed0f4a=_0x362194;this[_0xed0f4a(0x10e)]&&(this[_0xed0f4a(0x10f)](_0xed0f4a(0x125)),this[_0xed0f4a(0x10e)]=void 0x0);const _0x269790=this[_0xed0f4a(0x129)][_0xed0f4a(0x11b)][_0xed0f4a(0x116)][_0xed0f4a(0x110)][_0xed0f4a(0x11c)]();_0x269790&&(_0x269790['is'](_0xed0f4a(0x126),_0xed0f4a(0x12b))||_0x269790['is'](_0xed0f4a(0x126),_0xed0f4a(0x120)))&&(this[_0xed0f4a(0x10e)]=new _0x22a9ee(this[_0xed0f4a(0x129)],this[_0xed0f4a(0x129)][_0xed0f4a(0x11e)][_0xed0f4a(0x123)](_0x2e8002),_0x269790),this[_0xed0f4a(0x12a)](_0xed0f4a(0x125))['to'](this[_0xed0f4a(0x10e)],_0xed0f4a(0x125)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43fc0e=_0x1058;(function(_0x429495,_0x291742){const _0x122eaa=_0x1058,_0x3a80e7=_0x429495();while(!![]){try{const _0x2777dc=parseInt(_0x122eaa(0x181))/0x1+parseInt(_0x122eaa(0x17d))/0x2+parseInt(_0x122eaa(0x189))/0x3*(-parseInt(_0x122eaa(0x182))/0x4)+-parseInt(_0x122eaa(0x17c))/0x5+-parseInt(_0x122eaa(0x183))/0x6*(-parseInt(_0x122eaa(0x18a))/0x7)+-parseInt(_0x122eaa(0x192))/0x8*(parseInt(_0x122eaa(0x185))/0x9)+-parseInt(_0x122eaa(0x180))/0xa*(-parseInt(_0x122eaa(0x18c))/0xb);if(_0x2777dc===_0x291742)break;else _0x3a80e7['push'](_0x3a80e7['shift']());}catch(_0x5ee4ae){_0x3a80e7['push'](_0x3a80e7['shift']());}}}(_0x57cf,0x9dd99));import{Plugin as _0x28e674}from'ckeditor5/src/core.js';import{Notification as _0x465c04}from'ckeditor5/src/ui.js';function _0x57cf(){const _0x26f7ea=['isOfficialPlugin','ImageEditing','9zFjfsN','5596003biPGUo','uploadcareImageEdit','2243065irRBzI','requires','pluginName','commands','ImageUtils','init','4264jjqOfn','1052250DGOqpg','786782eHXkkT','UploadcareImageEditEditing','add','30AIWjxc','352066XZlKhN','1012932AcSTGU','6gVZujX','uploadcareImageReplace','9117esWpqh','isPremiumPlugin'];_0x57cf=function(){return _0x26f7ea;};return _0x57cf();}import _0x248597 from'./uploadcareimageeditcommand.js';import _0xb0d180 from'./uploadcareimagereplacecommand.js';function _0x1058(_0x13dca4,_0x5918c9){const _0x57cf67=_0x57cf();return _0x1058=function(_0x105835,_0xa60b1d){_0x105835=_0x105835-0x17c;let _0x3f4d36=_0x57cf67[_0x105835];return _0x3f4d36;},_0x1058(_0x13dca4,_0x5918c9);}import _0x382972 from'../uploadcareediting.js';export default class g extends _0x28e674{static get[_0x43fc0e(0x18e)](){const _0x4a1fcb=_0x43fc0e;return _0x4a1fcb(0x17e);}static get[_0x43fc0e(0x18d)](){const _0x53c055=_0x43fc0e;return[_0x382972,_0x465c04,_0x53c055(0x190),_0x53c055(0x188)];}static get[_0x43fc0e(0x187)](){return!0x0;}static get[_0x43fc0e(0x186)](){return!0x0;}[_0x43fc0e(0x191)](){const _0xf6c264=_0x43fc0e,{editor:_0x4898bd}=this;_0x4898bd[_0xf6c264(0x18f)][_0xf6c264(0x17f)](_0xf6c264(0x18b),new _0x248597(_0x4898bd)),_0x4898bd[_0xf6c264(0x18f)][_0xf6c264(0x17f)](_0xf6c264(0x184),new _0xb0d180(_0x4898bd));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5d79b5=_0x49c0;(function(_0x37792a,_0x240006){var _0x129150=_0x49c0,_0x167c9b=_0x37792a();while(!![]){try{var _0x4f3216=-parseInt(_0x129150(0x1ab))/0x1*(-parseInt(_0x129150(0x1aa))/0x2)+parseInt(_0x129150(0x19e))/0x3+parseInt(_0x129150(0x1a5))/0x4+parseInt(_0x129150(0x1a6))/0x5+parseInt(_0x129150(0x1a2))/0x6*(-parseInt(_0x129150(0x19a))/0x7)+parseInt(_0x129150(0x19b))/0x8*(-parseInt(_0x129150(0x1a1))/0x9)+-parseInt(_0x129150(0x199))/0xa*(parseInt(_0x129150(0x19c))/0xb);if(_0x4f3216===_0x240006)break;else _0x167c9b['push'](_0x167c9b['shift']());}catch(_0x4054a8){_0x167c9b['push'](_0x167c9b['shift']());}}}(_0x3d8b,0xc920b));function _0x49c0(_0x2c9220,_0x493747){var _0x3d8b13=_0x3d8b();return _0x49c0=function(_0x49c0d3,_0x1b96e0){_0x49c0d3=_0x49c0d3-0x199;var _0x21150f=_0x3d8b13[_0x49c0d3];return _0x21150f;},_0x49c0(_0x2c9220,_0x493747);}import{FocusTracker as _0x22cd5a}from'ckeditor5/src/utils.js';import{View as _0x4098ec,FocusCycler as _0x3bf02a}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export default class G extends _0x4098ec{[_0x5d79b5(0x1a9)];[_0x5d79b5(0x1a7)];constructor(_0x527565){var _0x4559ff=_0x5d79b5;super(_0x527565),this[_0x4559ff(0x1a9)]=new _0x22cd5a(),this[_0x4559ff(0x1a7)]=new _0x3bf02a({'focusables':this[_0x4559ff(0x1a8)](),'focusTracker':this[_0x4559ff(0x1a9)]});}[_0x5d79b5(0x1ac)](){var _0x4855b7=_0x5d79b5;return{'tag':_0x4855b7(0x19f),'attributes':{'aria-hidden':_0x4855b7(0x1a0),'tabindex':'0'},'on':{'focus':this[_0x4855b7(0x19d)]['to'](()=>{var _0x3474db=_0x4855b7;this[_0x3474db(0x1a7)][_0x3474db(0x1a3)](_0x3474db(0x1a4));})}};}}function _0x3d8b(){var _0x37b242=['getFocusableElement','10gXgRQZ','22694lOMWMp','344TYBqPE','30840535GUJFIg','bindTemplate','4508835oxodvh','div','true','84933slDoTf','642CdIfYQ','fire','forwardCycle','3232600hzdmzR','2470320HyRUYq','focusCycler','createCollection','focusTracker','10EIjkRL','315006LHipZj'];_0x3d8b=function(){return _0x37b242;};return _0x3d8b();}
|