@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.8 → 46.0.1
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 _0x43cf72,Command as _0x4d8fff}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x5c5c1b,IconGooglePhotos as _0x1da6b7,IconGoogleDrive as _0x2c2095,IconFacebook as _0x197465,IconDropbox as _0x40d40b,IconUploadcareLink as _0x33a6b4,IconUploadcareImageUpload as _0x19afa8,IconError as _0x354c6d,IconUploadcareImageEdit as _0x4962bb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x28dc2a,MenuBarMenuListItemButtonView as _0x11cb19,View as _0x4ecb53,FocusCycler as _0x51369d,Dialog as _0x24aa98,DialogViewPosition as _0x1e2d84,SpinnerView as _0x33eedb,IconView as _0x396388,Notification as _0xeb61f2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x14b0a0,DomEmitterMixin as _0x330361,global as _0x12cd30,getAncestors as _0x2cb109,ObservableMixin as _0x276f36,uid as _0x492ce0,createElement as _0x413b6e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x530362}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x46c2ab,info as _0xcd5d16}from'@uploadcare/upload-client';import*as _0xd5b6cc from'@uploadcare/file-uploader';var i=function(_0x9926e8){return _0x9926e8['Local']='local',_0x9926e8['URL']='url',_0x9926e8['Dropbox']='dropbox',_0x9926e8['GDrive']='gdrive',_0x9926e8['Facebook']='facebook',_0x9926e8['GPhotos']='gphotos',_0x9926e8['OneDrive']='onedrive',_0x9926e8;}({});function _(_0x969479,_0x5794e9,_0x156270){const t=_0x969479['t'],_0x48653e=_0x969479['t'];switch(_0x5794e9){case i['Local']:return{'text':_0x48653e('Insert'===_0x156270?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x48653e('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x156270?_0x48653e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x48653e('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x156270?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x156270?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x156270?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x156270?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x156270?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5794e9;}}class e extends _0x43cf72{['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 _0xe34887=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f9b3c;for(const _0x27c9c3 in _0xe34887){const _0x574981=_0x27c9c3,_0x510145=_0xe34887[_0x574981];if('uploadcareLicenseKeyValid'==_0x510145||'uploadcareLicenseKeyInvalid'==_0x510145||'uploadcareLicenseKeyExpired'==_0x510145||'uploadcareLicenseKeyDomainLimit'==_0x510145||'uploadcareLicenseKeyNotAllowed'==_0x510145||'uploadcareLicenseKeyEvaluationLimit'==_0x510145||'uploadcareLicenseKeyTrialLimit'==_0x510145||'uploadcareLicenseKeyUsageLimit'==_0x510145){delete _0xe34887[_0x574981],_0x3f9b3c=_0x510145,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3f9b3c&&_0xe34887['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3f9b3c&&_0xe34887['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3f9b3c&&_0xe34887['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3f9b3c&&_0xe34887['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3f9b3c&&_0xe34887['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3f9b3c&&_0xe34887['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3f9b3c&&_0xe34887['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x33e6cb}=this,_0x52c04d=_0x33e6cb['commands']['get']('uploadcare');if(!_0x52c04d)return;const _0x3bf407=this['_normalizeConfigSourceList'](_0x33e6cb['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1e40d5,_0x3dceac)=>{const _0x43618c=this['_getIntegrationKey'](_0x3dceac['type']);return _0x1e40d5[_0x43618c]||(_0x1e40d5[_0x43618c]=[]),_0x1e40d5[_0x43618c]['push'](_0x3dceac),_0x1e40d5;},{});_0x33e6cb['plugins']['has']('ImageInsertUI')&&_0x33e6cb['commands']['get']('uploadcare')&&Object['entries'](_0x3bf407)['forEach'](([_0x571a39,_0x3e72e3])=>{_0x33e6cb['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x571a39,'observable':()=>_0x52c04d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3e72e3),'formViewCreator':()=>this['_createDropdownButtons'](_0x3e72e3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3e72e3),'override':'assetManager'!==_0x571a39});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5a083f){const {locale:_0x178ef5}=this['editor'];return _0x5a083f['map'](_0x198128=>{const _0x5b5a10=_(_0x178ef5,_0x198128,'Insert');switch(_0x198128){case i['Local']:return{'icon':_0x19afa8,'type':i['Local'],..._0x5b5a10};case i['URL']:return{'icon':_0x33a6b4,'type':i['URL'],..._0x5b5a10};case i['Dropbox']:return{'icon':_0x40d40b,'type':i['Dropbox'],..._0x5b5a10};case i['Facebook']:return{'icon':_0x197465,'type':i['Facebook'],..._0x5b5a10};case i['GDrive']:return{'icon':_0x2c2095,'type':i['GDrive'],..._0x5b5a10};case i['GPhotos']:return{'icon':_0x1da6b7,'type':i['GPhotos'],..._0x5b5a10};case i['OneDrive']:return{'icon':_0x5c5c1b,'type':i['OneDrive'],..._0x5b5a10};}});}['_getIntegrationKey'](_0x252959){switch(_0x252959){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d75d6,_0x3b388e){const _0x280e0e=this['editor'],_0x1d8d56=new _0x5d75d6(_0x280e0e['locale']),_0x1a5c31=_0x280e0e['commands']['get']('uploadcare');return _0x1d8d56['bind']('isEnabled')['to'](_0x1a5c31),_0x1d8d56['on']('execute',()=>{_0x1a5c31['execute'](_0x3b388e);}),_0x1d8d56;}['_createToolbarButton'](_0x19b53c){const {locale:_0x10f7af}=this['editor'],_0x167500=this['editor']['plugins']['get']('ImageInsertUI'),_0x451d93=_0x19b53c[0x0],_0x4eb719=this['_createButton'](_0x28dc2a,_0x451d93['type']);return _0x4eb719['icon']=_0x451d93['icon'],_0x4eb719['bind']('label')['to'](_0x167500,'isImageSelected',_0x3e918b=>_(_0x10f7af,_0x451d93['type'],_0x3e918b?'Replace':'Insert')['text']),_0x4eb719['tooltip']=!0x0,_0x4eb719;}['_createDropdownButtons'](_0x14c929){const {locale:_0x3eb3ba}=this['editor'],_0x247765=this['editor']['plugins']['get']('ImageInsertUI');return _0x14c929['map'](_0x8c772b=>{const _0x476524=this['_createButton'](_0x28dc2a,_0x8c772b['type']);return _0x476524['withText']=!0x0,_0x476524['icon']=_0x8c772b['icon'],_0x476524['bind']('label')['to'](_0x247765,'isImageSelected',_0x464ccb=>_(_0x3eb3ba,_0x8c772b['type'],_0x464ccb?'Replace':'Insert')['text']),_0x476524;});}['_createMenuBarButtons'](_0x3cae02){return _0x3cae02['map'](_0x34c291=>{const _0x52b6b1=this['_createButton'](_0x11cb19,_0x34c291['type']);return _0x52b6b1['icon']=_0x34c291['icon'],_0x52b6b1['label']=_0x34c291['shortText'],_0x52b6b1;});}}class F extends _0x4ecb53{['focusTracker'];['focusCycler'];constructor(_0x2497b8){super(_0x2497b8),this['focusTracker']=new _0x14b0a0(),this['focusCycler']=new _0x51369d({'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(_0x326799,_0x4cd5b4){super(_0x326799),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-'+_0x4cd5b4}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x24a0dd,_0x9b6ff8){const _0x121386=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4b9a7a=>_0x4b9a7a<=_0x9b6ff8)['map'](_0x39eb20=>_0x24a0dd['replace'](/\/$/,'')+'/-/resize/'+_0x39eb20+'x/\x20'+_0x39eb20+'w');return{'imageFallbackUrl':_0x24a0dd,'imageSources':[{'srcset':_0x121386['join'](',\x20'),'sizes':'(max-width:\x20'+_0x9b6ff8+'px)\x20100vw,\x20'+_0x9b6ff8+'px','type':'image/webp'}]};}function C(_0x7164ec,_0x3e1b23,_0x338713){const _0x279ba0=_0x7164ec['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x279ba0?parseInt(_0x279ba0[0x1],0xa):_0x3e1b23,'height':_0x279ba0?parseInt(_0x279ba0[0x2],0xa):_0x338713};}function p(_0x5a107d,_0x5de115){const _0x2d05ba=new(_0x330361())(),_0x4c3d6c=_0x5a107d['plugins']['get']('ImageUtils'),_0x441f91=_0x5a107d['editing']['mapper']['toViewElement'](_0x5de115),_0x2c0e09=_0x4c3d6c['findViewImgElement'](_0x441f91),_0x3d71cd=_0x5a107d['editing']['view']['domConverter']['viewToDom'](_0x2c0e09),_0x593470=_0x5de115['getAttribute']('width'),_0x1b7aba=_0x5de115['getAttribute']('height'),_0x472940='image-processing';_0x5a107d['editing']['view']['change'](_0x9d4508=>{_0x9d4508['addClass'](_0x472940,_0x441f91),_0x9d4508['setStyle']('aspect-ratio',_0x593470+'/'+_0x1b7aba,_0x2c0e09);}),_0x2d05ba['listenTo'](_0x3d71cd,'load',()=>{_0x2d05ba['stopListening'](_0x3d71cd,'load'),_0x5a107d['editing']['view']['change'](_0x407b73=>{_0x407b73['removeClass'](_0x472940,_0x441f91),_0x407b73['removeStyle']('aspect-ratio',_0x2c0e09);});});}function G(_0x3a2282){if(Array['isArray'](_0x3a2282)){const _0x146de3=_0x3a2282['map'](G);return _0x305fd5=>_0x146de3['some'](_0x21d0d9=>_0x21d0d9(_0x305fd5));}if('origin'==_0x3a2282){const _0x27d6ac=_0x12cd30['window']['location']['origin'];return _0x529252=>new URL(_0x529252,_0x12cd30['document']['baseURI'])['origin']==_0x27d6ac;}return'function'==typeof _0x3a2282?_0x3a2282:_0x3a2282 instanceof RegExp?_0x5d7443=>!(!_0x5d7443['match'](_0x3a2282)&&!_0x5d7443['replace'](/^https?:\/\//,'')['match'](_0x3a2282)):()=>!0x1;}function S(_0x512b91,_0x542e27){return _0x2cb109(_0x512b91['target'])['includes'](_0x542e27);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x276f36(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1cad7b,_0x2380f1,_0x26fe8b){super(),this['_editor']=_0x1cad7b,this['_editing']=_0x2380f1,this['_dialog']=_0x1cad7b['plugins']['get'](_0x24aa98),this['_api']=_0x2380f1['ctxElement']['getAPI'](),this['_type']=_0x26fe8b,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:_0x11c4c3,model:_0x1469bb}=this['_editor'],_0x29e4d3=_0x1469bb['document']['selection']['getSelectedElement'](),_0x4073d8=_0x29e4d3&&(_0x29e4d3['is']('element','imageBlock')||_0x29e4d3['is']('element','imageInline'));this['_formView']=new x(_0x11c4c3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x19afa8,'title':_(_0x11c4c3,this['_type'],_0x4073d8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1e2d84['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x14efb2=>!S(_0x14efb2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5aad91}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x28e1cd=>{const _0x282994=_0x5aad91['length'];for(const _0x4405d1 of _0x5aad91){const _0x5d6a51=_0x4405d1===_0x5aad91[_0x282994-0x1],{cdnUrl:_0x126598,fileInfo:_0xc728d3}=_0x4405d1;if(!_0x126598||!_0xc728d3)continue;const {width:_0x1eb1cb,height:_0x2cf94a}=_0xc728d3['imageInfo'],_0x1de7f0=C(_0x126598,_0x1eb1cb,_0x2cf94a),_0x46a5c6=k(_0x126598,_0x1de7f0['width']),_0x37ff85={'id':_0xc728d3['uuid'],'type':'image','attributes':{'imageDimension':_0x1de7f0,..._0x46a5c6}};this['_insertAsset'](_0x37ff85,_0x5d6a51,_0x28e1cd);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cf979=>{'idle'===_0x5cf979['detail']['status']&&!_0x5cf979['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1bba1,_0x526b9a,_0x2ee444){const _0x568c7c=this['_editor']['model']['document']['selection'],_0x2bc4ca=_0x568c7c['getSelectedElement'](),_0x5164fe=!(!_0x2bc4ca||!_0x2bc4ca['is']('element','imageInline'));_0x2ee444['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1bba1,_0x5164fe),_0x526b9a||_0x2ee444['setSelection'](_0x568c7c['getLastPosition']());}['_insertImage'](_0x2edf4e,_0x364ec4){const _0x2c9cf9=this['_editor'],{imageDimension:_0x2df44b,imageFallbackUrl:_0x1197aa,imageSources:_0x2926f1}=_0x2edf4e['attributes'];_0x2c9cf9['execute']('insertImage',{'imageType':_0x364ec4?'imageInline':null,'source':{'uploadcareImageId':_0x2edf4e['id'],'src':_0x1197aa,'sources':_0x2926f1,..._0x2df44b}});}}class w extends _0x4d8fff{['_editing'];['_controller']=null;static get['requires'](){return[_0x24aa98,o];}constructor(_0x24b444){super(_0x24b444),this['_editing']=_0x24b444['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x25d3d3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x25d3d3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1f00d8,publicKey:_0x1f3aa4,signal:_0x226cca,onProgress:_0x33edc4}){return _0x46c2ab(_0x1f00d8,{'publicKey':_0x1f3aa4,'store':'auto','signal':_0x226cca,'onProgress':_0x33edc4});}static['getInfo'](_0x27185e,_0x57fa99){return _0xcd5d16(_0x27185e,_0x57fa99);}}class f extends _0x43cf72{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x530362,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x10b146=this['editor'];if(!!!_0x10b146['config']['get']('uploadcare'))return;_0x10b146['plugins']['get'](_0x530362)['createUploadAdapter']=_0x563b92=>new A(_0x563b92,_0x10b146),_0x10b146['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1fb5e9,{imageElement:_0x27dfe7,data:_0x4d037a})=>{_0x10b146['model']['change'](_0x141681=>{_0x141681['setAttribute']('uploadcareImageId',_0x4d037a['uploadcareImageId'],_0x27dfe7);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x273840,_0x1d52d2){this['loader']=_0x273840,this['editor']=_0x1d52d2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4fbb4d=this['editor']['config']['get']('uploadcare.pubkey'),_0x3bb5c8=await this['loader']['file'];return j['upload']({'file':_0x3bb5c8,'publicKey':_0x4fbb4d,'signal':this['controller']['signal'],'onProgress':_0x49d3a6=>{_0x49d3a6&&_0x49d3a6['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x49d3a6['value']);}})['then'](async _0x521b68=>{const {imageFallbackUrl:_0x3a0dec,imageSources:_0xc10cc}=k(_0x521b68['cdnUrl'],_0x521b68['imageInfo']['width']);return{'uploadcareImageId':_0x521b68['uuid'],'default':_0x3a0dec,'sources':_0xc10cc};})['catch'](()=>{const _0x1f69cd=t('Cannot\x20upload\x20file:')+('\x20'+_0x3bb5c8['name']+'.');return Promise['reject'](_0x1f69cd);});}['abort'](){this['controller']['abort']();}}class o extends _0x43cf72{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x24aa98];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3fee88){super(_0x3fee88),this['ucContextId']=_0x492ce0();}['init'](){const _0x49d113=this['editor'];_0x49d113['commands']['add']('uploadcare',new w(_0x49d113));}['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 _0x1dfa1b=_0x12cd30['document']['querySelector']('input[uploadcare-file-input]');_0x1dfa1b&&_0x1dfa1b['remove']();}),async function(_0x55a452){const _0x48954e=_0x2e76ba([0x55,0x57,0x4d,0x36,0x50,0x56,0x79,0x75,0x4b,0x63,0x6d,0x5a,0x77,0x32,0x6c,0x59,0x52,0x6f,0x74,0x42,0x4e,0x45,0x6b,0x49,0x31,0x41,0x78,0x43,0x58,0x53,0x47,0x39,0x61,0x30,0x67,0x37,0x73,0x72,0x66,0x4f,0x46,0x4a,0x76,0x6a,0x48,0x33,0x62,0x64,0x68,0x44,0x70,0x65,0x34,0x4c,0x7a,0x35,0x6e,0x38,0x71,0x54,0x69,0x51]),_0x268670=0xedc7fa3,_0x667850=0xedb1013^_0x268670,_0xd9546c=window[_0x2e76ba([0x44,0x61,0x74,0x65])][_0x2e76ba([0x6e,0x6f,0x77])](),_0x204ff6=_0x55a452[_0x2e76ba([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d643e=new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46dd5c=>{_0x204ff6[_0x2e76ba([0x6f,0x6e,0x63,0x65])](_0x2e76ba([0x72,0x65,0x61,0x64,0x79]),_0x46dd5c);}),_0x57925e={[_0x2e76ba([0x6b,0x74,0x79])]:_0x2e76ba([0x45,0x43]),[_0x2e76ba([0x75,0x73,0x65])]:_0x2e76ba([0x73,0x69,0x67]),[_0x2e76ba([0x63,0x72,0x76])]:_0x2e76ba([0x50,0x2d,0x32,0x35,0x36]),[_0x2e76ba([0x78])]:_0x2e76ba([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]),[_0x2e76ba([0x79])]:_0x2e76ba([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]),[_0x2e76ba([0x61,0x6c,0x67])]:_0x2e76ba([0x45,0x53,0x32,0x35,0x36])},_0x1e1ada=_0x204ff6[_0x2e76ba([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e76ba([0x67,0x65,0x74])](_0x2e76ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1f391a(){let _0x4d56aa,_0x4df8e3=null,_0x5c19ea=null;try{if(_0x1e1ada==_0x2e76ba([0x47,0x50,0x4c]))return _0x2e76ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d56aa=_0x5a5499(),!_0x4d56aa)return _0x2e76ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d56aa[_0x2e76ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c19ea=_0x593550(_0x4d56aa[_0x2e76ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d56aa[_0x2e76ba([0x6a,0x74,0x69])])),await _0x3c5c79()?_0x1c8830()?_0x5a0535()?_0x2e76ba([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10c991()?(_0x4d56aa[_0x2e76ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e76ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4df8e3=_0x15cb02(_0x2e76ba([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4d56aa[_0x2e76ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e76ba([0x74,0x72,0x69,0x61,0x6c])&&(_0x4df8e3=_0x15cb02(_0x2e76ba([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x465703()):_0x2e76ba([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e76ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e76ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2e76ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a0535(){const _0x37b48e=[_0x2e76ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e76ba([0x74,0x72,0x69,0x61,0x6c])][_0x2e76ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d56aa[_0x2e76ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd9546c/0x3e8:0xe10*_0x667850;return _0x4d56aa[_0x2e76ba([0x65,0x78,0x70])]<_0x37b48e;}function _0x1c8830(){const _0x307221=_0x4d56aa[_0x2e76ba([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x307221&&(!!_0x307221[_0x2e76ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e76ba([0x2a]))||!!_0x307221[_0x2e76ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e76ba([0x55,0x50,0x4c,0x43])));}function _0x10c991(){const _0x15ae9f=_0x4d56aa[_0x2e76ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15ae9f||0x0==_0x15ae9f[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f8333}=new URL(window[_0x2e76ba([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15ae9f[_0x2e76ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f8333))return!0x0;const _0x1c73fa=_0x1f8333[_0x2e76ba([0x73,0x70,0x6c,0x69,0x74])](_0x2e76ba([0x2e]));return _0x15ae9f[_0x2e76ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51620b=>_0x51620b[_0x2e76ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e76ba([0x2a])))[_0x2e76ba([0x6d,0x61,0x70])](_0x188adc=>_0x188adc[_0x2e76ba([0x73,0x70,0x6c,0x69,0x74])](_0x2e76ba([0x2e])))[_0x2e76ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28213c=>_0x28213c[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c73fa[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e76ba([0x6d,0x61,0x70])](_0x417f59=>Array(_0x1c73fa[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x417f59[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2e76ba([0x66,0x69,0x6c,0x6c])](_0x417f59[0x0]===_0x2e76ba([0x2a])?_0x2e76ba([0x2a]):'')[_0x2e76ba([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x417f59))[_0x2e76ba([0x73,0x6f,0x6d,0x65])](_0x42f12e=>_0x1c73fa[_0x2e76ba([0x65,0x76,0x65,0x72,0x79])]((_0x288061,_0x5331ce)=>_0x42f12e[_0x5331ce]===_0x288061||_0x42f12e[_0x5331ce]===_0x2e76ba([0x2a])));}function _0x465703(){return _0x4df8e3&&_0x5c19ea?new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20d6c0,_0x9f92e7)=>{_0x4df8e3[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x20d6c0,_0x9f92e7),_0x5c19ea[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x4b1dc9=>{_0x4b1dc9!=_0x2e76ba([0x56,0x61,0x6c,0x69,0x64])&&_0x20d6c0(_0x4b1dc9);},_0x9f92e7);}):_0x4df8e3||_0x5c19ea||_0x2e76ba([0x56,0x61,0x6c,0x69,0x64]);}}function _0x593550(_0x5574ab,_0x489333){return new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1553ec=>{if(_0x245b5f())return _0x1553ec(_0x2e76ba([0x56,0x61,0x6c,0x69,0x64]));_0x49c22f(),_0x204ff6[_0x2e76ba([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e76ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23d2a4=!0x1;const _0x41cf21=_0x492ce0();function _0x45e90d(_0x2ef9e6){return!!_0x2ef9e6&&(typeof _0x2ef9e6===_0x2e76ba([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ef9e6===_0x2e76ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ef9e6[_0x2e76ba([0x74,0x68,0x65,0x6e])]===_0x2e76ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ef9e6[_0x2e76ba([0x63,0x61,0x74,0x63,0x68])]===_0x2e76ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2044da(_0xb4bdb8){_0x5886ff(_0xb4bdb8)[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x4d6fae=>{if(!_0x4d6fae||_0x4d6fae[_0x2e76ba([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e76ba([0x6f,0x6b]))return _0x2e76ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35fe63(_0x3c3add(_0x41cf21+_0x489333))!=_0x4d6fae[_0x2e76ba([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e76ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e76ba([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x130af9=>(_0x52fac3(),_0x130af9),()=>{const _0x54fd01=_0x15c63c();return null==_0x54fd01?(_0x52fac3(),_0x2e76ba([0x56,0x61,0x6c,0x69,0x64])):_0x2e76ba(_0xd9546c-_0x54fd01>(0x2ad0fba3^_0x268670)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x1553ec)[_0x2e76ba([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1553ec(_0x2e76ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xeec471=0xeea9123^_0x268670;function _0x52fac3(){const _0x215a87=_0x2e76ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x35fe63(_0x3c3add(_0x5574ab)),_0x2aa8eb=_0x16b9c1(_0x35fe63(window[_0x2e76ba([0x4d,0x61,0x74,0x68])][_0x2e76ba([0x63,0x65,0x69,0x6c])](_0xd9546c/_0xeec471)));window[_0x2e76ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e76ba([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x215a87,_0x2aa8eb);}function _0x15c63c(){const _0x156ac6=_0x2e76ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x35fe63(_0x3c3add(_0x5574ab)),_0x2680c4=window[_0x2e76ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e76ba([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x156ac6);return _0x2680c4?window[_0x2e76ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16b9c1(_0x2680c4),0x10)*_0xeec471:null;}function _0x5886ff(_0x5948c0){return new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7066ff,_0x22e483)=>{_0x5948c0[_0x2e76ba([0x74,0x68,0x65,0x6e])](_0x7066ff,_0x22e483),window[_0x2e76ba([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22e483,0xeddab63^_0x268670);});}}_0x204ff6[_0x2e76ba([0x6f,0x6e])](_0x2e76ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x572ef3,_0x423d37)=>{if(_0x423d37[0x0]!=_0x5574ab)return _0x1553ec(_0x2e76ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x423d37[0x1]={..._0x423d37[0x1],[_0x2e76ba([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41cf21};},{[_0x2e76ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e76ba([0x68,0x69,0x67,0x68])}),_0x204ff6[_0x2e76ba([0x6f,0x6e])](_0x2e76ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498329=>{_0x45e90d(_0x498329[_0x2e76ba([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23d2a4=!0x0,_0x2044da(_0x498329[_0x2e76ba([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e76ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e76ba([0x6c,0x6f,0x77])}),_0x1d643e[_0x2e76ba([0x74,0x68,0x65,0x6e])](()=>{_0x23d2a4||_0x1553ec(_0x2e76ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x245b5f(){return _0x204ff6[_0x2e76ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e76ba([0x76,0x69,0x65,0x77])][_0x2e76ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e76ba([0x61,0x75,0x74,0x6f]);}function _0x49c22f(){_0x204ff6[_0x2e76ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e76ba([0x76,0x69,0x65,0x77])][_0x2e76ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e76ba([0x61,0x75,0x74,0x6f]);}}function _0x15cb02(_0x2701cf){const _0x3a78f8=[new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c1e80=>setTimeout(_0x1c1e80,0xed5416f^_0x268670)),_0x1d643e[_0x2e76ba([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4594e8=>{let _0x25de2d=0x0;_0x204ff6[_0x2e76ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e76ba([0x6f,0x6e])](_0x2e76ba([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1918ba,_0x4e8ed9)=>{_0x4e8ed9[0x0][_0x2e76ba([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25de2d++,_0x25de2d==(0xedc7e5b^_0x268670)&&(_0x4594e8(),_0x1918ba[_0x2e76ba([0x6f,0x66,0x66])]());});}))];return window[_0x2e76ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e76ba([0x72,0x61,0x63,0x65])](_0x3a78f8)[_0x2e76ba([0x74,0x68,0x65,0x6e])](()=>_0x2701cf);}async function _0x2e66c6(){await _0x1d643e,_0x204ff6[_0x2e76ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e76ba([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x429094,_0x204ff6[_0x2e76ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e76ba([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x429094,_0x204ff6[_0x2e76ba([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e76ba([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b5b51(_0x3ac033){const _0x5575ab=_0x5141d1();_0x204ff6[_0x5575ab]=_0x2e76ba([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ac033,_0x3ac033!=_0x2e76ba([0x56,0x61,0x6c,0x69,0x64])&&_0x2e66c6();}function _0x5141d1(){const _0xdf75e1=window[_0x2e76ba([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e76ba([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e76ba([0x6e,0x6f,0x77])]())[_0x2e76ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e76ba([0x2e]),'');let _0xa8dc13=_0x2e76ba([0x55]);for(let _0x84f7a6=0x0;_0x84f7a6<_0xdf75e1[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x84f7a6+=0x2){let _0x59733b=window[_0x2e76ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xdf75e1[_0x2e76ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x84f7a6,_0x84f7a6+0x2));_0x59733b>=_0x48954e[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59733b-=_0x48954e[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa8dc13+=_0x48954e[_0x59733b];}return _0xa8dc13;}function _0x5a5499(){const _0x11e04c=_0x1e1ada[_0x2e76ba([0x73,0x70,0x6c,0x69,0x74])](_0x2e76ba([0x2e]));if(0x3!=_0x11e04c[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xdcf294(_0x11e04c[0x1]);function _0xdcf294(_0x18849f){const _0x1d3af6=_0x3e6a58(_0x18849f);return _0x1d3af6&&_0x3ded13()?_0x1d3af6:null;function _0x3ded13(){const _0xaeb981=_0x1d3af6[_0x2e76ba([0x6a,0x74,0x69])],_0x55f661=window[_0x2e76ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaeb981[_0x2e76ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xaeb981[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4aa87d={..._0x1d3af6,[_0x2e76ba([0x6a,0x74,0x69])]:_0xaeb981[_0x2e76ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xaeb981[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4aa87d[_0x2e76ba([0x76,0x63])],_0x3c3add(_0x4aa87d)==_0x55f661;}}}async function _0x3c5c79(){let _0x2cde86=!0x0;try{const _0x140ffe=_0x1e1ada[_0x2e76ba([0x73,0x70,0x6c,0x69,0x74])](_0x2e76ba([0x2e])),[_0x53dc34,_0x3821cc,_0x40a0f1]=_0x140ffe;return _0x1bd1fa(_0x53dc34),await _0x526f82(_0x53dc34,_0x3821cc,_0x40a0f1),_0x2cde86;}catch{return!0x1;}function _0x1bd1fa(_0xecc6df){const _0x5b7a48=_0x3e6a58(_0xecc6df);_0x5b7a48&&_0x5b7a48[_0x2e76ba([0x61,0x6c,0x67])]==_0x2e76ba([0x45,0x53,0x32,0x35,0x36])||(_0x2cde86=!0x1);}async function _0x526f82(_0x1dab47,_0x5ebf95,_0x5104ce){const _0x10f359=window[_0x2e76ba([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e76ba([0x66,0x72,0x6f,0x6d])](_0x3dde96(_0x5104ce),_0x29e026=>_0x29e026[_0x2e76ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c4609=new window[(_0x2e76ba([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e76ba([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1dab47+_0x2e76ba([0x2e])+_0x5ebf95),_0x53fd20=window[_0x2e76ba([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e76ba([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53fd20)return;const _0x21df6f=await _0x53fd20[_0x2e76ba([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e76ba([0x6a,0x77,0x6b]),_0x57925e,{[_0x2e76ba([0x6e,0x61,0x6d,0x65])]:_0x2e76ba([0x45,0x43,0x44,0x53,0x41]),[_0x2e76ba([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e76ba([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e76ba([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53fd20[_0x2e76ba([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e76ba([0x6e,0x61,0x6d,0x65])]:_0x2e76ba([0x45,0x43,0x44,0x53,0x41]),[_0x2e76ba([0x68,0x61,0x73,0x68])]:{[_0x2e76ba([0x6e,0x61,0x6d,0x65])]:_0x2e76ba([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21df6f,_0x10f359,_0x3c4609)||(_0x2cde86=!0x1);}}function _0x3e6a58(_0x33a159){return _0x33a159[_0x2e76ba([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e76ba([0x65,0x79]))?JSON[_0x2e76ba([0x70,0x61,0x72,0x73,0x65])](_0x3dde96(_0x33a159)):null;}function _0x3dde96(_0x1b57b9){return window[_0x2e76ba([0x61,0x74,0x6f,0x62])](_0x1b57b9[_0x2e76ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e76ba([0x2b]))[_0x2e76ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e76ba([0x2f])));}function _0x3c3add(_0x189b15){let _0x3ea3b4=0x1505;function _0x1b9a5c(_0x551a1f){for(let _0x128469=0x0;_0x128469<_0x551a1f[_0x2e76ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x128469++){const _0x2a0a06=_0x551a1f[_0x2e76ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x128469);_0x3ea3b4=(_0x3ea3b4<<0x5)+_0x3ea3b4+_0x2a0a06,_0x3ea3b4&=_0x3ea3b4;}}function _0x2674c8(_0x3ef595){Array[_0x2e76ba([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ef595)?_0x3ef595[_0x2e76ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2674c8):_0x3ef595&&typeof _0x3ef595==_0x2e76ba([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e76ba([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ef595)[_0x2e76ba([0x73,0x6f,0x72,0x74])]()[_0x2e76ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2fd753,_0xd6f124])=>{_0x1b9a5c(_0x2fd753),_0x2674c8(_0xd6f124);}):_0x1b9a5c(window[_0x2e76ba([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ef595));}return _0x2674c8(_0x189b15),_0x3ea3b4>>>0x0;}function _0x35fe63(_0x493335){return _0x493335[_0x2e76ba([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e76ba([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e76ba([0x30]));}function _0x16b9c1(_0x3d3e24){return _0x3d3e24[_0x2e76ba([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e76ba([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e76ba([0x6a,0x6f,0x69,0x6e])]('');}function _0x429094(){}function _0x2e76ba(_0x175cbc){return _0x175cbc['map'](_0x34d6dc=>String['fromCharCode'](_0x34d6dc))['join']('');}_0x3b5b51(await _0x1f391a());}(this);}['_initSchema'](){const _0x41e914=this['editor']['model']['schema'];_0x41e914['isRegistered']('imageBlock')&&_0x41e914['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x41e914['isRegistered']('imageInline')&&_0x41e914['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5c7a14=this['editor'];_0x5c7a14['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5c7a14['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5f1888=>_0x5f1888['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x243983=_0x5c7a14['commands']['get']('replaceImageSource');_0x243983&&this['listenTo'](_0x243983,'cleanupImage',(_0x3d14e1,[_0x43174d,_0x2cc3d5])=>{_0x43174d['removeAttribute']('uploadcareImageId',_0x2cc3d5);});}['_initConfig'](){const _0x24b62c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x334ed3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x413b6e(_0x12cd30['document'],'uc-config',{..._0x24b62c,'pubkey':_0x334ed3,'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']=_0x412223=>{if('closeMax'==_0x412223)return'#uc-icon-arrow-down';},_0x12cd30['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x413b6e(_0x12cd30['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x12cd30['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x390f5=this['editor']['commands']['get']('insertImage');_0x390f5&&this['listenTo'](_0x390f5,'execute',()=>{const _0x4f21f4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4f21f4&&_0x4f21f4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4f21f4);});});const _0x940113=this['editor']['commands']['get']('uploadcareImageReplace');_0x940113&&this['listenTo'](_0x940113,'execute',()=>{const _0x21ae72=this['editor']['model']['document']['selection']['getSelectedElement']();_0x21ae72&&_0x21ae72['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x21ae72);});});}}class tt extends _0x43cf72{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51af01){super(_0x51af01),_0x51af01['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xd5b6cc['defineComponents'](_0xd5b6cc);}}class ii extends _0x4ecb53{constructor(_0x23641e){super(_0x23641e);const t=_0x23641e['t'],_0x1c5811=this['bindTemplate'],_0x3ffff5=new _0x33eedb();_0x3ffff5['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':[_0x3ffff5,{'text':_0x1c5811['to']('imageUploadProgress',_0x27ab5d=>t('Loading\x20image...')+'\x20('+(_0x27ab5d||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 _0x4ecb53{constructor(_0x302d2f){super(_0x302d2f);const t=_0x302d2f['t'];this['set']('errorType',null);const _0x16673c=new _0x28dc2a(_0x302d2f);_0x16673c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x16673c['withText']=!0x0,_0x16673c['class']='ck-button-action',_0x16673c['on']('execute',()=>{this['fire']('retry');}),_0x16673c['bind']('isVisible')['to'](this,'errorType',_0x1a51fc=>'NotFound'!==_0x1a51fc);const _0xd56c68=new _0x396388();_0xd56c68['content']=_0x354c6d,_0xd56c68['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x146e90=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':[_0xd56c68,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x146e90['to']('errorType',_0x12840a=>t('NotFound'!==_0x12840a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x16673c]},{'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 _0x4ecb53{constructor(_0x3172a9,_0xf3f64f){super(_0x3172a9);const _0x3f3282=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xf3f64f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3f3282['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x192223,_0xb5a6ad,_0x1a5e57){super(_0x192223),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x192223),this['_errorView']=new ti(_0x192223),this['_editingView']=new ei(_0x192223,_0x1a5e57),this['_focusableView']=new _0x4ecb53(_0x192223),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0xb5a6ad),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'],_0xe7dd0e=>{this['_addUploadcareImageEditorListeners'](_0xe7dd0e);});}),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'](_0x4c134e,_0x257b7c){const _0x257a96='uc-cloud-image-editor',_0x3b3c7d=_0x4c134e['querySelector'](_0x257a96);if(_0x3b3c7d)return _0x257b7c(_0x3b3c7d);const _0x56b50c=new MutationObserver(_0x2be4cb=>{const _0x2b786e=_0x2be4cb['filter'](_0x4504ee=>_0x4504ee['target']===_0x4c134e&&_0x4504ee['addedNodes']['length']>0x0&&_0x4504ee['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x257a96);_0x2b786e['length']&&(_0x56b50c['disconnect'](),_0x257b7c(_0x2b786e[0x0]['addedNodes'][0x0]));});_0x56b50c['observe'](_0x4c134e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x482171){_0x482171['addEventListener']('apply',_0x1dcc90=>{this['fire']('apply',{'imageSrc':_0x1dcc90['detail']['cdnUrl']});}),_0x482171['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x276f36(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x39ceee,_0x5cbb2f,_0xa87fd5){super(),this['_editor']=_0x39ceee,this['_dialog']=_0x5cbb2f,this['_imageElement']=_0xa87fd5,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 _0x4c15c3=this['_imageElement'],_0x54457a=_0x4c15c3['getAttribute']('uploadcareImageId'),_0x3768b8=_0x4c15c3['getAttribute']('src');if(_0x54457a)await this['_loadImageInfo'](_0x54457a,_0x3768b8);else{if(this['_imageCache']['has'](_0x3768b8)){const _0x56ef4f=this['_imageCache']['get'](_0x3768b8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56ef4f['url'],this['imageDimension']=_0x56ef4f['dimension'],this['imageId']=_0x56ef4f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x191b01}=this['_editor'],t=_0x191b01['t'],_0x43553e=new X(_0x191b01,this['imageStatus'],this['_attributes']);_0x43553e['bind']('status')['to'](this,'imageStatus'),_0x43553e['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x43553e['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x43553e['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x43553e,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4962bb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x43553e,'position':_0x1e2d84['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x43553e['focus']();},'onHide':()=>{_0x43553e['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x24ee02=>!S(_0x24ee02,_0x43553e['element'])}});}['_loadImageInfo'](_0x38e946,_0x576fe5){return j['getInfo'](_0x38e946,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2ca9c8=>{const {width:_0x3e761a,height:_0x23aca3}=_0x2ca9c8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x576fe5,this['imageDimension']={'width':_0x3e761a,'height':_0x23aca3},this['imageId']=_0x38e946;})['catch'](_0x578194=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x578194['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3ebc77,_0x447a3c){return this['_getImageAsFile'](_0x3ebc77)['then'](_0x124c48=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x447a3c['signal'],'file':_0x124c48,'onProgress':_0x270607=>{_0x270607&&_0x270607['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x270607['value']));}}))['then'](_0x1d17d3=>{const {width:_0x3136f7,height:_0x2b0405}=_0x1d17d3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1d17d3['cdnUrl'],this['imageDimension']={'width':_0x3136f7,'height':_0x2b0405},this['imageId']=_0x1d17d3['uuid'],this['imageUploadProgress']=null;const _0x441922=_0x3ebc77['getAttribute']('src');this['_imageCache']['set'](_0x441922,{'id':_0x1d17d3['uuid'],'url':_0x1d17d3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a67a3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a67a3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2f6d53,_0x248c18){_0x2f6d53['on']('apply',(_0x44169a,_0x30d5ba)=>{this['_replaceImage'](_0x248c18,_0x30d5ba['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2f6d53['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2f6d53['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3163f3,_0xd9aadc,_0x108c9f){const _0x4e236e=this['_editor'],{width:_0x46b8ec,height:_0xfec67a}=C(_0xd9aadc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x593132,imageSources:_0x29f0db}=k(_0xd9aadc,_0x46b8ec);_0x4e236e['model']['change'](_0x3a4841=>{if('$graveyard'===_0x3163f3['root']['rootName']){_0x4e236e['execute']('insertImage',{'imageType':_0x3163f3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3163f3['getAttributes']()),'uploadcareImageId':_0x108c9f,'src':_0x593132,'sources':_0x29f0db,'width':_0x46b8ec,'height':_0xfec67a}});const _0x222f9b=_0x3163f3['getChildren']();_0x3163f3=_0x4e236e['model']['document']['selection']['getSelectedElement']();for(const _0x422a95 of _0x222f9b)_0x3a4841['append'](_0x3a4841['cloneElement'](_0x422a95),_0x3163f3);}else _0x3a4841['setSelection'](_0x3163f3,'on'),_0x4e236e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3163f3['getAttributes']()),'uploadcareImageId':_0x108c9f,'src':_0x593132,'sources':_0x29f0db,'width':_0x46b8ec,'height':_0xfec67a},_0x3163f3);_0x3a4841['setSelection'](_0x3163f3,'on');});}async['_getImageAsFile'](_0x9b88c8){const _0x465d3b=_0x12cd30['window'],_0x330b2a=_0x12cd30['document']['location']['href'],_0x1dd5cc=new _0x465d3b['URL'](_0x9b88c8['getAttribute']('src'),_0x330b2a);if('data:'===_0x1dd5cc['protocol']){const _0x45e177=_0x1dd5cc['href']['split'](','),_0x54d4ac=_0x45e177[0x0]['match'](/:(.*?);/)[0x1],_0x1457fd=_0x54d4ac['split']('/')[0x1],_0x30c2b8=_0x465d3b['atob'](_0x45e177[_0x45e177['length']-0x1]);let _0x12140f=_0x30c2b8['length'];const _0x5c529e=new _0x465d3b['Uint8Array'](_0x12140f);for(;_0x12140f--;)_0x5c529e[_0x12140f]=_0x30c2b8['charCodeAt'](_0x12140f);return new _0x465d3b['File']([_0x5c529e],'image.'+_0x1457fd,{'type':_0x54d4ac});}const _0x2c6ef6=_0x1dd5cc['href']['split']('/'),_0x5c3fa3=_0x2c6ef6[_0x2c6ef6['length']-0x1],_0x210456=_0x5c3fa3['split']('.')[0x1];return _0x465d3b['fetch'](_0x1dd5cc['href'])['then'](_0x31acea=>_0x31acea['clone']()['blob']())['then'](_0x4865e4=>new _0x465d3b['File']([_0x4865e4],_0x5c3fa3,{'type':'image/'+_0x210456}));}}class O extends _0x4d8fff{['imageEditController'];static get['requires'](){return[_0x24aa98];}['_isEditable'];constructor(_0x318474){super(_0x318474),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1eef4a){const _0x17b4ec=G(_0x1eef4a);return _0xf470f8=>!(!_0xf470f8||!_0xf470f8['is']('element','imageBlock')&&!_0xf470f8['is']('element','imageInline'))&&(!!_0xf470f8['hasAttribute']('uploadcareImageId')||!!_0xf470f8['hasAttribute']('src')&&_0x17b4ec(_0xf470f8['getAttribute']('src')));}(_0x318474['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x61e78a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x61e78a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x22578b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x22578b&&(_0x22578b['is']('element','imageBlock')||_0x22578b['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x24aa98),_0x22578b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4d8fff{['refresh'](){const _0x126b2a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x126b2a&&(_0x126b2a['is']('element','imageBlock')||_0x126b2a['is']('element','imageInline')));}['execute'](_0x1b3197){const _0x58ad24=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x31885e=>{_0x31885e['setAttributes'](_0x1b3197,_0x58ad24),_0x31885e['removeAttribute']('srcset',_0x58ad24),_0x31885e['removeAttribute']('sizes',_0x58ad24);});}}class m extends _0x43cf72{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xeb61f2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x370a6b}=this;_0x370a6b['commands']['add']('uploadcareImageEdit',new O(_0x370a6b)),_0x370a6b['commands']['add']('uploadcareImageReplace',new R(_0x370a6b));}}class g extends _0x43cf72{['_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 _0x1d266=this['editor'];_0x1d266['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a09f5=>{const _0xf94e0a=_0x1d266['commands']['get']('uploadcareImageEdit'),_0x17cc97=new _0x28dc2a(_0x3a09f5),t=_0x3a09f5['t'];return _0x17cc97['set']({'icon':_0x4962bb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x17cc97['bind']('isEnabled')['to'](_0xf94e0a),_0x17cc97['bind']('isOn')['to'](_0xf94e0a,'isActive'),this['listenTo'](_0x17cc97,'execute',()=>{_0x1d266['execute']('uploadcareImageEdit'),_0x1d266['editing']['view']['focus']();}),_0x17cc97;}),this['_initConfig']();}['_initConfig'](){const _0x1573ea=_0x413b6e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1573ea),this['listenTo'](this['editor'],'destroy',()=>{_0x1573ea['remove']();});}}class et extends _0x43cf72{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0xaeb288,Command as _0x14d71b}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x42a5bb,IconGooglePhotos as _0x74d37c,IconGoogleDrive as _0x394718,IconFacebook as _0x25e096,IconDropbox as _0x169aa5,IconUploadcareLink as _0x28b4f5,IconUploadcareImageUpload as _0x52df11,IconError as _0x10bfc8,IconUploadcareImageEdit as _0x3a178b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x317af6,MenuBarMenuListItemButtonView as _0x3a7eb1,View as _0x50fbea,FocusCycler as _0x2b8a76,Dialog as _0x336ece,DialogViewPosition as _0x4f1e64,SpinnerView as _0xbcc24d,IconView as _0x376866,Notification as _0x4f1f04}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x20bf52,DomEmitterMixin as _0xe682e3,global as _0x56969d,getAncestors as _0x18dff8,ObservableMixin as _0x14a0ec,uid as _0x5ca021,createElement as _0x26fae6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x52db41}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x468683,info as _0x465dff}from'@uploadcare/upload-client';import*as _0x26d61a from'@uploadcare/file-uploader';var i=function(_0x55558d){return _0x55558d['Local']='local',_0x55558d['URL']='url',_0x55558d['Dropbox']='dropbox',_0x55558d['GDrive']='gdrive',_0x55558d['Facebook']='facebook',_0x55558d['GPhotos']='gphotos',_0x55558d['OneDrive']='onedrive',_0x55558d;}({});function _(_0x109411,_0x2a397e,_0x58b434){const t=_0x109411['t'],_0x1f57fa=_0x109411['t'];switch(_0x2a397e){case i['Local']:return{'text':_0x1f57fa('Insert'===_0x58b434?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1f57fa('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x58b434?_0x1f57fa('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1f57fa('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x58b434?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x58b434?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x58b434?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x58b434?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x58b434?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2a397e;}}class e extends _0xaeb288{['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 _0x58c163=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3bedff;for(const _0x246b93 in _0x58c163){const _0x3070d3=_0x246b93,_0x24494d=_0x58c163[_0x3070d3];if('uploadcareLicenseKeyValid'==_0x24494d||'uploadcareLicenseKeyInvalid'==_0x24494d||'uploadcareLicenseKeyExpired'==_0x24494d||'uploadcareLicenseKeyDomainLimit'==_0x24494d||'uploadcareLicenseKeyNotAllowed'==_0x24494d||'uploadcareLicenseKeyEvaluationLimit'==_0x24494d||'uploadcareLicenseKeyTrialLimit'==_0x24494d||'uploadcareLicenseKeyUsageLimit'==_0x24494d){delete _0x58c163[_0x3070d3],_0x3bedff=_0x24494d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3bedff&&_0x58c163['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3bedff&&_0x58c163['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3bedff&&_0x58c163['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3bedff&&_0x58c163['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3bedff&&_0x58c163['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3bedff&&_0x58c163['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3bedff&&_0x58c163['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x840bd0}=this,_0x43f789=_0x840bd0['commands']['get']('uploadcare');if(!_0x43f789)return;const _0x2a62ad=this['_normalizeConfigSourceList'](_0x840bd0['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xe8d05e,_0x548a44)=>{const _0x3a0657=this['_getIntegrationKey'](_0x548a44['type']);return _0xe8d05e[_0x3a0657]||(_0xe8d05e[_0x3a0657]=[]),_0xe8d05e[_0x3a0657]['push'](_0x548a44),_0xe8d05e;},{});_0x840bd0['plugins']['has']('ImageInsertUI')&&_0x840bd0['commands']['get']('uploadcare')&&Object['entries'](_0x2a62ad)['forEach'](([_0x111d8e,_0x125d43])=>{_0x840bd0['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x111d8e,'observable':()=>_0x43f789,'buttonViewCreator':()=>this['_createToolbarButton'](_0x125d43),'formViewCreator':()=>this['_createDropdownButtons'](_0x125d43),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x125d43),'override':'assetManager'!==_0x111d8e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x203da5){const {locale:_0x3cdfb1}=this['editor'];return _0x203da5['map'](_0x5d5361=>{const _0xe68322=_(_0x3cdfb1,_0x5d5361,'Insert');switch(_0x5d5361){case i['Local']:return{'icon':_0x52df11,'type':i['Local'],..._0xe68322};case i['URL']:return{'icon':_0x28b4f5,'type':i['URL'],..._0xe68322};case i['Dropbox']:return{'icon':_0x169aa5,'type':i['Dropbox'],..._0xe68322};case i['Facebook']:return{'icon':_0x25e096,'type':i['Facebook'],..._0xe68322};case i['GDrive']:return{'icon':_0x394718,'type':i['GDrive'],..._0xe68322};case i['GPhotos']:return{'icon':_0x74d37c,'type':i['GPhotos'],..._0xe68322};case i['OneDrive']:return{'icon':_0x42a5bb,'type':i['OneDrive'],..._0xe68322};}});}['_getIntegrationKey'](_0x24623a){switch(_0x24623a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x49cca4,_0x5dbee4){const _0x3236d5=this['editor'],_0x1b48fe=new _0x49cca4(_0x3236d5['locale']),_0xe51f77=_0x3236d5['commands']['get']('uploadcare');return _0x1b48fe['bind']('isEnabled')['to'](_0xe51f77),_0x1b48fe['on']('execute',()=>{_0xe51f77['execute'](_0x5dbee4);}),_0x1b48fe;}['_createToolbarButton'](_0x540839){const {locale:_0x5ed258}=this['editor'],_0x1ff564=this['editor']['plugins']['get']('ImageInsertUI'),_0x160584=_0x540839[0x0],_0x15c9ac=this['_createButton'](_0x317af6,_0x160584['type']);return _0x15c9ac['icon']=_0x160584['icon'],_0x15c9ac['bind']('label')['to'](_0x1ff564,'isImageSelected',_0x2e35e1=>_(_0x5ed258,_0x160584['type'],_0x2e35e1?'Replace':'Insert')['text']),_0x15c9ac['tooltip']=!0x0,_0x15c9ac;}['_createDropdownButtons'](_0x3db31f){const {locale:_0x20c37e}=this['editor'],_0x4cb63c=this['editor']['plugins']['get']('ImageInsertUI');return _0x3db31f['map'](_0x4906ac=>{const _0x28e0c8=this['_createButton'](_0x317af6,_0x4906ac['type']);return _0x28e0c8['withText']=!0x0,_0x28e0c8['icon']=_0x4906ac['icon'],_0x28e0c8['bind']('label')['to'](_0x4cb63c,'isImageSelected',_0x2401e4=>_(_0x20c37e,_0x4906ac['type'],_0x2401e4?'Replace':'Insert')['text']),_0x28e0c8;});}['_createMenuBarButtons'](_0x425a78){return _0x425a78['map'](_0x297e49=>{const _0x5f302b=this['_createButton'](_0x3a7eb1,_0x297e49['type']);return _0x5f302b['icon']=_0x297e49['icon'],_0x5f302b['label']=_0x297e49['shortText'],_0x5f302b;});}}class F extends _0x50fbea{['focusTracker'];['focusCycler'];constructor(_0x5d6bff){super(_0x5d6bff),this['focusTracker']=new _0x20bf52(),this['focusCycler']=new _0x2b8a76({'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(_0x321e0d,_0x1b4c71){super(_0x321e0d),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-'+_0x1b4c71}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x50e21f,_0x4d220d){const _0x2282ee=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xaefa6b=>_0xaefa6b<=_0x4d220d)['map'](_0x475ed5=>_0x50e21f['replace'](/\/$/,'')+'/-/resize/'+_0x475ed5+'x/\x20'+_0x475ed5+'w');return{'imageFallbackUrl':_0x50e21f,'imageSources':[{'srcset':_0x2282ee['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4d220d+'px)\x20100vw,\x20'+_0x4d220d+'px','type':'image/webp'}]};}function C(_0x214d55,_0x3ff0f8,_0x5ab6a3){const _0x52415a=_0x214d55['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x52415a?parseInt(_0x52415a[0x1],0xa):_0x3ff0f8,'height':_0x52415a?parseInt(_0x52415a[0x2],0xa):_0x5ab6a3};}function p(_0x2c6ceb,_0x353568){const _0x50cc2c=new(_0xe682e3())(),_0x112b10=_0x2c6ceb['plugins']['get']('ImageUtils'),_0x451114=_0x2c6ceb['editing']['mapper']['toViewElement'](_0x353568),_0x199f91=_0x112b10['findViewImgElement'](_0x451114),_0x1a961a=_0x2c6ceb['editing']['view']['domConverter']['viewToDom'](_0x199f91),_0x76b3b1=_0x353568['getAttribute']('width'),_0x36a2f4=_0x353568['getAttribute']('height'),_0x3b825f='image-processing';_0x2c6ceb['editing']['view']['change'](_0x13fa3a=>{_0x13fa3a['addClass'](_0x3b825f,_0x451114),_0x13fa3a['setStyle']('aspect-ratio',_0x76b3b1+'/'+_0x36a2f4,_0x199f91);}),_0x50cc2c['listenTo'](_0x1a961a,'load',()=>{_0x50cc2c['stopListening'](_0x1a961a,'load'),_0x2c6ceb['editing']['view']['change'](_0x5160d5=>{_0x5160d5['removeClass'](_0x3b825f,_0x451114),_0x5160d5['removeStyle']('aspect-ratio',_0x199f91);});});}function G(_0x105c52){if(Array['isArray'](_0x105c52)){const _0xe3e748=_0x105c52['map'](G);return _0x1dd91b=>_0xe3e748['some'](_0x2c8915=>_0x2c8915(_0x1dd91b));}if('origin'==_0x105c52){const _0x2d21e4=_0x56969d['window']['location']['origin'];return _0x2c0035=>new URL(_0x2c0035,_0x56969d['document']['baseURI'])['origin']==_0x2d21e4;}return'function'==typeof _0x105c52?_0x105c52:_0x105c52 instanceof RegExp?_0x14a301=>!(!_0x14a301['match'](_0x105c52)&&!_0x14a301['replace'](/^https?:\/\//,'')['match'](_0x105c52)):()=>!0x1;}function S(_0x9d6476,_0x2aff69){return _0x18dff8(_0x9d6476['target'])['includes'](_0x2aff69);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x14a0ec(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x402672,_0x489368,_0x3c317d){super(),this['_editor']=_0x402672,this['_editing']=_0x489368,this['_dialog']=_0x402672['plugins']['get'](_0x336ece),this['_api']=_0x489368['ctxElement']['getAPI'](),this['_type']=_0x3c317d,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:_0xe2ed7a,model:_0x4ba329}=this['_editor'],_0x427522=_0x4ba329['document']['selection']['getSelectedElement'](),_0x429595=_0x427522&&(_0x427522['is']('element','imageBlock')||_0x427522['is']('element','imageInline'));this['_formView']=new x(_0xe2ed7a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x52df11,'title':_(_0xe2ed7a,this['_type'],_0x429595?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4f1e64['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x12d18d=>!S(_0x12d18d,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x33bb66}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x8c4c91=>{const _0x8a766f=_0x33bb66['length'];for(const _0x5d09ac of _0x33bb66){const _0x3ba1de=_0x5d09ac===_0x33bb66[_0x8a766f-0x1],{cdnUrl:_0x1f474e,fileInfo:_0x574525}=_0x5d09ac;if(!_0x1f474e||!_0x574525)continue;const {width:_0x5b2bd7,height:_0x1b5105}=_0x574525['imageInfo'],_0x28945e=C(_0x1f474e,_0x5b2bd7,_0x1b5105),_0x4efb89=k(_0x1f474e,_0x28945e['width']),_0x57851e={'id':_0x574525['uuid'],'type':'image','attributes':{'imageDimension':_0x28945e,..._0x4efb89}};this['_insertAsset'](_0x57851e,_0x3ba1de,_0x8c4c91);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5a24b6=>{'idle'===_0x5a24b6['detail']['status']&&!_0x5a24b6['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1e4225,_0x118595,_0x321043){const _0x28df8d=this['_editor']['model']['document']['selection'],_0x588d48=_0x28df8d['getSelectedElement'](),_0x270627=!(!_0x588d48||!_0x588d48['is']('element','imageInline'));_0x321043['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1e4225,_0x270627),_0x118595||_0x321043['setSelection'](_0x28df8d['getLastPosition']());}['_insertImage'](_0x5245ef,_0xfb7476){const _0x348975=this['_editor'],{imageDimension:_0x1b93ee,imageFallbackUrl:_0x3a77e0,imageSources:_0xabe451}=_0x5245ef['attributes'];_0x348975['execute']('insertImage',{'imageType':_0xfb7476?'imageInline':null,'source':{'uploadcareImageId':_0x5245ef['id'],'src':_0x3a77e0,'sources':_0xabe451,..._0x1b93ee}});}}class w extends _0x14d71b{['_editing'];['_controller']=null;static get['requires'](){return[_0x336ece,o];}constructor(_0x49f9c3){super(_0x49f9c3),this['_editing']=_0x49f9c3['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1e0f6e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1e0f6e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x4611bd,publicKey:_0x1be8da,signal:_0x3c9a67,onProgress:_0x4381c5}){return _0x468683(_0x4611bd,{'publicKey':_0x1be8da,'store':'auto','signal':_0x3c9a67,'onProgress':_0x4381c5});}static['getInfo'](_0x71d440,_0x14995c){return _0x465dff(_0x71d440,_0x14995c);}}class f extends _0xaeb288{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x52db41,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x55cb82=this['editor'];if(!!!_0x55cb82['config']['get']('uploadcare'))return;_0x55cb82['plugins']['get'](_0x52db41)['createUploadAdapter']=_0xb177ae=>new A(_0xb177ae,_0x55cb82),_0x55cb82['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x9315d1,{imageElement:_0x32eb3f,data:_0x5b94ac})=>{_0x55cb82['model']['change'](_0x30c7a0=>{_0x30c7a0['setAttribute']('uploadcareImageId',_0x5b94ac['uploadcareImageId'],_0x32eb3f);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x174a01,_0x34147f){this['loader']=_0x174a01,this['editor']=_0x34147f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x35137d=this['editor']['config']['get']('uploadcare.pubkey'),_0x53ded6=await this['loader']['file'];return j['upload']({'file':_0x53ded6,'publicKey':_0x35137d,'signal':this['controller']['signal'],'onProgress':_0x35332e=>{_0x35332e&&_0x35332e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x35332e['value']);}})['then'](async _0x5356a5=>{const {imageFallbackUrl:_0x5d8b5e,imageSources:_0x290677}=k(_0x5356a5['cdnUrl'],_0x5356a5['imageInfo']['width']);return{'uploadcareImageId':_0x5356a5['uuid'],'default':_0x5d8b5e,'sources':_0x290677};})['catch'](()=>{const _0x217401=t('Cannot\x20upload\x20file:')+('\x20'+_0x53ded6['name']+'.');return Promise['reject'](_0x217401);});}['abort'](){this['controller']['abort']();}}class o extends _0xaeb288{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x336ece];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x30a5d9){super(_0x30a5d9),this['ucContextId']=_0x5ca021();}['init'](){const _0x3a567a=this['editor'];_0x3a567a['commands']['add']('uploadcare',new w(_0x3a567a));}['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 _0x229e52=_0x56969d['document']['querySelector']('input[uploadcare-file-input]');_0x229e52&&_0x229e52['remove']();}),async function(_0x558db7){const _0x2cf782=_0x468a6b([0x71,0x45,0x6b,0x47,0x68,0x4b,0x76,0x5a,0x66,0x38,0x50,0x6d,0x72,0x63,0x53,0x32,0x70,0x39,0x6c,0x54,0x31,0x48,0x35,0x42,0x75,0x7a,0x34,0x37,0x41,0x58,0x69,0x6e,0x36,0x51,0x4d,0x49,0x4f,0x79,0x64,0x4e,0x56,0x6f,0x65,0x62,0x44,0x4c,0x73,0x46,0x4a,0x78,0x61,0x43,0x74,0x77,0x57,0x67,0x59,0x52,0x55,0x30,0x6a,0x33]),_0x3d0c4b=0x75458cd7,_0x36d256=0x7542fcff^_0x3d0c4b,_0x3d0602=window[_0x468a6b([0x44,0x61,0x74,0x65])][_0x468a6b([0x6e,0x6f,0x77])](),_0xf4af2=_0x558db7[_0x468a6b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1019dc=new window[(_0x468a6b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x417fbf=>{_0xf4af2[_0x468a6b([0x6f,0x6e,0x63,0x65])](_0x468a6b([0x72,0x65,0x61,0x64,0x79]),_0x417fbf);}),_0xe36ece={[_0x468a6b([0x6b,0x74,0x79])]:_0x468a6b([0x45,0x43]),[_0x468a6b([0x75,0x73,0x65])]:_0x468a6b([0x73,0x69,0x67]),[_0x468a6b([0x63,0x72,0x76])]:_0x468a6b([0x50,0x2d,0x32,0x35,0x36]),[_0x468a6b([0x78])]:_0x468a6b([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]),[_0x468a6b([0x79])]:_0x468a6b([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]),[_0x468a6b([0x61,0x6c,0x67])]:_0x468a6b([0x45,0x53,0x32,0x35,0x36])},_0x1bc30e=_0xf4af2[_0x468a6b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x468a6b([0x67,0x65,0x74])](_0x468a6b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x279406(){let _0x175f6d,_0x3a567d=null,_0x48e7aa=null;try{if(_0x1bc30e==_0x468a6b([0x47,0x50,0x4c]))return _0x468a6b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x175f6d=_0x508fab(),!_0x175f6d)return _0x468a6b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x175f6d[_0x468a6b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48e7aa=_0x1b08ba(_0x175f6d[_0x468a6b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x175f6d[_0x468a6b([0x6a,0x74,0x69])])),await _0x12118a()?_0x4a5ebb()?_0x5a2140()?_0x468a6b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x178875()?(_0x175f6d[_0x468a6b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x468a6b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a567d=_0x3c2bc5(_0x468a6b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x175f6d[_0x468a6b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x468a6b([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a567d=_0x3c2bc5(_0x468a6b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x43bde0()):_0x468a6b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x468a6b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x468a6b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x468a6b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a2140(){const _0x238a56=[_0x468a6b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x468a6b([0x74,0x72,0x69,0x61,0x6c])][_0x468a6b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x175f6d[_0x468a6b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d0602/0x3e8:0xe10*_0x36d256;return _0x175f6d[_0x468a6b([0x65,0x78,0x70])]<_0x238a56;}function _0x4a5ebb(){const _0x42c5ac=_0x175f6d[_0x468a6b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42c5ac&&(!!_0x42c5ac[_0x468a6b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468a6b([0x2a]))||!!_0x42c5ac[_0x468a6b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468a6b([0x55,0x50,0x4c,0x43])));}function _0x178875(){const _0xca3773=_0x175f6d[_0x468a6b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xca3773||0x0==_0xca3773[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e910f}=new URL(window[_0x468a6b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xca3773[_0x468a6b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e910f))return!0x0;const _0x80fc10=_0x3e910f[_0x468a6b([0x73,0x70,0x6c,0x69,0x74])](_0x468a6b([0x2e]));return _0xca3773[_0x468a6b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb6a921=>_0xb6a921[_0x468a6b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x468a6b([0x2a])))[_0x468a6b([0x6d,0x61,0x70])](_0x50b35e=>_0x50b35e[_0x468a6b([0x73,0x70,0x6c,0x69,0x74])](_0x468a6b([0x2e])))[_0x468a6b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11b066=>_0x11b066[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x80fc10[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x468a6b([0x6d,0x61,0x70])](_0x1a5ad6=>Array(_0x80fc10[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a5ad6[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x468a6b([0x66,0x69,0x6c,0x6c])](_0x1a5ad6[0x0]===_0x468a6b([0x2a])?_0x468a6b([0x2a]):'')[_0x468a6b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a5ad6))[_0x468a6b([0x73,0x6f,0x6d,0x65])](_0x1ccd05=>_0x80fc10[_0x468a6b([0x65,0x76,0x65,0x72,0x79])]((_0x146e0d,_0x56d1bb)=>_0x1ccd05[_0x56d1bb]===_0x146e0d||_0x1ccd05[_0x56d1bb]===_0x468a6b([0x2a])));}function _0x43bde0(){return _0x3a567d&&_0x48e7aa?new window[(_0x468a6b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdcfd94,_0x55b867)=>{_0x3a567d[_0x468a6b([0x74,0x68,0x65,0x6e])](_0xdcfd94,_0x55b867),_0x48e7aa[_0x468a6b([0x74,0x68,0x65,0x6e])](_0x32d5a9=>{_0x32d5a9!=_0x468a6b([0x56,0x61,0x6c,0x69,0x64])&&_0xdcfd94(_0x32d5a9);},_0x55b867);}):_0x3a567d||_0x48e7aa||_0x468a6b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b08ba(_0x503d0d,_0x5333d6){return new window[(_0x468a6b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c9618=>{if(_0x11b641())return _0x5c9618(_0x468a6b([0x56,0x61,0x6c,0x69,0x64]));_0x4722ff(),_0xf4af2[_0x468a6b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x468a6b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x59b4b5=!0x1;const _0x4f67be=_0x5ca021();function _0x3ee325(_0x348852){return!!_0x348852&&(typeof _0x348852===_0x468a6b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x348852===_0x468a6b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x348852[_0x468a6b([0x74,0x68,0x65,0x6e])]===_0x468a6b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x348852[_0x468a6b([0x63,0x61,0x74,0x63,0x68])]===_0x468a6b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25a440(_0x49a8af){_0xd8bfea(_0x49a8af)[_0x468a6b([0x74,0x68,0x65,0x6e])](_0x549a7d=>{if(!_0x549a7d||_0x549a7d[_0x468a6b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x468a6b([0x6f,0x6b]))return _0x468a6b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x368c7d(_0x3ade2e(_0x4f67be+_0x5333d6))!=_0x549a7d[_0x468a6b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x468a6b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x468a6b([0x56,0x61,0x6c,0x69,0x64]);})[_0x468a6b([0x74,0x68,0x65,0x6e])](_0x492b54=>(_0x113fee(),_0x492b54),()=>{const _0x3612c9=_0x4ebc86();return null==_0x3612c9?(_0x113fee(),_0x468a6b([0x56,0x61,0x6c,0x69,0x64])):_0x468a6b(_0x3d0602-_0x3612c9>(0x514908d7^_0x3d0c4b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x468a6b([0x74,0x68,0x65,0x6e])](_0x5c9618)[_0x468a6b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c9618(_0x468a6b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d6f94=0x75736257^_0x3d0c4b;function _0x113fee(){const _0x2583c9=_0x468a6b([0x6c,0x6c,0x63,0x74,0x2d])+_0x368c7d(_0x3ade2e(_0x503d0d)),_0x3e3599=_0x1f695b(_0x368c7d(window[_0x468a6b([0x4d,0x61,0x74,0x68])][_0x468a6b([0x63,0x65,0x69,0x6c])](_0x3d0602/_0x1d6f94)));window[_0x468a6b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x468a6b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2583c9,_0x3e3599);}function _0x4ebc86(){const _0x25af68=_0x468a6b([0x6c,0x6c,0x63,0x74,0x2d])+_0x368c7d(_0x3ade2e(_0x503d0d)),_0x338860=window[_0x468a6b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x468a6b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25af68);return _0x338860?window[_0x468a6b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f695b(_0x338860),0x10)*_0x1d6f94:null;}function _0xd8bfea(_0x9e1f8a){return new window[(_0x468a6b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d4a35,_0x243a24)=>{_0x9e1f8a[_0x468a6b([0x74,0x68,0x65,0x6e])](_0x4d4a35,_0x243a24),window[_0x468a6b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x243a24,0x75445817^_0x3d0c4b);});}}_0xf4af2[_0x468a6b([0x6f,0x6e])](_0x468a6b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40e841,_0x4f1799)=>{if(_0x4f1799[0x0]!=_0x503d0d)return _0x5c9618(_0x468a6b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f1799[0x1]={..._0x4f1799[0x1],[_0x468a6b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f67be};},{[_0x468a6b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x468a6b([0x68,0x69,0x67,0x68])}),_0xf4af2[_0x468a6b([0x6f,0x6e])](_0x468a6b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9ffdb=>{_0x3ee325(_0x9ffdb[_0x468a6b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x59b4b5=!0x0,_0x25a440(_0x9ffdb[_0x468a6b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x468a6b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x468a6b([0x6c,0x6f,0x77])}),_0x1019dc[_0x468a6b([0x74,0x68,0x65,0x6e])](()=>{_0x59b4b5||_0x5c9618(_0x468a6b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11b641(){return _0xf4af2[_0x468a6b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x468a6b([0x76,0x69,0x65,0x77])][_0x468a6b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x468a6b([0x61,0x75,0x74,0x6f]);}function _0x4722ff(){_0xf4af2[_0x468a6b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x468a6b([0x76,0x69,0x65,0x77])][_0x468a6b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x468a6b([0x61,0x75,0x74,0x6f]);}}function _0x3c2bc5(_0x29d207){const _0x2dd08b=[new window[(_0x468a6b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7c51=>setTimeout(_0x4b7c51,0x754cb21b^_0x3d0c4b)),_0x1019dc[_0x468a6b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x468a6b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17f1c6=>{let _0x8d1561=0x0;_0xf4af2[_0x468a6b([0x6d,0x6f,0x64,0x65,0x6c])][_0x468a6b([0x6f,0x6e])](_0x468a6b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26bb6a,_0x15d8fd)=>{_0x15d8fd[0x0][_0x468a6b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8d1561++,_0x8d1561==(0x75458d2f^_0x3d0c4b)&&(_0x17f1c6(),_0x26bb6a[_0x468a6b([0x6f,0x66,0x66])]());});}))];return window[_0x468a6b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x468a6b([0x72,0x61,0x63,0x65])](_0x2dd08b)[_0x468a6b([0x74,0x68,0x65,0x6e])](()=>_0x29d207);}async function _0x22b66d(){await _0x1019dc,_0xf4af2[_0x468a6b([0x6d,0x6f,0x64,0x65,0x6c])][_0x468a6b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x375576,_0xf4af2[_0x468a6b([0x6d,0x6f,0x64,0x65,0x6c])][_0x468a6b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x375576,_0xf4af2[_0x468a6b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x468a6b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x40bd68(_0x1abe13){const _0x38d3a9=_0x20c49f();_0xf4af2[_0x38d3a9]=_0x468a6b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1abe13,_0x1abe13!=_0x468a6b([0x56,0x61,0x6c,0x69,0x64])&&_0x22b66d();}function _0x20c49f(){const _0x5de50c=window[_0x468a6b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x468a6b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x468a6b([0x6e,0x6f,0x77])]())[_0x468a6b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x468a6b([0x2e]),'');let _0x4690ae=_0x468a6b([0x71]);for(let _0x6243a7=0x0;_0x6243a7<_0x5de50c[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6243a7+=0x2){let _0x409b10=window[_0x468a6b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5de50c[_0x468a6b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6243a7,_0x6243a7+0x2));_0x409b10>=_0x2cf782[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x409b10-=_0x2cf782[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4690ae+=_0x2cf782[_0x409b10];}return _0x4690ae;}function _0x508fab(){const _0x1b3e5f=_0x1bc30e[_0x468a6b([0x73,0x70,0x6c,0x69,0x74])](_0x468a6b([0x2e]));if(0x3!=_0x1b3e5f[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x257e31(_0x1b3e5f[0x1]);function _0x257e31(_0x1714e5){const _0x4b3a0c=_0x4a1660(_0x1714e5);return _0x4b3a0c&&_0x1022fc()?_0x4b3a0c:null;function _0x1022fc(){const _0x3c8045=_0x4b3a0c[_0x468a6b([0x6a,0x74,0x69])],_0x537db8=window[_0x468a6b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c8045[_0x468a6b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c8045[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e3842={..._0x4b3a0c,[_0x468a6b([0x6a,0x74,0x69])]:_0x3c8045[_0x468a6b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c8045[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e3842[_0x468a6b([0x76,0x63])],_0x3ade2e(_0x2e3842)==_0x537db8;}}}async function _0x12118a(){let _0x4dbf01=!0x0;try{const _0x2396c2=_0x1bc30e[_0x468a6b([0x73,0x70,0x6c,0x69,0x74])](_0x468a6b([0x2e])),[_0x1628e8,_0x5af358,_0x1f39d2]=_0x2396c2;return _0x213ca4(_0x1628e8),await _0x20832b(_0x1628e8,_0x5af358,_0x1f39d2),_0x4dbf01;}catch{return!0x1;}function _0x213ca4(_0x3a484e){const _0x57bfd3=_0x4a1660(_0x3a484e);_0x57bfd3&&_0x57bfd3[_0x468a6b([0x61,0x6c,0x67])]==_0x468a6b([0x45,0x53,0x32,0x35,0x36])||(_0x4dbf01=!0x1);}async function _0x20832b(_0x37befd,_0x3cc3e0,_0x5b27af){const _0x862f10=window[_0x468a6b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x468a6b([0x66,0x72,0x6f,0x6d])](_0x5d55f4(_0x5b27af),_0x5e0bff=>_0x5e0bff[_0x468a6b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13df4c=new window[(_0x468a6b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x468a6b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37befd+_0x468a6b([0x2e])+_0x3cc3e0),_0x373e08=window[_0x468a6b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x468a6b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x373e08)return;const _0x5433b8=await _0x373e08[_0x468a6b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x468a6b([0x6a,0x77,0x6b]),_0xe36ece,{[_0x468a6b([0x6e,0x61,0x6d,0x65])]:_0x468a6b([0x45,0x43,0x44,0x53,0x41]),[_0x468a6b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x468a6b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x468a6b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x373e08[_0x468a6b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x468a6b([0x6e,0x61,0x6d,0x65])]:_0x468a6b([0x45,0x43,0x44,0x53,0x41]),[_0x468a6b([0x68,0x61,0x73,0x68])]:{[_0x468a6b([0x6e,0x61,0x6d,0x65])]:_0x468a6b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5433b8,_0x862f10,_0x13df4c)||(_0x4dbf01=!0x1);}}function _0x4a1660(_0x753f51){return _0x753f51[_0x468a6b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x468a6b([0x65,0x79]))?JSON[_0x468a6b([0x70,0x61,0x72,0x73,0x65])](_0x5d55f4(_0x753f51)):null;}function _0x5d55f4(_0x1d7084){return window[_0x468a6b([0x61,0x74,0x6f,0x62])](_0x1d7084[_0x468a6b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x468a6b([0x2b]))[_0x468a6b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x468a6b([0x2f])));}function _0x3ade2e(_0x2208cd){let _0x16ef77=0x1505;function _0x36f5a9(_0x46d4a7){for(let _0x245a0a=0x0;_0x245a0a<_0x46d4a7[_0x468a6b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x245a0a++){const _0x206787=_0x46d4a7[_0x468a6b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x245a0a);_0x16ef77=(_0x16ef77<<0x5)+_0x16ef77+_0x206787,_0x16ef77&=_0x16ef77;}}function _0x1ffdb6(_0x115258){Array[_0x468a6b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x115258)?_0x115258[_0x468a6b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ffdb6):_0x115258&&typeof _0x115258==_0x468a6b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x468a6b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x115258)[_0x468a6b([0x73,0x6f,0x72,0x74])]()[_0x468a6b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e6868,_0xf10109])=>{_0x36f5a9(_0x5e6868),_0x1ffdb6(_0xf10109);}):_0x36f5a9(window[_0x468a6b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x115258));}return _0x1ffdb6(_0x2208cd),_0x16ef77>>>0x0;}function _0x368c7d(_0x3677bc){return _0x3677bc[_0x468a6b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x468a6b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x468a6b([0x30]));}function _0x1f695b(_0x283e8e){return _0x283e8e[_0x468a6b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x468a6b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x468a6b([0x6a,0x6f,0x69,0x6e])]('');}function _0x375576(){}function _0x468a6b(_0x580ca6){return _0x580ca6['map'](_0x35b410=>String['fromCharCode'](_0x35b410))['join']('');}_0x40bd68(await _0x279406());}(this);}['_initSchema'](){const _0x3c66b3=this['editor']['model']['schema'];_0x3c66b3['isRegistered']('imageBlock')&&_0x3c66b3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3c66b3['isRegistered']('imageInline')&&_0x3c66b3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x318bf6=this['editor'];_0x318bf6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x318bf6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3bef1f=>_0x3bef1f['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x138317=_0x318bf6['commands']['get']('replaceImageSource');_0x138317&&this['listenTo'](_0x138317,'cleanupImage',(_0x42d843,[_0x5d9c28,_0x2eee29])=>{_0x5d9c28['removeAttribute']('uploadcareImageId',_0x2eee29);});}['_initConfig'](){const _0x2d5020=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2c9097=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x26fae6(_0x56969d['document'],'uc-config',{..._0x2d5020,'pubkey':_0x2c9097,'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']=_0x1ddf34=>{if('closeMax'==_0x1ddf34)return'#uc-icon-arrow-down';},_0x56969d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x26fae6(_0x56969d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x56969d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1d3d62=this['editor']['commands']['get']('insertImage');_0x1d3d62&&this['listenTo'](_0x1d3d62,'execute',()=>{const _0x32a6a6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x32a6a6&&_0x32a6a6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x32a6a6);});});const _0x5726cd=this['editor']['commands']['get']('uploadcareImageReplace');_0x5726cd&&this['listenTo'](_0x5726cd,'execute',()=>{const _0x2b6877=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2b6877&&_0x2b6877['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2b6877);});});}}class tt extends _0xaeb288{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43e770){super(_0x43e770),_0x43e770['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x26d61a['defineComponents'](_0x26d61a);}}class ii extends _0x50fbea{constructor(_0x3fef91){super(_0x3fef91);const t=_0x3fef91['t'],_0x11bb48=this['bindTemplate'],_0xefb9de=new _0xbcc24d();_0xefb9de['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':[_0xefb9de,{'text':_0x11bb48['to']('imageUploadProgress',_0x264231=>t('Loading\x20image...')+'\x20('+(_0x264231||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 _0x50fbea{constructor(_0x5115c7){super(_0x5115c7);const t=_0x5115c7['t'];this['set']('errorType',null);const _0x4d2754=new _0x317af6(_0x5115c7);_0x4d2754['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4d2754['withText']=!0x0,_0x4d2754['class']='ck-button-action',_0x4d2754['on']('execute',()=>{this['fire']('retry');}),_0x4d2754['bind']('isVisible')['to'](this,'errorType',_0x1a81e8=>'NotFound'!==_0x1a81e8);const _0x5bd9dd=new _0x376866();_0x5bd9dd['content']=_0x10bfc8,_0x5bd9dd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x351274=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':[_0x5bd9dd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x351274['to']('errorType',_0x11ef60=>t('NotFound'!==_0x11ef60?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4d2754]},{'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 _0x50fbea{constructor(_0xf5a270,_0x2291e2){super(_0xf5a270);const _0x472b6d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2291e2,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x472b6d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1b18eb,_0x48c20f,_0x6e86e5){super(_0x1b18eb),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1b18eb),this['_errorView']=new ti(_0x1b18eb),this['_editingView']=new ei(_0x1b18eb,_0x6e86e5),this['_focusableView']=new _0x50fbea(_0x1b18eb),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x48c20f),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'],_0x1969dd=>{this['_addUploadcareImageEditorListeners'](_0x1969dd);});}),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'](_0x163c01,_0x182518){const _0x56a900='uc-cloud-image-editor',_0x1c6649=_0x163c01['querySelector'](_0x56a900);if(_0x1c6649)return _0x182518(_0x1c6649);const _0x26eba7=new MutationObserver(_0x423e42=>{const _0x28b2a7=_0x423e42['filter'](_0x545cea=>_0x545cea['target']===_0x163c01&&_0x545cea['addedNodes']['length']>0x0&&_0x545cea['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x56a900);_0x28b2a7['length']&&(_0x26eba7['disconnect'](),_0x182518(_0x28b2a7[0x0]['addedNodes'][0x0]));});_0x26eba7['observe'](_0x163c01,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3d77bb){_0x3d77bb['addEventListener']('apply',_0x4c9879=>{this['fire']('apply',{'imageSrc':_0x4c9879['detail']['cdnUrl']});}),_0x3d77bb['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x14a0ec(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x9077c,_0x203942,_0x4c70b1){super(),this['_editor']=_0x9077c,this['_dialog']=_0x203942,this['_imageElement']=_0x4c70b1,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 _0x239f4c=this['_imageElement'],_0x2218b0=_0x239f4c['getAttribute']('uploadcareImageId'),_0x5b35ce=_0x239f4c['getAttribute']('src');if(_0x2218b0)await this['_loadImageInfo'](_0x2218b0,_0x5b35ce);else{if(this['_imageCache']['has'](_0x5b35ce)){const _0x4f996d=this['_imageCache']['get'](_0x5b35ce);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4f996d['url'],this['imageDimension']=_0x4f996d['dimension'],this['imageId']=_0x4f996d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x50bad9}=this['_editor'],t=_0x50bad9['t'],_0x26b3ab=new X(_0x50bad9,this['imageStatus'],this['_attributes']);_0x26b3ab['bind']('status')['to'](this,'imageStatus'),_0x26b3ab['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x26b3ab['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x26b3ab['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x26b3ab,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3a178b,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x26b3ab,'position':_0x4f1e64['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x26b3ab['focus']();},'onHide':()=>{_0x26b3ab['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x6d2c80=>!S(_0x6d2c80,_0x26b3ab['element'])}});}['_loadImageInfo'](_0x19b40d,_0x465978){return j['getInfo'](_0x19b40d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x482d77=>{const {width:_0x31fad8,height:_0x43f268}=_0x482d77['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x465978,this['imageDimension']={'width':_0x31fad8,'height':_0x43f268},this['imageId']=_0x19b40d;})['catch'](_0x357c5a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x357c5a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x9c67f2,_0x1e4542){return this['_getImageAsFile'](_0x9c67f2)['then'](_0x1218ba=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1e4542['signal'],'file':_0x1218ba,'onProgress':_0x8da85d=>{_0x8da85d&&_0x8da85d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x8da85d['value']));}}))['then'](_0x2b1602=>{const {width:_0x237803,height:_0x2c6a64}=_0x2b1602['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2b1602['cdnUrl'],this['imageDimension']={'width':_0x237803,'height':_0x2c6a64},this['imageId']=_0x2b1602['uuid'],this['imageUploadProgress']=null;const _0x3119ed=_0x9c67f2['getAttribute']('src');this['_imageCache']['set'](_0x3119ed,{'id':_0x2b1602['uuid'],'url':_0x2b1602['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5ea460=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5ea460['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x553ac9,_0x2df355){_0x553ac9['on']('apply',(_0x1d1268,_0x44ba76)=>{this['_replaceImage'](_0x2df355,_0x44ba76['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x553ac9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x553ac9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x527222,_0x466a01,_0x571781){const _0x14235f=this['_editor'],{width:_0x121ffa,height:_0x245555}=C(_0x466a01,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x401650,imageSources:_0x5a2274}=k(_0x466a01,_0x121ffa);_0x14235f['model']['change'](_0x272486=>{if('$graveyard'===_0x527222['root']['rootName']){_0x14235f['execute']('insertImage',{'imageType':_0x527222['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x527222['getAttributes']()),'uploadcareImageId':_0x571781,'src':_0x401650,'sources':_0x5a2274,'width':_0x121ffa,'height':_0x245555}});const _0x16b879=_0x527222['getChildren']();_0x527222=_0x14235f['model']['document']['selection']['getSelectedElement']();for(const _0x511208 of _0x16b879)_0x272486['append'](_0x272486['cloneElement'](_0x511208),_0x527222);}else _0x272486['setSelection'](_0x527222,'on'),_0x14235f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x527222['getAttributes']()),'uploadcareImageId':_0x571781,'src':_0x401650,'sources':_0x5a2274,'width':_0x121ffa,'height':_0x245555},_0x527222);_0x272486['setSelection'](_0x527222,'on');});}async['_getImageAsFile'](_0x10104f){const _0x23f2cf=_0x56969d['window'],_0x185c6c=_0x56969d['document']['location']['href'],_0x56b6dc=new _0x23f2cf['URL'](_0x10104f['getAttribute']('src'),_0x185c6c);if('data:'===_0x56b6dc['protocol']){const _0x50f1e6=_0x56b6dc['href']['split'](','),_0x3b36c7=_0x50f1e6[0x0]['match'](/:(.*?);/)[0x1],_0x80e211=_0x3b36c7['split']('/')[0x1],_0x105580=_0x23f2cf['atob'](_0x50f1e6[_0x50f1e6['length']-0x1]);let _0x97d814=_0x105580['length'];const _0x5decea=new _0x23f2cf['Uint8Array'](_0x97d814);for(;_0x97d814--;)_0x5decea[_0x97d814]=_0x105580['charCodeAt'](_0x97d814);return new _0x23f2cf['File']([_0x5decea],'image.'+_0x80e211,{'type':_0x3b36c7});}const _0x58cbb3=_0x56b6dc['href']['split']('/'),_0x19782e=_0x58cbb3[_0x58cbb3['length']-0x1],_0x338cfc=_0x19782e['split']('.')[0x1];return _0x23f2cf['fetch'](_0x56b6dc['href'])['then'](_0x5e75d8=>_0x5e75d8['clone']()['blob']())['then'](_0x4f26c3=>new _0x23f2cf['File']([_0x4f26c3],_0x19782e,{'type':'image/'+_0x338cfc}));}}class O extends _0x14d71b{['imageEditController'];static get['requires'](){return[_0x336ece];}['_isEditable'];constructor(_0x1c2e97){super(_0x1c2e97),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x19bab8){const _0x2bfcbf=G(_0x19bab8);return _0x4c9e08=>!(!_0x4c9e08||!_0x4c9e08['is']('element','imageBlock')&&!_0x4c9e08['is']('element','imageInline'))&&(!!_0x4c9e08['hasAttribute']('uploadcareImageId')||!!_0x4c9e08['hasAttribute']('src')&&_0x2bfcbf(_0x4c9e08['getAttribute']('src')));}(_0x1c2e97['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x357389=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x357389);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x53dbab=this['editor']['model']['document']['selection']['getSelectedElement']();_0x53dbab&&(_0x53dbab['is']('element','imageBlock')||_0x53dbab['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x336ece),_0x53dbab),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x14d71b{['refresh'](){const _0x3b4117=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3b4117&&(_0x3b4117['is']('element','imageBlock')||_0x3b4117['is']('element','imageInline')));}['execute'](_0x2382ea){const _0xae6d01=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3212b2=>{_0x3212b2['setAttributes'](_0x2382ea,_0xae6d01),_0x3212b2['removeAttribute']('srcset',_0xae6d01),_0x3212b2['removeAttribute']('sizes',_0xae6d01);});}}class m extends _0xaeb288{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4f1f04,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x30b5d7}=this;_0x30b5d7['commands']['add']('uploadcareImageEdit',new O(_0x30b5d7)),_0x30b5d7['commands']['add']('uploadcareImageReplace',new R(_0x30b5d7));}}class g extends _0xaeb288{['_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 _0x15cd6e=this['editor'];_0x15cd6e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x198e30=>{const _0x1e0323=_0x15cd6e['commands']['get']('uploadcareImageEdit'),_0x777fc3=new _0x317af6(_0x198e30),t=_0x198e30['t'];return _0x777fc3['set']({'icon':_0x3a178b,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x777fc3['bind']('isEnabled')['to'](_0x1e0323),_0x777fc3['bind']('isOn')['to'](_0x1e0323,'isActive'),this['listenTo'](_0x777fc3,'execute',()=>{_0x15cd6e['execute']('uploadcareImageEdit'),_0x15cd6e['editing']['view']['focus']();}),_0x777fc3;}),this['_initConfig']();}['_initConfig'](){const _0x3986b3=_0x26fae6(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3986b3),this['listenTo'](this['editor'],'destroy',()=>{_0x3986b3['remove']();});}}class et extends _0xaeb288{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':_0x3759a1=>0x1!=_0x3759a1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x47e256=>{const {af:{dictionary:_0x3e407f,getPluralForm:_0x3c3fcd}}={'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':_0x37be26=>0x1!=_0x37be26}};_0x47e256['af']||={'dictionary':{},'getPluralForm':null},_0x47e256['af']['dictionary']=Object['assign'](_0x47e256['af']['dictionary'],_0x3e407f),_0x47e256['af']['getPluralForm']=_0x3c3fcd;})(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':_0x49516d=>0x0==_0x49516d?0x0:0x1==_0x49516d?0x1:0x2==_0x49516d?0x2:_0x49516d%0x64>=0x3&&_0x49516d%0x64<=0xa?0x3:_0x49516d%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1080ca=>{const {ar:{dictionary:_0x1a1ac1,getPluralForm:_0x2ffbc8}}={'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':_0x2006ac=>0x0==_0x2006ac?0x0:0x1==_0x2006ac?0x1:0x2==_0x2006ac?0x2:_0x2006ac%0x64>=0x3&&_0x2006ac%0x64<=0xa?0x3:_0x2006ac%0x64>=0xb?0x4:0x5}};_0x1080ca['ar']||={'dictionary':{},'getPluralForm':null},_0x1080ca['ar']['dictionary']=Object['assign'](_0x1080ca['ar']['dictionary'],_0x1a1ac1),_0x1080ca['ar']['getPluralForm']=_0x2ffbc8;})(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':_0x7964cc=>0x1!=_0x7964cc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xaf7aa=>{const {ast:{dictionary:_0x7743af,getPluralForm:_0x4c2bf5}}={'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':_0x152fec=>0x1!=_0x152fec}};_0xaf7aa['ast']||={'dictionary':{},'getPluralForm':null},_0xaf7aa['ast']['dictionary']=Object['assign'](_0xaf7aa['ast']['dictionary'],_0x7743af),_0xaf7aa['ast']['getPluralForm']=_0x4c2bf5;})(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':_0xfad489=>0x1!=_0xfad489}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5208b8=>{const {az:{dictionary:_0x56a38b,getPluralForm:_0x5dfe51}}={'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':_0x212d7e=>0x1!=_0x212d7e}};_0x5208b8['az']||={'dictionary':{},'getPluralForm':null},_0x5208b8['az']['dictionary']=Object['assign'](_0x5208b8['az']['dictionary'],_0x56a38b),_0x5208b8['az']['getPluralForm']=_0x5dfe51;})(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':_0x429f1d=>_0x429f1d%0xa==0x1&&_0x429f1d%0x64!=0xb?0x0:_0x429f1d%0xa>=0x2&&_0x429f1d%0xa<=0x4&&(_0x429f1d%0x64<0xa||_0x429f1d%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x31722a=>{const {be:{dictionary:_0x36e5bf,getPluralForm:_0x1db26c}}={'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':_0x4b2a4=>_0x4b2a4%0xa==0x1&&_0x4b2a4%0x64!=0xb?0x0:_0x4b2a4%0xa>=0x2&&_0x4b2a4%0xa<=0x4&&(_0x4b2a4%0x64<0xa||_0x4b2a4%0x64>=0x14)?0x1:0x2}};_0x31722a['be']||={'dictionary':{},'getPluralForm':null},_0x31722a['be']['dictionary']=Object['assign'](_0x31722a['be']['dictionary'],_0x36e5bf),_0x31722a['be']['getPluralForm']=_0x1db26c;})(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':_0x1c2770=>0x1!=_0x1c2770}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1dc325=>{const {bg:{dictionary:_0x247c6e,getPluralForm:_0x49ba62}}={'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':_0x3a7771=>0x1!=_0x3a7771}};_0x1dc325['bg']||={'dictionary':{},'getPluralForm':null},_0x1dc325['bg']['dictionary']=Object['assign'](_0x1dc325['bg']['dictionary'],_0x247c6e),_0x1dc325['bg']['getPluralForm']=_0x49ba62;})(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':_0x13d0eb=>0x1!=_0x13d0eb}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x551d32=>{const {bn:{dictionary:_0x40d908,getPluralForm:_0x46386d}}={'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':_0x37f79f=>0x1!=_0x37f79f}};_0x551d32['bn']||={'dictionary':{},'getPluralForm':null},_0x551d32['bn']['dictionary']=Object['assign'](_0x551d32['bn']['dictionary'],_0x40d908),_0x551d32['bn']['getPluralForm']=_0x46386d;})(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':_0x1eecbe=>_0x1eecbe%0xa==0x1&&_0x1eecbe%0x64!=0xb?0x0:_0x1eecbe%0xa>=0x2&&_0x1eecbe%0xa<=0x4&&(_0x1eecbe%0x64<0xa||_0x1eecbe%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x482903=>{const {bs:{dictionary:_0x33c142,getPluralForm:_0x21e70b}}={'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':_0x1912bd=>_0x1912bd%0xa==0x1&&_0x1912bd%0x64!=0xb?0x0:_0x1912bd%0xa>=0x2&&_0x1912bd%0xa<=0x4&&(_0x1912bd%0x64<0xa||_0x1912bd%0x64>=0x14)?0x1:0x2}};_0x482903['bs']||={'dictionary':{},'getPluralForm':null},_0x482903['bs']['dictionary']=Object['assign'](_0x482903['bs']['dictionary'],_0x33c142),_0x482903['bs']['getPluralForm']=_0x21e70b;})(window['CKEDITOR_TRANSLATIONS']||={});
|