@ckeditor/ckeditor5-uploadcare 47.3.0-alpha.6 → 47.3.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 _0x17cd1e,Command as _0xdd9173}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ba22e,IconGooglePhotos as _0x3ee3c8,IconGoogleDrive as _0x5b03f6,IconFacebook as _0x552d59,IconDropbox as _0x11eff6,IconUploadcareLink as _0x40726e,IconUploadcareImageUpload as _0xd2cf37,IconError as _0x394e39,IconUploadcareImageEdit as _0x2fca44}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x7a9863,MenuBarMenuListItemButtonView as _0x16ae6c,View as _0x425952,FocusCycler as _0x52cb88,Dialog as _0x2e3fff,DialogViewPosition as _0x1676f1,SpinnerView as _0x3db628,IconView as _0x3a706b,Notification as _0x2a969a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4a0bca,DomEmitterMixin as _0x388ecf,global as _0x1f4901,getAncestors as _0x2694dd,ObservableMixin as _0x18bc34,uid as _0x2b7e98,createElement as _0x4db309}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x239bc2}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x6b88c4,info as _0x321ffa}from'@uploadcare/upload-client';import*as _0x3ae175 from'@uploadcare/file-uploader';var i=function(_0x9f9aff){return _0x9f9aff['Local']='local',_0x9f9aff['URL']='url',_0x9f9aff['Dropbox']='dropbox',_0x9f9aff['GDrive']='gdrive',_0x9f9aff['Facebook']='facebook',_0x9f9aff['GPhotos']='gphotos',_0x9f9aff['OneDrive']='onedrive',_0x9f9aff;}({});function _(_0x2d4d20,_0x287496,_0x590a48){const t=_0x2d4d20['t'],_0x1b3db0=_0x2d4d20['t'];switch(_0x287496){case i['Local']:return{'text':_0x1b3db0('Insert'===_0x590a48?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1b3db0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x590a48?_0x1b3db0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1b3db0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x590a48?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x287496;}}class e extends _0x17cd1e{['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 _0x545bdf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x548df0;for(const _0x4e84af in _0x545bdf){const _0xcf319=_0x4e84af,_0x37b823=_0x545bdf[_0xcf319];if('uploadcareLicenseKeyValid'==_0x37b823||'uploadcareLicenseKeyInvalid'==_0x37b823||'uploadcareLicenseKeyExpired'==_0x37b823||'uploadcareLicenseKeyDomainLimit'==_0x37b823||'uploadcareLicenseKeyNotAllowed'==_0x37b823||'uploadcareLicenseKeyEvaluationLimit'==_0x37b823||'uploadcareLicenseKeyTrialLimit'==_0x37b823||'uploadcareLicenseKeyUsageLimit'==_0x37b823){delete _0x545bdf[_0xcf319],_0x548df0=_0x37b823,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x548df0&&_0x545bdf['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x548df0&&_0x545bdf['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x548df0&&_0x545bdf['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x548df0&&_0x545bdf['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x571665}=this,_0x25a051=_0x571665['commands']['get']('uploadcare');if(!_0x25a051)return;const _0x5943f9=this['_normalizeConfigSourceList'](_0x571665['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x543094,_0x2e053a)=>{const _0x1fed2b=this['_getIntegrationKey'](_0x2e053a['type']);return _0x543094[_0x1fed2b]||(_0x543094[_0x1fed2b]=[]),_0x543094[_0x1fed2b]['push'](_0x2e053a),_0x543094;},{});_0x571665['plugins']['has']('ImageInsertUI')&&_0x571665['commands']['get']('uploadcare')&&Object['entries'](_0x5943f9)['forEach'](([_0x3fd333,_0x1ffe62])=>{_0x571665['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3fd333,'observable':()=>_0x25a051,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1ffe62),'formViewCreator':()=>this['_createDropdownButtons'](_0x1ffe62),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1ffe62),'override':'assetManager'!==_0x3fd333});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x42a560){const {locale:_0x2ff903}=this['editor'];return _0x42a560['map'](_0x371c63=>{const _0x456e25=_(_0x2ff903,_0x371c63,'Insert');switch(_0x371c63){case i['Local']:return{'icon':_0xd2cf37,'type':i['Local'],..._0x456e25};case i['URL']:return{'icon':_0x40726e,'type':i['URL'],..._0x456e25};case i['Dropbox']:return{'icon':_0x11eff6,'type':i['Dropbox'],..._0x456e25};case i['Facebook']:return{'icon':_0x552d59,'type':i['Facebook'],..._0x456e25};case i['GDrive']:return{'icon':_0x5b03f6,'type':i['GDrive'],..._0x456e25};case i['GPhotos']:return{'icon':_0x3ee3c8,'type':i['GPhotos'],..._0x456e25};case i['OneDrive']:return{'icon':_0x1ba22e,'type':i['OneDrive'],..._0x456e25};}});}['_getIntegrationKey'](_0x50db15){switch(_0x50db15){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x440912,_0x28cc85){const _0x2e194c=this['editor'],_0x38d870=new _0x440912(_0x2e194c['locale']),_0xea3cea=_0x2e194c['commands']['get']('uploadcare');return _0x38d870['bind']('isEnabled')['to'](_0xea3cea),_0x38d870['on']('execute',()=>{_0xea3cea['execute'](_0x28cc85);}),_0x38d870;}['_createToolbarButton'](_0x668f42){const {locale:_0x310a69}=this['editor'],_0x11900e=this['editor']['plugins']['get']('ImageInsertUI'),_0x16786d=_0x668f42[0x0],_0x30754c=this['_createButton'](_0x7a9863,_0x16786d['type']);return _0x30754c['icon']=_0x16786d['icon'],_0x30754c['bind']('label')['to'](_0x11900e,'isImageSelected',_0x8b099=>_(_0x310a69,_0x16786d['type'],_0x8b099?'Replace':'Insert')['text']),_0x30754c['tooltip']=!0x0,_0x30754c;}['_createDropdownButtons'](_0x48afdd){const {locale:_0x437b3c}=this['editor'],_0x150c9a=this['editor']['plugins']['get']('ImageInsertUI');return _0x48afdd['map'](_0x5ad342=>{const _0x92d4ee=this['_createButton'](_0x7a9863,_0x5ad342['type']);return _0x92d4ee['withText']=!0x0,_0x92d4ee['icon']=_0x5ad342['icon'],_0x92d4ee['bind']('label')['to'](_0x150c9a,'isImageSelected',_0x3916a9=>_(_0x437b3c,_0x5ad342['type'],_0x3916a9?'Replace':'Insert')['text']),_0x92d4ee;});}['_createMenuBarButtons'](_0x7ffbc2){return _0x7ffbc2['map'](_0x55edc3=>{const _0x3c18b8=this['_createButton'](_0x16ae6c,_0x55edc3['type']);return _0x3c18b8['icon']=_0x55edc3['icon'],_0x3c18b8['label']=_0x55edc3['shortText'],_0x3c18b8;});}}class W extends _0x425952{['focusTracker'];['focusCycler'];constructor(_0x22540b){super(_0x22540b),this['focusTracker']=new _0x4a0bca(),this['focusCycler']=new _0x52cb88({'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 R extends W{constructor(_0x1dd404,_0x1c5881){super(_0x1dd404),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-'+_0x1c5881}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1565f6,_0x56a0d0){const _0x2f30bd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xb347d9=>_0xb347d9<=_0x56a0d0)['map'](_0xf62524=>_0x1565f6['replace'](/\/$/,'')+'/-/resize/'+_0xf62524+'x/\x20'+_0xf62524+'w');return{'imageFallbackUrl':_0x1565f6,'imageSources':[{'srcset':_0x2f30bd['join'](',\x20'),'sizes':'(max-width:\x20'+_0x56a0d0+'px)\x20100vw,\x20'+_0x56a0d0+'px','type':'image/webp'}]};}function V(_0x40bcb1,_0x4cc3d8,_0x543855){const _0x56e471=_0x40bcb1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x56e471?parseInt(_0x56e471[0x1],0xa):_0x4cc3d8,'height':_0x56e471?parseInt(_0x56e471[0x2],0xa):_0x543855};}function p(_0x5dfc7b,_0x229242){const _0x50c136=new(_0x388ecf())(),_0x2a9b32=_0x5dfc7b['plugins']['get']('ImageUtils'),_0x2d5aeb=_0x5dfc7b['editing']['mapper']['toViewElement'](_0x229242),_0x59b199=_0x2a9b32['findViewImgElement'](_0x2d5aeb),_0x129697=_0x5dfc7b['editing']['view']['domConverter']['viewToDom'](_0x59b199),_0x1612c3=_0x229242['getAttribute']('width'),_0x5313e7=_0x229242['getAttribute']('height'),_0x2e6bb9='image-processing';_0x5dfc7b['editing']['view']['change'](_0x3dfd3f=>{_0x3dfd3f['addClass'](_0x2e6bb9,_0x2d5aeb),_0x3dfd3f['setStyle']('aspect-ratio',_0x1612c3+'/'+_0x5313e7,_0x59b199);}),_0x50c136['listenTo'](_0x129697,'load',()=>{_0x50c136['stopListening'](_0x129697,'load'),_0x5dfc7b['editing']['view']['change'](_0x14499c=>{_0x14499c['removeClass'](_0x2e6bb9,_0x2d5aeb),_0x14499c['removeStyle']('aspect-ratio',_0x59b199);});});}function z(_0x56df3b){if(Array['isArray'](_0x56df3b)){const _0x3a0923=_0x56df3b['map'](z);return _0x54793f=>_0x3a0923['some'](_0x61371=>_0x61371(_0x54793f));}if('origin'==_0x56df3b){const _0x5ecc7e=_0x1f4901['window']['location']['origin'];return _0x510c31=>new URL(_0x510c31,_0x1f4901['document']['baseURI'])['origin']==_0x5ecc7e;}return'function'==typeof _0x56df3b?_0x56df3b:_0x56df3b instanceof RegExp?_0x5e0398=>!(!_0x5e0398['match'](_0x56df3b)&&!_0x5e0398['replace'](/^https?:\/\//,'')['match'](_0x56df3b)):()=>!0x1;}function Q(_0x153fbf,_0x31798f){return _0x2694dd(_0x153fbf['target'])['includes'](_0x31798f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x18bc34(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4f8057,_0x4a82b9,_0x1acf38){super(),this['_editor']=_0x4f8057,this['_editing']=_0x4a82b9,this['_dialog']=_0x4f8057['plugins']['get'](_0x2e3fff),this['_api']=_0x4a82b9['ctxElement']['getAPI'](),this['_type']=_0x1acf38,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:_0xc8a365,model:_0x4c67d0}=this['_editor'],_0x5525cb=_0x4c67d0['document']['selection']['getSelectedElement'](),_0x28e536=_0x5525cb&&(_0x5525cb['is']('element','imageBlock')||_0x5525cb['is']('element','imageInline'));this['_formView']=new R(_0xc8a365,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xd2cf37,'title':_(_0xc8a365,this['_type'],_0x28e536?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1676f1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51d0f4=>!Q(_0x51d0f4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5e09b3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x24d602=>{const _0x441ae6=_0x5e09b3['length'];for(const _0x5bce4a of _0x5e09b3){const _0x7d4881=_0x5bce4a===_0x5e09b3[_0x441ae6-0x1],{cdnUrl:_0x1e5bfc,fileInfo:_0x304b5d}=_0x5bce4a;if(!_0x1e5bfc||!_0x304b5d)continue;const {width:_0x5640cd,height:_0x3faf9a}=_0x304b5d['imageInfo'],_0x24bb64=V(_0x1e5bfc,_0x5640cd,_0x3faf9a),_0x22c29d=C(_0x1e5bfc,_0x24bb64['width']),_0x41b1db={'id':_0x304b5d['uuid'],'type':'image','attributes':{'imageDimension':_0x24bb64,..._0x22c29d}};this['_insertAsset'](_0x41b1db,_0x7d4881,_0x24d602);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x28713f=>{'idle'===_0x28713f['detail']['status']&&!_0x28713f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x850a0f,_0x5d0764,_0x8416bc){const _0x52a536=this['_editor']['model']['document']['selection'],_0x138354=_0x52a536['getSelectedElement'](),_0xea0f63=!(!_0x138354||!_0x138354['is']('element','imageInline'));_0x8416bc['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x850a0f,_0xea0f63),_0x5d0764||_0x8416bc['setSelection'](_0x52a536['getLastPosition']());}['_insertImage'](_0x32b35a,_0x186e38){const _0xdf3a9b=this['_editor'],{imageDimension:_0x2a94f8,imageFallbackUrl:_0x2465cc,imageSources:_0x5b4171}=_0x32b35a['attributes'];_0xdf3a9b['execute']('insertImage',{'imageType':_0x186e38?'imageInline':null,'source':{'uploadcareImageId':_0x32b35a['id'],'src':_0x2465cc,'sources':_0x5b4171,..._0x2a94f8}});}}class w extends _0xdd9173{['_editing'];['_controller']=null;static get['requires'](){return[_0x2e3fff,o];}constructor(_0x1a5a96){super(_0x1a5a96),this['_editing']=_0x1a5a96['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5a9504){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5a9504);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xbece0c,..._0x2e3c4e}){return _0x6b88c4(_0xbece0c,_0x2e3c4e);}static['getInfo'](_0x159e89,_0x48d029){return _0x321ffa(_0x159e89,_0x48d029);}}class f extends _0x17cd1e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x239bc2,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x328c21=this['editor'];if(!!!_0x328c21['config']['get']('uploadcare'))return;_0x328c21['plugins']['get'](_0x239bc2)['createUploadAdapter']=_0x2c6b7e=>new k(_0x2c6b7e,_0x328c21),_0x328c21['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x55d8fb,{imageElement:_0x46882f,data:_0x1d36d8})=>{_0x328c21['model']['change'](_0xd09ad7=>{_0xd09ad7['setAttribute']('uploadcareImageId',_0x1d36d8['uploadcareImageId'],_0x46882f);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1b5213,_0x386502){this['loader']=_0x1b5213,this['editor']=_0x386502,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5c9926=await this['loader']['file'];return j['upload']({'file':_0x5c9926,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x3c79ab=>{_0x3c79ab&&_0x3c79ab['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3c79ab['value']);}})['then'](async _0x4489d4=>{const {imageFallbackUrl:_0x46384e,imageSources:_0x483560}=C(_0x4489d4['cdnUrl'],_0x4489d4['imageInfo']['width']);return{'uploadcareImageId':_0x4489d4['uuid'],'default':_0x46384e,'sources':_0x483560};})['catch'](()=>{const _0x282127=t('Cannot\x20upload\x20file:')+('\x20'+_0x5c9926['name']+'.');return Promise['reject'](_0x282127);});}['abort'](){this['controller']['abort']();}}class o extends _0x17cd1e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2e3fff];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3ef7ff){super(_0x3ef7ff),this['ucContextId']=_0x2b7e98();}['init'](){const _0x82b46e=this['editor'];_0x82b46e['commands']['add']('uploadcare',new w(_0x82b46e));}['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 _0xfbf656=_0x1f4901['document']['querySelector']('input[uploadcare-file-input]');_0xfbf656&&_0xfbf656['remove']();}),async function(_0x25cf8a){const _0x10d2c4=_0x5f49e8([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x12ed3c=0x535f8c3a,_0x16a5f1=0x5358f6fa^_0x12ed3c,_0x12eca4=window[_0x5f49e8([0x44,0x61,0x74,0x65])][_0x5f49e8([0x6e,0x6f,0x77])](),_0x251dec=_0x25cf8a[_0x5f49e8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x302e95=new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xadc4bf=>{_0x251dec[_0x5f49e8([0x6f,0x6e,0x63,0x65])](_0x5f49e8([0x72,0x65,0x61,0x64,0x79]),_0xadc4bf);}),_0x4ffcbb={[_0x5f49e8([0x6b,0x74,0x79])]:_0x5f49e8([0x45,0x43]),[_0x5f49e8([0x75,0x73,0x65])]:_0x5f49e8([0x73,0x69,0x67]),[_0x5f49e8([0x63,0x72,0x76])]:_0x5f49e8([0x50,0x2d,0x32,0x35,0x36]),[_0x5f49e8([0x78])]:_0x5f49e8([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]),[_0x5f49e8([0x79])]:_0x5f49e8([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]),[_0x5f49e8([0x61,0x6c,0x67])]:_0x5f49e8([0x45,0x53,0x32,0x35,0x36])},_0x4a856b=_0x251dec[_0x5f49e8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f49e8([0x67,0x65,0x74])](_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x553337(){let _0x4edddf,_0x547cba=null,_0x43533c=null;try{if(_0x4a856b==_0x5f49e8([0x47,0x50,0x4c]))return _0x5f49e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4edddf=_0x5a92ac(),!_0x4edddf)return _0x5f49e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4edddf[_0x5f49e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43533c=_0x42afe9(_0x4edddf[_0x5f49e8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4edddf[_0x5f49e8([0x6a,0x74,0x69])])),await _0x1cdc34()?_0x2ee114()?_0xc80482()?_0x5f49e8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45ad5b()?(_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f49e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x547cba=_0xb3c32f(_0x5f49e8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f49e8([0x74,0x72,0x69,0x61,0x6c])&&(_0x547cba=_0xb3c32f(_0x5f49e8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x327ab5()):_0x5f49e8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f49e8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f49e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5f49e8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc80482(){const _0x35feea=[_0x5f49e8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f49e8([0x74,0x72,0x69,0x61,0x6c])][_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12eca4/0x3e8:0xe10*_0x16a5f1;return _0x4edddf[_0x5f49e8([0x65,0x78,0x70])]<_0x35feea;}function _0x2ee114(){const _0x46ddb2=_0x4edddf[_0x5f49e8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x46ddb2&&(!!_0x46ddb2[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49e8([0x2a]))||!!_0x46ddb2[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49e8([0x55,0x50,0x4c,0x43])));}function _0x45ad5b(){const _0x194bad=_0x4edddf[_0x5f49e8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x194bad||0x0==_0x194bad[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xafaa93}=new URL(window[_0x5f49e8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x194bad[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xafaa93))return!0x0;const _0xd31ae0=_0xafaa93[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e]));return _0x194bad[_0x5f49e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a129b=>_0x3a129b[_0x5f49e8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f49e8([0x2a])))[_0x5f49e8([0x6d,0x61,0x70])](_0x7904fa=>_0x7904fa[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e])))[_0x5f49e8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x520c6f=>_0x520c6f[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd31ae0[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f49e8([0x6d,0x61,0x70])](_0x10fb1d=>Array(_0xd31ae0[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10fb1d[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5f49e8([0x66,0x69,0x6c,0x6c])](_0x10fb1d[0x0]===_0x5f49e8([0x2a])?_0x5f49e8([0x2a]):'')[_0x5f49e8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10fb1d))[_0x5f49e8([0x73,0x6f,0x6d,0x65])](_0x45b2d0=>_0xd31ae0[_0x5f49e8([0x65,0x76,0x65,0x72,0x79])]((_0x22d9e6,_0x4127ad)=>_0x45b2d0[_0x4127ad]===_0x22d9e6||_0x45b2d0[_0x4127ad]===_0x5f49e8([0x2a])));}function _0x327ab5(){return _0x547cba&&_0x43533c?new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x539c7f,_0x35399b)=>{_0x547cba[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x539c7f,_0x35399b),_0x43533c[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x2369bd=>{_0x2369bd!=_0x5f49e8([0x56,0x61,0x6c,0x69,0x64])&&_0x539c7f(_0x2369bd);},_0x35399b);}):_0x547cba||_0x43533c||_0x5f49e8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42afe9(_0xc54325,_0x3c2c48){return new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bb29c=>{if(_0x538707())return _0x4bb29c(_0x5f49e8([0x56,0x61,0x6c,0x69,0x64]));_0x13a4c6(),_0x251dec[_0x5f49e8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f49e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x806de9=!0x1;const _0x58fd54=_0x2b7e98();function _0x304926(_0x183ed4){return!!_0x183ed4&&(typeof _0x183ed4===_0x5f49e8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x183ed4===_0x5f49e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x183ed4[_0x5f49e8([0x74,0x68,0x65,0x6e])]===_0x5f49e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x183ed4[_0x5f49e8([0x63,0x61,0x74,0x63,0x68])]===_0x5f49e8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c3f18(_0x47a769){_0x1f8c60(_0x47a769)[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x3fe56d=>{if(!_0x3fe56d||_0x3fe56d[_0x5f49e8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f49e8([0x6f,0x6b]))return _0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x370022(_0x4bbf80(_0x58fd54+_0x3c2c48))!=_0x3fe56d[_0x5f49e8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f49e8([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x56cda1=>(_0xd8aecc(),_0x56cda1),()=>{const _0x3407e0=_0x3f7f47();return null==_0x3407e0?(_0xd8aecc(),_0x5f49e8([0x56,0x61,0x6c,0x69,0x64])):_0x5f49e8(_0x12eca4-_0x3407e0>(0x7753083a^_0x12ed3c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x4bb29c)[_0x5f49e8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bb29c(_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ed4df=0x536962ba^_0x12ed3c;function _0xd8aecc(){const _0x2ee4a2=_0x5f49e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x370022(_0x4bbf80(_0xc54325)),_0x416360=_0x14a78f(_0x370022(window[_0x5f49e8([0x4d,0x61,0x74,0x68])][_0x5f49e8([0x63,0x65,0x69,0x6c])](_0x12eca4/_0x4ed4df)));window[_0x5f49e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f49e8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ee4a2,_0x416360);}function _0x3f7f47(){const _0x31a9e4=_0x5f49e8([0x6c,0x6c,0x63,0x74,0x2d])+_0x370022(_0x4bbf80(_0xc54325)),_0x2e535d=window[_0x5f49e8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f49e8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31a9e4);return _0x2e535d?window[_0x5f49e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14a78f(_0x2e535d),0x10)*_0x4ed4df:null;}function _0x1f8c60(_0x4e65e3){return new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44de70,_0x1bea86)=>{_0x4e65e3[_0x5f49e8([0x74,0x68,0x65,0x6e])](_0x44de70,_0x1bea86),window[_0x5f49e8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bea86,0x535e58fa^_0x12ed3c);});}}_0x251dec[_0x5f49e8([0x6f,0x6e])](_0x5f49e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51e27c,_0x5dd0cb)=>{if(_0x5dd0cb[0x0]!=_0xc54325)return _0x4bb29c(_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5dd0cb[0x1]={..._0x5dd0cb[0x1],[_0x5f49e8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58fd54};},{[_0x5f49e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f49e8([0x68,0x69,0x67,0x68])}),_0x251dec[_0x5f49e8([0x6f,0x6e])](_0x5f49e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb9e921=>{_0x304926(_0xb9e921[_0x5f49e8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x806de9=!0x0,_0x2c3f18(_0xb9e921[_0x5f49e8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f49e8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f49e8([0x6c,0x6f,0x77])}),_0x302e95[_0x5f49e8([0x74,0x68,0x65,0x6e])](()=>{_0x806de9||_0x4bb29c(_0x5f49e8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x538707(){return _0x251dec[_0x5f49e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f49e8([0x76,0x69,0x65,0x77])][_0x5f49e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f49e8([0x61,0x75,0x74,0x6f]);}function _0x13a4c6(){_0x251dec[_0x5f49e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f49e8([0x76,0x69,0x65,0x77])][_0x5f49e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f49e8([0x61,0x75,0x74,0x6f]);}}function _0xb3c32f(_0x221ac2){const _0x3206f6=[new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x432724=>setTimeout(_0x432724,0x5356b2f6^_0x12ed3c)),_0x302e95[_0x5f49e8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac5af=>{let _0xf41177=0x0;_0x251dec[_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49e8([0x6f,0x6e])](_0x5f49e8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1736e8,_0x27606e)=>{_0x27606e[0x0][_0x5f49e8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf41177++,_0xf41177==(0x535f8dc2^_0x12ed3c)&&(_0x5ac5af(),_0x1736e8[_0x5f49e8([0x6f,0x66,0x66])]());});}))];return window[_0x5f49e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f49e8([0x72,0x61,0x63,0x65])](_0x3206f6)[_0x5f49e8([0x74,0x68,0x65,0x6e])](()=>_0x221ac2);}async function _0xe40a24(){await _0x302e95,_0x251dec[_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49e8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4009a2,_0x251dec[_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f49e8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4009a2,_0x251dec[_0x5f49e8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f49e8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16190d(_0x1a79af){const _0x1413a2=_0x1ea24f();_0x251dec[_0x1413a2]=_0x5f49e8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a79af,_0x1a79af!=_0x5f49e8([0x56,0x61,0x6c,0x69,0x64])&&_0xe40a24();}function _0x1ea24f(){const _0x4d5b7a=window[_0x5f49e8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f49e8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f49e8([0x6e,0x6f,0x77])]())[_0x5f49e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f49e8([0x2e]),'');let _0x119903=_0x5f49e8([0x68]);for(let _0x178a40=0x0;_0x178a40<_0x4d5b7a[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x178a40+=0x2){let _0x51dae4=window[_0x5f49e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d5b7a[_0x5f49e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x178a40,_0x178a40+0x2));_0x51dae4>=_0x10d2c4[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51dae4-=_0x10d2c4[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x119903+=_0x10d2c4[_0x51dae4];}return _0x119903;}function _0x5a92ac(){const _0x3b96be=_0x4a856b[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e]));if(0x3!=_0x3b96be[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4115a6(_0x3b96be[0x1]);function _0x4115a6(_0x578aad){const _0x3ad95c=_0x425683(_0x578aad);return _0x3ad95c&&_0x245382()?_0x3ad95c:null;function _0x245382(){const _0xa55071=_0x3ad95c[_0x5f49e8([0x6a,0x74,0x69])],_0x2dcb1c=window[_0x5f49e8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa55071[_0x5f49e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa55071[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bae83={..._0x3ad95c,[_0x5f49e8([0x6a,0x74,0x69])]:_0xa55071[_0x5f49e8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa55071[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bae83[_0x5f49e8([0x76,0x63])],_0x4bbf80(_0x3bae83)==_0x2dcb1c;}}}async function _0x1cdc34(){let _0x4e8ec4=!0x0;try{const _0xf5d10e=_0x4a856b[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])](_0x5f49e8([0x2e])),[_0x10c0d2,_0x4ac3a8,_0x941013]=_0xf5d10e;return _0x325519(_0x10c0d2),await _0x237b85(_0x10c0d2,_0x4ac3a8,_0x941013),_0x4e8ec4;}catch{return!0x1;}function _0x325519(_0x4835ea){const _0x234601=_0x425683(_0x4835ea);_0x234601&&_0x234601[_0x5f49e8([0x61,0x6c,0x67])]==_0x5f49e8([0x45,0x53,0x32,0x35,0x36])||(_0x4e8ec4=!0x1);}async function _0x237b85(_0x39da03,_0x2793cc,_0x33f66f){const _0x4455b6=window[_0x5f49e8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f49e8([0x66,0x72,0x6f,0x6d])](_0x240ec0(_0x33f66f),_0x571aa2=>_0x571aa2[_0x5f49e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x51c608=new window[(_0x5f49e8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f49e8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39da03+_0x5f49e8([0x2e])+_0x2793cc),_0x143e02=window[_0x5f49e8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f49e8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x143e02)return;const _0x40da0c=await _0x143e02[_0x5f49e8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f49e8([0x6a,0x77,0x6b]),_0x4ffcbb,{[_0x5f49e8([0x6e,0x61,0x6d,0x65])]:_0x5f49e8([0x45,0x43,0x44,0x53,0x41]),[_0x5f49e8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f49e8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f49e8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x143e02[_0x5f49e8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f49e8([0x6e,0x61,0x6d,0x65])]:_0x5f49e8([0x45,0x43,0x44,0x53,0x41]),[_0x5f49e8([0x68,0x61,0x73,0x68])]:{[_0x5f49e8([0x6e,0x61,0x6d,0x65])]:_0x5f49e8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40da0c,_0x4455b6,_0x51c608)||(_0x4e8ec4=!0x1);}}function _0x425683(_0x6ab02a){return _0x6ab02a[_0x5f49e8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f49e8([0x65,0x79]))?JSON[_0x5f49e8([0x70,0x61,0x72,0x73,0x65])](_0x240ec0(_0x6ab02a)):null;}function _0x240ec0(_0xeb3496){return window[_0x5f49e8([0x61,0x74,0x6f,0x62])](_0xeb3496[_0x5f49e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f49e8([0x2b]))[_0x5f49e8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f49e8([0x2f])));}function _0x4bbf80(_0x238158){let _0x4f425b=0x1505;function _0x2853d2(_0x725dc2){for(let _0x5c0351=0x0;_0x5c0351<_0x725dc2[_0x5f49e8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c0351++){const _0x388671=_0x725dc2[_0x5f49e8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c0351);_0x4f425b=(_0x4f425b<<0x5)+_0x4f425b+_0x388671,_0x4f425b&=_0x4f425b;}}function _0x5a26e7(_0x1f814c){Array[_0x5f49e8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f814c)?_0x1f814c[_0x5f49e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a26e7):_0x1f814c&&typeof _0x1f814c==_0x5f49e8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f49e8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f814c)[_0x5f49e8([0x73,0x6f,0x72,0x74])]()[_0x5f49e8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ad473,_0x55b493])=>{_0x2853d2(_0x1ad473),_0x5a26e7(_0x55b493);}):_0x2853d2(window[_0x5f49e8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f814c));}return _0x5a26e7(_0x238158),_0x4f425b>>>0x0;}function _0x370022(_0x3d7bbf){return _0x3d7bbf[_0x5f49e8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f49e8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f49e8([0x30]));}function _0x14a78f(_0x56ab41){return _0x56ab41[_0x5f49e8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f49e8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f49e8([0x6a,0x6f,0x69,0x6e])]('');}function _0x4009a2(){}function _0x5f49e8(_0x5a8a35){return _0x5a8a35['map'](_0x5cb202=>String['fromCharCode'](_0x5cb202))['join']('');}_0x16190d(await _0x553337());}(this);}['_initSchema'](){const _0x552feb=this['editor']['model']['schema'];_0x552feb['isRegistered']('imageBlock')&&_0x552feb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x552feb['isRegistered']('imageInline')&&_0x552feb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5cd44f=this['editor'];_0x5cd44f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5cd44f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2b01d9=>_0x2b01d9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x441a20=_0x5cd44f['commands']['get']('replaceImageSource');_0x441a20&&this['listenTo'](_0x441a20,'cleanupImage',(_0x42fcb9,[_0x564db4,_0x261ae4])=>{_0x564db4['removeAttribute']('uploadcareImageId',_0x261ae4);});}['_initConfig'](){const _0x47abf1=this['editor']['config']['get']('uploadcare.uploader')||{},_0x276d42=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4db309(_0x1f4901['document'],'uc-config',{..._0x47abf1,'pubkey':_0x276d42,'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']=_0x5317e4=>{if('closeMax'==_0x5317e4)return'#uc-icon-arrow-down';},_0x1f4901['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4db309(_0x1f4901['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1f4901['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x398d03=this['editor']['commands']['get']('insertImage');_0x398d03&&this['listenTo'](_0x398d03,'execute',()=>{const _0x13a06d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x13a06d&&_0x13a06d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x13a06d);});});const _0x5752d9=this['editor']['commands']['get']('uploadcareImageReplace');_0x5752d9&&this['listenTo'](_0x5752d9,'execute',()=>{const _0x5ee02c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5ee02c&&_0x5ee02c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5ee02c);});});}}class tt extends _0x17cd1e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1875a6){super(_0x1875a6),_0x1875a6['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3ae175['defineComponents'](_0x3ae175),this['_defineLocale']();}['_defineLocale'](){const _0x4b4823=this['editor']['config']['get']('uploadcare.locale'),_0x59fd8d=this['editor']['locale']['contentLanguage'];_0x4b4823&&_0x3ae175['defineLocale'](_0x59fd8d,_0x4b4823);}}class ii extends _0x425952{constructor(_0x5ba07c){super(_0x5ba07c);const t=_0x5ba07c['t'],_0x3055bd=this['bindTemplate'],_0x249481=new _0x3db628();_0x249481['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':[_0x249481,{'text':_0x3055bd['to']('imageUploadProgress',_0x48899d=>t('Loading\x20image...')+'\x20('+(_0x48899d||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 _0x425952{constructor(_0x590d1a){super(_0x590d1a);const t=_0x590d1a['t'];this['set']('errorType',null);const _0x3ad669=new _0x7a9863(_0x590d1a);_0x3ad669['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3ad669['withText']=!0x0,_0x3ad669['class']='ck-button-action',_0x3ad669['on']('execute',()=>{this['fire']('retry');}),_0x3ad669['bind']('isVisible')['to'](this,'errorType',_0x5064f3=>'NotFound'!==_0x5064f3);const _0x22dc14=new _0x3a706b();_0x22dc14['content']=_0x394e39,_0x22dc14['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16ea45=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':[_0x22dc14,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16ea45['to']('errorType',_0x5cc6ed=>t('NotFound'!==_0x5cc6ed?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3ad669]},{'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 _0x425952{constructor(_0x162a91,_0x5610d7){super(_0x162a91);const _0x227f9d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5610d7,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x227f9d['to']('imageSrc')}});}}class X extends W{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x398370,_0x2fca02,_0x53921a){super(_0x398370),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x398370),this['_errorView']=new ti(_0x398370),this['_editingView']=new ei(_0x398370,_0x53921a),this['_focusableView']=new _0x425952(_0x398370),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2fca02),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'],_0x108195=>{this['_addUploadcareImageEditorListeners'](_0x108195);});}),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'](_0x47718f,_0x47f156){const _0x43e5d4='uc-cloud-image-editor',_0x34573e=_0x47718f['querySelector'](_0x43e5d4);if(_0x34573e)return _0x47f156(_0x34573e);const _0x282ab8=new MutationObserver(_0x3e0930=>{const _0x2079eb=_0x3e0930['filter'](_0x509e73=>_0x509e73['target']===_0x47718f&&_0x509e73['addedNodes']['length']>0x0&&_0x509e73['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43e5d4);_0x2079eb['length']&&(_0x282ab8['disconnect'](),_0x47f156(_0x2079eb[0x0]['addedNodes'][0x0]));});_0x282ab8['observe'](_0x47718f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x13ffd1){_0x13ffd1['addEventListener']('apply',_0x49c44f=>{this['fire']('apply',{'imageSrc':_0x49c44f['detail']['cdnUrl']});}),_0x13ffd1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x18bc34(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x58096c,_0x59898a,_0x12470d){super(),this['_editor']=_0x58096c,this['_dialog']=_0x59898a,this['_imageElement']=_0x12470d,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 _0x2a77ed=this['_imageElement'],_0x5efdda=_0x2a77ed['getAttribute']('uploadcareImageId'),_0x141e09=_0x2a77ed['getAttribute']('src');if(_0x5efdda)await this['_loadImageInfo'](_0x5efdda,_0x141e09);else{if(this['_imageCache']['has'](_0x141e09)){const _0x1b3e4e=this['_imageCache']['get'](_0x141e09);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b3e4e['url'],this['imageDimension']=_0x1b3e4e['dimension'],this['imageId']=_0x1b3e4e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x346c58}=this['_editor'],t=_0x346c58['t'],_0x435634=new X(_0x346c58,this['imageStatus'],this['_attributes']);_0x435634['bind']('status')['to'](this,'imageStatus'),_0x435634['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x435634['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x435634['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x435634,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2fca44,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x435634,'position':_0x1676f1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x435634['focus']();},'onHide':()=>{_0x435634['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x233ce0=>!Q(_0x233ce0,_0x435634['element'])}});}['_loadImageInfo'](_0x2c4bce,_0x129d04){return j['getInfo'](_0x2c4bce,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x551a8e=>{const {width:_0x100985,height:_0x27bccc}=_0x551a8e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x129d04,this['imageDimension']={'width':_0x100985,'height':_0x27bccc},this['imageId']=_0x2c4bce;})['catch'](_0x502d45=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x502d45['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xa1eb34,_0x93a1c1){return this['_getImageAsFile'](_0xa1eb34)['then'](_0x17ee7d=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x93a1c1['signal'],'file':_0x17ee7d,'onProgress':_0x34ce63=>{_0x34ce63&&_0x34ce63['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x34ce63['value']));}}))['then'](_0x56ea02=>{const {width:_0xccd9e8,height:_0x502fb6}=_0x56ea02['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56ea02['cdnUrl'],this['imageDimension']={'width':_0xccd9e8,'height':_0x502fb6},this['imageId']=_0x56ea02['uuid'],this['imageUploadProgress']=null;const _0x1877f2=_0xa1eb34['getAttribute']('src');this['_imageCache']['set'](_0x1877f2,{'id':_0x56ea02['uuid'],'url':_0x56ea02['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3e12cd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3e12cd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x76a11e,_0x1f8e54){_0x76a11e['on']('apply',(_0x40fa32,_0x503c60)=>{this['_replaceImage'](_0x1f8e54,_0x503c60['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x76a11e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x76a11e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x49e13b,_0x1d622b,_0x30f00e){const _0x46c2c6=this['_editor'],{width:_0x29ff1e,height:_0x34d685}=V(_0x1d622b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x489a19,imageSources:_0x2e5962}=C(_0x1d622b,_0x29ff1e);_0x46c2c6['model']['change'](_0x77ebcd=>{if('$graveyard'===_0x49e13b['root']['rootName']){_0x46c2c6['execute']('insertImage',{'imageType':_0x49e13b['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x49e13b['getAttributes']()),'uploadcareImageId':_0x30f00e,'src':_0x489a19,'sources':_0x2e5962,'width':_0x29ff1e,'height':_0x34d685}});const _0x286f92=_0x49e13b['getChildren']();_0x49e13b=_0x46c2c6['model']['document']['selection']['getSelectedElement']();for(const _0x50ece7 of _0x286f92)_0x77ebcd['append'](_0x77ebcd['cloneElement'](_0x50ece7),_0x49e13b);}else _0x77ebcd['setSelection'](_0x49e13b,'on'),_0x46c2c6['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x49e13b['getAttributes']()),'uploadcareImageId':_0x30f00e,'src':_0x489a19,'sources':_0x2e5962,'width':_0x29ff1e,'height':_0x34d685},_0x49e13b);_0x77ebcd['setSelection'](_0x49e13b,'on');});}async['_getImageAsFile'](_0x30c046){const _0x9c3f82=_0x1f4901['window'],_0x4b0505=_0x1f4901['document']['location']['href'],_0x1b5e46=new _0x9c3f82['URL'](_0x30c046['getAttribute']('src'),_0x4b0505);if('data:'===_0x1b5e46['protocol']){const _0x217af8=_0x1b5e46['href']['split'](','),_0x22a4ae=_0x217af8[0x0]['match'](/:(.*?);/)[0x1],_0x3d6a8b=_0x22a4ae['split']('/')[0x1],_0x4000a5=_0x9c3f82['atob'](_0x217af8[_0x217af8['length']-0x1]);let _0x3f3974=_0x4000a5['length'];const _0x226f2e=new _0x9c3f82['Uint8Array'](_0x3f3974);for(;_0x3f3974--;)_0x226f2e[_0x3f3974]=_0x4000a5['charCodeAt'](_0x3f3974);return new _0x9c3f82['File']([_0x226f2e],'image.'+_0x3d6a8b,{'type':_0x22a4ae});}const _0x3d198a=_0x1b5e46['href']['split']('/'),_0x2b4b5e=_0x3d198a[_0x3d198a['length']-0x1],_0x5ed919=_0x2b4b5e['split']('.')[0x1];return _0x9c3f82['fetch'](_0x1b5e46['href'])['then'](_0x27a1be=>_0x27a1be['clone']()['blob']())['then'](_0x16b812=>new _0x9c3f82['File']([_0x16b812],_0x2b4b5e,{'type':'image/'+_0x5ed919}));}}class N extends _0xdd9173{['imageEditController'];static get['requires'](){return[_0x2e3fff];}['_isEditable'];constructor(_0x5841bc){super(_0x5841bc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x19ccc0){const _0x220ceb=z(_0x19ccc0);return _0x4cc761=>!(!_0x4cc761||!_0x4cc761['is']('element','imageBlock')&&!_0x4cc761['is']('element','imageInline'))&&(!!_0x4cc761['hasAttribute']('uploadcareImageId')||!!_0x4cc761['hasAttribute']('src')&&_0x220ceb(_0x4cc761['getAttribute']('src')));}(_0x5841bc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1115b8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1115b8);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3ea1c9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ea1c9&&(_0x3ea1c9['is']('element','imageBlock')||_0x3ea1c9['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2e3fff),_0x3ea1c9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xdd9173{['refresh'](){const _0x6c4e6e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x6c4e6e&&(_0x6c4e6e['is']('element','imageBlock')||_0x6c4e6e['is']('element','imageInline')));}['execute'](_0x1a76af){const _0x44e44e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x724f08=>{_0x724f08['setAttributes'](_0x1a76af,_0x44e44e),_0x724f08['removeAttribute']('srcset',_0x44e44e),_0x724f08['removeAttribute']('sizes',_0x44e44e);});}}class m extends _0x17cd1e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2a969a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x22b098}=this;_0x22b098['commands']['add']('uploadcareImageEdit',new N(_0x22b098)),_0x22b098['commands']['add']('uploadcareImageReplace',new O(_0x22b098));}}class g extends _0x17cd1e{['_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 _0x5df493=this['editor'];_0x5df493['ui']['componentFactory']['add']('uploadcareImageEdit',_0x221d56=>{const _0x19d827=_0x5df493['commands']['get']('uploadcareImageEdit'),_0x53858f=new _0x7a9863(_0x221d56),t=_0x221d56['t'];return _0x53858f['set']({'icon':_0x2fca44,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x53858f['bind']('isEnabled')['to'](_0x19d827),_0x53858f['bind']('isOn')['to'](_0x19d827,'isActive'),this['listenTo'](_0x53858f,'execute',()=>{_0x5df493['execute']('uploadcareImageEdit'),_0x5df493['editing']['view']['focus']();}),_0x53858f;}),this['_initConfig']();}['_initConfig'](){const _0x5264bf=_0x4db309(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5264bf),this['listenTo'](this['editor'],'destroy',()=>{_0x5264bf['remove']();});}}class et extends _0x17cd1e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x4779cf,Command as _0x13eeb9}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x313f56,IconGooglePhotos as _0x3179b6,IconGoogleDrive as _0x45b839,IconFacebook as _0x1b8a7f,IconDropbox as _0x59b998,IconUploadcareLink as _0x38ea51,IconUploadcareImageUpload as _0x3dfce2,IconError as _0xbd048f,IconUploadcareImageEdit as _0x3ae70f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1008af,MenuBarMenuListItemButtonView as _0x25b7de,View as _0x203cfa,FocusCycler as _0x575577,Dialog as _0x423b6,DialogViewPosition as _0x598f47,SpinnerView as _0x549009,IconView as _0x17b942,Notification as _0x5c3b23}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x25c7cc,DomEmitterMixin as _0x545af5,global as _0x3ab659,getAncestors as _0x328469,ObservableMixin as _0x2a8919,uid as _0xc112e2,createElement as _0x41585f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x34fd7a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x45c7da,info as _0x2d58b8}from'@uploadcare/upload-client';import*as _0x3b84a6 from'@uploadcare/file-uploader';var i=function(_0x262e3f){return _0x262e3f['Local']='local',_0x262e3f['URL']='url',_0x262e3f['Dropbox']='dropbox',_0x262e3f['GDrive']='gdrive',_0x262e3f['Facebook']='facebook',_0x262e3f['GPhotos']='gphotos',_0x262e3f['OneDrive']='onedrive',_0x262e3f;}({});function _(_0x188508,_0x4fbe27,_0x526e24){const t=_0x188508['t'],_0x345fb3=_0x188508['t'];switch(_0x4fbe27){case i['Local']:return{'text':_0x345fb3('Insert'===_0x526e24?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x345fb3('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x526e24?_0x345fb3('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x345fb3('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x526e24?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x526e24?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x526e24?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x526e24?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x526e24?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4fbe27;}}class e extends _0x4779cf{['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 _0x5dba8d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f7b17;for(const _0x55de3f in _0x5dba8d){const _0x135e6d=_0x55de3f,_0x3b5c41=_0x5dba8d[_0x135e6d];if('uploadcareLicenseKeyValid'==_0x3b5c41||'uploadcareLicenseKeyInvalid'==_0x3b5c41||'uploadcareLicenseKeyExpired'==_0x3b5c41||'uploadcareLicenseKeyDomainLimit'==_0x3b5c41||'uploadcareLicenseKeyNotAllowed'==_0x3b5c41||'uploadcareLicenseKeyEvaluationLimit'==_0x3b5c41||'uploadcareLicenseKeyTrialLimit'==_0x3b5c41||'uploadcareLicenseKeyUsageLimit'==_0x3b5c41){delete _0x5dba8d[_0x135e6d],_0x2f7b17=_0x3b5c41,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2f7b17&&_0x5dba8d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x484043}=this,_0x25f271=_0x484043['commands']['get']('uploadcare');if(!_0x25f271)return;const _0x5c68b5=this['_normalizeConfigSourceList'](_0x484043['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x20a07f,_0x4846df)=>{const _0x1b85dd=this['_getIntegrationKey'](_0x4846df['type']);return _0x20a07f[_0x1b85dd]||(_0x20a07f[_0x1b85dd]=[]),_0x20a07f[_0x1b85dd]['push'](_0x4846df),_0x20a07f;},{});_0x484043['plugins']['has']('ImageInsertUI')&&_0x484043['commands']['get']('uploadcare')&&Object['entries'](_0x5c68b5)['forEach'](([_0x16cbc0,_0x11e2d1])=>{_0x484043['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x16cbc0,'observable':()=>_0x25f271,'buttonViewCreator':()=>this['_createToolbarButton'](_0x11e2d1),'formViewCreator':()=>this['_createDropdownButtons'](_0x11e2d1),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x11e2d1),'override':'assetManager'!==_0x16cbc0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x116eb6){const {locale:_0x2613d3}=this['editor'];return _0x116eb6['map'](_0x346c52=>{const _0x3161d5=_(_0x2613d3,_0x346c52,'Insert');switch(_0x346c52){case i['Local']:return{'icon':_0x3dfce2,'type':i['Local'],..._0x3161d5};case i['URL']:return{'icon':_0x38ea51,'type':i['URL'],..._0x3161d5};case i['Dropbox']:return{'icon':_0x59b998,'type':i['Dropbox'],..._0x3161d5};case i['Facebook']:return{'icon':_0x1b8a7f,'type':i['Facebook'],..._0x3161d5};case i['GDrive']:return{'icon':_0x45b839,'type':i['GDrive'],..._0x3161d5};case i['GPhotos']:return{'icon':_0x3179b6,'type':i['GPhotos'],..._0x3161d5};case i['OneDrive']:return{'icon':_0x313f56,'type':i['OneDrive'],..._0x3161d5};}});}['_getIntegrationKey'](_0x525e5f){switch(_0x525e5f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x431d49,_0x1c823f){const _0x15bdca=this['editor'],_0x24039c=new _0x431d49(_0x15bdca['locale']),_0x234ad9=_0x15bdca['commands']['get']('uploadcare');return _0x24039c['bind']('isEnabled')['to'](_0x234ad9),_0x24039c['on']('execute',()=>{_0x234ad9['execute'](_0x1c823f);}),_0x24039c;}['_createToolbarButton'](_0x5dd78b){const {locale:_0x893465}=this['editor'],_0x7a45c2=this['editor']['plugins']['get']('ImageInsertUI'),_0x3e36a6=_0x5dd78b[0x0],_0x3b9ab0=this['_createButton'](_0x1008af,_0x3e36a6['type']);return _0x3b9ab0['icon']=_0x3e36a6['icon'],_0x3b9ab0['bind']('label')['to'](_0x7a45c2,'isImageSelected',_0x2cbc3c=>_(_0x893465,_0x3e36a6['type'],_0x2cbc3c?'Replace':'Insert')['text']),_0x3b9ab0['tooltip']=!0x0,_0x3b9ab0;}['_createDropdownButtons'](_0x57fa99){const {locale:_0x450e39}=this['editor'],_0x459c50=this['editor']['plugins']['get']('ImageInsertUI');return _0x57fa99['map'](_0x16503f=>{const _0x1aa832=this['_createButton'](_0x1008af,_0x16503f['type']);return _0x1aa832['withText']=!0x0,_0x1aa832['icon']=_0x16503f['icon'],_0x1aa832['bind']('label')['to'](_0x459c50,'isImageSelected',_0x2bd495=>_(_0x450e39,_0x16503f['type'],_0x2bd495?'Replace':'Insert')['text']),_0x1aa832;});}['_createMenuBarButtons'](_0x505eab){return _0x505eab['map'](_0x368e5b=>{const _0x102567=this['_createButton'](_0x25b7de,_0x368e5b['type']);return _0x102567['icon']=_0x368e5b['icon'],_0x102567['label']=_0x368e5b['shortText'],_0x102567;});}}class F extends _0x203cfa{['focusTracker'];['focusCycler'];constructor(_0xe2f3e9){super(_0xe2f3e9),this['focusTracker']=new _0x25c7cc(),this['focusCycler']=new _0x575577({'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(_0x35b8cd,_0x34e177){super(_0x35b8cd),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-'+_0x34e177}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x39d9fc,_0x237097){const _0xf97a13=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1ad5a8=>_0x1ad5a8<=_0x237097)['map'](_0x1a4803=>_0x39d9fc['replace'](/\/$/,'')+'/-/resize/'+_0x1a4803+'x/\x20'+_0x1a4803+'w');return{'imageFallbackUrl':_0x39d9fc,'imageSources':[{'srcset':_0xf97a13['join'](',\x20'),'sizes':'(max-width:\x20'+_0x237097+'px)\x20100vw,\x20'+_0x237097+'px','type':'image/webp'}]};}function S(_0x4d48dc,_0x4a5e8d,_0x232bb5){const _0x19bcd5=_0x4d48dc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x19bcd5?parseInt(_0x19bcd5[0x1],0xa):_0x4a5e8d,'height':_0x19bcd5?parseInt(_0x19bcd5[0x2],0xa):_0x232bb5};}function p(_0x33102b,_0x1aa296){const _0x262d8d=new(_0x545af5())(),_0x200802=_0x33102b['plugins']['get']('ImageUtils'),_0x536743=_0x33102b['editing']['mapper']['toViewElement'](_0x1aa296),_0x47b0bb=_0x200802['findViewImgElement'](_0x536743),_0x65b5e0=_0x33102b['editing']['view']['domConverter']['viewToDom'](_0x47b0bb),_0x31c76a=_0x1aa296['getAttribute']('width'),_0x39515b=_0x1aa296['getAttribute']('height'),_0x2a6550='image-processing';_0x33102b['editing']['view']['change'](_0x7e047a=>{_0x7e047a['addClass'](_0x2a6550,_0x536743),_0x7e047a['setStyle']('aspect-ratio',_0x31c76a+'/'+_0x39515b,_0x47b0bb);}),_0x262d8d['listenTo'](_0x65b5e0,'load',()=>{_0x262d8d['stopListening'](_0x65b5e0,'load'),_0x33102b['editing']['view']['change'](_0x4a89a8=>{_0x4a89a8['removeClass'](_0x2a6550,_0x536743),_0x4a89a8['removeStyle']('aspect-ratio',_0x47b0bb);});});}function G(_0x1f5af1){if(Array['isArray'](_0x1f5af1)){const _0x3ca5b8=_0x1f5af1['map'](G);return _0x136d30=>_0x3ca5b8['some'](_0x37bc0d=>_0x37bc0d(_0x136d30));}if('origin'==_0x1f5af1){const _0x33fb66=_0x3ab659['window']['location']['origin'];return _0x1fb096=>new URL(_0x1fb096,_0x3ab659['document']['baseURI'])['origin']==_0x33fb66;}return'function'==typeof _0x1f5af1?_0x1f5af1:_0x1f5af1 instanceof RegExp?_0x4879b9=>!(!_0x4879b9['match'](_0x1f5af1)&&!_0x4879b9['replace'](/^https?:\/\//,'')['match'](_0x1f5af1)):()=>!0x1;}function A(_0x62c0a1,_0x57219d){return _0x328469(_0x62c0a1['target'])['includes'](_0x57219d);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2a8919(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b0caf,_0x514dd9,_0x288b78){super(),this['_editor']=_0x4b0caf,this['_editing']=_0x514dd9,this['_dialog']=_0x4b0caf['plugins']['get'](_0x423b6),this['_api']=_0x514dd9['ctxElement']['getAPI'](),this['_type']=_0x288b78,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:_0x3e8bc9,model:_0x3489c4}=this['_editor'],_0x9333a8=_0x3489c4['document']['selection']['getSelectedElement'](),_0x54e82b=_0x9333a8&&(_0x9333a8['is']('element','imageBlock')||_0x9333a8['is']('element','imageInline'));this['_formView']=new x(_0x3e8bc9,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3dfce2,'title':_(_0x3e8bc9,this['_type'],_0x54e82b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x598f47['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1709db=>!A(_0x1709db,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3c24df}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xbb3ad6=>{const _0x5598b4=_0x3c24df['length'];for(const _0x52dedd of _0x3c24df){const _0x33c0ea=_0x52dedd===_0x3c24df[_0x5598b4-0x1],{cdnUrl:_0x9fc219,fileInfo:_0x886563}=_0x52dedd;if(!_0x9fc219||!_0x886563)continue;const {width:_0x585e8c,height:_0x23f062}=_0x886563['imageInfo'],_0x57aedc=S(_0x9fc219,_0x585e8c,_0x23f062),_0x534099=C(_0x9fc219,_0x57aedc['width']),_0x4bedea={'id':_0x886563['uuid'],'type':'image','attributes':{'imageDimension':_0x57aedc,..._0x534099}};this['_insertAsset'](_0x4bedea,_0x33c0ea,_0xbb3ad6);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1c7528=>{'idle'===_0x1c7528['detail']['status']&&!_0x1c7528['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x91f568,_0x4c1a7e,_0x45dba8){const _0x3f82b9=this['_editor']['model']['document']['selection'],_0x4d12e3=_0x3f82b9['getSelectedElement'](),_0x286bf4=!(!_0x4d12e3||!_0x4d12e3['is']('element','imageInline'));_0x45dba8['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x91f568,_0x286bf4),_0x4c1a7e||_0x45dba8['setSelection'](_0x3f82b9['getLastPosition']());}['_insertImage'](_0x42938e,_0x230e90){const _0x18c85b=this['_editor'],{imageDimension:_0x549ede,imageFallbackUrl:_0x3d1fe4,imageSources:_0x2a2d80}=_0x42938e['attributes'];_0x18c85b['execute']('insertImage',{'imageType':_0x230e90?'imageInline':null,'source':{'uploadcareImageId':_0x42938e['id'],'src':_0x3d1fe4,'sources':_0x2a2d80,..._0x549ede}});}}class w extends _0x13eeb9{['_editing'];['_controller']=null;static get['requires'](){return[_0x423b6,o];}constructor(_0x4057ea){super(_0x4057ea),this['_editing']=_0x4057ea['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xdabe6b){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xdabe6b);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4ab657,..._0x408c9d}){return _0x45c7da(_0x4ab657,_0x408c9d);}static['getInfo'](_0x48c167,_0x206df6){return _0x2d58b8(_0x48c167,_0x206df6);}}class f extends _0x4779cf{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x34fd7a,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x409cb4=this['editor'];if(!!!_0x409cb4['config']['get']('uploadcare'))return;_0x409cb4['plugins']['get'](_0x34fd7a)['createUploadAdapter']=_0x49821d=>new k(_0x49821d,_0x409cb4),_0x409cb4['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2cfa33,{imageElement:_0x56b17,data:_0x10da74})=>{_0x409cb4['model']['change'](_0x80de73=>{_0x80de73['setAttribute']('uploadcareImageId',_0x10da74['uploadcareImageId'],_0x56b17);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2dd8d4,_0x30a48a){this['loader']=_0x2dd8d4,this['editor']=_0x30a48a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4ac33e=await this['loader']['file'];return j['upload']({'file':_0x4ac33e,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x55207e=>{_0x55207e&&_0x55207e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x55207e['value']);}})['then'](async _0x298d2b=>{const {imageFallbackUrl:_0x34bc98,imageSources:_0x20a962}=C(_0x298d2b['cdnUrl'],_0x298d2b['imageInfo']['width']);return{'uploadcareImageId':_0x298d2b['uuid'],'default':_0x34bc98,'sources':_0x20a962};})['catch'](()=>{const _0x45a88f=t('Cannot\x20upload\x20file:')+('\x20'+_0x4ac33e['name']+'.');return Promise['reject'](_0x45a88f);});}['abort'](){this['controller']['abort']();}}class o extends _0x4779cf{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x423b6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x291a7c){super(_0x291a7c),this['ucContextId']=_0xc112e2();}['init'](){const _0x3bf18f=this['editor'];_0x3bf18f['commands']['add']('uploadcare',new w(_0x3bf18f));}['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 _0x5d116b=_0x3ab659['document']['querySelector']('input[uploadcare-file-input]');_0x5d116b&&_0x5d116b['remove']();}),async function(_0x5c8a0c){const _0x43f899=_0x409dd3([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4f7eaf=0x535f8c3a,_0x501c30=0x5358f6e2^_0x4f7eaf,_0x273743=window[_0x409dd3([0x44,0x61,0x74,0x65])][_0x409dd3([0x6e,0x6f,0x77])](),_0x50b88e=_0x5c8a0c[_0x409dd3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x37bd85=new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58de04=>{_0x50b88e[_0x409dd3([0x6f,0x6e,0x63,0x65])](_0x409dd3([0x72,0x65,0x61,0x64,0x79]),_0x58de04);}),_0x2670e5={[_0x409dd3([0x6b,0x74,0x79])]:_0x409dd3([0x45,0x43]),[_0x409dd3([0x75,0x73,0x65])]:_0x409dd3([0x73,0x69,0x67]),[_0x409dd3([0x63,0x72,0x76])]:_0x409dd3([0x50,0x2d,0x32,0x35,0x36]),[_0x409dd3([0x78])]:_0x409dd3([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]),[_0x409dd3([0x79])]:_0x409dd3([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]),[_0x409dd3([0x61,0x6c,0x67])]:_0x409dd3([0x45,0x53,0x32,0x35,0x36])},_0x450f12=_0x50b88e[_0x409dd3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x409dd3([0x67,0x65,0x74])](_0x409dd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9b7f93(){let _0x3e8640,_0x5e9e3e=null,_0x16459f=null;try{if(_0x450f12==_0x409dd3([0x47,0x50,0x4c]))return _0x409dd3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e8640=_0x14f135(),!_0x3e8640)return _0x409dd3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e8640[_0x409dd3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16459f=_0x400096(_0x3e8640[_0x409dd3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e8640[_0x409dd3([0x6a,0x74,0x69])])),await _0x2d4476()?_0x5ad6c4()?_0x512eb8()?_0x409dd3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b0451()?(_0x3e8640[_0x409dd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x409dd3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e9e3e=_0x44f9c5(_0x409dd3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e8640[_0x409dd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x409dd3([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e9e3e=_0x44f9c5(_0x409dd3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36322c()):_0x409dd3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x409dd3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x409dd3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x409dd3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x512eb8(){const _0x2febbd=[_0x409dd3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x409dd3([0x74,0x72,0x69,0x61,0x6c])][_0x409dd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e8640[_0x409dd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x273743/0x3e8:0xe10*_0x501c30;return _0x3e8640[_0x409dd3([0x65,0x78,0x70])]<_0x2febbd;}function _0x5ad6c4(){const _0x3b2cd4=_0x3e8640[_0x409dd3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b2cd4&&(!!_0x3b2cd4[_0x409dd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x409dd3([0x2a]))||!!_0x3b2cd4[_0x409dd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x409dd3([0x55,0x50,0x4c,0x43])));}function _0x4b0451(){const _0x3ec143=_0x3e8640[_0x409dd3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ec143||0x0==_0x3ec143[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x48d0bb}=new URL(window[_0x409dd3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ec143[_0x409dd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d0bb))return!0x0;const _0x125b4e=_0x48d0bb[_0x409dd3([0x73,0x70,0x6c,0x69,0x74])](_0x409dd3([0x2e]));return _0x3ec143[_0x409dd3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42d3a3=>_0x42d3a3[_0x409dd3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x409dd3([0x2a])))[_0x409dd3([0x6d,0x61,0x70])](_0x5866c0=>_0x5866c0[_0x409dd3([0x73,0x70,0x6c,0x69,0x74])](_0x409dd3([0x2e])))[_0x409dd3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cea6e=>_0x3cea6e[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x125b4e[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x409dd3([0x6d,0x61,0x70])](_0x1b109d=>Array(_0x125b4e[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b109d[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x409dd3([0x66,0x69,0x6c,0x6c])](_0x1b109d[0x0]===_0x409dd3([0x2a])?_0x409dd3([0x2a]):'')[_0x409dd3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b109d))[_0x409dd3([0x73,0x6f,0x6d,0x65])](_0x47c1b2=>_0x125b4e[_0x409dd3([0x65,0x76,0x65,0x72,0x79])]((_0x334b72,_0x17799e)=>_0x47c1b2[_0x17799e]===_0x334b72||_0x47c1b2[_0x17799e]===_0x409dd3([0x2a])));}function _0x36322c(){return _0x5e9e3e&&_0x16459f?new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd34cc4,_0x509bf2)=>{_0x5e9e3e[_0x409dd3([0x74,0x68,0x65,0x6e])](_0xd34cc4,_0x509bf2),_0x16459f[_0x409dd3([0x74,0x68,0x65,0x6e])](_0x2ca64f=>{_0x2ca64f!=_0x409dd3([0x56,0x61,0x6c,0x69,0x64])&&_0xd34cc4(_0x2ca64f);},_0x509bf2);}):_0x5e9e3e||_0x16459f||_0x409dd3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x400096(_0x554c97,_0x3d04eb){return new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xadfe6e=>{if(_0xe2d8c1())return _0xadfe6e(_0x409dd3([0x56,0x61,0x6c,0x69,0x64]));_0x52ccdb(),_0x50b88e[_0x409dd3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x409dd3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x389ab4=!0x1;const _0x1b3911=_0xc112e2();function _0x1579bc(_0x477eb3){return!!_0x477eb3&&(typeof _0x477eb3===_0x409dd3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x477eb3===_0x409dd3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x477eb3[_0x409dd3([0x74,0x68,0x65,0x6e])]===_0x409dd3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x477eb3[_0x409dd3([0x63,0x61,0x74,0x63,0x68])]===_0x409dd3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b0a2a(_0x9ac8b2){_0x17de20(_0x9ac8b2)[_0x409dd3([0x74,0x68,0x65,0x6e])](_0x3f7d0a=>{if(!_0x3f7d0a||_0x3f7d0a[_0x409dd3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x409dd3([0x6f,0x6b]))return _0x409dd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x293047(_0xc6c6a4(_0x1b3911+_0x3d04eb))!=_0x3f7d0a[_0x409dd3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x409dd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x409dd3([0x56,0x61,0x6c,0x69,0x64]);})[_0x409dd3([0x74,0x68,0x65,0x6e])](_0x392980=>(_0x21fd3f(),_0x392980),()=>{const _0x406c2c=_0x31692f();return null==_0x406c2c?(_0x21fd3f(),_0x409dd3([0x56,0x61,0x6c,0x69,0x64])):_0x409dd3(_0x273743-_0x406c2c>(0x7753083a^_0x4f7eaf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x409dd3([0x74,0x68,0x65,0x6e])](_0xadfe6e)[_0x409dd3([0x63,0x61,0x74,0x63,0x68])](()=>{_0xadfe6e(_0x409dd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4865d0=0x536962ba^_0x4f7eaf;function _0x21fd3f(){const _0x142617=_0x409dd3([0x6c,0x6c,0x63,0x74,0x2d])+_0x293047(_0xc6c6a4(_0x554c97)),_0x4f4d53=_0x4cbbc7(_0x293047(window[_0x409dd3([0x4d,0x61,0x74,0x68])][_0x409dd3([0x63,0x65,0x69,0x6c])](_0x273743/_0x4865d0)));window[_0x409dd3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x409dd3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x142617,_0x4f4d53);}function _0x31692f(){const _0x1652e5=_0x409dd3([0x6c,0x6c,0x63,0x74,0x2d])+_0x293047(_0xc6c6a4(_0x554c97)),_0x5eba8e=window[_0x409dd3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x409dd3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1652e5);return _0x5eba8e?window[_0x409dd3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cbbc7(_0x5eba8e),0x10)*_0x4865d0:null;}function _0x17de20(_0x19ea4e){return new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1984b0,_0x3533bb)=>{_0x19ea4e[_0x409dd3([0x74,0x68,0x65,0x6e])](_0x1984b0,_0x3533bb),window[_0x409dd3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3533bb,0x535e58fa^_0x4f7eaf);});}}_0x50b88e[_0x409dd3([0x6f,0x6e])](_0x409dd3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4458c8,_0x1cdcad)=>{if(_0x1cdcad[0x0]!=_0x554c97)return _0xadfe6e(_0x409dd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1cdcad[0x1]={..._0x1cdcad[0x1],[_0x409dd3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b3911};},{[_0x409dd3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x409dd3([0x68,0x69,0x67,0x68])}),_0x50b88e[_0x409dd3([0x6f,0x6e])](_0x409dd3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e3de4=>{_0x1579bc(_0x4e3de4[_0x409dd3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x389ab4=!0x0,_0x3b0a2a(_0x4e3de4[_0x409dd3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x409dd3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x409dd3([0x6c,0x6f,0x77])}),_0x37bd85[_0x409dd3([0x74,0x68,0x65,0x6e])](()=>{_0x389ab4||_0xadfe6e(_0x409dd3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe2d8c1(){return _0x50b88e[_0x409dd3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x409dd3([0x76,0x69,0x65,0x77])][_0x409dd3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x409dd3([0x61,0x75,0x74,0x6f]);}function _0x52ccdb(){_0x50b88e[_0x409dd3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x409dd3([0x76,0x69,0x65,0x77])][_0x409dd3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x409dd3([0x61,0x75,0x74,0x6f]);}}function _0x44f9c5(_0xcd131b){const _0x33f4bb=[new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55fe22=>setTimeout(_0x55fe22,0x5356b2f6^_0x4f7eaf)),_0x37bd85[_0x409dd3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x308136=>{let _0x41a65a=0x0;_0x50b88e[_0x409dd3([0x6d,0x6f,0x64,0x65,0x6c])][_0x409dd3([0x6f,0x6e])](_0x409dd3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1baf1c,_0x10c482)=>{_0x10c482[0x0][_0x409dd3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x41a65a++,_0x41a65a==(0x535f8dc2^_0x4f7eaf)&&(_0x308136(),_0x1baf1c[_0x409dd3([0x6f,0x66,0x66])]());});}))];return window[_0x409dd3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x409dd3([0x72,0x61,0x63,0x65])](_0x33f4bb)[_0x409dd3([0x74,0x68,0x65,0x6e])](()=>_0xcd131b);}async function _0x567cc7(){await _0x37bd85,_0x50b88e[_0x409dd3([0x6d,0x6f,0x64,0x65,0x6c])][_0x409dd3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x423944,_0x50b88e[_0x409dd3([0x6d,0x6f,0x64,0x65,0x6c])][_0x409dd3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x423944,_0x50b88e[_0x409dd3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x409dd3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x274f5d(_0x289f96){const _0x349f34=_0x4fd09d();_0x50b88e[_0x349f34]=_0x409dd3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x289f96,_0x289f96!=_0x409dd3([0x56,0x61,0x6c,0x69,0x64])&&_0x567cc7();}function _0x4fd09d(){const _0x72ec2c=window[_0x409dd3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x409dd3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x409dd3([0x6e,0x6f,0x77])]())[_0x409dd3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x409dd3([0x2e]),'');let _0x10e854=_0x409dd3([0x68]);for(let _0x34a86f=0x0;_0x34a86f<_0x72ec2c[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34a86f+=0x2){let _0x2973b1=window[_0x409dd3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x72ec2c[_0x409dd3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34a86f,_0x34a86f+0x2));_0x2973b1>=_0x43f899[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2973b1-=_0x43f899[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10e854+=_0x43f899[_0x2973b1];}return _0x10e854;}function _0x14f135(){const _0x146080=_0x450f12[_0x409dd3([0x73,0x70,0x6c,0x69,0x74])](_0x409dd3([0x2e]));if(0x3!=_0x146080[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x508372(_0x146080[0x1]);function _0x508372(_0x5787fc){const _0x58c957=_0x1b5313(_0x5787fc);return _0x58c957&&_0x47abfa()?_0x58c957:null;function _0x47abfa(){const _0x4a7008=_0x58c957[_0x409dd3([0x6a,0x74,0x69])],_0x2f753a=window[_0x409dd3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a7008[_0x409dd3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a7008[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x325623={..._0x58c957,[_0x409dd3([0x6a,0x74,0x69])]:_0x4a7008[_0x409dd3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a7008[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x325623[_0x409dd3([0x76,0x63])],_0xc6c6a4(_0x325623)==_0x2f753a;}}}async function _0x2d4476(){let _0x2b6ad1=!0x0;try{const _0xa1fc05=_0x450f12[_0x409dd3([0x73,0x70,0x6c,0x69,0x74])](_0x409dd3([0x2e])),[_0x4a30d6,_0x58bc33,_0x1d3bac]=_0xa1fc05;return _0x52e0df(_0x4a30d6),await _0x2babd8(_0x4a30d6,_0x58bc33,_0x1d3bac),_0x2b6ad1;}catch{return!0x1;}function _0x52e0df(_0x2bbbe9){const _0x35478a=_0x1b5313(_0x2bbbe9);_0x35478a&&_0x35478a[_0x409dd3([0x61,0x6c,0x67])]==_0x409dd3([0x45,0x53,0x32,0x35,0x36])||(_0x2b6ad1=!0x1);}async function _0x2babd8(_0x456645,_0x12a8db,_0x57ddf2){const _0x2d2b75=window[_0x409dd3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x409dd3([0x66,0x72,0x6f,0x6d])](_0x3bfad5(_0x57ddf2),_0x2e3da9=>_0x2e3da9[_0x409dd3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x85f34f=new window[(_0x409dd3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x409dd3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x456645+_0x409dd3([0x2e])+_0x12a8db),_0x176b53=window[_0x409dd3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x409dd3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x176b53)return;const _0x521b63=await _0x176b53[_0x409dd3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x409dd3([0x6a,0x77,0x6b]),_0x2670e5,{[_0x409dd3([0x6e,0x61,0x6d,0x65])]:_0x409dd3([0x45,0x43,0x44,0x53,0x41]),[_0x409dd3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x409dd3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x409dd3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x176b53[_0x409dd3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x409dd3([0x6e,0x61,0x6d,0x65])]:_0x409dd3([0x45,0x43,0x44,0x53,0x41]),[_0x409dd3([0x68,0x61,0x73,0x68])]:{[_0x409dd3([0x6e,0x61,0x6d,0x65])]:_0x409dd3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x521b63,_0x2d2b75,_0x85f34f)||(_0x2b6ad1=!0x1);}}function _0x1b5313(_0x15e670){return _0x15e670[_0x409dd3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x409dd3([0x65,0x79]))?JSON[_0x409dd3([0x70,0x61,0x72,0x73,0x65])](_0x3bfad5(_0x15e670)):null;}function _0x3bfad5(_0x3d2b34){return window[_0x409dd3([0x61,0x74,0x6f,0x62])](_0x3d2b34[_0x409dd3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x409dd3([0x2b]))[_0x409dd3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x409dd3([0x2f])));}function _0xc6c6a4(_0x1366be){let _0x57783f=0x1505;function _0x3b175e(_0x56efd1){for(let _0x57faf2=0x0;_0x57faf2<_0x56efd1[_0x409dd3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57faf2++){const _0x178b32=_0x56efd1[_0x409dd3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57faf2);_0x57783f=(_0x57783f<<0x5)+_0x57783f+_0x178b32,_0x57783f&=_0x57783f;}}function _0xd72cf8(_0x3226d7){Array[_0x409dd3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3226d7)?_0x3226d7[_0x409dd3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd72cf8):_0x3226d7&&typeof _0x3226d7==_0x409dd3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x409dd3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3226d7)[_0x409dd3([0x73,0x6f,0x72,0x74])]()[_0x409dd3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x579900,_0x1ad65f])=>{_0x3b175e(_0x579900),_0xd72cf8(_0x1ad65f);}):_0x3b175e(window[_0x409dd3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3226d7));}return _0xd72cf8(_0x1366be),_0x57783f>>>0x0;}function _0x293047(_0x1f7981){return _0x1f7981[_0x409dd3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x409dd3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x409dd3([0x30]));}function _0x4cbbc7(_0x572d78){return _0x572d78[_0x409dd3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x409dd3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x409dd3([0x6a,0x6f,0x69,0x6e])]('');}function _0x423944(){}function _0x409dd3(_0x26bacc){return _0x26bacc['map'](_0x298511=>String['fromCharCode'](_0x298511))['join']('');}_0x274f5d(await _0x9b7f93());}(this);}['_initSchema'](){const _0x4b2b23=this['editor']['model']['schema'];_0x4b2b23['isRegistered']('imageBlock')&&_0x4b2b23['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4b2b23['isRegistered']('imageInline')&&_0x4b2b23['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x30f7ae=this['editor'];_0x30f7ae['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x30f7ae['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x50a1df=>_0x50a1df['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4835e7=_0x30f7ae['commands']['get']('replaceImageSource');_0x4835e7&&this['listenTo'](_0x4835e7,'cleanupImage',(_0x300c9c,[_0x5e5d34,_0x52836e])=>{_0x5e5d34['removeAttribute']('uploadcareImageId',_0x52836e);});}['_initConfig'](){const _0x3ea9ad=this['editor']['config']['get']('uploadcare.uploader')||{},_0xb93971=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x41585f(_0x3ab659['document'],'uc-config',{..._0x3ea9ad,'pubkey':_0xb93971,'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']=_0x5ae00e=>{if('closeMax'==_0x5ae00e)return'#uc-icon-arrow-down';},_0x3ab659['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x41585f(_0x3ab659['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3ab659['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1a5439=this['editor']['commands']['get']('insertImage');_0x1a5439&&this['listenTo'](_0x1a5439,'execute',()=>{const _0x5941f7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5941f7&&_0x5941f7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5941f7);});});const _0x43a836=this['editor']['commands']['get']('uploadcareImageReplace');_0x43a836&&this['listenTo'](_0x43a836,'execute',()=>{const _0x577918=this['editor']['model']['document']['selection']['getSelectedElement']();_0x577918&&_0x577918['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x577918);});});}}class tt extends _0x4779cf{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3290d7){super(_0x3290d7),_0x3290d7['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3b84a6['defineComponents'](_0x3b84a6),this['_defineLocale']();}['_defineLocale'](){const _0x2630db=this['editor']['config']['get']('uploadcare.locale'),_0x1c0057=this['editor']['locale']['contentLanguage'];_0x2630db&&_0x3b84a6['defineLocale'](_0x1c0057,_0x2630db);}}class ii extends _0x203cfa{constructor(_0xa48efe){super(_0xa48efe);const t=_0xa48efe['t'],_0x56c914=this['bindTemplate'],_0x1836b4=new _0x549009();_0x1836b4['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':[_0x1836b4,{'text':_0x56c914['to']('imageUploadProgress',_0x4a0f11=>t('Loading\x20image...')+'\x20('+(_0x4a0f11||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 _0x203cfa{constructor(_0x229d20){super(_0x229d20);const t=_0x229d20['t'];this['set']('errorType',null);const _0x420000=new _0x1008af(_0x229d20);_0x420000['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x420000['withText']=!0x0,_0x420000['class']='ck-button-action',_0x420000['on']('execute',()=>{this['fire']('retry');}),_0x420000['bind']('isVisible')['to'](this,'errorType',_0x4bfd00=>'NotFound'!==_0x4bfd00);const _0x2eb7d6=new _0x17b942();_0x2eb7d6['content']=_0xbd048f,_0x2eb7d6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3e1208=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':[_0x2eb7d6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3e1208['to']('errorType',_0x127e2a=>t('NotFound'!==_0x127e2a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x420000]},{'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 _0x203cfa{constructor(_0x56a8bb,_0x573e39){super(_0x56a8bb);const _0x58cb00=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x573e39,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x58cb00['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4aa803,_0x3fc885,_0x1f47d7){super(_0x4aa803),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4aa803),this['_errorView']=new ti(_0x4aa803),this['_editingView']=new ei(_0x4aa803,_0x1f47d7),this['_focusableView']=new _0x203cfa(_0x4aa803),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3fc885),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'],_0x1266de=>{this['_addUploadcareImageEditorListeners'](_0x1266de);});}),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'](_0x50a3cc,_0x54cb68){const _0x1bd520='uc-cloud-image-editor',_0x5b10dc=_0x50a3cc['querySelector'](_0x1bd520);if(_0x5b10dc)return _0x54cb68(_0x5b10dc);const _0x5898bb=new MutationObserver(_0xffa657=>{const _0x51623c=_0xffa657['filter'](_0x41ed5f=>_0x41ed5f['target']===_0x50a3cc&&_0x41ed5f['addedNodes']['length']>0x0&&_0x41ed5f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1bd520);_0x51623c['length']&&(_0x5898bb['disconnect'](),_0x54cb68(_0x51623c[0x0]['addedNodes'][0x0]));});_0x5898bb['observe'](_0x50a3cc,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1d4cc8){_0x1d4cc8['addEventListener']('apply',_0xfe6963=>{this['fire']('apply',{'imageSrc':_0xfe6963['detail']['cdnUrl']});}),_0x1d4cc8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2a8919(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x24a829,_0x54734d,_0x339893){super(),this['_editor']=_0x24a829,this['_dialog']=_0x54734d,this['_imageElement']=_0x339893,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 _0x1302a9=this['_imageElement'],_0x25a562=_0x1302a9['getAttribute']('uploadcareImageId'),_0x548fc2=_0x1302a9['getAttribute']('src');if(_0x25a562)await this['_loadImageInfo'](_0x25a562,_0x548fc2);else{if(this['_imageCache']['has'](_0x548fc2)){const _0x383b71=this['_imageCache']['get'](_0x548fc2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x383b71['url'],this['imageDimension']=_0x383b71['dimension'],this['imageId']=_0x383b71['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x409e71}=this['_editor'],t=_0x409e71['t'],_0x4257fd=new X(_0x409e71,this['imageStatus'],this['_attributes']);_0x4257fd['bind']('status')['to'](this,'imageStatus'),_0x4257fd['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4257fd['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4257fd['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4257fd,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3ae70f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4257fd,'position':_0x598f47['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4257fd['focus']();},'onHide':()=>{_0x4257fd['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x382d42=>!A(_0x382d42,_0x4257fd['element'])}});}['_loadImageInfo'](_0x50b2f8,_0x2ef9de){return j['getInfo'](_0x50b2f8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1a9e43=>{const {width:_0xf7780e,height:_0xe643bf}=_0x1a9e43['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ef9de,this['imageDimension']={'width':_0xf7780e,'height':_0xe643bf},this['imageId']=_0x50b2f8;})['catch'](_0x31ea59=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x31ea59['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3aee8e,_0x2acdf1){return this['_getImageAsFile'](_0x3aee8e)['then'](_0x1599ff=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2acdf1['signal'],'file':_0x1599ff,'onProgress':_0x32f0af=>{_0x32f0af&&_0x32f0af['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x32f0af['value']));}}))['then'](_0x56f80e=>{const {width:_0x372ae0,height:_0x45ee2c}=_0x56f80e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56f80e['cdnUrl'],this['imageDimension']={'width':_0x372ae0,'height':_0x45ee2c},this['imageId']=_0x56f80e['uuid'],this['imageUploadProgress']=null;const _0x4693af=_0x3aee8e['getAttribute']('src');this['_imageCache']['set'](_0x4693af,{'id':_0x56f80e['uuid'],'url':_0x56f80e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5dfb8f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5dfb8f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3391b,_0x29e408){_0x3391b['on']('apply',(_0xd6a83c,_0x54bc3f)=>{this['_replaceImage'](_0x29e408,_0x54bc3f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3391b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3391b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1193af,_0x4060c2,_0x3adac4){const _0x109e59=this['_editor'],{width:_0x282e7c,height:_0x4983a9}=S(_0x4060c2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1a8615,imageSources:_0x4484e4}=C(_0x4060c2,_0x282e7c);_0x109e59['model']['change'](_0x810476=>{if('$graveyard'===_0x1193af['root']['rootName']){_0x109e59['execute']('insertImage',{'imageType':_0x1193af['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1193af['getAttributes']()),'uploadcareImageId':_0x3adac4,'src':_0x1a8615,'sources':_0x4484e4,'width':_0x282e7c,'height':_0x4983a9}});const _0x5558e5=_0x1193af['getChildren']();_0x1193af=_0x109e59['model']['document']['selection']['getSelectedElement']();for(const _0x1e25c4 of _0x5558e5)_0x810476['append'](_0x810476['cloneElement'](_0x1e25c4),_0x1193af);}else _0x810476['setSelection'](_0x1193af,'on'),_0x109e59['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1193af['getAttributes']()),'uploadcareImageId':_0x3adac4,'src':_0x1a8615,'sources':_0x4484e4,'width':_0x282e7c,'height':_0x4983a9},_0x1193af);_0x810476['setSelection'](_0x1193af,'on');});}async['_getImageAsFile'](_0x3e4ae2){const _0x499865=_0x3ab659['window'],_0x292da0=_0x3ab659['document']['location']['href'],_0x11e0b2=new _0x499865['URL'](_0x3e4ae2['getAttribute']('src'),_0x292da0);if('data:'===_0x11e0b2['protocol']){const _0x187c6a=_0x11e0b2['href']['split'](','),_0x218733=_0x187c6a[0x0]['match'](/:(.*?);/)[0x1],_0xb8f843=_0x218733['split']('/')[0x1],_0x20059e=_0x499865['atob'](_0x187c6a[_0x187c6a['length']-0x1]);let _0x46d202=_0x20059e['length'];const _0x4f6f04=new _0x499865['Uint8Array'](_0x46d202);for(;_0x46d202--;)_0x4f6f04[_0x46d202]=_0x20059e['charCodeAt'](_0x46d202);return new _0x499865['File']([_0x4f6f04],'image.'+_0xb8f843,{'type':_0x218733});}const _0x247a17=_0x11e0b2['href']['split']('/'),_0xcf003c=_0x247a17[_0x247a17['length']-0x1],_0x5caf3b=_0xcf003c['split']('.')[0x1];return _0x499865['fetch'](_0x11e0b2['href'])['then'](_0x5c3fe6=>_0x5c3fe6['clone']()['blob']())['then'](_0x3d8553=>new _0x499865['File']([_0x3d8553],_0xcf003c,{'type':'image/'+_0x5caf3b}));}}class O extends _0x13eeb9{['imageEditController'];static get['requires'](){return[_0x423b6];}['_isEditable'];constructor(_0x5622f3){super(_0x5622f3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x35959a){const _0x4684a8=G(_0x35959a);return _0x19c0d8=>!(!_0x19c0d8||!_0x19c0d8['is']('element','imageBlock')&&!_0x19c0d8['is']('element','imageInline'))&&(!!_0x19c0d8['hasAttribute']('uploadcareImageId')||!!_0x19c0d8['hasAttribute']('src')&&_0x4684a8(_0x19c0d8['getAttribute']('src')));}(_0x5622f3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3a0d80=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3a0d80);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x348a37=this['editor']['model']['document']['selection']['getSelectedElement']();_0x348a37&&(_0x348a37['is']('element','imageBlock')||_0x348a37['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x423b6),_0x348a37),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x13eeb9{['refresh'](){const _0x551afe=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x551afe&&(_0x551afe['is']('element','imageBlock')||_0x551afe['is']('element','imageInline')));}['execute'](_0x351c16){const _0x4e3536=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4dd3fb=>{_0x4dd3fb['setAttributes'](_0x351c16,_0x4e3536),_0x4dd3fb['removeAttribute']('srcset',_0x4e3536),_0x4dd3fb['removeAttribute']('sizes',_0x4e3536);});}}class m extends _0x4779cf{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5c3b23,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a8ca4}=this;_0x1a8ca4['commands']['add']('uploadcareImageEdit',new O(_0x1a8ca4)),_0x1a8ca4['commands']['add']('uploadcareImageReplace',new R(_0x1a8ca4));}}class g extends _0x4779cf{['_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 _0x1330fb=this['editor'];_0x1330fb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x9798=>{const _0x35b655=_0x1330fb['commands']['get']('uploadcareImageEdit'),_0x508640=new _0x1008af(_0x9798),t=_0x9798['t'];return _0x508640['set']({'icon':_0x3ae70f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x508640['bind']('isEnabled')['to'](_0x35b655),_0x508640['bind']('isOn')['to'](_0x35b655,'isActive'),this['listenTo'](_0x508640,'execute',()=>{_0x1330fb['execute']('uploadcareImageEdit'),_0x1330fb['editing']['view']['focus']();}),_0x508640;}),this['_initConfig']();}['_initConfig'](){const _0x50d3bc=_0x41585f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x50d3bc),this['listenTo'](this['editor'],'destroy',()=>{_0x50d3bc['remove']();});}}class et extends _0x4779cf{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x12b3dc=>0x1!=_0x12b3dc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4db851=>{const {af:{dictionary:_0x34db2b,getPluralForm:_0x20f647}}={'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':_0x5ce82=>0x1!=_0x5ce82}};_0x4db851['af']||={'dictionary':{},'getPluralForm':null},_0x4db851['af']['dictionary']=Object['assign'](_0x4db851['af']['dictionary'],_0x34db2b),_0x4db851['af']['getPluralForm']=_0x20f647;})(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':_0x11fa1=>0x0==_0x11fa1?0x0:0x1==_0x11fa1?0x1:0x2==_0x11fa1?0x2:_0x11fa1%0x64>=0x3&&_0x11fa1%0x64<=0xa?0x3:_0x11fa1%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x58c8a8=>{const {ar:{dictionary:_0x37c16e,getPluralForm:_0x19069e}}={'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':_0x5bf486=>0x0==_0x5bf486?0x0:0x1==_0x5bf486?0x1:0x2==_0x5bf486?0x2:_0x5bf486%0x64>=0x3&&_0x5bf486%0x64<=0xa?0x3:_0x5bf486%0x64>=0xb?0x4:0x5}};_0x58c8a8['ar']||={'dictionary':{},'getPluralForm':null},_0x58c8a8['ar']['dictionary']=Object['assign'](_0x58c8a8['ar']['dictionary'],_0x37c16e),_0x58c8a8['ar']['getPluralForm']=_0x19069e;})(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':_0x2f50dd=>0x1!=_0x2f50dd}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x498b51=>{const {ast:{dictionary:_0xb641ef,getPluralForm:_0x2e22b6}}={'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':_0x187be8=>0x1!=_0x187be8}};_0x498b51['ast']||={'dictionary':{},'getPluralForm':null},_0x498b51['ast']['dictionary']=Object['assign'](_0x498b51['ast']['dictionary'],_0xb641ef),_0x498b51['ast']['getPluralForm']=_0x2e22b6;})(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':_0x908acc=>0x1!=_0x908acc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x521f07=>{const {az:{dictionary:_0x46d4c1,getPluralForm:_0xea2199}}={'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':_0xed19fb=>0x1!=_0xed19fb}};_0x521f07['az']||={'dictionary':{},'getPluralForm':null},_0x521f07['az']['dictionary']=Object['assign'](_0x521f07['az']['dictionary'],_0x46d4c1),_0x521f07['az']['getPluralForm']=_0xea2199;})(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':_0x390e4d=>_0x390e4d%0xa==0x1&&_0x390e4d%0x64!=0xb?0x0:_0x390e4d%0xa>=0x2&&_0x390e4d%0xa<=0x4&&(_0x390e4d%0x64<0xa||_0x390e4d%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x514d21=>{const {be:{dictionary:_0x5c1851,getPluralForm:_0x587e21}}={'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':_0x383d9c=>_0x383d9c%0xa==0x1&&_0x383d9c%0x64!=0xb?0x0:_0x383d9c%0xa>=0x2&&_0x383d9c%0xa<=0x4&&(_0x383d9c%0x64<0xa||_0x383d9c%0x64>=0x14)?0x1:0x2}};_0x514d21['be']||={'dictionary':{},'getPluralForm':null},_0x514d21['be']['dictionary']=Object['assign'](_0x514d21['be']['dictionary'],_0x5c1851),_0x514d21['be']['getPluralForm']=_0x587e21;})(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':_0x4c5f85=>0x1!=_0x4c5f85}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5e4e11=>{const {bg:{dictionary:_0x4fd131,getPluralForm:_0x323516}}={'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':_0x30d5eb=>0x1!=_0x30d5eb}};_0x5e4e11['bg']||={'dictionary':{},'getPluralForm':null},_0x5e4e11['bg']['dictionary']=Object['assign'](_0x5e4e11['bg']['dictionary'],_0x4fd131),_0x5e4e11['bg']['getPluralForm']=_0x323516;})(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':_0x1f67a5=>0x1!=_0x1f67a5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x511d05=>{const {bn:{dictionary:_0x1ae5ce,getPluralForm:_0x461521}}={'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':_0x5a36ca=>0x1!=_0x5a36ca}};_0x511d05['bn']||={'dictionary':{},'getPluralForm':null},_0x511d05['bn']['dictionary']=Object['assign'](_0x511d05['bn']['dictionary'],_0x1ae5ce),_0x511d05['bn']['getPluralForm']=_0x461521;})(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':_0x1ddede=>_0x1ddede%0xa==0x1&&_0x1ddede%0x64!=0xb?0x0:_0x1ddede%0xa>=0x2&&_0x1ddede%0xa<=0x4&&(_0x1ddede%0x64<0xa||_0x1ddede%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xf6721d=>{const {bs:{dictionary:_0x50c03f,getPluralForm:_0x45b596}}={'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':_0x26ea0f=>_0x26ea0f%0xa==0x1&&_0x26ea0f%0x64!=0xb?0x0:_0x26ea0f%0xa>=0x2&&_0x26ea0f%0xa<=0x4&&(_0x26ea0f%0x64<0xa||_0x26ea0f%0x64>=0x14)?0x1:0x2}};_0xf6721d['bs']||={'dictionary':{},'getPluralForm':null},_0xf6721d['bs']['dictionary']=Object['assign'](_0xf6721d['bs']['dictionary'],_0x50c03f),_0xf6721d['bs']['getPluralForm']=_0x45b596;})(window['CKEDITOR_TRANSLATIONS']||={});
|