@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250918.0 → 0.0.0-nightly-20250920.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 _0x546480,Command as _0x39527f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x59826a,IconGooglePhotos as _0x249491,IconGoogleDrive as _0x2ce23b,IconFacebook as _0x4843fb,IconDropbox as _0x471424,IconUploadcareLink as _0x3dc563,IconUploadcareImageUpload as _0x58f027,IconError as _0x51e03e,IconUploadcareImageEdit as _0x394ac8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1c0e1b,MenuBarMenuListItemButtonView as _0x19a956,View as _0x5cd621,FocusCycler as _0xe7479f,Dialog as _0x37baf2,DialogViewPosition as _0x85d814,SpinnerView as _0x1fbd59,IconView as _0x5c67c8,Notification as _0x191586}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1566ee,DomEmitterMixin as _0x4c4a32,global as _0x760ca7,getAncestors as _0x4c438e,ObservableMixin as _0xde5cea,uid as _0xa2da45,createElement as _0x395347}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x100121}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5005ae,info as _0x3ff01e}from'@uploadcare/upload-client';import*as _0x138fb3 from'@uploadcare/file-uploader';var i=function(_0x4e0583){return _0x4e0583['Local']='local',_0x4e0583['URL']='url',_0x4e0583['Dropbox']='dropbox',_0x4e0583['GDrive']='gdrive',_0x4e0583['Facebook']='facebook',_0x4e0583['GPhotos']='gphotos',_0x4e0583['OneDrive']='onedrive',_0x4e0583;}({});function _(_0x180d16,_0x4e8353,_0x5c09de){const t=_0x180d16['t'],_0x2956d3=_0x180d16['t'];switch(_0x4e8353){case i['Local']:return{'text':_0x2956d3('Insert'===_0x5c09de?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2956d3('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5c09de?_0x2956d3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2956d3('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5c09de?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5c09de?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5c09de?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5c09de?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5c09de?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4e8353;}}class e extends _0x546480{['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 _0x574043=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11ded8;for(const _0x6aa649 in _0x574043){const _0x559ea3=_0x6aa649,_0x1256b4=_0x574043[_0x559ea3];if('uploadcareLicenseKeyValid'==_0x1256b4||'uploadcareLicenseKeyInvalid'==_0x1256b4||'uploadcareLicenseKeyExpired'==_0x1256b4||'uploadcareLicenseKeyDomainLimit'==_0x1256b4||'uploadcareLicenseKeyNotAllowed'==_0x1256b4||'uploadcareLicenseKeyEvaluationLimit'==_0x1256b4||'uploadcareLicenseKeyTrialLimit'==_0x1256b4||'uploadcareLicenseKeyUsageLimit'==_0x1256b4){delete _0x574043[_0x559ea3],_0x11ded8=_0x1256b4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x11ded8&&_0x574043['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x11ded8&&_0x574043['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x11ded8&&_0x574043['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x11ded8&&_0x574043['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x11ded8&&_0x574043['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x11ded8&&_0x574043['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x11ded8&&_0x574043['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2f77a0}=this,_0x4f846e=_0x2f77a0['commands']['get']('uploadcare');if(!_0x4f846e)return;const _0x29fb98=this['_normalizeConfigSourceList'](_0x2f77a0['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3e8596,_0x171a39)=>{const _0x236ae8=this['_getIntegrationKey'](_0x171a39['type']);return _0x3e8596[_0x236ae8]||(_0x3e8596[_0x236ae8]=[]),_0x3e8596[_0x236ae8]['push'](_0x171a39),_0x3e8596;},{});_0x2f77a0['plugins']['has']('ImageInsertUI')&&_0x2f77a0['commands']['get']('uploadcare')&&Object['entries'](_0x29fb98)['forEach'](([_0x1f6a35,_0x107716])=>{_0x2f77a0['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1f6a35,'observable':()=>_0x4f846e,'buttonViewCreator':()=>this['_createToolbarButton'](_0x107716),'formViewCreator':()=>this['_createDropdownButtons'](_0x107716),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x107716),'override':'assetManager'!==_0x1f6a35});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x170c33){const {locale:_0xba18d6}=this['editor'];return _0x170c33['map'](_0x3cf42b=>{const _0xbdcc22=_(_0xba18d6,_0x3cf42b,'Insert');switch(_0x3cf42b){case i['Local']:return{'icon':_0x58f027,'type':i['Local'],..._0xbdcc22};case i['URL']:return{'icon':_0x3dc563,'type':i['URL'],..._0xbdcc22};case i['Dropbox']:return{'icon':_0x471424,'type':i['Dropbox'],..._0xbdcc22};case i['Facebook']:return{'icon':_0x4843fb,'type':i['Facebook'],..._0xbdcc22};case i['GDrive']:return{'icon':_0x2ce23b,'type':i['GDrive'],..._0xbdcc22};case i['GPhotos']:return{'icon':_0x249491,'type':i['GPhotos'],..._0xbdcc22};case i['OneDrive']:return{'icon':_0x59826a,'type':i['OneDrive'],..._0xbdcc22};}});}['_getIntegrationKey'](_0x5c9d90){switch(_0x5c9d90){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x52541a,_0x20ec8c){const _0x5b071e=this['editor'],_0x26a7bf=new _0x52541a(_0x5b071e['locale']),_0x1ea160=_0x5b071e['commands']['get']('uploadcare');return _0x26a7bf['bind']('isEnabled')['to'](_0x1ea160),_0x26a7bf['on']('execute',()=>{_0x1ea160['execute'](_0x20ec8c);}),_0x26a7bf;}['_createToolbarButton'](_0x2430da){const {locale:_0x299d36}=this['editor'],_0x5aaf26=this['editor']['plugins']['get']('ImageInsertUI'),_0x380809=_0x2430da[0x0],_0x518c74=this['_createButton'](_0x1c0e1b,_0x380809['type']);return _0x518c74['icon']=_0x380809['icon'],_0x518c74['bind']('label')['to'](_0x5aaf26,'isImageSelected',_0x1990e8=>_(_0x299d36,_0x380809['type'],_0x1990e8?'Replace':'Insert')['text']),_0x518c74['tooltip']=!0x0,_0x518c74;}['_createDropdownButtons'](_0x4dd995){const {locale:_0x18e23f}=this['editor'],_0x4b6efb=this['editor']['plugins']['get']('ImageInsertUI');return _0x4dd995['map'](_0xf26370=>{const _0x19597e=this['_createButton'](_0x1c0e1b,_0xf26370['type']);return _0x19597e['withText']=!0x0,_0x19597e['icon']=_0xf26370['icon'],_0x19597e['bind']('label')['to'](_0x4b6efb,'isImageSelected',_0x2cb5e4=>_(_0x18e23f,_0xf26370['type'],_0x2cb5e4?'Replace':'Insert')['text']),_0x19597e;});}['_createMenuBarButtons'](_0x24a180){return _0x24a180['map'](_0x41827d=>{const _0xdaef26=this['_createButton'](_0x19a956,_0x41827d['type']);return _0xdaef26['icon']=_0x41827d['icon'],_0xdaef26['label']=_0x41827d['shortText'],_0xdaef26;});}}class F extends _0x5cd621{['focusTracker'];['focusCycler'];constructor(_0x5f08b3){super(_0x5f08b3),this['focusTracker']=new _0x1566ee(),this['focusCycler']=new _0xe7479f({'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(_0x537807,_0x2c82a3){super(_0x537807),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-'+_0x2c82a3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3f7d0c,_0x1ea198){const _0x2543b7=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4a8ef0=>_0x4a8ef0<=_0x1ea198)['map'](_0x212d09=>_0x3f7d0c['replace'](/\/$/,'')+'/-/resize/'+_0x212d09+'x/\x20'+_0x212d09+'w');return{'imageFallbackUrl':_0x3f7d0c,'imageSources':[{'srcset':_0x2543b7['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1ea198+'px)\x20100vw,\x20'+_0x1ea198+'px','type':'image/webp'}]};}function S(_0x51b5b0,_0xeb2144,_0x372c9b){const _0x2d7e95=_0x51b5b0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2d7e95?parseInt(_0x2d7e95[0x1],0xa):_0xeb2144,'height':_0x2d7e95?parseInt(_0x2d7e95[0x2],0xa):_0x372c9b};}function p(_0x46aaec,_0x13ca75){const _0x3bd400=new(_0x4c4a32())(),_0x3785b6=_0x46aaec['plugins']['get']('ImageUtils'),_0x4c8f94=_0x46aaec['editing']['mapper']['toViewElement'](_0x13ca75),_0xef0419=_0x3785b6['findViewImgElement'](_0x4c8f94),_0x1c8757=_0x46aaec['editing']['view']['domConverter']['viewToDom'](_0xef0419),_0x4a9ce7=_0x13ca75['getAttribute']('width'),_0x3d7258=_0x13ca75['getAttribute']('height'),_0x46febc='image-processing';_0x46aaec['editing']['view']['change'](_0x21524b=>{_0x21524b['addClass'](_0x46febc,_0x4c8f94),_0x21524b['setStyle']('aspect-ratio',_0x4a9ce7+'/'+_0x3d7258,_0xef0419);}),_0x3bd400['listenTo'](_0x1c8757,'load',()=>{_0x3bd400['stopListening'](_0x1c8757,'load'),_0x46aaec['editing']['view']['change'](_0xec3e61=>{_0xec3e61['removeClass'](_0x46febc,_0x4c8f94),_0xec3e61['removeStyle']('aspect-ratio',_0xef0419);});});}function G(_0x1c166b){if(Array['isArray'](_0x1c166b)){const _0x5a34c2=_0x1c166b['map'](G);return _0x3a10ee=>_0x5a34c2['some'](_0x2dcd05=>_0x2dcd05(_0x3a10ee));}if('origin'==_0x1c166b){const _0x437817=_0x760ca7['window']['location']['origin'];return _0x5e4290=>new URL(_0x5e4290,_0x760ca7['document']['baseURI'])['origin']==_0x437817;}return'function'==typeof _0x1c166b?_0x1c166b:_0x1c166b instanceof RegExp?_0x5002b5=>!(!_0x5002b5['match'](_0x1c166b)&&!_0x5002b5['replace'](/^https?:\/\//,'')['match'](_0x1c166b)):()=>!0x1;}function A(_0x3ac3a3,_0x357cdc){return _0x4c438e(_0x3ac3a3['target'])['includes'](_0x357cdc);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xde5cea(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4a765c,_0x244d54,_0x59d5f0){super(),this['_editor']=_0x4a765c,this['_editing']=_0x244d54,this['_dialog']=_0x4a765c['plugins']['get'](_0x37baf2),this['_api']=_0x244d54['ctxElement']['getAPI'](),this['_type']=_0x59d5f0,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:_0x50728e,model:_0x3d69d9}=this['_editor'],_0x1368f1=_0x3d69d9['document']['selection']['getSelectedElement'](),_0x760ccc=_0x1368f1&&(_0x1368f1['is']('element','imageBlock')||_0x1368f1['is']('element','imageInline'));this['_formView']=new x(_0x50728e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x58f027,'title':_(_0x50728e,this['_type'],_0x760ccc?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x85d814['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x106f77=>!A(_0x106f77,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x374062}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xdfc039=>{const _0x17b241=_0x374062['length'];for(const _0x1f1390 of _0x374062){const _0x2dc44f=_0x1f1390===_0x374062[_0x17b241-0x1],{cdnUrl:_0x421f6a,fileInfo:_0x5ee194}=_0x1f1390;if(!_0x421f6a||!_0x5ee194)continue;const {width:_0x537877,height:_0x25c121}=_0x5ee194['imageInfo'],_0x5979b7=S(_0x421f6a,_0x537877,_0x25c121),_0x504239=C(_0x421f6a,_0x5979b7['width']),_0x49e8b7={'id':_0x5ee194['uuid'],'type':'image','attributes':{'imageDimension':_0x5979b7,..._0x504239}};this['_insertAsset'](_0x49e8b7,_0x2dc44f,_0xdfc039);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x202770=>{'idle'===_0x202770['detail']['status']&&!_0x202770['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x87d4c0,_0x2d963c,_0x1c6cba){const _0x306cf4=this['_editor']['model']['document']['selection'],_0x2d5b56=_0x306cf4['getSelectedElement'](),_0x186d2f=!(!_0x2d5b56||!_0x2d5b56['is']('element','imageInline'));_0x1c6cba['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x87d4c0,_0x186d2f),_0x2d963c||_0x1c6cba['setSelection'](_0x306cf4['getLastPosition']());}['_insertImage'](_0x3c7e73,_0x2ec2e4){const _0x14f39e=this['_editor'],{imageDimension:_0x3411b1,imageFallbackUrl:_0x4a12b0,imageSources:_0x4479d1}=_0x3c7e73['attributes'];_0x14f39e['execute']('insertImage',{'imageType':_0x2ec2e4?'imageInline':null,'source':{'uploadcareImageId':_0x3c7e73['id'],'src':_0x4a12b0,'sources':_0x4479d1,..._0x3411b1}});}}class w extends _0x39527f{['_editing'];['_controller']=null;static get['requires'](){return[_0x37baf2,o];}constructor(_0x40a928){super(_0x40a928),this['_editing']=_0x40a928['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x33cd61){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x33cd61);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4251ae,..._0x1209db}){return _0x5005ae(_0x4251ae,_0x1209db);}static['getInfo'](_0x413a17,_0x1c2c35){return _0x3ff01e(_0x413a17,_0x1c2c35);}}class f extends _0x546480{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x100121,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5af18a=this['editor'];if(!!!_0x5af18a['config']['get']('uploadcare'))return;_0x5af18a['plugins']['get'](_0x100121)['createUploadAdapter']=_0x978be9=>new k(_0x978be9,_0x5af18a),_0x5af18a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3f5ead,{imageElement:_0x1838ae,data:_0x1ae663})=>{_0x5af18a['model']['change'](_0x3a7356=>{_0x3a7356['setAttribute']('uploadcareImageId',_0x1ae663['uploadcareImageId'],_0x1838ae);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4a880e,_0x49b3d1){this['loader']=_0x4a880e,this['editor']=_0x49b3d1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x23ec12=await this['loader']['file'];return j['upload']({'file':_0x23ec12,'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':_0x1a8128=>{_0x1a8128&&_0x1a8128['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1a8128['value']);}})['then'](async _0x25ea42=>{const {imageFallbackUrl:_0x212483,imageSources:_0x37ff65}=C(_0x25ea42['cdnUrl'],_0x25ea42['imageInfo']['width']);return{'uploadcareImageId':_0x25ea42['uuid'],'default':_0x212483,'sources':_0x37ff65};})['catch'](()=>{const _0x285eee=t('Cannot\x20upload\x20file:')+('\x20'+_0x23ec12['name']+'.');return Promise['reject'](_0x285eee);});}['abort'](){this['controller']['abort']();}}class o extends _0x546480{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x37baf2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3bb220){super(_0x3bb220),this['ucContextId']=_0xa2da45();}['init'](){const _0x5e76e4=this['editor'];_0x5e76e4['commands']['add']('uploadcare',new w(_0x5e76e4));}['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 _0x543809=_0x760ca7['document']['querySelector']('input[uploadcare-file-input]');_0x543809&&_0x543809['remove']();}),async function(_0x5e8a6f){const _0x41d25f=_0x5d3fe7([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x477f04=0x3d8d0df,_0x593adb=0x3dfa367^_0x477f04,_0x579f17=window[_0x5d3fe7([0x44,0x61,0x74,0x65])][_0x5d3fe7([0x6e,0x6f,0x77])](),_0x3d2e31=_0x5e8a6f[_0x5d3fe7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1656d4=new window[(_0x5d3fe7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d0fba=>{_0x3d2e31[_0x5d3fe7([0x6f,0x6e,0x63,0x65])](_0x5d3fe7([0x72,0x65,0x61,0x64,0x79]),_0x3d0fba);}),_0x5be512={[_0x5d3fe7([0x6b,0x74,0x79])]:_0x5d3fe7([0x45,0x43]),[_0x5d3fe7([0x75,0x73,0x65])]:_0x5d3fe7([0x73,0x69,0x67]),[_0x5d3fe7([0x63,0x72,0x76])]:_0x5d3fe7([0x50,0x2d,0x32,0x35,0x36]),[_0x5d3fe7([0x78])]:_0x5d3fe7([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]),[_0x5d3fe7([0x79])]:_0x5d3fe7([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]),[_0x5d3fe7([0x61,0x6c,0x67])]:_0x5d3fe7([0x45,0x53,0x32,0x35,0x36])},_0xdfeb6a=_0x3d2e31[_0x5d3fe7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d3fe7([0x67,0x65,0x74])](_0x5d3fe7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x740adc(){let _0x4803ae,_0x3ae335=null,_0x23d8a4=null;try{if(_0xdfeb6a==_0x5d3fe7([0x47,0x50,0x4c]))return _0x5d3fe7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4803ae=_0x372f60(),!_0x4803ae)return _0x5d3fe7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4803ae[_0x5d3fe7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23d8a4=_0xa096fc(_0x4803ae[_0x5d3fe7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4803ae[_0x5d3fe7([0x6a,0x74,0x69])])),await _0x3fcdcc()?_0x48f3ae()?_0x543fb0()?_0x5d3fe7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55a07c()?(_0x4803ae[_0x5d3fe7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d3fe7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ae335=_0x269a96(_0x5d3fe7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4803ae[_0x5d3fe7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d3fe7([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ae335=_0x269a96(_0x5d3fe7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e08ea()):_0x5d3fe7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d3fe7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d3fe7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d3fe7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x543fb0(){const _0xc2454d=[_0x5d3fe7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d3fe7([0x74,0x72,0x69,0x61,0x6c])][_0x5d3fe7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4803ae[_0x5d3fe7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x579f17/0x3e8:0xe10*_0x593adb;return _0x4803ae[_0x5d3fe7([0x65,0x78,0x70])]<_0xc2454d;}function _0x48f3ae(){const _0x12259d=_0x4803ae[_0x5d3fe7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x12259d&&(!!_0x12259d[_0x5d3fe7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d3fe7([0x2a]))||!!_0x12259d[_0x5d3fe7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d3fe7([0x55,0x50,0x4c,0x43])));}function _0x55a07c(){const _0x28e64a=_0x4803ae[_0x5d3fe7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28e64a||0x0==_0x28e64a[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1611cd}=new URL(window[_0x5d3fe7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x28e64a[_0x5d3fe7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1611cd))return!0x0;const _0x467071=_0x1611cd[_0x5d3fe7([0x73,0x70,0x6c,0x69,0x74])](_0x5d3fe7([0x2e]));return _0x28e64a[_0x5d3fe7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b40a1=>_0x2b40a1[_0x5d3fe7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d3fe7([0x2a])))[_0x5d3fe7([0x6d,0x61,0x70])](_0x8a135f=>_0x8a135f[_0x5d3fe7([0x73,0x70,0x6c,0x69,0x74])](_0x5d3fe7([0x2e])))[_0x5d3fe7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x449f18=>_0x449f18[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x467071[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d3fe7([0x6d,0x61,0x70])](_0xee0bc8=>Array(_0x467071[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xee0bc8[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d3fe7([0x66,0x69,0x6c,0x6c])](_0xee0bc8[0x0]===_0x5d3fe7([0x2a])?_0x5d3fe7([0x2a]):'')[_0x5d3fe7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xee0bc8))[_0x5d3fe7([0x73,0x6f,0x6d,0x65])](_0x451265=>_0x467071[_0x5d3fe7([0x65,0x76,0x65,0x72,0x79])]((_0x742d5b,_0x18fb5d)=>_0x451265[_0x18fb5d]===_0x742d5b||_0x451265[_0x18fb5d]===_0x5d3fe7([0x2a])));}function _0x1e08ea(){return _0x3ae335&&_0x23d8a4?new window[(_0x5d3fe7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ea72e,_0x5a7b6a)=>{_0x3ae335[_0x5d3fe7([0x74,0x68,0x65,0x6e])](_0x2ea72e,_0x5a7b6a),_0x23d8a4[_0x5d3fe7([0x74,0x68,0x65,0x6e])](_0x46eb95=>{_0x46eb95!=_0x5d3fe7([0x56,0x61,0x6c,0x69,0x64])&&_0x2ea72e(_0x46eb95);},_0x5a7b6a);}):_0x3ae335||_0x23d8a4||_0x5d3fe7([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa096fc(_0x3ecccf,_0x8b6385){return new window[(_0x5d3fe7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41492c=>{if(_0xca8661())return _0x41492c(_0x5d3fe7([0x56,0x61,0x6c,0x69,0x64]));_0x4a4db2(),_0x3d2e31[_0x5d3fe7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d3fe7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3944c3=!0x1;const _0x3fd243=_0xa2da45();function _0x1416b0(_0x3501d2){return!!_0x3501d2&&(typeof _0x3501d2===_0x5d3fe7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3501d2===_0x5d3fe7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3501d2[_0x5d3fe7([0x74,0x68,0x65,0x6e])]===_0x5d3fe7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3501d2[_0x5d3fe7([0x63,0x61,0x74,0x63,0x68])]===_0x5d3fe7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x138fa5(_0x2b5a4c){_0x4cb947(_0x2b5a4c)[_0x5d3fe7([0x74,0x68,0x65,0x6e])](_0x43f362=>{if(!_0x43f362||_0x43f362[_0x5d3fe7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d3fe7([0x6f,0x6b]))return _0x5d3fe7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3b858f(_0x3c37d5(_0x3fd243+_0x8b6385))!=_0x43f362[_0x5d3fe7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d3fe7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d3fe7([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d3fe7([0x74,0x68,0x65,0x6e])](_0x42e865=>(_0xf2d1ce(),_0x42e865),()=>{const _0x393120=_0x35c314();return null==_0x393120?(_0xf2d1ce(),_0x5d3fe7([0x56,0x61,0x6c,0x69,0x64])):_0x5d3fe7(_0x579f17-_0x393120>(0x27d454df^_0x477f04)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d3fe7([0x74,0x68,0x65,0x6e])](_0x41492c)[_0x5d3fe7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41492c(_0x5d3fe7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a46a3=0x3ee3e5f^_0x477f04;function _0xf2d1ce(){const _0x19de5e=_0x5d3fe7([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b858f(_0x3c37d5(_0x3ecccf)),_0x520fbd=_0x1172ef(_0x3b858f(window[_0x5d3fe7([0x4d,0x61,0x74,0x68])][_0x5d3fe7([0x63,0x65,0x69,0x6c])](_0x579f17/_0x1a46a3)));window[_0x5d3fe7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d3fe7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19de5e,_0x520fbd);}function _0x35c314(){const _0x279d46=_0x5d3fe7([0x6c,0x6c,0x63,0x74,0x2d])+_0x3b858f(_0x3c37d5(_0x3ecccf)),_0x1dc234=window[_0x5d3fe7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d3fe7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x279d46);return _0x1dc234?window[_0x5d3fe7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1172ef(_0x1dc234),0x10)*_0x1a46a3:null;}function _0x4cb947(_0x3695f8){return new window[(_0x5d3fe7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b001f,_0x5a22c8)=>{_0x3695f8[_0x5d3fe7([0x74,0x68,0x65,0x6e])](_0x3b001f,_0x5a22c8),window[_0x5d3fe7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a22c8,0x3d9041f^_0x477f04);});}}_0x3d2e31[_0x5d3fe7([0x6f,0x6e])](_0x5d3fe7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x251c5c,_0x59d344)=>{if(_0x59d344[0x0]!=_0x3ecccf)return _0x41492c(_0x5d3fe7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x59d344[0x1]={..._0x59d344[0x1],[_0x5d3fe7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fd243};},{[_0x5d3fe7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d3fe7([0x68,0x69,0x67,0x68])}),_0x3d2e31[_0x5d3fe7([0x6f,0x6e])](_0x5d3fe7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x217e94=>{_0x1416b0(_0x217e94[_0x5d3fe7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3944c3=!0x0,_0x138fa5(_0x217e94[_0x5d3fe7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d3fe7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d3fe7([0x6c,0x6f,0x77])}),_0x1656d4[_0x5d3fe7([0x74,0x68,0x65,0x6e])](()=>{_0x3944c3||_0x41492c(_0x5d3fe7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xca8661(){return _0x3d2e31[_0x5d3fe7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d3fe7([0x76,0x69,0x65,0x77])][_0x5d3fe7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d3fe7([0x61,0x75,0x74,0x6f]);}function _0x4a4db2(){_0x3d2e31[_0x5d3fe7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d3fe7([0x76,0x69,0x65,0x77])][_0x5d3fe7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d3fe7([0x61,0x75,0x74,0x6f]);}}function _0x269a96(_0x585559){const _0x376c80=[new window[(_0x5d3fe7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x306d3f=>setTimeout(_0x306d3f,0x3d1ee13^_0x477f04)),_0x1656d4[_0x5d3fe7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d3fe7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14d623=>{let _0x138a57=0x0;_0x3d2e31[_0x5d3fe7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d3fe7([0x6f,0x6e])](_0x5d3fe7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b2189,_0x3f79d1)=>{_0x3f79d1[0x0][_0x5d3fe7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x138a57++,_0x138a57==(0x3d8d127^_0x477f04)&&(_0x14d623(),_0x2b2189[_0x5d3fe7([0x6f,0x66,0x66])]());});}))];return window[_0x5d3fe7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d3fe7([0x72,0x61,0x63,0x65])](_0x376c80)[_0x5d3fe7([0x74,0x68,0x65,0x6e])](()=>_0x585559);}async function _0x29bb74(){await _0x1656d4,_0x3d2e31[_0x5d3fe7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d3fe7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4587e9,_0x3d2e31[_0x5d3fe7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d3fe7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4587e9,_0x3d2e31[_0x5d3fe7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d3fe7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f785(_0x342ac2){const _0x291519=_0xd393f4();_0x3d2e31[_0x291519]=_0x5d3fe7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x342ac2,_0x342ac2!=_0x5d3fe7([0x56,0x61,0x6c,0x69,0x64])&&_0x29bb74();}function _0xd393f4(){const _0x2f984b=window[_0x5d3fe7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d3fe7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d3fe7([0x6e,0x6f,0x77])]())[_0x5d3fe7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d3fe7([0x2e]),'');let _0x3c9e52=_0x5d3fe7([0x52]);for(let _0x1ebed9=0x0;_0x1ebed9<_0x2f984b[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ebed9+=0x2){let _0x2d4cbf=window[_0x5d3fe7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f984b[_0x5d3fe7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ebed9,_0x1ebed9+0x2));_0x2d4cbf>=_0x41d25f[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d4cbf-=_0x41d25f[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c9e52+=_0x41d25f[_0x2d4cbf];}return _0x3c9e52;}function _0x372f60(){const _0x2e1706=_0xdfeb6a[_0x5d3fe7([0x73,0x70,0x6c,0x69,0x74])](_0x5d3fe7([0x2e]));if(0x3!=_0x2e1706[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f6e5a(_0x2e1706[0x1]);function _0x2f6e5a(_0x5a38e8){const _0x5a9d38=_0x3a5945(_0x5a38e8);return _0x5a9d38&&_0x51022e()?_0x5a9d38:null;function _0x51022e(){const _0x3c32fb=_0x5a9d38[_0x5d3fe7([0x6a,0x74,0x69])],_0x2ea0d5=window[_0x5d3fe7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c32fb[_0x5d3fe7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c32fb[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ba3ea={..._0x5a9d38,[_0x5d3fe7([0x6a,0x74,0x69])]:_0x3c32fb[_0x5d3fe7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c32fb[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ba3ea[_0x5d3fe7([0x76,0x63])],_0x3c37d5(_0x5ba3ea)==_0x2ea0d5;}}}async function _0x3fcdcc(){let _0x43e637=!0x0;try{const _0x25558b=_0xdfeb6a[_0x5d3fe7([0x73,0x70,0x6c,0x69,0x74])](_0x5d3fe7([0x2e])),[_0x455bf8,_0x3f1bc0,_0x304ed8]=_0x25558b;return _0x24e3a5(_0x455bf8),await _0x2065df(_0x455bf8,_0x3f1bc0,_0x304ed8),_0x43e637;}catch{return!0x1;}function _0x24e3a5(_0x5e3448){const _0x20ea73=_0x3a5945(_0x5e3448);_0x20ea73&&_0x20ea73[_0x5d3fe7([0x61,0x6c,0x67])]==_0x5d3fe7([0x45,0x53,0x32,0x35,0x36])||(_0x43e637=!0x1);}async function _0x2065df(_0x732f68,_0xa4e56a,_0x3948d1){const _0x2e3a1c=window[_0x5d3fe7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d3fe7([0x66,0x72,0x6f,0x6d])](_0x940855(_0x3948d1),_0x53f9c7=>_0x53f9c7[_0x5d3fe7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b3ba1=new window[(_0x5d3fe7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d3fe7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x732f68+_0x5d3fe7([0x2e])+_0xa4e56a),_0x6144e2=window[_0x5d3fe7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d3fe7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6144e2)return;const _0x406624=await _0x6144e2[_0x5d3fe7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d3fe7([0x6a,0x77,0x6b]),_0x5be512,{[_0x5d3fe7([0x6e,0x61,0x6d,0x65])]:_0x5d3fe7([0x45,0x43,0x44,0x53,0x41]),[_0x5d3fe7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d3fe7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d3fe7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6144e2[_0x5d3fe7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d3fe7([0x6e,0x61,0x6d,0x65])]:_0x5d3fe7([0x45,0x43,0x44,0x53,0x41]),[_0x5d3fe7([0x68,0x61,0x73,0x68])]:{[_0x5d3fe7([0x6e,0x61,0x6d,0x65])]:_0x5d3fe7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x406624,_0x2e3a1c,_0x5b3ba1)||(_0x43e637=!0x1);}}function _0x3a5945(_0x48e1bb){return _0x48e1bb[_0x5d3fe7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d3fe7([0x65,0x79]))?JSON[_0x5d3fe7([0x70,0x61,0x72,0x73,0x65])](_0x940855(_0x48e1bb)):null;}function _0x940855(_0x1eb327){return window[_0x5d3fe7([0x61,0x74,0x6f,0x62])](_0x1eb327[_0x5d3fe7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d3fe7([0x2b]))[_0x5d3fe7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d3fe7([0x2f])));}function _0x3c37d5(_0x1830f0){let _0x20ff61=0x1505;function _0x48c885(_0x70aee4){for(let _0x5979fb=0x0;_0x5979fb<_0x70aee4[_0x5d3fe7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5979fb++){const _0x73e856=_0x70aee4[_0x5d3fe7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5979fb);_0x20ff61=(_0x20ff61<<0x5)+_0x20ff61+_0x73e856,_0x20ff61&=_0x20ff61;}}function _0x22a666(_0x273a60){Array[_0x5d3fe7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x273a60)?_0x273a60[_0x5d3fe7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x22a666):_0x273a60&&typeof _0x273a60==_0x5d3fe7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d3fe7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x273a60)[_0x5d3fe7([0x73,0x6f,0x72,0x74])]()[_0x5d3fe7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d5e8e,_0x5e6bc5])=>{_0x48c885(_0x2d5e8e),_0x22a666(_0x5e6bc5);}):_0x48c885(window[_0x5d3fe7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x273a60));}return _0x22a666(_0x1830f0),_0x20ff61>>>0x0;}function _0x3b858f(_0x323c95){return _0x323c95[_0x5d3fe7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d3fe7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d3fe7([0x30]));}function _0x1172ef(_0x1628f5){return _0x1628f5[_0x5d3fe7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d3fe7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d3fe7([0x6a,0x6f,0x69,0x6e])]('');}function _0x4587e9(){}function _0x5d3fe7(_0xb2d073){return _0xb2d073['map'](_0x5ba0af=>String['fromCharCode'](_0x5ba0af))['join']('');}_0x5f785(await _0x740adc());}(this);}['_initSchema'](){const _0x4dd48c=this['editor']['model']['schema'];_0x4dd48c['isRegistered']('imageBlock')&&_0x4dd48c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4dd48c['isRegistered']('imageInline')&&_0x4dd48c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3ae386=this['editor'];_0x3ae386['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3ae386['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x37b9d6=>_0x37b9d6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x373954=_0x3ae386['commands']['get']('replaceImageSource');_0x373954&&this['listenTo'](_0x373954,'cleanupImage',(_0x39874f,[_0x49130d,_0x2ce871])=>{_0x49130d['removeAttribute']('uploadcareImageId',_0x2ce871);});}['_initConfig'](){const _0x23ccc5=this['editor']['config']['get']('uploadcare.uploader')||{},_0x523b52=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x395347(_0x760ca7['document'],'uc-config',{..._0x23ccc5,'pubkey':_0x523b52,'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']=_0x179f1b=>{if('closeMax'==_0x179f1b)return'#uc-icon-arrow-down';},_0x760ca7['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x395347(_0x760ca7['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x760ca7['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4de817=this['editor']['commands']['get']('insertImage');_0x4de817&&this['listenTo'](_0x4de817,'execute',()=>{const _0x335842=this['editor']['model']['document']['selection']['getSelectedElement']();_0x335842&&_0x335842['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x335842);});});const _0x4624af=this['editor']['commands']['get']('uploadcareImageReplace');_0x4624af&&this['listenTo'](_0x4624af,'execute',()=>{const _0x3f8648=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f8648&&_0x3f8648['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3f8648);});});}}class tt extends _0x546480{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ea3ef){super(_0x2ea3ef),_0x2ea3ef['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x138fb3['defineComponents'](_0x138fb3);}}class ii extends _0x5cd621{constructor(_0xa59cd8){super(_0xa59cd8);const t=_0xa59cd8['t'],_0x5609c3=this['bindTemplate'],_0x5ea975=new _0x1fbd59();_0x5ea975['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':[_0x5ea975,{'text':_0x5609c3['to']('imageUploadProgress',_0x43f89e=>t('Loading\x20image...')+'\x20('+(_0x43f89e||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 _0x5cd621{constructor(_0x3c6296){super(_0x3c6296);const t=_0x3c6296['t'];this['set']('errorType',null);const _0x30508e=new _0x1c0e1b(_0x3c6296);_0x30508e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x30508e['withText']=!0x0,_0x30508e['class']='ck-button-action',_0x30508e['on']('execute',()=>{this['fire']('retry');}),_0x30508e['bind']('isVisible')['to'](this,'errorType',_0x3fdfa1=>'NotFound'!==_0x3fdfa1);const _0x26ad0d=new _0x5c67c8();_0x26ad0d['content']=_0x51e03e,_0x26ad0d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5e5126=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':[_0x26ad0d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5e5126['to']('errorType',_0x38e567=>t('NotFound'!==_0x38e567?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x30508e]},{'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 _0x5cd621{constructor(_0x52c556,_0x308325){super(_0x52c556);const _0x1e6c38=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x308325,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1e6c38['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x225c08,_0x342aa3,_0x5a6eb6){super(_0x225c08),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x225c08),this['_errorView']=new ti(_0x225c08),this['_editingView']=new ei(_0x225c08,_0x5a6eb6),this['_focusableView']=new _0x5cd621(_0x225c08),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x342aa3),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'],_0x4f9ce3=>{this['_addUploadcareImageEditorListeners'](_0x4f9ce3);});}),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'](_0xab92ed,_0x13abe8){const _0x2f09dd='uc-cloud-image-editor',_0x3063a6=_0xab92ed['querySelector'](_0x2f09dd);if(_0x3063a6)return _0x13abe8(_0x3063a6);const _0x18017a=new MutationObserver(_0xc9a0a4=>{const _0x16d39a=_0xc9a0a4['filter'](_0x21cac1=>_0x21cac1['target']===_0xab92ed&&_0x21cac1['addedNodes']['length']>0x0&&_0x21cac1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2f09dd);_0x16d39a['length']&&(_0x18017a['disconnect'](),_0x13abe8(_0x16d39a[0x0]['addedNodes'][0x0]));});_0x18017a['observe'](_0xab92ed,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x57b233){_0x57b233['addEventListener']('apply',_0x5af9bb=>{this['fire']('apply',{'imageSrc':_0x5af9bb['detail']['cdnUrl']});}),_0x57b233['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xde5cea(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5cd5d2,_0x46c3b2,_0x45bfa3){super(),this['_editor']=_0x5cd5d2,this['_dialog']=_0x46c3b2,this['_imageElement']=_0x45bfa3,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 _0x2b148e=this['_imageElement'],_0x4b1625=_0x2b148e['getAttribute']('uploadcareImageId'),_0x58980d=_0x2b148e['getAttribute']('src');if(_0x4b1625)await this['_loadImageInfo'](_0x4b1625,_0x58980d);else{if(this['_imageCache']['has'](_0x58980d)){const _0x4e0b1a=this['_imageCache']['get'](_0x58980d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e0b1a['url'],this['imageDimension']=_0x4e0b1a['dimension'],this['imageId']=_0x4e0b1a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4b6ee4}=this['_editor'],t=_0x4b6ee4['t'],_0x33cb47=new X(_0x4b6ee4,this['imageStatus'],this['_attributes']);_0x33cb47['bind']('status')['to'](this,'imageStatus'),_0x33cb47['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x33cb47['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x33cb47['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x33cb47,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x394ac8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x33cb47,'position':_0x85d814['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x33cb47['focus']();},'onHide':()=>{_0x33cb47['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e2c7d=>!A(_0x1e2c7d,_0x33cb47['element'])}});}['_loadImageInfo'](_0x3a224f,_0x37c900){return j['getInfo'](_0x3a224f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x13d4d6=>{const {width:_0x483624,height:_0x236d03}=_0x13d4d6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37c900,this['imageDimension']={'width':_0x483624,'height':_0x236d03},this['imageId']=_0x3a224f;})['catch'](_0x185a14=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x185a14['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x448c22,_0x26a6ef){return this['_getImageAsFile'](_0x448c22)['then'](_0x566224=>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':_0x26a6ef['signal'],'file':_0x566224,'onProgress':_0x2d6c1c=>{_0x2d6c1c&&_0x2d6c1c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2d6c1c['value']));}}))['then'](_0x186e00=>{const {width:_0x157b85,height:_0x20ce9f}=_0x186e00['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x186e00['cdnUrl'],this['imageDimension']={'width':_0x157b85,'height':_0x20ce9f},this['imageId']=_0x186e00['uuid'],this['imageUploadProgress']=null;const _0x5af012=_0x448c22['getAttribute']('src');this['_imageCache']['set'](_0x5af012,{'id':_0x186e00['uuid'],'url':_0x186e00['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1feb44=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1feb44['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5c9445,_0x4e5b8e){_0x5c9445['on']('apply',(_0x4b2085,_0x4a145a)=>{this['_replaceImage'](_0x4e5b8e,_0x4a145a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5c9445['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5c9445['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x14651e,_0x4afcef,_0x2eeaaa){const _0x41fcfc=this['_editor'],{width:_0x520935,height:_0x394371}=S(_0x4afcef,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x450183,imageSources:_0x41a928}=C(_0x4afcef,_0x520935);_0x41fcfc['model']['change'](_0x1ed20a=>{if('$graveyard'===_0x14651e['root']['rootName']){_0x41fcfc['execute']('insertImage',{'imageType':_0x14651e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x14651e['getAttributes']()),'uploadcareImageId':_0x2eeaaa,'src':_0x450183,'sources':_0x41a928,'width':_0x520935,'height':_0x394371}});const _0x55822f=_0x14651e['getChildren']();_0x14651e=_0x41fcfc['model']['document']['selection']['getSelectedElement']();for(const _0x389d1c of _0x55822f)_0x1ed20a['append'](_0x1ed20a['cloneElement'](_0x389d1c),_0x14651e);}else _0x1ed20a['setSelection'](_0x14651e,'on'),_0x41fcfc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x14651e['getAttributes']()),'uploadcareImageId':_0x2eeaaa,'src':_0x450183,'sources':_0x41a928,'width':_0x520935,'height':_0x394371},_0x14651e);_0x1ed20a['setSelection'](_0x14651e,'on');});}async['_getImageAsFile'](_0x2791ee){const _0x2a5684=_0x760ca7['window'],_0x42c867=_0x760ca7['document']['location']['href'],_0x596f2a=new _0x2a5684['URL'](_0x2791ee['getAttribute']('src'),_0x42c867);if('data:'===_0x596f2a['protocol']){const _0x50dded=_0x596f2a['href']['split'](','),_0x2269d4=_0x50dded[0x0]['match'](/:(.*?);/)[0x1],_0xd8106=_0x2269d4['split']('/')[0x1],_0x54313e=_0x2a5684['atob'](_0x50dded[_0x50dded['length']-0x1]);let _0x2167ac=_0x54313e['length'];const _0x207015=new _0x2a5684['Uint8Array'](_0x2167ac);for(;_0x2167ac--;)_0x207015[_0x2167ac]=_0x54313e['charCodeAt'](_0x2167ac);return new _0x2a5684['File']([_0x207015],'image.'+_0xd8106,{'type':_0x2269d4});}const _0x3ea6a1=_0x596f2a['href']['split']('/'),_0x3db0a9=_0x3ea6a1[_0x3ea6a1['length']-0x1],_0x3c7522=_0x3db0a9['split']('.')[0x1];return _0x2a5684['fetch'](_0x596f2a['href'])['then'](_0x571abe=>_0x571abe['clone']()['blob']())['then'](_0x516d03=>new _0x2a5684['File']([_0x516d03],_0x3db0a9,{'type':'image/'+_0x3c7522}));}}class O extends _0x39527f{['imageEditController'];static get['requires'](){return[_0x37baf2];}['_isEditable'];constructor(_0x1dc3ef){super(_0x1dc3ef),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3ff3d3){const _0x163a9a=G(_0x3ff3d3);return _0xa29321=>!(!_0xa29321||!_0xa29321['is']('element','imageBlock')&&!_0xa29321['is']('element','imageInline'))&&(!!_0xa29321['hasAttribute']('uploadcareImageId')||!!_0xa29321['hasAttribute']('src')&&_0x163a9a(_0xa29321['getAttribute']('src')));}(_0x1dc3ef['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4038cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4038cd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x213c2e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x213c2e&&(_0x213c2e['is']('element','imageBlock')||_0x213c2e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x37baf2),_0x213c2e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x39527f{['refresh'](){const _0x301a3e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x301a3e&&(_0x301a3e['is']('element','imageBlock')||_0x301a3e['is']('element','imageInline')));}['execute'](_0x19f72c){const _0x3c4e96=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5ce619=>{_0x5ce619['setAttributes'](_0x19f72c,_0x3c4e96),_0x5ce619['removeAttribute']('srcset',_0x3c4e96),_0x5ce619['removeAttribute']('sizes',_0x3c4e96);});}}class m extends _0x546480{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x191586,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3be65e}=this;_0x3be65e['commands']['add']('uploadcareImageEdit',new O(_0x3be65e)),_0x3be65e['commands']['add']('uploadcareImageReplace',new R(_0x3be65e));}}class g extends _0x546480{['_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 _0x225ede=this['editor'];_0x225ede['ui']['componentFactory']['add']('uploadcareImageEdit',_0x27042a=>{const _0x747ff=_0x225ede['commands']['get']('uploadcareImageEdit'),_0x2b0d6e=new _0x1c0e1b(_0x27042a),t=_0x27042a['t'];return _0x2b0d6e['set']({'icon':_0x394ac8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2b0d6e['bind']('isEnabled')['to'](_0x747ff),_0x2b0d6e['bind']('isOn')['to'](_0x747ff,'isActive'),this['listenTo'](_0x2b0d6e,'execute',()=>{_0x225ede['execute']('uploadcareImageEdit'),_0x225ede['editing']['view']['focus']();}),_0x2b0d6e;}),this['_initConfig']();}['_initConfig'](){const _0x251851=_0x395347(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x251851),this['listenTo'](this['editor'],'destroy',()=>{_0x251851['remove']();});}}class et extends _0x546480{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 _0x108b89,Command as _0x33bd10}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x8a6980,IconGooglePhotos as _0x32845b,IconGoogleDrive as _0x4cf376,IconFacebook as _0x30d35a,IconDropbox as _0x14879a,IconUploadcareLink as _0x107ab1,IconUploadcareImageUpload as _0x5299d2,IconError as _0x4da509,IconUploadcareImageEdit as _0x1e82f3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xd4b68c,MenuBarMenuListItemButtonView as _0x21602b,View as _0x2ff5d5,FocusCycler as _0x4fd6e0,Dialog as _0x11b1e1,DialogViewPosition as _0x31fe82,SpinnerView as _0x88d7a6,IconView as _0xeb9607,Notification as _0x293896}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x42b0cf,DomEmitterMixin as _0x596efd,global as _0x255c88,getAncestors as _0x53174c,ObservableMixin as _0x5d44f0,uid as _0x19b48d,createElement as _0x28a297}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x40e81f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1a72e0,info as _0x4565d4}from'@uploadcare/upload-client';import*as _0xb07fa0 from'@uploadcare/file-uploader';var i=function(_0x5d1595){return _0x5d1595['Local']='local',_0x5d1595['URL']='url',_0x5d1595['Dropbox']='dropbox',_0x5d1595['GDrive']='gdrive',_0x5d1595['Facebook']='facebook',_0x5d1595['GPhotos']='gphotos',_0x5d1595['OneDrive']='onedrive',_0x5d1595;}({});function _(_0x485eee,_0x2d0945,_0xcdeebd){const t=_0x485eee['t'],_0x5b7cff=_0x485eee['t'];switch(_0x2d0945){case i['Local']:return{'text':_0x5b7cff('Insert'===_0xcdeebd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5b7cff('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xcdeebd?_0x5b7cff('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5b7cff('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xcdeebd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2d0945;}}class e extends _0x108b89{['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 _0x232cff=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x49b099;for(const _0x3f6392 in _0x232cff){const _0x34bba2=_0x3f6392,_0xf6d923=_0x232cff[_0x34bba2];if('uploadcareLicenseKeyValid'==_0xf6d923||'uploadcareLicenseKeyInvalid'==_0xf6d923||'uploadcareLicenseKeyExpired'==_0xf6d923||'uploadcareLicenseKeyDomainLimit'==_0xf6d923||'uploadcareLicenseKeyNotAllowed'==_0xf6d923||'uploadcareLicenseKeyEvaluationLimit'==_0xf6d923||'uploadcareLicenseKeyTrialLimit'==_0xf6d923||'uploadcareLicenseKeyUsageLimit'==_0xf6d923){delete _0x232cff[_0x34bba2],_0x49b099=_0xf6d923,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x49b099&&_0x232cff['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x49b099&&_0x232cff['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x49b099&&_0x232cff['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x49b099&&_0x232cff['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x49b099&&_0x232cff['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x49b099&&_0x232cff['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x49b099&&_0x232cff['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5211ff}=this,_0x11cb94=_0x5211ff['commands']['get']('uploadcare');if(!_0x11cb94)return;const _0x28aa91=this['_normalizeConfigSourceList'](_0x5211ff['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2dc76b,_0x464b61)=>{const _0xc51c51=this['_getIntegrationKey'](_0x464b61['type']);return _0x2dc76b[_0xc51c51]||(_0x2dc76b[_0xc51c51]=[]),_0x2dc76b[_0xc51c51]['push'](_0x464b61),_0x2dc76b;},{});_0x5211ff['plugins']['has']('ImageInsertUI')&&_0x5211ff['commands']['get']('uploadcare')&&Object['entries'](_0x28aa91)['forEach'](([_0x26d9c6,_0x5c58d0])=>{_0x5211ff['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x26d9c6,'observable':()=>_0x11cb94,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5c58d0),'formViewCreator':()=>this['_createDropdownButtons'](_0x5c58d0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5c58d0),'override':'assetManager'!==_0x26d9c6});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2fe786){const {locale:_0x55f941}=this['editor'];return _0x2fe786['map'](_0x1e6b86=>{const _0x5db8ec=_(_0x55f941,_0x1e6b86,'Insert');switch(_0x1e6b86){case i['Local']:return{'icon':_0x5299d2,'type':i['Local'],..._0x5db8ec};case i['URL']:return{'icon':_0x107ab1,'type':i['URL'],..._0x5db8ec};case i['Dropbox']:return{'icon':_0x14879a,'type':i['Dropbox'],..._0x5db8ec};case i['Facebook']:return{'icon':_0x30d35a,'type':i['Facebook'],..._0x5db8ec};case i['GDrive']:return{'icon':_0x4cf376,'type':i['GDrive'],..._0x5db8ec};case i['GPhotos']:return{'icon':_0x32845b,'type':i['GPhotos'],..._0x5db8ec};case i['OneDrive']:return{'icon':_0x8a6980,'type':i['OneDrive'],..._0x5db8ec};}});}['_getIntegrationKey'](_0x3ce3df){switch(_0x3ce3df){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1df32b,_0x5e717c){const _0x2cf2a9=this['editor'],_0x768ccb=new _0x1df32b(_0x2cf2a9['locale']),_0x171c07=_0x2cf2a9['commands']['get']('uploadcare');return _0x768ccb['bind']('isEnabled')['to'](_0x171c07),_0x768ccb['on']('execute',()=>{_0x171c07['execute'](_0x5e717c);}),_0x768ccb;}['_createToolbarButton'](_0x307d2b){const {locale:_0x3e953a}=this['editor'],_0x35a573=this['editor']['plugins']['get']('ImageInsertUI'),_0x3aa6af=_0x307d2b[0x0],_0x2d7080=this['_createButton'](_0xd4b68c,_0x3aa6af['type']);return _0x2d7080['icon']=_0x3aa6af['icon'],_0x2d7080['bind']('label')['to'](_0x35a573,'isImageSelected',_0x687a02=>_(_0x3e953a,_0x3aa6af['type'],_0x687a02?'Replace':'Insert')['text']),_0x2d7080['tooltip']=!0x0,_0x2d7080;}['_createDropdownButtons'](_0x5dcc20){const {locale:_0x1acba2}=this['editor'],_0x227e67=this['editor']['plugins']['get']('ImageInsertUI');return _0x5dcc20['map'](_0xe9321c=>{const _0x14e146=this['_createButton'](_0xd4b68c,_0xe9321c['type']);return _0x14e146['withText']=!0x0,_0x14e146['icon']=_0xe9321c['icon'],_0x14e146['bind']('label')['to'](_0x227e67,'isImageSelected',_0x376d95=>_(_0x1acba2,_0xe9321c['type'],_0x376d95?'Replace':'Insert')['text']),_0x14e146;});}['_createMenuBarButtons'](_0x3189d3){return _0x3189d3['map'](_0x3b5fa6=>{const _0x2c1313=this['_createButton'](_0x21602b,_0x3b5fa6['type']);return _0x2c1313['icon']=_0x3b5fa6['icon'],_0x2c1313['label']=_0x3b5fa6['shortText'],_0x2c1313;});}}class F extends _0x2ff5d5{['focusTracker'];['focusCycler'];constructor(_0x5725ed){super(_0x5725ed),this['focusTracker']=new _0x42b0cf(),this['focusCycler']=new _0x4fd6e0({'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(_0x7d8794,_0x276c96){super(_0x7d8794),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-'+_0x276c96}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x585ea5,_0xa6a661){const _0x228ea0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x312950=>_0x312950<=_0xa6a661)['map'](_0x895fde=>_0x585ea5['replace'](/\/$/,'')+'/-/resize/'+_0x895fde+'x/\x20'+_0x895fde+'w');return{'imageFallbackUrl':_0x585ea5,'imageSources':[{'srcset':_0x228ea0['join'](',\x20'),'sizes':'(max-width:\x20'+_0xa6a661+'px)\x20100vw,\x20'+_0xa6a661+'px','type':'image/webp'}]};}function S(_0x202fec,_0xae859a,_0xf2351c){const _0x1c0a52=_0x202fec['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1c0a52?parseInt(_0x1c0a52[0x1],0xa):_0xae859a,'height':_0x1c0a52?parseInt(_0x1c0a52[0x2],0xa):_0xf2351c};}function p(_0x1f8a47,_0x1a5100){const _0x209d6c=new(_0x596efd())(),_0x2502cf=_0x1f8a47['plugins']['get']('ImageUtils'),_0x3a8ede=_0x1f8a47['editing']['mapper']['toViewElement'](_0x1a5100),_0x47b15e=_0x2502cf['findViewImgElement'](_0x3a8ede),_0x31f6f9=_0x1f8a47['editing']['view']['domConverter']['viewToDom'](_0x47b15e),_0x50db90=_0x1a5100['getAttribute']('width'),_0x3c9214=_0x1a5100['getAttribute']('height'),_0x36ff0a='image-processing';_0x1f8a47['editing']['view']['change'](_0x3d371a=>{_0x3d371a['addClass'](_0x36ff0a,_0x3a8ede),_0x3d371a['setStyle']('aspect-ratio',_0x50db90+'/'+_0x3c9214,_0x47b15e);}),_0x209d6c['listenTo'](_0x31f6f9,'load',()=>{_0x209d6c['stopListening'](_0x31f6f9,'load'),_0x1f8a47['editing']['view']['change'](_0x28dd8b=>{_0x28dd8b['removeClass'](_0x36ff0a,_0x3a8ede),_0x28dd8b['removeStyle']('aspect-ratio',_0x47b15e);});});}function G(_0xf37830){if(Array['isArray'](_0xf37830)){const _0x83dd12=_0xf37830['map'](G);return _0x2b540b=>_0x83dd12['some'](_0x2c5ffe=>_0x2c5ffe(_0x2b540b));}if('origin'==_0xf37830){const _0x251056=_0x255c88['window']['location']['origin'];return _0xe7a983=>new URL(_0xe7a983,_0x255c88['document']['baseURI'])['origin']==_0x251056;}return'function'==typeof _0xf37830?_0xf37830:_0xf37830 instanceof RegExp?_0x239e6e=>!(!_0x239e6e['match'](_0xf37830)&&!_0x239e6e['replace'](/^https?:\/\//,'')['match'](_0xf37830)):()=>!0x1;}function A(_0x418189,_0x42ec23){return _0x53174c(_0x418189['target'])['includes'](_0x42ec23);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d44f0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x437de9,_0x2ff38c,_0x3823d2){super(),this['_editor']=_0x437de9,this['_editing']=_0x2ff38c,this['_dialog']=_0x437de9['plugins']['get'](_0x11b1e1),this['_api']=_0x2ff38c['ctxElement']['getAPI'](),this['_type']=_0x3823d2,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:_0x35ba8a,model:_0x29848a}=this['_editor'],_0x41188f=_0x29848a['document']['selection']['getSelectedElement'](),_0x1882ed=_0x41188f&&(_0x41188f['is']('element','imageBlock')||_0x41188f['is']('element','imageInline'));this['_formView']=new x(_0x35ba8a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5299d2,'title':_(_0x35ba8a,this['_type'],_0x1882ed?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x31fe82['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4dd9e4=>!A(_0x4dd9e4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x12e96b}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1028f2=>{const _0x23f784=_0x12e96b['length'];for(const _0x21f43e of _0x12e96b){const _0xf5fed4=_0x21f43e===_0x12e96b[_0x23f784-0x1],{cdnUrl:_0x537afd,fileInfo:_0x230250}=_0x21f43e;if(!_0x537afd||!_0x230250)continue;const {width:_0x161da5,height:_0x425d63}=_0x230250['imageInfo'],_0x46e517=S(_0x537afd,_0x161da5,_0x425d63),_0x467dad=C(_0x537afd,_0x46e517['width']),_0x24e556={'id':_0x230250['uuid'],'type':'image','attributes':{'imageDimension':_0x46e517,..._0x467dad}};this['_insertAsset'](_0x24e556,_0xf5fed4,_0x1028f2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x42158d=>{'idle'===_0x42158d['detail']['status']&&!_0x42158d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x109f37,_0x5c1ce8,_0x5e2d7b){const _0xaf10a3=this['_editor']['model']['document']['selection'],_0x99dc46=_0xaf10a3['getSelectedElement'](),_0x19f9ac=!(!_0x99dc46||!_0x99dc46['is']('element','imageInline'));_0x5e2d7b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x109f37,_0x19f9ac),_0x5c1ce8||_0x5e2d7b['setSelection'](_0xaf10a3['getLastPosition']());}['_insertImage'](_0x3b235d,_0x482b00){const _0x466abe=this['_editor'],{imageDimension:_0x28b29d,imageFallbackUrl:_0x5b526f,imageSources:_0x49ee17}=_0x3b235d['attributes'];_0x466abe['execute']('insertImage',{'imageType':_0x482b00?'imageInline':null,'source':{'uploadcareImageId':_0x3b235d['id'],'src':_0x5b526f,'sources':_0x49ee17,..._0x28b29d}});}}class w extends _0x33bd10{['_editing'];['_controller']=null;static get['requires'](){return[_0x11b1e1,o];}constructor(_0x5c7437){super(_0x5c7437),this['_editing']=_0x5c7437['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2cb995){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2cb995);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xcb4033,..._0x3af75d}){return _0x1a72e0(_0xcb4033,_0x3af75d);}static['getInfo'](_0x3a83ec,_0x139f20){return _0x4565d4(_0x3a83ec,_0x139f20);}}class f extends _0x108b89{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x40e81f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x583125=this['editor'];if(!!!_0x583125['config']['get']('uploadcare'))return;_0x583125['plugins']['get'](_0x40e81f)['createUploadAdapter']=_0x59a479=>new k(_0x59a479,_0x583125),_0x583125['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x32e1ab,{imageElement:_0x4a2ad4,data:_0x4ddc94})=>{_0x583125['model']['change'](_0x33ca31=>{_0x33ca31['setAttribute']('uploadcareImageId',_0x4ddc94['uploadcareImageId'],_0x4a2ad4);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5a661d,_0x54cc0f){this['loader']=_0x5a661d,this['editor']=_0x54cc0f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x9d89f7=await this['loader']['file'];return j['upload']({'file':_0x9d89f7,'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':_0x48eb25=>{_0x48eb25&&_0x48eb25['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x48eb25['value']);}})['then'](async _0x4180dd=>{const {imageFallbackUrl:_0x552b03,imageSources:_0x2a2804}=C(_0x4180dd['cdnUrl'],_0x4180dd['imageInfo']['width']);return{'uploadcareImageId':_0x4180dd['uuid'],'default':_0x552b03,'sources':_0x2a2804};})['catch'](()=>{const _0x3fb6b0=t('Cannot\x20upload\x20file:')+('\x20'+_0x9d89f7['name']+'.');return Promise['reject'](_0x3fb6b0);});}['abort'](){this['controller']['abort']();}}class o extends _0x108b89{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x11b1e1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3ca3ac){super(_0x3ca3ac),this['ucContextId']=_0x19b48d();}['init'](){const _0x45f9d6=this['editor'];_0x45f9d6['commands']['add']('uploadcare',new w(_0x45f9d6));}['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 _0x1aa8b4=_0x255c88['document']['querySelector']('input[uploadcare-file-input]');_0x1aa8b4&&_0x1aa8b4['remove']();}),async function(_0x9073b3){const _0x330121=_0x1477b4([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x47c2f2=0x3d8d0df,_0x2e03cc=0x3dfa337^_0x47c2f2,_0x3fe41a=window[_0x1477b4([0x44,0x61,0x74,0x65])][_0x1477b4([0x6e,0x6f,0x77])](),_0x1d33d2=_0x9073b3[_0x1477b4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c9a0d=new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23063b=>{_0x1d33d2[_0x1477b4([0x6f,0x6e,0x63,0x65])](_0x1477b4([0x72,0x65,0x61,0x64,0x79]),_0x23063b);}),_0x166697={[_0x1477b4([0x6b,0x74,0x79])]:_0x1477b4([0x45,0x43]),[_0x1477b4([0x75,0x73,0x65])]:_0x1477b4([0x73,0x69,0x67]),[_0x1477b4([0x63,0x72,0x76])]:_0x1477b4([0x50,0x2d,0x32,0x35,0x36]),[_0x1477b4([0x78])]:_0x1477b4([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]),[_0x1477b4([0x79])]:_0x1477b4([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]),[_0x1477b4([0x61,0x6c,0x67])]:_0x1477b4([0x45,0x53,0x32,0x35,0x36])},_0x46755a=_0x1d33d2[_0x1477b4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1477b4([0x67,0x65,0x74])](_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d33c3(){let _0x17a9f4,_0x59e565=null,_0x58dd0e=null;try{if(_0x46755a==_0x1477b4([0x47,0x50,0x4c]))return _0x1477b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17a9f4=_0x5084ea(),!_0x17a9f4)return _0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17a9f4[_0x1477b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x58dd0e=_0x507b98(_0x17a9f4[_0x1477b4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17a9f4[_0x1477b4([0x6a,0x74,0x69])])),await _0x363e77()?_0x607500()?_0x291b44()?_0x1477b4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x485255()?(_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1477b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59e565=_0x378169(_0x1477b4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1477b4([0x74,0x72,0x69,0x61,0x6c])&&(_0x59e565=_0x378169(_0x1477b4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x487e5f()):_0x1477b4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1477b4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1477b4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x291b44(){const _0x25cda6=[_0x1477b4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1477b4([0x74,0x72,0x69,0x61,0x6c])][_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fe41a/0x3e8:0xe10*_0x2e03cc;return _0x17a9f4[_0x1477b4([0x65,0x78,0x70])]<_0x25cda6;}function _0x607500(){const _0x1d9d08=_0x17a9f4[_0x1477b4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d9d08&&(!!_0x1d9d08[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x2a]))||!!_0x1d9d08[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x55,0x50,0x4c,0x43])));}function _0x485255(){const _0x242e30=_0x17a9f4[_0x1477b4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x242e30||0x0==_0x242e30[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44fa73}=new URL(window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x242e30[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44fa73))return!0x0;const _0x2a39f1=_0x44fa73[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e]));return _0x242e30[_0x1477b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f4f64=>_0x3f4f64[_0x1477b4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1477b4([0x2a])))[_0x1477b4([0x6d,0x61,0x70])](_0x467103=>_0x467103[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e])))[_0x1477b4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x171ab7=>_0x171ab7[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2a39f1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1477b4([0x6d,0x61,0x70])](_0xc098c4=>Array(_0x2a39f1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc098c4[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1477b4([0x66,0x69,0x6c,0x6c])](_0xc098c4[0x0]===_0x1477b4([0x2a])?_0x1477b4([0x2a]):'')[_0x1477b4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc098c4))[_0x1477b4([0x73,0x6f,0x6d,0x65])](_0x13a190=>_0x2a39f1[_0x1477b4([0x65,0x76,0x65,0x72,0x79])]((_0x596b83,_0x3b3c81)=>_0x13a190[_0x3b3c81]===_0x596b83||_0x13a190[_0x3b3c81]===_0x1477b4([0x2a])));}function _0x487e5f(){return _0x59e565&&_0x58dd0e?new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x116067,_0x30abc9)=>{_0x59e565[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x116067,_0x30abc9),_0x58dd0e[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x211194=>{_0x211194!=_0x1477b4([0x56,0x61,0x6c,0x69,0x64])&&_0x116067(_0x211194);},_0x30abc9);}):_0x59e565||_0x58dd0e||_0x1477b4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x507b98(_0x421121,_0x27a54d){return new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x127730=>{if(_0x28aaf7())return _0x127730(_0x1477b4([0x56,0x61,0x6c,0x69,0x64]));_0x48a339(),_0x1d33d2[_0x1477b4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31608c=!0x1;const _0x5a0d76=_0x19b48d();function _0x3552da(_0xb2b050){return!!_0xb2b050&&(typeof _0xb2b050===_0x1477b4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb2b050===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb2b050[_0x1477b4([0x74,0x68,0x65,0x6e])]===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb2b050[_0x1477b4([0x63,0x61,0x74,0x63,0x68])]===_0x1477b4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x365974(_0x6d1371){_0x3ff4af(_0x6d1371)[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x2f9df2=>{if(!_0x2f9df2||_0x2f9df2[_0x1477b4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1477b4([0x6f,0x6b]))return _0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45bb61(_0x2c2904(_0x5a0d76+_0x27a54d))!=_0x2f9df2[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1477b4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x4b9094=>(_0x4bb0a6(),_0x4b9094),()=>{const _0x39f036=_0x2be099();return null==_0x39f036?(_0x4bb0a6(),_0x1477b4([0x56,0x61,0x6c,0x69,0x64])):_0x1477b4(_0x3fe41a-_0x39f036>(0x27d454df^_0x47c2f2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x127730)[_0x1477b4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x336ddf=0x3ee3e5f^_0x47c2f2;function _0x4bb0a6(){const _0x1bb0d0=_0x1477b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x45bb61(_0x2c2904(_0x421121)),_0x18e725=_0x27bad1(_0x45bb61(window[_0x1477b4([0x4d,0x61,0x74,0x68])][_0x1477b4([0x63,0x65,0x69,0x6c])](_0x3fe41a/_0x336ddf)));window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1477b4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bb0d0,_0x18e725);}function _0x2be099(){const _0x14cfa2=_0x1477b4([0x6c,0x6c,0x63,0x74,0x2d])+_0x45bb61(_0x2c2904(_0x421121)),_0xab7e18=window[_0x1477b4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1477b4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14cfa2);return _0xab7e18?window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27bad1(_0xab7e18),0x10)*_0x336ddf:null;}function _0x3ff4af(_0x2917a0){return new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16dd05,_0x1f0e1f)=>{_0x2917a0[_0x1477b4([0x74,0x68,0x65,0x6e])](_0x16dd05,_0x1f0e1f),window[_0x1477b4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f0e1f,0x3d9041f^_0x47c2f2);});}}_0x1d33d2[_0x1477b4([0x6f,0x6e])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x95c10a,_0x5d7008)=>{if(_0x5d7008[0x0]!=_0x421121)return _0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d7008[0x1]={..._0x5d7008[0x1],[_0x1477b4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a0d76};},{[_0x1477b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1477b4([0x68,0x69,0x67,0x68])}),_0x1d33d2[_0x1477b4([0x6f,0x6e])](_0x1477b4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x186897=>{_0x3552da(_0x186897[_0x1477b4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31608c=!0x0,_0x365974(_0x186897[_0x1477b4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1477b4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1477b4([0x6c,0x6f,0x77])}),_0x1c9a0d[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>{_0x31608c||_0x127730(_0x1477b4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x28aaf7(){return _0x1d33d2[_0x1477b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1477b4([0x76,0x69,0x65,0x77])][_0x1477b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1477b4([0x61,0x75,0x74,0x6f]);}function _0x48a339(){_0x1d33d2[_0x1477b4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1477b4([0x76,0x69,0x65,0x77])][_0x1477b4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1477b4([0x61,0x75,0x74,0x6f]);}}function _0x378169(_0x4a15be){const _0x5c80df=[new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x69eb78=>setTimeout(_0x69eb78,0x3d1ee13^_0x47c2f2)),_0x1c9a0d[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x584237=>{let _0x301a54=0x0;_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x6f,0x6e])](_0x1477b4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x368ae7,_0x16e1ec)=>{_0x16e1ec[0x0][_0x1477b4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x301a54++,_0x301a54==(0x3d8d127^_0x47c2f2)&&(_0x584237(),_0x368ae7[_0x1477b4([0x6f,0x66,0x66])]());});}))];return window[_0x1477b4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1477b4([0x72,0x61,0x63,0x65])](_0x5c80df)[_0x1477b4([0x74,0x68,0x65,0x6e])](()=>_0x4a15be);}async function _0x138b47(){await _0x1c9a0d,_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58fe4e,_0x1d33d2[_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1477b4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58fe4e,_0x1d33d2[_0x1477b4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1477b4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ed7aa(_0x5cf009){const _0x33de44=_0x4a8a6c();_0x1d33d2[_0x33de44]=_0x1477b4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5cf009,_0x5cf009!=_0x1477b4([0x56,0x61,0x6c,0x69,0x64])&&_0x138b47();}function _0x4a8a6c(){const _0x3036fa=window[_0x1477b4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1477b4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1477b4([0x6e,0x6f,0x77])]())[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1477b4([0x2e]),'');let _0x59997c=_0x1477b4([0x52]);for(let _0xcbf5ec=0x0;_0xcbf5ec<_0x3036fa[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xcbf5ec+=0x2){let _0x560e90=window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3036fa[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcbf5ec,_0xcbf5ec+0x2));_0x560e90>=_0x330121[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x560e90-=_0x330121[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59997c+=_0x330121[_0x560e90];}return _0x59997c;}function _0x5084ea(){const _0x352af1=_0x46755a[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e]));if(0x3!=_0x352af1[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43b727(_0x352af1[0x1]);function _0x43b727(_0x2a6de0){const _0x136345=_0x239ee6(_0x2a6de0);return _0x136345&&_0xf89870()?_0x136345:null;function _0xf89870(){const _0x212f47=_0x136345[_0x1477b4([0x6a,0x74,0x69])],_0x549d14=window[_0x1477b4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x212f47[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x212f47[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36f0a8={..._0x136345,[_0x1477b4([0x6a,0x74,0x69])]:_0x212f47[_0x1477b4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x212f47[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36f0a8[_0x1477b4([0x76,0x63])],_0x2c2904(_0x36f0a8)==_0x549d14;}}}async function _0x363e77(){let _0x270251=!0x0;try{const _0x42abb6=_0x46755a[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])](_0x1477b4([0x2e])),[_0x577eff,_0x3c3d06,_0x3a0c2a]=_0x42abb6;return _0x28ef6f(_0x577eff),await _0x15a183(_0x577eff,_0x3c3d06,_0x3a0c2a),_0x270251;}catch{return!0x1;}function _0x28ef6f(_0x5b6f8e){const _0x26ac7b=_0x239ee6(_0x5b6f8e);_0x26ac7b&&_0x26ac7b[_0x1477b4([0x61,0x6c,0x67])]==_0x1477b4([0x45,0x53,0x32,0x35,0x36])||(_0x270251=!0x1);}async function _0x15a183(_0x196ca3,_0x10bf6f,_0x4bafc6){const _0x615366=window[_0x1477b4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1477b4([0x66,0x72,0x6f,0x6d])](_0x200161(_0x4bafc6),_0x6625fc=>_0x6625fc[_0x1477b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x165321=new window[(_0x1477b4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1477b4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x196ca3+_0x1477b4([0x2e])+_0x10bf6f),_0x1007f6=window[_0x1477b4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1477b4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1007f6)return;const _0x232952=await _0x1007f6[_0x1477b4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1477b4([0x6a,0x77,0x6b]),_0x166697,{[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x45,0x43,0x44,0x53,0x41]),[_0x1477b4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1477b4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1007f6[_0x1477b4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x45,0x43,0x44,0x53,0x41]),[_0x1477b4([0x68,0x61,0x73,0x68])]:{[_0x1477b4([0x6e,0x61,0x6d,0x65])]:_0x1477b4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x232952,_0x615366,_0x165321)||(_0x270251=!0x1);}}function _0x239ee6(_0x3cb163){return _0x3cb163[_0x1477b4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1477b4([0x65,0x79]))?JSON[_0x1477b4([0x70,0x61,0x72,0x73,0x65])](_0x200161(_0x3cb163)):null;}function _0x200161(_0xc91dd2){return window[_0x1477b4([0x61,0x74,0x6f,0x62])](_0xc91dd2[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1477b4([0x2b]))[_0x1477b4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1477b4([0x2f])));}function _0x2c2904(_0x2393b5){let _0x124f6e=0x1505;function _0x4f2427(_0x182015){for(let _0x4e49e8=0x0;_0x4e49e8<_0x182015[_0x1477b4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e49e8++){const _0x7f016f=_0x182015[_0x1477b4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e49e8);_0x124f6e=(_0x124f6e<<0x5)+_0x124f6e+_0x7f016f,_0x124f6e&=_0x124f6e;}}function _0x4bbf98(_0x43c380){Array[_0x1477b4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43c380)?_0x43c380[_0x1477b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bbf98):_0x43c380&&typeof _0x43c380==_0x1477b4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1477b4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43c380)[_0x1477b4([0x73,0x6f,0x72,0x74])]()[_0x1477b4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dd54d,_0x2e6d7a])=>{_0x4f2427(_0x3dd54d),_0x4bbf98(_0x2e6d7a);}):_0x4f2427(window[_0x1477b4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43c380));}return _0x4bbf98(_0x2393b5),_0x124f6e>>>0x0;}function _0x45bb61(_0x3725eb){return _0x3725eb[_0x1477b4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1477b4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1477b4([0x30]));}function _0x27bad1(_0x3c7324){return _0x3c7324[_0x1477b4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1477b4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1477b4([0x6a,0x6f,0x69,0x6e])]('');}function _0x58fe4e(){}function _0x1477b4(_0x5e3afd){return _0x5e3afd['map'](_0x2a0419=>String['fromCharCode'](_0x2a0419))['join']('');}_0x5ed7aa(await _0x4d33c3());}(this);}['_initSchema'](){const _0x311e3b=this['editor']['model']['schema'];_0x311e3b['isRegistered']('imageBlock')&&_0x311e3b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x311e3b['isRegistered']('imageInline')&&_0x311e3b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2b3016=this['editor'];_0x2b3016['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2b3016['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1dcd4a=>_0x1dcd4a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xf5eab2=_0x2b3016['commands']['get']('replaceImageSource');_0xf5eab2&&this['listenTo'](_0xf5eab2,'cleanupImage',(_0x37d651,[_0x480f5f,_0x41f8b3])=>{_0x480f5f['removeAttribute']('uploadcareImageId',_0x41f8b3);});}['_initConfig'](){const _0x562eeb=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1299fd=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x28a297(_0x255c88['document'],'uc-config',{..._0x562eeb,'pubkey':_0x1299fd,'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']=_0x552fbd=>{if('closeMax'==_0x552fbd)return'#uc-icon-arrow-down';},_0x255c88['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x28a297(_0x255c88['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x255c88['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x54b806=this['editor']['commands']['get']('insertImage');_0x54b806&&this['listenTo'](_0x54b806,'execute',()=>{const _0x1d3573=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d3573&&_0x1d3573['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1d3573);});});const _0x2012f3=this['editor']['commands']['get']('uploadcareImageReplace');_0x2012f3&&this['listenTo'](_0x2012f3,'execute',()=>{const _0x13a747=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13a747&&_0x13a747['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x13a747);});});}}class tt extends _0x108b89{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51d265){super(_0x51d265),_0x51d265['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xb07fa0['defineComponents'](_0xb07fa0);}}class ii extends _0x2ff5d5{constructor(_0xbdfe7a){super(_0xbdfe7a);const t=_0xbdfe7a['t'],_0x40c480=this['bindTemplate'],_0x50b219=new _0x88d7a6();_0x50b219['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':[_0x50b219,{'text':_0x40c480['to']('imageUploadProgress',_0x3ff03e=>t('Loading\x20image...')+'\x20('+(_0x3ff03e||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 _0x2ff5d5{constructor(_0x7e2173){super(_0x7e2173);const t=_0x7e2173['t'];this['set']('errorType',null);const _0x5889dc=new _0xd4b68c(_0x7e2173);_0x5889dc['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5889dc['withText']=!0x0,_0x5889dc['class']='ck-button-action',_0x5889dc['on']('execute',()=>{this['fire']('retry');}),_0x5889dc['bind']('isVisible')['to'](this,'errorType',_0x5d414a=>'NotFound'!==_0x5d414a);const _0x579cb6=new _0xeb9607();_0x579cb6['content']=_0x4da509,_0x579cb6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x36fa8e=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':[_0x579cb6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x36fa8e['to']('errorType',_0x425367=>t('NotFound'!==_0x425367?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5889dc]},{'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 _0x2ff5d5{constructor(_0x16b3ae,_0x524bd7){super(_0x16b3ae);const _0x1c57d3=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x524bd7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c57d3['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x409292,_0x45fc3e,_0x45d599){super(_0x409292),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x409292),this['_errorView']=new ti(_0x409292),this['_editingView']=new ei(_0x409292,_0x45d599),this['_focusableView']=new _0x2ff5d5(_0x409292),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x45fc3e),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'],_0x462a55=>{this['_addUploadcareImageEditorListeners'](_0x462a55);});}),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'](_0x19247d,_0xc2674b){const _0x167425='uc-cloud-image-editor',_0x611270=_0x19247d['querySelector'](_0x167425);if(_0x611270)return _0xc2674b(_0x611270);const _0x552e20=new MutationObserver(_0x1eda8b=>{const _0x101578=_0x1eda8b['filter'](_0x16f3bc=>_0x16f3bc['target']===_0x19247d&&_0x16f3bc['addedNodes']['length']>0x0&&_0x16f3bc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x167425);_0x101578['length']&&(_0x552e20['disconnect'](),_0xc2674b(_0x101578[0x0]['addedNodes'][0x0]));});_0x552e20['observe'](_0x19247d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x50934d){_0x50934d['addEventListener']('apply',_0x551867=>{this['fire']('apply',{'imageSrc':_0x551867['detail']['cdnUrl']});}),_0x50934d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5d44f0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb3d916,_0x575cf1,_0x56351a){super(),this['_editor']=_0xb3d916,this['_dialog']=_0x575cf1,this['_imageElement']=_0x56351a,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 _0x505c9e=this['_imageElement'],_0x4defb2=_0x505c9e['getAttribute']('uploadcareImageId'),_0x297844=_0x505c9e['getAttribute']('src');if(_0x4defb2)await this['_loadImageInfo'](_0x4defb2,_0x297844);else{if(this['_imageCache']['has'](_0x297844)){const _0x38d3c5=this['_imageCache']['get'](_0x297844);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38d3c5['url'],this['imageDimension']=_0x38d3c5['dimension'],this['imageId']=_0x38d3c5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x30fe39}=this['_editor'],t=_0x30fe39['t'],_0xa55a54=new X(_0x30fe39,this['imageStatus'],this['_attributes']);_0xa55a54['bind']('status')['to'](this,'imageStatus'),_0xa55a54['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa55a54['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa55a54['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa55a54,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e82f3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa55a54,'position':_0x31fe82['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa55a54['focus']();},'onHide':()=>{_0xa55a54['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3102d2=>!A(_0x3102d2,_0xa55a54['element'])}});}['_loadImageInfo'](_0x273d2d,_0x4e1a75){return j['getInfo'](_0x273d2d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3a6938=>{const {width:_0x3b5493,height:_0x1eea11}=_0x3a6938['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e1a75,this['imageDimension']={'width':_0x3b5493,'height':_0x1eea11},this['imageId']=_0x273d2d;})['catch'](_0x2c53cf=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c53cf['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x462193,_0x2a4fdf){return this['_getImageAsFile'](_0x462193)['then'](_0x5dd178=>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':_0x2a4fdf['signal'],'file':_0x5dd178,'onProgress':_0x2c5f9a=>{_0x2c5f9a&&_0x2c5f9a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c5f9a['value']));}}))['then'](_0x173999=>{const {width:_0x1ca504,height:_0x4fd69c}=_0x173999['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x173999['cdnUrl'],this['imageDimension']={'width':_0x1ca504,'height':_0x4fd69c},this['imageId']=_0x173999['uuid'],this['imageUploadProgress']=null;const _0x56a1d4=_0x462193['getAttribute']('src');this['_imageCache']['set'](_0x56a1d4,{'id':_0x173999['uuid'],'url':_0x173999['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3c0fdd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3c0fdd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x54e850,_0x1a9a4b){_0x54e850['on']('apply',(_0x11f7ac,_0x284734)=>{this['_replaceImage'](_0x1a9a4b,_0x284734['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x54e850['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x54e850['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2ef11b,_0x449f6a,_0x2cb921){const _0x57393f=this['_editor'],{width:_0x287b01,height:_0x1c94d3}=S(_0x449f6a,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x33e578,imageSources:_0x3b8084}=C(_0x449f6a,_0x287b01);_0x57393f['model']['change'](_0x10d538=>{if('$graveyard'===_0x2ef11b['root']['rootName']){_0x57393f['execute']('insertImage',{'imageType':_0x2ef11b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2ef11b['getAttributes']()),'uploadcareImageId':_0x2cb921,'src':_0x33e578,'sources':_0x3b8084,'width':_0x287b01,'height':_0x1c94d3}});const _0x2633c6=_0x2ef11b['getChildren']();_0x2ef11b=_0x57393f['model']['document']['selection']['getSelectedElement']();for(const _0x35c621 of _0x2633c6)_0x10d538['append'](_0x10d538['cloneElement'](_0x35c621),_0x2ef11b);}else _0x10d538['setSelection'](_0x2ef11b,'on'),_0x57393f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2ef11b['getAttributes']()),'uploadcareImageId':_0x2cb921,'src':_0x33e578,'sources':_0x3b8084,'width':_0x287b01,'height':_0x1c94d3},_0x2ef11b);_0x10d538['setSelection'](_0x2ef11b,'on');});}async['_getImageAsFile'](_0x172263){const _0x1d6402=_0x255c88['window'],_0x4ebbab=_0x255c88['document']['location']['href'],_0x88763d=new _0x1d6402['URL'](_0x172263['getAttribute']('src'),_0x4ebbab);if('data:'===_0x88763d['protocol']){const _0x256361=_0x88763d['href']['split'](','),_0x310169=_0x256361[0x0]['match'](/:(.*?);/)[0x1],_0x460c39=_0x310169['split']('/')[0x1],_0x2b65b9=_0x1d6402['atob'](_0x256361[_0x256361['length']-0x1]);let _0x52b245=_0x2b65b9['length'];const _0x21517b=new _0x1d6402['Uint8Array'](_0x52b245);for(;_0x52b245--;)_0x21517b[_0x52b245]=_0x2b65b9['charCodeAt'](_0x52b245);return new _0x1d6402['File']([_0x21517b],'image.'+_0x460c39,{'type':_0x310169});}const _0x1b5645=_0x88763d['href']['split']('/'),_0x551374=_0x1b5645[_0x1b5645['length']-0x1],_0x35fcf7=_0x551374['split']('.')[0x1];return _0x1d6402['fetch'](_0x88763d['href'])['then'](_0x4c6958=>_0x4c6958['clone']()['blob']())['then'](_0x193b20=>new _0x1d6402['File']([_0x193b20],_0x551374,{'type':'image/'+_0x35fcf7}));}}class O extends _0x33bd10{['imageEditController'];static get['requires'](){return[_0x11b1e1];}['_isEditable'];constructor(_0x24e2cb){super(_0x24e2cb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f1ee3){const _0x1ced89=G(_0x2f1ee3);return _0x2f554f=>!(!_0x2f554f||!_0x2f554f['is']('element','imageBlock')&&!_0x2f554f['is']('element','imageInline'))&&(!!_0x2f554f['hasAttribute']('uploadcareImageId')||!!_0x2f554f['hasAttribute']('src')&&_0x1ced89(_0x2f554f['getAttribute']('src')));}(_0x24e2cb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x17e57c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x17e57c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5b2d4a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b2d4a&&(_0x5b2d4a['is']('element','imageBlock')||_0x5b2d4a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x11b1e1),_0x5b2d4a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x33bd10{['refresh'](){const _0x1d4b2f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1d4b2f&&(_0x1d4b2f['is']('element','imageBlock')||_0x1d4b2f['is']('element','imageInline')));}['execute'](_0x4f9cd2){const _0x4c22f9=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2123d7=>{_0x2123d7['setAttributes'](_0x4f9cd2,_0x4c22f9),_0x2123d7['removeAttribute']('srcset',_0x4c22f9),_0x2123d7['removeAttribute']('sizes',_0x4c22f9);});}}class m extends _0x108b89{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x293896,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ee921}=this;_0x4ee921['commands']['add']('uploadcareImageEdit',new O(_0x4ee921)),_0x4ee921['commands']['add']('uploadcareImageReplace',new R(_0x4ee921));}}class g extends _0x108b89{['_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 _0x2f0c99=this['editor'];_0x2f0c99['ui']['componentFactory']['add']('uploadcareImageEdit',_0x998bfb=>{const _0x11ee8d=_0x2f0c99['commands']['get']('uploadcareImageEdit'),_0x3355bb=new _0xd4b68c(_0x998bfb),t=_0x998bfb['t'];return _0x3355bb['set']({'icon':_0x1e82f3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3355bb['bind']('isEnabled')['to'](_0x11ee8d),_0x3355bb['bind']('isOn')['to'](_0x11ee8d,'isActive'),this['listenTo'](_0x3355bb,'execute',()=>{_0x2f0c99['execute']('uploadcareImageEdit'),_0x2f0c99['editing']['view']['focus']();}),_0x3355bb;}),this['_initConfig']();}['_initConfig'](){const _0x1d1727=_0x28a297(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1d1727),this['listenTo'](this['editor'],'destroy',()=>{_0x1d1727['remove']();});}}class et extends _0x108b89{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};
|
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':_0x43d1b=>0x1!=_0x43d1b}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xa9031b=>{const {af:{dictionary:_0x58b14c,getPluralForm:_0x5172d0}}={'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':_0x3a8ab7=>0x1!=_0x3a8ab7}};_0xa9031b['af']||={'dictionary':{},'getPluralForm':null},_0xa9031b['af']['dictionary']=Object['assign'](_0xa9031b['af']['dictionary'],_0x58b14c),_0xa9031b['af']['getPluralForm']=_0x5172d0;})(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':_0x2e2e74=>0x0==_0x2e2e74?0x0:0x1==_0x2e2e74?0x1:0x2==_0x2e2e74?0x2:_0x2e2e74%0x64>=0x3&&_0x2e2e74%0x64<=0xa?0x3:_0x2e2e74%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3c99b4=>{const {ar:{dictionary:_0x4ea28a,getPluralForm:_0x4f198f}}={'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':_0x1a8f91=>0x0==_0x1a8f91?0x0:0x1==_0x1a8f91?0x1:0x2==_0x1a8f91?0x2:_0x1a8f91%0x64>=0x3&&_0x1a8f91%0x64<=0xa?0x3:_0x1a8f91%0x64>=0xb?0x4:0x5}};_0x3c99b4['ar']||={'dictionary':{},'getPluralForm':null},_0x3c99b4['ar']['dictionary']=Object['assign'](_0x3c99b4['ar']['dictionary'],_0x4ea28a),_0x3c99b4['ar']['getPluralForm']=_0x4f198f;})(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':_0x51fcac=>0x1!=_0x51fcac}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1eff6a=>{const {ast:{dictionary:_0x276ee1,getPluralForm:_0x3a3376}}={'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':_0x4c2051=>0x1!=_0x4c2051}};_0x1eff6a['ast']||={'dictionary':{},'getPluralForm':null},_0x1eff6a['ast']['dictionary']=Object['assign'](_0x1eff6a['ast']['dictionary'],_0x276ee1),_0x1eff6a['ast']['getPluralForm']=_0x3a3376;})(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':_0x4b63a4=>0x1!=_0x4b63a4}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2f4785=>{const {az:{dictionary:_0x380133,getPluralForm:_0x180bfc}}={'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':_0x550a25=>0x1!=_0x550a25}};_0x2f4785['az']||={'dictionary':{},'getPluralForm':null},_0x2f4785['az']['dictionary']=Object['assign'](_0x2f4785['az']['dictionary'],_0x380133),_0x2f4785['az']['getPluralForm']=_0x180bfc;})(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':_0x27ea6f=>_0x27ea6f%0xa==0x1&&_0x27ea6f%0x64!=0xb?0x0:_0x27ea6f%0xa>=0x2&&_0x27ea6f%0xa<=0x4&&(_0x27ea6f%0x64<0xa||_0x27ea6f%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3b0b70=>{const {be:{dictionary:_0x5bd25b,getPluralForm:_0x6f2f3e}}={'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':_0x19cca9=>_0x19cca9%0xa==0x1&&_0x19cca9%0x64!=0xb?0x0:_0x19cca9%0xa>=0x2&&_0x19cca9%0xa<=0x4&&(_0x19cca9%0x64<0xa||_0x19cca9%0x64>=0x14)?0x1:0x2}};_0x3b0b70['be']||={'dictionary':{},'getPluralForm':null},_0x3b0b70['be']['dictionary']=Object['assign'](_0x3b0b70['be']['dictionary'],_0x5bd25b),_0x3b0b70['be']['getPluralForm']=_0x6f2f3e;})(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':_0x5de258=>0x1!=_0x5de258}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5b062a=>{const {bg:{dictionary:_0x4fa21a,getPluralForm:_0x59b709}}={'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':_0x4a9852=>0x1!=_0x4a9852}};_0x5b062a['bg']||={'dictionary':{},'getPluralForm':null},_0x5b062a['bg']['dictionary']=Object['assign'](_0x5b062a['bg']['dictionary'],_0x4fa21a),_0x5b062a['bg']['getPluralForm']=_0x59b709;})(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':_0x3e4ae3=>0x1!=_0x3e4ae3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x57506e=>{const {bn:{dictionary:_0x1173e0,getPluralForm:_0x278eda}}={'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':_0x46b3d9=>0x1!=_0x46b3d9}};_0x57506e['bn']||={'dictionary':{},'getPluralForm':null},_0x57506e['bn']['dictionary']=Object['assign'](_0x57506e['bn']['dictionary'],_0x1173e0),_0x57506e['bn']['getPluralForm']=_0x278eda;})(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':_0x22a54b=>_0x22a54b%0xa==0x1&&_0x22a54b%0x64!=0xb?0x0:_0x22a54b%0xa>=0x2&&_0x22a54b%0xa<=0x4&&(_0x22a54b%0x64<0xa||_0x22a54b%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1e6373=>{const {bs:{dictionary:_0x39ab16,getPluralForm:_0x21551e}}={'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':_0x33dd6a=>_0x33dd6a%0xa==0x1&&_0x33dd6a%0x64!=0xb?0x0:_0x33dd6a%0xa>=0x2&&_0x33dd6a%0xa<=0x4&&(_0x33dd6a%0x64<0xa||_0x33dd6a%0x64>=0x14)?0x1:0x2}};_0x1e6373['bs']||={'dictionary':{},'getPluralForm':null},_0x1e6373['bs']['dictionary']=Object['assign'](_0x1e6373['bs']['dictionary'],_0x39ab16),_0x1e6373['bs']['getPluralForm']=_0x21551e;})(window['CKEDITOR_TRANSLATIONS']||={});
|