@ckeditor/ckeditor5-uploadcare 0.0.0-internal-20251211.0 → 0.0.0-internal-20251218.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 _0xfb9c85,Command as _0x1a80f7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4cc491,IconGooglePhotos as _0x151c50,IconGoogleDrive as _0x1c0cf2,IconFacebook as _0x1395ea,IconDropbox as _0x3212c3,IconUploadcareLink as _0x2b909d,IconUploadcareImageUpload as _0x79d1ea,IconError as _0x31e957,IconUploadcareImageEdit as _0x38488b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x14ba70,MenuBarMenuListItemButtonView as _0x264ecf,View as _0xca1b2a,FocusCycler as _0x3be22f,Dialog as _0x4dd4e8,DialogViewPosition as _0x13c2fc,SpinnerView as _0x5a8e11,IconView as _0x227b4b,Notification as _0x2f1def}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xaa0a1,DomEmitterMixin as _0x23bb56,global as _0x2bc55b,getAncestors as _0x1e0372,ObservableMixin as _0x31b6d0,uid as _0x3b089c,createElement as _0x5d4966}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1c7f9f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x566acb,info as _0x3d2fa0}from'@uploadcare/upload-client';import*as _0x6f5f46 from'@uploadcare/file-uploader';var i=function(_0x41b967){return _0x41b967['Local']='local',_0x41b967['URL']='url',_0x41b967['Dropbox']='dropbox',_0x41b967['GDrive']='gdrive',_0x41b967['Facebook']='facebook',_0x41b967['GPhotos']='gphotos',_0x41b967['OneDrive']='onedrive',_0x41b967;}({});function _(_0x544b2c,_0xd20089,_0x45edbd){const t=_0x544b2c['t'],_0x2d9b7e=_0x544b2c['t'];switch(_0xd20089){case i['Local']:return{'text':_0x2d9b7e('Insert'===_0x45edbd?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2d9b7e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x45edbd?_0x2d9b7e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2d9b7e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x45edbd?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x45edbd?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x45edbd?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x45edbd?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x45edbd?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xd20089;}}class e extends _0xfb9c85{['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 _0x3cb123=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bf858;for(const _0x3bfd9b in _0x3cb123){const _0x553407=_0x3bfd9b,_0x4dfb0a=_0x3cb123[_0x553407];if('uploadcareLicenseKeyValid'==_0x4dfb0a||'uploadcareLicenseKeyInvalid'==_0x4dfb0a||'uploadcareLicenseKeyExpired'==_0x4dfb0a||'uploadcareLicenseKeyDomainLimit'==_0x4dfb0a||'uploadcareLicenseKeyNotAllowed'==_0x4dfb0a||'uploadcareLicenseKeyEvaluationLimit'==_0x4dfb0a||'uploadcareLicenseKeyTrialLimit'==_0x4dfb0a||'uploadcareLicenseKeyUsageLimit'==_0x4dfb0a){delete _0x3cb123[_0x553407],_0x1bf858=_0x4dfb0a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1bf858&&_0x3cb123['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1bf858&&_0x3cb123['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1bf858&&_0x3cb123['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1bf858&&_0x3cb123['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1bf858&&_0x3cb123['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1bf858&&_0x3cb123['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1bf858&&_0x3cb123['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x6c6bc4}=this,_0xf467d=_0x6c6bc4['commands']['get']('uploadcare');if(!_0xf467d)return;const _0x2fc369=this['_normalizeConfigSourceList'](_0x6c6bc4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x32e56e,_0x333169)=>{const _0x39be0a=this['_getIntegrationKey'](_0x333169['type']);return _0x32e56e[_0x39be0a]||(_0x32e56e[_0x39be0a]=[]),_0x32e56e[_0x39be0a]['push'](_0x333169),_0x32e56e;},{});_0x6c6bc4['plugins']['has']('ImageInsertUI')&&_0x6c6bc4['commands']['get']('uploadcare')&&Object['entries'](_0x2fc369)['forEach'](([_0x291f2e,_0xeeab47])=>{_0x6c6bc4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x291f2e,'observable':()=>_0xf467d,'buttonViewCreator':()=>this['_createToolbarButton'](_0xeeab47),'formViewCreator':()=>this['_createDropdownButtons'](_0xeeab47),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xeeab47),'override':'assetManager'!==_0x291f2e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x426941){const {locale:_0xe4d811}=this['editor'];return _0x426941['map'](_0x3c79a7=>{const _0x32177f=_(_0xe4d811,_0x3c79a7,'Insert');switch(_0x3c79a7){case i['Local']:return{'icon':_0x79d1ea,'type':i['Local'],..._0x32177f};case i['URL']:return{'icon':_0x2b909d,'type':i['URL'],..._0x32177f};case i['Dropbox']:return{'icon':_0x3212c3,'type':i['Dropbox'],..._0x32177f};case i['Facebook']:return{'icon':_0x1395ea,'type':i['Facebook'],..._0x32177f};case i['GDrive']:return{'icon':_0x1c0cf2,'type':i['GDrive'],..._0x32177f};case i['GPhotos']:return{'icon':_0x151c50,'type':i['GPhotos'],..._0x32177f};case i['OneDrive']:return{'icon':_0x4cc491,'type':i['OneDrive'],..._0x32177f};}});}['_getIntegrationKey'](_0x48734a){switch(_0x48734a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x404b48,_0x5d19b6){const _0x5ad6ec=this['editor'],_0x4cae1b=new _0x404b48(_0x5ad6ec['locale']),_0x5ebe5b=_0x5ad6ec['commands']['get']('uploadcare');return _0x4cae1b['bind']('isEnabled')['to'](_0x5ebe5b),_0x4cae1b['on']('execute',()=>{_0x5ebe5b['execute'](_0x5d19b6);}),_0x4cae1b;}['_createToolbarButton'](_0x1d46e2){const {locale:_0xac47e8}=this['editor'],_0x2086f=this['editor']['plugins']['get']('ImageInsertUI'),_0xe067d1=_0x1d46e2[0x0],_0x49f092=this['_createButton'](_0x14ba70,_0xe067d1['type']);return _0x49f092['icon']=_0xe067d1['icon'],_0x49f092['bind']('label')['to'](_0x2086f,'isImageSelected',_0x19636a=>_(_0xac47e8,_0xe067d1['type'],_0x19636a?'Replace':'Insert')['text']),_0x49f092['tooltip']=!0x0,_0x49f092;}['_createDropdownButtons'](_0x1897ed){const {locale:_0x16cf4c}=this['editor'],_0x1cbf46=this['editor']['plugins']['get']('ImageInsertUI');return _0x1897ed['map'](_0x13de26=>{const _0x27f55b=this['_createButton'](_0x14ba70,_0x13de26['type']);return _0x27f55b['withText']=!0x0,_0x27f55b['icon']=_0x13de26['icon'],_0x27f55b['bind']('label')['to'](_0x1cbf46,'isImageSelected',_0x27016c=>_(_0x16cf4c,_0x13de26['type'],_0x27016c?'Replace':'Insert')['text']),_0x27f55b;});}['_createMenuBarButtons'](_0x59fcae){return _0x59fcae['map'](_0x365fc5=>{const _0x484ecd=this['_createButton'](_0x264ecf,_0x365fc5['type']);return _0x484ecd['icon']=_0x365fc5['icon'],_0x484ecd['label']=_0x365fc5['shortText'],_0x484ecd;});}}class F extends _0xca1b2a{['focusTracker'];['focusCycler'];constructor(_0x31fa7a){super(_0x31fa7a),this['focusTracker']=new _0xaa0a1(),this['focusCycler']=new _0x3be22f({'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(_0x3f0786,_0x3322ca){super(_0x3f0786),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-'+_0x3322ca}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x10e0f0,_0x15e873){const _0x21ff01=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2a3d94=>_0x2a3d94<=_0x15e873)['map'](_0x17d564=>_0x10e0f0['replace'](/\/$/,'')+'/-/resize/'+_0x17d564+'x/\x20'+_0x17d564+'w');return{'imageFallbackUrl':_0x10e0f0,'imageSources':[{'srcset':_0x21ff01['join'](',\x20'),'sizes':'(max-width:\x20'+_0x15e873+'px)\x20100vw,\x20'+_0x15e873+'px','type':'image/webp'}]};}function S(_0x410bc4,_0x1338c4,_0x53461a){const _0x2b71f0=_0x410bc4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2b71f0?parseInt(_0x2b71f0[0x1],0xa):_0x1338c4,'height':_0x2b71f0?parseInt(_0x2b71f0[0x2],0xa):_0x53461a};}function p(_0x17aa88,_0x18467e){const _0x1bcbfc=new(_0x23bb56())(),_0xc17bfb=_0x17aa88['plugins']['get']('ImageUtils'),_0x22fbc8=_0x17aa88['editing']['mapper']['toViewElement'](_0x18467e),_0x5a694b=_0xc17bfb['findViewImgElement'](_0x22fbc8),_0xe28cc=_0x17aa88['editing']['view']['domConverter']['viewToDom'](_0x5a694b),_0x3833de=_0x18467e['getAttribute']('width'),_0x1565a0=_0x18467e['getAttribute']('height'),_0x1223f5='image-processing';_0x17aa88['editing']['view']['change'](_0x7143e1=>{_0x7143e1['addClass'](_0x1223f5,_0x22fbc8),_0x7143e1['setStyle']('aspect-ratio',_0x3833de+'/'+_0x1565a0,_0x5a694b);}),_0x1bcbfc['listenTo'](_0xe28cc,'load',()=>{_0x1bcbfc['stopListening'](_0xe28cc,'load'),_0x17aa88['editing']['view']['change'](_0x51602a=>{_0x51602a['removeClass'](_0x1223f5,_0x22fbc8),_0x51602a['removeStyle']('aspect-ratio',_0x5a694b);});});}function z(_0x1e597a){if(Array['isArray'](_0x1e597a)){const _0x18438a=_0x1e597a['map'](z);return _0x501dfe=>_0x18438a['some'](_0x414ac7=>_0x414ac7(_0x501dfe));}if('origin'==_0x1e597a){const _0x4ffbbd=_0x2bc55b['window']['location']['origin'];return _0xbaf582=>new URL(_0xbaf582,_0x2bc55b['document']['baseURI'])['origin']==_0x4ffbbd;}return'function'==typeof _0x1e597a?_0x1e597a:_0x1e597a instanceof RegExp?_0x3433b2=>!(!_0x3433b2['match'](_0x1e597a)&&!_0x3433b2['replace'](/^https?:\/\//,'')['match'](_0x1e597a)):()=>!0x1;}function A(_0x5a187d,_0x5e4e26){return _0x1e0372(_0x5a187d['target'])['includes'](_0x5e4e26);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x31b6d0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1819fe,_0x2900fd,_0x550f15){super(),this['_editor']=_0x1819fe,this['_editing']=_0x2900fd,this['_dialog']=_0x1819fe['plugins']['get'](_0x4dd4e8),this['_api']=_0x2900fd['ctxElement']['getAPI'](),this['_type']=_0x550f15,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:_0x4e7363,model:_0x29041b}=this['_editor'],_0x1c295d=_0x29041b['document']['selection']['getSelectedElement'](),_0x47c119=_0x1c295d&&(_0x1c295d['is']('element','imageBlock')||_0x1c295d['is']('element','imageInline'));this['_formView']=new x(_0x4e7363,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x79d1ea,'title':_(_0x4e7363,this['_type'],_0x47c119?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x13c2fc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4cf070=>!A(_0x4cf070,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x179988}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x15faa1=>{const _0x56d6b4=_0x179988['length'];for(const _0x9d09d4 of _0x179988){const _0x1cb97c=_0x9d09d4===_0x179988[_0x56d6b4-0x1],{cdnUrl:_0x151e14,fileInfo:_0x1eb35f}=_0x9d09d4;if(!_0x151e14||!_0x1eb35f)continue;const {width:_0x81d0b,height:_0x1392a6}=_0x1eb35f['imageInfo'],_0x79d6dd=S(_0x151e14,_0x81d0b,_0x1392a6),_0x43c204=C(_0x151e14,_0x79d6dd['width']),_0x5ce0cf={'id':_0x1eb35f['uuid'],'type':'image','attributes':{'imageDimension':_0x79d6dd,..._0x43c204}};this['_insertAsset'](_0x5ce0cf,_0x1cb97c,_0x15faa1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x569929=>{'idle'===_0x569929['detail']['status']&&!_0x569929['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x42cddf,_0x4c489c,_0x15af8b){const _0x14cac9=this['_editor']['model']['document']['selection'],_0x66053d=_0x14cac9['getSelectedElement'](),_0x50dd6b=!(!_0x66053d||!_0x66053d['is']('element','imageInline'));_0x15af8b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x42cddf,_0x50dd6b),_0x4c489c||_0x15af8b['setSelection'](_0x14cac9['getLastPosition']());}['_insertImage'](_0x28012b,_0x9fd6ec){const _0x21e0b8=this['_editor'],{imageDimension:_0x500c76,imageFallbackUrl:_0x46e537,imageSources:_0x49d124}=_0x28012b['attributes'];_0x21e0b8['execute']('insertImage',{'imageType':_0x9fd6ec?'imageInline':null,'source':{'uploadcareImageId':_0x28012b['id'],'src':_0x46e537,'sources':_0x49d124,..._0x500c76}});}}class w extends _0x1a80f7{['_editing'];['_controller']=null;static get['requires'](){return[_0x4dd4e8,o];}constructor(_0x397d2a){super(_0x397d2a),this['_editing']=_0x397d2a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2d9219){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2d9219);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3a0499,..._0x4ce426}){return _0x566acb(_0x3a0499,_0x4ce426);}static['getInfo'](_0x4fe261,_0x425844){return _0x3d2fa0(_0x4fe261,_0x425844);}}class f extends _0xfb9c85{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1c7f9f,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x467ee9=this['editor'];if(!!!_0x467ee9['config']['get']('uploadcare'))return;_0x467ee9['plugins']['get'](_0x1c7f9f)['createUploadAdapter']=_0x11e105=>new k(_0x11e105,_0x467ee9),_0x467ee9['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x9f3d9,{imageElement:_0x171695,data:_0x3f4d65})=>{_0x467ee9['model']['change'](_0x22b291=>{_0x22b291['setAttribute']('uploadcareImageId',_0x3f4d65['uploadcareImageId'],_0x171695);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x5f3b59,_0x1256c8){this['loader']=_0x5f3b59,this['editor']=_0x1256c8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x19b0af=await this['loader']['file'];return j['upload']({'file':_0x19b0af,'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':_0x589422=>{_0x589422&&_0x589422['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x589422['value']);}})['then'](async _0x408468=>{const {imageFallbackUrl:_0xde2d93,imageSources:_0x10a2e6}=C(_0x408468['cdnUrl'],_0x408468['imageInfo']['width']);return{'uploadcareImageId':_0x408468['uuid'],'default':_0xde2d93,'sources':_0x10a2e6};})['catch'](()=>{const _0x4fb3b0=t('Cannot\x20upload\x20file:')+('\x20'+_0x19b0af['name']+'.');return Promise['reject'](_0x4fb3b0);});}['abort'](){this['controller']['abort']();}}class o extends _0xfb9c85{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4dd4e8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2e888b){super(_0x2e888b),this['ucContextId']=_0x3b089c();}['init'](){const _0x49fe9a=this['editor'];_0x49fe9a['commands']['add']('uploadcare',new w(_0x49fe9a));}['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 _0x302918=_0x2bc55b['document']['querySelector']('input[uploadcare-file-input]');_0x302918&&_0x302918['remove']();}),async function(_0x147fc0){const _0x1439e9=_0x1ac25d([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]),_0x3e1960=0x535f8c3a,_0x40d085=0x5358f7a2^_0x3e1960,_0x1954a8=window[_0x1ac25d([0x44,0x61,0x74,0x65])][_0x1ac25d([0x6e,0x6f,0x77])](),_0x4e53b9=_0x147fc0[_0x1ac25d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x27693a=new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x221482=>{_0x4e53b9[_0x1ac25d([0x6f,0x6e,0x63,0x65])](_0x1ac25d([0x72,0x65,0x61,0x64,0x79]),_0x221482);}),_0x5bf0ac={[_0x1ac25d([0x6b,0x74,0x79])]:_0x1ac25d([0x45,0x43]),[_0x1ac25d([0x75,0x73,0x65])]:_0x1ac25d([0x73,0x69,0x67]),[_0x1ac25d([0x63,0x72,0x76])]:_0x1ac25d([0x50,0x2d,0x32,0x35,0x36]),[_0x1ac25d([0x78])]:_0x1ac25d([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]),[_0x1ac25d([0x79])]:_0x1ac25d([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]),[_0x1ac25d([0x61,0x6c,0x67])]:_0x1ac25d([0x45,0x53,0x32,0x35,0x36])},_0x1f4852=_0x4e53b9[_0x1ac25d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ac25d([0x67,0x65,0x74])](_0x1ac25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17c559(){let _0x4af65e,_0x58df63=null,_0x4a8cbf=null;try{if(_0x1f4852==_0x1ac25d([0x47,0x50,0x4c]))return _0x1ac25d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4af65e=_0x26ea50(),!_0x4af65e)return _0x1ac25d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4af65e[_0x1ac25d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a8cbf=_0x50092e(_0x4af65e[_0x1ac25d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4af65e[_0x1ac25d([0x6a,0x74,0x69])])),await _0x4ba692()?_0xd87a06()?_0x3f68a5()?_0x1ac25d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29fc32()?(_0x4af65e[_0x1ac25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ac25d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58df63=_0x2c2f23(_0x1ac25d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4af65e[_0x1ac25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ac25d([0x74,0x72,0x69,0x61,0x6c])&&(_0x58df63=_0x2c2f23(_0x1ac25d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x410015()):_0x1ac25d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ac25d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ac25d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1ac25d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f68a5(){const _0x49edb9=[_0x1ac25d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ac25d([0x74,0x72,0x69,0x61,0x6c])][_0x1ac25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4af65e[_0x1ac25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1954a8/0x3e8:0xe10*_0x40d085;return _0x4af65e[_0x1ac25d([0x65,0x78,0x70])]<_0x49edb9;}function _0xd87a06(){const _0x3a35f8=_0x4af65e[_0x1ac25d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3a35f8&&(!!_0x3a35f8[_0x1ac25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac25d([0x2a]))||!!_0x3a35f8[_0x1ac25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac25d([0x55,0x50,0x4c,0x43])));}function _0x29fc32(){const _0x2832c5=_0x4af65e[_0x1ac25d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2832c5||0x0==_0x2832c5[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x265982}=new URL(window[_0x1ac25d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2832c5[_0x1ac25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x265982))return!0x0;const _0x9045e4=_0x265982[_0x1ac25d([0x73,0x70,0x6c,0x69,0x74])](_0x1ac25d([0x2e]));return _0x2832c5[_0x1ac25d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fc088=>_0x1fc088[_0x1ac25d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ac25d([0x2a])))[_0x1ac25d([0x6d,0x61,0x70])](_0x40db29=>_0x40db29[_0x1ac25d([0x73,0x70,0x6c,0x69,0x74])](_0x1ac25d([0x2e])))[_0x1ac25d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc82b1c=>_0xc82b1c[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9045e4[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ac25d([0x6d,0x61,0x70])](_0x49c596=>Array(_0x9045e4[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x49c596[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ac25d([0x66,0x69,0x6c,0x6c])](_0x49c596[0x0]===_0x1ac25d([0x2a])?_0x1ac25d([0x2a]):'')[_0x1ac25d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x49c596))[_0x1ac25d([0x73,0x6f,0x6d,0x65])](_0x1373a4=>_0x9045e4[_0x1ac25d([0x65,0x76,0x65,0x72,0x79])]((_0x4e4efb,_0x347897)=>_0x1373a4[_0x347897]===_0x4e4efb||_0x1373a4[_0x347897]===_0x1ac25d([0x2a])));}function _0x410015(){return _0x58df63&&_0x4a8cbf?new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56bebb,_0x5d7169)=>{_0x58df63[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0x56bebb,_0x5d7169),_0x4a8cbf[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0x853262=>{_0x853262!=_0x1ac25d([0x56,0x61,0x6c,0x69,0x64])&&_0x56bebb(_0x853262);},_0x5d7169);}):_0x58df63||_0x4a8cbf||_0x1ac25d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50092e(_0x232cfd,_0x18e651){return new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1382b9=>{if(_0x4c8c0c())return _0x1382b9(_0x1ac25d([0x56,0x61,0x6c,0x69,0x64]));_0x45bcb4(),_0x4e53b9[_0x1ac25d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ac25d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42cf5d=!0x1;const _0x1c467c=_0x3b089c();function _0x2e41a4(_0x56d395){return!!_0x56d395&&(typeof _0x56d395===_0x1ac25d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56d395===_0x1ac25d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56d395[_0x1ac25d([0x74,0x68,0x65,0x6e])]===_0x1ac25d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56d395[_0x1ac25d([0x63,0x61,0x74,0x63,0x68])]===_0x1ac25d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f0e79(_0x133548){_0x131b39(_0x133548)[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0x207840=>{if(!_0x207840||_0x207840[_0x1ac25d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ac25d([0x6f,0x6b]))return _0x1ac25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x24d0c8(_0x45871f(_0x1c467c+_0x18e651))!=_0x207840[_0x1ac25d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ac25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ac25d([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0xeec1be=>(_0x5d1b7c(),_0xeec1be),()=>{const _0x3a9b82=_0x51c6a0();return null==_0x3a9b82?(_0x5d1b7c(),_0x1ac25d([0x56,0x61,0x6c,0x69,0x64])):_0x1ac25d(_0x1954a8-_0x3a9b82>(0x7753083a^_0x3e1960)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0x1382b9)[_0x1ac25d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1382b9(_0x1ac25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2074b1=0x536962ba^_0x3e1960;function _0x5d1b7c(){const _0x56803b=_0x1ac25d([0x6c,0x6c,0x63,0x74,0x2d])+_0x24d0c8(_0x45871f(_0x232cfd)),_0x57c429=_0x514128(_0x24d0c8(window[_0x1ac25d([0x4d,0x61,0x74,0x68])][_0x1ac25d([0x63,0x65,0x69,0x6c])](_0x1954a8/_0x2074b1)));window[_0x1ac25d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ac25d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56803b,_0x57c429);}function _0x51c6a0(){const _0x474eaf=_0x1ac25d([0x6c,0x6c,0x63,0x74,0x2d])+_0x24d0c8(_0x45871f(_0x232cfd)),_0x38f817=window[_0x1ac25d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ac25d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x474eaf);return _0x38f817?window[_0x1ac25d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x514128(_0x38f817),0x10)*_0x2074b1:null;}function _0x131b39(_0x3ab131){return new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4aee26,_0x1ae4b3)=>{_0x3ab131[_0x1ac25d([0x74,0x68,0x65,0x6e])](_0x4aee26,_0x1ae4b3),window[_0x1ac25d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ae4b3,0x535e58fa^_0x3e1960);});}}_0x4e53b9[_0x1ac25d([0x6f,0x6e])](_0x1ac25d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x56c29e,_0x30d3eb)=>{if(_0x30d3eb[0x0]!=_0x232cfd)return _0x1382b9(_0x1ac25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30d3eb[0x1]={..._0x30d3eb[0x1],[_0x1ac25d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c467c};},{[_0x1ac25d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ac25d([0x68,0x69,0x67,0x68])}),_0x4e53b9[_0x1ac25d([0x6f,0x6e])](_0x1ac25d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x141ccc=>{_0x2e41a4(_0x141ccc[_0x1ac25d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42cf5d=!0x0,_0x3f0e79(_0x141ccc[_0x1ac25d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ac25d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ac25d([0x6c,0x6f,0x77])}),_0x27693a[_0x1ac25d([0x74,0x68,0x65,0x6e])](()=>{_0x42cf5d||_0x1382b9(_0x1ac25d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c8c0c(){return _0x4e53b9[_0x1ac25d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ac25d([0x76,0x69,0x65,0x77])][_0x1ac25d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ac25d([0x61,0x75,0x74,0x6f]);}function _0x45bcb4(){_0x4e53b9[_0x1ac25d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ac25d([0x76,0x69,0x65,0x77])][_0x1ac25d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ac25d([0x61,0x75,0x74,0x6f]);}}function _0x2c2f23(_0x3326ff){const _0x357f35=[new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x167d30=>setTimeout(_0x167d30,0x5356b2f6^_0x3e1960)),_0x27693a[_0x1ac25d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee8ab=>{let _0x6d875e=0x0;_0x4e53b9[_0x1ac25d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ac25d([0x6f,0x6e])](_0x1ac25d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49b686,_0x590199)=>{_0x590199[0x0][_0x1ac25d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6d875e++,_0x6d875e==(0x535f8dc2^_0x3e1960)&&(_0x4ee8ab(),_0x49b686[_0x1ac25d([0x6f,0x66,0x66])]());});}))];return window[_0x1ac25d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ac25d([0x72,0x61,0x63,0x65])](_0x357f35)[_0x1ac25d([0x74,0x68,0x65,0x6e])](()=>_0x3326ff);}async function _0xb8a112(){await _0x27693a,_0x4e53b9[_0x1ac25d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ac25d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49012c,_0x4e53b9[_0x1ac25d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ac25d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49012c,_0x4e53b9[_0x1ac25d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ac25d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3043e7(_0x10ca7f){const _0x558e2d=_0x1d2e15();_0x4e53b9[_0x558e2d]=_0x1ac25d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x10ca7f,_0x10ca7f!=_0x1ac25d([0x56,0x61,0x6c,0x69,0x64])&&_0xb8a112();}function _0x1d2e15(){const _0xa69946=window[_0x1ac25d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ac25d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ac25d([0x6e,0x6f,0x77])]())[_0x1ac25d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ac25d([0x2e]),'');let _0x122281=_0x1ac25d([0x68]);for(let _0x108e31=0x0;_0x108e31<_0xa69946[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x108e31+=0x2){let _0x44f8a2=window[_0x1ac25d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa69946[_0x1ac25d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x108e31,_0x108e31+0x2));_0x44f8a2>=_0x1439e9[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x44f8a2-=_0x1439e9[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x122281+=_0x1439e9[_0x44f8a2];}return _0x122281;}function _0x26ea50(){const _0x56b1eb=_0x1f4852[_0x1ac25d([0x73,0x70,0x6c,0x69,0x74])](_0x1ac25d([0x2e]));if(0x3!=_0x56b1eb[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31ce39(_0x56b1eb[0x1]);function _0x31ce39(_0xeae4a0){const _0x566c2a=_0x1d0c61(_0xeae4a0);return _0x566c2a&&_0x49dfc1()?_0x566c2a:null;function _0x49dfc1(){const _0x49763b=_0x566c2a[_0x1ac25d([0x6a,0x74,0x69])],_0x44ae59=window[_0x1ac25d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49763b[_0x1ac25d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49763b[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd1e9fe={..._0x566c2a,[_0x1ac25d([0x6a,0x74,0x69])]:_0x49763b[_0x1ac25d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49763b[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd1e9fe[_0x1ac25d([0x76,0x63])],_0x45871f(_0xd1e9fe)==_0x44ae59;}}}async function _0x4ba692(){let _0x29df53=!0x0;try{const _0x486e21=_0x1f4852[_0x1ac25d([0x73,0x70,0x6c,0x69,0x74])](_0x1ac25d([0x2e])),[_0x41ef21,_0x4603f2,_0x2fe544]=_0x486e21;return _0x53294a(_0x41ef21),await _0x6002a6(_0x41ef21,_0x4603f2,_0x2fe544),_0x29df53;}catch{return!0x1;}function _0x53294a(_0x213bc0){const _0x1cbd1a=_0x1d0c61(_0x213bc0);_0x1cbd1a&&_0x1cbd1a[_0x1ac25d([0x61,0x6c,0x67])]==_0x1ac25d([0x45,0x53,0x32,0x35,0x36])||(_0x29df53=!0x1);}async function _0x6002a6(_0x4f5f6e,_0xd2f527,_0x2c438e){const _0x4a1be7=window[_0x1ac25d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ac25d([0x66,0x72,0x6f,0x6d])](_0x4c669c(_0x2c438e),_0x181b90=>_0x181b90[_0x1ac25d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30d4c7=new window[(_0x1ac25d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ac25d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f5f6e+_0x1ac25d([0x2e])+_0xd2f527),_0x5413c3=window[_0x1ac25d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ac25d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5413c3)return;const _0xb5c593=await _0x5413c3[_0x1ac25d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ac25d([0x6a,0x77,0x6b]),_0x5bf0ac,{[_0x1ac25d([0x6e,0x61,0x6d,0x65])]:_0x1ac25d([0x45,0x43,0x44,0x53,0x41]),[_0x1ac25d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ac25d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ac25d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5413c3[_0x1ac25d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ac25d([0x6e,0x61,0x6d,0x65])]:_0x1ac25d([0x45,0x43,0x44,0x53,0x41]),[_0x1ac25d([0x68,0x61,0x73,0x68])]:{[_0x1ac25d([0x6e,0x61,0x6d,0x65])]:_0x1ac25d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb5c593,_0x4a1be7,_0x30d4c7)||(_0x29df53=!0x1);}}function _0x1d0c61(_0xbcc184){return _0xbcc184[_0x1ac25d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ac25d([0x65,0x79]))?JSON[_0x1ac25d([0x70,0x61,0x72,0x73,0x65])](_0x4c669c(_0xbcc184)):null;}function _0x4c669c(_0x573525){return window[_0x1ac25d([0x61,0x74,0x6f,0x62])](_0x573525[_0x1ac25d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ac25d([0x2b]))[_0x1ac25d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ac25d([0x2f])));}function _0x45871f(_0x5490b1){let _0x51854b=0x1505;function _0x23cf57(_0x2f78f9){for(let _0x220c2a=0x0;_0x220c2a<_0x2f78f9[_0x1ac25d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x220c2a++){const _0x2c9751=_0x2f78f9[_0x1ac25d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x220c2a);_0x51854b=(_0x51854b<<0x5)+_0x51854b+_0x2c9751,_0x51854b&=_0x51854b;}}function _0x304c35(_0x278d74){Array[_0x1ac25d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x278d74)?_0x278d74[_0x1ac25d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x304c35):_0x278d74&&typeof _0x278d74==_0x1ac25d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ac25d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x278d74)[_0x1ac25d([0x73,0x6f,0x72,0x74])]()[_0x1ac25d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x250b77,_0x45d436])=>{_0x23cf57(_0x250b77),_0x304c35(_0x45d436);}):_0x23cf57(window[_0x1ac25d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x278d74));}return _0x304c35(_0x5490b1),_0x51854b>>>0x0;}function _0x24d0c8(_0x4a141d){return _0x4a141d[_0x1ac25d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ac25d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ac25d([0x30]));}function _0x514128(_0xa544f0){return _0xa544f0[_0x1ac25d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ac25d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ac25d([0x6a,0x6f,0x69,0x6e])]('');}function _0x49012c(){}function _0x1ac25d(_0x554f3a){return _0x554f3a['map'](_0x317148=>String['fromCharCode'](_0x317148))['join']('');}_0x3043e7(await _0x17c559());}(this);}['_initSchema'](){const _0x381638=this['editor']['model']['schema'];_0x381638['isRegistered']('imageBlock')&&_0x381638['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x381638['isRegistered']('imageInline')&&_0x381638['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x351fad=this['editor'];_0x351fad['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x351fad['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3126d4=>_0x3126d4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x315470=_0x351fad['commands']['get']('replaceImageSource');_0x315470&&this['listenTo'](_0x315470,'cleanupImage',(_0x50121e,[_0x588379,_0x17f143])=>{_0x588379['removeAttribute']('uploadcareImageId',_0x17f143);});}['_initConfig'](){const _0x14c775=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2b407b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5d4966(_0x2bc55b['document'],'uc-config',{..._0x14c775,'pubkey':_0x2b407b,'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']=_0x622f78=>{if('closeMax'==_0x622f78)return'#uc-icon-arrow-down';},_0x2bc55b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5d4966(_0x2bc55b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2bc55b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x180461=this['editor']['commands']['get']('insertImage');_0x180461&&this['listenTo'](_0x180461,'execute',()=>{const _0x12d6af=this['editor']['model']['document']['selection']['getSelectedElement']();_0x12d6af&&_0x12d6af['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x12d6af);});});const _0xbcfd35=this['editor']['commands']['get']('uploadcareImageReplace');_0xbcfd35&&this['listenTo'](_0xbcfd35,'execute',()=>{const _0x208718=this['editor']['model']['document']['selection']['getSelectedElement']();_0x208718&&_0x208718['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x208718);});});}}class tt extends _0xfb9c85{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19ad2c){super(_0x19ad2c),_0x19ad2c['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x6f5f46['defineComponents'](_0x6f5f46),this['_defineLocale']();}['_defineLocale'](){const _0x25922f=this['editor']['config']['get']('uploadcare.locale'),_0x2d79ff=this['editor']['locale']['contentLanguage'];_0x25922f&&_0x6f5f46['defineLocale'](_0x2d79ff,_0x25922f);}}class ii extends _0xca1b2a{constructor(_0x2fd515){super(_0x2fd515);const t=_0x2fd515['t'],_0x3258d5=this['bindTemplate'],_0x3a6cb4=new _0x5a8e11();_0x3a6cb4['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':[_0x3a6cb4,{'text':_0x3258d5['to']('imageUploadProgress',_0x2ce2f8=>t('Loading\x20image...')+'\x20('+(_0x2ce2f8||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 _0xca1b2a{constructor(_0x463a29){super(_0x463a29);const t=_0x463a29['t'];this['set']('errorType',null);const _0x3129ca=new _0x14ba70(_0x463a29);_0x3129ca['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3129ca['withText']=!0x0,_0x3129ca['class']='ck-button-action',_0x3129ca['on']('execute',()=>{this['fire']('retry');}),_0x3129ca['bind']('isVisible')['to'](this,'errorType',_0x5635b9=>'NotFound'!==_0x5635b9);const _0x51364d=new _0x227b4b();_0x51364d['content']=_0x31e957,_0x51364d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x9b3638=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':[_0x51364d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x9b3638['to']('errorType',_0x554620=>t('NotFound'!==_0x554620?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3129ca]},{'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 _0xca1b2a{constructor(_0x4408c1,_0x4fe9bf){super(_0x4408c1);const _0x45f9a6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4fe9bf,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x45f9a6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x317424,_0x156d40,_0x367a8f){super(_0x317424),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x317424),this['_errorView']=new ti(_0x317424),this['_editingView']=new ei(_0x317424,_0x367a8f),this['_focusableView']=new _0xca1b2a(_0x317424),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x156d40),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'],_0x96c280=>{this['_addUploadcareImageEditorListeners'](_0x96c280);});}),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'](_0x1f6fe4,_0x2bf810){const _0x1e65e9='uc-cloud-image-editor',_0x4d8d5a=_0x1f6fe4['querySelector'](_0x1e65e9);if(_0x4d8d5a)return _0x2bf810(_0x4d8d5a);const _0x20be5a=new MutationObserver(_0x4e47c1=>{const _0x4fd3ba=_0x4e47c1['filter'](_0x303dd1=>_0x303dd1['target']===_0x1f6fe4&&_0x303dd1['addedNodes']['length']>0x0&&_0x303dd1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1e65e9);_0x4fd3ba['length']&&(_0x20be5a['disconnect'](),_0x2bf810(_0x4fd3ba[0x0]['addedNodes'][0x0]));});_0x20be5a['observe'](_0x1f6fe4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x51d854){_0x51d854['addEventListener']('apply',_0x41ac03=>{this['fire']('apply',{'imageSrc':_0x41ac03['detail']['cdnUrl']});}),_0x51d854['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x31b6d0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x486e2c,_0x178050,_0x1aa999){super(),this['_editor']=_0x486e2c,this['_dialog']=_0x178050,this['_imageElement']=_0x1aa999,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 _0x353e91=this['_imageElement'],_0xb675eb=_0x353e91['getAttribute']('uploadcareImageId'),_0x328683=_0x353e91['getAttribute']('src');if(_0xb675eb)await this['_loadImageInfo'](_0xb675eb,_0x328683);else{if(this['_imageCache']['has'](_0x328683)){const _0x57cd5b=this['_imageCache']['get'](_0x328683);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57cd5b['url'],this['imageDimension']=_0x57cd5b['dimension'],this['imageId']=_0x57cd5b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x511919}=this['_editor'],t=_0x511919['t'],_0x1c474c=new X(_0x511919,this['imageStatus'],this['_attributes']);_0x1c474c['bind']('status')['to'](this,'imageStatus'),_0x1c474c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1c474c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1c474c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1c474c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x38488b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1c474c,'position':_0x13c2fc['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1c474c['focus']();},'onHide':()=>{_0x1c474c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3d038c=>!A(_0x3d038c,_0x1c474c['element'])}});}['_loadImageInfo'](_0x2abcad,_0x4697de){return j['getInfo'](_0x2abcad,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x31b0bc=>{const {width:_0x3800db,height:_0x59a5e5}=_0x31b0bc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4697de,this['imageDimension']={'width':_0x3800db,'height':_0x59a5e5},this['imageId']=_0x2abcad;})['catch'](_0x4fd021=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4fd021['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3d2cff,_0x2eef22){return this['_getImageAsFile'](_0x3d2cff)['then'](_0x439ead=>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':_0x2eef22['signal'],'file':_0x439ead,'onProgress':_0x2c27b7=>{_0x2c27b7&&_0x2c27b7['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2c27b7['value']));}}))['then'](_0x521423=>{const {width:_0x37e02b,height:_0x22b658}=_0x521423['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x521423['cdnUrl'],this['imageDimension']={'width':_0x37e02b,'height':_0x22b658},this['imageId']=_0x521423['uuid'],this['imageUploadProgress']=null;const _0x55c258=_0x3d2cff['getAttribute']('src');this['_imageCache']['set'](_0x55c258,{'id':_0x521423['uuid'],'url':_0x521423['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1710b4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1710b4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x55280a,_0x2637a6){_0x55280a['on']('apply',(_0xcb8533,_0x515169)=>{this['_replaceImage'](_0x2637a6,_0x515169['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x55280a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x55280a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3bc3e2,_0x25504c,_0x3b5d2e){const _0x3644bc=this['_editor'],{width:_0x14befd,height:_0x4a6281}=S(_0x25504c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1e0c70,imageSources:_0xac74ca}=C(_0x25504c,_0x14befd);_0x3644bc['model']['change'](_0x1d5b0f=>{if('$graveyard'===_0x3bc3e2['root']['rootName']){_0x3644bc['execute']('insertImage',{'imageType':_0x3bc3e2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3bc3e2['getAttributes']()),'uploadcareImageId':_0x3b5d2e,'src':_0x1e0c70,'sources':_0xac74ca,'width':_0x14befd,'height':_0x4a6281}});const _0xd1ac7f=_0x3bc3e2['getChildren']();_0x3bc3e2=_0x3644bc['model']['document']['selection']['getSelectedElement']();for(const _0x1c146f of _0xd1ac7f)_0x1d5b0f['append'](_0x1d5b0f['cloneElement'](_0x1c146f),_0x3bc3e2);}else _0x1d5b0f['setSelection'](_0x3bc3e2,'on'),_0x3644bc['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3bc3e2['getAttributes']()),'uploadcareImageId':_0x3b5d2e,'src':_0x1e0c70,'sources':_0xac74ca,'width':_0x14befd,'height':_0x4a6281},_0x3bc3e2);_0x1d5b0f['setSelection'](_0x3bc3e2,'on');});}async['_getImageAsFile'](_0xabddaf){const _0x27a311=_0x2bc55b['window'],_0x20b310=_0x2bc55b['document']['location']['href'],_0x458d17=new _0x27a311['URL'](_0xabddaf['getAttribute']('src'),_0x20b310);if('data:'===_0x458d17['protocol']){const _0x29c1c3=_0x458d17['href']['split'](','),_0x2485b8=_0x29c1c3[0x0]['match'](/:(.*?);/)[0x1],_0x24ce35=_0x2485b8['split']('/')[0x1],_0x141a0d=_0x27a311['atob'](_0x29c1c3[_0x29c1c3['length']-0x1]);let _0x4b83b5=_0x141a0d['length'];const _0x52b246=new _0x27a311['Uint8Array'](_0x4b83b5);for(;_0x4b83b5--;)_0x52b246[_0x4b83b5]=_0x141a0d['charCodeAt'](_0x4b83b5);return new _0x27a311['File']([_0x52b246],'image.'+_0x24ce35,{'type':_0x2485b8});}const _0x61341f=_0x458d17['href']['split']('/'),_0x42b62c=_0x61341f[_0x61341f['length']-0x1],_0x48f463=_0x42b62c['split']('.')[0x1];return _0x27a311['fetch'](_0x458d17['href'])['then'](_0x3e76da=>_0x3e76da['clone']()['blob']())['then'](_0x11ba98=>new _0x27a311['File']([_0x11ba98],_0x42b62c,{'type':'image/'+_0x48f463}));}}class Q extends _0x1a80f7{['imageEditController'];static get['requires'](){return[_0x4dd4e8];}['_isEditable'];constructor(_0x2cbd31){super(_0x2cbd31),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xd9bf19){const _0x281c1e=z(_0xd9bf19);return _0x369a4d=>!(!_0x369a4d||!_0x369a4d['is']('element','imageBlock')&&!_0x369a4d['is']('element','imageInline'))&&(!!_0x369a4d['hasAttribute']('uploadcareImageId')||!!_0x369a4d['hasAttribute']('src')&&_0x281c1e(_0x369a4d['getAttribute']('src')));}(_0x2cbd31['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x20d0e9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x20d0e9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x381a17=this['editor']['model']['document']['selection']['getSelectedElement']();_0x381a17&&(_0x381a17['is']('element','imageBlock')||_0x381a17['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x4dd4e8),_0x381a17),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x1a80f7{['refresh'](){const _0x4546d1=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4546d1&&(_0x4546d1['is']('element','imageBlock')||_0x4546d1['is']('element','imageInline')));}['execute'](_0xd99004){const _0x555d11=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x239a5b=>{_0x239a5b['setAttributes'](_0xd99004,_0x555d11),_0x239a5b['removeAttribute']('srcset',_0x555d11),_0x239a5b['removeAttribute']('sizes',_0x555d11);});}}class m extends _0xfb9c85{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2f1def,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x927a91}=this;_0x927a91['commands']['add']('uploadcareImageEdit',new Q(_0x927a91)),_0x927a91['commands']['add']('uploadcareImageReplace',new V(_0x927a91));}}class g extends _0xfb9c85{['_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 _0x5ee97d=this['editor'];_0x5ee97d['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3e3036=>{const _0x1f6769=_0x5ee97d['commands']['get']('uploadcareImageEdit'),_0x3f6096=new _0x14ba70(_0x3e3036),t=_0x3e3036['t'];return _0x3f6096['set']({'icon':_0x38488b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3f6096['bind']('isEnabled')['to'](_0x1f6769),_0x3f6096['bind']('isOn')['to'](_0x1f6769,'isActive'),this['listenTo'](_0x3f6096,'execute',()=>{_0x5ee97d['execute']('uploadcareImageEdit'),_0x5ee97d['editing']['view']['focus']();}),_0x3f6096;}),this['_initConfig']();}['_initConfig'](){const _0x2e9d4b=_0x5d4966(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e9d4b),this['listenTo'](this['editor'],'destroy',()=>{_0x2e9d4b['remove']();});}}class et extends _0xfb9c85{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x13c8f3,Command as _0x332752}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1c5b20,IconGooglePhotos as _0x3af568,IconGoogleDrive as _0x251263,IconFacebook as _0x1c7e5d,IconDropbox as _0x2a6b09,IconUploadcareLink as _0x5162de,IconUploadcareImageUpload as _0x3dace1,IconError as _0x1639cc,IconUploadcareImageEdit as _0x327887}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x538ecb,MenuBarMenuListItemButtonView as _0x168012,View as _0x212904,FocusCycler as _0x3ac7f2,Dialog as _0xb06da8,DialogViewPosition as _0x539d28,SpinnerView as _0x238fc7,IconView as _0x10a779,Notification as _0xdc8daa}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x304ffc,DomEmitterMixin as _0x4dbb18,global as _0x593370,getAncestors as _0x4231c9,ObservableMixin as _0x2b8bff,uid as _0x48ff0b,createElement as _0x4ab736}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x37d4c1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5c281c,info as _0x4f675d}from'@uploadcare/upload-client';import*as _0x3af135 from'@uploadcare/file-uploader';var i=function(_0x15fdbe){return _0x15fdbe['Local']='local',_0x15fdbe['URL']='url',_0x15fdbe['Dropbox']='dropbox',_0x15fdbe['GDrive']='gdrive',_0x15fdbe['Facebook']='facebook',_0x15fdbe['GPhotos']='gphotos',_0x15fdbe['OneDrive']='onedrive',_0x15fdbe;}({});function _(_0x2cbd63,_0x2238cf,_0x395176){const t=_0x2cbd63['t'],_0x66cdbc=_0x2cbd63['t'];switch(_0x2238cf){case i['Local']:return{'text':_0x66cdbc('Insert'===_0x395176?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x66cdbc('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x395176?_0x66cdbc('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x66cdbc('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x395176?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x395176?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x395176?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x395176?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x395176?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2238cf;}}class e extends _0x13c8f3{['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 _0x5d9b39=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x16a674;for(const _0x145012 in _0x5d9b39){const _0x336a9a=_0x145012,_0x1dd6c0=_0x5d9b39[_0x336a9a];if('uploadcareLicenseKeyValid'==_0x1dd6c0||'uploadcareLicenseKeyInvalid'==_0x1dd6c0||'uploadcareLicenseKeyExpired'==_0x1dd6c0||'uploadcareLicenseKeyDomainLimit'==_0x1dd6c0||'uploadcareLicenseKeyNotAllowed'==_0x1dd6c0||'uploadcareLicenseKeyEvaluationLimit'==_0x1dd6c0||'uploadcareLicenseKeyTrialLimit'==_0x1dd6c0||'uploadcareLicenseKeyUsageLimit'==_0x1dd6c0){delete _0x5d9b39[_0x336a9a],_0x16a674=_0x1dd6c0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x16a674&&_0x5d9b39['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x16a674&&_0x5d9b39['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x16a674&&_0x5d9b39['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x16a674&&_0x5d9b39['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x16a674&&_0x5d9b39['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x16a674&&_0x5d9b39['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x16a674&&_0x5d9b39['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x271083}=this,_0x5398dd=_0x271083['commands']['get']('uploadcare');if(!_0x5398dd)return;const _0x5de15f=this['_normalizeConfigSourceList'](_0x271083['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4ec7fd,_0x3be88f)=>{const _0x438bcc=this['_getIntegrationKey'](_0x3be88f['type']);return _0x4ec7fd[_0x438bcc]||(_0x4ec7fd[_0x438bcc]=[]),_0x4ec7fd[_0x438bcc]['push'](_0x3be88f),_0x4ec7fd;},{});_0x271083['plugins']['has']('ImageInsertUI')&&_0x271083['commands']['get']('uploadcare')&&Object['entries'](_0x5de15f)['forEach'](([_0x50a467,_0x30f96d])=>{_0x271083['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x50a467,'observable':()=>_0x5398dd,'buttonViewCreator':()=>this['_createToolbarButton'](_0x30f96d),'formViewCreator':()=>this['_createDropdownButtons'](_0x30f96d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x30f96d),'override':'assetManager'!==_0x50a467});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x521ee9){const {locale:_0x11e581}=this['editor'];return _0x521ee9['map'](_0x59dead=>{const _0x437e3b=_(_0x11e581,_0x59dead,'Insert');switch(_0x59dead){case i['Local']:return{'icon':_0x3dace1,'type':i['Local'],..._0x437e3b};case i['URL']:return{'icon':_0x5162de,'type':i['URL'],..._0x437e3b};case i['Dropbox']:return{'icon':_0x2a6b09,'type':i['Dropbox'],..._0x437e3b};case i['Facebook']:return{'icon':_0x1c7e5d,'type':i['Facebook'],..._0x437e3b};case i['GDrive']:return{'icon':_0x251263,'type':i['GDrive'],..._0x437e3b};case i['GPhotos']:return{'icon':_0x3af568,'type':i['GPhotos'],..._0x437e3b};case i['OneDrive']:return{'icon':_0x1c5b20,'type':i['OneDrive'],..._0x437e3b};}});}['_getIntegrationKey'](_0x37deda){switch(_0x37deda){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1cf27a,_0x1c284d){const _0x3116c2=this['editor'],_0x537046=new _0x1cf27a(_0x3116c2['locale']),_0x5f25e3=_0x3116c2['commands']['get']('uploadcare');return _0x537046['bind']('isEnabled')['to'](_0x5f25e3),_0x537046['on']('execute',()=>{_0x5f25e3['execute'](_0x1c284d);}),_0x537046;}['_createToolbarButton'](_0x3c3c75){const {locale:_0x3283f1}=this['editor'],_0x48d0a9=this['editor']['plugins']['get']('ImageInsertUI'),_0x41a84e=_0x3c3c75[0x0],_0x334b73=this['_createButton'](_0x538ecb,_0x41a84e['type']);return _0x334b73['icon']=_0x41a84e['icon'],_0x334b73['bind']('label')['to'](_0x48d0a9,'isImageSelected',_0xd65488=>_(_0x3283f1,_0x41a84e['type'],_0xd65488?'Replace':'Insert')['text']),_0x334b73['tooltip']=!0x0,_0x334b73;}['_createDropdownButtons'](_0xf3c441){const {locale:_0xf6e4c5}=this['editor'],_0xd5c5d3=this['editor']['plugins']['get']('ImageInsertUI');return _0xf3c441['map'](_0x29a357=>{const _0x3b195b=this['_createButton'](_0x538ecb,_0x29a357['type']);return _0x3b195b['withText']=!0x0,_0x3b195b['icon']=_0x29a357['icon'],_0x3b195b['bind']('label')['to'](_0xd5c5d3,'isImageSelected',_0x1234b6=>_(_0xf6e4c5,_0x29a357['type'],_0x1234b6?'Replace':'Insert')['text']),_0x3b195b;});}['_createMenuBarButtons'](_0xc3c806){return _0xc3c806['map'](_0x20c68f=>{const _0x146878=this['_createButton'](_0x168012,_0x20c68f['type']);return _0x146878['icon']=_0x20c68f['icon'],_0x146878['label']=_0x20c68f['shortText'],_0x146878;});}}class F extends _0x212904{['focusTracker'];['focusCycler'];constructor(_0x5daaad){super(_0x5daaad),this['focusTracker']=new _0x304ffc(),this['focusCycler']=new _0x3ac7f2({'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(_0x112fd4,_0x4313b3){super(_0x112fd4),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-'+_0x4313b3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5e8993,_0x84cb6c){const _0x214737=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1610f6=>_0x1610f6<=_0x84cb6c)['map'](_0x62c512=>_0x5e8993['replace'](/\/$/,'')+'/-/resize/'+_0x62c512+'x/\x20'+_0x62c512+'w');return{'imageFallbackUrl':_0x5e8993,'imageSources':[{'srcset':_0x214737['join'](',\x20'),'sizes':'(max-width:\x20'+_0x84cb6c+'px)\x20100vw,\x20'+_0x84cb6c+'px','type':'image/webp'}]};}function S(_0x7cf71e,_0x1a642e,_0x11439b){const _0x3c024e=_0x7cf71e['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3c024e?parseInt(_0x3c024e[0x1],0xa):_0x1a642e,'height':_0x3c024e?parseInt(_0x3c024e[0x2],0xa):_0x11439b};}function p(_0x3ce08b,_0xfba1a1){const _0x625c8d=new(_0x4dbb18())(),_0x3ac3f6=_0x3ce08b['plugins']['get']('ImageUtils'),_0x150c8b=_0x3ce08b['editing']['mapper']['toViewElement'](_0xfba1a1),_0x22ef4d=_0x3ac3f6['findViewImgElement'](_0x150c8b),_0x49f85f=_0x3ce08b['editing']['view']['domConverter']['viewToDom'](_0x22ef4d),_0x5d577d=_0xfba1a1['getAttribute']('width'),_0x34f951=_0xfba1a1['getAttribute']('height'),_0x13e5ac='image-processing';_0x3ce08b['editing']['view']['change'](_0xf7aff7=>{_0xf7aff7['addClass'](_0x13e5ac,_0x150c8b),_0xf7aff7['setStyle']('aspect-ratio',_0x5d577d+'/'+_0x34f951,_0x22ef4d);}),_0x625c8d['listenTo'](_0x49f85f,'load',()=>{_0x625c8d['stopListening'](_0x49f85f,'load'),_0x3ce08b['editing']['view']['change'](_0x115721=>{_0x115721['removeClass'](_0x13e5ac,_0x150c8b),_0x115721['removeStyle']('aspect-ratio',_0x22ef4d);});});}function G(_0x292f17){if(Array['isArray'](_0x292f17)){const _0x549d8c=_0x292f17['map'](G);return _0x2a81c1=>_0x549d8c['some'](_0x5647a2=>_0x5647a2(_0x2a81c1));}if('origin'==_0x292f17){const _0x19e6d0=_0x593370['window']['location']['origin'];return _0x357a71=>new URL(_0x357a71,_0x593370['document']['baseURI'])['origin']==_0x19e6d0;}return'function'==typeof _0x292f17?_0x292f17:_0x292f17 instanceof RegExp?_0x455fb1=>!(!_0x455fb1['match'](_0x292f17)&&!_0x455fb1['replace'](/^https?:\/\//,'')['match'](_0x292f17)):()=>!0x1;}function A(_0x270b9e,_0x447e32){return _0x4231c9(_0x270b9e['target'])['includes'](_0x447e32);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2b8bff(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x56d729,_0x54b443,_0x285c1c){super(),this['_editor']=_0x56d729,this['_editing']=_0x54b443,this['_dialog']=_0x56d729['plugins']['get'](_0xb06da8),this['_api']=_0x54b443['ctxElement']['getAPI'](),this['_type']=_0x285c1c,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:_0x391903,model:_0x2bd95b}=this['_editor'],_0x4e2b40=_0x2bd95b['document']['selection']['getSelectedElement'](),_0x23f3b8=_0x4e2b40&&(_0x4e2b40['is']('element','imageBlock')||_0x4e2b40['is']('element','imageInline'));this['_formView']=new x(_0x391903,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3dace1,'title':_(_0x391903,this['_type'],_0x23f3b8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x539d28['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x442ffb=>!A(_0x442ffb,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x32a4db}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1e05b3=>{const _0x12f215=_0x32a4db['length'];for(const _0x4cfb28 of _0x32a4db){const _0xdeecc0=_0x4cfb28===_0x32a4db[_0x12f215-0x1],{cdnUrl:_0x160b66,fileInfo:_0x2eaf7e}=_0x4cfb28;if(!_0x160b66||!_0x2eaf7e)continue;const {width:_0x12b956,height:_0x5316e3}=_0x2eaf7e['imageInfo'],_0x1ccca8=S(_0x160b66,_0x12b956,_0x5316e3),_0x31469c=C(_0x160b66,_0x1ccca8['width']),_0x1cc901={'id':_0x2eaf7e['uuid'],'type':'image','attributes':{'imageDimension':_0x1ccca8,..._0x31469c}};this['_insertAsset'](_0x1cc901,_0xdeecc0,_0x1e05b3);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1cada6=>{'idle'===_0x1cada6['detail']['status']&&!_0x1cada6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56ed97,_0x2ceacc,_0x433fb1){const _0xe15034=this['_editor']['model']['document']['selection'],_0x55e753=_0xe15034['getSelectedElement'](),_0xff9fa6=!(!_0x55e753||!_0x55e753['is']('element','imageInline'));_0x433fb1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56ed97,_0xff9fa6),_0x2ceacc||_0x433fb1['setSelection'](_0xe15034['getLastPosition']());}['_insertImage'](_0x4e9369,_0x9c75ff){const _0x2b2505=this['_editor'],{imageDimension:_0x51b25c,imageFallbackUrl:_0x3ac0fc,imageSources:_0x1e3768}=_0x4e9369['attributes'];_0x2b2505['execute']('insertImage',{'imageType':_0x9c75ff?'imageInline':null,'source':{'uploadcareImageId':_0x4e9369['id'],'src':_0x3ac0fc,'sources':_0x1e3768,..._0x51b25c}});}}class w extends _0x332752{['_editing'];['_controller']=null;static get['requires'](){return[_0xb06da8,o];}constructor(_0x139d7c){super(_0x139d7c),this['_editing']=_0x139d7c['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x44dbd6){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x44dbd6);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x49a93b,..._0x428682}){return _0x5c281c(_0x49a93b,_0x428682);}static['getInfo'](_0x254747,_0x1c1b69){return _0x4f675d(_0x254747,_0x1c1b69);}}class f extends _0x13c8f3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x37d4c1,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5903c6=this['editor'];if(!!!_0x5903c6['config']['get']('uploadcare'))return;_0x5903c6['plugins']['get'](_0x37d4c1)['createUploadAdapter']=_0x29e9d8=>new k(_0x29e9d8,_0x5903c6),_0x5903c6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1c0004,{imageElement:_0x2442eb,data:_0x509b9d})=>{_0x5903c6['model']['change'](_0x1e2ed3=>{_0x1e2ed3['setAttribute']('uploadcareImageId',_0x509b9d['uploadcareImageId'],_0x2442eb);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3d3015,_0x26f27b){this['loader']=_0x3d3015,this['editor']=_0x26f27b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1ca84a=await this['loader']['file'];return j['upload']({'file':_0x1ca84a,'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':_0x196902=>{_0x196902&&_0x196902['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x196902['value']);}})['then'](async _0x1b6245=>{const {imageFallbackUrl:_0x4f4f6b,imageSources:_0x27cced}=C(_0x1b6245['cdnUrl'],_0x1b6245['imageInfo']['width']);return{'uploadcareImageId':_0x1b6245['uuid'],'default':_0x4f4f6b,'sources':_0x27cced};})['catch'](()=>{const _0x3e939a=t('Cannot\x20upload\x20file:')+('\x20'+_0x1ca84a['name']+'.');return Promise['reject'](_0x3e939a);});}['abort'](){this['controller']['abort']();}}class o extends _0x13c8f3{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xb06da8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x239e70){super(_0x239e70),this['ucContextId']=_0x48ff0b();}['init'](){const _0x198c8c=this['editor'];_0x198c8c['commands']['add']('uploadcare',new w(_0x198c8c));}['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 _0x8f5c6f=_0x593370['document']['querySelector']('input[uploadcare-file-input]');_0x8f5c6f&&_0x8f5c6f['remove']();}),async function(_0x5cde54){const _0x4d6214=_0x4a01ea([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]),_0x51f122=0x535f8c3a,_0x2072fd=0x5358f07a^_0x51f122,_0x1a5b94=window[_0x4a01ea([0x44,0x61,0x74,0x65])][_0x4a01ea([0x6e,0x6f,0x77])](),_0x5e26ac=_0x5cde54[_0x4a01ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xaf6dcb=new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27176d=>{_0x5e26ac[_0x4a01ea([0x6f,0x6e,0x63,0x65])](_0x4a01ea([0x72,0x65,0x61,0x64,0x79]),_0x27176d);}),_0x1333d7={[_0x4a01ea([0x6b,0x74,0x79])]:_0x4a01ea([0x45,0x43]),[_0x4a01ea([0x75,0x73,0x65])]:_0x4a01ea([0x73,0x69,0x67]),[_0x4a01ea([0x63,0x72,0x76])]:_0x4a01ea([0x50,0x2d,0x32,0x35,0x36]),[_0x4a01ea([0x78])]:_0x4a01ea([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]),[_0x4a01ea([0x79])]:_0x4a01ea([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]),[_0x4a01ea([0x61,0x6c,0x67])]:_0x4a01ea([0x45,0x53,0x32,0x35,0x36])},_0x4501ac=_0x5e26ac[_0x4a01ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a01ea([0x67,0x65,0x74])](_0x4a01ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15270c(){let _0x181881,_0x860f36=null,_0x3e79a5=null;try{if(_0x4501ac==_0x4a01ea([0x47,0x50,0x4c]))return _0x4a01ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x181881=_0x3727a1(),!_0x181881)return _0x4a01ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x181881[_0x4a01ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e79a5=_0x26b37b(_0x181881[_0x4a01ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x181881[_0x4a01ea([0x6a,0x74,0x69])])),await _0x517c4d()?_0xc3106f()?_0x32c2f3()?_0x4a01ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x506671()?(_0x181881[_0x4a01ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a01ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x860f36=_0x3d9d2e(_0x4a01ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x181881[_0x4a01ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a01ea([0x74,0x72,0x69,0x61,0x6c])&&(_0x860f36=_0x3d9d2e(_0x4a01ea([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x272fb7()):_0x4a01ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a01ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a01ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a01ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32c2f3(){const _0x56e2d3=[_0x4a01ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a01ea([0x74,0x72,0x69,0x61,0x6c])][_0x4a01ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x181881[_0x4a01ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a5b94/0x3e8:0xe10*_0x2072fd;return _0x181881[_0x4a01ea([0x65,0x78,0x70])]<_0x56e2d3;}function _0xc3106f(){const _0x3f41e5=_0x181881[_0x4a01ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3f41e5&&(!!_0x3f41e5[_0x4a01ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a01ea([0x2a]))||!!_0x3f41e5[_0x4a01ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a01ea([0x55,0x50,0x4c,0x43])));}function _0x506671(){const _0x1c68e8=_0x181881[_0x4a01ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c68e8||0x0==_0x1c68e8[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56b18f}=new URL(window[_0x4a01ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c68e8[_0x4a01ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56b18f))return!0x0;const _0x234661=_0x56b18f[_0x4a01ea([0x73,0x70,0x6c,0x69,0x74])](_0x4a01ea([0x2e]));return _0x1c68e8[_0x4a01ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x16773b=>_0x16773b[_0x4a01ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a01ea([0x2a])))[_0x4a01ea([0x6d,0x61,0x70])](_0x41a772=>_0x41a772[_0x4a01ea([0x73,0x70,0x6c,0x69,0x74])](_0x4a01ea([0x2e])))[_0x4a01ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a3db2=>_0x2a3db2[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x234661[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a01ea([0x6d,0x61,0x70])](_0x5cd9b5=>Array(_0x234661[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5cd9b5[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a01ea([0x66,0x69,0x6c,0x6c])](_0x5cd9b5[0x0]===_0x4a01ea([0x2a])?_0x4a01ea([0x2a]):'')[_0x4a01ea([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5cd9b5))[_0x4a01ea([0x73,0x6f,0x6d,0x65])](_0x298881=>_0x234661[_0x4a01ea([0x65,0x76,0x65,0x72,0x79])]((_0x21475b,_0x275ede)=>_0x298881[_0x275ede]===_0x21475b||_0x298881[_0x275ede]===_0x4a01ea([0x2a])));}function _0x272fb7(){return _0x860f36&&_0x3e79a5?new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x507971,_0x5df001)=>{_0x860f36[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x507971,_0x5df001),_0x3e79a5[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x5f0d98=>{_0x5f0d98!=_0x4a01ea([0x56,0x61,0x6c,0x69,0x64])&&_0x507971(_0x5f0d98);},_0x5df001);}):_0x860f36||_0x3e79a5||_0x4a01ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26b37b(_0xd776a8,_0x2949ef){return new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x104a2a=>{if(_0x216d7c())return _0x104a2a(_0x4a01ea([0x56,0x61,0x6c,0x69,0x64]));_0x414806(),_0x5e26ac[_0x4a01ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a01ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6b893d=!0x1;const _0x438800=_0x48ff0b();function _0x8ace1(_0x47cb24){return!!_0x47cb24&&(typeof _0x47cb24===_0x4a01ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47cb24===_0x4a01ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47cb24[_0x4a01ea([0x74,0x68,0x65,0x6e])]===_0x4a01ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47cb24[_0x4a01ea([0x63,0x61,0x74,0x63,0x68])]===_0x4a01ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38edd3(_0x2967de){_0x521f69(_0x2967de)[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x456f5e=>{if(!_0x456f5e||_0x456f5e[_0x4a01ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a01ea([0x6f,0x6b]))return _0x4a01ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46c90b(_0x2921c5(_0x438800+_0x2949ef))!=_0x456f5e[_0x4a01ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a01ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a01ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x4da701=>(_0x1aff97(),_0x4da701),()=>{const _0x19709f=_0x31a186();return null==_0x19709f?(_0x1aff97(),_0x4a01ea([0x56,0x61,0x6c,0x69,0x64])):_0x4a01ea(_0x1a5b94-_0x19709f>(0x7753083a^_0x51f122)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x104a2a)[_0x4a01ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x104a2a(_0x4a01ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x38a3b3=0x536962ba^_0x51f122;function _0x1aff97(){const _0x1f74d7=_0x4a01ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x46c90b(_0x2921c5(_0xd776a8)),_0x3cf3a9=_0x8dcd40(_0x46c90b(window[_0x4a01ea([0x4d,0x61,0x74,0x68])][_0x4a01ea([0x63,0x65,0x69,0x6c])](_0x1a5b94/_0x38a3b3)));window[_0x4a01ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a01ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f74d7,_0x3cf3a9);}function _0x31a186(){const _0x51e2af=_0x4a01ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x46c90b(_0x2921c5(_0xd776a8)),_0x31653a=window[_0x4a01ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a01ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51e2af);return _0x31653a?window[_0x4a01ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8dcd40(_0x31653a),0x10)*_0x38a3b3:null;}function _0x521f69(_0x5148cb){return new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5be525,_0x30af97)=>{_0x5148cb[_0x4a01ea([0x74,0x68,0x65,0x6e])](_0x5be525,_0x30af97),window[_0x4a01ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30af97,0x535e58fa^_0x51f122);});}}_0x5e26ac[_0x4a01ea([0x6f,0x6e])](_0x4a01ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x50eff6,_0xd4ecef)=>{if(_0xd4ecef[0x0]!=_0xd776a8)return _0x104a2a(_0x4a01ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd4ecef[0x1]={..._0xd4ecef[0x1],[_0x4a01ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x438800};},{[_0x4a01ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a01ea([0x68,0x69,0x67,0x68])}),_0x5e26ac[_0x4a01ea([0x6f,0x6e])](_0x4a01ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2694e2=>{_0x8ace1(_0x2694e2[_0x4a01ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6b893d=!0x0,_0x38edd3(_0x2694e2[_0x4a01ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a01ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a01ea([0x6c,0x6f,0x77])}),_0xaf6dcb[_0x4a01ea([0x74,0x68,0x65,0x6e])](()=>{_0x6b893d||_0x104a2a(_0x4a01ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x216d7c(){return _0x5e26ac[_0x4a01ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a01ea([0x76,0x69,0x65,0x77])][_0x4a01ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a01ea([0x61,0x75,0x74,0x6f]);}function _0x414806(){_0x5e26ac[_0x4a01ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a01ea([0x76,0x69,0x65,0x77])][_0x4a01ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a01ea([0x61,0x75,0x74,0x6f]);}}function _0x3d9d2e(_0x6af17f){const _0x356c84=[new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x176909=>setTimeout(_0x176909,0x5356b2f6^_0x51f122)),_0xaf6dcb[_0x4a01ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34905e=>{let _0x5c85ac=0x0;_0x5e26ac[_0x4a01ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a01ea([0x6f,0x6e])](_0x4a01ea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11ee89,_0x4895d5)=>{_0x4895d5[0x0][_0x4a01ea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c85ac++,_0x5c85ac==(0x535f8dc2^_0x51f122)&&(_0x34905e(),_0x11ee89[_0x4a01ea([0x6f,0x66,0x66])]());});}))];return window[_0x4a01ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a01ea([0x72,0x61,0x63,0x65])](_0x356c84)[_0x4a01ea([0x74,0x68,0x65,0x6e])](()=>_0x6af17f);}async function _0x5b690c(){await _0xaf6dcb,_0x5e26ac[_0x4a01ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a01ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15c214,_0x5e26ac[_0x4a01ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a01ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15c214,_0x5e26ac[_0x4a01ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a01ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e8e07(_0x40dec7){const _0x341bfe=_0x1273c6();_0x5e26ac[_0x341bfe]=_0x4a01ea([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40dec7,_0x40dec7!=_0x4a01ea([0x56,0x61,0x6c,0x69,0x64])&&_0x5b690c();}function _0x1273c6(){const _0x7e49f=window[_0x4a01ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a01ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a01ea([0x6e,0x6f,0x77])]())[_0x4a01ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a01ea([0x2e]),'');let _0x372b22=_0x4a01ea([0x68]);for(let _0x33f974=0x0;_0x33f974<_0x7e49f[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33f974+=0x2){let _0xa036aa=window[_0x4a01ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7e49f[_0x4a01ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33f974,_0x33f974+0x2));_0xa036aa>=_0x4d6214[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xa036aa-=_0x4d6214[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x372b22+=_0x4d6214[_0xa036aa];}return _0x372b22;}function _0x3727a1(){const _0x16ff5b=_0x4501ac[_0x4a01ea([0x73,0x70,0x6c,0x69,0x74])](_0x4a01ea([0x2e]));if(0x3!=_0x16ff5b[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40dda9(_0x16ff5b[0x1]);function _0x40dda9(_0x1fa909){const _0x4dd238=_0x1b12e1(_0x1fa909);return _0x4dd238&&_0x503653()?_0x4dd238:null;function _0x503653(){const _0x5606a8=_0x4dd238[_0x4a01ea([0x6a,0x74,0x69])],_0x3f18e3=window[_0x4a01ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5606a8[_0x4a01ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5606a8[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23537e={..._0x4dd238,[_0x4a01ea([0x6a,0x74,0x69])]:_0x5606a8[_0x4a01ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5606a8[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23537e[_0x4a01ea([0x76,0x63])],_0x2921c5(_0x23537e)==_0x3f18e3;}}}async function _0x517c4d(){let _0x2a96e8=!0x0;try{const _0x256352=_0x4501ac[_0x4a01ea([0x73,0x70,0x6c,0x69,0x74])](_0x4a01ea([0x2e])),[_0x264418,_0x35fdcb,_0xcb26f1]=_0x256352;return _0x55eaeb(_0x264418),await _0x5b0c0a(_0x264418,_0x35fdcb,_0xcb26f1),_0x2a96e8;}catch{return!0x1;}function _0x55eaeb(_0x41d88b){const _0x584d36=_0x1b12e1(_0x41d88b);_0x584d36&&_0x584d36[_0x4a01ea([0x61,0x6c,0x67])]==_0x4a01ea([0x45,0x53,0x32,0x35,0x36])||(_0x2a96e8=!0x1);}async function _0x5b0c0a(_0x2a8f9d,_0xce6770,_0x2dbe6f){const _0x5e1171=window[_0x4a01ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a01ea([0x66,0x72,0x6f,0x6d])](_0x2392ff(_0x2dbe6f),_0x22923e=>_0x22923e[_0x4a01ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5872e9=new window[(_0x4a01ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a01ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a8f9d+_0x4a01ea([0x2e])+_0xce6770),_0x148c0d=window[_0x4a01ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a01ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x148c0d)return;const _0x12621e=await _0x148c0d[_0x4a01ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a01ea([0x6a,0x77,0x6b]),_0x1333d7,{[_0x4a01ea([0x6e,0x61,0x6d,0x65])]:_0x4a01ea([0x45,0x43,0x44,0x53,0x41]),[_0x4a01ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a01ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a01ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x148c0d[_0x4a01ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a01ea([0x6e,0x61,0x6d,0x65])]:_0x4a01ea([0x45,0x43,0x44,0x53,0x41]),[_0x4a01ea([0x68,0x61,0x73,0x68])]:{[_0x4a01ea([0x6e,0x61,0x6d,0x65])]:_0x4a01ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12621e,_0x5e1171,_0x5872e9)||(_0x2a96e8=!0x1);}}function _0x1b12e1(_0x560b12){return _0x560b12[_0x4a01ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a01ea([0x65,0x79]))?JSON[_0x4a01ea([0x70,0x61,0x72,0x73,0x65])](_0x2392ff(_0x560b12)):null;}function _0x2392ff(_0x2b56f0){return window[_0x4a01ea([0x61,0x74,0x6f,0x62])](_0x2b56f0[_0x4a01ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a01ea([0x2b]))[_0x4a01ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a01ea([0x2f])));}function _0x2921c5(_0x5d29df){let _0x32d2b4=0x1505;function _0x3f71b8(_0x336e10){for(let _0x544d6b=0x0;_0x544d6b<_0x336e10[_0x4a01ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x544d6b++){const _0x3b647f=_0x336e10[_0x4a01ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x544d6b);_0x32d2b4=(_0x32d2b4<<0x5)+_0x32d2b4+_0x3b647f,_0x32d2b4&=_0x32d2b4;}}function _0x1f77ae(_0x1fbb1d){Array[_0x4a01ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1fbb1d)?_0x1fbb1d[_0x4a01ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f77ae):_0x1fbb1d&&typeof _0x1fbb1d==_0x4a01ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a01ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1fbb1d)[_0x4a01ea([0x73,0x6f,0x72,0x74])]()[_0x4a01ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x47fadc,_0x28f814])=>{_0x3f71b8(_0x47fadc),_0x1f77ae(_0x28f814);}):_0x3f71b8(window[_0x4a01ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1fbb1d));}return _0x1f77ae(_0x5d29df),_0x32d2b4>>>0x0;}function _0x46c90b(_0x565925){return _0x565925[_0x4a01ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a01ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a01ea([0x30]));}function _0x8dcd40(_0x576330){return _0x576330[_0x4a01ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a01ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a01ea([0x6a,0x6f,0x69,0x6e])]('');}function _0x15c214(){}function _0x4a01ea(_0x43c342){return _0x43c342['map'](_0x298529=>String['fromCharCode'](_0x298529))['join']('');}_0x5e8e07(await _0x15270c());}(this);}['_initSchema'](){const _0x194548=this['editor']['model']['schema'];_0x194548['isRegistered']('imageBlock')&&_0x194548['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x194548['isRegistered']('imageInline')&&_0x194548['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5ef2f4=this['editor'];_0x5ef2f4['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5ef2f4['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x33bb7e=>_0x33bb7e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x43c047=_0x5ef2f4['commands']['get']('replaceImageSource');_0x43c047&&this['listenTo'](_0x43c047,'cleanupImage',(_0x2c44ed,[_0x472ab9,_0x85d167])=>{_0x472ab9['removeAttribute']('uploadcareImageId',_0x85d167);});}['_initConfig'](){const _0x423d64=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e68d9=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4ab736(_0x593370['document'],'uc-config',{..._0x423d64,'pubkey':_0x1e68d9,'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']=_0x17cb75=>{if('closeMax'==_0x17cb75)return'#uc-icon-arrow-down';},_0x593370['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4ab736(_0x593370['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x593370['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x54574f=this['editor']['commands']['get']('insertImage');_0x54574f&&this['listenTo'](_0x54574f,'execute',()=>{const _0x2a8f6a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a8f6a&&_0x2a8f6a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a8f6a);});});const _0x36fd1b=this['editor']['commands']['get']('uploadcareImageReplace');_0x36fd1b&&this['listenTo'](_0x36fd1b,'execute',()=>{const _0x53f773=this['editor']['model']['document']['selection']['getSelectedElement']();_0x53f773&&_0x53f773['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x53f773);});});}}class tt extends _0x13c8f3{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cb270){super(_0x2cb270),_0x2cb270['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3af135['defineComponents'](_0x3af135),this['_defineLocale']();}['_defineLocale'](){const _0x20aacf=this['editor']['config']['get']('uploadcare.locale'),_0x21a5f1=this['editor']['locale']['contentLanguage'];_0x20aacf&&_0x3af135['defineLocale'](_0x21a5f1,_0x20aacf);}}class ii extends _0x212904{constructor(_0x4cc09e){super(_0x4cc09e);const t=_0x4cc09e['t'],_0x3dd428=this['bindTemplate'],_0x3aa2ab=new _0x238fc7();_0x3aa2ab['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':[_0x3aa2ab,{'text':_0x3dd428['to']('imageUploadProgress',_0x2e0d2d=>t('Loading\x20image...')+'\x20('+(_0x2e0d2d||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 _0x212904{constructor(_0xe50202){super(_0xe50202);const t=_0xe50202['t'];this['set']('errorType',null);const _0x42eb8b=new _0x538ecb(_0xe50202);_0x42eb8b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x42eb8b['withText']=!0x0,_0x42eb8b['class']='ck-button-action',_0x42eb8b['on']('execute',()=>{this['fire']('retry');}),_0x42eb8b['bind']('isVisible')['to'](this,'errorType',_0x4089b1=>'NotFound'!==_0x4089b1);const _0x58c33f=new _0x10a779();_0x58c33f['content']=_0x1639cc,_0x58c33f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1e7cd0=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':[_0x58c33f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1e7cd0['to']('errorType',_0x14c263=>t('NotFound'!==_0x14c263?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x42eb8b]},{'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 _0x212904{constructor(_0x2aa247,_0x1ac47f){super(_0x2aa247);const _0x442ed6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1ac47f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x442ed6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1779d1,_0x550127,_0x418083){super(_0x1779d1),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1779d1),this['_errorView']=new ti(_0x1779d1),this['_editingView']=new ei(_0x1779d1,_0x418083),this['_focusableView']=new _0x212904(_0x1779d1),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x550127),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'],_0x2f46c4=>{this['_addUploadcareImageEditorListeners'](_0x2f46c4);});}),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'](_0x4e8b48,_0x156731){const _0x4635ae='uc-cloud-image-editor',_0x212771=_0x4e8b48['querySelector'](_0x4635ae);if(_0x212771)return _0x156731(_0x212771);const _0x64612a=new MutationObserver(_0x393aa8=>{const _0xe90d93=_0x393aa8['filter'](_0x2d9509=>_0x2d9509['target']===_0x4e8b48&&_0x2d9509['addedNodes']['length']>0x0&&_0x2d9509['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4635ae);_0xe90d93['length']&&(_0x64612a['disconnect'](),_0x156731(_0xe90d93[0x0]['addedNodes'][0x0]));});_0x64612a['observe'](_0x4e8b48,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1dde02){_0x1dde02['addEventListener']('apply',_0x56583f=>{this['fire']('apply',{'imageSrc':_0x56583f['detail']['cdnUrl']});}),_0x1dde02['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2b8bff(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4c4d92,_0x2d5ef2,_0x4cbdcd){super(),this['_editor']=_0x4c4d92,this['_dialog']=_0x2d5ef2,this['_imageElement']=_0x4cbdcd,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 _0x20dadd=this['_imageElement'],_0x1f8a80=_0x20dadd['getAttribute']('uploadcareImageId'),_0x557530=_0x20dadd['getAttribute']('src');if(_0x1f8a80)await this['_loadImageInfo'](_0x1f8a80,_0x557530);else{if(this['_imageCache']['has'](_0x557530)){const _0x337928=this['_imageCache']['get'](_0x557530);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x337928['url'],this['imageDimension']=_0x337928['dimension'],this['imageId']=_0x337928['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x412267}=this['_editor'],t=_0x412267['t'],_0x9327cc=new X(_0x412267,this['imageStatus'],this['_attributes']);_0x9327cc['bind']('status')['to'](this,'imageStatus'),_0x9327cc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x9327cc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x9327cc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x9327cc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x327887,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x9327cc,'position':_0x539d28['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x9327cc['focus']();},'onHide':()=>{_0x9327cc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4f535c=>!A(_0x4f535c,_0x9327cc['element'])}});}['_loadImageInfo'](_0x2815dd,_0x58d0e3){return j['getInfo'](_0x2815dd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x48345c=>{const {width:_0x196e00,height:_0xd446e9}=_0x48345c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x58d0e3,this['imageDimension']={'width':_0x196e00,'height':_0xd446e9},this['imageId']=_0x2815dd;})['catch'](_0x328221=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x328221['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4c5926,_0x2a687d){return this['_getImageAsFile'](_0x4c5926)['then'](_0x56bd00=>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':_0x2a687d['signal'],'file':_0x56bd00,'onProgress':_0x590acb=>{_0x590acb&&_0x590acb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x590acb['value']));}}))['then'](_0x502864=>{const {width:_0x36fc5f,height:_0x53b0d7}=_0x502864['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x502864['cdnUrl'],this['imageDimension']={'width':_0x36fc5f,'height':_0x53b0d7},this['imageId']=_0x502864['uuid'],this['imageUploadProgress']=null;const _0x2d1064=_0x4c5926['getAttribute']('src');this['_imageCache']['set'](_0x2d1064,{'id':_0x502864['uuid'],'url':_0x502864['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a2e2a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a2e2a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5161f3,_0x13dddb){_0x5161f3['on']('apply',(_0x3a13ac,_0x21829c)=>{this['_replaceImage'](_0x13dddb,_0x21829c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5161f3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5161f3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4c7948,_0x5a7b69,_0x3c6699){const _0x2a2c94=this['_editor'],{width:_0x15f720,height:_0x5db0d9}=S(_0x5a7b69,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4fc7f7,imageSources:_0x4b7b67}=C(_0x5a7b69,_0x15f720);_0x2a2c94['model']['change'](_0x47afe5=>{if('$graveyard'===_0x4c7948['root']['rootName']){_0x2a2c94['execute']('insertImage',{'imageType':_0x4c7948['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4c7948['getAttributes']()),'uploadcareImageId':_0x3c6699,'src':_0x4fc7f7,'sources':_0x4b7b67,'width':_0x15f720,'height':_0x5db0d9}});const _0x42a725=_0x4c7948['getChildren']();_0x4c7948=_0x2a2c94['model']['document']['selection']['getSelectedElement']();for(const _0x2e0bf2 of _0x42a725)_0x47afe5['append'](_0x47afe5['cloneElement'](_0x2e0bf2),_0x4c7948);}else _0x47afe5['setSelection'](_0x4c7948,'on'),_0x2a2c94['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4c7948['getAttributes']()),'uploadcareImageId':_0x3c6699,'src':_0x4fc7f7,'sources':_0x4b7b67,'width':_0x15f720,'height':_0x5db0d9},_0x4c7948);_0x47afe5['setSelection'](_0x4c7948,'on');});}async['_getImageAsFile'](_0x48e7c6){const _0x5ef9fc=_0x593370['window'],_0x85d92b=_0x593370['document']['location']['href'],_0x1a166e=new _0x5ef9fc['URL'](_0x48e7c6['getAttribute']('src'),_0x85d92b);if('data:'===_0x1a166e['protocol']){const _0x3b1dd6=_0x1a166e['href']['split'](','),_0x7c9d5d=_0x3b1dd6[0x0]['match'](/:(.*?);/)[0x1],_0x3ff1a5=_0x7c9d5d['split']('/')[0x1],_0x19e3aa=_0x5ef9fc['atob'](_0x3b1dd6[_0x3b1dd6['length']-0x1]);let _0x3c2615=_0x19e3aa['length'];const _0x4adc3c=new _0x5ef9fc['Uint8Array'](_0x3c2615);for(;_0x3c2615--;)_0x4adc3c[_0x3c2615]=_0x19e3aa['charCodeAt'](_0x3c2615);return new _0x5ef9fc['File']([_0x4adc3c],'image.'+_0x3ff1a5,{'type':_0x7c9d5d});}const _0x1233a6=_0x1a166e['href']['split']('/'),_0x31f9b8=_0x1233a6[_0x1233a6['length']-0x1],_0x1cfeb5=_0x31f9b8['split']('.')[0x1];return _0x5ef9fc['fetch'](_0x1a166e['href'])['then'](_0x6d1388=>_0x6d1388['clone']()['blob']())['then'](_0x517386=>new _0x5ef9fc['File']([_0x517386],_0x31f9b8,{'type':'image/'+_0x1cfeb5}));}}class O extends _0x332752{['imageEditController'];static get['requires'](){return[_0xb06da8];}['_isEditable'];constructor(_0xa66a44){super(_0xa66a44),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2d4326){const _0x9f2e82=G(_0x2d4326);return _0x5a2ed3=>!(!_0x5a2ed3||!_0x5a2ed3['is']('element','imageBlock')&&!_0x5a2ed3['is']('element','imageInline'))&&(!!_0x5a2ed3['hasAttribute']('uploadcareImageId')||!!_0x5a2ed3['hasAttribute']('src')&&_0x9f2e82(_0x5a2ed3['getAttribute']('src')));}(_0xa66a44['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x395205=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x395205);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x43dec0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x43dec0&&(_0x43dec0['is']('element','imageBlock')||_0x43dec0['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xb06da8),_0x43dec0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x332752{['refresh'](){const _0x3e13a5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3e13a5&&(_0x3e13a5['is']('element','imageBlock')||_0x3e13a5['is']('element','imageInline')));}['execute'](_0x427b90){const _0x1d6ac8=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x55aa64=>{_0x55aa64['setAttributes'](_0x427b90,_0x1d6ac8),_0x55aa64['removeAttribute']('srcset',_0x1d6ac8),_0x55aa64['removeAttribute']('sizes',_0x1d6ac8);});}}class m extends _0x13c8f3{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xdc8daa,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c46b1}=this;_0x4c46b1['commands']['add']('uploadcareImageEdit',new O(_0x4c46b1)),_0x4c46b1['commands']['add']('uploadcareImageReplace',new R(_0x4c46b1));}}class g extends _0x13c8f3{['_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 _0x897419=this['editor'];_0x897419['ui']['componentFactory']['add']('uploadcareImageEdit',_0x208a9c=>{const _0x15423f=_0x897419['commands']['get']('uploadcareImageEdit'),_0x3a8c16=new _0x538ecb(_0x208a9c),t=_0x208a9c['t'];return _0x3a8c16['set']({'icon':_0x327887,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3a8c16['bind']('isEnabled')['to'](_0x15423f),_0x3a8c16['bind']('isOn')['to'](_0x15423f,'isActive'),this['listenTo'](_0x3a8c16,'execute',()=>{_0x897419['execute']('uploadcareImageEdit'),_0x897419['editing']['view']['focus']();}),_0x3a8c16;}),this['_initConfig']();}['_initConfig'](){const _0x32fc87=_0x4ab736(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x32fc87),this['listenTo'](this['editor'],'destroy',()=>{_0x32fc87['remove']();});}}class et extends _0x13c8f3{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':_0x1c6891=>0x1!=_0x1c6891}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xef3a51=>{const {af:{dictionary:_0x440e41,getPluralForm:_0x387477}}={'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':_0x5db0f8=>0x1!=_0x5db0f8}};_0xef3a51['af']||={'dictionary':{},'getPluralForm':null},_0xef3a51['af']['dictionary']=Object['assign'](_0xef3a51['af']['dictionary'],_0x440e41),_0xef3a51['af']['getPluralForm']=_0x387477;})(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':_0x5887f4=>0x0==_0x5887f4?0x0:0x1==_0x5887f4?0x1:0x2==_0x5887f4?0x2:_0x5887f4%0x64>=0x3&&_0x5887f4%0x64<=0xa?0x3:_0x5887f4%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x56d6ee=>{const {ar:{dictionary:_0x5100b3,getPluralForm:_0x35a0cb}}={'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':_0x5858dd=>0x0==_0x5858dd?0x0:0x1==_0x5858dd?0x1:0x2==_0x5858dd?0x2:_0x5858dd%0x64>=0x3&&_0x5858dd%0x64<=0xa?0x3:_0x5858dd%0x64>=0xb?0x4:0x5}};_0x56d6ee['ar']||={'dictionary':{},'getPluralForm':null},_0x56d6ee['ar']['dictionary']=Object['assign'](_0x56d6ee['ar']['dictionary'],_0x5100b3),_0x56d6ee['ar']['getPluralForm']=_0x35a0cb;})(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':_0x5a90d5=>0x1!=_0x5a90d5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x25ffa7=>{const {ast:{dictionary:_0x34e54c,getPluralForm:_0x58ef3a}}={'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':_0x5dd251=>0x1!=_0x5dd251}};_0x25ffa7['ast']||={'dictionary':{},'getPluralForm':null},_0x25ffa7['ast']['dictionary']=Object['assign'](_0x25ffa7['ast']['dictionary'],_0x34e54c),_0x25ffa7['ast']['getPluralForm']=_0x58ef3a;})(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':_0x4e1e7f=>0x1!=_0x4e1e7f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xd9d5ce=>{const {az:{dictionary:_0x1f2795,getPluralForm:_0x2083e6}}={'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':_0x1dd0b1=>0x1!=_0x1dd0b1}};_0xd9d5ce['az']||={'dictionary':{},'getPluralForm':null},_0xd9d5ce['az']['dictionary']=Object['assign'](_0xd9d5ce['az']['dictionary'],_0x1f2795),_0xd9d5ce['az']['getPluralForm']=_0x2083e6;})(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':_0x2c6420=>_0x2c6420%0xa==0x1&&_0x2c6420%0x64!=0xb?0x0:_0x2c6420%0xa>=0x2&&_0x2c6420%0xa<=0x4&&(_0x2c6420%0x64<0xa||_0x2c6420%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xc0eb3c=>{const {be:{dictionary:_0x302cc5,getPluralForm:_0x2f1bd3}}={'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':_0x4a9390=>_0x4a9390%0xa==0x1&&_0x4a9390%0x64!=0xb?0x0:_0x4a9390%0xa>=0x2&&_0x4a9390%0xa<=0x4&&(_0x4a9390%0x64<0xa||_0x4a9390%0x64>=0x14)?0x1:0x2}};_0xc0eb3c['be']||={'dictionary':{},'getPluralForm':null},_0xc0eb3c['be']['dictionary']=Object['assign'](_0xc0eb3c['be']['dictionary'],_0x302cc5),_0xc0eb3c['be']['getPluralForm']=_0x2f1bd3;})(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':_0x44b72f=>0x1!=_0x44b72f}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2c38bc=>{const {bg:{dictionary:_0x3dc12f,getPluralForm:_0x4b9000}}={'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':_0x526d49=>0x1!=_0x526d49}};_0x2c38bc['bg']||={'dictionary':{},'getPluralForm':null},_0x2c38bc['bg']['dictionary']=Object['assign'](_0x2c38bc['bg']['dictionary'],_0x3dc12f),_0x2c38bc['bg']['getPluralForm']=_0x4b9000;})(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':_0x480534=>0x1!=_0x480534}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1cc487=>{const {bn:{dictionary:_0xf5247d,getPluralForm:_0x18f415}}={'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':_0x173b7b=>0x1!=_0x173b7b}};_0x1cc487['bn']||={'dictionary':{},'getPluralForm':null},_0x1cc487['bn']['dictionary']=Object['assign'](_0x1cc487['bn']['dictionary'],_0xf5247d),_0x1cc487['bn']['getPluralForm']=_0x18f415;})(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':_0x42f9fc=>_0x42f9fc%0xa==0x1&&_0x42f9fc%0x64!=0xb?0x0:_0x42f9fc%0xa>=0x2&&_0x42f9fc%0xa<=0x4&&(_0x42f9fc%0x64<0xa||_0x42f9fc%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x402d02=>{const {bs:{dictionary:_0x35ef35,getPluralForm:_0x4838dd}}={'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':_0x22e43=>_0x22e43%0xa==0x1&&_0x22e43%0x64!=0xb?0x0:_0x22e43%0xa>=0x2&&_0x22e43%0xa<=0x4&&(_0x22e43%0x64<0xa||_0x22e43%0x64>=0x14)?0x1:0x2}};_0x402d02['bs']||={'dictionary':{},'getPluralForm':null},_0x402d02['bs']['dictionary']=Object['assign'](_0x402d02['bs']['dictionary'],_0x35ef35),_0x402d02['bs']['getPluralForm']=_0x4838dd;})(window['CKEDITOR_TRANSLATIONS']||={});
|