@ckeditor/ckeditor5-uploadcare 48.8.1-alpha.3 → 48.8.1-alpha.4
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/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x517c7d,Command as _0x2fa3e0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x298c0b,IconGooglePhotos as _0x12703f,IconGoogleDrive as _0x2ad682,IconFacebook as _0x4438bd,IconDropbox as _0x3887af,IconUploadcareLink as _0x25c216,IconUploadcareImageUpload as _0x3f6a78,IconError as _0x43ad73,IconUploadcareImageEdit as _0x48032d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21cd09,MenuBarMenuListItemButtonView as _0x5933c4,View as _0x18c81a,FocusCycler as _0x5b38e5,Dialog as _0x5b6746,DialogViewPosition as _0x4ee6fc,SpinnerView as _0xcc13b9,IconView as _0x54ea45,Notification as _0x5504ae}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4461e1,DomEmitterMixin as _0x37f2e1,global as _0x330018,getAncestors as _0x2f4423,ObservableMixin as _0x486c14,uid as _0x37c204,createElement as _0x1bd2f6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ImageUploadEditing as _0x56ab7f,ImageUploadProgress as _0x404517,PictureEditing as _0x4f200e,ImageUtils as _0xd10c5f,ImageEditing as _0x3341d1}from'@ckeditor/ckeditor5-image/dist/index.js';import{FileRepository as _0x3e16f1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x434fea,info as _0x232f47}from'@uploadcare/upload-client';import*as _0x565e0b from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x464394,_0x2fe57e,_0x1eb3cb){const t=_0x464394['t'],_0x4e1608=_0x464394['t'];switch(_0x2fe57e){case'local':return{'text':_0x4e1608('Insert'===_0x1eb3cb?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4e1608('From\x20computer')};case'url':return{'text':'Insert'===_0x1eb3cb?_0x4e1608('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4e1608('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x1eb3cb?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x1eb3cb?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x1eb3cb?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x1eb3cb?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x1eb3cb?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2fe57e;}}class UploadcareUI extends _0x517c7d{['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 _0x57d230=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2efd3f;for(const _0x4b903d in _0x57d230){const _0x3893fb=_0x4b903d,_0x447b42=_0x57d230[_0x3893fb];if('uploadcareLicenseKeyValid'==_0x447b42||'uploadcareLicenseKeyInvalid'==_0x447b42||'uploadcareLicenseKeyExpired'==_0x447b42||'uploadcareLicenseKeyDomainLimit'==_0x447b42||'uploadcareLicenseKeyNotAllowed'==_0x447b42||'uploadcareLicenseKeyEvaluationLimit'==_0x447b42||'uploadcareLicenseKeyUsageLimit'==_0x447b42){delete _0x57d230[_0x3893fb],_0x2efd3f=_0x447b42,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2efd3f&&_0x57d230['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2efd3f&&_0x57d230['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2efd3f&&_0x57d230['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2efd3f&&_0x57d230['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2efd3f&&_0x57d230['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2efd3f&&_0x57d230['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1e4be1}=this,_0x1a3d64=_0x1e4be1['commands']['get']('uploadcare');if(!_0x1a3d64)return;const _0x2829a3=this['_normalizeConfigSourceList'](_0x1e4be1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xa0215e,_0x3d6538)=>{const _0x324693=this['_getIntegrationKey'](_0x3d6538['type']);return _0xa0215e[_0x324693]||(_0xa0215e[_0x324693]=[]),_0xa0215e[_0x324693]['push'](_0x3d6538),_0xa0215e;},{});_0x1e4be1['plugins']['has']('ImageInsertUI')&&_0x1e4be1['commands']['get']('uploadcare')&&Object['entries'](_0x2829a3)['forEach'](([_0x3d9cf2,_0x2b01c5])=>{_0x1e4be1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3d9cf2,'observable':()=>_0x1a3d64,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2b01c5),'formViewCreator':()=>this['_createDropdownButtons'](_0x2b01c5),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2b01c5),'override':'assetManager'!==_0x3d9cf2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5579db){const {locale:_0x29eb5e}=this['editor'];return _0x5579db['map'](_0x1a6e9c=>{const _0x31a637=T(_0x29eb5e,_0x1a6e9c,'Insert');switch(_0x1a6e9c){case'local':return{'icon':_0x3f6a78,'type':'local',..._0x31a637};case'url':return{'icon':_0x25c216,'type':'url',..._0x31a637};case'dropbox':return{'icon':_0x3887af,'type':'dropbox',..._0x31a637};case'facebook':return{'icon':_0x4438bd,'type':'facebook',..._0x31a637};case'gdrive':return{'icon':_0x2ad682,'type':'gdrive',..._0x31a637};case'gphotos':return{'icon':_0x12703f,'type':'gphotos',..._0x31a637};case'onedrive':return{'icon':_0x298c0b,'type':'onedrive',..._0x31a637};}});}['_getIntegrationKey'](_0x1f67c6){switch(_0x1f67c6){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x3b7da0,_0x18fc59){const _0x33616b=this['editor'],_0x468e64=new _0x3b7da0(_0x33616b['locale']),_0x4af0bf=_0x33616b['commands']['get']('uploadcare');return _0x468e64['bind']('isEnabled')['to'](_0x4af0bf),_0x468e64['on']('execute',()=>{_0x4af0bf['execute'](_0x18fc59);}),_0x468e64;}['_createToolbarButton'](_0x17dd8f){const {locale:_0x3d6db7}=this['editor'],_0x5ba521=this['editor']['plugins']['get']('ImageInsertUI'),_0x3adebc=_0x17dd8f[0x0],_0x147807=this['_createButton'](_0x21cd09,_0x3adebc['type']);return _0x147807['icon']=_0x3adebc['icon'],_0x147807['bind']('label')['to'](_0x5ba521,'isImageSelected',_0x4aaadf=>T(_0x3d6db7,_0x3adebc['type'],_0x4aaadf?'Replace':'Insert')['text']),_0x147807['tooltip']=!0x0,_0x147807;}['_createDropdownButtons'](_0x432048){const {locale:_0x63d615}=this['editor'],_0x428b3c=this['editor']['plugins']['get']('ImageInsertUI');return _0x432048['map'](_0x370d13=>{const _0x69d31=this['_createButton'](_0x21cd09,_0x370d13['type']);return _0x69d31['withText']=!0x0,_0x69d31['icon']=_0x370d13['icon'],_0x69d31['bind']('label')['to'](_0x428b3c,'isImageSelected',_0x237a65=>T(_0x63d615,_0x370d13['type'],_0x237a65?'Replace':'Insert')['text']),_0x69d31;});}['_createMenuBarButtons'](_0x440c95){return _0x440c95['map'](_0x63a10f=>{const _0x59e0ce=this['_createButton'](_0x5933c4,_0x63a10f['type']);return _0x59e0ce['icon']=_0x63a10f['icon'],_0x59e0ce['label']=_0x63a10f['shortText'],_0x59e0ce;});}}class DialogFocusManagerView extends _0x18c81a{['focusTracker'];['focusCycler'];constructor(_0x369546){super(_0x369546),this['focusTracker']=new _0x4461e1(),this['focusCycler']=new _0x5b38e5({'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 UploadcareFormView extends DialogFocusManagerView{constructor(_0x24bea2,_0x5ef31f){super(_0x24bea2),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-'+_0x5ef31f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function K(_0x3017d9,_0x251bf2){const _0x562517=_0x3017d9['replace'](/\/$/,'');return{'imageFallbackUrl':_0x3017d9,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5848d9=>_0x5848d9<_0x251bf2)['map'](_0x3ca599=>_0x562517+'/-/resize/'+_0x3ca599+'x/\x20'+_0x3ca599+'w'),_0x3017d9+'\x20'+_0x251bf2+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x251bf2+'px)\x20100vw,\x20'+_0x251bf2+'px','type':'image/webp'}]};}function O(_0x22a7e8,_0x154bee,_0x58e758){const _0x3061f3=_0x22a7e8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3061f3?parseInt(_0x3061f3[0x1],0xa):_0x154bee,'height':_0x3061f3?parseInt(_0x3061f3[0x2],0xa):_0x58e758};}function $(_0x47a380,_0x4f6d39){const _0x1e447b=new(_0x37f2e1())(),_0x350ca6=_0x47a380['plugins']['get']('ImageUtils'),_0x32ff95=_0x47a380['editing']['mapper']['toViewElement'](_0x4f6d39),_0x5734e8=_0x350ca6['findViewImgElement'](_0x32ff95),_0x58b115=_0x47a380['editing']['view']['domConverter']['viewToDom'](_0x5734e8),_0x327d70=_0x4f6d39['getAttribute']('width'),_0x4ddc7f=_0x4f6d39['getAttribute']('height'),_0x53fe6d='image-processing';_0x47a380['editing']['view']['change'](_0xbfad5a=>{_0xbfad5a['addClass'](_0x53fe6d,_0x32ff95),_0xbfad5a['setStyle']('aspect-ratio',_0x327d70+'/'+_0x4ddc7f,_0x5734e8);}),_0x1e447b['listenTo'](_0x58b115,'load',()=>{_0x1e447b['stopListening'](_0x58b115,'load'),_0x47a380['editing']['view']['change'](_0x13837b=>{_0x13837b['removeClass'](_0x53fe6d,_0x32ff95),_0x13837b['removeStyle']('aspect-ratio',_0x5734e8);});});}function B(_0x44831d){if(Array['isArray'](_0x44831d)){const _0x59c251=_0x44831d['map'](B);return _0x3726f1=>_0x59c251['some'](_0x2a8942=>_0x2a8942(_0x3726f1));}if('origin'==_0x44831d){const _0x2b6ed0=_0x330018['window']['location']['origin'];return _0x2c160d=>new URL(_0x2c160d,_0x330018['document']['baseURI'])['origin']==_0x2b6ed0;}return'function'==typeof _0x44831d?_0x44831d:_0x44831d instanceof RegExp?_0x5ee2b5=>!(!_0x5ee2b5['match'](_0x44831d)&&!_0x5ee2b5['replace'](/^https?:\/\//,'')['match'](_0x44831d)):()=>!0x1;}function M(_0x1a2b34,_0x5ddaca){return _0x2f4423(_0x1a2b34['target'])['includes'](_0x5ddaca);}class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x486c14(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x317f16,_0x14a54d,_0x27beec){super(),this['_editor']=_0x317f16,this['_editing']=_0x14a54d,this['_dialog']=_0x317f16['plugins']['get'](_0x5b6746),this['_api']=_0x14a54d['ctxElement']['getAPI'](),this['_type']=_0x27beec,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:_0x46c698,model:_0x40598f}=this['_editor'],_0x1de2dd=_0x40598f['document']['selection']['getSelectedElement'](),_0x18c455=_0x1de2dd&&(_0x1de2dd['is']('element','imageBlock')||_0x1de2dd['is']('element','imageInline'));this['_formView']=new UploadcareFormView(_0x46c698,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3f6a78,'title':T(_0x46c698,this['_type'],_0x18c455?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4ee6fc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53a5e6=>!M(_0x53a5e6,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x101118}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x595db4=>{const _0x44a186=_0x101118['length'];for(const _0x373ff6 of _0x101118){const _0x4f6966=_0x373ff6===_0x101118[_0x44a186-0x1],{cdnUrl:_0x2c2cfe,fileInfo:_0x7c8c5f}=_0x373ff6;if(!_0x2c2cfe||!_0x7c8c5f)continue;const {width:_0x192d2c,height:_0x211a48}=_0x7c8c5f['imageInfo'],_0x550e5f=O(_0x2c2cfe,_0x192d2c,_0x211a48),_0x576734=K(_0x2c2cfe,_0x550e5f['width']),_0x2cedbd={'id':_0x7c8c5f['uuid'],'type':'image','attributes':{'imageDimension':_0x550e5f,..._0x576734}};this['_insertAsset'](_0x2cedbd,_0x4f6966,_0x595db4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5f107c=>{'idle'===_0x5f107c['detail']['status']&&!_0x5f107c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x186cda,_0x31294f,_0x517622){const _0x44f261=this['_editor']['model']['document']['selection'],_0x10deb7=_0x44f261['getSelectedElement'](),_0x36ffa1=!(!_0x10deb7||!_0x10deb7['is']('element','imageInline'));_0x517622['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x186cda,_0x36ffa1),_0x31294f||_0x517622['setSelection'](_0x44f261['getLastPosition']());}['_insertImage'](_0x8ea85a,_0x1fe123){const _0x1de086=this['_editor'],{imageDimension:_0x1f6ee0,imageFallbackUrl:_0x3db7f3,imageSources:_0x4bd634}=_0x8ea85a['attributes'];_0x1de086['execute']('insertImage',{'imageType':_0x1fe123?'imageInline':null,'source':{'uploadcareImageId':_0x8ea85a['id'],'src':_0x3db7f3,'sources':_0x4bd634,..._0x1f6ee0}});}}class UploadcareCommand extends _0x2fa3e0{['_editing'];['_controller']=null;static get['requires'](){return[_0x5b6746,UploadcareEditing];}constructor(_0x3e09ca){super(_0x3e09ca),this['_editing']=_0x3e09ca['plugins']['get'](UploadcareEditing);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x58e9c1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new UploadcareController(this['editor'],this['_editing'],_0x58e9c1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class UploadUtils{static['upload']({file:_0x3d7e5b,..._0x5e5a7d}){return _0x434fea(_0x3d7e5b,_0x5e5a7d);}static['getInfo'](_0x38b1a0,_0x57dd8b){return _0x232f47(_0x38b1a0,_0x57dd8b);}}class UploadcareUploadAdapter extends _0x517c7d{static get['requires'](){return[_0x56ab7f,_0x404517,_0x3e16f1,UploadcareEditing];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x9aeaf6=this['editor'];if(!!!_0x9aeaf6['config']['get']('uploadcare'))return;_0x9aeaf6['plugins']['get'](_0x3e16f1)['createUploadAdapter']=_0x3f031f=>new Adapter(_0x3f031f,_0x9aeaf6),_0x9aeaf6['plugins']['get'](_0x56ab7f)['on']('uploadComplete',(_0x467355,{imageElement:_0x28feda,data:_0x418316})=>{_0x9aeaf6['model']['change'](_0x2e69df=>{_0x2e69df['setAttribute']('uploadcareImageId',_0x418316['uploadcareImageId'],_0x28feda);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x2a4a5e,_0x12d221){this['loader']=_0x2a4a5e,this['editor']=_0x12d221,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1c6f1c=await this['loader']['file'];return UploadUtils['upload']({'file':_0x1c6f1c,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1f56f1=>{_0x1f56f1&&_0x1f56f1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1f56f1['value']);}})['then'](async _0x3af0f1=>{const {imageFallbackUrl:_0x138e58,imageSources:_0x269f59}=K(_0x3af0f1['cdnUrl'],_0x3af0f1['imageInfo']['width']);return{'uploadcareImageId':_0x3af0f1['uuid'],'default':_0x138e58,'sources':_0x269f59};})['catch'](()=>{const _0x13515c=t('Cannot\x20upload\x20file:')+('\x20'+_0x1c6f1c['name']+'.');return Promise['reject'](_0x13515c);});}['abort'](){this['controller']['abort']();}}class UploadcareEditing extends _0x517c7d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x4f200e,UploadcareUploadAdapter,_0x5b6746];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1768b5){super(_0x1768b5),this['ucContextId']=_0x37c204();}['init'](){const _0x4e479d=this['editor'];_0x4e479d['commands']['add']('uploadcare',new UploadcareCommand(_0x4e479d));}['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 _0x5f3147=_0x330018['document']['querySelector']('input[uploadcare-file-input]');_0x5f3147&&_0x5f3147['remove']();}),async function(_0x23772e){const _0x485c3a=_0x210c5a([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xc9d7b9=0x535f8c3a,_0x57c598=0x53580652^_0xc9d7b9,_0x1623fe=window[_0x210c5a([0x44,0x61,0x74,0x65])][_0x210c5a([0x6e,0x6f,0x77])](),_0x24138=_0x23772e[_0x210c5a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c7729=new window[(_0x210c5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee585=>{_0x24138[_0x210c5a([0x6f,0x6e,0x63,0x65])](_0x210c5a([0x72,0x65,0x61,0x64,0x79]),_0x4ee585);}),_0x325978={[_0x210c5a([0x6b,0x74,0x79])]:_0x210c5a([0x45,0x43]),[_0x210c5a([0x75,0x73,0x65])]:_0x210c5a([0x73,0x69,0x67]),[_0x210c5a([0x63,0x72,0x76])]:_0x210c5a([0x50,0x2d,0x32,0x35,0x36]),[_0x210c5a([0x78])]:_0x210c5a([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]),[_0x210c5a([0x79])]:_0x210c5a([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]),[_0x210c5a([0x61,0x6c,0x67])]:_0x210c5a([0x45,0x53,0x32,0x35,0x36])},_0xc4fc45=_0x24138[_0x210c5a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x210c5a([0x67,0x65,0x74])](_0x210c5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x417157(){let _0x1e0d48,_0x42c432=null,_0x5743a2=null;try{if(_0xc4fc45==_0x210c5a([0x47,0x50,0x4c]))return _0x210c5a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e0d48=_0x40e5aa(),!_0x1e0d48)return _0x210c5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e0d48[_0x210c5a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5743a2=_0xe3f449(_0x1e0d48[_0x210c5a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e0d48[_0x210c5a([0x6a,0x74,0x69])])),await _0x2659b3()?_0x3fa074()?_0x29827d()?_0x210c5a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44419d()?(_0x1e0d48[_0x210c5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x210c5a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42c432=_0xe5d0db(_0x210c5a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e8d99()):_0x210c5a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x210c5a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x210c5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x210c5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x29827d(){const _0x39fd45=[_0x210c5a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x210c5a([0x74,0x72,0x69,0x61,0x6c])][_0x210c5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e0d48[_0x210c5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1623fe/0x3e8:0xe10*_0x57c598;return _0x1e0d48[_0x210c5a([0x65,0x78,0x70])]<_0x39fd45;}function _0x3fa074(){const _0x11b430=_0x1e0d48[_0x210c5a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x11b430&&(!!_0x11b430[_0x210c5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x210c5a([0x2a]))||!!_0x11b430[_0x210c5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x210c5a([0x55,0x50,0x4c,0x43])));}function _0x44419d(){const _0x598664=_0x1e0d48[_0x210c5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x598664||0x0==_0x598664[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x289f0a}=new URL(window[_0x210c5a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x598664[_0x210c5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x289f0a))return!0x0;const _0x106e7c=_0x289f0a[_0x210c5a([0x73,0x70,0x6c,0x69,0x74])](_0x210c5a([0x2e]));return _0x598664[_0x210c5a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x277ccc=>_0x277ccc[_0x210c5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x210c5a([0x2a])))[_0x210c5a([0x6d,0x61,0x70])](_0xa2691d=>_0xa2691d[_0x210c5a([0x73,0x70,0x6c,0x69,0x74])](_0x210c5a([0x2e])))[_0x210c5a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x202dfc=>_0x202dfc[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x106e7c[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x210c5a([0x6d,0x61,0x70])](_0x4b7da8=>Array(_0x106e7c[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4b7da8[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x210c5a([0x66,0x69,0x6c,0x6c])](_0x4b7da8[0x0]===_0x210c5a([0x2a])?_0x210c5a([0x2a]):'')[_0x210c5a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4b7da8))[_0x210c5a([0x73,0x6f,0x6d,0x65])](_0x633078=>_0x106e7c[_0x210c5a([0x65,0x76,0x65,0x72,0x79])]((_0x29ac7d,_0x2be978)=>_0x633078[_0x2be978]===_0x29ac7d||_0x633078[_0x2be978]===_0x210c5a([0x2a])));}function _0x5e8d99(){return _0x42c432&&_0x5743a2?new window[(_0x210c5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a3ed4,_0x5b8d59)=>{_0x42c432[_0x210c5a([0x74,0x68,0x65,0x6e])](_0x1a3ed4,_0x5b8d59),_0x5743a2[_0x210c5a([0x74,0x68,0x65,0x6e])](_0xa74649=>{_0xa74649!=_0x210c5a([0x56,0x61,0x6c,0x69,0x64])&&_0x1a3ed4(_0xa74649);},_0x5b8d59);}):_0x42c432||_0x5743a2||_0x210c5a([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe3f449(_0x589122,_0x38aec3){return new window[(_0x210c5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x445919=>{if(_0x543feb())return _0x445919(_0x210c5a([0x56,0x61,0x6c,0x69,0x64]));_0x389cad(),_0x24138[_0x210c5a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x210c5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ee5c7=!0x1;const _0x5e344e=_0x37c204();function _0x2c4e1a(_0x4b6ccb){return!!_0x4b6ccb&&(typeof _0x4b6ccb===_0x210c5a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b6ccb===_0x210c5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b6ccb[_0x210c5a([0x74,0x68,0x65,0x6e])]===_0x210c5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b6ccb[_0x210c5a([0x63,0x61,0x74,0x63,0x68])]===_0x210c5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53f621(_0x2b0b53){_0x23c538(_0x2b0b53)[_0x210c5a([0x74,0x68,0x65,0x6e])](_0x21d440=>{if(!_0x21d440||_0x21d440[_0x210c5a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x210c5a([0x6f,0x6b]))return _0x210c5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x293461(_0x1be25d(_0x5e344e+_0x38aec3))!=_0x21d440[_0x210c5a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x210c5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x210c5a([0x56,0x61,0x6c,0x69,0x64]);})[_0x210c5a([0x74,0x68,0x65,0x6e])](_0x5973a3=>(_0x59265b(),_0x5973a3),()=>{const _0x1d38b1=_0x12edbc();return null==_0x1d38b1?(_0x59265b(),_0x210c5a([0x56,0x61,0x6c,0x69,0x64])):_0x210c5a(_0x1623fe-_0x1d38b1>(0x7753083a^_0xc9d7b9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x210c5a([0x74,0x68,0x65,0x6e])](_0x445919)[_0x210c5a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x445919(_0x210c5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37f6d6=0x536962ba^_0xc9d7b9;function _0x59265b(){const _0x2ea7a7=_0x210c5a([0x6c,0x6c,0x63,0x74,0x2d])+_0x293461(_0x1be25d(_0x589122)),_0x1e150f=_0x236f55(_0x293461(window[_0x210c5a([0x4d,0x61,0x74,0x68])][_0x210c5a([0x63,0x65,0x69,0x6c])](_0x1623fe/_0x37f6d6)));window[_0x210c5a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x210c5a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ea7a7,_0x1e150f);}function _0x12edbc(){const _0x41eb43=_0x210c5a([0x6c,0x6c,0x63,0x74,0x2d])+_0x293461(_0x1be25d(_0x589122)),_0x17c533=window[_0x210c5a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x210c5a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41eb43);return _0x17c533?window[_0x210c5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x236f55(_0x17c533),0x10)*_0x37f6d6:null;}function _0x23c538(_0x47db03){return new window[(_0x210c5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x75a85,_0x4cbdcd)=>{_0x47db03[_0x210c5a([0x74,0x68,0x65,0x6e])](_0x75a85,_0x4cbdcd),window[_0x210c5a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cbdcd,0x535e58fa^_0xc9d7b9);});}}_0x24138[_0x210c5a([0x6f,0x6e])](_0x210c5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e8d85,_0x5885e2)=>{if(_0x5885e2[0x0]!=_0x589122)return _0x445919(_0x210c5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5885e2[0x1]={..._0x5885e2[0x1],[_0x210c5a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e344e};},{[_0x210c5a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x210c5a([0x68,0x69,0x67,0x68])}),_0x24138[_0x210c5a([0x6f,0x6e])](_0x210c5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30d99d=>{_0x2c4e1a(_0x30d99d[_0x210c5a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ee5c7=!0x0,_0x53f621(_0x30d99d[_0x210c5a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x210c5a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x210c5a([0x6c,0x6f,0x77])}),_0x5c7729[_0x210c5a([0x74,0x68,0x65,0x6e])](()=>{_0x3ee5c7||_0x445919(_0x210c5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x543feb(){return _0x24138[_0x210c5a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x210c5a([0x76,0x69,0x65,0x77])][_0x210c5a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x210c5a([0x61,0x75,0x74,0x6f]);}function _0x389cad(){_0x24138[_0x210c5a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x210c5a([0x76,0x69,0x65,0x77])][_0x210c5a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x210c5a([0x61,0x75,0x74,0x6f]);}}function _0xe5d0db(_0x411208){const _0x16695b=[new window[(_0x210c5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22f12c=>setTimeout(_0x22f12c,0x5356b2f6^_0xc9d7b9)),_0x5c7729[_0x210c5a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x210c5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4daeae=>{let _0x2ca507=0x0;_0x24138[_0x210c5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x210c5a([0x6f,0x6e])](_0x210c5a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c1f4e,_0x28f96e)=>{_0x28f96e[0x0][_0x210c5a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ca507++,_0x2ca507==(0x535f89d2^_0xc9d7b9)&&(_0x4daeae(),_0x2c1f4e[_0x210c5a([0x6f,0x66,0x66])]());});}))];return window[_0x210c5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x210c5a([0x72,0x61,0x63,0x65])](_0x16695b)[_0x210c5a([0x74,0x68,0x65,0x6e])](()=>_0x411208);}async function _0x1335c5(){await _0x5c7729,_0x24138[_0x210c5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x210c5a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x164b0a,_0x24138[_0x210c5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x210c5a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x164b0a,_0x24138[_0x210c5a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x210c5a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ce747(_0x3f42a0){const _0x524013=_0x393ad0();_0x24138[_0x524013]=_0x210c5a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f42a0,_0x3f42a0!=_0x210c5a([0x56,0x61,0x6c,0x69,0x64])&&_0x1335c5();}function _0x393ad0(){const _0x4d4b22=window[_0x210c5a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x210c5a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x210c5a([0x6e,0x6f,0x77])]())[_0x210c5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x210c5a([0x2e]),'');let _0x2aeec0=_0x210c5a([0x68]);for(let _0x519e5e=0x0;_0x519e5e<_0x4d4b22[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x519e5e+=0x2){let _0x14619c=window[_0x210c5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d4b22[_0x210c5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x519e5e,_0x519e5e+0x2));_0x14619c>=_0x485c3a[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14619c-=_0x485c3a[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2aeec0+=_0x485c3a[_0x14619c];}return _0x2aeec0;}function _0x40e5aa(){const _0x2870df=_0xc4fc45[_0x210c5a([0x73,0x70,0x6c,0x69,0x74])](_0x210c5a([0x2e]));if(0x3!=_0x2870df[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6ed483(_0x2870df[0x1]);function _0x6ed483(_0x1a30ad){const _0xfd53ba=_0x5a5b6b(_0x1a30ad);return _0xfd53ba&&_0x457080()?_0xfd53ba:null;function _0x457080(){const _0x5cae1f=_0xfd53ba[_0x210c5a([0x6a,0x74,0x69])],_0x33937c=window[_0x210c5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cae1f[_0x210c5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cae1f[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x399698={..._0xfd53ba,[_0x210c5a([0x6a,0x74,0x69])]:_0x5cae1f[_0x210c5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cae1f[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x399698[_0x210c5a([0x76,0x63])],_0x1be25d(_0x399698)==_0x33937c;}}}async function _0x2659b3(){let _0x1eafa5=!0x0;try{const _0x5e5783=_0xc4fc45[_0x210c5a([0x73,0x70,0x6c,0x69,0x74])](_0x210c5a([0x2e])),[_0x29a4c6,_0x1833c0,_0x2d9bf9]=_0x5e5783;return _0x550522(_0x29a4c6),await _0x1ddbaf(_0x29a4c6,_0x1833c0,_0x2d9bf9),_0x1eafa5;}catch{return!0x1;}function _0x550522(_0x5da596){const _0x54b718=_0x5a5b6b(_0x5da596);_0x54b718&&_0x54b718[_0x210c5a([0x61,0x6c,0x67])]==_0x210c5a([0x45,0x53,0x32,0x35,0x36])||(_0x1eafa5=!0x1);}async function _0x1ddbaf(_0x2c5797,_0x16ed1e,_0x172e07){const _0x35fc94=window[_0x210c5a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x210c5a([0x66,0x72,0x6f,0x6d])](_0x5074ac(_0x172e07),_0x2a1035=>_0x2a1035[_0x210c5a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcdc5f8=new window[(_0x210c5a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x210c5a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c5797+_0x210c5a([0x2e])+_0x16ed1e),_0x460961=window[_0x210c5a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x210c5a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x460961)return;const _0x3cf458=await _0x460961[_0x210c5a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x210c5a([0x6a,0x77,0x6b]),_0x325978,{[_0x210c5a([0x6e,0x61,0x6d,0x65])]:_0x210c5a([0x45,0x43,0x44,0x53,0x41]),[_0x210c5a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x210c5a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x210c5a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x460961[_0x210c5a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x210c5a([0x6e,0x61,0x6d,0x65])]:_0x210c5a([0x45,0x43,0x44,0x53,0x41]),[_0x210c5a([0x68,0x61,0x73,0x68])]:{[_0x210c5a([0x6e,0x61,0x6d,0x65])]:_0x210c5a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3cf458,_0x35fc94,_0xcdc5f8)||(_0x1eafa5=!0x1);}}function _0x5a5b6b(_0x55ed99){return _0x55ed99[_0x210c5a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x210c5a([0x65,0x79]))?JSON[_0x210c5a([0x70,0x61,0x72,0x73,0x65])](_0x5074ac(_0x55ed99)):null;}function _0x5074ac(_0xd660d3){return window[_0x210c5a([0x61,0x74,0x6f,0x62])](_0xd660d3[_0x210c5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x210c5a([0x2b]))[_0x210c5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x210c5a([0x2f])));}function _0x1be25d(_0x553e5a){let _0xe94816=0x1505;function _0x1fbc30(_0x30cb7b){for(let _0x5346cb=0x0;_0x5346cb<_0x30cb7b[_0x210c5a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5346cb++){const _0x2cc8b6=_0x30cb7b[_0x210c5a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5346cb);_0xe94816=(_0xe94816<<0x5)+_0xe94816+_0x2cc8b6,_0xe94816&=_0xe94816;}}function _0x31c04e(_0x251bb0){Array[_0x210c5a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x251bb0)?_0x251bb0[_0x210c5a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31c04e):_0x251bb0&&typeof _0x251bb0==_0x210c5a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x210c5a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x251bb0)[_0x210c5a([0x73,0x6f,0x72,0x74])]()[_0x210c5a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x210396,_0x51ec7a])=>{_0x1fbc30(_0x210396),_0x31c04e(_0x51ec7a);}):_0x1fbc30(window[_0x210c5a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x251bb0));}return _0x31c04e(_0x553e5a),_0xe94816>>>0x0;}function _0x293461(_0x4ea0d3){return _0x4ea0d3[_0x210c5a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x210c5a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x210c5a([0x30]));}function _0x236f55(_0x40d183){return _0x40d183[_0x210c5a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x210c5a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x210c5a([0x6a,0x6f,0x69,0x6e])]('');}function _0x164b0a(){}function _0x210c5a(_0x369d82){return _0x369d82['map'](_0x51d35b=>String['fromCharCode'](_0x51d35b))['join']('');}_0x5ce747(await _0x417157());}(this);}['_initSchema'](){const _0x12afd7=this['editor']['model']['schema'];_0x12afd7['isRegistered']('imageBlock')&&_0x12afd7['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x12afd7['isRegistered']('imageInline')&&_0x12afd7['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x30cfc1=this['editor'];_0x30cfc1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x30cfc1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1f3fb5=>_0x1f3fb5['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1c16f3=_0x30cfc1['commands']['get']('replaceImageSource');_0x1c16f3&&this['listenTo'](_0x1c16f3,'cleanupImage',(_0x3075af,[_0x2777e3,_0x2561d0])=>{_0x2777e3['removeAttribute']('uploadcareImageId',_0x2561d0);});}['_initConfig'](){const _0x1dd5c0=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2c8b7b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1bd2f6(_0x330018['document'],'uc-config',{..._0x1dd5c0,'pubkey':_0x2c8b7b,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x3c0e9a=>{if('closeMax'==_0x3c0e9a)return'#uc-icon-arrow-down';},_0x330018['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1bd2f6(_0x330018['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x330018['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x176ce3=this['editor']['commands']['get']('insertImage');_0x176ce3&&this['listenTo'](_0x176ce3,'execute',()=>{const _0x4c6c17=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c6c17&&_0x4c6c17['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x4c6c17);});});const _0x5944a0=this['editor']['commands']['get']('uploadcareImageReplace');_0x5944a0&&this['listenTo'](_0x5944a0,'execute',()=>{const _0x553bf1=this['editor']['model']['document']['selection']['getSelectedElement']();_0x553bf1&&_0x553bf1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x553bf1);});});}}class Uploadcare extends _0x517c7d{static get['requires'](){return[UploadcareEditing,UploadcareUI];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x846811){super(_0x846811),_0x846811['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x565e0b['defineComponents'](_0x565e0b),this['_defineLocale']();}['_defineLocale'](){const _0x489833=this['editor']['config']['get']('uploadcare.locale'),_0x257b64=this['editor']['locale']['contentLanguage'];_0x489833&&_0x565e0b['defineLocale'](_0x257b64,_0x489833);}}class UploadcareImageEditFormLoadingView extends _0x18c81a{constructor(_0x1ab553){super(_0x1ab553);const t=_0x1ab553['t'],_0x592254=this['bindTemplate'],_0x39af38=new _0xcc13b9();_0x39af38['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':[_0x39af38,{'text':_0x592254['to']('imageUploadProgress',_0x5de7c6=>t('Loading\x20image...')+'\x20('+(_0x5de7c6||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 UploadcareImageEditFormErrorView extends _0x18c81a{constructor(_0x2c1f28){super(_0x2c1f28);const t=_0x2c1f28['t'];this['set']('errorType',null);const _0x4c2148=new _0x21cd09(_0x2c1f28);_0x4c2148['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4c2148['withText']=!0x0,_0x4c2148['class']='ck-button-action',_0x4c2148['on']('execute',()=>{this['fire']('retry');}),_0x4c2148['bind']('isVisible')['to'](this,'errorType',_0x23c5aa=>'NotFound'!==_0x23c5aa);const _0x121132=new _0x54ea45();_0x121132['content']=_0x43ad73,_0x121132['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3dd6b7=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':[_0x121132,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3dd6b7['to']('errorType',_0x16aa9f=>t('NotFound'!==_0x16aa9f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4c2148]},{'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 UploadcareImageEditFormEditingView extends _0x18c81a{constructor(_0x427303,_0x35d714){super(_0x427303);const _0x3e7db1=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x35d714,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3e7db1['to']('imageSrc')}});}}class UploadcareImageEditFormView extends DialogFocusManagerView{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x217b1f,_0x24ce18,_0x27361a){super(_0x217b1f),this['_items']=this['createCollection'](),this['_loadingView']=new UploadcareImageEditFormLoadingView(_0x217b1f),this['_errorView']=new UploadcareImageEditFormErrorView(_0x217b1f),this['_editingView']=new UploadcareImageEditFormEditingView(_0x217b1f,_0x27361a),this['_focusableView']=new _0x18c81a(_0x217b1f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x24ce18),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'],_0x1d705d=>{this['_addUploadcareImageEditorListeners'](_0x1d705d);});}),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'](_0x5270c0,_0x651341){const _0x211884='uc-cloud-image-editor',_0x550c9f=_0x5270c0['querySelector'](_0x211884);if(_0x550c9f)return _0x651341(_0x550c9f);const _0x24477e=new MutationObserver(_0x28a8b4=>{const _0x2d34c0=_0x28a8b4['filter'](_0x11c02a=>_0x11c02a['target']===_0x5270c0&&_0x11c02a['addedNodes']['length']>0x0&&_0x11c02a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x211884);_0x2d34c0['length']&&(_0x24477e['disconnect'](),_0x651341(_0x2d34c0[0x0]['addedNodes'][0x0]));});_0x24477e['observe'](_0x5270c0,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x606552){_0x606552['addEventListener']('apply',_0x9193d4=>{this['fire']('apply',{'imageSrc':_0x9193d4['detail']['cdnUrl']});}),_0x606552['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x486c14(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x91d8c7,_0x5e3e06,_0x124bd2){super(),this['_editor']=_0x91d8c7,this['_dialog']=_0x5e3e06,this['_imageElement']=_0x124bd2,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 _0x34a580=this['_imageElement'],_0x32bb72=_0x34a580['getAttribute']('uploadcareImageId'),_0x42e345=_0x34a580['getAttribute']('src');if(_0x32bb72)await this['_loadImageInfo'](_0x32bb72,_0x42e345);else{if(this['_imageCache']['has'](_0x42e345)){const _0x37dcac=this['_imageCache']['get'](_0x42e345);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37dcac['url'],this['imageDimension']=_0x37dcac['dimension'],this['imageId']=_0x37dcac['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x209279}=this['_editor'],t=_0x209279['t'],_0x5e6ee4=new UploadcareImageEditFormView(_0x209279,this['imageStatus'],this['_attributes']);_0x5e6ee4['bind']('status')['to'](this,'imageStatus'),_0x5e6ee4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5e6ee4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5e6ee4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5e6ee4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x48032d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5e6ee4,'position':_0x4ee6fc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5e6ee4['focus']();},'onHide':()=>{_0x5e6ee4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x498094=>!M(_0x498094,_0x5e6ee4['element'])}});}['_loadImageInfo'](_0x5240e0,_0x553863){return UploadUtils['getInfo'](_0x5240e0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x296b51=>{const {width:_0x376d2b,height:_0x20731d}=_0x296b51['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x553863,this['imageDimension']={'width':_0x376d2b,'height':_0x20731d},this['imageId']=_0x5240e0;})['catch'](_0x41f9b1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x41f9b1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xeebb0b,_0x88139d){return this['_getImageAsFile'](_0xeebb0b)['then'](_0x504e7c=>UploadUtils['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x88139d['signal'],'file':_0x504e7c,'onProgress':_0x194412=>{_0x194412&&_0x194412['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x194412['value']));}}))['then'](_0xe702a6=>{const {width:_0x216545,height:_0x3ecb30}=_0xe702a6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe702a6['cdnUrl'],this['imageDimension']={'width':_0x216545,'height':_0x3ecb30},this['imageId']=_0xe702a6['uuid'],this['imageUploadProgress']=null;const _0x2c33b4=_0xeebb0b['getAttribute']('src');this['_imageCache']['set'](_0x2c33b4,{'id':_0xe702a6['uuid'],'url':_0xe702a6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x13483b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x13483b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5c5a60,_0x4cc776){_0x5c5a60['on']('apply',(_0x3a4b1e,_0x60bf66)=>{this['_replaceImage'](_0x4cc776,_0x60bf66['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5c5a60['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5c5a60['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x184ed6,_0x5b725f,_0x19b880){const _0x168e39=this['_editor'],{width:_0x4397e6,height:_0x41af68}=O(_0x5b725f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x832fdf,imageSources:_0x4260a7}=K(_0x5b725f,_0x4397e6);_0x168e39['model']['change'](_0x54f7a1=>{if('$graveyard'===_0x184ed6['root']['rootName']){_0x168e39['execute']('insertImage',{'imageType':_0x184ed6['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x184ed6['getAttributes']()),'uploadcareImageId':_0x19b880,'src':_0x832fdf,'sources':_0x4260a7,'width':_0x4397e6,'height':_0x41af68}});const _0x3fa15d=_0x184ed6['getChildren']();_0x184ed6=_0x168e39['model']['document']['selection']['getSelectedElement']();for(const _0x1e0563 of _0x3fa15d)_0x54f7a1['append'](_0x54f7a1['cloneElement'](_0x1e0563),_0x184ed6);}else _0x54f7a1['setSelection'](_0x184ed6,'on'),_0x168e39['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x184ed6['getAttributes']()),'uploadcareImageId':_0x19b880,'src':_0x832fdf,'sources':_0x4260a7,'width':_0x4397e6,'height':_0x41af68},_0x184ed6);_0x54f7a1['setSelection'](_0x184ed6,'on');});}async['_getImageAsFile'](_0x4899a3){const _0x375ca3=_0x330018['window'],_0xf5eb52=_0x330018['document']['location']['href'],_0x35d23a=new _0x375ca3['URL'](_0x4899a3['getAttribute']('src'),_0xf5eb52);if('data:'===_0x35d23a['protocol']){const _0x274dcf=_0x35d23a['href']['split'](','),_0x5432c7=_0x274dcf[0x0]['match'](/:(.*?);/)[0x1],_0x3964f5=_0x5432c7['split']('/')[0x1],_0x48d8c4=_0x375ca3['atob'](_0x274dcf[_0x274dcf['length']-0x1]);let _0x1115ec=_0x48d8c4['length'];const _0x5a44fe=new _0x375ca3['Uint8Array'](_0x1115ec);for(;_0x1115ec--;)_0x5a44fe[_0x1115ec]=_0x48d8c4['charCodeAt'](_0x1115ec);return new _0x375ca3['File']([_0x5a44fe],'image.'+_0x3964f5,{'type':_0x5432c7});}const _0x1a7ae9=_0x35d23a['href']['split']('/'),_0x942ab0=_0x1a7ae9[_0x1a7ae9['length']-0x1],_0xc496c5=_0x942ab0['split']('.')[0x1];return _0x375ca3['fetch'](_0x35d23a['href'])['then'](_0x432d30=>_0x432d30['clone']()['blob']())['then'](_0x468b1b=>new _0x375ca3['File']([_0x468b1b],_0x942ab0,{'type':'image/'+_0xc496c5}));}}class UploadcareImageEditCommand extends _0x2fa3e0{['imageEditController'];static get['requires'](){return[_0x5b6746];}['_isEditable'];constructor(_0x3f5534){super(_0x3f5534),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1fa16b){const _0x5c603c=B(_0x1fa16b);return _0x1f1416=>!(!_0x1f1416||!_0x1f1416['is']('element','imageBlock')&&!_0x1f1416['is']('element','imageInline'))&&(!!_0x1f1416['hasAttribute']('uploadcareImageId')||!!_0x1f1416['hasAttribute']('src')&&_0x5c603c(_0x1f1416['getAttribute']('src')));}(_0x3f5534['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1c469e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1c469e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x31ecd7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x31ecd7&&(_0x31ecd7['is']('element','imageBlock')||_0x31ecd7['is']('element','imageInline'))&&(this['imageEditController']=new UploadcareImageEditController(this['editor'],this['editor']['plugins']['get'](_0x5b6746),_0x31ecd7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class UploadcareImageReplaceCommand extends _0x2fa3e0{['refresh'](){const _0x184258=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x184258&&(_0x184258['is']('element','imageBlock')||_0x184258['is']('element','imageInline')));}['execute'](_0x9e595d){const _0x1e7b7c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x37ef7e=>{_0x37ef7e['setAttributes'](_0x9e595d,_0x1e7b7c),_0x37ef7e['removeAttribute']('srcset',_0x1e7b7c),_0x37ef7e['removeAttribute']('sizes',_0x1e7b7c);});}}class UploadcareImageEditEditing extends _0x517c7d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[UploadcareEditing,_0x5504ae,_0xd10c5f,_0x3341d1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x32efff}=this;_0x32efff['commands']['add']('uploadcareImageEdit',new UploadcareImageEditCommand(_0x32efff)),_0x32efff['commands']['add']('uploadcareImageReplace',new UploadcareImageReplaceCommand(_0x32efff));}}class UploadcareImageEditUI extends _0x517c7d{['_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 _0x5b4cd4=this['editor'];_0x5b4cd4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2045e5=>{const _0x4cb17f=_0x5b4cd4['commands']['get']('uploadcareImageEdit'),_0x4da87d=new _0x21cd09(_0x2045e5),t=_0x2045e5['t'];return _0x4da87d['set']({'icon':_0x48032d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4da87d['bind']('isEnabled')['to'](_0x4cb17f),_0x4da87d['bind']('isOn')['to'](_0x4cb17f,'isActive'),this['listenTo'](_0x4da87d,'execute',()=>{_0x5b4cd4['execute']('uploadcareImageEdit'),_0x5b4cd4['editing']['view']['focus']();}),_0x4da87d;}),this['_initConfig']();}['_initConfig'](){const _0x306fab=_0x1bd2f6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x306fab),this['listenTo'](this['editor'],'destroy',()=>{_0x306fab['remove']();});}}class UploadcareImageEdit extends _0x517c7d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[UploadcareImageEditEditing,UploadcareImageEditUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Uploadcare,UploadcareCommand,UploadcareEditing,UploadcareImageEdit,UploadcareImageEditCommand,UploadcareImageEditEditing,UploadcareImageEditUI,UploadcareUI,UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x1c593a,Command as _0x39f225}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2c7a0e,IconGooglePhotos as _0x52bea5,IconGoogleDrive as _0x4d751a,IconFacebook as _0x5cffce,IconDropbox as _0x7a39e0,IconUploadcareLink as _0x1c745f,IconUploadcareImageUpload as _0x319284,IconError as _0x66838c,IconUploadcareImageEdit as _0x26f97b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4b83db,MenuBarMenuListItemButtonView as _0x1b39ed,View as _0x1bcdb1,FocusCycler as _0x57dfc1,Dialog as _0x2ea214,DialogViewPosition as _0x14e2d7,SpinnerView as _0x21c0e9,IconView as _0x5d97e3,Notification as _0x159104}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x36620c,DomEmitterMixin as _0x4382fd,global as _0x5588b0,getAncestors as _0x2671c2,ObservableMixin as _0x5c139c,uid as _0x1679f8,createElement as _0x364fee}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ImageUploadEditing as _0x42940b,ImageUploadProgress as _0x35ea5c,PictureEditing as _0x180a7c,ImageUtils as _0x379ed5,ImageEditing as _0x54db9e}from'@ckeditor/ckeditor5-image/dist/index.js';import{FileRepository as _0x24b660}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5cf747,info as _0x1c6c05}from'@uploadcare/upload-client';import*as _0x40c078 from'@uploadcare/file-uploader/web/file-uploader.min.js';function T(_0x1ad003,_0x1d92d0,_0x210de2){const t=_0x1ad003['t'],_0x57ceab=_0x1ad003['t'];switch(_0x1d92d0){case'local':return{'text':_0x57ceab('Insert'===_0x210de2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x57ceab('From\x20computer')};case'url':return{'text':'Insert'===_0x210de2?_0x57ceab('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x57ceab('Via\x20URL')};case'dropbox':return{'text':t('Insert'===_0x210de2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case'facebook':return{'text':t('Insert'===_0x210de2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case'gdrive':return{'text':t('Insert'===_0x210de2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case'gphotos':return{'text':t('Insert'===_0x210de2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case'onedrive':return{'text':t('Insert'===_0x210de2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1d92d0;}}class UploadcareUI extends _0x1c593a{['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 _0x3fe48c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb21645;for(const _0x3dd0c0 in _0x3fe48c){const _0x47cdfe=_0x3dd0c0,_0x2daf28=_0x3fe48c[_0x47cdfe];if('uploadcareLicenseKeyValid'==_0x2daf28||'uploadcareLicenseKeyInvalid'==_0x2daf28||'uploadcareLicenseKeyExpired'==_0x2daf28||'uploadcareLicenseKeyDomainLimit'==_0x2daf28||'uploadcareLicenseKeyNotAllowed'==_0x2daf28||'uploadcareLicenseKeyEvaluationLimit'==_0x2daf28||'uploadcareLicenseKeyUsageLimit'==_0x2daf28){delete _0x3fe48c[_0x47cdfe],_0xb21645=_0x2daf28,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xb21645&&_0x3fe48c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xb21645&&_0x3fe48c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xb21645&&_0x3fe48c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xb21645&&_0x3fe48c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xb21645&&_0x3fe48c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0xb21645&&_0x3fe48c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4d52fa}=this,_0x1cf1a8=_0x4d52fa['commands']['get']('uploadcare');if(!_0x1cf1a8)return;const _0x22c141=this['_normalizeConfigSourceList'](_0x4d52fa['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x31bc49,_0x2d4f6f)=>{const _0x13f7e2=this['_getIntegrationKey'](_0x2d4f6f['type']);return _0x31bc49[_0x13f7e2]||(_0x31bc49[_0x13f7e2]=[]),_0x31bc49[_0x13f7e2]['push'](_0x2d4f6f),_0x31bc49;},{});_0x4d52fa['plugins']['has']('ImageInsertUI')&&_0x4d52fa['commands']['get']('uploadcare')&&Object['entries'](_0x22c141)['forEach'](([_0x251cf7,_0x5b1ddd])=>{_0x4d52fa['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x251cf7,'observable':()=>_0x1cf1a8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5b1ddd),'formViewCreator':()=>this['_createDropdownButtons'](_0x5b1ddd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5b1ddd),'override':'assetManager'!==_0x251cf7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1d4b9e){const {locale:_0x288ff6}=this['editor'];return _0x1d4b9e['map'](_0x239b9a=>{const _0x340639=T(_0x288ff6,_0x239b9a,'Insert');switch(_0x239b9a){case'local':return{'icon':_0x319284,'type':'local',..._0x340639};case'url':return{'icon':_0x1c745f,'type':'url',..._0x340639};case'dropbox':return{'icon':_0x7a39e0,'type':'dropbox',..._0x340639};case'facebook':return{'icon':_0x5cffce,'type':'facebook',..._0x340639};case'gdrive':return{'icon':_0x4d751a,'type':'gdrive',..._0x340639};case'gphotos':return{'icon':_0x52bea5,'type':'gphotos',..._0x340639};case'onedrive':return{'icon':_0x2c7a0e,'type':'onedrive',..._0x340639};}});}['_getIntegrationKey'](_0x33390b){switch(_0x33390b){case'local':return'upload';case'url':return'url';default:return'assetManager';}}['_createButton'](_0x5e7f2c,_0x3400ec){const _0x4866c1=this['editor'],_0x584992=new _0x5e7f2c(_0x4866c1['locale']),_0x126dae=_0x4866c1['commands']['get']('uploadcare');return _0x584992['bind']('isEnabled')['to'](_0x126dae),_0x584992['on']('execute',()=>{_0x126dae['execute'](_0x3400ec);}),_0x584992;}['_createToolbarButton'](_0x4130a0){const {locale:_0x4b1eca}=this['editor'],_0xa6ca87=this['editor']['plugins']['get']('ImageInsertUI'),_0x5827e7=_0x4130a0[0x0],_0x1c260d=this['_createButton'](_0x4b83db,_0x5827e7['type']);return _0x1c260d['icon']=_0x5827e7['icon'],_0x1c260d['bind']('label')['to'](_0xa6ca87,'isImageSelected',_0x1f2e02=>T(_0x4b1eca,_0x5827e7['type'],_0x1f2e02?'Replace':'Insert')['text']),_0x1c260d['tooltip']=!0x0,_0x1c260d;}['_createDropdownButtons'](_0x18a311){const {locale:_0x46bbad}=this['editor'],_0x1fad1b=this['editor']['plugins']['get']('ImageInsertUI');return _0x18a311['map'](_0x2908b1=>{const _0x28fd66=this['_createButton'](_0x4b83db,_0x2908b1['type']);return _0x28fd66['withText']=!0x0,_0x28fd66['icon']=_0x2908b1['icon'],_0x28fd66['bind']('label')['to'](_0x1fad1b,'isImageSelected',_0xf316ce=>T(_0x46bbad,_0x2908b1['type'],_0xf316ce?'Replace':'Insert')['text']),_0x28fd66;});}['_createMenuBarButtons'](_0x311b92){return _0x311b92['map'](_0x38dae0=>{const _0xccc4bf=this['_createButton'](_0x1b39ed,_0x38dae0['type']);return _0xccc4bf['icon']=_0x38dae0['icon'],_0xccc4bf['label']=_0x38dae0['shortText'],_0xccc4bf;});}}class DialogFocusManagerView extends _0x1bcdb1{['focusTracker'];['focusCycler'];constructor(_0x4a5965){super(_0x4a5965),this['focusTracker']=new _0x36620c(),this['focusCycler']=new _0x57dfc1({'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 UploadcareFormView extends DialogFocusManagerView{constructor(_0x516394,_0x1e3b2c){super(_0x516394),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-'+_0x1e3b2c}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function K(_0x1491d5,_0x485039){const _0x2005c4=_0x1491d5['replace'](/\/$/,'');return{'imageFallbackUrl':_0x1491d5,'imageSources':[{'srcset':[...[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2b771a=>_0x2b771a<_0x485039)['map'](_0x45bb10=>_0x2005c4+'/-/resize/'+_0x45bb10+'x/\x20'+_0x45bb10+'w'),_0x1491d5+'\x20'+_0x485039+'w']['join'](',\x20'),'sizes':'(max-width:\x20'+_0x485039+'px)\x20100vw,\x20'+_0x485039+'px','type':'image/webp'}]};}function O(_0x176549,_0x5c9bb0,_0x5eaca2){const _0x209495=_0x176549['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x209495?parseInt(_0x209495[0x1],0xa):_0x5c9bb0,'height':_0x209495?parseInt(_0x209495[0x2],0xa):_0x5eaca2};}function $(_0x25a5a5,_0x1daae0){const _0x246fe6=new(_0x4382fd())(),_0x2c08cb=_0x25a5a5['plugins']['get']('ImageUtils'),_0x3a5706=_0x25a5a5['editing']['mapper']['toViewElement'](_0x1daae0),_0x3fc83b=_0x2c08cb['findViewImgElement'](_0x3a5706),_0x191f9c=_0x25a5a5['editing']['view']['domConverter']['viewToDom'](_0x3fc83b),_0x42c3a1=_0x1daae0['getAttribute']('width'),_0x2dc733=_0x1daae0['getAttribute']('height'),_0x4b7686='image-processing';_0x25a5a5['editing']['view']['change'](_0x3c01c8=>{_0x3c01c8['addClass'](_0x4b7686,_0x3a5706),_0x3c01c8['setStyle']('aspect-ratio',_0x42c3a1+'/'+_0x2dc733,_0x3fc83b);}),_0x246fe6['listenTo'](_0x191f9c,'load',()=>{_0x246fe6['stopListening'](_0x191f9c,'load'),_0x25a5a5['editing']['view']['change'](_0x372bc5=>{_0x372bc5['removeClass'](_0x4b7686,_0x3a5706),_0x372bc5['removeStyle']('aspect-ratio',_0x3fc83b);});});}function B(_0x176f4e){if(Array['isArray'](_0x176f4e)){const _0x5493d2=_0x176f4e['map'](B);return _0x1af074=>_0x5493d2['some'](_0x509170=>_0x509170(_0x1af074));}if('origin'==_0x176f4e){const _0x6c8262=_0x5588b0['window']['location']['origin'];return _0x4227a4=>new URL(_0x4227a4,_0x5588b0['document']['baseURI'])['origin']==_0x6c8262;}return'function'==typeof _0x176f4e?_0x176f4e:_0x176f4e instanceof RegExp?_0x1910dd=>!(!_0x1910dd['match'](_0x176f4e)&&!_0x1910dd['replace'](/^https?:\/\//,'')['match'](_0x176f4e)):()=>!0x1;}function M(_0xa3e70,_0x53eb52){return _0x2671c2(_0xa3e70['target'])['includes'](_0x53eb52);}class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5c139c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x16c571,_0x1c4157,_0xb46fb0){super(),this['_editor']=_0x16c571,this['_editing']=_0x1c4157,this['_dialog']=_0x16c571['plugins']['get'](_0x2ea214),this['_api']=_0x1c4157['ctxElement']['getAPI'](),this['_type']=_0xb46fb0,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:_0x32d3ac,model:_0xb14a46}=this['_editor'],_0x2fb3e7=_0xb14a46['document']['selection']['getSelectedElement'](),_0x46bfa8=_0x2fb3e7&&(_0x2fb3e7['is']('element','imageBlock')||_0x2fb3e7['is']('element','imageInline'));this['_formView']=new UploadcareFormView(_0x32d3ac,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x319284,'title':T(_0x32d3ac,this['_type'],_0x46bfa8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x14e2d7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a5139=>!M(_0x1a5139,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x36c39b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x155c48=>{const _0x45241e=_0x36c39b['length'];for(const _0x53f361 of _0x36c39b){const _0x208b1c=_0x53f361===_0x36c39b[_0x45241e-0x1],{cdnUrl:_0x52f06e,fileInfo:_0x3c1bf2}=_0x53f361;if(!_0x52f06e||!_0x3c1bf2)continue;const {width:_0xdd8f1f,height:_0x341f17}=_0x3c1bf2['imageInfo'],_0x215dc3=O(_0x52f06e,_0xdd8f1f,_0x341f17),_0x30e63c=K(_0x52f06e,_0x215dc3['width']),_0x3c892d={'id':_0x3c1bf2['uuid'],'type':'image','attributes':{'imageDimension':_0x215dc3,..._0x30e63c}};this['_insertAsset'](_0x3c892d,_0x208b1c,_0x155c48);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x110669=>{'idle'===_0x110669['detail']['status']&&!_0x110669['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&('local'===this['_type']?this['_api']['setCurrentActivity']('start-from'):this['_api']['initFlow']());});}['_insertAsset'](_0x53d186,_0x4d68fe,_0x2c8ee3){const _0x367ca4=this['_editor']['model']['document']['selection'],_0x341f83=_0x367ca4['getSelectedElement'](),_0x56151f=!(!_0x341f83||!_0x341f83['is']('element','imageInline'));_0x2c8ee3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x53d186,_0x56151f),_0x4d68fe||_0x2c8ee3['setSelection'](_0x367ca4['getLastPosition']());}['_insertImage'](_0x2f86a6,_0xcbbdd4){const _0x1ff028=this['_editor'],{imageDimension:_0x371843,imageFallbackUrl:_0x16feff,imageSources:_0x50685f}=_0x2f86a6['attributes'];_0x1ff028['execute']('insertImage',{'imageType':_0xcbbdd4?'imageInline':null,'source':{'uploadcareImageId':_0x2f86a6['id'],'src':_0x16feff,'sources':_0x50685f,..._0x371843}});}}class UploadcareCommand extends _0x39f225{['_editing'];['_controller']=null;static get['requires'](){return[_0x2ea214,UploadcareEditing];}constructor(_0x2adab2){super(_0x2adab2),this['_editing']=_0x2adab2['plugins']['get'](UploadcareEditing);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x259837){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new UploadcareController(this['editor'],this['_editing'],_0x259837);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class UploadUtils{static['upload']({file:_0x138f05,..._0x146bd1}){return _0x5cf747(_0x138f05,_0x146bd1);}static['getInfo'](_0x5b1b30,_0x13c988){return _0x1c6c05(_0x5b1b30,_0x13c988);}}class UploadcareUploadAdapter extends _0x1c593a{static get['requires'](){return[_0x42940b,_0x35ea5c,_0x24b660,UploadcareEditing];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x7d39fb=this['editor'];if(!!!_0x7d39fb['config']['get']('uploadcare'))return;_0x7d39fb['plugins']['get'](_0x24b660)['createUploadAdapter']=_0x582f51=>new Adapter(_0x582f51,_0x7d39fb),_0x7d39fb['plugins']['get'](_0x42940b)['on']('uploadComplete',(_0x4b8d00,{imageElement:_0x4ccc36,data:_0x271b5d})=>{_0x7d39fb['model']['change'](_0x1ae1e3=>{_0x1ae1e3['setAttribute']('uploadcareImageId',_0x271b5d['uploadcareImageId'],_0x4ccc36);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x3b3b14,_0x11d81c){this['loader']=_0x3b3b14,this['editor']=_0x11d81c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4fe179=await this['loader']['file'];return UploadUtils['upload']({'file':_0x4fe179,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x388cd5=>{_0x388cd5&&_0x388cd5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x388cd5['value']);}})['then'](async _0x134ec0=>{const {imageFallbackUrl:_0x4f2484,imageSources:_0x38735c}=K(_0x134ec0['cdnUrl'],_0x134ec0['imageInfo']['width']);return{'uploadcareImageId':_0x134ec0['uuid'],'default':_0x4f2484,'sources':_0x38735c};})['catch'](()=>{const _0x48b65c=t('Cannot\x20upload\x20file:')+('\x20'+_0x4fe179['name']+'.');return Promise['reject'](_0x48b65c);});}['abort'](){this['controller']['abort']();}}class UploadcareEditing extends _0x1c593a{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return[_0x180a7c,UploadcareUploadAdapter,_0x2ea214];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x317185){super(_0x317185),this['ucContextId']=_0x1679f8();}['init'](){const _0xa674d0=this['editor'];_0xa674d0['commands']['add']('uploadcare',new UploadcareCommand(_0xa674d0));}['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 _0x1c9670=_0x5588b0['document']['querySelector']('input[uploadcare-file-input]');_0x1c9670&&_0x1c9670['remove']();}),async function(_0x1310ee){const _0x1dae4d=_0x132cee([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4d7422=0x535f8c3a,_0x22e0db=0x535806ba^_0x4d7422,_0x5d5568=window[_0x132cee([0x44,0x61,0x74,0x65])][_0x132cee([0x6e,0x6f,0x77])](),_0x347761=_0x1310ee[_0x132cee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13a30f=new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b8e6b=>{_0x347761[_0x132cee([0x6f,0x6e,0x63,0x65])](_0x132cee([0x72,0x65,0x61,0x64,0x79]),_0x5b8e6b);}),_0xb4d50e={[_0x132cee([0x6b,0x74,0x79])]:_0x132cee([0x45,0x43]),[_0x132cee([0x75,0x73,0x65])]:_0x132cee([0x73,0x69,0x67]),[_0x132cee([0x63,0x72,0x76])]:_0x132cee([0x50,0x2d,0x32,0x35,0x36]),[_0x132cee([0x78])]:_0x132cee([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]),[_0x132cee([0x79])]:_0x132cee([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]),[_0x132cee([0x61,0x6c,0x67])]:_0x132cee([0x45,0x53,0x32,0x35,0x36])},_0x479b46=_0x347761[_0x132cee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x132cee([0x67,0x65,0x74])](_0x132cee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b5323(){let _0x47fe08,_0x5e9205=null,_0x30d0de=null;try{if(_0x479b46==_0x132cee([0x47,0x50,0x4c]))return _0x132cee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47fe08=_0x1ddd2f(),!_0x47fe08)return _0x132cee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47fe08[_0x132cee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30d0de=_0x102e27(_0x47fe08[_0x132cee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47fe08[_0x132cee([0x6a,0x74,0x69])])),await _0x3a231f()?_0x2a939d()?_0x385bce()?_0x132cee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x436a58()?(_0x47fe08[_0x132cee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x132cee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e9205=_0x4819f9(_0x132cee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4af1af()):_0x132cee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x132cee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x132cee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x132cee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x385bce(){const _0x484650=[_0x132cee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x132cee([0x74,0x72,0x69,0x61,0x6c])][_0x132cee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47fe08[_0x132cee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d5568/0x3e8:0xe10*_0x22e0db;return _0x47fe08[_0x132cee([0x65,0x78,0x70])]<_0x484650;}function _0x2a939d(){const _0x18b2a5=_0x47fe08[_0x132cee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x18b2a5&&(!!_0x18b2a5[_0x132cee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x132cee([0x2a]))||!!_0x18b2a5[_0x132cee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x132cee([0x55,0x50,0x4c,0x43])));}function _0x436a58(){const _0x5b000c=_0x47fe08[_0x132cee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b000c||0x0==_0x5b000c[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59992c}=new URL(window[_0x132cee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b000c[_0x132cee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59992c))return!0x0;const _0x2ea259=_0x59992c[_0x132cee([0x73,0x70,0x6c,0x69,0x74])](_0x132cee([0x2e]));return _0x5b000c[_0x132cee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14f60e=>_0x14f60e[_0x132cee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x132cee([0x2a])))[_0x132cee([0x6d,0x61,0x70])](_0x38f39f=>_0x38f39f[_0x132cee([0x73,0x70,0x6c,0x69,0x74])](_0x132cee([0x2e])))[_0x132cee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32dea1=>_0x32dea1[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ea259[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x132cee([0x6d,0x61,0x70])](_0x4d82b2=>Array(_0x2ea259[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d82b2[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x132cee([0x66,0x69,0x6c,0x6c])](_0x4d82b2[0x0]===_0x132cee([0x2a])?_0x132cee([0x2a]):'')[_0x132cee([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d82b2))[_0x132cee([0x73,0x6f,0x6d,0x65])](_0x2adf74=>_0x2ea259[_0x132cee([0x65,0x76,0x65,0x72,0x79])]((_0x80569e,_0x2a709a)=>_0x2adf74[_0x2a709a]===_0x80569e||_0x2adf74[_0x2a709a]===_0x132cee([0x2a])));}function _0x4af1af(){return _0x5e9205&&_0x30d0de?new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x562e4f,_0x587bc2)=>{_0x5e9205[_0x132cee([0x74,0x68,0x65,0x6e])](_0x562e4f,_0x587bc2),_0x30d0de[_0x132cee([0x74,0x68,0x65,0x6e])](_0x1f7a61=>{_0x1f7a61!=_0x132cee([0x56,0x61,0x6c,0x69,0x64])&&_0x562e4f(_0x1f7a61);},_0x587bc2);}):_0x5e9205||_0x30d0de||_0x132cee([0x56,0x61,0x6c,0x69,0x64]);}}function _0x102e27(_0x366323,_0x42a8d7){return new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e76bb=>{if(_0x21cbb1())return _0x5e76bb(_0x132cee([0x56,0x61,0x6c,0x69,0x64]));_0x2c33fb(),_0x347761[_0x132cee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x132cee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x504440=!0x1;const _0x2f0be7=_0x1679f8();function _0xbe4f78(_0x231175){return!!_0x231175&&(typeof _0x231175===_0x132cee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x231175===_0x132cee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x231175[_0x132cee([0x74,0x68,0x65,0x6e])]===_0x132cee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x231175[_0x132cee([0x63,0x61,0x74,0x63,0x68])]===_0x132cee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bbe3f(_0x4a220a){_0x16aa68(_0x4a220a)[_0x132cee([0x74,0x68,0x65,0x6e])](_0x31740e=>{if(!_0x31740e||_0x31740e[_0x132cee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x132cee([0x6f,0x6b]))return _0x132cee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40ab68(_0x37c8c(_0x2f0be7+_0x42a8d7))!=_0x31740e[_0x132cee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x132cee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x132cee([0x56,0x61,0x6c,0x69,0x64]);})[_0x132cee([0x74,0x68,0x65,0x6e])](_0x1a4bf2=>(_0x35ef80(),_0x1a4bf2),()=>{const _0x5a3b95=_0x52c5ec();return null==_0x5a3b95?(_0x35ef80(),_0x132cee([0x56,0x61,0x6c,0x69,0x64])):_0x132cee(_0x5d5568-_0x5a3b95>(0x7753083a^_0x4d7422)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x132cee([0x74,0x68,0x65,0x6e])](_0x5e76bb)[_0x132cee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e76bb(_0x132cee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x414c62=0x536962ba^_0x4d7422;function _0x35ef80(){const _0x38b3e2=_0x132cee([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ab68(_0x37c8c(_0x366323)),_0x2617ba=_0x58011c(_0x40ab68(window[_0x132cee([0x4d,0x61,0x74,0x68])][_0x132cee([0x63,0x65,0x69,0x6c])](_0x5d5568/_0x414c62)));window[_0x132cee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x132cee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38b3e2,_0x2617ba);}function _0x52c5ec(){const _0x53ef80=_0x132cee([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ab68(_0x37c8c(_0x366323)),_0x6e4de8=window[_0x132cee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x132cee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53ef80);return _0x6e4de8?window[_0x132cee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58011c(_0x6e4de8),0x10)*_0x414c62:null;}function _0x16aa68(_0x586027){return new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x284bb2,_0x29bf89)=>{_0x586027[_0x132cee([0x74,0x68,0x65,0x6e])](_0x284bb2,_0x29bf89),window[_0x132cee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29bf89,0x535e58fa^_0x4d7422);});}}_0x347761[_0x132cee([0x6f,0x6e])](_0x132cee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc23fdb,_0x1c4096)=>{if(_0x1c4096[0x0]!=_0x366323)return _0x5e76bb(_0x132cee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c4096[0x1]={..._0x1c4096[0x1],[_0x132cee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f0be7};},{[_0x132cee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x132cee([0x68,0x69,0x67,0x68])}),_0x347761[_0x132cee([0x6f,0x6e])](_0x132cee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4787c3=>{_0xbe4f78(_0x4787c3[_0x132cee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x504440=!0x0,_0x3bbe3f(_0x4787c3[_0x132cee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x132cee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x132cee([0x6c,0x6f,0x77])}),_0x13a30f[_0x132cee([0x74,0x68,0x65,0x6e])](()=>{_0x504440||_0x5e76bb(_0x132cee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21cbb1(){return _0x347761[_0x132cee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x132cee([0x76,0x69,0x65,0x77])][_0x132cee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x132cee([0x61,0x75,0x74,0x6f]);}function _0x2c33fb(){_0x347761[_0x132cee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x132cee([0x76,0x69,0x65,0x77])][_0x132cee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x132cee([0x61,0x75,0x74,0x6f]);}}function _0x4819f9(_0xef438c){const _0x2dc8f8=[new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x451486=>setTimeout(_0x451486,0x5356b2f6^_0x4d7422)),_0x13a30f[_0x132cee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12903b=>{let _0x55c00d=0x0;_0x347761[_0x132cee([0x6d,0x6f,0x64,0x65,0x6c])][_0x132cee([0x6f,0x6e])](_0x132cee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf99d15,_0x4b25a8)=>{_0x4b25a8[0x0][_0x132cee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55c00d++,_0x55c00d==(0x535f89d2^_0x4d7422)&&(_0x12903b(),_0xf99d15[_0x132cee([0x6f,0x66,0x66])]());});}))];return window[_0x132cee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x132cee([0x72,0x61,0x63,0x65])](_0x2dc8f8)[_0x132cee([0x74,0x68,0x65,0x6e])](()=>_0xef438c);}async function _0x1445c8(){await _0x13a30f,_0x347761[_0x132cee([0x6d,0x6f,0x64,0x65,0x6c])][_0x132cee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a892f,_0x347761[_0x132cee([0x6d,0x6f,0x64,0x65,0x6c])][_0x132cee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a892f,_0x347761[_0x132cee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x132cee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x328aba(_0x54ad62){const _0x142411=_0x162eb4();_0x347761[_0x142411]=_0x132cee([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54ad62,_0x54ad62!=_0x132cee([0x56,0x61,0x6c,0x69,0x64])&&_0x1445c8();}function _0x162eb4(){const _0x57edcf=window[_0x132cee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x132cee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x132cee([0x6e,0x6f,0x77])]())[_0x132cee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x132cee([0x2e]),'');let _0x79e636=_0x132cee([0x68]);for(let _0x4a309e=0x0;_0x4a309e<_0x57edcf[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a309e+=0x2){let _0x52648c=window[_0x132cee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57edcf[_0x132cee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a309e,_0x4a309e+0x2));_0x52648c>=_0x1dae4d[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52648c-=_0x1dae4d[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x79e636+=_0x1dae4d[_0x52648c];}return _0x79e636;}function _0x1ddd2f(){const _0x37dedc=_0x479b46[_0x132cee([0x73,0x70,0x6c,0x69,0x74])](_0x132cee([0x2e]));if(0x3!=_0x37dedc[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd40c1d(_0x37dedc[0x1]);function _0xd40c1d(_0x30b56f){const _0x1d7327=_0x556c7f(_0x30b56f);return _0x1d7327&&_0x2b9d68()?_0x1d7327:null;function _0x2b9d68(){const _0x1899c2=_0x1d7327[_0x132cee([0x6a,0x74,0x69])],_0xa5524=window[_0x132cee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1899c2[_0x132cee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1899c2[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e4684={..._0x1d7327,[_0x132cee([0x6a,0x74,0x69])]:_0x1899c2[_0x132cee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1899c2[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e4684[_0x132cee([0x76,0x63])],_0x37c8c(_0x3e4684)==_0xa5524;}}}async function _0x3a231f(){let _0xa1d4e2=!0x0;try{const _0x45a27f=_0x479b46[_0x132cee([0x73,0x70,0x6c,0x69,0x74])](_0x132cee([0x2e])),[_0x25f211,_0x5b0d52,_0x1afe20]=_0x45a27f;return _0x1c890a(_0x25f211),await _0x1a9ba4(_0x25f211,_0x5b0d52,_0x1afe20),_0xa1d4e2;}catch{return!0x1;}function _0x1c890a(_0x4fad5d){const _0x44cee6=_0x556c7f(_0x4fad5d);_0x44cee6&&_0x44cee6[_0x132cee([0x61,0x6c,0x67])]==_0x132cee([0x45,0x53,0x32,0x35,0x36])||(_0xa1d4e2=!0x1);}async function _0x1a9ba4(_0x15dacc,_0x4cfbb6,_0x4ca4c1){const _0x22b404=window[_0x132cee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x132cee([0x66,0x72,0x6f,0x6d])](_0xc34575(_0x4ca4c1),_0xd31944=>_0xd31944[_0x132cee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x350c63=new window[(_0x132cee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x132cee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15dacc+_0x132cee([0x2e])+_0x4cfbb6),_0x160927=window[_0x132cee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x132cee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x160927)return;const _0x35cb8d=await _0x160927[_0x132cee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x132cee([0x6a,0x77,0x6b]),_0xb4d50e,{[_0x132cee([0x6e,0x61,0x6d,0x65])]:_0x132cee([0x45,0x43,0x44,0x53,0x41]),[_0x132cee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x132cee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x132cee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x160927[_0x132cee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x132cee([0x6e,0x61,0x6d,0x65])]:_0x132cee([0x45,0x43,0x44,0x53,0x41]),[_0x132cee([0x68,0x61,0x73,0x68])]:{[_0x132cee([0x6e,0x61,0x6d,0x65])]:_0x132cee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35cb8d,_0x22b404,_0x350c63)||(_0xa1d4e2=!0x1);}}function _0x556c7f(_0x4177ee){return _0x4177ee[_0x132cee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x132cee([0x65,0x79]))?JSON[_0x132cee([0x70,0x61,0x72,0x73,0x65])](_0xc34575(_0x4177ee)):null;}function _0xc34575(_0x404980){return window[_0x132cee([0x61,0x74,0x6f,0x62])](_0x404980[_0x132cee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x132cee([0x2b]))[_0x132cee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x132cee([0x2f])));}function _0x37c8c(_0x287446){let _0x367602=0x1505;function _0x533e56(_0x8380dc){for(let _0x3574ac=0x0;_0x3574ac<_0x8380dc[_0x132cee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3574ac++){const _0x32c035=_0x8380dc[_0x132cee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3574ac);_0x367602=(_0x367602<<0x5)+_0x367602+_0x32c035,_0x367602&=_0x367602;}}function _0x36d503(_0x43013a){Array[_0x132cee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43013a)?_0x43013a[_0x132cee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36d503):_0x43013a&&typeof _0x43013a==_0x132cee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x132cee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43013a)[_0x132cee([0x73,0x6f,0x72,0x74])]()[_0x132cee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a85b1,_0x491b15])=>{_0x533e56(_0x4a85b1),_0x36d503(_0x491b15);}):_0x533e56(window[_0x132cee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43013a));}return _0x36d503(_0x287446),_0x367602>>>0x0;}function _0x40ab68(_0x5f4413){return _0x5f4413[_0x132cee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x132cee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x132cee([0x30]));}function _0x58011c(_0x2f5bcd){return _0x2f5bcd[_0x132cee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x132cee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x132cee([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a892f(){}function _0x132cee(_0x264bea){return _0x264bea['map'](_0xf833c5=>String['fromCharCode'](_0xf833c5))['join']('');}_0x328aba(await _0x3b5323());}(this);}['_initSchema'](){const _0x47a6ad=this['editor']['model']['schema'];_0x47a6ad['isRegistered']('imageBlock')&&_0x47a6ad['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x47a6ad['isRegistered']('imageInline')&&_0x47a6ad['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x360956=this['editor'];_0x360956['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x360956['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3e8f7f=>_0x3e8f7f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4ce167=_0x360956['commands']['get']('replaceImageSource');_0x4ce167&&this['listenTo'](_0x4ce167,'cleanupImage',(_0x3672b7,[_0x32dd7d,_0x2d741e])=>{_0x32dd7d['removeAttribute']('uploadcareImageId',_0x2d741e);});}['_initConfig'](){const _0x15a7ea=this['editor']['config']['get']('uploadcare.uploader')||{},_0x326f0f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x364fee(_0x5588b0['document'],'uc-config',{..._0x15a7ea,'pubkey':_0x326f0f,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x4b38ed=>{if('closeMax'==_0x4b38ed)return'#uc-icon-arrow-down';},_0x5588b0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x364fee(_0x5588b0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5588b0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1f65e7=this['editor']['commands']['get']('insertImage');_0x1f65e7&&this['listenTo'](_0x1f65e7,'execute',()=>{const _0x3e3139=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3e3139&&_0x3e3139['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x3e3139);});});const _0x5e30ac=this['editor']['commands']['get']('uploadcareImageReplace');_0x5e30ac&&this['listenTo'](_0x5e30ac,'execute',()=>{const _0x2bceab=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2bceab&&_0x2bceab['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{$(this['editor'],_0x2bceab);});});}}class Uploadcare extends _0x1c593a{static get['requires'](){return[UploadcareEditing,UploadcareUI];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ea21e){super(_0x4ea21e),_0x4ea21e['config']['define']('uploadcare.uploader.sourceList',['local','url']),_0x40c078['defineComponents'](_0x40c078),this['_defineLocale']();}['_defineLocale'](){const _0x57d30f=this['editor']['config']['get']('uploadcare.locale'),_0x3e9aca=this['editor']['locale']['contentLanguage'];_0x57d30f&&_0x40c078['defineLocale'](_0x3e9aca,_0x57d30f);}}class UploadcareImageEditFormLoadingView extends _0x1bcdb1{constructor(_0x5c6991){super(_0x5c6991);const t=_0x5c6991['t'],_0x29c6a5=this['bindTemplate'],_0x5e53ee=new _0x21c0e9();_0x5e53ee['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':[_0x5e53ee,{'text':_0x29c6a5['to']('imageUploadProgress',_0x42e069=>t('Loading\x20image...')+'\x20('+(_0x42e069||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 UploadcareImageEditFormErrorView extends _0x1bcdb1{constructor(_0x31c99e){super(_0x31c99e);const t=_0x31c99e['t'];this['set']('errorType',null);const _0x2b6721=new _0x4b83db(_0x31c99e);_0x2b6721['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2b6721['withText']=!0x0,_0x2b6721['class']='ck-button-action',_0x2b6721['on']('execute',()=>{this['fire']('retry');}),_0x2b6721['bind']('isVisible')['to'](this,'errorType',_0x12da37=>'NotFound'!==_0x12da37);const _0x237b56=new _0x5d97e3();_0x237b56['content']=_0x66838c,_0x237b56['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5d7982=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':[_0x237b56,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5d7982['to']('errorType',_0x4aede7=>t('NotFound'!==_0x4aede7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2b6721]},{'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 UploadcareImageEditFormEditingView extends _0x1bcdb1{constructor(_0x1e50b5,_0x48ae36){super(_0x1e50b5);const _0x330467=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x48ae36,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x330467['to']('imageSrc')}});}}class UploadcareImageEditFormView extends DialogFocusManagerView{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x11b060,_0x1b2085,_0x532971){super(_0x11b060),this['_items']=this['createCollection'](),this['_loadingView']=new UploadcareImageEditFormLoadingView(_0x11b060),this['_errorView']=new UploadcareImageEditFormErrorView(_0x11b060),this['_editingView']=new UploadcareImageEditFormEditingView(_0x11b060,_0x532971),this['_focusableView']=new _0x1bcdb1(_0x11b060),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1b2085),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'],_0x6a95da=>{this['_addUploadcareImageEditorListeners'](_0x6a95da);});}),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'](_0x2d5717,_0x9d0302){const _0x4a757e='uc-cloud-image-editor',_0x361f70=_0x2d5717['querySelector'](_0x4a757e);if(_0x361f70)return _0x9d0302(_0x361f70);const _0x5c7425=new MutationObserver(_0x58d5ff=>{const _0x426398=_0x58d5ff['filter'](_0x3cc48d=>_0x3cc48d['target']===_0x2d5717&&_0x3cc48d['addedNodes']['length']>0x0&&_0x3cc48d['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4a757e);_0x426398['length']&&(_0x5c7425['disconnect'](),_0x9d0302(_0x426398[0x0]['addedNodes'][0x0]));});_0x5c7425['observe'](_0x2d5717,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x532342){_0x532342['addEventListener']('apply',_0x65f182=>{this['fire']('apply',{'imageSrc':_0x65f182['detail']['cdnUrl']});}),_0x532342['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5c139c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5ccd96,_0x3fc9cf,_0x453c14){super(),this['_editor']=_0x5ccd96,this['_dialog']=_0x3fc9cf,this['_imageElement']=_0x453c14,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 _0x40184b=this['_imageElement'],_0x2ae28f=_0x40184b['getAttribute']('uploadcareImageId'),_0x193737=_0x40184b['getAttribute']('src');if(_0x2ae28f)await this['_loadImageInfo'](_0x2ae28f,_0x193737);else{if(this['_imageCache']['has'](_0x193737)){const _0x30d831=this['_imageCache']['get'](_0x193737);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x30d831['url'],this['imageDimension']=_0x30d831['dimension'],this['imageId']=_0x30d831['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5a770a}=this['_editor'],t=_0x5a770a['t'],_0x117934=new UploadcareImageEditFormView(_0x5a770a,this['imageStatus'],this['_attributes']);_0x117934['bind']('status')['to'](this,'imageStatus'),_0x117934['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x117934['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x117934['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x117934,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x26f97b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x117934,'position':_0x14e2d7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x117934['focus']();},'onHide':()=>{_0x117934['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x52e5ee=>!M(_0x52e5ee,_0x117934['element'])}});}['_loadImageInfo'](_0x5e7d78,_0x1bbd91){return UploadUtils['getInfo'](_0x5e7d78,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2688c6=>{const {width:_0x512d34,height:_0x55a2ec}=_0x2688c6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1bbd91,this['imageDimension']={'width':_0x512d34,'height':_0x55a2ec},this['imageId']=_0x5e7d78;})['catch'](_0x1121cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1121cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xa7b891,_0x2e0259){return this['_getImageAsFile'](_0xa7b891)['then'](_0x418d07=>UploadUtils['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2e0259['signal'],'file':_0x418d07,'onProgress':_0x7a2614=>{_0x7a2614&&_0x7a2614['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x7a2614['value']));}}))['then'](_0x6c4c2e=>{const {width:_0x6e7b2a,height:_0x44683e}=_0x6c4c2e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x6c4c2e['cdnUrl'],this['imageDimension']={'width':_0x6e7b2a,'height':_0x44683e},this['imageId']=_0x6c4c2e['uuid'],this['imageUploadProgress']=null;const _0x1bd91a=_0xa7b891['getAttribute']('src');this['_imageCache']['set'](_0x1bd91a,{'id':_0x6c4c2e['uuid'],'url':_0x6c4c2e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x59b914=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x59b914['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1d969a,_0xcc956a){_0x1d969a['on']('apply',(_0x534c82,_0x3411f8)=>{this['_replaceImage'](_0xcc956a,_0x3411f8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1d969a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1d969a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x346fc8,_0x119566,_0x5a260c){const _0x5f20ab=this['_editor'],{width:_0x4f0dfb,height:_0x5924b6}=O(_0x119566,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2c67fd,imageSources:_0x6b92f0}=K(_0x119566,_0x4f0dfb);_0x5f20ab['model']['change'](_0x32cf89=>{if('$graveyard'===_0x346fc8['root']['rootName']){_0x5f20ab['execute']('insertImage',{'imageType':_0x346fc8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x346fc8['getAttributes']()),'uploadcareImageId':_0x5a260c,'src':_0x2c67fd,'sources':_0x6b92f0,'width':_0x4f0dfb,'height':_0x5924b6}});const _0x403bca=_0x346fc8['getChildren']();_0x346fc8=_0x5f20ab['model']['document']['selection']['getSelectedElement']();for(const _0x51538 of _0x403bca)_0x32cf89['append'](_0x32cf89['cloneElement'](_0x51538),_0x346fc8);}else _0x32cf89['setSelection'](_0x346fc8,'on'),_0x5f20ab['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x346fc8['getAttributes']()),'uploadcareImageId':_0x5a260c,'src':_0x2c67fd,'sources':_0x6b92f0,'width':_0x4f0dfb,'height':_0x5924b6},_0x346fc8);_0x32cf89['setSelection'](_0x346fc8,'on');});}async['_getImageAsFile'](_0x1f4c62){const _0x461f97=_0x5588b0['window'],_0xdbccf9=_0x5588b0['document']['location']['href'],_0x3c1052=new _0x461f97['URL'](_0x1f4c62['getAttribute']('src'),_0xdbccf9);if('data:'===_0x3c1052['protocol']){const _0x46c6ee=_0x3c1052['href']['split'](','),_0x5882fc=_0x46c6ee[0x0]['match'](/:(.*?);/)[0x1],_0x4038be=_0x5882fc['split']('/')[0x1],_0x3d9024=_0x461f97['atob'](_0x46c6ee[_0x46c6ee['length']-0x1]);let _0x1f589a=_0x3d9024['length'];const _0x2d9c50=new _0x461f97['Uint8Array'](_0x1f589a);for(;_0x1f589a--;)_0x2d9c50[_0x1f589a]=_0x3d9024['charCodeAt'](_0x1f589a);return new _0x461f97['File']([_0x2d9c50],'image.'+_0x4038be,{'type':_0x5882fc});}const _0x36e0aa=_0x3c1052['href']['split']('/'),_0xc597b9=_0x36e0aa[_0x36e0aa['length']-0x1],_0x1942e0=_0xc597b9['split']('.')[0x1];return _0x461f97['fetch'](_0x3c1052['href'])['then'](_0x256b8c=>_0x256b8c['clone']()['blob']())['then'](_0x275c04=>new _0x461f97['File']([_0x275c04],_0xc597b9,{'type':'image/'+_0x1942e0}));}}class UploadcareImageEditCommand extends _0x39f225{['imageEditController'];static get['requires'](){return[_0x2ea214];}['_isEditable'];constructor(_0x4dac4b){super(_0x4dac4b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1a8bcd){const _0x28cf43=B(_0x1a8bcd);return _0x5cf434=>!(!_0x5cf434||!_0x5cf434['is']('element','imageBlock')&&!_0x5cf434['is']('element','imageInline'))&&(!!_0x5cf434['hasAttribute']('uploadcareImageId')||!!_0x5cf434['hasAttribute']('src')&&_0x28cf43(_0x5cf434['getAttribute']('src')));}(_0x4dac4b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x406c62=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x406c62);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x25ead7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25ead7&&(_0x25ead7['is']('element','imageBlock')||_0x25ead7['is']('element','imageInline'))&&(this['imageEditController']=new UploadcareImageEditController(this['editor'],this['editor']['plugins']['get'](_0x2ea214),_0x25ead7),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class UploadcareImageReplaceCommand extends _0x39f225{['refresh'](){const _0x4ec4c4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4ec4c4&&(_0x4ec4c4['is']('element','imageBlock')||_0x4ec4c4['is']('element','imageInline')));}['execute'](_0x50bd99){const _0xe52b10=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x364b1b=>{_0x364b1b['setAttributes'](_0x50bd99,_0xe52b10),_0x364b1b['removeAttribute']('srcset',_0xe52b10),_0x364b1b['removeAttribute']('sizes',_0xe52b10);});}}class UploadcareImageEditEditing extends _0x1c593a{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[UploadcareEditing,_0x159104,_0x379ed5,_0x54db9e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2d10b2}=this;_0x2d10b2['commands']['add']('uploadcareImageEdit',new UploadcareImageEditCommand(_0x2d10b2)),_0x2d10b2['commands']['add']('uploadcareImageReplace',new UploadcareImageReplaceCommand(_0x2d10b2));}}class UploadcareImageEditUI extends _0x1c593a{['_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 _0x31ff40=this['editor'];_0x31ff40['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1a6c29=>{const _0x4b0234=_0x31ff40['commands']['get']('uploadcareImageEdit'),_0x2b4bc5=new _0x4b83db(_0x1a6c29),t=_0x1a6c29['t'];return _0x2b4bc5['set']({'icon':_0x26f97b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2b4bc5['bind']('isEnabled')['to'](_0x4b0234),_0x2b4bc5['bind']('isOn')['to'](_0x4b0234,'isActive'),this['listenTo'](_0x2b4bc5,'execute',()=>{_0x31ff40['execute']('uploadcareImageEdit'),_0x31ff40['editing']['view']['focus']();}),_0x2b4bc5;}),this['_initConfig']();}['_initConfig'](){const _0x3c17c9=_0x364fee(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c17c9),this['listenTo'](this['editor'],'destroy',()=>{_0x3c17c9['remove']();});}}class UploadcareImageEdit extends _0x1c593a{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[UploadcareImageEditEditing,UploadcareImageEditUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Uploadcare,UploadcareCommand,UploadcareEditing,UploadcareImageEdit,UploadcareImageEditCommand,UploadcareImageEditEditing,UploadcareImageEditUI,UploadcareUI,UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2bb75d=>0x1!=_0x2bb75d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4efd84=>{const {af:{dictionary:_0x53c0c8,getPluralForm:_0xf90980}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x2848d1=>0x1!=_0x2848d1}};_0x4efd84['af']||={'dictionary':{},'getPluralForm':null},_0x4efd84['af']['dictionary']=Object['assign'](_0x4efd84['af']['dictionary'],_0x53c0c8),_0x4efd84['af']['getPluralForm']=_0xf90980;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x2b17d9=>0x0==_0x2b17d9?0x0:0x1==_0x2b17d9?0x1:0x2==_0x2b17d9?0x2:_0x2b17d9%0x64>=0x3&&_0x2b17d9%0x64<=0xa?0x3:_0x2b17d9%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4da650=>{const {ar:{dictionary:_0x4d9fcd,getPluralForm:_0x2e9894}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x19e4f4=>0x0==_0x19e4f4?0x0:0x1==_0x19e4f4?0x1:0x2==_0x19e4f4?0x2:_0x19e4f4%0x64>=0x3&&_0x19e4f4%0x64<=0xa?0x3:_0x19e4f4%0x64>=0xb?0x4:0x5}};_0x4da650['ar']||={'dictionary':{},'getPluralForm':null},_0x4da650['ar']['dictionary']=Object['assign'](_0x4da650['ar']['dictionary'],_0x4d9fcd),_0x4da650['ar']['getPluralForm']=_0x2e9894;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4583db=>0x1!=_0x4583db}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x135380=>{const {ast:{dictionary:_0x434ba1,getPluralForm:_0x36ec4b}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x23373d=>0x1!=_0x23373d}};_0x135380['ast']||={'dictionary':{},'getPluralForm':null},_0x135380['ast']['dictionary']=Object['assign'](_0x135380['ast']['dictionary'],_0x434ba1),_0x135380['ast']['getPluralForm']=_0x36ec4b;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1efbdb=>0x1!=_0x1efbdb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f62d6=>{const {az:{dictionary:_0x4a87b2,getPluralForm:_0x25dc44}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x149b73=>0x1!=_0x149b73}};_0x2f62d6['az']||={'dictionary':{},'getPluralForm':null},_0x2f62d6['az']['dictionary']=Object['assign'](_0x2f62d6['az']['dictionary'],_0x4a87b2),_0x2f62d6['az']['getPluralForm']=_0x25dc44;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/be.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4e1c96=>_0x4e1c96%0xa==0x1&&_0x4e1c96%0x64!=0xb?0x0:_0x4e1c96%0xa>=0x2&&_0x4e1c96%0xa<=0x4&&(_0x4e1c96%0x64<0xa||_0x4e1c96%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x11d4e6=>{const {be:{dictionary:_0xc645ab,getPluralForm:_0x3d5029}}={'be':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3fdd99=>_0x3fdd99%0xa==0x1&&_0x3fdd99%0x64!=0xb?0x0:_0x3fdd99%0xa>=0x2&&_0x3fdd99%0xa<=0x4&&(_0x3fdd99%0x64<0xa||_0x3fdd99%0x64>=0x14)?0x1:0x2}};_0x11d4e6['be']||={'dictionary':{},'getPluralForm':null},_0x11d4e6['be']['dictionary']=Object['assign'](_0x11d4e6['be']['dictionary'],_0xc645ab),_0x11d4e6['be']['getPluralForm']=_0x3d5029;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x38f3f2=>0x1!=_0x38f3f2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x59a71c=>{const {bg:{dictionary:_0x16bf35,getPluralForm:_0x2abd1a}}={'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x48133e=>0x1!=_0x48133e}};_0x59a71c['bg']||={'dictionary':{},'getPluralForm':null},_0x59a71c['bg']['dictionary']=Object['assign'](_0x59a71c['bg']['dictionary'],_0x16bf35),_0x59a71c['bg']['getPluralForm']=_0x2abd1a;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x3e7453=>0x1!=_0x3e7453}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5b7c5b=>{const {bn:{dictionary:_0x3b6454,getPluralForm:_0x30b8fc}}={'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x3107b9=>0x1!=_0x3107b9}};_0x5b7c5b['bn']||={'dictionary':{},'getPluralForm':null},_0x5b7c5b['bn']['dictionary']=Object['assign'](_0x5b7c5b['bn']['dictionary'],_0x3b6454),_0x5b7c5b['bn']['getPluralForm']=_0x30b8fc;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bs.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x5c0188=>_0x5c0188%0xa==0x1&&_0x5c0188%0x64!=0xb?0x0:_0x5c0188%0xa>=0x2&&_0x5c0188%0xa<=0x4&&(_0x5c0188%0x64<0xa||_0x5c0188%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4a24c4=>{const {bs:{dictionary:_0x3854d4,getPluralForm:_0x43c6cf}}={'bs':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x1b0874=>_0x1b0874%0xa==0x1&&_0x1b0874%0x64!=0xb?0x0:_0x1b0874%0xa>=0x2&&_0x1b0874%0xa<=0x4&&(_0x1b0874%0x64<0xa||_0x1b0874%0x64>=0x14)?0x1:0x2}};_0x4a24c4['bs']||={'dictionary':{},'getPluralForm':null},_0x4a24c4['bs']['dictionary']=Object['assign'](_0x4a24c4['bs']['dictionary'],_0x3854d4),_0x4a24c4['bs']['getPluralForm']=_0x43c6cf;})(window['CKEDITOR_TRANSLATIONS']||={});
|