@ckeditor/ckeditor5-uploadcare 47.5.0-alpha.7 → 47.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/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 +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x2a82e0,Command as _0x18500d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xf9d971,IconGooglePhotos as _0xfbbe4f,IconGoogleDrive as _0x5af63b,IconFacebook as _0x22e9cd,IconDropbox as _0x26f181,IconUploadcareLink as _0x26fd2b,IconUploadcareImageUpload as _0x1dc000,IconError as _0x264661,IconUploadcareImageEdit as _0x50046d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x469c63,MenuBarMenuListItemButtonView as _0x5402e3,View as _0x2f993d,FocusCycler as _0x41e57d,Dialog as _0x305b47,DialogViewPosition as _0x48b700,SpinnerView as _0x55dbe6,IconView as _0x5e6efd,Notification as _0x540fe3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3bb554,DomEmitterMixin as _0x131c3c,global as _0x44c20a,getAncestors as _0x2e2453,ObservableMixin as _0x51bd87,uid as _0x4ef61a,createElement as _0x1cc28e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x46e556}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1e8380,info as _0x3cf899}from'@uploadcare/upload-client';import*as _0x3c4042 from'@uploadcare/file-uploader';var i=function(_0x3bf822){return _0x3bf822['Local']='local',_0x3bf822['URL']='url',_0x3bf822['Dropbox']='dropbox',_0x3bf822['GDrive']='gdrive',_0x3bf822['Facebook']='facebook',_0x3bf822['GPhotos']='gphotos',_0x3bf822['OneDrive']='onedrive',_0x3bf822;}({});function _(_0x3d42c0,_0x15bbc0,_0xda1097){const t=_0x3d42c0['t'],_0x52ba26=_0x3d42c0['t'];switch(_0x15bbc0){case i['Local']:return{'text':_0x52ba26('Insert'===_0xda1097?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x52ba26('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xda1097?_0x52ba26('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x52ba26('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xda1097?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xda1097?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xda1097?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xda1097?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xda1097?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x15bbc0;}}class e extends _0x2a82e0{['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 _0x259d15=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x413881;for(const _0x313d1b in _0x259d15){const _0x3adf10=_0x313d1b,_0x1c2d8b=_0x259d15[_0x3adf10];if('uploadcareLicenseKeyValid'==_0x1c2d8b||'uploadcareLicenseKeyInvalid'==_0x1c2d8b||'uploadcareLicenseKeyExpired'==_0x1c2d8b||'uploadcareLicenseKeyDomainLimit'==_0x1c2d8b||'uploadcareLicenseKeyNotAllowed'==_0x1c2d8b||'uploadcareLicenseKeyEvaluationLimit'==_0x1c2d8b||'uploadcareLicenseKeyUsageLimit'==_0x1c2d8b){delete _0x259d15[_0x3adf10],_0x413881=_0x1c2d8b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x413881&&_0x259d15['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x413881&&_0x259d15['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x413881&&_0x259d15['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x413881&&_0x259d15['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x413881&&_0x259d15['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x413881&&_0x259d15['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x14ce44}=this,_0x4f9b18=_0x14ce44['commands']['get']('uploadcare');if(!_0x4f9b18)return;const _0x57561c=this['_normalizeConfigSourceList'](_0x14ce44['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x376278,_0x4e395a)=>{const _0x11dd9e=this['_getIntegrationKey'](_0x4e395a['type']);return _0x376278[_0x11dd9e]||(_0x376278[_0x11dd9e]=[]),_0x376278[_0x11dd9e]['push'](_0x4e395a),_0x376278;},{});_0x14ce44['plugins']['has']('ImageInsertUI')&&_0x14ce44['commands']['get']('uploadcare')&&Object['entries'](_0x57561c)['forEach'](([_0xe68a2d,_0x4e1784])=>{_0x14ce44['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xe68a2d,'observable':()=>_0x4f9b18,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4e1784),'formViewCreator':()=>this['_createDropdownButtons'](_0x4e1784),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4e1784),'override':'assetManager'!==_0xe68a2d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x477d9c){const {locale:_0x1663ec}=this['editor'];return _0x477d9c['map'](_0x2f3c2d=>{const _0x3e6f65=_(_0x1663ec,_0x2f3c2d,'Insert');switch(_0x2f3c2d){case i['Local']:return{'icon':_0x1dc000,'type':i['Local'],..._0x3e6f65};case i['URL']:return{'icon':_0x26fd2b,'type':i['URL'],..._0x3e6f65};case i['Dropbox']:return{'icon':_0x26f181,'type':i['Dropbox'],..._0x3e6f65};case i['Facebook']:return{'icon':_0x22e9cd,'type':i['Facebook'],..._0x3e6f65};case i['GDrive']:return{'icon':_0x5af63b,'type':i['GDrive'],..._0x3e6f65};case i['GPhotos']:return{'icon':_0xfbbe4f,'type':i['GPhotos'],..._0x3e6f65};case i['OneDrive']:return{'icon':_0xf9d971,'type':i['OneDrive'],..._0x3e6f65};}});}['_getIntegrationKey'](_0x3c4f63){switch(_0x3c4f63){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e0014,_0x3d96da){const _0x34ddd4=this['editor'],_0x4656bf=new _0x4e0014(_0x34ddd4['locale']),_0x44a74a=_0x34ddd4['commands']['get']('uploadcare');return _0x4656bf['bind']('isEnabled')['to'](_0x44a74a),_0x4656bf['on']('execute',()=>{_0x44a74a['execute'](_0x3d96da);}),_0x4656bf;}['_createToolbarButton'](_0x34deb8){const {locale:_0xc4e4a1}=this['editor'],_0x7c6ab2=this['editor']['plugins']['get']('ImageInsertUI'),_0x2387e2=_0x34deb8[0x0],_0x1c290d=this['_createButton'](_0x469c63,_0x2387e2['type']);return _0x1c290d['icon']=_0x2387e2['icon'],_0x1c290d['bind']('label')['to'](_0x7c6ab2,'isImageSelected',_0x5a18f2=>_(_0xc4e4a1,_0x2387e2['type'],_0x5a18f2?'Replace':'Insert')['text']),_0x1c290d['tooltip']=!0x0,_0x1c290d;}['_createDropdownButtons'](_0x12d944){const {locale:_0x4be842}=this['editor'],_0x58a22f=this['editor']['plugins']['get']('ImageInsertUI');return _0x12d944['map'](_0x9ecdae=>{const _0x3e000e=this['_createButton'](_0x469c63,_0x9ecdae['type']);return _0x3e000e['withText']=!0x0,_0x3e000e['icon']=_0x9ecdae['icon'],_0x3e000e['bind']('label')['to'](_0x58a22f,'isImageSelected',_0x3b989e=>_(_0x4be842,_0x9ecdae['type'],_0x3b989e?'Replace':'Insert')['text']),_0x3e000e;});}['_createMenuBarButtons'](_0x400297){return _0x400297['map'](_0x75812f=>{const _0x5993f4=this['_createButton'](_0x5402e3,_0x75812f['type']);return _0x5993f4['icon']=_0x75812f['icon'],_0x5993f4['label']=_0x75812f['shortText'],_0x5993f4;});}}class F extends _0x2f993d{['focusTracker'];['focusCycler'];constructor(_0x5dd8fb){super(_0x5dd8fb),this['focusTracker']=new _0x3bb554(),this['focusCycler']=new _0x41e57d({'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 x extends F{constructor(_0x2d2d49,_0x2397da){super(_0x2d2d49),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-'+_0x2397da}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5eb243,_0x487acf){const _0x1013b9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x21ea8e=>_0x21ea8e<=_0x487acf)['map'](_0x2221a7=>_0x5eb243['replace'](/\/$/,'')+'/-/resize/'+_0x2221a7+'x/\x20'+_0x2221a7+'w');return{'imageFallbackUrl':_0x5eb243,'imageSources':[{'srcset':_0x1013b9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x487acf+'px)\x20100vw,\x20'+_0x487acf+'px','type':'image/webp'}]};}function S(_0x263a9c,_0x53396f,_0x719370){const _0x4f4d2e=_0x263a9c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f4d2e?parseInt(_0x4f4d2e[0x1],0xa):_0x53396f,'height':_0x4f4d2e?parseInt(_0x4f4d2e[0x2],0xa):_0x719370};}function p(_0x1d9cb3,_0x72b626){const _0x19e618=new(_0x131c3c())(),_0x5e934a=_0x1d9cb3['plugins']['get']('ImageUtils'),_0x549cab=_0x1d9cb3['editing']['mapper']['toViewElement'](_0x72b626),_0x5625f2=_0x5e934a['findViewImgElement'](_0x549cab),_0x1c9174=_0x1d9cb3['editing']['view']['domConverter']['viewToDom'](_0x5625f2),_0x4b74dd=_0x72b626['getAttribute']('width'),_0x154519=_0x72b626['getAttribute']('height'),_0x2fef0e='image-processing';_0x1d9cb3['editing']['view']['change'](_0x49cc3f=>{_0x49cc3f['addClass'](_0x2fef0e,_0x549cab),_0x49cc3f['setStyle']('aspect-ratio',_0x4b74dd+'/'+_0x154519,_0x5625f2);}),_0x19e618['listenTo'](_0x1c9174,'load',()=>{_0x19e618['stopListening'](_0x1c9174,'load'),_0x1d9cb3['editing']['view']['change'](_0x412362=>{_0x412362['removeClass'](_0x2fef0e,_0x549cab),_0x412362['removeStyle']('aspect-ratio',_0x5625f2);});});}function G(_0xc01a62){if(Array['isArray'](_0xc01a62)){const _0xf819e5=_0xc01a62['map'](G);return _0xbcf4b9=>_0xf819e5['some'](_0x120af9=>_0x120af9(_0xbcf4b9));}if('origin'==_0xc01a62){const _0x2b1e6d=_0x44c20a['window']['location']['origin'];return _0x4a151f=>new URL(_0x4a151f,_0x44c20a['document']['baseURI'])['origin']==_0x2b1e6d;}return'function'==typeof _0xc01a62?_0xc01a62:_0xc01a62 instanceof RegExp?_0x49d490=>!(!_0x49d490['match'](_0xc01a62)&&!_0x49d490['replace'](/^https?:\/\//,'')['match'](_0xc01a62)):()=>!0x1;}function A(_0x25d43b,_0x3e07a5){return _0x2e2453(_0x25d43b['target'])['includes'](_0x3e07a5);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x51bd87(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5a783b,_0xb4bfb,_0x2a0e54){super(),this['_editor']=_0x5a783b,this['_editing']=_0xb4bfb,this['_dialog']=_0x5a783b['plugins']['get'](_0x305b47),this['_api']=_0xb4bfb['ctxElement']['getAPI'](),this['_type']=_0x2a0e54,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:_0x3feacb,model:_0x41850d}=this['_editor'],_0x56c145=_0x41850d['document']['selection']['getSelectedElement'](),_0x52740a=_0x56c145&&(_0x56c145['is']('element','imageBlock')||_0x56c145['is']('element','imageInline'));this['_formView']=new x(_0x3feacb,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1dc000,'title':_(_0x3feacb,this['_type'],_0x52740a?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x48b700['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5706d4=>!A(_0x5706d4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x59d62a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x521d7d=>{const _0x55490f=_0x59d62a['length'];for(const _0x3823c7 of _0x59d62a){const _0x2090b8=_0x3823c7===_0x59d62a[_0x55490f-0x1],{cdnUrl:_0xfad2bf,fileInfo:_0x2e0c1f}=_0x3823c7;if(!_0xfad2bf||!_0x2e0c1f)continue;const {width:_0x52e278,height:_0x37e5f8}=_0x2e0c1f['imageInfo'],_0x19898a=S(_0xfad2bf,_0x52e278,_0x37e5f8),_0x3e2ce7=C(_0xfad2bf,_0x19898a['width']),_0x4ad8f9={'id':_0x2e0c1f['uuid'],'type':'image','attributes':{'imageDimension':_0x19898a,..._0x3e2ce7}};this['_insertAsset'](_0x4ad8f9,_0x2090b8,_0x521d7d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xcdf7e9=>{'idle'===_0xcdf7e9['detail']['status']&&!_0xcdf7e9['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4c0bf7,_0x1d937b,_0x203fb0){const _0x4ced92=this['_editor']['model']['document']['selection'],_0x5b6bc8=_0x4ced92['getSelectedElement'](),_0x498596=!(!_0x5b6bc8||!_0x5b6bc8['is']('element','imageInline'));_0x203fb0['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4c0bf7,_0x498596),_0x1d937b||_0x203fb0['setSelection'](_0x4ced92['getLastPosition']());}['_insertImage'](_0x47c69e,_0x5a8458){const _0xacaff9=this['_editor'],{imageDimension:_0x46ae61,imageFallbackUrl:_0x9d97cf,imageSources:_0x1d25df}=_0x47c69e['attributes'];_0xacaff9['execute']('insertImage',{'imageType':_0x5a8458?'imageInline':null,'source':{'uploadcareImageId':_0x47c69e['id'],'src':_0x9d97cf,'sources':_0x1d25df,..._0x46ae61}});}}class w extends _0x18500d{['_editing'];['_controller']=null;static get['requires'](){return[_0x305b47,o];}constructor(_0x45506b){super(_0x45506b),this['_editing']=_0x45506b['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2d30ab){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2d30ab);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3a52dd,..._0x4683e6}){return _0x1e8380(_0x3a52dd,_0x4683e6);}static['getInfo'](_0x37f613,_0x44bf6e){return _0x3cf899(_0x37f613,_0x44bf6e);}}class f extends _0x2a82e0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x46e556,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x585716=this['editor'];if(!!!_0x585716['config']['get']('uploadcare'))return;_0x585716['plugins']['get'](_0x46e556)['createUploadAdapter']=_0x70c244=>new k(_0x70c244,_0x585716),_0x585716['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x303b15,{imageElement:_0x549a96,data:_0x56ccb7})=>{_0x585716['model']['change'](_0x37f000=>{_0x37f000['setAttribute']('uploadcareImageId',_0x56ccb7['uploadcareImageId'],_0x549a96);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4e32dc,_0x17f6c1){this['loader']=_0x4e32dc,this['editor']=_0x17f6c1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x47630b=await this['loader']['file'];return j['upload']({'file':_0x47630b,'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':_0x324b19=>{_0x324b19&&_0x324b19['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x324b19['value']);}})['then'](async _0x393d27=>{const {imageFallbackUrl:_0x5a458a,imageSources:_0xdcd8e}=C(_0x393d27['cdnUrl'],_0x393d27['imageInfo']['width']);return{'uploadcareImageId':_0x393d27['uuid'],'default':_0x5a458a,'sources':_0xdcd8e};})['catch'](()=>{const _0x3c7fdc=t('Cannot\x20upload\x20file:')+('\x20'+_0x47630b['name']+'.');return Promise['reject'](_0x3c7fdc);});}['abort'](){this['controller']['abort']();}}class o extends _0x2a82e0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x305b47];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x22ad73){super(_0x22ad73),this['ucContextId']=_0x4ef61a();}['init'](){const _0x142869=this['editor'];_0x142869['commands']['add']('uploadcare',new w(_0x142869));}['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 _0x5d7e7b=_0x44c20a['document']['querySelector']('input[uploadcare-file-input]');_0x5d7e7b&&_0x5d7e7b['remove']();}),async function(_0x2ad37){const _0x323c8c=_0x2bd56a([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]),_0x23f068=0x535f8c3a,_0x16f8d0=0x53580d6a^_0x23f068,_0x315d74=window[_0x2bd56a([0x44,0x61,0x74,0x65])][_0x2bd56a([0x6e,0x6f,0x77])](),_0x51a676=_0x2ad37[_0x2bd56a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb8c974=new window[(_0x2bd56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f7acf=>{_0x51a676[_0x2bd56a([0x6f,0x6e,0x63,0x65])](_0x2bd56a([0x72,0x65,0x61,0x64,0x79]),_0x3f7acf);}),_0x281aef={[_0x2bd56a([0x6b,0x74,0x79])]:_0x2bd56a([0x45,0x43]),[_0x2bd56a([0x75,0x73,0x65])]:_0x2bd56a([0x73,0x69,0x67]),[_0x2bd56a([0x63,0x72,0x76])]:_0x2bd56a([0x50,0x2d,0x32,0x35,0x36]),[_0x2bd56a([0x78])]:_0x2bd56a([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]),[_0x2bd56a([0x79])]:_0x2bd56a([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]),[_0x2bd56a([0x61,0x6c,0x67])]:_0x2bd56a([0x45,0x53,0x32,0x35,0x36])},_0x54bd94=_0x51a676[_0x2bd56a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2bd56a([0x67,0x65,0x74])](_0x2bd56a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x378a71(){let _0x4da85e,_0x2fbfae=null,_0x8a90ca=null;try{if(_0x54bd94==_0x2bd56a([0x47,0x50,0x4c]))return _0x2bd56a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4da85e=_0x3a88ef(),!_0x4da85e)return _0x2bd56a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4da85e[_0x2bd56a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8a90ca=_0x1349b2(_0x4da85e[_0x2bd56a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4da85e[_0x2bd56a([0x6a,0x74,0x69])])),await _0x1159b3()?_0x37b8cd()?_0x1abc86()?_0x2bd56a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x7d2356()?(_0x4da85e[_0x2bd56a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2bd56a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fbfae=_0x27f26f(_0x2bd56a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49f9ef()):_0x2bd56a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2bd56a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2bd56a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2bd56a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1abc86(){const _0x34919a=[_0x2bd56a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2bd56a([0x74,0x72,0x69,0x61,0x6c])][_0x2bd56a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4da85e[_0x2bd56a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x315d74/0x3e8:0xe10*_0x16f8d0;return _0x4da85e[_0x2bd56a([0x65,0x78,0x70])]<_0x34919a;}function _0x37b8cd(){const _0x3bf96f=_0x4da85e[_0x2bd56a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3bf96f&&(!!_0x3bf96f[_0x2bd56a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bd56a([0x2a]))||!!_0x3bf96f[_0x2bd56a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bd56a([0x55,0x50,0x4c,0x43])));}function _0x7d2356(){const _0x5bb2de=_0x4da85e[_0x2bd56a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5bb2de||0x0==_0x5bb2de[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3cf8fb}=new URL(window[_0x2bd56a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5bb2de[_0x2bd56a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cf8fb))return!0x0;const _0x408f91=_0x3cf8fb[_0x2bd56a([0x73,0x70,0x6c,0x69,0x74])](_0x2bd56a([0x2e]));return _0x5bb2de[_0x2bd56a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bbc1f=>_0x3bbc1f[_0x2bd56a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bd56a([0x2a])))[_0x2bd56a([0x6d,0x61,0x70])](_0x301c68=>_0x301c68[_0x2bd56a([0x73,0x70,0x6c,0x69,0x74])](_0x2bd56a([0x2e])))[_0x2bd56a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfa7174=>_0xfa7174[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x408f91[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2bd56a([0x6d,0x61,0x70])](_0x13b153=>Array(_0x408f91[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x13b153[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2bd56a([0x66,0x69,0x6c,0x6c])](_0x13b153[0x0]===_0x2bd56a([0x2a])?_0x2bd56a([0x2a]):'')[_0x2bd56a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x13b153))[_0x2bd56a([0x73,0x6f,0x6d,0x65])](_0x453a82=>_0x408f91[_0x2bd56a([0x65,0x76,0x65,0x72,0x79])]((_0x5f2289,_0x46ff0a)=>_0x453a82[_0x46ff0a]===_0x5f2289||_0x453a82[_0x46ff0a]===_0x2bd56a([0x2a])));}function _0x49f9ef(){return _0x2fbfae&&_0x8a90ca?new window[(_0x2bd56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b1301,_0x584ff9)=>{_0x2fbfae[_0x2bd56a([0x74,0x68,0x65,0x6e])](_0x5b1301,_0x584ff9),_0x8a90ca[_0x2bd56a([0x74,0x68,0x65,0x6e])](_0x2e39a2=>{_0x2e39a2!=_0x2bd56a([0x56,0x61,0x6c,0x69,0x64])&&_0x5b1301(_0x2e39a2);},_0x584ff9);}):_0x2fbfae||_0x8a90ca||_0x2bd56a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1349b2(_0x5bd1e4,_0x223c1f){return new window[(_0x2bd56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x423457=>{if(_0x4ddd95())return _0x423457(_0x2bd56a([0x56,0x61,0x6c,0x69,0x64]));_0x5cc786(),_0x51a676[_0x2bd56a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2bd56a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x139820=!0x1;const _0x249e66=_0x4ef61a();function _0x1091f4(_0x49b581){return!!_0x49b581&&(typeof _0x49b581===_0x2bd56a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49b581===_0x2bd56a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49b581[_0x2bd56a([0x74,0x68,0x65,0x6e])]===_0x2bd56a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49b581[_0x2bd56a([0x63,0x61,0x74,0x63,0x68])]===_0x2bd56a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x43bc9f(_0x129bd4){_0x4e4f45(_0x129bd4)[_0x2bd56a([0x74,0x68,0x65,0x6e])](_0x3f59a6=>{if(!_0x3f59a6||_0x3f59a6[_0x2bd56a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2bd56a([0x6f,0x6b]))return _0x2bd56a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39cd64(_0x29ea4f(_0x249e66+_0x223c1f))!=_0x3f59a6[_0x2bd56a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2bd56a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2bd56a([0x56,0x61,0x6c,0x69,0x64]);})[_0x2bd56a([0x74,0x68,0x65,0x6e])](_0x17f1b6=>(_0x4722b2(),_0x17f1b6),()=>{const _0xa5694d=_0x49ef02();return null==_0xa5694d?(_0x4722b2(),_0x2bd56a([0x56,0x61,0x6c,0x69,0x64])):_0x2bd56a(_0x315d74-_0xa5694d>(0x7753083a^_0x23f068)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2bd56a([0x74,0x68,0x65,0x6e])](_0x423457)[_0x2bd56a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x423457(_0x2bd56a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x568ccb=0x536962ba^_0x23f068;function _0x4722b2(){const _0xeffff6=_0x2bd56a([0x6c,0x6c,0x63,0x74,0x2d])+_0x39cd64(_0x29ea4f(_0x5bd1e4)),_0x8f8724=_0x48b680(_0x39cd64(window[_0x2bd56a([0x4d,0x61,0x74,0x68])][_0x2bd56a([0x63,0x65,0x69,0x6c])](_0x315d74/_0x568ccb)));window[_0x2bd56a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bd56a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xeffff6,_0x8f8724);}function _0x49ef02(){const _0x1696ae=_0x2bd56a([0x6c,0x6c,0x63,0x74,0x2d])+_0x39cd64(_0x29ea4f(_0x5bd1e4)),_0x5f0c95=window[_0x2bd56a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2bd56a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1696ae);return _0x5f0c95?window[_0x2bd56a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48b680(_0x5f0c95),0x10)*_0x568ccb:null;}function _0x4e4f45(_0x12ba74){return new window[(_0x2bd56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ae03f,_0x4b745e)=>{_0x12ba74[_0x2bd56a([0x74,0x68,0x65,0x6e])](_0x4ae03f,_0x4b745e),window[_0x2bd56a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b745e,0x535e58fa^_0x23f068);});}}_0x51a676[_0x2bd56a([0x6f,0x6e])](_0x2bd56a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44d4eb,_0x3b92fc)=>{if(_0x3b92fc[0x0]!=_0x5bd1e4)return _0x423457(_0x2bd56a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b92fc[0x1]={..._0x3b92fc[0x1],[_0x2bd56a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x249e66};},{[_0x2bd56a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bd56a([0x68,0x69,0x67,0x68])}),_0x51a676[_0x2bd56a([0x6f,0x6e])](_0x2bd56a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x269776=>{_0x1091f4(_0x269776[_0x2bd56a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x139820=!0x0,_0x43bc9f(_0x269776[_0x2bd56a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2bd56a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2bd56a([0x6c,0x6f,0x77])}),_0xb8c974[_0x2bd56a([0x74,0x68,0x65,0x6e])](()=>{_0x139820||_0x423457(_0x2bd56a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ddd95(){return _0x51a676[_0x2bd56a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bd56a([0x76,0x69,0x65,0x77])][_0x2bd56a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2bd56a([0x61,0x75,0x74,0x6f]);}function _0x5cc786(){_0x51a676[_0x2bd56a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2bd56a([0x76,0x69,0x65,0x77])][_0x2bd56a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2bd56a([0x61,0x75,0x74,0x6f]);}}function _0x27f26f(_0x5c1f61){const _0x54cced=[new window[(_0x2bd56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ca274=>setTimeout(_0x3ca274,0x5356b2f6^_0x23f068)),_0xb8c974[_0x2bd56a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2bd56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403548=>{let _0x3cd3c3=0x0;_0x51a676[_0x2bd56a([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bd56a([0x6f,0x6e])](_0x2bd56a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c3530,_0x579cc5)=>{_0x579cc5[0x0][_0x2bd56a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3cd3c3++,_0x3cd3c3==(0x535f89d2^_0x23f068)&&(_0x403548(),_0x4c3530[_0x2bd56a([0x6f,0x66,0x66])]());});}))];return window[_0x2bd56a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2bd56a([0x72,0x61,0x63,0x65])](_0x54cced)[_0x2bd56a([0x74,0x68,0x65,0x6e])](()=>_0x5c1f61);}async function _0x38a94a(){await _0xb8c974,_0x51a676[_0x2bd56a([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bd56a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3dad64,_0x51a676[_0x2bd56a([0x6d,0x6f,0x64,0x65,0x6c])][_0x2bd56a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3dad64,_0x51a676[_0x2bd56a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2bd56a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e4425(_0xb2b5bb){const _0x48e9ce=_0x1309cf();_0x51a676[_0x48e9ce]=_0x2bd56a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xb2b5bb,_0xb2b5bb!=_0x2bd56a([0x56,0x61,0x6c,0x69,0x64])&&_0x38a94a();}function _0x1309cf(){const _0xb218bc=window[_0x2bd56a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2bd56a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2bd56a([0x6e,0x6f,0x77])]())[_0x2bd56a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2bd56a([0x2e]),'');let _0x42ccf1=_0x2bd56a([0x68]);for(let _0x3f38a4=0x0;_0x3f38a4<_0xb218bc[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f38a4+=0x2){let _0x50b390=window[_0x2bd56a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb218bc[_0x2bd56a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f38a4,_0x3f38a4+0x2));_0x50b390>=_0x323c8c[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x50b390-=_0x323c8c[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42ccf1+=_0x323c8c[_0x50b390];}return _0x42ccf1;}function _0x3a88ef(){const _0xa120b=_0x54bd94[_0x2bd56a([0x73,0x70,0x6c,0x69,0x74])](_0x2bd56a([0x2e]));if(0x3!=_0xa120b[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cdd5b(_0xa120b[0x1]);function _0x5cdd5b(_0x26504a){const _0x42c75d=_0x156845(_0x26504a);return _0x42c75d&&_0x58af5a()?_0x42c75d:null;function _0x58af5a(){const _0xaf328b=_0x42c75d[_0x2bd56a([0x6a,0x74,0x69])],_0x58a4a9=window[_0x2bd56a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaf328b[_0x2bd56a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xaf328b[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x253724={..._0x42c75d,[_0x2bd56a([0x6a,0x74,0x69])]:_0xaf328b[_0x2bd56a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xaf328b[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x253724[_0x2bd56a([0x76,0x63])],_0x29ea4f(_0x253724)==_0x58a4a9;}}}async function _0x1159b3(){let _0x2cfb16=!0x0;try{const _0x5ce7f1=_0x54bd94[_0x2bd56a([0x73,0x70,0x6c,0x69,0x74])](_0x2bd56a([0x2e])),[_0x1a213c,_0x16eb08,_0x11caf7]=_0x5ce7f1;return _0x2a2520(_0x1a213c),await _0x4cc36e(_0x1a213c,_0x16eb08,_0x11caf7),_0x2cfb16;}catch{return!0x1;}function _0x2a2520(_0x3e6a67){const _0x367b8f=_0x156845(_0x3e6a67);_0x367b8f&&_0x367b8f[_0x2bd56a([0x61,0x6c,0x67])]==_0x2bd56a([0x45,0x53,0x32,0x35,0x36])||(_0x2cfb16=!0x1);}async function _0x4cc36e(_0x5e8d31,_0x39a6b0,_0x13583b){const _0x595462=window[_0x2bd56a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2bd56a([0x66,0x72,0x6f,0x6d])](_0x12163d(_0x13583b),_0x32c431=>_0x32c431[_0x2bd56a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbc95a7=new window[(_0x2bd56a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2bd56a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5e8d31+_0x2bd56a([0x2e])+_0x39a6b0),_0xd84a62=window[_0x2bd56a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2bd56a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd84a62)return;const _0xfa7729=await _0xd84a62[_0x2bd56a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2bd56a([0x6a,0x77,0x6b]),_0x281aef,{[_0x2bd56a([0x6e,0x61,0x6d,0x65])]:_0x2bd56a([0x45,0x43,0x44,0x53,0x41]),[_0x2bd56a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2bd56a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2bd56a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd84a62[_0x2bd56a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2bd56a([0x6e,0x61,0x6d,0x65])]:_0x2bd56a([0x45,0x43,0x44,0x53,0x41]),[_0x2bd56a([0x68,0x61,0x73,0x68])]:{[_0x2bd56a([0x6e,0x61,0x6d,0x65])]:_0x2bd56a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xfa7729,_0x595462,_0xbc95a7)||(_0x2cfb16=!0x1);}}function _0x156845(_0x1e74e5){return _0x1e74e5[_0x2bd56a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2bd56a([0x65,0x79]))?JSON[_0x2bd56a([0x70,0x61,0x72,0x73,0x65])](_0x12163d(_0x1e74e5)):null;}function _0x12163d(_0x5546c7){return window[_0x2bd56a([0x61,0x74,0x6f,0x62])](_0x5546c7[_0x2bd56a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2bd56a([0x2b]))[_0x2bd56a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2bd56a([0x2f])));}function _0x29ea4f(_0x173919){let _0x1fa103=0x1505;function _0x7ec3a3(_0x4f7cec){for(let _0x239060=0x0;_0x239060<_0x4f7cec[_0x2bd56a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x239060++){const _0x47b9a0=_0x4f7cec[_0x2bd56a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x239060);_0x1fa103=(_0x1fa103<<0x5)+_0x1fa103+_0x47b9a0,_0x1fa103&=_0x1fa103;}}function _0x303ba6(_0x54e8a8){Array[_0x2bd56a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54e8a8)?_0x54e8a8[_0x2bd56a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x303ba6):_0x54e8a8&&typeof _0x54e8a8==_0x2bd56a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2bd56a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54e8a8)[_0x2bd56a([0x73,0x6f,0x72,0x74])]()[_0x2bd56a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35099f,_0x501d25])=>{_0x7ec3a3(_0x35099f),_0x303ba6(_0x501d25);}):_0x7ec3a3(window[_0x2bd56a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54e8a8));}return _0x303ba6(_0x173919),_0x1fa103>>>0x0;}function _0x39cd64(_0x4a30a9){return _0x4a30a9[_0x2bd56a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2bd56a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2bd56a([0x30]));}function _0x48b680(_0x16e53d){return _0x16e53d[_0x2bd56a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2bd56a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2bd56a([0x6a,0x6f,0x69,0x6e])]('');}function _0x3dad64(){}function _0x2bd56a(_0xe1f2c8){return _0xe1f2c8['map'](_0x43e0c8=>String['fromCharCode'](_0x43e0c8))['join']('');}_0x4e4425(await _0x378a71());}(this);}['_initSchema'](){const _0x5892ce=this['editor']['model']['schema'];_0x5892ce['isRegistered']('imageBlock')&&_0x5892ce['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5892ce['isRegistered']('imageInline')&&_0x5892ce['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2f3fe2=this['editor'];_0x2f3fe2['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2f3fe2['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2eb818=>_0x2eb818['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x129858=_0x2f3fe2['commands']['get']('replaceImageSource');_0x129858&&this['listenTo'](_0x129858,'cleanupImage',(_0x6f6265,[_0x541777,_0x265743])=>{_0x541777['removeAttribute']('uploadcareImageId',_0x265743);});}['_initConfig'](){const _0x1e0efa=this['editor']['config']['get']('uploadcare.uploader')||{},_0x326b79=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1cc28e(_0x44c20a['document'],'uc-config',{..._0x1e0efa,'pubkey':_0x326b79,'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']=_0x280d06=>{if('closeMax'==_0x280d06)return'#uc-icon-arrow-down';},_0x44c20a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1cc28e(_0x44c20a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x44c20a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xd514d1=this['editor']['commands']['get']('insertImage');_0xd514d1&&this['listenTo'](_0xd514d1,'execute',()=>{const _0x417f38=this['editor']['model']['document']['selection']['getSelectedElement']();_0x417f38&&_0x417f38['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x417f38);});});const _0x492828=this['editor']['commands']['get']('uploadcareImageReplace');_0x492828&&this['listenTo'](_0x492828,'execute',()=>{const _0x5e5423=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e5423&&_0x5e5423['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5e5423);});});}}class tt extends _0x2a82e0{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf33539){super(_0xf33539),_0xf33539['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3c4042['defineComponents'](_0x3c4042),this['_defineLocale']();}['_defineLocale'](){const _0x24f73e=this['editor']['config']['get']('uploadcare.locale'),_0x1b994a=this['editor']['locale']['contentLanguage'];_0x24f73e&&_0x3c4042['defineLocale'](_0x1b994a,_0x24f73e);}}class ii extends _0x2f993d{constructor(_0x53c4c4){super(_0x53c4c4);const t=_0x53c4c4['t'],_0x39c63d=this['bindTemplate'],_0x36304a=new _0x55dbe6();_0x36304a['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':[_0x36304a,{'text':_0x39c63d['to']('imageUploadProgress',_0x1b17d2=>t('Loading\x20image...')+'\x20('+(_0x1b17d2||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 ti extends _0x2f993d{constructor(_0x57d250){super(_0x57d250);const t=_0x57d250['t'];this['set']('errorType',null);const _0x1c59d2=new _0x469c63(_0x57d250);_0x1c59d2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1c59d2['withText']=!0x0,_0x1c59d2['class']='ck-button-action',_0x1c59d2['on']('execute',()=>{this['fire']('retry');}),_0x1c59d2['bind']('isVisible')['to'](this,'errorType',_0x40508a=>'NotFound'!==_0x40508a);const _0x4d8eed=new _0x5e6efd();_0x4d8eed['content']=_0x264661,_0x4d8eed['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2a8478=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':[_0x4d8eed,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2a8478['to']('errorType',_0x506811=>t('NotFound'!==_0x506811?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1c59d2]},{'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 ei extends _0x2f993d{constructor(_0x4e442b,_0xbb8a27){super(_0x4e442b);const _0x5ed233=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xbb8a27,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5ed233['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1c6875,_0x8ac0e4,_0x46f548){super(_0x1c6875),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1c6875),this['_errorView']=new ti(_0x1c6875),this['_editingView']=new ei(_0x1c6875,_0x46f548),this['_focusableView']=new _0x2f993d(_0x1c6875),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x8ac0e4),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'],_0x145f75=>{this['_addUploadcareImageEditorListeners'](_0x145f75);});}),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'](_0x2e3893,_0x37e4ea){const _0x48f6c4='uc-cloud-image-editor',_0xcde4c0=_0x2e3893['querySelector'](_0x48f6c4);if(_0xcde4c0)return _0x37e4ea(_0xcde4c0);const _0x823ce4=new MutationObserver(_0xd96aca=>{const _0x506718=_0xd96aca['filter'](_0x429ba0=>_0x429ba0['target']===_0x2e3893&&_0x429ba0['addedNodes']['length']>0x0&&_0x429ba0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x48f6c4);_0x506718['length']&&(_0x823ce4['disconnect'](),_0x37e4ea(_0x506718[0x0]['addedNodes'][0x0]));});_0x823ce4['observe'](_0x2e3893,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x42a3ab){_0x42a3ab['addEventListener']('apply',_0x59705f=>{this['fire']('apply',{'imageSrc':_0x59705f['detail']['cdnUrl']});}),_0x42a3ab['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x51bd87(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x337042,_0x45f5a6,_0x34925d){super(),this['_editor']=_0x337042,this['_dialog']=_0x45f5a6,this['_imageElement']=_0x34925d,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 _0x10eee1=this['_imageElement'],_0x343be5=_0x10eee1['getAttribute']('uploadcareImageId'),_0xe36147=_0x10eee1['getAttribute']('src');if(_0x343be5)await this['_loadImageInfo'](_0x343be5,_0xe36147);else{if(this['_imageCache']['has'](_0xe36147)){const _0x11ecaa=this['_imageCache']['get'](_0xe36147);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x11ecaa['url'],this['imageDimension']=_0x11ecaa['dimension'],this['imageId']=_0x11ecaa['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x49dbca}=this['_editor'],t=_0x49dbca['t'],_0x2a2ff3=new X(_0x49dbca,this['imageStatus'],this['_attributes']);_0x2a2ff3['bind']('status')['to'](this,'imageStatus'),_0x2a2ff3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2a2ff3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2a2ff3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2a2ff3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x50046d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2a2ff3,'position':_0x48b700['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2a2ff3['focus']();},'onHide':()=>{_0x2a2ff3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2fee66=>!A(_0x2fee66,_0x2a2ff3['element'])}});}['_loadImageInfo'](_0x2aae16,_0x57362f){return j['getInfo'](_0x2aae16,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x44bff6=>{const {width:_0x9deaa9,height:_0x5d2b58}=_0x44bff6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57362f,this['imageDimension']={'width':_0x9deaa9,'height':_0x5d2b58},this['imageId']=_0x2aae16;})['catch'](_0x54fb94=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x54fb94['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x42b510,_0x2a94b2){return this['_getImageAsFile'](_0x42b510)['then'](_0x2896ba=>j['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':_0x2a94b2['signal'],'file':_0x2896ba,'onProgress':_0x6ae211=>{_0x6ae211&&_0x6ae211['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x6ae211['value']));}}))['then'](_0x4be166=>{const {width:_0x48e560,height:_0x2f3b7c}=_0x4be166['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4be166['cdnUrl'],this['imageDimension']={'width':_0x48e560,'height':_0x2f3b7c},this['imageId']=_0x4be166['uuid'],this['imageUploadProgress']=null;const _0x21ea0b=_0x42b510['getAttribute']('src');this['_imageCache']['set'](_0x21ea0b,{'id':_0x4be166['uuid'],'url':_0x4be166['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x434659=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x434659['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1b1a77,_0x4e81e4){_0x1b1a77['on']('apply',(_0x312cf7,_0x163111)=>{this['_replaceImage'](_0x4e81e4,_0x163111['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1b1a77['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1b1a77['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x464f7e,_0x4f915e,_0x57e51b){const _0x3e96ce=this['_editor'],{width:_0x11d2ee,height:_0x8c4cf}=S(_0x4f915e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4866bc,imageSources:_0x26d5df}=C(_0x4f915e,_0x11d2ee);_0x3e96ce['model']['change'](_0x1f6a8c=>{if('$graveyard'===_0x464f7e['root']['rootName']){_0x3e96ce['execute']('insertImage',{'imageType':_0x464f7e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x464f7e['getAttributes']()),'uploadcareImageId':_0x57e51b,'src':_0x4866bc,'sources':_0x26d5df,'width':_0x11d2ee,'height':_0x8c4cf}});const _0x5cfef9=_0x464f7e['getChildren']();_0x464f7e=_0x3e96ce['model']['document']['selection']['getSelectedElement']();for(const _0x16fdca of _0x5cfef9)_0x1f6a8c['append'](_0x1f6a8c['cloneElement'](_0x16fdca),_0x464f7e);}else _0x1f6a8c['setSelection'](_0x464f7e,'on'),_0x3e96ce['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x464f7e['getAttributes']()),'uploadcareImageId':_0x57e51b,'src':_0x4866bc,'sources':_0x26d5df,'width':_0x11d2ee,'height':_0x8c4cf},_0x464f7e);_0x1f6a8c['setSelection'](_0x464f7e,'on');});}async['_getImageAsFile'](_0x3fc52c){const _0x5b7aa2=_0x44c20a['window'],_0x17075d=_0x44c20a['document']['location']['href'],_0x362021=new _0x5b7aa2['URL'](_0x3fc52c['getAttribute']('src'),_0x17075d);if('data:'===_0x362021['protocol']){const _0x2d8ae3=_0x362021['href']['split'](','),_0x33495d=_0x2d8ae3[0x0]['match'](/:(.*?);/)[0x1],_0xa9a1da=_0x33495d['split']('/')[0x1],_0x58e30c=_0x5b7aa2['atob'](_0x2d8ae3[_0x2d8ae3['length']-0x1]);let _0x320764=_0x58e30c['length'];const _0x109577=new _0x5b7aa2['Uint8Array'](_0x320764);for(;_0x320764--;)_0x109577[_0x320764]=_0x58e30c['charCodeAt'](_0x320764);return new _0x5b7aa2['File']([_0x109577],'image.'+_0xa9a1da,{'type':_0x33495d});}const _0x218c25=_0x362021['href']['split']('/'),_0x1db749=_0x218c25[_0x218c25['length']-0x1],_0x4bd0c6=_0x1db749['split']('.')[0x1];return _0x5b7aa2['fetch'](_0x362021['href'])['then'](_0x412eb3=>_0x412eb3['clone']()['blob']())['then'](_0x2cc6ad=>new _0x5b7aa2['File']([_0x2cc6ad],_0x1db749,{'type':'image/'+_0x4bd0c6}));}}class O extends _0x18500d{['imageEditController'];static get['requires'](){return[_0x305b47];}['_isEditable'];constructor(_0x59528d){super(_0x59528d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x356563){const _0x52a158=G(_0x356563);return _0x22a2b4=>!(!_0x22a2b4||!_0x22a2b4['is']('element','imageBlock')&&!_0x22a2b4['is']('element','imageInline'))&&(!!_0x22a2b4['hasAttribute']('uploadcareImageId')||!!_0x22a2b4['hasAttribute']('src')&&_0x52a158(_0x22a2b4['getAttribute']('src')));}(_0x59528d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x30a9ad=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x30a9ad);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5a1585=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5a1585&&(_0x5a1585['is']('element','imageBlock')||_0x5a1585['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x305b47),_0x5a1585),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x18500d{['refresh'](){const _0x3150da=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3150da&&(_0x3150da['is']('element','imageBlock')||_0x3150da['is']('element','imageInline')));}['execute'](_0x4ae99d){const _0x549841=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x49fdb1=>{_0x49fdb1['setAttributes'](_0x4ae99d,_0x549841),_0x49fdb1['removeAttribute']('srcset',_0x549841),_0x49fdb1['removeAttribute']('sizes',_0x549841);});}}class m extends _0x2a82e0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x540fe3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x42369b}=this;_0x42369b['commands']['add']('uploadcareImageEdit',new O(_0x42369b)),_0x42369b['commands']['add']('uploadcareImageReplace',new R(_0x42369b));}}class g extends _0x2a82e0{['_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 _0x430305=this['editor'];_0x430305['ui']['componentFactory']['add']('uploadcareImageEdit',_0x29251d=>{const _0x4f2c9e=_0x430305['commands']['get']('uploadcareImageEdit'),_0x7797d9=new _0x469c63(_0x29251d),t=_0x29251d['t'];return _0x7797d9['set']({'icon':_0x50046d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x7797d9['bind']('isEnabled')['to'](_0x4f2c9e),_0x7797d9['bind']('isOn')['to'](_0x4f2c9e,'isActive'),this['listenTo'](_0x7797d9,'execute',()=>{_0x430305['execute']('uploadcareImageEdit'),_0x430305['editing']['view']['focus']();}),_0x7797d9;}),this['_initConfig']();}['_initConfig'](){const _0x2d6c1f=_0x1cc28e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2d6c1f),this['listenTo'](this['editor'],'destroy',()=>{_0x2d6c1f['remove']();});}}class et extends _0x2a82e0{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x290a13,Command as _0x363393}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ab90f,IconGooglePhotos as _0x221734,IconGoogleDrive as _0x8680f8,IconFacebook as _0xf08c8b,IconDropbox as _0x1ace9a,IconUploadcareLink as _0x2a5a50,IconUploadcareImageUpload as _0x97b9fb,IconError as _0x282d90,IconUploadcareImageEdit as _0x4734ee}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x32a0e5,MenuBarMenuListItemButtonView as _0x65d622,View as _0x2d9fc0,FocusCycler as _0x1c3554,Dialog as _0x12553a,DialogViewPosition as _0x170076,SpinnerView as _0x1f177b,IconView as _0x25c422,Notification as _0x533009}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3819d4,DomEmitterMixin as _0x17c636,global as _0x4bd362,getAncestors as _0x55c5bf,ObservableMixin as _0x3dae52,uid as _0x48f027,createElement as _0x171505}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x48694d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x238baa,info as _0x2f187}from'@uploadcare/upload-client';import*as _0x5b5b58 from'@uploadcare/file-uploader';var i=function(_0x40e216){return _0x40e216['Local']='local',_0x40e216['URL']='url',_0x40e216['Dropbox']='dropbox',_0x40e216['GDrive']='gdrive',_0x40e216['Facebook']='facebook',_0x40e216['GPhotos']='gphotos',_0x40e216['OneDrive']='onedrive',_0x40e216;}({});function _(_0x555849,_0x5edd72,_0x16cdcf){const t=_0x555849['t'],_0xdf1aa6=_0x555849['t'];switch(_0x5edd72){case i['Local']:return{'text':_0xdf1aa6('Insert'===_0x16cdcf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xdf1aa6('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x16cdcf?_0xdf1aa6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xdf1aa6('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x16cdcf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x16cdcf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x16cdcf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x16cdcf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x16cdcf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5edd72;}}class e extends _0x290a13{['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 _0x2cd56a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x28565b;for(const _0x10b245 in _0x2cd56a){const _0x2d8ef1=_0x10b245,_0x446472=_0x2cd56a[_0x2d8ef1];if('uploadcareLicenseKeyValid'==_0x446472||'uploadcareLicenseKeyInvalid'==_0x446472||'uploadcareLicenseKeyExpired'==_0x446472||'uploadcareLicenseKeyDomainLimit'==_0x446472||'uploadcareLicenseKeyNotAllowed'==_0x446472||'uploadcareLicenseKeyEvaluationLimit'==_0x446472||'uploadcareLicenseKeyUsageLimit'==_0x446472){delete _0x2cd56a[_0x2d8ef1],_0x28565b=_0x446472,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x28565b&&_0x2cd56a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x28565b&&_0x2cd56a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x28565b&&_0x2cd56a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x28565b&&_0x2cd56a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x28565b&&_0x2cd56a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x28565b&&_0x2cd56a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1ca530}=this,_0x583671=_0x1ca530['commands']['get']('uploadcare');if(!_0x583671)return;const _0xf8d128=this['_normalizeConfigSourceList'](_0x1ca530['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x12ab32,_0x3708fd)=>{const _0x1a5d5e=this['_getIntegrationKey'](_0x3708fd['type']);return _0x12ab32[_0x1a5d5e]||(_0x12ab32[_0x1a5d5e]=[]),_0x12ab32[_0x1a5d5e]['push'](_0x3708fd),_0x12ab32;},{});_0x1ca530['plugins']['has']('ImageInsertUI')&&_0x1ca530['commands']['get']('uploadcare')&&Object['entries'](_0xf8d128)['forEach'](([_0x1c4aa1,_0x51ebcf])=>{_0x1ca530['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1c4aa1,'observable':()=>_0x583671,'buttonViewCreator':()=>this['_createToolbarButton'](_0x51ebcf),'formViewCreator':()=>this['_createDropdownButtons'](_0x51ebcf),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x51ebcf),'override':'assetManager'!==_0x1c4aa1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x362a9a){const {locale:_0x1dbf04}=this['editor'];return _0x362a9a['map'](_0xbefb7a=>{const _0x516c4d=_(_0x1dbf04,_0xbefb7a,'Insert');switch(_0xbefb7a){case i['Local']:return{'icon':_0x97b9fb,'type':i['Local'],..._0x516c4d};case i['URL']:return{'icon':_0x2a5a50,'type':i['URL'],..._0x516c4d};case i['Dropbox']:return{'icon':_0x1ace9a,'type':i['Dropbox'],..._0x516c4d};case i['Facebook']:return{'icon':_0xf08c8b,'type':i['Facebook'],..._0x516c4d};case i['GDrive']:return{'icon':_0x8680f8,'type':i['GDrive'],..._0x516c4d};case i['GPhotos']:return{'icon':_0x221734,'type':i['GPhotos'],..._0x516c4d};case i['OneDrive']:return{'icon':_0x1ab90f,'type':i['OneDrive'],..._0x516c4d};}});}['_getIntegrationKey'](_0x7751dd){switch(_0x7751dd){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5b14bc,_0xb56ab5){const _0x4120cf=this['editor'],_0x573044=new _0x5b14bc(_0x4120cf['locale']),_0x289983=_0x4120cf['commands']['get']('uploadcare');return _0x573044['bind']('isEnabled')['to'](_0x289983),_0x573044['on']('execute',()=>{_0x289983['execute'](_0xb56ab5);}),_0x573044;}['_createToolbarButton'](_0x4ab8c8){const {locale:_0x1666da}=this['editor'],_0x29d21d=this['editor']['plugins']['get']('ImageInsertUI'),_0x3fd89d=_0x4ab8c8[0x0],_0x570487=this['_createButton'](_0x32a0e5,_0x3fd89d['type']);return _0x570487['icon']=_0x3fd89d['icon'],_0x570487['bind']('label')['to'](_0x29d21d,'isImageSelected',_0x173ef7=>_(_0x1666da,_0x3fd89d['type'],_0x173ef7?'Replace':'Insert')['text']),_0x570487['tooltip']=!0x0,_0x570487;}['_createDropdownButtons'](_0x28584c){const {locale:_0x4a7261}=this['editor'],_0x4db377=this['editor']['plugins']['get']('ImageInsertUI');return _0x28584c['map'](_0x58a709=>{const _0x1e72ec=this['_createButton'](_0x32a0e5,_0x58a709['type']);return _0x1e72ec['withText']=!0x0,_0x1e72ec['icon']=_0x58a709['icon'],_0x1e72ec['bind']('label')['to'](_0x4db377,'isImageSelected',_0xd4bc3e=>_(_0x4a7261,_0x58a709['type'],_0xd4bc3e?'Replace':'Insert')['text']),_0x1e72ec;});}['_createMenuBarButtons'](_0x76a515){return _0x76a515['map'](_0x1a347d=>{const _0x21fee2=this['_createButton'](_0x65d622,_0x1a347d['type']);return _0x21fee2['icon']=_0x1a347d['icon'],_0x21fee2['label']=_0x1a347d['shortText'],_0x21fee2;});}}class V extends _0x2d9fc0{['focusTracker'];['focusCycler'];constructor(_0x220401){super(_0x220401),this['focusTracker']=new _0x3819d4(),this['focusCycler']=new _0x1c3554({'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 S extends V{constructor(_0x12e055,_0x2e2c04){super(_0x12e055),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-'+_0x2e2c04}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xac2da3,_0x436751){const _0xe13635=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3c8168=>_0x3c8168<=_0x436751)['map'](_0x425b3e=>_0xac2da3['replace'](/\/$/,'')+'/-/resize/'+_0x425b3e+'x/\x20'+_0x425b3e+'w');return{'imageFallbackUrl':_0xac2da3,'imageSources':[{'srcset':_0xe13635['join'](',\x20'),'sizes':'(max-width:\x20'+_0x436751+'px)\x20100vw,\x20'+_0x436751+'px','type':'image/webp'}]};}function F(_0x3ecd14,_0x53f9dd,_0x1d3442){const _0x3d5228=_0x3ecd14['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3d5228?parseInt(_0x3d5228[0x1],0xa):_0x53f9dd,'height':_0x3d5228?parseInt(_0x3d5228[0x2],0xa):_0x1d3442};}function p(_0x3a3a10,_0x390ba8){const _0x46490b=new(_0x17c636())(),_0x4a056c=_0x3a3a10['plugins']['get']('ImageUtils'),_0x26151f=_0x3a3a10['editing']['mapper']['toViewElement'](_0x390ba8),_0x45359e=_0x4a056c['findViewImgElement'](_0x26151f),_0x59e79e=_0x3a3a10['editing']['view']['domConverter']['viewToDom'](_0x45359e),_0x3c5871=_0x390ba8['getAttribute']('width'),_0x4dfb61=_0x390ba8['getAttribute']('height'),_0x41686e='image-processing';_0x3a3a10['editing']['view']['change'](_0x442ed6=>{_0x442ed6['addClass'](_0x41686e,_0x26151f),_0x442ed6['setStyle']('aspect-ratio',_0x3c5871+'/'+_0x4dfb61,_0x45359e);}),_0x46490b['listenTo'](_0x59e79e,'load',()=>{_0x46490b['stopListening'](_0x59e79e,'load'),_0x3a3a10['editing']['view']['change'](_0x51ec76=>{_0x51ec76['removeClass'](_0x41686e,_0x26151f),_0x51ec76['removeStyle']('aspect-ratio',_0x45359e);});});}function R(_0x1fe42b){if(Array['isArray'](_0x1fe42b)){const _0x3a98ab=_0x1fe42b['map'](R);return _0x56c94f=>_0x3a98ab['some'](_0x192545=>_0x192545(_0x56c94f));}if('origin'==_0x1fe42b){const _0x1113cd=_0x4bd362['window']['location']['origin'];return _0x718749=>new URL(_0x718749,_0x4bd362['document']['baseURI'])['origin']==_0x1113cd;}return'function'==typeof _0x1fe42b?_0x1fe42b:_0x1fe42b instanceof RegExp?_0x22f718=>!(!_0x22f718['match'](_0x1fe42b)&&!_0x22f718['replace'](/^https?:\/\//,'')['match'](_0x1fe42b)):()=>!0x1;}function M(_0x44039c,_0x1132b0){return _0x55c5bf(_0x44039c['target'])['includes'](_0x1132b0);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3dae52(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x11b667,_0x35ffd4,_0xf7adb3){super(),this['_editor']=_0x11b667,this['_editing']=_0x35ffd4,this['_dialog']=_0x11b667['plugins']['get'](_0x12553a),this['_api']=_0x35ffd4['ctxElement']['getAPI'](),this['_type']=_0xf7adb3,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:_0x2c3d76,model:_0x66538b}=this['_editor'],_0x572400=_0x66538b['document']['selection']['getSelectedElement'](),_0xddc67b=_0x572400&&(_0x572400['is']('element','imageBlock')||_0x572400['is']('element','imageInline'));this['_formView']=new S(_0x2c3d76,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x97b9fb,'title':_(_0x2c3d76,this['_type'],_0xddc67b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x170076['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x29e994=>!M(_0x29e994,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x535f31}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x32cd5f=>{const _0xfd2acd=_0x535f31['length'];for(const _0x496536 of _0x535f31){const _0x466afd=_0x496536===_0x535f31[_0xfd2acd-0x1],{cdnUrl:_0x114778,fileInfo:_0x53e5ec}=_0x496536;if(!_0x114778||!_0x53e5ec)continue;const {width:_0x45b425,height:_0x1450c4}=_0x53e5ec['imageInfo'],_0x56c59a=F(_0x114778,_0x45b425,_0x1450c4),_0x46ad07=C(_0x114778,_0x56c59a['width']),_0x3a3021={'id':_0x53e5ec['uuid'],'type':'image','attributes':{'imageDimension':_0x56c59a,..._0x46ad07}};this['_insertAsset'](_0x3a3021,_0x466afd,_0x32cd5f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x17ba4e=>{'idle'===_0x17ba4e['detail']['status']&&!_0x17ba4e['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x351b53,_0x47c6e0,_0x334546){const _0x206fc1=this['_editor']['model']['document']['selection'],_0x187484=_0x206fc1['getSelectedElement'](),_0x52283e=!(!_0x187484||!_0x187484['is']('element','imageInline'));_0x334546['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x351b53,_0x52283e),_0x47c6e0||_0x334546['setSelection'](_0x206fc1['getLastPosition']());}['_insertImage'](_0x14360d,_0x226ba1){const _0xbc78b8=this['_editor'],{imageDimension:_0x2645b9,imageFallbackUrl:_0x8a16d,imageSources:_0x368254}=_0x14360d['attributes'];_0xbc78b8['execute']('insertImage',{'imageType':_0x226ba1?'imageInline':null,'source':{'uploadcareImageId':_0x14360d['id'],'src':_0x8a16d,'sources':_0x368254,..._0x2645b9}});}}class w extends _0x363393{['_editing'];['_controller']=null;static get['requires'](){return[_0x12553a,o];}constructor(_0x68962){super(_0x68962),this['_editing']=_0x68962['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x29ed06){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x29ed06);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x45adca,..._0x50f9b1}){return _0x238baa(_0x45adca,_0x50f9b1);}static['getInfo'](_0x30463f,_0x36470e){return _0x2f187(_0x30463f,_0x36470e);}}class f extends _0x290a13{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x48694d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x159c9a=this['editor'];if(!!!_0x159c9a['config']['get']('uploadcare'))return;_0x159c9a['plugins']['get'](_0x48694d)['createUploadAdapter']=_0x5e1bd9=>new k(_0x5e1bd9,_0x159c9a),_0x159c9a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x372471,{imageElement:_0x354f0a,data:_0x2536a8})=>{_0x159c9a['model']['change'](_0x3705b2=>{_0x3705b2['setAttribute']('uploadcareImageId',_0x2536a8['uploadcareImageId'],_0x354f0a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2ffd1f,_0x5f0a98){this['loader']=_0x2ffd1f,this['editor']=_0x5f0a98,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x217020=await this['loader']['file'];return j['upload']({'file':_0x217020,'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':_0x5e3080=>{_0x5e3080&&_0x5e3080['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5e3080['value']);}})['then'](async _0x3d5457=>{const {imageFallbackUrl:_0xbdbce2,imageSources:_0x5a4b26}=C(_0x3d5457['cdnUrl'],_0x3d5457['imageInfo']['width']);return{'uploadcareImageId':_0x3d5457['uuid'],'default':_0xbdbce2,'sources':_0x5a4b26};})['catch'](()=>{const _0x32e637=t('Cannot\x20upload\x20file:')+('\x20'+_0x217020['name']+'.');return Promise['reject'](_0x32e637);});}['abort'](){this['controller']['abort']();}}class o extends _0x290a13{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x12553a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x242557){super(_0x242557),this['ucContextId']=_0x48f027();}['init'](){const _0x68a93f=this['editor'];_0x68a93f['commands']['add']('uploadcare',new w(_0x68a93f));}['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 _0x3ef9cc=_0x4bd362['document']['querySelector']('input[uploadcare-file-input]');_0x3ef9cc&&_0x3ef9cc['remove']();}),async function(_0x1e65eb){const _0x35117c=_0x52c214([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]),_0x195922=0x535f8c3a,_0xebc906=0x53580d52^_0x195922,_0xec7660=window[_0x52c214([0x44,0x61,0x74,0x65])][_0x52c214([0x6e,0x6f,0x77])](),_0x2893f2=_0x1e65eb[_0x52c214([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x335f5c=new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5520e0=>{_0x2893f2[_0x52c214([0x6f,0x6e,0x63,0x65])](_0x52c214([0x72,0x65,0x61,0x64,0x79]),_0x5520e0);}),_0x115967={[_0x52c214([0x6b,0x74,0x79])]:_0x52c214([0x45,0x43]),[_0x52c214([0x75,0x73,0x65])]:_0x52c214([0x73,0x69,0x67]),[_0x52c214([0x63,0x72,0x76])]:_0x52c214([0x50,0x2d,0x32,0x35,0x36]),[_0x52c214([0x78])]:_0x52c214([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]),[_0x52c214([0x79])]:_0x52c214([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]),[_0x52c214([0x61,0x6c,0x67])]:_0x52c214([0x45,0x53,0x32,0x35,0x36])},_0x75923e=_0x2893f2[_0x52c214([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52c214([0x67,0x65,0x74])](_0x52c214([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5eb471(){let _0x1e6107,_0x5b4867=null,_0x30e0c4=null;try{if(_0x75923e==_0x52c214([0x47,0x50,0x4c]))return _0x52c214([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e6107=_0x3634cf(),!_0x1e6107)return _0x52c214([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e6107[_0x52c214([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30e0c4=_0x54e203(_0x1e6107[_0x52c214([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e6107[_0x52c214([0x6a,0x74,0x69])])),await _0x46bdca()?_0x2ada76()?_0x2ab800()?_0x52c214([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4be13a()?(_0x1e6107[_0x52c214([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52c214([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b4867=_0x2e53f6(_0x52c214([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c61f9()):_0x52c214([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52c214([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52c214([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52c214([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ab800(){const _0x4a3fbb=[_0x52c214([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52c214([0x74,0x72,0x69,0x61,0x6c])][_0x52c214([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e6107[_0x52c214([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xec7660/0x3e8:0xe10*_0xebc906;return _0x1e6107[_0x52c214([0x65,0x78,0x70])]<_0x4a3fbb;}function _0x2ada76(){const _0x15109b=_0x1e6107[_0x52c214([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15109b&&(!!_0x15109b[_0x52c214([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c214([0x2a]))||!!_0x15109b[_0x52c214([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c214([0x55,0x50,0x4c,0x43])));}function _0x4be13a(){const _0x20a129=_0x1e6107[_0x52c214([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20a129||0x0==_0x20a129[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x446759}=new URL(window[_0x52c214([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20a129[_0x52c214([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x446759))return!0x0;const _0x5e1f84=_0x446759[_0x52c214([0x73,0x70,0x6c,0x69,0x74])](_0x52c214([0x2e]));return _0x20a129[_0x52c214([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56a42c=>_0x56a42c[_0x52c214([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c214([0x2a])))[_0x52c214([0x6d,0x61,0x70])](_0x10ad83=>_0x10ad83[_0x52c214([0x73,0x70,0x6c,0x69,0x74])](_0x52c214([0x2e])))[_0x52c214([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55c8ff=>_0x55c8ff[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e1f84[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52c214([0x6d,0x61,0x70])](_0x7a8112=>Array(_0x5e1f84[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x7a8112[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52c214([0x66,0x69,0x6c,0x6c])](_0x7a8112[0x0]===_0x52c214([0x2a])?_0x52c214([0x2a]):'')[_0x52c214([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x7a8112))[_0x52c214([0x73,0x6f,0x6d,0x65])](_0x49deb0=>_0x5e1f84[_0x52c214([0x65,0x76,0x65,0x72,0x79])]((_0x5b24d7,_0x93bfca)=>_0x49deb0[_0x93bfca]===_0x5b24d7||_0x49deb0[_0x93bfca]===_0x52c214([0x2a])));}function _0x3c61f9(){return _0x5b4867&&_0x30e0c4?new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a6801,_0x5c5241)=>{_0x5b4867[_0x52c214([0x74,0x68,0x65,0x6e])](_0x5a6801,_0x5c5241),_0x30e0c4[_0x52c214([0x74,0x68,0x65,0x6e])](_0x17d350=>{_0x17d350!=_0x52c214([0x56,0x61,0x6c,0x69,0x64])&&_0x5a6801(_0x17d350);},_0x5c5241);}):_0x5b4867||_0x30e0c4||_0x52c214([0x56,0x61,0x6c,0x69,0x64]);}}function _0x54e203(_0x307d06,_0x9fb671){return new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d2203=>{if(_0x50dfeb())return _0x4d2203(_0x52c214([0x56,0x61,0x6c,0x69,0x64]));_0x310860(),_0x2893f2[_0x52c214([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52c214([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9cf17=!0x1;const _0x529946=_0x48f027();function _0x37f0ce(_0x25a87a){return!!_0x25a87a&&(typeof _0x25a87a===_0x52c214([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25a87a===_0x52c214([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25a87a[_0x52c214([0x74,0x68,0x65,0x6e])]===_0x52c214([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25a87a[_0x52c214([0x63,0x61,0x74,0x63,0x68])]===_0x52c214([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ab416(_0x3f449f){_0x265d43(_0x3f449f)[_0x52c214([0x74,0x68,0x65,0x6e])](_0x58635c=>{if(!_0x58635c||_0x58635c[_0x52c214([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52c214([0x6f,0x6b]))return _0x52c214([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x370eaf(_0x4ff008(_0x529946+_0x9fb671))!=_0x58635c[_0x52c214([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52c214([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52c214([0x56,0x61,0x6c,0x69,0x64]);})[_0x52c214([0x74,0x68,0x65,0x6e])](_0x32af10=>(_0x44adf1(),_0x32af10),()=>{const _0x546329=_0x275d6d();return null==_0x546329?(_0x44adf1(),_0x52c214([0x56,0x61,0x6c,0x69,0x64])):_0x52c214(_0xec7660-_0x546329>(0x7753083a^_0x195922)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52c214([0x74,0x68,0x65,0x6e])](_0x4d2203)[_0x52c214([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d2203(_0x52c214([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x137058=0x536962ba^_0x195922;function _0x44adf1(){const _0x4242be=_0x52c214([0x6c,0x6c,0x63,0x74,0x2d])+_0x370eaf(_0x4ff008(_0x307d06)),_0xe9bda=_0x185ecf(_0x370eaf(window[_0x52c214([0x4d,0x61,0x74,0x68])][_0x52c214([0x63,0x65,0x69,0x6c])](_0xec7660/_0x137058)));window[_0x52c214([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52c214([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4242be,_0xe9bda);}function _0x275d6d(){const _0x3df680=_0x52c214([0x6c,0x6c,0x63,0x74,0x2d])+_0x370eaf(_0x4ff008(_0x307d06)),_0x13f068=window[_0x52c214([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52c214([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3df680);return _0x13f068?window[_0x52c214([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x185ecf(_0x13f068),0x10)*_0x137058:null;}function _0x265d43(_0x1e4083){return new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51a2a5,_0x1c5e1b)=>{_0x1e4083[_0x52c214([0x74,0x68,0x65,0x6e])](_0x51a2a5,_0x1c5e1b),window[_0x52c214([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c5e1b,0x535e58fa^_0x195922);});}}_0x2893f2[_0x52c214([0x6f,0x6e])](_0x52c214([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2429a6,_0x3e31dd)=>{if(_0x3e31dd[0x0]!=_0x307d06)return _0x4d2203(_0x52c214([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e31dd[0x1]={..._0x3e31dd[0x1],[_0x52c214([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x529946};},{[_0x52c214([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52c214([0x68,0x69,0x67,0x68])}),_0x2893f2[_0x52c214([0x6f,0x6e])](_0x52c214([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3163ba=>{_0x37f0ce(_0x3163ba[_0x52c214([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9cf17=!0x0,_0x2ab416(_0x3163ba[_0x52c214([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52c214([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52c214([0x6c,0x6f,0x77])}),_0x335f5c[_0x52c214([0x74,0x68,0x65,0x6e])](()=>{_0x9cf17||_0x4d2203(_0x52c214([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50dfeb(){return _0x2893f2[_0x52c214([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52c214([0x76,0x69,0x65,0x77])][_0x52c214([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52c214([0x61,0x75,0x74,0x6f]);}function _0x310860(){_0x2893f2[_0x52c214([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52c214([0x76,0x69,0x65,0x77])][_0x52c214([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52c214([0x61,0x75,0x74,0x6f]);}}function _0x2e53f6(_0x58fe10){const _0xf4762=[new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41f585=>setTimeout(_0x41f585,0x5356b2f6^_0x195922)),_0x335f5c[_0x52c214([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2af330=>{let _0x586d00=0x0;_0x2893f2[_0x52c214([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c214([0x6f,0x6e])](_0x52c214([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20f74a,_0x22fbac)=>{_0x22fbac[0x0][_0x52c214([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x586d00++,_0x586d00==(0x535f89d2^_0x195922)&&(_0x2af330(),_0x20f74a[_0x52c214([0x6f,0x66,0x66])]());});}))];return window[_0x52c214([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52c214([0x72,0x61,0x63,0x65])](_0xf4762)[_0x52c214([0x74,0x68,0x65,0x6e])](()=>_0x58fe10);}async function _0xe9321(){await _0x335f5c,_0x2893f2[_0x52c214([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c214([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49b211,_0x2893f2[_0x52c214([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c214([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49b211,_0x2893f2[_0x52c214([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52c214([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17163e(_0x3cc20c){const _0x39ea33=_0x218bc4();_0x2893f2[_0x39ea33]=_0x52c214([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3cc20c,_0x3cc20c!=_0x52c214([0x56,0x61,0x6c,0x69,0x64])&&_0xe9321();}function _0x218bc4(){const _0xd628c1=window[_0x52c214([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52c214([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52c214([0x6e,0x6f,0x77])]())[_0x52c214([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52c214([0x2e]),'');let _0xf20f6c=_0x52c214([0x68]);for(let _0x3c9394=0x0;_0x3c9394<_0xd628c1[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c9394+=0x2){let _0x24468c=window[_0x52c214([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd628c1[_0x52c214([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c9394,_0x3c9394+0x2));_0x24468c>=_0x35117c[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24468c-=_0x35117c[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf20f6c+=_0x35117c[_0x24468c];}return _0xf20f6c;}function _0x3634cf(){const _0x2df24d=_0x75923e[_0x52c214([0x73,0x70,0x6c,0x69,0x74])](_0x52c214([0x2e]));if(0x3!=_0x2df24d[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x307143(_0x2df24d[0x1]);function _0x307143(_0x34f3e1){const _0xd342b2=_0x265025(_0x34f3e1);return _0xd342b2&&_0xf47440()?_0xd342b2:null;function _0xf47440(){const _0xbc6a92=_0xd342b2[_0x52c214([0x6a,0x74,0x69])],_0xafc524=window[_0x52c214([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbc6a92[_0x52c214([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbc6a92[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5157cc={..._0xd342b2,[_0x52c214([0x6a,0x74,0x69])]:_0xbc6a92[_0x52c214([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xbc6a92[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5157cc[_0x52c214([0x76,0x63])],_0x4ff008(_0x5157cc)==_0xafc524;}}}async function _0x46bdca(){let _0x4a2374=!0x0;try{const _0x164765=_0x75923e[_0x52c214([0x73,0x70,0x6c,0x69,0x74])](_0x52c214([0x2e])),[_0x45ff8e,_0x66d5a8,_0x14d018]=_0x164765;return _0x3d8246(_0x45ff8e),await _0x318b04(_0x45ff8e,_0x66d5a8,_0x14d018),_0x4a2374;}catch{return!0x1;}function _0x3d8246(_0x58b209){const _0x1cdcd9=_0x265025(_0x58b209);_0x1cdcd9&&_0x1cdcd9[_0x52c214([0x61,0x6c,0x67])]==_0x52c214([0x45,0x53,0x32,0x35,0x36])||(_0x4a2374=!0x1);}async function _0x318b04(_0x4a0927,_0x3fdedf,_0x50ed48){const _0x3b8d62=window[_0x52c214([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52c214([0x66,0x72,0x6f,0x6d])](_0x34a758(_0x50ed48),_0x12f520=>_0x12f520[_0x52c214([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16baed=new window[(_0x52c214([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52c214([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a0927+_0x52c214([0x2e])+_0x3fdedf),_0x574b6f=window[_0x52c214([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52c214([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x574b6f)return;const _0x30b415=await _0x574b6f[_0x52c214([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52c214([0x6a,0x77,0x6b]),_0x115967,{[_0x52c214([0x6e,0x61,0x6d,0x65])]:_0x52c214([0x45,0x43,0x44,0x53,0x41]),[_0x52c214([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52c214([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52c214([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x574b6f[_0x52c214([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52c214([0x6e,0x61,0x6d,0x65])]:_0x52c214([0x45,0x43,0x44,0x53,0x41]),[_0x52c214([0x68,0x61,0x73,0x68])]:{[_0x52c214([0x6e,0x61,0x6d,0x65])]:_0x52c214([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30b415,_0x3b8d62,_0x16baed)||(_0x4a2374=!0x1);}}function _0x265025(_0x10c797){return _0x10c797[_0x52c214([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52c214([0x65,0x79]))?JSON[_0x52c214([0x70,0x61,0x72,0x73,0x65])](_0x34a758(_0x10c797)):null;}function _0x34a758(_0x3c110c){return window[_0x52c214([0x61,0x74,0x6f,0x62])](_0x3c110c[_0x52c214([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52c214([0x2b]))[_0x52c214([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52c214([0x2f])));}function _0x4ff008(_0x119a60){let _0x43d253=0x1505;function _0x50e2ac(_0x4b59a9){for(let _0x46ac3f=0x0;_0x46ac3f<_0x4b59a9[_0x52c214([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46ac3f++){const _0x2d2e6b=_0x4b59a9[_0x52c214([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46ac3f);_0x43d253=(_0x43d253<<0x5)+_0x43d253+_0x2d2e6b,_0x43d253&=_0x43d253;}}function _0x36fc8f(_0x1e9f47){Array[_0x52c214([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e9f47)?_0x1e9f47[_0x52c214([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36fc8f):_0x1e9f47&&typeof _0x1e9f47==_0x52c214([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52c214([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e9f47)[_0x52c214([0x73,0x6f,0x72,0x74])]()[_0x52c214([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ee191,_0x4411c6])=>{_0x50e2ac(_0x1ee191),_0x36fc8f(_0x4411c6);}):_0x50e2ac(window[_0x52c214([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e9f47));}return _0x36fc8f(_0x119a60),_0x43d253>>>0x0;}function _0x370eaf(_0x5971e8){return _0x5971e8[_0x52c214([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52c214([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52c214([0x30]));}function _0x185ecf(_0x4e0500){return _0x4e0500[_0x52c214([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52c214([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52c214([0x6a,0x6f,0x69,0x6e])]('');}function _0x49b211(){}function _0x52c214(_0x4b04f8){return _0x4b04f8['map'](_0x511262=>String['fromCharCode'](_0x511262))['join']('');}_0x17163e(await _0x5eb471());}(this);}['_initSchema'](){const _0xdb03d=this['editor']['model']['schema'];_0xdb03d['isRegistered']('imageBlock')&&_0xdb03d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xdb03d['isRegistered']('imageInline')&&_0xdb03d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5b2cb3=this['editor'];_0x5b2cb3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5b2cb3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x9ebfac=>_0x9ebfac['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3b7bf7=_0x5b2cb3['commands']['get']('replaceImageSource');_0x3b7bf7&&this['listenTo'](_0x3b7bf7,'cleanupImage',(_0x43c37c,[_0x39f09d,_0x2d4ffd])=>{_0x39f09d['removeAttribute']('uploadcareImageId',_0x2d4ffd);});}['_initConfig'](){const _0x18e4f7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x23ca11=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x171505(_0x4bd362['document'],'uc-config',{..._0x18e4f7,'pubkey':_0x23ca11,'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']=_0x4e8e0e=>{if('closeMax'==_0x4e8e0e)return'#uc-icon-arrow-down';},_0x4bd362['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x171505(_0x4bd362['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4bd362['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4a5b0f=this['editor']['commands']['get']('insertImage');_0x4a5b0f&&this['listenTo'](_0x4a5b0f,'execute',()=>{const _0x297c9a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x297c9a&&_0x297c9a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x297c9a);});});const _0x569d07=this['editor']['commands']['get']('uploadcareImageReplace');_0x569d07&&this['listenTo'](_0x569d07,'execute',()=>{const _0x5e750e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5e750e&&_0x5e750e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5e750e);});});}}class tt extends _0x290a13{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53bd72){super(_0x53bd72),_0x53bd72['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5b5b58['defineComponents'](_0x5b5b58),this['_defineLocale']();}['_defineLocale'](){const _0x2fdfeb=this['editor']['config']['get']('uploadcare.locale'),_0x2c88a6=this['editor']['locale']['contentLanguage'];_0x2fdfeb&&_0x5b5b58['defineLocale'](_0x2c88a6,_0x2fdfeb);}}class ii extends _0x2d9fc0{constructor(_0x51cc2a){super(_0x51cc2a);const t=_0x51cc2a['t'],_0x4e9dab=this['bindTemplate'],_0x239d5a=new _0x1f177b();_0x239d5a['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':[_0x239d5a,{'text':_0x4e9dab['to']('imageUploadProgress',_0x1ed658=>t('Loading\x20image...')+'\x20('+(_0x1ed658||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 ti extends _0x2d9fc0{constructor(_0x107485){super(_0x107485);const t=_0x107485['t'];this['set']('errorType',null);const _0x1c59a0=new _0x32a0e5(_0x107485);_0x1c59a0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1c59a0['withText']=!0x0,_0x1c59a0['class']='ck-button-action',_0x1c59a0['on']('execute',()=>{this['fire']('retry');}),_0x1c59a0['bind']('isVisible')['to'](this,'errorType',_0x360c64=>'NotFound'!==_0x360c64);const _0x5434b7=new _0x25c422();_0x5434b7['content']=_0x282d90,_0x5434b7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1649a0=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':[_0x5434b7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1649a0['to']('errorType',_0x5cb024=>t('NotFound'!==_0x5cb024?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1c59a0]},{'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 ei extends _0x2d9fc0{constructor(_0x41811b,_0x1eda13){super(_0x41811b);const _0x4f1f93=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1eda13,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4f1f93['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x494c2f,_0x1352aa,_0xbcddb3){super(_0x494c2f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x494c2f),this['_errorView']=new ti(_0x494c2f),this['_editingView']=new ei(_0x494c2f,_0xbcddb3),this['_focusableView']=new _0x2d9fc0(_0x494c2f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1352aa),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'],_0x55837e=>{this['_addUploadcareImageEditorListeners'](_0x55837e);});}),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'](_0x43e6e6,_0x36efd0){const _0x2f59ce='uc-cloud-image-editor',_0x5eee66=_0x43e6e6['querySelector'](_0x2f59ce);if(_0x5eee66)return _0x36efd0(_0x5eee66);const _0x167766=new MutationObserver(_0x1bf087=>{const _0x1d70a2=_0x1bf087['filter'](_0x7616dc=>_0x7616dc['target']===_0x43e6e6&&_0x7616dc['addedNodes']['length']>0x0&&_0x7616dc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2f59ce);_0x1d70a2['length']&&(_0x167766['disconnect'](),_0x36efd0(_0x1d70a2[0x0]['addedNodes'][0x0]));});_0x167766['observe'](_0x43e6e6,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4cd592){_0x4cd592['addEventListener']('apply',_0x2cd298=>{this['fire']('apply',{'imageSrc':_0x2cd298['detail']['cdnUrl']});}),_0x4cd592['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3dae52(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4bb00d,_0x4e74d6,_0xae9ec5){super(),this['_editor']=_0x4bb00d,this['_dialog']=_0x4e74d6,this['_imageElement']=_0xae9ec5,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 _0x4ac157=this['_imageElement'],_0x36a203=_0x4ac157['getAttribute']('uploadcareImageId'),_0x2f03d6=_0x4ac157['getAttribute']('src');if(_0x36a203)await this['_loadImageInfo'](_0x36a203,_0x2f03d6);else{if(this['_imageCache']['has'](_0x2f03d6)){const _0x5dcf2d=this['_imageCache']['get'](_0x2f03d6);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5dcf2d['url'],this['imageDimension']=_0x5dcf2d['dimension'],this['imageId']=_0x5dcf2d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29546}=this['_editor'],t=_0x29546['t'],_0x5454e5=new X(_0x29546,this['imageStatus'],this['_attributes']);_0x5454e5['bind']('status')['to'](this,'imageStatus'),_0x5454e5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5454e5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5454e5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5454e5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4734ee,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5454e5,'position':_0x170076['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5454e5['focus']();},'onHide':()=>{_0x5454e5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4cedfc=>!M(_0x4cedfc,_0x5454e5['element'])}});}['_loadImageInfo'](_0x47975e,_0x245cc3){return j['getInfo'](_0x47975e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x512f38=>{const {width:_0x44870a,height:_0x54855d}=_0x512f38['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x245cc3,this['imageDimension']={'width':_0x44870a,'height':_0x54855d},this['imageId']=_0x47975e;})['catch'](_0x1e4a02=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e4a02['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x42652a,_0x301b5e){return this['_getImageAsFile'](_0x42652a)['then'](_0x4b3339=>j['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':_0x301b5e['signal'],'file':_0x4b3339,'onProgress':_0x159b20=>{_0x159b20&&_0x159b20['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x159b20['value']));}}))['then'](_0xbfdb50=>{const {width:_0x155e7a,height:_0x50b7f7}=_0xbfdb50['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbfdb50['cdnUrl'],this['imageDimension']={'width':_0x155e7a,'height':_0x50b7f7},this['imageId']=_0xbfdb50['uuid'],this['imageUploadProgress']=null;const _0x2b26f9=_0x42652a['getAttribute']('src');this['_imageCache']['set'](_0x2b26f9,{'id':_0xbfdb50['uuid'],'url':_0xbfdb50['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x6118b1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x6118b1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x14d71f,_0x55e5a4){_0x14d71f['on']('apply',(_0x41f0b1,_0xf4916e)=>{this['_replaceImage'](_0x55e5a4,_0xf4916e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x14d71f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x14d71f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5e93a7,_0x41983e,_0x2e9ea1){const _0x340f92=this['_editor'],{width:_0x24e656,height:_0x4df284}=F(_0x41983e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5296ec,imageSources:_0x3de05a}=C(_0x41983e,_0x24e656);_0x340f92['model']['change'](_0x32503d=>{if('$graveyard'===_0x5e93a7['root']['rootName']){_0x340f92['execute']('insertImage',{'imageType':_0x5e93a7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5e93a7['getAttributes']()),'uploadcareImageId':_0x2e9ea1,'src':_0x5296ec,'sources':_0x3de05a,'width':_0x24e656,'height':_0x4df284}});const _0x2e799e=_0x5e93a7['getChildren']();_0x5e93a7=_0x340f92['model']['document']['selection']['getSelectedElement']();for(const _0x2a6383 of _0x2e799e)_0x32503d['append'](_0x32503d['cloneElement'](_0x2a6383),_0x5e93a7);}else _0x32503d['setSelection'](_0x5e93a7,'on'),_0x340f92['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5e93a7['getAttributes']()),'uploadcareImageId':_0x2e9ea1,'src':_0x5296ec,'sources':_0x3de05a,'width':_0x24e656,'height':_0x4df284},_0x5e93a7);_0x32503d['setSelection'](_0x5e93a7,'on');});}async['_getImageAsFile'](_0x57cc7d){const _0x4fdba6=_0x4bd362['window'],_0x4e243b=_0x4bd362['document']['location']['href'],_0x29f149=new _0x4fdba6['URL'](_0x57cc7d['getAttribute']('src'),_0x4e243b);if('data:'===_0x29f149['protocol']){const _0x416cd9=_0x29f149['href']['split'](','),_0x4162ee=_0x416cd9[0x0]['match'](/:(.*?);/)[0x1],_0x321f01=_0x4162ee['split']('/')[0x1],_0xe4a1ff=_0x4fdba6['atob'](_0x416cd9[_0x416cd9['length']-0x1]);let _0x5f17b4=_0xe4a1ff['length'];const _0x5b8dce=new _0x4fdba6['Uint8Array'](_0x5f17b4);for(;_0x5f17b4--;)_0x5b8dce[_0x5f17b4]=_0xe4a1ff['charCodeAt'](_0x5f17b4);return new _0x4fdba6['File']([_0x5b8dce],'image.'+_0x321f01,{'type':_0x4162ee});}const _0x25a162=_0x29f149['href']['split']('/'),_0x2b890e=_0x25a162[_0x25a162['length']-0x1],_0x4f7566=_0x2b890e['split']('.')[0x1];return _0x4fdba6['fetch'](_0x29f149['href'])['then'](_0xb1f164=>_0xb1f164['clone']()['blob']())['then'](_0x3ac71d=>new _0x4fdba6['File']([_0x3ac71d],_0x2b890e,{'type':'image/'+_0x4f7566}));}}class N extends _0x363393{['imageEditController'];static get['requires'](){return[_0x12553a];}['_isEditable'];constructor(_0x884d4a){super(_0x884d4a),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4bf0b1){const _0x14bb1a=R(_0x4bf0b1);return _0x4d4764=>!(!_0x4d4764||!_0x4d4764['is']('element','imageBlock')&&!_0x4d4764['is']('element','imageInline'))&&(!!_0x4d4764['hasAttribute']('uploadcareImageId')||!!_0x4d4764['hasAttribute']('src')&&_0x14bb1a(_0x4d4764['getAttribute']('src')));}(_0x884d4a['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x56f640=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x56f640);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x554b81=this['editor']['model']['document']['selection']['getSelectedElement']();_0x554b81&&(_0x554b81['is']('element','imageBlock')||_0x554b81['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x12553a),_0x554b81),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x363393{['refresh'](){const _0x20e00e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x20e00e&&(_0x20e00e['is']('element','imageBlock')||_0x20e00e['is']('element','imageInline')));}['execute'](_0x11f946){const _0x5aa670=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x56c727=>{_0x56c727['setAttributes'](_0x11f946,_0x5aa670),_0x56c727['removeAttribute']('srcset',_0x5aa670),_0x56c727['removeAttribute']('sizes',_0x5aa670);});}}class m extends _0x290a13{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x533009,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ffdcc}=this;_0x4ffdcc['commands']['add']('uploadcareImageEdit',new N(_0x4ffdcc)),_0x4ffdcc['commands']['add']('uploadcareImageReplace',new O(_0x4ffdcc));}}class g extends _0x290a13{['_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 _0x172daf=this['editor'];_0x172daf['ui']['componentFactory']['add']('uploadcareImageEdit',_0x504b78=>{const _0x56950c=_0x172daf['commands']['get']('uploadcareImageEdit'),_0x5258f4=new _0x32a0e5(_0x504b78),t=_0x504b78['t'];return _0x5258f4['set']({'icon':_0x4734ee,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5258f4['bind']('isEnabled')['to'](_0x56950c),_0x5258f4['bind']('isOn')['to'](_0x56950c,'isActive'),this['listenTo'](_0x5258f4,'execute',()=>{_0x172daf['execute']('uploadcareImageEdit'),_0x172daf['editing']['view']['focus']();}),_0x5258f4;}),this['_initConfig']();}['_initConfig'](){const _0x4409f9=_0x171505(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4409f9),this['listenTo'](this['editor'],'destroy',()=>{_0x4409f9['remove']();});}}class et extends _0x290a13{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as 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':_0x160eee=>0x1!=_0x160eee}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5a4160=>{const {af:{dictionary:_0x272706,getPluralForm:_0x224830}}={'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':_0x1c86dd=>0x1!=_0x1c86dd}};_0x5a4160['af']||={'dictionary':{},'getPluralForm':null},_0x5a4160['af']['dictionary']=Object['assign'](_0x5a4160['af']['dictionary'],_0x272706),_0x5a4160['af']['getPluralForm']=_0x224830;})(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':_0x58efe7=>0x0==_0x58efe7?0x0:0x1==_0x58efe7?0x1:0x2==_0x58efe7?0x2:_0x58efe7%0x64>=0x3&&_0x58efe7%0x64<=0xa?0x3:_0x58efe7%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2d997b=>{const {ar:{dictionary:_0x39923d,getPluralForm:_0x38575f}}={'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':_0x23ba48=>0x0==_0x23ba48?0x0:0x1==_0x23ba48?0x1:0x2==_0x23ba48?0x2:_0x23ba48%0x64>=0x3&&_0x23ba48%0x64<=0xa?0x3:_0x23ba48%0x64>=0xb?0x4:0x5}};_0x2d997b['ar']||={'dictionary':{},'getPluralForm':null},_0x2d997b['ar']['dictionary']=Object['assign'](_0x2d997b['ar']['dictionary'],_0x39923d),_0x2d997b['ar']['getPluralForm']=_0x38575f;})(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':_0x2f80a3=>0x1!=_0x2f80a3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x292e81=>{const {ast:{dictionary:_0x5e1abd,getPluralForm:_0x40d3a8}}={'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':_0x456971=>0x1!=_0x456971}};_0x292e81['ast']||={'dictionary':{},'getPluralForm':null},_0x292e81['ast']['dictionary']=Object['assign'](_0x292e81['ast']['dictionary'],_0x5e1abd),_0x292e81['ast']['getPluralForm']=_0x40d3a8;})(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':_0x4a2c0c=>0x1!=_0x4a2c0c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x23dd34=>{const {az:{dictionary:_0x1e8867,getPluralForm:_0x33f1b0}}={'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':_0x4e96dc=>0x1!=_0x4e96dc}};_0x23dd34['az']||={'dictionary':{},'getPluralForm':null},_0x23dd34['az']['dictionary']=Object['assign'](_0x23dd34['az']['dictionary'],_0x1e8867),_0x23dd34['az']['getPluralForm']=_0x33f1b0;})(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':_0x2d4f5f=>_0x2d4f5f%0xa==0x1&&_0x2d4f5f%0x64!=0xb?0x0:_0x2d4f5f%0xa>=0x2&&_0x2d4f5f%0xa<=0x4&&(_0x2d4f5f%0x64<0xa||_0x2d4f5f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x48bc8a=>{const {be:{dictionary:_0x1f8d9d,getPluralForm:_0x5edb7f}}={'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':_0x4d73dd=>_0x4d73dd%0xa==0x1&&_0x4d73dd%0x64!=0xb?0x0:_0x4d73dd%0xa>=0x2&&_0x4d73dd%0xa<=0x4&&(_0x4d73dd%0x64<0xa||_0x4d73dd%0x64>=0x14)?0x1:0x2}};_0x48bc8a['be']||={'dictionary':{},'getPluralForm':null},_0x48bc8a['be']['dictionary']=Object['assign'](_0x48bc8a['be']['dictionary'],_0x1f8d9d),_0x48bc8a['be']['getPluralForm']=_0x5edb7f;})(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':_0x48d529=>0x1!=_0x48d529}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5552f6=>{const {bg:{dictionary:_0x1bbaee,getPluralForm:_0x1a9e1a}}={'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':_0x4e27bc=>0x1!=_0x4e27bc}};_0x5552f6['bg']||={'dictionary':{},'getPluralForm':null},_0x5552f6['bg']['dictionary']=Object['assign'](_0x5552f6['bg']['dictionary'],_0x1bbaee),_0x5552f6['bg']['getPluralForm']=_0x1a9e1a;})(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':_0x5e0001=>0x1!=_0x5e0001}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x581eb3=>{const {bn:{dictionary:_0xa22750,getPluralForm:_0xd9493c}}={'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':_0x253635=>0x1!=_0x253635}};_0x581eb3['bn']||={'dictionary':{},'getPluralForm':null},_0x581eb3['bn']['dictionary']=Object['assign'](_0x581eb3['bn']['dictionary'],_0xa22750),_0x581eb3['bn']['getPluralForm']=_0xd9493c;})(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':_0x301cf4=>_0x301cf4%0xa==0x1&&_0x301cf4%0x64!=0xb?0x0:_0x301cf4%0xa>=0x2&&_0x301cf4%0xa<=0x4&&(_0x301cf4%0x64<0xa||_0x301cf4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2bfd10=>{const {bs:{dictionary:_0x26b531,getPluralForm:_0x26c4bb}}={'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':_0x168903=>_0x168903%0xa==0x1&&_0x168903%0x64!=0xb?0x0:_0x168903%0xa>=0x2&&_0x168903%0xa<=0x4&&(_0x168903%0x64<0xa||_0x168903%0x64>=0x14)?0x1:0x2}};_0x2bfd10['bs']||={'dictionary':{},'getPluralForm':null},_0x2bfd10['bs']['dictionary']=Object['assign'](_0x2bfd10['bs']['dictionary'],_0x26b531),_0x2bfd10['bs']['getPluralForm']=_0x26c4bb;})(window['CKEDITOR_TRANSLATIONS']||={});
|