@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20251215.0 → 0.0.0-nightly-next-20251216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xe1bc50,Command as _0x2446cd}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x24a027,IconGooglePhotos as _0x313fcf,IconGoogleDrive as _0x31cd6a,IconFacebook as _0x5936a6,IconDropbox as _0x5b3cfa,IconUploadcareLink as _0x558945,IconUploadcareImageUpload as _0xb04f56,IconError as _0x172d42,IconUploadcareImageEdit as _0x72eb95}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x33db85,MenuBarMenuListItemButtonView as _0x27a912,View as _0x309140,FocusCycler as _0x167e01,Dialog as _0x49d3a6,DialogViewPosition as _0x50b8a2,SpinnerView as _0x15da0d,IconView as _0x3677a1,Notification as _0x72305c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xbe535b,DomEmitterMixin as _0x2f7e22,global as _0x331faf,getAncestors as _0x1f32f9,ObservableMixin as _0x52ce49,uid as _0x5b5010,createElement as _0x3549a1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x418789}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5a363b,info as _0x185684}from'@uploadcare/upload-client';import*as _0x22dd18 from'@uploadcare/file-uploader';var i=function(_0x413036){return _0x413036['Local']='local',_0x413036['URL']='url',_0x413036['Dropbox']='dropbox',_0x413036['GDrive']='gdrive',_0x413036['Facebook']='facebook',_0x413036['GPhotos']='gphotos',_0x413036['OneDrive']='onedrive',_0x413036;}({});function _(_0x38d7ab,_0x48f992,_0x1fb7fe){const t=_0x38d7ab['t'],_0x4de923=_0x38d7ab['t'];switch(_0x48f992){case i['Local']:return{'text':_0x4de923('Insert'===_0x1fb7fe?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4de923('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1fb7fe?_0x4de923('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4de923('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1fb7fe?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1fb7fe?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1fb7fe?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1fb7fe?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1fb7fe?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x48f992;}}class e extends _0xe1bc50{['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 _0x47f29a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14e1ed;for(const _0x3fb724 in _0x47f29a){const _0x4f8d1f=_0x3fb724,_0x628756=_0x47f29a[_0x4f8d1f];if('uploadcareLicenseKeyValid'==_0x628756||'uploadcareLicenseKeyInvalid'==_0x628756||'uploadcareLicenseKeyExpired'==_0x628756||'uploadcareLicenseKeyDomainLimit'==_0x628756||'uploadcareLicenseKeyNotAllowed'==_0x628756||'uploadcareLicenseKeyEvaluationLimit'==_0x628756||'uploadcareLicenseKeyTrialLimit'==_0x628756||'uploadcareLicenseKeyUsageLimit'==_0x628756){delete _0x47f29a[_0x4f8d1f],_0x14e1ed=_0x628756,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x14e1ed&&_0x47f29a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x14e1ed&&_0x47f29a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x14e1ed&&_0x47f29a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x14e1ed&&_0x47f29a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x14e1ed&&_0x47f29a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x14e1ed&&_0x47f29a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x14e1ed&&_0x47f29a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x16e04a}=this,_0x5599c5=_0x16e04a['commands']['get']('uploadcare');if(!_0x5599c5)return;const _0x42fb81=this['_normalizeConfigSourceList'](_0x16e04a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x54421b,_0x3377da)=>{const _0x19ff1f=this['_getIntegrationKey'](_0x3377da['type']);return _0x54421b[_0x19ff1f]||(_0x54421b[_0x19ff1f]=[]),_0x54421b[_0x19ff1f]['push'](_0x3377da),_0x54421b;},{});_0x16e04a['plugins']['has']('ImageInsertUI')&&_0x16e04a['commands']['get']('uploadcare')&&Object['entries'](_0x42fb81)['forEach'](([_0x9cbf87,_0x4897cd])=>{_0x16e04a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x9cbf87,'observable':()=>_0x5599c5,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4897cd),'formViewCreator':()=>this['_createDropdownButtons'](_0x4897cd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4897cd),'override':'assetManager'!==_0x9cbf87});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3a7020){const {locale:_0x2aa23a}=this['editor'];return _0x3a7020['map'](_0x4e8ed6=>{const _0x4965da=_(_0x2aa23a,_0x4e8ed6,'Insert');switch(_0x4e8ed6){case i['Local']:return{'icon':_0xb04f56,'type':i['Local'],..._0x4965da};case i['URL']:return{'icon':_0x558945,'type':i['URL'],..._0x4965da};case i['Dropbox']:return{'icon':_0x5b3cfa,'type':i['Dropbox'],..._0x4965da};case i['Facebook']:return{'icon':_0x5936a6,'type':i['Facebook'],..._0x4965da};case i['GDrive']:return{'icon':_0x31cd6a,'type':i['GDrive'],..._0x4965da};case i['GPhotos']:return{'icon':_0x313fcf,'type':i['GPhotos'],..._0x4965da};case i['OneDrive']:return{'icon':_0x24a027,'type':i['OneDrive'],..._0x4965da};}});}['_getIntegrationKey'](_0x5a3792){switch(_0x5a3792){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3774cb,_0x130737){const _0x3cca1b=this['editor'],_0x47aa96=new _0x3774cb(_0x3cca1b['locale']),_0x450ad3=_0x3cca1b['commands']['get']('uploadcare');return _0x47aa96['bind']('isEnabled')['to'](_0x450ad3),_0x47aa96['on']('execute',()=>{_0x450ad3['execute'](_0x130737);}),_0x47aa96;}['_createToolbarButton'](_0x3c67ee){const {locale:_0xd1d764}=this['editor'],_0x275ba7=this['editor']['plugins']['get']('ImageInsertUI'),_0x342cf6=_0x3c67ee[0x0],_0x4de3bd=this['_createButton'](_0x33db85,_0x342cf6['type']);return _0x4de3bd['icon']=_0x342cf6['icon'],_0x4de3bd['bind']('label')['to'](_0x275ba7,'isImageSelected',_0x14ad25=>_(_0xd1d764,_0x342cf6['type'],_0x14ad25?'Replace':'Insert')['text']),_0x4de3bd['tooltip']=!0x0,_0x4de3bd;}['_createDropdownButtons'](_0x1d9577){const {locale:_0x4d8d21}=this['editor'],_0xeb8ba0=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d9577['map'](_0x4424cd=>{const _0x3b297f=this['_createButton'](_0x33db85,_0x4424cd['type']);return _0x3b297f['withText']=!0x0,_0x3b297f['icon']=_0x4424cd['icon'],_0x3b297f['bind']('label')['to'](_0xeb8ba0,'isImageSelected',_0x595dd2=>_(_0x4d8d21,_0x4424cd['type'],_0x595dd2?'Replace':'Insert')['text']),_0x3b297f;});}['_createMenuBarButtons'](_0x26a868){return _0x26a868['map'](_0x436dc2=>{const _0x8c5097=this['_createButton'](_0x27a912,_0x436dc2['type']);return _0x8c5097['icon']=_0x436dc2['icon'],_0x8c5097['label']=_0x436dc2['shortText'],_0x8c5097;});}}class F extends _0x309140{['focusTracker'];['focusCycler'];constructor(_0x4d277b){super(_0x4d277b),this['focusTracker']=new _0xbe535b(),this['focusCycler']=new _0x167e01({'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(_0x4e8122,_0x5950e4){super(_0x4e8122),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-'+_0x5950e4}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xcb7eea,_0x45cd08){const _0x5611e4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4f3d9c=>_0x4f3d9c<=_0x45cd08)['map'](_0x57edd9=>_0xcb7eea['replace'](/\/$/,'')+'/-/resize/'+_0x57edd9+'x/\x20'+_0x57edd9+'w');return{'imageFallbackUrl':_0xcb7eea,'imageSources':[{'srcset':_0x5611e4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x45cd08+'px)\x20100vw,\x20'+_0x45cd08+'px','type':'image/webp'}]};}function S(_0x329485,_0x2677bb,_0x2aa2f8){const _0x246bb0=_0x329485['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x246bb0?parseInt(_0x246bb0[0x1],0xa):_0x2677bb,'height':_0x246bb0?parseInt(_0x246bb0[0x2],0xa):_0x2aa2f8};}function p(_0x2250f6,_0x1393d3){const _0x2c370a=new(_0x2f7e22())(),_0x4860e8=_0x2250f6['plugins']['get']('ImageUtils'),_0x50c1ba=_0x2250f6['editing']['mapper']['toViewElement'](_0x1393d3),_0x22f929=_0x4860e8['findViewImgElement'](_0x50c1ba),_0x5cdc01=_0x2250f6['editing']['view']['domConverter']['viewToDom'](_0x22f929),_0x321ccc=_0x1393d3['getAttribute']('width'),_0x2c7eda=_0x1393d3['getAttribute']('height'),_0x42fdb1='image-processing';_0x2250f6['editing']['view']['change'](_0x2ddc72=>{_0x2ddc72['addClass'](_0x42fdb1,_0x50c1ba),_0x2ddc72['setStyle']('aspect-ratio',_0x321ccc+'/'+_0x2c7eda,_0x22f929);}),_0x2c370a['listenTo'](_0x5cdc01,'load',()=>{_0x2c370a['stopListening'](_0x5cdc01,'load'),_0x2250f6['editing']['view']['change'](_0x5e7a39=>{_0x5e7a39['removeClass'](_0x42fdb1,_0x50c1ba),_0x5e7a39['removeStyle']('aspect-ratio',_0x22f929);});});}function G(_0x4d8b44){if(Array['isArray'](_0x4d8b44)){const _0xb34e30=_0x4d8b44['map'](G);return _0x51ecb6=>_0xb34e30['some'](_0xd30711=>_0xd30711(_0x51ecb6));}if('origin'==_0x4d8b44){const _0x2001b7=_0x331faf['window']['location']['origin'];return _0x910651=>new URL(_0x910651,_0x331faf['document']['baseURI'])['origin']==_0x2001b7;}return'function'==typeof _0x4d8b44?_0x4d8b44:_0x4d8b44 instanceof RegExp?_0x279ab4=>!(!_0x279ab4['match'](_0x4d8b44)&&!_0x279ab4['replace'](/^https?:\/\//,'')['match'](_0x4d8b44)):()=>!0x1;}function A(_0x3720f1,_0x580744){return _0x1f32f9(_0x3720f1['target'])['includes'](_0x580744);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x52ce49(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x51cc27,_0x4c36f8,_0x24993b){super(),this['_editor']=_0x51cc27,this['_editing']=_0x4c36f8,this['_dialog']=_0x51cc27['plugins']['get'](_0x49d3a6),this['_api']=_0x4c36f8['ctxElement']['getAPI'](),this['_type']=_0x24993b,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:_0xb46887,model:_0x23e3eb}=this['_editor'],_0xec7931=_0x23e3eb['document']['selection']['getSelectedElement'](),_0x58b0d7=_0xec7931&&(_0xec7931['is']('element','imageBlock')||_0xec7931['is']('element','imageInline'));this['_formView']=new x(_0xb46887,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xb04f56,'title':_(_0xb46887,this['_type'],_0x58b0d7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x50b8a2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2a64df=>!A(_0x2a64df,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x407d24}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2c6373=>{const _0x1d4ea9=_0x407d24['length'];for(const _0xdb5eaf of _0x407d24){const _0x414491=_0xdb5eaf===_0x407d24[_0x1d4ea9-0x1],{cdnUrl:_0x477f4c,fileInfo:_0x4b6c2d}=_0xdb5eaf;if(!_0x477f4c||!_0x4b6c2d)continue;const {width:_0x11d8e9,height:_0x70a7b4}=_0x4b6c2d['imageInfo'],_0x5e2bfe=S(_0x477f4c,_0x11d8e9,_0x70a7b4),_0x47f973=C(_0x477f4c,_0x5e2bfe['width']),_0x73b865={'id':_0x4b6c2d['uuid'],'type':'image','attributes':{'imageDimension':_0x5e2bfe,..._0x47f973}};this['_insertAsset'](_0x73b865,_0x414491,_0x2c6373);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x30932c=>{'idle'===_0x30932c['detail']['status']&&!_0x30932c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x138b35,_0x41ceae,_0x473bae){const _0x3daa93=this['_editor']['model']['document']['selection'],_0x112095=_0x3daa93['getSelectedElement'](),_0x5362a2=!(!_0x112095||!_0x112095['is']('element','imageInline'));_0x473bae['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x138b35,_0x5362a2),_0x41ceae||_0x473bae['setSelection'](_0x3daa93['getLastPosition']());}['_insertImage'](_0x118df9,_0x5c5d73){const _0xa3c5e2=this['_editor'],{imageDimension:_0x374619,imageFallbackUrl:_0x4cbf75,imageSources:_0x59a2de}=_0x118df9['attributes'];_0xa3c5e2['execute']('insertImage',{'imageType':_0x5c5d73?'imageInline':null,'source':{'uploadcareImageId':_0x118df9['id'],'src':_0x4cbf75,'sources':_0x59a2de,..._0x374619}});}}class w extends _0x2446cd{['_editing'];['_controller']=null;static get['requires'](){return[_0x49d3a6,o];}constructor(_0x3bf0c7){super(_0x3bf0c7),this['_editing']=_0x3bf0c7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1265d4){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1265d4);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x43a21b,..._0x2561a8}){return _0x5a363b(_0x43a21b,_0x2561a8);}static['getInfo'](_0x2ae4e4,_0x1574be){return _0x185684(_0x2ae4e4,_0x1574be);}}class f extends _0xe1bc50{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x418789,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x35995c=this['editor'];if(!!!_0x35995c['config']['get']('uploadcare'))return;_0x35995c['plugins']['get'](_0x418789)['createUploadAdapter']=_0x50e7ab=>new k(_0x50e7ab,_0x35995c),_0x35995c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2eab05,{imageElement:_0x86c4a9,data:_0x36e5ef})=>{_0x35995c['model']['change'](_0x41f21b=>{_0x41f21b['setAttribute']('uploadcareImageId',_0x36e5ef['uploadcareImageId'],_0x86c4a9);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x45f9c2,_0x378c26){this['loader']=_0x45f9c2,this['editor']=_0x378c26,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3265d0=await this['loader']['file'];return j['upload']({'file':_0x3265d0,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x20440a=>{_0x20440a&&_0x20440a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x20440a['value']);}})['then'](async _0x2f1ca2=>{const {imageFallbackUrl:_0x24c401,imageSources:_0x9dace5}=C(_0x2f1ca2['cdnUrl'],_0x2f1ca2['imageInfo']['width']);return{'uploadcareImageId':_0x2f1ca2['uuid'],'default':_0x24c401,'sources':_0x9dace5};})['catch'](()=>{const _0x29125d=t('Cannot\x20upload\x20file:')+('\x20'+_0x3265d0['name']+'.');return Promise['reject'](_0x29125d);});}['abort'](){this['controller']['abort']();}}class o extends _0xe1bc50{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x49d3a6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x399b4f){super(_0x399b4f),this['ucContextId']=_0x5b5010();}['init'](){const _0x485f32=this['editor'];_0x485f32['commands']['add']('uploadcare',new w(_0x485f32));}['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 _0x5790be=_0x331faf['document']['querySelector']('input[uploadcare-file-input]');_0x5790be&&_0x5790be['remove']();}),async function(_0x488f81){const _0x4f01c2=_0x4087d2([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x276d2b=0x535f8c3a,_0x6c967f=0x5358f7c2^_0x276d2b,_0xd3804a=window[_0x4087d2([0x44,0x61,0x74,0x65])][_0x4087d2([0x6e,0x6f,0x77])](),_0x5ef361=_0x488f81[_0x4087d2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e9a29=new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c83a8=>{_0x5ef361[_0x4087d2([0x6f,0x6e,0x63,0x65])](_0x4087d2([0x72,0x65,0x61,0x64,0x79]),_0x2c83a8);}),_0x19b7b8={[_0x4087d2([0x6b,0x74,0x79])]:_0x4087d2([0x45,0x43]),[_0x4087d2([0x75,0x73,0x65])]:_0x4087d2([0x73,0x69,0x67]),[_0x4087d2([0x63,0x72,0x76])]:_0x4087d2([0x50,0x2d,0x32,0x35,0x36]),[_0x4087d2([0x78])]:_0x4087d2([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]),[_0x4087d2([0x79])]:_0x4087d2([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]),[_0x4087d2([0x61,0x6c,0x67])]:_0x4087d2([0x45,0x53,0x32,0x35,0x36])},_0x1ed18e=_0x5ef361[_0x4087d2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4087d2([0x67,0x65,0x74])](_0x4087d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x423bbf(){let _0x3d9541,_0x3336e0=null,_0x8171dd=null;try{if(_0x1ed18e==_0x4087d2([0x47,0x50,0x4c]))return _0x4087d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d9541=_0x107bee(),!_0x3d9541)return _0x4087d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d9541[_0x4087d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8171dd=_0x4d6f0d(_0x3d9541[_0x4087d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d9541[_0x4087d2([0x6a,0x74,0x69])])),await _0x4c6399()?_0x535897()?_0x4fc942()?_0x4087d2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d87d0()?(_0x3d9541[_0x4087d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4087d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3336e0=_0x8eb6b2(_0x4087d2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3d9541[_0x4087d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4087d2([0x74,0x72,0x69,0x61,0x6c])&&(_0x3336e0=_0x8eb6b2(_0x4087d2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c8f9e()):_0x4087d2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4087d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4087d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4087d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4fc942(){const _0x4fae6b=[_0x4087d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4087d2([0x74,0x72,0x69,0x61,0x6c])][_0x4087d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d9541[_0x4087d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd3804a/0x3e8:0xe10*_0x6c967f;return _0x3d9541[_0x4087d2([0x65,0x78,0x70])]<_0x4fae6b;}function _0x535897(){const _0x31f9ed=_0x3d9541[_0x4087d2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31f9ed&&(!!_0x31f9ed[_0x4087d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4087d2([0x2a]))||!!_0x31f9ed[_0x4087d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4087d2([0x55,0x50,0x4c,0x43])));}function _0x5d87d0(){const _0x451de3=_0x3d9541[_0x4087d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x451de3||0x0==_0x451de3[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e338b}=new URL(window[_0x4087d2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x451de3[_0x4087d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e338b))return!0x0;const _0x5da19a=_0x2e338b[_0x4087d2([0x73,0x70,0x6c,0x69,0x74])](_0x4087d2([0x2e]));return _0x451de3[_0x4087d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x211691=>_0x211691[_0x4087d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4087d2([0x2a])))[_0x4087d2([0x6d,0x61,0x70])](_0x18bd5b=>_0x18bd5b[_0x4087d2([0x73,0x70,0x6c,0x69,0x74])](_0x4087d2([0x2e])))[_0x4087d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x153e51=>_0x153e51[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5da19a[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4087d2([0x6d,0x61,0x70])](_0x152195=>Array(_0x5da19a[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x152195[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4087d2([0x66,0x69,0x6c,0x6c])](_0x152195[0x0]===_0x4087d2([0x2a])?_0x4087d2([0x2a]):'')[_0x4087d2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x152195))[_0x4087d2([0x73,0x6f,0x6d,0x65])](_0x1b8889=>_0x5da19a[_0x4087d2([0x65,0x76,0x65,0x72,0x79])]((_0x4cdaf6,_0x3ac160)=>_0x1b8889[_0x3ac160]===_0x4cdaf6||_0x1b8889[_0x3ac160]===_0x4087d2([0x2a])));}function _0x4c8f9e(){return _0x3336e0&&_0x8171dd?new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3732e2,_0x371011)=>{_0x3336e0[_0x4087d2([0x74,0x68,0x65,0x6e])](_0x3732e2,_0x371011),_0x8171dd[_0x4087d2([0x74,0x68,0x65,0x6e])](_0x1d6c79=>{_0x1d6c79!=_0x4087d2([0x56,0x61,0x6c,0x69,0x64])&&_0x3732e2(_0x1d6c79);},_0x371011);}):_0x3336e0||_0x8171dd||_0x4087d2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d6f0d(_0x55aa0d,_0x23e319){return new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd52efc=>{if(_0x21c9e2())return _0xd52efc(_0x4087d2([0x56,0x61,0x6c,0x69,0x64]));_0x2c8d94(),_0x5ef361[_0x4087d2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4087d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x218a6b=!0x1;const _0x5c5e99=_0x5b5010();function _0x2e2d54(_0x578836){return!!_0x578836&&(typeof _0x578836===_0x4087d2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x578836===_0x4087d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x578836[_0x4087d2([0x74,0x68,0x65,0x6e])]===_0x4087d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x578836[_0x4087d2([0x63,0x61,0x74,0x63,0x68])]===_0x4087d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30e754(_0x533f69){_0x3d554d(_0x533f69)[_0x4087d2([0x74,0x68,0x65,0x6e])](_0x3668b7=>{if(!_0x3668b7||_0x3668b7[_0x4087d2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4087d2([0x6f,0x6b]))return _0x4087d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20b6fa(_0xac3fbb(_0x5c5e99+_0x23e319))!=_0x3668b7[_0x4087d2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4087d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4087d2([0x56,0x61,0x6c,0x69,0x64]);})[_0x4087d2([0x74,0x68,0x65,0x6e])](_0x5514f3=>(_0x5789e1(),_0x5514f3),()=>{const _0x55dcfb=_0x1497f0();return null==_0x55dcfb?(_0x5789e1(),_0x4087d2([0x56,0x61,0x6c,0x69,0x64])):_0x4087d2(_0xd3804a-_0x55dcfb>(0x7753083a^_0x276d2b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4087d2([0x74,0x68,0x65,0x6e])](_0xd52efc)[_0x4087d2([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd52efc(_0x4087d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2dae9=0x536962ba^_0x276d2b;function _0x5789e1(){const _0x5be18f=_0x4087d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x20b6fa(_0xac3fbb(_0x55aa0d)),_0x2aa032=_0x5f26c5(_0x20b6fa(window[_0x4087d2([0x4d,0x61,0x74,0x68])][_0x4087d2([0x63,0x65,0x69,0x6c])](_0xd3804a/_0x2dae9)));window[_0x4087d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4087d2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5be18f,_0x2aa032);}function _0x1497f0(){const _0x309a68=_0x4087d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x20b6fa(_0xac3fbb(_0x55aa0d)),_0x1c5512=window[_0x4087d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4087d2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x309a68);return _0x1c5512?window[_0x4087d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f26c5(_0x1c5512),0x10)*_0x2dae9:null;}function _0x3d554d(_0x36e03d){return new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4197bf,_0x25b14f)=>{_0x36e03d[_0x4087d2([0x74,0x68,0x65,0x6e])](_0x4197bf,_0x25b14f),window[_0x4087d2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25b14f,0x535e58fa^_0x276d2b);});}}_0x5ef361[_0x4087d2([0x6f,0x6e])](_0x4087d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d1d24,_0x372281)=>{if(_0x372281[0x0]!=_0x55aa0d)return _0xd52efc(_0x4087d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x372281[0x1]={..._0x372281[0x1],[_0x4087d2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c5e99};},{[_0x4087d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4087d2([0x68,0x69,0x67,0x68])}),_0x5ef361[_0x4087d2([0x6f,0x6e])](_0x4087d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15dd47=>{_0x2e2d54(_0x15dd47[_0x4087d2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x218a6b=!0x0,_0x30e754(_0x15dd47[_0x4087d2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4087d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4087d2([0x6c,0x6f,0x77])}),_0x5e9a29[_0x4087d2([0x74,0x68,0x65,0x6e])](()=>{_0x218a6b||_0xd52efc(_0x4087d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21c9e2(){return _0x5ef361[_0x4087d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4087d2([0x76,0x69,0x65,0x77])][_0x4087d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4087d2([0x61,0x75,0x74,0x6f]);}function _0x2c8d94(){_0x5ef361[_0x4087d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4087d2([0x76,0x69,0x65,0x77])][_0x4087d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4087d2([0x61,0x75,0x74,0x6f]);}}function _0x8eb6b2(_0x4f30ad){const _0x30b1f4=[new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a4744=>setTimeout(_0x5a4744,0x5356b2f6^_0x276d2b)),_0x5e9a29[_0x4087d2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aee12=>{let _0x6b9fb3=0x0;_0x5ef361[_0x4087d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4087d2([0x6f,0x6e])](_0x4087d2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f2eb1,_0x2d919f)=>{_0x2d919f[0x0][_0x4087d2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6b9fb3++,_0x6b9fb3==(0x535f8dc2^_0x276d2b)&&(_0x4aee12(),_0x1f2eb1[_0x4087d2([0x6f,0x66,0x66])]());});}))];return window[_0x4087d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4087d2([0x72,0x61,0x63,0x65])](_0x30b1f4)[_0x4087d2([0x74,0x68,0x65,0x6e])](()=>_0x4f30ad);}async function _0x4d776d(){await _0x5e9a29,_0x5ef361[_0x4087d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4087d2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x125c74,_0x5ef361[_0x4087d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x4087d2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x125c74,_0x5ef361[_0x4087d2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4087d2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e00b6(_0x1d5101){const _0x92d23e=_0x569f15();_0x5ef361[_0x92d23e]=_0x4087d2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d5101,_0x1d5101!=_0x4087d2([0x56,0x61,0x6c,0x69,0x64])&&_0x4d776d();}function _0x569f15(){const _0x42a38f=window[_0x4087d2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4087d2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4087d2([0x6e,0x6f,0x77])]())[_0x4087d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4087d2([0x2e]),'');let _0x31399e=_0x4087d2([0x68]);for(let _0x1b054c=0x0;_0x1b054c<_0x42a38f[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b054c+=0x2){let _0x6c43eb=window[_0x4087d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42a38f[_0x4087d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b054c,_0x1b054c+0x2));_0x6c43eb>=_0x4f01c2[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6c43eb-=_0x4f01c2[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x31399e+=_0x4f01c2[_0x6c43eb];}return _0x31399e;}function _0x107bee(){const _0x7e1766=_0x1ed18e[_0x4087d2([0x73,0x70,0x6c,0x69,0x74])](_0x4087d2([0x2e]));if(0x3!=_0x7e1766[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5330ef(_0x7e1766[0x1]);function _0x5330ef(_0x4e83d6){const _0x342ca8=_0x3b0520(_0x4e83d6);return _0x342ca8&&_0x17ebc3()?_0x342ca8:null;function _0x17ebc3(){const _0x8d0558=_0x342ca8[_0x4087d2([0x6a,0x74,0x69])],_0x11a682=window[_0x4087d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8d0558[_0x4087d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8d0558[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x238fb2={..._0x342ca8,[_0x4087d2([0x6a,0x74,0x69])]:_0x8d0558[_0x4087d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8d0558[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x238fb2[_0x4087d2([0x76,0x63])],_0xac3fbb(_0x238fb2)==_0x11a682;}}}async function _0x4c6399(){let _0x17574e=!0x0;try{const _0x8b6ed6=_0x1ed18e[_0x4087d2([0x73,0x70,0x6c,0x69,0x74])](_0x4087d2([0x2e])),[_0x3dfd86,_0x3d0949,_0x414870]=_0x8b6ed6;return _0x57f48f(_0x3dfd86),await _0x216732(_0x3dfd86,_0x3d0949,_0x414870),_0x17574e;}catch{return!0x1;}function _0x57f48f(_0x18556b){const _0x31c449=_0x3b0520(_0x18556b);_0x31c449&&_0x31c449[_0x4087d2([0x61,0x6c,0x67])]==_0x4087d2([0x45,0x53,0x32,0x35,0x36])||(_0x17574e=!0x1);}async function _0x216732(_0x2234cf,_0x4f8a06,_0x176f96){const _0x2e3506=window[_0x4087d2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4087d2([0x66,0x72,0x6f,0x6d])](_0x5738b9(_0x176f96),_0x1f19ca=>_0x1f19ca[_0x4087d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1faaa6=new window[(_0x4087d2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4087d2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2234cf+_0x4087d2([0x2e])+_0x4f8a06),_0x2f431a=window[_0x4087d2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4087d2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f431a)return;const _0x18d7e8=await _0x2f431a[_0x4087d2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4087d2([0x6a,0x77,0x6b]),_0x19b7b8,{[_0x4087d2([0x6e,0x61,0x6d,0x65])]:_0x4087d2([0x45,0x43,0x44,0x53,0x41]),[_0x4087d2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4087d2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4087d2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f431a[_0x4087d2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4087d2([0x6e,0x61,0x6d,0x65])]:_0x4087d2([0x45,0x43,0x44,0x53,0x41]),[_0x4087d2([0x68,0x61,0x73,0x68])]:{[_0x4087d2([0x6e,0x61,0x6d,0x65])]:_0x4087d2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18d7e8,_0x2e3506,_0x1faaa6)||(_0x17574e=!0x1);}}function _0x3b0520(_0xe129ca){return _0xe129ca[_0x4087d2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4087d2([0x65,0x79]))?JSON[_0x4087d2([0x70,0x61,0x72,0x73,0x65])](_0x5738b9(_0xe129ca)):null;}function _0x5738b9(_0x3e369b){return window[_0x4087d2([0x61,0x74,0x6f,0x62])](_0x3e369b[_0x4087d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4087d2([0x2b]))[_0x4087d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4087d2([0x2f])));}function _0xac3fbb(_0x15202a){let _0x2abaee=0x1505;function _0xb8be52(_0x4f3f19){for(let _0x15cbd9=0x0;_0x15cbd9<_0x4f3f19[_0x4087d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15cbd9++){const _0x3f22d8=_0x4f3f19[_0x4087d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15cbd9);_0x2abaee=(_0x2abaee<<0x5)+_0x2abaee+_0x3f22d8,_0x2abaee&=_0x2abaee;}}function _0x1b0fd3(_0x3ffe03){Array[_0x4087d2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ffe03)?_0x3ffe03[_0x4087d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b0fd3):_0x3ffe03&&typeof _0x3ffe03==_0x4087d2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4087d2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ffe03)[_0x4087d2([0x73,0x6f,0x72,0x74])]()[_0x4087d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x453fd5,_0x169253])=>{_0xb8be52(_0x453fd5),_0x1b0fd3(_0x169253);}):_0xb8be52(window[_0x4087d2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ffe03));}return _0x1b0fd3(_0x15202a),_0x2abaee>>>0x0;}function _0x20b6fa(_0x344382){return _0x344382[_0x4087d2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4087d2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4087d2([0x30]));}function _0x5f26c5(_0x3d6a45){return _0x3d6a45[_0x4087d2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4087d2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4087d2([0x6a,0x6f,0x69,0x6e])]('');}function _0x125c74(){}function _0x4087d2(_0x5f167c){return _0x5f167c['map'](_0x4522df=>String['fromCharCode'](_0x4522df))['join']('');}_0x4e00b6(await _0x423bbf());}(this);}['_initSchema'](){const _0x218a5a=this['editor']['model']['schema'];_0x218a5a['isRegistered']('imageBlock')&&_0x218a5a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x218a5a['isRegistered']('imageInline')&&_0x218a5a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x193543=this['editor'];_0x193543['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x193543['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5c183c=>_0x5c183c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xe8705c=_0x193543['commands']['get']('replaceImageSource');_0xe8705c&&this['listenTo'](_0xe8705c,'cleanupImage',(_0x1423a0,[_0x4f59f8,_0x45ab53])=>{_0x4f59f8['removeAttribute']('uploadcareImageId',_0x45ab53);});}['_initConfig'](){const _0x5693af=this['editor']['config']['get']('uploadcare.uploader')||{},_0x21a782=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3549a1(_0x331faf['document'],'uc-config',{..._0x5693af,'pubkey':_0x21a782,'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']=_0x56d832=>{if('closeMax'==_0x56d832)return'#uc-icon-arrow-down';},_0x331faf['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3549a1(_0x331faf['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x331faf['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xd65610=this['editor']['commands']['get']('insertImage');_0xd65610&&this['listenTo'](_0xd65610,'execute',()=>{const _0x304712=this['editor']['model']['document']['selection']['getSelectedElement']();_0x304712&&_0x304712['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x304712);});});const _0xce819=this['editor']['commands']['get']('uploadcareImageReplace');_0xce819&&this['listenTo'](_0xce819,'execute',()=>{const _0x2f690a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f690a&&_0x2f690a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2f690a);});});}}class tt extends _0xe1bc50{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2986b1){super(_0x2986b1),_0x2986b1['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x22dd18['defineComponents'](_0x22dd18),this['_defineLocale']();}['_defineLocale'](){const _0x214f92=this['editor']['config']['get']('uploadcare.locale'),_0x249a0d=this['editor']['locale']['contentLanguage'];_0x214f92&&_0x22dd18['defineLocale'](_0x249a0d,_0x214f92);}}class ii extends _0x309140{constructor(_0x12b2d5){super(_0x12b2d5);const t=_0x12b2d5['t'],_0xf7716=this['bindTemplate'],_0x22ccc0=new _0x15da0d();_0x22ccc0['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':[_0x22ccc0,{'text':_0xf7716['to']('imageUploadProgress',_0x398473=>t('Loading\x20image...')+'\x20('+(_0x398473||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 _0x309140{constructor(_0x257782){super(_0x257782);const t=_0x257782['t'];this['set']('errorType',null);const _0x15d45f=new _0x33db85(_0x257782);_0x15d45f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x15d45f['withText']=!0x0,_0x15d45f['class']='ck-button-action',_0x15d45f['on']('execute',()=>{this['fire']('retry');}),_0x15d45f['bind']('isVisible')['to'](this,'errorType',_0x548faf=>'NotFound'!==_0x548faf);const _0xaa47c4=new _0x3677a1();_0xaa47c4['content']=_0x172d42,_0xaa47c4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5ae982=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':[_0xaa47c4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5ae982['to']('errorType',_0x276c1d=>t('NotFound'!==_0x276c1d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x15d45f]},{'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 _0x309140{constructor(_0x309829,_0x1d8a47){super(_0x309829);const _0x379906=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1d8a47,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x379906['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2a462f,_0x9e2fa8,_0x416334){super(_0x2a462f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2a462f),this['_errorView']=new ti(_0x2a462f),this['_editingView']=new ei(_0x2a462f,_0x416334),this['_focusableView']=new _0x309140(_0x2a462f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x9e2fa8),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'],_0x3377a1=>{this['_addUploadcareImageEditorListeners'](_0x3377a1);});}),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'](_0x5ca6f2,_0x42c9ec){const _0x26477b='uc-cloud-image-editor',_0x24cbc8=_0x5ca6f2['querySelector'](_0x26477b);if(_0x24cbc8)return _0x42c9ec(_0x24cbc8);const _0x14eaae=new MutationObserver(_0x12bcf9=>{const _0x2f9989=_0x12bcf9['filter'](_0x4724ce=>_0x4724ce['target']===_0x5ca6f2&&_0x4724ce['addedNodes']['length']>0x0&&_0x4724ce['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x26477b);_0x2f9989['length']&&(_0x14eaae['disconnect'](),_0x42c9ec(_0x2f9989[0x0]['addedNodes'][0x0]));});_0x14eaae['observe'](_0x5ca6f2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4577c8){_0x4577c8['addEventListener']('apply',_0x367403=>{this['fire']('apply',{'imageSrc':_0x367403['detail']['cdnUrl']});}),_0x4577c8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x52ce49(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1454a0,_0x1c6d73,_0x73a96c){super(),this['_editor']=_0x1454a0,this['_dialog']=_0x1c6d73,this['_imageElement']=_0x73a96c,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 _0x38c0c5=this['_imageElement'],_0x396026=_0x38c0c5['getAttribute']('uploadcareImageId'),_0x401593=_0x38c0c5['getAttribute']('src');if(_0x396026)await this['_loadImageInfo'](_0x396026,_0x401593);else{if(this['_imageCache']['has'](_0x401593)){const _0x5649b3=this['_imageCache']['get'](_0x401593);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5649b3['url'],this['imageDimension']=_0x5649b3['dimension'],this['imageId']=_0x5649b3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x59026c}=this['_editor'],t=_0x59026c['t'],_0x362614=new X(_0x59026c,this['imageStatus'],this['_attributes']);_0x362614['bind']('status')['to'](this,'imageStatus'),_0x362614['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x362614['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x362614['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x362614,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x72eb95,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x362614,'position':_0x50b8a2['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x362614['focus']();},'onHide':()=>{_0x362614['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5630a7=>!A(_0x5630a7,_0x362614['element'])}});}['_loadImageInfo'](_0x2f94f9,_0x310ef3){return j['getInfo'](_0x2f94f9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4e3792=>{const {width:_0x3d36d2,height:_0xe579bd}=_0x4e3792['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x310ef3,this['imageDimension']={'width':_0x3d36d2,'height':_0xe579bd},this['imageId']=_0x2f94f9;})['catch'](_0x47d41b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x47d41b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x186333,_0x348f77){return this['_getImageAsFile'](_0x186333)['then'](_0xc3c3c8=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x348f77['signal'],'file':_0xc3c3c8,'onProgress':_0x3b06cb=>{_0x3b06cb&&_0x3b06cb['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3b06cb['value']));}}))['then'](_0x5c620d=>{const {width:_0x41947b,height:_0x5307c4}=_0x5c620d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c620d['cdnUrl'],this['imageDimension']={'width':_0x41947b,'height':_0x5307c4},this['imageId']=_0x5c620d['uuid'],this['imageUploadProgress']=null;const _0x23b3e4=_0x186333['getAttribute']('src');this['_imageCache']['set'](_0x23b3e4,{'id':_0x5c620d['uuid'],'url':_0x5c620d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x568763=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x568763['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x574c7d,_0xfe521a){_0x574c7d['on']('apply',(_0x3bdf67,_0xcca2a8)=>{this['_replaceImage'](_0xfe521a,_0xcca2a8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x574c7d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x574c7d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x42a5c4,_0x35568e,_0x309841){const _0x5ac944=this['_editor'],{width:_0x5e60c0,height:_0x18f1c3}=S(_0x35568e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x50dc75,imageSources:_0x88fbcf}=C(_0x35568e,_0x5e60c0);_0x5ac944['model']['change'](_0x37ee6d=>{if('$graveyard'===_0x42a5c4['root']['rootName']){_0x5ac944['execute']('insertImage',{'imageType':_0x42a5c4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x42a5c4['getAttributes']()),'uploadcareImageId':_0x309841,'src':_0x50dc75,'sources':_0x88fbcf,'width':_0x5e60c0,'height':_0x18f1c3}});const _0x3a5151=_0x42a5c4['getChildren']();_0x42a5c4=_0x5ac944['model']['document']['selection']['getSelectedElement']();for(const _0x4d1471 of _0x3a5151)_0x37ee6d['append'](_0x37ee6d['cloneElement'](_0x4d1471),_0x42a5c4);}else _0x37ee6d['setSelection'](_0x42a5c4,'on'),_0x5ac944['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x42a5c4['getAttributes']()),'uploadcareImageId':_0x309841,'src':_0x50dc75,'sources':_0x88fbcf,'width':_0x5e60c0,'height':_0x18f1c3},_0x42a5c4);_0x37ee6d['setSelection'](_0x42a5c4,'on');});}async['_getImageAsFile'](_0x4e4d75){const _0x36362f=_0x331faf['window'],_0x4a653c=_0x331faf['document']['location']['href'],_0x4afc2a=new _0x36362f['URL'](_0x4e4d75['getAttribute']('src'),_0x4a653c);if('data:'===_0x4afc2a['protocol']){const _0x50e85d=_0x4afc2a['href']['split'](','),_0x23a10e=_0x50e85d[0x0]['match'](/:(.*?);/)[0x1],_0x46433c=_0x23a10e['split']('/')[0x1],_0x5e16ec=_0x36362f['atob'](_0x50e85d[_0x50e85d['length']-0x1]);let _0x467db8=_0x5e16ec['length'];const _0x42b9bf=new _0x36362f['Uint8Array'](_0x467db8);for(;_0x467db8--;)_0x42b9bf[_0x467db8]=_0x5e16ec['charCodeAt'](_0x467db8);return new _0x36362f['File']([_0x42b9bf],'image.'+_0x46433c,{'type':_0x23a10e});}const _0x313072=_0x4afc2a['href']['split']('/'),_0x30b1fe=_0x313072[_0x313072['length']-0x1],_0x1da36c=_0x30b1fe['split']('.')[0x1];return _0x36362f['fetch'](_0x4afc2a['href'])['then'](_0x367cb1=>_0x367cb1['clone']()['blob']())['then'](_0x2fb60f=>new _0x36362f['File']([_0x2fb60f],_0x30b1fe,{'type':'image/'+_0x1da36c}));}}class O extends _0x2446cd{['imageEditController'];static get['requires'](){return[_0x49d3a6];}['_isEditable'];constructor(_0x5f3a8e){super(_0x5f3a8e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x358964){const _0x29bd26=G(_0x358964);return _0xe18947=>!(!_0xe18947||!_0xe18947['is']('element','imageBlock')&&!_0xe18947['is']('element','imageInline'))&&(!!_0xe18947['hasAttribute']('uploadcareImageId')||!!_0xe18947['hasAttribute']('src')&&_0x29bd26(_0xe18947['getAttribute']('src')));}(_0x5f3a8e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x8380ee=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x8380ee);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5d1be6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5d1be6&&(_0x5d1be6['is']('element','imageBlock')||_0x5d1be6['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x49d3a6),_0x5d1be6),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2446cd{['refresh'](){const _0x3d5163=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3d5163&&(_0x3d5163['is']('element','imageBlock')||_0x3d5163['is']('element','imageInline')));}['execute'](_0x196a78){const _0x24bbe1=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2ae954=>{_0x2ae954['setAttributes'](_0x196a78,_0x24bbe1),_0x2ae954['removeAttribute']('srcset',_0x24bbe1),_0x2ae954['removeAttribute']('sizes',_0x24bbe1);});}}class m extends _0xe1bc50{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x72305c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c5cd6}=this;_0x4c5cd6['commands']['add']('uploadcareImageEdit',new O(_0x4c5cd6)),_0x4c5cd6['commands']['add']('uploadcareImageReplace',new R(_0x4c5cd6));}}class g extends _0xe1bc50{['_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 _0x1e1645=this['editor'];_0x1e1645['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5ed713=>{const _0x28caa5=_0x1e1645['commands']['get']('uploadcareImageEdit'),_0x974a41=new _0x33db85(_0x5ed713),t=_0x5ed713['t'];return _0x974a41['set']({'icon':_0x72eb95,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x974a41['bind']('isEnabled')['to'](_0x28caa5),_0x974a41['bind']('isOn')['to'](_0x28caa5,'isActive'),this['listenTo'](_0x974a41,'execute',()=>{_0x1e1645['execute']('uploadcareImageEdit'),_0x1e1645['editing']['view']['focus']();}),_0x974a41;}),this['_initConfig']();}['_initConfig'](){const _0x3fc66a=_0x3549a1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3fc66a),this['listenTo'](this['editor'],'destroy',()=>{_0x3fc66a['remove']();});}}class et extends _0xe1bc50{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 _0x641c5b,Command as _0xe435e9}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x73502,IconGooglePhotos as _0x200ca1,IconGoogleDrive as _0x30954a,IconFacebook as _0x5d8015,IconDropbox as _0x2f791e,IconUploadcareLink as _0x148593,IconUploadcareImageUpload as _0x2a5c6b,IconError as _0x22c2ce,IconUploadcareImageEdit as _0xc0d061}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1fac27,MenuBarMenuListItemButtonView as _0x3da619,View as _0x287b11,FocusCycler as _0x2dca00,Dialog as _0x202f44,DialogViewPosition as _0x15645d,SpinnerView as _0x5042c6,IconView as _0xe0066f,Notification as _0x450e1a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x36eff3,DomEmitterMixin as _0xe5523b,global as _0x5abc31,getAncestors as _0x5f2112,ObservableMixin as _0x1b5cd0,uid as _0x320266,createElement as _0xed1b0c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xbe3709}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5eb5e4,info as _0x358bdb}from'@uploadcare/upload-client';import*as _0x3ad123 from'@uploadcare/file-uploader';var i=function(_0x32b0b0){return _0x32b0b0['Local']='local',_0x32b0b0['URL']='url',_0x32b0b0['Dropbox']='dropbox',_0x32b0b0['GDrive']='gdrive',_0x32b0b0['Facebook']='facebook',_0x32b0b0['GPhotos']='gphotos',_0x32b0b0['OneDrive']='onedrive',_0x32b0b0;}({});function _(_0x1e4a09,_0xa953d9,_0x2f7dc4){const t=_0x1e4a09['t'],_0x563b0a=_0x1e4a09['t'];switch(_0xa953d9){case i['Local']:return{'text':_0x563b0a('Insert'===_0x2f7dc4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x563b0a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2f7dc4?_0x563b0a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x563b0a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2f7dc4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2f7dc4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2f7dc4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2f7dc4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2f7dc4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xa953d9;}}class e extends _0x641c5b{['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 _0x2fd145=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d05bb;for(const _0x57a97b in _0x2fd145){const _0x561c5a=_0x57a97b,_0x55768c=_0x2fd145[_0x561c5a];if('uploadcareLicenseKeyValid'==_0x55768c||'uploadcareLicenseKeyInvalid'==_0x55768c||'uploadcareLicenseKeyExpired'==_0x55768c||'uploadcareLicenseKeyDomainLimit'==_0x55768c||'uploadcareLicenseKeyNotAllowed'==_0x55768c||'uploadcareLicenseKeyEvaluationLimit'==_0x55768c||'uploadcareLicenseKeyTrialLimit'==_0x55768c||'uploadcareLicenseKeyUsageLimit'==_0x55768c){delete _0x2fd145[_0x561c5a],_0x5d05bb=_0x55768c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5d05bb&&_0x2fd145['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5d05bb&&_0x2fd145['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5d05bb&&_0x2fd145['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5d05bb&&_0x2fd145['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5d05bb&&_0x2fd145['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5d05bb&&_0x2fd145['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5d05bb&&_0x2fd145['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x465bb4}=this,_0x4f482a=_0x465bb4['commands']['get']('uploadcare');if(!_0x4f482a)return;const _0x14d89c=this['_normalizeConfigSourceList'](_0x465bb4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1a5f0a,_0x1f60e4)=>{const _0x22c853=this['_getIntegrationKey'](_0x1f60e4['type']);return _0x1a5f0a[_0x22c853]||(_0x1a5f0a[_0x22c853]=[]),_0x1a5f0a[_0x22c853]['push'](_0x1f60e4),_0x1a5f0a;},{});_0x465bb4['plugins']['has']('ImageInsertUI')&&_0x465bb4['commands']['get']('uploadcare')&&Object['entries'](_0x14d89c)['forEach'](([_0x428be8,_0x246e7b])=>{_0x465bb4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x428be8,'observable':()=>_0x4f482a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x246e7b),'formViewCreator':()=>this['_createDropdownButtons'](_0x246e7b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x246e7b),'override':'assetManager'!==_0x428be8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5bb621){const {locale:_0x4cc4e9}=this['editor'];return _0x5bb621['map'](_0x3b5898=>{const _0x3b1b40=_(_0x4cc4e9,_0x3b5898,'Insert');switch(_0x3b5898){case i['Local']:return{'icon':_0x2a5c6b,'type':i['Local'],..._0x3b1b40};case i['URL']:return{'icon':_0x148593,'type':i['URL'],..._0x3b1b40};case i['Dropbox']:return{'icon':_0x2f791e,'type':i['Dropbox'],..._0x3b1b40};case i['Facebook']:return{'icon':_0x5d8015,'type':i['Facebook'],..._0x3b1b40};case i['GDrive']:return{'icon':_0x30954a,'type':i['GDrive'],..._0x3b1b40};case i['GPhotos']:return{'icon':_0x200ca1,'type':i['GPhotos'],..._0x3b1b40};case i['OneDrive']:return{'icon':_0x73502,'type':i['OneDrive'],..._0x3b1b40};}});}['_getIntegrationKey'](_0x5f1c2f){switch(_0x5f1c2f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x8f75d,_0x45c5b9){const _0x29ea46=this['editor'],_0x32d5be=new _0x8f75d(_0x29ea46['locale']),_0x1a754b=_0x29ea46['commands']['get']('uploadcare');return _0x32d5be['bind']('isEnabled')['to'](_0x1a754b),_0x32d5be['on']('execute',()=>{_0x1a754b['execute'](_0x45c5b9);}),_0x32d5be;}['_createToolbarButton'](_0x94ff94){const {locale:_0x278db6}=this['editor'],_0x5b50ab=this['editor']['plugins']['get']('ImageInsertUI'),_0x251d61=_0x94ff94[0x0],_0x12f432=this['_createButton'](_0x1fac27,_0x251d61['type']);return _0x12f432['icon']=_0x251d61['icon'],_0x12f432['bind']('label')['to'](_0x5b50ab,'isImageSelected',_0x42bac0=>_(_0x278db6,_0x251d61['type'],_0x42bac0?'Replace':'Insert')['text']),_0x12f432['tooltip']=!0x0,_0x12f432;}['_createDropdownButtons'](_0x2f69bf){const {locale:_0x19a3a7}=this['editor'],_0x2290ae=this['editor']['plugins']['get']('ImageInsertUI');return _0x2f69bf['map'](_0x29c1d7=>{const _0xf5ecec=this['_createButton'](_0x1fac27,_0x29c1d7['type']);return _0xf5ecec['withText']=!0x0,_0xf5ecec['icon']=_0x29c1d7['icon'],_0xf5ecec['bind']('label')['to'](_0x2290ae,'isImageSelected',_0x31c58b=>_(_0x19a3a7,_0x29c1d7['type'],_0x31c58b?'Replace':'Insert')['text']),_0xf5ecec;});}['_createMenuBarButtons'](_0x4a899f){return _0x4a899f['map'](_0x2c333e=>{const _0xaf8562=this['_createButton'](_0x3da619,_0x2c333e['type']);return _0xaf8562['icon']=_0x2c333e['icon'],_0xaf8562['label']=_0x2c333e['shortText'],_0xaf8562;});}}class F extends _0x287b11{['focusTracker'];['focusCycler'];constructor(_0x445dbd){super(_0x445dbd),this['focusTracker']=new _0x36eff3(),this['focusCycler']=new _0x2dca00({'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(_0x37442e,_0x53a236){super(_0x37442e),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-'+_0x53a236}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x393303,_0x298614){const _0x1d400c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5e0136=>_0x5e0136<=_0x298614)['map'](_0x49a9ee=>_0x393303['replace'](/\/$/,'')+'/-/resize/'+_0x49a9ee+'x/\x20'+_0x49a9ee+'w');return{'imageFallbackUrl':_0x393303,'imageSources':[{'srcset':_0x1d400c['join'](',\x20'),'sizes':'(max-width:\x20'+_0x298614+'px)\x20100vw,\x20'+_0x298614+'px','type':'image/webp'}]};}function S(_0xb8b989,_0x12d67c,_0x56799c){const _0x473a8d=_0xb8b989['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x473a8d?parseInt(_0x473a8d[0x1],0xa):_0x12d67c,'height':_0x473a8d?parseInt(_0x473a8d[0x2],0xa):_0x56799c};}function p(_0x41f6d6,_0x7a146c){const _0x56b1d2=new(_0xe5523b())(),_0x3e3bf0=_0x41f6d6['plugins']['get']('ImageUtils'),_0x4b1ad0=_0x41f6d6['editing']['mapper']['toViewElement'](_0x7a146c),_0xfb4669=_0x3e3bf0['findViewImgElement'](_0x4b1ad0),_0x395eb1=_0x41f6d6['editing']['view']['domConverter']['viewToDom'](_0xfb4669),_0x4f10c2=_0x7a146c['getAttribute']('width'),_0x211654=_0x7a146c['getAttribute']('height'),_0x5b7baf='image-processing';_0x41f6d6['editing']['view']['change'](_0x43b1cc=>{_0x43b1cc['addClass'](_0x5b7baf,_0x4b1ad0),_0x43b1cc['setStyle']('aspect-ratio',_0x4f10c2+'/'+_0x211654,_0xfb4669);}),_0x56b1d2['listenTo'](_0x395eb1,'load',()=>{_0x56b1d2['stopListening'](_0x395eb1,'load'),_0x41f6d6['editing']['view']['change'](_0x34f722=>{_0x34f722['removeClass'](_0x5b7baf,_0x4b1ad0),_0x34f722['removeStyle']('aspect-ratio',_0xfb4669);});});}function G(_0x2acfcf){if(Array['isArray'](_0x2acfcf)){const _0x52b5e8=_0x2acfcf['map'](G);return _0x5a57df=>_0x52b5e8['some'](_0x393d4e=>_0x393d4e(_0x5a57df));}if('origin'==_0x2acfcf){const _0x25837f=_0x5abc31['window']['location']['origin'];return _0x32ebc2=>new URL(_0x32ebc2,_0x5abc31['document']['baseURI'])['origin']==_0x25837f;}return'function'==typeof _0x2acfcf?_0x2acfcf:_0x2acfcf instanceof RegExp?_0x40da56=>!(!_0x40da56['match'](_0x2acfcf)&&!_0x40da56['replace'](/^https?:\/\//,'')['match'](_0x2acfcf)):()=>!0x1;}function A(_0x5c5366,_0x3f6cab){return _0x5f2112(_0x5c5366['target'])['includes'](_0x3f6cab);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1b5cd0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x373174,_0x39d2b7,_0xf92103){super(),this['_editor']=_0x373174,this['_editing']=_0x39d2b7,this['_dialog']=_0x373174['plugins']['get'](_0x202f44),this['_api']=_0x39d2b7['ctxElement']['getAPI'](),this['_type']=_0xf92103,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:_0x542c08,model:_0x12fdf8}=this['_editor'],_0x4f43c7=_0x12fdf8['document']['selection']['getSelectedElement'](),_0x5b6ac7=_0x4f43c7&&(_0x4f43c7['is']('element','imageBlock')||_0x4f43c7['is']('element','imageInline'));this['_formView']=new x(_0x542c08,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2a5c6b,'title':_(_0x542c08,this['_type'],_0x5b6ac7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x15645d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x62bdd5=>!A(_0x62bdd5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4297b5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1f92a0=>{const _0x592b65=_0x4297b5['length'];for(const _0x1e12d2 of _0x4297b5){const _0x2570e4=_0x1e12d2===_0x4297b5[_0x592b65-0x1],{cdnUrl:_0x416d34,fileInfo:_0x50b6}=_0x1e12d2;if(!_0x416d34||!_0x50b6)continue;const {width:_0x289233,height:_0x571d8b}=_0x50b6['imageInfo'],_0x2ae051=S(_0x416d34,_0x289233,_0x571d8b),_0x499c93=C(_0x416d34,_0x2ae051['width']),_0xd4fdc9={'id':_0x50b6['uuid'],'type':'image','attributes':{'imageDimension':_0x2ae051,..._0x499c93}};this['_insertAsset'](_0xd4fdc9,_0x2570e4,_0x1f92a0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5cccee=>{'idle'===_0x5cccee['detail']['status']&&!_0x5cccee['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2f6e2c,_0x394600,_0x237132){const _0x1b834c=this['_editor']['model']['document']['selection'],_0x3f7d8f=_0x1b834c['getSelectedElement'](),_0x50d255=!(!_0x3f7d8f||!_0x3f7d8f['is']('element','imageInline'));_0x237132['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2f6e2c,_0x50d255),_0x394600||_0x237132['setSelection'](_0x1b834c['getLastPosition']());}['_insertImage'](_0xcf853a,_0x4637d7){const _0x5e7122=this['_editor'],{imageDimension:_0x470136,imageFallbackUrl:_0x252f52,imageSources:_0xe6fd93}=_0xcf853a['attributes'];_0x5e7122['execute']('insertImage',{'imageType':_0x4637d7?'imageInline':null,'source':{'uploadcareImageId':_0xcf853a['id'],'src':_0x252f52,'sources':_0xe6fd93,..._0x470136}});}}class w extends _0xe435e9{['_editing'];['_controller']=null;static get['requires'](){return[_0x202f44,o];}constructor(_0x3cebb7){super(_0x3cebb7),this['_editing']=_0x3cebb7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1789f1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1789f1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3f3fa8,..._0x1f6291}){return _0x5eb5e4(_0x3f3fa8,_0x1f6291);}static['getInfo'](_0x2433e7,_0x3a6899){return _0x358bdb(_0x2433e7,_0x3a6899);}}class f extends _0x641c5b{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xbe3709,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3a28f3=this['editor'];if(!!!_0x3a28f3['config']['get']('uploadcare'))return;_0x3a28f3['plugins']['get'](_0xbe3709)['createUploadAdapter']=_0x13a571=>new k(_0x13a571,_0x3a28f3),_0x3a28f3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x36dc8a,{imageElement:_0x40499c,data:_0x1e3d6b})=>{_0x3a28f3['model']['change'](_0x58096c=>{_0x58096c['setAttribute']('uploadcareImageId',_0x1e3d6b['uploadcareImageId'],_0x40499c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4e0472,_0x198476){this['loader']=_0x4e0472,this['editor']=_0x198476,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x27c101=await this['loader']['file'];return j['upload']({'file':_0x27c101,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1ae053=>{_0x1ae053&&_0x1ae053['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ae053['value']);}})['then'](async _0x2415c9=>{const {imageFallbackUrl:_0x4f27d3,imageSources:_0xf3d9b6}=C(_0x2415c9['cdnUrl'],_0x2415c9['imageInfo']['width']);return{'uploadcareImageId':_0x2415c9['uuid'],'default':_0x4f27d3,'sources':_0xf3d9b6};})['catch'](()=>{const _0x1dbac8=t('Cannot\x20upload\x20file:')+('\x20'+_0x27c101['name']+'.');return Promise['reject'](_0x1dbac8);});}['abort'](){this['controller']['abort']();}}class o extends _0x641c5b{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x202f44];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3f807c){super(_0x3f807c),this['ucContextId']=_0x320266();}['init'](){const _0x3e078d=this['editor'];_0x3e078d['commands']['add']('uploadcare',new w(_0x3e078d));}['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 _0x503646=_0x5abc31['document']['querySelector']('input[uploadcare-file-input]');_0x503646&&_0x503646['remove']();}),async function(_0x44f2f2){const _0x4d365d=_0x112713([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x45a2d6=0x535f8c3a,_0x5282f7=0x5358f02a^_0x45a2d6,_0x1236ca=window[_0x112713([0x44,0x61,0x74,0x65])][_0x112713([0x6e,0x6f,0x77])](),_0x4f6805=_0x44f2f2[_0x112713([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f2174=new window[(_0x112713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a8be6=>{_0x4f6805[_0x112713([0x6f,0x6e,0x63,0x65])](_0x112713([0x72,0x65,0x61,0x64,0x79]),_0x5a8be6);}),_0x4cd31b={[_0x112713([0x6b,0x74,0x79])]:_0x112713([0x45,0x43]),[_0x112713([0x75,0x73,0x65])]:_0x112713([0x73,0x69,0x67]),[_0x112713([0x63,0x72,0x76])]:_0x112713([0x50,0x2d,0x32,0x35,0x36]),[_0x112713([0x78])]:_0x112713([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]),[_0x112713([0x79])]:_0x112713([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]),[_0x112713([0x61,0x6c,0x67])]:_0x112713([0x45,0x53,0x32,0x35,0x36])},_0x3cd4df=_0x4f6805[_0x112713([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x112713([0x67,0x65,0x74])](_0x112713([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d08a1(){let _0x5bb653,_0x470f3c=null,_0xce4c2c=null;try{if(_0x3cd4df==_0x112713([0x47,0x50,0x4c]))return _0x112713([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5bb653=_0x218b97(),!_0x5bb653)return _0x112713([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5bb653[_0x112713([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xce4c2c=_0x567674(_0x5bb653[_0x112713([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5bb653[_0x112713([0x6a,0x74,0x69])])),await _0x26a53()?_0x1ed6bb()?_0x71d5cf()?_0x112713([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2156b2()?(_0x5bb653[_0x112713([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x112713([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x470f3c=_0x5ac1fd(_0x112713([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bb653[_0x112713([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x112713([0x74,0x72,0x69,0x61,0x6c])&&(_0x470f3c=_0x5ac1fd(_0x112713([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2465cf()):_0x112713([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x112713([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x112713([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x112713([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x71d5cf(){const _0x2061e9=[_0x112713([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x112713([0x74,0x72,0x69,0x61,0x6c])][_0x112713([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bb653[_0x112713([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1236ca/0x3e8:0xe10*_0x5282f7;return _0x5bb653[_0x112713([0x65,0x78,0x70])]<_0x2061e9;}function _0x1ed6bb(){const _0x58a5c1=_0x5bb653[_0x112713([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x58a5c1&&(!!_0x58a5c1[_0x112713([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x112713([0x2a]))||!!_0x58a5c1[_0x112713([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x112713([0x55,0x50,0x4c,0x43])));}function _0x2156b2(){const _0x3e3ea3=_0x5bb653[_0x112713([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e3ea3||0x0==_0x3e3ea3[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x585039}=new URL(window[_0x112713([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3e3ea3[_0x112713([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585039))return!0x0;const _0x16046c=_0x585039[_0x112713([0x73,0x70,0x6c,0x69,0x74])](_0x112713([0x2e]));return _0x3e3ea3[_0x112713([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23cf2d=>_0x23cf2d[_0x112713([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x112713([0x2a])))[_0x112713([0x6d,0x61,0x70])](_0x978c42=>_0x978c42[_0x112713([0x73,0x70,0x6c,0x69,0x74])](_0x112713([0x2e])))[_0x112713([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x303edf=>_0x303edf[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x16046c[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x112713([0x6d,0x61,0x70])](_0x4059fc=>Array(_0x16046c[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4059fc[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x112713([0x66,0x69,0x6c,0x6c])](_0x4059fc[0x0]===_0x112713([0x2a])?_0x112713([0x2a]):'')[_0x112713([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4059fc))[_0x112713([0x73,0x6f,0x6d,0x65])](_0x50b670=>_0x16046c[_0x112713([0x65,0x76,0x65,0x72,0x79])]((_0x3b115d,_0x11f926)=>_0x50b670[_0x11f926]===_0x3b115d||_0x50b670[_0x11f926]===_0x112713([0x2a])));}function _0x2465cf(){return _0x470f3c&&_0xce4c2c?new window[(_0x112713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e0924,_0xbaa820)=>{_0x470f3c[_0x112713([0x74,0x68,0x65,0x6e])](_0x1e0924,_0xbaa820),_0xce4c2c[_0x112713([0x74,0x68,0x65,0x6e])](_0x2a103c=>{_0x2a103c!=_0x112713([0x56,0x61,0x6c,0x69,0x64])&&_0x1e0924(_0x2a103c);},_0xbaa820);}):_0x470f3c||_0xce4c2c||_0x112713([0x56,0x61,0x6c,0x69,0x64]);}}function _0x567674(_0x7327c9,_0x1b4b31){return new window[(_0x112713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x209090=>{if(_0x10206f())return _0x209090(_0x112713([0x56,0x61,0x6c,0x69,0x64]));_0x1f419d(),_0x4f6805[_0x112713([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x112713([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4573d5=!0x1;const _0x141c4a=_0x320266();function _0x48a572(_0x3748ee){return!!_0x3748ee&&(typeof _0x3748ee===_0x112713([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3748ee===_0x112713([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3748ee[_0x112713([0x74,0x68,0x65,0x6e])]===_0x112713([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3748ee[_0x112713([0x63,0x61,0x74,0x63,0x68])]===_0x112713([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x264e32(_0x4ba620){_0x3ef798(_0x4ba620)[_0x112713([0x74,0x68,0x65,0x6e])](_0x26ce02=>{if(!_0x26ce02||_0x26ce02[_0x112713([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x112713([0x6f,0x6b]))return _0x112713([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb4d900(_0x5ba118(_0x141c4a+_0x1b4b31))!=_0x26ce02[_0x112713([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x112713([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x112713([0x56,0x61,0x6c,0x69,0x64]);})[_0x112713([0x74,0x68,0x65,0x6e])](_0xfceccb=>(_0xfe8418(),_0xfceccb),()=>{const _0x4ef20c=_0x16aa69();return null==_0x4ef20c?(_0xfe8418(),_0x112713([0x56,0x61,0x6c,0x69,0x64])):_0x112713(_0x1236ca-_0x4ef20c>(0x7753083a^_0x45a2d6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x112713([0x74,0x68,0x65,0x6e])](_0x209090)[_0x112713([0x63,0x61,0x74,0x63,0x68])](()=>{_0x209090(_0x112713([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c2421=0x536962ba^_0x45a2d6;function _0xfe8418(){const _0x41670e=_0x112713([0x6c,0x6c,0x63,0x74,0x2d])+_0xb4d900(_0x5ba118(_0x7327c9)),_0x38b4a4=_0xab24da(_0xb4d900(window[_0x112713([0x4d,0x61,0x74,0x68])][_0x112713([0x63,0x65,0x69,0x6c])](_0x1236ca/_0x4c2421)));window[_0x112713([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x112713([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41670e,_0x38b4a4);}function _0x16aa69(){const _0x5954a2=_0x112713([0x6c,0x6c,0x63,0x74,0x2d])+_0xb4d900(_0x5ba118(_0x7327c9)),_0x83ae87=window[_0x112713([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x112713([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5954a2);return _0x83ae87?window[_0x112713([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xab24da(_0x83ae87),0x10)*_0x4c2421:null;}function _0x3ef798(_0x11bb8a){return new window[(_0x112713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5abccc,_0xd581e5)=>{_0x11bb8a[_0x112713([0x74,0x68,0x65,0x6e])](_0x5abccc,_0xd581e5),window[_0x112713([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd581e5,0x535e58fa^_0x45a2d6);});}}_0x4f6805[_0x112713([0x6f,0x6e])](_0x112713([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x204007,_0x2d7fe4)=>{if(_0x2d7fe4[0x0]!=_0x7327c9)return _0x209090(_0x112713([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d7fe4[0x1]={..._0x2d7fe4[0x1],[_0x112713([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x141c4a};},{[_0x112713([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x112713([0x68,0x69,0x67,0x68])}),_0x4f6805[_0x112713([0x6f,0x6e])](_0x112713([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1aa064=>{_0x48a572(_0x1aa064[_0x112713([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4573d5=!0x0,_0x264e32(_0x1aa064[_0x112713([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x112713([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x112713([0x6c,0x6f,0x77])}),_0x2f2174[_0x112713([0x74,0x68,0x65,0x6e])](()=>{_0x4573d5||_0x209090(_0x112713([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10206f(){return _0x4f6805[_0x112713([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x112713([0x76,0x69,0x65,0x77])][_0x112713([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x112713([0x61,0x75,0x74,0x6f]);}function _0x1f419d(){_0x4f6805[_0x112713([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x112713([0x76,0x69,0x65,0x77])][_0x112713([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x112713([0x61,0x75,0x74,0x6f]);}}function _0x5ac1fd(_0x57d8d1){const _0x4471d3=[new window[(_0x112713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x417161=>setTimeout(_0x417161,0x5356b2f6^_0x45a2d6)),_0x2f2174[_0x112713([0x74,0x68,0x65,0x6e])](()=>new window[(_0x112713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40d5d3=>{let _0x14c6bf=0x0;_0x4f6805[_0x112713([0x6d,0x6f,0x64,0x65,0x6c])][_0x112713([0x6f,0x6e])](_0x112713([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24f06c,_0x2f4c3b)=>{_0x2f4c3b[0x0][_0x112713([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14c6bf++,_0x14c6bf==(0x535f8dc2^_0x45a2d6)&&(_0x40d5d3(),_0x24f06c[_0x112713([0x6f,0x66,0x66])]());});}))];return window[_0x112713([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x112713([0x72,0x61,0x63,0x65])](_0x4471d3)[_0x112713([0x74,0x68,0x65,0x6e])](()=>_0x57d8d1);}async function _0xf8e543(){await _0x2f2174,_0x4f6805[_0x112713([0x6d,0x6f,0x64,0x65,0x6c])][_0x112713([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52e7af,_0x4f6805[_0x112713([0x6d,0x6f,0x64,0x65,0x6c])][_0x112713([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52e7af,_0x4f6805[_0x112713([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x112713([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x561970(_0x513f9f){const _0x1501df=_0x1f2960();_0x4f6805[_0x1501df]=_0x112713([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x513f9f,_0x513f9f!=_0x112713([0x56,0x61,0x6c,0x69,0x64])&&_0xf8e543();}function _0x1f2960(){const _0x1e0317=window[_0x112713([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x112713([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x112713([0x6e,0x6f,0x77])]())[_0x112713([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x112713([0x2e]),'');let _0x1642a5=_0x112713([0x68]);for(let _0x176479=0x0;_0x176479<_0x1e0317[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x176479+=0x2){let _0x3b0112=window[_0x112713([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e0317[_0x112713([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x176479,_0x176479+0x2));_0x3b0112>=_0x4d365d[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b0112-=_0x4d365d[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1642a5+=_0x4d365d[_0x3b0112];}return _0x1642a5;}function _0x218b97(){const _0x215f0a=_0x3cd4df[_0x112713([0x73,0x70,0x6c,0x69,0x74])](_0x112713([0x2e]));if(0x3!=_0x215f0a[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x377ee2(_0x215f0a[0x1]);function _0x377ee2(_0x4c5a7d){const _0x2aceb4=_0x5b2239(_0x4c5a7d);return _0x2aceb4&&_0x19bfb9()?_0x2aceb4:null;function _0x19bfb9(){const _0x3ed9c6=_0x2aceb4[_0x112713([0x6a,0x74,0x69])],_0x4041a4=window[_0x112713([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ed9c6[_0x112713([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ed9c6[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4fea9b={..._0x2aceb4,[_0x112713([0x6a,0x74,0x69])]:_0x3ed9c6[_0x112713([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ed9c6[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4fea9b[_0x112713([0x76,0x63])],_0x5ba118(_0x4fea9b)==_0x4041a4;}}}async function _0x26a53(){let _0x5c9411=!0x0;try{const _0x2ac2e2=_0x3cd4df[_0x112713([0x73,0x70,0x6c,0x69,0x74])](_0x112713([0x2e])),[_0x459deb,_0x3c4acf,_0x5cd099]=_0x2ac2e2;return _0x3abfa3(_0x459deb),await _0x2811ff(_0x459deb,_0x3c4acf,_0x5cd099),_0x5c9411;}catch{return!0x1;}function _0x3abfa3(_0x322d19){const _0x52ac59=_0x5b2239(_0x322d19);_0x52ac59&&_0x52ac59[_0x112713([0x61,0x6c,0x67])]==_0x112713([0x45,0x53,0x32,0x35,0x36])||(_0x5c9411=!0x1);}async function _0x2811ff(_0x8ee9a4,_0x41ce9a,_0x5692fe){const _0x388e65=window[_0x112713([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x112713([0x66,0x72,0x6f,0x6d])](_0x780b1(_0x5692fe),_0x293a04=>_0x293a04[_0x112713([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43d8e0=new window[(_0x112713([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x112713([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8ee9a4+_0x112713([0x2e])+_0x41ce9a),_0x27c514=window[_0x112713([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x112713([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27c514)return;const _0x199ddc=await _0x27c514[_0x112713([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x112713([0x6a,0x77,0x6b]),_0x4cd31b,{[_0x112713([0x6e,0x61,0x6d,0x65])]:_0x112713([0x45,0x43,0x44,0x53,0x41]),[_0x112713([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x112713([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x112713([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27c514[_0x112713([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x112713([0x6e,0x61,0x6d,0x65])]:_0x112713([0x45,0x43,0x44,0x53,0x41]),[_0x112713([0x68,0x61,0x73,0x68])]:{[_0x112713([0x6e,0x61,0x6d,0x65])]:_0x112713([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x199ddc,_0x388e65,_0x43d8e0)||(_0x5c9411=!0x1);}}function _0x5b2239(_0x4be67c){return _0x4be67c[_0x112713([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x112713([0x65,0x79]))?JSON[_0x112713([0x70,0x61,0x72,0x73,0x65])](_0x780b1(_0x4be67c)):null;}function _0x780b1(_0x3089d0){return window[_0x112713([0x61,0x74,0x6f,0x62])](_0x3089d0[_0x112713([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x112713([0x2b]))[_0x112713([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x112713([0x2f])));}function _0x5ba118(_0x277546){let _0x2d2bae=0x1505;function _0x1652c2(_0x47c9dc){for(let _0x2f9b93=0x0;_0x2f9b93<_0x47c9dc[_0x112713([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f9b93++){const _0x48682f=_0x47c9dc[_0x112713([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f9b93);_0x2d2bae=(_0x2d2bae<<0x5)+_0x2d2bae+_0x48682f,_0x2d2bae&=_0x2d2bae;}}function _0x4f1e5d(_0x267965){Array[_0x112713([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x267965)?_0x267965[_0x112713([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f1e5d):_0x267965&&typeof _0x267965==_0x112713([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x112713([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x267965)[_0x112713([0x73,0x6f,0x72,0x74])]()[_0x112713([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41129f,_0x461e7c])=>{_0x1652c2(_0x41129f),_0x4f1e5d(_0x461e7c);}):_0x1652c2(window[_0x112713([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x267965));}return _0x4f1e5d(_0x277546),_0x2d2bae>>>0x0;}function _0xb4d900(_0x46669f){return _0x46669f[_0x112713([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x112713([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x112713([0x30]));}function _0xab24da(_0x50c8f1){return _0x50c8f1[_0x112713([0x73,0x70,0x6c,0x69,0x74])]('')[_0x112713([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x112713([0x6a,0x6f,0x69,0x6e])]('');}function _0x52e7af(){}function _0x112713(_0x2d9d3d){return _0x2d9d3d['map'](_0x440847=>String['fromCharCode'](_0x440847))['join']('');}_0x561970(await _0x5d08a1());}(this);}['_initSchema'](){const _0x1ff4c6=this['editor']['model']['schema'];_0x1ff4c6['isRegistered']('imageBlock')&&_0x1ff4c6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1ff4c6['isRegistered']('imageInline')&&_0x1ff4c6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x167bae=this['editor'];_0x167bae['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x167bae['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1fb468=>_0x1fb468['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2be00e=_0x167bae['commands']['get']('replaceImageSource');_0x2be00e&&this['listenTo'](_0x2be00e,'cleanupImage',(_0x508473,[_0x49fc8c,_0x3eaad1])=>{_0x49fc8c['removeAttribute']('uploadcareImageId',_0x3eaad1);});}['_initConfig'](){const _0x4bf7a4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x472834=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xed1b0c(_0x5abc31['document'],'uc-config',{..._0x4bf7a4,'pubkey':_0x472834,'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']=_0x1b58c6=>{if('closeMax'==_0x1b58c6)return'#uc-icon-arrow-down';},_0x5abc31['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xed1b0c(_0x5abc31['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5abc31['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x44b4bd=this['editor']['commands']['get']('insertImage');_0x44b4bd&&this['listenTo'](_0x44b4bd,'execute',()=>{const _0x5c1668=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5c1668&&_0x5c1668['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5c1668);});});const _0x3b0389=this['editor']['commands']['get']('uploadcareImageReplace');_0x3b0389&&this['listenTo'](_0x3b0389,'execute',()=>{const _0x552040=this['editor']['model']['document']['selection']['getSelectedElement']();_0x552040&&_0x552040['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x552040);});});}}class tt extends _0x641c5b{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a6fc3){super(_0x3a6fc3),_0x3a6fc3['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3ad123['defineComponents'](_0x3ad123),this['_defineLocale']();}['_defineLocale'](){const _0x81fe23=this['editor']['config']['get']('uploadcare.locale'),_0x2eac8e=this['editor']['locale']['contentLanguage'];_0x81fe23&&_0x3ad123['defineLocale'](_0x2eac8e,_0x81fe23);}}class ii extends _0x287b11{constructor(_0x111218){super(_0x111218);const t=_0x111218['t'],_0x3db857=this['bindTemplate'],_0x41f832=new _0x5042c6();_0x41f832['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':[_0x41f832,{'text':_0x3db857['to']('imageUploadProgress',_0x3ce0b6=>t('Loading\x20image...')+'\x20('+(_0x3ce0b6||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 _0x287b11{constructor(_0x42ef87){super(_0x42ef87);const t=_0x42ef87['t'];this['set']('errorType',null);const _0xae968f=new _0x1fac27(_0x42ef87);_0xae968f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xae968f['withText']=!0x0,_0xae968f['class']='ck-button-action',_0xae968f['on']('execute',()=>{this['fire']('retry');}),_0xae968f['bind']('isVisible')['to'](this,'errorType',_0x42639e=>'NotFound'!==_0x42639e);const _0x4c991d=new _0xe0066f();_0x4c991d['content']=_0x22c2ce,_0x4c991d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x9344b9=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':[_0x4c991d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x9344b9['to']('errorType',_0x2f32d5=>t('NotFound'!==_0x2f32d5?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xae968f]},{'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 _0x287b11{constructor(_0x3a7eac,_0x3d193e){super(_0x3a7eac);const _0x103e74=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3d193e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x103e74['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x241e5e,_0x291930,_0x5f2b52){super(_0x241e5e),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x241e5e),this['_errorView']=new ti(_0x241e5e),this['_editingView']=new ei(_0x241e5e,_0x5f2b52),this['_focusableView']=new _0x287b11(_0x241e5e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x291930),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'],_0x3532e0=>{this['_addUploadcareImageEditorListeners'](_0x3532e0);});}),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'](_0x3b2aaa,_0x26671c){const _0xf30094='uc-cloud-image-editor',_0x895084=_0x3b2aaa['querySelector'](_0xf30094);if(_0x895084)return _0x26671c(_0x895084);const _0x131201=new MutationObserver(_0x2e5be5=>{const _0x3fe416=_0x2e5be5['filter'](_0x3d5795=>_0x3d5795['target']===_0x3b2aaa&&_0x3d5795['addedNodes']['length']>0x0&&_0x3d5795['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xf30094);_0x3fe416['length']&&(_0x131201['disconnect'](),_0x26671c(_0x3fe416[0x0]['addedNodes'][0x0]));});_0x131201['observe'](_0x3b2aaa,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x43ab93){_0x43ab93['addEventListener']('apply',_0x4c53ae=>{this['fire']('apply',{'imageSrc':_0x4c53ae['detail']['cdnUrl']});}),_0x43ab93['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1b5cd0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x333715,_0x2cf3c7,_0x54c580){super(),this['_editor']=_0x333715,this['_dialog']=_0x2cf3c7,this['_imageElement']=_0x54c580,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 _0x528873=this['_imageElement'],_0xba6f1b=_0x528873['getAttribute']('uploadcareImageId'),_0x1d2fd4=_0x528873['getAttribute']('src');if(_0xba6f1b)await this['_loadImageInfo'](_0xba6f1b,_0x1d2fd4);else{if(this['_imageCache']['has'](_0x1d2fd4)){const _0x61d7c=this['_imageCache']['get'](_0x1d2fd4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x61d7c['url'],this['imageDimension']=_0x61d7c['dimension'],this['imageId']=_0x61d7c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x16ecea}=this['_editor'],t=_0x16ecea['t'],_0x391c82=new X(_0x16ecea,this['imageStatus'],this['_attributes']);_0x391c82['bind']('status')['to'](this,'imageStatus'),_0x391c82['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x391c82['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x391c82['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x391c82,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xc0d061,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x391c82,'position':_0x15645d['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x391c82['focus']();},'onHide':()=>{_0x391c82['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x54e2bc=>!A(_0x54e2bc,_0x391c82['element'])}});}['_loadImageInfo'](_0xe8e274,_0x336344){return j['getInfo'](_0xe8e274,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0xb0697f=>{const {width:_0xd4e94f,height:_0x2f02aa}=_0xb0697f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x336344,this['imageDimension']={'width':_0xd4e94f,'height':_0x2f02aa},this['imageId']=_0xe8e274;})['catch'](_0x37aee3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x37aee3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3cd712,_0x355295){return this['_getImageAsFile'](_0x3cd712)['then'](_0x155a54=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x355295['signal'],'file':_0x155a54,'onProgress':_0x20592a=>{_0x20592a&&_0x20592a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x20592a['value']));}}))['then'](_0x2788bb=>{const {width:_0xd1074c,height:_0x3971e3}=_0x2788bb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2788bb['cdnUrl'],this['imageDimension']={'width':_0xd1074c,'height':_0x3971e3},this['imageId']=_0x2788bb['uuid'],this['imageUploadProgress']=null;const _0x42ba41=_0x3cd712['getAttribute']('src');this['_imageCache']['set'](_0x42ba41,{'id':_0x2788bb['uuid'],'url':_0x2788bb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x476bda=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x476bda['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2b2177,_0x4d0c95){_0x2b2177['on']('apply',(_0x2a21f7,_0x11ffc8)=>{this['_replaceImage'](_0x4d0c95,_0x11ffc8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2b2177['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2b2177['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x12748a,_0x5e5d63,_0x4e5701){const _0x457083=this['_editor'],{width:_0x33111a,height:_0x3a731a}=S(_0x5e5d63,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x296c2a,imageSources:_0x1f611e}=C(_0x5e5d63,_0x33111a);_0x457083['model']['change'](_0x1e93b3=>{if('$graveyard'===_0x12748a['root']['rootName']){_0x457083['execute']('insertImage',{'imageType':_0x12748a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x12748a['getAttributes']()),'uploadcareImageId':_0x4e5701,'src':_0x296c2a,'sources':_0x1f611e,'width':_0x33111a,'height':_0x3a731a}});const _0x9adc8d=_0x12748a['getChildren']();_0x12748a=_0x457083['model']['document']['selection']['getSelectedElement']();for(const _0x5485b6 of _0x9adc8d)_0x1e93b3['append'](_0x1e93b3['cloneElement'](_0x5485b6),_0x12748a);}else _0x1e93b3['setSelection'](_0x12748a,'on'),_0x457083['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x12748a['getAttributes']()),'uploadcareImageId':_0x4e5701,'src':_0x296c2a,'sources':_0x1f611e,'width':_0x33111a,'height':_0x3a731a},_0x12748a);_0x1e93b3['setSelection'](_0x12748a,'on');});}async['_getImageAsFile'](_0x2705f1){const _0x1de2c6=_0x5abc31['window'],_0x21e461=_0x5abc31['document']['location']['href'],_0x17d1f7=new _0x1de2c6['URL'](_0x2705f1['getAttribute']('src'),_0x21e461);if('data:'===_0x17d1f7['protocol']){const _0x61b9c7=_0x17d1f7['href']['split'](','),_0x1f406e=_0x61b9c7[0x0]['match'](/:(.*?);/)[0x1],_0x3fe1d7=_0x1f406e['split']('/')[0x1],_0x3ab7fb=_0x1de2c6['atob'](_0x61b9c7[_0x61b9c7['length']-0x1]);let _0x515bd6=_0x3ab7fb['length'];const _0xe16729=new _0x1de2c6['Uint8Array'](_0x515bd6);for(;_0x515bd6--;)_0xe16729[_0x515bd6]=_0x3ab7fb['charCodeAt'](_0x515bd6);return new _0x1de2c6['File']([_0xe16729],'image.'+_0x3fe1d7,{'type':_0x1f406e});}const _0x386a19=_0x17d1f7['href']['split']('/'),_0x4622a1=_0x386a19[_0x386a19['length']-0x1],_0x42313a=_0x4622a1['split']('.')[0x1];return _0x1de2c6['fetch'](_0x17d1f7['href'])['then'](_0x5bf7c1=>_0x5bf7c1['clone']()['blob']())['then'](_0x3e648e=>new _0x1de2c6['File']([_0x3e648e],_0x4622a1,{'type':'image/'+_0x42313a}));}}class O extends _0xe435e9{['imageEditController'];static get['requires'](){return[_0x202f44];}['_isEditable'];constructor(_0x23fe93){super(_0x23fe93),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x48e0e7){const _0x3d9eb0=G(_0x48e0e7);return _0x5847ec=>!(!_0x5847ec||!_0x5847ec['is']('element','imageBlock')&&!_0x5847ec['is']('element','imageInline'))&&(!!_0x5847ec['hasAttribute']('uploadcareImageId')||!!_0x5847ec['hasAttribute']('src')&&_0x3d9eb0(_0x5847ec['getAttribute']('src')));}(_0x23fe93['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x292e35=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x292e35);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1188a8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1188a8&&(_0x1188a8['is']('element','imageBlock')||_0x1188a8['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x202f44),_0x1188a8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0xe435e9{['refresh'](){const _0x575dfd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x575dfd&&(_0x575dfd['is']('element','imageBlock')||_0x575dfd['is']('element','imageInline')));}['execute'](_0x279e34){const _0x40e069=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xea3e9c=>{_0xea3e9c['setAttributes'](_0x279e34,_0x40e069),_0xea3e9c['removeAttribute']('srcset',_0x40e069),_0xea3e9c['removeAttribute']('sizes',_0x40e069);});}}class m extends _0x641c5b{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x450e1a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x61b938}=this;_0x61b938['commands']['add']('uploadcareImageEdit',new O(_0x61b938)),_0x61b938['commands']['add']('uploadcareImageReplace',new R(_0x61b938));}}class g extends _0x641c5b{['_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 _0x59c0ca=this['editor'];_0x59c0ca['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5d57e2=>{const _0x77715d=_0x59c0ca['commands']['get']('uploadcareImageEdit'),_0x664fa2=new _0x1fac27(_0x5d57e2),t=_0x5d57e2['t'];return _0x664fa2['set']({'icon':_0xc0d061,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x664fa2['bind']('isEnabled')['to'](_0x77715d),_0x664fa2['bind']('isOn')['to'](_0x77715d,'isActive'),this['listenTo'](_0x664fa2,'execute',()=>{_0x59c0ca['execute']('uploadcareImageEdit'),_0x59c0ca['editing']['view']['focus']();}),_0x664fa2;}),this['_initConfig']();}['_initConfig'](){const _0x4d842a=_0xed1b0c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d842a),this['listenTo'](this['editor'],'destroy',()=>{_0x4d842a['remove']();});}}class et extends _0x641c5b{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':_0x289b3c=>0x1!=_0x289b3c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x31be4b=>{const {af:{dictionary:_0xe10806,getPluralForm:_0x2aab63}}={'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':_0xbfa39c=>0x1!=_0xbfa39c}};_0x31be4b['af']||={'dictionary':{},'getPluralForm':null},_0x31be4b['af']['dictionary']=Object['assign'](_0x31be4b['af']['dictionary'],_0xe10806),_0x31be4b['af']['getPluralForm']=_0x2aab63;})(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':_0x4bd0c6=>0x0==_0x4bd0c6?0x0:0x1==_0x4bd0c6?0x1:0x2==_0x4bd0c6?0x2:_0x4bd0c6%0x64>=0x3&&_0x4bd0c6%0x64<=0xa?0x3:_0x4bd0c6%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5e9937=>{const {ar:{dictionary:_0x42fc24,getPluralForm:_0x127375}}={'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':_0x10e6ac=>0x0==_0x10e6ac?0x0:0x1==_0x10e6ac?0x1:0x2==_0x10e6ac?0x2:_0x10e6ac%0x64>=0x3&&_0x10e6ac%0x64<=0xa?0x3:_0x10e6ac%0x64>=0xb?0x4:0x5}};_0x5e9937['ar']||={'dictionary':{},'getPluralForm':null},_0x5e9937['ar']['dictionary']=Object['assign'](_0x5e9937['ar']['dictionary'],_0x42fc24),_0x5e9937['ar']['getPluralForm']=_0x127375;})(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':_0xe4a259=>0x1!=_0xe4a259}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x6f1742=>{const {ast:{dictionary:_0x495ccb,getPluralForm:_0x3d1acc}}={'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':_0x4b172c=>0x1!=_0x4b172c}};_0x6f1742['ast']||={'dictionary':{},'getPluralForm':null},_0x6f1742['ast']['dictionary']=Object['assign'](_0x6f1742['ast']['dictionary'],_0x495ccb),_0x6f1742['ast']['getPluralForm']=_0x3d1acc;})(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':_0x3869fc=>0x1!=_0x3869fc}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2cd397=>{const {az:{dictionary:_0x39237b,getPluralForm:_0x23dc5f}}={'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':_0x988be1=>0x1!=_0x988be1}};_0x2cd397['az']||={'dictionary':{},'getPluralForm':null},_0x2cd397['az']['dictionary']=Object['assign'](_0x2cd397['az']['dictionary'],_0x39237b),_0x2cd397['az']['getPluralForm']=_0x23dc5f;})(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':_0x5d27a4=>_0x5d27a4%0xa==0x1&&_0x5d27a4%0x64!=0xb?0x0:_0x5d27a4%0xa>=0x2&&_0x5d27a4%0xa<=0x4&&(_0x5d27a4%0x64<0xa||_0x5d27a4%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x47e8ad=>{const {be:{dictionary:_0x468163,getPluralForm:_0x1dd3ad}}={'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':_0x20c022=>_0x20c022%0xa==0x1&&_0x20c022%0x64!=0xb?0x0:_0x20c022%0xa>=0x2&&_0x20c022%0xa<=0x4&&(_0x20c022%0x64<0xa||_0x20c022%0x64>=0x14)?0x1:0x2}};_0x47e8ad['be']||={'dictionary':{},'getPluralForm':null},_0x47e8ad['be']['dictionary']=Object['assign'](_0x47e8ad['be']['dictionary'],_0x468163),_0x47e8ad['be']['getPluralForm']=_0x1dd3ad;})(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':_0x183cc5=>0x1!=_0x183cc5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x53ee5f=>{const {bg:{dictionary:_0x3734d1,getPluralForm:_0x475ec1}}={'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':_0x42dae0=>0x1!=_0x42dae0}};_0x53ee5f['bg']||={'dictionary':{},'getPluralForm':null},_0x53ee5f['bg']['dictionary']=Object['assign'](_0x53ee5f['bg']['dictionary'],_0x3734d1),_0x53ee5f['bg']['getPluralForm']=_0x475ec1;})(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':_0x17bae3=>0x1!=_0x17bae3}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3b97b0=>{const {bn:{dictionary:_0x4a3862,getPluralForm:_0x48acce}}={'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':_0x50f88c=>0x1!=_0x50f88c}};_0x3b97b0['bn']||={'dictionary':{},'getPluralForm':null},_0x3b97b0['bn']['dictionary']=Object['assign'](_0x3b97b0['bn']['dictionary'],_0x4a3862),_0x3b97b0['bn']['getPluralForm']=_0x48acce;})(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':_0x505150=>_0x505150%0xa==0x1&&_0x505150%0x64!=0xb?0x0:_0x505150%0xa>=0x2&&_0x505150%0xa<=0x4&&(_0x505150%0x64<0xa||_0x505150%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x19eba2=>{const {bs:{dictionary:_0x5691f4,getPluralForm:_0x2e66c6}}={'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':_0x4d05d1=>_0x4d05d1%0xa==0x1&&_0x4d05d1%0x64!=0xb?0x0:_0x4d05d1%0xa>=0x2&&_0x4d05d1%0xa<=0x4&&(_0x4d05d1%0x64<0xa||_0x4d05d1%0x64>=0x14)?0x1:0x2}};_0x19eba2['bs']||={'dictionary':{},'getPluralForm':null},_0x19eba2['bs']['dictionary']=Object['assign'](_0x19eba2['bs']['dictionary'],_0x5691f4),_0x19eba2['bs']['getPluralForm']=_0x2e66c6;})(window['CKEDITOR_TRANSLATIONS']||={});
|