@ckeditor/ckeditor5-uploadcare 46.0.0-alpha.5 → 46.0.0-alpha.7
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 _0x2bd51e,Command as _0x261aa2}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x52534c,IconGooglePhotos as _0x528d33,IconGoogleDrive as _0x5526f1,IconFacebook as _0x573873,IconDropbox as _0x570c7d,IconUploadcareLink as _0xac6f53,IconUploadcareImageUpload as _0x564fdc,IconError as _0x44e746,IconUploadcareImageEdit as _0x2d805d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1c9ac3,MenuBarMenuListItemButtonView as _0x3a53b3,View as _0x300e8c,FocusCycler as _0x184e6b,Dialog as _0x1a6a7c,DialogViewPosition as _0x8457fb,SpinnerView as _0x26768c,IconView as _0x73c148,Notification as _0x4235c2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x47859d,DomEmitterMixin as _0x3087ba,global as _0xafe6eb,getAncestors as _0x594e2c,ObservableMixin as _0x5945cc,uid as _0x71db4a,createElement as _0x1fc752}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x444b96}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1f16e8,info as _0x565afe}from'@uploadcare/upload-client';import*as _0x2b26d1 from'@uploadcare/file-uploader';var i=function(_0x34f68d){return _0x34f68d['Local']='local',_0x34f68d['URL']='url',_0x34f68d['Dropbox']='dropbox',_0x34f68d['GDrive']='gdrive',_0x34f68d['Facebook']='facebook',_0x34f68d['GPhotos']='gphotos',_0x34f68d['OneDrive']='onedrive',_0x34f68d;}({});function _(_0x1d0885,_0x4a7e80,_0x3a5f37){const t=_0x1d0885['t'],_0x870577=_0x1d0885['t'];switch(_0x4a7e80){case i['Local']:return{'text':_0x870577('Insert'===_0x3a5f37?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x870577('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3a5f37?_0x870577('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x870577('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3a5f37?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4a7e80;}}class e extends _0x2bd51e{['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 _0x30b2ab=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x194b89;for(const _0x296192 in _0x30b2ab){const _0x1033b7=_0x296192,_0x5d71c7=_0x30b2ab[_0x1033b7];if('uploadcareLicenseKeyValid'==_0x5d71c7||'uploadcareLicenseKeyInvalid'==_0x5d71c7||'uploadcareLicenseKeyExpired'==_0x5d71c7||'uploadcareLicenseKeyDomainLimit'==_0x5d71c7||'uploadcareLicenseKeyNotAllowed'==_0x5d71c7||'uploadcareLicenseKeyEvaluationLimit'==_0x5d71c7||'uploadcareLicenseKeyTrialLimit'==_0x5d71c7||'uploadcareLicenseKeyUsageLimit'==_0x5d71c7){delete _0x30b2ab[_0x1033b7],_0x194b89=_0x5d71c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x194b89&&_0x30b2ab['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x194b89&&_0x30b2ab['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x194b89&&_0x30b2ab['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x194b89&&_0x30b2ab['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x57f709}=this,_0xc1f757=_0x57f709['commands']['get']('uploadcare');if(!_0xc1f757)return;const _0x140558=this['_normalizeConfigSourceList'](_0x57f709['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b3794,_0x4e9e0)=>{const _0x5c37e3=this['_getIntegrationKey'](_0x4e9e0['type']);return _0x5b3794[_0x5c37e3]||(_0x5b3794[_0x5c37e3]=[]),_0x5b3794[_0x5c37e3]['push'](_0x4e9e0),_0x5b3794;},{});_0x57f709['plugins']['has']('ImageInsertUI')&&_0x57f709['commands']['get']('uploadcare')&&Object['entries'](_0x140558)['forEach'](([_0x346fbc,_0xde674])=>{_0x57f709['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x346fbc,'observable':()=>_0xc1f757,'buttonViewCreator':()=>this['_createToolbarButton'](_0xde674),'formViewCreator':()=>this['_createDropdownButtons'](_0xde674),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xde674),'override':'assetManager'!==_0x346fbc});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x17d91e){const {locale:_0x131181}=this['editor'];return _0x17d91e['map'](_0x2c714=>{const _0x21834c=_(_0x131181,_0x2c714,'Insert');switch(_0x2c714){case i['Local']:return{'icon':_0x564fdc,'type':i['Local'],..._0x21834c};case i['URL']:return{'icon':_0xac6f53,'type':i['URL'],..._0x21834c};case i['Dropbox']:return{'icon':_0x570c7d,'type':i['Dropbox'],..._0x21834c};case i['Facebook']:return{'icon':_0x573873,'type':i['Facebook'],..._0x21834c};case i['GDrive']:return{'icon':_0x5526f1,'type':i['GDrive'],..._0x21834c};case i['GPhotos']:return{'icon':_0x528d33,'type':i['GPhotos'],..._0x21834c};case i['OneDrive']:return{'icon':_0x52534c,'type':i['OneDrive'],..._0x21834c};}});}['_getIntegrationKey'](_0x6f2a09){switch(_0x6f2a09){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x280abd,_0x30cbac){const _0x5cbb99=this['editor'],_0x1703a6=new _0x280abd(_0x5cbb99['locale']),_0x58b3d3=_0x5cbb99['commands']['get']('uploadcare');return _0x1703a6['bind']('isEnabled')['to'](_0x58b3d3),_0x1703a6['on']('execute',()=>{_0x58b3d3['execute'](_0x30cbac);}),_0x1703a6;}['_createToolbarButton'](_0x45180a){const {locale:_0x275406}=this['editor'],_0x44f6fc=this['editor']['plugins']['get']('ImageInsertUI'),_0x1828cf=_0x45180a[0x0],_0x111268=this['_createButton'](_0x1c9ac3,_0x1828cf['type']);return _0x111268['icon']=_0x1828cf['icon'],_0x111268['bind']('label')['to'](_0x44f6fc,'isImageSelected',_0x20920a=>_(_0x275406,_0x1828cf['type'],_0x20920a?'Replace':'Insert')['text']),_0x111268['tooltip']=!0x0,_0x111268;}['_createDropdownButtons'](_0x3e9a21){const {locale:_0x57a9b3}=this['editor'],_0x2f7aa7=this['editor']['plugins']['get']('ImageInsertUI');return _0x3e9a21['map'](_0x12c44c=>{const _0x3cf5a8=this['_createButton'](_0x1c9ac3,_0x12c44c['type']);return _0x3cf5a8['withText']=!0x0,_0x3cf5a8['icon']=_0x12c44c['icon'],_0x3cf5a8['bind']('label')['to'](_0x2f7aa7,'isImageSelected',_0x86bdc1=>_(_0x57a9b3,_0x12c44c['type'],_0x86bdc1?'Replace':'Insert')['text']),_0x3cf5a8;});}['_createMenuBarButtons'](_0x8deac9){return _0x8deac9['map'](_0x55d038=>{const _0x58e822=this['_createButton'](_0x3a53b3,_0x55d038['type']);return _0x58e822['icon']=_0x55d038['icon'],_0x58e822['label']=_0x55d038['shortText'],_0x58e822;});}}class F extends _0x300e8c{['focusTracker'];['focusCycler'];constructor(_0x4f6b48){super(_0x4f6b48),this['focusTracker']=new _0x47859d(),this['focusCycler']=new _0x184e6b({'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(_0x5938e0,_0x545d43){super(_0x5938e0),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-'+_0x545d43}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x42ca65,_0x3e6588){const _0x4e4553=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x10ac4d=>_0x10ac4d<=_0x3e6588)['map'](_0x3552f9=>_0x42ca65['replace'](/\/$/,'')+'/-/resize/'+_0x3552f9+'x/\x20'+_0x3552f9+'w');return{'imageFallbackUrl':_0x42ca65,'imageSources':[{'srcset':_0x4e4553['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3e6588+'px)\x20100vw,\x20'+_0x3e6588+'px','type':'image/webp'}]};}function C(_0x4d0abe,_0x534d2b,_0x227cac){const _0x5421f2=_0x4d0abe['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5421f2?parseInt(_0x5421f2[0x1],0xa):_0x534d2b,'height':_0x5421f2?parseInt(_0x5421f2[0x2],0xa):_0x227cac};}function p(_0x3dfbc9,_0x100ca8){const _0x5747ce=new(_0x3087ba())(),_0x25001c=_0x3dfbc9['plugins']['get']('ImageUtils'),_0x49dd50=_0x3dfbc9['editing']['mapper']['toViewElement'](_0x100ca8),_0x4c7e35=_0x25001c['findViewImgElement'](_0x49dd50),_0x5c5651=_0x3dfbc9['editing']['view']['domConverter']['viewToDom'](_0x4c7e35),_0x49897d=_0x100ca8['getAttribute']('width'),_0x38a95a=_0x100ca8['getAttribute']('height'),_0x4afbcc='image-processing';_0x3dfbc9['editing']['view']['change'](_0x6a42f=>{_0x6a42f['addClass'](_0x4afbcc,_0x49dd50),_0x6a42f['setStyle']('aspect-ratio',_0x49897d+'/'+_0x38a95a,_0x4c7e35);}),_0x5747ce['listenTo'](_0x5c5651,'load',()=>{_0x5747ce['stopListening'](_0x5c5651,'load'),_0x3dfbc9['editing']['view']['change'](_0x156067=>{_0x156067['removeClass'](_0x4afbcc,_0x49dd50),_0x156067['removeStyle']('aspect-ratio',_0x4c7e35);});});}function G(_0x169cdb){if(Array['isArray'](_0x169cdb)){const _0xeac480=_0x169cdb['map'](G);return _0x5b9fff=>_0xeac480['some'](_0x3d831b=>_0x3d831b(_0x5b9fff));}if('origin'==_0x169cdb){const _0x9f850b=_0xafe6eb['window']['location']['origin'];return _0x5a55dc=>new URL(_0x5a55dc,_0xafe6eb['document']['baseURI'])['origin']==_0x9f850b;}return'function'==typeof _0x169cdb?_0x169cdb:_0x169cdb instanceof RegExp?_0x2ccbd0=>!(!_0x2ccbd0['match'](_0x169cdb)&&!_0x2ccbd0['replace'](/^https?:\/\//,'')['match'](_0x169cdb)):()=>!0x1;}function S(_0x5c05ff,_0x35d2c7){return _0x594e2c(_0x5c05ff['target'])['includes'](_0x35d2c7);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5945cc(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b649d,_0x461a72,_0x564bec){super(),this['_editor']=_0x4b649d,this['_editing']=_0x461a72,this['_dialog']=_0x4b649d['plugins']['get'](_0x1a6a7c),this['_api']=_0x461a72['ctxElement']['getAPI'](),this['_type']=_0x564bec,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:_0x47dd4c,model:_0x49413d}=this['_editor'],_0x479b15=_0x49413d['document']['selection']['getSelectedElement'](),_0x4b3f23=_0x479b15&&(_0x479b15['is']('element','imageBlock')||_0x479b15['is']('element','imageInline'));this['_formView']=new x(_0x47dd4c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x564fdc,'title':_(_0x47dd4c,this['_type'],_0x4b3f23?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x8457fb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x309971=>!S(_0x309971,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5ca278}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x46c356=>{const _0x10862c=_0x5ca278['length'];for(const _0x1275bc of _0x5ca278){const _0xf3c08c=_0x1275bc===_0x5ca278[_0x10862c-0x1],{cdnUrl:_0x17cbd6,fileInfo:_0x6e85a3}=_0x1275bc;if(!_0x17cbd6||!_0x6e85a3)continue;const {width:_0x45abf1,height:_0x3ea4ae}=_0x6e85a3['imageInfo'],_0x55a514=C(_0x17cbd6,_0x45abf1,_0x3ea4ae),_0x57a139=k(_0x17cbd6,_0x55a514['width']),_0x5a1a32={'id':_0x6e85a3['uuid'],'type':'image','attributes':{'imageDimension':_0x55a514,..._0x57a139}};this['_insertAsset'](_0x5a1a32,_0xf3c08c,_0x46c356);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xb63bde=>{'idle'===_0xb63bde['detail']['status']&&!_0xb63bde['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x28f1ae,_0x445be1,_0xb118dd){const _0x11023d=this['_editor']['model']['document']['selection'],_0x4ea137=_0x11023d['getSelectedElement'](),_0x5e9674=!(!_0x4ea137||!_0x4ea137['is']('element','imageInline'));_0xb118dd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x28f1ae,_0x5e9674),_0x445be1||_0xb118dd['setSelection'](_0x11023d['getLastPosition']());}['_insertImage'](_0xa35375,_0x14f388){const _0x280ec3=this['_editor'],{imageDimension:_0x4c3fee,imageFallbackUrl:_0x548b1d,imageSources:_0x22ddbb}=_0xa35375['attributes'];_0x280ec3['execute']('insertImage',{'imageType':_0x14f388?'imageInline':null,'source':{'uploadcareImageId':_0xa35375['id'],'src':_0x548b1d,'sources':_0x22ddbb,..._0x4c3fee}});}}class w extends _0x261aa2{['_editing'];['_controller']=null;static get['requires'](){return[_0x1a6a7c,o];}constructor(_0x204d9f){super(_0x204d9f),this['_editing']=_0x204d9f['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3330a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3330a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3e1a7f,publicKey:_0x40d599,signal:_0xa75271,onProgress:_0x1d17cf}){return _0x1f16e8(_0x3e1a7f,{'publicKey':_0x40d599,'store':'auto','signal':_0xa75271,'onProgress':_0x1d17cf});}static['getInfo'](_0xd446d4,_0xaae8d1){return _0x565afe(_0xd446d4,_0xaae8d1);}}class f extends _0x2bd51e{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x444b96,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x96f224=this['editor'];if(!!!_0x96f224['config']['get']('uploadcare'))return;_0x96f224['plugins']['get'](_0x444b96)['createUploadAdapter']=_0x5d576f=>new A(_0x5d576f,_0x96f224),_0x96f224['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x556c6b,{imageElement:_0x41b99b,data:_0x23ea1e})=>{_0x96f224['model']['change'](_0x3af393=>{_0x3af393['setAttribute']('uploadcareImageId',_0x23ea1e['uploadcareImageId'],_0x41b99b);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x9c69c1,_0x1ec1af){this['loader']=_0x9c69c1,this['editor']=_0x1ec1af,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1206e0=this['editor']['config']['get']('uploadcare.pubkey'),_0x1eb9a5=await this['loader']['file'];return j['upload']({'file':_0x1eb9a5,'publicKey':_0x1206e0,'signal':this['controller']['signal'],'onProgress':_0x246044=>{_0x246044&&_0x246044['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x246044['value']);}})['then'](async _0x204094=>{const {imageFallbackUrl:_0x27a576,imageSources:_0x308e1c}=k(_0x204094['cdnUrl'],_0x204094['imageInfo']['width']);return{'uploadcareImageId':_0x204094['uuid'],'default':_0x27a576,'sources':_0x308e1c};})['catch'](()=>{const _0x1a3d76=t('Cannot\x20upload\x20file:')+('\x20'+_0x1eb9a5['name']+'.');return Promise['reject'](_0x1a3d76);});}['abort'](){this['controller']['abort']();}}class o extends _0x2bd51e{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1a6a7c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x57619e){super(_0x57619e),this['ucContextId']=_0x71db4a();}['init'](){const _0x576615=this['editor'];_0x576615['commands']['add']('uploadcare',new w(_0x576615));}['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 _0xc87c7=_0xafe6eb['document']['querySelector']('input[uploadcare-file-input]');_0xc87c7&&_0xc87c7['remove']();}),async function(_0x362d8){const _0x2c98b9=_0x486248([0x75,0x45,0x4d,0x35,0x31,0x54,0x67,0x6f,0x70,0x51,0x7a,0x42,0x61,0x62,0x49,0x6c,0x38,0x53,0x73,0x63,0x36,0x6e,0x37,0x32,0x52,0x65,0x64,0x41,0x58,0x39,0x34,0x56,0x48,0x68,0x59,0x76,0x71,0x6a,0x4f,0x4b,0x66,0x74,0x72,0x5a,0x43,0x44,0x47,0x33,0x77,0x4c,0x69,0x4e,0x6b,0x6d,0x30,0x78,0x46,0x4a,0x57,0x79,0x55,0x50]),_0x48f79b=0x7746ce3b,_0x2df76c=0x7741a2f3^_0x48f79b,_0x376bb3=window[_0x486248([0x44,0x61,0x74,0x65])][_0x486248([0x6e,0x6f,0x77])](),_0x2d262c=_0x362d8[_0x486248([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x316225=new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59e125=>{_0x2d262c[_0x486248([0x6f,0x6e,0x63,0x65])](_0x486248([0x72,0x65,0x61,0x64,0x79]),_0x59e125);}),_0x29479f={[_0x486248([0x6b,0x74,0x79])]:_0x486248([0x45,0x43]),[_0x486248([0x75,0x73,0x65])]:_0x486248([0x73,0x69,0x67]),[_0x486248([0x63,0x72,0x76])]:_0x486248([0x50,0x2d,0x32,0x35,0x36]),[_0x486248([0x78])]:_0x486248([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]),[_0x486248([0x79])]:_0x486248([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]),[_0x486248([0x61,0x6c,0x67])]:_0x486248([0x45,0x53,0x32,0x35,0x36])},_0x37a26b=_0x2d262c[_0x486248([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x486248([0x67,0x65,0x74])](_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e99dd(){let _0x98b00a,_0xf82d99=null,_0x1d1bb6=null;try{if(_0x37a26b==_0x486248([0x47,0x50,0x4c]))return _0x486248([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x98b00a=_0x5b6057(),!_0x98b00a)return _0x486248([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x98b00a[_0x486248([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d1bb6=_0x1b26fb(_0x98b00a[_0x486248([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x98b00a[_0x486248([0x6a,0x74,0x69])])),await _0x175b2d()?_0x216f8e()?_0x18c23f()?_0x486248([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c4c99()?(_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x486248([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf82d99=_0x2c1468(_0x486248([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x486248([0x74,0x72,0x69,0x61,0x6c])&&(_0xf82d99=_0x2c1468(_0x486248([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26d580()):_0x486248([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x486248([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x486248([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x486248([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18c23f(){const _0x109856=[_0x486248([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x486248([0x74,0x72,0x69,0x61,0x6c])][_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x376bb3/0x3e8:0xe10*_0x2df76c;return _0x98b00a[_0x486248([0x65,0x78,0x70])]<_0x109856;}function _0x216f8e(){const _0x13890b=_0x98b00a[_0x486248([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x13890b&&(!!_0x13890b[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486248([0x2a]))||!!_0x13890b[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486248([0x55,0x50,0x4c,0x43])));}function _0x3c4c99(){const _0x1abaa3=_0x98b00a[_0x486248([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1abaa3||0x0==_0x1abaa3[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a8c63}=new URL(window[_0x486248([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1abaa3[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a8c63))return!0x0;const _0x4d5186=_0x4a8c63[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e]));return _0x1abaa3[_0x486248([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c41e5=>_0x3c41e5[_0x486248([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486248([0x2a])))[_0x486248([0x6d,0x61,0x70])](_0x456b6c=>_0x456b6c[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e])))[_0x486248([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b96e9=>_0x3b96e9[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d5186[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x486248([0x6d,0x61,0x70])](_0x168fbf=>Array(_0x4d5186[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x168fbf[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x486248([0x66,0x69,0x6c,0x6c])](_0x168fbf[0x0]===_0x486248([0x2a])?_0x486248([0x2a]):'')[_0x486248([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x168fbf))[_0x486248([0x73,0x6f,0x6d,0x65])](_0x5044ad=>_0x4d5186[_0x486248([0x65,0x76,0x65,0x72,0x79])]((_0xd03c19,_0x4cd60d)=>_0x5044ad[_0x4cd60d]===_0xd03c19||_0x5044ad[_0x4cd60d]===_0x486248([0x2a])));}function _0x26d580(){return _0xf82d99&&_0x1d1bb6?new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34c884,_0x40d553)=>{_0xf82d99[_0x486248([0x74,0x68,0x65,0x6e])](_0x34c884,_0x40d553),_0x1d1bb6[_0x486248([0x74,0x68,0x65,0x6e])](_0x2f6fc9=>{_0x2f6fc9!=_0x486248([0x56,0x61,0x6c,0x69,0x64])&&_0x34c884(_0x2f6fc9);},_0x40d553);}):_0xf82d99||_0x1d1bb6||_0x486248([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b26fb(_0x59aaca,_0x103929){return new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53f00e=>{if(_0x181747())return _0x53f00e(_0x486248([0x56,0x61,0x6c,0x69,0x64]));_0x5040c1(),_0x2d262c[_0x486248([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x486248([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c3800=!0x1;const _0x3ef8b0=_0x71db4a();function _0x221441(_0x5c310e){return!!_0x5c310e&&(typeof _0x5c310e===_0x486248([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c310e===_0x486248([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c310e[_0x486248([0x74,0x68,0x65,0x6e])]===_0x486248([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c310e[_0x486248([0x63,0x61,0x74,0x63,0x68])]===_0x486248([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1094bf(_0x367313){_0x896da4(_0x367313)[_0x486248([0x74,0x68,0x65,0x6e])](_0x3addd4=>{if(!_0x3addd4||_0x3addd4[_0x486248([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x486248([0x6f,0x6b]))return _0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25464c(_0x26372e(_0x3ef8b0+_0x103929))!=_0x3addd4[_0x486248([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x486248([0x56,0x61,0x6c,0x69,0x64]);})[_0x486248([0x74,0x68,0x65,0x6e])](_0x6cd858=>(_0x2a3335(),_0x6cd858),()=>{const _0x3e3979=_0x57138b();return null==_0x3e3979?(_0x2a3335(),_0x486248([0x56,0x61,0x6c,0x69,0x64])):_0x486248(_0x376bb3-_0x3e3979>(0x534a4a3b^_0x48f79b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x486248([0x74,0x68,0x65,0x6e])](_0x53f00e)[_0x486248([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53f00e(_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1369e8=0x777020bb^_0x48f79b;function _0x2a3335(){const _0x4568a2=_0x486248([0x6c,0x6c,0x63,0x74,0x2d])+_0x25464c(_0x26372e(_0x59aaca)),_0x1ad558=_0x39491f(_0x25464c(window[_0x486248([0x4d,0x61,0x74,0x68])][_0x486248([0x63,0x65,0x69,0x6c])](_0x376bb3/_0x1369e8)));window[_0x486248([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x486248([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4568a2,_0x1ad558);}function _0x57138b(){const _0x3d9fee=_0x486248([0x6c,0x6c,0x63,0x74,0x2d])+_0x25464c(_0x26372e(_0x59aaca)),_0x7a1bd4=window[_0x486248([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x486248([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d9fee);return _0x7a1bd4?window[_0x486248([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39491f(_0x7a1bd4),0x10)*_0x1369e8:null;}function _0x896da4(_0x23f854){return new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d9c88,_0x352299)=>{_0x23f854[_0x486248([0x74,0x68,0x65,0x6e])](_0x4d9c88,_0x352299),window[_0x486248([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x352299,0x77471afb^_0x48f79b);});}}_0x2d262c[_0x486248([0x6f,0x6e])](_0x486248([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x62c51,_0x436a30)=>{if(_0x436a30[0x0]!=_0x59aaca)return _0x53f00e(_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x436a30[0x1]={..._0x436a30[0x1],[_0x486248([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ef8b0};},{[_0x486248([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x486248([0x68,0x69,0x67,0x68])}),_0x2d262c[_0x486248([0x6f,0x6e])](_0x486248([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xadafb8=>{_0x221441(_0xadafb8[_0x486248([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c3800=!0x0,_0x1094bf(_0xadafb8[_0x486248([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x486248([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x486248([0x6c,0x6f,0x77])}),_0x316225[_0x486248([0x74,0x68,0x65,0x6e])](()=>{_0x2c3800||_0x53f00e(_0x486248([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x181747(){return _0x2d262c[_0x486248([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x486248([0x76,0x69,0x65,0x77])][_0x486248([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x486248([0x61,0x75,0x74,0x6f]);}function _0x5040c1(){_0x2d262c[_0x486248([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x486248([0x76,0x69,0x65,0x77])][_0x486248([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x486248([0x61,0x75,0x74,0x6f]);}}function _0x2c1468(_0x890f8e){const _0x136e38=[new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12a475=>setTimeout(_0x12a475,0x774ff0f7^_0x48f79b)),_0x316225[_0x486248([0x74,0x68,0x65,0x6e])](()=>new window[(_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x98e720=>{let _0x203778=0x0;_0x2d262c[_0x486248([0x6d,0x6f,0x64,0x65,0x6c])][_0x486248([0x6f,0x6e])](_0x486248([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a0783,_0x3c5905)=>{_0x3c5905[0x0][_0x486248([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x203778++,_0x203778==(0x7746cfc3^_0x48f79b)&&(_0x98e720(),_0x2a0783[_0x486248([0x6f,0x66,0x66])]());});}))];return window[_0x486248([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x486248([0x72,0x61,0x63,0x65])](_0x136e38)[_0x486248([0x74,0x68,0x65,0x6e])](()=>_0x890f8e);}async function _0x1ee446(){await _0x316225,_0x2d262c[_0x486248([0x6d,0x6f,0x64,0x65,0x6c])][_0x486248([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e47f9,_0x2d262c[_0x486248([0x6d,0x6f,0x64,0x65,0x6c])][_0x486248([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e47f9,_0x2d262c[_0x486248([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x486248([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x238d74(_0x24cab0){const _0x51b514=_0x439fe0();_0x2d262c[_0x51b514]=_0x486248([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x24cab0,_0x24cab0!=_0x486248([0x56,0x61,0x6c,0x69,0x64])&&_0x1ee446();}function _0x439fe0(){const _0x5e5434=window[_0x486248([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x486248([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x486248([0x6e,0x6f,0x77])]())[_0x486248([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x486248([0x2e]),'');let _0x59f6b6=_0x486248([0x75]);for(let _0x2b8183=0x0;_0x2b8183<_0x5e5434[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b8183+=0x2){let _0x53aefa=window[_0x486248([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e5434[_0x486248([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b8183,_0x2b8183+0x2));_0x53aefa>=_0x2c98b9[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53aefa-=_0x2c98b9[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x59f6b6+=_0x2c98b9[_0x53aefa];}return _0x59f6b6;}function _0x5b6057(){const _0x4f18a3=_0x37a26b[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e]));if(0x3!=_0x4f18a3[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3aa6d4(_0x4f18a3[0x1]);function _0x3aa6d4(_0x5e1b26){const _0x177e30=_0x9df76c(_0x5e1b26);return _0x177e30&&_0x5de749()?_0x177e30:null;function _0x5de749(){const _0x226e03=_0x177e30[_0x486248([0x6a,0x74,0x69])],_0x5812ce=window[_0x486248([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x226e03[_0x486248([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x226e03[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cb97c={..._0x177e30,[_0x486248([0x6a,0x74,0x69])]:_0x226e03[_0x486248([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x226e03[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cb97c[_0x486248([0x76,0x63])],_0x26372e(_0x2cb97c)==_0x5812ce;}}}async function _0x175b2d(){let _0x4f7e48=!0x0;try{const _0x3ea502=_0x37a26b[_0x486248([0x73,0x70,0x6c,0x69,0x74])](_0x486248([0x2e])),[_0xcf935c,_0x19fbae,_0x36729d]=_0x3ea502;return _0x40162f(_0xcf935c),await _0xb873a3(_0xcf935c,_0x19fbae,_0x36729d),_0x4f7e48;}catch{return!0x1;}function _0x40162f(_0x40026c){const _0x277e5d=_0x9df76c(_0x40026c);_0x277e5d&&_0x277e5d[_0x486248([0x61,0x6c,0x67])]==_0x486248([0x45,0x53,0x32,0x35,0x36])||(_0x4f7e48=!0x1);}async function _0xb873a3(_0x4a6e9a,_0x26238e,_0x1e8eb7){const _0x30e772=window[_0x486248([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x486248([0x66,0x72,0x6f,0x6d])](_0x122abd(_0x1e8eb7),_0x2ed2cb=>_0x2ed2cb[_0x486248([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33f122=new window[(_0x486248([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x486248([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a6e9a+_0x486248([0x2e])+_0x26238e),_0x5cd9a8=window[_0x486248([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x486248([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5cd9a8)return;const _0x5b238b=await _0x5cd9a8[_0x486248([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x486248([0x6a,0x77,0x6b]),_0x29479f,{[_0x486248([0x6e,0x61,0x6d,0x65])]:_0x486248([0x45,0x43,0x44,0x53,0x41]),[_0x486248([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x486248([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x486248([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5cd9a8[_0x486248([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x486248([0x6e,0x61,0x6d,0x65])]:_0x486248([0x45,0x43,0x44,0x53,0x41]),[_0x486248([0x68,0x61,0x73,0x68])]:{[_0x486248([0x6e,0x61,0x6d,0x65])]:_0x486248([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b238b,_0x30e772,_0x33f122)||(_0x4f7e48=!0x1);}}function _0x9df76c(_0x59ea3c){return _0x59ea3c[_0x486248([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x486248([0x65,0x79]))?JSON[_0x486248([0x70,0x61,0x72,0x73,0x65])](_0x122abd(_0x59ea3c)):null;}function _0x122abd(_0x41254c){return window[_0x486248([0x61,0x74,0x6f,0x62])](_0x41254c[_0x486248([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x486248([0x2b]))[_0x486248([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x486248([0x2f])));}function _0x26372e(_0x351d86){let _0x5ee39e=0x1505;function _0xc216e9(_0x457fed){for(let _0x3d0d6e=0x0;_0x3d0d6e<_0x457fed[_0x486248([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d0d6e++){const _0x532b2f=_0x457fed[_0x486248([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d0d6e);_0x5ee39e=(_0x5ee39e<<0x5)+_0x5ee39e+_0x532b2f,_0x5ee39e&=_0x5ee39e;}}function _0x5e442d(_0x3dce6f){Array[_0x486248([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3dce6f)?_0x3dce6f[_0x486248([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e442d):_0x3dce6f&&typeof _0x3dce6f==_0x486248([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x486248([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3dce6f)[_0x486248([0x73,0x6f,0x72,0x74])]()[_0x486248([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43923e,_0x23dc1c])=>{_0xc216e9(_0x43923e),_0x5e442d(_0x23dc1c);}):_0xc216e9(window[_0x486248([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3dce6f));}return _0x5e442d(_0x351d86),_0x5ee39e>>>0x0;}function _0x25464c(_0x5c0d22){return _0x5c0d22[_0x486248([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x486248([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x486248([0x30]));}function _0x39491f(_0x31d10e){return _0x31d10e[_0x486248([0x73,0x70,0x6c,0x69,0x74])]('')[_0x486248([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x486248([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e47f9(){}function _0x486248(_0x292a73){return _0x292a73['map'](_0x3c64a7=>String['fromCharCode'](_0x3c64a7))['join']('');}_0x238d74(await _0x4e99dd());}(this);}['_initSchema'](){const _0x35740b=this['editor']['model']['schema'];_0x35740b['isRegistered']('imageBlock')&&_0x35740b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x35740b['isRegistered']('imageInline')&&_0x35740b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x353179=this['editor'];_0x353179['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x353179['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x31b19d=>_0x31b19d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x16b57d=_0x353179['commands']['get']('replaceImageSource');_0x16b57d&&this['listenTo'](_0x16b57d,'cleanupImage',(_0x4da020,[_0x3b3d83,_0x5be4fe])=>{_0x3b3d83['removeAttribute']('uploadcareImageId',_0x5be4fe);});}['_initConfig'](){const _0x30bdad=this['editor']['config']['get']('uploadcare.uploader')||{},_0x34aec3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1fc752(_0xafe6eb['document'],'uc-config',{..._0x30bdad,'pubkey':_0x34aec3,'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']=_0x530fb2=>{if('closeMax'==_0x530fb2)return'#uc-icon-arrow-down';},_0xafe6eb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1fc752(_0xafe6eb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xafe6eb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x7e3acf=this['editor']['commands']['get']('insertImage');_0x7e3acf&&this['listenTo'](_0x7e3acf,'execute',()=>{const _0x1f59a3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1f59a3&&_0x1f59a3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1f59a3);});});const _0x3f7559=this['editor']['commands']['get']('uploadcareImageReplace');_0x3f7559&&this['listenTo'](_0x3f7559,'execute',()=>{const _0x5033d9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5033d9&&_0x5033d9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5033d9);});});}}class tt extends _0x2bd51e{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d158f){super(_0x3d158f),_0x3d158f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2b26d1['defineComponents'](_0x2b26d1);}}class ii extends _0x300e8c{constructor(_0x348a87){super(_0x348a87);const t=_0x348a87['t'],_0x48752a=this['bindTemplate'],_0x1bdd7a=new _0x26768c();_0x1bdd7a['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':[_0x1bdd7a,{'text':_0x48752a['to']('imageUploadProgress',_0x2e5f3d=>t('Loading\x20image...')+'\x20('+(_0x2e5f3d||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 _0x300e8c{constructor(_0x324920){super(_0x324920);const t=_0x324920['t'];this['set']('errorType',null);const _0x2b5a03=new _0x1c9ac3(_0x324920);_0x2b5a03['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2b5a03['withText']=!0x0,_0x2b5a03['class']='ck-button-action',_0x2b5a03['on']('execute',()=>{this['fire']('retry');}),_0x2b5a03['bind']('isVisible')['to'](this,'errorType',_0x131c0e=>'NotFound'!==_0x131c0e);const _0x2ebf7d=new _0x73c148();_0x2ebf7d['content']=_0x44e746,_0x2ebf7d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3d7eb0=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':[_0x2ebf7d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3d7eb0['to']('errorType',_0x2aba9b=>t('NotFound'!==_0x2aba9b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2b5a03]},{'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 _0x300e8c{constructor(_0xf693d3,_0x1f2e9b){super(_0xf693d3);const _0x2d84e0=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1f2e9b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2d84e0['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1761e9,_0x52748a,_0x536cac){super(_0x1761e9),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1761e9),this['_errorView']=new ti(_0x1761e9),this['_editingView']=new ei(_0x1761e9,_0x536cac),this['_focusableView']=new _0x300e8c(_0x1761e9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x52748a),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'],_0x1ce8b8=>{this['_addUploadcareImageEditorListeners'](_0x1ce8b8);});}),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'](_0xb5b03e,_0x57ffa9){const _0x2371e6='uc-cloud-image-editor',_0x38c787=_0xb5b03e['querySelector'](_0x2371e6);if(_0x38c787)return _0x57ffa9(_0x38c787);const _0x527ee3=new MutationObserver(_0x4a5017=>{const _0x22c078=_0x4a5017['filter'](_0x56d541=>_0x56d541['target']===_0xb5b03e&&_0x56d541['addedNodes']['length']>0x0&&_0x56d541['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2371e6);_0x22c078['length']&&(_0x527ee3['disconnect'](),_0x57ffa9(_0x22c078[0x0]['addedNodes'][0x0]));});_0x527ee3['observe'](_0xb5b03e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4c1a5d){_0x4c1a5d['addEventListener']('apply',_0x58cc9a=>{this['fire']('apply',{'imageSrc':_0x58cc9a['detail']['cdnUrl']});}),_0x4c1a5d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5945cc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x51b488,_0x380b26,_0x2700d6){super(),this['_editor']=_0x51b488,this['_dialog']=_0x380b26,this['_imageElement']=_0x2700d6,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 _0x54d545=this['_imageElement'],_0x1ee4a1=_0x54d545['getAttribute']('uploadcareImageId'),_0x47e076=_0x54d545['getAttribute']('src');if(_0x1ee4a1)await this['_loadImageInfo'](_0x1ee4a1,_0x47e076);else{if(this['_imageCache']['has'](_0x47e076)){const _0x287821=this['_imageCache']['get'](_0x47e076);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x287821['url'],this['imageDimension']=_0x287821['dimension'],this['imageId']=_0x287821['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x377138}=this['_editor'],t=_0x377138['t'],_0x474780=new X(_0x377138,this['imageStatus'],this['_attributes']);_0x474780['bind']('status')['to'](this,'imageStatus'),_0x474780['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x474780['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x474780['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x474780,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2d805d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x474780,'position':_0x8457fb['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x474780['focus']();},'onHide':()=>{_0x474780['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x31bbb4=>!S(_0x31bbb4,_0x474780['element'])}});}['_loadImageInfo'](_0x2cdb65,_0x5b3aa8){return j['getInfo'](_0x2cdb65,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x54e89b=>{const {width:_0x28a30e,height:_0x3c6648}=_0x54e89b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b3aa8,this['imageDimension']={'width':_0x28a30e,'height':_0x3c6648},this['imageId']=_0x2cdb65;})['catch'](_0x36d257=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x36d257['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2e797d,_0x1dbcdf){return this['_getImageAsFile'](_0x2e797d)['then'](_0xabecb5=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1dbcdf['signal'],'file':_0xabecb5,'onProgress':_0x519e80=>{_0x519e80&&_0x519e80['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x519e80['value']));}}))['then'](_0x5505e5=>{const {width:_0x1350ad,height:_0xd07e8f}=_0x5505e5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5505e5['cdnUrl'],this['imageDimension']={'width':_0x1350ad,'height':_0xd07e8f},this['imageId']=_0x5505e5['uuid'],this['imageUploadProgress']=null;const _0x13060c=_0x2e797d['getAttribute']('src');this['_imageCache']['set'](_0x13060c,{'id':_0x5505e5['uuid'],'url':_0x5505e5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2381b8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2381b8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x577b0a,_0x2b0daa){_0x577b0a['on']('apply',(_0x42c5fc,_0x38deff)=>{this['_replaceImage'](_0x2b0daa,_0x38deff['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x577b0a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x577b0a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x17e03e,_0x3e50af,_0x1449de){const _0x1f6f17=this['_editor'],{width:_0x287bd1,height:_0x34af40}=C(_0x3e50af,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4bf513,imageSources:_0x3f9a19}=k(_0x3e50af,_0x287bd1);_0x1f6f17['model']['change'](_0x23ae61=>{if('$graveyard'===_0x17e03e['root']['rootName']){_0x1f6f17['execute']('insertImage',{'imageType':_0x17e03e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x17e03e['getAttributes']()),'uploadcareImageId':_0x1449de,'src':_0x4bf513,'sources':_0x3f9a19,'width':_0x287bd1,'height':_0x34af40}});const _0x1d1a8d=_0x17e03e['getChildren']();_0x17e03e=_0x1f6f17['model']['document']['selection']['getSelectedElement']();for(const _0x5edee9 of _0x1d1a8d)_0x23ae61['append'](_0x23ae61['cloneElement'](_0x5edee9),_0x17e03e);}else _0x23ae61['setSelection'](_0x17e03e,'on'),_0x1f6f17['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x17e03e['getAttributes']()),'uploadcareImageId':_0x1449de,'src':_0x4bf513,'sources':_0x3f9a19,'width':_0x287bd1,'height':_0x34af40},_0x17e03e);_0x23ae61['setSelection'](_0x17e03e,'on');});}async['_getImageAsFile'](_0x1a77d5){const _0x15c487=_0xafe6eb['window'],_0x5cd3f4=_0xafe6eb['document']['location']['href'],_0x22edda=new _0x15c487['URL'](_0x1a77d5['getAttribute']('src'),_0x5cd3f4);if('data:'===_0x22edda['protocol']){const _0x2ee529=_0x22edda['href']['split'](','),_0x480f5e=_0x2ee529[0x0]['match'](/:(.*?);/)[0x1],_0x450f53=_0x480f5e['split']('/')[0x1],_0x57d53f=_0x15c487['atob'](_0x2ee529[_0x2ee529['length']-0x1]);let _0x1b0ca0=_0x57d53f['length'];const _0x58003f=new _0x15c487['Uint8Array'](_0x1b0ca0);for(;_0x1b0ca0--;)_0x58003f[_0x1b0ca0]=_0x57d53f['charCodeAt'](_0x1b0ca0);return new _0x15c487['File']([_0x58003f],'image.'+_0x450f53,{'type':_0x480f5e});}const _0x4dfa79=_0x22edda['href']['split']('/'),_0x52269c=_0x4dfa79[_0x4dfa79['length']-0x1],_0x4d6083=_0x52269c['split']('.')[0x1];return _0x15c487['fetch'](_0x22edda['href'])['then'](_0x378278=>_0x378278['clone']()['blob']())['then'](_0x2b58c8=>new _0x15c487['File']([_0x2b58c8],_0x52269c,{'type':'image/'+_0x4d6083}));}}class O extends _0x261aa2{['imageEditController'];static get['requires'](){return[_0x1a6a7c];}['_isEditable'];constructor(_0x525ff6){super(_0x525ff6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xaa8b8d){const _0x130e00=G(_0xaa8b8d);return _0x520fb2=>!(!_0x520fb2||!_0x520fb2['is']('element','imageBlock')&&!_0x520fb2['is']('element','imageInline'))&&(!!_0x520fb2['hasAttribute']('uploadcareImageId')||!!_0x520fb2['hasAttribute']('src')&&_0x130e00(_0x520fb2['getAttribute']('src')));}(_0x525ff6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x35d05f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x35d05f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x28574a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28574a&&(_0x28574a['is']('element','imageBlock')||_0x28574a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1a6a7c),_0x28574a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x261aa2{['refresh'](){const _0x52f97e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x52f97e&&(_0x52f97e['is']('element','imageBlock')||_0x52f97e['is']('element','imageInline')));}['execute'](_0x206ce9){const _0x144b5d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2f69ae=>{_0x2f69ae['setAttributes'](_0x206ce9,_0x144b5d),_0x2f69ae['removeAttribute']('srcset',_0x144b5d),_0x2f69ae['removeAttribute']('sizes',_0x144b5d);});}}class m extends _0x2bd51e{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x4235c2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x48bc1c}=this;_0x48bc1c['commands']['add']('uploadcareImageEdit',new O(_0x48bc1c)),_0x48bc1c['commands']['add']('uploadcareImageReplace',new R(_0x48bc1c));}}class g extends _0x2bd51e{['_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 _0x4455ff=this['editor'];_0x4455ff['ui']['componentFactory']['add']('uploadcareImageEdit',_0xe8eefa=>{const _0x55cccb=_0x4455ff['commands']['get']('uploadcareImageEdit'),_0x4e3a07=new _0x1c9ac3(_0xe8eefa),t=_0xe8eefa['t'];return _0x4e3a07['set']({'icon':_0x2d805d,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4e3a07['bind']('isEnabled')['to'](_0x55cccb),_0x4e3a07['bind']('isOn')['to'](_0x55cccb,'isActive'),this['listenTo'](_0x4e3a07,'execute',()=>{_0x4455ff['execute']('uploadcareImageEdit'),_0x4455ff['editing']['view']['focus']();}),_0x4e3a07;}),this['_initConfig']();}['_initConfig'](){const _0x434d0d=_0x1fc752(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x434d0d),this['listenTo'](this['editor'],'destroy',()=>{_0x434d0d['remove']();});}}class et extends _0x2bd51e{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0xa02c31,Command as _0x40a540}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2b3cc3,IconGooglePhotos as _0x3328c1,IconGoogleDrive as _0x3e1eb4,IconFacebook as _0xbe19f2,IconDropbox as _0x4ff699,IconUploadcareLink as _0xaca2fc,IconUploadcareImageUpload as _0x4f860e,IconError as _0x3086a9,IconUploadcareImageEdit as _0x4a9654}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x586669,MenuBarMenuListItemButtonView as _0x19fafd,View as _0xf574a8,FocusCycler as _0x4753cf,Dialog as _0x3bdf3c,DialogViewPosition as _0x6f9f03,SpinnerView as _0x170b6f,IconView as _0x9bf704,Notification as _0x246ad2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x412e62,DomEmitterMixin as _0x48397f,global as _0x5980d3,getAncestors as _0x53fd38,ObservableMixin as _0x4180c3,uid as _0x3c7735,createElement as _0x9cca2d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5060d0}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4f0e4f,info as _0x57aac6}from'@uploadcare/upload-client';import*as _0xb0ea0d from'@uploadcare/file-uploader';var i=function(_0x3e3e6a){return _0x3e3e6a['Local']='local',_0x3e3e6a['URL']='url',_0x3e3e6a['Dropbox']='dropbox',_0x3e3e6a['GDrive']='gdrive',_0x3e3e6a['Facebook']='facebook',_0x3e3e6a['GPhotos']='gphotos',_0x3e3e6a['OneDrive']='onedrive',_0x3e3e6a;}({});function _(_0x4acf8b,_0x366bdd,_0x1441a6){const t=_0x4acf8b['t'],_0x35912a=_0x4acf8b['t'];switch(_0x366bdd){case i['Local']:return{'text':_0x35912a('Insert'===_0x1441a6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x35912a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1441a6?_0x35912a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x35912a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1441a6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x366bdd;}}class e extends _0xa02c31{['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 _0x22dadd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x399a40;for(const _0x5a08c3 in _0x22dadd){const _0x46b1b6=_0x5a08c3,_0x18b5f5=_0x22dadd[_0x46b1b6];if('uploadcareLicenseKeyValid'==_0x18b5f5||'uploadcareLicenseKeyInvalid'==_0x18b5f5||'uploadcareLicenseKeyExpired'==_0x18b5f5||'uploadcareLicenseKeyDomainLimit'==_0x18b5f5||'uploadcareLicenseKeyNotAllowed'==_0x18b5f5||'uploadcareLicenseKeyEvaluationLimit'==_0x18b5f5||'uploadcareLicenseKeyTrialLimit'==_0x18b5f5||'uploadcareLicenseKeyUsageLimit'==_0x18b5f5){delete _0x22dadd[_0x46b1b6],_0x399a40=_0x18b5f5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x399a40&&_0x22dadd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x399a40&&_0x22dadd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x399a40&&_0x22dadd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x399a40&&_0x22dadd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4993ba}=this,_0x3f6695=_0x4993ba['commands']['get']('uploadcare');if(!_0x3f6695)return;const _0x3274ff=this['_normalizeConfigSourceList'](_0x4993ba['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1d3d1b,_0x212da9)=>{const _0x309fb9=this['_getIntegrationKey'](_0x212da9['type']);return _0x1d3d1b[_0x309fb9]||(_0x1d3d1b[_0x309fb9]=[]),_0x1d3d1b[_0x309fb9]['push'](_0x212da9),_0x1d3d1b;},{});_0x4993ba['plugins']['has']('ImageInsertUI')&&_0x4993ba['commands']['get']('uploadcare')&&Object['entries'](_0x3274ff)['forEach'](([_0x346bdd,_0x457e08])=>{_0x4993ba['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x346bdd,'observable':()=>_0x3f6695,'buttonViewCreator':()=>this['_createToolbarButton'](_0x457e08),'formViewCreator':()=>this['_createDropdownButtons'](_0x457e08),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x457e08),'override':'assetManager'!==_0x346bdd});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x358c7f){const {locale:_0x49b412}=this['editor'];return _0x358c7f['map'](_0x2d24ad=>{const _0x565ed2=_(_0x49b412,_0x2d24ad,'Insert');switch(_0x2d24ad){case i['Local']:return{'icon':_0x4f860e,'type':i['Local'],..._0x565ed2};case i['URL']:return{'icon':_0xaca2fc,'type':i['URL'],..._0x565ed2};case i['Dropbox']:return{'icon':_0x4ff699,'type':i['Dropbox'],..._0x565ed2};case i['Facebook']:return{'icon':_0xbe19f2,'type':i['Facebook'],..._0x565ed2};case i['GDrive']:return{'icon':_0x3e1eb4,'type':i['GDrive'],..._0x565ed2};case i['GPhotos']:return{'icon':_0x3328c1,'type':i['GPhotos'],..._0x565ed2};case i['OneDrive']:return{'icon':_0x2b3cc3,'type':i['OneDrive'],..._0x565ed2};}});}['_getIntegrationKey'](_0x616385){switch(_0x616385){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d1877,_0x2788c5){const _0x495fd9=this['editor'],_0x59f4a5=new _0x5d1877(_0x495fd9['locale']),_0x159b61=_0x495fd9['commands']['get']('uploadcare');return _0x59f4a5['bind']('isEnabled')['to'](_0x159b61),_0x59f4a5['on']('execute',()=>{_0x159b61['execute'](_0x2788c5);}),_0x59f4a5;}['_createToolbarButton'](_0x341390){const {locale:_0x3d418e}=this['editor'],_0x439674=this['editor']['plugins']['get']('ImageInsertUI'),_0x29832a=_0x341390[0x0],_0x391ad6=this['_createButton'](_0x586669,_0x29832a['type']);return _0x391ad6['icon']=_0x29832a['icon'],_0x391ad6['bind']('label')['to'](_0x439674,'isImageSelected',_0x4501ed=>_(_0x3d418e,_0x29832a['type'],_0x4501ed?'Replace':'Insert')['text']),_0x391ad6['tooltip']=!0x0,_0x391ad6;}['_createDropdownButtons'](_0x4da4ab){const {locale:_0x14bbd9}=this['editor'],_0xc9d673=this['editor']['plugins']['get']('ImageInsertUI');return _0x4da4ab['map'](_0x40cc24=>{const _0x59529d=this['_createButton'](_0x586669,_0x40cc24['type']);return _0x59529d['withText']=!0x0,_0x59529d['icon']=_0x40cc24['icon'],_0x59529d['bind']('label')['to'](_0xc9d673,'isImageSelected',_0x594f5a=>_(_0x14bbd9,_0x40cc24['type'],_0x594f5a?'Replace':'Insert')['text']),_0x59529d;});}['_createMenuBarButtons'](_0x11d7ba){return _0x11d7ba['map'](_0x2689f9=>{const _0x2a7598=this['_createButton'](_0x19fafd,_0x2689f9['type']);return _0x2a7598['icon']=_0x2689f9['icon'],_0x2a7598['label']=_0x2689f9['shortText'],_0x2a7598;});}}class F extends _0xf574a8{['focusTracker'];['focusCycler'];constructor(_0x5acd77){super(_0x5acd77),this['focusTracker']=new _0x412e62(),this['focusCycler']=new _0x4753cf({'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(_0x6a5aa0,_0x30fde0){super(_0x6a5aa0),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-'+_0x30fde0}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x4b3ed5,_0x50dd95){const _0x30e2b0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x30ca2a=>_0x30ca2a<=_0x50dd95)['map'](_0x3757b9=>_0x4b3ed5['replace'](/\/$/,'')+'/-/resize/'+_0x3757b9+'x/\x20'+_0x3757b9+'w');return{'imageFallbackUrl':_0x4b3ed5,'imageSources':[{'srcset':_0x30e2b0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x50dd95+'px)\x20100vw,\x20'+_0x50dd95+'px','type':'image/webp'}]};}function C(_0x174b99,_0x4cd57e,_0x188105){const _0x3829ac=_0x174b99['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3829ac?parseInt(_0x3829ac[0x1],0xa):_0x4cd57e,'height':_0x3829ac?parseInt(_0x3829ac[0x2],0xa):_0x188105};}function p(_0x2150a4,_0x855e7d){const _0x59f47f=new(_0x48397f())(),_0x15d4ef=_0x2150a4['plugins']['get']('ImageUtils'),_0x38b088=_0x2150a4['editing']['mapper']['toViewElement'](_0x855e7d),_0x2e2c90=_0x15d4ef['findViewImgElement'](_0x38b088),_0x49dab2=_0x2150a4['editing']['view']['domConverter']['viewToDom'](_0x2e2c90),_0x5ad501=_0x855e7d['getAttribute']('width'),_0x5a622c=_0x855e7d['getAttribute']('height'),_0x4500bc='image-processing';_0x2150a4['editing']['view']['change'](_0x193a5a=>{_0x193a5a['addClass'](_0x4500bc,_0x38b088),_0x193a5a['setStyle']('aspect-ratio',_0x5ad501+'/'+_0x5a622c,_0x2e2c90);}),_0x59f47f['listenTo'](_0x49dab2,'load',()=>{_0x59f47f['stopListening'](_0x49dab2,'load'),_0x2150a4['editing']['view']['change'](_0x2c1c68=>{_0x2c1c68['removeClass'](_0x4500bc,_0x38b088),_0x2c1c68['removeStyle']('aspect-ratio',_0x2e2c90);});});}function z(_0x4d0fa0){if(Array['isArray'](_0x4d0fa0)){const _0x4c14c4=_0x4d0fa0['map'](z);return _0x323d90=>_0x4c14c4['some'](_0x1ffb90=>_0x1ffb90(_0x323d90));}if('origin'==_0x4d0fa0){const _0x2d7316=_0x5980d3['window']['location']['origin'];return _0x186288=>new URL(_0x186288,_0x5980d3['document']['baseURI'])['origin']==_0x2d7316;}return'function'==typeof _0x4d0fa0?_0x4d0fa0:_0x4d0fa0 instanceof RegExp?_0x1766f2=>!(!_0x1766f2['match'](_0x4d0fa0)&&!_0x1766f2['replace'](/^https?:\/\//,'')['match'](_0x4d0fa0)):()=>!0x1;}function S(_0x17d7d4,_0x5269e9){return _0x53fd38(_0x17d7d4['target'])['includes'](_0x5269e9);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4180c3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x554431,_0xe1ddbb,_0x28c030){super(),this['_editor']=_0x554431,this['_editing']=_0xe1ddbb,this['_dialog']=_0x554431['plugins']['get'](_0x3bdf3c),this['_api']=_0xe1ddbb['ctxElement']['getAPI'](),this['_type']=_0x28c030,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:_0x5ae508,model:_0x2653e9}=this['_editor'],_0x2a0e3b=_0x2653e9['document']['selection']['getSelectedElement'](),_0x4153e=_0x2a0e3b&&(_0x2a0e3b['is']('element','imageBlock')||_0x2a0e3b['is']('element','imageInline'));this['_formView']=new x(_0x5ae508,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4f860e,'title':_(_0x5ae508,this['_type'],_0x4153e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x6f9f03['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x245875=>!S(_0x245875,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x8b2a62}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x53ea06=>{const _0x392b0c=_0x8b2a62['length'];for(const _0x45e1d6 of _0x8b2a62){const _0x4f74d1=_0x45e1d6===_0x8b2a62[_0x392b0c-0x1],{cdnUrl:_0x5eb485,fileInfo:_0x1471bf}=_0x45e1d6;if(!_0x5eb485||!_0x1471bf)continue;const {width:_0x4d3f68,height:_0x6a456a}=_0x1471bf['imageInfo'],_0x3319eb=C(_0x5eb485,_0x4d3f68,_0x6a456a),_0x2c2835=k(_0x5eb485,_0x3319eb['width']),_0xcdfa3c={'id':_0x1471bf['uuid'],'type':'image','attributes':{'imageDimension':_0x3319eb,..._0x2c2835}};this['_insertAsset'](_0xcdfa3c,_0x4f74d1,_0x53ea06);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xbbcf2d=>{'idle'===_0xbbcf2d['detail']['status']&&!_0xbbcf2d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1300f4,_0x544f21,_0x195ba3){const _0x1a92fd=this['_editor']['model']['document']['selection'],_0x529dc4=_0x1a92fd['getSelectedElement'](),_0x1592e1=!(!_0x529dc4||!_0x529dc4['is']('element','imageInline'));_0x195ba3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1300f4,_0x1592e1),_0x544f21||_0x195ba3['setSelection'](_0x1a92fd['getLastPosition']());}['_insertImage'](_0x51408c,_0xc85958){const _0x304851=this['_editor'],{imageDimension:_0x44a2b5,imageFallbackUrl:_0x4c2dff,imageSources:_0x240ea8}=_0x51408c['attributes'];_0x304851['execute']('insertImage',{'imageType':_0xc85958?'imageInline':null,'source':{'uploadcareImageId':_0x51408c['id'],'src':_0x4c2dff,'sources':_0x240ea8,..._0x44a2b5}});}}class w extends _0x40a540{['_editing'];['_controller']=null;static get['requires'](){return[_0x3bdf3c,o];}constructor(_0x295cd8){super(_0x295cd8),this['_editing']=_0x295cd8['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5924dc){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5924dc);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1a77e8,publicKey:_0xc8d069,signal:_0x4adbc0,onProgress:_0x586a16}){return _0x4f0e4f(_0x1a77e8,{'publicKey':_0xc8d069,'store':'auto','signal':_0x4adbc0,'onProgress':_0x586a16});}static['getInfo'](_0x1e066e,_0x12e57c){return _0x57aac6(_0x1e066e,_0x12e57c);}}class f extends _0xa02c31{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5060d0,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x25fe64=this['editor'];if(!!!_0x25fe64['config']['get']('uploadcare'))return;_0x25fe64['plugins']['get'](_0x5060d0)['createUploadAdapter']=_0x1558e0=>new A(_0x1558e0,_0x25fe64),_0x25fe64['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x21a817,{imageElement:_0x3bebe6,data:_0x442586})=>{_0x25fe64['model']['change'](_0x4167c8=>{_0x4167c8['setAttribute']('uploadcareImageId',_0x442586['uploadcareImageId'],_0x3bebe6);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x81c750,_0x2ee25c){this['loader']=_0x81c750,this['editor']=_0x2ee25c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x65b9c0=this['editor']['config']['get']('uploadcare.pubkey'),_0x5a9f7b=await this['loader']['file'];return j['upload']({'file':_0x5a9f7b,'publicKey':_0x65b9c0,'signal':this['controller']['signal'],'onProgress':_0x2c12c1=>{_0x2c12c1&&_0x2c12c1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2c12c1['value']);}})['then'](async _0x5a7e8a=>{const {imageFallbackUrl:_0x35243e,imageSources:_0x39eb6e}=k(_0x5a7e8a['cdnUrl'],_0x5a7e8a['imageInfo']['width']);return{'uploadcareImageId':_0x5a7e8a['uuid'],'default':_0x35243e,'sources':_0x39eb6e};})['catch'](()=>{const _0xcf1a4=t('Cannot\x20upload\x20file:')+('\x20'+_0x5a9f7b['name']+'.');return Promise['reject'](_0xcf1a4);});}['abort'](){this['controller']['abort']();}}class o extends _0xa02c31{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3bdf3c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5b7c26){super(_0x5b7c26),this['ucContextId']=_0x3c7735();}['init'](){const _0x82e2c=this['editor'];_0x82e2c['commands']['add']('uploadcare',new w(_0x82e2c));}['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 _0x2f05e8=_0x5980d3['document']['querySelector']('input[uploadcare-file-input]');_0x2f05e8&&_0x2f05e8['remove']();}),async function(_0x3dd7d1){const _0x1824d1=_0x4db8e1([0x71,0x50,0x36,0x75,0x31,0x30,0x56,0x55,0x44,0x4e,0x73,0x66,0x6b,0x65,0x70,0x79,0x6c,0x4d,0x43,0x52,0x32,0x58,0x4c,0x63,0x62,0x42,0x49,0x39,0x41,0x61,0x45,0x59,0x5a,0x6d,0x77,0x4b,0x38,0x35,0x4f,0x64,0x4a,0x6a,0x6f,0x72,0x78,0x53,0x34,0x47,0x68,0x67,0x54,0x46,0x76,0x51,0x57,0x7a,0x33,0x37,0x6e,0x69,0x48,0x74]),_0x1f9a0a=0x57c6dede,_0x317a62=0x57c1b226^_0x1f9a0a,_0x11b1dc=window[_0x4db8e1([0x44,0x61,0x74,0x65])][_0x4db8e1([0x6e,0x6f,0x77])](),_0x4f963c=_0x3dd7d1[_0x4db8e1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xee1907=new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x165a45=>{_0x4f963c[_0x4db8e1([0x6f,0x6e,0x63,0x65])](_0x4db8e1([0x72,0x65,0x61,0x64,0x79]),_0x165a45);}),_0x5daff7={[_0x4db8e1([0x6b,0x74,0x79])]:_0x4db8e1([0x45,0x43]),[_0x4db8e1([0x75,0x73,0x65])]:_0x4db8e1([0x73,0x69,0x67]),[_0x4db8e1([0x63,0x72,0x76])]:_0x4db8e1([0x50,0x2d,0x32,0x35,0x36]),[_0x4db8e1([0x78])]:_0x4db8e1([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]),[_0x4db8e1([0x79])]:_0x4db8e1([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]),[_0x4db8e1([0x61,0x6c,0x67])]:_0x4db8e1([0x45,0x53,0x32,0x35,0x36])},_0x2dd465=_0x4f963c[_0x4db8e1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4db8e1([0x67,0x65,0x74])](_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e721d(){let _0x1659b2,_0x529f2f=null,_0x4582cd=null;try{if(_0x2dd465==_0x4db8e1([0x47,0x50,0x4c]))return _0x4db8e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1659b2=_0x37395a(),!_0x1659b2)return _0x4db8e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1659b2[_0x4db8e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4582cd=_0x30c27d(_0x1659b2[_0x4db8e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1659b2[_0x4db8e1([0x6a,0x74,0x69])])),await _0xd2186b()?_0x12c6e7()?_0x294524()?_0x4db8e1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55cdfe()?(_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4db8e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x529f2f=_0x5e2eee(_0x4db8e1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4db8e1([0x74,0x72,0x69,0x61,0x6c])&&(_0x529f2f=_0x5e2eee(_0x4db8e1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xfea1fc()):_0x4db8e1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4db8e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4db8e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4db8e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x294524(){const _0x10f009=[_0x4db8e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4db8e1([0x74,0x72,0x69,0x61,0x6c])][_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11b1dc/0x3e8:0xe10*_0x317a62;return _0x1659b2[_0x4db8e1([0x65,0x78,0x70])]<_0x10f009;}function _0x12c6e7(){const _0x529544=_0x1659b2[_0x4db8e1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x529544&&(!!_0x529544[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db8e1([0x2a]))||!!_0x529544[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db8e1([0x55,0x50,0x4c,0x43])));}function _0x55cdfe(){const _0x12edac=_0x1659b2[_0x4db8e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x12edac||0x0==_0x12edac[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x592715}=new URL(window[_0x4db8e1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x12edac[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x592715))return!0x0;const _0x53127f=_0x592715[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e]));return _0x12edac[_0x4db8e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25ff5e=>_0x25ff5e[_0x4db8e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db8e1([0x2a])))[_0x4db8e1([0x6d,0x61,0x70])](_0x3dcf25=>_0x3dcf25[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e])))[_0x4db8e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x504b74=>_0x504b74[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53127f[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4db8e1([0x6d,0x61,0x70])](_0x1aaa7c=>Array(_0x53127f[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1aaa7c[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4db8e1([0x66,0x69,0x6c,0x6c])](_0x1aaa7c[0x0]===_0x4db8e1([0x2a])?_0x4db8e1([0x2a]):'')[_0x4db8e1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1aaa7c))[_0x4db8e1([0x73,0x6f,0x6d,0x65])](_0x4ae2f7=>_0x53127f[_0x4db8e1([0x65,0x76,0x65,0x72,0x79])]((_0x1938e9,_0x14a746)=>_0x4ae2f7[_0x14a746]===_0x1938e9||_0x4ae2f7[_0x14a746]===_0x4db8e1([0x2a])));}function _0xfea1fc(){return _0x529f2f&&_0x4582cd?new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x590485,_0x8159ce)=>{_0x529f2f[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x590485,_0x8159ce),_0x4582cd[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x3f03e3=>{_0x3f03e3!=_0x4db8e1([0x56,0x61,0x6c,0x69,0x64])&&_0x590485(_0x3f03e3);},_0x8159ce);}):_0x529f2f||_0x4582cd||_0x4db8e1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30c27d(_0x258992,_0xbc2f07){return new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ddf23=>{if(_0x201dbd())return _0x2ddf23(_0x4db8e1([0x56,0x61,0x6c,0x69,0x64]));_0x4dd461(),_0x4f963c[_0x4db8e1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4db8e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x518f16=!0x1;const _0x2134ee=_0x3c7735();function _0x1c57e5(_0x331973){return!!_0x331973&&(typeof _0x331973===_0x4db8e1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x331973===_0x4db8e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x331973[_0x4db8e1([0x74,0x68,0x65,0x6e])]===_0x4db8e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x331973[_0x4db8e1([0x63,0x61,0x74,0x63,0x68])]===_0x4db8e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bd0b1(_0x2ef690){_0x5f4620(_0x2ef690)[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x5eeffb=>{if(!_0x5eeffb||_0x5eeffb[_0x4db8e1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4db8e1([0x6f,0x6b]))return _0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x577176(_0x265d57(_0x2134ee+_0xbc2f07))!=_0x5eeffb[_0x4db8e1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4db8e1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0xcb97cf=>(_0x4f9e08(),_0xcb97cf),()=>{const _0x20f9bd=_0x364bbd();return null==_0x20f9bd?(_0x4f9e08(),_0x4db8e1([0x56,0x61,0x6c,0x69,0x64])):_0x4db8e1(_0x11b1dc-_0x20f9bd>(0x73ca5ade^_0x1f9a0a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x2ddf23)[_0x4db8e1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ddf23(_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x277535=0x57f0305e^_0x1f9a0a;function _0x4f9e08(){const _0xb34f13=_0x4db8e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x577176(_0x265d57(_0x258992)),_0x3f92f3=_0x1361da(_0x577176(window[_0x4db8e1([0x4d,0x61,0x74,0x68])][_0x4db8e1([0x63,0x65,0x69,0x6c])](_0x11b1dc/_0x277535)));window[_0x4db8e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4db8e1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb34f13,_0x3f92f3);}function _0x364bbd(){const _0x22eb75=_0x4db8e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x577176(_0x265d57(_0x258992)),_0x56445d=window[_0x4db8e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4db8e1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22eb75);return _0x56445d?window[_0x4db8e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1361da(_0x56445d),0x10)*_0x277535:null;}function _0x5f4620(_0x50d5c4){return new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x380791,_0x59d95b)=>{_0x50d5c4[_0x4db8e1([0x74,0x68,0x65,0x6e])](_0x380791,_0x59d95b),window[_0x4db8e1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59d95b,0x57c70a1e^_0x1f9a0a);});}}_0x4f963c[_0x4db8e1([0x6f,0x6e])](_0x4db8e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49528e,_0x2dce45)=>{if(_0x2dce45[0x0]!=_0x258992)return _0x2ddf23(_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2dce45[0x1]={..._0x2dce45[0x1],[_0x4db8e1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2134ee};},{[_0x4db8e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4db8e1([0x68,0x69,0x67,0x68])}),_0x4f963c[_0x4db8e1([0x6f,0x6e])](_0x4db8e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x418083=>{_0x1c57e5(_0x418083[_0x4db8e1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x518f16=!0x0,_0x4bd0b1(_0x418083[_0x4db8e1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4db8e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4db8e1([0x6c,0x6f,0x77])}),_0xee1907[_0x4db8e1([0x74,0x68,0x65,0x6e])](()=>{_0x518f16||_0x2ddf23(_0x4db8e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x201dbd(){return _0x4f963c[_0x4db8e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4db8e1([0x76,0x69,0x65,0x77])][_0x4db8e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4db8e1([0x61,0x75,0x74,0x6f]);}function _0x4dd461(){_0x4f963c[_0x4db8e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4db8e1([0x76,0x69,0x65,0x77])][_0x4db8e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4db8e1([0x61,0x75,0x74,0x6f]);}}function _0x5e2eee(_0x57b75a){const _0x43b935=[new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe8341c=>setTimeout(_0xe8341c,0x57cfe012^_0x1f9a0a)),_0xee1907[_0x4db8e1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x447c08=>{let _0xc05567=0x0;_0x4f963c[_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db8e1([0x6f,0x6e])](_0x4db8e1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x43ae67,_0x22fc40)=>{_0x22fc40[0x0][_0x4db8e1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc05567++,_0xc05567==(0x57c6df26^_0x1f9a0a)&&(_0x447c08(),_0x43ae67[_0x4db8e1([0x6f,0x66,0x66])]());});}))];return window[_0x4db8e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4db8e1([0x72,0x61,0x63,0x65])](_0x43b935)[_0x4db8e1([0x74,0x68,0x65,0x6e])](()=>_0x57b75a);}async function _0x296a21(){await _0xee1907,_0x4f963c[_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db8e1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37da22,_0x4f963c[_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4db8e1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37da22,_0x4f963c[_0x4db8e1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4db8e1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46768f(_0x62d54f){const _0x4c0fee=_0x5714d7();_0x4f963c[_0x4c0fee]=_0x4db8e1([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x62d54f,_0x62d54f!=_0x4db8e1([0x56,0x61,0x6c,0x69,0x64])&&_0x296a21();}function _0x5714d7(){const _0x2e3a0f=window[_0x4db8e1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4db8e1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4db8e1([0x6e,0x6f,0x77])]())[_0x4db8e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4db8e1([0x2e]),'');let _0x479c33=_0x4db8e1([0x71]);for(let _0x14850e=0x0;_0x14850e<_0x2e3a0f[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14850e+=0x2){let _0x26139a=window[_0x4db8e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e3a0f[_0x4db8e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14850e,_0x14850e+0x2));_0x26139a>=_0x1824d1[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26139a-=_0x1824d1[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x479c33+=_0x1824d1[_0x26139a];}return _0x479c33;}function _0x37395a(){const _0x59c3b6=_0x2dd465[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e]));if(0x3!=_0x59c3b6[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x596e41(_0x59c3b6[0x1]);function _0x596e41(_0x404b7d){const _0x278bfe=_0x12dd83(_0x404b7d);return _0x278bfe&&_0x16271d()?_0x278bfe:null;function _0x16271d(){const _0x17e41b=_0x278bfe[_0x4db8e1([0x6a,0x74,0x69])],_0x125816=window[_0x4db8e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17e41b[_0x4db8e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17e41b[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3426b6={..._0x278bfe,[_0x4db8e1([0x6a,0x74,0x69])]:_0x17e41b[_0x4db8e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17e41b[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3426b6[_0x4db8e1([0x76,0x63])],_0x265d57(_0x3426b6)==_0x125816;}}}async function _0xd2186b(){let _0x58cdf5=!0x0;try{const _0x4e519c=_0x2dd465[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])](_0x4db8e1([0x2e])),[_0x23e96b,_0x11ff1a,_0x3cc22d]=_0x4e519c;return _0x1d5faf(_0x23e96b),await _0xb9fc9(_0x23e96b,_0x11ff1a,_0x3cc22d),_0x58cdf5;}catch{return!0x1;}function _0x1d5faf(_0x2316e1){const _0x34b8be=_0x12dd83(_0x2316e1);_0x34b8be&&_0x34b8be[_0x4db8e1([0x61,0x6c,0x67])]==_0x4db8e1([0x45,0x53,0x32,0x35,0x36])||(_0x58cdf5=!0x1);}async function _0xb9fc9(_0x182080,_0x13c515,_0x4f6ee){const _0x24ec1e=window[_0x4db8e1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4db8e1([0x66,0x72,0x6f,0x6d])](_0x2cf365(_0x4f6ee),_0x512a67=>_0x512a67[_0x4db8e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b9481=new window[(_0x4db8e1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4db8e1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x182080+_0x4db8e1([0x2e])+_0x13c515),_0x1a8f86=window[_0x4db8e1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4db8e1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a8f86)return;const _0x5658d5=await _0x1a8f86[_0x4db8e1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4db8e1([0x6a,0x77,0x6b]),_0x5daff7,{[_0x4db8e1([0x6e,0x61,0x6d,0x65])]:_0x4db8e1([0x45,0x43,0x44,0x53,0x41]),[_0x4db8e1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4db8e1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4db8e1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a8f86[_0x4db8e1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4db8e1([0x6e,0x61,0x6d,0x65])]:_0x4db8e1([0x45,0x43,0x44,0x53,0x41]),[_0x4db8e1([0x68,0x61,0x73,0x68])]:{[_0x4db8e1([0x6e,0x61,0x6d,0x65])]:_0x4db8e1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5658d5,_0x24ec1e,_0x3b9481)||(_0x58cdf5=!0x1);}}function _0x12dd83(_0x5d11e1){return _0x5d11e1[_0x4db8e1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4db8e1([0x65,0x79]))?JSON[_0x4db8e1([0x70,0x61,0x72,0x73,0x65])](_0x2cf365(_0x5d11e1)):null;}function _0x2cf365(_0x3fb3fd){return window[_0x4db8e1([0x61,0x74,0x6f,0x62])](_0x3fb3fd[_0x4db8e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4db8e1([0x2b]))[_0x4db8e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4db8e1([0x2f])));}function _0x265d57(_0x20df65){let _0x236405=0x1505;function _0x1079a5(_0x56527e){for(let _0x788093=0x0;_0x788093<_0x56527e[_0x4db8e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x788093++){const _0x202a6b=_0x56527e[_0x4db8e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x788093);_0x236405=(_0x236405<<0x5)+_0x236405+_0x202a6b,_0x236405&=_0x236405;}}function _0x2515ea(_0xd215f0){Array[_0x4db8e1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd215f0)?_0xd215f0[_0x4db8e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2515ea):_0xd215f0&&typeof _0xd215f0==_0x4db8e1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4db8e1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd215f0)[_0x4db8e1([0x73,0x6f,0x72,0x74])]()[_0x4db8e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44985c,_0x18d2bd])=>{_0x1079a5(_0x44985c),_0x2515ea(_0x18d2bd);}):_0x1079a5(window[_0x4db8e1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd215f0));}return _0x2515ea(_0x20df65),_0x236405>>>0x0;}function _0x577176(_0x52d90d){return _0x52d90d[_0x4db8e1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4db8e1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4db8e1([0x30]));}function _0x1361da(_0x25ff90){return _0x25ff90[_0x4db8e1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4db8e1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4db8e1([0x6a,0x6f,0x69,0x6e])]('');}function _0x37da22(){}function _0x4db8e1(_0x20c113){return _0x20c113['map'](_0x544fff=>String['fromCharCode'](_0x544fff))['join']('');}_0x46768f(await _0x3e721d());}(this);}['_initSchema'](){const _0x522fad=this['editor']['model']['schema'];_0x522fad['isRegistered']('imageBlock')&&_0x522fad['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x522fad['isRegistered']('imageInline')&&_0x522fad['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x50cce7=this['editor'];_0x50cce7['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x50cce7['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1b9c03=>_0x1b9c03['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x56f579=_0x50cce7['commands']['get']('replaceImageSource');_0x56f579&&this['listenTo'](_0x56f579,'cleanupImage',(_0x4fba69,[_0x47d404,_0x335eb3])=>{_0x47d404['removeAttribute']('uploadcareImageId',_0x335eb3);});}['_initConfig'](){const _0xefc95d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x419bce=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x9cca2d(_0x5980d3['document'],'uc-config',{..._0xefc95d,'pubkey':_0x419bce,'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']=_0x4f8bf1=>{if('closeMax'==_0x4f8bf1)return'#uc-icon-arrow-down';},_0x5980d3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x9cca2d(_0x5980d3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5980d3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3e2280=this['editor']['commands']['get']('insertImage');_0x3e2280&&this['listenTo'](_0x3e2280,'execute',()=>{const _0x28dd60=this['editor']['model']['document']['selection']['getSelectedElement']();_0x28dd60&&_0x28dd60['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x28dd60);});});const _0x5753b0=this['editor']['commands']['get']('uploadcareImageReplace');_0x5753b0&&this['listenTo'](_0x5753b0,'execute',()=>{const _0x4c036e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c036e&&_0x4c036e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4c036e);});});}}class tt extends _0xa02c31{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x250e4e){super(_0x250e4e),_0x250e4e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xb0ea0d['defineComponents'](_0xb0ea0d);}}class ii extends _0xf574a8{constructor(_0x38e10f){super(_0x38e10f);const t=_0x38e10f['t'],_0x33c10a=this['bindTemplate'],_0x4721a3=new _0x170b6f();_0x4721a3['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':[_0x4721a3,{'text':_0x33c10a['to']('imageUploadProgress',_0x4c2db8=>t('Loading\x20image...')+'\x20('+(_0x4c2db8||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 _0xf574a8{constructor(_0x4218a4){super(_0x4218a4);const t=_0x4218a4['t'];this['set']('errorType',null);const _0x341750=new _0x586669(_0x4218a4);_0x341750['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x341750['withText']=!0x0,_0x341750['class']='ck-button-action',_0x341750['on']('execute',()=>{this['fire']('retry');}),_0x341750['bind']('isVisible')['to'](this,'errorType',_0xfbb6df=>'NotFound'!==_0xfbb6df);const _0x3daf46=new _0x9bf704();_0x3daf46['content']=_0x3086a9,_0x3daf46['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1c7620=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':[_0x3daf46,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1c7620['to']('errorType',_0x4226d6=>t('NotFound'!==_0x4226d6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x341750]},{'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 _0xf574a8{constructor(_0x6ca31b,_0x1563b5){super(_0x6ca31b);const _0x39fce6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1563b5,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x39fce6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x309251,_0x4435dd,_0xf7eb8a){super(_0x309251),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x309251),this['_errorView']=new ti(_0x309251),this['_editingView']=new ei(_0x309251,_0xf7eb8a),this['_focusableView']=new _0xf574a8(_0x309251),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4435dd),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'],_0x1cd3f6=>{this['_addUploadcareImageEditorListeners'](_0x1cd3f6);});}),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'](_0x31ee67,_0x984bf4){const _0x37d9f6='uc-cloud-image-editor',_0x18b843=_0x31ee67['querySelector'](_0x37d9f6);if(_0x18b843)return _0x984bf4(_0x18b843);const _0x1887ea=new MutationObserver(_0x17bea9=>{const _0x237a78=_0x17bea9['filter'](_0x3e1a10=>_0x3e1a10['target']===_0x31ee67&&_0x3e1a10['addedNodes']['length']>0x0&&_0x3e1a10['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x37d9f6);_0x237a78['length']&&(_0x1887ea['disconnect'](),_0x984bf4(_0x237a78[0x0]['addedNodes'][0x0]));});_0x1887ea['observe'](_0x31ee67,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x494327){_0x494327['addEventListener']('apply',_0x51cf78=>{this['fire']('apply',{'imageSrc':_0x51cf78['detail']['cdnUrl']});}),_0x494327['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4180c3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x20fab0,_0x14e75a,_0xdf8067){super(),this['_editor']=_0x20fab0,this['_dialog']=_0x14e75a,this['_imageElement']=_0xdf8067,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 _0x1c3685=this['_imageElement'],_0x56d548=_0x1c3685['getAttribute']('uploadcareImageId'),_0x38f43c=_0x1c3685['getAttribute']('src');if(_0x56d548)await this['_loadImageInfo'](_0x56d548,_0x38f43c);else{if(this['_imageCache']['has'](_0x38f43c)){const _0x4ce772=this['_imageCache']['get'](_0x38f43c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4ce772['url'],this['imageDimension']=_0x4ce772['dimension'],this['imageId']=_0x4ce772['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4de1f8}=this['_editor'],t=_0x4de1f8['t'],_0xb82c03=new X(_0x4de1f8,this['imageStatus'],this['_attributes']);_0xb82c03['bind']('status')['to'](this,'imageStatus'),_0xb82c03['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb82c03['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb82c03['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb82c03,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4a9654,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb82c03,'position':_0x6f9f03['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb82c03['focus']();},'onHide':()=>{_0xb82c03['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x295340=>!S(_0x295340,_0xb82c03['element'])}});}['_loadImageInfo'](_0x42314e,_0x47d2b3){return j['getInfo'](_0x42314e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2009dc=>{const {width:_0xf6330e,height:_0x1bdec3}=_0x2009dc['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x47d2b3,this['imageDimension']={'width':_0xf6330e,'height':_0x1bdec3},this['imageId']=_0x42314e;})['catch'](_0x22e319=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22e319['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4715b6,_0x7ea90b){return this['_getImageAsFile'](_0x4715b6)['then'](_0x130e32=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x7ea90b['signal'],'file':_0x130e32,'onProgress':_0x31511e=>{_0x31511e&&_0x31511e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x31511e['value']));}}))['then'](_0x180b75=>{const {width:_0x4aa444,height:_0x54f25b}=_0x180b75['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x180b75['cdnUrl'],this['imageDimension']={'width':_0x4aa444,'height':_0x54f25b},this['imageId']=_0x180b75['uuid'],this['imageUploadProgress']=null;const _0x1af6b5=_0x4715b6['getAttribute']('src');this['_imageCache']['set'](_0x1af6b5,{'id':_0x180b75['uuid'],'url':_0x180b75['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x47fb67=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x47fb67['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4d4b05,_0x4b6f76){_0x4d4b05['on']('apply',(_0x196b5e,_0x5da8e6)=>{this['_replaceImage'](_0x4b6f76,_0x5da8e6['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4d4b05['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4d4b05['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f6170,_0x42939f,_0x4ff9f7){const _0x4cc2f8=this['_editor'],{width:_0x2b0c57,height:_0x2bc355}=C(_0x42939f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x366936,imageSources:_0x6a38a0}=k(_0x42939f,_0x2b0c57);_0x4cc2f8['model']['change'](_0x556595=>{if('$graveyard'===_0x1f6170['root']['rootName']){_0x4cc2f8['execute']('insertImage',{'imageType':_0x1f6170['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f6170['getAttributes']()),'uploadcareImageId':_0x4ff9f7,'src':_0x366936,'sources':_0x6a38a0,'width':_0x2b0c57,'height':_0x2bc355}});const _0x2a4f7b=_0x1f6170['getChildren']();_0x1f6170=_0x4cc2f8['model']['document']['selection']['getSelectedElement']();for(const _0x16f225 of _0x2a4f7b)_0x556595['append'](_0x556595['cloneElement'](_0x16f225),_0x1f6170);}else _0x556595['setSelection'](_0x1f6170,'on'),_0x4cc2f8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f6170['getAttributes']()),'uploadcareImageId':_0x4ff9f7,'src':_0x366936,'sources':_0x6a38a0,'width':_0x2b0c57,'height':_0x2bc355},_0x1f6170);_0x556595['setSelection'](_0x1f6170,'on');});}async['_getImageAsFile'](_0x491deb){const _0x458f9e=_0x5980d3['window'],_0x3dbcbd=_0x5980d3['document']['location']['href'],_0x41c31b=new _0x458f9e['URL'](_0x491deb['getAttribute']('src'),_0x3dbcbd);if('data:'===_0x41c31b['protocol']){const _0x3cd632=_0x41c31b['href']['split'](','),_0x56f204=_0x3cd632[0x0]['match'](/:(.*?);/)[0x1],_0x323177=_0x56f204['split']('/')[0x1],_0x2f5b0f=_0x458f9e['atob'](_0x3cd632[_0x3cd632['length']-0x1]);let _0x868389=_0x2f5b0f['length'];const _0x1cb53f=new _0x458f9e['Uint8Array'](_0x868389);for(;_0x868389--;)_0x1cb53f[_0x868389]=_0x2f5b0f['charCodeAt'](_0x868389);return new _0x458f9e['File']([_0x1cb53f],'image.'+_0x323177,{'type':_0x56f204});}const _0xd91d2d=_0x41c31b['href']['split']('/'),_0x2a4442=_0xd91d2d[_0xd91d2d['length']-0x1],_0x84f0ee=_0x2a4442['split']('.')[0x1];return _0x458f9e['fetch'](_0x41c31b['href'])['then'](_0x4dfba9=>_0x4dfba9['clone']()['blob']())['then'](_0x3d96c9=>new _0x458f9e['File']([_0x3d96c9],_0x2a4442,{'type':'image/'+_0x84f0ee}));}}class Q extends _0x40a540{['imageEditController'];static get['requires'](){return[_0x3bdf3c];}['_isEditable'];constructor(_0x25c075){super(_0x25c075),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2a921a){const _0x232e39=z(_0x2a921a);return _0x450145=>!(!_0x450145||!_0x450145['is']('element','imageBlock')&&!_0x450145['is']('element','imageInline'))&&(!!_0x450145['hasAttribute']('uploadcareImageId')||!!_0x450145['hasAttribute']('src')&&_0x232e39(_0x450145['getAttribute']('src')));}(_0x25c075['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16eafa=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16eafa);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x59375b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x59375b&&(_0x59375b['is']('element','imageBlock')||_0x59375b['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x3bdf3c),_0x59375b),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x40a540{['refresh'](){const _0x81d615=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x81d615&&(_0x81d615['is']('element','imageBlock')||_0x81d615['is']('element','imageInline')));}['execute'](_0x171027){const _0x282e46=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x35e4b4=>{_0x35e4b4['setAttributes'](_0x171027,_0x282e46),_0x35e4b4['removeAttribute']('srcset',_0x282e46),_0x35e4b4['removeAttribute']('sizes',_0x282e46);});}}class m extends _0xa02c31{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x246ad2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c469b}=this;_0x2c469b['commands']['add']('uploadcareImageEdit',new Q(_0x2c469b)),_0x2c469b['commands']['add']('uploadcareImageReplace',new V(_0x2c469b));}}class g extends _0xa02c31{['_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 _0x5cfce7=this['editor'];_0x5cfce7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x240466=>{const _0x468aee=_0x5cfce7['commands']['get']('uploadcareImageEdit'),_0x4165fa=new _0x586669(_0x240466),t=_0x240466['t'];return _0x4165fa['set']({'icon':_0x4a9654,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4165fa['bind']('isEnabled')['to'](_0x468aee),_0x4165fa['bind']('isOn')['to'](_0x468aee,'isActive'),this['listenTo'](_0x4165fa,'execute',()=>{_0x5cfce7['execute']('uploadcareImageEdit'),_0x5cfce7['editing']['view']['focus']();}),_0x4165fa;}),this['_initConfig']();}['_initConfig'](){const _0x3c150e=_0x9cca2d(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3c150e),this['listenTo'](this['editor'],'destroy',()=>{_0x3c150e['remove']();});}}class et extends _0xa02c31{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':_0x27e925=>0x1!=_0x27e925}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5c4719=>{const {af:{dictionary:_0x53a355,getPluralForm:_0x570f4b}}={'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':_0x12c719=>0x1!=_0x12c719}};_0x5c4719['af']||={'dictionary':{},'getPluralForm':null},_0x5c4719['af']['dictionary']=Object['assign'](_0x5c4719['af']['dictionary'],_0x53a355),_0x5c4719['af']['getPluralForm']=_0x570f4b;})(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':_0x1a6bf6=>0x0==_0x1a6bf6?0x0:0x1==_0x1a6bf6?0x1:0x2==_0x1a6bf6?0x2:_0x1a6bf6%0x64>=0x3&&_0x1a6bf6%0x64<=0xa?0x3:_0x1a6bf6%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x739f52=>{const {ar:{dictionary:_0x1790fb,getPluralForm:_0x1684c5}}={'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':_0xe71258=>0x0==_0xe71258?0x0:0x1==_0xe71258?0x1:0x2==_0xe71258?0x2:_0xe71258%0x64>=0x3&&_0xe71258%0x64<=0xa?0x3:_0xe71258%0x64>=0xb?0x4:0x5}};_0x739f52['ar']||={'dictionary':{},'getPluralForm':null},_0x739f52['ar']['dictionary']=Object['assign'](_0x739f52['ar']['dictionary'],_0x1790fb),_0x739f52['ar']['getPluralForm']=_0x1684c5;})(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':_0x44e65d=>0x1!=_0x44e65d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x38a12f=>{const {ast:{dictionary:_0x3d6cc2,getPluralForm:_0x5763e7}}={'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':_0xb9bf56=>0x1!=_0xb9bf56}};_0x38a12f['ast']||={'dictionary':{},'getPluralForm':null},_0x38a12f['ast']['dictionary']=Object['assign'](_0x38a12f['ast']['dictionary'],_0x3d6cc2),_0x38a12f['ast']['getPluralForm']=_0x5763e7;})(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':_0x4d2a3c=>0x1!=_0x4d2a3c}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x41ae4d=>{const {az:{dictionary:_0x3ba7b9,getPluralForm:_0x3edc67}}={'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':_0x3480f9=>0x1!=_0x3480f9}};_0x41ae4d['az']||={'dictionary':{},'getPluralForm':null},_0x41ae4d['az']['dictionary']=Object['assign'](_0x41ae4d['az']['dictionary'],_0x3ba7b9),_0x41ae4d['az']['getPluralForm']=_0x3edc67;})(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':_0x22d921=>_0x22d921%0xa==0x1&&_0x22d921%0x64!=0xb?0x0:_0x22d921%0xa>=0x2&&_0x22d921%0xa<=0x4&&(_0x22d921%0x64<0xa||_0x22d921%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xb3b87e=>{const {be:{dictionary:_0x22817d,getPluralForm:_0x3cc084}}={'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':_0x2793a2=>_0x2793a2%0xa==0x1&&_0x2793a2%0x64!=0xb?0x0:_0x2793a2%0xa>=0x2&&_0x2793a2%0xa<=0x4&&(_0x2793a2%0x64<0xa||_0x2793a2%0x64>=0x14)?0x1:0x2}};_0xb3b87e['be']||={'dictionary':{},'getPluralForm':null},_0xb3b87e['be']['dictionary']=Object['assign'](_0xb3b87e['be']['dictionary'],_0x22817d),_0xb3b87e['be']['getPluralForm']=_0x3cc084;})(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':_0x3ef079=>0x1!=_0x3ef079}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3bef98=>{const {bg:{dictionary:_0x1e1117,getPluralForm:_0x3a800}}={'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':_0x3301b0=>0x1!=_0x3301b0}};_0x3bef98['bg']||={'dictionary':{},'getPluralForm':null},_0x3bef98['bg']['dictionary']=Object['assign'](_0x3bef98['bg']['dictionary'],_0x1e1117),_0x3bef98['bg']['getPluralForm']=_0x3a800;})(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':_0x30ef72=>0x1!=_0x30ef72}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1b6313=>{const {bn:{dictionary:_0x152759,getPluralForm:_0x322581}}={'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':_0x42babd=>0x1!=_0x42babd}};_0x1b6313['bn']||={'dictionary':{},'getPluralForm':null},_0x1b6313['bn']['dictionary']=Object['assign'](_0x1b6313['bn']['dictionary'],_0x152759),_0x1b6313['bn']['getPluralForm']=_0x322581;})(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':_0x4cb7a9=>_0x4cb7a9%0xa==0x1&&_0x4cb7a9%0x64!=0xb?0x0:_0x4cb7a9%0xa>=0x2&&_0x4cb7a9%0xa<=0x4&&(_0x4cb7a9%0x64<0xa||_0x4cb7a9%0x64>=0x14)?0x1:0x2}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x537efc=>{const {bs:{dictionary:_0x23913a,getPluralForm:_0x3c5a7e}}={'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':_0xff0430=>_0xff0430%0xa==0x1&&_0xff0430%0x64!=0xb?0x0:_0xff0430%0xa>=0x2&&_0xff0430%0xa<=0x4&&(_0xff0430%0x64<0xa||_0xff0430%0x64>=0x14)?0x1:0x2}};_0x537efc['bs']||={'dictionary':{},'getPluralForm':null},_0x537efc['bs']['dictionary']=Object['assign'](_0x537efc['bs']['dictionary'],_0x23913a),_0x537efc['bs']['getPluralForm']=_0x3c5a7e;})(window['CKEDITOR_TRANSLATIONS']||={});
|