@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250824.0 → 0.0.0-nightly-20250826.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 _0x3b2b54,Command as _0x165874}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x42cbbb,IconGooglePhotos as _0xa05d17,IconGoogleDrive as _0x2e79f7,IconFacebook as _0x39202a,IconDropbox as _0x5f3fbe,IconUploadcareLink as _0x1b7816,IconUploadcareImageUpload as _0x5b4ae3,IconError as _0x4123d2,IconUploadcareImageEdit as _0x2f1301}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x33d51a,MenuBarMenuListItemButtonView as _0x2d18b2,View as _0x1fba1c,FocusCycler as _0x4a0c97,Dialog as _0x150243,DialogViewPosition as _0x9c24c9,SpinnerView as _0xb1bf8d,IconView as _0x594da1,Notification as _0xee710e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x25839c,DomEmitterMixin as _0x470c64,global as _0x2b3dd1,getAncestors as _0x52ce38,ObservableMixin as _0xfc34e1,uid as _0x117ec6,createElement as _0x2813fc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3f4a4c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x389f13,info as _0x1d036d}from'@uploadcare/upload-client';import*as _0x35f474 from'@uploadcare/file-uploader';var i=function(_0x9d61af){return _0x9d61af['Local']='local',_0x9d61af['URL']='url',_0x9d61af['Dropbox']='dropbox',_0x9d61af['GDrive']='gdrive',_0x9d61af['Facebook']='facebook',_0x9d61af['GPhotos']='gphotos',_0x9d61af['OneDrive']='onedrive',_0x9d61af;}({});function _(_0x46b67c,_0x377c9b,_0x39e2f6){const t=_0x46b67c['t'],_0x2335e4=_0x46b67c['t'];switch(_0x377c9b){case i['Local']:return{'text':_0x2335e4('Insert'===_0x39e2f6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2335e4('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x39e2f6?_0x2335e4('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2335e4('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x39e2f6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x39e2f6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x39e2f6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x39e2f6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x39e2f6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x377c9b;}}class e extends _0x3b2b54{['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 _0x22e744=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e5fe2;for(const _0x6c29cb in _0x22e744){const _0x4650e3=_0x6c29cb,_0x2fcebd=_0x22e744[_0x4650e3];if('uploadcareLicenseKeyValid'==_0x2fcebd||'uploadcareLicenseKeyInvalid'==_0x2fcebd||'uploadcareLicenseKeyExpired'==_0x2fcebd||'uploadcareLicenseKeyDomainLimit'==_0x2fcebd||'uploadcareLicenseKeyNotAllowed'==_0x2fcebd||'uploadcareLicenseKeyEvaluationLimit'==_0x2fcebd||'uploadcareLicenseKeyTrialLimit'==_0x2fcebd||'uploadcareLicenseKeyUsageLimit'==_0x2fcebd){delete _0x22e744[_0x4650e3],_0x4e5fe2=_0x2fcebd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4e5fe2&&_0x22e744['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4e5fe2&&_0x22e744['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4e5fe2&&_0x22e744['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4e5fe2&&_0x22e744['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4e5fe2&&_0x22e744['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4e5fe2&&_0x22e744['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4e5fe2&&_0x22e744['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x18823c}=this,_0x2123ee=_0x18823c['commands']['get']('uploadcare');if(!_0x2123ee)return;const _0x4b32c5=this['_normalizeConfigSourceList'](_0x18823c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x128161,_0x8e1535)=>{const _0x315f18=this['_getIntegrationKey'](_0x8e1535['type']);return _0x128161[_0x315f18]||(_0x128161[_0x315f18]=[]),_0x128161[_0x315f18]['push'](_0x8e1535),_0x128161;},{});_0x18823c['plugins']['has']('ImageInsertUI')&&_0x18823c['commands']['get']('uploadcare')&&Object['entries'](_0x4b32c5)['forEach'](([_0x177378,_0x363e38])=>{_0x18823c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x177378,'observable':()=>_0x2123ee,'buttonViewCreator':()=>this['_createToolbarButton'](_0x363e38),'formViewCreator':()=>this['_createDropdownButtons'](_0x363e38),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x363e38),'override':'assetManager'!==_0x177378});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x450f6e){const {locale:_0x52e8ab}=this['editor'];return _0x450f6e['map'](_0x567289=>{const _0xa5d0b3=_(_0x52e8ab,_0x567289,'Insert');switch(_0x567289){case i['Local']:return{'icon':_0x5b4ae3,'type':i['Local'],..._0xa5d0b3};case i['URL']:return{'icon':_0x1b7816,'type':i['URL'],..._0xa5d0b3};case i['Dropbox']:return{'icon':_0x5f3fbe,'type':i['Dropbox'],..._0xa5d0b3};case i['Facebook']:return{'icon':_0x39202a,'type':i['Facebook'],..._0xa5d0b3};case i['GDrive']:return{'icon':_0x2e79f7,'type':i['GDrive'],..._0xa5d0b3};case i['GPhotos']:return{'icon':_0xa05d17,'type':i['GPhotos'],..._0xa5d0b3};case i['OneDrive']:return{'icon':_0x42cbbb,'type':i['OneDrive'],..._0xa5d0b3};}});}['_getIntegrationKey'](_0x33fa05){switch(_0x33fa05){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x47771a,_0x5e9651){const _0x1be77b=this['editor'],_0x3b1d16=new _0x47771a(_0x1be77b['locale']),_0x4a8e48=_0x1be77b['commands']['get']('uploadcare');return _0x3b1d16['bind']('isEnabled')['to'](_0x4a8e48),_0x3b1d16['on']('execute',()=>{_0x4a8e48['execute'](_0x5e9651);}),_0x3b1d16;}['_createToolbarButton'](_0x567841){const {locale:_0x2cefeb}=this['editor'],_0x552da3=this['editor']['plugins']['get']('ImageInsertUI'),_0x54ead5=_0x567841[0x0],_0x2e4cdf=this['_createButton'](_0x33d51a,_0x54ead5['type']);return _0x2e4cdf['icon']=_0x54ead5['icon'],_0x2e4cdf['bind']('label')['to'](_0x552da3,'isImageSelected',_0x2a6ac2=>_(_0x2cefeb,_0x54ead5['type'],_0x2a6ac2?'Replace':'Insert')['text']),_0x2e4cdf['tooltip']=!0x0,_0x2e4cdf;}['_createDropdownButtons'](_0x366c19){const {locale:_0x2236ac}=this['editor'],_0x30ed96=this['editor']['plugins']['get']('ImageInsertUI');return _0x366c19['map'](_0x1a1c73=>{const _0x20571b=this['_createButton'](_0x33d51a,_0x1a1c73['type']);return _0x20571b['withText']=!0x0,_0x20571b['icon']=_0x1a1c73['icon'],_0x20571b['bind']('label')['to'](_0x30ed96,'isImageSelected',_0x214248=>_(_0x2236ac,_0x1a1c73['type'],_0x214248?'Replace':'Insert')['text']),_0x20571b;});}['_createMenuBarButtons'](_0x402ae){return _0x402ae['map'](_0xf0ba42=>{const _0x39a253=this['_createButton'](_0x2d18b2,_0xf0ba42['type']);return _0x39a253['icon']=_0xf0ba42['icon'],_0x39a253['label']=_0xf0ba42['shortText'],_0x39a253;});}}class F extends _0x1fba1c{['focusTracker'];['focusCycler'];constructor(_0x55b74a){super(_0x55b74a),this['focusTracker']=new _0x25839c(),this['focusCycler']=new _0x4a0c97({'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(_0x3a28f7,_0x245c34){super(_0x3a28f7),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-'+_0x245c34}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x348bf0,_0x29c887){const _0x7d26fd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3079be=>_0x3079be<=_0x29c887)['map'](_0x46e06d=>_0x348bf0['replace'](/\/$/,'')+'/-/resize/'+_0x46e06d+'x/\x20'+_0x46e06d+'w');return{'imageFallbackUrl':_0x348bf0,'imageSources':[{'srcset':_0x7d26fd['join'](',\x20'),'sizes':'(max-width:\x20'+_0x29c887+'px)\x20100vw,\x20'+_0x29c887+'px','type':'image/webp'}]};}function C(_0x309db1,_0x4f1cd2,_0x32a47a){const _0x8c3073=_0x309db1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x8c3073?parseInt(_0x8c3073[0x1],0xa):_0x4f1cd2,'height':_0x8c3073?parseInt(_0x8c3073[0x2],0xa):_0x32a47a};}function p(_0x4f9575,_0x131db1){const _0x129fd7=new(_0x470c64())(),_0x1e9dad=_0x4f9575['plugins']['get']('ImageUtils'),_0x14528d=_0x4f9575['editing']['mapper']['toViewElement'](_0x131db1),_0x5a9a65=_0x1e9dad['findViewImgElement'](_0x14528d),_0x5aebae=_0x4f9575['editing']['view']['domConverter']['viewToDom'](_0x5a9a65),_0x22f047=_0x131db1['getAttribute']('width'),_0x40e674=_0x131db1['getAttribute']('height'),_0x28572c='image-processing';_0x4f9575['editing']['view']['change'](_0x5cd7a0=>{_0x5cd7a0['addClass'](_0x28572c,_0x14528d),_0x5cd7a0['setStyle']('aspect-ratio',_0x22f047+'/'+_0x40e674,_0x5a9a65);}),_0x129fd7['listenTo'](_0x5aebae,'load',()=>{_0x129fd7['stopListening'](_0x5aebae,'load'),_0x4f9575['editing']['view']['change'](_0x33c211=>{_0x33c211['removeClass'](_0x28572c,_0x14528d),_0x33c211['removeStyle']('aspect-ratio',_0x5a9a65);});});}function G(_0x5e2433){if(Array['isArray'](_0x5e2433)){const _0x56609b=_0x5e2433['map'](G);return _0x24989c=>_0x56609b['some'](_0x36d161=>_0x36d161(_0x24989c));}if('origin'==_0x5e2433){const _0x34b84d=_0x2b3dd1['window']['location']['origin'];return _0x2f4396=>new URL(_0x2f4396,_0x2b3dd1['document']['baseURI'])['origin']==_0x34b84d;}return'function'==typeof _0x5e2433?_0x5e2433:_0x5e2433 instanceof RegExp?_0x588c60=>!(!_0x588c60['match'](_0x5e2433)&&!_0x588c60['replace'](/^https?:\/\//,'')['match'](_0x5e2433)):()=>!0x1;}function S(_0x5cffc5,_0x4dd029){return _0x52ce38(_0x5cffc5['target'])['includes'](_0x4dd029);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0xfc34e1(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x42e10c,_0x245402,_0x462627){super(),this['_editor']=_0x42e10c,this['_editing']=_0x245402,this['_dialog']=_0x42e10c['plugins']['get'](_0x150243),this['_api']=_0x245402['ctxElement']['getAPI'](),this['_type']=_0x462627,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:_0x32fd8f,model:_0x37add3}=this['_editor'],_0x1e9790=_0x37add3['document']['selection']['getSelectedElement'](),_0x6a1edd=_0x1e9790&&(_0x1e9790['is']('element','imageBlock')||_0x1e9790['is']('element','imageInline'));this['_formView']=new x(_0x32fd8f,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5b4ae3,'title':_(_0x32fd8f,this['_type'],_0x6a1edd?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x9c24c9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x179a13=>!S(_0x179a13,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x15e58a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2f300d=>{const _0x5b07ed=_0x15e58a['length'];for(const _0x4dd1fd of _0x15e58a){const _0x233272=_0x4dd1fd===_0x15e58a[_0x5b07ed-0x1],{cdnUrl:_0x454828,fileInfo:_0xc00e70}=_0x4dd1fd;if(!_0x454828||!_0xc00e70)continue;const {width:_0x552796,height:_0x591319}=_0xc00e70['imageInfo'],_0x4562be=C(_0x454828,_0x552796,_0x591319),_0xfa090f=k(_0x454828,_0x4562be['width']),_0x5645ca={'id':_0xc00e70['uuid'],'type':'image','attributes':{'imageDimension':_0x4562be,..._0xfa090f}};this['_insertAsset'](_0x5645ca,_0x233272,_0x2f300d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x54752b=>{'idle'===_0x54752b['detail']['status']&&!_0x54752b['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3e1c84,_0x271c20,_0x3bf75d){const _0x19178b=this['_editor']['model']['document']['selection'],_0x4be8c6=_0x19178b['getSelectedElement'](),_0x4c662a=!(!_0x4be8c6||!_0x4be8c6['is']('element','imageInline'));_0x3bf75d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3e1c84,_0x4c662a),_0x271c20||_0x3bf75d['setSelection'](_0x19178b['getLastPosition']());}['_insertImage'](_0x1a9dfb,_0x4e4cb9){const _0x264241=this['_editor'],{imageDimension:_0x20f3ea,imageFallbackUrl:_0x1505ce,imageSources:_0x50166d}=_0x1a9dfb['attributes'];_0x264241['execute']('insertImage',{'imageType':_0x4e4cb9?'imageInline':null,'source':{'uploadcareImageId':_0x1a9dfb['id'],'src':_0x1505ce,'sources':_0x50166d,..._0x20f3ea}});}}class w extends _0x165874{['_editing'];['_controller']=null;static get['requires'](){return[_0x150243,o];}constructor(_0x545275){super(_0x545275),this['_editing']=_0x545275['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x161765){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x161765);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x429343,publicKey:_0x5e32b0,signal:_0x3c1165,onProgress:_0x128a5b}){return _0x389f13(_0x429343,{'publicKey':_0x5e32b0,'store':'auto','signal':_0x3c1165,'onProgress':_0x128a5b});}static['getInfo'](_0x49df1e,_0xcf6f78){return _0x1d036d(_0x49df1e,_0xcf6f78);}}class f extends _0x3b2b54{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3f4a4c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x12312d=this['editor'];if(!!!_0x12312d['config']['get']('uploadcare'))return;_0x12312d['plugins']['get'](_0x3f4a4c)['createUploadAdapter']=_0x40d69e=>new A(_0x40d69e,_0x12312d),_0x12312d['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3a6d31,{imageElement:_0x4b9e5f,data:_0x24bdae})=>{_0x12312d['model']['change'](_0x13ddad=>{_0x13ddad['setAttribute']('uploadcareImageId',_0x24bdae['uploadcareImageId'],_0x4b9e5f);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x4b1d96,_0x27a56b){this['loader']=_0x4b1d96,this['editor']=_0x27a56b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xeca719=this['editor']['config']['get']('uploadcare.pubkey'),_0x1cfd89=await this['loader']['file'];return j['upload']({'file':_0x1cfd89,'publicKey':_0xeca719,'signal':this['controller']['signal'],'onProgress':_0x20ab16=>{_0x20ab16&&_0x20ab16['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x20ab16['value']);}})['then'](async _0x3dbda9=>{const {imageFallbackUrl:_0x2070d3,imageSources:_0x3a6d07}=k(_0x3dbda9['cdnUrl'],_0x3dbda9['imageInfo']['width']);return{'uploadcareImageId':_0x3dbda9['uuid'],'default':_0x2070d3,'sources':_0x3a6d07};})['catch'](()=>{const _0x41d595=t('Cannot\x20upload\x20file:')+('\x20'+_0x1cfd89['name']+'.');return Promise['reject'](_0x41d595);});}['abort'](){this['controller']['abort']();}}class o extends _0x3b2b54{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x150243];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2a2e1c){super(_0x2a2e1c),this['ucContextId']=_0x117ec6();}['init'](){const _0x54dd04=this['editor'];_0x54dd04['commands']['add']('uploadcare',new w(_0x54dd04));}['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 _0x139521=_0x2b3dd1['document']['querySelector']('input[uploadcare-file-input]');_0x139521&&_0x139521['remove']();}),async function(_0x1e20d7){const _0x419908=_0x42580c([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]),_0x5f295c=0x3d8d0df,_0x406fd3=0x3dfa1bf^_0x5f295c,_0x142cbe=window[_0x42580c([0x44,0x61,0x74,0x65])][_0x42580c([0x6e,0x6f,0x77])](),_0x413cf7=_0x1e20d7[_0x42580c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x367db4=new window[(_0x42580c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb4460=>{_0x413cf7[_0x42580c([0x6f,0x6e,0x63,0x65])](_0x42580c([0x72,0x65,0x61,0x64,0x79]),_0xb4460);}),_0x394653={[_0x42580c([0x6b,0x74,0x79])]:_0x42580c([0x45,0x43]),[_0x42580c([0x75,0x73,0x65])]:_0x42580c([0x73,0x69,0x67]),[_0x42580c([0x63,0x72,0x76])]:_0x42580c([0x50,0x2d,0x32,0x35,0x36]),[_0x42580c([0x78])]:_0x42580c([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]),[_0x42580c([0x79])]:_0x42580c([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]),[_0x42580c([0x61,0x6c,0x67])]:_0x42580c([0x45,0x53,0x32,0x35,0x36])},_0xccd931=_0x413cf7[_0x42580c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42580c([0x67,0x65,0x74])](_0x42580c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d0171(){let _0x1dac6e,_0x190f32=null,_0x644c8d=null;try{if(_0xccd931==_0x42580c([0x47,0x50,0x4c]))return _0x42580c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1dac6e=_0x182469(),!_0x1dac6e)return _0x42580c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1dac6e[_0x42580c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x644c8d=_0x9e065f(_0x1dac6e[_0x42580c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1dac6e[_0x42580c([0x6a,0x74,0x69])])),await _0x412f51()?_0xa44bab()?_0x4243e1()?_0x42580c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x113785()?(_0x1dac6e[_0x42580c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42580c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x190f32=_0x160bf8(_0x42580c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1dac6e[_0x42580c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42580c([0x74,0x72,0x69,0x61,0x6c])&&(_0x190f32=_0x160bf8(_0x42580c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a9f7f()):_0x42580c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42580c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42580c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42580c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4243e1(){const _0x5afab2=[_0x42580c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42580c([0x74,0x72,0x69,0x61,0x6c])][_0x42580c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dac6e[_0x42580c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x142cbe/0x3e8:0xe10*_0x406fd3;return _0x1dac6e[_0x42580c([0x65,0x78,0x70])]<_0x5afab2;}function _0xa44bab(){const _0x198b07=_0x1dac6e[_0x42580c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x198b07&&(!!_0x198b07[_0x42580c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42580c([0x2a]))||!!_0x198b07[_0x42580c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42580c([0x55,0x50,0x4c,0x43])));}function _0x113785(){const _0x23d7a2=_0x1dac6e[_0x42580c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23d7a2||0x0==_0x23d7a2[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5cd969}=new URL(window[_0x42580c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23d7a2[_0x42580c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cd969))return!0x0;const _0x5e00f5=_0x5cd969[_0x42580c([0x73,0x70,0x6c,0x69,0x74])](_0x42580c([0x2e]));return _0x23d7a2[_0x42580c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f0c9d=>_0x4f0c9d[_0x42580c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42580c([0x2a])))[_0x42580c([0x6d,0x61,0x70])](_0x582e7f=>_0x582e7f[_0x42580c([0x73,0x70,0x6c,0x69,0x74])](_0x42580c([0x2e])))[_0x42580c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36e4bb=>_0x36e4bb[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e00f5[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42580c([0x6d,0x61,0x70])](_0x326ab2=>Array(_0x5e00f5[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x326ab2[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x42580c([0x66,0x69,0x6c,0x6c])](_0x326ab2[0x0]===_0x42580c([0x2a])?_0x42580c([0x2a]):'')[_0x42580c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x326ab2))[_0x42580c([0x73,0x6f,0x6d,0x65])](_0x3954e3=>_0x5e00f5[_0x42580c([0x65,0x76,0x65,0x72,0x79])]((_0x2e0cb2,_0x43cadf)=>_0x3954e3[_0x43cadf]===_0x2e0cb2||_0x3954e3[_0x43cadf]===_0x42580c([0x2a])));}function _0x2a9f7f(){return _0x190f32&&_0x644c8d?new window[(_0x42580c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3db6d2,_0x4930a0)=>{_0x190f32[_0x42580c([0x74,0x68,0x65,0x6e])](_0x3db6d2,_0x4930a0),_0x644c8d[_0x42580c([0x74,0x68,0x65,0x6e])](_0x332736=>{_0x332736!=_0x42580c([0x56,0x61,0x6c,0x69,0x64])&&_0x3db6d2(_0x332736);},_0x4930a0);}):_0x190f32||_0x644c8d||_0x42580c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9e065f(_0x4ef7a9,_0x32170a){return new window[(_0x42580c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3729d4=>{if(_0xdd39ab())return _0x3729d4(_0x42580c([0x56,0x61,0x6c,0x69,0x64]));_0x14e45e(),_0x413cf7[_0x42580c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42580c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7bf681=!0x1;const _0x252618=_0x117ec6();function _0x554b4b(_0x21bb0d){return!!_0x21bb0d&&(typeof _0x21bb0d===_0x42580c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21bb0d===_0x42580c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21bb0d[_0x42580c([0x74,0x68,0x65,0x6e])]===_0x42580c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21bb0d[_0x42580c([0x63,0x61,0x74,0x63,0x68])]===_0x42580c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x509d96(_0x10129d){_0x25a962(_0x10129d)[_0x42580c([0x74,0x68,0x65,0x6e])](_0x3699d2=>{if(!_0x3699d2||_0x3699d2[_0x42580c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42580c([0x6f,0x6b]))return _0x42580c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2820ee(_0x3787f9(_0x252618+_0x32170a))!=_0x3699d2[_0x42580c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42580c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42580c([0x56,0x61,0x6c,0x69,0x64]);})[_0x42580c([0x74,0x68,0x65,0x6e])](_0x4c5fe5=>(_0x130e97(),_0x4c5fe5),()=>{const _0x4d8808=_0x5e6983();return null==_0x4d8808?(_0x130e97(),_0x42580c([0x56,0x61,0x6c,0x69,0x64])):_0x42580c(_0x142cbe-_0x4d8808>(0x27d454df^_0x5f295c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42580c([0x74,0x68,0x65,0x6e])](_0x3729d4)[_0x42580c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3729d4(_0x42580c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57809d=0x3ee3e5f^_0x5f295c;function _0x130e97(){const _0x5ef9e8=_0x42580c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2820ee(_0x3787f9(_0x4ef7a9)),_0x1e6cb9=_0x42cc68(_0x2820ee(window[_0x42580c([0x4d,0x61,0x74,0x68])][_0x42580c([0x63,0x65,0x69,0x6c])](_0x142cbe/_0x57809d)));window[_0x42580c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42580c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ef9e8,_0x1e6cb9);}function _0x5e6983(){const _0x27cf9f=_0x42580c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2820ee(_0x3787f9(_0x4ef7a9)),_0x5ac58c=window[_0x42580c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42580c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27cf9f);return _0x5ac58c?window[_0x42580c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42cc68(_0x5ac58c),0x10)*_0x57809d:null;}function _0x25a962(_0x2042b8){return new window[(_0x42580c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44aa44,_0x2ca691)=>{_0x2042b8[_0x42580c([0x74,0x68,0x65,0x6e])](_0x44aa44,_0x2ca691),window[_0x42580c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ca691,0x3d9041f^_0x5f295c);});}}_0x413cf7[_0x42580c([0x6f,0x6e])](_0x42580c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcc186a,_0x440c27)=>{if(_0x440c27[0x0]!=_0x4ef7a9)return _0x3729d4(_0x42580c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x440c27[0x1]={..._0x440c27[0x1],[_0x42580c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x252618};},{[_0x42580c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42580c([0x68,0x69,0x67,0x68])}),_0x413cf7[_0x42580c([0x6f,0x6e])](_0x42580c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3422e0=>{_0x554b4b(_0x3422e0[_0x42580c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7bf681=!0x0,_0x509d96(_0x3422e0[_0x42580c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42580c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42580c([0x6c,0x6f,0x77])}),_0x367db4[_0x42580c([0x74,0x68,0x65,0x6e])](()=>{_0x7bf681||_0x3729d4(_0x42580c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xdd39ab(){return _0x413cf7[_0x42580c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42580c([0x76,0x69,0x65,0x77])][_0x42580c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42580c([0x61,0x75,0x74,0x6f]);}function _0x14e45e(){_0x413cf7[_0x42580c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42580c([0x76,0x69,0x65,0x77])][_0x42580c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42580c([0x61,0x75,0x74,0x6f]);}}function _0x160bf8(_0xc539b0){const _0x1364d6=[new window[(_0x42580c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18913a=>setTimeout(_0x18913a,0x3d1ee13^_0x5f295c)),_0x367db4[_0x42580c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42580c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x429abf=>{let _0x1de17b=0x0;_0x413cf7[_0x42580c([0x6d,0x6f,0x64,0x65,0x6c])][_0x42580c([0x6f,0x6e])](_0x42580c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2079de,_0x5479c7)=>{_0x5479c7[0x0][_0x42580c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1de17b++,_0x1de17b==(0x3d8d127^_0x5f295c)&&(_0x429abf(),_0x2079de[_0x42580c([0x6f,0x66,0x66])]());});}))];return window[_0x42580c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42580c([0x72,0x61,0x63,0x65])](_0x1364d6)[_0x42580c([0x74,0x68,0x65,0x6e])](()=>_0xc539b0);}async function _0x5ae2da(){await _0x367db4,_0x413cf7[_0x42580c([0x6d,0x6f,0x64,0x65,0x6c])][_0x42580c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21cb10,_0x413cf7[_0x42580c([0x6d,0x6f,0x64,0x65,0x6c])][_0x42580c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21cb10,_0x413cf7[_0x42580c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42580c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1166bb(_0x2c9151){const _0x169c06=_0x14e418();_0x413cf7[_0x169c06]=_0x42580c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c9151,_0x2c9151!=_0x42580c([0x56,0x61,0x6c,0x69,0x64])&&_0x5ae2da();}function _0x14e418(){const _0x2ce9db=window[_0x42580c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42580c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42580c([0x6e,0x6f,0x77])]())[_0x42580c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42580c([0x2e]),'');let _0x3a3b36=_0x42580c([0x52]);for(let _0x3532b0=0x0;_0x3532b0<_0x2ce9db[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3532b0+=0x2){let _0x46706c=window[_0x42580c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ce9db[_0x42580c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3532b0,_0x3532b0+0x2));_0x46706c>=_0x419908[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46706c-=_0x419908[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a3b36+=_0x419908[_0x46706c];}return _0x3a3b36;}function _0x182469(){const _0x381e1d=_0xccd931[_0x42580c([0x73,0x70,0x6c,0x69,0x74])](_0x42580c([0x2e]));if(0x3!=_0x381e1d[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18628e(_0x381e1d[0x1]);function _0x18628e(_0x2f4b6b){const _0x5c4bf8=_0xb8dc8d(_0x2f4b6b);return _0x5c4bf8&&_0x20e4d7()?_0x5c4bf8:null;function _0x20e4d7(){const _0x565895=_0x5c4bf8[_0x42580c([0x6a,0x74,0x69])],_0x476499=window[_0x42580c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x565895[_0x42580c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x565895[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1dac2a={..._0x5c4bf8,[_0x42580c([0x6a,0x74,0x69])]:_0x565895[_0x42580c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x565895[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1dac2a[_0x42580c([0x76,0x63])],_0x3787f9(_0x1dac2a)==_0x476499;}}}async function _0x412f51(){let _0x2cc7c5=!0x0;try{const _0x377a6b=_0xccd931[_0x42580c([0x73,0x70,0x6c,0x69,0x74])](_0x42580c([0x2e])),[_0xac899d,_0x38a90d,_0x7a5c77]=_0x377a6b;return _0x2fd5e4(_0xac899d),await _0xea5be6(_0xac899d,_0x38a90d,_0x7a5c77),_0x2cc7c5;}catch{return!0x1;}function _0x2fd5e4(_0x444aa8){const _0x2572e8=_0xb8dc8d(_0x444aa8);_0x2572e8&&_0x2572e8[_0x42580c([0x61,0x6c,0x67])]==_0x42580c([0x45,0x53,0x32,0x35,0x36])||(_0x2cc7c5=!0x1);}async function _0xea5be6(_0x597858,_0x2b6c77,_0x441a72){const _0xb99e3b=window[_0x42580c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42580c([0x66,0x72,0x6f,0x6d])](_0x1c1ba4(_0x441a72),_0xe4248d=>_0xe4248d[_0x42580c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x509af6=new window[(_0x42580c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42580c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x597858+_0x42580c([0x2e])+_0x2b6c77),_0x5d3be4=window[_0x42580c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42580c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d3be4)return;const _0xa82a67=await _0x5d3be4[_0x42580c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42580c([0x6a,0x77,0x6b]),_0x394653,{[_0x42580c([0x6e,0x61,0x6d,0x65])]:_0x42580c([0x45,0x43,0x44,0x53,0x41]),[_0x42580c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42580c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42580c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d3be4[_0x42580c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42580c([0x6e,0x61,0x6d,0x65])]:_0x42580c([0x45,0x43,0x44,0x53,0x41]),[_0x42580c([0x68,0x61,0x73,0x68])]:{[_0x42580c([0x6e,0x61,0x6d,0x65])]:_0x42580c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa82a67,_0xb99e3b,_0x509af6)||(_0x2cc7c5=!0x1);}}function _0xb8dc8d(_0x2d6a13){return _0x2d6a13[_0x42580c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42580c([0x65,0x79]))?JSON[_0x42580c([0x70,0x61,0x72,0x73,0x65])](_0x1c1ba4(_0x2d6a13)):null;}function _0x1c1ba4(_0x3fc5d8){return window[_0x42580c([0x61,0x74,0x6f,0x62])](_0x3fc5d8[_0x42580c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42580c([0x2b]))[_0x42580c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42580c([0x2f])));}function _0x3787f9(_0x575e80){let _0x2b2ad5=0x1505;function _0x4e9687(_0x582798){for(let _0x4d8deb=0x0;_0x4d8deb<_0x582798[_0x42580c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d8deb++){const _0x2b4de9=_0x582798[_0x42580c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d8deb);_0x2b2ad5=(_0x2b2ad5<<0x5)+_0x2b2ad5+_0x2b4de9,_0x2b2ad5&=_0x2b2ad5;}}function _0x30df6c(_0x583002){Array[_0x42580c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x583002)?_0x583002[_0x42580c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x30df6c):_0x583002&&typeof _0x583002==_0x42580c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42580c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x583002)[_0x42580c([0x73,0x6f,0x72,0x74])]()[_0x42580c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x38696c,_0x570483])=>{_0x4e9687(_0x38696c),_0x30df6c(_0x570483);}):_0x4e9687(window[_0x42580c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x583002));}return _0x30df6c(_0x575e80),_0x2b2ad5>>>0x0;}function _0x2820ee(_0x230a20){return _0x230a20[_0x42580c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42580c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42580c([0x30]));}function _0x42cc68(_0xfc4ca3){return _0xfc4ca3[_0x42580c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42580c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42580c([0x6a,0x6f,0x69,0x6e])]('');}function _0x21cb10(){}function _0x42580c(_0x284ebc){return _0x284ebc['map'](_0x1aad88=>String['fromCharCode'](_0x1aad88))['join']('');}_0x1166bb(await _0x1d0171());}(this);}['_initSchema'](){const _0x32d30a=this['editor']['model']['schema'];_0x32d30a['isRegistered']('imageBlock')&&_0x32d30a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x32d30a['isRegistered']('imageInline')&&_0x32d30a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x35675d=this['editor'];_0x35675d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x35675d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2a06a9=>_0x2a06a9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x261527=_0x35675d['commands']['get']('replaceImageSource');_0x261527&&this['listenTo'](_0x261527,'cleanupImage',(_0x3997ea,[_0x2024ba,_0x5a0067])=>{_0x2024ba['removeAttribute']('uploadcareImageId',_0x5a0067);});}['_initConfig'](){const _0x10d0ad=this['editor']['config']['get']('uploadcare.uploader')||{},_0x39f83d=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2813fc(_0x2b3dd1['document'],'uc-config',{..._0x10d0ad,'pubkey':_0x39f83d,'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']=_0x21a762=>{if('closeMax'==_0x21a762)return'#uc-icon-arrow-down';},_0x2b3dd1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2813fc(_0x2b3dd1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2b3dd1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x518f1d=this['editor']['commands']['get']('insertImage');_0x518f1d&&this['listenTo'](_0x518f1d,'execute',()=>{const _0x2d616b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2d616b&&_0x2d616b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2d616b);});});const _0x14412e=this['editor']['commands']['get']('uploadcareImageReplace');_0x14412e&&this['listenTo'](_0x14412e,'execute',()=>{const _0xf21587=this['editor']['model']['document']['selection']['getSelectedElement']();_0xf21587&&_0xf21587['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xf21587);});});}}class tt extends _0x3b2b54{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13ac0e){super(_0x13ac0e),_0x13ac0e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x35f474['defineComponents'](_0x35f474);}}class ii extends _0x1fba1c{constructor(_0x4bfac9){super(_0x4bfac9);const t=_0x4bfac9['t'],_0x23cbc5=this['bindTemplate'],_0x13b72b=new _0xb1bf8d();_0x13b72b['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':[_0x13b72b,{'text':_0x23cbc5['to']('imageUploadProgress',_0x12ab21=>t('Loading\x20image...')+'\x20('+(_0x12ab21||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 _0x1fba1c{constructor(_0x1267b4){super(_0x1267b4);const t=_0x1267b4['t'];this['set']('errorType',null);const _0x4ee6fe=new _0x33d51a(_0x1267b4);_0x4ee6fe['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4ee6fe['withText']=!0x0,_0x4ee6fe['class']='ck-button-action',_0x4ee6fe['on']('execute',()=>{this['fire']('retry');}),_0x4ee6fe['bind']('isVisible')['to'](this,'errorType',_0x318ebf=>'NotFound'!==_0x318ebf);const _0x45d1df=new _0x594da1();_0x45d1df['content']=_0x4123d2,_0x45d1df['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x19f4d0=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':[_0x45d1df,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x19f4d0['to']('errorType',_0x555491=>t('NotFound'!==_0x555491?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4ee6fe]},{'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 _0x1fba1c{constructor(_0x36c902,_0x5160cd){super(_0x36c902);const _0x3a8cb4=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5160cd,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3a8cb4['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x37a578,_0x2e6281,_0x340998){super(_0x37a578),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x37a578),this['_errorView']=new ti(_0x37a578),this['_editingView']=new ei(_0x37a578,_0x340998),this['_focusableView']=new _0x1fba1c(_0x37a578),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2e6281),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'],_0x4f4fdf=>{this['_addUploadcareImageEditorListeners'](_0x4f4fdf);});}),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'](_0x4af561,_0x33d011){const _0x294c85='uc-cloud-image-editor',_0x5f30f2=_0x4af561['querySelector'](_0x294c85);if(_0x5f30f2)return _0x33d011(_0x5f30f2);const _0x4fd3ce=new MutationObserver(_0x523f90=>{const _0x4fa5eb=_0x523f90['filter'](_0x50df87=>_0x50df87['target']===_0x4af561&&_0x50df87['addedNodes']['length']>0x0&&_0x50df87['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x294c85);_0x4fa5eb['length']&&(_0x4fd3ce['disconnect'](),_0x33d011(_0x4fa5eb[0x0]['addedNodes'][0x0]));});_0x4fd3ce['observe'](_0x4af561,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x9a2127){_0x9a2127['addEventListener']('apply',_0x4776d7=>{this['fire']('apply',{'imageSrc':_0x4776d7['detail']['cdnUrl']});}),_0x9a2127['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xfc34e1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x30dc5b,_0x327c21,_0x5ed392){super(),this['_editor']=_0x30dc5b,this['_dialog']=_0x327c21,this['_imageElement']=_0x5ed392,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 _0x5b058e=this['_imageElement'],_0x5ab46b=_0x5b058e['getAttribute']('uploadcareImageId'),_0x17b229=_0x5b058e['getAttribute']('src');if(_0x5ab46b)await this['_loadImageInfo'](_0x5ab46b,_0x17b229);else{if(this['_imageCache']['has'](_0x17b229)){const _0x247d85=this['_imageCache']['get'](_0x17b229);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x247d85['url'],this['imageDimension']=_0x247d85['dimension'],this['imageId']=_0x247d85['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x59203d}=this['_editor'],t=_0x59203d['t'],_0x6acac5=new X(_0x59203d,this['imageStatus'],this['_attributes']);_0x6acac5['bind']('status')['to'](this,'imageStatus'),_0x6acac5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x6acac5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x6acac5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x6acac5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2f1301,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x6acac5,'position':_0x9c24c9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x6acac5['focus']();},'onHide':()=>{_0x6acac5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x79c61f=>!S(_0x79c61f,_0x6acac5['element'])}});}['_loadImageInfo'](_0x5e279a,_0x4d2140){return j['getInfo'](_0x5e279a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xb30885=>{const {width:_0x2ea112,height:_0xe15297}=_0xb30885['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4d2140,this['imageDimension']={'width':_0x2ea112,'height':_0xe15297},this['imageId']=_0x5e279a;})['catch'](_0x246bc1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x246bc1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5cf5ce,_0xe8d71e){return this['_getImageAsFile'](_0x5cf5ce)['then'](_0x3f35fb=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xe8d71e['signal'],'file':_0x3f35fb,'onProgress':_0x32a669=>{_0x32a669&&_0x32a669['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x32a669['value']));}}))['then'](_0x5a8113=>{const {width:_0xe76268,height:_0x59061b}=_0x5a8113['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a8113['cdnUrl'],this['imageDimension']={'width':_0xe76268,'height':_0x59061b},this['imageId']=_0x5a8113['uuid'],this['imageUploadProgress']=null;const _0x4c6a9e=_0x5cf5ce['getAttribute']('src');this['_imageCache']['set'](_0x4c6a9e,{'id':_0x5a8113['uuid'],'url':_0x5a8113['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4f0a46=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f0a46['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3d1aba,_0x3a382b){_0x3d1aba['on']('apply',(_0x3c4045,_0x33ce2a)=>{this['_replaceImage'](_0x3a382b,_0x33ce2a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3d1aba['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3d1aba['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x325f12,_0x26b907,_0x3e8f64){const _0x58ef53=this['_editor'],{width:_0x4d7054,height:_0x1abb91}=C(_0x26b907,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x42e5bd,imageSources:_0x12727f}=k(_0x26b907,_0x4d7054);_0x58ef53['model']['change'](_0x4edc92=>{if('$graveyard'===_0x325f12['root']['rootName']){_0x58ef53['execute']('insertImage',{'imageType':_0x325f12['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x325f12['getAttributes']()),'uploadcareImageId':_0x3e8f64,'src':_0x42e5bd,'sources':_0x12727f,'width':_0x4d7054,'height':_0x1abb91}});const _0x122052=_0x325f12['getChildren']();_0x325f12=_0x58ef53['model']['document']['selection']['getSelectedElement']();for(const _0xfa3c1d of _0x122052)_0x4edc92['append'](_0x4edc92['cloneElement'](_0xfa3c1d),_0x325f12);}else _0x4edc92['setSelection'](_0x325f12,'on'),_0x58ef53['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x325f12['getAttributes']()),'uploadcareImageId':_0x3e8f64,'src':_0x42e5bd,'sources':_0x12727f,'width':_0x4d7054,'height':_0x1abb91},_0x325f12);_0x4edc92['setSelection'](_0x325f12,'on');});}async['_getImageAsFile'](_0x4d2b6f){const _0x2521ba=_0x2b3dd1['window'],_0x30ca32=_0x2b3dd1['document']['location']['href'],_0x96cc5c=new _0x2521ba['URL'](_0x4d2b6f['getAttribute']('src'),_0x30ca32);if('data:'===_0x96cc5c['protocol']){const _0x594374=_0x96cc5c['href']['split'](','),_0x1775a4=_0x594374[0x0]['match'](/:(.*?);/)[0x1],_0x4eaceb=_0x1775a4['split']('/')[0x1],_0x4d3648=_0x2521ba['atob'](_0x594374[_0x594374['length']-0x1]);let _0x1f6ad8=_0x4d3648['length'];const _0x54793a=new _0x2521ba['Uint8Array'](_0x1f6ad8);for(;_0x1f6ad8--;)_0x54793a[_0x1f6ad8]=_0x4d3648['charCodeAt'](_0x1f6ad8);return new _0x2521ba['File']([_0x54793a],'image.'+_0x4eaceb,{'type':_0x1775a4});}const _0x51cbd4=_0x96cc5c['href']['split']('/'),_0x2f28d5=_0x51cbd4[_0x51cbd4['length']-0x1],_0x5a746c=_0x2f28d5['split']('.')[0x1];return _0x2521ba['fetch'](_0x96cc5c['href'])['then'](_0x548f1b=>_0x548f1b['clone']()['blob']())['then'](_0x36484f=>new _0x2521ba['File']([_0x36484f],_0x2f28d5,{'type':'image/'+_0x5a746c}));}}class O extends _0x165874{['imageEditController'];static get['requires'](){return[_0x150243];}['_isEditable'];constructor(_0x211afa){super(_0x211afa),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x241bf6){const _0x3f87b2=G(_0x241bf6);return _0x1ff906=>!(!_0x1ff906||!_0x1ff906['is']('element','imageBlock')&&!_0x1ff906['is']('element','imageInline'))&&(!!_0x1ff906['hasAttribute']('uploadcareImageId')||!!_0x1ff906['hasAttribute']('src')&&_0x3f87b2(_0x1ff906['getAttribute']('src')));}(_0x211afa['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x34f84e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x34f84e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5bc584=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5bc584&&(_0x5bc584['is']('element','imageBlock')||_0x5bc584['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x150243),_0x5bc584),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x165874{['refresh'](){const _0x158116=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x158116&&(_0x158116['is']('element','imageBlock')||_0x158116['is']('element','imageInline')));}['execute'](_0x47ba8e){const _0x1acede=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x59127f=>{_0x59127f['setAttributes'](_0x47ba8e,_0x1acede),_0x59127f['removeAttribute']('srcset',_0x1acede),_0x59127f['removeAttribute']('sizes',_0x1acede);});}}class m extends _0x3b2b54{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xee710e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x11ff52}=this;_0x11ff52['commands']['add']('uploadcareImageEdit',new O(_0x11ff52)),_0x11ff52['commands']['add']('uploadcareImageReplace',new R(_0x11ff52));}}class g extends _0x3b2b54{['_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 _0x20f122=this['editor'];_0x20f122['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2d55fc=>{const _0x507b15=_0x20f122['commands']['get']('uploadcareImageEdit'),_0x38be10=new _0x33d51a(_0x2d55fc),t=_0x2d55fc['t'];return _0x38be10['set']({'icon':_0x2f1301,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x38be10['bind']('isEnabled')['to'](_0x507b15),_0x38be10['bind']('isOn')['to'](_0x507b15,'isActive'),this['listenTo'](_0x38be10,'execute',()=>{_0x20f122['execute']('uploadcareImageEdit'),_0x20f122['editing']['view']['focus']();}),_0x38be10;}),this['_initConfig']();}['_initConfig'](){const _0x2e7834=_0x2813fc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e7834),this['listenTo'](this['editor'],'destroy',()=>{_0x2e7834['remove']();});}}class et extends _0x3b2b54{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 _0x2c681b,Command as _0x48e403}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4b261b,IconGooglePhotos as _0xf23152,IconGoogleDrive as _0x4790e0,IconFacebook as _0x65b161,IconDropbox as _0x4aa7b1,IconUploadcareLink as _0x427f12,IconUploadcareImageUpload as _0x64136b,IconError as _0x754c18,IconUploadcareImageEdit as _0x4fda93}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2d304f,MenuBarMenuListItemButtonView as _0x130484,View as _0x190d11,FocusCycler as _0x15270b,Dialog as _0x15d45f,DialogViewPosition as _0x225e3e,SpinnerView as _0x5a3007,IconView as _0x13fb2d,Notification as _0x8e4201}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x31ffdb,DomEmitterMixin as _0x283c1a,global as _0x3e4ebd,getAncestors as _0x1df314,ObservableMixin as _0x36c90a,uid as _0x16a617,createElement as _0x1e526f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x16972c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x48c9c8,info as _0x3737dd}from'@uploadcare/upload-client';import*as _0x135cd4 from'@uploadcare/file-uploader';var i=function(_0x10daa0){return _0x10daa0['Local']='local',_0x10daa0['URL']='url',_0x10daa0['Dropbox']='dropbox',_0x10daa0['GDrive']='gdrive',_0x10daa0['Facebook']='facebook',_0x10daa0['GPhotos']='gphotos',_0x10daa0['OneDrive']='onedrive',_0x10daa0;}({});function _(_0x5f0402,_0x42c58a,_0xbe9d5a){const t=_0x5f0402['t'],_0x427373=_0x5f0402['t'];switch(_0x42c58a){case i['Local']:return{'text':_0x427373('Insert'===_0xbe9d5a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x427373('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xbe9d5a?_0x427373('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x427373('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xbe9d5a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xbe9d5a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xbe9d5a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xbe9d5a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xbe9d5a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x42c58a;}}class e extends _0x2c681b{['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 _0x442ec2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x241340;for(const _0x2355ee in _0x442ec2){const _0x16fd1a=_0x2355ee,_0x1f13f8=_0x442ec2[_0x16fd1a];if('uploadcareLicenseKeyValid'==_0x1f13f8||'uploadcareLicenseKeyInvalid'==_0x1f13f8||'uploadcareLicenseKeyExpired'==_0x1f13f8||'uploadcareLicenseKeyDomainLimit'==_0x1f13f8||'uploadcareLicenseKeyNotAllowed'==_0x1f13f8||'uploadcareLicenseKeyEvaluationLimit'==_0x1f13f8||'uploadcareLicenseKeyTrialLimit'==_0x1f13f8||'uploadcareLicenseKeyUsageLimit'==_0x1f13f8){delete _0x442ec2[_0x16fd1a],_0x241340=_0x1f13f8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x241340&&_0x442ec2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x241340&&_0x442ec2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x241340&&_0x442ec2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x241340&&_0x442ec2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x241340&&_0x442ec2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x241340&&_0x442ec2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x241340&&_0x442ec2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1d3af8}=this,_0x2b89e6=_0x1d3af8['commands']['get']('uploadcare');if(!_0x2b89e6)return;const _0x3f678e=this['_normalizeConfigSourceList'](_0x1d3af8['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x41352b,_0x7867d8)=>{const _0x283232=this['_getIntegrationKey'](_0x7867d8['type']);return _0x41352b[_0x283232]||(_0x41352b[_0x283232]=[]),_0x41352b[_0x283232]['push'](_0x7867d8),_0x41352b;},{});_0x1d3af8['plugins']['has']('ImageInsertUI')&&_0x1d3af8['commands']['get']('uploadcare')&&Object['entries'](_0x3f678e)['forEach'](([_0x4f100b,_0x509833])=>{_0x1d3af8['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4f100b,'observable':()=>_0x2b89e6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x509833),'formViewCreator':()=>this['_createDropdownButtons'](_0x509833),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x509833),'override':'assetManager'!==_0x4f100b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1c3572){const {locale:_0x5a1e85}=this['editor'];return _0x1c3572['map'](_0x4c50f5=>{const _0x45c29f=_(_0x5a1e85,_0x4c50f5,'Insert');switch(_0x4c50f5){case i['Local']:return{'icon':_0x64136b,'type':i['Local'],..._0x45c29f};case i['URL']:return{'icon':_0x427f12,'type':i['URL'],..._0x45c29f};case i['Dropbox']:return{'icon':_0x4aa7b1,'type':i['Dropbox'],..._0x45c29f};case i['Facebook']:return{'icon':_0x65b161,'type':i['Facebook'],..._0x45c29f};case i['GDrive']:return{'icon':_0x4790e0,'type':i['GDrive'],..._0x45c29f};case i['GPhotos']:return{'icon':_0xf23152,'type':i['GPhotos'],..._0x45c29f};case i['OneDrive']:return{'icon':_0x4b261b,'type':i['OneDrive'],..._0x45c29f};}});}['_getIntegrationKey'](_0x6872e3){switch(_0x6872e3){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x23f41e,_0x48cfa1){const _0x3e5e1b=this['editor'],_0x335488=new _0x23f41e(_0x3e5e1b['locale']),_0x797895=_0x3e5e1b['commands']['get']('uploadcare');return _0x335488['bind']('isEnabled')['to'](_0x797895),_0x335488['on']('execute',()=>{_0x797895['execute'](_0x48cfa1);}),_0x335488;}['_createToolbarButton'](_0x2e5a71){const {locale:_0x1b3aad}=this['editor'],_0x5a088e=this['editor']['plugins']['get']('ImageInsertUI'),_0x210692=_0x2e5a71[0x0],_0x42773b=this['_createButton'](_0x2d304f,_0x210692['type']);return _0x42773b['icon']=_0x210692['icon'],_0x42773b['bind']('label')['to'](_0x5a088e,'isImageSelected',_0x2e89c2=>_(_0x1b3aad,_0x210692['type'],_0x2e89c2?'Replace':'Insert')['text']),_0x42773b['tooltip']=!0x0,_0x42773b;}['_createDropdownButtons'](_0x4eecaf){const {locale:_0x420913}=this['editor'],_0x138c34=this['editor']['plugins']['get']('ImageInsertUI');return _0x4eecaf['map'](_0x393a6b=>{const _0x2d769e=this['_createButton'](_0x2d304f,_0x393a6b['type']);return _0x2d769e['withText']=!0x0,_0x2d769e['icon']=_0x393a6b['icon'],_0x2d769e['bind']('label')['to'](_0x138c34,'isImageSelected',_0x349f30=>_(_0x420913,_0x393a6b['type'],_0x349f30?'Replace':'Insert')['text']),_0x2d769e;});}['_createMenuBarButtons'](_0x8c1ff8){return _0x8c1ff8['map'](_0x3a365b=>{const _0x2dcada=this['_createButton'](_0x130484,_0x3a365b['type']);return _0x2dcada['icon']=_0x3a365b['icon'],_0x2dcada['label']=_0x3a365b['shortText'],_0x2dcada;});}}class F extends _0x190d11{['focusTracker'];['focusCycler'];constructor(_0x140a1b){super(_0x140a1b),this['focusTracker']=new _0x31ffdb(),this['focusCycler']=new _0x15270b({'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(_0x3e0428,_0x27b376){super(_0x3e0428),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-'+_0x27b376}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x56aeca,_0x314b3e){const _0x38e3dc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xb0edd7=>_0xb0edd7<=_0x314b3e)['map'](_0x32a81b=>_0x56aeca['replace'](/\/$/,'')+'/-/resize/'+_0x32a81b+'x/\x20'+_0x32a81b+'w');return{'imageFallbackUrl':_0x56aeca,'imageSources':[{'srcset':_0x38e3dc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x314b3e+'px)\x20100vw,\x20'+_0x314b3e+'px','type':'image/webp'}]};}function C(_0x2b80a0,_0xf05e7d,_0x216408){const _0x16cde6=_0x2b80a0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x16cde6?parseInt(_0x16cde6[0x1],0xa):_0xf05e7d,'height':_0x16cde6?parseInt(_0x16cde6[0x2],0xa):_0x216408};}function p(_0x560ced,_0x5a7020){const _0x177478=new(_0x283c1a())(),_0x5566b0=_0x560ced['plugins']['get']('ImageUtils'),_0x176969=_0x560ced['editing']['mapper']['toViewElement'](_0x5a7020),_0x337a8d=_0x5566b0['findViewImgElement'](_0x176969),_0x2fbe2d=_0x560ced['editing']['view']['domConverter']['viewToDom'](_0x337a8d),_0x5e814b=_0x5a7020['getAttribute']('width'),_0x336df0=_0x5a7020['getAttribute']('height'),_0x2d3878='image-processing';_0x560ced['editing']['view']['change'](_0x2798a7=>{_0x2798a7['addClass'](_0x2d3878,_0x176969),_0x2798a7['setStyle']('aspect-ratio',_0x5e814b+'/'+_0x336df0,_0x337a8d);}),_0x177478['listenTo'](_0x2fbe2d,'load',()=>{_0x177478['stopListening'](_0x2fbe2d,'load'),_0x560ced['editing']['view']['change'](_0x3ccd50=>{_0x3ccd50['removeClass'](_0x2d3878,_0x176969),_0x3ccd50['removeStyle']('aspect-ratio',_0x337a8d);});});}function z(_0x3654ea){if(Array['isArray'](_0x3654ea)){const _0x3202fa=_0x3654ea['map'](z);return _0x21f1ac=>_0x3202fa['some'](_0x24dd2b=>_0x24dd2b(_0x21f1ac));}if('origin'==_0x3654ea){const _0x1c38b1=_0x3e4ebd['window']['location']['origin'];return _0x3903f4=>new URL(_0x3903f4,_0x3e4ebd['document']['baseURI'])['origin']==_0x1c38b1;}return'function'==typeof _0x3654ea?_0x3654ea:_0x3654ea instanceof RegExp?_0x313059=>!(!_0x313059['match'](_0x3654ea)&&!_0x313059['replace'](/^https?:\/\//,'')['match'](_0x3654ea)):()=>!0x1;}function S(_0x1edbae,_0x2b3fc0){return _0x1df314(_0x1edbae['target'])['includes'](_0x2b3fc0);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x36c90a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x110c94,_0x102d09,_0x28623f){super(),this['_editor']=_0x110c94,this['_editing']=_0x102d09,this['_dialog']=_0x110c94['plugins']['get'](_0x15d45f),this['_api']=_0x102d09['ctxElement']['getAPI'](),this['_type']=_0x28623f,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:_0x24cc1b,model:_0x2afe1d}=this['_editor'],_0x5954fe=_0x2afe1d['document']['selection']['getSelectedElement'](),_0xaa3975=_0x5954fe&&(_0x5954fe['is']('element','imageBlock')||_0x5954fe['is']('element','imageInline'));this['_formView']=new x(_0x24cc1b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x64136b,'title':_(_0x24cc1b,this['_type'],_0xaa3975?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x225e3e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5df844=>!S(_0x5df844,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x127afe}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xa6e33c=>{const _0x35c790=_0x127afe['length'];for(const _0x322aca of _0x127afe){const _0x52ee10=_0x322aca===_0x127afe[_0x35c790-0x1],{cdnUrl:_0x2d8a5b,fileInfo:_0x123fb1}=_0x322aca;if(!_0x2d8a5b||!_0x123fb1)continue;const {width:_0x43030e,height:_0x478ce5}=_0x123fb1['imageInfo'],_0x1bc8da=C(_0x2d8a5b,_0x43030e,_0x478ce5),_0x41ae4b=k(_0x2d8a5b,_0x1bc8da['width']),_0x277314={'id':_0x123fb1['uuid'],'type':'image','attributes':{'imageDimension':_0x1bc8da,..._0x41ae4b}};this['_insertAsset'](_0x277314,_0x52ee10,_0xa6e33c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4cc7d6=>{'idle'===_0x4cc7d6['detail']['status']&&!_0x4cc7d6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x40531f,_0x2a5717,_0x1514a1){const _0x4cff9f=this['_editor']['model']['document']['selection'],_0x512969=_0x4cff9f['getSelectedElement'](),_0x3a9ad9=!(!_0x512969||!_0x512969['is']('element','imageInline'));_0x1514a1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x40531f,_0x3a9ad9),_0x2a5717||_0x1514a1['setSelection'](_0x4cff9f['getLastPosition']());}['_insertImage'](_0x38ca3a,_0x10c0a2){const _0x5c44d5=this['_editor'],{imageDimension:_0x211ea6,imageFallbackUrl:_0x84510f,imageSources:_0x311411}=_0x38ca3a['attributes'];_0x5c44d5['execute']('insertImage',{'imageType':_0x10c0a2?'imageInline':null,'source':{'uploadcareImageId':_0x38ca3a['id'],'src':_0x84510f,'sources':_0x311411,..._0x211ea6}});}}class w extends _0x48e403{['_editing'];['_controller']=null;static get['requires'](){return[_0x15d45f,o];}constructor(_0x129a19){super(_0x129a19),this['_editing']=_0x129a19['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3022c4){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3022c4);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x527753,publicKey:_0x47cf3e,signal:_0x2f8a68,onProgress:_0x380c3a}){return _0x48c9c8(_0x527753,{'publicKey':_0x47cf3e,'store':'auto','signal':_0x2f8a68,'onProgress':_0x380c3a});}static['getInfo'](_0x76e226,_0x176dbe){return _0x3737dd(_0x76e226,_0x176dbe);}}class f extends _0x2c681b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x16972c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4806c0=this['editor'];if(!!!_0x4806c0['config']['get']('uploadcare'))return;_0x4806c0['plugins']['get'](_0x16972c)['createUploadAdapter']=_0x38ec62=>new A(_0x38ec62,_0x4806c0),_0x4806c0['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x14853c,{imageElement:_0x301b61,data:_0xa88665})=>{_0x4806c0['model']['change'](_0x391931=>{_0x391931['setAttribute']('uploadcareImageId',_0xa88665['uploadcareImageId'],_0x301b61);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x5c972a,_0x16c1aa){this['loader']=_0x5c972a,this['editor']=_0x16c1aa,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x58258a=this['editor']['config']['get']('uploadcare.pubkey'),_0x224fe6=await this['loader']['file'];return j['upload']({'file':_0x224fe6,'publicKey':_0x58258a,'signal':this['controller']['signal'],'onProgress':_0x4aeace=>{_0x4aeace&&_0x4aeace['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4aeace['value']);}})['then'](async _0x31bd4c=>{const {imageFallbackUrl:_0x54ae26,imageSources:_0x515729}=k(_0x31bd4c['cdnUrl'],_0x31bd4c['imageInfo']['width']);return{'uploadcareImageId':_0x31bd4c['uuid'],'default':_0x54ae26,'sources':_0x515729};})['catch'](()=>{const _0xf72628=t('Cannot\x20upload\x20file:')+('\x20'+_0x224fe6['name']+'.');return Promise['reject'](_0xf72628);});}['abort'](){this['controller']['abort']();}}class o extends _0x2c681b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x15d45f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x54a160){super(_0x54a160),this['ucContextId']=_0x16a617();}['init'](){const _0x420b3b=this['editor'];_0x420b3b['commands']['add']('uploadcare',new w(_0x420b3b));}['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 _0xc55580=_0x3e4ebd['document']['querySelector']('input[uploadcare-file-input]');_0xc55580&&_0xc55580['remove']();}),async function(_0x54e2c0){const _0x153b68=_0x1e607f([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]),_0x24c41f=0x3d8d0df,_0x40e38a=0x3dfa14f^_0x24c41f,_0x899e44=window[_0x1e607f([0x44,0x61,0x74,0x65])][_0x1e607f([0x6e,0x6f,0x77])](),_0x435d45=_0x54e2c0[_0x1e607f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3995fb=new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1abb88=>{_0x435d45[_0x1e607f([0x6f,0x6e,0x63,0x65])](_0x1e607f([0x72,0x65,0x61,0x64,0x79]),_0x1abb88);}),_0x8470a7={[_0x1e607f([0x6b,0x74,0x79])]:_0x1e607f([0x45,0x43]),[_0x1e607f([0x75,0x73,0x65])]:_0x1e607f([0x73,0x69,0x67]),[_0x1e607f([0x63,0x72,0x76])]:_0x1e607f([0x50,0x2d,0x32,0x35,0x36]),[_0x1e607f([0x78])]:_0x1e607f([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]),[_0x1e607f([0x79])]:_0x1e607f([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]),[_0x1e607f([0x61,0x6c,0x67])]:_0x1e607f([0x45,0x53,0x32,0x35,0x36])},_0x177298=_0x435d45[_0x1e607f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e607f([0x67,0x65,0x74])](_0x1e607f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x570803(){let _0x137a66,_0x249503=null,_0x533e3b=null;try{if(_0x177298==_0x1e607f([0x47,0x50,0x4c]))return _0x1e607f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x137a66=_0x26e202(),!_0x137a66)return _0x1e607f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x137a66[_0x1e607f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x533e3b=_0x17521d(_0x137a66[_0x1e607f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x137a66[_0x1e607f([0x6a,0x74,0x69])])),await _0x101430()?_0x1db94c()?_0x416e62()?_0x1e607f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1038f6()?(_0x137a66[_0x1e607f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e607f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x249503=_0x520ff1(_0x1e607f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x137a66[_0x1e607f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e607f([0x74,0x72,0x69,0x61,0x6c])&&(_0x249503=_0x520ff1(_0x1e607f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2b4930()):_0x1e607f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e607f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e607f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e607f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x416e62(){const _0x379e55=[_0x1e607f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e607f([0x74,0x72,0x69,0x61,0x6c])][_0x1e607f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x137a66[_0x1e607f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x899e44/0x3e8:0xe10*_0x40e38a;return _0x137a66[_0x1e607f([0x65,0x78,0x70])]<_0x379e55;}function _0x1db94c(){const _0x59d715=_0x137a66[_0x1e607f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x59d715&&(!!_0x59d715[_0x1e607f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e607f([0x2a]))||!!_0x59d715[_0x1e607f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e607f([0x55,0x50,0x4c,0x43])));}function _0x1038f6(){const _0x4ba292=_0x137a66[_0x1e607f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ba292||0x0==_0x4ba292[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a0aa9}=new URL(window[_0x1e607f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ba292[_0x1e607f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a0aa9))return!0x0;const _0x1ac3e1=_0x3a0aa9[_0x1e607f([0x73,0x70,0x6c,0x69,0x74])](_0x1e607f([0x2e]));return _0x4ba292[_0x1e607f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x323b35=>_0x323b35[_0x1e607f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e607f([0x2a])))[_0x1e607f([0x6d,0x61,0x70])](_0x32dbca=>_0x32dbca[_0x1e607f([0x73,0x70,0x6c,0x69,0x74])](_0x1e607f([0x2e])))[_0x1e607f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a796c=>_0x5a796c[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ac3e1[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e607f([0x6d,0x61,0x70])](_0x42cdee=>Array(_0x1ac3e1[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42cdee[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e607f([0x66,0x69,0x6c,0x6c])](_0x42cdee[0x0]===_0x1e607f([0x2a])?_0x1e607f([0x2a]):'')[_0x1e607f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42cdee))[_0x1e607f([0x73,0x6f,0x6d,0x65])](_0x590649=>_0x1ac3e1[_0x1e607f([0x65,0x76,0x65,0x72,0x79])]((_0x18941e,_0x46be2a)=>_0x590649[_0x46be2a]===_0x18941e||_0x590649[_0x46be2a]===_0x1e607f([0x2a])));}function _0x2b4930(){return _0x249503&&_0x533e3b?new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cf050,_0x1eb916)=>{_0x249503[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x2cf050,_0x1eb916),_0x533e3b[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x2a0e35=>{_0x2a0e35!=_0x1e607f([0x56,0x61,0x6c,0x69,0x64])&&_0x2cf050(_0x2a0e35);},_0x1eb916);}):_0x249503||_0x533e3b||_0x1e607f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17521d(_0x25ee71,_0x2e5570){return new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26b40d=>{if(_0x400e68())return _0x26b40d(_0x1e607f([0x56,0x61,0x6c,0x69,0x64]));_0x4d8ce8(),_0x435d45[_0x1e607f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e607f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e65b0=!0x1;const _0x1a58ee=_0x16a617();function _0x5801a2(_0x724b7f){return!!_0x724b7f&&(typeof _0x724b7f===_0x1e607f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x724b7f===_0x1e607f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x724b7f[_0x1e607f([0x74,0x68,0x65,0x6e])]===_0x1e607f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x724b7f[_0x1e607f([0x63,0x61,0x74,0x63,0x68])]===_0x1e607f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c37f1(_0x32bcee){_0xc3c6a6(_0x32bcee)[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x514ee1=>{if(!_0x514ee1||_0x514ee1[_0x1e607f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e607f([0x6f,0x6b]))return _0x1e607f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1346a5(_0x268f7f(_0x1a58ee+_0x2e5570))!=_0x514ee1[_0x1e607f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e607f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e607f([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x3872d9=>(_0x5f4eb3(),_0x3872d9),()=>{const _0x4ce58b=_0x35ad71();return null==_0x4ce58b?(_0x5f4eb3(),_0x1e607f([0x56,0x61,0x6c,0x69,0x64])):_0x1e607f(_0x899e44-_0x4ce58b>(0x27d454df^_0x24c41f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x26b40d)[_0x1e607f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26b40d(_0x1e607f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3db3ed=0x3ee3e5f^_0x24c41f;function _0x5f4eb3(){const _0x457a38=_0x1e607f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1346a5(_0x268f7f(_0x25ee71)),_0x24ccee=_0x56cba6(_0x1346a5(window[_0x1e607f([0x4d,0x61,0x74,0x68])][_0x1e607f([0x63,0x65,0x69,0x6c])](_0x899e44/_0x3db3ed)));window[_0x1e607f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e607f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x457a38,_0x24ccee);}function _0x35ad71(){const _0x39fa29=_0x1e607f([0x6c,0x6c,0x63,0x74,0x2d])+_0x1346a5(_0x268f7f(_0x25ee71)),_0x3aa114=window[_0x1e607f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e607f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39fa29);return _0x3aa114?window[_0x1e607f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56cba6(_0x3aa114),0x10)*_0x3db3ed:null;}function _0xc3c6a6(_0x2b077e){return new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5463c3,_0x422136)=>{_0x2b077e[_0x1e607f([0x74,0x68,0x65,0x6e])](_0x5463c3,_0x422136),window[_0x1e607f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x422136,0x3d9041f^_0x24c41f);});}}_0x435d45[_0x1e607f([0x6f,0x6e])](_0x1e607f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f81d1,_0x20f874)=>{if(_0x20f874[0x0]!=_0x25ee71)return _0x26b40d(_0x1e607f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20f874[0x1]={..._0x20f874[0x1],[_0x1e607f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a58ee};},{[_0x1e607f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e607f([0x68,0x69,0x67,0x68])}),_0x435d45[_0x1e607f([0x6f,0x6e])](_0x1e607f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x41b9e7=>{_0x5801a2(_0x41b9e7[_0x1e607f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e65b0=!0x0,_0x1c37f1(_0x41b9e7[_0x1e607f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e607f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e607f([0x6c,0x6f,0x77])}),_0x3995fb[_0x1e607f([0x74,0x68,0x65,0x6e])](()=>{_0x2e65b0||_0x26b40d(_0x1e607f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x400e68(){return _0x435d45[_0x1e607f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e607f([0x76,0x69,0x65,0x77])][_0x1e607f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e607f([0x61,0x75,0x74,0x6f]);}function _0x4d8ce8(){_0x435d45[_0x1e607f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e607f([0x76,0x69,0x65,0x77])][_0x1e607f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e607f([0x61,0x75,0x74,0x6f]);}}function _0x520ff1(_0x4ddf56){const _0x55f2ef=[new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a5c4d=>setTimeout(_0x3a5c4d,0x3d1ee13^_0x24c41f)),_0x3995fb[_0x1e607f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3568cb=>{let _0xa687bc=0x0;_0x435d45[_0x1e607f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e607f([0x6f,0x6e])](_0x1e607f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x583a6d,_0x549734)=>{_0x549734[0x0][_0x1e607f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa687bc++,_0xa687bc==(0x3d8d127^_0x24c41f)&&(_0x3568cb(),_0x583a6d[_0x1e607f([0x6f,0x66,0x66])]());});}))];return window[_0x1e607f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e607f([0x72,0x61,0x63,0x65])](_0x55f2ef)[_0x1e607f([0x74,0x68,0x65,0x6e])](()=>_0x4ddf56);}async function _0x3ff1df(){await _0x3995fb,_0x435d45[_0x1e607f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e607f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf81d21,_0x435d45[_0x1e607f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e607f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf81d21,_0x435d45[_0x1e607f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e607f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3867cf(_0x4c273f){const _0x5ad4db=_0x280e8d();_0x435d45[_0x5ad4db]=_0x1e607f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c273f,_0x4c273f!=_0x1e607f([0x56,0x61,0x6c,0x69,0x64])&&_0x3ff1df();}function _0x280e8d(){const _0x2af23c=window[_0x1e607f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e607f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e607f([0x6e,0x6f,0x77])]())[_0x1e607f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e607f([0x2e]),'');let _0x3f680b=_0x1e607f([0x52]);for(let _0x4c589f=0x0;_0x4c589f<_0x2af23c[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c589f+=0x2){let _0xaeead8=window[_0x1e607f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2af23c[_0x1e607f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c589f,_0x4c589f+0x2));_0xaeead8>=_0x153b68[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xaeead8-=_0x153b68[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f680b+=_0x153b68[_0xaeead8];}return _0x3f680b;}function _0x26e202(){const _0x38f87f=_0x177298[_0x1e607f([0x73,0x70,0x6c,0x69,0x74])](_0x1e607f([0x2e]));if(0x3!=_0x38f87f[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bdbe(_0x38f87f[0x1]);function _0x5bdbe(_0x2f1499){const _0xd9ec9=_0x37c33f(_0x2f1499);return _0xd9ec9&&_0x591dda()?_0xd9ec9:null;function _0x591dda(){const _0x20fe88=_0xd9ec9[_0x1e607f([0x6a,0x74,0x69])],_0x1ea159=window[_0x1e607f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20fe88[_0x1e607f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20fe88[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6f617d={..._0xd9ec9,[_0x1e607f([0x6a,0x74,0x69])]:_0x20fe88[_0x1e607f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20fe88[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6f617d[_0x1e607f([0x76,0x63])],_0x268f7f(_0x6f617d)==_0x1ea159;}}}async function _0x101430(){let _0x230175=!0x0;try{const _0x5b6ea4=_0x177298[_0x1e607f([0x73,0x70,0x6c,0x69,0x74])](_0x1e607f([0x2e])),[_0x32bcc2,_0x5da842,_0x13f3d2]=_0x5b6ea4;return _0xff55f7(_0x32bcc2),await _0x1a6271(_0x32bcc2,_0x5da842,_0x13f3d2),_0x230175;}catch{return!0x1;}function _0xff55f7(_0x1cc9ca){const _0x31f246=_0x37c33f(_0x1cc9ca);_0x31f246&&_0x31f246[_0x1e607f([0x61,0x6c,0x67])]==_0x1e607f([0x45,0x53,0x32,0x35,0x36])||(_0x230175=!0x1);}async function _0x1a6271(_0x493216,_0x32428d,_0x561a4a){const _0x3fd231=window[_0x1e607f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e607f([0x66,0x72,0x6f,0x6d])](_0x57840a(_0x561a4a),_0x27421f=>_0x27421f[_0x1e607f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x422567=new window[(_0x1e607f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e607f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x493216+_0x1e607f([0x2e])+_0x32428d),_0x54f9aa=window[_0x1e607f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e607f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54f9aa)return;const _0x119b05=await _0x54f9aa[_0x1e607f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e607f([0x6a,0x77,0x6b]),_0x8470a7,{[_0x1e607f([0x6e,0x61,0x6d,0x65])]:_0x1e607f([0x45,0x43,0x44,0x53,0x41]),[_0x1e607f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e607f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e607f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54f9aa[_0x1e607f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e607f([0x6e,0x61,0x6d,0x65])]:_0x1e607f([0x45,0x43,0x44,0x53,0x41]),[_0x1e607f([0x68,0x61,0x73,0x68])]:{[_0x1e607f([0x6e,0x61,0x6d,0x65])]:_0x1e607f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x119b05,_0x3fd231,_0x422567)||(_0x230175=!0x1);}}function _0x37c33f(_0x216088){return _0x216088[_0x1e607f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e607f([0x65,0x79]))?JSON[_0x1e607f([0x70,0x61,0x72,0x73,0x65])](_0x57840a(_0x216088)):null;}function _0x57840a(_0x18a5f6){return window[_0x1e607f([0x61,0x74,0x6f,0x62])](_0x18a5f6[_0x1e607f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e607f([0x2b]))[_0x1e607f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e607f([0x2f])));}function _0x268f7f(_0x522a36){let _0x19c17e=0x1505;function _0x27f469(_0x2204d6){for(let _0x1b74f9=0x0;_0x1b74f9<_0x2204d6[_0x1e607f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b74f9++){const _0x15e104=_0x2204d6[_0x1e607f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b74f9);_0x19c17e=(_0x19c17e<<0x5)+_0x19c17e+_0x15e104,_0x19c17e&=_0x19c17e;}}function _0x47e449(_0x5bd7a5){Array[_0x1e607f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5bd7a5)?_0x5bd7a5[_0x1e607f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47e449):_0x5bd7a5&&typeof _0x5bd7a5==_0x1e607f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e607f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5bd7a5)[_0x1e607f([0x73,0x6f,0x72,0x74])]()[_0x1e607f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bc31b,_0x37844b])=>{_0x27f469(_0x2bc31b),_0x47e449(_0x37844b);}):_0x27f469(window[_0x1e607f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5bd7a5));}return _0x47e449(_0x522a36),_0x19c17e>>>0x0;}function _0x1346a5(_0x2d47b8){return _0x2d47b8[_0x1e607f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e607f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e607f([0x30]));}function _0x56cba6(_0x20c91d){return _0x20c91d[_0x1e607f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e607f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e607f([0x6a,0x6f,0x69,0x6e])]('');}function _0xf81d21(){}function _0x1e607f(_0x18c3e2){return _0x18c3e2['map'](_0x15ca7c=>String['fromCharCode'](_0x15ca7c))['join']('');}_0x3867cf(await _0x570803());}(this);}['_initSchema'](){const _0x5b97a9=this['editor']['model']['schema'];_0x5b97a9['isRegistered']('imageBlock')&&_0x5b97a9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5b97a9['isRegistered']('imageInline')&&_0x5b97a9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3d4d39=this['editor'];_0x3d4d39['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3d4d39['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4a6292=>_0x4a6292['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4b544d=_0x3d4d39['commands']['get']('replaceImageSource');_0x4b544d&&this['listenTo'](_0x4b544d,'cleanupImage',(_0x35ce63,[_0x320f36,_0x1767b0])=>{_0x320f36['removeAttribute']('uploadcareImageId',_0x1767b0);});}['_initConfig'](){const _0x5a9f4c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5e39bb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1e526f(_0x3e4ebd['document'],'uc-config',{..._0x5a9f4c,'pubkey':_0x5e39bb,'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']=_0x150cd1=>{if('closeMax'==_0x150cd1)return'#uc-icon-arrow-down';},_0x3e4ebd['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1e526f(_0x3e4ebd['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3e4ebd['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x59a871=this['editor']['commands']['get']('insertImage');_0x59a871&&this['listenTo'](_0x59a871,'execute',()=>{const _0x401485=this['editor']['model']['document']['selection']['getSelectedElement']();_0x401485&&_0x401485['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x401485);});});const _0x34f878=this['editor']['commands']['get']('uploadcareImageReplace');_0x34f878&&this['listenTo'](_0x34f878,'execute',()=>{const _0x3c3e7b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c3e7b&&_0x3c3e7b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3c3e7b);});});}}class tt extends _0x2c681b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bc2a5){super(_0x2bc2a5),_0x2bc2a5['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x135cd4['defineComponents'](_0x135cd4);}}class ii extends _0x190d11{constructor(_0x2e43a5){super(_0x2e43a5);const t=_0x2e43a5['t'],_0x243c94=this['bindTemplate'],_0x38ac3e=new _0x5a3007();_0x38ac3e['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':[_0x38ac3e,{'text':_0x243c94['to']('imageUploadProgress',_0x2dd812=>t('Loading\x20image...')+'\x20('+(_0x2dd812||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 _0x190d11{constructor(_0x4a1f96){super(_0x4a1f96);const t=_0x4a1f96['t'];this['set']('errorType',null);const _0x42923b=new _0x2d304f(_0x4a1f96);_0x42923b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x42923b['withText']=!0x0,_0x42923b['class']='ck-button-action',_0x42923b['on']('execute',()=>{this['fire']('retry');}),_0x42923b['bind']('isVisible')['to'](this,'errorType',_0x40b47a=>'NotFound'!==_0x40b47a);const _0x144553=new _0x13fb2d();_0x144553['content']=_0x754c18,_0x144553['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1775e6=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':[_0x144553,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1775e6['to']('errorType',_0x48bf87=>t('NotFound'!==_0x48bf87?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x42923b]},{'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 _0x190d11{constructor(_0x44ac27,_0x24ef58){super(_0x44ac27);const _0x269cf0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x24ef58,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x269cf0['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x55b56d,_0x29f3eb,_0xf0e9a){super(_0x55b56d),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x55b56d),this['_errorView']=new ti(_0x55b56d),this['_editingView']=new ei(_0x55b56d,_0xf0e9a),this['_focusableView']=new _0x190d11(_0x55b56d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x29f3eb),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'],_0x99ad94=>{this['_addUploadcareImageEditorListeners'](_0x99ad94);});}),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'](_0x29f362,_0x40d2e8){const _0x1d30d0='uc-cloud-image-editor',_0x47512e=_0x29f362['querySelector'](_0x1d30d0);if(_0x47512e)return _0x40d2e8(_0x47512e);const _0x107220=new MutationObserver(_0x5e9c97=>{const _0x3c9372=_0x5e9c97['filter'](_0x1067b8=>_0x1067b8['target']===_0x29f362&&_0x1067b8['addedNodes']['length']>0x0&&_0x1067b8['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1d30d0);_0x3c9372['length']&&(_0x107220['disconnect'](),_0x40d2e8(_0x3c9372[0x0]['addedNodes'][0x0]));});_0x107220['observe'](_0x29f362,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x294a8a){_0x294a8a['addEventListener']('apply',_0x362261=>{this['fire']('apply',{'imageSrc':_0x362261['detail']['cdnUrl']});}),_0x294a8a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x36c90a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5b11ff,_0x251c8b,_0x4b46cb){super(),this['_editor']=_0x5b11ff,this['_dialog']=_0x251c8b,this['_imageElement']=_0x4b46cb,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 _0x2163e0=this['_imageElement'],_0x4e7319=_0x2163e0['getAttribute']('uploadcareImageId'),_0x1651d2=_0x2163e0['getAttribute']('src');if(_0x4e7319)await this['_loadImageInfo'](_0x4e7319,_0x1651d2);else{if(this['_imageCache']['has'](_0x1651d2)){const _0x10706d=this['_imageCache']['get'](_0x1651d2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10706d['url'],this['imageDimension']=_0x10706d['dimension'],this['imageId']=_0x10706d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5439f1}=this['_editor'],t=_0x5439f1['t'],_0xbe05c6=new X(_0x5439f1,this['imageStatus'],this['_attributes']);_0xbe05c6['bind']('status')['to'](this,'imageStatus'),_0xbe05c6['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xbe05c6['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xbe05c6['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xbe05c6,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4fda93,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xbe05c6,'position':_0x225e3e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xbe05c6['focus']();},'onHide':()=>{_0xbe05c6['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3dffc3=>!S(_0x3dffc3,_0xbe05c6['element'])}});}['_loadImageInfo'](_0x205436,_0x1d904c){return j['getInfo'](_0x205436,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xa90846=>{const {width:_0x5d7521,height:_0x162330}=_0xa90846['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d904c,this['imageDimension']={'width':_0x5d7521,'height':_0x162330},this['imageId']=_0x205436;})['catch'](_0x466d66=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x466d66['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x571ad4,_0x5ae4aa){return this['_getImageAsFile'](_0x571ad4)['then'](_0x2a0d77=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5ae4aa['signal'],'file':_0x2a0d77,'onProgress':_0x568d97=>{_0x568d97&&_0x568d97['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x568d97['value']));}}))['then'](_0x3151d3=>{const {width:_0x43d713,height:_0x67ee46}=_0x3151d3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3151d3['cdnUrl'],this['imageDimension']={'width':_0x43d713,'height':_0x67ee46},this['imageId']=_0x3151d3['uuid'],this['imageUploadProgress']=null;const _0x39632c=_0x571ad4['getAttribute']('src');this['_imageCache']['set'](_0x39632c,{'id':_0x3151d3['uuid'],'url':_0x3151d3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x252d5b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x252d5b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x10d152,_0x46eff0){_0x10d152['on']('apply',(_0x1aa7f1,_0x5407a1)=>{this['_replaceImage'](_0x46eff0,_0x5407a1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x10d152['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x10d152['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x34bede,_0x26d1f5,_0x5ec2f4){const _0x169dbd=this['_editor'],{width:_0x254ff7,height:_0x59b51c}=C(_0x26d1f5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2f7ccd,imageSources:_0x3797f0}=k(_0x26d1f5,_0x254ff7);_0x169dbd['model']['change'](_0x555cb3=>{if('$graveyard'===_0x34bede['root']['rootName']){_0x169dbd['execute']('insertImage',{'imageType':_0x34bede['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x34bede['getAttributes']()),'uploadcareImageId':_0x5ec2f4,'src':_0x2f7ccd,'sources':_0x3797f0,'width':_0x254ff7,'height':_0x59b51c}});const _0x1b849a=_0x34bede['getChildren']();_0x34bede=_0x169dbd['model']['document']['selection']['getSelectedElement']();for(const _0xdb1dae of _0x1b849a)_0x555cb3['append'](_0x555cb3['cloneElement'](_0xdb1dae),_0x34bede);}else _0x555cb3['setSelection'](_0x34bede,'on'),_0x169dbd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x34bede['getAttributes']()),'uploadcareImageId':_0x5ec2f4,'src':_0x2f7ccd,'sources':_0x3797f0,'width':_0x254ff7,'height':_0x59b51c},_0x34bede);_0x555cb3['setSelection'](_0x34bede,'on');});}async['_getImageAsFile'](_0x5e03d2){const _0x4c2f82=_0x3e4ebd['window'],_0x155848=_0x3e4ebd['document']['location']['href'],_0x633210=new _0x4c2f82['URL'](_0x5e03d2['getAttribute']('src'),_0x155848);if('data:'===_0x633210['protocol']){const _0x5584bc=_0x633210['href']['split'](','),_0xf3a9a1=_0x5584bc[0x0]['match'](/:(.*?);/)[0x1],_0x47fdf4=_0xf3a9a1['split']('/')[0x1],_0x2d0873=_0x4c2f82['atob'](_0x5584bc[_0x5584bc['length']-0x1]);let _0x1a57c7=_0x2d0873['length'];const _0x5603c3=new _0x4c2f82['Uint8Array'](_0x1a57c7);for(;_0x1a57c7--;)_0x5603c3[_0x1a57c7]=_0x2d0873['charCodeAt'](_0x1a57c7);return new _0x4c2f82['File']([_0x5603c3],'image.'+_0x47fdf4,{'type':_0xf3a9a1});}const _0x2ed050=_0x633210['href']['split']('/'),_0x4e62f9=_0x2ed050[_0x2ed050['length']-0x1],_0x3a3a32=_0x4e62f9['split']('.')[0x1];return _0x4c2f82['fetch'](_0x633210['href'])['then'](_0x1b9592=>_0x1b9592['clone']()['blob']())['then'](_0x556c19=>new _0x4c2f82['File']([_0x556c19],_0x4e62f9,{'type':'image/'+_0x3a3a32}));}}class Q extends _0x48e403{['imageEditController'];static get['requires'](){return[_0x15d45f];}['_isEditable'];constructor(_0x3ffb42){super(_0x3ffb42),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x54e1ca){const _0x92d91a=z(_0x54e1ca);return _0x403c6a=>!(!_0x403c6a||!_0x403c6a['is']('element','imageBlock')&&!_0x403c6a['is']('element','imageInline'))&&(!!_0x403c6a['hasAttribute']('uploadcareImageId')||!!_0x403c6a['hasAttribute']('src')&&_0x92d91a(_0x403c6a['getAttribute']('src')));}(_0x3ffb42['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x594f95=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x594f95);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3f0b63=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3f0b63&&(_0x3f0b63['is']('element','imageBlock')||_0x3f0b63['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x15d45f),_0x3f0b63),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x48e403{['refresh'](){const _0x2a4527=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2a4527&&(_0x2a4527['is']('element','imageBlock')||_0x2a4527['is']('element','imageInline')));}['execute'](_0x4fcea4){const _0x4e4a3d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1b450e=>{_0x1b450e['setAttributes'](_0x4fcea4,_0x4e4a3d),_0x1b450e['removeAttribute']('srcset',_0x4e4a3d),_0x1b450e['removeAttribute']('sizes',_0x4e4a3d);});}}class m extends _0x2c681b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x8e4201,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5b5b3e}=this;_0x5b5b3e['commands']['add']('uploadcareImageEdit',new Q(_0x5b5b3e)),_0x5b5b3e['commands']['add']('uploadcareImageReplace',new V(_0x5b5b3e));}}class g extends _0x2c681b{['_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 _0x94f79c=this['editor'];_0x94f79c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2cca97=>{const _0x41f37a=_0x94f79c['commands']['get']('uploadcareImageEdit'),_0x2b0759=new _0x2d304f(_0x2cca97),t=_0x2cca97['t'];return _0x2b0759['set']({'icon':_0x4fda93,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2b0759['bind']('isEnabled')['to'](_0x41f37a),_0x2b0759['bind']('isOn')['to'](_0x41f37a,'isActive'),this['listenTo'](_0x2b0759,'execute',()=>{_0x94f79c['execute']('uploadcareImageEdit'),_0x94f79c['editing']['view']['focus']();}),_0x2b0759;}),this['_initConfig']();}['_initConfig'](){const _0x1fc417=_0x1e526f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1fc417),this['listenTo'](this['editor'],'destroy',()=>{_0x1fc417['remove']();});}}class et extends _0x2c681b{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,Q 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':_0x4a8d92=>0x1!=_0x4a8d92}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3c753c=>{const {af:{dictionary:_0x872d44,getPluralForm:_0xa27177}}={'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':_0x230b6e=>0x1!=_0x230b6e}};_0x3c753c['af']||={'dictionary':{},'getPluralForm':null},_0x3c753c['af']['dictionary']=Object['assign'](_0x3c753c['af']['dictionary'],_0x872d44),_0x3c753c['af']['getPluralForm']=_0xa27177;})(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':_0x4f1c34=>0x0==_0x4f1c34?0x0:0x1==_0x4f1c34?0x1:0x2==_0x4f1c34?0x2:_0x4f1c34%0x64>=0x3&&_0x4f1c34%0x64<=0xa?0x3:_0x4f1c34%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3db3b2=>{const {ar:{dictionary:_0x43cdf0,getPluralForm:_0x5c3db8}}={'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':_0x11fbdf=>0x0==_0x11fbdf?0x0:0x1==_0x11fbdf?0x1:0x2==_0x11fbdf?0x2:_0x11fbdf%0x64>=0x3&&_0x11fbdf%0x64<=0xa?0x3:_0x11fbdf%0x64>=0xb?0x4:0x5}};_0x3db3b2['ar']||={'dictionary':{},'getPluralForm':null},_0x3db3b2['ar']['dictionary']=Object['assign'](_0x3db3b2['ar']['dictionary'],_0x43cdf0),_0x3db3b2['ar']['getPluralForm']=_0x5c3db8;})(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':_0x650289=>0x1!=_0x650289}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x40b733=>{const {ast:{dictionary:_0x113300,getPluralForm:_0x1052dd}}={'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':_0x50b349=>0x1!=_0x50b349}};_0x40b733['ast']||={'dictionary':{},'getPluralForm':null},_0x40b733['ast']['dictionary']=Object['assign'](_0x40b733['ast']['dictionary'],_0x113300),_0x40b733['ast']['getPluralForm']=_0x1052dd;})(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':_0xca4c87=>0x1!=_0xca4c87}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x13449c=>{const {az:{dictionary:_0x350b25,getPluralForm:_0x2da8a1}}={'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':_0x164667=>0x1!=_0x164667}};_0x13449c['az']||={'dictionary':{},'getPluralForm':null},_0x13449c['az']['dictionary']=Object['assign'](_0x13449c['az']['dictionary'],_0x350b25),_0x13449c['az']['getPluralForm']=_0x2da8a1;})(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':_0x16f9e7=>_0x16f9e7%0xa==0x1&&_0x16f9e7%0x64!=0xb?0x0:_0x16f9e7%0xa>=0x2&&_0x16f9e7%0xa<=0x4&&(_0x16f9e7%0x64<0xa||_0x16f9e7%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5d5b32=>{const {be:{dictionary:_0x25577b,getPluralForm:_0x5e42ad}}={'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':_0xe6c0f1=>_0xe6c0f1%0xa==0x1&&_0xe6c0f1%0x64!=0xb?0x0:_0xe6c0f1%0xa>=0x2&&_0xe6c0f1%0xa<=0x4&&(_0xe6c0f1%0x64<0xa||_0xe6c0f1%0x64>=0x14)?0x1:0x2}};_0x5d5b32['be']||={'dictionary':{},'getPluralForm':null},_0x5d5b32['be']['dictionary']=Object['assign'](_0x5d5b32['be']['dictionary'],_0x25577b),_0x5d5b32['be']['getPluralForm']=_0x5e42ad;})(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':_0x4c9585=>0x1!=_0x4c9585}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2aa562=>{const {bg:{dictionary:_0x27c0a0,getPluralForm:_0x404826}}={'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':_0x50a3ae=>0x1!=_0x50a3ae}};_0x2aa562['bg']||={'dictionary':{},'getPluralForm':null},_0x2aa562['bg']['dictionary']=Object['assign'](_0x2aa562['bg']['dictionary'],_0x27c0a0),_0x2aa562['bg']['getPluralForm']=_0x404826;})(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':_0x2626e6=>0x1!=_0x2626e6}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x387140=>{const {bn:{dictionary:_0x3a9e1f,getPluralForm:_0x35f382}}={'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':_0x1177bb=>0x1!=_0x1177bb}};_0x387140['bn']||={'dictionary':{},'getPluralForm':null},_0x387140['bn']['dictionary']=Object['assign'](_0x387140['bn']['dictionary'],_0x3a9e1f),_0x387140['bn']['getPluralForm']=_0x35f382;})(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':_0x51f5ef=>_0x51f5ef%0xa==0x1&&_0x51f5ef%0x64!=0xb?0x0:_0x51f5ef%0xa>=0x2&&_0x51f5ef%0xa<=0x4&&(_0x51f5ef%0x64<0xa||_0x51f5ef%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x542536=>{const {bs:{dictionary:_0x1d6777,getPluralForm:_0x264a9b}}={'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':_0x167eff=>_0x167eff%0xa==0x1&&_0x167eff%0x64!=0xb?0x0:_0x167eff%0xa>=0x2&&_0x167eff%0xa<=0x4&&(_0x167eff%0x64<0xa||_0x167eff%0x64>=0x14)?0x1:0x2}};_0x542536['bs']||={'dictionary':{},'getPluralForm':null},_0x542536['bs']['dictionary']=Object['assign'](_0x542536['bs']['dictionary'],_0x1d6777),_0x542536['bs']['getPluralForm']=_0x264a9b;})(window['CKEDITOR_TRANSLATIONS']||={});
|