@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250216.0 → 0.0.1
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/LICENSE.md +6 -5
- package/README.md +3 -35
- package/package.json +7 -74
- package/CHANGELOG.md +0 -6
- package/build/uploadcare.js +0 -4
- package/ckeditor5-metadata.json +0 -47
- package/dist/index-content.css +0 -5
- package/dist/index-editor.css +0 -265
- package/dist/index.css +0 -315
- package/dist/index.js +0 -25
- package/lang/contexts.json +0 -27
- package/src/augmentation.d.ts +0 -30
- package/src/augmentation.js +0 -23
- package/src/index.d.ts +0 -16
- package/src/index.js +0 -23
- package/src/ui/uploadcarecontroller.d.ts +0 -26
- package/src/ui/uploadcarecontroller.js +0 -24
- package/src/ui/uploadcareformview.d.ts +0 -23
- package/src/ui/uploadcareformview.js +0 -23
- package/src/uploadcare.d.ts +0 -48
- package/src/uploadcare.js +0 -23
- package/src/uploadcarecommand.d.ts +0 -38
- package/src/uploadcarecommand.js +0 -23
- package/src/uploadcareconfig.d.ts +0 -227
- package/src/uploadcareconfig.js +0 -23
- package/src/uploadcareediting.d.ts +0 -49
- package/src/uploadcareediting.js +0 -23
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.d.ts +0 -78
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +0 -24
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.d.ts +0 -25
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +0 -23
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.d.ts +0 -24
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +0 -23
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.d.ts +0 -24
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +0 -23
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.d.ts +0 -32
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +0 -23
- package/src/uploadcareimageedit/uploadcareimageeditcommand.d.ts +0 -49
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +0 -23
- package/src/uploadcareimageedit/uploadcareimageeditediting.d.ts +0 -38
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +0 -23
- package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +0 -48
- package/src/uploadcareimageedit/uploadcareimageeditui.js +0 -23
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.d.ts +0 -23
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +0 -23
- package/src/uploadcareimageedit.d.ts +0 -32
- package/src/uploadcareimageedit.js +0 -23
- package/src/uploadcareui.d.ts +0 -41
- package/src/uploadcareui.js +0 -23
- package/src/uploadcareuploadadapter.d.ts +0 -39
- package/src/uploadcareuploadadapter.js +0 -23
- package/src/utils/common-translations.d.ts +0 -5
- package/src/utils/common-translations.js +0 -23
- package/src/utils/dialogfocusmanagerview.d.ts +0 -29
- package/src/utils/dialogfocusmanagerview.js +0 -23
- package/src/utils/editingutils.d.ts +0 -5
- package/src/utils/editingutils.js +0 -23
- package/src/utils/isancestor.d.ts +0 -8
- package/src/utils/isancestor.js +0 -23
- package/src/utils/uploadutils.d.ts +0 -5
- package/src/utils/uploadutils.js +0 -23
- package/theme/uploadcare-form.css +0 -198
- package/theme/uploadcare-theme.css +0 -20
- package/theme/uploadcareimageedit.css +0 -64
package/dist/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
import{Plugin as _0x4901ff,Command as _0x32ac5c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x28730b,IconInstagram as _0x12f9cb,IconGooglePhotos as _0x4bd289,IconGoogleDrive as _0x2ad3a5,IconFacebook as _0x1d2b30,IconDropbox as _0x47c40f,IconUploadcareLink as _0x9fb45a,IconUploadcareImageUpload as _0x5d7aa7,IconError as et,IconUploadcareImageEdit as _0x458217}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x47720a,MenuBarMenuListItemButtonView as _0x23b642,View as _0xfcfd96,FocusCycler as _0xeda4fc,Dialog as _0x10979b,DialogViewPosition as _0x17911b,SpinnerView as _0x284b0c,IconView as at,Notification as _0x3d7aa9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x666661,DomEmitterMixin as _0x35d879,global as _0x4316cb,getAncestors as _0x2eaeb9,ObservableMixin as _0x225e56,createElement as _0x3e6b3f,uid as _0xf4ea4b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x23cf9a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x596486,info as _0x4356d8}from'@uploadcare/upload-client';import*as _0x271920 from'@uploadcare/file-uploader';var o=function(_0xbc5e33){return _0xbc5e33['Local']='local',_0xbc5e33['URL']='url',_0xbc5e33['Dropbox']='dropbox',_0xbc5e33['GDrive']='gdrive',_0xbc5e33['Facebook']='facebook',_0xbc5e33['GPhotos']='gphotos',_0xbc5e33['Instagram']='instagram',_0xbc5e33['OneDrive']='onedrive',_0xbc5e33;}({});function x(_0x5543b3,_0x21e367,_0x173859){const t=_0x5543b3['t'],_0x909f03=_0x5543b3['t'];switch(_0x21e367){case o['Local']:return{'text':_0x909f03('Insert'===_0x173859?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x909f03('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x173859?_0x909f03('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x909f03('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['Instagram']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case o['OneDrive']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21e367;}}class e extends _0x4901ff{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5f0dce=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26bfc2;for(const _0x36f967 in _0x5f0dce){const _0x46d32f=_0x36f967,_0x1ea270=_0x5f0dce[_0x46d32f];if('uploadcareLicenseKeyValid'==_0x1ea270||'uploadcareLicenseKeyInvalid'==_0x1ea270||'uploadcareLicenseKeyExpired'==_0x1ea270||'uploadcareLicenseKeyDomainLimit'==_0x1ea270||'uploadcareLicenseKeyNotAllowed'==_0x1ea270||'uploadcareLicenseKeyEvaluationLimit'==_0x1ea270||'uploadcareLicenseKeyTrialLimit'==_0x1ea270||'uploadcareLicenseKeyUsageLimit'==_0x1ea270){delete _0x5f0dce[_0x46d32f],_0x26bfc2=_0x1ea270,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2fad1c}=this,_0x326a93=_0x2fad1c['commands']['get']('uploadcare');if(!_0x326a93)return;const _0x136921=this['_normalizeConfigSourceList'](_0x2fad1c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1678a9,_0xafa8e0)=>{const _0x1751fb=this['_getIntegrationKey'](_0xafa8e0['type']);return _0x1678a9[_0x1751fb]||(_0x1678a9[_0x1751fb]=[]),_0x1678a9[_0x1751fb]['push'](_0xafa8e0),_0x1678a9;},{});_0x2fad1c['plugins']['has']('ImageInsertUI')&&_0x2fad1c['commands']['get']('uploadcare')&&Object['entries'](_0x136921)['forEach'](([_0xc0631,_0x4ca331])=>{_0x2fad1c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xc0631,'observable':()=>_0x326a93,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4ca331),'formViewCreator':()=>this['_createDropdownButtons'](_0x4ca331),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4ca331),'override':'assetManager'!==_0xc0631});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x50acb7){const {locale:_0x1f32a7}=this['editor'];return _0x50acb7['map'](_0x4f3b3f=>{const _0x1ed337=x(_0x1f32a7,_0x4f3b3f,'Insert');switch(_0x4f3b3f){case o['Local']:return{'icon':_0x5d7aa7,'type':o['Local'],..._0x1ed337};case o['URL']:return{'icon':_0x9fb45a,'type':o['URL'],..._0x1ed337};case o['Dropbox']:return{'icon':_0x47c40f,'type':o['Dropbox'],..._0x1ed337};case o['Facebook']:return{'icon':_0x1d2b30,'type':o['Facebook'],..._0x1ed337};case o['GDrive']:return{'icon':_0x2ad3a5,'type':o['GDrive'],..._0x1ed337};case o['GPhotos']:return{'icon':_0x4bd289,'type':o['GPhotos'],..._0x1ed337};case o['Instagram']:return{'icon':_0x12f9cb,'type':o['Instagram'],..._0x1ed337};case o['OneDrive']:return{'icon':_0x28730b,'type':o['OneDrive'],..._0x1ed337};}});}['_getIntegrationKey'](_0x23e0b0){switch(_0x23e0b0){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x24306a,_0x5f35ea){const _0x3dfb90=this['editor'],_0x57b14b=new _0x24306a(_0x3dfb90['locale']),_0x1053d1=_0x3dfb90['commands']['get']('uploadcare');return _0x57b14b['bind']('isEnabled')['to'](_0x1053d1),_0x57b14b['on']('execute',()=>{_0x1053d1['execute'](_0x5f35ea);}),_0x57b14b;}['_createToolbarButton'](_0x2a6d82){const {locale:_0x2a9f2d}=this['editor'],_0x53308c=this['editor']['plugins']['get']('ImageInsertUI'),_0xd5f6ba=_0x2a6d82[0x0],_0x3ecbe8=this['_createButton'](_0x47720a,_0xd5f6ba['type']);return _0x3ecbe8['icon']=_0xd5f6ba['icon'],_0x3ecbe8['bind']('label')['to'](_0x53308c,'isImageSelected',_0x1e1d69=>x(_0x2a9f2d,_0xd5f6ba['type'],_0x1e1d69?'Replace':'Insert')['text']),_0x3ecbe8['tooltip']=!0x0,_0x3ecbe8;}['_createDropdownButtons'](_0x1e7644){const {locale:_0xce7859}=this['editor'],_0x380879=this['editor']['plugins']['get']('ImageInsertUI');return _0x1e7644['map'](_0xf2a80=>{const _0x560f56=this['_createButton'](_0x47720a,_0xf2a80['type']);return _0x560f56['withText']=!0x0,_0x560f56['icon']=_0xf2a80['icon'],_0x560f56['bind']('label')['to'](_0x380879,'isImageSelected',_0x265ea7=>x(_0xce7859,_0xf2a80['type'],_0x265ea7?'Replace':'Insert')['text']),_0x560f56;});}['_createMenuBarButtons'](_0x46a231){return _0x46a231['map'](_0x5b8455=>{const _0xd13c4f=this['_createButton'](_0x23b642,_0x5b8455['type']);return _0xd13c4f['icon']=_0x5b8455['icon'],_0xd13c4f['label']=_0x5b8455['shortText'],_0xd13c4f;});}}class G extends _0xfcfd96{['focusTracker'];['focusCycler'];constructor(_0x275e8c){super(_0x275e8c),this['focusTracker']=new _0x666661(),this['focusCycler']=new _0xeda4fc({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class F extends G{constructor(_0x4e6747){super(_0x4e6747),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x494a84,_0x20b7d4){const _0x2bcdb4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3677dc=>_0x3677dc<=_0x20b7d4)['map'](_0x477eb1=>_0x494a84['replace'](/\/$/,'')+'/-/resize/'+_0x477eb1+'x/\x20'+_0x477eb1+'w');return{'imageFallbackUrl':_0x494a84,'imageSources':[{'srcset':_0x2bcdb4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x20b7d4+'px)\x20100vw,\x20'+_0x20b7d4+'px','type':'image/webp'}]};}function R(_0x428ac5,_0x22ba01,_0x55086f){const _0x48dc2e=_0x428ac5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x48dc2e?parseInt(_0x48dc2e[0x1],0xa):_0x22ba01,'height':_0x48dc2e?parseInt(_0x48dc2e[0x2],0xa):_0x55086f};}function m(_0x2abce0,_0x2762a7){const _0x18fa0e=Object['create'](_0x35d879),_0x217a5f=_0x2abce0['plugins']['get']('ImageUtils'),_0x3cf5bf=_0x2abce0['editing']['mapper']['toViewElement'](_0x2762a7),_0x7389ad=_0x217a5f['findViewImgElement'](_0x3cf5bf),_0x868254=_0x2abce0['editing']['view']['domConverter']['viewToDom'](_0x7389ad),_0x233e3c=_0x2762a7['getAttribute']('width'),_0x1f0a84=_0x2762a7['getAttribute']('height'),_0x391dbf='image-processing';_0x2abce0['editing']['view']['change'](_0x4213b0=>{_0x4213b0['addClass'](_0x391dbf,_0x3cf5bf),_0x4213b0['setStyle']('aspect-ratio',_0x233e3c+'/'+_0x1f0a84,_0x7389ad);}),_0x18fa0e['listenTo'](_0x868254,'load',()=>{_0x18fa0e['stopListening'](_0x868254,'load'),_0x2abce0['editing']['view']['change'](_0x2ac13b=>{_0x2ac13b['removeClass'](_0x391dbf,_0x3cf5bf),_0x2ac13b['removeStyle']('aspect-ratio',_0x7389ad);});});}function W(_0x4ae16e){if(Array['isArray'](_0x4ae16e)){const _0x396d36=_0x4ae16e['map'](W);return _0x168c32=>_0x396d36['some'](_0x3e885e=>_0x3e885e(_0x168c32));}if('origin'==_0x4ae16e){const _0xf2be31=_0x4316cb['window']['location']['origin'];return _0x39a2f2=>new URL(_0x39a2f2,_0x4316cb['document']['baseURI'])['origin']==_0xf2be31;}return'function'==typeof _0x4ae16e?_0x4ae16e:_0x4ae16e instanceof RegExp?_0x3c4ef0=>!(!_0x3c4ef0['match'](_0x4ae16e)&&!_0x3c4ef0['replace'](/^https?:\/\//,'')['match'](_0x4ae16e)):()=>!0x1;}function T(_0x499e3f,_0x43b5ff){return _0x2eaeb9(_0x499e3f['target'])['includes'](_0x43b5ff);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x225e56(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x21c48c,_0x49a18c,_0x32b440){super(),this['_editor']=_0x21c48c,this['_editing']=_0x49a18c,this['_dialog']=_0x21c48c['plugins']['get'](_0x10979b),this['_api']=_0x49a18c['ctxElement']['getAPI'](),this['_type']=_0x32b440,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x5970fe,model:_0x249a33}=this['_editor'],_0x3f2f93=_0x249a33['document']['selection']['getSelectedElement'](),_0x4683be=_0x3f2f93&&(_0x3f2f93['is']('element','imageBlock')||_0x3f2f93['is']('element','imageInline'));this['_formView']=new F(_0x5970fe),this['_dialog']['show']({'id':'uploadCare','icon':_0x5d7aa7,'title':x(_0x5970fe,this['_type'],_0x4683be?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x17911b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x586f51=>!T(_0x586f51,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xbf3256}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5e8a98=>{const _0x40272a=_0xbf3256['length'];for(const _0x121e27 of _0xbf3256){const _0x398219=_0x121e27===_0xbf3256[_0x40272a-0x1],{cdnUrl:_0x15976f,fileInfo:_0x2409c9}=_0x121e27;if(!_0x15976f||!_0x2409c9)continue;const {width:_0x413131,height:_0x391630}=_0x2409c9['imageInfo'],_0x15fbc2=R(_0x15976f,_0x413131,_0x391630),_0x257896=E(_0x15976f,_0x15fbc2['width']),_0x38a780={'id':_0x2409c9['uuid'],'type':'image','attributes':{'imageDimension':_0x15fbc2,..._0x257896}};this['_insertAsset'](_0x38a780,_0x398219,_0x5e8a98);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5c0bad=>{'idle'===_0x5c0bad['detail']['status']&&!_0x5c0bad['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x531796,_0x5cdef5,_0x4816b7){const _0xd9d69a=this['_editor']['model']['document']['selection'],_0x2067cf=_0xd9d69a['getSelectedElement'](),_0x238389=!(!_0x2067cf||!_0x2067cf['is']('element','imageInline'));_0x4816b7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x531796,_0x238389),_0x5cdef5||_0x4816b7['setSelection'](_0xd9d69a['getLastPosition']());}['_insertImage'](_0x377961,_0x159037){const _0x556e8d=this['_editor'],{imageDimension:_0x4e6b13,imageFallbackUrl:_0x4efd51,imageSources:_0x2b8f10}=_0x377961['attributes'];_0x556e8d['execute']('insertImage',{'imageType':_0x159037?'imageInline':null,'source':{'uploadcareImageId':_0x377961['id'],'src':_0x4efd51,'sources':_0x2b8f10,..._0x4e6b13}});}}class n extends _0x32ac5c{['_editing'];['_controller']=null;static get['requires'](){return[_0x10979b,i];}constructor(_0x28b271){super(_0x28b271),this['_editing']=_0x28b271['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x29c352){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x29c352);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5d7caa,publicKey:_0x44dd55,signal:_0x25fd24,onProgress:_0x3d5aad}){return _0x596486(_0x5d7caa,{'publicKey':_0x44dd55,'store':'auto','signal':_0x25fd24,'onProgress':_0x3d5aad});}static['getInfo'](_0x36de79,_0x3baae0){return _0x4356d8(_0x36de79,_0x3baae0);}}class p extends _0x4901ff{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x23cf9a,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x240b76=this['editor'];if(!!!_0x240b76['config']['get']('uploadcare'))return;_0x240b76['plugins']['get'](_0x23cf9a)['createUploadAdapter']=_0x248ab1=>new A(_0x248ab1,_0x240b76),_0x240b76['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xf97afb,{imageElement:_0x2235d8,data:_0x11f6a2})=>{_0x240b76['model']['change'](_0x205a03=>{_0x205a03['setAttribute']('uploadcareImageId',_0x11f6a2['uploadcareImageId'],_0x2235d8);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x34bc00,_0x35092a){this['loader']=_0x34bc00,this['editor']=_0x35092a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x589bab=this['editor']['config']['get']('uploadcare.pubkey'),_0x2aedd8=await this['loader']['file'];return C['upload']({'file':_0x2aedd8,'publicKey':_0x589bab,'signal':this['controller']['signal'],'onProgress':_0x526734=>{_0x526734&&_0x526734['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x526734['value']);}})['then'](async _0x1c80f7=>{const {imageFallbackUrl:_0x41fd1e,imageSources:_0x32d4c3}=E(_0x1c80f7['cdnUrl'],_0x1c80f7['imageInfo']['width']);return{'uploadcareImageId':_0x1c80f7['uuid'],'default':_0x41fd1e,'sources':_0x32d4c3};})['catch'](()=>{const _0xb7022a=t('Cannot\x20upload\x20file:')+('\x20'+_0x2aedd8['name']+'.');return Promise['reject'](_0xb7022a);});}['abort'](){this['controller']['abort']();}}class i extends _0x4901ff{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x10979b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x184021=this['editor'];_0x184021['commands']['add']('uploadcare',new n(_0x184021));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x2ab629=_0x4316cb['document']['querySelector']('input[uploadcare-file-input]');_0x2ab629&&_0x2ab629['remove']();}),async function(_0x537ac4){const _0x47db38=_0x3d0f89([0x43,0x48,0x44,0x51,0x64,0x7a,0x63,0x59,0x58,0x50,0x34,0x72,0x66,0x6f,0x38,0x61,0x53,0x31,0x71,0x75,0x4d,0x78,0x74,0x32,0x55,0x46,0x6c,0x65,0x47,0x35,0x6d,0x5a,0x30,0x4c,0x79,0x6a,0x54,0x57,0x4e,0x36,0x56,0x42,0x70,0x77,0x76,0x4a,0x4f,0x73,0x37,0x41,0x52,0x6e,0x33,0x62,0x39,0x67,0x68,0x49,0x6b,0x45,0x4b,0x69]),_0x5ab45b=0x3ab88d25,_0x4cfd35=0x3abfd28d^_0x5ab45b,_0xf69522=window[_0x3d0f89([0x44,0x61,0x74,0x65])][_0x3d0f89([0x6e,0x6f,0x77])](),_0x4938e8=_0x537ac4[_0x3d0f89([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19bc13=new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x442374=>{_0x4938e8[_0x3d0f89([0x6f,0x6e,0x63,0x65])](_0x3d0f89([0x72,0x65,0x61,0x64,0x79]),_0x442374);}),_0x5c9c9c={[_0x3d0f89([0x6b,0x74,0x79])]:_0x3d0f89([0x45,0x43]),[_0x3d0f89([0x75,0x73,0x65])]:_0x3d0f89([0x73,0x69,0x67]),[_0x3d0f89([0x63,0x72,0x76])]:_0x3d0f89([0x50,0x2d,0x32,0x35,0x36]),[_0x3d0f89([0x78])]:_0x3d0f89([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3d0f89([0x79])]:_0x3d0f89([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3d0f89([0x61,0x6c,0x67])]:_0x3d0f89([0x45,0x53,0x32,0x35,0x36])},_0x456caf=_0x4938e8[_0x3d0f89([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d0f89([0x67,0x65,0x74])](_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x322358(){let _0x413b8,_0x2d84cc=null,_0x57f1c5=null;try{if(_0x456caf==_0x3d0f89([0x47,0x50,0x4c]))return _0x3d0f89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x413b8=_0x111b91(),!_0x413b8)return _0x3d0f89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x413b8[_0x3d0f89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57f1c5=_0x40a85f(_0x413b8[_0x3d0f89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x413b8[_0x3d0f89([0x6a,0x74,0x69])])),await _0x3153c7()?_0x26279e()?_0x139126()?_0x3d0f89([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x468240()?(_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d0f89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d84cc=_0x2fb0df(_0x3d0f89([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d0f89([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d84cc=_0x2fb0df(_0x3d0f89([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fac17()):_0x3d0f89([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d0f89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d0f89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x155f6c){return _0x3d0f89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x139126(){const _0x41c2e4=[_0x3d0f89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d0f89([0x74,0x72,0x69,0x61,0x6c])][_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf69522/0x3e8:0xe10*_0x4cfd35;return _0x413b8[_0x3d0f89([0x65,0x78,0x70])]<_0x41c2e4;}function _0x26279e(){const _0x17530f=_0x413b8[_0x3d0f89([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17530f&&(!!_0x17530f[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0f89([0x2a]))||!!_0x17530f[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0f89([0x55,0x50,0x4c,0x43])));}function _0x468240(){const _0x132697=_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x132697||0x0==_0x132697[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x244eb6}=new URL(window[_0x3d0f89([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x132697[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244eb6))return!0x0;const _0x3d83ea=_0x244eb6[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e]));return _0x132697[_0x3d0f89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dbc39=>_0x5dbc39[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0f89([0x2a])))[_0x3d0f89([0x6d,0x61,0x70])](_0x159175=>_0x159175[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e])))[_0x3d0f89([0x73,0x6f,0x6d,0x65])](_0x1e2b85=>_0x3d83ea[_0x3d0f89([0x65,0x76,0x65,0x72,0x79])]((_0x3219fb,_0x56b676)=>_0x1e2b85[_0x56b676]===_0x3219fb||_0x1e2b85[_0x56b676]===_0x3d0f89([0x2a])));}function _0x2fac17(){return _0x2d84cc&&_0x57f1c5?new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c2779,_0x2c153c)=>{_0x2d84cc[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x5c2779,_0x2c153c),_0x57f1c5[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x15c2f8=>{_0x15c2f8!=_0x3d0f89([0x56,0x61,0x6c,0x69,0x64])&&_0x5c2779(_0x15c2f8);},_0x2c153c);}):_0x2d84cc||_0x57f1c5||_0x3d0f89([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40a85f(_0x48ff3c,_0x51639c){return new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325605=>{if(_0x39b7ce())return _0x325605(_0x3d0f89([0x56,0x61,0x6c,0x69,0x64]));_0x557fdf(),_0x4938e8[_0x3d0f89([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d0f89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c39d2=!0x1;const _0x5e259e=_0xf4ea4b();function _0x370781(_0xb6a47c){return!!_0xb6a47c&&(typeof _0xb6a47c===_0x3d0f89([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb6a47c===_0x3d0f89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb6a47c[_0x3d0f89([0x74,0x68,0x65,0x6e])]===_0x3d0f89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb6a47c[_0x3d0f89([0x63,0x61,0x74,0x63,0x68])]===_0x3d0f89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b5511(_0x3a5c3e){_0x1238db(_0x3a5c3e)[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x31593d=>{if(!_0x31593d||_0x31593d[_0x3d0f89([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d0f89([0x6f,0x6b]))return _0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40ddd7(_0x2ee1ac(_0x5e259e+_0x51639c))!=_0x31593d[_0x3d0f89([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d0f89([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x3e28f5=>(_0xc5099d(),_0x3e28f5),()=>{const _0x3ec971=_0xf707ac();return null==_0x3ec971?(_0xc5099d(),_0x3d0f89([0x56,0x61,0x6c,0x69,0x64])):_0x3d0f89(_0xf69522-_0x3ec971>(0x1eb40925^_0x5ab45b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x325605)[_0x3d0f89([0x63,0x61,0x74,0x63,0x68])](()=>{_0x325605(_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2388c5=0x3a8e63a5^_0x5ab45b;function _0xc5099d(){const _0x16e346=_0x3d0f89([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ddd7(_0x2ee1ac(_0x48ff3c)),_0x3539f1=_0x2ba089(_0x40ddd7(window[_0x3d0f89([0x4d,0x61,0x74,0x68])][_0x3d0f89([0x63,0x65,0x69,0x6c])](_0xf69522/_0x2388c5)));window[_0x3d0f89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d0f89([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16e346,_0x3539f1);}function _0xf707ac(){const _0x1a457d=_0x3d0f89([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ddd7(_0x2ee1ac(_0x48ff3c)),_0x5125e4=window[_0x3d0f89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d0f89([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a457d);return _0x5125e4?window[_0x3d0f89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ba089(_0x5125e4),0x10)*_0x2388c5:null;}function _0x1238db(_0xa90bc5){return new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38153f,_0xc4bf43)=>{_0xa90bc5[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x38153f,_0xc4bf43),window[_0x3d0f89([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc4bf43,0x3ab959e5^_0x5ab45b);});}}_0x4938e8[_0x3d0f89([0x6f,0x6e])](_0x3d0f89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x275fe7,_0xfaba4d)=>{if(_0xfaba4d[0x0]!=_0x48ff3c)return _0x325605(_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xfaba4d[0x1]={..._0xfaba4d[0x1],[_0x3d0f89([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e259e};},{[_0x3d0f89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d0f89([0x68,0x69,0x67,0x68])}),_0x4938e8[_0x3d0f89([0x6f,0x6e])](_0x3d0f89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5548bb=>{_0x370781(_0x5548bb[_0x3d0f89([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c39d2=!0x0,_0x2b5511(_0x5548bb[_0x3d0f89([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d0f89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d0f89([0x6c,0x6f,0x77])}),_0x19bc13[_0x3d0f89([0x74,0x68,0x65,0x6e])](()=>{_0x1c39d2||_0x325605(_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39b7ce(){return _0x4938e8[_0x3d0f89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d0f89([0x76,0x69,0x65,0x77])][_0x3d0f89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d0f89([0x61,0x75,0x74,0x6f]);}function _0x557fdf(){_0x4938e8[_0x3d0f89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d0f89([0x76,0x69,0x65,0x77])][_0x3d0f89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d0f89([0x61,0x75,0x74,0x6f]);}}function _0x2fb0df(_0x476443){const _0x2cdcf8=[new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x166d7b=>setTimeout(_0x166d7b,0x3ab1b3e9^_0x5ab45b)),_0x19bc13[_0x3d0f89([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x462f2c=>{let _0x8e31e2=0x0;_0x4938e8[_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0f89([0x6f,0x6e])](_0x3d0f89([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x544f30,_0x52bfb0)=>{_0x52bfb0[0x0][_0x3d0f89([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8e31e2++,_0x8e31e2==(0x3ab88cdd^_0x5ab45b)&&(_0x462f2c(),_0x544f30[_0x3d0f89([0x6f,0x66,0x66])]());});}))];return window[_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d0f89([0x72,0x61,0x63,0x65])](_0x2cdcf8)[_0x3d0f89([0x74,0x68,0x65,0x6e])](()=>_0x476443);}async function _0x5dec1f(){await _0x19bc13,_0x4938e8[_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0f89([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c0a56,_0x4938e8[_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0f89([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c0a56,_0x4938e8[_0x3d0f89([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x9a1b8f(_0x2e9cca){const _0x532119=_0x39c288();_0x4938e8[_0x532119]=_0x3d0f89([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e9cca,_0x2e9cca!=_0x3d0f89([0x56,0x61,0x6c,0x69,0x64])&&_0x5dec1f();}function _0x39c288(){const _0x1ca57a=window[_0x3d0f89([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d0f89([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d0f89([0x6e,0x6f,0x77])]())[_0x3d0f89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d0f89([0x2e]),'');let _0x2fa928=_0x3d0f89([0x43]);for(let _0x4f4d2e=0x0;_0x4f4d2e<_0x1ca57a[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f4d2e+=0x2){let _0x2a7c77=window[_0x3d0f89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ca57a[_0x3d0f89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f4d2e,_0x4f4d2e+0x2));_0x2a7c77>=_0x47db38[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a7c77-=_0x47db38[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2fa928+=_0x47db38[_0x2a7c77];}return _0x2fa928;}function _0x111b91(){const _0x11ef73=_0x456caf[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e]));if(0x3!=_0x11ef73[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b4083(_0x11ef73[0x1]);function _0x2b4083(_0x21e0c6){const _0x46b135=_0x213761(_0x21e0c6);return _0x46b135&&_0x114118()?_0x46b135:null;function _0x114118(){const _0x44e170=_0x46b135[_0x3d0f89([0x6a,0x74,0x69])],_0xef3faa=window[_0x3d0f89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44e170[_0x3d0f89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44e170[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d7fd4={..._0x46b135,[_0x3d0f89([0x6a,0x74,0x69])]:_0x44e170[_0x3d0f89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44e170[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d7fd4[_0x3d0f89([0x76,0x63])],_0x2ee1ac(_0x5d7fd4)==_0xef3faa;}}}async function _0x3153c7(){let _0x2604ca=!0x0;try{const _0x3e0365=_0x456caf[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e])),[_0x2c5134,_0xb5ad97,_0x13f03c]=_0x3e0365;return _0x180967(_0x2c5134),await _0xb4a1f2(_0x2c5134,_0xb5ad97,_0x13f03c),_0x2604ca;}catch(_0x8e5a6){return!0x1;}function _0x180967(_0x546005){const _0x189c8f=_0x213761(_0x546005);_0x189c8f&&_0x189c8f[_0x3d0f89([0x61,0x6c,0x67])]==_0x3d0f89([0x45,0x53,0x32,0x35,0x36])||(_0x2604ca=!0x1);}async function _0xb4a1f2(_0x473a40,_0x3691e1,_0x1de087){const _0x357f17=window[_0x3d0f89([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d0f89([0x66,0x72,0x6f,0x6d])](_0x208816(_0x1de087),_0x164c94=>_0x164c94[_0x3d0f89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43581e=new window[(_0x3d0f89([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d0f89([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x473a40+_0x3d0f89([0x2e])+_0x3691e1),_0x51cbf7=window[_0x3d0f89([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d0f89([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51cbf7)return;const _0x520cd6=await _0x51cbf7[_0x3d0f89([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d0f89([0x6a,0x77,0x6b]),_0x5c9c9c,{[_0x3d0f89([0x6e,0x61,0x6d,0x65])]:_0x3d0f89([0x45,0x43,0x44,0x53,0x41]),[_0x3d0f89([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d0f89([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d0f89([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51cbf7[_0x3d0f89([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d0f89([0x6e,0x61,0x6d,0x65])]:_0x3d0f89([0x45,0x43,0x44,0x53,0x41]),[_0x3d0f89([0x68,0x61,0x73,0x68])]:{[_0x3d0f89([0x6e,0x61,0x6d,0x65])]:_0x3d0f89([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x520cd6,_0x357f17,_0x43581e)||(_0x2604ca=!0x1);}}function _0x213761(_0x152d24){return _0x152d24[_0x3d0f89([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d0f89([0x65,0x79]))?JSON[_0x3d0f89([0x70,0x61,0x72,0x73,0x65])](_0x208816(_0x152d24)):null;}function _0x208816(_0x3b843c){return window[_0x3d0f89([0x61,0x74,0x6f,0x62])](_0x3b843c[_0x3d0f89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d0f89([0x2b]))[_0x3d0f89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d0f89([0x2f])));}function _0x2ee1ac(_0x5be43e){let _0x2f3f5f=0x1505;function _0x5e40e8(_0x4b3c9d){for(let _0x161620=0x0;_0x161620<_0x4b3c9d[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x161620++){const _0x5da03f=_0x4b3c9d[_0x3d0f89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x161620);_0x2f3f5f=(_0x2f3f5f<<0x5)+_0x2f3f5f+_0x5da03f,_0x2f3f5f&=_0x2f3f5f;}}function _0x50b264(_0x4e167d){Array[_0x3d0f89([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e167d)?_0x4e167d[_0x3d0f89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50b264):_0x4e167d&&typeof _0x4e167d==_0x3d0f89([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d0f89([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e167d)[_0x3d0f89([0x73,0x6f,0x72,0x74])]()[_0x3d0f89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56a4d4,_0x54172c])=>{_0x5e40e8(_0x56a4d4),_0x50b264(_0x54172c);}):_0x5e40e8(window[_0x3d0f89([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e167d));}return _0x50b264(_0x5be43e),_0x2f3f5f>>>0x0;}function _0x40ddd7(_0x135f5e){return _0x135f5e[_0x3d0f89([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d0f89([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d0f89([0x30]));}function _0x2ba089(_0x1efe72){return _0x1efe72[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d0f89([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d0f89([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c0a56(){}function _0x3d0f89(_0x205de2){return _0x205de2['map'](_0x5e478a=>String['fromCharCode'](_0x5e478a))['join']('');}_0x9a1b8f(await _0x322358());}(this);}['_initSchema'](){const _0x1c9591=this['editor']['model']['schema'];_0x1c9591['isRegistered']('imageBlock')&&_0x1c9591['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1c9591['isRegistered']('imageInline')&&_0x1c9591['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x526f99=this['editor'];_0x526f99['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x526f99['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xcbe379=>_0xcbe379['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29c75c=_0x526f99['commands']['get']('replaceImageSource');_0x29c75c&&this['listenTo'](_0x29c75c,'cleanupImage',(_0x407a4b,[_0x569b55,_0x3987fa])=>{_0x569b55['removeAttribute']('uploadcareImageId',_0x3987fa);});}['_initConfig'](){const _0x5bd62c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x11dd33=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3e6b3f(_0x4316cb['document'],'uc-config',{..._0x5bd62c,'pubkey':_0x11dd33,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2d2f9f=>{if('closeMax'==_0x2d2f9f)return'#uc-icon-arrow-down';},_0x4316cb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3e6b3f(_0x4316cb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4316cb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x32fd4f=this['editor']['commands']['get']('insertImage');_0x32fd4f&&this['listenTo'](_0x32fd4f,'execute',()=>{const _0x40fabc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40fabc&&_0x40fabc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x40fabc);});});const _0x2a0f93=this['editor']['commands']['get']('uploadcareImageReplace');_0x2a0f93&&this['listenTo'](_0x2a0f93,'execute',()=>{const _0x2e412c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e412c&&_0x2e412c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2e412c);});});}}class u extends _0x4901ff{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ba357){super(_0x3ba357),_0x3ba357['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x271920['defineComponents'](_0x271920);}}class ta extends _0xfcfd96{constructor(_0x1812d2){super(_0x1812d2);const t=_0x1812d2['t'],_0x5389ff=this['bindTemplate'],_0x41a8ca=new _0x284b0c();_0x41a8ca['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':[_0x41a8ca,{'text':_0x5389ff['to']('imageUploadProgress',_0x4f3947=>t('Loading\x20image...')+'\x20('+(_0x4f3947||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'}]}]}]});}}class rt extends _0xfcfd96{constructor(_0x510cb9){super(_0x510cb9);const t=_0x510cb9['t'];this['set']('errorType',null);const _0x811770=new _0x47720a(_0x510cb9);_0x811770['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x811770['withText']=!0x0,_0x811770['class']='ck-button-action',_0x811770['on']('execute',()=>{this['fire']('retry');}),_0x811770['bind']('isVisible')['to'](this,'errorType',_0x544b56=>'NotFound'!==_0x544b56);const _0x78dc0d=new at();_0x78dc0d['content']=et,_0x78dc0d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x46faee=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':[_0x78dc0d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x46faee['to']('errorType',_0x1f9d16=>t('NotFound'!==_0x1f9d16?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x811770]},{'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'}]}]}]});}}class tt extends _0xfcfd96{constructor(_0x2cb2b1,_0x71a103){super(_0x2cb2b1);const _0x2550e4=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x71a103,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2550e4['to']('imageSrc')}});}}class ii extends G{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x28f080,_0x54c482,_0x3de692){super(_0x28f080),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x28f080),this['_errorView']=new rt(_0x28f080),this['_editingView']=new tt(_0x28f080,_0x3de692),this['_focusableView']=new _0xfcfd96(_0x28f080),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x54c482),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x36af24=>{this['_addUploadcareImageEditorListeners'](_0x36af24);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x2e025f,_0x77270e){const _0x1f44fe='uc-cloud-image-editor',_0x11bfe9=_0x2e025f['querySelector'](_0x1f44fe);if(_0x11bfe9)return _0x77270e(_0x11bfe9);const _0x1ee01b=new MutationObserver(_0x16bf49=>{const _0x2ea0d9=_0x16bf49['filter'](_0x29fcc1=>_0x29fcc1['target']===_0x2e025f&&_0x29fcc1['addedNodes']['length']>0x0&&_0x29fcc1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1f44fe);_0x2ea0d9['length']&&(_0x1ee01b['disconnect'](),_0x77270e(_0x2ea0d9[0x0]['addedNodes'][0x0]));});_0x1ee01b['observe'](_0x2e025f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3aa21d){_0x3aa21d['addEventListener']('apply',_0xecec43=>{this['fire']('apply',{'imageSrc':_0xecec43['detail']['cdnUrl']});}),_0x3aa21d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class q extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x225e56(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xaddada,_0x22cece,_0x263a54){super(),this['_editor']=_0xaddada,this['_dialog']=_0x22cece,this['_imageElement']=_0x263a54,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 _0x2aeeca=this['_imageElement'],_0x163bc4=_0x2aeeca['getAttribute']('uploadcareImageId'),_0x130aee=_0x2aeeca['getAttribute']('src');if(_0x163bc4)await this['_loadImageInfo'](_0x163bc4,_0x130aee);else{if(this['_imageCache']['has'](_0x130aee)){const _0x39e41d=this['_imageCache']['get'](_0x130aee);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39e41d['url'],this['imageDimension']=_0x39e41d['dimension'],this['imageId']=_0x39e41d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x380042}=this['_editor'],t=_0x380042['t'],_0x59597=new ii(_0x380042,this['imageStatus'],this['_attributes']);_0x59597['bind']('status')['to'](this,'imageStatus'),_0x59597['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x59597['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x59597['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x59597,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x458217,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x59597,'position':_0x17911b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x59597['focus']();},'onHide':()=>{_0x59597['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x20ce46=>!T(_0x20ce46,_0x59597['element'])}});}['_loadImageInfo'](_0x1d6d4c,_0x4185d9){return C['getInfo'](_0x1d6d4c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5f4ebb=>{const {width:_0x4028ce,height:_0x36d081}=_0x5f4ebb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4185d9,this['imageDimension']={'width':_0x4028ce,'height':_0x36d081},this['imageId']=_0x1d6d4c;})['catch'](_0x5f4f6a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5f4f6a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1be9df,_0x3541ee){return this['_getImageAsFile'](_0x1be9df)['then'](_0x11c3b7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3541ee['signal'],'file':_0x11c3b7,'onProgress':_0x1d9853=>{_0x1d9853&&_0x1d9853['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1d9853['value']));}}))['then'](_0x1b9448=>{const {width:_0x4cb610,height:_0x58844f}=_0x1b9448['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b9448['cdnUrl'],this['imageDimension']={'width':_0x4cb610,'height':_0x58844f},this['imageId']=_0x1b9448['uuid'],this['imageUploadProgress']=null;const _0x9cbb20=_0x1be9df['getAttribute']('src');this['_imageCache']['set'](_0x9cbb20,{'id':_0x1b9448['uuid'],'url':_0x1b9448['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x57b588=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x57b588['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x400399,_0xf243a5){_0x400399['on']('apply',(_0x34bae2,_0x52d7b8)=>{this['_replaceImage'](_0xf243a5,_0x52d7b8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x400399['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x400399['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x58bffc,_0x47ddf3,_0x5d22a7){const _0x53eaa1=this['_editor'],{width:_0x227020,height:_0x1883aa}=R(_0x47ddf3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x112dee,imageSources:_0x2c02d6}=E(_0x47ddf3,_0x227020);_0x53eaa1['model']['change'](_0x6231f0=>{if('$graveyard'===_0x58bffc['root']['rootName']){_0x53eaa1['execute']('insertImage',{'imageType':_0x58bffc['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x58bffc['getAttributes']()),'uploadcareImageId':_0x5d22a7,'src':_0x112dee,'sources':_0x2c02d6,'width':_0x227020,'height':_0x1883aa}});const _0x413279=_0x58bffc['getChildren']();_0x58bffc=_0x53eaa1['model']['document']['selection']['getSelectedElement']();for(const _0x2ccdb8 of _0x413279)_0x6231f0['append'](_0x6231f0['cloneElement'](_0x2ccdb8),_0x58bffc);}else _0x6231f0['setSelection'](_0x58bffc,'on'),_0x53eaa1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x58bffc['getAttributes']()),'uploadcareImageId':_0x5d22a7,'src':_0x112dee,'sources':_0x2c02d6,'width':_0x227020,'height':_0x1883aa},_0x58bffc);_0x6231f0['setSelection'](_0x58bffc,'on');});}async['_getImageAsFile'](_0x9f84db){const _0x129aa6=_0x4316cb['window'],_0x1a3188=_0x4316cb['document']['location']['href'],_0x3174f=new _0x129aa6['URL'](_0x9f84db['getAttribute']('src'),_0x1a3188);if('data:'===_0x3174f['protocol']){const _0x32530e=_0x3174f['href']['split'](','),_0x7592bc=_0x32530e[0x0]['match'](/:(.*?);/)[0x1],_0x3d0bd3=_0x7592bc['split']('/')[0x1],_0x191f29=_0x129aa6['atob'](_0x32530e[_0x32530e['length']-0x1]);let _0x349e09=_0x191f29['length'];const _0x456170=new _0x129aa6['Uint8Array'](_0x349e09);for(;_0x349e09--;)_0x456170[_0x349e09]=_0x191f29['charCodeAt'](_0x349e09);return new _0x129aa6['File']([_0x456170],'image.'+_0x3d0bd3,{'type':_0x7592bc});}const _0x101605=_0x3174f['href']['split']('/'),_0x4f12e5=_0x101605[_0x101605['length']-0x1],_0x20449f=_0x4f12e5['split']('.')[0x1];return _0x129aa6['fetch'](_0x3174f['href'])['then'](_0x206b57=>_0x206b57['clone']()['blob']())['then'](_0x479271=>new _0x129aa6['File']([_0x479271],_0x4f12e5,{'type':'image/'+_0x20449f}));}}class D extends _0x32ac5c{['imageEditController'];static get['requires'](){return[_0x10979b];}['_isEditable'];constructor(_0x24d9f6){super(_0x24d9f6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x45df8b){const _0x4979fc=W(_0x45df8b);return _0xcc008a=>!(!_0xcc008a||!_0xcc008a['is']('element','imageBlock')&&!_0xcc008a['is']('element','imageInline'))&&(!!_0xcc008a['hasAttribute']('uploadcareImageId')||!!_0xcc008a['hasAttribute']('src')&&_0x4979fc(_0xcc008a['getAttribute']('src')));}(_0x24d9f6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2b68e6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2b68e6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4d49f9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4d49f9&&(_0x4d49f9['is']('element','imageBlock')||_0x4d49f9['is']('element','imageInline'))&&(this['imageEditController']=new q(this['editor'],this['editor']['plugins']['get'](_0x10979b),_0x4d49f9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x32ac5c{['refresh'](){const _0x5608fb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5608fb&&(_0x5608fb['is']('element','imageBlock')||_0x5608fb['is']('element','imageInline')));}['execute'](_0x39e91e){const _0x314d12=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3f16e3=>{_0x3f16e3['setAttributes'](_0x39e91e,_0x314d12),_0x3f16e3['removeAttribute']('srcset',_0x314d12),_0x3f16e3['removeAttribute']('sizes',_0x314d12);});}}class g extends _0x4901ff{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3d7aa9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x391054}=this;_0x391054['commands']['add']('uploadcareImageEdit',new D(_0x391054)),_0x391054['commands']['add']('uploadcareImageReplace',new O(_0x391054));}}class j extends _0x4901ff{['_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 _0x2b505e=this['editor'];_0x2b505e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c25cf=>{const _0x25d6ca=_0x2b505e['commands']['get']('uploadcareImageEdit'),_0x27c59d=new _0x47720a(_0x3c25cf),t=_0x3c25cf['t'];return _0x27c59d['set']({'icon':_0x458217,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x27c59d['bind']('isEnabled')['to'](_0x25d6ca),_0x27c59d['bind']('isOn')['to'](_0x25d6ca,'isActive'),this['listenTo'](_0x27c59d,'execute',()=>{_0x2b505e['execute']('uploadcareImageEdit'),_0x2b505e['editing']['view']['focus']();}),_0x27c59d;}),this['_initConfig']();}['_initConfig'](){const _0x2c8a94=_0x3e6b3f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2c8a94),this['listenTo'](this['editor'],'destroy',()=>{_0x2c8a94['remove']();});}}class P extends _0x4901ff{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/lang/contexts.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Insert with Dropbox": "The label for the insert image with Dropbox dropdown button.",
|
|
3
|
-
"Replace with Dropbox": "The label for the replace image with Dropbox dropdown button.",
|
|
4
|
-
"With Dropbox": "The label for the insert image with Dropbox menu bar button (inside 'Image' menu).",
|
|
5
|
-
"Insert with Facebook": "The label for the insert image with Facebook dropdown button.",
|
|
6
|
-
"Replace with Facebook": "The label for the replace image with Facebook dropdown button.",
|
|
7
|
-
"With Facebook": "The label for the insert image with Facebook menu bar button (inside 'Image' menu).",
|
|
8
|
-
"Insert with Google Drive": "The label for the insert image with Google Drive dropdown button.",
|
|
9
|
-
"Replace with Google Drive": "The label for the replace image with Google Drive dropdown button.",
|
|
10
|
-
"With Google Drive": "The label for the insert image with Google Drive menu bar button (inside 'Image' menu).",
|
|
11
|
-
"Insert with Google Photos": "The label for the insert image with Google Photos dropdown button.",
|
|
12
|
-
"Replace with Google Photos": "The label for the replace image with Google Photos dropdown button.",
|
|
13
|
-
"With Google Photos": "The label for the insert image with Google Photos menu bar button (inside 'Image' menu).",
|
|
14
|
-
"Insert with Instagram": "The label for the insert image with Instagram dropdown button.",
|
|
15
|
-
"Replace with Instagram": "The label for the replace image with Instagram dropdown button.",
|
|
16
|
-
"With Instagram": "The label for the insert image with Instagram menu bar button (inside 'Image' menu).",
|
|
17
|
-
"Insert with OneDrive": "The label for the insert image with OneDrive dropdown button.",
|
|
18
|
-
"Replace with OneDrive": "The label for the replace image with OneDrive dropdown button.",
|
|
19
|
-
"With OneDrive": "The label for the insert image with OneDrive menu bar button (inside 'Image' menu).",
|
|
20
|
-
"Replace via URL": "The label for the replace image via URL dropdown button.",
|
|
21
|
-
"Edit Image (Uploadcare)": "The label for the image edit button and dialog.",
|
|
22
|
-
"Loading image...": "The label shown in the image edit dialog when the image is being uploaded.",
|
|
23
|
-
"Unable to load": "The main text shown in the image edit dialog when the image upload failed.",
|
|
24
|
-
"We were unable to load the image due to network connection issues.": "The detailed information shown in the image edit dialog when the image upload failed.",
|
|
25
|
-
"Try again (Uploadcare)": "The label of a button shown in the image edit dialog when the image upload fails.",
|
|
26
|
-
"The image was not found. Its source may have been removed.": "The detailed information shown in the image edit dialog when the image upload fails due to 'NotFound' error."
|
|
27
|
-
}
|
package/src/augmentation.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
import type { Uploadcare, UploadcareEditing, UploadcareCommand, UploadcareConfig } from './index.js';
|
|
6
|
-
import type UploadcareImageEditCommand from './uploadcareimageedit/uploadcareimageeditcommand.js';
|
|
7
|
-
import type UploadcareImageEdit from './uploadcareimageedit.js';
|
|
8
|
-
import type UploadcareImageEditEditing from './uploadcareimageedit/uploadcareimageeditediting.js';
|
|
9
|
-
import type UploadcareImageEditUI from './uploadcareimageedit/uploadcareimageeditui.js';
|
|
10
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
11
|
-
interface EditorConfig {
|
|
12
|
-
/**
|
|
13
|
-
* The configuration of the {@link module:uploadcare/uploadcare~Uploadcare Uploadcare feature}.
|
|
14
|
-
*
|
|
15
|
-
* Read more in {@link module:uploadcare/uploadcareconfig~UploadcareConfig}.
|
|
16
|
-
*/
|
|
17
|
-
uploadcare?: UploadcareConfig;
|
|
18
|
-
}
|
|
19
|
-
interface PluginsMap {
|
|
20
|
-
[Uploadcare.pluginName]: Uploadcare;
|
|
21
|
-
[UploadcareEditing.pluginName]: UploadcareEditing;
|
|
22
|
-
[UploadcareImageEdit.pluginName]: UploadcareImageEdit;
|
|
23
|
-
[UploadcareImageEditEditing.pluginName]: UploadcareImageEditEditing;
|
|
24
|
-
[UploadcareImageEditUI.pluginName]: UploadcareImageEditUI;
|
|
25
|
-
}
|
|
26
|
-
interface CommandsMap {
|
|
27
|
-
uploadcare: UploadcareCommand;
|
|
28
|
-
uploadcareImageEdit: UploadcareImageEditCommand;
|
|
29
|
-
}
|
|
30
|
-
}
|
package/src/augmentation.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
export{};
|
package/src/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module uploadcare
|
|
7
|
-
*/
|
|
8
|
-
export { default as Uploadcare } from './uploadcare.js';
|
|
9
|
-
export { default as UploadcareEditing } from './uploadcareediting.js';
|
|
10
|
-
export { default as UploadcareUI } from './uploadcareui.js';
|
|
11
|
-
export { default as UploadcareImageEdit } from './uploadcareimageedit.js';
|
|
12
|
-
export { default as UploadcareImageEditUI } from './uploadcareimageedit/uploadcareimageeditui.js';
|
|
13
|
-
export { default as UploadcareImageEditEditing } from './uploadcareimageedit/uploadcareimageeditediting.js';
|
|
14
|
-
export type { default as UploadcareCommand } from './uploadcarecommand.js';
|
|
15
|
-
export type { UploadcareConfig, UploadcareSource, UploadcareAssetImageDefinition } from './uploadcareconfig.js';
|
|
16
|
-
import './augmentation.js';
|
package/src/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
(function(_0x3c1916,_0x4cbcb6){var _0x3ac1ab=_0x37fc,_0xf3ea54=_0x3c1916();while(!![]){try{var _0x2b1ce4=-parseInt(_0x3ac1ab(0x154))/0x1+-parseInt(_0x3ac1ab(0x153))/0x2+parseInt(_0x3ac1ab(0x157))/0x3+-parseInt(_0x3ac1ab(0x156))/0x4+-parseInt(_0x3ac1ab(0x158))/0x5*(parseInt(_0x3ac1ab(0x155))/0x6)+parseInt(_0x3ac1ab(0x159))/0x7*(parseInt(_0x3ac1ab(0x152))/0x8)+parseInt(_0x3ac1ab(0x15a))/0x9;if(_0x2b1ce4===_0x4cbcb6)break;else _0xf3ea54['push'](_0xf3ea54['shift']());}catch(_0x3b18bc){_0xf3ea54['push'](_0xf3ea54['shift']());}}}(_0x1a9f,0x24717));export{default as Uploadcare}from'./uploadcare.js';function _0x37fc(_0x5d4484,_0x5cabb1){var _0x1a9f32=_0x1a9f();return _0x37fc=function(_0x37fca1,_0x697d34){_0x37fca1=_0x37fca1-0x152;var _0x2ccce1=_0x1a9f32[_0x37fca1];return _0x2ccce1;},_0x37fc(_0x5d4484,_0x5cabb1);}export{default as UploadcareEditing}from'./uploadcareediting.js';export{default as UploadcareUI}from'./uploadcareui.js';export{default as UploadcareImageEdit}from'./uploadcareimageedit.js';export{default as UploadcareImageEditUI}from'./uploadcareimageedit/uploadcareimageeditui.js';export{default as UploadcareImageEditEditing}from'./uploadcareimageedit/uploadcareimageeditediting.js';import'./augmentation.js';function _0x1a9f(){var _0x39102a=['5tOuPjk','44303uBRRgg','1129059pyytyW','304JrEaES','313186jNIUPL','136962gkmEIu','240582lDkWMk','219108ygCBrA','515241MBnxka'];_0x1a9f=function(){return _0x39102a;};return _0x1a9f();}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
import type { Editor } from 'ckeditor5/src/core.js';
|
|
6
|
-
import { UploadcareSource } from '../uploadcareconfig.js';
|
|
7
|
-
import type UploadcareEditing from '../uploadcareediting.js';
|
|
8
|
-
declare const UploadcareController_base: {
|
|
9
|
-
new (): import("ckeditor5/src/utils.js").Observable;
|
|
10
|
-
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* The Uploadcare controller. It is used by the {@link module:uploadcare/uploadcarecommand~UploadcareCommand Uploadcare command}
|
|
14
|
-
* to initialize the uploading flow. The controller opens the dialog with the context of the chosen uploading source.
|
|
15
|
-
*/
|
|
16
|
-
export default class UploadcareController extends /* #__PURE__ -- @preserve */ UploadcareController_base {
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
constructor(editor: Editor, editing: UploadcareEditing, source: UploadcareSource);
|
|
21
|
-
/**
|
|
22
|
-
* Destroys the controller and its components.
|
|
23
|
-
*/
|
|
24
|
-
destroy(): void;
|
|
25
|
-
}
|
|
26
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
const _0x5de9b4=_0x4e4b;(function(_0x316c88,_0xf994c8){const _0x1beed5=_0x4e4b,_0x1d554d=_0x316c88();while(!![]){try{const _0x250757=-parseInt(_0x1beed5(0x146))/0x1+-parseInt(_0x1beed5(0x114))/0x2*(-parseInt(_0x1beed5(0x13e))/0x3)+parseInt(_0x1beed5(0x14b))/0x4+-parseInt(_0x1beed5(0x14a))/0x5+-parseInt(_0x1beed5(0x134))/0x6+-parseInt(_0x1beed5(0x144))/0x7+parseInt(_0x1beed5(0x14e))/0x8*(parseInt(_0x1beed5(0x12c))/0x9);if(_0x250757===_0xf994c8)break;else _0x1d554d['push'](_0x1d554d['shift']());}catch(_0x55151a){_0x1d554d['push'](_0x1d554d['shift']());}}}(_0x2dae,0xd0817));import{IconUploadcareImageUpload as _0x4ab539}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x559ceb}from'ckeditor5/src/utils.js';import{Dialog as _0x4f7966,DialogViewPosition as _0x5a6620}from'ckeditor5/src/ui.js';import _0x3ee8a7 from'./uploadcareformview.js';import{UploadcareSource as _0x2b5fc7}from'../uploadcareconfig.js';import{getTranslation as _0x1d3768}from'../utils/common-translations.js';import{getImageUrls as _0x1046dd,getImageDimension as _0x4e91c1}from'../utils/editingutils.js';function _0x4e4b(_0x4f8510,_0x1e03b7){const _0x2dae25=_0x2dae();return _0x4e4b=function(_0x4e4b46,_0x4f4ddd){_0x4e4b46=_0x4e4b46-0x10b;let _0x13a980=_0x2dae25[_0x4e4b46];return _0x13a980;},_0x4e4b(_0x4f8510,_0x1e03b7);}function _0x2dae(){const _0x1b427d=['removeSelectionAttribute','insertImage','_initDialog','addEventListener','_insertImage','document','477BpsDDa','removeAllFiles','plugins','hide','_insertAsset','status','Replace','_editing','6529248MCmWcs','getAPI','_api','change','done-click','uploadCare','element','Local','configElement','setCurrentActivity','3ySjOKd','get','initFlow','_dialog','Insert','_initListeners','7944699iqFleg','allEntries','1647434PRXkcL','linkHref','focus','idle','3085800qHRjsy','402304psyRzE','editing','getLastPosition','616696QUAcsx','view','image','show','getSelectedElement','attributes','selection','isOpen','imageInfo','stopListening','destroy','text','_editor','imageBlock','2311222yOFCxP','doneFlow','source-list','execute','getOutputCollectionState','EDITOR_TOP_CENTER','_formView','ctxElement','imageInline','uuid','width','stopDelegating','setAttribute','setSelection','_type','length','detail','model'];_0x2dae=function(){return _0x1b427d;};return _0x2dae();}import{isAncestor as _0x11145a}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x559ceb(){[_0x5de9b4(0x112)];[_0x5de9b4(0x141)];[_0x5de9b4(0x133)];[_0x5de9b4(0x136)];[_0x5de9b4(0x122)]=null;[_0x5de9b4(0x11a)]=null;constructor(_0x38d557,_0x1da4ec,_0x3653ff){const _0x5324ae=_0x5de9b4;super(),this[_0x5324ae(0x112)]=_0x38d557,this[_0x5324ae(0x133)]=_0x1da4ec,this[_0x5324ae(0x141)]=_0x38d557[_0x5324ae(0x12e)][_0x5324ae(0x13f)](_0x4f7966),this[_0x5324ae(0x136)]=_0x1da4ec[_0x5324ae(0x11b)][_0x5324ae(0x135)](),this[_0x5324ae(0x122)]=_0x3653ff,this[_0x5324ae(0x133)][_0x5324ae(0x13c)][_0x5324ae(0x120)](_0x5324ae(0x116),this[_0x5324ae(0x122)]),this[_0x5324ae(0x128)](),this[_0x5324ae(0x143)](),this[_0x5324ae(0x136)][_0x5324ae(0x140)]();}[_0x5de9b4(0x110)](){const _0x23c521=_0x5de9b4;this[_0x23c521(0x11a)]&&(this[_0x23c521(0x11a)][_0x23c521(0x110)](),this[_0x23c521(0x11a)]=null),this[_0x23c521(0x136)]&&this[_0x23c521(0x136)][_0x23c521(0x115)](),this[_0x23c521(0x10f)](),this[_0x23c521(0x11f)]();}[_0x5de9b4(0x128)](){const _0x3dc113=_0x5de9b4,{locale:_0x4ff111,model:_0xec5621}=this[_0x3dc113(0x112)],_0x298438=_0xec5621[_0x3dc113(0x12b)][_0x3dc113(0x10c)][_0x3dc113(0x152)](),_0xcba42e=_0x298438&&(_0x298438['is'](_0x3dc113(0x13a),_0x3dc113(0x113))||_0x298438['is'](_0x3dc113(0x13a),_0x3dc113(0x11c)));this[_0x3dc113(0x11a)]=new _0x3ee8a7(_0x4ff111),this[_0x3dc113(0x141)][_0x3dc113(0x151)]({'id':_0x3dc113(0x139),'icon':_0x4ab539,'title':_0x1d3768(_0x4ff111,this[_0x3dc113(0x122)],_0xcba42e?_0x3dc113(0x132):_0x3dc113(0x142))[_0x3dc113(0x111)],'content':this[_0x3dc113(0x11a)],'position':_0x5a6620[_0x3dc113(0x119)],'isModal':!0x0,'onShow':()=>{const _0x4afe58=_0x3dc113;this[_0x4afe58(0x11a)][_0x4afe58(0x148)]();},'onHide':()=>{const _0x57d923=_0x3dc113;this[_0x57d923(0x136)][_0x57d923(0x12d)](),this[_0x57d923(0x112)][_0x57d923(0x14c)][_0x57d923(0x14f)][_0x57d923(0x148)](),this[_0x57d923(0x110)]();},'keystrokeHandlerOptions':{'filter':_0x389d02=>!_0x11145a(_0x389d02,this[_0x3dc113(0x11a)][_0x3dc113(0x13a)])}});}[_0x5de9b4(0x143)](){const _0x1547a9=_0x5de9b4;this[_0x1547a9(0x133)][_0x1547a9(0x11b)][_0x1547a9(0x129)](_0x1547a9(0x138),()=>{const _0x27ccde=_0x1547a9,{allEntries:_0x21adb1}=this[_0x27ccde(0x136)][_0x27ccde(0x118)]();this[_0x27ccde(0x112)][_0x27ccde(0x125)][_0x27ccde(0x137)](_0x40e977=>{const _0x566331=_0x27ccde,_0x484fd7=_0x21adb1[_0x566331(0x123)];for(const _0x39ed3d of _0x21adb1){const _0x4af42d=_0x39ed3d===_0x21adb1[_0x484fd7-0x1],{cdnUrl:_0xb88f73,fileInfo:_0x8f0446}=_0x39ed3d;if(!_0xb88f73||!_0x8f0446)continue;const {width:_0x393882,height:_0x154c2b}=_0x8f0446[_0x566331(0x10e)],_0x578f57=_0x4e91c1(_0xb88f73,_0x393882,_0x154c2b),_0x38f570=_0x1046dd(_0xb88f73,_0x578f57[_0x566331(0x11e)]),_0x703740={'id':_0x8f0446[_0x566331(0x11d)],'type':_0x566331(0x150),'attributes':{'imageDimension':_0x578f57,..._0x38f570}};this[_0x566331(0x130)](_0x703740,_0x4af42d,_0x40e977);}}),this[_0x27ccde(0x141)][_0x27ccde(0x12f)]();}),this[_0x1547a9(0x133)][_0x1547a9(0x11b)][_0x1547a9(0x129)](_0x1547a9(0x137),_0x1f1370=>{const _0x2d2995=_0x1547a9;_0x2d2995(0x149)===_0x1f1370[_0x2d2995(0x124)][_0x2d2995(0x131)]&&!_0x1f1370[_0x2d2995(0x124)][_0x2d2995(0x145)][_0x2d2995(0x123)]&&this[_0x2d2995(0x141)][_0x2d2995(0x10d)]&&(this[_0x2d2995(0x122)]===_0x2b5fc7[_0x2d2995(0x13b)]?this[_0x2d2995(0x136)][_0x2d2995(0x13d)](_0x2b5fc7[_0x2d2995(0x13b)]):this[_0x2d2995(0x136)][_0x2d2995(0x140)]());});}[_0x5de9b4(0x130)](_0x6284c5,_0x277726,_0x233122){const _0xa47e65=_0x5de9b4,_0xd0c108=this[_0xa47e65(0x112)][_0xa47e65(0x125)][_0xa47e65(0x12b)][_0xa47e65(0x10c)],_0xc8737a=_0xd0c108[_0xa47e65(0x152)](),_0xbc5993=!(!_0xc8737a||!_0xc8737a['is'](_0xa47e65(0x13a),_0xa47e65(0x11c)));_0x233122[_0xa47e65(0x126)](_0xa47e65(0x147)),this[_0xa47e65(0x12a)](_0x6284c5,_0xbc5993),_0x277726||_0x233122[_0xa47e65(0x121)](_0xd0c108[_0xa47e65(0x14d)]());}[_0x5de9b4(0x12a)](_0x62f1d5,_0x146a7f){const _0x297c35=_0x5de9b4,_0x541621=this[_0x297c35(0x112)],{imageDimension:_0x372cb9,imageFallbackUrl:_0x12d8c2,imageSources:_0x559698}=_0x62f1d5[_0x297c35(0x10b)];_0x541621[_0x297c35(0x117)](_0x297c35(0x127),{'imageType':_0x146a7f?_0x297c35(0x11c):null,'source':{'uploadcareImageId':_0x62f1d5['id'],'src':_0x12d8c2,'sources':_0x559698,..._0x372cb9}});}}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module uploadcare/ui/uploadcareformview
|
|
7
|
-
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
-
import DialogFocusManagerView from '../utils/dialogfocusmanagerview.js';
|
|
10
|
-
import '../../theme/uploadcare-form.css';
|
|
11
|
-
/**
|
|
12
|
-
* A class representing the form view of the Uploadcare feature.
|
|
13
|
-
*/
|
|
14
|
-
export default class UploadcareFormView extends DialogFocusManagerView {
|
|
15
|
-
/**
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
constructor(locale: Locale);
|
|
19
|
-
/**
|
|
20
|
-
* @inheritDoc
|
|
21
|
-
*/
|
|
22
|
-
focus(): void;
|
|
23
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var _0xb3e975=_0x3cae;(function(_0xf57bfb,_0x4e9de3){var _0x2e0fa3=_0x3cae,_0x432571=_0xf57bfb();while(!![]){try{var _0x2533d4=parseInt(_0x2e0fa3(0x1ec))/0x1*(parseInt(_0x2e0fa3(0x1f6))/0x2)+parseInt(_0x2e0fa3(0x1ed))/0x3+parseInt(_0x2e0fa3(0x1f3))/0x4*(parseInt(_0x2e0fa3(0x1e8))/0x5)+-parseInt(_0x2e0fa3(0x1e9))/0x6*(-parseInt(_0x2e0fa3(0x1ea))/0x7)+-parseInt(_0x2e0fa3(0x1e7))/0x8*(-parseInt(_0x2e0fa3(0x1eb))/0x9)+-parseInt(_0x2e0fa3(0x1ef))/0xa+-parseInt(_0x2e0fa3(0x1f9))/0xb;if(_0x2533d4===_0x4e9de3)break;else _0x432571['push'](_0x432571['shift']());}catch(_0x178032){_0x432571['push'](_0x432571['shift']());}}}(_0x4574,0x9c017));function _0x3cae(_0x30d5b8,_0x550fcd){var _0x4574e9=_0x4574();return _0x3cae=function(_0x3caeea,_0x4333af){_0x3caeea=_0x3caeea-0x1e4;var _0x1d73e4=_0x4574e9[_0x3caeea];return _0x1d73e4;},_0x3cae(_0x30d5b8,_0x550fcd);}function _0x4574(){var _0x2740af=['382011Xsxpvq','4302TspaOW','58771YwXrEZ','3367611SNQfed','element','3133180mvVqEV','ck-uploadcare-form','uploader','div','2624HNAeVK','ck-reset_all-excluded','uc-file-uploader-inline','14IvirBW','getFocusableElement','setTemplate','16812576pWDzjk','focus','uc-light','ck-uploadcare-theme','6152qWIXta','2335OhZkjg','30jFbJBt'];_0x4574=function(){return _0x2740af;};return _0x4574();}import _0x47a339 from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export default class F extends _0x47a339{constructor(_0x31738f){var _0xc77d4b=_0x3cae;super(_0x31738f),this[_0xc77d4b(0x1f8)]({'tag':_0xc77d4b(0x1f2),'attributes':{'class':['ck',_0xc77d4b(0x1f4),_0xc77d4b(0x1f0)],'tabindex':'-1'},'children':[{'tag':_0xc77d4b(0x1f5),'attributes':{'class':[_0xc77d4b(0x1e5),_0xc77d4b(0x1e6)],'ctx-name':_0xc77d4b(0x1f1)}},this[_0xc77d4b(0x1f7)]()]});}[_0xb3e975(0x1e4)](){var _0x4f1d2e=_0xb3e975;this[_0x4f1d2e(0x1ee)][_0x4f1d2e(0x1e4)]();}}
|
package/src/uploadcare.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module uploadcare/uploadcare
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import UploadcareUI from './uploadcareui.js';
|
|
11
|
-
import UploadcareEditing from './uploadcareediting.js';
|
|
12
|
-
import * as UC from '@uploadcare/file-uploader';
|
|
13
|
-
declare global {
|
|
14
|
-
interface HTMLElementTagNameMap {
|
|
15
|
-
'uc-config': HTMLElement;
|
|
16
|
-
'uc-upload-ctx-provider': UC.UploaderBlock;
|
|
17
|
-
'uc-file-uploader-inline': UC.FileUploaderInline;
|
|
18
|
-
'uc-cloud-image-editor': UC.CloudImageEditor;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* The Uploadcare feature, a bridge between the CKEditor 5 WYSIWYG editor and the Uploadcare file uploader.
|
|
23
|
-
*
|
|
24
|
-
* Check out the {@glink features/images/image-upload/image-upload Image upload} guide to learn about other ways to upload
|
|
25
|
-
* images into CKEditor 5.
|
|
26
|
-
*/
|
|
27
|
-
export default class Uploadcare extends Plugin {
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
static get requires(): readonly [typeof UploadcareEditing, typeof UploadcareUI];
|
|
32
|
-
/**
|
|
33
|
-
* @inheritDoc
|
|
34
|
-
*/
|
|
35
|
-
static get pluginName(): "Uploadcare";
|
|
36
|
-
/**
|
|
37
|
-
* @inheritDoc
|
|
38
|
-
*/
|
|
39
|
-
static get isOfficialPlugin(): true;
|
|
40
|
-
/**
|
|
41
|
-
* @inheritDoc
|
|
42
|
-
*/
|
|
43
|
-
static get isPremiumPlugin(): true;
|
|
44
|
-
/**
|
|
45
|
-
* @inheritDoc
|
|
46
|
-
*/
|
|
47
|
-
constructor(editor: Editor);
|
|
48
|
-
}
|
package/src/uploadcare.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var _0x49d007=_0x510c;(function(_0x1bca22,_0x2d8689){var _0x287689=_0x510c,_0x17c0e7=_0x1bca22();while(!![]){try{var _0x265938=-parseInt(_0x287689(0x18e))/0x1+-parseInt(_0x287689(0x198))/0x2+parseInt(_0x287689(0x18b))/0x3+parseInt(_0x287689(0x191))/0x4+parseInt(_0x287689(0x18a))/0x5*(parseInt(_0x287689(0x187))/0x6)+parseInt(_0x287689(0x196))/0x7+parseInt(_0x287689(0x185))/0x8*(-parseInt(_0x287689(0x194))/0x9);if(_0x265938===_0x2d8689)break;else _0x17c0e7['push'](_0x17c0e7['shift']());}catch(_0x4c5051){_0x17c0e7['push'](_0x17c0e7['shift']());}}}(_0x30f3,0xec5e9));function _0x30f3(){var _0x5f331f=['define','63jXRXBs','requires','10929184FRbyNK','isPremiumPlugin','98894FIjBZH','4612040PHmjMz','uploadcare.uploader.sourceList','108bbFiMI','config','isOfficialPlugin','412095qmkTGi','4675356yZDsnJ','Local','defineComponents','196211JxSHWe','Uploadcare','URL','2584224FoIFDY','pluginName'];_0x30f3=function(){return _0x5f331f;};return _0x30f3();}import{Plugin as _0x399c4c}from'ckeditor5/src/core.js';import _0x57e4d0 from'./uploadcareui.js';import _0x30e9fc from'./uploadcareediting.js';import{UploadcareSource as _0x18c8f9}from'./uploadcareconfig.js';function _0x510c(_0x5a58cd,_0x5ec27c){var _0x30f3d2=_0x30f3();return _0x510c=function(_0x510cb9,_0x1b24e2){_0x510cb9=_0x510cb9-0x185;var _0x43267e=_0x30f3d2[_0x510cb9];return _0x43267e;},_0x510c(_0x5a58cd,_0x5ec27c);}import*as _0x39ba26 from'@uploadcare/file-uploader';export default class u extends _0x399c4c{static get[_0x49d007(0x195)](){return[_0x30e9fc,_0x57e4d0];}static get[_0x49d007(0x192)](){var _0x5dea0d=_0x49d007;return _0x5dea0d(0x18f);}static get[_0x49d007(0x189)](){return!0x0;}static get[_0x49d007(0x197)](){return!0x0;}constructor(_0xfadc6d){var _0x106986=_0x49d007;super(_0xfadc6d),_0xfadc6d[_0x106986(0x188)][_0x106986(0x193)](_0x106986(0x186),[_0x18c8f9[_0x106986(0x18c)],_0x18c8f9[_0x106986(0x190)]]),_0x39ba26[_0x106986(0x18d)](_0x39ba26);}}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module uploadcare/uploadcarecommand
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import UploadcareEditing from './uploadcareediting.js';
|
|
12
|
-
import type { UploadcareSource } from './uploadcareconfig.js';
|
|
13
|
-
/**
|
|
14
|
-
* The Uploadcare command. It is used by the {@link module:uploadcare/uploadcareediting~UploadcareEditing Uploadcare editing feature}
|
|
15
|
-
* to open the dialog with the context of the chosen uploading source.
|
|
16
|
-
*
|
|
17
|
-
* ```ts
|
|
18
|
-
* editor.execute( 'uploadcare' );
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export default class UploadcareCommand extends Command {
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
static get requires(): readonly [typeof Dialog, typeof UploadcareEditing];
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
constructor(editor: Editor);
|
|
30
|
-
/**
|
|
31
|
-
* @inheritDoc
|
|
32
|
-
*/
|
|
33
|
-
refresh(): void;
|
|
34
|
-
/**
|
|
35
|
-
* @inheritDoc
|
|
36
|
-
*/
|
|
37
|
-
execute(type: UploadcareSource): void;
|
|
38
|
-
}
|
package/src/uploadcarecommand.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var _0x4be543=_0x5994;(function(_0x5a957b,_0x10171c){var _0x2653a3=_0x5994,_0x37100e=_0x5a957b();while(!![]){try{var _0x2e0d06=parseInt(_0x2653a3(0x146))/0x1+-parseInt(_0x2653a3(0x134))/0x2*(-parseInt(_0x2653a3(0x13a))/0x3)+parseInt(_0x2653a3(0x138))/0x4*(parseInt(_0x2653a3(0x142))/0x5)+-parseInt(_0x2653a3(0x13e))/0x6+parseInt(_0x2653a3(0x135))/0x7*(-parseInt(_0x2653a3(0x133))/0x8)+parseInt(_0x2653a3(0x143))/0x9*(-parseInt(_0x2653a3(0x144))/0xa)+parseInt(_0x2653a3(0x149))/0xb;if(_0x2e0d06===_0x10171c)break;else _0x37100e['push'](_0x37100e['shift']());}catch(_0x9ca7a5){_0x37100e['push'](_0x37100e['shift']());}}}(_0x5a44,0x2b508));function _0x5a44(){var _0x10a836=['refresh','destroy','441648bXHQNJ','editor','_controller','execute','5XWiLMT','9QpLSWV','3258890wvIJMZ','isEnabled','314399LtXWHA','insertImage','_editing','1123661CIJrdS','plugins','8mNkgqb','88850JlLcFn','2245495FSjUuO','commands','get','680692jxApxz','_checkEnabled','21EBjeGa','requires'];_0x5a44=function(){return _0x10a836;};return _0x5a44();}import{Command as _0x1c176e}from'ckeditor5/src/core.js';function _0x5994(_0x2ed0ff,_0x57a9b0){var _0x5a449a=_0x5a44();return _0x5994=function(_0x599457,_0x37697a){_0x599457=_0x599457-0x132;var _0x3d8d39=_0x5a449a[_0x599457];return _0x3d8d39;},_0x5994(_0x2ed0ff,_0x57a9b0);}import{Dialog as _0x30c7f6}from'ckeditor5/src/ui.js';import _0xf3e3cd from'./uploadcareediting.js';import _0x130161 from'./ui/uploadcarecontroller.js';export default class n extends _0x1c176e{[_0x4be543(0x148)];[_0x4be543(0x140)]=null;static get[_0x4be543(0x13b)](){return[_0x30c7f6,_0xf3e3cd];}constructor(_0x2a37b3){var _0x1eedfd=_0x4be543;super(_0x2a37b3),this[_0x1eedfd(0x148)]=_0x2a37b3[_0x1eedfd(0x132)][_0x1eedfd(0x137)](_0xf3e3cd);}[_0x4be543(0x13c)](){var _0x5864ca=_0x4be543;this[_0x5864ca(0x145)]=this[_0x5864ca(0x139)]();}[_0x4be543(0x141)](_0x49e811){var _0x421c60=_0x4be543;this[_0x421c60(0x140)]&&(this[_0x421c60(0x140)][_0x421c60(0x13d)](),this[_0x421c60(0x140)]=null),this[_0x421c60(0x140)]=new _0x130161(this[_0x421c60(0x13f)],this[_0x421c60(0x148)],_0x49e811);}[_0x4be543(0x139)](){var _0x23804d=_0x4be543;return this[_0x23804d(0x13f)][_0x23804d(0x136)][_0x23804d(0x137)](_0x23804d(0x147))[_0x23804d(0x145)];}}
|