@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251214.0 → 0.0.0-nightly-next-20251214.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 _0xf38636,Command as _0x392ed7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x7e97a7,IconGooglePhotos as _0x55fad1,IconGoogleDrive as _0xa5c6d9,IconFacebook as _0x33b9b6,IconDropbox as _0xe40a39,IconUploadcareLink as _0x29f467,IconUploadcareImageUpload as _0x31c404,IconError as _0x10dfd5,IconUploadcareImageEdit as _0x2173fe}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x52b656,MenuBarMenuListItemButtonView as _0x380de1,View as _0x1028fe,FocusCycler as _0x320b59,Dialog as _0x5f1377,DialogViewPosition as _0x16cfb1,SpinnerView as _0x2a9dcb,IconView as _0x3dae89,Notification as _0xaf71b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xc3e5b8,DomEmitterMixin as _0x4e81f9,global as _0x5b66cb,getAncestors as _0x28d403,ObservableMixin as _0x59bb24,uid as _0x4c54e9,createElement as _0x35d2c7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2b8b93}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x49f3ab,info as _0x278478}from'@uploadcare/upload-client';import*as _0x36873e from'@uploadcare/file-uploader';var i=function(_0x2278b7){return _0x2278b7['Local']='local',_0x2278b7['URL']='url',_0x2278b7['Dropbox']='dropbox',_0x2278b7['GDrive']='gdrive',_0x2278b7['Facebook']='facebook',_0x2278b7['GPhotos']='gphotos',_0x2278b7['OneDrive']='onedrive',_0x2278b7;}({});function _(_0x16086d,_0xc8c4ca,_0x3e5d78){const t=_0x16086d['t'],_0x5d4338=_0x16086d['t'];switch(_0xc8c4ca){case i['Local']:return{'text':_0x5d4338('Insert'===_0x3e5d78?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5d4338('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3e5d78?_0x5d4338('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5d4338('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3e5d78?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xc8c4ca;}}class e extends _0xf38636{['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 _0x1d7ae7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x462afa;for(const _0x444df5 in _0x1d7ae7){const _0x51533c=_0x444df5,_0x2df0cf=_0x1d7ae7[_0x51533c];if('uploadcareLicenseKeyValid'==_0x2df0cf||'uploadcareLicenseKeyInvalid'==_0x2df0cf||'uploadcareLicenseKeyExpired'==_0x2df0cf||'uploadcareLicenseKeyDomainLimit'==_0x2df0cf||'uploadcareLicenseKeyNotAllowed'==_0x2df0cf||'uploadcareLicenseKeyEvaluationLimit'==_0x2df0cf||'uploadcareLicenseKeyTrialLimit'==_0x2df0cf||'uploadcareLicenseKeyUsageLimit'==_0x2df0cf){delete _0x1d7ae7[_0x51533c],_0x462afa=_0x2df0cf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x462afa&&_0x1d7ae7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x462afa&&_0x1d7ae7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x462afa&&_0x1d7ae7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x462afa&&_0x1d7ae7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x48b09e}=this,_0x1a7044=_0x48b09e['commands']['get']('uploadcare');if(!_0x1a7044)return;const _0x5527ed=this['_normalizeConfigSourceList'](_0x48b09e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3d7862,_0x377513)=>{const _0x1a245c=this['_getIntegrationKey'](_0x377513['type']);return _0x3d7862[_0x1a245c]||(_0x3d7862[_0x1a245c]=[]),_0x3d7862[_0x1a245c]['push'](_0x377513),_0x3d7862;},{});_0x48b09e['plugins']['has']('ImageInsertUI')&&_0x48b09e['commands']['get']('uploadcare')&&Object['entries'](_0x5527ed)['forEach'](([_0x2c68fd,_0x35dad6])=>{_0x48b09e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2c68fd,'observable':()=>_0x1a7044,'buttonViewCreator':()=>this['_createToolbarButton'](_0x35dad6),'formViewCreator':()=>this['_createDropdownButtons'](_0x35dad6),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x35dad6),'override':'assetManager'!==_0x2c68fd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x43e520){const {locale:_0x1e5774}=this['editor'];return _0x43e520['map'](_0x51faac=>{const _0xec2ed1=_(_0x1e5774,_0x51faac,'Insert');switch(_0x51faac){case i['Local']:return{'icon':_0x31c404,'type':i['Local'],..._0xec2ed1};case i['URL']:return{'icon':_0x29f467,'type':i['URL'],..._0xec2ed1};case i['Dropbox']:return{'icon':_0xe40a39,'type':i['Dropbox'],..._0xec2ed1};case i['Facebook']:return{'icon':_0x33b9b6,'type':i['Facebook'],..._0xec2ed1};case i['GDrive']:return{'icon':_0xa5c6d9,'type':i['GDrive'],..._0xec2ed1};case i['GPhotos']:return{'icon':_0x55fad1,'type':i['GPhotos'],..._0xec2ed1};case i['OneDrive']:return{'icon':_0x7e97a7,'type':i['OneDrive'],..._0xec2ed1};}});}['_getIntegrationKey'](_0x4fbe56){switch(_0x4fbe56){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1d9f8c,_0x41d414){const _0x7db6e0=this['editor'],_0x26b813=new _0x1d9f8c(_0x7db6e0['locale']),_0x15985a=_0x7db6e0['commands']['get']('uploadcare');return _0x26b813['bind']('isEnabled')['to'](_0x15985a),_0x26b813['on']('execute',()=>{_0x15985a['execute'](_0x41d414);}),_0x26b813;}['_createToolbarButton'](_0x23c873){const {locale:_0x2980ca}=this['editor'],_0x478f4c=this['editor']['plugins']['get']('ImageInsertUI'),_0x2706cf=_0x23c873[0x0],_0x2808c3=this['_createButton'](_0x52b656,_0x2706cf['type']);return _0x2808c3['icon']=_0x2706cf['icon'],_0x2808c3['bind']('label')['to'](_0x478f4c,'isImageSelected',_0x162f59=>_(_0x2980ca,_0x2706cf['type'],_0x162f59?'Replace':'Insert')['text']),_0x2808c3['tooltip']=!0x0,_0x2808c3;}['_createDropdownButtons'](_0xce2cae){const {locale:_0x466251}=this['editor'],_0x7f722d=this['editor']['plugins']['get']('ImageInsertUI');return _0xce2cae['map'](_0x138452=>{const _0x81f5ca=this['_createButton'](_0x52b656,_0x138452['type']);return _0x81f5ca['withText']=!0x0,_0x81f5ca['icon']=_0x138452['icon'],_0x81f5ca['bind']('label')['to'](_0x7f722d,'isImageSelected',_0x301073=>_(_0x466251,_0x138452['type'],_0x301073?'Replace':'Insert')['text']),_0x81f5ca;});}['_createMenuBarButtons'](_0x457128){return _0x457128['map'](_0x452e3e=>{const _0xbf0adf=this['_createButton'](_0x380de1,_0x452e3e['type']);return _0xbf0adf['icon']=_0x452e3e['icon'],_0xbf0adf['label']=_0x452e3e['shortText'],_0xbf0adf;});}}class V extends _0x1028fe{['focusTracker'];['focusCycler'];constructor(_0x8ee38d){super(_0x8ee38d),this['focusTracker']=new _0xc3e5b8(),this['focusCycler']=new _0x320b59({'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 S extends V{constructor(_0x5c2cfd,_0x96f641){super(_0x5c2cfd),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-'+_0x96f641}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x14915d,_0x66f5d8){const _0x1667e4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1fd8e0=>_0x1fd8e0<=_0x66f5d8)['map'](_0x150b2a=>_0x14915d['replace'](/\/$/,'')+'/-/resize/'+_0x150b2a+'x/\x20'+_0x150b2a+'w');return{'imageFallbackUrl':_0x14915d,'imageSources':[{'srcset':_0x1667e4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x66f5d8+'px)\x20100vw,\x20'+_0x66f5d8+'px','type':'image/webp'}]};}function F(_0x2041c2,_0xb77078,_0x31b8d0){const _0x39db2d=_0x2041c2['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x39db2d?parseInt(_0x39db2d[0x1],0xa):_0xb77078,'height':_0x39db2d?parseInt(_0x39db2d[0x2],0xa):_0x31b8d0};}function p(_0x148e6a,_0x2eff1d){const _0x1de72f=new(_0x4e81f9())(),_0x457e03=_0x148e6a['plugins']['get']('ImageUtils'),_0x3cfc0d=_0x148e6a['editing']['mapper']['toViewElement'](_0x2eff1d),_0x5a0fb=_0x457e03['findViewImgElement'](_0x3cfc0d),_0x5245d5=_0x148e6a['editing']['view']['domConverter']['viewToDom'](_0x5a0fb),_0x145080=_0x2eff1d['getAttribute']('width'),_0x13aa8d=_0x2eff1d['getAttribute']('height'),_0x451e23='image-processing';_0x148e6a['editing']['view']['change'](_0x437113=>{_0x437113['addClass'](_0x451e23,_0x3cfc0d),_0x437113['setStyle']('aspect-ratio',_0x145080+'/'+_0x13aa8d,_0x5a0fb);}),_0x1de72f['listenTo'](_0x5245d5,'load',()=>{_0x1de72f['stopListening'](_0x5245d5,'load'),_0x148e6a['editing']['view']['change'](_0x5cef64=>{_0x5cef64['removeClass'](_0x451e23,_0x3cfc0d),_0x5cef64['removeStyle']('aspect-ratio',_0x5a0fb);});});}function R(_0x34cb06){if(Array['isArray'](_0x34cb06)){const _0x33f4ef=_0x34cb06['map'](R);return _0x1904f7=>_0x33f4ef['some'](_0x4a2a38=>_0x4a2a38(_0x1904f7));}if('origin'==_0x34cb06){const _0x569f06=_0x5b66cb['window']['location']['origin'];return _0x2c560a=>new URL(_0x2c560a,_0x5b66cb['document']['baseURI'])['origin']==_0x569f06;}return'function'==typeof _0x34cb06?_0x34cb06:_0x34cb06 instanceof RegExp?_0x15c0d8=>!(!_0x15c0d8['match'](_0x34cb06)&&!_0x15c0d8['replace'](/^https?:\/\//,'')['match'](_0x34cb06)):()=>!0x1;}function M(_0x1b0694,_0xd81b12){return _0x28d403(_0x1b0694['target'])['includes'](_0xd81b12);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x59bb24(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x54d715,_0x2b9cc7,_0x1fabe9){super(),this['_editor']=_0x54d715,this['_editing']=_0x2b9cc7,this['_dialog']=_0x54d715['plugins']['get'](_0x5f1377),this['_api']=_0x2b9cc7['ctxElement']['getAPI'](),this['_type']=_0x1fabe9,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:_0x442201,model:_0x35867d}=this['_editor'],_0x2bb752=_0x35867d['document']['selection']['getSelectedElement'](),_0x57f8f1=_0x2bb752&&(_0x2bb752['is']('element','imageBlock')||_0x2bb752['is']('element','imageInline'));this['_formView']=new S(_0x442201,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x31c404,'title':_(_0x442201,this['_type'],_0x57f8f1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x16cfb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53a7d1=>!M(_0x53a7d1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x21fb9d}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x282aff=>{const _0x585b07=_0x21fb9d['length'];for(const _0x1ad9bd of _0x21fb9d){const _0x64cba0=_0x1ad9bd===_0x21fb9d[_0x585b07-0x1],{cdnUrl:_0x3dccff,fileInfo:_0x27cc60}=_0x1ad9bd;if(!_0x3dccff||!_0x27cc60)continue;const {width:_0x182665,height:_0x4afa7e}=_0x27cc60['imageInfo'],_0x47f770=F(_0x3dccff,_0x182665,_0x4afa7e),_0xb841dc=C(_0x3dccff,_0x47f770['width']),_0x3ac941={'id':_0x27cc60['uuid'],'type':'image','attributes':{'imageDimension':_0x47f770,..._0xb841dc}};this['_insertAsset'](_0x3ac941,_0x64cba0,_0x282aff);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5bec5c=>{'idle'===_0x5bec5c['detail']['status']&&!_0x5bec5c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x209a86,_0x308e4b,_0x3d9268){const _0x1856d1=this['_editor']['model']['document']['selection'],_0x4fc2ae=_0x1856d1['getSelectedElement'](),_0x1471d4=!(!_0x4fc2ae||!_0x4fc2ae['is']('element','imageInline'));_0x3d9268['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x209a86,_0x1471d4),_0x308e4b||_0x3d9268['setSelection'](_0x1856d1['getLastPosition']());}['_insertImage'](_0x103dd1,_0x40fdd9){const _0x301e6c=this['_editor'],{imageDimension:_0x43af01,imageFallbackUrl:_0x5eeebf,imageSources:_0x1500ae}=_0x103dd1['attributes'];_0x301e6c['execute']('insertImage',{'imageType':_0x40fdd9?'imageInline':null,'source':{'uploadcareImageId':_0x103dd1['id'],'src':_0x5eeebf,'sources':_0x1500ae,..._0x43af01}});}}class w extends _0x392ed7{['_editing'];['_controller']=null;static get['requires'](){return[_0x5f1377,o];}constructor(_0x579464){super(_0x579464),this['_editing']=_0x579464['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5d5a1d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5d5a1d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xeefb46,..._0x216f58}){return _0x49f3ab(_0xeefb46,_0x216f58);}static['getInfo'](_0x152dd6,_0x1ca375){return _0x278478(_0x152dd6,_0x1ca375);}}class f extends _0xf38636{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2b8b93,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2a3a62=this['editor'];if(!!!_0x2a3a62['config']['get']('uploadcare'))return;_0x2a3a62['plugins']['get'](_0x2b8b93)['createUploadAdapter']=_0x11b184=>new k(_0x11b184,_0x2a3a62),_0x2a3a62['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x13cd40,{imageElement:_0x3be15c,data:_0x2dd286})=>{_0x2a3a62['model']['change'](_0x56554c=>{_0x56554c['setAttribute']('uploadcareImageId',_0x2dd286['uploadcareImageId'],_0x3be15c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1ac07a,_0x40639f){this['loader']=_0x1ac07a,this['editor']=_0x40639f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2f8851=await this['loader']['file'];return j['upload']({'file':_0x2f8851,'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':_0x55ba00=>{_0x55ba00&&_0x55ba00['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x55ba00['value']);}})['then'](async _0x12844e=>{const {imageFallbackUrl:_0x4a9ca9,imageSources:_0x200322}=C(_0x12844e['cdnUrl'],_0x12844e['imageInfo']['width']);return{'uploadcareImageId':_0x12844e['uuid'],'default':_0x4a9ca9,'sources':_0x200322};})['catch'](()=>{const _0x181c91=t('Cannot\x20upload\x20file:')+('\x20'+_0x2f8851['name']+'.');return Promise['reject'](_0x181c91);});}['abort'](){this['controller']['abort']();}}class o extends _0xf38636{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x5f1377];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x4b9548){super(_0x4b9548),this['ucContextId']=_0x4c54e9();}['init'](){const _0x1d8015=this['editor'];_0x1d8015['commands']['add']('uploadcare',new w(_0x1d8015));}['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 _0x4f7ad0=_0x5b66cb['document']['querySelector']('input[uploadcare-file-input]');_0x4f7ad0&&_0x4f7ad0['remove']();}),async function(_0x134863){const _0x509a2d=_0x1baded([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]),_0x137589=0x535f8c3a,_0x48f506=0x5358f7da^_0x137589,_0x515e1a=window[_0x1baded([0x44,0x61,0x74,0x65])][_0x1baded([0x6e,0x6f,0x77])](),_0x2d5eb2=_0x134863[_0x1baded([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x113b2f=new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f560=>{_0x2d5eb2[_0x1baded([0x6f,0x6e,0x63,0x65])](_0x1baded([0x72,0x65,0x61,0x64,0x79]),_0x57f560);}),_0x515861={[_0x1baded([0x6b,0x74,0x79])]:_0x1baded([0x45,0x43]),[_0x1baded([0x75,0x73,0x65])]:_0x1baded([0x73,0x69,0x67]),[_0x1baded([0x63,0x72,0x76])]:_0x1baded([0x50,0x2d,0x32,0x35,0x36]),[_0x1baded([0x78])]:_0x1baded([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]),[_0x1baded([0x79])]:_0x1baded([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]),[_0x1baded([0x61,0x6c,0x67])]:_0x1baded([0x45,0x53,0x32,0x35,0x36])},_0x55cc5f=_0x2d5eb2[_0x1baded([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1baded([0x67,0x65,0x74])](_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a4020(){let _0x1ef93c,_0x310c64=null,_0x3e51fc=null;try{if(_0x55cc5f==_0x1baded([0x47,0x50,0x4c]))return _0x1baded([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1ef93c=_0x5e09e3(),!_0x1ef93c)return _0x1baded([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1ef93c[_0x1baded([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e51fc=_0xad805b(_0x1ef93c[_0x1baded([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1ef93c[_0x1baded([0x6a,0x74,0x69])])),await _0x3a59cf()?_0xbd6aeb()?_0xcad6b3()?_0x1baded([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xde4bc2()?(_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1baded([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x310c64=_0x3383d1(_0x1baded([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1baded([0x74,0x72,0x69,0x61,0x6c])&&(_0x310c64=_0x3383d1(_0x1baded([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13f1ba()):_0x1baded([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1baded([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1baded([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1baded([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xcad6b3(){const _0x531777=[_0x1baded([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1baded([0x74,0x72,0x69,0x61,0x6c])][_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x515e1a/0x3e8:0xe10*_0x48f506;return _0x1ef93c[_0x1baded([0x65,0x78,0x70])]<_0x531777;}function _0xbd6aeb(){const _0x51edfd=_0x1ef93c[_0x1baded([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51edfd&&(!!_0x51edfd[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1baded([0x2a]))||!!_0x51edfd[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1baded([0x55,0x50,0x4c,0x43])));}function _0xde4bc2(){const _0x135369=_0x1ef93c[_0x1baded([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x135369||0x0==_0x135369[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x262ebb}=new URL(window[_0x1baded([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x135369[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x262ebb))return!0x0;const _0x34ec04=_0x262ebb[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e]));return _0x135369[_0x1baded([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45db86=>_0x45db86[_0x1baded([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1baded([0x2a])))[_0x1baded([0x6d,0x61,0x70])](_0x88b04a=>_0x88b04a[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e])))[_0x1baded([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3603f9=>_0x3603f9[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34ec04[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1baded([0x6d,0x61,0x70])](_0x23716d=>Array(_0x34ec04[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23716d[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1baded([0x66,0x69,0x6c,0x6c])](_0x23716d[0x0]===_0x1baded([0x2a])?_0x1baded([0x2a]):'')[_0x1baded([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23716d))[_0x1baded([0x73,0x6f,0x6d,0x65])](_0x4d086e=>_0x34ec04[_0x1baded([0x65,0x76,0x65,0x72,0x79])]((_0x9f069e,_0x277c43)=>_0x4d086e[_0x277c43]===_0x9f069e||_0x4d086e[_0x277c43]===_0x1baded([0x2a])));}function _0x13f1ba(){return _0x310c64&&_0x3e51fc?new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4820b5,_0x282171)=>{_0x310c64[_0x1baded([0x74,0x68,0x65,0x6e])](_0x4820b5,_0x282171),_0x3e51fc[_0x1baded([0x74,0x68,0x65,0x6e])](_0x44ffb5=>{_0x44ffb5!=_0x1baded([0x56,0x61,0x6c,0x69,0x64])&&_0x4820b5(_0x44ffb5);},_0x282171);}):_0x310c64||_0x3e51fc||_0x1baded([0x56,0x61,0x6c,0x69,0x64]);}}function _0xad805b(_0x134089,_0x546ff1){return new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x389445=>{if(_0xc88d2b())return _0x389445(_0x1baded([0x56,0x61,0x6c,0x69,0x64]));_0xd57cf0(),_0x2d5eb2[_0x1baded([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1baded([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ee0ec=!0x1;const _0x2839e1=_0x4c54e9();function _0x1ccd1f(_0x353f85){return!!_0x353f85&&(typeof _0x353f85===_0x1baded([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x353f85===_0x1baded([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x353f85[_0x1baded([0x74,0x68,0x65,0x6e])]===_0x1baded([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x353f85[_0x1baded([0x63,0x61,0x74,0x63,0x68])]===_0x1baded([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1be6f7(_0x2e570c){_0xdd4d1b(_0x2e570c)[_0x1baded([0x74,0x68,0x65,0x6e])](_0x26af42=>{if(!_0x26af42||_0x26af42[_0x1baded([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1baded([0x6f,0x6b]))return _0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x411582(_0x42ca4b(_0x2839e1+_0x546ff1))!=_0x26af42[_0x1baded([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1baded([0x56,0x61,0x6c,0x69,0x64]);})[_0x1baded([0x74,0x68,0x65,0x6e])](_0x20d32e=>(_0x5de448(),_0x20d32e),()=>{const _0x3f6830=_0x595167();return null==_0x3f6830?(_0x5de448(),_0x1baded([0x56,0x61,0x6c,0x69,0x64])):_0x1baded(_0x515e1a-_0x3f6830>(0x7753083a^_0x137589)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1baded([0x74,0x68,0x65,0x6e])](_0x389445)[_0x1baded([0x63,0x61,0x74,0x63,0x68])](()=>{_0x389445(_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x29d1dd=0x536962ba^_0x137589;function _0x5de448(){const _0x110548=_0x1baded([0x6c,0x6c,0x63,0x74,0x2d])+_0x411582(_0x42ca4b(_0x134089)),_0x5544d0=_0x303ce5(_0x411582(window[_0x1baded([0x4d,0x61,0x74,0x68])][_0x1baded([0x63,0x65,0x69,0x6c])](_0x515e1a/_0x29d1dd)));window[_0x1baded([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1baded([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x110548,_0x5544d0);}function _0x595167(){const _0x2ba98c=_0x1baded([0x6c,0x6c,0x63,0x74,0x2d])+_0x411582(_0x42ca4b(_0x134089)),_0x49fb31=window[_0x1baded([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1baded([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ba98c);return _0x49fb31?window[_0x1baded([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x303ce5(_0x49fb31),0x10)*_0x29d1dd:null;}function _0xdd4d1b(_0x752c1a){return new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40aa5d,_0x103552)=>{_0x752c1a[_0x1baded([0x74,0x68,0x65,0x6e])](_0x40aa5d,_0x103552),window[_0x1baded([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x103552,0x535e58fa^_0x137589);});}}_0x2d5eb2[_0x1baded([0x6f,0x6e])](_0x1baded([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55f8dc,_0x583d8d)=>{if(_0x583d8d[0x0]!=_0x134089)return _0x389445(_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x583d8d[0x1]={..._0x583d8d[0x1],[_0x1baded([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2839e1};},{[_0x1baded([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1baded([0x68,0x69,0x67,0x68])}),_0x2d5eb2[_0x1baded([0x6f,0x6e])](_0x1baded([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa91099=>{_0x1ccd1f(_0xa91099[_0x1baded([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ee0ec=!0x0,_0x1be6f7(_0xa91099[_0x1baded([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1baded([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1baded([0x6c,0x6f,0x77])}),_0x113b2f[_0x1baded([0x74,0x68,0x65,0x6e])](()=>{_0x4ee0ec||_0x389445(_0x1baded([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc88d2b(){return _0x2d5eb2[_0x1baded([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1baded([0x76,0x69,0x65,0x77])][_0x1baded([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1baded([0x61,0x75,0x74,0x6f]);}function _0xd57cf0(){_0x2d5eb2[_0x1baded([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1baded([0x76,0x69,0x65,0x77])][_0x1baded([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1baded([0x61,0x75,0x74,0x6f]);}}function _0x3383d1(_0x892355){const _0x21b98e=[new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1992d2=>setTimeout(_0x1992d2,0x5356b2f6^_0x137589)),_0x113b2f[_0x1baded([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5561d9=>{let _0x49717d=0x0;_0x2d5eb2[_0x1baded([0x6d,0x6f,0x64,0x65,0x6c])][_0x1baded([0x6f,0x6e])](_0x1baded([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x540704,_0x1a7d20)=>{_0x1a7d20[0x0][_0x1baded([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x49717d++,_0x49717d==(0x535f8dc2^_0x137589)&&(_0x5561d9(),_0x540704[_0x1baded([0x6f,0x66,0x66])]());});}))];return window[_0x1baded([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1baded([0x72,0x61,0x63,0x65])](_0x21b98e)[_0x1baded([0x74,0x68,0x65,0x6e])](()=>_0x892355);}async function _0x233ea2(){await _0x113b2f,_0x2d5eb2[_0x1baded([0x6d,0x6f,0x64,0x65,0x6c])][_0x1baded([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3bdd42,_0x2d5eb2[_0x1baded([0x6d,0x6f,0x64,0x65,0x6c])][_0x1baded([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3bdd42,_0x2d5eb2[_0x1baded([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1baded([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5377a0(_0x11933b){const _0x4d0562=_0x17767f();_0x2d5eb2[_0x4d0562]=_0x1baded([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11933b,_0x11933b!=_0x1baded([0x56,0x61,0x6c,0x69,0x64])&&_0x233ea2();}function _0x17767f(){const _0x1e14e4=window[_0x1baded([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1baded([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1baded([0x6e,0x6f,0x77])]())[_0x1baded([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1baded([0x2e]),'');let _0x1f378a=_0x1baded([0x68]);for(let _0x319fe1=0x0;_0x319fe1<_0x1e14e4[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x319fe1+=0x2){let _0x5300d0=window[_0x1baded([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e14e4[_0x1baded([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x319fe1,_0x319fe1+0x2));_0x5300d0>=_0x509a2d[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5300d0-=_0x509a2d[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f378a+=_0x509a2d[_0x5300d0];}return _0x1f378a;}function _0x5e09e3(){const _0x33648b=_0x55cc5f[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e]));if(0x3!=_0x33648b[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x28eae6(_0x33648b[0x1]);function _0x28eae6(_0x22e2bd){const _0x5d25d7=_0xbffa64(_0x22e2bd);return _0x5d25d7&&_0x5ef7f5()?_0x5d25d7:null;function _0x5ef7f5(){const _0x5ebecc=_0x5d25d7[_0x1baded([0x6a,0x74,0x69])],_0x535c90=window[_0x1baded([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ebecc[_0x1baded([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ebecc[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21015b={..._0x5d25d7,[_0x1baded([0x6a,0x74,0x69])]:_0x5ebecc[_0x1baded([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ebecc[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21015b[_0x1baded([0x76,0x63])],_0x42ca4b(_0x21015b)==_0x535c90;}}}async function _0x3a59cf(){let _0x1ebb2c=!0x0;try{const _0x4a1458=_0x55cc5f[_0x1baded([0x73,0x70,0x6c,0x69,0x74])](_0x1baded([0x2e])),[_0x4dc053,_0x3161df,_0x287edb]=_0x4a1458;return _0x49c6bf(_0x4dc053),await _0x1bae5c(_0x4dc053,_0x3161df,_0x287edb),_0x1ebb2c;}catch{return!0x1;}function _0x49c6bf(_0x588fa8){const _0xf947d1=_0xbffa64(_0x588fa8);_0xf947d1&&_0xf947d1[_0x1baded([0x61,0x6c,0x67])]==_0x1baded([0x45,0x53,0x32,0x35,0x36])||(_0x1ebb2c=!0x1);}async function _0x1bae5c(_0xa48d10,_0x4ea2a4,_0x2a9883){const _0x40b8b2=window[_0x1baded([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1baded([0x66,0x72,0x6f,0x6d])](_0x36280c(_0x2a9883),_0x206fbe=>_0x206fbe[_0x1baded([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x48b4a4=new window[(_0x1baded([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1baded([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa48d10+_0x1baded([0x2e])+_0x4ea2a4),_0x41e2ab=window[_0x1baded([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1baded([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41e2ab)return;const _0x3f4cb1=await _0x41e2ab[_0x1baded([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1baded([0x6a,0x77,0x6b]),_0x515861,{[_0x1baded([0x6e,0x61,0x6d,0x65])]:_0x1baded([0x45,0x43,0x44,0x53,0x41]),[_0x1baded([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1baded([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1baded([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41e2ab[_0x1baded([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1baded([0x6e,0x61,0x6d,0x65])]:_0x1baded([0x45,0x43,0x44,0x53,0x41]),[_0x1baded([0x68,0x61,0x73,0x68])]:{[_0x1baded([0x6e,0x61,0x6d,0x65])]:_0x1baded([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f4cb1,_0x40b8b2,_0x48b4a4)||(_0x1ebb2c=!0x1);}}function _0xbffa64(_0xf6b516){return _0xf6b516[_0x1baded([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1baded([0x65,0x79]))?JSON[_0x1baded([0x70,0x61,0x72,0x73,0x65])](_0x36280c(_0xf6b516)):null;}function _0x36280c(_0x170095){return window[_0x1baded([0x61,0x74,0x6f,0x62])](_0x170095[_0x1baded([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1baded([0x2b]))[_0x1baded([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1baded([0x2f])));}function _0x42ca4b(_0x48f7f3){let _0x5b6250=0x1505;function _0xf2e19b(_0x406a7b){for(let _0x492138=0x0;_0x492138<_0x406a7b[_0x1baded([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x492138++){const _0x1ede1c=_0x406a7b[_0x1baded([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x492138);_0x5b6250=(_0x5b6250<<0x5)+_0x5b6250+_0x1ede1c,_0x5b6250&=_0x5b6250;}}function _0x9de2d6(_0x32dd4b){Array[_0x1baded([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32dd4b)?_0x32dd4b[_0x1baded([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9de2d6):_0x32dd4b&&typeof _0x32dd4b==_0x1baded([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1baded([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32dd4b)[_0x1baded([0x73,0x6f,0x72,0x74])]()[_0x1baded([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x193098,_0x13cb4])=>{_0xf2e19b(_0x193098),_0x9de2d6(_0x13cb4);}):_0xf2e19b(window[_0x1baded([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32dd4b));}return _0x9de2d6(_0x48f7f3),_0x5b6250>>>0x0;}function _0x411582(_0x39fd4d){return _0x39fd4d[_0x1baded([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1baded([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1baded([0x30]));}function _0x303ce5(_0x7e1fae){return _0x7e1fae[_0x1baded([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1baded([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1baded([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bdd42(){}function _0x1baded(_0xa9040){return _0xa9040['map'](_0x59c2b4=>String['fromCharCode'](_0x59c2b4))['join']('');}_0x5377a0(await _0x1a4020());}(this);}['_initSchema'](){const _0x2363ea=this['editor']['model']['schema'];_0x2363ea['isRegistered']('imageBlock')&&_0x2363ea['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2363ea['isRegistered']('imageInline')&&_0x2363ea['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x238779=this['editor'];_0x238779['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x238779['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x271da2=>_0x271da2['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d5ff4=_0x238779['commands']['get']('replaceImageSource');_0x5d5ff4&&this['listenTo'](_0x5d5ff4,'cleanupImage',(_0x5a30f0,[_0x5c766b,_0x2336e0])=>{_0x5c766b['removeAttribute']('uploadcareImageId',_0x2336e0);});}['_initConfig'](){const _0x12b2fc=this['editor']['config']['get']('uploadcare.uploader')||{},_0x364610=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x35d2c7(_0x5b66cb['document'],'uc-config',{..._0x12b2fc,'pubkey':_0x364610,'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']=_0x2cf4fe=>{if('closeMax'==_0x2cf4fe)return'#uc-icon-arrow-down';},_0x5b66cb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x35d2c7(_0x5b66cb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5b66cb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2e364d=this['editor']['commands']['get']('insertImage');_0x2e364d&&this['listenTo'](_0x2e364d,'execute',()=>{const _0x1489a3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1489a3&&_0x1489a3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1489a3);});});const _0x513928=this['editor']['commands']['get']('uploadcareImageReplace');_0x513928&&this['listenTo'](_0x513928,'execute',()=>{const _0x3de0aa=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3de0aa&&_0x3de0aa['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3de0aa);});});}}class tt extends _0xf38636{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43d2ac){super(_0x43d2ac),_0x43d2ac['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x36873e['defineComponents'](_0x36873e),this['_defineLocale']();}['_defineLocale'](){const _0x2cdaae=this['editor']['config']['get']('uploadcare.locale'),_0x2190eb=this['editor']['locale']['contentLanguage'];_0x2cdaae&&_0x36873e['defineLocale'](_0x2190eb,_0x2cdaae);}}class ii extends _0x1028fe{constructor(_0x4c528b){super(_0x4c528b);const t=_0x4c528b['t'],_0x5ac325=this['bindTemplate'],_0x119521=new _0x2a9dcb();_0x119521['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':[_0x119521,{'text':_0x5ac325['to']('imageUploadProgress',_0x5673ce=>t('Loading\x20image...')+'\x20('+(_0x5673ce||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 _0x1028fe{constructor(_0x20dc80){super(_0x20dc80);const t=_0x20dc80['t'];this['set']('errorType',null);const _0x5d2c30=new _0x52b656(_0x20dc80);_0x5d2c30['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5d2c30['withText']=!0x0,_0x5d2c30['class']='ck-button-action',_0x5d2c30['on']('execute',()=>{this['fire']('retry');}),_0x5d2c30['bind']('isVisible')['to'](this,'errorType',_0x1e4f45=>'NotFound'!==_0x1e4f45);const _0x20a33e=new _0x3dae89();_0x20a33e['content']=_0x10dfd5,_0x20a33e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2c536b=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':[_0x20a33e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2c536b['to']('errorType',_0x55a408=>t('NotFound'!==_0x55a408?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5d2c30]},{'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 _0x1028fe{constructor(_0x41d2f9,_0x1c18b5){super(_0x41d2f9);const _0x34265f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1c18b5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x34265f['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1bf8da,_0x31a40d,_0x4280c7){super(_0x1bf8da),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1bf8da),this['_errorView']=new ti(_0x1bf8da),this['_editingView']=new ei(_0x1bf8da,_0x4280c7),this['_focusableView']=new _0x1028fe(_0x1bf8da),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x31a40d),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'],_0x518828=>{this['_addUploadcareImageEditorListeners'](_0x518828);});}),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'](_0x2cc399,_0xcfeffc){const _0x2cd156='uc-cloud-image-editor',_0x2e54c2=_0x2cc399['querySelector'](_0x2cd156);if(_0x2e54c2)return _0xcfeffc(_0x2e54c2);const _0xa933c0=new MutationObserver(_0x577b06=>{const _0x21e896=_0x577b06['filter'](_0x1c8b12=>_0x1c8b12['target']===_0x2cc399&&_0x1c8b12['addedNodes']['length']>0x0&&_0x1c8b12['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2cd156);_0x21e896['length']&&(_0xa933c0['disconnect'](),_0xcfeffc(_0x21e896[0x0]['addedNodes'][0x0]));});_0xa933c0['observe'](_0x2cc399,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2994b9){_0x2994b9['addEventListener']('apply',_0x4604c8=>{this['fire']('apply',{'imageSrc':_0x4604c8['detail']['cdnUrl']});}),_0x2994b9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x59bb24(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x36310a,_0x4f397e,_0x2a0121){super(),this['_editor']=_0x36310a,this['_dialog']=_0x4f397e,this['_imageElement']=_0x2a0121,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 _0x342fd4=this['_imageElement'],_0x136ccc=_0x342fd4['getAttribute']('uploadcareImageId'),_0xd88456=_0x342fd4['getAttribute']('src');if(_0x136ccc)await this['_loadImageInfo'](_0x136ccc,_0xd88456);else{if(this['_imageCache']['has'](_0xd88456)){const _0x514ab3=this['_imageCache']['get'](_0xd88456);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x514ab3['url'],this['imageDimension']=_0x514ab3['dimension'],this['imageId']=_0x514ab3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4472e0}=this['_editor'],t=_0x4472e0['t'],_0x31b014=new X(_0x4472e0,this['imageStatus'],this['_attributes']);_0x31b014['bind']('status')['to'](this,'imageStatus'),_0x31b014['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x31b014['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x31b014['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x31b014,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2173fe,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x31b014,'position':_0x16cfb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x31b014['focus']();},'onHide':()=>{_0x31b014['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xa33e04=>!M(_0xa33e04,_0x31b014['element'])}});}['_loadImageInfo'](_0x15e847,_0x2142b1){return j['getInfo'](_0x15e847,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3c6f06=>{const {width:_0xc5931f,height:_0x5caacb}=_0x3c6f06['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2142b1,this['imageDimension']={'width':_0xc5931f,'height':_0x5caacb},this['imageId']=_0x15e847;})['catch'](_0x2cd2d4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2cd2d4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x130737,_0x560d48){return this['_getImageAsFile'](_0x130737)['then'](_0x4b82ca=>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':_0x560d48['signal'],'file':_0x4b82ca,'onProgress':_0xf2cdab=>{_0xf2cdab&&_0xf2cdab['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xf2cdab['value']));}}))['then'](_0x38a147=>{const {width:_0x511fb7,height:_0x3126fb}=_0x38a147['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x38a147['cdnUrl'],this['imageDimension']={'width':_0x511fb7,'height':_0x3126fb},this['imageId']=_0x38a147['uuid'],this['imageUploadProgress']=null;const _0x74add4=_0x130737['getAttribute']('src');this['_imageCache']['set'](_0x74add4,{'id':_0x38a147['uuid'],'url':_0x38a147['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a8149=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a8149['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2abeec,_0x156a7b){_0x2abeec['on']('apply',(_0x273c9,_0xd54a1a)=>{this['_replaceImage'](_0x156a7b,_0xd54a1a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2abeec['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2abeec['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9d0c5,_0x1c6a11,_0x58efaa){const _0x386e32=this['_editor'],{width:_0x341af1,height:_0xfc759e}=F(_0x1c6a11,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5b5422,imageSources:_0x4fa460}=C(_0x1c6a11,_0x341af1);_0x386e32['model']['change'](_0x2517fa=>{if('$graveyard'===_0x9d0c5['root']['rootName']){_0x386e32['execute']('insertImage',{'imageType':_0x9d0c5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9d0c5['getAttributes']()),'uploadcareImageId':_0x58efaa,'src':_0x5b5422,'sources':_0x4fa460,'width':_0x341af1,'height':_0xfc759e}});const _0x56297c=_0x9d0c5['getChildren']();_0x9d0c5=_0x386e32['model']['document']['selection']['getSelectedElement']();for(const _0x15ceb8 of _0x56297c)_0x2517fa['append'](_0x2517fa['cloneElement'](_0x15ceb8),_0x9d0c5);}else _0x2517fa['setSelection'](_0x9d0c5,'on'),_0x386e32['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9d0c5['getAttributes']()),'uploadcareImageId':_0x58efaa,'src':_0x5b5422,'sources':_0x4fa460,'width':_0x341af1,'height':_0xfc759e},_0x9d0c5);_0x2517fa['setSelection'](_0x9d0c5,'on');});}async['_getImageAsFile'](_0x2a10a4){const _0x5ea3a1=_0x5b66cb['window'],_0x2df3c9=_0x5b66cb['document']['location']['href'],_0x4bc8b6=new _0x5ea3a1['URL'](_0x2a10a4['getAttribute']('src'),_0x2df3c9);if('data:'===_0x4bc8b6['protocol']){const _0x475f4a=_0x4bc8b6['href']['split'](','),_0xcbe241=_0x475f4a[0x0]['match'](/:(.*?);/)[0x1],_0x3f27a6=_0xcbe241['split']('/')[0x1],_0x23ece4=_0x5ea3a1['atob'](_0x475f4a[_0x475f4a['length']-0x1]);let _0x19e3ad=_0x23ece4['length'];const _0x5e793b=new _0x5ea3a1['Uint8Array'](_0x19e3ad);for(;_0x19e3ad--;)_0x5e793b[_0x19e3ad]=_0x23ece4['charCodeAt'](_0x19e3ad);return new _0x5ea3a1['File']([_0x5e793b],'image.'+_0x3f27a6,{'type':_0xcbe241});}const _0x207c4f=_0x4bc8b6['href']['split']('/'),_0x42fcdd=_0x207c4f[_0x207c4f['length']-0x1],_0x3e8785=_0x42fcdd['split']('.')[0x1];return _0x5ea3a1['fetch'](_0x4bc8b6['href'])['then'](_0x4b904a=>_0x4b904a['clone']()['blob']())['then'](_0x350b5d=>new _0x5ea3a1['File']([_0x350b5d],_0x42fcdd,{'type':'image/'+_0x3e8785}));}}class N extends _0x392ed7{['imageEditController'];static get['requires'](){return[_0x5f1377];}['_isEditable'];constructor(_0x557d50){super(_0x557d50),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x257dda){const _0x12529e=R(_0x257dda);return _0x25a15d=>!(!_0x25a15d||!_0x25a15d['is']('element','imageBlock')&&!_0x25a15d['is']('element','imageInline'))&&(!!_0x25a15d['hasAttribute']('uploadcareImageId')||!!_0x25a15d['hasAttribute']('src')&&_0x12529e(_0x25a15d['getAttribute']('src')));}(_0x557d50['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3f68ae=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3f68ae);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2df776=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2df776&&(_0x2df776['is']('element','imageBlock')||_0x2df776['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x5f1377),_0x2df776),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x392ed7{['refresh'](){const _0x5bcc5f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5bcc5f&&(_0x5bcc5f['is']('element','imageBlock')||_0x5bcc5f['is']('element','imageInline')));}['execute'](_0xc6b978){const _0x416484=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x40ab92=>{_0x40ab92['setAttributes'](_0xc6b978,_0x416484),_0x40ab92['removeAttribute']('srcset',_0x416484),_0x40ab92['removeAttribute']('sizes',_0x416484);});}}class m extends _0xf38636{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xaf71b,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x383996}=this;_0x383996['commands']['add']('uploadcareImageEdit',new N(_0x383996)),_0x383996['commands']['add']('uploadcareImageReplace',new O(_0x383996));}}class g extends _0xf38636{['_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 _0x1f5a41=this['editor'];_0x1f5a41['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2a454e=>{const _0x589676=_0x1f5a41['commands']['get']('uploadcareImageEdit'),_0x40bf94=new _0x52b656(_0x2a454e),t=_0x2a454e['t'];return _0x40bf94['set']({'icon':_0x2173fe,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x40bf94['bind']('isEnabled')['to'](_0x589676),_0x40bf94['bind']('isOn')['to'](_0x589676,'isActive'),this['listenTo'](_0x40bf94,'execute',()=>{_0x1f5a41['execute']('uploadcareImageEdit'),_0x1f5a41['editing']['view']['focus']();}),_0x40bf94;}),this['_initConfig']();}['_initConfig'](){const _0x3466b4=_0x35d2c7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3466b4),this['listenTo'](this['editor'],'destroy',()=>{_0x3466b4['remove']();});}}class et extends _0xf38636{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x18d894,Command as _0xbc42aa}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1b71f9,IconGooglePhotos as _0xcaad24,IconGoogleDrive as _0xab246c,IconFacebook as _0x3569fb,IconDropbox as _0x3aa1b4,IconUploadcareLink as _0x58684c,IconUploadcareImageUpload as _0x4069b0,IconError as _0x4555dc,IconUploadcareImageEdit as _0x3e58f7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xfa745e,MenuBarMenuListItemButtonView as _0x3532bd,View as _0x257250,FocusCycler as _0x9de5e,Dialog as _0x569bf8,DialogViewPosition as _0x161f8f,SpinnerView as _0x5391b8,IconView as _0x7fa819,Notification as _0x309de5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4e2ce6,DomEmitterMixin as _0xde0285,global as _0x5ce90b,getAncestors as _0x4e853f,ObservableMixin as _0x2afe1a,uid as _0x795be3,createElement as _0x3eadd0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x543a6d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x50f113,info as _0x53664b}from'@uploadcare/upload-client';import*as _0x935c71 from'@uploadcare/file-uploader';var i=function(_0x33152a){return _0x33152a['Local']='local',_0x33152a['URL']='url',_0x33152a['Dropbox']='dropbox',_0x33152a['GDrive']='gdrive',_0x33152a['Facebook']='facebook',_0x33152a['GPhotos']='gphotos',_0x33152a['OneDrive']='onedrive',_0x33152a;}({});function _(_0x14e2a2,_0x50119f,_0x3f50a5){const t=_0x14e2a2['t'],_0x791a9b=_0x14e2a2['t'];switch(_0x50119f){case i['Local']:return{'text':_0x791a9b('Insert'===_0x3f50a5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x791a9b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3f50a5?_0x791a9b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x791a9b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3f50a5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3f50a5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3f50a5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3f50a5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3f50a5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x50119f;}}class e extends _0x18d894{['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 _0x2a9ddf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3dc1d1;for(const _0x399b7b in _0x2a9ddf){const _0x2b5157=_0x399b7b,_0x4377de=_0x2a9ddf[_0x2b5157];if('uploadcareLicenseKeyValid'==_0x4377de||'uploadcareLicenseKeyInvalid'==_0x4377de||'uploadcareLicenseKeyExpired'==_0x4377de||'uploadcareLicenseKeyDomainLimit'==_0x4377de||'uploadcareLicenseKeyNotAllowed'==_0x4377de||'uploadcareLicenseKeyEvaluationLimit'==_0x4377de||'uploadcareLicenseKeyTrialLimit'==_0x4377de||'uploadcareLicenseKeyUsageLimit'==_0x4377de){delete _0x2a9ddf[_0x2b5157],_0x3dc1d1=_0x4377de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3dc1d1&&_0x2a9ddf['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3dc1d1&&_0x2a9ddf['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3dc1d1&&_0x2a9ddf['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3dc1d1&&_0x2a9ddf['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3dc1d1&&_0x2a9ddf['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3dc1d1&&_0x2a9ddf['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3dc1d1&&_0x2a9ddf['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xb89191}=this,_0x456b97=_0xb89191['commands']['get']('uploadcare');if(!_0x456b97)return;const _0x4f6049=this['_normalizeConfigSourceList'](_0xb89191['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x23fe4d,_0x50207b)=>{const _0x54221c=this['_getIntegrationKey'](_0x50207b['type']);return _0x23fe4d[_0x54221c]||(_0x23fe4d[_0x54221c]=[]),_0x23fe4d[_0x54221c]['push'](_0x50207b),_0x23fe4d;},{});_0xb89191['plugins']['has']('ImageInsertUI')&&_0xb89191['commands']['get']('uploadcare')&&Object['entries'](_0x4f6049)['forEach'](([_0x5101f9,_0x12d431])=>{_0xb89191['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5101f9,'observable':()=>_0x456b97,'buttonViewCreator':()=>this['_createToolbarButton'](_0x12d431),'formViewCreator':()=>this['_createDropdownButtons'](_0x12d431),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x12d431),'override':'assetManager'!==_0x5101f9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x558094){const {locale:_0x206b4a}=this['editor'];return _0x558094['map'](_0x496eeb=>{const _0x56af97=_(_0x206b4a,_0x496eeb,'Insert');switch(_0x496eeb){case i['Local']:return{'icon':_0x4069b0,'type':i['Local'],..._0x56af97};case i['URL']:return{'icon':_0x58684c,'type':i['URL'],..._0x56af97};case i['Dropbox']:return{'icon':_0x3aa1b4,'type':i['Dropbox'],..._0x56af97};case i['Facebook']:return{'icon':_0x3569fb,'type':i['Facebook'],..._0x56af97};case i['GDrive']:return{'icon':_0xab246c,'type':i['GDrive'],..._0x56af97};case i['GPhotos']:return{'icon':_0xcaad24,'type':i['GPhotos'],..._0x56af97};case i['OneDrive']:return{'icon':_0x1b71f9,'type':i['OneDrive'],..._0x56af97};}});}['_getIntegrationKey'](_0x78b2fd){switch(_0x78b2fd){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5bee4f,_0x3e3f70){const _0x5202ca=this['editor'],_0x7371d2=new _0x5bee4f(_0x5202ca['locale']),_0x1f9fe8=_0x5202ca['commands']['get']('uploadcare');return _0x7371d2['bind']('isEnabled')['to'](_0x1f9fe8),_0x7371d2['on']('execute',()=>{_0x1f9fe8['execute'](_0x3e3f70);}),_0x7371d2;}['_createToolbarButton'](_0x529728){const {locale:_0x3ff300}=this['editor'],_0x49fc76=this['editor']['plugins']['get']('ImageInsertUI'),_0x3b1b07=_0x529728[0x0],_0x351585=this['_createButton'](_0xfa745e,_0x3b1b07['type']);return _0x351585['icon']=_0x3b1b07['icon'],_0x351585['bind']('label')['to'](_0x49fc76,'isImageSelected',_0x58ed3a=>_(_0x3ff300,_0x3b1b07['type'],_0x58ed3a?'Replace':'Insert')['text']),_0x351585['tooltip']=!0x0,_0x351585;}['_createDropdownButtons'](_0x5673e9){const {locale:_0x2f3d57}=this['editor'],_0x26b3b5=this['editor']['plugins']['get']('ImageInsertUI');return _0x5673e9['map'](_0x4720dd=>{const _0x388cd5=this['_createButton'](_0xfa745e,_0x4720dd['type']);return _0x388cd5['withText']=!0x0,_0x388cd5['icon']=_0x4720dd['icon'],_0x388cd5['bind']('label')['to'](_0x26b3b5,'isImageSelected',_0xc6eef7=>_(_0x2f3d57,_0x4720dd['type'],_0xc6eef7?'Replace':'Insert')['text']),_0x388cd5;});}['_createMenuBarButtons'](_0x490e80){return _0x490e80['map'](_0x156947=>{const _0x5e7117=this['_createButton'](_0x3532bd,_0x156947['type']);return _0x5e7117['icon']=_0x156947['icon'],_0x5e7117['label']=_0x156947['shortText'],_0x5e7117;});}}class F extends _0x257250{['focusTracker'];['focusCycler'];constructor(_0x6ea1bb){super(_0x6ea1bb),this['focusTracker']=new _0x4e2ce6(),this['focusCycler']=new _0x9de5e({'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(_0x1a42ed,_0x728c66){super(_0x1a42ed),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-'+_0x728c66}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2ed3ff,_0x37e985){const _0xbec03f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2dd9cd=>_0x2dd9cd<=_0x37e985)['map'](_0xe0bc23=>_0x2ed3ff['replace'](/\/$/,'')+'/-/resize/'+_0xe0bc23+'x/\x20'+_0xe0bc23+'w');return{'imageFallbackUrl':_0x2ed3ff,'imageSources':[{'srcset':_0xbec03f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x37e985+'px)\x20100vw,\x20'+_0x37e985+'px','type':'image/webp'}]};}function S(_0x3448cd,_0x59450b,_0x17c54e){const _0x4527ff=_0x3448cd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4527ff?parseInt(_0x4527ff[0x1],0xa):_0x59450b,'height':_0x4527ff?parseInt(_0x4527ff[0x2],0xa):_0x17c54e};}function p(_0x1568f4,_0x43c03d){const _0x1dadb5=new(_0xde0285())(),_0x45d14b=_0x1568f4['plugins']['get']('ImageUtils'),_0x1062ec=_0x1568f4['editing']['mapper']['toViewElement'](_0x43c03d),_0x25afe7=_0x45d14b['findViewImgElement'](_0x1062ec),_0x3a555a=_0x1568f4['editing']['view']['domConverter']['viewToDom'](_0x25afe7),_0x16370e=_0x43c03d['getAttribute']('width'),_0x3a9975=_0x43c03d['getAttribute']('height'),_0x504a86='image-processing';_0x1568f4['editing']['view']['change'](_0x43044b=>{_0x43044b['addClass'](_0x504a86,_0x1062ec),_0x43044b['setStyle']('aspect-ratio',_0x16370e+'/'+_0x3a9975,_0x25afe7);}),_0x1dadb5['listenTo'](_0x3a555a,'load',()=>{_0x1dadb5['stopListening'](_0x3a555a,'load'),_0x1568f4['editing']['view']['change'](_0x53dcfc=>{_0x53dcfc['removeClass'](_0x504a86,_0x1062ec),_0x53dcfc['removeStyle']('aspect-ratio',_0x25afe7);});});}function z(_0x1f238b){if(Array['isArray'](_0x1f238b)){const _0x2daa36=_0x1f238b['map'](z);return _0x47ceb5=>_0x2daa36['some'](_0xa1ecb5=>_0xa1ecb5(_0x47ceb5));}if('origin'==_0x1f238b){const _0x680c17=_0x5ce90b['window']['location']['origin'];return _0x1089fa=>new URL(_0x1089fa,_0x5ce90b['document']['baseURI'])['origin']==_0x680c17;}return'function'==typeof _0x1f238b?_0x1f238b:_0x1f238b instanceof RegExp?_0x22ac3e=>!(!_0x22ac3e['match'](_0x1f238b)&&!_0x22ac3e['replace'](/^https?:\/\//,'')['match'](_0x1f238b)):()=>!0x1;}function A(_0x46b786,_0x1cb6f5){return _0x4e853f(_0x46b786['target'])['includes'](_0x1cb6f5);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2afe1a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x572ac4,_0x382a7c,_0x415e72){super(),this['_editor']=_0x572ac4,this['_editing']=_0x382a7c,this['_dialog']=_0x572ac4['plugins']['get'](_0x569bf8),this['_api']=_0x382a7c['ctxElement']['getAPI'](),this['_type']=_0x415e72,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:_0xa6b18d,model:_0x1bc912}=this['_editor'],_0x2dc9a2=_0x1bc912['document']['selection']['getSelectedElement'](),_0x3b0723=_0x2dc9a2&&(_0x2dc9a2['is']('element','imageBlock')||_0x2dc9a2['is']('element','imageInline'));this['_formView']=new x(_0xa6b18d,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4069b0,'title':_(_0xa6b18d,this['_type'],_0x3b0723?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x161f8f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x27b1fb=>!A(_0x27b1fb,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5f1cd0}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xc6def=>{const _0xb09dc3=_0x5f1cd0['length'];for(const _0x117c61 of _0x5f1cd0){const _0x2a70c3=_0x117c61===_0x5f1cd0[_0xb09dc3-0x1],{cdnUrl:_0x3c32be,fileInfo:_0x41f658}=_0x117c61;if(!_0x3c32be||!_0x41f658)continue;const {width:_0x52c8ae,height:_0x198e83}=_0x41f658['imageInfo'],_0x3bd8ef=S(_0x3c32be,_0x52c8ae,_0x198e83),_0x3833c3=C(_0x3c32be,_0x3bd8ef['width']),_0x3c32d7={'id':_0x41f658['uuid'],'type':'image','attributes':{'imageDimension':_0x3bd8ef,..._0x3833c3}};this['_insertAsset'](_0x3c32d7,_0x2a70c3,_0xc6def);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x26736a=>{'idle'===_0x26736a['detail']['status']&&!_0x26736a['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x22f22f,_0x106f21,_0x53d02a){const _0x533d8a=this['_editor']['model']['document']['selection'],_0x3c8ddf=_0x533d8a['getSelectedElement'](),_0x57722c=!(!_0x3c8ddf||!_0x3c8ddf['is']('element','imageInline'));_0x53d02a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x22f22f,_0x57722c),_0x106f21||_0x53d02a['setSelection'](_0x533d8a['getLastPosition']());}['_insertImage'](_0x282d2f,_0x387744){const _0x1979a2=this['_editor'],{imageDimension:_0x22dc8d,imageFallbackUrl:_0x9b7325,imageSources:_0x360719}=_0x282d2f['attributes'];_0x1979a2['execute']('insertImage',{'imageType':_0x387744?'imageInline':null,'source':{'uploadcareImageId':_0x282d2f['id'],'src':_0x9b7325,'sources':_0x360719,..._0x22dc8d}});}}class w extends _0xbc42aa{['_editing'];['_controller']=null;static get['requires'](){return[_0x569bf8,o];}constructor(_0x70d96a){super(_0x70d96a),this['_editing']=_0x70d96a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x14fbed){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x14fbed);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x260be0,..._0x5fd2fc}){return _0x50f113(_0x260be0,_0x5fd2fc);}static['getInfo'](_0x9c4bc4,_0x5d7563){return _0x53664b(_0x9c4bc4,_0x5d7563);}}class f extends _0x18d894{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x543a6d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1fc904=this['editor'];if(!!!_0x1fc904['config']['get']('uploadcare'))return;_0x1fc904['plugins']['get'](_0x543a6d)['createUploadAdapter']=_0xb0e95d=>new k(_0xb0e95d,_0x1fc904),_0x1fc904['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3758fa,{imageElement:_0x171f46,data:_0x53b55d})=>{_0x1fc904['model']['change'](_0xaa13e7=>{_0xaa13e7['setAttribute']('uploadcareImageId',_0x53b55d['uploadcareImageId'],_0x171f46);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4eb6f5,_0x3b4a91){this['loader']=_0x4eb6f5,this['editor']=_0x3b4a91,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4427f0=await this['loader']['file'];return j['upload']({'file':_0x4427f0,'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':_0x1b85e0=>{_0x1b85e0&&_0x1b85e0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1b85e0['value']);}})['then'](async _0x2f2012=>{const {imageFallbackUrl:_0x50b9b0,imageSources:_0x53d086}=C(_0x2f2012['cdnUrl'],_0x2f2012['imageInfo']['width']);return{'uploadcareImageId':_0x2f2012['uuid'],'default':_0x50b9b0,'sources':_0x53d086};})['catch'](()=>{const _0x4b9568=t('Cannot\x20upload\x20file:')+('\x20'+_0x4427f0['name']+'.');return Promise['reject'](_0x4b9568);});}['abort'](){this['controller']['abort']();}}class o extends _0x18d894{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x569bf8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x43ff21){super(_0x43ff21),this['ucContextId']=_0x795be3();}['init'](){const _0x17fa84=this['editor'];_0x17fa84['commands']['add']('uploadcare',new w(_0x17fa84));}['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 _0x502d79=_0x5ce90b['document']['querySelector']('input[uploadcare-file-input]');_0x502d79&&_0x502d79['remove']();}),async function(_0x27ad73){const _0x416459=_0x286e0a([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]),_0x3d5ae3=0x535f8c3a,_0x5499ac=0x5358f7da^_0x3d5ae3,_0x53603e=window[_0x286e0a([0x44,0x61,0x74,0x65])][_0x286e0a([0x6e,0x6f,0x77])](),_0x10319f=_0x27ad73[_0x286e0a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x9b920=new window[(_0x286e0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51a1d8=>{_0x10319f[_0x286e0a([0x6f,0x6e,0x63,0x65])](_0x286e0a([0x72,0x65,0x61,0x64,0x79]),_0x51a1d8);}),_0x4d487a={[_0x286e0a([0x6b,0x74,0x79])]:_0x286e0a([0x45,0x43]),[_0x286e0a([0x75,0x73,0x65])]:_0x286e0a([0x73,0x69,0x67]),[_0x286e0a([0x63,0x72,0x76])]:_0x286e0a([0x50,0x2d,0x32,0x35,0x36]),[_0x286e0a([0x78])]:_0x286e0a([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]),[_0x286e0a([0x79])]:_0x286e0a([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]),[_0x286e0a([0x61,0x6c,0x67])]:_0x286e0a([0x45,0x53,0x32,0x35,0x36])},_0x1f952e=_0x10319f[_0x286e0a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x286e0a([0x67,0x65,0x74])](_0x286e0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x501f05(){let _0x314649,_0x29ba70=null,_0x31bdde=null;try{if(_0x1f952e==_0x286e0a([0x47,0x50,0x4c]))return _0x286e0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x314649=_0x40190d(),!_0x314649)return _0x286e0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x314649[_0x286e0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31bdde=_0x5c68ff(_0x314649[_0x286e0a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x314649[_0x286e0a([0x6a,0x74,0x69])])),await _0x365016()?_0x38ddaa()?_0x1dde9e()?_0x286e0a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x21f2bc()?(_0x314649[_0x286e0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x286e0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29ba70=_0x41579c(_0x286e0a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x314649[_0x286e0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x286e0a([0x74,0x72,0x69,0x61,0x6c])&&(_0x29ba70=_0x41579c(_0x286e0a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7ad89e()):_0x286e0a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x286e0a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x286e0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x286e0a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1dde9e(){const _0x1078d6=[_0x286e0a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x286e0a([0x74,0x72,0x69,0x61,0x6c])][_0x286e0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x314649[_0x286e0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53603e/0x3e8:0xe10*_0x5499ac;return _0x314649[_0x286e0a([0x65,0x78,0x70])]<_0x1078d6;}function _0x38ddaa(){const _0x2357a3=_0x314649[_0x286e0a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2357a3&&(!!_0x2357a3[_0x286e0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286e0a([0x2a]))||!!_0x2357a3[_0x286e0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286e0a([0x55,0x50,0x4c,0x43])));}function _0x21f2bc(){const _0x2693b4=_0x314649[_0x286e0a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2693b4||0x0==_0x2693b4[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x210dbe}=new URL(window[_0x286e0a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2693b4[_0x286e0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x210dbe))return!0x0;const _0x53726f=_0x210dbe[_0x286e0a([0x73,0x70,0x6c,0x69,0x74])](_0x286e0a([0x2e]));return _0x2693b4[_0x286e0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf83c48=>_0xf83c48[_0x286e0a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286e0a([0x2a])))[_0x286e0a([0x6d,0x61,0x70])](_0x2ad4a2=>_0x2ad4a2[_0x286e0a([0x73,0x70,0x6c,0x69,0x74])](_0x286e0a([0x2e])))[_0x286e0a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x249525=>_0x249525[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53726f[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x286e0a([0x6d,0x61,0x70])](_0x29e819=>Array(_0x53726f[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29e819[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x286e0a([0x66,0x69,0x6c,0x6c])](_0x29e819[0x0]===_0x286e0a([0x2a])?_0x286e0a([0x2a]):'')[_0x286e0a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29e819))[_0x286e0a([0x73,0x6f,0x6d,0x65])](_0x11dd95=>_0x53726f[_0x286e0a([0x65,0x76,0x65,0x72,0x79])]((_0x5d84c5,_0x3ef8c8)=>_0x11dd95[_0x3ef8c8]===_0x5d84c5||_0x11dd95[_0x3ef8c8]===_0x286e0a([0x2a])));}function _0x7ad89e(){return _0x29ba70&&_0x31bdde?new window[(_0x286e0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x582094,_0xf5d919)=>{_0x29ba70[_0x286e0a([0x74,0x68,0x65,0x6e])](_0x582094,_0xf5d919),_0x31bdde[_0x286e0a([0x74,0x68,0x65,0x6e])](_0x471ab2=>{_0x471ab2!=_0x286e0a([0x56,0x61,0x6c,0x69,0x64])&&_0x582094(_0x471ab2);},_0xf5d919);}):_0x29ba70||_0x31bdde||_0x286e0a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c68ff(_0x538adc,_0x36dbe4){return new window[(_0x286e0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d1bfc=>{if(_0x3c935a())return _0x2d1bfc(_0x286e0a([0x56,0x61,0x6c,0x69,0x64]));_0x4c0f5c(),_0x10319f[_0x286e0a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x286e0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x436b8f=!0x1;const _0x579d9c=_0x795be3();function _0xf3fa9e(_0x38ab99){return!!_0x38ab99&&(typeof _0x38ab99===_0x286e0a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38ab99===_0x286e0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38ab99[_0x286e0a([0x74,0x68,0x65,0x6e])]===_0x286e0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38ab99[_0x286e0a([0x63,0x61,0x74,0x63,0x68])]===_0x286e0a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2921f0(_0x13295d){_0x45d133(_0x13295d)[_0x286e0a([0x74,0x68,0x65,0x6e])](_0x13d99d=>{if(!_0x13d99d||_0x13d99d[_0x286e0a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x286e0a([0x6f,0x6b]))return _0x286e0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x26a70b(_0x4a6314(_0x579d9c+_0x36dbe4))!=_0x13d99d[_0x286e0a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x286e0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x286e0a([0x56,0x61,0x6c,0x69,0x64]);})[_0x286e0a([0x74,0x68,0x65,0x6e])](_0x2ac582=>(_0xa7f1c6(),_0x2ac582),()=>{const _0x54318c=_0x5bdde4();return null==_0x54318c?(_0xa7f1c6(),_0x286e0a([0x56,0x61,0x6c,0x69,0x64])):_0x286e0a(_0x53603e-_0x54318c>(0x7753083a^_0x3d5ae3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x286e0a([0x74,0x68,0x65,0x6e])](_0x2d1bfc)[_0x286e0a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d1bfc(_0x286e0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x373ed1=0x536962ba^_0x3d5ae3;function _0xa7f1c6(){const _0x595842=_0x286e0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x26a70b(_0x4a6314(_0x538adc)),_0x21e046=_0x25d136(_0x26a70b(window[_0x286e0a([0x4d,0x61,0x74,0x68])][_0x286e0a([0x63,0x65,0x69,0x6c])](_0x53603e/_0x373ed1)));window[_0x286e0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x286e0a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x595842,_0x21e046);}function _0x5bdde4(){const _0x5179cc=_0x286e0a([0x6c,0x6c,0x63,0x74,0x2d])+_0x26a70b(_0x4a6314(_0x538adc)),_0x386bc2=window[_0x286e0a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x286e0a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5179cc);return _0x386bc2?window[_0x286e0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25d136(_0x386bc2),0x10)*_0x373ed1:null;}function _0x45d133(_0x9234b1){return new window[(_0x286e0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d1908,_0xd162b3)=>{_0x9234b1[_0x286e0a([0x74,0x68,0x65,0x6e])](_0x2d1908,_0xd162b3),window[_0x286e0a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd162b3,0x535e58fa^_0x3d5ae3);});}}_0x10319f[_0x286e0a([0x6f,0x6e])](_0x286e0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17e88b,_0x495cea)=>{if(_0x495cea[0x0]!=_0x538adc)return _0x2d1bfc(_0x286e0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x495cea[0x1]={..._0x495cea[0x1],[_0x286e0a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x579d9c};},{[_0x286e0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x286e0a([0x68,0x69,0x67,0x68])}),_0x10319f[_0x286e0a([0x6f,0x6e])](_0x286e0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2453c6=>{_0xf3fa9e(_0x2453c6[_0x286e0a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x436b8f=!0x0,_0x2921f0(_0x2453c6[_0x286e0a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x286e0a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x286e0a([0x6c,0x6f,0x77])}),_0x9b920[_0x286e0a([0x74,0x68,0x65,0x6e])](()=>{_0x436b8f||_0x2d1bfc(_0x286e0a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3c935a(){return _0x10319f[_0x286e0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x286e0a([0x76,0x69,0x65,0x77])][_0x286e0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x286e0a([0x61,0x75,0x74,0x6f]);}function _0x4c0f5c(){_0x10319f[_0x286e0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x286e0a([0x76,0x69,0x65,0x77])][_0x286e0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x286e0a([0x61,0x75,0x74,0x6f]);}}function _0x41579c(_0xe08ab6){const _0x154e28=[new window[(_0x286e0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c8241=>setTimeout(_0x3c8241,0x5356b2f6^_0x3d5ae3)),_0x9b920[_0x286e0a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x286e0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f2f8=>{let _0x1a96e8=0x0;_0x10319f[_0x286e0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x286e0a([0x6f,0x6e])](_0x286e0a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x203b14,_0x184bd8)=>{_0x184bd8[0x0][_0x286e0a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a96e8++,_0x1a96e8==(0x535f8dc2^_0x3d5ae3)&&(_0x57f2f8(),_0x203b14[_0x286e0a([0x6f,0x66,0x66])]());});}))];return window[_0x286e0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x286e0a([0x72,0x61,0x63,0x65])](_0x154e28)[_0x286e0a([0x74,0x68,0x65,0x6e])](()=>_0xe08ab6);}async function _0x2876cc(){await _0x9b920,_0x10319f[_0x286e0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x286e0a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4aefc8,_0x10319f[_0x286e0a([0x6d,0x6f,0x64,0x65,0x6c])][_0x286e0a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4aefc8,_0x10319f[_0x286e0a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x286e0a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b6fda(_0x267ff8){const _0x2b6aa3=_0x430712();_0x10319f[_0x2b6aa3]=_0x286e0a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x267ff8,_0x267ff8!=_0x286e0a([0x56,0x61,0x6c,0x69,0x64])&&_0x2876cc();}function _0x430712(){const _0x301543=window[_0x286e0a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x286e0a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x286e0a([0x6e,0x6f,0x77])]())[_0x286e0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x286e0a([0x2e]),'');let _0x81effe=_0x286e0a([0x68]);for(let _0x28d0ea=0x0;_0x28d0ea<_0x301543[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28d0ea+=0x2){let _0x141e5f=window[_0x286e0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x301543[_0x286e0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28d0ea,_0x28d0ea+0x2));_0x141e5f>=_0x416459[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x141e5f-=_0x416459[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x81effe+=_0x416459[_0x141e5f];}return _0x81effe;}function _0x40190d(){const _0x4599d4=_0x1f952e[_0x286e0a([0x73,0x70,0x6c,0x69,0x74])](_0x286e0a([0x2e]));if(0x3!=_0x4599d4[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a3618(_0x4599d4[0x1]);function _0x2a3618(_0x291048){const _0x4c981d=_0x47e1c0(_0x291048);return _0x4c981d&&_0x49f5a6()?_0x4c981d:null;function _0x49f5a6(){const _0x58b1b5=_0x4c981d[_0x286e0a([0x6a,0x74,0x69])],_0x380cbc=window[_0x286e0a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b1b5[_0x286e0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58b1b5[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34cdcc={..._0x4c981d,[_0x286e0a([0x6a,0x74,0x69])]:_0x58b1b5[_0x286e0a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58b1b5[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34cdcc[_0x286e0a([0x76,0x63])],_0x4a6314(_0x34cdcc)==_0x380cbc;}}}async function _0x365016(){let _0x48816f=!0x0;try{const _0x12d7e8=_0x1f952e[_0x286e0a([0x73,0x70,0x6c,0x69,0x74])](_0x286e0a([0x2e])),[_0x1fe36a,_0x390145,_0x3711e1]=_0x12d7e8;return _0x5bc7de(_0x1fe36a),await _0x3e1b74(_0x1fe36a,_0x390145,_0x3711e1),_0x48816f;}catch{return!0x1;}function _0x5bc7de(_0x56fe9e){const _0x23ba69=_0x47e1c0(_0x56fe9e);_0x23ba69&&_0x23ba69[_0x286e0a([0x61,0x6c,0x67])]==_0x286e0a([0x45,0x53,0x32,0x35,0x36])||(_0x48816f=!0x1);}async function _0x3e1b74(_0x2642ba,_0x264022,_0x5bc0e1){const _0x16ddc9=window[_0x286e0a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x286e0a([0x66,0x72,0x6f,0x6d])](_0x55ba09(_0x5bc0e1),_0x4cf550=>_0x4cf550[_0x286e0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x311201=new window[(_0x286e0a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x286e0a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2642ba+_0x286e0a([0x2e])+_0x264022),_0x999833=window[_0x286e0a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x286e0a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x999833)return;const _0x437dce=await _0x999833[_0x286e0a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x286e0a([0x6a,0x77,0x6b]),_0x4d487a,{[_0x286e0a([0x6e,0x61,0x6d,0x65])]:_0x286e0a([0x45,0x43,0x44,0x53,0x41]),[_0x286e0a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x286e0a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x286e0a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x999833[_0x286e0a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x286e0a([0x6e,0x61,0x6d,0x65])]:_0x286e0a([0x45,0x43,0x44,0x53,0x41]),[_0x286e0a([0x68,0x61,0x73,0x68])]:{[_0x286e0a([0x6e,0x61,0x6d,0x65])]:_0x286e0a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x437dce,_0x16ddc9,_0x311201)||(_0x48816f=!0x1);}}function _0x47e1c0(_0x38292d){return _0x38292d[_0x286e0a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x286e0a([0x65,0x79]))?JSON[_0x286e0a([0x70,0x61,0x72,0x73,0x65])](_0x55ba09(_0x38292d)):null;}function _0x55ba09(_0x2b273c){return window[_0x286e0a([0x61,0x74,0x6f,0x62])](_0x2b273c[_0x286e0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x286e0a([0x2b]))[_0x286e0a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x286e0a([0x2f])));}function _0x4a6314(_0x1239b0){let _0x43095e=0x1505;function _0x495ebc(_0x2c4bf7){for(let _0x9f05ab=0x0;_0x9f05ab<_0x2c4bf7[_0x286e0a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9f05ab++){const _0x41d16d=_0x2c4bf7[_0x286e0a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9f05ab);_0x43095e=(_0x43095e<<0x5)+_0x43095e+_0x41d16d,_0x43095e&=_0x43095e;}}function _0x2671f1(_0x42cd50){Array[_0x286e0a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42cd50)?_0x42cd50[_0x286e0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2671f1):_0x42cd50&&typeof _0x42cd50==_0x286e0a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x286e0a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42cd50)[_0x286e0a([0x73,0x6f,0x72,0x74])]()[_0x286e0a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x502f48,_0x16dd69])=>{_0x495ebc(_0x502f48),_0x2671f1(_0x16dd69);}):_0x495ebc(window[_0x286e0a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42cd50));}return _0x2671f1(_0x1239b0),_0x43095e>>>0x0;}function _0x26a70b(_0x2f4413){return _0x2f4413[_0x286e0a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x286e0a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x286e0a([0x30]));}function _0x25d136(_0x1ae6eb){return _0x1ae6eb[_0x286e0a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x286e0a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x286e0a([0x6a,0x6f,0x69,0x6e])]('');}function _0x4aefc8(){}function _0x286e0a(_0x3980f7){return _0x3980f7['map'](_0x361889=>String['fromCharCode'](_0x361889))['join']('');}_0x5b6fda(await _0x501f05());}(this);}['_initSchema'](){const _0x5f047c=this['editor']['model']['schema'];_0x5f047c['isRegistered']('imageBlock')&&_0x5f047c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5f047c['isRegistered']('imageInline')&&_0x5f047c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x574471=this['editor'];_0x574471['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x574471['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5e6fe6=>_0x5e6fe6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30424b=_0x574471['commands']['get']('replaceImageSource');_0x30424b&&this['listenTo'](_0x30424b,'cleanupImage',(_0x60e309,[_0x5d0b79,_0xc1766d])=>{_0x5d0b79['removeAttribute']('uploadcareImageId',_0xc1766d);});}['_initConfig'](){const _0x46a7f6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x55d7f2=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3eadd0(_0x5ce90b['document'],'uc-config',{..._0x46a7f6,'pubkey':_0x55d7f2,'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']=_0x16d0bd=>{if('closeMax'==_0x16d0bd)return'#uc-icon-arrow-down';},_0x5ce90b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3eadd0(_0x5ce90b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5ce90b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3f53e1=this['editor']['commands']['get']('insertImage');_0x3f53e1&&this['listenTo'](_0x3f53e1,'execute',()=>{const _0x320c4b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x320c4b&&_0x320c4b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x320c4b);});});const _0x2ace46=this['editor']['commands']['get']('uploadcareImageReplace');_0x2ace46&&this['listenTo'](_0x2ace46,'execute',()=>{const _0x29cb4e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x29cb4e&&_0x29cb4e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x29cb4e);});});}}class tt extends _0x18d894{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cac27){super(_0x2cac27),_0x2cac27['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x935c71['defineComponents'](_0x935c71),this['_defineLocale']();}['_defineLocale'](){const _0x1573bc=this['editor']['config']['get']('uploadcare.locale'),_0x2295a3=this['editor']['locale']['contentLanguage'];_0x1573bc&&_0x935c71['defineLocale'](_0x2295a3,_0x1573bc);}}class ii extends _0x257250{constructor(_0x1d5026){super(_0x1d5026);const t=_0x1d5026['t'],_0x5df793=this['bindTemplate'],_0x28fad9=new _0x5391b8();_0x28fad9['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':[_0x28fad9,{'text':_0x5df793['to']('imageUploadProgress',_0x6ef55c=>t('Loading\x20image...')+'\x20('+(_0x6ef55c||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 _0x257250{constructor(_0x60f3ad){super(_0x60f3ad);const t=_0x60f3ad['t'];this['set']('errorType',null);const _0x4888c6=new _0xfa745e(_0x60f3ad);_0x4888c6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4888c6['withText']=!0x0,_0x4888c6['class']='ck-button-action',_0x4888c6['on']('execute',()=>{this['fire']('retry');}),_0x4888c6['bind']('isVisible')['to'](this,'errorType',_0x4b5ed4=>'NotFound'!==_0x4b5ed4);const _0xc45b16=new _0x7fa819();_0xc45b16['content']=_0x4555dc,_0xc45b16['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5820d7=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':[_0xc45b16,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5820d7['to']('errorType',_0x3195af=>t('NotFound'!==_0x3195af?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4888c6]},{'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 _0x257250{constructor(_0x1b93c9,_0x6cb643){super(_0x1b93c9);const _0x3e452e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x6cb643,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3e452e['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x45d75f,_0x41c633,_0x1eedf2){super(_0x45d75f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x45d75f),this['_errorView']=new ti(_0x45d75f),this['_editingView']=new ei(_0x45d75f,_0x1eedf2),this['_focusableView']=new _0x257250(_0x45d75f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x41c633),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'],_0x44d9f1=>{this['_addUploadcareImageEditorListeners'](_0x44d9f1);});}),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'](_0x2d5465,_0x504695){const _0x219f12='uc-cloud-image-editor',_0x12049e=_0x2d5465['querySelector'](_0x219f12);if(_0x12049e)return _0x504695(_0x12049e);const _0x588026=new MutationObserver(_0x4f426f=>{const _0x3bb9ce=_0x4f426f['filter'](_0xb73d60=>_0xb73d60['target']===_0x2d5465&&_0xb73d60['addedNodes']['length']>0x0&&_0xb73d60['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x219f12);_0x3bb9ce['length']&&(_0x588026['disconnect'](),_0x504695(_0x3bb9ce[0x0]['addedNodes'][0x0]));});_0x588026['observe'](_0x2d5465,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1c786c){_0x1c786c['addEventListener']('apply',_0x1af9b3=>{this['fire']('apply',{'imageSrc':_0x1af9b3['detail']['cdnUrl']});}),_0x1c786c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2afe1a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x42a5bd,_0x4a422d,_0x35c260){super(),this['_editor']=_0x42a5bd,this['_dialog']=_0x4a422d,this['_imageElement']=_0x35c260,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 _0xcb8f54=this['_imageElement'],_0x4b6bdf=_0xcb8f54['getAttribute']('uploadcareImageId'),_0x12f21d=_0xcb8f54['getAttribute']('src');if(_0x4b6bdf)await this['_loadImageInfo'](_0x4b6bdf,_0x12f21d);else{if(this['_imageCache']['has'](_0x12f21d)){const _0x3d9446=this['_imageCache']['get'](_0x12f21d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d9446['url'],this['imageDimension']=_0x3d9446['dimension'],this['imageId']=_0x3d9446['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x190405}=this['_editor'],t=_0x190405['t'],_0x1e56b5=new X(_0x190405,this['imageStatus'],this['_attributes']);_0x1e56b5['bind']('status')['to'](this,'imageStatus'),_0x1e56b5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1e56b5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1e56b5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1e56b5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e58f7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1e56b5,'position':_0x161f8f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1e56b5['focus']();},'onHide':()=>{_0x1e56b5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4ad068=>!A(_0x4ad068,_0x1e56b5['element'])}});}['_loadImageInfo'](_0x5f0d15,_0x4e29b0){return j['getInfo'](_0x5f0d15,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x48af3d=>{const {width:_0xb11821,height:_0xb29ac}=_0x48af3d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e29b0,this['imageDimension']={'width':_0xb11821,'height':_0xb29ac},this['imageId']=_0x5f0d15;})['catch'](_0x379ee8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x379ee8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x54bed0,_0x2800f5){return this['_getImageAsFile'](_0x54bed0)['then'](_0x2a6b11=>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':_0x2800f5['signal'],'file':_0x2a6b11,'onProgress':_0x3196ed=>{_0x3196ed&&_0x3196ed['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3196ed['value']));}}))['then'](_0xc7cf35=>{const {width:_0x4aebe5,height:_0x1327e0}=_0xc7cf35['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc7cf35['cdnUrl'],this['imageDimension']={'width':_0x4aebe5,'height':_0x1327e0},this['imageId']=_0xc7cf35['uuid'],this['imageUploadProgress']=null;const _0x32fb1e=_0x54bed0['getAttribute']('src');this['_imageCache']['set'](_0x32fb1e,{'id':_0xc7cf35['uuid'],'url':_0xc7cf35['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xd8cc34=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xd8cc34['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x353167,_0x539713){_0x353167['on']('apply',(_0x3b6f9c,_0x433b93)=>{this['_replaceImage'](_0x539713,_0x433b93['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x353167['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x353167['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16cdd0,_0x4b8feb,_0x1c66d2){const _0x3ef92d=this['_editor'],{width:_0xa86438,height:_0x274672}=S(_0x4b8feb,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x344bcb,imageSources:_0x51907d}=C(_0x4b8feb,_0xa86438);_0x3ef92d['model']['change'](_0x5fe517=>{if('$graveyard'===_0x16cdd0['root']['rootName']){_0x3ef92d['execute']('insertImage',{'imageType':_0x16cdd0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16cdd0['getAttributes']()),'uploadcareImageId':_0x1c66d2,'src':_0x344bcb,'sources':_0x51907d,'width':_0xa86438,'height':_0x274672}});const _0x277e2a=_0x16cdd0['getChildren']();_0x16cdd0=_0x3ef92d['model']['document']['selection']['getSelectedElement']();for(const _0x1436e8 of _0x277e2a)_0x5fe517['append'](_0x5fe517['cloneElement'](_0x1436e8),_0x16cdd0);}else _0x5fe517['setSelection'](_0x16cdd0,'on'),_0x3ef92d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16cdd0['getAttributes']()),'uploadcareImageId':_0x1c66d2,'src':_0x344bcb,'sources':_0x51907d,'width':_0xa86438,'height':_0x274672},_0x16cdd0);_0x5fe517['setSelection'](_0x16cdd0,'on');});}async['_getImageAsFile'](_0x4670e1){const _0x186367=_0x5ce90b['window'],_0x7352c6=_0x5ce90b['document']['location']['href'],_0x20d15f=new _0x186367['URL'](_0x4670e1['getAttribute']('src'),_0x7352c6);if('data:'===_0x20d15f['protocol']){const _0x202b7d=_0x20d15f['href']['split'](','),_0x5650e7=_0x202b7d[0x0]['match'](/:(.*?);/)[0x1],_0x168124=_0x5650e7['split']('/')[0x1],_0x3afb95=_0x186367['atob'](_0x202b7d[_0x202b7d['length']-0x1]);let _0x714445=_0x3afb95['length'];const _0x5104d5=new _0x186367['Uint8Array'](_0x714445);for(;_0x714445--;)_0x5104d5[_0x714445]=_0x3afb95['charCodeAt'](_0x714445);return new _0x186367['File']([_0x5104d5],'image.'+_0x168124,{'type':_0x5650e7});}const _0x138b00=_0x20d15f['href']['split']('/'),_0x25ec66=_0x138b00[_0x138b00['length']-0x1],_0x5c5086=_0x25ec66['split']('.')[0x1];return _0x186367['fetch'](_0x20d15f['href'])['then'](_0x37df04=>_0x37df04['clone']()['blob']())['then'](_0x27527b=>new _0x186367['File']([_0x27527b],_0x25ec66,{'type':'image/'+_0x5c5086}));}}class Q extends _0xbc42aa{['imageEditController'];static get['requires'](){return[_0x569bf8];}['_isEditable'];constructor(_0x36587d){super(_0x36587d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x12cb73){const _0x1b09da=z(_0x12cb73);return _0x569d77=>!(!_0x569d77||!_0x569d77['is']('element','imageBlock')&&!_0x569d77['is']('element','imageInline'))&&(!!_0x569d77['hasAttribute']('uploadcareImageId')||!!_0x569d77['hasAttribute']('src')&&_0x1b09da(_0x569d77['getAttribute']('src')));}(_0x36587d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3a9e02=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3a9e02);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x49ed39=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49ed39&&(_0x49ed39['is']('element','imageBlock')||_0x49ed39['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x569bf8),_0x49ed39),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0xbc42aa{['refresh'](){const _0x5b81eb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5b81eb&&(_0x5b81eb['is']('element','imageBlock')||_0x5b81eb['is']('element','imageInline')));}['execute'](_0xb0cfaf){const _0x30449b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5b44c2=>{_0x5b44c2['setAttributes'](_0xb0cfaf,_0x30449b),_0x5b44c2['removeAttribute']('srcset',_0x30449b),_0x5b44c2['removeAttribute']('sizes',_0x30449b);});}}class m extends _0x18d894{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x309de5,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x38fd51}=this;_0x38fd51['commands']['add']('uploadcareImageEdit',new Q(_0x38fd51)),_0x38fd51['commands']['add']('uploadcareImageReplace',new V(_0x38fd51));}}class g extends _0x18d894{['_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 _0x55af47=this['editor'];_0x55af47['ui']['componentFactory']['add']('uploadcareImageEdit',_0xc17f59=>{const _0x42fd66=_0x55af47['commands']['get']('uploadcareImageEdit'),_0x594610=new _0xfa745e(_0xc17f59),t=_0xc17f59['t'];return _0x594610['set']({'icon':_0x3e58f7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x594610['bind']('isEnabled')['to'](_0x42fd66),_0x594610['bind']('isOn')['to'](_0x42fd66,'isActive'),this['listenTo'](_0x594610,'execute',()=>{_0x55af47['execute']('uploadcareImageEdit'),_0x55af47['editing']['view']['focus']();}),_0x594610;}),this['_initConfig']();}['_initConfig'](){const _0x4a6c79=_0x3eadd0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4a6c79),this['listenTo'](this['editor'],'destroy',()=>{_0x4a6c79['remove']();});}}class et extends _0x18d894{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3258c9=>0x1!=_0x3258c9}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x261343=>{const {af:{dictionary:_0x539ba6,getPluralForm:_0x36c956}}={'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':_0x2d78f3=>0x1!=_0x2d78f3}};_0x261343['af']||={'dictionary':{},'getPluralForm':null},_0x261343['af']['dictionary']=Object['assign'](_0x261343['af']['dictionary'],_0x539ba6),_0x261343['af']['getPluralForm']=_0x36c956;})(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':_0x58a5b9=>0x0==_0x58a5b9?0x0:0x1==_0x58a5b9?0x1:0x2==_0x58a5b9?0x2:_0x58a5b9%0x64>=0x3&&_0x58a5b9%0x64<=0xa?0x3:_0x58a5b9%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x72d169=>{const {ar:{dictionary:_0x3b1819,getPluralForm:_0x2fe6e1}}={'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':_0x3ceb01=>0x0==_0x3ceb01?0x0:0x1==_0x3ceb01?0x1:0x2==_0x3ceb01?0x2:_0x3ceb01%0x64>=0x3&&_0x3ceb01%0x64<=0xa?0x3:_0x3ceb01%0x64>=0xb?0x4:0x5}};_0x72d169['ar']||={'dictionary':{},'getPluralForm':null},_0x72d169['ar']['dictionary']=Object['assign'](_0x72d169['ar']['dictionary'],_0x3b1819),_0x72d169['ar']['getPluralForm']=_0x2fe6e1;})(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':_0x233153=>0x1!=_0x233153}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x25c8ca=>{const {ast:{dictionary:_0x12717f,getPluralForm:_0x1a2077}}={'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':_0x41fee5=>0x1!=_0x41fee5}};_0x25c8ca['ast']||={'dictionary':{},'getPluralForm':null},_0x25c8ca['ast']['dictionary']=Object['assign'](_0x25c8ca['ast']['dictionary'],_0x12717f),_0x25c8ca['ast']['getPluralForm']=_0x1a2077;})(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':_0x322730=>0x1!=_0x322730}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xb67634=>{const {az:{dictionary:_0x5491d0,getPluralForm:_0xba583b}}={'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':_0x52aa93=>0x1!=_0x52aa93}};_0xb67634['az']||={'dictionary':{},'getPluralForm':null},_0xb67634['az']['dictionary']=Object['assign'](_0xb67634['az']['dictionary'],_0x5491d0),_0xb67634['az']['getPluralForm']=_0xba583b;})(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':_0x52e3f9=>_0x52e3f9%0xa==0x1&&_0x52e3f9%0x64!=0xb?0x0:_0x52e3f9%0xa>=0x2&&_0x52e3f9%0xa<=0x4&&(_0x52e3f9%0x64<0xa||_0x52e3f9%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1c6265=>{const {be:{dictionary:_0x21efee,getPluralForm:_0x5aceb3}}={'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':_0x339993=>_0x339993%0xa==0x1&&_0x339993%0x64!=0xb?0x0:_0x339993%0xa>=0x2&&_0x339993%0xa<=0x4&&(_0x339993%0x64<0xa||_0x339993%0x64>=0x14)?0x1:0x2}};_0x1c6265['be']||={'dictionary':{},'getPluralForm':null},_0x1c6265['be']['dictionary']=Object['assign'](_0x1c6265['be']['dictionary'],_0x21efee),_0x1c6265['be']['getPluralForm']=_0x5aceb3;})(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':_0x544cf1=>0x1!=_0x544cf1}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2594c6=>{const {bg:{dictionary:_0x13a623,getPluralForm:_0x5c9d29}}={'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':_0x416e13=>0x1!=_0x416e13}};_0x2594c6['bg']||={'dictionary':{},'getPluralForm':null},_0x2594c6['bg']['dictionary']=Object['assign'](_0x2594c6['bg']['dictionary'],_0x13a623),_0x2594c6['bg']['getPluralForm']=_0x5c9d29;})(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':_0x5b937a=>0x1!=_0x5b937a}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2099ba=>{const {bn:{dictionary:_0x1de31a,getPluralForm:_0x1f4499}}={'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':_0x407f7f=>0x1!=_0x407f7f}};_0x2099ba['bn']||={'dictionary':{},'getPluralForm':null},_0x2099ba['bn']['dictionary']=Object['assign'](_0x2099ba['bn']['dictionary'],_0x1de31a),_0x2099ba['bn']['getPluralForm']=_0x1f4499;})(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':_0x318703=>_0x318703%0xa==0x1&&_0x318703%0x64!=0xb?0x0:_0x318703%0xa>=0x2&&_0x318703%0xa<=0x4&&(_0x318703%0x64<0xa||_0x318703%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x53c095=>{const {bs:{dictionary:_0x52d0b9,getPluralForm:_0x468c9f}}={'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':_0x148a0d=>_0x148a0d%0xa==0x1&&_0x148a0d%0x64!=0xb?0x0:_0x148a0d%0xa>=0x2&&_0x148a0d%0xa<=0x4&&(_0x148a0d%0x64<0xa||_0x148a0d%0x64>=0x14)?0x1:0x2}};_0x53c095['bs']||={'dictionary':{},'getPluralForm':null},_0x53c095['bs']['dictionary']=Object['assign'](_0x53c095['bs']['dictionary'],_0x52d0b9),_0x53c095['bs']['getPluralForm']=_0x468c9f;})(window['CKEDITOR_TRANSLATIONS']||={});
|